- {client.logoUrl && (
-

- )}
+
+ {client.logoUrl ? (
+

+ ) : (
+
+ )}
+
+
+
+
+
-
{client.name}
- {client.description && (
-
{client.description}
- )}
+
+ {client.name} is requesting access
+
+
+ Authenticating with your {user.name} workspace
+
-
-
This application will be able to:
-
- {params.scope ? (
- params.scope.split(' ').map((scope, index) => (
- - ⢠{scope === 'read' ? 'Read your profile information' : scope}
- ))
- ) : (
- - ⢠Read your profile information
- )}
-
-
-
-
-
- Signed in as: {user.email}
-
-
+
Permissions
+
);
-}
\ No newline at end of file
+}
diff --git a/apps/webapp/app/tailwind.css b/apps/webapp/app/tailwind.css
index 85ebd48..d14eb46 100644
--- a/apps/webapp/app/tailwind.css
+++ b/apps/webapp/app/tailwind.css
@@ -305,7 +305,7 @@
--radius-full: 9999px;
--shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.15), 0px 0px 2px 0px rgba(0, 0, 0, 0.2);
- --shadow-1: 0px 6px 20px 0px rgba(0, 0, 0, 0.15), 0px 0px 2px 0px rgba(0, 0, 0, 0.2);
+ --shadow-1: lch(0 0 0 / 0.022) 0px 3px 6px -2px, lch(0 0 0 / 0.044) 0px 1px 1px;
--font-sans: "Geist Variable", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
--font-mono: "Geist Mono Variable", monaco, Consolas, "Lucida Console", monospace;
diff --git a/apps/webapp/app/trigger/chat/memory-utils.ts b/apps/webapp/app/trigger/chat/memory-utils.ts
index afb2791..613cf21 100644
--- a/apps/webapp/app/trigger/chat/memory-utils.ts
+++ b/apps/webapp/app/trigger/chat/memory-utils.ts
@@ -12,7 +12,6 @@ export interface SearchMemoryParams {
export interface AddMemoryParams {
message: string;
referenceTime?: string;
- source?: string;
spaceId?: string;
sessionId?: string;
metadata?: any;
@@ -38,7 +37,7 @@ export const addMemory = async (params: AddMemoryParams) => {
...params,
episodeBody: params.message,
referenceTime: params.referenceTime || new Date().toISOString(),
- source: params.source || "CORE",
+ source: "CORE",
};
const response = await axios.post(
diff --git a/packages/core-cli/README.md b/packages/core-cli/README.md
index 21451fd..9d6d85d 100644
--- a/packages/core-cli/README.md
+++ b/packages/core-cli/README.md
@@ -35,19 +35,23 @@ npm install -g @redplanethq/core
### Initial Setup
-1. **Run the initialization command:**
+1. **Clone the Core repository:**
+ ```bash
+ git clone https://github.com/redplanethq/core.git
+ cd core
+ ```
+2. **Run the initialization command:**
```bash
core init
```
-2. **The CLI will guide you through the complete setup process:**
+3. **The CLI will guide you through the complete setup process:**
-#### Step 1: Repository Validation
-
-- The CLI checks if you're in the Core repository
-- If not, it offers to clone the repository for you
-- Choose **Yes** to clone automatically, or **No** to clone manually
+#### Step 1: Prerequisites Check
+- The CLI shows a checklist of required tools
+- Confirms you're in the Core repository directory
+- Exits with instructions if prerequisites aren't met
#### Step 2: Environment Configuration
@@ -130,9 +134,9 @@ After setup, these services will be available:
If you run commands outside the Core repository:
-- The CLI will offer to clone the repository automatically
-- Choose **Yes** to clone in the current directory
-- Or navigate to the Core repository manually
+- The CLI will ask you to confirm you're in the Core repository
+- If not, it provides instructions to clone the repository
+- Navigate to the Core repository directory before running commands again
### Docker Issues
diff --git a/packages/core-cli/src/commands/init.ts b/packages/core-cli/src/commands/init.ts
index 5c790b3..87b34e8 100644
--- a/packages/core-cli/src/commands/init.ts
+++ b/packages/core-cli/src/commands/init.ts
@@ -1,5 +1,4 @@
import { intro, outro, text, confirm, spinner, note, log } from "@clack/prompts";
-import { isValidCoreRepo } from "../utils/git.js";
import { fileExists, updateEnvFile } from "../utils/file.js";
import { checkPostgresHealth } from "../utils/docker.js";
import { executeDockerCommandInteractive } from "../utils/docker-interactive.js";
@@ -14,42 +13,17 @@ export async function initCommand() {
intro("š Core Development Environment Setup");
- // Step 1: Validate repository
- if (!isValidCoreRepo()) {
- log.warning("This directory is not a Core repository");
- note(
- "The Core repository is required to run the development environment.\nWould you like to clone it in the current directory?",
- "š Repository Not Found"
- );
+ // Step 1: Confirm this is the Core repository
+ note("Please ensure you have:\n⢠Docker and Docker Compose installed\n⢠Git installed\n⢠pnpm package manager installed\n⢠You are in the Core repository directory", "š Prerequisites");
+
+ const isCoreRepo = await confirm({
+ message: "Are you currently in the Core repository directory?",
+ });
- const shouldClone = await confirm({
- message: "Clone the Core repository here?",
- });
-
- if (!shouldClone) {
- outro("ā Setup cancelled. Please navigate to the Core repository or clone it first.");
- process.exit(1);
- }
-
- // Clone the repository
- try {
- await executeDockerCommandInteractive("git clone https://github.com/redplanethq/core.git .", {
- cwd: process.cwd(),
- message: "Cloning Core repository...",
- showOutput: true,
- });
-
- log.success("Core repository cloned successfully!");
- note(
- 'Please run "core init" again to initialize the development environment.',
- "ā
Repository Ready"
- );
- outro("š Core repository is now available!");
- process.exit(0);
- } catch (error: any) {
- outro(`ā Failed to clone repository: ${error.message}`);
- process.exit(1);
- }
+ if (!isCoreRepo) {
+ note("Please clone the Core repository first:\n\ngit clone https://github.com/redplanethq/core.git\ncd core\n\nThen run 'core init' again.", "š„ Clone Repository");
+ outro("ā Setup cancelled. Please navigate to the Core repository first.");
+ process.exit(1);
}
const rootDir = process.cwd();
diff --git a/packages/core-cli/src/commands/start.ts b/packages/core-cli/src/commands/start.ts
index f1378d8..2d061ae 100644
--- a/packages/core-cli/src/commands/start.ts
+++ b/packages/core-cli/src/commands/start.ts
@@ -1,5 +1,4 @@
import { intro, outro, note, log, confirm } from '@clack/prompts';
-import { isValidCoreRepo } from '../utils/git.js';
import { executeDockerCommandInteractive } from '../utils/docker-interactive.js';
import { printCoreBrainLogo } from '../utils/ascii.js';
import path from 'path';
@@ -10,36 +9,15 @@ export async function startCommand() {
intro('š Starting Core Development Environment');
- // Step 1: Validate repository
- if (!isValidCoreRepo()) {
- log.warning('This directory is not a Core repository');
- note('The Core repository is required to run the development environment.\nWould you like to clone it in the current directory?', 'š Repository Not Found');
-
- const shouldClone = await confirm({
- message: 'Clone the Core repository here?',
- });
+ // Step 1: Confirm this is the Core repository
+ const isCoreRepo = await confirm({
+ message: 'Are you currently in the Core repository directory?',
+ });
- if (!shouldClone) {
- outro('ā Setup cancelled. Please navigate to the Core repository or clone it first.');
- process.exit(1);
- }
-
- // Clone the repository
- try {
- await executeDockerCommandInteractive('git clone https://github.com/redplanethq/core.git .', {
- cwd: process.cwd(),
- message: 'Cloning Core repository...',
- showOutput: true
- });
-
- log.success('Core repository cloned successfully!');
- note('You can now run "core start" to start the development environment.', 'ā
Repository Ready');
- outro('š Core repository is now available!');
- process.exit(0);
- } catch (error: any) {
- outro(`ā Failed to clone repository: ${error.message}`);
- process.exit(1);
- }
+ if (!isCoreRepo) {
+ note('Please navigate to the Core repository first:\n\ngit clone https://github.com/redplanethq/core.git\ncd core\n\nThen run "core start" again.', 'š„ Core Repository Required');
+ outro('ā Please navigate to the Core repository first.');
+ process.exit(1);
}
const rootDir = process.cwd();
diff --git a/packages/core-cli/src/commands/stop.ts b/packages/core-cli/src/commands/stop.ts
index 5fef1d1..aa1b2a6 100644
--- a/packages/core-cli/src/commands/stop.ts
+++ b/packages/core-cli/src/commands/stop.ts
@@ -1,5 +1,4 @@
import { intro, outro, log, confirm, note } from '@clack/prompts';
-import { isValidCoreRepo } from '../utils/git.js';
import { executeDockerCommandInteractive } from '../utils/docker-interactive.js';
import { printCoreBrainLogo } from '../utils/ascii.js';
import path from 'path';
@@ -10,36 +9,15 @@ export async function stopCommand() {
intro('š Stopping Core Development Environment');
- // Step 1: Validate repository
- if (!isValidCoreRepo()) {
- log.warning('This directory is not a Core repository');
- note('The Core repository is required to stop the development environment.\nWould you like to clone it in the current directory?', 'š Repository Not Found');
-
- const shouldClone = await confirm({
- message: 'Clone the Core repository here?',
- });
+ // Step 1: Confirm this is the Core repository
+ const isCoreRepo = await confirm({
+ message: 'Are you currently in the Core repository directory?',
+ });
- if (!shouldClone) {
- outro('ā Setup cancelled. Please navigate to the Core repository or clone it first.');
- process.exit(1);
- }
-
- // Clone the repository
- try {
- await executeDockerCommandInteractive('git clone https://github.com/redplanethq/core.git .', {
- cwd: process.cwd(),
- message: 'Cloning Core repository...',
- showOutput: true
- });
-
- log.success('Core repository cloned successfully!');
- note('You can now run "core stop" to stop the development environment.', 'ā
Repository Ready');
- outro('š Core repository is now available!');
- process.exit(0);
- } catch (error: any) {
- outro(`ā Failed to clone repository: ${error.message}`);
- process.exit(1);
- }
+ if (!isCoreRepo) {
+ note('Please navigate to the Core repository first:\n\ngit clone https://github.com/redplanethq/core.git\ncd core\n\nThen run "core stop" again.', 'š„ Core Repository Required');
+ outro('ā Please navigate to the Core repository first.');
+ process.exit(1);
}
const rootDir = process.cwd();