@hearsay-tools/squawk 0.18.0-dev.6969 → 0.18.0-dev.6973

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 (69) 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/session-process.d.ts +3 -0
  32. package/dist/core/session-process.js +10 -0
  33. package/dist/core/session-process.js.map +1 -1
  34. package/dist/core/skill-path-scope.d.ts +4 -0
  35. package/dist/core/skill-path-scope.js +28 -0
  36. package/dist/core/skill-path-scope.js.map +1 -0
  37. package/dist/core/skill-probe.d.ts +17 -0
  38. package/dist/core/skill-probe.js +102 -0
  39. package/dist/core/skill-probe.js.map +1 -0
  40. package/dist/delegation/routes.d.ts +75 -75
  41. package/dist/delegation/transport.d.ts +13 -13
  42. package/dist/server/live-routes.d.ts +6 -6
  43. package/dist/server/reports-api.d.ts +2 -2
  44. package/dist/server/server.d.ts +6 -6
  45. package/dist/workflows/run/liveness-timers.d.ts +4 -0
  46. package/dist/workflows/run/liveness-timers.js +2 -0
  47. package/dist/workflows/run/liveness-timers.js.map +1 -1
  48. package/dist/workflows/run/turn-boundary.d.ts +4 -1
  49. package/dist/workflows/run/turn-boundary.js.map +1 -1
  50. package/dist/workflows/run/turn-nudges.d.ts +17 -4
  51. package/dist/workflows/run/turn-nudges.js +39 -11
  52. package/dist/workflows/run/turn-nudges.js.map +1 -1
  53. package/dist/workflows/run-states.js +1 -0
  54. package/dist/workflows/run-states.js.map +1 -1
  55. package/dist/workflows/turn-end.d.ts +1 -0
  56. package/dist/workflows/turn-end.js +1 -0
  57. package/dist/workflows/turn-end.js.map +1 -1
  58. package/package.json +4 -4
  59. package/scripts/mock-autonomous.mjs +7 -0
  60. package/scripts/mock-claude.mjs +12 -0
  61. package/scripts/mock-codex-app-server.mjs +4 -0
  62. package/scripts/mock-omp-rpc.mjs +6 -0
  63. package/scripts/mock-opencode-serve.mjs +9 -0
  64. package/scripts/mock-pi-rpc.mjs +5 -0
  65. package/scripts/mock-scenario.mjs +11 -0
  66. package/scripts/mock-skill-list-data.d.mts +1 -0
  67. package/scripts/mock-skill-list-data.mjs +184 -0
  68. package/scripts/mock-skill-list.d.mts +1 -0
  69. package/scripts/mock-skill-list.mjs +8 -0
@@ -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 @@
1
+ export function mockSkillList(runner: string, cwd?: string): unknown;
@@ -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
+ return JSON.parse(JSON.stringify(captures[runner]), (_key, value) => typeof value === 'string'
7
+ ? value.replaceAll('/tmp/skill-list-probe/repo', () => cwd).replaceAll('/home/probe', () => homedir()) : value);
8
+ }