@skrr-ai/cli 0.1.198 → 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/tasks/result/submit.d.ts +1 -0
- package/dist/commands/tasks/result/submit.js +2 -0
- package/dist/commands/tasks/start-receipt.js +5 -0
- package/dist/commands/tasks/start.js +40 -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 +10 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dutyExecutionContract.js +15 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/dutyExecutionContract.d.ts +10 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/dutyExecutionContract.js +18 -0
- package/dist/node_modules/@skrr-ai/data-provider/index.js +10381 -10365
- package/oclif.manifest.json +47 -8
- package/package.json +6 -3
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/** Mode-free responsibility context. Tool permissions belong to the Agent runtime. */
|
|
2
2
|
export declare const DUTY_EXECUTION_CONTRACT_VERSION: 3;
|
|
3
3
|
export declare const DUTY_EXECUTION_CONTRACT_CAPABILITY = "duty_execution_contract_v3";
|
|
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";
|
|
4
6
|
export interface DutyExecutionContract {
|
|
5
7
|
version: 3;
|
|
6
8
|
kind: 'duty' | 'task_delivery';
|
|
@@ -41,5 +43,13 @@ export interface DutyExecutionContract {
|
|
|
41
43
|
return: 'duty_result_v1' | 'task_output';
|
|
42
44
|
}
|
|
43
45
|
export declare function eventRepository(event: Record<string, unknown> | null | undefined): string;
|
|
46
|
+
/** Relationship Duties and unrooted reports without repository inputs can use empty scratch. */
|
|
47
|
+
export declare function usesPlatformDutyScratch(input: {
|
|
48
|
+
dutyId?: string;
|
|
49
|
+
delivery?: DutyExecutionContract['delivery'];
|
|
50
|
+
workspace?: DutyExecutionContract['workspace'];
|
|
51
|
+
event?: DutyExecutionContract['event'];
|
|
52
|
+
unrootedReport?: boolean;
|
|
53
|
+
}): boolean;
|
|
44
54
|
/** One strict parser used at storage admission and at runtime admission. */
|
|
45
55
|
export declare function normalizeDutyExecutionContract(value: unknown): DutyExecutionContract | null;
|
|
@@ -20,8 +20,11 @@ var dutyExecutionContract_exports = {};
|
|
|
20
20
|
__export(dutyExecutionContract_exports, {
|
|
21
21
|
DUTY_EXECUTION_CONTRACT_CAPABILITY: () => DUTY_EXECUTION_CONTRACT_CAPABILITY,
|
|
22
22
|
DUTY_EXECUTION_CONTRACT_VERSION: () => DUTY_EXECUTION_CONTRACT_VERSION,
|
|
23
|
+
PLATFORM_DUTY_SCRATCH_CAPABILITY: () => PLATFORM_DUTY_SCRATCH_CAPABILITY,
|
|
24
|
+
REPORT_ONLY_DUTY_SCRATCH_CAPABILITY: () => REPORT_ONLY_DUTY_SCRATCH_CAPABILITY,
|
|
23
25
|
eventRepository: () => eventRepository,
|
|
24
|
-
normalizeDutyExecutionContract: () => normalizeDutyExecutionContract
|
|
26
|
+
normalizeDutyExecutionContract: () => normalizeDutyExecutionContract,
|
|
27
|
+
usesPlatformDutyScratch: () => usesPlatformDutyScratch
|
|
25
28
|
});
|
|
26
29
|
module.exports = __toCommonJS(dutyExecutionContract_exports);
|
|
27
30
|
var import_node_util = require("node:util");
|
|
@@ -38,6 +41,8 @@ const VALID_DELIVERY_SOURCE_RE = /^[A-Za-z0-9][A-Za-z0-9_./-]{0,239}$/;
|
|
|
38
41
|
const VALID_DELIVERY_SOURCE_RE_2 = /^[a-f0-9]{40,64}$/i;
|
|
39
42
|
const DUTY_EXECUTION_CONTRACT_VERSION = 3;
|
|
40
43
|
const DUTY_EXECUTION_CONTRACT_CAPABILITY = "duty_execution_contract_v3";
|
|
44
|
+
const PLATFORM_DUTY_SCRATCH_CAPABILITY = "platform_duty_scratch_v1";
|
|
45
|
+
const REPORT_ONLY_DUTY_SCRATCH_CAPABILITY = "report_only_duty_scratch_v1";
|
|
41
46
|
const DELIVERY_MODES = /* @__PURE__ */ new Set([
|
|
42
47
|
"report_only",
|
|
43
48
|
"local_patch",
|
|
@@ -401,6 +406,11 @@ function eventRepository(event) {
|
|
|
401
406
|
const value = event.repoFullName || repository?.full_name || repository?.fullName;
|
|
402
407
|
return VALID_DELIVERY_RE.test(String(value || "")) ? String(value).toLowerCase() : "";
|
|
403
408
|
}
|
|
409
|
+
function usesPlatformDutyScratch(input) {
|
|
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);
|
|
413
|
+
}
|
|
404
414
|
function failedGitHubCheck(event) {
|
|
405
415
|
const eventType = String(event?.eventType || event?.type || "").toLowerCase();
|
|
406
416
|
return eventType === "github.check_run_failed" || eventType === "check_run_failed";
|
|
@@ -439,6 +449,9 @@ function normalizeDutyExecutionContract(value) {
|
|
|
439
449
|
0 && (module.exports = {
|
|
440
450
|
DUTY_EXECUTION_CONTRACT_CAPABILITY,
|
|
441
451
|
DUTY_EXECUTION_CONTRACT_VERSION,
|
|
452
|
+
PLATFORM_DUTY_SCRATCH_CAPABILITY,
|
|
453
|
+
REPORT_ONLY_DUTY_SCRATCH_CAPABILITY,
|
|
442
454
|
eventRepository,
|
|
443
|
-
normalizeDutyExecutionContract
|
|
455
|
+
normalizeDutyExecutionContract,
|
|
456
|
+
usesPlatformDutyScratch
|
|
444
457
|
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/** Mode-free responsibility context. Tool permissions belong to the Agent runtime. */
|
|
2
2
|
export declare const DUTY_EXECUTION_CONTRACT_VERSION: 3;
|
|
3
3
|
export declare const DUTY_EXECUTION_CONTRACT_CAPABILITY = "duty_execution_contract_v3";
|
|
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";
|
|
4
6
|
export interface DutyExecutionContract {
|
|
5
7
|
version: 3;
|
|
6
8
|
kind: 'duty' | 'task_delivery';
|
|
@@ -41,5 +43,13 @@ export interface DutyExecutionContract {
|
|
|
41
43
|
return: 'duty_result_v1' | 'task_output';
|
|
42
44
|
}
|
|
43
45
|
export declare function eventRepository(event: Record<string, unknown> | null | undefined): string;
|
|
46
|
+
/** Relationship Duties and unrooted reports without repository inputs can use empty scratch. */
|
|
47
|
+
export declare function usesPlatformDutyScratch(input: {
|
|
48
|
+
dutyId?: string;
|
|
49
|
+
delivery?: DutyExecutionContract['delivery'];
|
|
50
|
+
workspace?: DutyExecutionContract['workspace'];
|
|
51
|
+
event?: DutyExecutionContract['event'];
|
|
52
|
+
unrootedReport?: boolean;
|
|
53
|
+
}): boolean;
|
|
44
54
|
/** One strict parser used at storage admission and at runtime admission. */
|
|
45
55
|
export declare function normalizeDutyExecutionContract(value: unknown): DutyExecutionContract | null;
|
|
@@ -14,6 +14,8 @@ const VALID_DELIVERY_SOURCE_RE_2 = /^[a-f0-9]{40,64}$/i;
|
|
|
14
14
|
/** Mode-free responsibility context. Tool permissions belong to the Agent runtime. */
|
|
15
15
|
export const DUTY_EXECUTION_CONTRACT_VERSION = 3;
|
|
16
16
|
export const DUTY_EXECUTION_CONTRACT_CAPABILITY = 'duty_execution_contract_v3';
|
|
17
|
+
export const PLATFORM_DUTY_SCRATCH_CAPABILITY = 'platform_duty_scratch_v1';
|
|
18
|
+
export const REPORT_ONLY_DUTY_SCRATCH_CAPABILITY = 'report_only_duty_scratch_v1';
|
|
17
19
|
const DELIVERY_MODES = new Set([
|
|
18
20
|
'report_only',
|
|
19
21
|
'local_patch',
|
|
@@ -476,6 +478,22 @@ export function eventRepository(event) {
|
|
|
476
478
|
const value = event.repoFullName || repository?.full_name || repository?.fullName;
|
|
477
479
|
return VALID_DELIVERY_RE.test(String(value || '')) ? String(value).toLowerCase() : '';
|
|
478
480
|
}
|
|
481
|
+
/** Relationship Duties and unrooted reports without repository inputs can use empty scratch. */
|
|
482
|
+
export function usesPlatformDutyScratch(input) {
|
|
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) &&
|
|
487
|
+
delivery?.mode === 'report_only' &&
|
|
488
|
+
!delivery.repo &&
|
|
489
|
+
!delivery.baseBranch &&
|
|
490
|
+
workspace?.kind === 'ephemeral' &&
|
|
491
|
+
workspace.base === 'agent_working_directory' &&
|
|
492
|
+
!workspace.fetchBase &&
|
|
493
|
+
!event?.repo &&
|
|
494
|
+
!event?.repository &&
|
|
495
|
+
!eventRepository(event));
|
|
496
|
+
}
|
|
479
497
|
function failedGitHubCheck(event) {
|
|
480
498
|
const eventType = String(event?.eventType || event?.type || '').toLowerCase();
|
|
481
499
|
return eventType === 'github.check_run_failed' || eventType === 'check_run_failed';
|