@skrr-ai/cli 0.1.209 → 0.1.211
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.js +2 -1
- package/dist/commands/agent/message/react.js +7 -4
- package/dist/commands/agent/message/send.d.ts +2 -12
- package/dist/commands/agent/message/send.js +5 -24
- package/dist/commands/agents/always-on/recovery-review.d.ts +5 -0
- package/dist/commands/agents/always-on/recovery-review.js +30 -1
- package/dist/commands/agents/chat.d.ts +14 -0
- package/dist/commands/agents/chat.js +32 -1
- package/dist/commands/agents/not-for-task.js +5 -1
- package/dist/commands/dm/work.js +38 -9
- package/dist/commands/duties/pause.js +12 -2
- package/dist/commands/duties/show.js +5 -0
- package/dist/commands/tasks/ask.d.ts +2 -0
- package/dist/commands/tasks/ask.js +6 -0
- package/dist/commands/tasks/deliverable/add.d.ts +2 -0
- package/dist/commands/tasks/deliverable/add.js +25 -6
- package/dist/commands/tasks/input/show.d.ts +2 -0
- package/dist/commands/tasks/input/show.js +16 -1
- package/dist/commands/tasks/resource/add.d.ts +2 -0
- package/dist/commands/tasks/resource/add.js +11 -1
- package/dist/commands/update.js +1 -0
- package/dist/generated/agent-guides.json +71 -71
- package/dist/lib/agent-proactive-baseline.js +4 -1
- package/dist/lib/cli-installation-diagnostics.d.ts +54 -0
- package/dist/lib/cli-installation-diagnostics.js +185 -20
- package/dist/lib/duties.d.ts +10 -0
- package/dist/lib/duties.js +87 -3
- package/dist/lib/platform-update-local.d.ts +10 -1
- package/dist/lib/platform-update-local.js +32 -4
- package/dist/lib/platform-update.d.ts +4 -0
- package/dist/lib/platform-update.js +4 -0
- package/dist/lib/space-resolver.d.ts +9 -0
- package/dist/lib/space-resolver.js +13 -0
- package/dist/lib/task-work.js +5 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/managedWorkRuntime.d.ts +5 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/managedWorkRuntime.js +21 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/managedWorkRuntime.d.ts +5 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/managedWorkRuntime.js +31 -5
- package/dist/node_modules/@skrr-ai/data-provider/index.js +12027 -11799
- package/oclif.manifest.json +11 -5
- package/package.json +2 -2
package/dist/base-command.js
CHANGED
|
@@ -836,8 +836,9 @@ class BaseCommand extends core_1.Command {
|
|
|
836
836
|
// UUID, so refs go through the same exact-match resolution as titles.
|
|
837
837
|
if ((0, internal_id_1.looksLikeInternalObjectId)(query))
|
|
838
838
|
return this.resolveObjectIdShapedSpace(query);
|
|
839
|
+
// A UUID is sent in lowercase, the only spelling a Space id has (OSK-33347).
|
|
839
840
|
if (!query || (0, space_resolver_1.looksLikeCanonicalSpaceId)(query))
|
|
840
|
-
return query;
|
|
841
|
+
return (0, space_resolver_1.canonicalSpaceIdSpelling)(query);
|
|
841
842
|
if ((0, failed_lookup_1.isFailedLookupValue)(query)) {
|
|
842
843
|
this.failWithCliError({
|
|
843
844
|
message: (0, failed_lookup_1.describeFailedLookupValue)(query, 'Space'),
|
|
@@ -7,6 +7,11 @@ const agent_resolver_1 = require("../../../lib/agent-resolver");
|
|
|
7
7
|
const http_error_1 = require("../../../lib/http-error");
|
|
8
8
|
const inbound_messages_1 = require("../../../lib/inbound-messages");
|
|
9
9
|
const message_intent_1 = require("../../../lib/message-intent");
|
|
10
|
+
// Outside the args: the command hygiene audit reads an `Args.string` block up to its first
|
|
11
|
+
// closing brace and paren, which a template in the description would end early.
|
|
12
|
+
const EMOJI_DESCRIPTION = `The reaction: ${Object.entries(inbound_messages_1.REACTION_NAMES)
|
|
13
|
+
.map(([emoji, name]) => `${emoji} (${name})`)
|
|
14
|
+
.join(', ')}`;
|
|
10
15
|
/**
|
|
11
16
|
* React to one of the owner's messages with an emoji, as the Agent (design §4.7, D5). A reaction
|
|
12
17
|
* is the lightest acknowledgement: "seen", "on it", "done", with no message to read. It replaces
|
|
@@ -30,9 +35,7 @@ class AgentMessageReact extends base_command_1.BaseCommand {
|
|
|
30
35
|
ignoreStdin: true,
|
|
31
36
|
}),
|
|
32
37
|
emoji: core_1.Args.string({
|
|
33
|
-
description:
|
|
34
|
-
.map(([emoji, name]) => `${emoji} (${name})`)
|
|
35
|
-
.join(', ')}`,
|
|
38
|
+
description: EMOJI_DESCRIPTION,
|
|
36
39
|
required: true,
|
|
37
40
|
ignoreStdin: true,
|
|
38
41
|
}),
|
|
@@ -116,7 +119,7 @@ class AgentMessageReact extends base_command_1.BaseCommand {
|
|
|
116
119
|
this.handleApiError(error);
|
|
117
120
|
}
|
|
118
121
|
if (flags.json) {
|
|
119
|
-
this.
|
|
122
|
+
this.printJsonResult(answer);
|
|
120
123
|
return;
|
|
121
124
|
}
|
|
122
125
|
this.log(`Reacted ${emoji} to message ${answer.messageId}. The owner sees it on the message.`);
|
|
@@ -3,12 +3,6 @@ import { BaseCommand } from '../../../base-command';
|
|
|
3
3
|
import { type ResolvedAgentIdentity } from '../../../lib/agent-resolver';
|
|
4
4
|
import { type CanonicalDestinationKind, type CanonicalMessageDestination, type CanonicalMessageIntentRequest, type CanonicalMessageIntentResponse, type CommunicationPresentation, type MessageOperationOutcome, type OneVoiceOutcome } from '../../../lib/message-intent';
|
|
5
5
|
import { type WireEmbedRejection } from '../../../lib/entity-embeds';
|
|
6
|
-
/**
|
|
7
|
-
* A reading-comfort prompt, not a protocol limit. The Gateway deliberately
|
|
8
|
-
* permits much larger payloads; the sender remains responsible for choosing
|
|
9
|
-
* meaningful conversational boundaries.
|
|
10
|
-
*/
|
|
11
|
-
export declare const OWNER_DM_SEGMENTATION_SOFT_LIMIT = 320;
|
|
12
6
|
declare const PROTOCOL_VERSION = 1;
|
|
13
7
|
export type PrincipalKind = 'session' | 'human';
|
|
14
8
|
export type AgentMessageSendPayload = {
|
|
@@ -66,6 +60,8 @@ export type CanonicalIntentEnvelope = {
|
|
|
66
60
|
retryAfter?: string;
|
|
67
61
|
retryable?: boolean;
|
|
68
62
|
initiativeId?: string;
|
|
63
|
+
/** The server's own words about this outcome, such as where a rerouted message goes. */
|
|
64
|
+
message?: string;
|
|
69
65
|
/** The owner replied after this update began — withhold the tail. */
|
|
70
66
|
ownerInterjected?: boolean;
|
|
71
67
|
/** Whether One Voice counted this message against the owner's attention budget (OSK-22367). */
|
|
@@ -164,12 +160,6 @@ export type NormalizedIntentPayload = {
|
|
|
164
160
|
goalId?: string;
|
|
165
161
|
};
|
|
166
162
|
};
|
|
167
|
-
/** A long owner DM sent as one message. Silent once the sender split it with `--part`. */
|
|
168
|
-
export declare function messageSegmentationAdvisory({ destination, text, followingParts, }: {
|
|
169
|
-
destination: CanonicalMessageDestination;
|
|
170
|
-
text: string;
|
|
171
|
-
followingParts: string[];
|
|
172
|
-
}): string | undefined;
|
|
173
163
|
/** The two voice habits the doctrine names and a check can see: a label opener, named filler. */
|
|
174
164
|
export declare function messageVoiceAdvisory({ destination, text, }: {
|
|
175
165
|
destination: CanonicalMessageDestination;
|
|
@@ -33,9 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.EXIT_DELIVERY_FAILED = exports.EXIT_DELIVERY_RETRYABLE =
|
|
36
|
+
exports.EXIT_DELIVERY_FAILED = exports.EXIT_DELIVERY_RETRYABLE = void 0;
|
|
37
37
|
exports.withSendWaitNotice = withSendWaitNotice;
|
|
38
|
-
exports.messageSegmentationAdvisory = messageSegmentationAdvisory;
|
|
39
38
|
exports.messageVoiceAdvisory = messageVoiceAdvisory;
|
|
40
39
|
exports.resultReplyAdvisory = resultReplyAdvisory;
|
|
41
40
|
exports.buildSequencedRequests = buildSequencedRequests;
|
|
@@ -71,12 +70,6 @@ const COMPACT_KEY_PART_RE = /[^A-Za-z0-9_.:-]/g;
|
|
|
71
70
|
const MAX_TEXT_CHARS = 20000;
|
|
72
71
|
const MAX_IDEMPOTENCY_KEY_CHARS = 240;
|
|
73
72
|
const MAX_SEQUENCE_PARTS = data_provider_1.MAX_AGENT_MESSAGE_SEQUENCE_PARTS;
|
|
74
|
-
/**
|
|
75
|
-
* A reading-comfort prompt, not a protocol limit. The Gateway deliberately
|
|
76
|
-
* permits much larger payloads; the sender remains responsible for choosing
|
|
77
|
-
* meaningful conversational boundaries.
|
|
78
|
-
*/
|
|
79
|
-
exports.OWNER_DM_SEGMENTATION_SOFT_LIMIT = data_provider_1.AGENT_MESSAGE_SEGMENTATION_SOFT_LIMIT;
|
|
80
73
|
const PROTOCOL_VERSION = 1;
|
|
81
74
|
/**
|
|
82
75
|
* Canonical CLI entry for agent-authored messages.
|
|
@@ -142,6 +135,7 @@ class AgentMessageSend extends base_command_1.BaseCommand {
|
|
|
142
135
|
// send still goes through the ProactiveMessageGateway; that is the mechanism, not the purpose.
|
|
143
136
|
static description = 'Send the owner a message from this Agent: it lands in their chat with the Agent (or another destination you name), and their policy decides how it reaches them. ' +
|
|
144
137
|
'Send when something changes what they know or should decide: what you are starting and when they will hear back, a finding, a choice they must make, a blocker, the result. ' +
|
|
138
|
+
'From a Task that an Agent dispatched in its chat, anything but an interrupt blocker may answer `held (routed_to_coordinator)`: that Agent passes it on. ' +
|
|
145
139
|
'Run `agent message context` first to see what they have already read from you. ' +
|
|
146
140
|
'Judgment and a worked example: `skrr guide communication pacing`.';
|
|
147
141
|
// The story here (a search reindex) deliberately differs from the one in
|
|
@@ -187,7 +181,7 @@ class AgentMessageSend extends base_command_1.BaseCommand {
|
|
|
187
181
|
multiple: true,
|
|
188
182
|
}),
|
|
189
183
|
'message-lint': core_1.Flags.boolean({
|
|
190
|
-
description: 'Show
|
|
184
|
+
description: 'Show stderr advice about how an owner DM reads',
|
|
191
185
|
allowNo: true,
|
|
192
186
|
default: true,
|
|
193
187
|
}),
|
|
@@ -366,13 +360,6 @@ class AgentMessageSend extends base_command_1.BaseCommand {
|
|
|
366
360
|
payload.context?.taskId) {
|
|
367
361
|
payload.context.taskId = await this.resolveTaskReference(payload.context.taskId);
|
|
368
362
|
}
|
|
369
|
-
const segmentationAdvisory = messageSegmentationAdvisory({
|
|
370
|
-
destination: payload.destination,
|
|
371
|
-
text: payload.content.text,
|
|
372
|
-
followingParts: flags.part || [],
|
|
373
|
-
});
|
|
374
|
-
if (flags['message-lint'] && segmentationAdvisory)
|
|
375
|
-
this.warn(segmentationAdvisory);
|
|
376
363
|
const voiceAdvisory = messageVoiceAdvisory({
|
|
377
364
|
destination: payload.destination,
|
|
378
365
|
text: payload.content.text,
|
|
@@ -606,6 +593,7 @@ class AgentMessageSend extends base_command_1.BaseCommand {
|
|
|
606
593
|
retryAfter: result.retryAfter,
|
|
607
594
|
retryable: result.retryable,
|
|
608
595
|
initiativeId: result.initiativeId,
|
|
596
|
+
...(typeof result.message === 'string' ? { message: result.message } : {}),
|
|
609
597
|
ownerInterjected: result.ownerInterjected,
|
|
610
598
|
oneVoice: result.oneVoice,
|
|
611
599
|
},
|
|
@@ -744,14 +732,6 @@ function cliAdviceLine(advice, suffix = LINT_SUFFIX) {
|
|
|
744
732
|
const sentences = advice.map((note) => (0, data_provider_1.renderAgentMessageAdvice)(note, 'cli'));
|
|
745
733
|
return `[skrr] ${[...sentences, suffix].filter(Boolean).join(' ')}`;
|
|
746
734
|
}
|
|
747
|
-
/** A long owner DM sent as one message. Silent once the sender split it with `--part`. */
|
|
748
|
-
function messageSegmentationAdvisory({ destination, text, followingParts, }) {
|
|
749
|
-
return cliAdviceLine((0, data_provider_1.adviseAgentMessage)({
|
|
750
|
-
destinationKind: destination.kind,
|
|
751
|
-
text,
|
|
752
|
-
followingParts: followingParts.length,
|
|
753
|
-
}).filter((note) => note.code === 'long_message'));
|
|
754
|
-
}
|
|
755
735
|
/** The two voice habits the doctrine names and a check can see: a label opener, named filler. */
|
|
756
736
|
function messageVoiceAdvisory({ destination, text, }) {
|
|
757
737
|
return cliAdviceLine((0, data_provider_1.adviseAgentMessage)({ destinationKind: destination.kind, text }).filter((note) => note.code === 'label_opener' || note.code === 'named_filler'));
|
|
@@ -1532,6 +1512,7 @@ function describePersonSender(envelope) {
|
|
|
1532
1512
|
* Wording is the guide's; a reason with no entry keeps its status sentence.
|
|
1533
1513
|
*/
|
|
1534
1514
|
const REASON_CONSEQUENCE = {
|
|
1515
|
+
[data_provider_1.AGENT_MESSAGE_ROUTED_REASON]: data_provider_1.AGENT_MESSAGE_ROUTED_NOTE,
|
|
1535
1516
|
delivery_mode_off: "Not delivered, and the owner's delivery mode means it never will be. Say it in the conversation instead. Do not resend.",
|
|
1536
1517
|
delivery_mode_suggestions_only: 'Kept as a suggestion the owner sees in the product, not sent as a message. Do not resend.',
|
|
1537
1518
|
destination_not_allowed: 'Not delivered: workspace policy excludes this destination. Send to an allowed one, or ask the person to change the policy.',
|
|
@@ -37,6 +37,11 @@ export default class AgentsAlwaysOnRecoveryReview extends BaseCommand {
|
|
|
37
37
|
* server, or a hold this server cannot close: no command is offered that would be refused.
|
|
38
38
|
*/
|
|
39
39
|
export declare function closeLines(agentId: string, review: DutyRunRecoveryReview): string[];
|
|
40
|
+
/**
|
|
41
|
+
* How the Duty's owner can stop later held results from blocking it (OSK-33137), with what that accepts. Nothing when
|
|
42
|
+
* it is already on, when the reader cannot turn it on, or when the server does not say.
|
|
43
|
+
*/
|
|
44
|
+
export declare function autoRecoveryLines(review: DutyRunRecoveryReview): string[];
|
|
40
45
|
/**
|
|
41
46
|
* Why a Run stopped at its effect boundary, as its worker recorded it (OSK-33242): the server's content-free codes, as
|
|
42
47
|
* sent. Nothing for a Run with no record, or an older server.
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UNKNOWN_CODE_HINT = exports.RECOVERY_CLOSE_CODES = exports.RECOVERY_EXECUTOR_CODES = exports.RECOVERY_HOLD_CODES = void 0;
|
|
4
4
|
exports.recoveryCode = recoveryCode;
|
|
5
5
|
exports.closeLines = closeLines;
|
|
6
|
+
exports.autoRecoveryLines = autoRecoveryLines;
|
|
6
7
|
exports.unprovenLine = unprovenLine;
|
|
7
8
|
const core_1 = require("@oclif/core");
|
|
8
9
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
@@ -112,6 +113,8 @@ class AgentsAlwaysOnRecoveryReview extends base_command_1.BaseCommand {
|
|
|
112
113
|
this.log(INTEGRITY_CAVEAT);
|
|
113
114
|
for (const line of closeLines(args.id, review))
|
|
114
115
|
this.log(line);
|
|
116
|
+
for (const line of autoRecoveryLines(review))
|
|
117
|
+
this.log(line);
|
|
115
118
|
}
|
|
116
119
|
async list(agentId, cursor, json) {
|
|
117
120
|
let response;
|
|
@@ -233,6 +236,21 @@ function closeLines(agentId, review) {
|
|
|
233
236
|
return [`Close: ${close} (${exports.UNKNOWN_CODE_HINT}).`];
|
|
234
237
|
return [];
|
|
235
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* How the Duty's owner can stop later held results from blocking it (OSK-33137), with what that accepts. Nothing when
|
|
241
|
+
* it is already on, when the reader cannot turn it on, or when the server does not say.
|
|
242
|
+
*/
|
|
243
|
+
function autoRecoveryLines(review) {
|
|
244
|
+
const state = review.autoRecovery;
|
|
245
|
+
if (!state || state.enabled || !state.canEnable || !isNonEmptyString(review.dutyId))
|
|
246
|
+
return [];
|
|
247
|
+
return [
|
|
248
|
+
'Auto-recovery: off. With it on, the next Check drops a held turn and decides again, once the turn is proven ' +
|
|
249
|
+
'stopped. If that turn had already done something, such as sending a message, the Duty may do it again. It ' +
|
|
250
|
+
'covers later Runs, not this one.',
|
|
251
|
+
`→ echo '{"policy":{"resultRecoveryMode":"resume_on_confirmed_stop"}}' | skrr duties update ${review.dutyId} --from-json -`,
|
|
252
|
+
];
|
|
253
|
+
}
|
|
236
254
|
/** Where a time bound came from: the claim recorded it, or the analysis of releases before claims recorded one. */
|
|
237
255
|
const BOUND_FROM_TEXT = {
|
|
238
256
|
claim: ', recorded by the claim',
|
|
@@ -277,7 +295,18 @@ function unprovenLine(review) {
|
|
|
277
295
|
: [];
|
|
278
296
|
if (codes.length === 0)
|
|
279
297
|
return undefined;
|
|
280
|
-
|
|
298
|
+
// A workspace code is said in words (OSK-20281): `delivery:signal_absent` told nobody that the workspace result
|
|
299
|
+
// never arrived. Any other code is printed as the server wrote it.
|
|
300
|
+
const workspace = [
|
|
301
|
+
...new Set(codes.map(data_provider_1.dutyEffectUnprovenWorkspace).filter((kind) => kind !== undefined)),
|
|
302
|
+
].map((kind) => data_provider_1.DUTY_EFFECT_UNPROVEN_WORKSPACE_SENTENCES[kind]);
|
|
303
|
+
const rest = codes.filter((code) => (0, data_provider_1.dutyEffectUnprovenWorkspace)(code) === undefined);
|
|
304
|
+
return [
|
|
305
|
+
rest.length
|
|
306
|
+
? `Stopped because it could not prove: ${rest.join(', ')}.`
|
|
307
|
+
: 'Stopped at its effect boundary.',
|
|
308
|
+
...workspace,
|
|
309
|
+
].join(' ');
|
|
281
310
|
}
|
|
282
311
|
/** One line per held result: what a person needs to choose which one to open. */
|
|
283
312
|
function reviewLine(review) {
|
|
@@ -210,6 +210,20 @@ export declare function noOutputFailureMessage(input: {
|
|
|
210
210
|
export declare function agentRunFailureMessage(result: Pick<AgenticStreamResult, 'lastEvent'>): string;
|
|
211
211
|
/** The acceptance response is a plan, not proof of the eventual executor. */
|
|
212
212
|
export declare function admittedRouting(runtime: unknown): Record<string, unknown> | undefined;
|
|
213
|
+
/**
|
|
214
|
+
* A turn that ran without its managed Task tools (OSK-33192). Admission keeps a Main Chat turn
|
|
215
|
+
* running as an ordinary chat when the runtime cannot enforce the manager profile, and the worker
|
|
216
|
+
* says so on `execution:complete`. The web shows it; this CLI printed a plain success.
|
|
217
|
+
*/
|
|
218
|
+
export interface InteractionUnavailableNotice {
|
|
219
|
+
capability?: string;
|
|
220
|
+
reason?: string;
|
|
221
|
+
message?: string;
|
|
222
|
+
provider?: string;
|
|
223
|
+
}
|
|
224
|
+
export declare function interactionUnavailableFrom(event: unknown): InteractionUnavailableNotice | undefined;
|
|
225
|
+
/** The line a person reads under the answer. The server's own sentence says what to change. */
|
|
226
|
+
export declare function interactionUnavailableWarning(notice: InteractionUnavailableNotice): string;
|
|
213
227
|
export declare function noStreamJsonPayload(input: {
|
|
214
228
|
result: AgenticStreamResult;
|
|
215
229
|
conversationId?: string;
|
|
@@ -15,6 +15,8 @@ exports.inspectTurnCommand = inspectTurnCommand;
|
|
|
15
15
|
exports.noOutputFailureMessage = noOutputFailureMessage;
|
|
16
16
|
exports.agentRunFailureMessage = agentRunFailureMessage;
|
|
17
17
|
exports.admittedRouting = admittedRouting;
|
|
18
|
+
exports.interactionUnavailableFrom = interactionUnavailableFrom;
|
|
19
|
+
exports.interactionUnavailableWarning = interactionUnavailableWarning;
|
|
18
20
|
exports.noStreamJsonPayload = noStreamJsonPayload;
|
|
19
21
|
exports.chatStreamHeaderLines = chatStreamHeaderLines;
|
|
20
22
|
exports.daemonPinFields = daemonPinFields;
|
|
@@ -354,9 +356,30 @@ function admittedRouting(runtime) {
|
|
|
354
356
|
};
|
|
355
357
|
return Object.keys(routing).length ? routing : undefined;
|
|
356
358
|
}
|
|
359
|
+
function interactionUnavailableFrom(event) {
|
|
360
|
+
if (!event || typeof event !== 'object')
|
|
361
|
+
return undefined;
|
|
362
|
+
const raw = event.interactionUnavailable;
|
|
363
|
+
if (!raw || typeof raw !== 'object' || Array.isArray(raw))
|
|
364
|
+
return undefined;
|
|
365
|
+
const notice = {};
|
|
366
|
+
for (const key of ['capability', 'reason', 'message', 'provider']) {
|
|
367
|
+
const value = raw[key];
|
|
368
|
+
if (typeof value === 'string' && value.trim())
|
|
369
|
+
notice[key] = value.trim();
|
|
370
|
+
}
|
|
371
|
+
return notice.reason || notice.message ? notice : undefined;
|
|
372
|
+
}
|
|
373
|
+
/** The line a person reads under the answer. The server's own sentence says what to change. */
|
|
374
|
+
function interactionUnavailableWarning(notice) {
|
|
375
|
+
return notice.message
|
|
376
|
+
? `This turn ran without its managed Task tools. ${notice.message}`
|
|
377
|
+
: `This turn ran without its managed Task tools (${notice.reason}).`;
|
|
378
|
+
}
|
|
357
379
|
function noStreamJsonPayload(input) {
|
|
358
380
|
const { result, conversationId, agentId, baseURL, threadRootMessageId } = input;
|
|
359
381
|
const routing = admittedRouting(input.admittedRuntime);
|
|
382
|
+
const interactionUnavailable = interactionUnavailableFrom(result.lastEvent);
|
|
360
383
|
return {
|
|
361
384
|
mode: 'no-stream',
|
|
362
385
|
executed: true,
|
|
@@ -387,6 +410,7 @@ function noStreamJsonPayload(input) {
|
|
|
387
410
|
...(typeof result.lastEvent?.harnessModel === 'string' && result.lastEvent.harnessModel
|
|
388
411
|
? { harnessModel: result.lastEvent.harnessModel }
|
|
389
412
|
: {}),
|
|
413
|
+
...(interactionUnavailable ? { interactionUnavailable } : {}),
|
|
390
414
|
...(result.status === 'failed'
|
|
391
415
|
? {
|
|
392
416
|
failureReason: result.lastEvent?.reason ??
|
|
@@ -872,7 +896,7 @@ class AgentsChat extends base_command_1.BaseCommand {
|
|
|
872
896
|
// The command's answer when there is no reply to stream.
|
|
873
897
|
const finish = (extra, lines) => {
|
|
874
898
|
if (input.json) {
|
|
875
|
-
this.
|
|
899
|
+
this.printJsonResult({ ...record, delivery: answer.delivery, ...extra });
|
|
876
900
|
}
|
|
877
901
|
else if (!input.jsonl) {
|
|
878
902
|
for (const line of lines)
|
|
@@ -1668,6 +1692,13 @@ class AgentsChat extends base_command_1.BaseCommand {
|
|
|
1668
1692
|
// (Not after SIGHUP: the terminal that would show it is gone.)
|
|
1669
1693
|
this.log(`\n${cancelledRunMessage({ sessionId: started.sessionId, conversationId: started.conversationId })}`);
|
|
1670
1694
|
}
|
|
1695
|
+
// Human modes say it under the answer, on stderr. `--jsonl` carries it on `run.completed`
|
|
1696
|
+
// and `run.result`, `--json` in its payload (OSK-33192).
|
|
1697
|
+
const downgraded = !flags.jsonl && !(quiet && flags.json) && result.status === 'completed'
|
|
1698
|
+
? interactionUnavailableFrom(result.lastEvent)
|
|
1699
|
+
: undefined;
|
|
1700
|
+
if (downgraded)
|
|
1701
|
+
this.warn(interactionUnavailableWarning(downgraded));
|
|
1671
1702
|
// If completion wins the Ctrl-C race, preserve the completed run's exit status.
|
|
1672
1703
|
if (cancelledBy || interruptedBy === 'SIGTERM' || interruptedBy === 'SIGHUP') {
|
|
1673
1704
|
process.exitCode = interruptExitCode(interruptedBy);
|
|
@@ -16,7 +16,11 @@ class AgentsNotForTask extends base_command_1.BaseCommand {
|
|
|
16
16
|
'<%= config.bin %> agents not-for-task msg_3f9a1c2b --conversation <conversation-id> --json',
|
|
17
17
|
];
|
|
18
18
|
static args = {
|
|
19
|
-
message: core_1.Args.string({
|
|
19
|
+
message: core_1.Args.string({
|
|
20
|
+
description: 'The id of your message',
|
|
21
|
+
required: true,
|
|
22
|
+
ignoreStdin: true,
|
|
23
|
+
}),
|
|
20
24
|
};
|
|
21
25
|
static flags = {
|
|
22
26
|
...base_command_1.BaseCommand.baseFlags,
|
package/dist/commands/dm/work.js
CHANGED
|
@@ -6,16 +6,30 @@ const base_command_1 = require("../../base-command");
|
|
|
6
6
|
const agent_resolver_1 = require("../../lib/agent-resolver");
|
|
7
7
|
class DmWork extends base_command_1.BaseCommand {
|
|
8
8
|
static description = 'List the authorized Tasks managed in an agent’s main chat';
|
|
9
|
-
static args = {
|
|
9
|
+
static args = {
|
|
10
|
+
agent: core_1.Args.string({
|
|
11
|
+
required: false,
|
|
12
|
+
ignoreStdin: true,
|
|
13
|
+
description: 'Agent ID; uses authenticated runtime context when omitted',
|
|
14
|
+
}),
|
|
15
|
+
};
|
|
10
16
|
static flags = {
|
|
11
17
|
limit: core_1.Flags.integer({ min: 1, max: 100, default: 20 }),
|
|
12
18
|
cursor: core_1.Flags.string({ description: 'Opaque nextCursor from the previous page' }),
|
|
13
|
-
task: core_1.Flags.string({
|
|
19
|
+
task: core_1.Flags.string({
|
|
20
|
+
description: 'Read one exact managed Task link, including Tasks beyond the first page',
|
|
21
|
+
}),
|
|
14
22
|
commands: core_1.Flags.boolean({ description: 'List durable launch command receipts' }),
|
|
15
|
-
pending: core_1.Flags.boolean({
|
|
16
|
-
|
|
23
|
+
pending: core_1.Flags.boolean({
|
|
24
|
+
description: 'With --commands, include only commands still preparing or awaiting effects',
|
|
25
|
+
}),
|
|
26
|
+
'source-message': core_1.Flags.string({
|
|
27
|
+
description: 'With --commands, filter by one source message within this main chat',
|
|
28
|
+
}),
|
|
17
29
|
command: core_1.Flags.string({ description: 'Read one exact launch command receipt' }),
|
|
18
|
-
capabilities: core_1.Flags.boolean({
|
|
30
|
+
capabilities: core_1.Flags.boolean({
|
|
31
|
+
description: 'Read managed-work protocol and rollout capabilities',
|
|
32
|
+
}),
|
|
19
33
|
json: core_1.Flags.boolean({ description: 'Output JSON (including pagination)' }),
|
|
20
34
|
};
|
|
21
35
|
async run() {
|
|
@@ -23,7 +37,12 @@ class DmWork extends base_command_1.BaseCommand {
|
|
|
23
37
|
const { args, flags } = await this.parse(DmWork);
|
|
24
38
|
try {
|
|
25
39
|
const { id } = await (0, agent_resolver_1.resolveAgentIdentity)(args.agent);
|
|
26
|
-
if ([
|
|
40
|
+
if ([
|
|
41
|
+
Boolean(flags.task),
|
|
42
|
+
Boolean(flags.commands),
|
|
43
|
+
Boolean(flags.command),
|
|
44
|
+
Boolean(flags.capabilities),
|
|
45
|
+
].filter(Boolean).length > 1) {
|
|
27
46
|
this.error('Use only one of --task, --commands, --command or --capabilities.', { exit: 2 });
|
|
28
47
|
}
|
|
29
48
|
if (flags.capabilities)
|
|
@@ -36,14 +55,24 @@ class DmWork extends base_command_1.BaseCommand {
|
|
|
36
55
|
this.error('--pending and --source-message require --commands.', { exit: 2 });
|
|
37
56
|
if (flags.commands)
|
|
38
57
|
return this.printJsonResult(await data_provider_1.dataService.listAgentChatWorkCommands(id, {
|
|
39
|
-
limit: flags.limit,
|
|
58
|
+
limit: flags.limit,
|
|
59
|
+
cursor: flags.cursor,
|
|
60
|
+
pendingOnly: flags.pending,
|
|
40
61
|
sourceMessageId: flags['source-message'],
|
|
41
62
|
}));
|
|
42
|
-
const page = await data_provider_1.dataService.listAgentChatWorkTasks(id, {
|
|
63
|
+
const page = await data_provider_1.dataService.listAgentChatWorkTasks(id, {
|
|
64
|
+
limit: flags.limit,
|
|
65
|
+
cursor: flags.cursor,
|
|
66
|
+
});
|
|
43
67
|
if (flags.json)
|
|
44
68
|
return this.printJsonResult(page);
|
|
45
|
-
for (const task of page.items)
|
|
69
|
+
for (const task of page.items) {
|
|
46
70
|
this.log(`${task.taskId} ${task.title ?? ''}`.trimEnd());
|
|
71
|
+
const handling = (0, data_provider_1.readCoordinatorSignalReason)(task.lastReturn?.reason);
|
|
72
|
+
if (task.lastReturn && handling) {
|
|
73
|
+
this.log(` Last update (${task.lastReturn.kind.replaceAll('_', ' ')}): ${(0, data_provider_1.describeCoordinatorHandling)(handling)}`);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
47
76
|
this.log(`${page.items.length} shown; ${page.total} authorized Task(s)${page.hasMore ? `; next cursor ${page.nextCursor}` : ''}.`);
|
|
48
77
|
}
|
|
49
78
|
catch (error) {
|
|
@@ -36,13 +36,23 @@ class DutiesPause extends base_command_1.BaseCommand {
|
|
|
36
36
|
// that left triggers live looked exactly like one that did not. Say which
|
|
37
37
|
// happened; a reconciler will converge the degraded case, but a person
|
|
38
38
|
// deciding whether they are really stopped should not have to assume it.
|
|
39
|
-
const teardown = duty
|
|
40
|
-
.teardown;
|
|
39
|
+
const teardown = duty.teardown;
|
|
41
40
|
if (teardown?.status === 'degraded') {
|
|
42
41
|
this.warn('The control loop is stopped, but some scheduled wakes may not have been retired yet. ' +
|
|
43
42
|
'They cannot start new work — every wake is refused while this Duty is paused — ' +
|
|
44
43
|
`and the reconciler retries automatically. Check with: skrr duties trigger-status ${args.id}`);
|
|
45
44
|
}
|
|
45
|
+
// A held proposal is pinned to the Duty version it was made at, and a pause moves the version, so none
|
|
46
|
+
// can be approved after the resume (OSK-33390). Say so here rather than at the refusal. `null` means the
|
|
47
|
+
// server could not count them, which is not the same as none: say nothing rather than guess.
|
|
48
|
+
const voided = duty.voidedProposals;
|
|
49
|
+
if (typeof voided === 'number' && voided > 0) {
|
|
50
|
+
const one = voided === 1;
|
|
51
|
+
this.log(`${voided} held proposal${one ? '' : 's'} from this Duty can no longer be approved or run, ` +
|
|
52
|
+
`because a pause changes the Duty ${one ? 'it was' : 'they were'} made for. After you resume, ` +
|
|
53
|
+
`its next check can propose ${one ? 'it' : 'them'} again. ` +
|
|
54
|
+
`See ${one ? 'it' : 'them'} with: ${this.config.bin} duties action-proposals ${args.id}`);
|
|
55
|
+
}
|
|
46
56
|
(0, duties_1.renderDutySummary)(duty, (line) => this.log(line));
|
|
47
57
|
}
|
|
48
58
|
}
|
|
@@ -78,6 +78,11 @@ class DutiesShow extends base_command_1.BaseCommand {
|
|
|
78
78
|
// A latest Run the claim admitted without a Check dispatch proof, through an allowance the owner
|
|
79
79
|
// accepted (2026-11-12), is held at its claim, or was ended by it before it started (OSK-24383).
|
|
80
80
|
// The server records each on the Run; this is where a person reads it.
|
|
81
|
+
// Why the latest Run was started (OSK-20265): fixed at reservation, unlike its `reason`, which is
|
|
82
|
+
// its latest transition. An older server sends none, and then nothing is printed.
|
|
83
|
+
const latestRunStart = (0, duties_1.describeRunStart)(response.operatingState?.latestRun?.startedBecause);
|
|
84
|
+
if (latestRunStart)
|
|
85
|
+
this.log(`Latest run: Started because: ${latestRunStart}`);
|
|
81
86
|
for (const line of (0, data_provider_1.describeLatestRunClaim)(response.operatingState?.latestRun))
|
|
82
87
|
this.log(`Latest run: ${line}`);
|
|
83
88
|
// A Run queued under an earlier contract version that is still held (OSK-24386); `Latest run`
|
|
@@ -26,6 +26,7 @@ export declare function buildAskBody(flags: {
|
|
|
26
26
|
'no-free-text'?: boolean;
|
|
27
27
|
expires?: string;
|
|
28
28
|
key?: string;
|
|
29
|
+
'owner-only'?: boolean;
|
|
29
30
|
}): AskTaskHumanInputBody;
|
|
30
31
|
export default class TasksAsk extends BaseCommand {
|
|
31
32
|
static description: string;
|
|
@@ -44,6 +45,7 @@ export default class TasksAsk extends BaseCommand {
|
|
|
44
45
|
'no-free-text': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
45
46
|
expires: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
46
47
|
key: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
48
|
+
'owner-only': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
47
49
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
48
50
|
};
|
|
49
51
|
run(): Promise<void>;
|
|
@@ -100,6 +100,7 @@ function buildAskBody(flags) {
|
|
|
100
100
|
],
|
|
101
101
|
...(expiresAt ? { expiresAt } : {}),
|
|
102
102
|
...(flags.key ? { askKey: flags.key } : {}),
|
|
103
|
+
...(flags['owner-only'] ? { ownerOnly: true } : {}),
|
|
103
104
|
};
|
|
104
105
|
}
|
|
105
106
|
class TasksAsk extends base_command_1.BaseCommand {
|
|
@@ -137,6 +138,9 @@ class TasksAsk extends base_command_1.BaseCommand {
|
|
|
137
138
|
key: core_1.Flags.string({
|
|
138
139
|
description: 'Your key for this question: the same key returns the same question, and names only one',
|
|
139
140
|
}),
|
|
141
|
+
'owner-only': core_1.Flags.boolean({
|
|
142
|
+
description: data_provider_1.TASK_HUMAN_INPUT_OWNER_ONLY_RULE.replace('ownerOnly to true', '--owner-only'),
|
|
143
|
+
}),
|
|
140
144
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
141
145
|
};
|
|
142
146
|
async run() {
|
|
@@ -181,6 +185,8 @@ class TasksAsk extends base_command_1.BaseCommand {
|
|
|
181
185
|
}
|
|
182
186
|
if (request.expiresAt)
|
|
183
187
|
this.log(` Expires: ${new Date(request.expiresAt).toISOString()}`);
|
|
188
|
+
for (const line of (0, show_1.humanInputAuthorshipLines)(request))
|
|
189
|
+
this.log(` ${line}`);
|
|
184
190
|
this.log(data_provider_1.TASK_HUMAN_INPUT_REPLY_ROUTE_LABELS[route]);
|
|
185
191
|
this.log(`Read the answer: ${this.config.bin} tasks input show ${args.id} --request ${request.requestId} --wait`);
|
|
186
192
|
if (response.advice?.tip)
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { BaseCommand } from '../../../base-command';
|
|
2
|
+
/** The body paths `deliverable add` writes from a flag, as `handleApiError` reads them back. */
|
|
3
|
+
export declare const DELIVERABLE_ADD_FIELD_FLAGS: Readonly<Record<string, string>>;
|
|
2
4
|
export declare function defaultDeliverableIdempotencyKey(): string;
|
|
3
5
|
/**
|
|
4
6
|
* `skrr tasks deliverable add <task> <kind>:<identity>[@<location>]`
|
|
@@ -33,6 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.DELIVERABLE_ADD_FIELD_FLAGS = void 0;
|
|
36
37
|
exports.defaultDeliverableIdempotencyKey = defaultDeliverableIdempotencyKey;
|
|
37
38
|
exports.statusNotApplied = statusNotApplied;
|
|
38
39
|
const fs = __importStar(require("node:fs"));
|
|
@@ -46,6 +47,10 @@ const api_fetch_1 = require("../../../lib/api-fetch");
|
|
|
46
47
|
const session_task_write_1 = require("../../../lib/session-task-write");
|
|
47
48
|
const tasks_1 = require("../../../lib/tasks");
|
|
48
49
|
const ASSERT_ARCHIVED_DELIVERABLE_RECEIPT_RE = /^[a-f0-9]{64}$/i;
|
|
50
|
+
/** The body paths `deliverable add` writes from a flag, as `handleApiError` reads them back. */
|
|
51
|
+
exports.DELIVERABLE_ADD_FIELD_FLAGS = Object.freeze({
|
|
52
|
+
runId: '--run-id',
|
|
53
|
+
});
|
|
49
54
|
function defaultDeliverableIdempotencyKey() {
|
|
50
55
|
return `task-deliverable_${(0, node_crypto_1.randomUUID)()}`;
|
|
51
56
|
}
|
|
@@ -109,7 +114,9 @@ class TasksDeliverableAdd extends base_command_1.BaseCommand {
|
|
|
109
114
|
version: core_1.Flags.string({ description: 'Exact provider version, such as a full commit SHA' }),
|
|
110
115
|
'content-digest': core_1.Flags.string({ description: 'Integrity digest for this exact version' }),
|
|
111
116
|
expectation: core_1.Flags.string({ multiple: true, description: 'Expectation id this satisfies' }),
|
|
112
|
-
'run-id': core_1.Flags.string({
|
|
117
|
+
'run-id': core_1.Flags.string({
|
|
118
|
+
description: 'Task Run that produced it. Not the id `tasks checkout` prints: a checkout is not a Task Run',
|
|
119
|
+
}),
|
|
113
120
|
'idempotency-key': core_1.Flags.string({ description: 'Stable retry key' }),
|
|
114
121
|
file: core_1.Flags.string({
|
|
115
122
|
description: "Archive THIS file as the Deliverable's exact content, when the bytes are somewhere " +
|
|
@@ -193,6 +200,10 @@ class TasksDeliverableAdd extends base_command_1.BaseCommand {
|
|
|
193
200
|
...observation,
|
|
194
201
|
idempotencyKey: flags['idempotency-key'] || defaultDeliverableIdempotencyKey(),
|
|
195
202
|
};
|
|
203
|
+
// A refusal about the cited Run names `runId`; the person typed --run-id
|
|
204
|
+
// (OSK-33349: "Leave out runId" reads "Leave out --run-id").
|
|
205
|
+
if (flags['run-id'])
|
|
206
|
+
this.requestFieldFlags = exports.DELIVERABLE_ADD_FIELD_FLAGS;
|
|
196
207
|
const sessionWrite = await (0, session_task_write_1.sessionTaskWrite)('deliverable', args.task);
|
|
197
208
|
result = sessionWrite
|
|
198
209
|
? await (0, api_fetch_1.apiFetch)(sessionWrite.path, {
|
|
@@ -308,13 +319,21 @@ exports.default = TasksDeliverableAdd;
|
|
|
308
319
|
/** Availability and a named Resource version require the server's complete archive receipt. */
|
|
309
320
|
function assertArchivedDeliverableReceipt(asset) {
|
|
310
321
|
const receipt = asset?.resourceReceipt;
|
|
311
|
-
const ids = [
|
|
312
|
-
|
|
322
|
+
const ids = [
|
|
323
|
+
asset?.id,
|
|
324
|
+
receipt?.resource?.id,
|
|
325
|
+
receipt?.version?.id,
|
|
326
|
+
receipt?.link?.id,
|
|
327
|
+
receipt?.observation?.id,
|
|
328
|
+
];
|
|
313
329
|
const stored = asset?.digest;
|
|
314
330
|
const versionDigest = receipt?.version?.contentDigest;
|
|
315
|
-
if (asset?.status !== 'ready' ||
|
|
316
|
-
|
|
317
|
-
|
|
331
|
+
if (asset?.status !== 'ready' ||
|
|
332
|
+
ids.some((id) => typeof id !== 'string' || !id.trim()) ||
|
|
333
|
+
receipt?.observation?.status !== 'available' ||
|
|
334
|
+
typeof stored !== 'string' ||
|
|
335
|
+
!ASSERT_ARCHIVED_DELIVERABLE_RECEIPT_RE.test(stored) ||
|
|
336
|
+
typeof versionDigest !== 'string' ||
|
|
318
337
|
versionDigest.toLowerCase() !== `sha256:${stored.toLowerCase()}`) {
|
|
319
338
|
throw new Error('The server did not confirm a ready archived Deliverable with its exact Resource receipt. ' +
|
|
320
339
|
'Re-read the Task attachments and Deliverables before retrying.');
|
|
@@ -18,6 +18,8 @@ export declare function humanInputContextLines(question: Pick<TaskHumanInputQues
|
|
|
18
18
|
export declare function humanInputOptionDescriptionLines(question: Pick<TaskHumanInputQuestion, 'options' | 'optionDescriptions'>, indent: string): string[];
|
|
19
19
|
/** `--timeout` for `--wait`: 90s, 10m, 2h (a bare number is seconds). */
|
|
20
20
|
export declare function parseWaitTimeoutMs(value: string | undefined): number | null;
|
|
21
|
+
/** Who may answer, and who did when it was not a person. */
|
|
22
|
+
export declare function humanInputAuthorshipLines(request: Pick<TaskHumanInputRequest, 'ownerOnly' | 'answeredByAgentId' | 'answerBasis' | 'answerCitedMessageId'>): string[];
|
|
21
23
|
/** Each answer as the asker reads it, beside the question it answers. */
|
|
22
24
|
export declare function humanInputAnswerLines(request: TaskHumanInputRequest): string[];
|
|
23
25
|
export default class TasksInputShow extends BaseCommand {
|
|
@@ -4,6 +4,7 @@ exports.humanInputOptionsLine = humanInputOptionsLine;
|
|
|
4
4
|
exports.humanInputContextLines = humanInputContextLines;
|
|
5
5
|
exports.humanInputOptionDescriptionLines = humanInputOptionDescriptionLines;
|
|
6
6
|
exports.parseWaitTimeoutMs = parseWaitTimeoutMs;
|
|
7
|
+
exports.humanInputAuthorshipLines = humanInputAuthorshipLines;
|
|
7
8
|
exports.humanInputAnswerLines = humanInputAnswerLines;
|
|
8
9
|
const core_1 = require("@oclif/core");
|
|
9
10
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
@@ -56,9 +57,23 @@ function parseWaitTimeoutMs(value) {
|
|
|
56
57
|
const unit = (match[2] || 's').toLowerCase();
|
|
57
58
|
return Number(match[1]) * (unit === 'h' ? 3_600_000 : unit === 'm' ? 60_000 : 1000);
|
|
58
59
|
}
|
|
60
|
+
/** Who may answer, and who did when it was not a person. */
|
|
61
|
+
function humanInputAuthorshipLines(request) {
|
|
62
|
+
const lines = [];
|
|
63
|
+
if (request.ownerOnly)
|
|
64
|
+
lines.push(data_provider_1.TASK_HUMAN_INPUT_OWNER_ONLY_LABEL);
|
|
65
|
+
if (request.answeredByAgentId) {
|
|
66
|
+
const basis = request.answerBasis
|
|
67
|
+
? data_provider_1.TASK_HUMAN_INPUT_ANSWER_BASIS_LABELS[request.answerBasis]
|
|
68
|
+
: 'an unrecorded basis';
|
|
69
|
+
const cited = request.answerCitedMessageId ? ` (message ${request.answerCitedMessageId})` : '';
|
|
70
|
+
lines.push(`Answered for you by agent ${request.answeredByAgentId}, based on ${basis}${cited}. To change it, send the Task a new instruction.`);
|
|
71
|
+
}
|
|
72
|
+
return lines;
|
|
73
|
+
}
|
|
59
74
|
/** Each answer as the asker reads it, beside the question it answers. */
|
|
60
75
|
function humanInputAnswerLines(request) {
|
|
61
|
-
const lines =
|
|
76
|
+
const lines = humanInputAuthorshipLines(request);
|
|
62
77
|
for (const [index, question] of request.questions.entries()) {
|
|
63
78
|
lines.push(`${index + 1}. ${question.header ? `${question.header}: ` : ''}${question.prompt}`);
|
|
64
79
|
lines.push(...humanInputContextLines(question, ' '));
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { BaseCommand } from '../../../base-command';
|
|
2
|
+
/** The body paths `resource add` writes from a flag, as `handleApiError` reads them back. */
|
|
3
|
+
export declare const RESOURCE_ADD_FIELD_FLAGS: Readonly<Record<string, string>>;
|
|
2
4
|
export default class TasksResourceAdd extends BaseCommand {
|
|
3
5
|
static description: string;
|
|
4
6
|
static examples: string[];
|