@hearsay-tools/squawk 0.18.0-dev.6972 → 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 +387 -40
- 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 +2 -0
- package/dist/contract/index.js +55 -7
- package/dist/contract/runner-skills.d.ts +60 -0
- package/dist/core/claude-cli-runner.js +2 -4
- package/dist/core/claude-cli-runner.js.map +1 -1
- package/dist/core/claude-setting-sources.d.ts +2 -0
- package/dist/core/claude-setting-sources.js +7 -0
- package/dist/core/claude-setting-sources.js.map +1 -0
- package/dist/core/claude-skill-catalog.d.ts +4 -0
- package/dist/core/claude-skill-catalog.js +30 -0
- package/dist/core/claude-skill-catalog.js.map +1 -0
- package/dist/core/codex-skill-catalog.d.ts +4 -0
- package/dist/core/codex-skill-catalog.js +36 -0
- package/dist/core/codex-skill-catalog.js.map +1 -0
- 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/core/host-skill-catalog.d.ts +5 -0
- package/dist/core/host-skill-catalog.js +16 -0
- package/dist/core/host-skill-catalog.js.map +1 -0
- package/dist/core/omp-skill-catalog.d.ts +4 -0
- package/dist/core/omp-skill-catalog.js +23 -0
- package/dist/core/omp-skill-catalog.js.map +1 -0
- package/dist/core/opencode-skill-catalog.d.ts +4 -0
- package/dist/core/opencode-skill-catalog.js +37 -0
- package/dist/core/opencode-skill-catalog.js.map +1 -0
- package/dist/core/pi-skill-catalog.d.ts +4 -0
- package/dist/core/pi-skill-catalog.js +35 -0
- package/dist/core/pi-skill-catalog.js.map +1 -0
- package/dist/core/runner-skill-catalog.d.ts +29 -0
- package/dist/core/runner-skill-catalog.js +91 -0
- package/dist/core/runner-skill-catalog.js.map +1 -0
- package/dist/core/session-process.d.ts +3 -0
- package/dist/core/session-process.js +10 -0
- package/dist/core/session-process.js.map +1 -1
- package/dist/core/skill-path-scope.d.ts +4 -0
- package/dist/core/skill-path-scope.js +28 -0
- package/dist/core/skill-path-scope.js.map +1 -0
- package/dist/core/skill-probe.d.ts +17 -0
- package/dist/core/skill-probe.js +102 -0
- package/dist/core/skill-probe.js.map +1 -0
- package/dist/delegation/routes.d.ts +9 -9
- package/dist/delegation/transport.d.ts +20 -20
- package/dist/server/activity-routes.d.ts +23 -23
- package/dist/server/server.d.ts +1622 -1622
- 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-claude.mjs +12 -0
- package/scripts/mock-codex-app-server.mjs +4 -0
- package/scripts/mock-omp-rpc.mjs +7 -1
- package/scripts/mock-opencode-serve.mjs +9 -0
- package/scripts/mock-pi-rpc.mjs +5 -0
- package/scripts/mock-skill-list-data.d.mts +1 -0
- package/scripts/mock-skill-list-data.mjs +184 -0
- package/scripts/mock-skill-list.d.mts +1 -0
- package/scripts/mock-skill-list.mjs +8 -0
|
@@ -66,6 +66,10 @@ export function squawkToolHandlers(runId, generation, host) {
|
|
|
66
66
|
finishTurn: async (request, signal) => host.acceptDone(runId, generation, request, signal),
|
|
67
67
|
registerPreview: (request, signal) => host.registerPreviewServer(runId, request, signal),
|
|
68
68
|
stopPreview: (request, signal) => host.stopPreviewServer(runId, request, signal),
|
|
69
|
+
automation: async (request, signal) => {
|
|
70
|
+
const tools = await host.awaitAutomationTools(signal);
|
|
71
|
+
return tools?.automation ? tools.automation(request, signal) : scheduleRefusal('unavailable');
|
|
72
|
+
},
|
|
69
73
|
// A schedule belongs to the project, not to this run: any session there may manage one.
|
|
70
74
|
scheduleTask: async (request, signal) => {
|
|
71
75
|
const tools = await host.awaitAutomationTools(signal);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"squawk-tools.js","sourceRoot":"","sources":["../../../src/workflows/run/squawk-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAwB,MAAM,+BAA+B,CAAC;AAK3G,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAoS,MAAM,oCA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CAAC,WAAW,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK;QAAE,OAAO;IAClG,MAAM,WAAW,GAAG,iBAAiB,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,CAAC,kBAAkB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,aAAa,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,YAAY,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IAChT,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACvD,OAAO,WAAW,CAAC;AACrB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AutomationToolAnswer, AutomationToolRequest } from '../../contract/index.js';
|
|
1
2
|
import type { Home } from '../../home/home.ts';
|
|
2
3
|
import type { TrackedWork } from './tracked-work.ts';
|
|
3
4
|
import type { HumanWaitEntry } from '../../contract/index.js';
|
|
@@ -243,6 +244,7 @@ export type WorkerTerminationBlocker = {
|
|
|
243
244
|
};
|
|
244
245
|
/** hearsay-tools/cezarion#1465: what `startServer` hands a manager for the schedule tools. */
|
|
245
246
|
export type AutomationToolService = {
|
|
247
|
+
automation?: (request: AutomationToolRequest, signal: AbortSignal) => Promise<AutomationToolAnswer>;
|
|
246
248
|
scheduleTask(request: ScheduleTaskRequest): Promise<ScheduleTaskAnswer>;
|
|
247
249
|
scheduledTasks(request: ScheduledTasksRequest): Promise<ScheduledTasksAnswer>;
|
|
248
250
|
};
|
package/dist/workflows/run.d.ts
CHANGED
|
@@ -111,8 +111,8 @@ export declare class RunManager {
|
|
|
111
111
|
projectId: string;
|
|
112
112
|
} | undefined;
|
|
113
113
|
/**
|
|
114
|
-
* hearsay-tools/cezarion#1465: the project's
|
|
115
|
-
* `cezar_schedule_task` and `cezar_scheduled_tasks`, set by `startServer` beside the cockpit
|
|
114
|
+
* hearsay-tools/cezarion#1465: the project's automation service behind
|
|
115
|
+
* `cezar_automation`, `cezar_schedule_task` and `cezar_scheduled_tasks`, set by `startServer` beside the cockpit
|
|
116
116
|
* address. Headless `cez run` never sets it, so the tools answer `unavailable` there. The
|
|
117
117
|
* boot manager recovers runs before the server sets it, and a lazy project's manager recovers
|
|
118
118
|
* before its context is announced: a resumed session can call a tool in that window. With a
|
package/dist/workflows/run.js
CHANGED
|
@@ -279,8 +279,8 @@ export class RunManager {
|
|
|
279
279
|
setCockpitAddress(address) { return launchContext.setCockpitAddress(this.#modules.launchSettingsHost, address); }
|
|
280
280
|
cockpitAddress() { return launchContext.cockpitAddress(this.#cockpit); }
|
|
281
281
|
/**
|
|
282
|
-
* hearsay-tools/cezarion#1465: the project's
|
|
283
|
-
* `cezar_schedule_task` and `cezar_scheduled_tasks`, set by `startServer` beside the cockpit
|
|
282
|
+
* hearsay-tools/cezarion#1465: the project's automation service behind
|
|
283
|
+
* `cezar_automation`, `cezar_schedule_task` and `cezar_scheduled_tasks`, set by `startServer` beside the cockpit
|
|
284
284
|
* address. Headless `cez run` never sets it, so the tools answer `unavailable` there. The
|
|
285
285
|
* boot manager recovers runs before the server sets it, and a lazy project's manager recovers
|
|
286
286
|
* before its context is announced: a resumed session can call a tool in that window. With a
|
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-claude.mjs
CHANGED
|
@@ -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],
|
package/scripts/mock-omp-rpc.mjs
CHANGED
|
@@ -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).
|
|
@@ -64,7 +70,7 @@ if (typeof flags.get('--tools') === 'string') {
|
|
|
64
70
|
const registered = (name) => (BUILTIN_TOOLS.includes(name) && !GATED_TOOLS.has(name) && !disabled.includes(name))
|
|
65
71
|
|| mcpTools.includes(name)
|
|
66
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')
|
|
67
|
-
|| ((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')));
|
|
68
74
|
// Mirrors v18.4.11 `emt()`: every missing name in ONE error, unknown names first, then the
|
|
69
75
|
// built-ins this session lacks, each line singular for one name.
|
|
70
76
|
const missing = tools.filter((name) => !registered(name));
|
|
@@ -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' });
|
package/scripts/mock-pi-rpc.mjs
CHANGED
|
@@ -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 @@
|
|
|
1
|
+
export declare const captures: Readonly<Record<string, unknown>>;
|
|
@@ -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
|
+
}
|