@hearsay-tools/squawk 0.18.0-dev.6973 → 0.18.0-dev.6981
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/automations/github-poller.js +1 -5
- package/dist/automations/github-poller.js.map +1 -1
- package/dist/automations/prompts.js +19 -14
- package/dist/automations/prompts.js.map +1 -1
- package/dist/automations/scheduler.d.ts +1 -1
- package/dist/automations/scheduler.js +3 -1
- package/dist/automations/scheduler.js.map +1 -1
- package/dist/automations/service.d.ts +1 -1
- package/dist/automations/service.js +3 -1
- package/dist/automations/service.js.map +1 -1
- package/dist/automations/tool-adapter.d.ts +6 -1
- package/dist/automations/tool-adapter.js +85 -1
- package/dist/automations/tool-adapter.js.map +1 -1
- package/dist/automations/tool-github.d.ts +9 -0
- package/dist/automations/tool-github.js +9 -0
- package/dist/automations/tool-github.js.map +1 -0
- package/dist/automations/tool-timeout.d.ts +2 -0
- package/dist/automations/tool-timeout.js +22 -0
- package/dist/automations/tool-timeout.js.map +1 -0
- package/dist/ci-wait/client.d.ts +2 -0
- package/dist/ci-wait/client.js +5 -0
- package/dist/ci-wait/client.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +347 -0
- package/dist/ci-wait/controller.js +13 -0
- package/dist/ci-wait/controller.js.map +1 -1
- package/dist/ci-wait/tool-catalog.d.ts +29 -0
- package/dist/ci-wait/tool-catalog.js +16 -1
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +100 -1
- package/dist/ci-wait/tools.js +10 -4
- package/dist/ci-wait/tools.js.map +1 -1
- package/dist/contract/automation-tool.d.ts +320 -0
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/index.js +31 -7
- package/dist/core/github-request-limits.d.ts +9 -0
- package/dist/core/github-request-limits.js +13 -0
- package/dist/core/github-request-limits.js.map +1 -0
- package/dist/delegation/routes.d.ts +4 -4
- package/dist/delegation/transport.d.ts +11 -11
- package/dist/server/live-routes.d.ts +6 -6
- package/dist/server/server.d.ts +188 -188
- package/dist/workflows/run/squawk-tools.js +4 -0
- package/dist/workflows/run/squawk-tools.js.map +1 -1
- package/dist/workflows/run/types.d.ts +2 -0
- package/dist/workflows/run.d.ts +2 -2
- package/dist/workflows/run.js +2 -2
- package/package.json +4 -4
- package/scripts/mock-ci-tool.mjs +5 -0
- package/scripts/mock-omp-rpc.mjs +1 -1
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.6981",
|
|
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.6981",
|
|
67
|
+
"@open-mercato/cezar-contract": "0.18.0-dev.6981",
|
|
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": "06eed2e5cb5d712721f64444d84b3ded30fd4bdb"
|
|
85
85
|
}
|
package/scripts/mock-ci-tool.mjs
CHANGED
|
@@ -115,12 +115,17 @@ export async function toolPrompt(backend, wire, text) {
|
|
|
115
115
|
if (!steps.some(step => step[1])) throw new Error('mock:cezar-tool needs a tool name and base64 JSON arguments');
|
|
116
116
|
const responses = [];
|
|
117
117
|
let last;
|
|
118
|
+
let lastAutomation;
|
|
118
119
|
for (const [, name, encoded, gate] of steps) {
|
|
119
120
|
if (gate) { await gateOpen(Buffer.from(gate, 'base64').toString('utf8')); continue; }
|
|
120
121
|
const args = JSON.parse(Buffer.from(encoded, 'base64').toString('utf8'));
|
|
121
122
|
if (args.wait_id === 'last') args.wait_id = last;
|
|
123
|
+
if (name === 'cezar_automation' && args.id === 'last') args.id = lastAutomation;
|
|
122
124
|
const result = await probeSquawkTool(backend, wire, name, args);
|
|
123
125
|
try { last = JSON.parse(result.response.content[0].text.split('\n')[0]).wait_id ?? last; } catch { /* a refusal names no wait */ }
|
|
126
|
+
if (name === 'cezar_automation') {
|
|
127
|
+
try { lastAutomation = JSON.parse(result.response.content[0].text.split('\n')[0]).automation?.id ?? lastAutomation; } catch { /* a refusal names no automation */ }
|
|
128
|
+
}
|
|
124
129
|
responses.push(JSON.stringify(result.response));
|
|
125
130
|
}
|
|
126
131
|
// `mock:then <base64 text>` ends the turn with that text after the calls (an ask line, say).
|
package/scripts/mock-omp-rpc.mjs
CHANGED
|
@@ -70,7 +70,7 @@ if (typeof flags.get('--tools') === 'string') {
|
|
|
70
70
|
const registered = (name) => (BUILTIN_TOOLS.includes(name) && !GATED_TOOLS.has(name) && !disabled.includes(name))
|
|
71
71
|
|| mcpTools.includes(name)
|
|
72
72
|
|| (extensions.length > 0 && (['cezar_wait', 'cezar_ask', 'cezar_cancel_wait', 'cezar_done'].includes(name) || ((name === 'cezar_preview_serve' || name === 'cezar_preview_stop') && productEnv('PREVIEW') === '1')
|
|
73
|
-
|| ((name === 'cezar_schedule_task' || name === 'cezar_scheduled_tasks') && productEnv('AUTOMATIONS') !== '0')));
|
|
73
|
+
|| ((name === 'cezar_schedule_task' || name === 'cezar_scheduled_tasks' || name === 'cezar_automation') && productEnv('AUTOMATIONS') !== '0')));
|
|
74
74
|
// Mirrors v18.4.11 `emt()`: every missing name in ONE error, unknown names first, then the
|
|
75
75
|
// built-ins this session lacks, each line singular for one name.
|
|
76
76
|
const missing = tools.filter((name) => !registered(name));
|