@skrr-ai/cli 0.1.231 → 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 +42 -4
- package/bin/dev.cjs +4 -1
- package/bin/run.js +0 -15
- package/dist/base-command.d.ts +6 -11
- package/dist/base-command.js +34 -43
- package/dist/commands/agenda/plan.d.ts +2 -1
- package/dist/commands/agenda/plan.js +18 -4
- package/dist/commands/agent/message/context.d.ts +2 -0
- package/dist/commands/agent/message/context.js +18 -3
- package/dist/commands/agent/message/list.d.ts +22 -0
- package/dist/commands/agent/message/list.js +66 -0
- package/dist/commands/agent/message/send.d.ts +1 -1
- package/dist/commands/agent/message/send.js +1 -3
- package/dist/commands/agent/message/show.d.ts +14 -0
- package/dist/commands/agent/message/show.js +39 -0
- package/dist/commands/agents/chat.d.ts +4 -0
- package/dist/commands/agents/chat.js +79 -17
- package/dist/commands/agents/eval/list.d.ts +4 -0
- package/dist/commands/agents/eval/list.js +33 -0
- package/dist/commands/agents/eval/show.d.ts +1 -0
- package/dist/commands/agents/eval/show.js +19 -0
- package/dist/commands/agents/intuitions/generate.js +1 -1
- package/dist/commands/agents/intuitions/list.js +1 -1
- 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/acp.js +1 -1
- package/dist/commands/code/handover.d.ts +3 -3
- package/dist/commands/code/handover.js +12 -12
- package/dist/commands/code/index.d.ts +3 -8
- package/dist/commands/code/index.js +15 -21
- 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 +52 -6
- package/dist/commands/code/run.js +1 -1
- 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/plan-now.d.ts +5 -3
- package/dist/commands/goals/plan-now.js +21 -16
- 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 +16 -0
- package/dist/commands/runs/events.js +89 -0
- package/dist/commands/runs/list.d.ts +27 -0
- package/dist/commands/runs/list.js +151 -0
- package/dist/commands/runs/show.d.ts +14 -0
- package/dist/commands/runs/show.js +273 -0
- package/dist/commands/runs/stop.d.ts +15 -0
- package/dist/commands/runs/stop.js +105 -0
- package/dist/commands/runs/transcript.d.ts +19 -0
- package/dist/commands/runs/transcript.js +178 -0
- 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/tasks/runs.js +7 -0
- package/dist/commands/tasks/start-receipt.js +8 -8
- package/dist/commands/tasks/start.js +12 -1
- 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 +350 -777
- package/dist/help.d.ts +2 -7
- package/dist/help.js +13 -7
- package/dist/hooks/init.js +10 -0
- package/dist/lib/agent-chat-queue.d.ts +2 -1
- package/dist/lib/agent-chat-queue.js +26 -21
- 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 +101 -0
- package/dist/lib/agent-runs.js +350 -0
- package/dist/lib/agentic-stream.d.ts +13 -1
- package/dist/lib/agentic-stream.js +165 -81
- package/dist/lib/api-fetch.d.ts +4 -2
- package/dist/lib/api-fetch.js +11 -5
- package/dist/lib/code-handover.d.ts +2 -3
- package/dist/lib/code-handover.js +4 -6
- package/dist/lib/command-manifest.d.ts +1 -6
- package/dist/lib/command-manifest.js +86 -13
- package/dist/lib/communication-history.d.ts +27 -0
- package/dist/lib/communication-history.js +45 -0
- 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 +34 -0
- package/dist/lib/execution-history.js +7 -0
- package/dist/lib/first-party-harness-broker.d.ts +1 -1
- package/dist/lib/first-party-harness-broker.js +3 -5
- 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 +2 -0
- package/dist/lib/inbound-messages.js +5 -0
- package/dist/lib/intuition-look.js +20 -4
- package/dist/lib/memory-history-session.d.ts +8 -4
- package/dist/lib/memory-history-session.js +30 -23
- 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-agent-run.d.ts +4 -0
- package/dist/lib/task-agent-run.js +15 -0
- 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.d.ts +9 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonWire.js +40 -3
- 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/cjs/toolApprovalSignature.d.ts +62 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/toolApprovalSignature.js +56 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/daemonWire.d.ts +9 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/daemonWire.js +34 -3
- 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/dist/esm/toolApprovalSignature.d.ts +62 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/toolApprovalSignature.js +51 -0
- package/dist/node_modules/@skrr-ai/auth-core/package.json +10 -0
- package/dist/node_modules/@skrr-ai/data-provider/index.js +12259 -12160
- package/docs/v1/quickstart.md +18 -0
- package/oclif.manifest.json +3405 -2112
- package/package.json +6 -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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skrr-ai/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.233",
|
|
4
4
|
"description": "Command-line interface for skrr",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "skrr",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"bin",
|
|
29
29
|
"docs/v1/**",
|
|
30
|
+
"skills/**",
|
|
30
31
|
"dist/**/*.js",
|
|
31
32
|
"dist/**/*.d.ts",
|
|
32
33
|
"dist/generated/agent-guides.json",
|
|
@@ -93,6 +94,9 @@
|
|
|
93
94
|
"@oclif/plugin-autocomplete"
|
|
94
95
|
],
|
|
95
96
|
"topics": {
|
|
97
|
+
"runs": {
|
|
98
|
+
"description": "List and inspect Agent Runs and request Stop"
|
|
99
|
+
},
|
|
96
100
|
"convos": {
|
|
97
101
|
"description": "Manage conversations"
|
|
98
102
|
},
|
|
@@ -726,5 +730,5 @@
|
|
|
726
730
|
"engines": {
|
|
727
731
|
"node": ">=20.0.0"
|
|
728
732
|
},
|
|
729
|
-
"gitHead": "
|
|
733
|
+
"gitHead": "f2d75c0afe5dcb8ba4ca556c47282164b5975490"
|
|
730
734
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skrr
|
|
3
|
+
description: Use Skrr to look up existing team Tasks, record progress or verification, submit completed work for independent review, and retrieve the Task or owner conversation context for shared work. Use when a request refers to a shared work item by title or identifier or asks to update an existing record.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Skrr
|
|
7
|
+
|
|
8
|
+
Run `skrr context --json` to see the active Workspace, Task, and write attribution. If credentials are missing and the runtime cannot supply them, tell the user which connection is needed.
|
|
9
|
+
|
|
10
|
+
Use `skrr guide` to find the guide for the operation. For Task work, search the title with `skrr tasks list --q "<title words>" --json` and read the exact Task with `skrr tasks show <task> --json`. Read its current state and `reviewPolicy` before a write. For an identified command, `--help` and `skrr commands --schema "<command>" --json` give the exact invocation and link to its guide when available.
|
|
11
|
+
|
|
12
|
+
For finished work that should enter Review, read `skrr guide tasks closure`.
|
|
13
|
+
|
|
14
|
+
Report the confirmed Task state and URL returned by Skrr.
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BaseCommand } from '../../base-command';
|
|
2
|
-
/**
|
|
3
|
-
* Legacy per-agent run history — backs the `AgentTriggerRun` collection that
|
|
4
|
-
* pre-dates the universal `TriggerFireRecord` audit log.
|
|
5
|
-
*
|
|
6
|
-
* The route currently refuses historical Agent-scoped records because their
|
|
7
|
-
* physical Agent identity was not recorded. The trigger audit is restricted.
|
|
8
|
-
*/
|
|
9
|
-
export default class TriggersRuns extends BaseCommand {
|
|
10
|
-
static description: string;
|
|
11
|
-
static examples: string[];
|
|
12
|
-
static args: {
|
|
13
|
-
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
14
|
-
};
|
|
15
|
-
static flags: {
|
|
16
|
-
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
|
-
agent: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
|
-
limit: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
-
cursor: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
-
};
|
|
21
|
-
run(): Promise<void>;
|
|
22
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const core_1 = require("@oclif/core");
|
|
4
|
-
const base_command_1 = require("../../base-command");
|
|
5
|
-
const triggers_1 = require("../../lib/triggers");
|
|
6
|
-
/**
|
|
7
|
-
* Legacy per-agent run history — backs the `AgentTriggerRun` collection that
|
|
8
|
-
* pre-dates the universal `TriggerFireRecord` audit log.
|
|
9
|
-
*
|
|
10
|
-
* The route currently refuses historical Agent-scoped records because their
|
|
11
|
-
* physical Agent identity was not recorded. The trigger audit is restricted.
|
|
12
|
-
*/
|
|
13
|
-
class TriggersRuns extends base_command_1.BaseCommand {
|
|
14
|
-
static description = 'Request legacy Agent trigger history (currently unavailable without physical source identity)';
|
|
15
|
-
static examples = [
|
|
16
|
-
'<%= config.bin %> triggers runs <trigger-id> --agent <agent-id>',
|
|
17
|
-
'<%= config.bin %> triggers runs <trigger-id> --agent <agent-id> --limit 50 --json',
|
|
18
|
-
'<%= config.bin %> triggers runs <trigger-id> --agent <agent-id> --cursor <next-cursor>',
|
|
19
|
-
];
|
|
20
|
-
static args = {
|
|
21
|
-
id: core_1.Args.string({ description: 'Trigger ID', required: true, ignoreStdin: true }),
|
|
22
|
-
};
|
|
23
|
-
static flags = {
|
|
24
|
-
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
25
|
-
agent: core_1.Flags.string({
|
|
26
|
-
description: 'Agent ID the trigger belongs to (required — the legacy runs route is per-agent)',
|
|
27
|
-
required: true,
|
|
28
|
-
}),
|
|
29
|
-
limit: core_1.Flags.integer({ description: 'Maximum rows to return', default: 20 }),
|
|
30
|
-
cursor: core_1.Flags.string({
|
|
31
|
-
description: 'Pagination cursor returned as `next_cursor` from a previous call',
|
|
32
|
-
}),
|
|
33
|
-
};
|
|
34
|
-
async run() {
|
|
35
|
-
this.requireAuth();
|
|
36
|
-
const { args, flags } = await this.parse(TriggersRuns);
|
|
37
|
-
let response;
|
|
38
|
-
try {
|
|
39
|
-
response = await triggers_1.triggerApi.legacyRuns(flags.agent, args.id, {
|
|
40
|
-
limit: flags.limit,
|
|
41
|
-
cursor: flags.cursor,
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
catch (err) {
|
|
45
|
-
this.handleApiError(err);
|
|
46
|
-
}
|
|
47
|
-
if (flags.json) {
|
|
48
|
-
this.log(JSON.stringify(response, null, 2));
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
(0, triggers_1.renderLegacyRuns)(response.data ?? [], (line) => this.log(line));
|
|
52
|
-
if (response.has_more && response.next_cursor) {
|
|
53
|
-
this.log('');
|
|
54
|
-
this.log(`More rows available — pass --cursor "${response.next_cursor}" to continue.`);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.default = TriggersRuns;
|