@skrr-ai/cli 0.1.116 → 0.1.118
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.d.ts +21 -0
- package/dist/base-command.js +95 -8
- package/dist/commands/actions/browse.js +2 -1
- package/dist/commands/actions/install.d.ts +2 -0
- package/dist/commands/actions/install.js +67 -2
- package/dist/commands/actions/list.js +2 -1
- package/dist/commands/actions/show.js +2 -1
- package/dist/commands/commitments/create.d.ts +21 -2
- package/dist/commands/commitments/create.js +74 -4
- package/dist/commands/convos/recovery.js +12 -4
- package/dist/commands/followups/plans/list.js +1 -1
- package/dist/commands/guide.d.ts +21 -0
- package/dist/commands/guide.js +46 -0
- package/dist/commands/instructions/guide.js +34 -52
- package/dist/commands/memory/maintain.js +1 -1
- package/dist/commands/skills/browse.js +2 -1
- package/dist/commands/skills/details.js +4 -2
- package/dist/commands/skills/featured.js +2 -1
- package/dist/commands/skills/install.d.ts +2 -0
- package/dist/commands/skills/install.js +62 -3
- package/dist/commands/skills/search.js +2 -1
- package/dist/commands/slack/send-as-agent.js +3 -3
- package/dist/commands/spaces/create.js +8 -2
- package/dist/commands/spaces/guide.d.ts +21 -0
- package/dist/commands/spaces/guide.js +40 -0
- package/dist/commands/spaces/index.d.ts +0 -1
- package/dist/commands/spaces/index.js +1 -6
- package/dist/commands/store/acquisitions/list.js +2 -1
- package/dist/commands/store/acquisitions/show.js +2 -1
- package/dist/commands/store/browse.js +4 -2
- package/dist/commands/store/install.d.ts +1 -0
- package/dist/commands/store/install.js +26 -2
- package/dist/commands/store/releases.js +4 -2
- package/dist/commands/store/show.js +3 -2
- package/dist/commands/store/tip.js +2 -2
- package/dist/commands/tasks/checkout.js +2 -3
- package/dist/commands/tasks/comments/add.js +3 -5
- package/dist/commands/tasks/complete.js +2 -3
- package/dist/commands/tasks/deliverable/add.d.ts +1 -1
- package/dist/commands/tasks/deliverable/add.js +4 -7
- package/dist/commands/tasks/expectations/assess.js +2 -2
- package/dist/commands/tasks/guide.d.ts +8 -0
- package/dist/commands/tasks/guide.js +23 -10
- package/dist/commands/tasks/report.js +9 -5
- package/dist/commands/tasks/resource/add.js +2 -3
- package/dist/commands/tasks/result/submit.js +2 -3
- package/dist/commands/tasks/resume/save.js +2 -3
- package/dist/commands/tasks/review.js +2 -3
- package/dist/commands/tasks/triage.js +2 -1
- package/dist/commands/tasks/updates/add.js +2 -3
- package/dist/generated/agent-guides.json +8312 -0
- package/dist/generated/managed-instruction-guides.json +1 -1
- package/dist/help.js +4 -3
- package/dist/hooks/command-not-found.js +1 -1
- package/dist/lib/action-listings.js +2 -1
- package/dist/lib/agent-guide-reference-gate.d.ts +28 -0
- package/dist/lib/agent-guide-reference-gate.js +186 -0
- package/dist/lib/agent-guides.d.ts +51 -0
- package/dist/lib/agent-guides.js +170 -0
- package/dist/lib/api-fetch.js +3 -1
- package/dist/lib/command-miss.d.ts +13 -2
- package/dist/lib/command-miss.js +134 -8
- package/dist/lib/guide-pointer.d.ts +15 -0
- package/dist/lib/guide-pointer.js +51 -0
- package/dist/lib/lookbackPlans.d.ts +3 -1
- package/dist/lib/lookbackPlans.js +9 -0
- package/dist/lib/node-adapter.js +4 -3
- package/dist/lib/outbox.d.ts +0 -14
- package/dist/lib/outbox.js +0 -21
- package/dist/lib/roles.d.ts +1 -1
- package/dist/lib/store-listing.d.ts +6 -1
- package/dist/lib/store-listing.js +6 -1
- package/dist/lib/task-admission.js +27 -5
- package/dist/lib/task-batch.d.ts +10 -7
- package/dist/lib/task-batch.js +5 -20
- package/dist/lib/task-operations.d.ts +8 -20
- package/dist/lib/task-operations.js +9 -94
- package/dist/lib/task-preflight.js +70 -33
- package/dist/lib/task-runtime-headers.d.ts +11 -0
- package/dist/lib/task-runtime-headers.js +73 -0
- package/dist/lib/task-write-attribution.js +1 -1
- package/dist/lib/usage-discovery.d.ts +4 -0
- package/dist/lib/usage-discovery.js +5 -0
- package/dist/lib/usd-micros.d.ts +27 -0
- package/dist/lib/usd-micros.js +67 -2
- package/dist/lib/voice-call-intent.js +3 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/harnessPermissionControls.d.ts +17 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/harnessPermissionControls.js +35 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/harnessPermissionControls.d.ts +17 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/harnessPermissionControls.js +44 -0
- package/dist/node_modules/@skrr-ai/auth-core/package.json +1 -1
- package/dist/node_modules/@skrr-ai/data-provider/index.js +11927 -11678
- package/oclif.manifest.json +251 -14
- package/package.json +4 -2
|
@@ -57,3 +57,47 @@ export function parseHarnessPermissionControls(value) {
|
|
|
57
57
|
return null;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
+
export function parseHarnessSessionPolicyReport(value) {
|
|
61
|
+
try {
|
|
62
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
63
|
+
return null;
|
|
64
|
+
const row = value;
|
|
65
|
+
if (row.version !== 1)
|
|
66
|
+
return null;
|
|
67
|
+
let configuredDefault = null;
|
|
68
|
+
let taskCommandApproval = null;
|
|
69
|
+
const config = row.configuredDefault;
|
|
70
|
+
if (config &&
|
|
71
|
+
typeof config === 'object' &&
|
|
72
|
+
!Array.isArray(config) &&
|
|
73
|
+
config.provider === 'claude' &&
|
|
74
|
+
['sdk', 'cli'].includes(config.engine) &&
|
|
75
|
+
['default', 'acceptEdits', 'plan', 'bypassPermissions'].includes(config.permissionMode)) {
|
|
76
|
+
configuredDefault = Object.freeze({
|
|
77
|
+
provider: 'claude',
|
|
78
|
+
engine: config.engine,
|
|
79
|
+
permissionMode: config.permissionMode,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
const approval = row.taskCommandApproval;
|
|
83
|
+
if (approval &&
|
|
84
|
+
typeof approval === 'object' &&
|
|
85
|
+
!Array.isArray(approval) &&
|
|
86
|
+
approval.protocol === 'task_command_once_v1' &&
|
|
87
|
+
Array.isArray(approval.adapters) &&
|
|
88
|
+
approval.adapters.length === 1 &&
|
|
89
|
+
approval.adapters[0]?.provider === 'claude' &&
|
|
90
|
+
approval.adapters[0]?.engine === 'sdk') {
|
|
91
|
+
taskCommandApproval = Object.freeze({
|
|
92
|
+
protocol: 'task_command_once_v1',
|
|
93
|
+
adapters: Object.freeze([
|
|
94
|
+
Object.freeze({ provider: 'claude', engine: 'sdk' }),
|
|
95
|
+
]),
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
return Object.freeze({ version: 1, configuredDefault, taskCommandApproval });
|
|
99
|
+
}
|
|
100
|
+
catch {
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
}
|