@skrr-ai/cli 0.1.232 → 0.1.233
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/README.md +29 -13
- package/bin/dev.cjs +0 -1
- package/bin/run.js +0 -15
- package/dist/base-command.d.ts +6 -1
- package/dist/base-command.js +24 -4
- package/dist/commands/agenda/plan.d.ts +2 -1
- package/dist/commands/agenda/plan.js +18 -4
- package/dist/commands/agents/chat.d.ts +2 -0
- package/dist/commands/agents/chat.js +59 -13
- package/dist/commands/agents/eval/list.d.ts +4 -0
- package/dist/commands/agents/eval/list.js +33 -0
- package/dist/commands/agents/permissions/policy.js +25 -2
- package/dist/commands/agents/spawn.js +61 -24
- package/dist/commands/agents/triggers/fire.js +1 -1
- package/dist/commands/agents/triggers/runs.js +3 -0
- package/dist/commands/code/jobs/approve.d.ts +1 -11
- package/dist/commands/code/jobs/approve.js +3 -15
- package/dist/commands/code/jobs/cancel.js +3 -2
- package/dist/commands/code/jobs/index.js +1 -1
- package/dist/commands/code/jobs/list.js +4 -11
- package/dist/commands/code/jobs/run.js +13 -7
- package/dist/commands/code/jobs/show.js +51 -6
- package/dist/commands/commands.d.ts +1 -0
- package/dist/commands/commands.js +5 -1
- package/dist/commands/context.d.ts +1 -0
- package/dist/commands/context.js +1 -0
- package/dist/commands/duties/catalog/add.d.ts +18 -0
- package/dist/commands/duties/catalog/add.js +52 -0
- package/dist/commands/duties/catalog/index.d.ts +18 -0
- package/dist/commands/duties/catalog/index.js +88 -0
- package/dist/commands/duties/receipt.js +56 -1
- package/dist/commands/goals/planner-compare.js +5 -3
- package/dist/commands/instructions/discovery.d.ts +10 -0
- package/dist/commands/instructions/discovery.js +74 -0
- package/dist/commands/runs/admission.d.ts +12 -0
- package/dist/commands/runs/admission.js +66 -0
- package/dist/commands/runs/events.d.ts +2 -0
- package/dist/commands/runs/events.js +40 -10
- package/dist/commands/runs/list.d.ts +7 -1
- package/dist/commands/runs/list.js +81 -17
- package/dist/commands/runs/show.d.ts +1 -0
- package/dist/commands/runs/show.js +225 -15
- package/dist/commands/runs/stop.d.ts +1 -0
- package/dist/commands/runs/stop.js +34 -7
- package/dist/commands/runs/transcript.d.ts +2 -0
- package/dist/commands/runs/transcript.js +102 -17
- package/dist/commands/tasks/attachments/download.d.ts +1 -0
- package/dist/commands/tasks/attachments/download.js +6 -4
- package/dist/commands/tasks/attachments/source.d.ts +6 -0
- package/dist/commands/tasks/attachments/source.js +18 -0
- package/dist/commands/tasks/chat/exchange.d.ts +0 -14
- package/dist/commands/tasks/chat/exchange.js +8 -39
- package/dist/commands/tasks/chat/reply-run.d.ts +15 -0
- package/dist/commands/tasks/chat/reply-run.js +69 -0
- package/dist/commands/tasks/complete.js +1 -1
- package/dist/commands/tasks/lifecycle/transition.d.ts +1 -0
- package/dist/commands/tasks/lifecycle/transition.js +51 -13
- package/dist/commands/tasks/operations/show.js +5 -0
- package/dist/commands/tasks/result/submit.js +4 -2
- package/dist/commands/tasks/retry.js +25 -16
- package/dist/commands/triggers/audit.js +3 -1
- package/dist/commands/triggers/fire-detail.js +4 -1
- package/dist/commands/triggers/fire.js +1 -1
- package/dist/commands/usage.d.ts +1 -0
- package/dist/commands/usage.js +1 -0
- package/dist/generated/agent-guides.json +64 -712
- package/dist/help.d.ts +2 -7
- package/dist/help.js +13 -7
- package/dist/hooks/init.js +10 -0
- package/dist/lib/agent-evals.d.ts +1 -1
- package/dist/lib/agent-evals.js +13 -3
- package/dist/lib/agent-guides.d.ts +3 -5
- package/dist/lib/agent-guides.js +12 -13
- package/dist/lib/agent-runs.d.ts +69 -9
- package/dist/lib/agent-runs.js +208 -35
- package/dist/lib/agentic-stream.d.ts +12 -0
- package/dist/lib/agentic-stream.js +163 -79
- package/dist/lib/api-fetch.d.ts +2 -0
- package/dist/lib/api-fetch.js +6 -1
- package/dist/lib/command-manifest.d.ts +1 -6
- package/dist/lib/command-manifest.js +86 -13
- package/dist/lib/config.d.ts +2 -3
- package/dist/lib/config.js +2 -3
- package/dist/lib/duties.d.ts +5 -1
- package/dist/lib/duties.js +4 -0
- package/dist/lib/execution-history.d.ts +3 -0
- package/dist/lib/format.d.ts +1 -0
- package/dist/lib/format.js +18 -0
- package/dist/lib/guide-pointer.d.ts +5 -1
- package/dist/lib/guide-pointer.js +21 -2
- package/dist/lib/hosted-job-status.d.ts +4 -0
- package/dist/lib/hosted-job-status.js +19 -0
- package/dist/lib/inbound-messages.d.ts +1 -0
- package/dist/lib/inbound-messages.js +2 -0
- package/dist/lib/roles.d.ts +2 -2
- package/dist/lib/schedule.d.ts +4 -0
- package/dist/lib/schedule.js +4 -3
- package/dist/lib/task-execution.d.ts +1 -1
- package/dist/lib/task-execution.js +3 -19
- package/dist/lib/task-extras.d.ts +11 -1
- package/dist/lib/task-extras.js +15 -1
- package/dist/lib/task-transcript.js +3 -8
- package/dist/lib/triggers.d.ts +5 -36
- package/dist/lib/triggers.js +48 -33
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonWire.js +5 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/harnessCommand.d.ts +37 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/harnessCommand.js +59 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/daemonWire.js +5 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/harnessCommand.d.ts +37 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/harnessCommand.js +57 -0
- package/dist/node_modules/@skrr-ai/auth-core/package.json +10 -0
- package/dist/node_modules/@skrr-ai/data-provider/index.js +12261 -12172
- package/docs/v1/quickstart.md +18 -0
- package/oclif.manifest.json +2505 -629
- package/package.json +3 -2
- package/skills/skrr/SKILL.md +14 -0
- package/dist/commands/triggers/runs.d.ts +0 -22
- package/dist/commands/triggers/runs.js +0 -58
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var harnessCommand_exports = {};
|
|
20
|
+
__export(harnessCommand_exports, {
|
|
21
|
+
HARNESS_COMMAND_CAPABILITY: () => HARNESS_COMMAND_CAPABILITY,
|
|
22
|
+
HARNESS_COMMAND_MAX_CHARS: () => HARNESS_COMMAND_MAX_CHARS,
|
|
23
|
+
harnessCommandArgs: () => harnessCommandArgs,
|
|
24
|
+
readHarnessCommand: () => readHarnessCommand
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(harnessCommand_exports);
|
|
27
|
+
const HARNESS_COMMAND_CAPABILITY = "session_harness_command_v1";
|
|
28
|
+
const HARNESS_COMMAND_MAX_CHARS = 4200;
|
|
29
|
+
const COMMAND_NAME = /^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/;
|
|
30
|
+
function readHarnessCommand(value) {
|
|
31
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
32
|
+
return null;
|
|
33
|
+
const record = value;
|
|
34
|
+
if (Object.keys(record).some((key) => key !== "version" && key !== "name" && key !== "text")) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
const { version, name, text } = record;
|
|
38
|
+
if (version !== 1 || typeof name !== "string" || typeof text !== "string")
|
|
39
|
+
return null;
|
|
40
|
+
if (!COMMAND_NAME.test(name) || text.length > HARNESS_COMMAND_MAX_CHARS)
|
|
41
|
+
return null;
|
|
42
|
+
if (text !== text.trim())
|
|
43
|
+
return null;
|
|
44
|
+
const head = `/${name}`;
|
|
45
|
+
if (text !== head && !(text.startsWith(head) && /\s/.test(text.charAt(head.length)))) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return { version: 1, name, text };
|
|
49
|
+
}
|
|
50
|
+
function harnessCommandArgs(command) {
|
|
51
|
+
return command.text.slice(command.name.length + 1).trim();
|
|
52
|
+
}
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
HARNESS_COMMAND_CAPABILITY,
|
|
56
|
+
HARNESS_COMMAND_MAX_CHARS,
|
|
57
|
+
harnessCommandArgs,
|
|
58
|
+
readHarnessCommand
|
|
59
|
+
});
|
|
@@ -162,7 +162,7 @@ const RPC_ENVELOPE = [
|
|
|
162
162
|
delivery: 'acked',
|
|
163
163
|
answeredBy: 'rpc:response',
|
|
164
164
|
}),
|
|
165
|
-
entry('rpc:response', 'bidirectional', 'The answer to `rpc:request`, `{id, ok, result | error}`.'),
|
|
165
|
+
entry('rpc:response', 'bidirectional', 'The answer to `rpc:request`, `{id, ok, result | error}`. A bound local proposal may send progress with `progress: true` before its final answer.'),
|
|
166
166
|
toServer('rpc:cancel', 'Abandon an in-flight `rpc:request` by id.', {
|
|
167
167
|
dormant: 'The API handles it (`websocket/rpc.js`); no daemon sends it, and a daemon-side call is bounded by its own timeout instead.',
|
|
168
168
|
}),
|
|
@@ -236,6 +236,10 @@ const RPC_METHODS = [
|
|
|
236
236
|
capability: CANONICAL_DAEMON_ATTEMPT_CAPABILITY,
|
|
237
237
|
}),
|
|
238
238
|
toDaemon('daemon.session.stop', 'Stop one daemon session.', { delivery: 'acked', carriers: RPC }),
|
|
239
|
+
toDaemon('daemon.inference.stopProposal', 'Stop the exact bounded, no-tool proposal Attempt; acknowledgement is separate from its native terminal evidence.', {
|
|
240
|
+
delivery: 'acked',
|
|
241
|
+
carriers: RPC,
|
|
242
|
+
}),
|
|
239
243
|
toDaemon('daemon.session.spawn', 'Start a daemon session under the daemon-session registry.', {
|
|
240
244
|
delivery: 'acked',
|
|
241
245
|
carriers: RPC,
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A slash command the person typed, carried to the harness as itself (OSK-33999).
|
|
3
|
+
*
|
|
4
|
+
* A daemon turn's prompt is never the person's words alone. The server puts its lookback facts
|
|
5
|
+
* and the owner communication block in front of them, and the daemon puts the turn's `## This
|
|
6
|
+
* Turn` context in front of that. Codex reads a command only from a message that starts with `/`
|
|
7
|
+
* and has no line break, and Claude Code only from a message that is the command, so no command a
|
|
8
|
+
* person typed in the app (`/compact`, `/review`, `/goal …`) ever ran as one: each reached the
|
|
9
|
+
* model as text.
|
|
10
|
+
*
|
|
11
|
+
* So the server sends the command beside the prompt, as `harnessCommand`, read from the person's
|
|
12
|
+
* own words before any context was added, and only to a daemon announcing
|
|
13
|
+
* `HARNESS_COMMAND_CAPABILITY`. That daemon hands the harness the command text alone, with no
|
|
14
|
+
* context in front of it, so the harness's own command parser sees exactly what was typed. Which
|
|
15
|
+
* commands exist is the harness's business; this module only carries one.
|
|
16
|
+
*
|
|
17
|
+
* Shared by the API (which writes the field and re-reads it at dispatch) and the daemon (which
|
|
18
|
+
* reads it), so both read the same shape.
|
|
19
|
+
*/
|
|
20
|
+
/** A daemon that announces this reads `harnessCommand` on a session request and runs it. */
|
|
21
|
+
export declare const HARNESS_COMMAND_CAPABILITY = "session_harness_command_v1";
|
|
22
|
+
/** The longest command text carried: a `/goal` objective is the long one (4,000 characters). */
|
|
23
|
+
export declare const HARNESS_COMMAND_MAX_CHARS = 4200;
|
|
24
|
+
export interface HarnessCommandV1 {
|
|
25
|
+
version: 1;
|
|
26
|
+
/** The command's name, without the `/`. */
|
|
27
|
+
name: string;
|
|
28
|
+
/** What the person typed, trimmed: `/` + name, then any arguments. */
|
|
29
|
+
text: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A strict read of the wire field. Anything it does not understand is no command at all, and the
|
|
33
|
+
* turn then runs as an ordinary message: that is what it did before this field existed.
|
|
34
|
+
*/
|
|
35
|
+
export declare function readHarnessCommand(value: unknown): HarnessCommandV1 | null;
|
|
36
|
+
/** The command's arguments: what follows the name, trimmed. Empty when there are none. */
|
|
37
|
+
export declare function harnessCommandArgs(command: Pick<HarnessCommandV1, 'name' | 'text'>): string;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A slash command the person typed, carried to the harness as itself (OSK-33999).
|
|
3
|
+
*
|
|
4
|
+
* A daemon turn's prompt is never the person's words alone. The server puts its lookback facts
|
|
5
|
+
* and the owner communication block in front of them, and the daemon puts the turn's `## This
|
|
6
|
+
* Turn` context in front of that. Codex reads a command only from a message that starts with `/`
|
|
7
|
+
* and has no line break, and Claude Code only from a message that is the command, so no command a
|
|
8
|
+
* person typed in the app (`/compact`, `/review`, `/goal …`) ever ran as one: each reached the
|
|
9
|
+
* model as text.
|
|
10
|
+
*
|
|
11
|
+
* So the server sends the command beside the prompt, as `harnessCommand`, read from the person's
|
|
12
|
+
* own words before any context was added, and only to a daemon announcing
|
|
13
|
+
* `HARNESS_COMMAND_CAPABILITY`. That daemon hands the harness the command text alone, with no
|
|
14
|
+
* context in front of it, so the harness's own command parser sees exactly what was typed. Which
|
|
15
|
+
* commands exist is the harness's business; this module only carries one.
|
|
16
|
+
*
|
|
17
|
+
* Shared by the API (which writes the field and re-reads it at dispatch) and the daemon (which
|
|
18
|
+
* reads it), so both read the same shape.
|
|
19
|
+
*/
|
|
20
|
+
/** A daemon that announces this reads `harnessCommand` on a session request and runs it. */
|
|
21
|
+
export const HARNESS_COMMAND_CAPABILITY = 'session_harness_command_v1';
|
|
22
|
+
/** The longest command text carried: a `/goal` objective is the long one (4,000 characters). */
|
|
23
|
+
export const HARNESS_COMMAND_MAX_CHARS = 4_200;
|
|
24
|
+
/**
|
|
25
|
+
* A command name: what follows the `/`, as the harnesses spell theirs (`compact`, `skill:x`,
|
|
26
|
+
* `plugin:command`). The server's reader (`forwardedSlashCommand.js`) accepts the same characters.
|
|
27
|
+
*/
|
|
28
|
+
const COMMAND_NAME = /^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/;
|
|
29
|
+
/**
|
|
30
|
+
* A strict read of the wire field. Anything it does not understand is no command at all, and the
|
|
31
|
+
* turn then runs as an ordinary message: that is what it did before this field existed.
|
|
32
|
+
*/
|
|
33
|
+
export function readHarnessCommand(value) {
|
|
34
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
35
|
+
return null;
|
|
36
|
+
const record = value;
|
|
37
|
+
if (Object.keys(record).some((key) => key !== 'version' && key !== 'name' && key !== 'text')) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
const { version, name, text } = record;
|
|
41
|
+
if (version !== 1 || typeof name !== 'string' || typeof text !== 'string')
|
|
42
|
+
return null;
|
|
43
|
+
if (!COMMAND_NAME.test(name) || text.length > HARNESS_COMMAND_MAX_CHARS)
|
|
44
|
+
return null;
|
|
45
|
+
if (text !== text.trim())
|
|
46
|
+
return null;
|
|
47
|
+
// The text is the command it names: `/name` alone, or followed by whitespace and arguments.
|
|
48
|
+
const head = `/${name}`;
|
|
49
|
+
if (text !== head && !(text.startsWith(head) && /\s/.test(text.charAt(head.length)))) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return { version: 1, name, text };
|
|
53
|
+
}
|
|
54
|
+
/** The command's arguments: what follows the name, trimmed. Empty when there are none. */
|
|
55
|
+
export function harnessCommandArgs(command) {
|
|
56
|
+
return command.text.slice(command.name.length + 1).trim();
|
|
57
|
+
}
|
|
@@ -407,6 +407,16 @@
|
|
|
407
407
|
"default": "./dist/cjs/turnPacing.js"
|
|
408
408
|
}
|
|
409
409
|
},
|
|
410
|
+
"./harness-command": {
|
|
411
|
+
"import": {
|
|
412
|
+
"types": "./dist/esm/harnessCommand.d.ts",
|
|
413
|
+
"default": "./dist/esm/harnessCommand.js"
|
|
414
|
+
},
|
|
415
|
+
"require": {
|
|
416
|
+
"types": "./dist/cjs/harnessCommand.d.ts",
|
|
417
|
+
"default": "./dist/cjs/harnessCommand.js"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
410
420
|
"./person-ask-window": {
|
|
411
421
|
"import": {
|
|
412
422
|
"types": "./dist/esm/personAskWindow.d.ts",
|