@skrr-ai/cli 0.1.208 → 0.1.210
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/no-reply.js +1 -1
- package/dist/commands/agent/message/react.d.ts +23 -0
- package/dist/commands/agent/message/react.js +128 -0
- package/dist/commands/agent/message/resolve.js +1 -1
- package/dist/commands/agent/message/retract.js +1 -1
- package/dist/commands/agent/message/send.d.ts +8 -13
- package/dist/commands/agent/message/send.js +60 -28
- package/dist/commands/agents/access/approve.js +1 -1
- package/dist/commands/agents/access/deny.js +1 -1
- package/dist/commands/agents/access/list.js +3 -1
- package/dist/commands/agents/access/reach.js +1 -1
- package/dist/commands/agents/access/revoke.js +1 -1
- package/dist/commands/agents/always-on/recovery-review.d.ts +10 -0
- package/dist/commands/agents/always-on/recovery-review.js +45 -0
- package/dist/commands/agents/chat.d.ts +22 -0
- package/dist/commands/agents/chat.js +400 -90
- package/dist/commands/agents/import.js +3 -3
- package/dist/commands/agents/manager/status.js +7 -6
- package/dist/commands/agents/not-for-task.d.ts +24 -0
- package/dist/commands/agents/not-for-task.js +64 -0
- package/dist/commands/agents/schedule-overview.d.ts +20 -0
- package/dist/commands/agents/schedule-overview.js +35 -2
- package/dist/commands/agents/shared-memory.js +1 -1
- package/dist/commands/agents/stop.d.ts +23 -0
- package/dist/commands/agents/stop.js +61 -0
- package/dist/commands/agents/update.d.ts +7 -0
- package/dist/commands/agents/update.js +45 -2
- package/dist/commands/convos/messages.js +5 -0
- package/dist/commands/convos/transcript.js +2 -2
- package/dist/commands/daemon/logs.d.ts +3 -1
- package/dist/commands/daemon/logs.js +6 -2
- package/dist/commands/dm/work.js +38 -9
- package/dist/commands/duties/advance-next.js +1 -1
- package/dist/commands/duties/preflight.js +17 -13
- package/dist/commands/duties/show.js +5 -0
- package/dist/commands/followups/watch-pr.js +2 -1
- package/dist/commands/harnesses/evaluations/evidence.js +2 -2
- package/dist/commands/harnesses/evaluations/grant.js +1 -1
- package/dist/commands/harnesses/evaluations/revoke.js +1 -1
- package/dist/commands/harnesses/evaluations/show.js +1 -1
- package/dist/commands/harnesses/rollouts/grant.js +1 -1
- package/dist/commands/harnesses/rollouts/revoke.js +1 -1
- package/dist/commands/machines/hosted/identity-evaluations/revoke.js +1 -1
- package/dist/commands/machines/hosted/identity-evaluations/show.js +1 -1
- package/dist/commands/memory/consolidation/undo.js +1 -0
- package/dist/commands/messages/list.js +9 -1
- package/dist/commands/slack/mutes.js +1 -1
- package/dist/commands/slack/unmute.js +1 -1
- package/dist/commands/tasks/actionability.js +1 -0
- package/dist/commands/tasks/ask.d.ts +2 -0
- package/dist/commands/tasks/ask.js +7 -1
- package/dist/commands/tasks/bulk-update.js +12 -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 +18 -3
- package/dist/commands/tasks/list.d.ts +8 -0
- package/dist/commands/tasks/list.js +50 -9
- package/dist/commands/tasks/move.d.ts +2 -10
- package/dist/commands/tasks/move.js +7 -18
- package/dist/commands/tasks/resource/add.d.ts +2 -0
- package/dist/commands/tasks/resource/add.js +11 -1
- package/dist/commands/tasks/result/show.js +19 -7
- package/dist/commands/tasks/show.d.ts +4 -3
- package/dist/commands/tasks/show.js +20 -8
- package/dist/commands/tasks/start.js +35 -16
- package/dist/commands/tasks/update.js +3 -0
- package/dist/commands/tasks/wait.js +2 -2
- package/dist/generated/agent-guides.json +483 -183
- package/dist/lib/agent-proactive-baseline.js +4 -1
- package/dist/lib/chat-stop.d.ts +17 -0
- package/dist/lib/chat-stop.js +70 -0
- package/dist/lib/cloud-reply.d.ts +21 -0
- package/dist/lib/cloud-reply.js +52 -0
- package/dist/lib/duties.d.ts +10 -0
- package/dist/lib/duties.js +111 -7
- package/dist/lib/duty-ledgers.js +19 -2
- package/dist/lib/file-mime.js +8 -0
- package/dist/lib/inbound-messages.d.ts +156 -0
- package/dist/lib/inbound-messages.js +375 -0
- package/dist/lib/message-intent.d.ts +18 -2
- package/dist/lib/message-intent.js +23 -1
- package/dist/lib/preflight-copy.d.ts +16 -1
- package/dist/lib/preflight-copy.js +33 -1
- package/dist/lib/space-resolver.d.ts +9 -0
- package/dist/lib/space-resolver.js +13 -0
- package/dist/lib/task-operations.d.ts +2 -0
- package/dist/lib/task-operations.js +28 -4
- package/dist/lib/task-preflight.js +1 -0
- package/dist/lib/task-review-notice.d.ts +21 -0
- package/dist/lib/task-review-notice.js +46 -0
- package/dist/lib/task-version.d.ts +9 -0
- package/dist/lib/task-version.js +16 -0
- package/dist/lib/task-work.js +5 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialEnvelopeBridge.js +6 -1
- 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/credentialEnvelopeBridge.js +45 -15
- 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/auth-core/package.json +1 -1
- package/dist/node_modules/@skrr-ai/data-provider/index.js +12307 -11838
- package/oclif.manifest.json +307 -23
- package/package.json +6 -2
|
@@ -3,6 +3,8 @@ 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;
|
|
7
|
+
exports.unprovenLine = unprovenLine;
|
|
6
8
|
const core_1 = require("@oclif/core");
|
|
7
9
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
8
10
|
const base_command_1 = require("../../../base-command");
|
|
@@ -105,9 +107,14 @@ class AgentsAlwaysOnRecoveryReview extends base_command_1.BaseCommand {
|
|
|
105
107
|
const receipts = receiptLine(review);
|
|
106
108
|
if (receipts)
|
|
107
109
|
this.log(receipts);
|
|
110
|
+
const unproven = unprovenLine(review);
|
|
111
|
+
if (unproven)
|
|
112
|
+
this.log(unproven);
|
|
108
113
|
this.log(INTEGRITY_CAVEAT);
|
|
109
114
|
for (const line of closeLines(args.id, review))
|
|
110
115
|
this.log(line);
|
|
116
|
+
for (const line of autoRecoveryLines(review))
|
|
117
|
+
this.log(line);
|
|
111
118
|
}
|
|
112
119
|
async list(agentId, cursor, json) {
|
|
113
120
|
let response;
|
|
@@ -229,6 +236,21 @@ function closeLines(agentId, review) {
|
|
|
229
236
|
return [`Close: ${close} (${exports.UNKNOWN_CODE_HINT}).`];
|
|
230
237
|
return [];
|
|
231
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
|
+
}
|
|
232
254
|
/** Where a time bound came from: the claim recorded it, or the analysis of releases before claims recorded one. */
|
|
233
255
|
const BOUND_FROM_TEXT = {
|
|
234
256
|
claim: ', recorded by the claim',
|
|
@@ -263,6 +285,29 @@ function receiptLine(review) {
|
|
|
263
285
|
.filter(Boolean)
|
|
264
286
|
.join(' ');
|
|
265
287
|
}
|
|
288
|
+
/**
|
|
289
|
+
* Why a Run stopped at its effect boundary, as its worker recorded it (OSK-33242): the server's content-free codes, as
|
|
290
|
+
* sent. Nothing for a Run with no record, or an older server.
|
|
291
|
+
*/
|
|
292
|
+
function unprovenLine(review) {
|
|
293
|
+
const codes = Array.isArray(review.effectsUnproven)
|
|
294
|
+
? review.effectsUnproven.filter(isNonEmptyString)
|
|
295
|
+
: [];
|
|
296
|
+
if (codes.length === 0)
|
|
297
|
+
return undefined;
|
|
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(' ');
|
|
310
|
+
}
|
|
266
311
|
/** One line per held result: what a person needs to choose which one to open. */
|
|
267
312
|
function reviewLine(review) {
|
|
268
313
|
const stored = review.resultCapture === 'unsealable'
|
|
@@ -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;
|
|
@@ -283,6 +297,7 @@ export default class AgentsChat extends BaseCommand {
|
|
|
283
297
|
jsonl: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
284
298
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
285
299
|
'idempotency-key': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
300
|
+
'after-current': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
286
301
|
'wait-for-idle': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
287
302
|
'wait-timeout': import("@oclif/core/interfaces").OptionFlag<number | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
288
303
|
'when-busy': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -321,6 +336,13 @@ export default class AgentsChat extends BaseCommand {
|
|
|
321
336
|
* message joined the running turn, or `--detach`).
|
|
322
337
|
*/
|
|
323
338
|
private startThroughQueue;
|
|
339
|
+
/**
|
|
340
|
+
* Inbound messages: in an existing conversation the message goes to the server's ingress, which
|
|
341
|
+
* keeps it at once and decides how the agent sees it, so a busy agent is never a refusal.
|
|
342
|
+
* Returns the turn to stream, `null` when there is nothing to stream (the message reached the
|
|
343
|
+
* agent another way, or `--detach`), or `'legacy'` when this server has no ingress.
|
|
344
|
+
*/
|
|
345
|
+
private sendThroughIngress;
|
|
324
346
|
run(): Promise<void>;
|
|
325
347
|
}
|
|
326
348
|
export {};
|