@hearsay-tools/squawk 0.18.0-pr3755.6950 → 0.18.0-pr3757.6952

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 (46) hide show
  1. package/dist/ci-wait/controller.d.ts +4 -4
  2. package/dist/contract/index.d.ts +0 -1
  3. package/dist/contract/index.js +0 -24
  4. package/dist/delegation/routes.d.ts +11 -11
  5. package/dist/delegation/transport.d.ts +77 -77
  6. package/dist/server/live-routes.d.ts +6 -6
  7. package/dist/server/server.d.ts +64 -64
  8. package/dist/workflows/run/wake-ledger.d.ts +4 -5
  9. package/dist/workflows/run/wake-ledger.js +17 -17
  10. package/dist/workflows/run/wake-ledger.js.map +1 -1
  11. package/package.json +4 -4
  12. package/scripts/mock-claude.mjs +0 -12
  13. package/scripts/mock-codex-app-server.mjs +0 -4
  14. package/scripts/mock-omp-rpc.mjs +0 -6
  15. package/scripts/mock-opencode-serve.mjs +0 -9
  16. package/scripts/mock-pi-rpc.mjs +0 -5
  17. package/dist/contract/runner-skills.d.ts +0 -60
  18. package/dist/core/claude-skill-catalog.d.ts +0 -4
  19. package/dist/core/claude-skill-catalog.js +0 -29
  20. package/dist/core/claude-skill-catalog.js.map +0 -1
  21. package/dist/core/codex-skill-catalog.d.ts +0 -4
  22. package/dist/core/codex-skill-catalog.js +0 -36
  23. package/dist/core/codex-skill-catalog.js.map +0 -1
  24. package/dist/core/host-skill-catalog.d.ts +0 -5
  25. package/dist/core/host-skill-catalog.js +0 -16
  26. package/dist/core/host-skill-catalog.js.map +0 -1
  27. package/dist/core/omp-skill-catalog.d.ts +0 -4
  28. package/dist/core/omp-skill-catalog.js +0 -23
  29. package/dist/core/omp-skill-catalog.js.map +0 -1
  30. package/dist/core/opencode-skill-catalog.d.ts +0 -4
  31. package/dist/core/opencode-skill-catalog.js +0 -37
  32. package/dist/core/opencode-skill-catalog.js.map +0 -1
  33. package/dist/core/pi-skill-catalog.d.ts +0 -4
  34. package/dist/core/pi-skill-catalog.js +0 -35
  35. package/dist/core/pi-skill-catalog.js.map +0 -1
  36. package/dist/core/runner-skill-catalog.d.ts +0 -29
  37. package/dist/core/runner-skill-catalog.js +0 -73
  38. package/dist/core/runner-skill-catalog.js.map +0 -1
  39. package/dist/core/skill-path-scope.d.ts +0 -4
  40. package/dist/core/skill-path-scope.js +0 -28
  41. package/dist/core/skill-path-scope.js.map +0 -1
  42. package/dist/core/skill-probe.d.ts +0 -17
  43. package/dist/core/skill-probe.js +0 -89
  44. package/dist/core/skill-probe.js.map +0 -1
  45. package/scripts/mock-skill-list-data.mjs +0 -184
  46. package/scripts/mock-skill-list.mjs +0 -8
@@ -1,4 +0,0 @@
1
- import type { RunnerSkillScope } from '../contract/index.js';
2
- /** Location metadata only: never read a skill file or scan a skill folder. */
3
- export declare function skillPathScope(path: string, cwd: string, userHome: string): RunnerSkillScope;
4
- export declare function skillPathPlugin(path: string): string | undefined;
@@ -1,28 +0,0 @@
1
- import { isAbsolute, relative, sep } from 'node:path';
2
- function within(folder, path) {
3
- const suffix = relative(folder, path);
4
- return suffix === '' || (!isAbsolute(suffix) && suffix !== '..' && !suffix.startsWith(`..${sep}`));
5
- }
6
- /** Location metadata only: never read a skill file or scan a skill folder. */
7
- export function skillPathScope(path, cwd, userHome) {
8
- if (!isAbsolute(path))
9
- return path === '<built-in>' ? 'system' : 'other';
10
- if (within(cwd, path))
11
- return 'repo';
12
- const normalized = path.split(sep).join('/');
13
- const marker = normalized.search(/\/(?:\.agents|\.claude|\.opencode|\.pi)\/skills?\//);
14
- if (marker !== -1) {
15
- const root = normalized.slice(0, marker);
16
- if (root !== userHome && within(root, cwd))
17
- return 'repo';
18
- }
19
- if (userHome && within(userHome, path))
20
- return 'user';
21
- // OpenCode's built-in skills may have a virtual location rather than a file path.
22
- return 'other';
23
- }
24
- export function skillPathPlugin(path) {
25
- const marker = path.match(/\/(?:plugins\/cache\/[^/]+\/([^/]+)|plugins\/([^/]+)\/skills\/)/);
26
- return marker?.[1] ?? marker?.[2];
27
- }
28
- //# sourceMappingURL=skill-path-scope.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skill-path-scope.js","sourceRoot":"","sources":["../../src/core/skill-path-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAGtD,SAAS,MAAM,CAAC,MAAc,EAAE,IAAY;IAC1C,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACtC,OAAO,MAAM,KAAK,EAAE,IAAI,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC;AACrG,CAAC;AACD,8EAA8E;AAC9E,MAAM,UAAU,cAAc,CAAC,IAAY,EAAE,GAAW,EAAE,QAAgB;IACxE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,KAAK,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;IACzE,IAAI,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC;QAAE,OAAO,MAAM,CAAC;IACrC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC7C,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,oDAAoD,CAAC,CAAC;IACvF,IAAI,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC;QAClB,MAAM,IAAI,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;QACzC,IAAI,IAAI,KAAK,QAAQ,IAAI,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC;YAAE,OAAO,MAAM,CAAC;IAC5D,CAAC;IACD,IAAI,QAAQ,IAAI,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC;QAAE,OAAO,MAAM,CAAC;IACtD,kFAAkF;IAClF,OAAO,OAAO,CAAC;AACjB,CAAC;AACD,MAAM,UAAU,eAAe,CAAC,IAAY;IAC1C,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,iEAAiE,CAAC,CAAC;IAC7F,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;AACpC,CAAC"}
@@ -1,17 +0,0 @@
1
- import { type ChildProcessWithoutNullStreams } from 'node:child_process';
2
- import type { RunnerId } from './agent-runner.ts';
3
- export interface SkillDiscoveryOptions {
4
- cwd: string;
5
- accountHome?: string | undefined;
6
- bin?: string | undefined;
7
- timeoutMs?: number | undefined;
8
- signal?: AbortSignal | undefined;
9
- spawn?: ((bin: string, args: readonly string[], cwd: string, env: NodeJS.ProcessEnv) => ChildProcessWithoutNullStreams) | undefined;
10
- }
11
- export declare function skillExecutable(runner: RunnerId, bin?: string): string;
12
- /** A no-turn probe owns a process group. Kill it and observe exit before releasing its caller. */
13
- export declare function skillProbe<T>(runner: RunnerId, args: readonly string[], options: SkillDiscoveryOptions, read: (child: ChildProcessWithoutNullStreams, signal: AbortSignal, env: NodeJS.ProcessEnv) => Promise<T>): Promise<T>;
14
- /** Bound streams even when a CLI emits a single line without a newline. */
15
- export declare function skillLines(child: ChildProcessWithoutNullStreams): AsyncGenerator<string>;
16
- /** CLI list commands finish on EOF; errors and deadlines are owned by skillProbe. */
17
- export declare function skillOutput(child: ChildProcessWithoutNullStreams): Promise<string>;
@@ -1,89 +0,0 @@
1
- import { fileURLToPath } from 'node:url';
2
- import { buildChildEnv } from './agent-env.js';
3
- import { profileEnv } from './agent-profiles.js';
4
- import { productEnv } from './product-env.js';
5
- import { signalSession, spawnSessionLeader } from './session-process.js';
6
- export function skillExecutable(runner, bin) {
7
- return bin ?? { claude: productEnv('CLAUDE_BIN'), codex: productEnv('CODEX_BIN'),
8
- opencode: productEnv('OPENCODE_BIN'), pi: productEnv('PI_BIN'), omp: productEnv('OMP_BIN') }[runner] ?? (productEnv('DRY_RUN') === '1'
9
- ? fileURLToPath(new URL(`../../scripts/${MOCKS[runner]}`, import.meta.url)) : runner);
10
- }
11
- const MOCKS = {
12
- claude: 'mock-claude.mjs', codex: 'mock-codex-app-server.mjs', opencode: 'mock-opencode-serve.mjs',
13
- pi: 'mock-pi-rpc.mjs', omp: 'mock-omp-rpc.mjs',
14
- };
15
- /** A no-turn probe owns a process group. Kill it and observe exit before releasing its caller. */
16
- export async function skillProbe(runner, args, options, read) {
17
- options.signal?.throwIfAborted();
18
- const env = buildChildEnv({ backend: runner, extraEnv: profileEnv(runner, options.accountHome) });
19
- const launch = options.spawn ?? ((bin, argv, cwd, env) => spawnSessionLeader(bin, argv, { cwd, env }));
20
- const child = launch(skillExecutable(runner, options.bin), args, options.cwd, env);
21
- const exited = probeExit(child);
22
- const signal = AbortSignal.any([options.signal ?? new AbortController().signal, AbortSignal.timeout(options.timeoutMs ?? 15_000)]);
23
- const kill = () => signalSession(child, 'SIGKILL');
24
- child.stderr.on('error', () => { });
25
- child.stderr.resume();
26
- child.stdin.on('error', () => { });
27
- let onAbort = () => { };
28
- const failed = new Promise((_, reject) => {
29
- child.once('error', () => reject(new Error('Skill probe child failed')));
30
- child.once('exit', code => { if (code !== 0)
31
- reject(new Error('Skill probe exited before answering')); });
32
- });
33
- const aborted = new Promise((_, reject) => {
34
- onAbort = () => { kill(); reject(new Error('Skill probe timed out or was cancelled')); };
35
- signal.addEventListener('abort', onAbort, { once: true });
36
- if (signal.aborted)
37
- onAbort();
38
- });
39
- try {
40
- return await Promise.race([read(child, signal, env), failed, aborted]);
41
- }
42
- finally {
43
- signal.removeEventListener('abort', onAbort);
44
- kill();
45
- await exited;
46
- child.stdin.destroy();
47
- child.stdout.destroy();
48
- child.stderr.destroy();
49
- }
50
- }
51
- /** Bound streams even when a CLI emits a single line without a newline. */
52
- export async function* skillLines(child) {
53
- child.stdout.setEncoding('utf8');
54
- let pending = '';
55
- let size = 0;
56
- for await (const chunk of child.stdout) {
57
- size += Buffer.byteLength(chunk);
58
- if (size > 4 * 1024 * 1024)
59
- throw new Error('Skill probe exceeded the output limit');
60
- pending += chunk.toString();
61
- let end;
62
- while ((end = pending.indexOf('\n')) !== -1) {
63
- yield pending.slice(0, end);
64
- pending = pending.slice(end + 1);
65
- }
66
- }
67
- if (pending)
68
- yield pending;
69
- }
70
- /** CLI list commands finish on EOF; errors and deadlines are owned by skillProbe. */
71
- export async function skillOutput(child) {
72
- const exited = probeExit(child);
73
- const lines = [];
74
- for await (const line of skillLines(child))
75
- lines.push(line);
76
- if (await exited !== 0)
77
- throw new Error('Skill list command failed');
78
- return lines.join('\n');
79
- }
80
- function probeExit(child) {
81
- if (child.exitCode !== null || child.signalCode !== null)
82
- return Promise.resolve(child.exitCode);
83
- return new Promise(resolve => {
84
- child.once('exit', resolve);
85
- child.once('error', () => { if (child.pid === undefined)
86
- resolve(null); });
87
- });
88
- }
89
- //# sourceMappingURL=skill-probe.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skill-probe.js","sourceRoot":"","sources":["../../src/core/skill-probe.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAWzE,MAAM,UAAU,eAAe,CAAC,MAAgB,EAAE,GAAY;IAC5D,OAAO,GAAG,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;QAC9E,QAAQ,EAAE,UAAU,CAAC,cAAc,CAAC,EA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CAAC,CAAC;YAC5B,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QACnC,CAAC;IACH,CAAC;IACD,IAAI,OAAO;QAAE,MAAM,OAAO,CAAC;AAC7B,CAAC;AAED,qFAAqF;AACrF,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,KAAqC;IACrE,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;IAChC,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,UAAU,CAAC,KAAK,CAAC;QAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7D,IAAI,MAAM,MAAM,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;IACrE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AAED,SAAS,SAAS,CAAC,KAAqC;IACtD,IAAI,KAAK,CAAC,QAAQ,KAAK,IAAI,IAAI,KAAK,CAAC,UAAU,KAAK,IAAI;QAAE,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACjG,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;QAC3B,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC5B,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS;YAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -1,184 +0,0 @@
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
- };
@@ -1,8 +0,0 @@
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
- }