@hearsay-tools/squawk 0.18.0-dev.7592 → 0.18.0-dev.7600
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/ci-wait/controller.d.ts +42 -42
- package/dist/core/runner-definition.d.ts +17 -0
- package/dist/core/runner-definition.js.map +1 -1
- package/dist/delegation/transport.d.ts +65 -65
- package/dist/runners/claude/cli.d.ts +4 -0
- package/dist/runners/claude/cli.js +1 -0
- package/dist/runners/claude/cli.js.map +1 -1
- package/dist/runners/claude/mock.d.ts +42 -0
- package/dist/runners/claude/mock.js +55 -0
- package/dist/runners/claude/mock.js.map +1 -1
- package/dist/runners/codex/cli.d.ts +4 -0
- package/dist/runners/codex/cli.js +1 -0
- package/dist/runners/codex/cli.js.map +1 -1
- package/dist/runners/codex/mock.d.ts +26 -0
- package/dist/runners/codex/mock.js +32 -0
- package/dist/runners/codex/mock.js.map +1 -1
- package/dist/runners/omp/cli.d.ts +4 -0
- package/dist/runners/omp/cli.js +1 -0
- package/dist/runners/omp/cli.js.map +1 -1
- package/dist/runners/omp/mock.d.ts +22 -0
- package/dist/runners/omp/mock.js +27 -0
- package/dist/runners/omp/mock.js.map +1 -1
- package/dist/runners/opencode/cli.d.ts +4 -0
- package/dist/runners/opencode/cli.js +1 -0
- package/dist/runners/opencode/cli.js.map +1 -1
- package/dist/runners/opencode/mock.d.ts +14 -0
- package/dist/runners/opencode/mock.js +17 -0
- package/dist/runners/opencode/mock.js.map +1 -1
- package/dist/runners/pi/cli.d.ts +4 -0
- package/dist/runners/pi/cli.js +1 -0
- package/dist/runners/pi/cli.js.map +1 -1
- package/dist/runners/pi/mock.d.ts +22 -0
- package/dist/runners/pi/mock.js +27 -0
- package/dist/runners/pi/mock.js.map +1 -1
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/open-in-app.d.ts +4 -1
- package/dist/server/open-in-app.js +12 -17
- package/dist/server/open-in-app.js.map +1 -1
- package/package.json +4 -4
- package/scripts/mock-skill-data/claude.mjs +83 -0
- package/scripts/mock-skill-data/codex.mjs +73 -0
- package/scripts/mock-skill-data/omp.mjs +59 -0
- package/scripts/mock-skill-data/opencode.mjs +82 -0
- package/scripts/mock-skill-data/pi.mjs +64 -0
- package/scripts/mock-skill-data.mjs +13 -0
- package/scripts/mock-skill-list-data.mjs +3 -183
- package/scripts/mock-skill-trigger-data.mjs +3 -167
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/runners/codex/cli.ts"],"names":[],"mappings":"AAEA,uHAAuH;AACvH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE;IACxD,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE;IAChC,aAAa,EAAE,EAAE,GAAG,EAAE,eAAe,EAAE;
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/runners/codex/cli.ts"],"names":[],"mappings":"AAEA,uHAAuH;AACvH,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE;IACxD,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE;IAChC,aAAa,EAAE,EAAE,GAAG,EAAE,eAAe,EAAE;IACvC,UAAU,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE;CACrB,CAAC"}
|
|
@@ -68,4 +68,30 @@ export declare const CODEX_MOCK: {
|
|
|
68
68
|
readonly 'subagent-after-park': 'mock:subagent-after-park';
|
|
69
69
|
readonly 'hook-after-park': 'mock:hook-after-park';
|
|
70
70
|
};
|
|
71
|
+
readonly parityExemptions: {
|
|
72
|
+
readonly P2: {
|
|
73
|
+
readonly kind: 'scenario-unconstructible';
|
|
74
|
+
readonly reason: 'every app-server approval request comes from Codex\'s own approval policy or MCP tool approval mode, which Squawk leaves to Codex and P1 and P9 route to the human; the wire has no built-in ask that Squawk answers.';
|
|
75
|
+
};
|
|
76
|
+
readonly P5: {
|
|
77
|
+
readonly kind: 'scenario-unconstructible';
|
|
78
|
+
readonly reason: 'Codex answers an approval with a JSON-RPC response written to app-server stdin. JSON-RPC sends no reply to a response, so the wire has no per-answer refusal: the write reaches the server, or the transport fails and the session ends.';
|
|
79
|
+
};
|
|
80
|
+
readonly P7: {
|
|
81
|
+
readonly kind: 'scenario-unconstructible';
|
|
82
|
+
readonly reason: 'A Codex approval request is already Codex\'s own decision to ask (its approval policy runs server-side), so Squawk shows the card on receipt with nothing to read first; there is no window between receipt and the card.';
|
|
83
|
+
};
|
|
84
|
+
readonly A13: {
|
|
85
|
+
readonly kind: 'capability-absent';
|
|
86
|
+
readonly reason: "Codex refuses agent input only while a human prompt is still on its way to the wire, and that prompt is held human input: the turn end takes it before any nudge.";
|
|
87
|
+
};
|
|
88
|
+
readonly A14: {
|
|
89
|
+
readonly kind: 'capability-absent';
|
|
90
|
+
readonly reason: "Codex refuses agent input only while a human prompt is still on its way to the wire, and that prompt is held human input: the turn end takes it before any nudge.";
|
|
91
|
+
};
|
|
92
|
+
readonly D3: {
|
|
93
|
+
readonly kind: 'capability-absent';
|
|
94
|
+
readonly reason: 'Codex 0.164.0 multi-agent tools reach only agents of the same session; the cross-thread agent_message_board feature is under development and off by default, so Squawk sends no flag for an unstable key.';
|
|
95
|
+
};
|
|
96
|
+
};
|
|
71
97
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { COMMON_MOCK_SCENARIOS, PROVIDER_ERROR_MOCK_SCENARIOS, NATIVE_APPROVAL_MOCK_SCENARIOS } from '../mock-prompts.js';
|
|
2
|
+
/** Why the A13 and A14 cells cannot run on this wire. */
|
|
3
|
+
const PROMPT_ACK_REASON = 'Codex refuses agent input only while a human prompt is still on its way to the wire, and that prompt is held human input: the turn end takes it before any nudge.';
|
|
2
4
|
/** The codex runner's native mock and its scenario adapter (the `mock` part). Data only. */
|
|
3
5
|
export const CODEX_MOCK = {
|
|
4
6
|
askResumeCases: [{ kind: 'item/tool/requestUserInput', scenario: 'ask-resume', answer: 'Library: Vitest' }],
|
|
@@ -25,5 +27,35 @@ export const CODEX_MOCK = {
|
|
|
25
27
|
'subagent-after-park': 'mock:subagent-after-park',
|
|
26
28
|
'hook-after-park': 'mock:hook-after-park',
|
|
27
29
|
},
|
|
30
|
+
// The parity cells this wire cannot carry (`PARITY_EXEMPTIONS`).
|
|
31
|
+
parityExemptions: {
|
|
32
|
+
P2: {
|
|
33
|
+
kind: 'scenario-unconstructible',
|
|
34
|
+
reason: 'every app-server approval request comes from Codex\'s own approval policy or MCP tool approval mode, which Squawk leaves to Codex and P1 and P9 route to the human; the wire has no built-in ask that Squawk answers.',
|
|
35
|
+
},
|
|
36
|
+
P5: {
|
|
37
|
+
kind: 'scenario-unconstructible',
|
|
38
|
+
reason: 'Codex answers an approval with a JSON-RPC response written to app-server stdin. JSON-RPC sends no reply to a response, so the wire has no per-answer refusal: the write reaches the server, or the transport fails and the session ends.',
|
|
39
|
+
},
|
|
40
|
+
P7: {
|
|
41
|
+
kind: 'scenario-unconstructible',
|
|
42
|
+
reason: 'A Codex approval request is already Codex\'s own decision to ask (its approval policy runs server-side), so Squawk shows the card on receipt with nothing to read first; there is no window between receipt and the card.',
|
|
43
|
+
},
|
|
44
|
+
// hearsay-tools/squawk#2452: the live A13/A14 rows run where a prompt acknowledgement can be
|
|
45
|
+
// outstanding at a turn end with no human input held.
|
|
46
|
+
A13: {
|
|
47
|
+
kind: 'capability-absent',
|
|
48
|
+
reason: PROMPT_ACK_REASON,
|
|
49
|
+
},
|
|
50
|
+
A14: {
|
|
51
|
+
kind: 'capability-absent',
|
|
52
|
+
reason: PROMPT_ACK_REASON,
|
|
53
|
+
},
|
|
54
|
+
// D3 (hearsay-tools/cezarion#1994), checked against the installed CLI on 2026-10-27.
|
|
55
|
+
D3: {
|
|
56
|
+
kind: 'capability-absent',
|
|
57
|
+
reason: 'Codex 0.164.0 multi-agent tools reach only agents of the same session; the cross-thread agent_message_board feature is under development and off by default, so Squawk sends no flag for an unstable key.',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
28
60
|
};
|
|
29
61
|
//# sourceMappingURL=mock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../src/runners/codex/mock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AAE1H,4FAA4F;AAC5F,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,4BAA4B,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC3G,MAAM,EAAE,eAAe;IACvB,MAAM,EAAE,2BAA2B;IACnC,iBAAiB,EAAE;QACjB,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,2CAA2C,EAAE;QACtE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,0CAA0C,EAAE;KACrE;IACD,qBAAqB,EAAE,wBAAwB;IAC/C,SAAS,EAAE;QACT,GAAG,qBAAqB;QACxB,GAAG,6BAA6B;QAChC,GAAG,8BAA8B;QACjC,oBAAoB,EAAE,yBAAyB;QAC/C,cAAc,EAAE,mBAAmB;QACnC,6BAA6B,EAAE,kCAAkC;QACjE,sBAAsB,EAAE,mBAAmB;QAC3C,GAAG,EAAE,uBAAuB;QAC5B,YAAY,EAAE,8CAA8C;QAC5D,gBAAgB,EAAE,uBAAuB;QACzC,6EAA6E;QAC7E,QAAQ,EAAE,iBAAiB;QAC3B,qBAAqB,EAAE,0BAA0B;QACjD,iBAAiB,EAAE,sBAAsB;KAC1C;CAC4B,CAAC"}
|
|
1
|
+
{"version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E,2NAA2N;SACpO;QACD,6FAA6F;QAC7F,sDAAsD;QACtD,GAAG,EAAE;YACH,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,iBAAiB;SAC1B;QACD,GAAG,EAAE;YACH,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,iBAAiB;SAC1B;QACD,qFAAqF;QACrF,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,2MAA2M;SACpN;KACF;CAC4B,CAAC"}
|
package/dist/runners/omp/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/runners/omp/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,qHAAqH;AACrH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,kBAAkB,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,KAAK,EAAE;IACzF,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,EAAE;IAClC,aAAa,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/runners/omp/cli.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,qHAAqH;AACrH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,kBAAkB,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,KAAK,EAAE;IACzF,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,EAAE;IAClC,aAAa,EAAE,IAAI;IACnB,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE;CACjB,CAAC"}
|
|
@@ -54,4 +54,26 @@ export declare const OMP_MOCK: {
|
|
|
54
54
|
readonly subagent: 'mock:subagent';
|
|
55
55
|
readonly 'subagent-after-park': 'mock:subagent-after-park';
|
|
56
56
|
};
|
|
57
|
+
readonly parityExemptions: {
|
|
58
|
+
readonly P9: {
|
|
59
|
+
readonly kind: 'scenario-unconstructible';
|
|
60
|
+
readonly reason: 'OMP\'s RPC wire carries no tool approval request for Squawk to answer: tool admission is its --tools list and --config overlay; Squawk\'s tools reach OMP as an --extension admitted through --tools (R35), not as an MCP server.';
|
|
61
|
+
};
|
|
62
|
+
readonly A9: {
|
|
63
|
+
readonly kind: 'capability-absent';
|
|
64
|
+
readonly reason: 'OMP v18.4.11 plain `--mode rpc` never constructs the ask tool: sessionOptions.hasUI is true only for interactive or rpc-ui (src/main.ts) and AskTool.createIf returns null without it, so the native ask path cannot exist on the wire Squawk uses. Asks go through cezar_ask (A3/A4 cover the cezar_ask policy).';
|
|
65
|
+
};
|
|
66
|
+
readonly I2: {
|
|
67
|
+
readonly kind: 'capability-absent';
|
|
68
|
+
readonly reason: 'OMP v18.4.11 session_settled requires queuedMessageCount === 0 (isRpcSessionSettled, modes/rpc/rpc-session-settle.ts), and agent_end is rewritten to isTerminal:false while agent.hasQueuedMessages() (session/agent-session.ts), so a steer accepted before settle is read in the same turn and accepted input is never left unread.';
|
|
69
|
+
};
|
|
70
|
+
readonly D1: {
|
|
71
|
+
readonly kind: 'capability-absent';
|
|
72
|
+
readonly reason: 'OMP 18.13.1 has no cross-session tool in its default set; its irc tool is an in-process bus that reaches only agents inside the same OMP process.';
|
|
73
|
+
};
|
|
74
|
+
readonly D3: {
|
|
75
|
+
readonly kind: 'capability-absent';
|
|
76
|
+
readonly reason: 'OMP 18.13.1 get_state.dumpTools default set holds no messaging tool; vibe_* and irc are opt-in in the user\'s own config.';
|
|
77
|
+
};
|
|
78
|
+
};
|
|
57
79
|
};
|
package/dist/runners/omp/mock.js
CHANGED
|
@@ -14,5 +14,32 @@ export const OMP_MOCK = {
|
|
|
14
14
|
subagent: 'mock:subagent',
|
|
15
15
|
'subagent-after-park': 'mock:subagent-after-park',
|
|
16
16
|
},
|
|
17
|
+
// The parity cells this wire cannot carry (`PARITY_EXEMPTIONS`).
|
|
18
|
+
parityExemptions: {
|
|
19
|
+
P9: {
|
|
20
|
+
kind: 'scenario-unconstructible',
|
|
21
|
+
reason: 'OMP\'s RPC wire carries no tool approval request for Squawk to answer: tool admission is its --tools list and --config overlay; Squawk\'s tools reach OMP as an --extension admitted through --tools (R35), not as an MCP server.',
|
|
22
|
+
},
|
|
23
|
+
// A9: a native mid-turn ask.requested exists only where the declared native ask is answerable;
|
|
24
|
+
// the parity kit checks this reason against the facts.
|
|
25
|
+
A9: {
|
|
26
|
+
kind: 'capability-absent',
|
|
27
|
+
reason: 'OMP v18.4.11 plain `--mode rpc` never constructs the ask tool: sessionOptions.hasUI is true only for interactive or rpc-ui (src/main.ts) and AskTool.createIf returns null without it, so the native ask path cannot exist on the wire Squawk uses. Asks go through cezar_ask (A3/A4 cover the cezar_ask policy).',
|
|
28
|
+
},
|
|
29
|
+
I2: {
|
|
30
|
+
kind: 'capability-absent',
|
|
31
|
+
reason: 'OMP v18.4.11 session_settled requires queuedMessageCount === 0 (isRpcSessionSettled, modes/rpc/rpc-session-settle.ts), and agent_end is rewritten to isTerminal:false while agent.hasQueuedMessages() (session/agent-session.ts), so a steer accepted before settle is read in the same turn and accepted input is never left unread.',
|
|
32
|
+
},
|
|
33
|
+
// D1 (hearsay-tools/cezarion#2279), checked against the installed CLI on 2026-10-30.
|
|
34
|
+
D1: {
|
|
35
|
+
kind: 'capability-absent',
|
|
36
|
+
reason: 'OMP 18.13.1 has no cross-session tool in its default set; its irc tool is an in-process bus that reaches only agents inside the same OMP process.',
|
|
37
|
+
},
|
|
38
|
+
// D3 (hearsay-tools/cezarion#1994), checked against the installed CLI on 2026-10-27.
|
|
39
|
+
D3: {
|
|
40
|
+
kind: 'capability-absent',
|
|
41
|
+
reason: 'OMP 18.13.1 get_state.dumpTools default set holds no messaging tool; vibe_* and irc are opt-in in the user\'s own config.',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
17
44
|
};
|
|
18
45
|
//# sourceMappingURL=mock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../src/runners/omp/mock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAE1I,0FAA0F;AAC1F,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC1F,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,kBAAkB;IAC1B,SAAS,EAAE;QACT,GAAG,qBAAqB;QACxB,GAAG,wBAAwB;QAC3B,GAAG,6BAA6B;QAChC,cAAc,EAAE,mBAAmB;QACnC,cAAc,EAAE,oBAAoB;QACpC,sBAAsB,EAAE,2BAA2B;QACnD,QAAQ,EAAE,eAAe;QACzB,qBAAqB,EAAE,0BAA0B;KAClD;CAC4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../src/runners/omp/mock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAE1I,0FAA0F;AAC1F,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC1F,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,kBAAkB;IAC1B,SAAS,EAAE;QACT,GAAG,qBAAqB;QACxB,GAAG,wBAAwB;QAC3B,GAAG,6BAA6B;QAChC,cAAc,EAAE,mBAAmB;QACnC,cAAc,EAAE,oBAAoB;QACpC,sBAAsB,EAAE,2BAA2B;QACnD,QAAQ,EAAE,eAAe;QACzB,qBAAqB,EAAE,0BAA0B;KAClD;IACD,iEAAiE;IACjE,gBAAgB,EAAE;QAChB,EAAE,EAAE;YACF,IAAI,EAAE,0BAA0B;YAChC,MAAM,EAAE,mOAAmO;SAC5O;QACD,+FAA+F;QAC/F,uDAAuD;QACvD,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,mTAAmT;SAC5T;QACD,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,uUAAuU;SAChV;QACD,qFAAqF;QACrF,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,mJAAmJ;SAC5J;QACD,qFAAqF;QACrF,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,2HAA2H;SACpI;KACF;CAC4B,CAAC"}
|
|
@@ -3,5 +3,6 @@ export const OPENCODE_CLI = {
|
|
|
3
3
|
terminalExecutable: { kind: 'path-name', name: 'opencode' },
|
|
4
4
|
resumeArgs: id => `--session ${id}`,
|
|
5
5
|
installSource: { site: 'https://opencode.ai', label: 'OpenCode' },
|
|
6
|
+
openTarget: { label: 'OpenCode', icon: 'opencode' },
|
|
6
7
|
};
|
|
7
8
|
//# sourceMappingURL=cli.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/runners/opencode/cli.ts"],"names":[],"mappings":"AAEA,0HAA0H;AAC1H,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE;IAC3D,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE;IACnC,aAAa,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/runners/opencode/cli.ts"],"names":[],"mappings":"AAEA,0HAA0H;AAC1H,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,UAAU,EAAE;IAC3D,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE;IACnC,aAAa,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,UAAU,EAAE;IACjE,UAAU,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE;CACvB,CAAC"}
|
|
@@ -72,4 +72,18 @@ export declare const OPENCODE_MOCK: {
|
|
|
72
72
|
readonly subagent: 'mock:subagent';
|
|
73
73
|
readonly 'subagent-after-park': 'mock:subagent-after-park';
|
|
74
74
|
};
|
|
75
|
+
readonly parityExemptions: {
|
|
76
|
+
readonly P9: {
|
|
77
|
+
readonly kind: 'scenario-unconstructible';
|
|
78
|
+
readonly reason: 'OpenCode sends no MCP-specific approval request: an ask before any tool call arrives as an ordinary permission.asked from a rule the user wrote, which P1 routes to the cockpit card (hearsay-tools/cezarion#1266).';
|
|
79
|
+
};
|
|
80
|
+
readonly U20h: {
|
|
81
|
+
readonly kind: 'capability-absent';
|
|
82
|
+
readonly reason: 'OpenCode runs one prompt per turn: a human prompt waits for the busy turn to go idle, and a refusal acknowledged without a turn never goes idle, so the human message the cell sends after the bound is never posted.';
|
|
83
|
+
};
|
|
84
|
+
readonly D3: {
|
|
85
|
+
readonly kind: 'capability-absent';
|
|
86
|
+
readonly reason: 'OpenCode 1.19.4 has no messaging tool and no inbound channel. Its task tool resumes any session by task_id with no parent check, and the task permission pattern matches only subagent_type, so no session rule blocks a foreign task_id while subagents keep working. Only the shell finds another session\'s ID, and the shell reaches that session directly (opencode run --session); the same-user shell is outside hard isolation.';
|
|
87
|
+
};
|
|
88
|
+
};
|
|
75
89
|
};
|
|
@@ -29,5 +29,22 @@ export const OPENCODE_MOCK = {
|
|
|
29
29
|
subagent: 'mock:subagent',
|
|
30
30
|
'subagent-after-park': 'mock:subagent-after-park',
|
|
31
31
|
},
|
|
32
|
+
// The parity cells this wire cannot carry (`PARITY_EXEMPTIONS`).
|
|
33
|
+
parityExemptions: {
|
|
34
|
+
P9: {
|
|
35
|
+
kind: 'scenario-unconstructible',
|
|
36
|
+
reason: 'OpenCode sends no MCP-specific approval request: an ask before any tool call arrives as an ordinary permission.asked from a rule the user wrote, which P1 routes to the cockpit card (hearsay-tools/cezarion#1266).',
|
|
37
|
+
},
|
|
38
|
+
// U20h (hearsay-tools/cezarion#1301): a refusal the harness acknowledges and never answers.
|
|
39
|
+
U20h: {
|
|
40
|
+
kind: 'capability-absent',
|
|
41
|
+
reason: 'OpenCode runs one prompt per turn: a human prompt waits for the busy turn to go idle, and a refusal acknowledged without a turn never goes idle, so the human message the cell sends after the bound is never posted.',
|
|
42
|
+
},
|
|
43
|
+
// D3 (hearsay-tools/cezarion#1994), checked against the installed CLI on 2026-10-27.
|
|
44
|
+
D3: {
|
|
45
|
+
kind: 'capability-absent',
|
|
46
|
+
reason: 'OpenCode 1.19.4 has no messaging tool and no inbound channel. Its task tool resumes any session by task_id with no parent check, and the task permission pattern matches only subagent_type, so no session rule blocks a foreign task_id while subagents keep working. Only the shell finds another session\'s ID, and the shell reaches that session directly (opencode run --session); the same-user shell is outside hard isolation.',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
32
49
|
};
|
|
33
50
|
//# sourceMappingURL=mock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../src/runners/opencode/mock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,8BA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,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC/F,MAAM,EAAE,kBAAkB;IAC1B,MAAM,EAAE,yBAAyB;IACjC,iBAAiB,EAAE;QACjB,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,uCAAuC,EAAE;QACjE,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,qCAAqC,EAAE;KACpE;IACD,qBAAqB,EAAE,uCAAuC;IAC9D,SAAS,EAAE;QACT,GAAG,qBAAqB;QACxB,GAAG,6BAA6B;QAChC,GAAG,8BAA8B;QACjC,oBAAoB,EAAE,yBAAyB;QAC/C,sBAAsB,EAAE,2BAA2B;QACnD,oBAAoB,EAAE,2BAA2B;QACjD,qBAAqB,EAAE,0BAA0B;QACjD,iBAAiB,EAAE,sBAAsB;QACzC,eAAe,EAAE,oCAAoC;QACrD,mFAAmF;QACnF,kBAAkB,EAAE,oBAAoB;QACxC,uBAAuB,EAAE,+BAA+B;QACxD,sBAAsB,EAAE,2BAA2B;QACnD,GAAG,EAAE,UAAU;QACf,YAAY,EAAE,iCAAiC;QAC/C,gBAAgB,EAAE,qBAAqB;QACvC,QAAQ,EAAE,eAAe;QACzB,qBAAqB,EAAE,0BAA0B;KAClD;IACD,iEAAiE;IACjE,gBAAgB,EAAE;QAChB,EAAE,EAAE;YACF,IAAI,EAAE,0BAA0B;YAChC,MAAM,EAAE,qNAAqN;SAC9N;QACD,4FAA4F;QAC5F,IAAI,EAAE;YACJ,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,uNAAuN;SAChO;QACD,qFAAqF;QACrF,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,yaAAya;SAClb;KACF;CAC4B,CAAC"}
|
package/dist/runners/pi/cli.d.ts
CHANGED
package/dist/runners/pi/cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/runners/pi/cli.ts"],"names":[],"mappings":"AAEA,oHAAoH;AACpH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE;IACrD,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE;IACnC,aAAa,EAAE,IAAI;
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/runners/pi/cli.ts"],"names":[],"mappings":"AAEA,oHAAoH;AACpH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,kBAAkB,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE;IACrD,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,aAAa,EAAE,EAAE;IACnC,aAAa,EAAE,IAAI;IACnB,UAAU,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE;CACf,CAAC"}
|
|
@@ -50,4 +50,26 @@ export declare const PI_MOCK: {
|
|
|
50
50
|
readonly 'steer-late': 'mock:steer-late';
|
|
51
51
|
readonly 'provider-unavailable': 'mock:provider-unavailable';
|
|
52
52
|
};
|
|
53
|
+
readonly parityExemptions: {
|
|
54
|
+
readonly P9: {
|
|
55
|
+
readonly kind: 'scenario-unconstructible';
|
|
56
|
+
readonly reason: 'Pi\'s RPC wire carries no tool approval request for Squawk to answer; Squawk\'s tools reach Pi as an --extension admitted through --tools (R35), not as an MCP server.';
|
|
57
|
+
};
|
|
58
|
+
readonly A9: {
|
|
59
|
+
readonly kind: 'capability-absent';
|
|
60
|
+
readonly reason: 'Pi RPC asks through cezar_ask; its wire emits no native mid-turn ask.requested (A3/A4 cover the cezar_ask policy).';
|
|
61
|
+
};
|
|
62
|
+
readonly I2: {
|
|
63
|
+
readonly kind: 'capability-absent';
|
|
64
|
+
readonly reason: 'pi 0.87.0 delivers an acknowledged steer in the running turn or runs it as the next prompt (rpc.md steer; #505 repro), so accepted input is never left unread.';
|
|
65
|
+
};
|
|
66
|
+
readonly D1: {
|
|
67
|
+
readonly kind: 'capability-absent';
|
|
68
|
+
readonly reason: 'pi 1.4.0 has no built-in cross-session tool; an extension may add one, and its name cannot be discovered as messaging.';
|
|
69
|
+
};
|
|
70
|
+
readonly D3: {
|
|
71
|
+
readonly kind: 'capability-absent';
|
|
72
|
+
readonly reason: 'pi 1.4.0 has no built-in messaging tool; an extension may add one, and its name cannot be discovered as messaging.';
|
|
73
|
+
};
|
|
74
|
+
};
|
|
53
75
|
};
|
package/dist/runners/pi/mock.js
CHANGED
|
@@ -11,5 +11,32 @@ export const PI_MOCK = {
|
|
|
11
11
|
'provider-unavailable': 'mock:provider-unavailable',
|
|
12
12
|
// No `subagent`: see the S9 and R12 entries in PARITY_EXEMPTIONS.
|
|
13
13
|
},
|
|
14
|
+
// The parity cells this wire cannot carry (`PARITY_EXEMPTIONS`).
|
|
15
|
+
parityExemptions: {
|
|
16
|
+
P9: {
|
|
17
|
+
kind: 'scenario-unconstructible',
|
|
18
|
+
reason: 'Pi\'s RPC wire carries no tool approval request for Squawk to answer; Squawk\'s tools reach Pi as an --extension admitted through --tools (R35), not as an MCP server.',
|
|
19
|
+
},
|
|
20
|
+
// A9: a native mid-turn ask.requested exists only where the declared native ask is answerable;
|
|
21
|
+
// the parity kit checks this reason against the facts.
|
|
22
|
+
A9: {
|
|
23
|
+
kind: 'capability-absent',
|
|
24
|
+
reason: 'Pi RPC asks through cezar_ask; its wire emits no native mid-turn ask.requested (A3/A4 cover the cezar_ask policy).',
|
|
25
|
+
},
|
|
26
|
+
I2: {
|
|
27
|
+
kind: 'capability-absent',
|
|
28
|
+
reason: 'pi 0.87.0 delivers an acknowledged steer in the running turn or runs it as the next prompt (rpc.md steer; #505 repro), so accepted input is never left unread.',
|
|
29
|
+
},
|
|
30
|
+
// D1 (hearsay-tools/cezarion#2279), checked against the installed CLI on 2026-10-30.
|
|
31
|
+
D1: {
|
|
32
|
+
kind: 'capability-absent',
|
|
33
|
+
reason: 'pi 1.4.0 has no built-in cross-session tool; an extension may add one, and its name cannot be discovered as messaging.',
|
|
34
|
+
},
|
|
35
|
+
// D3 (hearsay-tools/cezarion#1994), checked against the installed CLI on 2026-10-27.
|
|
36
|
+
D3: {
|
|
37
|
+
kind: 'capability-absent',
|
|
38
|
+
reason: 'pi 1.4.0 has no built-in messaging tool; an extension may add one, and its name cannot be discovered as messaging.',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
14
41
|
};
|
|
15
42
|
//# sourceMappingURL=mock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../src/runners/pi/mock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEpH,yFAAyF;AACzF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC1F,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,iBAAiB;IACzB,SAAS,EAAE;QACT,GAAG,qBAAqB;QACxB,GAAG,wBAAwB;QAC3B,GAAG,6BAA6B;QAChC,sBAAsB,EAAE,2BAA2B;QACnD,kEAAkE;KACnE;CAC4B,CAAC"}
|
|
1
|
+
{"version":3,"file":"mock.js","sourceRoot":"","sources":["../../../src/runners/pi/mock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,MAAM,oBAAoB,CAAC;AAEpH,yFAAyF;AACzF,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,cAAc,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC1F,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,iBAAiB;IACzB,SAAS,EAAE;QACT,GAAG,qBAAqB;QACxB,GAAG,wBAAwB;QAC3B,GAAG,6BAA6B;QAChC,sBAAsB,EAAE,2BAA2B;QACnD,kEAAkE;KACnE;IACD,iEAAiE;IACjE,gBAAgB,EAAE;QAChB,EAAE,EAAE;YACF,IAAI,EAAE,0BAA0B;YAChC,MAAM,EAAE,wKAAwK;SACjL;QACD,+FAA+F;QAC/F,uDAAuD;QACvD,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,oHAAoH;SAC7H;QACD,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,gKAAgK;SACzK;QACD,qFAAqF;QACrF,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,wHAAwH;SACjI;QACD,qFAAqF;QACrF,EAAE,EAAE;YACF,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,oHAAoH;SAC7H;KACF;CAC4B,CAAC"}
|
|
@@ -58,6 +58,29 @@ export declare function ciProgressPlugs(): {
|
|
|
58
58
|
export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
59
59
|
"/workspace/activity": {
|
|
60
60
|
$get: {
|
|
61
|
+
output: {
|
|
62
|
+
error: string;
|
|
63
|
+
code?: "invalid_input" | undefined;
|
|
64
|
+
};
|
|
65
|
+
outputFormat: "json";
|
|
66
|
+
status: 400;
|
|
67
|
+
input: {
|
|
68
|
+
query: {
|
|
69
|
+
project?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
} | {
|
|
73
|
+
output: {
|
|
74
|
+
error: string;
|
|
75
|
+
};
|
|
76
|
+
outputFormat: "json";
|
|
77
|
+
status: 404 | 409 | 503;
|
|
78
|
+
input: {
|
|
79
|
+
query: {
|
|
80
|
+
project?: string | undefined;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
} | {
|
|
61
84
|
output: {
|
|
62
85
|
generatedAt: string;
|
|
63
86
|
projects: {
|
|
@@ -288,29 +311,6 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
|
|
|
288
311
|
project?: string | undefined;
|
|
289
312
|
};
|
|
290
313
|
};
|
|
291
|
-
} | {
|
|
292
|
-
output: {
|
|
293
|
-
error: string;
|
|
294
|
-
code?: "invalid_input" | undefined;
|
|
295
|
-
};
|
|
296
|
-
outputFormat: "json";
|
|
297
|
-
status: 400;
|
|
298
|
-
input: {
|
|
299
|
-
query: {
|
|
300
|
-
project?: string | undefined;
|
|
301
|
-
};
|
|
302
|
-
};
|
|
303
|
-
} | {
|
|
304
|
-
output: {
|
|
305
|
-
error: string;
|
|
306
|
-
};
|
|
307
|
-
outputFormat: "json";
|
|
308
|
-
status: 404 | 409 | 503;
|
|
309
|
-
input: {
|
|
310
|
-
query: {
|
|
311
|
-
project?: string | undefined;
|
|
312
|
-
};
|
|
313
|
-
};
|
|
314
314
|
};
|
|
315
315
|
};
|
|
316
316
|
}, "/", "/workspace/activity">;
|
|
@@ -30,7 +30,10 @@ export interface OpenTarget {
|
|
|
30
30
|
*
|
|
31
31
|
* The optional environment arguments keep Windows/WSL suffix behavior testable on any host. */
|
|
32
32
|
export declare function resolveOnPath(bin: string, platform?: NodeJS.Platform, wsl?: boolean, searchPath?: string): string | null;
|
|
33
|
-
/** The runner behind a `cli:<runner>` open target, or null when the id isn't a CLI handoff.
|
|
33
|
+
/** The runner behind a `cli:<runner>` open target, or null when the id isn't a CLI handoff. Every
|
|
34
|
+
* registered runner's CLI is a handoff target (#cli-handoff): selecting one opens a terminal that
|
|
35
|
+
* resumes THIS run's session when the runner matches, or launches a fresh CLI in the worktree
|
|
36
|
+
* otherwise. The actual command is built server-side (needs the run's session). */
|
|
34
37
|
export declare function agentCliRunner(targetId: string): string | null;
|
|
35
38
|
/** The open targets available on this machine: the file manager, a terminal, every detected
|
|
36
39
|
* editor, and every installed coding-agent CLI. Order is stable so the menu never reshuffles. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { registeredRunners } from '../core/runner-registry.js';
|
|
2
2
|
import { accessSync, constants, existsSync } from 'node:fs';
|
|
3
3
|
import { homedir } from 'node:os';
|
|
4
4
|
import { join } from 'node:path';
|
|
@@ -74,20 +74,13 @@ function editorAvailable(editor) {
|
|
|
74
74
|
return true;
|
|
75
75
|
return false;
|
|
76
76
|
}
|
|
77
|
-
/**
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
|
|
81
|
-
{ runner: 'claude', label: 'Claude CLI', icon: 'claude', bin: 'claude', envBin: productEnv('CLAUDE_BIN') },
|
|
82
|
-
{ runner: 'codex', label: 'Codex CLI', icon: 'codex', bin: 'codex', envBin: productEnv('CODEX_BIN') },
|
|
83
|
-
{ runner: 'opencode', label: 'OpenCode', icon: 'opencode', bin: 'opencode', envBin: productEnv('OPENCODE_BIN') },
|
|
84
|
-
{ runner: 'pi', label: 'pi CLI', icon: 'pi', bin: 'pi', envBin: productEnv('PI_BIN') },
|
|
85
|
-
{ runner: 'omp', label: 'OMP CLI', icon: 'omp', bin: 'omp', envBin: productEnv('OMP_BIN') },
|
|
86
|
-
];
|
|
87
|
-
/** The runner behind a `cli:<runner>` open target, or null when the id isn't a CLI handoff. */
|
|
77
|
+
/** The runner behind a `cli:<runner>` open target, or null when the id isn't a CLI handoff. Every
|
|
78
|
+
* registered runner's CLI is a handoff target (#cli-handoff): selecting one opens a terminal that
|
|
79
|
+
* resumes THIS run's session when the runner matches, or launches a fresh CLI in the worktree
|
|
80
|
+
* otherwise. The actual command is built server-side (needs the run's session). */
|
|
88
81
|
export function agentCliRunner(targetId) {
|
|
89
|
-
const match =
|
|
90
|
-
return match ? match.
|
|
82
|
+
const match = registeredRunners().find((definition) => `cli:${definition.id}` === targetId);
|
|
83
|
+
return match ? match.id : null;
|
|
91
84
|
}
|
|
92
85
|
/** The open targets available on this machine: the file manager, a terminal, every detected
|
|
93
86
|
* editor, and every installed coding-agent CLI. Order is stable so the menu never reshuffles. */
|
|
@@ -100,9 +93,11 @@ export function detectOpenTargets() {
|
|
|
100
93
|
if (editorAvailable(editor))
|
|
101
94
|
targets.push({ id: editor.id, label: editor.label, icon: editor.icon });
|
|
102
95
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
96
|
+
// Registration order: the built-in runners register in display order.
|
|
97
|
+
for (const { id, cli, detection } of registeredRunners()) {
|
|
98
|
+
const override = detection.binOverride();
|
|
99
|
+
if ((override && existsSync(override)) || onPath(detection.binary)) {
|
|
100
|
+
targets.push({ id: `cli:${id}`, label: cli.openTarget.label, icon: cli.openTarget.icon });
|
|
106
101
|
}
|
|
107
102
|
}
|
|
108
103
|
return targets;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-in-app.js","sourceRoot":"","sources":["../../src/server/open-in-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"open-in-app.js","sourceRoot":"","sources":["../../src/server/open-in-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGjC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAuCzD,MAAM,OAAO,GAAgB;IAC3B,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,oBAAoB,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,EAAE,mBAAmB,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IACrH,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;uFAGuF;AACvF,MAAM,UAAU,aAAa,CAAC,WAAmB,EAAE,GAAW,EAAE,GAAG,GAAY,KAAK,EAAE;IACpF,IAAI,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC;QAAE,OAAO,sBAAsB,CAAC,GAAG,CAAC,CAAC;IACjF,OAAO,GAAG,CAAC;AACb,CAAC;AAED;gFACgF;AAChF,SAAS,mBAAmB,CAAC,KAAwB;IACnD,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC1D,OAAO,CACL,UAAU,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CACvB;QACE,iBAAiB,IAAI,MAAM;QAC3B,IAAI,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,GAAG,IAAI,MAAM,CAAC;QAC9C,wBAAwB,IAAI,MAAM;KACnC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAC7B,IAAI,UAAU,CAAC,CAAC,CAAE,CACpB,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hearsay-tools/squawk",
|
|
3
|
-
"version": "0.18.0-dev.
|
|
3
|
+
"version": "0.18.0-dev.7600",
|
|
4
4
|
"description": "Local cockpit for running and tracking AI agent tasks in your repo. Uses your logged-in `claude` CLI and `gh` — zero config, zero database.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@babel/parser": "^8.0.8",
|
|
65
65
|
"@babel/types": "^8.0.8",
|
|
66
|
-
"@open-mercato/cezar-api-client": "0.18.0-dev.
|
|
67
|
-
"@open-mercato/cezar-contract": "0.18.0-dev.
|
|
66
|
+
"@open-mercato/cezar-api-client": "0.18.0-dev.7600",
|
|
67
|
+
"@open-mercato/cezar-contract": "0.18.0-dev.7600",
|
|
68
68
|
"@types/node": "^24.19.1",
|
|
69
69
|
"@types/ws": "^8.18.1",
|
|
70
70
|
"esbuild": "^0.28.1",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "3b738ea211dfd41f59daed2940673723be43d05c"
|
|
85
85
|
}
|