Skip to content

Commit b6cbff2

Browse files
committed
Add runtime proto blocks and fix join init
1 parent 45be986 commit b6cbff2

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

docs/proto.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ Example:
5656

5757
"macos.codex": "~/.codex/AGENTS.md",
5858
"windows.codex": "%USERPROFILE%\\.codex\\AGENTS.md",
59-
"linux.codex": "~/.codex/AGENTS.md"
59+
"linux.codex": "~/.codex/AGENTS.md",
60+
61+
"macos.claude": "~/.claude/CLAUDE.md",
62+
"windows.claude": "%USERPROFILE%\\.claude\\CLAUDE.md",
63+
"linux.claude": "~/.claude/CLAUDE.md"
6064
},
6165
"cueme.proto.prefix": {
6266
"vscode": [
@@ -65,12 +69,16 @@ Example:
6569
"---"
6670
],
6771
"codex": [],
72+
"claude": [],
6873
"windsurf": []
6974
},
7075
"cueme.proto.runtime": {
7176
"codex": [
7277
"When calling cueme cue/pause, set the tool wait timeout to 24h to avoid premature tool timeouts.",
7378
"不要误解“更新 todo_list”的指令,因为你是 codex,你需要做的是:把 update_plan 当作 todo_list 来维护任务,而不是创建本地 todo_list 文件。"
79+
],
80+
"claude": [
81+
"When calling cueme cue/pause, set the tool wait timeout to 24h to avoid premature tool timeouts."
7482
]
7583
},
7684
"cueme.proto.protocol_path": "~/path/to/protocol.md"
@@ -131,6 +139,7 @@ Auto-detect (current platform only):
131139
- `vscode`: `.vscode/prompts/human_proto.md` (workspace) then platform user path
132140
- `windsurf`: `.codeium/windsurf/memories/global_rules.md` (workspace) then platform user path
133141
- `codex`: uses `~/.codex/AGENTS.md` by default (not auto-detected)
142+
- `claude`: uses `~/.claude/CLAUDE.md` by default (not auto-detected)
134143

135144
### Helpers
136145

src/handler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ function detectAgentTerminal() {
135135
}
136136

137137
async function handleJoin(db, agent_runtime) {
138+
await initSchema(db);
138139
const agent_id = generateName();
139140
const project_dir = process.cwd();
140141
const agent_terminal = detectAgentTerminal();

src/proto.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ function defaultPathMapTemplate() {
155155
out['windows.codex'] = path.join(userProfile, '.codex', 'AGENTS.md');
156156
out['linux.codex'] = path.join(home, '.codex', 'AGENTS.md');
157157

158+
// Claude Code (global)
159+
out['macos.claude'] = path.join(home, '.claude', 'CLAUDE.md');
160+
out['windows.claude'] = path.join(userProfile, '.claude', 'CLAUDE.md');
161+
out['linux.claude'] = path.join(home, '.claude', 'CLAUDE.md');
162+
158163
return out;
159164
}
160165

@@ -164,6 +169,7 @@ function defaultConfigTemplate() {
164169
'cueme.proto.path': defaultPathMapTemplate(),
165170
'cueme.proto.prefix': {
166171
codex: [],
172+
claude: [],
167173
windsurf: [],
168174
vscode: ['---', 'applyTo: "**"', '---'],
169175
kiro: [],
@@ -173,6 +179,9 @@ function defaultConfigTemplate() {
173179
'When calling cueme cue/pause, set the tool wait timeout to 24h to avoid premature tool timeouts.',
174180
'不要误解“更新 todo_list”的指令,因为你是 codex,你需要做的是:把 update_plan 当作 todo_list 来维护任务,而不是创建本地 todo_list 文件。',
175181
],
182+
claude: [
183+
'When calling cueme cue/pause, set the tool wait timeout to 24h to avoid premature tool timeouts.',
184+
],
176185
},
177186
'cueme.proto.protocol_path': protocolPath,
178187
};

0 commit comments

Comments
 (0)