@skrr-ai/cli 0.1.199 → 0.1.201

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.
Files changed (55) hide show
  1. package/dist/commands/agents/always-on/recovery-close.d.ts +3 -4
  2. package/dist/commands/agents/always-on/recovery-close.js +5 -5
  3. package/dist/commands/agents/always-on/recovery-review.d.ts +1 -1
  4. package/dist/commands/agents/always-on/recovery-review.js +4 -3
  5. package/dist/commands/agents/create.d.ts +4 -2
  6. package/dist/commands/agents/create.js +29 -4
  7. package/dist/commands/duties/check-now.d.ts +1 -0
  8. package/dist/commands/duties/check-now.js +17 -1
  9. package/dist/commands/duties/create.js +74 -7
  10. package/dist/commands/duties/observations.d.ts +1 -0
  11. package/dist/commands/duties/observations.js +12 -3
  12. package/dist/commands/duties/operating-review.js +34 -2
  13. package/dist/commands/duties/pack/plan.d.ts +1 -0
  14. package/dist/commands/duties/pack/plan.js +30 -0
  15. package/dist/commands/duties/plan.d.ts +1 -0
  16. package/dist/commands/duties/plan.js +24 -0
  17. package/dist/commands/duties/preflight.d.ts +3 -3
  18. package/dist/commands/duties/preflight.js +36 -12
  19. package/dist/commands/duties/receipt.d.ts +1 -0
  20. package/dist/commands/duties/receipt.js +35 -11
  21. package/dist/commands/duties/roster.js +29 -6
  22. package/dist/commands/duties/status.js +19 -11
  23. package/dist/commands/duties/update.js +1 -1
  24. package/dist/commands/goals/create.js +1 -1
  25. package/dist/commands/goals/key-results/create.js +1 -1
  26. package/dist/commands/machines/computer-adoption.js +1 -1
  27. package/dist/commands/machines/dedicated/audit.js +1 -1
  28. package/dist/commands/machines/dedicated/catalog.js +1 -1
  29. package/dist/commands/machines/dedicated/current.js +1 -1
  30. package/dist/commands/machines/dedicated/git-status.js +1 -1
  31. package/dist/commands/machines/dedicated/health-check.js +1 -1
  32. package/dist/commands/machines/dedicated/logs.js +1 -1
  33. package/dist/commands/machines/dedicated/price-book.js +1 -1
  34. package/dist/commands/machines/dedicated/sign-in-status.js +1 -1
  35. package/dist/commands/machines/dedicated/stat.js +1 -1
  36. package/dist/commands/machines/services/ls.js +1 -1
  37. package/dist/commands/machines/shared.js +1 -1
  38. package/dist/commands/machines/shares.js +1 -1
  39. package/dist/commands/triggers/fire-detail.js +7 -0
  40. package/dist/generated/agent-guides.json +36 -36
  41. package/dist/lib/daemon-setup.js +1 -1
  42. package/dist/lib/duties.d.ts +7 -5
  43. package/dist/lib/duties.js +32 -19
  44. package/dist/lib/duty-loop-status.d.ts +2 -0
  45. package/dist/lib/duty-loop-status.js +26 -1
  46. package/dist/lib/duty-product.js +52 -3
  47. package/dist/lib/tasks.js +11 -3
  48. package/dist/lib/usage-discovery.js +2 -2
  49. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dutyExecutionContract.d.ts +3 -1
  50. package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dutyExecutionContract.js +6 -2
  51. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/dutyExecutionContract.d.ts +3 -1
  52. package/dist/node_modules/@skrr-ai/auth-core/dist/esm/dutyExecutionContract.js +6 -4
  53. package/dist/node_modules/@skrr-ai/data-provider/index.js +10384 -10375
  54. package/oclif.manifest.json +40 -7
  55. package/package.json +5 -2
@@ -2,6 +2,7 @@
2
2
  export declare const DUTY_EXECUTION_CONTRACT_VERSION: 3;
3
3
  export declare const DUTY_EXECUTION_CONTRACT_CAPABILITY = "duty_execution_contract_v3";
4
4
  export declare const PLATFORM_DUTY_SCRATCH_CAPABILITY = "platform_duty_scratch_v1";
5
+ export declare const REPORT_ONLY_DUTY_SCRATCH_CAPABILITY = "report_only_duty_scratch_v1";
5
6
  export interface DutyExecutionContract {
6
7
  version: 3;
7
8
  kind: 'duty' | 'task_delivery';
@@ -42,12 +43,13 @@ export interface DutyExecutionContract {
42
43
  return: 'duty_result_v1' | 'task_output';
43
44
  }
44
45
  export declare function eventRepository(event: Record<string, unknown> | null | undefined): string;
45
- /** The platform's relationship Duties use server evidence and need no checkout. */
46
+ /** Relationship Duties and unrooted reports without repository inputs can use empty scratch. */
46
47
  export declare function usesPlatformDutyScratch(input: {
47
48
  dutyId?: string;
48
49
  delivery?: DutyExecutionContract['delivery'];
49
50
  workspace?: DutyExecutionContract['workspace'];
50
51
  event?: DutyExecutionContract['event'];
52
+ unrootedReport?: boolean;
51
53
  }): boolean;
52
54
  /** One strict parser used at storage admission and at runtime admission. */
53
55
  export declare function normalizeDutyExecutionContract(value: unknown): DutyExecutionContract | null;
@@ -21,6 +21,7 @@ __export(dutyExecutionContract_exports, {
21
21
  DUTY_EXECUTION_CONTRACT_CAPABILITY: () => DUTY_EXECUTION_CONTRACT_CAPABILITY,
22
22
  DUTY_EXECUTION_CONTRACT_VERSION: () => DUTY_EXECUTION_CONTRACT_VERSION,
23
23
  PLATFORM_DUTY_SCRATCH_CAPABILITY: () => PLATFORM_DUTY_SCRATCH_CAPABILITY,
24
+ REPORT_ONLY_DUTY_SCRATCH_CAPABILITY: () => REPORT_ONLY_DUTY_SCRATCH_CAPABILITY,
24
25
  eventRepository: () => eventRepository,
25
26
  normalizeDutyExecutionContract: () => normalizeDutyExecutionContract,
26
27
  usesPlatformDutyScratch: () => usesPlatformDutyScratch
@@ -41,6 +42,7 @@ const VALID_DELIVERY_SOURCE_RE_2 = /^[a-f0-9]{40,64}$/i;
41
42
  const DUTY_EXECUTION_CONTRACT_VERSION = 3;
42
43
  const DUTY_EXECUTION_CONTRACT_CAPABILITY = "duty_execution_contract_v3";
43
44
  const PLATFORM_DUTY_SCRATCH_CAPABILITY = "platform_duty_scratch_v1";
45
+ const REPORT_ONLY_DUTY_SCRATCH_CAPABILITY = "report_only_duty_scratch_v1";
44
46
  const DELIVERY_MODES = /* @__PURE__ */ new Set([
45
47
  "report_only",
46
48
  "local_patch",
@@ -405,8 +407,9 @@ function eventRepository(event) {
405
407
  return VALID_DELIVERY_RE.test(String(value || "")) ? String(value).toLowerCase() : "";
406
408
  }
407
409
  function usesPlatformDutyScratch(input) {
408
- const { dutyId, delivery, workspace, event } = input;
409
- return typeof dutyId === "string" && /^obj_system_(conversation_continuity|relationship_pulse|duty_incubator|open_loop_closer)_[a-f0-9]{24}$/.test(dutyId) && delivery?.mode === "report_only" && !delivery.repo && !delivery.baseBranch && workspace?.kind === "ephemeral" && workspace.base === "agent_working_directory" && !workspace.fetchBase && !event?.repo && !event?.repository && !eventRepository(event);
410
+ const { dutyId, delivery, workspace, event, unrootedReport } = input;
411
+ const relationshipDuty = typeof dutyId === "string" && /^obj_system_(conversation_continuity|relationship_pulse|duty_incubator|open_loop_closer)_[a-f0-9]{24}$/.test(dutyId);
412
+ return (relationshipDuty || unrootedReport === true) && delivery?.mode === "report_only" && !delivery.repo && !delivery.baseBranch && workspace?.kind === "ephemeral" && workspace.base === "agent_working_directory" && !workspace.fetchBase && !event?.repo && !event?.repository && !eventRepository(event);
410
413
  }
411
414
  function failedGitHubCheck(event) {
412
415
  const eventType = String(event?.eventType || event?.type || "").toLowerCase();
@@ -447,6 +450,7 @@ function normalizeDutyExecutionContract(value) {
447
450
  DUTY_EXECUTION_CONTRACT_CAPABILITY,
448
451
  DUTY_EXECUTION_CONTRACT_VERSION,
449
452
  PLATFORM_DUTY_SCRATCH_CAPABILITY,
453
+ REPORT_ONLY_DUTY_SCRATCH_CAPABILITY,
450
454
  eventRepository,
451
455
  normalizeDutyExecutionContract,
452
456
  usesPlatformDutyScratch
@@ -2,6 +2,7 @@
2
2
  export declare const DUTY_EXECUTION_CONTRACT_VERSION: 3;
3
3
  export declare const DUTY_EXECUTION_CONTRACT_CAPABILITY = "duty_execution_contract_v3";
4
4
  export declare const PLATFORM_DUTY_SCRATCH_CAPABILITY = "platform_duty_scratch_v1";
5
+ export declare const REPORT_ONLY_DUTY_SCRATCH_CAPABILITY = "report_only_duty_scratch_v1";
5
6
  export interface DutyExecutionContract {
6
7
  version: 3;
7
8
  kind: 'duty' | 'task_delivery';
@@ -42,12 +43,13 @@ export interface DutyExecutionContract {
42
43
  return: 'duty_result_v1' | 'task_output';
43
44
  }
44
45
  export declare function eventRepository(event: Record<string, unknown> | null | undefined): string;
45
- /** The platform's relationship Duties use server evidence and need no checkout. */
46
+ /** Relationship Duties and unrooted reports without repository inputs can use empty scratch. */
46
47
  export declare function usesPlatformDutyScratch(input: {
47
48
  dutyId?: string;
48
49
  delivery?: DutyExecutionContract['delivery'];
49
50
  workspace?: DutyExecutionContract['workspace'];
50
51
  event?: DutyExecutionContract['event'];
52
+ unrootedReport?: boolean;
51
53
  }): boolean;
52
54
  /** One strict parser used at storage admission and at runtime admission. */
53
55
  export declare function normalizeDutyExecutionContract(value: unknown): DutyExecutionContract | null;
@@ -15,6 +15,7 @@ const VALID_DELIVERY_SOURCE_RE_2 = /^[a-f0-9]{40,64}$/i;
15
15
  export const DUTY_EXECUTION_CONTRACT_VERSION = 3;
16
16
  export const DUTY_EXECUTION_CONTRACT_CAPABILITY = 'duty_execution_contract_v3';
17
17
  export const PLATFORM_DUTY_SCRATCH_CAPABILITY = 'platform_duty_scratch_v1';
18
+ export const REPORT_ONLY_DUTY_SCRATCH_CAPABILITY = 'report_only_duty_scratch_v1';
18
19
  const DELIVERY_MODES = new Set([
19
20
  'report_only',
20
21
  'local_patch',
@@ -477,11 +478,12 @@ export function eventRepository(event) {
477
478
  const value = event.repoFullName || repository?.full_name || repository?.fullName;
478
479
  return VALID_DELIVERY_RE.test(String(value || '')) ? String(value).toLowerCase() : '';
479
480
  }
480
- /** The platform's relationship Duties use server evidence and need no checkout. */
481
+ /** Relationship Duties and unrooted reports without repository inputs can use empty scratch. */
481
482
  export function usesPlatformDutyScratch(input) {
482
- const { dutyId, delivery, workspace, event } = input;
483
- return (typeof dutyId === 'string' &&
484
- /^obj_system_(conversation_continuity|relationship_pulse|duty_incubator|open_loop_closer)_[a-f0-9]{24}$/.test(dutyId) &&
483
+ const { dutyId, delivery, workspace, event, unrootedReport } = input;
484
+ const relationshipDuty = typeof dutyId === 'string' &&
485
+ /^obj_system_(conversation_continuity|relationship_pulse|duty_incubator|open_loop_closer)_[a-f0-9]{24}$/.test(dutyId);
486
+ return ((relationshipDuty || unrootedReport === true) &&
485
487
  delivery?.mode === 'report_only' &&
486
488
  !delivery.repo &&
487
489
  !delivery.baseBranch &&