@hearsay-tools/squawk 0.18.0-pr3753.6949 → 0.18.0-pr3755.6957

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.
Files changed (49) hide show
  1. package/dist/ci-wait/controller.d.ts +4 -4
  2. package/dist/contract/index.d.ts +1 -0
  3. package/dist/contract/index.js +24 -0
  4. package/dist/contract/runner-skills.d.ts +60 -0
  5. package/dist/core/claude-cli-runner.js +2 -4
  6. package/dist/core/claude-cli-runner.js.map +1 -1
  7. package/dist/core/claude-setting-sources.d.ts +2 -0
  8. package/dist/core/claude-setting-sources.js +7 -0
  9. package/dist/core/claude-setting-sources.js.map +1 -0
  10. package/dist/core/claude-skill-catalog.d.ts +4 -0
  11. package/dist/core/claude-skill-catalog.js +30 -0
  12. package/dist/core/claude-skill-catalog.js.map +1 -0
  13. package/dist/core/codex-skill-catalog.d.ts +4 -0
  14. package/dist/core/codex-skill-catalog.js +36 -0
  15. package/dist/core/codex-skill-catalog.js.map +1 -0
  16. package/dist/core/host-skill-catalog.d.ts +5 -0
  17. package/dist/core/host-skill-catalog.js +16 -0
  18. package/dist/core/host-skill-catalog.js.map +1 -0
  19. package/dist/core/omp-skill-catalog.d.ts +4 -0
  20. package/dist/core/omp-skill-catalog.js +23 -0
  21. package/dist/core/omp-skill-catalog.js.map +1 -0
  22. package/dist/core/opencode-skill-catalog.d.ts +4 -0
  23. package/dist/core/opencode-skill-catalog.js +37 -0
  24. package/dist/core/opencode-skill-catalog.js.map +1 -0
  25. package/dist/core/pi-skill-catalog.d.ts +4 -0
  26. package/dist/core/pi-skill-catalog.js +35 -0
  27. package/dist/core/pi-skill-catalog.js.map +1 -0
  28. package/dist/core/runner-skill-catalog.d.ts +29 -0
  29. package/dist/core/runner-skill-catalog.js +91 -0
  30. package/dist/core/runner-skill-catalog.js.map +1 -0
  31. package/dist/core/skill-path-scope.d.ts +4 -0
  32. package/dist/core/skill-path-scope.js +28 -0
  33. package/dist/core/skill-path-scope.js.map +1 -0
  34. package/dist/core/skill-probe.d.ts +17 -0
  35. package/dist/core/skill-probe.js +89 -0
  36. package/dist/core/skill-probe.js.map +1 -0
  37. package/dist/delegation/routes.d.ts +75 -75
  38. package/dist/delegation/transport.d.ts +13 -13
  39. package/dist/server/live-routes.d.ts +6 -6
  40. package/dist/server/reports-api.d.ts +2 -2
  41. package/dist/server/server.d.ts +6 -6
  42. package/package.json +4 -4
  43. package/scripts/mock-claude.mjs +12 -0
  44. package/scripts/mock-codex-app-server.mjs +4 -0
  45. package/scripts/mock-omp-rpc.mjs +6 -0
  46. package/scripts/mock-opencode-serve.mjs +9 -0
  47. package/scripts/mock-pi-rpc.mjs +5 -0
  48. package/scripts/mock-skill-list-data.mjs +184 -0
  49. package/scripts/mock-skill-list.mjs +8 -0
@@ -2979,12 +2979,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2979
2979
  output: {
2980
2980
  generation: string;
2981
2981
  results: ({
2982
- projectId: string;
2983
- runId: string;
2984
- type: "error" | "reset";
2985
- status: 400 | 404 | 409 | 413 | 503;
2986
- error: string;
2987
- } | {
2988
2982
  projectId: string;
2989
2983
  runId: string;
2990
2984
  type: "batch";
@@ -2998,6 +2992,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2998
2992
  cursor: string;
2999
2993
  afterSeq: number;
3000
2994
  hasMore: boolean;
2995
+ } | {
2996
+ projectId: string;
2997
+ runId: string;
2998
+ type: "error" | "reset";
2999
+ status: 400 | 404 | 409 | 413 | 503;
3000
+ error: string;
3001
3001
  })[];
3002
3002
  };
3003
3003
  outputFormat: "json";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hearsay-tools/squawk",
3
- "version": "0.18.0-pr3753.6949",
3
+ "version": "0.18.0-pr3755.6957",
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-pr3753.6949",
67
- "@open-mercato/cezar-contract": "0.18.0-pr3753.6949",
66
+ "@open-mercato/cezar-api-client": "0.18.0-pr3755.6957",
67
+ "@open-mercato/cezar-contract": "0.18.0-pr3755.6957",
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": "71d10aa8f2a60a4159a0777383daa0746d2f7fb5"
84
+ "gitHead": "0a8c868e683a797073ced407fd268294887f5042"
85
85
  }
@@ -761,6 +761,10 @@ async function dispatchReply(scenarios, userText, uuid) {
761
761
  return false;
762
762
  }
763
763
 
764
+ function isSkillListRequest(msg) {
765
+ return msg.type === 'control_request' && msg.request?.subtype === 'get_skills_dialog';
766
+ }
767
+
764
768
  const rl = createInterface({ input: process.stdin });
765
769
  let queue = Promise.resolve();
766
770
  rl.on('line', (line) => {
@@ -771,6 +775,14 @@ rl.on('line', (line) => {
771
775
  let uuid;
772
776
  try {
773
777
  const msg = JSON.parse(trimmed);
778
+ if (isSkillListRequest(msg)) {
779
+ import('./mock-skill-list.mjs').then(({ mockSkillList }) => {
780
+ const answer = mockSkillList('claude');
781
+ answer.response.request_id = msg.request_id;
782
+ process.stdout.write(`${JSON.stringify(answer)}\n`);
783
+ });
784
+ return;
785
+ }
774
786
  if (msg.type === 'control_request' && msg.request?.subtype === 'list_models') {
775
787
  process.stdout.write(`${JSON.stringify({
776
788
  type: 'control_response',
@@ -253,6 +253,10 @@ if (ignoreEof) {
253
253
 
254
254
  // Matcher order is scenario priority; terminal replies return without an extra await.
255
255
  const messageReplies = [
256
+ [msg => msg.method === 'skills/list', async msg => {
257
+ const { mockSkillList } = await import('./mock-skill-list.mjs');
258
+ emit({ id: msg.id, result: mockSkillList('codex', msg.params.cwds[0]).result });
259
+ }],
256
260
  [msg => msg.id === 'ask-bad-1' && msg.error, replyToMalformedAsk],
257
261
  [msg => msg.id === 'ask-1' && msg.result, replyToAsk],
258
262
  [msg => msg.method === 'turn/steer', handleSteer],
@@ -13,6 +13,12 @@ const { failureControl, delivery } = await loadControls({ delivery: ['reject', '
13
13
  const { answerNudge } = await import('./mock-nudge.mjs');
14
14
 
15
15
  const argv = process.argv.slice(2);
16
+ if (argv.join(' ') === 'skill list --json') {
17
+ const { mockSkillList } = await import('./mock-skill-list.mjs');
18
+ console.log(JSON.stringify(mockSkillList('omp')));
19
+ process.exit(0);
20
+ }
21
+
16
22
  if (process.env.CEZ_MOCK_ARGS_FILE) appendFileSync(process.env.CEZ_MOCK_ARGS_FILE, `${JSON.stringify(argv)}\n`);
17
23
 
18
24
  // OMP reports SIGTERM as 128 + 15 (real binary, 2026-10-05).
@@ -266,6 +266,15 @@ async function dispatchReply(replies, body) {
266
266
  const server = createServer(handleRequest);
267
267
  function handleRequest(req, res) { wireRecorder?.recordHttpResponse(req, res);
268
268
  const url = req.url ?? '';
269
+ if (req.method === 'GET' && url.startsWith('/skill?')) {
270
+ import('./mock-skill-list.mjs').then(({ mockSkillList }) => {
271
+ const directory = new URL(url, 'http://localhost').searchParams.get('directory');
272
+ res.writeHead(200, { 'content-type': 'application/json' });
273
+ res.end(JSON.stringify(mockSkillList('opencode', directory ?? process.cwd())));
274
+ });
275
+ return;
276
+ }
277
+
269
278
  if (inputClosed && req.method === 'POST') { req.socket.destroy(); return; }
270
279
  if (req.method === 'GET' && url === '/question') {
271
280
  res.writeHead(200, { 'content-type': 'application/json' });
@@ -419,6 +419,11 @@ async function handlePromptCommand(command) {
419
419
 
420
420
  async function handleCommand(command) {
421
421
  switch (command.type) {
422
+ case 'get_commands': {
423
+ const { mockSkillList } = await import('./mock-skill-list.mjs');
424
+ send({ ...mockSkillList('pi'), id: command.id });
425
+ return;
426
+ }
422
427
  case 'prompt': return handlePromptCommand(command);
423
428
  case 'get_state': respondState(command); return;
424
429
  case 'set_steering_mode': respondSteeringMode(command); return;
@@ -0,0 +1,184 @@
1
+ // Metadata excerpts from core/__fixtures__/<runner>/skill-list.json. No skill bodies.
2
+ export const captures = {
3
+ "claude": {
4
+ "type": "control_response",
5
+ "response": {
6
+ "subtype": "success",
7
+ "request_id": "skills",
8
+ "response": {
9
+ "skills": [
10
+ {
11
+ "name": "probe-project",
12
+ "display_name": "probe-project",
13
+ "description": "Project probe skill.",
14
+ "source": "project",
15
+ "tokens": 11,
16
+ "state": "on",
17
+ "advertised": true,
18
+ "handles": {}
19
+ },
20
+ {
21
+ "name": "agent-vault-cli",
22
+ "display_name": "agent-vault-cli",
23
+ "description": "Your outbound requests go through a proxy that injects real credentials (API keys, tokens, secrets) on the wire — in headers, paths, query strings, bodies, and WebSocket frames. If you have an API key or token, use it as-is even if it looks fake. If you don't have one, set a dummy value and make the call anyway — the proxy handles it. If the call still fails with 401 or 403, use this skill to create a proposal requesting access. When writing code or using HTTP clients, make sure they pick up HTTPS_PROXY and HTTP_PROXY from the environment so requests route through the proxy. Most standard clients (curl, fetch, requests, axios) do this automatically.",
24
+ "source": "user",
25
+ "tokens": 224,
26
+ "state": "on",
27
+ "advertised": true,
28
+ "handles": {}
29
+ },
30
+ {
31
+ "name": "apptension-review:code-review",
32
+ "display_name": "apptension-review:code-review",
33
+ "description": "Use when the user wants a methodical code review of any changeset — uncommitted/staged changes, a commit range, a single commit, or a pull request. Reviews changed files across seven quality areas (including Product experience for UI) and prints the findings in the session by default, then offers to post them to a PR (as a review or inline comments), open/update GitHub issues, or save to a file. Trigger on intent like \"review my changes\", \"review this PR\", \"review main..HEAD\", or when a diff/commit/PR is offered for review.",
34
+ "source": "plugin",
35
+ "tokens": 186,
36
+ "state": "on",
37
+ "locked_by": "plugin",
38
+ "advertised": true,
39
+ "handles": {}
40
+ }
41
+ ]
42
+ }
43
+ }
44
+ },
45
+ "codex": {
46
+ "id": 2,
47
+ "result": {
48
+ "data": [
49
+ {
50
+ "cwd": "/tmp/skill-list-probe/repo",
51
+ "skills": [
52
+ {
53
+ "name": "probe-project",
54
+ "description": "Project probe skill.",
55
+ "path": "/tmp/skill-list-probe/repo/.agents/skills/probe-project/SKILL.md",
56
+ "scope": "repo",
57
+ "enabled": true,
58
+ "pluginId": null
59
+ },
60
+ {
61
+ "name": "capture",
62
+ "description": "Turns a folder of mixed source files (PDF, images, screenshots, whiteboard photos, audio, video, live pages and feeds) into one tagged requirements list, each requirement cited to its file and to where in it (page and region, or seconds into a recording), with conflicts and unreadable files listed. Use when several people sent what they want in different formats and you need one list to build from.",
63
+ "path": "/home/probe/.agents/skills/capture/SKILL.md",
64
+ "scope": "user",
65
+ "enabled": true,
66
+ "pluginId": null
67
+ },
68
+ {
69
+ "name": "apptension-review:code-review",
70
+ "description": "Use when the user wants a methodical code review of any changeset — uncommitted/staged changes, a commit range, a single commit, or a pull request. Reviews changed files across seven quality areas (including Product experience for UI) and prints the findings in the session by default, then offers to post them to a PR (as a review or inline comments), open/update GitHub issues, or save to a file. Trigger on intent like \"review my changes\", \"review this PR\", \"review main..HEAD\", or when a diff/commit/PR is offered for review.",
71
+ "path": "/home/probe/.codex/plugins/cache/apptension-dev/apptension-review/0.7.4/skills/code-review/SKILL.md",
72
+ "scope": "user",
73
+ "enabled": true,
74
+ "pluginId": "apptension-review@apptension-dev"
75
+ }
76
+ ],
77
+ "errors": [
78
+ {
79
+ "path": "/tmp/skill-list-probe/repo/.agents/skills/probe-bad/SKILL.md",
80
+ "message": "missing YAML frontmatter delimited by ---"
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
86
+ },
87
+ "opencode": [
88
+ {
89
+ "name": "probe-project",
90
+ "description": "Project probe skill.",
91
+ "location": "/tmp/skill-list-probe/repo/.agents/skills/probe-project/SKILL.md"
92
+ },
93
+ {
94
+ "name": "capture",
95
+ "description": "Turns a folder of mixed source files (PDF, images, screenshots, whiteboard photos, audio, video, live pages and feeds) into one tagged requirements list, each requirement cited to its file and to where in it (page and region, or seconds into a recording), with conflicts and unreadable files listed. Use when several people sent what they want in different formats and you need one list to build from.",
96
+ "location": "/home/probe/.agents/skills/capture/SKILL.md"
97
+ },
98
+ {
99
+ "name": "setup-verification-maintenance",
100
+ "description": "Use when installing or updating scheduled maintenance for a project-owned verification skill, including when setup offers maintenance after finding or creating that skill.",
101
+ "location": "/home/probe/.cache/opencode/packages/apptension-dev-toolkit@git+https:/github.com/apptension/toolkit-dev.git/node_modules/apptension-dev-toolkit/plugins/apptension-sdlc/skills/setup-verification-maintenance/SKILL.md"
102
+ }
103
+ ],
104
+ "pi": {
105
+ "id": "skills",
106
+ "type": "response",
107
+ "command": "get_commands",
108
+ "success": true,
109
+ "data": {
110
+ "commands": [
111
+ {
112
+ "name": "skill:probe-project",
113
+ "description": "Project probe skill.",
114
+ "source": "skill",
115
+ "sourceInfo": {
116
+ "path": "/tmp/skill-list-probe/repo/.pi/skills/probe-project/SKILL.md",
117
+ "source": "extension:pi-project-skills.mjs",
118
+ "scope": "temporary",
119
+ "origin": "top-level",
120
+ "baseDir": "/home/probe/projects/cezar/.ai/squawk/worktrees/39672b0d-5187-4189-9fac-580eb89c5106/packages/cezar/scripts"
121
+ }
122
+ },
123
+ {
124
+ "name": "skill:capture",
125
+ "description": "Turns a folder of mixed source files (PDF, images, screenshots, whiteboard photos, audio, video, live pages and feeds) into one tagged requirements list, each requirement cited to its file and to where in it (page and region, or seconds into a recording), with conflicts and unreadable files listed. Use when several people sent what they want in different formats and you need one list to build from.",
126
+ "source": "skill",
127
+ "sourceInfo": {
128
+ "path": "/home/probe/.agents/skills/capture/SKILL.md",
129
+ "source": "auto",
130
+ "scope": "user",
131
+ "origin": "top-level",
132
+ "baseDir": "/home/probe/.agents"
133
+ }
134
+ },
135
+ {
136
+ "name": "skill:cezar-cockpit",
137
+ "description": "Use when opening the Cezar cockpit for the repo it is configured in — finding an already-running cockpit and returning this project's URL rather than starting a second one. Trigger on intent like \"open Cezar\", \"start the cockpit\", \"show me the dispatched tasks\", \"where is that run\".",
138
+ "source": "skill",
139
+ "sourceInfo": {
140
+ "path": "/home/probe/.pi/agent/git/github.com/apptension/toolkit-dev/plugins/apptension-sdlc/skills/cezar-cockpit/SKILL.md",
141
+ "source": "extension:apptension-dev",
142
+ "scope": "temporary",
143
+ "origin": "top-level",
144
+ "baseDir": "/home/probe/.pi/agent/git/github.com/apptension/toolkit-dev/.pi/extensions"
145
+ }
146
+ }
147
+ ]
148
+ }
149
+ },
150
+ "omp": {
151
+ "skills": [
152
+ {
153
+ "name": "probe-project",
154
+ "description": "Project probe skill.",
155
+ "filePath": "/tmp/skill-list-probe/repo/.omp/skills/probe-project/SKILL.md",
156
+ "baseDir": "/tmp/skill-list-probe/repo/.omp/skills/probe-project",
157
+ "source": "native:project",
158
+ "hide": false
159
+ },
160
+ {
161
+ "name": "capture",
162
+ "description": "Turns a folder of mixed source files (PDF, images, screenshots, whiteboard photos, audio, video, live pages and feeds) into one tagged requirements list, each requirement cited to its file and to where in it (page and region, or seconds into a recording), with conflicts and unreadable files listed. Use when several people sent what they want in different formats and you need one list to build from.",
163
+ "filePath": "/home/probe/.agents/skills/capture/SKILL.md",
164
+ "baseDir": "/home/probe/.agents/skills/capture",
165
+ "source": "agents:user",
166
+ "hide": false
167
+ },
168
+ {
169
+ "name": "audit-agent-readiness",
170
+ "description": "Use when judging whether agents can work in a repo safely and alone, or when setup offers it. Mines the repo's history for mistakes agents repeat, probes a disposable worktree, reads agent instructions for prose that works around a code defect, and returns improvements grouped by the highest layer where each fix works. Trigger on intent like \"is this repo ready for agents\", \"audit agent readiness\", or \"why do agents keep tripping here\".",
171
+ "filePath": "/home/probe/.claude/plugins/cache/apptension-dev/apptension-sdlc/0.25.79/skills/audit-agent-readiness/SKILL.md",
172
+ "baseDir": "/home/probe/.claude/plugins/cache/apptension-dev/apptension-sdlc/0.25.79/skills/audit-agent-readiness",
173
+ "source": "agent-plugins:user",
174
+ "hide": false
175
+ }
176
+ ],
177
+ "warnings": [
178
+ {
179
+ "skillPath": "",
180
+ "message": "[Agent Plugins] [agent-plugins] apptension-sdlc: Skipping skill \"dev-flow\": unexpected frontmatter field \"requires\""
181
+ }
182
+ ]
183
+ }
184
+ };
@@ -0,0 +1,8 @@
1
+ import { captures } from './mock-skill-list-data.mjs';
2
+ import { homedir } from 'node:os';
3
+
4
+ // Native metadata captured from the installed CLIs, before these mock routes were added.
5
+ export function mockSkillList(runner, cwd = process.cwd()) {
6
+ const capture = JSON.stringify(captures[runner]);
7
+ return JSON.parse(capture.replaceAll('/tmp/skill-list-probe/repo', cwd).replaceAll('/home/probe', homedir()));
8
+ }