@skrr-ai/cli 0.1.136 → 0.1.137

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.
@@ -315,7 +315,7 @@ JSON
315
315
  activate: core_1.Flags.boolean({
316
316
  description: 'Turn the commitment on right after creating it — the same resume + Preflight boundary ' +
317
317
  "as `commitments resume`. A refused activation keeps the draft and reports the refusal's " +
318
- 'code, reason and fix.',
318
+ 'code, reason and fix, and exits nonzero. Use the returned ID to resume it instead of creating another.',
319
319
  }),
320
320
  deadline: core_1.Flags.string({ description: 'ISO-8601 deadline for an `achieve` commitment' }),
321
321
  criterion: core_1.Flags.string({
@@ -593,6 +593,10 @@ JSON
593
593
  }
594
594
  }
595
595
  }
596
+ // A draft was created, but the requested operation did not fully succeed.
597
+ // Keep the receipt on stdout and let it drain before returning a failure to scripts.
598
+ if (activation && !activation.activated)
599
+ process.exitCode = 1;
596
600
  const warnings = (0, commitments_1.commitmentWriteWarnings)(commitment, { payload });
597
601
  if (flags.json) {
598
602
  this.log(JSON.stringify((0, web_url_1.withCommitmentUrl)(this.cliConfig.baseURL, {
@@ -413,6 +413,9 @@ class TasksShow extends base_command_1.BaseCommand {
413
413
  this.log(line);
414
414
  for (const line of completionLines(completion, { read: completionRead }))
415
415
  this.log(line);
416
+ const pendingReview = (0, data_provider_1.describeTaskReviewPause)(t.driReview);
417
+ if (pendingReview)
418
+ this.log(`Agent review: ${pendingReview}`);
416
419
  const agents = Array.isArray(t.assigneeAgentIds) ? t.assigneeAgentIds : [];
417
420
  const users = Array.isArray(t.assigneeUserIds) ? t.assigneeUserIds : [];
418
421
  // Principals print as names, not ObjectIds — same rule as labels: a
@@ -13,6 +13,7 @@ export default class TriggersAudit extends BaseCommand {
13
13
  agent: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
14
14
  scope: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
15
15
  outcome: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
+ reason: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
16
17
  source: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
17
18
  };
18
19
  run(): Promise<void>;
@@ -9,6 +9,7 @@ class TriggersAudit extends base_command_1.BaseCommand {
9
9
  '<%= config.bin %> triggers audit <trigger-id>',
10
10
  '<%= config.bin %> triggers audit --agent <agent-id> --limit 50',
11
11
  '<%= config.bin %> triggers audit --scope agent --outcome failed --json',
12
+ '<%= config.bin %> triggers audit <trigger-id> --outcome skipped --reason debounced',
12
13
  '<%= config.bin %> triggers audit <trigger-id> --limit 50 --json',
13
14
  ];
14
15
  static args = {
@@ -25,8 +26,9 @@ class TriggersAudit extends base_command_1.BaseCommand {
25
26
  agent: core_1.Flags.string({ description: 'Agent ID filter for owner-wide audit history' }),
26
27
  scope: core_1.Flags.string({ description: 'Scope kind filter for owner-wide audit history' }),
27
28
  outcome: core_1.Flags.string({
28
- description: 'Outcome filter (succeeded, failed, skipped, incomplete, capped, ...); an unknown value is refused with the full list',
29
+ description: 'Exact outcome field (succeeded, failed, skipped, ...); use --reason for causes such as debounced',
29
30
  }),
31
+ reason: core_1.Flags.string({ description: 'Exact reason field (for example debounced or inside_quiet_hours)' }),
30
32
  source: core_1.Flags.string({
31
33
  description: 'Source filter (schedule, once, event, manual, webhook, replay, ...); an unknown value is refused with the full list',
32
34
  }),
@@ -39,7 +41,7 @@ class TriggersAudit extends base_command_1.BaseCommand {
39
41
  // dropped without a word, so `--outcome failed` listed succeeded rows and exited 0 (OSK-16474).
40
42
  // A filter now always reaches the filtered history, narrowed to that trigger; that history
41
43
  // covers triggers you own, which is said out loud rather than discovered.
42
- const filtered = [flags.outcome, flags.source, flags.scope, flags.agent].some((value) => value !== undefined);
44
+ const filtered = [flags.outcome, flags.reason, flags.source, flags.scope, flags.agent].some((value) => value !== undefined);
43
45
  if (triggerId && filtered && !flags.json) {
44
46
  this.warn('Filters read the fire history of triggers you own: a trigger shared with you but owned by someone else lists no rows here (omit the filters to read its own audit).');
45
47
  }
@@ -54,6 +56,7 @@ class TriggersAudit extends base_command_1.BaseCommand {
54
56
  scope: flags.scope,
55
57
  agentId: flags.agent,
56
58
  outcome: flags.outcome,
59
+ reason: flags.reason,
57
60
  source: flags.source,
58
61
  ...(triggerId ? { triggerId } : {}),
59
62
  });
@@ -96,11 +96,17 @@ class TriggersPrune extends base_command_1.BaseCommand {
96
96
  }
97
97
  if (ownerWide) {
98
98
  this.log('Scope: all (every scope you own)');
99
- this.log(`Per-user: ${quota.perUser} / ${quota.perUserLimit} (${quota.perUserRemaining} free)`);
99
+ this.log(`Owner quota${quota.counterWorkspaceId ? ` (workspace ${quota.counterWorkspaceId})` : quota.counterWorkspaceId === null ? ' (no workspace)' : ''}: ${quota.perUser} / ${quota.perUserLimit} (${quota.perUserRemaining} free)`);
100
100
  }
101
101
  else {
102
102
  this.log(`Scope: ${quota.scopeKind}`);
103
103
  this.log(`Active: ${quota.active} / ${quota.limit} (${quota.remaining} free)`);
104
+ if (quota.counterWorkspaceId !== undefined) {
105
+ this.log(`Quota workspace: ${quota.counterWorkspaceId || 'none'}`);
106
+ }
107
+ }
108
+ if (quota.reclaimableScope === 'owner_all_workspaces') {
109
+ this.log('Prune candidates span all workspaces you own.');
104
110
  }
105
111
  this.log(`Would delete: ${preview.wouldDelete} disabled trigger(s)`);
106
112
  for (const id of preview.ids)
@@ -49,6 +49,7 @@ export interface DedicatedLease extends Omit<HarnessLease, 'storage' | 'health'>
49
49
  retentionClass?: string;
50
50
  backupProfile?: string;
51
51
  lastBackupAt?: string;
52
+ lastBackupAtUncertain?: boolean;
52
53
  lastRestoreTestAt?: string;
53
54
  lastRestoreTestStatus?: string;
54
55
  unpaidSince?: string;
@@ -797,7 +797,9 @@ function describeDedicatedLease(lease, harnesses = [], opts = {}) {
797
797
  .filter(Boolean)
798
798
  .join(' · ');
799
799
  row('workspace', disk);
800
- row('last backup', storage.lastBackupAt);
800
+ row('last backup', storage.lastBackupAtUncertain
801
+ ? 'Unknown (recovery points could not be fully verified)'
802
+ : storage.lastBackupAt);
801
803
  const image = [resources.imageVersion || lease.daemon?.imageVersion].filter(Boolean).join('');
802
804
  row('image', image);
803
805
  if (lease.health?.image) {
@@ -1269,6 +1271,10 @@ function dedicatedCreateSummary(catalog, choices) {
1269
1271
  ` storage ${storage}${storagePrice?.display ? ` — ${storagePrice.display}` : ''}`,
1270
1272
  ` retention ${retention}${retains ? ' — destroy keeps the workspace, and its storage bills until you purge it' : ''}`,
1271
1273
  ` monthly cap ${cap}`,
1274
+ ...(capCents === null
1275
+ ? []
1276
+ : [' cap scope all Dedicated Runtime usage in this account or workspace']),
1277
+ ' admission not checked in this preview',
1272
1278
  ];
1273
1279
  }
1274
1280
  /**
@@ -154,6 +154,7 @@ export interface HarnessLease {
154
154
  storage?: {
155
155
  retentionClass?: string;
156
156
  lastBackupAt?: string;
157
+ lastBackupAtUncertain?: boolean;
157
158
  backupProfile?: string;
158
159
  };
159
160
  createdAt?: string;
@@ -608,6 +608,9 @@ export interface TriggerQuotaStatus {
608
608
  perUser: number;
609
609
  perUserLimit: number;
610
610
  perUserRemaining: number;
611
+ /** Workspace used by the admission counter; null means the unscoped counter. */
612
+ counterWorkspaceId?: string | null;
613
+ reclaimableScope?: 'owner_all_workspaces';
611
614
  /**
612
615
  * Disabled rows across EVERY scope this user owns. `reclaimable` above is
613
616
  * scoped, which cannot size the remedy for a per-user refusal — that cap