@skrr-ai/cli 0.1.150 → 0.1.151
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/README.md +20 -20
- package/dist/base-command.d.ts +6 -6
- package/dist/base-command.js +26 -26
- package/dist/commands/agenda/trigger/list.d.ts +1 -1
- package/dist/commands/agenda/trigger/list.js +6 -6
- package/dist/commands/agents/always-on/disable.js +10 -3
- package/dist/commands/agents/always-on/enable.js +1 -1
- package/dist/commands/agents/always-on/reconcile.js +1 -1
- package/dist/commands/agents/always-on/status.js +31 -8
- package/dist/commands/agents/create.d.ts +2 -2
- package/dist/commands/agents/create.js +12 -12
- package/dist/commands/agents/egress.js +1 -1
- package/dist/commands/agents/list.d.ts +1 -1
- package/dist/commands/agents/list.js +1 -1
- package/dist/commands/agents/roles/capture.d.ts +1 -1
- package/dist/commands/agents/roles/capture.js +2 -2
- package/dist/commands/agents/roles/install.js +1 -1
- package/dist/commands/agents/spawn.js +38 -38
- package/dist/commands/agents/update.d.ts +1 -1
- package/dist/commands/agents/update.js +3 -3
- package/dist/commands/code/jobs/show.js +1 -1
- package/dist/commands/compass/archive.d.ts +1 -1
- package/dist/commands/compass/archive.js +1 -1
- package/dist/commands/compass/create.js +1 -1
- package/dist/commands/compass/{commitments.d.ts → duties.d.ts} +5 -5
- package/dist/commands/compass/{commitments.js → duties.js} +14 -14
- package/dist/commands/compass/trace.d.ts +1 -1
- package/dist/commands/compass/trace.js +2 -2
- package/dist/commands/convos/messages.js +2 -1
- package/dist/commands/doctor.d.ts +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/{commitments → duties}/accounting.d.ts +7 -7
- package/dist/commands/{commitments → duties}/accounting.js +13 -13
- package/dist/commands/{commitments → duties}/action-history.d.ts +3 -3
- package/dist/commands/{commitments → duties}/action-history.js +12 -12
- package/dist/commands/{commitments → duties}/action-proposal.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposal.js +6 -6
- package/dist/commands/{commitments → duties}/action-proposals/decide.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposals/decide.js +8 -8
- package/dist/commands/{commitments → duties}/action-proposals/execute.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposals/execute.js +7 -7
- package/dist/commands/{commitments → duties}/action-proposals/propose.d.ts +4 -4
- package/dist/commands/{commitments → duties}/action-proposals/propose.js +15 -15
- package/dist/commands/{commitments → duties}/action-proposals.d.ts +1 -1
- package/dist/commands/{commitments → duties}/action-proposals.js +6 -6
- package/dist/commands/{commitments → duties}/analytics/detail.d.ts +5 -5
- package/dist/commands/{commitments → duties}/analytics/detail.js +13 -13
- package/dist/commands/{commitments → duties}/analytics/index.d.ts +5 -5
- package/dist/commands/{commitments → duties}/analytics/index.js +30 -30
- package/dist/commands/{commitments → duties}/analytics/replay.d.ts +3 -3
- package/dist/commands/{commitments → duties}/analytics/replay.js +11 -11
- package/dist/commands/{commitments → duties}/attach.d.ts +3 -3
- package/dist/commands/{commitments → duties}/attach.js +21 -21
- package/dist/commands/{commitments → duties}/bundle.d.ts +1 -1
- package/dist/commands/{commitments → duties}/bundle.js +7 -7
- package/dist/commands/{commitments → duties}/cadence-decisions.d.ts +3 -3
- package/dist/commands/duties/cadence-decisions.js +41 -0
- package/dist/commands/{commitments → duties}/cadence-requests/decide.d.ts +4 -4
- package/dist/commands/{commitments → duties}/cadence-requests/decide.js +11 -11
- package/dist/commands/{commitments → duties}/case.d.ts +2 -2
- package/dist/commands/{commitments → duties}/case.js +8 -8
- package/dist/commands/{commitments → duties}/cases.d.ts +2 -2
- package/dist/commands/{commitments → duties}/cases.js +9 -9
- package/dist/commands/{commitments → duties}/check-now.d.ts +6 -6
- package/dist/commands/{commitments → duties}/check-now.js +29 -29
- package/dist/commands/{commitments → duties}/checks.d.ts +3 -3
- package/dist/commands/{commitments → duties}/checks.js +13 -13
- package/dist/commands/{commitments → duties}/complete.d.ts +2 -2
- package/dist/commands/duties/complete.js +40 -0
- package/dist/commands/{commitments → duties}/control/apply.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/apply.js +7 -7
- package/dist/commands/{commitments → duties}/control/preview.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/preview.js +8 -8
- package/dist/commands/{commitments → duties}/control/show.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/show.js +6 -6
- package/dist/commands/{commitments → duties}/cost.d.ts +6 -6
- package/dist/commands/{commitments → duties}/cost.js +14 -14
- package/dist/commands/{commitments → duties}/create.d.ts +8 -8
- package/dist/commands/{commitments → duties}/create.js +92 -92
- package/dist/commands/{commitments → duties}/cycles.d.ts +2 -2
- package/dist/commands/{commitments → duties}/cycles.js +11 -11
- package/dist/commands/{commitments → duties}/decide-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/decide-remediation.js +6 -6
- package/dist/commands/{commitments → duties}/delete.d.ts +4 -4
- package/dist/commands/{commitments → duties}/delete.js +24 -24
- package/dist/commands/{commitments → duties}/delivery.d.ts +1 -1
- package/dist/commands/{commitments → duties}/delivery.js +15 -15
- package/dist/commands/{commitments → duties}/detach.d.ts +3 -3
- package/dist/commands/{commitments → duties}/detach.js +20 -20
- package/dist/commands/{commitments → duties}/doctor.d.ts +4 -4
- package/dist/commands/{commitments → duties}/doctor.js +21 -21
- package/dist/commands/{commitments → duties}/effective-policy.d.ts +3 -3
- package/dist/commands/{commitments → duties}/effective-policy.js +24 -24
- package/dist/commands/{commitments → duties}/endpoints/connect.d.ts +2 -2
- package/dist/commands/{commitments → duties}/endpoints/connect.js +10 -10
- package/dist/commands/{commitments → duties}/endpoints/create.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/create.js +16 -16
- package/dist/commands/{commitments → duties}/endpoints/delete.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/delete.js +11 -11
- package/dist/commands/{commitments → duties}/endpoints/health.d.ts +2 -2
- package/dist/commands/{commitments → duties}/endpoints/health.js +10 -10
- package/dist/commands/{commitments → duties}/endpoints/list.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/list.js +11 -11
- package/dist/commands/{commitments → duties}/endpoints/revoke.d.ts +4 -4
- package/dist/commands/{commitments → duties}/endpoints/revoke.js +13 -13
- package/dist/commands/{commitments → duties}/evaluations.d.ts +2 -2
- package/dist/commands/{commitments → duties}/evaluations.js +8 -8
- package/dist/commands/{commitments → duties}/execute-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/execute-remediation.js +7 -7
- package/dist/commands/{commitments → duties}/explain.d.ts +2 -2
- package/dist/commands/{commitments → duties}/explain.js +13 -13
- package/dist/commands/{commitments → duties}/export.d.ts +3 -3
- package/dist/commands/{commitments → duties}/export.js +15 -15
- package/dist/commands/{commitments → duties}/feedback.d.ts +4 -4
- package/dist/commands/{commitments → duties}/feedback.js +13 -13
- package/dist/commands/{commitments → duties}/fork.d.ts +3 -3
- package/dist/commands/{commitments → duties}/fork.js +11 -11
- package/dist/commands/{commitments → duties}/goals/link.d.ts +6 -6
- package/dist/commands/duties/goals/link.js +41 -0
- package/dist/commands/{commitments → duties}/goals/unlink.d.ts +4 -4
- package/dist/commands/duties/goals/unlink.js +37 -0
- package/dist/commands/{commitments → duties}/handover.d.ts +5 -5
- package/dist/commands/{commitments → duties}/handover.js +21 -21
- package/dist/commands/{commitments → duties}/hypotheses.d.ts +3 -3
- package/dist/commands/{commitments → duties}/hypotheses.js +13 -13
- package/dist/commands/{commitments → duties}/import.d.ts +2 -2
- package/dist/commands/{commitments → duties}/import.js +10 -10
- package/dist/commands/{commitments → duties}/ledger.d.ts +4 -4
- package/dist/commands/{commitments → duties}/ledger.js +12 -12
- package/dist/commands/{commitments → duties}/lineage.d.ts +5 -5
- package/dist/commands/duties/lineage.js +43 -0
- package/dist/commands/{commitments → duties}/links/create.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/create.js +9 -9
- package/dist/commands/{commitments → duties}/links/detach.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/detach.js +7 -7
- package/dist/commands/{commitments → duties}/links/list.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/list.js +9 -9
- package/dist/commands/{commitments → duties}/links/update.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/update.js +7 -7
- package/dist/commands/{commitments → duties}/list.d.ts +3 -3
- package/dist/commands/{commitments → duties}/list.js +17 -17
- package/dist/commands/{commitments → duties}/liveness.d.ts +6 -6
- package/dist/commands/{commitments → duties}/liveness.js +13 -13
- package/dist/commands/{commitments → duties}/metrics.d.ts +3 -3
- package/dist/commands/{commitments → duties}/metrics.js +12 -12
- package/dist/commands/{commitments → duties}/next-tick.d.ts +7 -7
- package/dist/commands/{commitments → duties}/next-tick.js +14 -14
- package/dist/commands/{commitments → duties}/observation/probe.d.ts +1 -1
- package/dist/commands/{commitments → duties}/observation/probe.js +12 -12
- package/dist/commands/{commitments → duties}/observation/summary.d.ts +1 -1
- package/dist/commands/{commitments → duties}/observation/summary.js +5 -5
- package/dist/commands/{commitments → duties}/observations.d.ts +4 -4
- package/dist/commands/{commitments → duties}/observations.js +18 -18
- package/dist/commands/{commitments → duties}/open.d.ts +1 -1
- package/dist/commands/{commitments → duties}/open.js +13 -13
- package/dist/commands/{commitments → duties}/operating-review.d.ts +5 -5
- package/dist/commands/{commitments → duties}/operating-review.js +21 -21
- package/dist/commands/{commitments → duties}/pack/activate.d.ts +1 -1
- package/dist/commands/{commitments → duties}/pack/activate.js +6 -6
- package/dist/commands/{commitments → duties}/pack/bind.d.ts +4 -4
- package/dist/commands/{commitments → duties}/pack/bind.js +19 -19
- package/dist/commands/{commitments → duties}/pack/list.d.ts +2 -2
- package/dist/commands/{commitments → duties}/pack/list.js +10 -10
- package/dist/commands/{commitments → duties}/pack/plan.d.ts +3 -3
- package/dist/commands/{commitments → duties}/pack/plan.js +12 -12
- package/dist/commands/{commitments → duties}/pack/preflight.d.ts +3 -3
- package/dist/commands/{commitments → duties}/pack/preflight.js +10 -10
- package/dist/commands/{commitments → duties}/patch.d.ts +1 -1
- package/dist/commands/{commitments → duties}/patch.js +7 -7
- package/dist/commands/{commitments → duties}/pause.d.ts +2 -2
- package/dist/commands/{commitments → duties}/pause.js +16 -16
- package/dist/commands/{commitments → duties}/plan.d.ts +4 -4
- package/dist/commands/{commitments → duties}/plan.js +20 -20
- package/dist/commands/{commitments → duties}/preflight.d.ts +8 -8
- package/dist/commands/{commitments → duties}/preflight.js +32 -32
- package/dist/commands/{commitments → duties}/propose-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/propose-remediation.js +6 -6
- package/dist/commands/{commitments → duties}/readiness/show.d.ts +1 -1
- package/dist/commands/{commitments → duties}/readiness/show.js +6 -6
- package/dist/commands/{commitments → duties}/readiness/verify.d.ts +1 -1
- package/dist/commands/{commitments → duties}/readiness/verify.js +7 -7
- package/dist/commands/{commitments → duties}/receipt-metrics.d.ts +4 -4
- package/dist/commands/{commitments → duties}/receipt-metrics.js +16 -16
- package/dist/commands/{commitments → duties}/receipt.d.ts +1 -1
- package/dist/commands/{commitments → duties}/receipt.js +10 -10
- package/dist/commands/{commitments → duties}/reflect.d.ts +4 -4
- package/dist/commands/{commitments → duties}/reflect.js +12 -12
- package/dist/commands/{commitments → duties}/reflection-decision.d.ts +2 -2
- package/dist/commands/{commitments → duties}/reflection-decision.js +7 -7
- package/dist/commands/{commitments → duties}/reflection.d.ts +2 -2
- package/dist/commands/{commitments → duties}/reflection.js +9 -9
- package/dist/commands/{commitments → duties}/remediate.d.ts +5 -5
- package/dist/commands/{commitments → duties}/remediate.js +14 -14
- package/dist/commands/{commitments → duties}/remediation-proposal.d.ts +2 -2
- package/dist/commands/{commitments → duties}/remediation-proposal.js +7 -7
- package/dist/commands/{commitments → duties}/remediation-proposals.d.ts +2 -2
- package/dist/commands/{commitments → duties}/remediation-proposals.js +8 -8
- package/dist/commands/{commitments → duties}/reports.d.ts +5 -5
- package/dist/commands/{commitments → duties}/reports.js +35 -35
- package/dist/commands/{commitments → duties}/restore.d.ts +2 -2
- package/dist/commands/duties/restore.js +46 -0
- package/dist/commands/{commitments → duties}/resume.d.ts +2 -2
- package/dist/commands/duties/resume.js +37 -0
- package/dist/commands/{commitments → duties}/roster.d.ts +2 -2
- package/dist/commands/duties/roster.js +39 -0
- package/dist/commands/{commitments → duties}/show.d.ts +7 -7
- package/dist/commands/{commitments → duties}/show.js +40 -40
- package/dist/commands/{commitments → duties}/status.d.ts +3 -3
- package/dist/commands/duties/status.js +41 -0
- package/dist/commands/{commitments → duties}/subject.d.ts +4 -4
- package/dist/commands/{commitments → duties}/subject.js +29 -29
- package/dist/commands/{commitments → duties}/trace.d.ts +3 -3
- package/dist/commands/{commitments → duties}/trace.js +12 -12
- package/dist/commands/{commitments → duties}/trigger-status.d.ts +6 -6
- package/dist/commands/{commitments → duties}/trigger-status.js +19 -19
- package/dist/commands/{commitments → duties}/update.d.ts +5 -5
- package/dist/commands/{commitments → duties}/update.js +64 -64
- package/dist/commands/{commitments → duties}/wake-capabilities.d.ts +6 -6
- package/dist/commands/{commitments → duties}/wake-capabilities.js +22 -22
- package/dist/commands/{commitments → duties}/work-plan.d.ts +1 -1
- package/dist/commands/{commitments → duties}/work-plan.js +6 -6
- package/dist/commands/goals/key-results/show.js +2 -1
- package/dist/commands/goals/plan-now.js +2 -2
- package/dist/commands/goals/planner-compare.d.ts +1 -1
- package/dist/commands/goals/planner-compare.js +2 -2
- package/dist/commands/grants/create.d.ts +1 -1
- package/dist/commands/grants/create.js +9 -9
- package/dist/commands/grants/list.d.ts +1 -1
- package/dist/commands/grants/list.js +2 -2
- package/dist/commands/initiatives/list.d.ts +1 -1
- package/dist/commands/initiatives/list.js +1 -1
- package/dist/commands/measures/create.d.ts +2 -2
- package/dist/commands/measures/create.js +4 -4
- package/dist/commands/measures/list.d.ts +1 -1
- package/dist/commands/measures/list.js +2 -2
- package/dist/commands/northstars/create.js +4 -4
- package/dist/commands/northstars/delete.d.ts +3 -3
- package/dist/commands/northstars/delete.js +8 -8
- package/dist/commands/northstars/governance/configure.js +15 -15
- package/dist/commands/northstars/intents/decide.d.ts +1 -1
- package/dist/commands/northstars/intents/decide.js +1 -1
- package/dist/commands/northstars/link.d.ts +4 -4
- package/dist/commands/northstars/link.js +8 -8
- package/dist/commands/northstars/list.d.ts +2 -2
- package/dist/commands/northstars/list.js +3 -3
- package/dist/commands/northstars/recommendations/apply.d.ts +1 -1
- package/dist/commands/northstars/recommendations/apply.js +2 -2
- package/dist/commands/northstars/review-now.js +2 -2
- package/dist/commands/northstars/show.d.ts +3 -3
- package/dist/commands/northstars/show.js +5 -5
- package/dist/commands/northstars/unlink.d.ts +3 -3
- package/dist/commands/northstars/unlink.js +6 -6
- package/dist/commands/northstars/update.js +3 -3
- package/dist/commands/proposals/list.d.ts +3 -3
- package/dist/commands/proposals/list.js +7 -7
- package/dist/commands/spaces/auto-executor/compare.js +1 -1
- package/dist/commands/spaces/auto-executor/runs.js +1 -1
- package/dist/commands/spaces/heartbeats/list.js +2 -2
- package/dist/commands/spaces/index.js +2 -2
- package/dist/commands/spaces/list.d.ts +1 -1
- package/dist/commands/spaces/list.js +1 -1
- package/dist/commands/spaces/loops/migrate.d.ts +1 -1
- package/dist/commands/spaces/loops/migrate.js +1 -1
- package/dist/commands/spaces/loops/release.d.ts +1 -1
- package/dist/commands/spaces/loops/release.js +10 -10
- package/dist/commands/spaces/notebook.d.ts +2 -2
- package/dist/commands/spaces/notebook.js +2 -2
- package/dist/commands/spaces/proposals/discard.js +1 -1
- package/dist/commands/spaces/proposals/keep.js +1 -1
- package/dist/commands/spaces/triggers/show.js +3 -3
- package/dist/commands/spaces/write-policy/set.js +1 -1
- package/dist/commands/store/uninstall.js +2 -2
- package/dist/commands/subscriptions/health.d.ts +2 -2
- package/dist/commands/subscriptions/health.js +2 -2
- package/dist/commands/subscriptions/status.js +2 -2
- package/dist/commands/subscriptions/subscribe.js +4 -4
- package/dist/commands/tasks/create.d.ts +20 -1
- package/dist/commands/tasks/create.js +44 -3
- package/dist/commands/tasks/list.d.ts +7 -1
- package/dist/commands/tasks/list.js +2 -1
- package/dist/generated/agent-guides.json +496 -496
- package/dist/generated/managed-instruction-guides.json +2 -2
- package/dist/hooks/command-not-found.d.ts +1 -1
- package/dist/hooks/command-not-found.js +1 -1
- package/dist/lib/agent-chat-start.js +2 -1
- package/dist/lib/agent-trigger-listing.d.ts +4 -4
- package/dist/lib/agent-trigger-listing.js +7 -7
- package/dist/lib/always-on-command-result.d.ts +8 -1
- package/dist/lib/always-on-command-result.js +11 -2
- package/dist/lib/auth-failure.js +1 -1
- package/dist/lib/capability-matrix.d.ts +3 -3
- package/dist/lib/capability-matrix.js +9 -9
- package/dist/lib/command-hygiene.js +6 -6
- package/dist/lib/command-miss.js +1 -1
- package/dist/lib/compass-refusals.d.ts +1 -1
- package/dist/lib/compass-refusals.js +1 -1
- package/dist/lib/compasses.d.ts +5 -5
- package/dist/lib/compasses.js +15 -15
- package/dist/lib/dedicated-machines.js +2 -1
- package/dist/lib/dedicated-power.js +2 -0
- package/dist/lib/{commitments.d.ts → duties.d.ts} +198 -198
- package/dist/lib/{commitments.js → duties.js} +282 -282
- package/dist/lib/{commitment-analytics.d.ts → duty-analytics.d.ts} +18 -18
- package/dist/lib/{commitment-analytics.js → duty-analytics.js} +12 -12
- package/dist/lib/{commitment-attention-copy.d.ts → duty-attention-copy.d.ts} +6 -6
- package/dist/lib/{commitment-attention-copy.js → duty-attention-copy.js} +8 -8
- package/dist/lib/{commitment-endpoints.d.ts → duty-endpoints.d.ts} +6 -6
- package/dist/lib/{commitment-endpoints.js → duty-endpoints.js} +10 -10
- package/dist/lib/{commitment-event-wakes.d.ts → duty-event-wakes.d.ts} +2 -2
- package/dist/lib/{commitment-event-wakes.js → duty-event-wakes.js} +2 -2
- package/dist/lib/{commitment-ledgers.js → duty-ledgers.js} +3 -3
- package/dist/lib/{commitment-loop-status.d.ts → duty-loop-status.d.ts} +11 -11
- package/dist/lib/{commitment-loop-status.js → duty-loop-status.js} +22 -22
- package/dist/lib/{commitment-product.d.ts → duty-product.d.ts} +6 -6
- package/dist/lib/{commitment-product.js → duty-product.js} +5 -5
- package/dist/lib/{commitment-terms.d.ts → duty-terms.d.ts} +9 -9
- package/dist/lib/{commitment-terms.js → duty-terms.js} +21 -21
- package/dist/lib/entity-open.d.ts +1 -1
- package/dist/lib/entity-open.js +1 -1
- package/dist/lib/format.d.ts +1 -1
- package/dist/lib/grants.d.ts +3 -3
- package/dist/lib/grants.js +2 -2
- package/dist/lib/initiatives.js +4 -4
- package/dist/lib/node-adapter.js +1 -1
- package/dist/lib/northstars.d.ts +13 -13
- package/dist/lib/northstars.js +56 -56
- package/dist/lib/open-target.js +1 -1
- package/dist/lib/preflight-copy.js +5 -5
- package/dist/lib/proactiveApi.d.ts +4 -4
- package/dist/lib/proposals.js +16 -16
- package/dist/lib/responsibility-controls.d.ts +1 -1
- package/dist/lib/responsibility-controls.js +6 -6
- package/dist/lib/roles.d.ts +1 -1
- package/dist/lib/schedule.d.ts +5 -5
- package/dist/lib/schedule.js +1 -1
- package/dist/lib/session-task-write.d.ts +1 -1
- package/dist/lib/session-task-write.js +2 -2
- package/dist/lib/space-loop-migration.js +6 -6
- package/dist/lib/space-notebook.js +2 -2
- package/dist/lib/space-write-policy.js +2 -2
- package/dist/lib/stewardship-output.js +2 -2
- package/dist/lib/task-spec-verification.js +1 -1
- package/dist/lib/tasks.d.ts +1 -1
- package/dist/lib/tasks.js +8 -8
- package/dist/lib/triggers.d.ts +3 -3
- package/dist/lib/triggers.js +11 -10
- package/dist/lib/usage-discovery.js +2 -4
- package/dist/lib/web-url.d.ts +6 -6
- package/dist/lib/web-url.js +13 -13
- package/dist/lib/workspaces.d.ts +4 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.js → dutyExecutionContract.js} +22 -22
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceipt.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceiptV2.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.d.ts +9 -9
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.js +5 -5
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.d.ts +2 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +4 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.js → dutyExecutionContract.js} +16 -16
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceipt.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceiptV2.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/profilePorts.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.d.ts +9 -9
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.js +8 -8
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.d.ts +2 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.js +6 -6
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/package.json +6 -6
- package/dist/node_modules/@skrr-ai/data-provider/index.js +8150 -8140
- package/docs/v1/lookback-plans.md +1 -1
- package/oclif.manifest.json +5337 -5337
- package/package.json +16 -16
- package/dist/commands/commitments/cadence-decisions.js +0 -41
- package/dist/commands/commitments/complete.js +0 -40
- package/dist/commands/commitments/goals/link.js +0 -41
- package/dist/commands/commitments/goals/unlink.js +0 -37
- package/dist/commands/commitments/lineage.js +0 -43
- package/dist/commands/commitments/restore.js +0 -46
- package/dist/commands/commitments/resume.js +0 -37
- package/dist/commands/commitments/roster.js +0 -39
- package/dist/commands/commitments/status.js +0 -41
- /package/dist/lib/{commitment-ledgers.d.ts → duty-ledgers.d.ts} +0 -0
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const core_1 = require("@oclif/core");
|
|
4
4
|
const base_command_1 = require("../../../base-command");
|
|
5
|
-
const
|
|
6
|
-
class
|
|
5
|
+
const duties_1 = require("../../../lib/duties");
|
|
6
|
+
class DutyPackActivate extends base_command_1.BaseCommand {
|
|
7
7
|
static description = 'Activate a prepared Pack with the Agent permissions';
|
|
8
8
|
static args = { id: core_1.Args.string({ required: true, ignoreStdin: true }) };
|
|
9
9
|
static flags = { json: core_1.Flags.boolean() };
|
|
10
10
|
async run() {
|
|
11
11
|
this.requireAuth();
|
|
12
|
-
const { args, flags } = await this.parse(
|
|
12
|
+
const { args, flags } = await this.parse(DutyPackActivate);
|
|
13
13
|
try {
|
|
14
|
-
const result = await
|
|
15
|
-
this.log(flags.json ? JSON.stringify(result, null, 2) : `Pack active: ${result.
|
|
14
|
+
const result = await duties_1.dutyPackApi.activate(args.id);
|
|
15
|
+
this.log(flags.json ? JSON.stringify(result, null, 2) : `Pack active: ${result.duty.id}`);
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
18
|
this.handleApiError(error);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
exports.default =
|
|
22
|
+
exports.default = DutyPackActivate;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { BaseCommand } from '../../../base-command';
|
|
2
2
|
/**
|
|
3
|
-
* Create the
|
|
3
|
+
* Create the Duty a Pack describes.
|
|
4
4
|
*
|
|
5
5
|
* Binding is idempotent by design — the API answers 200 with `reused: true`
|
|
6
6
|
* rather than minting a second draft, because a retried bind used to leave
|
|
7
|
-
* duplicate
|
|
7
|
+
* duplicate Duties behind (OSK-5763).
|
|
8
8
|
*
|
|
9
9
|
* `--space` binds the Pack into a Space as that Space's loop: held by the
|
|
10
10
|
* Space's lead unless `--agent` names another member, owned by the person
|
|
11
11
|
* binding, who must be the Space's execution-principal user and hold SHARE on
|
|
12
12
|
* it. The server refuses, and writes nothing, when the Space cannot take it.
|
|
13
13
|
*/
|
|
14
|
-
export default class
|
|
14
|
+
export default class DutiesPackBind extends BaseCommand {
|
|
15
15
|
static description: string;
|
|
16
16
|
static examples: string[];
|
|
17
17
|
static flags: {
|
|
@@ -32,7 +32,7 @@ export default class CommitmentsPackBind extends BaseCommand {
|
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* The Space knowledge default a loop's home link reports
|
|
35
|
-
* (`
|
|
35
|
+
* (`DutySpaceLoop.KNOWLEDGE_DEFAULT_OUTCOMES`), in words. Empty for an
|
|
36
36
|
* outcome this CLI does not know, rather than a guess.
|
|
37
37
|
*/
|
|
38
38
|
export declare function describeKnowledgeDefault(scope: {
|
|
@@ -3,38 +3,38 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.describeKnowledgeDefault = describeKnowledgeDefault;
|
|
4
4
|
const core_1 = require("@oclif/core");
|
|
5
5
|
const base_command_1 = require("../../../base-command");
|
|
6
|
-
const
|
|
6
|
+
const duties_1 = require("../../../lib/duties");
|
|
7
7
|
const web_url_1 = require("../../../lib/web-url");
|
|
8
8
|
/**
|
|
9
|
-
* Create the
|
|
9
|
+
* Create the Duty a Pack describes.
|
|
10
10
|
*
|
|
11
11
|
* Binding is idempotent by design — the API answers 200 with `reused: true`
|
|
12
12
|
* rather than minting a second draft, because a retried bind used to leave
|
|
13
|
-
* duplicate
|
|
13
|
+
* duplicate Duties behind (OSK-5763).
|
|
14
14
|
*
|
|
15
15
|
* `--space` binds the Pack into a Space as that Space's loop: held by the
|
|
16
16
|
* Space's lead unless `--agent` names another member, owned by the person
|
|
17
17
|
* binding, who must be the Space's execution-principal user and hold SHARE on
|
|
18
18
|
* it. The server refuses, and writes nothing, when the Space cannot take it.
|
|
19
19
|
*/
|
|
20
|
-
class
|
|
21
|
-
static description = 'Create the
|
|
20
|
+
class DutiesPackBind extends base_command_1.BaseCommand {
|
|
21
|
+
static description = 'Create the Duty a Pack describes (idempotent)';
|
|
22
22
|
static examples = [
|
|
23
|
-
'<%= config.bin %>
|
|
24
|
-
'<%= config.bin %>
|
|
25
|
-
'<%= config.bin %>
|
|
23
|
+
'<%= config.bin %> duties pack bind --pack pr_ci_guardian --agent <agent-id> --repository owner/repo --required-check "Pipeline Summary" --installation-id 155117997',
|
|
24
|
+
'<%= config.bin %> duties pack bind --pack <pack-id> --space <space-id>',
|
|
25
|
+
'<%= config.bin %> duties pack bind --pack goal_advance --space <space-id> --goal <goal-id> --interval-minutes 1440',
|
|
26
26
|
];
|
|
27
27
|
static flags = {
|
|
28
28
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
29
29
|
pack: core_1.Flags.string({
|
|
30
|
-
description: 'Pack id (see `skrr
|
|
30
|
+
description: 'Pack id (see `skrr duties pack list`)',
|
|
31
31
|
required: true,
|
|
32
32
|
}),
|
|
33
33
|
'pack-version': core_1.Flags.string({
|
|
34
34
|
description: 'Pack version (defaults to the latest installed)',
|
|
35
35
|
}),
|
|
36
36
|
agent: core_1.Flags.string({
|
|
37
|
-
description: 'Agent ID that will hold the
|
|
37
|
+
description: 'Agent ID that will hold the Duty (with --space, defaults to the Space lead)',
|
|
38
38
|
}),
|
|
39
39
|
space: core_1.Flags.string({
|
|
40
40
|
description: "Space ID to bind the Pack into as that Space's loop (you must be its execution-principal user)",
|
|
@@ -65,7 +65,7 @@ class CommitmentsPackBind extends base_command_1.BaseCommand {
|
|
|
65
65
|
};
|
|
66
66
|
async run() {
|
|
67
67
|
this.requireAuth();
|
|
68
|
-
const { flags } = await this.parse(
|
|
68
|
+
const { flags } = await this.parse(DutiesPackBind);
|
|
69
69
|
const requiredChecks = (flags['required-check'] ?? []).map((c) => c.trim()).filter(Boolean);
|
|
70
70
|
const grants = (flags.grant ?? []).map((g) => g.trim()).filter(Boolean);
|
|
71
71
|
if (!flags.agent && !flags.space) {
|
|
@@ -82,7 +82,7 @@ class CommitmentsPackBind extends base_command_1.BaseCommand {
|
|
|
82
82
|
}
|
|
83
83
|
let result;
|
|
84
84
|
try {
|
|
85
|
-
result = await
|
|
85
|
+
result = await duties_1.dutyPackApi.bind({
|
|
86
86
|
packId: flags.pack,
|
|
87
87
|
...(flags['pack-version'] ? { version: flags['pack-version'] } : {}),
|
|
88
88
|
...(flags.agent ? { agentId: flags.agent } : {}),
|
|
@@ -101,10 +101,10 @@ class CommitmentsPackBind extends base_command_1.BaseCommand {
|
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
if (flags.json) {
|
|
104
|
-
this.log(JSON.stringify((0, web_url_1.
|
|
104
|
+
this.log(JSON.stringify((0, web_url_1.withDutyUrl)(this.cliConfig.baseURL, result), null, 2));
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
|
-
this.log(`${result.reused ? 'Reused existing' : 'Created'}
|
|
107
|
+
this.log(`${result.reused ? 'Reused existing' : 'Created'} duty ${result.duty?.id} from ${result.pack?.id ?? result.plan?.pack?.id}@${result.pack?.version ?? result.plan?.pack?.version}`);
|
|
108
108
|
const loop = result.spaceLoop;
|
|
109
109
|
if (loop) {
|
|
110
110
|
const holder = loop.holder === 'space_lead' ? ' (the Space lead)' : '';
|
|
@@ -116,18 +116,18 @@ class CommitmentsPackBind extends base_command_1.BaseCommand {
|
|
|
116
116
|
for (const link of result.workLinks ?? []) {
|
|
117
117
|
this.log(`Linked ${link.targetType} ${link.targetId} (${link.roles.join(', ')})`);
|
|
118
118
|
}
|
|
119
|
-
const { url } = (0, web_url_1.
|
|
120
|
-
id: result.
|
|
119
|
+
const { url } = (0, web_url_1.withDutyUrl)(this.cliConfig.baseURL, {
|
|
120
|
+
id: result.duty?.id,
|
|
121
121
|
});
|
|
122
122
|
if (url)
|
|
123
123
|
this.log(`URL: ${url}`);
|
|
124
|
-
this.log('\nNext: `skrr
|
|
124
|
+
this.log('\nNext: `skrr duties pack preflight <id>`, then `pack activate`.');
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
exports.default =
|
|
127
|
+
exports.default = DutiesPackBind;
|
|
128
128
|
/**
|
|
129
129
|
* The Space knowledge default a loop's home link reports
|
|
130
|
-
* (`
|
|
130
|
+
* (`DutySpaceLoop.KNOWLEDGE_DEFAULT_OUTCOMES`), in words. Empty for an
|
|
131
131
|
* outcome this CLI does not know, rather than a guess.
|
|
132
132
|
*/
|
|
133
133
|
function describeKnowledgeDefault(scope) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseCommand } from '../../../base-command';
|
|
2
2
|
/**
|
|
3
3
|
* The installed Pack catalogue. Read-only, and the only pack command that needs
|
|
4
|
-
* no
|
|
4
|
+
* no duty — `plan` and `bind` both take a packId from here.
|
|
5
5
|
*/
|
|
6
|
-
export default class
|
|
6
|
+
export default class DutiesPackList extends BaseCommand {
|
|
7
7
|
static description: string;
|
|
8
8
|
static examples: string[];
|
|
9
9
|
static flags: {
|
|
@@ -3,27 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const list_output_1 = require("../../../lib/list-output");
|
|
4
4
|
const core_1 = require("@oclif/core");
|
|
5
5
|
const base_command_1 = require("../../../base-command");
|
|
6
|
-
const
|
|
6
|
+
const duties_1 = require("../../../lib/duties");
|
|
7
7
|
const format_1 = require("../../../lib/format");
|
|
8
8
|
/**
|
|
9
9
|
* The installed Pack catalogue. Read-only, and the only pack command that needs
|
|
10
|
-
* no
|
|
10
|
+
* no duty — `plan` and `bind` both take a packId from here.
|
|
11
11
|
*/
|
|
12
|
-
class
|
|
13
|
-
static description = 'List the
|
|
12
|
+
class DutiesPackList extends base_command_1.BaseCommand {
|
|
13
|
+
static description = 'List the Duty Packs this deployment has installed';
|
|
14
14
|
static examples = [
|
|
15
|
-
'<%= config.bin %>
|
|
16
|
-
'<%= config.bin %>
|
|
15
|
+
'<%= config.bin %> duties pack list',
|
|
16
|
+
'<%= config.bin %> duties pack list --json',
|
|
17
17
|
];
|
|
18
18
|
static flags = {
|
|
19
19
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
20
20
|
};
|
|
21
21
|
async run() {
|
|
22
22
|
this.requireAuth();
|
|
23
|
-
const { flags } = await this.parse(
|
|
23
|
+
const { flags } = await this.parse(DutiesPackList);
|
|
24
24
|
let result;
|
|
25
25
|
try {
|
|
26
|
-
result = await
|
|
26
|
+
result = await duties_1.dutyPackApi.list();
|
|
27
27
|
}
|
|
28
28
|
catch (err) {
|
|
29
29
|
this.handleApiError(err);
|
|
@@ -35,7 +35,7 @@ class CommitmentsPackList extends base_command_1.BaseCommand {
|
|
|
35
35
|
}
|
|
36
36
|
const rows = result.data || [];
|
|
37
37
|
if (!rows.length) {
|
|
38
|
-
this.log('No
|
|
38
|
+
this.log('No Duty Packs are installed.');
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
41
|
(0, format_1.renderTable)(rows.map((pack) => ({
|
|
@@ -51,4 +51,4 @@ class CommitmentsPackList extends base_command_1.BaseCommand {
|
|
|
51
51
|
], (line) => this.log(line));
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
exports.default =
|
|
54
|
+
exports.default = DutiesPackList;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseCommand } from '../../../base-command';
|
|
2
|
-
import { type
|
|
2
|
+
import { type DutyPackPlanResponse } from '../../../lib/duties';
|
|
3
3
|
/**
|
|
4
4
|
* Lines for what the plan says will stop the loop from ever being activated. `bind` would still
|
|
5
5
|
* write a draft, so a reader who sees only "Nothing was created" must also see this.
|
|
6
6
|
*/
|
|
7
|
-
export declare function formatReadiness(readiness:
|
|
7
|
+
export declare function formatReadiness(readiness: DutyPackPlanResponse['readiness']): string[];
|
|
8
8
|
/**
|
|
9
9
|
* Draft what a Pack WOULD create, without creating it.
|
|
10
10
|
*
|
|
@@ -12,7 +12,7 @@ export declare function formatReadiness(readiness: CommitmentPackPlanResponse['r
|
|
|
12
12
|
* gets created is the thing that was reviewed, rather than whatever the
|
|
13
13
|
* registry happens to produce a moment later.
|
|
14
14
|
*/
|
|
15
|
-
export default class
|
|
15
|
+
export default class DutiesPackPlan extends BaseCommand {
|
|
16
16
|
static description: string;
|
|
17
17
|
static examples: string[];
|
|
18
18
|
static flags: {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.formatReadiness = formatReadiness;
|
|
4
4
|
const core_1 = require("@oclif/core");
|
|
5
5
|
const base_command_1 = require("../../../base-command");
|
|
6
|
-
const
|
|
6
|
+
const duties_1 = require("../../../lib/duties");
|
|
7
7
|
/**
|
|
8
8
|
* Lines for what the plan says will stop the loop from ever being activated. `bind` would still
|
|
9
9
|
* write a draft, so a reader who sees only "Nothing was created" must also see this.
|
|
@@ -27,24 +27,24 @@ function formatReadiness(readiness) {
|
|
|
27
27
|
* gets created is the thing that was reviewed, rather than whatever the
|
|
28
28
|
* registry happens to produce a moment later.
|
|
29
29
|
*/
|
|
30
|
-
class
|
|
31
|
-
static description = 'Draft the
|
|
30
|
+
class DutiesPackPlan extends base_command_1.BaseCommand {
|
|
31
|
+
static description = 'Draft the Duty a Pack would create, without creating it (read-only)';
|
|
32
32
|
static examples = [
|
|
33
|
-
'<%= config.bin %>
|
|
34
|
-
'<%= config.bin %>
|
|
35
|
-
'<%= config.bin %>
|
|
33
|
+
'<%= config.bin %> duties pack plan --pack pr_ci_guardian --agent <agent-id> --repository owner/repo --required-check "Pipeline Summary"',
|
|
34
|
+
'<%= config.bin %> duties pack plan --pack <pack-id> --space <space-id>',
|
|
35
|
+
'<%= config.bin %> duties pack plan --pack goal_advance --space <space-id> --goal <goal-id>',
|
|
36
36
|
];
|
|
37
37
|
static flags = {
|
|
38
38
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
39
39
|
pack: core_1.Flags.string({
|
|
40
|
-
description: 'Pack id (see `skrr
|
|
40
|
+
description: 'Pack id (see `skrr duties pack list`)',
|
|
41
41
|
required: true,
|
|
42
42
|
}),
|
|
43
43
|
'pack-version': core_1.Flags.string({
|
|
44
44
|
description: 'Pack version (defaults to the latest installed)',
|
|
45
45
|
}),
|
|
46
46
|
agent: core_1.Flags.string({
|
|
47
|
-
description: 'Agent ID that will hold the
|
|
47
|
+
description: 'Agent ID that will hold the Duty (with --space, defaults to the Space lead)',
|
|
48
48
|
}),
|
|
49
49
|
space: core_1.Flags.string({
|
|
50
50
|
description: "Space ID to bind the Pack into as that Space's loop",
|
|
@@ -66,7 +66,7 @@ class CommitmentsPackPlan extends base_command_1.BaseCommand {
|
|
|
66
66
|
};
|
|
67
67
|
async run() {
|
|
68
68
|
this.requireAuth();
|
|
69
|
-
const { flags } = await this.parse(
|
|
69
|
+
const { flags } = await this.parse(DutiesPackPlan);
|
|
70
70
|
// Check NAMES are free text and legitimately contain commas, so they are
|
|
71
71
|
// never comma-split the way an id list would be.
|
|
72
72
|
const requiredChecks = (flags['required-check'] ?? []).map((c) => c.trim()).filter(Boolean);
|
|
@@ -77,7 +77,7 @@ class CommitmentsPackPlan extends base_command_1.BaseCommand {
|
|
|
77
77
|
}
|
|
78
78
|
let result;
|
|
79
79
|
try {
|
|
80
|
-
result = await
|
|
80
|
+
result = await duties_1.dutyPackApi.plan({
|
|
81
81
|
packId: flags.pack,
|
|
82
82
|
...(flags['pack-version'] ? { version: flags['pack-version'] } : {}),
|
|
83
83
|
...(flags.agent ? { agentId: flags.agent } : {}),
|
|
@@ -106,7 +106,7 @@ class CommitmentsPackPlan extends base_command_1.BaseCommand {
|
|
|
106
106
|
}
|
|
107
107
|
for (const line of formatReadiness(result.readiness))
|
|
108
108
|
this.log(line);
|
|
109
|
-
this.log('\nNothing was created. Pass this digest to `skrr
|
|
109
|
+
this.log('\nNothing was created. Pass this digest to `skrr duties pack bind --plan-digest`.');
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
exports.default =
|
|
112
|
+
exports.default = DutiesPackPlan;
|
|
@@ -2,8 +2,8 @@ import { BaseCommand } from '../../../base-command';
|
|
|
2
2
|
/**
|
|
3
3
|
* Re-run a bound Pack's readiness probe and REWRITE its stored receipt.
|
|
4
4
|
*
|
|
5
|
-
* This is not the same command as `skrr
|
|
6
|
-
* read-only dry run of the generic
|
|
5
|
+
* This is not the same command as `skrr duties preflight`. That one is a
|
|
6
|
+
* read-only dry run of the generic duty gates. This one additionally runs
|
|
7
7
|
* the Pack's own adapter probes — for PR/CI Guardian, the bounded GitHub check
|
|
8
8
|
* topology scan that proves each configured required check is discoverable —
|
|
9
9
|
* and PERSISTS the verdict to `pack.lastPreflight`.
|
|
@@ -14,7 +14,7 @@ import { BaseCommand } from '../../../base-command';
|
|
|
14
14
|
* Run) stays fenced even after the config is corrected, until something re-runs
|
|
15
15
|
* the probe. Until now only the web app could.
|
|
16
16
|
*/
|
|
17
|
-
export default class
|
|
17
|
+
export default class DutiesPackPreflight extends BaseCommand {
|
|
18
18
|
static description: string;
|
|
19
19
|
static examples: string[];
|
|
20
20
|
static args: {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const core_1 = require("@oclif/core");
|
|
4
4
|
const base_command_1 = require("../../../base-command");
|
|
5
|
-
const
|
|
5
|
+
const duties_1 = require("../../../lib/duties");
|
|
6
6
|
const preflight_1 = require("../preflight");
|
|
7
7
|
const RUN_RE = /_/g;
|
|
8
8
|
/**
|
|
9
9
|
* Re-run a bound Pack's readiness probe and REWRITE its stored receipt.
|
|
10
10
|
*
|
|
11
|
-
* This is not the same command as `skrr
|
|
12
|
-
* read-only dry run of the generic
|
|
11
|
+
* This is not the same command as `skrr duties preflight`. That one is a
|
|
12
|
+
* read-only dry run of the generic duty gates. This one additionally runs
|
|
13
13
|
* the Pack's own adapter probes — for PR/CI Guardian, the bounded GitHub check
|
|
14
14
|
* topology scan that proves each configured required check is discoverable —
|
|
15
15
|
* and PERSISTS the verdict to `pack.lastPreflight`.
|
|
@@ -20,14 +20,14 @@ const RUN_RE = /_/g;
|
|
|
20
20
|
* Run) stays fenced even after the config is corrected, until something re-runs
|
|
21
21
|
* the probe. Until now only the web app could.
|
|
22
22
|
*/
|
|
23
|
-
class
|
|
23
|
+
class DutiesPackPreflight extends base_command_1.BaseCommand {
|
|
24
24
|
static description = "Re-run a bound Pack's adapter readiness probe and refresh its stored preflight verdict";
|
|
25
25
|
static examples = [
|
|
26
|
-
'<%= config.bin %>
|
|
27
|
-
'<%= config.bin %>
|
|
26
|
+
'<%= config.bin %> duties pack preflight <duty-id>',
|
|
27
|
+
'<%= config.bin %> duties pack preflight <duty-id> --json',
|
|
28
28
|
];
|
|
29
29
|
static args = {
|
|
30
|
-
id: core_1.Args.string({ description: '
|
|
30
|
+
id: core_1.Args.string({ description: 'Duty ID', required: true, ignoreStdin: true }),
|
|
31
31
|
};
|
|
32
32
|
static flags = {
|
|
33
33
|
json: core_1.Flags.boolean({ description: 'Output the complete pack preflight report as JSON' }),
|
|
@@ -35,13 +35,13 @@ class CommitmentsPackPreflight extends base_command_1.BaseCommand {
|
|
|
35
35
|
};
|
|
36
36
|
async run() {
|
|
37
37
|
this.requireAuth();
|
|
38
|
-
const { args, flags } = await this.parse(
|
|
38
|
+
const { args, flags } = await this.parse(DutiesPackPreflight);
|
|
39
39
|
if (flags.next != null && (flags.next < 1 || flags.next > 10)) {
|
|
40
40
|
this.error('--next must be between 1 and 10', { exit: 1 });
|
|
41
41
|
}
|
|
42
42
|
let result;
|
|
43
43
|
try {
|
|
44
|
-
result = await
|
|
44
|
+
result = await duties_1.dutyPackApi.preflight(args.id, flags.next);
|
|
45
45
|
}
|
|
46
46
|
catch (err) {
|
|
47
47
|
this.handleApiError(err);
|
|
@@ -83,4 +83,4 @@ class CommitmentsPackPreflight extends base_command_1.BaseCommand {
|
|
|
83
83
|
process.exitCode = 1;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
exports.default =
|
|
86
|
+
exports.default = DutiesPackPreflight;
|
|
@@ -5,11 +5,11 @@ const node_crypto_1 = require("node:crypto");
|
|
|
5
5
|
const node_fs_1 = require("node:fs");
|
|
6
6
|
const node_path_1 = require("node:path");
|
|
7
7
|
const base_command_1 = require("../../base-command");
|
|
8
|
-
const
|
|
9
|
-
class
|
|
10
|
-
static description = 'Download the durable patch retained by a
|
|
8
|
+
const duties_1 = require("../../lib/duties");
|
|
9
|
+
class DutiesPatch extends base_command_1.BaseCommand {
|
|
10
|
+
static description = 'Download the durable patch retained by a Duty delivery Task';
|
|
11
11
|
static examples = [
|
|
12
|
-
'<%= config.bin %>
|
|
12
|
+
'<%= config.bin %> duties patch <id> --task <task-id> --output remediation.patch',
|
|
13
13
|
];
|
|
14
14
|
static args = { id: core_1.Args.string({ required: true, ignoreStdin: true }) };
|
|
15
15
|
static flags = {
|
|
@@ -24,9 +24,9 @@ class CommitmentsPatch extends base_command_1.BaseCommand {
|
|
|
24
24
|
};
|
|
25
25
|
async run() {
|
|
26
26
|
this.requireAuth();
|
|
27
|
-
const { args, flags } = await this.parse(
|
|
27
|
+
const { args, flags } = await this.parse(DutiesPatch);
|
|
28
28
|
try {
|
|
29
|
-
const result = await
|
|
29
|
+
const result = await duties_1.dutyApi.deliveryPatch(args.id, flags.task);
|
|
30
30
|
const content = result.patch.content;
|
|
31
31
|
if ((0, node_crypto_1.createHash)('sha256').update(content).digest('hex') !== result.patch.sha256 ||
|
|
32
32
|
Buffer.byteLength(content, 'utf8') !== result.patch.bytes) {
|
|
@@ -48,4 +48,4 @@ class CommitmentsPatch extends base_command_1.BaseCommand {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
exports.default =
|
|
51
|
+
exports.default = DutiesPatch;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
/**
|
|
3
|
-
* `skrr
|
|
3
|
+
* `skrr duties pause <id>` — stop the control loop without losing the
|
|
4
4
|
* contract or its history. An already executing turn may continue.
|
|
5
5
|
*/
|
|
6
|
-
export default class
|
|
6
|
+
export default class DutiesPause extends BaseCommand {
|
|
7
7
|
static description: string;
|
|
8
8
|
static examples: string[];
|
|
9
9
|
static args: {
|
|
@@ -3,47 +3,47 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const core_1 = require("@oclif/core");
|
|
4
4
|
const base_command_1 = require("../../base-command");
|
|
5
5
|
const web_url_1 = require("../../lib/web-url");
|
|
6
|
-
const
|
|
6
|
+
const duties_1 = require("../../lib/duties");
|
|
7
7
|
/**
|
|
8
|
-
* `skrr
|
|
8
|
+
* `skrr duties pause <id>` — stop the control loop without losing the
|
|
9
9
|
* contract or its history. An already executing turn may continue.
|
|
10
10
|
*/
|
|
11
|
-
class
|
|
12
|
-
static description = 'Pause a
|
|
13
|
-
static examples = ['<%= config.bin %>
|
|
11
|
+
class DutiesPause extends base_command_1.BaseCommand {
|
|
12
|
+
static description = 'Pause a duty — stops new work; a turn already running may continue until it finishes or reaches its deadline';
|
|
13
|
+
static examples = ['<%= config.bin %> duties pause <duty-id>'];
|
|
14
14
|
static args = {
|
|
15
|
-
id: core_1.Args.string({ description: '
|
|
15
|
+
id: core_1.Args.string({ description: 'Duty ID', required: true, ignoreStdin: true }),
|
|
16
16
|
};
|
|
17
17
|
static flags = { json: core_1.Flags.boolean({ description: 'Output as JSON' }) };
|
|
18
18
|
async run() {
|
|
19
19
|
this.requireAuth();
|
|
20
|
-
const { args, flags } = await this.parse(
|
|
21
|
-
let
|
|
20
|
+
const { args, flags } = await this.parse(DutiesPause);
|
|
21
|
+
let duty;
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
duty = await duties_1.dutyApi.pause(args.id);
|
|
24
24
|
}
|
|
25
25
|
catch (err) {
|
|
26
26
|
this.handleApiError(err);
|
|
27
27
|
}
|
|
28
28
|
if (flags.json) {
|
|
29
|
-
this.log(JSON.stringify((0, web_url_1.
|
|
29
|
+
this.log(JSON.stringify((0, web_url_1.withDutyUrl)(this.cliConfig.baseURL, duty), null, 2));
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
|
-
this.log(`Paused
|
|
32
|
+
this.log(`Paused duty ${args.id}.`);
|
|
33
33
|
this.log('Stops new work. A turn already running may continue until it finishes or reaches its deadline.');
|
|
34
34
|
// The status write is the fence and it has landed. The teardown of the
|
|
35
35
|
// wake tree behind it is best-effort, and used to be silent — so a pause
|
|
36
36
|
// that left triggers live looked exactly like one that did not. Say which
|
|
37
37
|
// happened; a reconciler will converge the degraded case, but a person
|
|
38
38
|
// deciding whether they are really stopped should not have to assume it.
|
|
39
|
-
const teardown =
|
|
39
|
+
const teardown = duty
|
|
40
40
|
.teardown;
|
|
41
41
|
if (teardown?.status === 'degraded') {
|
|
42
42
|
this.warn('The control loop is stopped, but some scheduled wakes may not have been retired yet. ' +
|
|
43
|
-
'They cannot start new work — every wake is refused while this
|
|
44
|
-
`and the reconciler retries automatically. Check with: skrr
|
|
43
|
+
'They cannot start new work — every wake is refused while this Duty is paused — ' +
|
|
44
|
+
`and the reconciler retries automatically. Check with: skrr duties trigger-status ${args.id}`);
|
|
45
45
|
}
|
|
46
|
-
(0,
|
|
46
|
+
(0, duties_1.renderDutySummary)(duty, (line) => this.log(line));
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
exports.default =
|
|
49
|
+
exports.default = DutiesPause;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
/**
|
|
3
|
-
* `skrr
|
|
3
|
+
* `skrr duties plan` — draft a duty contract from one sentence.
|
|
4
4
|
*
|
|
5
5
|
* READ-ONLY: the planner proposes a clamped, create-shaped contract and writes
|
|
6
6
|
* nothing. Review the proposal, then apply it — `create --from-json` unwraps this
|
|
7
7
|
* command's envelope and strips non-create keys, so the pipe works unedited:
|
|
8
8
|
*
|
|
9
|
-
* skrr
|
|
10
|
-
* skrr
|
|
9
|
+
* skrr duties plan --agent <id> --sentence "…" --json > proposal.json
|
|
10
|
+
* skrr duties create --from-json proposal.json
|
|
11
11
|
*
|
|
12
12
|
* `--sentence` is REQUIRED: the API refines `sentence || history`, so a
|
|
13
13
|
* template-only request is rejected. `--template` seeds the draft, it does not
|
|
@@ -32,7 +32,7 @@ export declare function planTimezoneLines(proposal: {
|
|
|
32
32
|
timezone?: unknown;
|
|
33
33
|
};
|
|
34
34
|
} | null | undefined, requestedTimezone?: string): string[];
|
|
35
|
-
export default class
|
|
35
|
+
export default class DutiesPlan extends BaseCommand {
|
|
36
36
|
static description: string;
|
|
37
37
|
static examples: string[];
|
|
38
38
|
static flags: {
|