@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.
- package/dist/commands/agents/always-on/recovery-close.d.ts +3 -4
- package/dist/commands/agents/always-on/recovery-close.js +5 -5
- package/dist/commands/agents/always-on/recovery-review.d.ts +1 -1
- package/dist/commands/agents/always-on/recovery-review.js +4 -3
- package/dist/commands/agents/create.d.ts +4 -2
- package/dist/commands/agents/create.js +29 -4
- package/dist/commands/duties/check-now.d.ts +1 -0
- package/dist/commands/duties/check-now.js +17 -1
- package/dist/commands/duties/create.js +74 -7
- package/dist/commands/duties/observations.d.ts +1 -0
- package/dist/commands/duties/observations.js +12 -3
- package/dist/commands/duties/operating-review.js +34 -2
- package/dist/commands/duties/pack/plan.d.ts +1 -0
- package/dist/commands/duties/pack/plan.js +30 -0
- package/dist/commands/duties/plan.d.ts +1 -0
- package/dist/commands/duties/plan.js +24 -0
- package/dist/commands/duties/preflight.d.ts +3 -3
- package/dist/commands/duties/preflight.js +36 -12
- package/dist/commands/duties/receipt.d.ts +1 -0
- package/dist/commands/duties/receipt.js +35 -11
- package/dist/commands/duties/roster.js +29 -6
- package/dist/commands/duties/status.js +19 -11
- package/dist/commands/duties/update.js +1 -1
- package/dist/commands/goals/create.js +1 -1
- package/dist/commands/goals/key-results/create.js +1 -1
- package/dist/commands/machines/computer-adoption.js +1 -1
- package/dist/commands/machines/dedicated/audit.js +1 -1
- package/dist/commands/machines/dedicated/catalog.js +1 -1
- package/dist/commands/machines/dedicated/current.js +1 -1
- package/dist/commands/machines/dedicated/git-status.js +1 -1
- package/dist/commands/machines/dedicated/health-check.js +1 -1
- package/dist/commands/machines/dedicated/logs.js +1 -1
- package/dist/commands/machines/dedicated/price-book.js +1 -1
- package/dist/commands/machines/dedicated/sign-in-status.js +1 -1
- package/dist/commands/machines/dedicated/stat.js +1 -1
- package/dist/commands/machines/services/ls.js +1 -1
- package/dist/commands/machines/shared.js +1 -1
- package/dist/commands/machines/shares.js +1 -1
- package/dist/commands/triggers/fire-detail.js +7 -0
- package/dist/generated/agent-guides.json +36 -36
- package/dist/lib/daemon-setup.js +1 -1
- package/dist/lib/duties.d.ts +7 -5
- package/dist/lib/duties.js +32 -19
- package/dist/lib/duty-loop-status.d.ts +2 -0
- package/dist/lib/duty-loop-status.js +26 -1
- package/dist/lib/duty-product.js +52 -3
- package/dist/lib/tasks.js +11 -3
- package/dist/lib/usage-discovery.js +2 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dutyExecutionContract.d.ts +3 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dutyExecutionContract.js +6 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/dutyExecutionContract.d.ts +3 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/dutyExecutionContract.js +6 -4
- package/dist/node_modules/@skrr-ai/data-provider/index.js +10384 -10375
- package/oclif.manifest.json +40 -7
- 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
|
-
/**
|
|
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
|
-
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
|
|
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 &&
|