Skip to content

Commit c88f5ec

Browse files
committed
Refactor thread management to store conversation threads in ~/.deco/pilot/threads/ for improved development experience. Update main.ts to handle user API keys for enhanced authentication and tool access. Adjust prompts initialization to an empty array for better flexibility in prompt management.
1 parent 050f155 commit c88f5ec

4 files changed

Lines changed: 338 additions & 30 deletions

File tree

mcp-studio/server/main.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
ensurePromptsTable,
1515
} from "./db/schemas/agents.ts";
1616
import { handleWorkflowEvents, WORKFLOW_EVENTS } from "./events/handler.ts";
17-
import { createPrompts } from "./prompts.ts";
1817
import { tools } from "./tools/index.ts";
1918
import { type Env, type Registry, StateSchema } from "./types/env.ts";
2019

@@ -54,7 +53,7 @@ const runtime = withRuntime<Env, typeof StateSchema, Registry>({
5453
state: StateSchema,
5554
},
5655
tools,
57-
prompts: createPrompts,
56+
prompts: [],
5857
});
5958

6059
serve(runtime.fetch);

pilot/docs/ARCHITECTURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Pilot never calls interfaces directly. It:
5252

5353
### 3. Thread-Based Conversations
5454

55-
Threads are stored as JSON files in `./data/threads/`. Each thread:
55+
Threads are stored as JSON files in `~/.deco/pilot/threads/`. Each thread:
5656
- Has a 5-minute TTL (configurable)
5757
- Continues if messages arrive within TTL
5858
- Can be closed with `/new` command

0 commit comments

Comments
 (0)