claude-tempo 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/commands.d.ts +1 -0
- package/dist/cli/commands.js +23 -11
- package/dist/cli.js +1 -0
- package/dist/copilot-bridge.js +12 -8
- package/package.json +1 -1
package/dist/cli/commands.d.ts
CHANGED
package/dist/cli/commands.js
CHANGED
|
@@ -422,17 +422,29 @@ async function up(opts) {
|
|
|
422
422
|
}
|
|
423
423
|
// Step 5: Launch conductor
|
|
424
424
|
console.log();
|
|
425
|
-
out.log(`Launching conductor in ensemble ${out.cyan(opts.ensemble)}...`);
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
}
|
|
425
|
+
out.log(`Launching conductor in ensemble ${out.cyan(opts.ensemble)}${opts.agent === 'copilot' ? out.dim(' (copilot)') : ''}...`);
|
|
426
|
+
let pid;
|
|
427
|
+
if (opts.agent === 'copilot') {
|
|
428
|
+
({ pid } = (0, spawn_1.spawnCopilotBridge)({
|
|
429
|
+
name: opts.name || `${opts.ensemble}-conductor`,
|
|
430
|
+
ensemble: opts.ensemble,
|
|
431
|
+
temporalAddress: opts.temporalAddress,
|
|
432
|
+
isConductor: true,
|
|
433
|
+
workDir: process.cwd(),
|
|
434
|
+
}));
|
|
435
|
+
}
|
|
436
|
+
else {
|
|
437
|
+
const claudeArgs = [
|
|
438
|
+
'--dangerously-skip-permissions',
|
|
439
|
+
'--dangerously-load-development-channels', 'server:claude-tempo',
|
|
440
|
+
];
|
|
441
|
+
if (opts.name)
|
|
442
|
+
claudeArgs.push('-n', opts.name);
|
|
443
|
+
({ pid } = (0, spawn_1.spawnInTerminal)(claudeArgs, process.cwd(), {
|
|
444
|
+
[config_1.ENV.ENSEMBLE]: opts.ensemble,
|
|
445
|
+
[config_1.ENV.CONDUCTOR]: 'true',
|
|
446
|
+
}));
|
|
447
|
+
}
|
|
436
448
|
console.log();
|
|
437
449
|
out.success('You\'re all set!');
|
|
438
450
|
out.log(` Conductor launched (pid ${pid ?? 'unknown'})`);
|
package/dist/cli.js
CHANGED
package/dist/copilot-bridge.js
CHANGED
|
@@ -167,15 +167,19 @@ async function main() {
|
|
|
167
167
|
},
|
|
168
168
|
systemMessage: {
|
|
169
169
|
mode: 'append',
|
|
170
|
-
content: `You are part of the "${config.ensemble}" ensemble
|
|
171
|
-
`
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
170
|
+
content: `You are part of the "${config.ensemble}" ensemble coordinated via Temporal. ` +
|
|
171
|
+
`You have MCP tools available — ALWAYS use these tools directly, NEVER try to run them as shell commands:\n` +
|
|
172
|
+
`- set_name: Set your player name (call this FIRST if instructed)\n` +
|
|
173
|
+
`- ensemble: List active sessions\n` +
|
|
174
|
+
`- cue: Send a message to another player\n` +
|
|
175
|
+
`- set_part: Update your status/description\n` +
|
|
176
|
+
`- listen: Check for pending messages\n` +
|
|
177
|
+
`- recruit: Spawn a new player session\n` +
|
|
178
|
+
`- report: Report to the conductor\n` +
|
|
179
|
+
`- terminate: Terminate a session\n\n` +
|
|
180
|
+
`When you receive a message from another session, treat it like a coworker asking for help — respond promptly using your MCP tools.`,
|
|
178
181
|
},
|
|
182
|
+
excludedTools: ['powershell', 'shell'],
|
|
179
183
|
...(model ? { model } : {}),
|
|
180
184
|
};
|
|
181
185
|
log('Creating Copilot session...');
|