@skrr-ai/cli 0.1.206 → 0.1.208
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/commands/agent/message/resolve.d.ts +31 -0
- package/dist/commands/agent/message/resolve.js +111 -0
- package/dist/commands/agent/message/send.d.ts +17 -5
- package/dist/commands/agent/message/send.js +77 -26
- package/dist/commands/agent/request/list.d.ts +15 -0
- package/dist/commands/agent/request/list.js +82 -0
- package/dist/commands/agent/request/send.d.ts +18 -0
- package/dist/commands/agent/request/send.js +56 -0
- package/dist/commands/agents/access/approve.d.ts +17 -0
- package/dist/commands/agents/access/approve.js +94 -0
- package/dist/commands/agents/access/deny.d.ts +10 -0
- package/dist/commands/agents/access/deny.js +36 -0
- package/dist/commands/agents/access/list.d.ts +10 -0
- package/dist/commands/agents/access/list.js +53 -0
- package/dist/commands/agents/access/reach.d.ts +13 -0
- package/dist/commands/agents/access/reach.js +53 -0
- package/dist/commands/agents/access/revoke.d.ts +13 -0
- package/dist/commands/agents/access/revoke.js +50 -0
- package/dist/commands/agents/import.d.ts +15 -1
- package/dist/commands/agents/import.js +211 -23
- package/dist/commands/agents/intuitions/accept.d.ts +0 -1
- package/dist/commands/agents/intuitions/accept.js +22 -7
- package/dist/commands/agents/intuitions/generate.d.ts +0 -1
- package/dist/commands/agents/intuitions/generate.js +4 -16
- package/dist/commands/agents/intuitions/list.js +9 -3
- package/dist/commands/agents/intuitions/resume.d.ts +11 -0
- package/dist/commands/agents/intuitions/resume.js +37 -0
- package/dist/commands/agents/models.d.ts +11 -0
- package/dist/commands/agents/models.js +51 -0
- package/dist/commands/agents/shared-memory.d.ts +24 -0
- package/dist/commands/agents/shared-memory.js +67 -0
- package/dist/commands/agents/visibility.d.ts +1 -0
- package/dist/commands/agents/visibility.js +14 -0
- package/dist/commands/balance/route-premiums.d.ts +9 -0
- package/dist/commands/balance/route-premiums.js +33 -0
- package/dist/commands/code/migrate.js +3 -1
- package/dist/commands/convos/transcript.d.ts +0 -1
- package/dist/commands/convos/transcript.js +0 -1
- package/dist/commands/duties/advance-next.js +15 -6
- package/dist/commands/followups/show.js +9 -0
- package/dist/commands/followups/watch-pr.d.ts +27 -0
- package/dist/commands/followups/watch-pr.js +123 -0
- package/dist/commands/goals/create.d.ts +1 -0
- package/dist/commands/goals/create.js +8 -0
- package/dist/commands/goals/creation-receipt.d.ts +10 -0
- package/dist/commands/goals/creation-receipt.js +43 -0
- package/dist/commands/goals/key-results/create.d.ts +2 -0
- package/dist/commands/goals/key-results/create.js +14 -0
- package/dist/commands/goals/key-results/creation-receipt.d.ts +13 -0
- package/dist/commands/goals/key-results/creation-receipt.js +51 -0
- package/dist/commands/harnesses/forget.d.ts +2 -0
- package/dist/commands/harnesses/forget.js +31 -0
- package/dist/commands/harnesses/removal-receipt.d.ts +11 -0
- package/dist/commands/harnesses/removal-receipt.js +32 -0
- package/dist/commands/harnesses/removal-review.d.ts +11 -0
- package/dist/commands/harnesses/removal-review.js +28 -0
- package/dist/commands/memory/consolidation/index.d.ts +20 -0
- package/dist/commands/memory/consolidation/index.js +78 -0
- package/dist/commands/memory/consolidation/resume.d.ts +14 -0
- package/dist/commands/memory/consolidation/resume.js +46 -0
- package/dist/commands/memory/consolidation/undo.d.ts +18 -0
- package/dist/commands/memory/consolidation/undo.js +60 -0
- package/dist/commands/slack/mutes.d.ts +10 -0
- package/dist/commands/slack/mutes.js +62 -0
- package/dist/commands/slack/unmute.d.ts +12 -0
- package/dist/commands/slack/unmute.js +44 -0
- package/dist/commands/spaces/loops/release-receipt.d.ts +14 -0
- package/dist/commands/spaces/loops/release-receipt.js +48 -0
- package/dist/commands/spaces/loops/release.js +1 -1
- package/dist/commands/spaces/workflow-templates/archive.d.ts +1 -0
- package/dist/commands/spaces/workflow-templates/archive.js +9 -1
- package/dist/commands/spaces/workflow-templates/show.js +2 -0
- package/dist/commands/spaces/workflow-templates/update.d.ts +1 -0
- package/dist/commands/spaces/workflow-templates/update.js +12 -1
- package/dist/commands/spaces/workflows/publish.d.ts +1 -0
- package/dist/commands/spaces/workflows/publish.js +41 -2
- package/dist/commands/tasks/actionability.js +9 -0
- package/dist/commands/tasks/ask.d.ts +50 -0
- package/dist/commands/tasks/ask.js +190 -0
- package/dist/commands/tasks/create.d.ts +2 -0
- package/dist/commands/tasks/create.js +19 -6
- package/dist/commands/tasks/creation-receipt.d.ts +12 -0
- package/dist/commands/tasks/creation-receipt.js +53 -0
- package/dist/commands/tasks/delete.d.ts +1 -0
- package/dist/commands/tasks/delete.js +22 -4
- package/dist/commands/tasks/deletion-receipt.d.ts +12 -0
- package/dist/commands/tasks/deletion-receipt.js +37 -0
- package/dist/commands/tasks/handover.js +14 -0
- package/dist/commands/tasks/input/answer.js +8 -2
- package/dist/commands/tasks/input/show.d.ts +26 -0
- package/dist/commands/tasks/input/show.js +185 -17
- package/dist/commands/tasks/move.d.ts +11 -0
- package/dist/commands/tasks/move.js +82 -1
- package/dist/commands/tasks/result/submit.js +3 -0
- package/dist/commands/tasks/runs.d.ts +4 -1
- package/dist/commands/tasks/runs.js +22 -3
- package/dist/commands/tasks/show.js +22 -1
- package/dist/commands/tasks/update.d.ts +1 -0
- package/dist/commands/tasks/update.js +52 -1
- package/dist/commands/tasks/updates/add.js +3 -0
- package/dist/commands/tasks/wait.d.ts +20 -0
- package/dist/commands/tasks/wait.js +102 -1
- package/dist/generated/agent-guides.json +501 -92
- package/dist/generated/managed-instruction-guides.json +1 -1
- package/dist/lib/agent-access-command.d.ts +19 -0
- package/dist/lib/agent-access-command.js +44 -0
- package/dist/lib/agent-access.d.ts +18 -0
- package/dist/lib/agent-access.js +48 -0
- package/dist/lib/agent-import/apply.d.ts +50 -0
- package/dist/lib/agent-import/apply.js +85 -0
- package/dist/lib/agent-import/plan.d.ts +132 -0
- package/dist/lib/agent-import/plan.js +504 -0
- package/dist/lib/agent-import/reader.d.ts +94 -0
- package/dist/lib/agent-import/reader.js +326 -0
- package/dist/lib/agent-import/schedule.d.ts +46 -0
- package/dist/lib/agent-import/schedule.js +220 -0
- package/dist/lib/agent-import/sources.d.ts +124 -0
- package/dist/lib/agent-import/sources.js +797 -0
- package/dist/lib/execution-target.d.ts +1 -1
- package/dist/lib/execution-target.js +4 -0
- package/dist/lib/followups.d.ts +61 -0
- package/dist/lib/followups.js +39 -0
- package/dist/lib/handover-interview.d.ts +18 -0
- package/dist/lib/handover-interview.js +53 -0
- package/dist/lib/harnesses.d.ts +25 -0
- package/dist/lib/harnesses.js +15 -0
- package/dist/lib/input-queue.js +2 -1
- package/dist/lib/intuition-look.d.ts +10 -0
- package/dist/lib/intuition-look.js +64 -0
- package/dist/lib/record-output.d.ts +1 -1
- package/dist/lib/record-output.js +2 -0
- package/dist/lib/request-uuid.d.ts +2 -0
- package/dist/lib/request-uuid.js +10 -0
- package/dist/lib/skill-import.d.ts +19 -0
- package/dist/lib/skill-import.js +34 -0
- package/dist/lib/slack-thread-mutes.d.ts +25 -0
- package/dist/lib/slack-thread-mutes.js +12 -0
- package/dist/lib/task-carriers.d.ts +18 -0
- package/dist/lib/task-carriers.js +43 -0
- package/dist/lib/task-extras.d.ts +5 -0
- package/dist/lib/task-extras.js +5 -0
- package/dist/lib/task-recurrence-summary.d.ts +15 -0
- package/dist/lib/task-recurrence-summary.js +22 -0
- package/dist/lib/task-version.d.ts +44 -0
- package/dist/lib/task-version.js +73 -0
- package/dist/lib/task-write-attribution.d.ts +7 -0
- package/dist/lib/task-write-attribution.js +14 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/turnPacing.d.ts +75 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/turnPacing.js +124 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/turnPacing.d.ts +75 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/turnPacing.js +141 -0
- package/dist/node_modules/@skrr-ai/auth-core/package.json +10 -0
- package/dist/node_modules/@skrr-ai/data-provider/index.js +13350 -12579
- package/oclif.manifest.json +3044 -563
- package/package.json +5 -2
|
@@ -4,6 +4,7 @@ export default class GoalsCreate extends BaseCommand {
|
|
|
4
4
|
static examples: string[];
|
|
5
5
|
static flags: {
|
|
6
6
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
|
+
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
8
|
'from-json': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
9
|
title: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
10
|
'idempotency-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -20,6 +20,9 @@ class GoalsCreate extends base_command_1.BaseCommand {
|
|
|
20
20
|
];
|
|
21
21
|
static flags = {
|
|
22
22
|
json: core_1.Flags.boolean({ description: 'Output the created goal as JSON' }),
|
|
23
|
+
'dry-run': core_1.Flags.boolean({
|
|
24
|
+
description: 'Print the resolved create payload without creating a Goal',
|
|
25
|
+
}),
|
|
23
26
|
'from-json': core_1.Flags.string({
|
|
24
27
|
description: 'Path to a JSON file (or "-" for stdin) to use as the request body',
|
|
25
28
|
}),
|
|
@@ -127,6 +130,11 @@ class GoalsCreate extends base_command_1.BaseCommand {
|
|
|
127
130
|
}
|
|
128
131
|
if (resolvedLabelIds)
|
|
129
132
|
payload.labelIds = resolvedLabelIds;
|
|
133
|
+
if (flags['dry-run']) {
|
|
134
|
+
const result = { object: 'goal_create_dry_run', payload };
|
|
135
|
+
this.printJsonOperation(result, { mode: 'dry_run' });
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
130
138
|
let created;
|
|
131
139
|
try {
|
|
132
140
|
created = await data_provider_1.dataService.createGoal(payload, flags['idempotency-key'] ? { idempotencyKey: flags['idempotency-key'] } : undefined);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command';
|
|
2
|
+
export default class GoalsCreationReceipt extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static flags: {
|
|
5
|
+
'idempotency-key': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
6
|
+
'from-json': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
};
|
|
9
|
+
run(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
|
+
const base_command_1 = require("../../base-command");
|
|
6
|
+
const prompt_1 = require("../../lib/prompt");
|
|
7
|
+
class GoalsCreationReceipt extends base_command_1.BaseCommand {
|
|
8
|
+
static description = 'Check whether the original Goal creation request committed';
|
|
9
|
+
static flags = {
|
|
10
|
+
'idempotency-key': core_1.Flags.string({ description: 'Key used by the original `goals create`', required: true }),
|
|
11
|
+
'from-json': core_1.Flags.string({
|
|
12
|
+
description: 'Original request body, such as .payload from `goals create --dry-run --json` ("-" for stdin)',
|
|
13
|
+
required: true,
|
|
14
|
+
}),
|
|
15
|
+
json: core_1.Flags.boolean({ description: 'Output the receipt as JSON' }),
|
|
16
|
+
};
|
|
17
|
+
async run() {
|
|
18
|
+
this.requireAuth();
|
|
19
|
+
const { flags } = await this.parse(GoalsCreationReceipt);
|
|
20
|
+
let payload;
|
|
21
|
+
try {
|
|
22
|
+
payload = await (0, prompt_1.readJsonBody)(flags['from-json']);
|
|
23
|
+
}
|
|
24
|
+
catch (error) {
|
|
25
|
+
this.error(error.message, { exit: 2 });
|
|
26
|
+
}
|
|
27
|
+
try {
|
|
28
|
+
const receipt = await data_provider_1.dataService.getGoalCreationReceipt(payload, flags['idempotency-key']);
|
|
29
|
+
if (flags.json)
|
|
30
|
+
return this.printJsonResult(receipt);
|
|
31
|
+
const messages = {
|
|
32
|
+
committed: 'The original Goal creation committed.',
|
|
33
|
+
gone: 'The Goal from that request is no longer available.',
|
|
34
|
+
unknown: 'The server could not confirm that Goal creation.',
|
|
35
|
+
};
|
|
36
|
+
this.log(messages[receipt.state]);
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
this.handleApiError(error, { subject: 'Goal creation receipt' });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.default = GoalsCreationReceipt;
|
|
@@ -14,9 +14,11 @@ export default class GoalsKeyResultsCreate extends BaseCommand {
|
|
|
14
14
|
};
|
|
15
15
|
static flags: {
|
|
16
16
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
|
+
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
18
|
'from-json': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
19
|
title: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
20
|
description: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
'request-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
22
|
progress: import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
23
|
'progress-mode': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
24
|
status: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -4,6 +4,7 @@ const core_1 = require("@oclif/core");
|
|
|
4
4
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
5
|
const base_command_1 = require("../../../base-command");
|
|
6
6
|
const prompt_1 = require("../../../lib/prompt");
|
|
7
|
+
const request_uuid_1 = require("../../../lib/request-uuid");
|
|
7
8
|
/**
|
|
8
9
|
* `skrr goals key-results create <goal-id> --title "..."` — add a key result to a
|
|
9
10
|
* goal. Wraps `POST /api/goals/:goalId/key-results` (data-provider
|
|
@@ -23,11 +24,18 @@ class GoalsKeyResultsCreate extends base_command_1.BaseCommand {
|
|
|
23
24
|
};
|
|
24
25
|
static flags = {
|
|
25
26
|
json: core_1.Flags.boolean({ description: 'Output the created key result as JSON' }),
|
|
27
|
+
'dry-run': core_1.Flags.boolean({
|
|
28
|
+
description: 'Print the resolved create payload without creating a Key Result',
|
|
29
|
+
}),
|
|
26
30
|
'from-json': core_1.Flags.string({
|
|
27
31
|
description: 'Path to a JSON file (or "-" for stdin) to use as the request body',
|
|
28
32
|
}),
|
|
29
33
|
title: core_1.Flags.string({ description: 'Key result title (required unless set via --from-json)' }),
|
|
30
34
|
description: core_1.Flags.string({ description: 'Key result description' }),
|
|
35
|
+
'request-id': core_1.Flags.string({
|
|
36
|
+
description: 'UUID for this exact create payload, recoverable with `goals key-results creation-receipt`',
|
|
37
|
+
parse: request_uuid_1.parseRequestUuid,
|
|
38
|
+
}),
|
|
31
39
|
// The bound is declared, not just described. `--progress 150` and
|
|
32
40
|
// `--progress -5` both came back as a bare `Invalid request data /
|
|
33
41
|
// HTTP_400` from the server — byte-identical for two different mistakes,
|
|
@@ -65,6 +73,7 @@ class GoalsKeyResultsCreate extends base_command_1.BaseCommand {
|
|
|
65
73
|
const data = (0, prompt_1.mergeDefined)(body, {
|
|
66
74
|
title: flags.title,
|
|
67
75
|
description: flags.description,
|
|
76
|
+
creationRequestId: flags['request-id'],
|
|
68
77
|
progress: flags.progress,
|
|
69
78
|
progressMode: flags['progress-mode'],
|
|
70
79
|
status: flags.status,
|
|
@@ -75,6 +84,11 @@ class GoalsKeyResultsCreate extends base_command_1.BaseCommand {
|
|
|
75
84
|
exit: 1,
|
|
76
85
|
});
|
|
77
86
|
}
|
|
87
|
+
if (flags['dry-run']) {
|
|
88
|
+
const result = { object: 'key_result_create_dry_run', payload: data };
|
|
89
|
+
this.printJsonOperation(result, { mode: 'dry_run' });
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
78
92
|
let created;
|
|
79
93
|
try {
|
|
80
94
|
created = await data_provider_1.dataService.createKeyResult({
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseCommand } from '../../../base-command';
|
|
2
|
+
export default class GoalsKeyResultsCreationReceipt extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
goalId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
7
|
+
static flags: {
|
|
8
|
+
'request-id': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
'from-json': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
};
|
|
12
|
+
run(): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
|
+
const base_command_1 = require("../../../base-command");
|
|
6
|
+
const prompt_1 = require("../../../lib/prompt");
|
|
7
|
+
const request_uuid_1 = require("../../../lib/request-uuid");
|
|
8
|
+
class GoalsKeyResultsCreationReceipt extends base_command_1.BaseCommand {
|
|
9
|
+
static description = 'Check whether the original Key Result creation request completed';
|
|
10
|
+
static args = {
|
|
11
|
+
goalId: core_1.Args.string({ description: 'Goal ID', required: true, ignoreStdin: true }),
|
|
12
|
+
};
|
|
13
|
+
static flags = {
|
|
14
|
+
'request-id': core_1.Flags.string({
|
|
15
|
+
description: 'UUID used for the original Key Result create', required: true, parse: request_uuid_1.parseRequestUuid,
|
|
16
|
+
}),
|
|
17
|
+
'from-json': core_1.Flags.string({
|
|
18
|
+
description: 'Original request body, such as .payload from `goals key-results create --dry-run --json` ("-" for stdin)',
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
json: core_1.Flags.boolean({ description: 'Output the receipt as JSON' }),
|
|
22
|
+
};
|
|
23
|
+
async run() {
|
|
24
|
+
this.requireAuth();
|
|
25
|
+
const { args, flags } = await this.parse(GoalsKeyResultsCreationReceipt);
|
|
26
|
+
const requestId = flags['request-id'];
|
|
27
|
+
let body;
|
|
28
|
+
try {
|
|
29
|
+
body = await (0, prompt_1.readJsonBody)(flags['from-json']);
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
this.error(error.message, { exit: 2 });
|
|
33
|
+
}
|
|
34
|
+
const { creationRequestId, ...payload } = body;
|
|
35
|
+
if (creationRequestId !== undefined && creationRequestId !== requestId) {
|
|
36
|
+
this.error('The original body contains a different creationRequestId.', { exit: 2 });
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
const receipt = await data_provider_1.dataService.getKeyResultCreationReceipt(args.goalId, { requestId, payload });
|
|
40
|
+
if (flags.json)
|
|
41
|
+
return this.printJsonResult(receipt);
|
|
42
|
+
this.log(receipt.state === 'created'
|
|
43
|
+
? `Created Key Result ${receipt.keyResultId}.`
|
|
44
|
+
: 'The server could not confirm that Key Result creation.');
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
this.handleApiError(error, { subject: `Goal ${args.goalId} Key Result creation receipt` });
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.default = GoalsKeyResultsCreationReceipt;
|
|
@@ -15,6 +15,8 @@ export default class HarnessesForget extends BaseCommand {
|
|
|
15
15
|
static flags: {
|
|
16
16
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
17
|
yes: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
|
+
'review-ref': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
'operation-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
20
|
};
|
|
19
21
|
run(): Promise<void>;
|
|
20
22
|
}
|
|
@@ -5,6 +5,7 @@ const base_command_1 = require("../../base-command");
|
|
|
5
5
|
const harnesses_1 = require("../../lib/harnesses");
|
|
6
6
|
const api_fetch_1 = require("../../lib/api-fetch");
|
|
7
7
|
const show_1 = require("./show");
|
|
8
|
+
const request_uuid_1 = require("../../lib/request-uuid");
|
|
8
9
|
const RUN_RE = /^[0-9a-f]{24}$/i;
|
|
9
10
|
/**
|
|
10
11
|
* Forget an harness — `forget`, not `delete`.
|
|
@@ -18,6 +19,7 @@ class HarnessesForget extends base_command_1.BaseCommand {
|
|
|
18
19
|
static examples = [
|
|
19
20
|
'<%= config.bin %> harnesses forget <harness-id>',
|
|
20
21
|
'<%= config.bin %> harnesses forget <harness-id> --yes',
|
|
22
|
+
'<%= config.bin %> harnesses forget <harness-id> --review-ref <review-ref> --operation-id <uuid>',
|
|
21
23
|
];
|
|
22
24
|
static args = {
|
|
23
25
|
harness: core_1.Args.string({ ignoreStdin: true, description: 'Harness ID', required: true }),
|
|
@@ -25,10 +27,21 @@ class HarnessesForget extends base_command_1.BaseCommand {
|
|
|
25
27
|
static flags = {
|
|
26
28
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
27
29
|
yes: core_1.Flags.boolean({ description: 'Skip the confirmation' }),
|
|
30
|
+
'review-ref': core_1.Flags.string({
|
|
31
|
+
description: 'Exact token from `harnesses removal-review` for a personal local registration',
|
|
32
|
+
dependsOn: ['operation-id'],
|
|
33
|
+
}),
|
|
34
|
+
'operation-id': core_1.Flags.string({
|
|
35
|
+
description: 'Stable UUID for the reviewed removal, recoverable with `harnesses removal-receipt`',
|
|
36
|
+
dependsOn: ['review-ref'],
|
|
37
|
+
parse: request_uuid_1.parseRequestUuid,
|
|
38
|
+
}),
|
|
28
39
|
};
|
|
29
40
|
async run() {
|
|
30
41
|
this.requireAuth();
|
|
31
42
|
const { args, flags } = await this.parse(HarnessesForget);
|
|
43
|
+
const reviewRef = flags['review-ref'];
|
|
44
|
+
const operationId = flags['operation-id'];
|
|
32
45
|
// Refuse a reference that cannot name a harness BEFORE asking anything.
|
|
33
46
|
//
|
|
34
47
|
// The confirmation used to run first, so `harnesses forget notanid` asked
|
|
@@ -47,6 +60,24 @@ class HarnessesForget extends base_command_1.BaseCommand {
|
|
|
47
60
|
});
|
|
48
61
|
return;
|
|
49
62
|
}
|
|
63
|
+
if (reviewRef !== undefined || operationId !== undefined) {
|
|
64
|
+
if (!reviewRef?.trim() || !operationId) {
|
|
65
|
+
return this.error('Reviewed removal requires both a review ref and an operation UUID.', { exit: 2 });
|
|
66
|
+
}
|
|
67
|
+
if (!flags.yes && !(await this.confirm(`Remove reviewed personal registration ${args.harness}?`))) {
|
|
68
|
+
return this.error('Cancelled. The registration was kept.', { exit: 1 });
|
|
69
|
+
}
|
|
70
|
+
try {
|
|
71
|
+
const receipt = await (0, harnesses_1.forgetReviewedHarness)(args.harness, reviewRef, operationId);
|
|
72
|
+
if (flags.json)
|
|
73
|
+
return this.printJsonResult(receipt);
|
|
74
|
+
this.log(`Removed registration ${receipt.harnessId}. Operation ${receipt.operationId}.`);
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
this.handleApiError(error, { subject: `reviewed removal of harness ${args.harness}` });
|
|
78
|
+
}
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
50
81
|
// Name it before removing it. An id alone does not tell the operator which
|
|
51
82
|
// of their machines they are about to drop from the fleet.
|
|
52
83
|
if (!flags.yes) {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command';
|
|
2
|
+
export default class HarnessesRemovalReceipt extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
operationId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
7
|
+
static flags: {
|
|
8
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
};
|
|
10
|
+
run(): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 harnesses_1 = require("../../lib/harnesses");
|
|
6
|
+
const request_uuid_1 = require("../../lib/request-uuid");
|
|
7
|
+
class HarnessesRemovalReceipt extends base_command_1.BaseCommand {
|
|
8
|
+
static description = 'Check the result of one reviewed Harness registration removal';
|
|
9
|
+
static args = {
|
|
10
|
+
operationId: core_1.Args.string({
|
|
11
|
+
description: 'UUID used with `harnesses forget`', required: true, ignoreStdin: true,
|
|
12
|
+
parse: request_uuid_1.parseRequestUuid,
|
|
13
|
+
}),
|
|
14
|
+
};
|
|
15
|
+
static flags = { json: core_1.Flags.boolean({ description: 'Output the receipt as JSON' }) };
|
|
16
|
+
async run() {
|
|
17
|
+
this.requireAuth();
|
|
18
|
+
const { args, flags } = await this.parse(HarnessesRemovalReceipt);
|
|
19
|
+
try {
|
|
20
|
+
const result = await (0, harnesses_1.getHarnessRemovalOperation)(args.operationId);
|
|
21
|
+
if (flags.json)
|
|
22
|
+
return this.printJsonResult(result);
|
|
23
|
+
this.log(result.state === 'committed'
|
|
24
|
+
? `Registration ${result.receipt.harnessId} was removed at ${result.receipt.removedAt}.`
|
|
25
|
+
: 'The server could not confirm that registration removal.');
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
this.handleApiError(error, { subject: `Harness removal operation ${args.operationId}` });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.default = HarnessesRemovalReceipt;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command';
|
|
2
|
+
export default class HarnessesRemovalReview extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
7
|
+
static flags: {
|
|
8
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
};
|
|
10
|
+
run(): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 harnesses_1 = require("../../lib/harnesses");
|
|
6
|
+
class HarnessesRemovalReview extends base_command_1.BaseCommand {
|
|
7
|
+
static description = 'Review removal of an unreferenced offline personal Harness registration';
|
|
8
|
+
static args = {
|
|
9
|
+
id: core_1.Args.string({ description: 'Harness ID', required: true, ignoreStdin: true }),
|
|
10
|
+
};
|
|
11
|
+
static flags = { json: core_1.Flags.boolean({ description: 'Output the review as JSON' }) };
|
|
12
|
+
async run() {
|
|
13
|
+
this.requireAuth();
|
|
14
|
+
const { args, flags } = await this.parse(HarnessesRemovalReview);
|
|
15
|
+
try {
|
|
16
|
+
const review = await (0, harnesses_1.getHarnessRemovalReview)(args.id);
|
|
17
|
+
if (flags.json)
|
|
18
|
+
return this.printJsonResult(review);
|
|
19
|
+
this.log(`Registration ${review.harnessId} passed the review. The review expires at ${review.expiresAt}.`);
|
|
20
|
+
this.log(`Review ref: ${review.reviewRef}`);
|
|
21
|
+
this.log(`Confirm with ${this.config.bin} harnesses forget ${review.harnessId} --review-ref <review-ref> --operation-id <uuid>.`);
|
|
22
|
+
}
|
|
23
|
+
catch (error) {
|
|
24
|
+
this.handleApiError(error, { subject: `Harness ${args.id} removal review` });
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.default = HarnessesRemovalReview;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ConsolidationCycle } from '@skrr-ai/data-provider';
|
|
2
|
+
import { BaseCommand } from '../../../base-command';
|
|
3
|
+
/** `3 changed · 1 held back`, or the empty-cycle words. */
|
|
4
|
+
export declare function cycleSummary(cycle: ConsolidationCycle): string;
|
|
5
|
+
/**
|
|
6
|
+
* An Agent's nightly memory tidy-up (AutoDream): whether it is paused, and
|
|
7
|
+
* what each recent night proposed, changed and held back, with the reason for
|
|
8
|
+
* every held-back change. `skrr memory consolidation undo <cycle-id>` reverts
|
|
9
|
+
* one night; `skrr memory consolidation resume` lifts a pause.
|
|
10
|
+
*/
|
|
11
|
+
export default class MemoryConsolidation extends BaseCommand {
|
|
12
|
+
static description: string;
|
|
13
|
+
static examples: string[];
|
|
14
|
+
static flags: {
|
|
15
|
+
agent: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
limit: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
|
+
};
|
|
19
|
+
run(): Promise<void>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cycleSummary = cycleSummary;
|
|
4
|
+
const core_1 = require("@oclif/core");
|
|
5
|
+
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
6
|
+
const base_command_1 = require("../../../base-command");
|
|
7
|
+
const agent_resolver_1 = require("../../../lib/agent-resolver");
|
|
8
|
+
/** `3 changed · 1 held back`, or the empty-cycle words. */
|
|
9
|
+
function cycleSummary(cycle) {
|
|
10
|
+
const parts = [`${cycle.changed} changed`];
|
|
11
|
+
if (cycle.refusals.length)
|
|
12
|
+
parts.push(`${cycle.refusals.length} held back`);
|
|
13
|
+
if (cycle.undoneAt)
|
|
14
|
+
parts.push(`undone ${cycle.undoneAt.slice(0, 10)}`);
|
|
15
|
+
return parts.join(' · ');
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* An Agent's nightly memory tidy-up (AutoDream): whether it is paused, and
|
|
19
|
+
* what each recent night proposed, changed and held back, with the reason for
|
|
20
|
+
* every held-back change. `skrr memory consolidation undo <cycle-id>` reverts
|
|
21
|
+
* one night; `skrr memory consolidation resume` lifts a pause.
|
|
22
|
+
*/
|
|
23
|
+
class MemoryConsolidation extends base_command_1.BaseCommand {
|
|
24
|
+
static description = "Show an agent's nightly memory tidy-ups and what each one changed";
|
|
25
|
+
static examples = [
|
|
26
|
+
'<%= config.bin %> memory consolidation --agent <agent-id>',
|
|
27
|
+
'<%= config.bin %> memory consolidation --agent <agent-id> --limit 30 --json',
|
|
28
|
+
];
|
|
29
|
+
static flags = {
|
|
30
|
+
agent: core_1.Flags.string({
|
|
31
|
+
description: 'Agent ID (falls back to OVERSKY_AGENT_ID, then your primary agent)',
|
|
32
|
+
}),
|
|
33
|
+
limit: core_1.Flags.integer({ description: 'How many recent tidy-ups to show (1-50)', default: 14 }),
|
|
34
|
+
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
35
|
+
};
|
|
36
|
+
async run() {
|
|
37
|
+
this.requireAuth();
|
|
38
|
+
const { flags } = await this.parse(MemoryConsolidation);
|
|
39
|
+
let agentId;
|
|
40
|
+
try {
|
|
41
|
+
agentId = await (0, agent_resolver_1.resolveAgentId)(flags.agent);
|
|
42
|
+
}
|
|
43
|
+
catch (err) {
|
|
44
|
+
this.error(err.message, { exit: 1 });
|
|
45
|
+
}
|
|
46
|
+
let overview;
|
|
47
|
+
try {
|
|
48
|
+
overview = await data_provider_1.dataService.getAgentMemoryConsolidation(agentId, { limit: flags.limit });
|
|
49
|
+
}
|
|
50
|
+
catch (err) {
|
|
51
|
+
this.handleApiError(err);
|
|
52
|
+
}
|
|
53
|
+
if (flags.json) {
|
|
54
|
+
this.log(this.agentJson(agentId, overview));
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const { state, cycles } = overview;
|
|
58
|
+
this.log(`Overnight memory tidy-up for agent ${agentId}`);
|
|
59
|
+
const pause = (0, data_provider_1.consolidationPauseCopy)(state);
|
|
60
|
+
this.log(pause
|
|
61
|
+
? ` ${pause} Resume: skrr memory consolidation resume --agent ${agentId}`
|
|
62
|
+
: ` Running. Failed nights in a row: ${state.failureStreak} of ${state.limits.failureDaysToPause}.`);
|
|
63
|
+
this.log(` Limits: at most ${state.limits.maxNewFacts} new entries and ${Math.round(state.limits.maxChangeShare * 100)}% of memory changed per night.`);
|
|
64
|
+
this.log('');
|
|
65
|
+
if (!cycles.length) {
|
|
66
|
+
this.log('No tidy-ups recorded yet.');
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
for (const cycle of cycles) {
|
|
70
|
+
this.log(`${cycle.startedAt.slice(0, 16).replace('T', ' ')} ${(0, data_provider_1.consolidationOutcomeCopy)(cycle.outcome)} (${cycleSummary(cycle)})`);
|
|
71
|
+
this.log(` id ${cycle.id}${cycle.undoable ? ' · undo available' : ''}`);
|
|
72
|
+
for (const refusal of cycle.refusals) {
|
|
73
|
+
this.log(` held back: ${(0, data_provider_1.consolidationRefusalCopy)(refusal.reason)}`);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.default = MemoryConsolidation;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BaseCommand } from '../../../base-command';
|
|
2
|
+
/**
|
|
3
|
+
* Resume a nightly memory tidy-up that paused after failing several nights in
|
|
4
|
+
* a row. The failure count starts again from zero. Requires EDIT on the agent.
|
|
5
|
+
*/
|
|
6
|
+
export default class MemoryConsolidationResume extends BaseCommand {
|
|
7
|
+
static description: string;
|
|
8
|
+
static examples: string[];
|
|
9
|
+
static flags: {
|
|
10
|
+
agent: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
|
+
const base_command_1 = require("../../../base-command");
|
|
6
|
+
const agent_resolver_1 = require("../../../lib/agent-resolver");
|
|
7
|
+
/**
|
|
8
|
+
* Resume a nightly memory tidy-up that paused after failing several nights in
|
|
9
|
+
* a row. The failure count starts again from zero. Requires EDIT on the agent.
|
|
10
|
+
*/
|
|
11
|
+
class MemoryConsolidationResume extends base_command_1.BaseCommand {
|
|
12
|
+
static description = 'Resume a paused nightly memory tidy-up (requires EDIT)';
|
|
13
|
+
static examples = ['<%= config.bin %> memory consolidation resume --agent <agent-id>'];
|
|
14
|
+
static flags = {
|
|
15
|
+
agent: core_1.Flags.string({
|
|
16
|
+
description: 'Agent ID (falls back to OVERSKY_AGENT_ID, then your primary agent)',
|
|
17
|
+
}),
|
|
18
|
+
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
19
|
+
};
|
|
20
|
+
async run() {
|
|
21
|
+
this.requireAuth();
|
|
22
|
+
const { flags } = await this.parse(MemoryConsolidationResume);
|
|
23
|
+
let agentId;
|
|
24
|
+
try {
|
|
25
|
+
agentId = await (0, agent_resolver_1.resolveAgentId)(flags.agent);
|
|
26
|
+
}
|
|
27
|
+
catch (err) {
|
|
28
|
+
this.error(err.message, { exit: 1 });
|
|
29
|
+
}
|
|
30
|
+
let response;
|
|
31
|
+
try {
|
|
32
|
+
response = await data_provider_1.dataService.resumeAgentMemoryConsolidation(agentId);
|
|
33
|
+
}
|
|
34
|
+
catch (err) {
|
|
35
|
+
this.handleApiError(err);
|
|
36
|
+
}
|
|
37
|
+
if (flags.json) {
|
|
38
|
+
this.log(this.agentJson(agentId, response));
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
this.log(response.state.paused
|
|
42
|
+
? 'The tidy-up is still paused.'
|
|
43
|
+
: 'Overnight memory tidy-up resumed. It runs again tonight.');
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.default = MemoryConsolidationResume;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BaseCommand } from '../../../base-command';
|
|
2
|
+
/**
|
|
3
|
+
* Revert everything one nightly tidy-up wrote, as new versions (history is
|
|
4
|
+
* kept). An entry changed since that night is left as it is now, and the
|
|
5
|
+
* command says so for each one. Requires EDIT on the agent.
|
|
6
|
+
*/
|
|
7
|
+
export default class MemoryConsolidationUndo extends BaseCommand {
|
|
8
|
+
static description: string;
|
|
9
|
+
static examples: string[];
|
|
10
|
+
static args: {
|
|
11
|
+
cycleId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
12
|
+
};
|
|
13
|
+
static flags: {
|
|
14
|
+
agent: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
|
+
};
|
|
17
|
+
run(): Promise<void>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
|
+
const base_command_1 = require("../../../base-command");
|
|
6
|
+
const agent_resolver_1 = require("../../../lib/agent-resolver");
|
|
7
|
+
/**
|
|
8
|
+
* Revert everything one nightly tidy-up wrote, as new versions (history is
|
|
9
|
+
* kept). An entry changed since that night is left as it is now, and the
|
|
10
|
+
* command says so for each one. Requires EDIT on the agent.
|
|
11
|
+
*/
|
|
12
|
+
class MemoryConsolidationUndo extends base_command_1.BaseCommand {
|
|
13
|
+
static description = 'Undo everything one nightly memory tidy-up changed (requires EDIT)';
|
|
14
|
+
static examples = [
|
|
15
|
+
'<%= config.bin %> memory consolidation undo <cycle-id> --agent <agent-id>',
|
|
16
|
+
];
|
|
17
|
+
static args = {
|
|
18
|
+
cycleId: core_1.Args.string({
|
|
19
|
+
description: 'Tidy-up id, from `skrr memory consolidation`',
|
|
20
|
+
required: true,
|
|
21
|
+
}),
|
|
22
|
+
};
|
|
23
|
+
static flags = {
|
|
24
|
+
agent: core_1.Flags.string({
|
|
25
|
+
description: 'Agent ID (falls back to OVERSKY_AGENT_ID, then your primary agent)',
|
|
26
|
+
}),
|
|
27
|
+
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
28
|
+
};
|
|
29
|
+
async run() {
|
|
30
|
+
this.requireAuth();
|
|
31
|
+
const { args, flags } = await this.parse(MemoryConsolidationUndo);
|
|
32
|
+
let agentId;
|
|
33
|
+
try {
|
|
34
|
+
agentId = await (0, agent_resolver_1.resolveAgentId)(flags.agent);
|
|
35
|
+
}
|
|
36
|
+
catch (err) {
|
|
37
|
+
this.error(err.message, { exit: 1 });
|
|
38
|
+
}
|
|
39
|
+
let response;
|
|
40
|
+
try {
|
|
41
|
+
response = await data_provider_1.dataService.undoAgentMemoryConsolidationCycle(agentId, args.cycleId);
|
|
42
|
+
}
|
|
43
|
+
catch (err) {
|
|
44
|
+
this.handleApiError(err);
|
|
45
|
+
}
|
|
46
|
+
if (flags.json) {
|
|
47
|
+
this.log(this.agentJson(agentId, response));
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const { result } = response;
|
|
51
|
+
this.log(`Restored ${result.restored.length} memory entries.`);
|
|
52
|
+
if (result.skipped.length) {
|
|
53
|
+
this.log(`Left ${result.skipped.length} as they are:`);
|
|
54
|
+
for (const skipped of result.skipped) {
|
|
55
|
+
this.log(` ${skipped.memoryId}: ${(0, data_provider_1.consolidationUndoSkipCopy)(skipped.reason)}`);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.default = MemoryConsolidationUndo;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseCommand } from '../../base-command';
|
|
2
|
+
export default class SlackMutes extends BaseCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
agent: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
|
+
};
|
|
9
|
+
run(): Promise<void>;
|
|
10
|
+
}
|