@cabane/companion 0.6.11 → 0.6.12
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.js +6 -2
- package/dist/runtime.js +6 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7246,6 +7246,8 @@ var Dispatcher = class {
|
|
|
7246
7246
|
effectiveCwd = void 0;
|
|
7247
7247
|
}
|
|
7248
7248
|
let hookEnv;
|
|
7249
|
+
const triggerIsPrepareFailure = message.body.startsWith(PREPARE_FAILED_PREFIX);
|
|
7250
|
+
const prepareFailureDispatch = turnContext.dispatchedByAgentId && !triggerIsPrepareFailure ? { dispatch: turnContext.dispatchedByAgentId } : {};
|
|
7249
7251
|
if (prepareHook) {
|
|
7250
7252
|
const cached2 = readPrepared(workspaceId, payload.conversationId, payload.agentId);
|
|
7251
7253
|
if (cached2) {
|
|
@@ -7275,7 +7277,8 @@ var Dispatcher = class {
|
|
|
7275
7277
|
${reason}`,
|
|
7276
7278
|
kind: "final",
|
|
7277
7279
|
turnId,
|
|
7278
|
-
parentMessageId: payload.messageId
|
|
7280
|
+
parentMessageId: payload.messageId,
|
|
7281
|
+
...prepareFailureDispatch
|
|
7279
7282
|
});
|
|
7280
7283
|
} catch (postErr) {
|
|
7281
7284
|
turnLog.warn(
|
|
@@ -7349,7 +7352,8 @@ ${reason}`,
|
|
|
7349
7352
|
kind: "final",
|
|
7350
7353
|
turnId,
|
|
7351
7354
|
// CT113: stamp the parent even on the prepare-failed close.
|
|
7352
|
-
parentMessageId: payload.messageId
|
|
7355
|
+
parentMessageId: payload.messageId,
|
|
7356
|
+
...prepareFailureDispatch
|
|
7353
7357
|
});
|
|
7354
7358
|
} catch (postErr) {
|
|
7355
7359
|
turnLog.warn(
|
package/dist/runtime.js
CHANGED
|
@@ -6899,6 +6899,8 @@ var Dispatcher = class {
|
|
|
6899
6899
|
effectiveCwd = void 0;
|
|
6900
6900
|
}
|
|
6901
6901
|
let hookEnv;
|
|
6902
|
+
const triggerIsPrepareFailure = message.body.startsWith(PREPARE_FAILED_PREFIX);
|
|
6903
|
+
const prepareFailureDispatch = turnContext.dispatchedByAgentId && !triggerIsPrepareFailure ? { dispatch: turnContext.dispatchedByAgentId } : {};
|
|
6902
6904
|
if (prepareHook) {
|
|
6903
6905
|
const cached2 = readPrepared(workspaceId, payload.conversationId, payload.agentId);
|
|
6904
6906
|
if (cached2) {
|
|
@@ -6928,7 +6930,8 @@ var Dispatcher = class {
|
|
|
6928
6930
|
${reason}`,
|
|
6929
6931
|
kind: "final",
|
|
6930
6932
|
turnId,
|
|
6931
|
-
parentMessageId: payload.messageId
|
|
6933
|
+
parentMessageId: payload.messageId,
|
|
6934
|
+
...prepareFailureDispatch
|
|
6932
6935
|
});
|
|
6933
6936
|
} catch (postErr) {
|
|
6934
6937
|
turnLog.warn(
|
|
@@ -7002,7 +7005,8 @@ ${reason}`,
|
|
|
7002
7005
|
kind: "final",
|
|
7003
7006
|
turnId,
|
|
7004
7007
|
// CT113: stamp the parent even on the prepare-failed close.
|
|
7005
|
-
parentMessageId: payload.messageId
|
|
7008
|
+
parentMessageId: payload.messageId,
|
|
7009
|
+
...prepareFailureDispatch
|
|
7006
7010
|
});
|
|
7007
7011
|
} catch (postErr) {
|
|
7008
7012
|
turnLog.warn(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cabane/companion",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The Cabane Companion (headless): connect a coding agent on your machine to your Cabane workspace as a responder — drive work against your own codebase, files, and MCP servers without putting any of it in Cabane.",
|
|
6
6
|
"license": "UNLICENSED",
|