@skrr-ai/cli 0.1.116 → 0.1.117
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/base-command.d.ts +21 -0
- package/dist/base-command.js +95 -8
- package/dist/commands/actions/install.d.ts +1 -0
- package/dist/commands/actions/install.js +46 -1
- package/dist/commands/commitments/create.d.ts +21 -2
- package/dist/commands/commitments/create.js +74 -4
- package/dist/commands/convos/recovery.js +12 -4
- package/dist/commands/followups/plans/list.js +1 -1
- package/dist/commands/guide.d.ts +21 -0
- package/dist/commands/guide.js +46 -0
- package/dist/commands/instructions/guide.js +34 -52
- package/dist/commands/memory/maintain.js +1 -1
- package/dist/commands/skills/install.d.ts +1 -0
- package/dist/commands/skills/install.js +41 -2
- package/dist/commands/slack/send-as-agent.js +3 -3
- package/dist/commands/spaces/create.js +8 -2
- package/dist/commands/spaces/guide.d.ts +21 -0
- package/dist/commands/spaces/guide.js +40 -0
- package/dist/commands/spaces/index.d.ts +0 -1
- package/dist/commands/spaces/index.js +1 -6
- package/dist/commands/tasks/checkout.js +2 -3
- package/dist/commands/tasks/comments/add.js +3 -5
- package/dist/commands/tasks/complete.js +2 -3
- package/dist/commands/tasks/deliverable/add.d.ts +1 -1
- package/dist/commands/tasks/deliverable/add.js +4 -7
- package/dist/commands/tasks/expectations/assess.js +2 -2
- package/dist/commands/tasks/guide.d.ts +8 -0
- package/dist/commands/tasks/guide.js +23 -10
- package/dist/commands/tasks/report.js +9 -5
- package/dist/commands/tasks/resource/add.js +2 -3
- package/dist/commands/tasks/result/submit.js +2 -3
- package/dist/commands/tasks/resume/save.js +2 -3
- package/dist/commands/tasks/review.js +2 -3
- package/dist/commands/tasks/triage.js +2 -1
- package/dist/commands/tasks/updates/add.js +2 -3
- package/dist/generated/agent-guides.json +8290 -0
- package/dist/generated/managed-instruction-guides.json +1 -1
- package/dist/help.js +4 -3
- package/dist/hooks/command-not-found.js +1 -1
- package/dist/lib/agent-guide-reference-gate.d.ts +28 -0
- package/dist/lib/agent-guide-reference-gate.js +186 -0
- package/dist/lib/agent-guides.d.ts +51 -0
- package/dist/lib/agent-guides.js +170 -0
- package/dist/lib/command-miss.d.ts +13 -2
- package/dist/lib/command-miss.js +134 -8
- package/dist/lib/guide-pointer.d.ts +15 -0
- package/dist/lib/guide-pointer.js +51 -0
- package/dist/lib/lookbackPlans.d.ts +3 -1
- package/dist/lib/lookbackPlans.js +9 -0
- package/dist/lib/outbox.d.ts +0 -14
- package/dist/lib/outbox.js +0 -21
- package/dist/lib/roles.d.ts +1 -1
- package/dist/lib/task-batch.d.ts +10 -7
- package/dist/lib/task-batch.js +5 -20
- package/dist/lib/task-operations.d.ts +8 -20
- package/dist/lib/task-operations.js +9 -94
- package/dist/lib/task-preflight.js +70 -33
- package/dist/lib/usage-discovery.d.ts +4 -0
- package/dist/lib/usage-discovery.js +5 -0
- package/dist/lib/voice-call-intent.js +3 -1
- package/dist/node_modules/@skrr-ai/data-provider/index.js +6593 -6383
- package/oclif.manifest.json +228 -13
- package/package.json +4 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const node_crypto_1 = require("node:crypto");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../base-command");
|
|
6
|
-
const outbox_1 = require("../../../lib/outbox");
|
|
7
7
|
const task_resolver_1 = require("../../../lib/task-resolver");
|
|
8
8
|
const api_fetch_1 = require("../../../lib/api-fetch");
|
|
9
9
|
const session_task_write_1 = require("../../../lib/session-task-write");
|
|
@@ -51,8 +51,7 @@ class TasksResumeSave extends base_command_1.BaseCommand {
|
|
|
51
51
|
runId: flags['run-id'],
|
|
52
52
|
expectedSpecVersion: flags['spec-version'],
|
|
53
53
|
resume: resume,
|
|
54
|
-
idempotencyKey: flags['idempotency-key'] ||
|
|
55
|
-
(0, outbox_1.idempotencyKeyFor)('task-resume', task.id, JSON.stringify(resume)),
|
|
54
|
+
idempotencyKey: flags['idempotency-key'] || `task-resume_${(0, node_crypto_1.randomUUID)()}`,
|
|
56
55
|
};
|
|
57
56
|
const sessionWrite = await (0, session_task_write_1.sessionTaskWrite)('resume', task.id);
|
|
58
57
|
result = sessionWrite
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const node_crypto_1 = require("node:crypto");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../base-command");
|
|
6
|
-
const outbox_1 = require("../../lib/outbox");
|
|
7
7
|
const task_resolver_1 = require("../../lib/task-resolver");
|
|
8
8
|
const api_fetch_1 = require("../../lib/api-fetch");
|
|
9
9
|
const session_task_write_1 = require("../../lib/session-task-write");
|
|
@@ -36,8 +36,7 @@ class TasksReview extends base_command_1.BaseCommand {
|
|
|
36
36
|
try {
|
|
37
37
|
const data = {
|
|
38
38
|
...payload,
|
|
39
|
-
idempotencyKey: flags['idempotency-key'] ||
|
|
40
|
-
(0, outbox_1.idempotencyKeyFor)('task-review', task.id, JSON.stringify(payload)),
|
|
39
|
+
idempotencyKey: flags['idempotency-key'] || `task-review_${(0, node_crypto_1.randomUUID)()}`,
|
|
41
40
|
};
|
|
42
41
|
const sessionWrite = await (0, session_task_write_1.sessionTaskWrite)('review', task.id);
|
|
43
42
|
result = sessionWrite
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const node_crypto_1 = require("node:crypto");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../base-command");
|
|
@@ -123,7 +124,7 @@ class TasksTriage extends base_command_1.BaseCommand {
|
|
|
123
124
|
await data_provider_1.dataService.appendTaskWorkEvent({
|
|
124
125
|
taskId: task.id,
|
|
125
126
|
data: {
|
|
126
|
-
idempotencyKey: `
|
|
127
|
+
idempotencyKey: `task-triage_${(0, node_crypto_1.randomUUID)()}`,
|
|
127
128
|
kind: 'decision',
|
|
128
129
|
summary,
|
|
129
130
|
data: { action, ...(flags.reason ? { reason: flags.reason } : {}) },
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const node_crypto_1 = require("node:crypto");
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
6
|
const base_command_1 = require("../../../base-command");
|
|
6
|
-
const outbox_1 = require("../../../lib/outbox");
|
|
7
7
|
const task_resolver_1 = require("../../../lib/task-resolver");
|
|
8
8
|
const api_fetch_1 = require("../../../lib/api-fetch");
|
|
9
9
|
const session_task_write_1 = require("../../../lib/session-task-write");
|
|
@@ -130,8 +130,7 @@ class TasksUpdatesAdd extends base_command_1.BaseCommand {
|
|
|
130
130
|
references.push(...refs);
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
const idempotencyKey = flags['idempotency-key'] ||
|
|
134
|
-
(0, outbox_1.idempotencyKeyFor)('task-update', task.id, JSON.stringify({ type: flags.type, summary: flags.summary, data, resume }));
|
|
133
|
+
const idempotencyKey = flags['idempotency-key'] || `task-update_${(0, node_crypto_1.randomUUID)()}`;
|
|
135
134
|
let result;
|
|
136
135
|
try {
|
|
137
136
|
const payload = {
|