@skrr-ai/cli 0.1.202 → 0.1.206
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/bin/dev-fallback.js +47 -29
- package/bin/dev.cjs +6 -0
- package/dist/base-command.js +1 -1
- package/dist/commands/agent/message/context.d.ts +3 -0
- package/dist/commands/agent/message/context.js +33 -1
- package/dist/commands/agent/message/no-reply.d.ts +17 -0
- package/dist/commands/agent/message/no-reply.js +54 -0
- package/dist/commands/agent/message/retract.d.ts +24 -0
- package/dist/commands/agent/message/retract.js +167 -0
- package/dist/commands/agent/message/send.d.ts +53 -3
- package/dist/commands/agent/message/send.js +148 -4
- package/dist/commands/agents/chat.d.ts +12 -0
- package/dist/commands/agents/chat.js +258 -25
- package/dist/commands/agents/manager/status.d.ts +9 -0
- package/dist/commands/agents/manager/status.js +84 -0
- package/dist/commands/agents/queue/clear.d.ts +13 -0
- package/dist/commands/agents/queue/clear.js +31 -0
- package/dist/commands/agents/queue/list.d.ts +10 -0
- package/dist/commands/agents/queue/list.js +34 -0
- package/dist/commands/agents/queue/move.d.ts +16 -0
- package/dist/commands/agents/queue/move.js +33 -0
- package/dist/commands/agents/queue/pause.d.ts +7 -0
- package/dist/commands/agents/queue/pause.js +24 -0
- package/dist/commands/agents/queue/resume.d.ts +7 -0
- package/dist/commands/agents/queue/resume.js +24 -0
- package/dist/commands/agents/queue/steer.d.ts +14 -0
- package/dist/commands/agents/queue/steer.js +38 -0
- package/dist/commands/agents/queue/withdraw.d.ts +10 -0
- package/dist/commands/agents/queue/withdraw.js +27 -0
- package/dist/commands/agents/supervision.d.ts +1 -0
- package/dist/commands/agents/supervision.js +28 -9
- package/dist/commands/convos/transcript.d.ts +48 -0
- package/dist/commands/convos/transcript.js +461 -0
- package/dist/commands/duties/advance-next.d.ts +17 -0
- package/dist/commands/duties/advance-next.js +122 -0
- package/dist/commands/duties/pack/plan.js +45 -0
- package/dist/commands/duties/preflight.d.ts +1 -0
- package/dist/commands/duties/preflight.js +18 -2
- package/dist/commands/spaces/auto-executor/preview.js +6 -2
- package/dist/commands/spaces/charter/revise.d.ts +16 -0
- package/dist/commands/spaces/charter/revise.js +84 -0
- package/dist/commands/spaces/skills/propose.d.ts +1 -0
- package/dist/commands/spaces/skills/propose.js +5 -0
- package/dist/commands/tasks/create.js +16 -1
- package/dist/commands/tasks/result/show.js +6 -3
- package/dist/commands/tasks/start.d.ts +3 -0
- package/dist/commands/tasks/start.js +12 -1
- package/dist/commands/triggers/capabilities.js +14 -4
- package/dist/generated/agent-guides.json +258 -24
- package/dist/lib/agent-chat-queue-command.d.ts +29 -0
- package/dist/lib/agent-chat-queue-command.js +75 -0
- package/dist/lib/agent-chat-queue.d.ts +77 -0
- package/dist/lib/agent-chat-queue.js +245 -0
- package/dist/lib/agent-chat-start.d.ts +101 -0
- package/dist/lib/agent-chat-start.js +151 -6
- package/dist/lib/duties.d.ts +5 -1
- package/dist/lib/duties.js +16 -5
- package/dist/lib/duty-product.js +6 -0
- package/dist/lib/input-queue.d.ts +18 -0
- package/dist/lib/input-queue.js +59 -0
- package/dist/lib/message-intent.d.ts +26 -3
- package/dist/lib/message-intent.js +7 -1
- package/dist/lib/task-runtime-headers.d.ts +5 -0
- package/dist/lib/task-runtime-headers.js +28 -8
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarness.d.ts +16 -15
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarness.js +0 -22
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/firstPartyHarness.d.ts +16 -15
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/firstPartyHarness.js +0 -22
- package/dist/node_modules/@skrr-ai/data-provider/index.js +11690 -11370
- package/oclif.manifest.json +1635 -332
- package/package.json +10 -4
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const agent_chat_queue_command_1 = require("../../../lib/agent-chat-queue-command");
|
|
4
|
+
const agent_chat_queue_1 = require("../../../lib/agent-chat-queue");
|
|
5
|
+
/** `skrr agents queue pause --conversation <id>`. */
|
|
6
|
+
class AgentsQueuePause extends agent_chat_queue_command_1.AgentChatQueueCommand {
|
|
7
|
+
static description = 'Pause a conversation queue: nothing more is sent until it is resumed';
|
|
8
|
+
static examples = [
|
|
9
|
+
'<%= config.bin %> agents queue pause --conversation <conversation-id>',
|
|
10
|
+
];
|
|
11
|
+
async run() {
|
|
12
|
+
this.requireAuth();
|
|
13
|
+
const { flags } = await this.parse(AgentsQueuePause);
|
|
14
|
+
let snapshot;
|
|
15
|
+
try {
|
|
16
|
+
snapshot = await (0, agent_chat_queue_1.setQueuePaused)(flags.conversation, true);
|
|
17
|
+
}
|
|
18
|
+
catch (err) {
|
|
19
|
+
this.failQueue(err, flags.conversation);
|
|
20
|
+
}
|
|
21
|
+
this.printQueue(snapshot, flags.json, 'Paused. Nothing more is sent until you resume.');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = AgentsQueuePause;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AgentChatQueueCommand } from '../../../lib/agent-chat-queue-command';
|
|
2
|
+
/** `skrr agents queue resume --conversation <id>`. */
|
|
3
|
+
export default class AgentsQueueResume extends AgentChatQueueCommand {
|
|
4
|
+
static description: string;
|
|
5
|
+
static examples: string[];
|
|
6
|
+
run(): Promise<void>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const agent_chat_queue_command_1 = require("../../../lib/agent-chat-queue-command");
|
|
4
|
+
const agent_chat_queue_1 = require("../../../lib/agent-chat-queue");
|
|
5
|
+
/** `skrr agents queue resume --conversation <id>`. */
|
|
6
|
+
class AgentsQueueResume extends agent_chat_queue_command_1.AgentChatQueueCommand {
|
|
7
|
+
static description = 'Resume a paused conversation queue, retrying a held message at its head';
|
|
8
|
+
static examples = [
|
|
9
|
+
'<%= config.bin %> agents queue resume --conversation <conversation-id>',
|
|
10
|
+
];
|
|
11
|
+
async run() {
|
|
12
|
+
this.requireAuth();
|
|
13
|
+
const { flags } = await this.parse(AgentsQueueResume);
|
|
14
|
+
let snapshot;
|
|
15
|
+
try {
|
|
16
|
+
snapshot = await (0, agent_chat_queue_1.setQueuePaused)(flags.conversation, false);
|
|
17
|
+
}
|
|
18
|
+
catch (err) {
|
|
19
|
+
this.failQueue(err, flags.conversation);
|
|
20
|
+
}
|
|
21
|
+
this.printQueue(snapshot, flags.json, 'Resumed. The next message is sent when the running turn ends.');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.default = AgentsQueueResume;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AgentChatQueueCommand } from '../../../lib/agent-chat-queue-command';
|
|
2
|
+
/**
|
|
3
|
+
* `skrr agents queue steer <card> --conversation <id>` — send a queued message into the running
|
|
4
|
+
* turn instead of after it (G3). A command, or a message with files, never steers; a turn that
|
|
5
|
+
* takes no input keeps it queued; with no turn running it is sent now.
|
|
6
|
+
*/
|
|
7
|
+
export default class AgentsQueueSteer extends AgentChatQueueCommand {
|
|
8
|
+
static description: string;
|
|
9
|
+
static examples: string[];
|
|
10
|
+
static args: {
|
|
11
|
+
card: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const agent_chat_queue_command_1 = require("../../../lib/agent-chat-queue-command");
|
|
4
|
+
const agent_chat_queue_1 = require("../../../lib/agent-chat-queue");
|
|
5
|
+
/**
|
|
6
|
+
* `skrr agents queue steer <card> --conversation <id>` — send a queued message into the running
|
|
7
|
+
* turn instead of after it (G3). A command, or a message with files, never steers; a turn that
|
|
8
|
+
* takes no input keeps it queued; with no turn running it is sent now.
|
|
9
|
+
*/
|
|
10
|
+
class AgentsQueueSteer extends agent_chat_queue_command_1.AgentChatQueueCommand {
|
|
11
|
+
static description = 'Send a queued message into the running turn instead of after it';
|
|
12
|
+
static examples = [
|
|
13
|
+
'<%= config.bin %> agents queue steer "#1" --conversation <conversation-id>',
|
|
14
|
+
];
|
|
15
|
+
static args = agent_chat_queue_command_1.AgentChatQueueCommand.cardArg;
|
|
16
|
+
async run() {
|
|
17
|
+
this.requireAuth();
|
|
18
|
+
const { args, flags } = await this.parse(AgentsQueueSteer);
|
|
19
|
+
const { card, read } = await this.findCard(flags.conversation, args.card);
|
|
20
|
+
let steered;
|
|
21
|
+
try {
|
|
22
|
+
steered = await (0, agent_chat_queue_1.steerCard)(flags.conversation, card.cardId, read.version);
|
|
23
|
+
}
|
|
24
|
+
catch (err) {
|
|
25
|
+
this.failQueue(err, flags.conversation);
|
|
26
|
+
}
|
|
27
|
+
if (flags.json) {
|
|
28
|
+
this.printJsonResult({
|
|
29
|
+
outcome: steered.outcome,
|
|
30
|
+
cardId: card.cardId,
|
|
31
|
+
snapshot: steered.snapshot,
|
|
32
|
+
});
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
this.printQueue({ ...steered.snapshot, turn: null }, false, (0, agent_chat_queue_1.steerOutcomeSentence)(steered.outcome));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.default = AgentsQueueSteer;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AgentChatQueueCommand } from '../../../lib/agent-chat-queue-command';
|
|
2
|
+
/** `skrr agents queue withdraw <card> --conversation <id>` — take a message out before it is sent. */
|
|
3
|
+
export default class AgentsQueueWithdraw extends AgentChatQueueCommand {
|
|
4
|
+
static description: string;
|
|
5
|
+
static examples: string[];
|
|
6
|
+
static args: {
|
|
7
|
+
card: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
8
|
+
};
|
|
9
|
+
run(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const agent_chat_queue_command_1 = require("../../../lib/agent-chat-queue-command");
|
|
4
|
+
const agent_chat_queue_1 = require("../../../lib/agent-chat-queue");
|
|
5
|
+
/** `skrr agents queue withdraw <card> --conversation <id>` — take a message out before it is sent. */
|
|
6
|
+
class AgentsQueueWithdraw extends agent_chat_queue_command_1.AgentChatQueueCommand {
|
|
7
|
+
static description = 'Take a queued message out of the queue before it is sent';
|
|
8
|
+
static examples = [
|
|
9
|
+
'<%= config.bin %> agents queue withdraw "#2" --conversation <conversation-id>',
|
|
10
|
+
'<%= config.bin %> agents queue withdraw card_3f9a1c --conversation <conversation-id>',
|
|
11
|
+
];
|
|
12
|
+
static args = agent_chat_queue_command_1.AgentChatQueueCommand.cardArg;
|
|
13
|
+
async run() {
|
|
14
|
+
this.requireAuth();
|
|
15
|
+
const { args, flags } = await this.parse(AgentsQueueWithdraw);
|
|
16
|
+
const { card } = await this.findCard(flags.conversation, args.card);
|
|
17
|
+
let snapshot;
|
|
18
|
+
try {
|
|
19
|
+
snapshot = await (0, agent_chat_queue_1.withdrawCard)(flags.conversation, card.cardId);
|
|
20
|
+
}
|
|
21
|
+
catch (err) {
|
|
22
|
+
this.failQueue(err, flags.conversation);
|
|
23
|
+
}
|
|
24
|
+
this.printQueue(snapshot, flags.json, `Withdrew ${card.cardId}. Nothing was sent.`);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.default = AgentsQueueWithdraw;
|
|
@@ -21,6 +21,7 @@ export default class AgentSupervision extends BaseCommand {
|
|
|
21
21
|
reason: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
22
|
'recheck-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
23
|
};
|
|
24
|
+
private printScope;
|
|
24
25
|
private printStatus;
|
|
25
26
|
private printCheck;
|
|
26
27
|
private printChats;
|
|
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const core_1 = require("@oclif/core");
|
|
4
4
|
const base_command_1 = require("../../base-command");
|
|
5
5
|
const api_fetch_1 = require("../../lib/api-fetch");
|
|
6
|
+
const web_url_1 = require("../../lib/web-url");
|
|
6
7
|
const chat_supervision_1 = require("../../lib/chat-supervision");
|
|
8
|
+
const scopeDescription = 'Follow-up covers this Agent’s Main Chat and its Agent Chat Threads.';
|
|
7
9
|
const chatStates = {
|
|
8
10
|
observing: 'Awaiting a fresh check',
|
|
9
11
|
waiting: 'Waiting',
|
|
@@ -14,6 +16,7 @@ const chatStates = {
|
|
|
14
16
|
settled: 'Checked',
|
|
15
17
|
};
|
|
16
18
|
const chatReasons = {
|
|
19
|
+
interruption_not_automatically_resumable: 'The last execution failed and could not be resumed automatically.',
|
|
17
20
|
no_execution_to_follow: 'No work has started in this chat yet.',
|
|
18
21
|
execution_completed: 'The chat’s last execution completed.',
|
|
19
22
|
person_stopped: 'You stopped this work. It will stay stopped.',
|
|
@@ -37,7 +40,7 @@ const chatReasons = {
|
|
|
37
40
|
waiting_for_runtime: 'The chat is waiting for its runtime.',
|
|
38
41
|
};
|
|
39
42
|
class AgentSupervision extends base_command_1.BaseCommand {
|
|
40
|
-
static description =
|
|
43
|
+
static description = `Manage this Agent’s chat follow-through, inspect current state, or schedule a condition check. ${scopeDescription}`;
|
|
41
44
|
static args = {
|
|
42
45
|
id: core_1.Args.string({ description: 'Agent ID', required: true, ignoreStdin: true }),
|
|
43
46
|
action: core_1.Args.string({
|
|
@@ -99,6 +102,11 @@ class AgentSupervision extends base_command_1.BaseCommand {
|
|
|
99
102
|
reason: core_1.Flags.string({ description: 'Why this chat needs this condition check' }),
|
|
100
103
|
'recheck-id': core_1.Flags.string({ description: 'Exact current recheck.id to cancel' }),
|
|
101
104
|
};
|
|
105
|
+
printScope(agentId) {
|
|
106
|
+
this.log(scopeDescription);
|
|
107
|
+
this.log('Starting agents chat without a chat target opens a standalone conversation.');
|
|
108
|
+
this.log(`To continue in Main Chat, run ${this.config.bin} dm show ${agentId} --json and pass its agentChat.activeConversationId as --conversation <activeConversationId>.`);
|
|
109
|
+
}
|
|
102
110
|
printStatus(view) {
|
|
103
111
|
const { configuration, operational } = view;
|
|
104
112
|
const readiness = operational.recoveryReadiness ??
|
|
@@ -107,17 +115,18 @@ class AgentSupervision extends base_command_1.BaseCommand {
|
|
|
107
115
|
const mode = configuration.mode === 'shadow' ? 'monitoring only' : 'automatic recovery';
|
|
108
116
|
this.log(`Chat follow-up is ${configuration.enabled ? 'on' : 'off'}.`);
|
|
109
117
|
this.log(`Configuration revision ${configuration.revision}.`);
|
|
118
|
+
this.printScope(view.agentId);
|
|
110
119
|
if (operational.backgroundPaused)
|
|
111
120
|
this.log('Turn on Always-On from the Agent profile for chat checks to run.');
|
|
121
|
+
if (operational.recoveryReadinessReason === 'platform_recovery_unavailable')
|
|
122
|
+
this.log('Automatic recovery is currently disabled on this platform.');
|
|
123
|
+
else if (fallsBack)
|
|
124
|
+
this.log(`Automatic recovery is ${readiness}.`);
|
|
112
125
|
if (configuration.enabled) {
|
|
113
126
|
this.log(`Saved mode is ${mode}.`);
|
|
114
|
-
if (fallsBack)
|
|
115
|
-
this.log(`Automatic recovery is ${readiness}.`);
|
|
116
127
|
return;
|
|
117
128
|
}
|
|
118
129
|
this.log(`Turning it on will use ${fallsBack ? 'monitoring only' : mode}.`);
|
|
119
|
-
if (fallsBack)
|
|
120
|
-
this.log(`Automatic recovery is ${readiness}.`);
|
|
121
130
|
this.log('Enable follow-up with the current revision and a fresh request ID.');
|
|
122
131
|
this.log(` ${this.config.bin} agents supervision ${view.agentId} enable --revision ${configuration.revision} --request-id <new-id>`);
|
|
123
132
|
}
|
|
@@ -136,9 +145,11 @@ class AgentSupervision extends base_command_1.BaseCommand {
|
|
|
136
145
|
? 'A previous check is preventing a new chat check.'
|
|
137
146
|
: 'No chat check was started. Read supervision status before trying again.');
|
|
138
147
|
}
|
|
139
|
-
printChats(page) {
|
|
140
|
-
if (!page.items.length)
|
|
148
|
+
printChats(page, agentId) {
|
|
149
|
+
if (!page.items.length) {
|
|
141
150
|
this.log('No followed chats are listed yet.');
|
|
151
|
+
this.printScope(agentId);
|
|
152
|
+
}
|
|
142
153
|
for (const chat of page.items) {
|
|
143
154
|
const title = chat.title?.replace(/\s+/g, ' ').trim() ||
|
|
144
155
|
(chat.chatRef.kind === 'agent_main' ? 'Main chat' : 'Thread');
|
|
@@ -147,11 +158,19 @@ class AgentSupervision extends base_command_1.BaseCommand {
|
|
|
147
158
|
if (page.nextCursor)
|
|
148
159
|
this.log(`More chats are available. Continue with --cursor ${page.nextCursor}`);
|
|
149
160
|
}
|
|
150
|
-
printExplanation({ chat }) {
|
|
161
|
+
printExplanation({ chat, executionReview }) {
|
|
151
162
|
const title = chat.chatRef.kind === 'agent_main' ? 'Main chat' : 'Thread';
|
|
152
163
|
this.log(`${title} · ${chatStates[chat.state] ?? 'Status unconfirmed'}`);
|
|
153
164
|
if (chat.reason)
|
|
154
165
|
this.log(chatReasons[chat.reason] ?? 'Use --json to see the recorded reason.');
|
|
166
|
+
if (executionReview) {
|
|
167
|
+
const url = (0, web_url_1.webUrl)(this.cliConfig.baseURL, {
|
|
168
|
+
kind: 'conversation',
|
|
169
|
+
conversationId: executionReview.conversationId,
|
|
170
|
+
});
|
|
171
|
+
if (url)
|
|
172
|
+
this.log(`Review the execution in chat: ${url}`);
|
|
173
|
+
}
|
|
155
174
|
if (chat.lastCheckedAt)
|
|
156
175
|
this.log(`Last checked ${chat.lastCheckedAt}`);
|
|
157
176
|
if (chat.nextCheckAt)
|
|
@@ -195,7 +214,7 @@ class AgentSupervision extends base_command_1.BaseCommand {
|
|
|
195
214
|
else if (args.action === 'chats') {
|
|
196
215
|
const page = await (0, api_fetch_1.apiFetch)((0, chat_supervision_1.chatSupervisionPath)(args.id, `/chats${flags.cursor ? `?cursor=${encodeURIComponent(flags.cursor)}` : ''}`));
|
|
197
216
|
if (interactive)
|
|
198
|
-
return this.printChats(page);
|
|
217
|
+
return this.printChats(page, args.id);
|
|
199
218
|
receipt = page;
|
|
200
219
|
}
|
|
201
220
|
else {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type ContextBreakReason, type ConversationTranscriptItem, type ConversationTranscriptTurn, type ConversationTranscriptTurnBody, type LocalSessionContinuationState, type TurnTranscriptSource, type TurnTranscriptUsage } from '@skrr-ai/data-provider';
|
|
2
|
+
import { BaseCommand } from '../../base-command';
|
|
3
|
+
/**
|
|
4
|
+
* What each break reason says on a boundary line. Exhaustive by type: a reason added to
|
|
5
|
+
* `CONTEXT_BREAK_REASONS` does not compile here until it has words.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CONTEXT_BREAK_WORDS: Record<ContextBreakReason, string>;
|
|
8
|
+
/** What each transcript source says in a turn header. Exhaustive by type. */
|
|
9
|
+
export declare const TRANSCRIPT_SOURCE_WORDS: Record<TurnTranscriptSource, string>;
|
|
10
|
+
/**
|
|
11
|
+
* Where a continuation sent to an imported session is, as its receipt says. Exhaustive by type.
|
|
12
|
+
* (An imported session is read only with a first-party app's session; a CLI token is refused.)
|
|
13
|
+
*/
|
|
14
|
+
export declare const CONTINUATION_STATE_WORDS: Record<LocalSessionContinuationState, string>;
|
|
15
|
+
/** Whether the harness context continued into this turn, in words. Never guesses "continued". */
|
|
16
|
+
export declare function describeContext(turn: ConversationTranscriptTurn): string;
|
|
17
|
+
/** The line drawn above a turn whose harness context did not continue, or null. */
|
|
18
|
+
export declare function boundaryLine(turn: ConversationTranscriptTurn): string | null;
|
|
19
|
+
export declare function usageSummary(usage: TurnTranscriptUsage | undefined): string | null;
|
|
20
|
+
/** The turn's process in one line: where it is kept, how much, and what was lost. */
|
|
21
|
+
export declare function processSummary(turn: ConversationTranscriptTurn): string;
|
|
22
|
+
/** The lines `skrr convos transcript` prints for one item. */
|
|
23
|
+
export declare function formatTranscriptItem(item: ConversationTranscriptItem): string[];
|
|
24
|
+
export declare function formatTurnBody(body: ConversationTranscriptTurnBody): string[];
|
|
25
|
+
/**
|
|
26
|
+
* `skrr convos transcript` — a conversation's whole session, as a conversation (G11, D12).
|
|
27
|
+
*
|
|
28
|
+
* The same items Session Details shows: the person's messages (follow-ups and steers included,
|
|
29
|
+
* and those Main Chat hides), each turn with where its process is kept, and every message the
|
|
30
|
+
* agent sent. A line marks each place the harness context did not continue. `--turn` prints one
|
|
31
|
+
* turn's whole process, paging through it.
|
|
32
|
+
*/
|
|
33
|
+
export default class ConvosTranscript extends BaseCommand {
|
|
34
|
+
static description: string;
|
|
35
|
+
static examples: string[];
|
|
36
|
+
static args: {
|
|
37
|
+
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
38
|
+
};
|
|
39
|
+
static flags: {
|
|
40
|
+
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
41
|
+
turn: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
42
|
+
limit: import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
43
|
+
cursor: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
44
|
+
around: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
45
|
+
};
|
|
46
|
+
run(): Promise<void>;
|
|
47
|
+
private printTurn;
|
|
48
|
+
}
|