@bakers-build/addon-claude 0.8.1-next.1 → 0.8.1-next.3
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/src/index.d.ts +9 -0
- package/dist/src/index.js +16 -3
- package/package.json +4 -4
package/dist/src/index.d.ts
CHANGED
|
@@ -47,6 +47,15 @@ export declare class ClaudeAgent implements BbAgent {
|
|
|
47
47
|
launchCommand(prompt: string, run?: AgentRunIdentity, workspacePath?: string, tools?: {
|
|
48
48
|
url: string;
|
|
49
49
|
}, _env?: Readonly<Record<string, string>>, pluginArgs?: readonly string[]): string;
|
|
50
|
+
/**
|
|
51
|
+
* `claude --resume <id>` with the launch's own flags, so a run whose pane
|
|
52
|
+
* died continues its conversation. Not for a measured run: its wrapper
|
|
53
|
+
* profiles one fresh session.
|
|
54
|
+
*/
|
|
55
|
+
resumeCommand(sessionId: string, workspacePath?: string, tools?: {
|
|
56
|
+
url: string;
|
|
57
|
+
}, _env?: Readonly<Record<string, string>>, pluginArgs?: readonly string[]): string | undefined;
|
|
58
|
+
private command;
|
|
50
59
|
/**
|
|
51
60
|
* The sandbox's strict MCP config, plus the conductor's tool server when
|
|
52
61
|
* the run has one. A measured run stays without MCP servers. The token is
|
package/dist/src/index.js
CHANGED
|
@@ -224,6 +224,21 @@ export class ClaudeAgent {
|
|
|
224
224
|
if (prompt === '') {
|
|
225
225
|
return 'claude';
|
|
226
226
|
}
|
|
227
|
+
return this.command(this.measure
|
|
228
|
+
? ['node', shellQuote(MEASURE_WRAPPER), 'claude', shellQuote(prompt)]
|
|
229
|
+
: ['claude', shellQuote(prompt)], run, workspacePath, tools, pluginArgs);
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* `claude --resume <id>` with the launch's own flags, so a run whose pane
|
|
233
|
+
* died continues its conversation. Not for a measured run: its wrapper
|
|
234
|
+
* profiles one fresh session.
|
|
235
|
+
*/
|
|
236
|
+
resumeCommand(sessionId, workspacePath, tools, _env, pluginArgs = []) {
|
|
237
|
+
if (this.measure)
|
|
238
|
+
return undefined;
|
|
239
|
+
return this.command(['claude', '--resume', shellQuote(sessionId)], undefined, workspacePath, tools, pluginArgs);
|
|
240
|
+
}
|
|
241
|
+
command(head, run, workspacePath, tools, pluginArgs) {
|
|
227
242
|
// Wait for project-declared plugins (extraKnownMarketplaces) to install
|
|
228
243
|
// before the first turn; a fresh worktree otherwise starts without them.
|
|
229
244
|
// A new worktree path would stop the run at Claude Code's trust dialog.
|
|
@@ -233,9 +248,7 @@ export class ClaudeAgent {
|
|
|
233
248
|
...(workspacePath
|
|
234
249
|
? ['node', shellQuote(TRUST_WRAPPER), shellQuote(workspacePath)]
|
|
235
250
|
: []),
|
|
236
|
-
...
|
|
237
|
-
? ['node', shellQuote(MEASURE_WRAPPER), 'claude', shellQuote(prompt)]
|
|
238
|
-
: ['claude', shellQuote(prompt)]),
|
|
251
|
+
...head,
|
|
239
252
|
];
|
|
240
253
|
if (this.model !== undefined && !this.overrides.model) {
|
|
241
254
|
parts.push('--model', shellQuote(this.model));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/addon-claude",
|
|
3
|
-
"version": "0.8.1-next.
|
|
3
|
+
"version": "0.8.1-next.3",
|
|
4
4
|
"description": "bakers.build agent plugin for the Claude CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"directory": "bakers-cli/addons/claude"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@bakers-build/conductor": "^0.8.1-next.
|
|
30
|
-
"@bakers-build/core": "^0.8.1-next.
|
|
29
|
+
"@bakers-build/conductor": "^0.8.1-next.3",
|
|
30
|
+
"@bakers-build/core": "^0.8.1-next.3"
|
|
31
31
|
},
|
|
32
32
|
"bakersBuild": {
|
|
33
|
-
"commit": "
|
|
33
|
+
"commit": "808f07a3ab9eb6ca6005894ba725623817e79c30",
|
|
34
34
|
"channel": "next"
|
|
35
35
|
}
|
|
36
36
|
}
|