@skrr-ai/cli 0.1.150 → 0.1.152
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/chat.d.ts +3 -0
- package/dist/commands/agents/chat.js +27 -0
- 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/plan-day.d.ts +3 -0
- package/dist/commands/agents/plan-day.js +31 -8
- 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/show.d.ts +3 -0
- package/dist/commands/agents/show.js +59 -3
- package/dist/commands/agents/spawn.js +38 -38
- package/dist/commands/agents/triggers/list.js +2 -1
- package/dist/commands/agents/update.d.ts +1 -1
- package/dist/commands/agents/update.js +3 -3
- package/dist/commands/balance/usage/breakdown.d.ts +1 -1
- package/dist/commands/balance/usage/breakdown.js +22 -6
- package/dist/commands/balance/usage/events.d.ts +3 -2
- package/dist/commands/balance/usage/events.js +34 -7
- 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/duties/observation/summary.js +53 -0
- 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 +3 -2
- package/dist/commands/goals/planner-compare.d.ts +1 -1
- package/dist/commands/goals/planner-compare.js +13 -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/harnesses/list.d.ts +2 -1
- package/dist/commands/harnesses/list.js +7 -5
- package/dist/commands/harnesses/models.js +1 -1
- package/dist/commands/harnesses/quota.d.ts +9 -11
- package/dist/commands/harnesses/quota.js +83 -18
- package/dist/commands/harnesses/show.js +1 -1
- package/dist/commands/harnesses/usage.d.ts +19 -0
- package/dist/commands/harnesses/usage.js +27 -7
- 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/memory/topics/create.js +4 -1
- 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/commands/tokens/create.d.ts +3 -4
- package/dist/commands/tokens/create.js +20 -7
- package/dist/commands/triggers/preflight.js +9 -2
- 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-model-check.js +3 -1
- package/dist/lib/agent-trigger-listing.d.ts +4 -4
- package/dist/lib/agent-trigger-listing.js +7 -7
- package/dist/lib/agentic-stream.js +6 -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/balance.d.ts +5 -2
- package/dist/lib/balance.js +26 -0
- 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/config.d.ts +1 -1
- package/dist/lib/config.js +1 -0
- 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/harness-labels.d.ts +1 -0
- package/dist/lib/harness-labels.js +4 -0
- package/dist/lib/harnesses.d.ts +35 -0
- package/dist/lib/harnesses.js +8 -0
- package/dist/lib/initiatives.js +4 -4
- package/dist/lib/machines.d.ts +2 -1
- package/dist/lib/machines.js +2 -2
- 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/publicEndpoints.generated.d.ts +4 -0
- package/dist/lib/publicEndpoints.generated.js +4 -0
- 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 +6 -5
- package/dist/lib/schedule.js +5 -5
- 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 +5 -5
- package/dist/lib/triggers.js +25 -16
- package/dist/lib/update-check.d.ts +1 -1
- package/dist/lib/update-check.js +12 -8
- 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 +8295 -8283
- package/docs/v1/lookback-plans.md +1 -1
- package/oclif.manifest.json +5356 -5333
- 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/observation/summary.js +0 -31
- 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
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type DutyAuthoringSnapshot, type DutyAuthoringWarning, type DutyObservationsQuery, type DutyObservationsResponse } from '@skrr-ai/data-provider';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* (`/api/
|
|
3
|
+
* duties.ts — request-based client for the Duties subsystem
|
|
4
|
+
* (`/api/duties/*`).
|
|
5
5
|
*
|
|
6
6
|
* Mirrors the `triggerApi` / `scheduleApi` pattern: these endpoints are not
|
|
7
7
|
* exposed as `dataService.*` functions, so the CLI talks to them through the
|
|
8
8
|
* shared `request` transport.
|
|
9
9
|
*
|
|
10
|
-
* Concept: a **
|
|
10
|
+
* Concept: a **Duty** is a durable, agent-scoped contract —
|
|
11
11
|
* "hold this outcome true, and watch these sources on this cadence". It is NOT a
|
|
12
12
|
* unit of work. It sits ABOVE goals/tasks (which it watches as sensors) and runs
|
|
13
|
-
* its own closed control loop: a fast `
|
|
13
|
+
* its own closed control loop: a fast `duty_check` (sense → project open
|
|
14
14
|
* loops → decide a posture → route actions) and a slower reflection that retunes
|
|
15
|
-
* the
|
|
15
|
+
* the duty's own cadence from realized outcomes.
|
|
16
16
|
*
|
|
17
17
|
* Two `kind`s: `achieve` (bounded, deadline-bearing) and `maintain` (perpetual
|
|
18
18
|
* "hold this state", derived from a Compass invariant — not authored here).
|
|
19
19
|
*/
|
|
20
|
-
import {
|
|
21
|
-
import type {
|
|
20
|
+
import { DUTY_WATCHED_SOURCES, DUTY_TEMPLATE_IDS, DUTY_CADENCE_MODES, DUTY_CADENCE_TIME_PATTERN, DUTY_CADENCE_MAX_TIMES, DUTY_EXECUTION_ISOLATION_MODES, DUTY_STATUSES, DUTY_KIND_VALUES } from '@skrr-ai/data-provider';
|
|
21
|
+
import type { DutyCheck, DutyChecksResponse, Duty, DutyRevisionReceipt, DutyUpdateResponse, DutyActionProposal, DutyListResponse, DutyPlanResponse, DutyScheduleIssue, DutyStatusResponse, DutyWorkLink, DutyExecutionReceiptListResponse, DutyExecutionReceiptQuarterlyMetricsResponse, DutyCapabilitySource, DutyDeliveryPatchResponse, DutyDeliveryBundleResponse, DutyCyclesResponse, DutyExplanationResponse, DutyRunPermissions, DutyLoopStatus, DutyRoster } from '@skrr-ai/data-provider';
|
|
22
22
|
import { withQuery } from './triggers';
|
|
23
|
-
export {
|
|
24
|
-
export type {
|
|
23
|
+
export { DUTY_WATCHED_SOURCES, DUTY_TEMPLATE_IDS, DUTY_CADENCE_MODES, DUTY_CADENCE_TIME_PATTERN, DUTY_CADENCE_MAX_TIMES, DUTY_STATUSES, DUTY_KIND_VALUES, };
|
|
24
|
+
export type { DutyCheck, DutyChecksResponse, Duty, DutyActionProposal, DutyListResponse, DutyPlanResponse, DutyStatusResponse, DutyWorkLink, };
|
|
25
25
|
/** Derived from the installed compatibility vocabulary so the CLI remains
|
|
26
26
|
* safe even while data-provider and CLI packages roll out separately. */
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const DUTY_AUTHORABLE_CADENCE_MODES: ("manual" | "daily" | "interval" | "event_plus_interval")[];
|
|
28
28
|
/**
|
|
29
|
-
* Where a
|
|
29
|
+
* Where a Duty's autonomous runs do their work. Re-exported for the same
|
|
30
30
|
* reason as the ladder above: the vocabulary is the server's, and a picker that
|
|
31
31
|
* offers a value the API rejects is a silent drift.
|
|
32
32
|
*/
|
|
33
|
-
export {
|
|
33
|
+
export { DUTY_EXECUTION_ISOLATION_MODES };
|
|
34
34
|
/**
|
|
35
35
|
* Interval bounds for `cadence.intervalMs`.
|
|
36
36
|
*
|
|
37
|
-
* The Trigger schedule and
|
|
37
|
+
* The Trigger schedule and Duty contract now share the same one-year
|
|
38
38
|
* upper bound. Keep the CLI aligned so a valid long-interval contract does not
|
|
39
39
|
* get rejected only at this surface.
|
|
40
40
|
*/
|
|
41
|
-
export declare const
|
|
42
|
-
export declare const
|
|
41
|
+
export declare const MIN_DUTY_INTERVAL_MS = 60000;
|
|
42
|
+
export declare const MAX_DUTY_INTERVAL_MS: number;
|
|
43
43
|
/**
|
|
44
44
|
* Loose view types for rendering. Responses are full contracts, but the render
|
|
45
45
|
* helpers read only a subset and must tolerate partially-populated rows (e.g.
|
|
46
|
-
* the status projection returned by `GET /api/
|
|
46
|
+
* the status projection returned by `GET /api/duties/:id`).
|
|
47
47
|
*/
|
|
48
|
-
export type
|
|
49
|
-
export type
|
|
50
|
-
/** The `object:'list'` envelope every per-
|
|
51
|
-
export type
|
|
48
|
+
export type DutyView = Partial<Duty>;
|
|
49
|
+
export type DutyCheckView = Partial<DutyCheck>;
|
|
50
|
+
/** The `object:'list'` envelope every per-duty read list now answers. */
|
|
51
|
+
export type DutyListPage = {
|
|
52
52
|
data: unknown[];
|
|
53
53
|
has_more?: boolean;
|
|
54
54
|
next_cursor?: string | null;
|
|
55
55
|
};
|
|
56
|
-
export type
|
|
56
|
+
export type DutyPreflightReport = {
|
|
57
57
|
verdict: 'ready' | 'needs_review' | 'blocked';
|
|
58
|
-
capabilities?:
|
|
58
|
+
capabilities?: DutyCapabilitySource[];
|
|
59
59
|
gates: Array<{
|
|
60
60
|
id: string;
|
|
61
61
|
label: string;
|
|
@@ -96,7 +96,7 @@ export type CommitmentPreflightReport = {
|
|
|
96
96
|
[key: string]: unknown;
|
|
97
97
|
};
|
|
98
98
|
/** Whose permissions a run uses (OSK-11975). Absent from older servers. */
|
|
99
|
-
permissions?:
|
|
99
|
+
permissions?: DutyRunPermissions | null;
|
|
100
100
|
/** `retired` names the fence fields OSK-11975 made inert (OSK-12065). */
|
|
101
101
|
execution?: {
|
|
102
102
|
retired?: string[];
|
|
@@ -111,7 +111,7 @@ export type CommitmentPreflightReport = {
|
|
|
111
111
|
};
|
|
112
112
|
/**
|
|
113
113
|
* Whether Resume / `create --activate` would be accepted, answered by the server's one activation
|
|
114
|
-
* rule (`
|
|
114
|
+
* rule (`DutyActivation`). Absent from an older server. A gate can be advisory for a run and
|
|
115
115
|
* still refuse activation, so this is the answer, not the gate list.
|
|
116
116
|
*/
|
|
117
117
|
activation?: {
|
|
@@ -131,7 +131,7 @@ export type CommitmentPreflightReport = {
|
|
|
131
131
|
* it. The server owns which gates refuse; this lays out its answer and never re-derives it. Nothing
|
|
132
132
|
* for an allowed activation or an older server that does not send the block.
|
|
133
133
|
*/
|
|
134
|
-
export declare function activationRefusalLines(activation:
|
|
134
|
+
export declare function activationRefusalLines(activation: DutyPreflightReport['activation']): string[];
|
|
135
135
|
/**
|
|
136
136
|
* Whether the server's activation answer names this gate as one that refuses activation (OSK-21258).
|
|
137
137
|
* A gate can be advisory for a run (`admission: 'advisory'`) and still be what `resume` refuses with a
|
|
@@ -140,40 +140,40 @@ export declare function activationRefusalLines(activation: CommitmentPreflightRe
|
|
|
140
140
|
* both sides carry one, so a gate advisory for one reason is not promoted by another. An older server
|
|
141
141
|
* that sends no answer promotes nothing.
|
|
142
142
|
*/
|
|
143
|
-
export declare function gateRefusesActivation(activation:
|
|
143
|
+
export declare function gateRefusesActivation(activation: DutyPreflightReport['activation'], gate: {
|
|
144
144
|
id?: string;
|
|
145
145
|
reason?: string | null;
|
|
146
146
|
}): boolean;
|
|
147
147
|
/**
|
|
148
|
-
* The lines every
|
|
148
|
+
* The lines every Duty read surface prints for "whose permissions does a
|
|
149
149
|
* run use?" — `show`, `effective-policy` and `preflight` share it so the three
|
|
150
150
|
* cannot phrase it three ways (OSK-12065). The sentence and the warnings are
|
|
151
151
|
* the server's; this only lays them out. `null` (an older server that does not
|
|
152
152
|
* report it) prints nothing rather than a guess.
|
|
153
153
|
*/
|
|
154
|
-
export declare function permissionLines(permissions:
|
|
154
|
+
export declare function permissionLines(permissions: DutyRunPermissions | null | undefined): string[];
|
|
155
155
|
/**
|
|
156
156
|
* The lines `show` prints for a stored schedule setting the engine cannot honour
|
|
157
157
|
* (OSK-15452): the cadence line above them reads as honoured while the daily times
|
|
158
158
|
* run on UTC. The sentence and the remedy are the server's; this only lays them out.
|
|
159
159
|
* An older server reports none, which prints nothing rather than a guess.
|
|
160
160
|
*/
|
|
161
|
-
export declare function scheduleIssueLines(issues:
|
|
161
|
+
export declare function scheduleIssueLines(issues: DutyScheduleIssue[] | null | undefined): string[];
|
|
162
162
|
/**
|
|
163
163
|
* One line naming fields that are still in the JSON but decide nothing any
|
|
164
164
|
* more. Deprecation, not removal: `--json` keeps them for scripts.
|
|
165
165
|
*/
|
|
166
166
|
export declare function retiredFieldsLine(retired: string[] | undefined, reason: string | undefined): string | null;
|
|
167
167
|
/**
|
|
168
|
-
* A
|
|
168
|
+
* A Duty Pack's readiness receipt.
|
|
169
169
|
*
|
|
170
|
-
* `verdict` is what gates the lifecycle: `
|
|
170
|
+
* `verdict` is what gates the lifecycle: `DutyPackLifecycle.activateShadow`
|
|
171
171
|
* and `promote` both REFUSE unless it reads `ready`, and the receipt is stored on
|
|
172
|
-
* the
|
|
172
|
+
* the duty (`pack.lastPreflight`) rather than recomputed per Check. A stale
|
|
173
173
|
* `blocked` therefore fences promotion indefinitely, which is exactly why this
|
|
174
174
|
* needs to be re-runnable from the CLI.
|
|
175
175
|
*/
|
|
176
|
-
export type
|
|
176
|
+
export type DutyPackPreflightResponse = {
|
|
177
177
|
pack: {
|
|
178
178
|
id: string;
|
|
179
179
|
version: string;
|
|
@@ -196,16 +196,16 @@ export type CommitmentPackPreflightResponse = {
|
|
|
196
196
|
reason?: string;
|
|
197
197
|
}>;
|
|
198
198
|
};
|
|
199
|
-
generic:
|
|
199
|
+
generic: DutyPreflightReport;
|
|
200
200
|
};
|
|
201
201
|
/**
|
|
202
|
-
* `/api/
|
|
202
|
+
* `/api/duty-packs` is a SEPARATE mount from `/api/duties`, so it
|
|
203
203
|
* gets its own builder rather than borrowing `base()`. The pack surface is not
|
|
204
204
|
* covered by `domain-api-parity.spec.ts`; `preflight` is exposed here because a
|
|
205
205
|
* stored verdict that only the web app can refresh is a verdict a headless
|
|
206
206
|
* operator cannot clear.
|
|
207
207
|
*/
|
|
208
|
-
export type
|
|
208
|
+
export type DutyPackDefinition = {
|
|
209
209
|
id: string;
|
|
210
210
|
version: string;
|
|
211
211
|
/** The Pack's name as the server sends it. `title` is not a field of the catalogue (OSK-21110). */
|
|
@@ -215,7 +215,7 @@ export type CommitmentPackDefinition = {
|
|
|
215
215
|
[key: string]: unknown;
|
|
216
216
|
};
|
|
217
217
|
/** `plan` is a read-only proposal; nothing is created until `bind`. */
|
|
218
|
-
export type
|
|
218
|
+
export type DutyPackPlanResponse = {
|
|
219
219
|
pack: {
|
|
220
220
|
id: string;
|
|
221
221
|
version: string;
|
|
@@ -241,8 +241,8 @@ export type CommitmentPackPlanResponse = {
|
|
|
241
241
|
}>;
|
|
242
242
|
[key: string]: unknown;
|
|
243
243
|
};
|
|
244
|
-
export type
|
|
245
|
-
|
|
244
|
+
export type DutyPackBindResponse = {
|
|
245
|
+
duty: {
|
|
246
246
|
id: string;
|
|
247
247
|
title?: string;
|
|
248
248
|
status?: string;
|
|
@@ -261,7 +261,7 @@ export type CommitmentPackBindResponse = {
|
|
|
261
261
|
};
|
|
262
262
|
reused?: boolean;
|
|
263
263
|
/**
|
|
264
|
-
* Present when the Pack was bound into a Space: the
|
|
264
|
+
* Present when the Pack was bound into a Space: the Duty is that
|
|
265
265
|
* Space's loop, held by `agentId` (`holder: 'space_lead'` when it defaulted
|
|
266
266
|
* to the Space's lead). `knowledgeScope.default` is what the link service
|
|
267
267
|
* did with the Space knowledge opt-in; absent when an existing loop was
|
|
@@ -290,13 +290,13 @@ export type CommitmentPackBindResponse = {
|
|
|
290
290
|
}>;
|
|
291
291
|
[key: string]: unknown;
|
|
292
292
|
};
|
|
293
|
-
export type
|
|
294
|
-
|
|
293
|
+
export type DutyPackLifecycleResponse = {
|
|
294
|
+
duty: {
|
|
295
295
|
id: string;
|
|
296
296
|
title?: string;
|
|
297
297
|
status?: string;
|
|
298
298
|
policy?: Record<string, unknown>;
|
|
299
|
-
delivery?:
|
|
299
|
+
delivery?: Duty['delivery'];
|
|
300
300
|
};
|
|
301
301
|
pack: {
|
|
302
302
|
id: string;
|
|
@@ -304,14 +304,14 @@ export type CommitmentPackLifecycleResponse = {
|
|
|
304
304
|
};
|
|
305
305
|
phase: string;
|
|
306
306
|
};
|
|
307
|
-
export declare const
|
|
307
|
+
export declare const dutyPackApi: {
|
|
308
308
|
list: () => Promise<{
|
|
309
|
-
data:
|
|
309
|
+
data: DutyPackDefinition[];
|
|
310
310
|
}>;
|
|
311
|
-
plan: (body: Record<string, unknown>) => Promise<
|
|
312
|
-
bind: (body: Record<string, unknown>) => Promise<
|
|
313
|
-
preflight: (id: string, nextRunCount?: number) => Promise<
|
|
314
|
-
activate: (id: string) => Promise<
|
|
311
|
+
plan: (body: Record<string, unknown>) => Promise<DutyPackPlanResponse>;
|
|
312
|
+
bind: (body: Record<string, unknown>) => Promise<DutyPackBindResponse>;
|
|
313
|
+
preflight: (id: string, nextRunCount?: number) => Promise<DutyPackPreflightResponse>;
|
|
314
|
+
activate: (id: string) => Promise<DutyPackLifecycleResponse>;
|
|
315
315
|
};
|
|
316
316
|
export type ObservationWindowQuery = {
|
|
317
317
|
key: string;
|
|
@@ -319,26 +319,26 @@ export type ObservationWindowQuery = {
|
|
|
319
319
|
to: string;
|
|
320
320
|
limit?: number;
|
|
321
321
|
};
|
|
322
|
-
export declare const
|
|
322
|
+
export declare const dutyApi: {
|
|
323
323
|
/**
|
|
324
324
|
* The lib owns every URL in this domain, and the parity spec depends on that:
|
|
325
|
-
* a command that builds its own `/api/
|
|
325
|
+
* a command that builds its own `/api/duties/...` string is invisible to
|
|
326
326
|
* the coverage check, which is how an endpoint ends up unreachable without
|
|
327
327
|
* anything failing.
|
|
328
328
|
*/
|
|
329
|
-
list: (query?: Parameters<typeof withQuery>[1]) => Promise<
|
|
329
|
+
list: (query?: Parameters<typeof withQuery>[1]) => Promise<DutyListResponse>;
|
|
330
330
|
/**
|
|
331
331
|
* Fleet-level liveness sweep health (OSK-10958): when the reconciler last
|
|
332
332
|
* swept, how stale that is, and the tally it last persisted. Aggregate only.
|
|
333
333
|
*/
|
|
334
334
|
livenessSweep: () => Promise<Record<string, unknown>>;
|
|
335
|
-
/** One agent's
|
|
336
|
-
roster: (agentId: string) => Promise<
|
|
337
|
-
/** Is this
|
|
338
|
-
loopStatus: (id: string) => Promise<
|
|
335
|
+
/** One agent's Duties, system roles included, each with its loop status. */
|
|
336
|
+
roster: (agentId: string) => Promise<DutyRoster>;
|
|
337
|
+
/** Is this Duty's loop installed and working. */
|
|
338
|
+
loopStatus: (id: string) => Promise<DutyLoopStatus>;
|
|
339
339
|
manifest: (id: string) => Promise<Record<string, unknown>>;
|
|
340
340
|
import: (body: Record<string, unknown>) => Promise<{
|
|
341
|
-
|
|
341
|
+
duty: {
|
|
342
342
|
id: string;
|
|
343
343
|
title: string;
|
|
344
344
|
status: string;
|
|
@@ -349,7 +349,7 @@ export declare const commitmentApi: {
|
|
|
349
349
|
};
|
|
350
350
|
}>;
|
|
351
351
|
fork: (id: string, body: Record<string, unknown>) => Promise<{
|
|
352
|
-
|
|
352
|
+
duty: {
|
|
353
353
|
id: string;
|
|
354
354
|
title: string;
|
|
355
355
|
status: string;
|
|
@@ -359,7 +359,7 @@ export declare const commitmentApi: {
|
|
|
359
359
|
sensors?: unknown[];
|
|
360
360
|
};
|
|
361
361
|
}>;
|
|
362
|
-
get: (id: string) => Promise<
|
|
362
|
+
get: (id: string) => Promise<DutyStatusResponse>;
|
|
363
363
|
controlPreview: (id: string, query: Parameters<typeof withQuery>[1]) => Promise<Record<string, unknown>>;
|
|
364
364
|
applyControl: (id: string, body: Record<string, unknown>) => Promise<Record<string, unknown>>;
|
|
365
365
|
controlReceipt: (id: string, controlId: string) => Promise<Record<string, unknown>>;
|
|
@@ -377,41 +377,41 @@ export declare const commitmentApi: {
|
|
|
377
377
|
timeoutMs?: number;
|
|
378
378
|
}) => Promise<Record<string, unknown>>;
|
|
379
379
|
readinessReceipt: (id: string, receiptId: string) => Promise<Record<string, unknown>>;
|
|
380
|
-
create: (body: Record<string, unknown>) => Promise<
|
|
381
|
-
update: (id: string, body: Record<string, unknown>) => Promise<
|
|
382
|
-
draftPreflight: (body: Record<string, unknown>) => Promise<
|
|
380
|
+
create: (body: Record<string, unknown>) => Promise<Duty>;
|
|
381
|
+
update: (id: string, body: Record<string, unknown>) => Promise<DutyUpdateResponse>;
|
|
382
|
+
draftPreflight: (body: Record<string, unknown>) => Promise<DutyPreflightReport>;
|
|
383
383
|
workLinks: (id: string, includeInactive?: boolean) => Promise<{
|
|
384
|
-
object: "
|
|
385
|
-
data:
|
|
384
|
+
object: "duty_work_link_list";
|
|
385
|
+
data: DutyWorkLink[];
|
|
386
386
|
}>;
|
|
387
387
|
createWorkLink: (id: string, body: Record<string, unknown>) => Promise<{
|
|
388
|
-
object: "
|
|
389
|
-
link:
|
|
388
|
+
object: "duty_work_link";
|
|
389
|
+
link: DutyWorkLink;
|
|
390
390
|
}>;
|
|
391
391
|
updateWorkLink: (id: string, linkId: string, body: Record<string, unknown>) => Promise<{
|
|
392
|
-
object: "
|
|
393
|
-
link:
|
|
392
|
+
object: "duty_work_link";
|
|
393
|
+
link: DutyWorkLink;
|
|
394
394
|
}>;
|
|
395
395
|
detachWorkLink: (id: string, linkId: string) => Promise<{
|
|
396
|
-
object: "
|
|
397
|
-
link:
|
|
396
|
+
object: "duty_work_link";
|
|
397
|
+
link: DutyWorkLink;
|
|
398
398
|
}>;
|
|
399
|
-
plan: (body: Record<string, unknown>) => Promise<
|
|
399
|
+
plan: (body: Record<string, unknown>) => Promise<DutyPlanResponse>;
|
|
400
400
|
checkNow: (id: string) => Promise<Record<string, unknown>>;
|
|
401
401
|
checks: (id: string, query?: {
|
|
402
402
|
limit?: number;
|
|
403
403
|
cursor?: string;
|
|
404
|
-
}) => Promise<
|
|
404
|
+
}) => Promise<DutyChecksResponse>;
|
|
405
405
|
actionHistory: (id: string, query?: {
|
|
406
406
|
limit?: number;
|
|
407
407
|
cursor?: string;
|
|
408
|
-
}) => Promise<
|
|
408
|
+
}) => Promise<DutyListPage>;
|
|
409
409
|
actionProposals: (id: string, query?: {
|
|
410
410
|
status?: string;
|
|
411
411
|
limit?: number;
|
|
412
412
|
}) => Promise<{
|
|
413
|
-
object: "
|
|
414
|
-
data:
|
|
413
|
+
object: "duty_action_proposal_list";
|
|
414
|
+
data: DutyActionProposal[];
|
|
415
415
|
}>;
|
|
416
416
|
actionProposal: (id: string, proposalId: string) => Promise<Record<string, unknown>>;
|
|
417
417
|
/**
|
|
@@ -421,7 +421,7 @@ export declare const commitmentApi: {
|
|
|
421
421
|
* headless operator could only ever REACT to proposals the server made — an
|
|
422
422
|
* asymmetry that leaves the domain half-usable in exactly the way the parity
|
|
423
423
|
* rule exists to catch. A locally-running agent that has investigated a
|
|
424
|
-
*
|
|
424
|
+
* duty and knows what should be done had no way to say so.
|
|
425
425
|
*/
|
|
426
426
|
proposeActionProposal: (id: string, body: Record<string, unknown>) => Promise<Record<string, unknown>>;
|
|
427
427
|
decideActionProposal: (id: string, proposalId: string, decision: "approve" | "reject", snapshot?: {
|
|
@@ -431,13 +431,13 @@ export declare const commitmentApi: {
|
|
|
431
431
|
reasonCode?: import("@skrr-ai/data-provider").ProposalDiscardReasonCode;
|
|
432
432
|
}) => Promise<Record<string, unknown>>;
|
|
433
433
|
executeActionProposal: (id: string, proposalId: string, body?: Record<string, unknown>) => Promise<Record<string, unknown>>;
|
|
434
|
-
preflight: (id: string, nextRunCount?: number, eventFixture?: Record<string, unknown>) => Promise<
|
|
434
|
+
preflight: (id: string, nextRunCount?: number, eventFixture?: Record<string, unknown>) => Promise<DutyPreflightReport>;
|
|
435
435
|
effectivePolicy: (id: string) => Promise<Record<string, unknown>>;
|
|
436
436
|
/**
|
|
437
|
-
* Executor rebind — `POST /api/
|
|
437
|
+
* Executor rebind — `POST /api/duties/:id/executor` (impl contract B4,
|
|
438
438
|
* docs/architecture/execution-handover-2026-09-17.md P4).
|
|
439
439
|
*
|
|
440
|
-
* `
|
|
440
|
+
* `duty.agentId` is single-valued by design, so moving it is an
|
|
441
441
|
* explicit recorded act: the server appends an `executorHandovers` entry
|
|
442
442
|
* rather than letting a bare PATCH rewrite who owns the loop without a trail.
|
|
443
443
|
*/
|
|
@@ -445,27 +445,27 @@ export declare const commitmentApi: {
|
|
|
445
445
|
agentId: string;
|
|
446
446
|
reason?: string;
|
|
447
447
|
}) => Promise<Record<string, unknown>>;
|
|
448
|
-
pause: (id: string) => Promise<
|
|
449
|
-
resume: (id: string) => Promise<
|
|
450
|
-
complete: (id: string) => Promise<
|
|
451
|
-
delivery: (id: string, body: Record<string, unknown>) => Promise<
|
|
448
|
+
pause: (id: string) => Promise<Duty>;
|
|
449
|
+
resume: (id: string) => Promise<Duty>;
|
|
450
|
+
complete: (id: string) => Promise<Duty>;
|
|
451
|
+
delivery: (id: string, body: Record<string, unknown>) => Promise<Duty>;
|
|
452
452
|
receipts: (id: string, query?: {
|
|
453
453
|
limit?: number;
|
|
454
454
|
checkId?: string;
|
|
455
455
|
runId?: string;
|
|
456
|
-
} | number) => Promise<
|
|
457
|
-
receiptQuarterlyMetrics: (id: string, year: number, quarter: number) => Promise<
|
|
458
|
-
deliveryPatch: (id: string, taskId: string) => Promise<
|
|
459
|
-
deliveryBundle: (id: string, taskId: string) => Promise<
|
|
456
|
+
} | number) => Promise<DutyExecutionReceiptListResponse>;
|
|
457
|
+
receiptQuarterlyMetrics: (id: string, year: number, quarter: number) => Promise<DutyExecutionReceiptQuarterlyMetricsResponse>;
|
|
458
|
+
deliveryPatch: (id: string, taskId: string) => Promise<DutyDeliveryPatchResponse>;
|
|
459
|
+
deliveryBundle: (id: string, taskId: string) => Promise<DutyDeliveryBundleResponse>;
|
|
460
460
|
operatingReview: (agentId: string) => Promise<Record<string, unknown>>;
|
|
461
461
|
reflection: (id: string) => Promise<Record<string, unknown>>;
|
|
462
462
|
decideReflectionProposal: (id: string, proposalKey: string, decision: "approve" | "reject") => Promise<Record<string, unknown>>;
|
|
463
|
-
/** Case and remediation-proposal reads make a
|
|
463
|
+
/** Case and remediation-proposal reads make a duty's open loop inspectable. */
|
|
464
464
|
cases: (id: string, query?: {
|
|
465
465
|
limit?: number;
|
|
466
466
|
status?: string;
|
|
467
467
|
cursor?: string;
|
|
468
|
-
}) => Promise<
|
|
468
|
+
}) => Promise<DutyListPage>;
|
|
469
469
|
caseDetail: (id: string, caseId: string) => Promise<Record<string, unknown>>;
|
|
470
470
|
remediationProposals: (id: string, query?: {
|
|
471
471
|
caseId?: string;
|
|
@@ -484,19 +484,19 @@ export declare const commitmentApi: {
|
|
|
484
484
|
}) => Promise<Record<string, unknown>>;
|
|
485
485
|
triggerStatus: (id: string, limit?: number) => Promise<Record<string, unknown>>;
|
|
486
486
|
workLineage: (id: string, limit?: number) => Promise<Record<string, unknown>>;
|
|
487
|
-
/** One ordered explanation surface across the immutable
|
|
487
|
+
/** One ordered explanation surface across the immutable duty ledgers. */
|
|
488
488
|
/**
|
|
489
489
|
* Soft delete: the contract drops out of every read while the ledgers that
|
|
490
490
|
* reference it stay resolvable. Refused for an active or system-managed
|
|
491
|
-
*
|
|
491
|
+
* duty — see DutyControl.deleteDuty.
|
|
492
492
|
*/
|
|
493
493
|
remove: (id: string, reason?: string, opts?: {
|
|
494
494
|
stopOpenWork?: boolean;
|
|
495
495
|
}) => Promise<Record<string, unknown>>;
|
|
496
496
|
/** What a delete would leave behind. Read-only. */
|
|
497
497
|
deletionPreview: (id: string) => Promise<Record<string, unknown>>;
|
|
498
|
-
/** Un-delete. Returns the
|
|
499
|
-
restore: (id: string) => Promise<
|
|
498
|
+
/** Un-delete. Returns the Duty PAUSED, never active. */
|
|
499
|
+
restore: (id: string) => Promise<Duty>;
|
|
500
500
|
trace: (id: string, query?: {
|
|
501
501
|
limit?: number;
|
|
502
502
|
cursor?: string;
|
|
@@ -505,15 +505,15 @@ export declare const commitmentApi: {
|
|
|
505
505
|
cycles: (id: string, query?: {
|
|
506
506
|
limit?: number;
|
|
507
507
|
cursor?: string;
|
|
508
|
-
}) => Promise<
|
|
508
|
+
}) => Promise<DutyCyclesResponse>;
|
|
509
509
|
/** The latest Cycle walked as six questions; the first "no" is where it stopped. */
|
|
510
|
-
explain: (id: string) => Promise<
|
|
510
|
+
explain: (id: string) => Promise<DutyExplanationResponse>;
|
|
511
511
|
ledger: (id: string, query?: Record<string, string | number | undefined>) => Promise<Record<string, unknown>>;
|
|
512
|
-
wakeCapabilities: (id: string) => Promise<
|
|
512
|
+
wakeCapabilities: (id: string) => Promise<DutyWakeCapabilities>;
|
|
513
513
|
dailyMetrics: (id: string, query?: {
|
|
514
514
|
limit?: number;
|
|
515
515
|
cursor?: string;
|
|
516
|
-
}) => Promise<
|
|
516
|
+
}) => Promise<DutyListPage>;
|
|
517
517
|
cadenceDecisions: (id: string, limit?: number) => Promise<{
|
|
518
518
|
data: unknown[];
|
|
519
519
|
}>;
|
|
@@ -523,24 +523,24 @@ export declare const commitmentApi: {
|
|
|
523
523
|
* Every other read on this object is retrospective. This one stops at the
|
|
524
524
|
* DecisionEnvelope → Arbiter boundary — no Check row, no budget debit, no
|
|
525
525
|
* delivery gate, no contract write — so it is the only way to answer "what is
|
|
526
|
-
* this
|
|
527
|
-
* the same reason `trigger-status` is: when a
|
|
526
|
+
* this duty about to do" before it does it. Worth its own command for
|
|
527
|
+
* the same reason `trigger-status` is: when a duty is about to nudge
|
|
528
528
|
* somebody and nobody can say why, the posture and its policy trail are the
|
|
529
529
|
* answer, and re-running a real check to find out changes the thing you are
|
|
530
530
|
* trying to observe.
|
|
531
531
|
*/
|
|
532
|
-
nextTick: (id: string) => Promise<
|
|
532
|
+
nextTick: (id: string) => Promise<DutyNextTickProjection>;
|
|
533
533
|
/**
|
|
534
534
|
* The accounting SHADOW readout behind allowance accounting.
|
|
535
535
|
*
|
|
536
|
-
* WORKSPACE-scoped despite hanging off one
|
|
536
|
+
* WORKSPACE-scoped despite hanging off one duty's id: it aggregates
|
|
537
537
|
* every closed daily metric in the workspace, because the question it answers
|
|
538
538
|
* is "does this workspace have enough closed evidence to activate" rather than
|
|
539
|
-
* "what has this
|
|
539
|
+
* "what has this duty spent". `cost` is the per-duty question.
|
|
540
540
|
*/
|
|
541
|
-
accountingReadout: (id: string) => Promise<
|
|
541
|
+
accountingReadout: (id: string) => Promise<DutyAccountingReadout>;
|
|
542
542
|
/**
|
|
543
|
-
* Closed-period spend for ONE
|
|
543
|
+
* Closed-period spend for ONE duty over a UTC day window.
|
|
544
544
|
*
|
|
545
545
|
* `costStatus` is the load-bearing field, not the dollar figure: `partial` and
|
|
546
546
|
* `unavailable` mean some runs carried no cost attribution at all, so the
|
|
@@ -551,9 +551,9 @@ export declare const commitmentApi: {
|
|
|
551
551
|
cost: (id: string, window: {
|
|
552
552
|
from: string;
|
|
553
553
|
to: string;
|
|
554
|
-
}) => Promise<
|
|
554
|
+
}) => Promise<DutyCostWindow>;
|
|
555
555
|
/**
|
|
556
|
-
* What this
|
|
556
|
+
* What this duty's RUNS claim to have seen (agent-as-sensor).
|
|
557
557
|
*
|
|
558
558
|
* Distinct from every other read on this object: it is the only one whose
|
|
559
559
|
* rows the control plane did not gather itself, so each carries
|
|
@@ -574,13 +574,13 @@ export declare const commitmentApi: {
|
|
|
574
574
|
investigationKey?: string;
|
|
575
575
|
status?: string;
|
|
576
576
|
cursor?: string;
|
|
577
|
-
}) => Promise<
|
|
577
|
+
}) => Promise<DutyListPage>;
|
|
578
578
|
evaluations: (id: string, query?: {
|
|
579
579
|
limit?: number;
|
|
580
|
-
}) => Promise<
|
|
580
|
+
}) => Promise<DutyListPage>;
|
|
581
581
|
createEvaluation: (id: string, body: Record<string, unknown>) => Promise<Record<string, unknown>>;
|
|
582
582
|
retryEvaluationLearning: (id: string, scheduleId: string) => Promise<Record<string, unknown>>;
|
|
583
|
-
observations: (id: string, query?:
|
|
583
|
+
observations: (id: string, query?: DutyObservationsQuery) => Promise<DutyObservationsResponse>;
|
|
584
584
|
observationSeries: (id: string, query: ObservationWindowQuery) => Promise<Record<string, unknown>>;
|
|
585
585
|
observationCompare: (id: string, query: ObservationWindowQuery & {
|
|
586
586
|
baselineFrom: string;
|
|
@@ -602,15 +602,15 @@ export declare const commitmentApi: {
|
|
|
602
602
|
* under `--json` — so it stays `unknown` here rather than being half-typed into
|
|
603
603
|
* something a renderer would be tempted to trust.
|
|
604
604
|
*/
|
|
605
|
-
export interface
|
|
605
|
+
export interface DutyNextTickProjection {
|
|
606
606
|
object?: string;
|
|
607
|
-
|
|
607
|
+
dutyId?: string;
|
|
608
608
|
projectedAt?: string;
|
|
609
609
|
envelope?: Record<string, unknown>;
|
|
610
610
|
/**
|
|
611
611
|
* OSK-11433 — the stored liveness verdict, carried alongside the projected
|
|
612
612
|
* envelope because the projection reads world-model delta, not run
|
|
613
|
-
* outcomes: a
|
|
613
|
+
* outcomes: a duty whose dispatches are all refused still projects
|
|
614
614
|
* on_track, and without this field the two honest answers contradict
|
|
615
615
|
* silently across surfaces.
|
|
616
616
|
*/
|
|
@@ -648,7 +648,7 @@ export interface CommitmentNextTickProjection {
|
|
|
648
648
|
};
|
|
649
649
|
}
|
|
650
650
|
/** Shape of `GET /:id/accounting-readout`. */
|
|
651
|
-
export interface
|
|
651
|
+
export interface DutyAccountingReadout {
|
|
652
652
|
windowDays?: number;
|
|
653
653
|
evidenceDays?: number;
|
|
654
654
|
source?: string;
|
|
@@ -676,8 +676,8 @@ export interface CommitmentAccountingReadout {
|
|
|
676
676
|
requestedMode?: string;
|
|
677
677
|
}
|
|
678
678
|
/** Shape of `GET /:id/cost`. */
|
|
679
|
-
export interface
|
|
680
|
-
|
|
679
|
+
export interface DutyCostWindow {
|
|
680
|
+
dutyId?: string;
|
|
681
681
|
from?: string;
|
|
682
682
|
to?: string;
|
|
683
683
|
dayCount?: number;
|
|
@@ -704,7 +704,7 @@ export interface CostProjectionCensus {
|
|
|
704
704
|
olderDayCount?: number;
|
|
705
705
|
}
|
|
706
706
|
/**
|
|
707
|
-
* The event-wake block of a
|
|
707
|
+
* The event-wake block of a Duty's trigger status (`eventCapabilities`), as the server sends
|
|
708
708
|
* it. Rendered by `eventWakeLines` for both `trigger-status` and `wake-capabilities`.
|
|
709
709
|
*/
|
|
710
710
|
export type EventWakeCapabilities = {
|
|
@@ -746,7 +746,7 @@ export type EventWakeCapabilities = {
|
|
|
746
746
|
}[];
|
|
747
747
|
};
|
|
748
748
|
/** Shape of `GET /:id/wake-capabilities`. */
|
|
749
|
-
export interface
|
|
749
|
+
export interface DutyWakeCapabilities {
|
|
750
750
|
eligibleCapabilities: Array<{
|
|
751
751
|
id: string;
|
|
752
752
|
kind?: string;
|
|
@@ -768,31 +768,31 @@ export interface CommitmentWakeCapabilities {
|
|
|
768
768
|
* statement", never "nothing is bound".
|
|
769
769
|
*/
|
|
770
770
|
standingEventWakes?: {
|
|
771
|
-
|
|
771
|
+
dutyStatus: string;
|
|
772
772
|
cadenceMode?: string;
|
|
773
773
|
eventCapabilities: EventWakeCapabilities;
|
|
774
774
|
agentChosenEventWaits: number;
|
|
775
775
|
} | null;
|
|
776
776
|
}
|
|
777
777
|
/** One-tap check feedback. `handled` means "I dealt with it", not "good nudge". */
|
|
778
|
-
export declare const
|
|
778
|
+
export declare const DUTY_FEEDBACK_KINDS: readonly ["useful", "noisy", "wrong", "handled"];
|
|
779
779
|
/**
|
|
780
780
|
* Bounded remediation actions. This is a CLOSED set on purpose: remediation is
|
|
781
|
-
* the "this
|
|
781
|
+
* the "this duty is misbehaving, calm it down" lever, and a free-form
|
|
782
782
|
* contract edit would defeat the point of having one.
|
|
783
783
|
*/
|
|
784
|
-
export declare const
|
|
784
|
+
export declare const DUTY_REMEDIATION_ACTIONS: readonly ["pause_duty", "mute_user_nudges", "reduce_nudge_frequency", "mark_noop"];
|
|
785
785
|
/** The only keys `createBodySchema` (a `z.strictObject`) accepts. */
|
|
786
|
-
export declare const
|
|
786
|
+
export declare const DUTY_CREATE_KEYS: readonly ["mode", "agentId", "kind", "compassId", "compassOrigin", "goalId", "title", "description", "agentDirective", "status", "target", "watchedSources", "policy", "delivery", "cadence", "subject", "sensors", "grants", "reports", "createdVia"];
|
|
787
787
|
/**
|
|
788
|
-
* Read the per-
|
|
788
|
+
* Read the per-Duty domain policy from an inline flag or a text file.
|
|
789
789
|
*
|
|
790
790
|
* This deliberately uses a separate pair of names from Agent-level instruction
|
|
791
|
-
* commands: the result configures one
|
|
791
|
+
* commands: the result configures one Duty run, not the Agent's global
|
|
792
792
|
* prompt. The explicit error also keeps shell users from accidentally masking
|
|
793
793
|
* a reviewed file with a short inline experiment.
|
|
794
794
|
*/
|
|
795
|
-
export declare function
|
|
795
|
+
export declare function readDutyAgentDirective({ directive, file, }: {
|
|
796
796
|
directive?: string;
|
|
797
797
|
file?: string;
|
|
798
798
|
}): Promise<string | undefined>;
|
|
@@ -815,7 +815,7 @@ export declare function ignoredCreateKeysWarning(keys: string[]): string | null;
|
|
|
815
815
|
* Normalize a `--from-json` body into something the create endpoint accepts.
|
|
816
816
|
*
|
|
817
817
|
* Two real hazards this removes:
|
|
818
|
-
* 1. `skrr
|
|
818
|
+
* 1. `skrr duties plan --json` emits the ENVELOPE `{proposal, message, …}` —
|
|
819
819
|
* unwrap `proposal` so the documented plan → create pipe works unedited.
|
|
820
820
|
* 2. `createBodySchema` is a `z.strictObject`, so any extra key is a 400. A
|
|
821
821
|
* contract dumped from `list --json` carries id/version/state/ownerUserId/…
|
|
@@ -826,19 +826,19 @@ export declare function ignoredCreateKeysWarning(keys: string[]): string | null;
|
|
|
826
826
|
* active or terminal state, but importing it must still create a draft.
|
|
827
827
|
*/
|
|
828
828
|
export declare function normalizeCreateBody(input: Record<string, unknown>): Record<string, unknown>;
|
|
829
|
-
export declare function
|
|
830
|
-
export declare function
|
|
829
|
+
export declare function parseDutyConcurrencyLimit(input: string | undefined): number | null | undefined;
|
|
830
|
+
export declare function dutyConcurrencyEnvelopePatch({ rawValue, reason, autonomous, }: {
|
|
831
831
|
rawValue?: string;
|
|
832
832
|
reason?: string;
|
|
833
833
|
autonomous?: boolean;
|
|
834
834
|
}): Record<string, unknown> | undefined;
|
|
835
835
|
/**
|
|
836
|
-
* What `policy.evidenceGate.requireMaterialEvidenceForAutonomousRun` does to this
|
|
836
|
+
* What `policy.evidenceGate.requireMaterialEvidenceForAutonomousRun` does to this Duty's
|
|
837
837
|
* scheduled runs, in a line `show` can print (OSK-15417). It existed only in `show --json`: nothing
|
|
838
838
|
* in help, docs or any text view said whether a run on an unchanged day would be held back.
|
|
839
839
|
*/
|
|
840
|
-
export declare function describeEvidenceGate(
|
|
841
|
-
export declare function
|
|
840
|
+
export declare function describeEvidenceGate(duty: DutyView): string;
|
|
841
|
+
export declare function describeDutyConcurrency(duty: DutyView): string;
|
|
842
842
|
export declare function parseIntervalToMs(input: string): number;
|
|
843
843
|
/**
|
|
844
844
|
* Assemble the `watchedSources` array from CLI flags — one place, so `create`
|
|
@@ -890,12 +890,12 @@ export declare function describeIntervalMs(ms: number | undefined): string;
|
|
|
890
890
|
* `source_state` belongs HERE rather than with those three: its config is one
|
|
891
891
|
* string naming a watched source, which is exactly as spellable as `metric`'s
|
|
892
892
|
* `--measure`. It is also the evaluator built for a source-watching Guardian,
|
|
893
|
-
* the one shape of
|
|
893
|
+
* the one shape of duty that previously had no evaluator available to it
|
|
894
894
|
* at all — so leaving it JSON-only would mean the CLI could not express the
|
|
895
|
-
* criterion its own `sky
|
|
895
|
+
* criterion its own `sky duties show` tells the user to add.
|
|
896
896
|
*/
|
|
897
|
-
export declare const
|
|
898
|
-
export type
|
|
897
|
+
export declare const DUTY_CLI_EVALUATORS: readonly ["manual", "metric", "source_state"];
|
|
898
|
+
export type DutyCliEvaluator = (typeof DUTY_CLI_EVALUATORS)[number];
|
|
899
899
|
export type SuccessCriterionInput = {
|
|
900
900
|
id: string;
|
|
901
901
|
label: string;
|
|
@@ -917,20 +917,20 @@ export declare function buildSuccessCriteria(labels: string[], opts?: {
|
|
|
917
917
|
* The cadence changes an Agent has proposed and nobody has decided. `cadence-requests decide` needs a request
|
|
918
918
|
* id, and `show` listed none, so a person could not find the id to pass (OSK-15422).
|
|
919
919
|
*/
|
|
920
|
-
export declare function pendingCadenceRequestLines(
|
|
920
|
+
export declare function pendingCadenceRequestLines(duty: unknown): string[];
|
|
921
921
|
/**
|
|
922
922
|
* What `event+<interval>` promises, in one sentence. A watched-source event is an accelerator: it
|
|
923
923
|
* makes a check happen sooner, and one that is lost on the way is not replayed. The interval is what
|
|
924
|
-
* recovers: at each one the
|
|
925
|
-
* would have reported. It does not replay the event, and it runs only while the
|
|
924
|
+
* recovers: at each one the Duty re-checks current state, which finds what the missed event
|
|
925
|
+
* would have reported. It does not replay the event, and it runs only while the Duty is running.
|
|
926
926
|
*/
|
|
927
927
|
export declare function eventBackstopNote(intervalMs: number | undefined): string;
|
|
928
|
-
export declare function cadenceLabel(
|
|
929
|
-
export declare function
|
|
928
|
+
export declare function cadenceLabel(duty: DutyView): string;
|
|
929
|
+
export declare function renderDutyList(duties: DutyView[], log: (line: string) => void): void;
|
|
930
930
|
/**
|
|
931
|
-
* A `
|
|
931
|
+
* A `duty_standstill` policyTrace entry, extracted from the latest
|
|
932
932
|
* check's decision. The arbiter appends it whenever a quiet posture is the
|
|
933
|
-
* ANSWER to "why nothing is happening" (`
|
|
933
|
+
* ANSWER to "why nothing is happening" (`DutyControl/index.js` around
|
|
934
934
|
* the `record_only`/empty-action-plan branch). Every field except `reason` is
|
|
935
935
|
* optional, and old checks lack the entry entirely — so a missing entry means
|
|
936
936
|
* "the loop had nothing standstill-worthy to say", not "we don't know".
|
|
@@ -952,8 +952,8 @@ export declare function extractStandstillFromCheck(check?: {
|
|
|
952
952
|
* The fix to print beside a standstill, as `stopForRead` resolves a stop's on
|
|
953
953
|
* the server. The check's own stored sentence is the answer for a reason that
|
|
954
954
|
* still occurs. A reason only a pre-2026-10-09 Check carries stored a fix that
|
|
955
|
-
* names a retired
|
|
956
|
-
* instead, with `<
|
|
955
|
+
* names a retired Duty mode (OSK-18146), so its current copy is printed
|
|
956
|
+
* instead, with `<duty>` bound to this Duty when its id is a plain
|
|
957
957
|
* token.
|
|
958
958
|
*
|
|
959
959
|
* Exported for tests.
|
|
@@ -961,10 +961,10 @@ export declare function extractStandstillFromCheck(check?: {
|
|
|
961
961
|
export declare function standstillFixForRead(standstill: {
|
|
962
962
|
reason: string;
|
|
963
963
|
fix?: string;
|
|
964
|
-
},
|
|
964
|
+
}, dutyId?: string): string | undefined;
|
|
965
965
|
/**
|
|
966
966
|
* The `Autonomy:` line — the stated mode, annotated when the latest check
|
|
967
|
-
* actually ran at a STRICTER one (OSK-4881). Without the caveat, a
|
|
967
|
+
* actually ran at a STRICTER one (OSK-4881). Without the caveat, a duty
|
|
968
968
|
* created `auto_run_limited` whose every check the workspace clamped to
|
|
969
969
|
* `suggestions_only` reads as though it were acting when it is only suggesting,
|
|
970
970
|
* and only `preflight --json` reveals otherwise.
|
|
@@ -972,7 +972,7 @@ export declare function standstillFixForRead(standstill: {
|
|
|
972
972
|
* Exported for tests.
|
|
973
973
|
*/
|
|
974
974
|
/**
|
|
975
|
-
* One-line rendering of `
|
|
975
|
+
* One-line rendering of `duty.executorBlocked` — the B4/A7 signal that
|
|
976
976
|
* the executor's targets are all unusable: `{reason:'quota'|'offline'|'waiting_for_machine', until?,
|
|
977
977
|
* provider?}`.
|
|
978
978
|
*
|
|
@@ -980,7 +980,7 @@ export declare function standstillFixForRead(standstill: {
|
|
|
980
980
|
* is the normal case and means "no information", not "not blocked". Returns
|
|
981
981
|
* null rather than printing a guess.
|
|
982
982
|
*/
|
|
983
|
-
export declare function describeExecutorBlocked(
|
|
983
|
+
export declare function describeExecutorBlocked(duty: DutyView): string | null;
|
|
984
984
|
export declare function operationReasonWords(reason: string | null | undefined): string | undefined;
|
|
985
985
|
export declare function describeOperation(operation: string | null | undefined, reason: string | null | undefined): string;
|
|
986
986
|
/**
|
|
@@ -999,35 +999,35 @@ export declare function describeOperation(operation: string | null | undefined,
|
|
|
999
999
|
* labelled `Blocker:` instead, and no remedy is made up for it.
|
|
1000
1000
|
*/
|
|
1001
1001
|
type OperationFixLabel = string;
|
|
1002
|
-
export declare function describeOperationFix(
|
|
1002
|
+
export declare function describeOperationFix(duty: DutyView, operation: string | null | undefined): Array<{
|
|
1003
1003
|
label: OperationFixLabel;
|
|
1004
1004
|
text: string;
|
|
1005
1005
|
}>;
|
|
1006
1006
|
/**
|
|
1007
|
-
* Who stopped a
|
|
1008
|
-
* `show` printed neither (OSK-15423), so a
|
|
1007
|
+
* Who stopped a Duty, and when and why, in one line. The server stores it as `stoppedBy`;
|
|
1008
|
+
* `show` printed neither (OSK-15423), so a Duty you paused did not say you had.
|
|
1009
1009
|
*/
|
|
1010
|
-
export declare function describeStoppedBy(
|
|
1010
|
+
export declare function describeStoppedBy(duty: DutyView): string | null;
|
|
1011
1011
|
/**
|
|
1012
|
-
* The
|
|
1012
|
+
* The duty `show` should render: its stored contract, with the
|
|
1013
1013
|
* assessment replaced by the one the operating state recomputed for this read
|
|
1014
|
-
* when the server sent one (OSK-15989). The stored `
|
|
1014
|
+
* when the server sent one (OSK-15989). The stored `duty.assessment` is
|
|
1015
1015
|
* what the LAST check wrote; while a run is in flight it can still say
|
|
1016
1016
|
* `blocked`, and printing it above "Agent is working" made the header
|
|
1017
1017
|
* contradict the rest of the page. `doctor` already reads the live one first.
|
|
1018
1018
|
*/
|
|
1019
|
-
export declare function withLiveAssessment(
|
|
1019
|
+
export declare function withLiveAssessment(duty: DutyView, operatingState?: {
|
|
1020
1020
|
assessment?: unknown;
|
|
1021
1021
|
executorBlocked?: unknown;
|
|
1022
1022
|
firstActionableBlocker?: unknown;
|
|
1023
|
-
} | null):
|
|
1023
|
+
} | null): DutyView;
|
|
1024
1024
|
/**
|
|
1025
|
-
* The first line of `
|
|
1025
|
+
* The first line of `duties update` text output. An update that changed
|
|
1026
1026
|
* nothing says so and names the version it left alone (OSK-16199); a server
|
|
1027
1027
|
* that predates the receipt is reported as updated, exactly as before.
|
|
1028
1028
|
*/
|
|
1029
1029
|
/**
|
|
1030
|
-
* The warnings a
|
|
1030
|
+
* The warnings a Duty write deserves (OSK-17003): what the replacement
|
|
1031
1031
|
* removed (a watched source, its settings, daily times), what now reads
|
|
1032
1032
|
* differently (daily times in a new timezone) and what stores without effect
|
|
1033
1033
|
* (an `agent_run` source with no declared keys, collaborator agents).
|
|
@@ -1036,42 +1036,42 @@ export declare function withLiveAssessment(commitment: CommitmentView, operating
|
|
|
1036
1036
|
* server sends none, so the CLI derives the same list locally from the contract
|
|
1037
1037
|
* it read and the payload it sent — one derivation, `@skrr-ai/data-provider`'s.
|
|
1038
1038
|
*/
|
|
1039
|
-
export declare function
|
|
1040
|
-
before?:
|
|
1039
|
+
export declare function dutyWriteWarnings(response: unknown, fallback: {
|
|
1040
|
+
before?: DutyAuthoringSnapshot | null;
|
|
1041
1041
|
payload: Record<string, unknown>;
|
|
1042
|
-
}):
|
|
1042
|
+
}): DutyAuthoringWarning[];
|
|
1043
1043
|
/** One `Warning:` line per authoring warning, after the write's own output. */
|
|
1044
|
-
export declare function
|
|
1045
|
-
export declare function
|
|
1044
|
+
export declare function renderDutyWriteWarnings(warnings: DutyAuthoringWarning[], warn: (line: string) => void): void;
|
|
1045
|
+
export declare function describeDutyRevision(revision: DutyRevisionReceipt | undefined): string;
|
|
1046
1046
|
/**
|
|
1047
|
-
* A
|
|
1047
|
+
* A duty's priority, as one line: `high · weight 70 · from northstar`.
|
|
1048
1048
|
*
|
|
1049
|
-
* Linking a
|
|
1049
|
+
* Linking a duty to a northstar rewrites its priority (`source: northstar`) and a governor
|
|
1050
1050
|
* reprioritization changes it again, so the place a person looks to confirm either is `show`, which
|
|
1051
1051
|
* printed everything but this and sent them to `--json`. An unset priority says so rather than
|
|
1052
1052
|
* printing nothing.
|
|
1053
1053
|
*/
|
|
1054
|
-
export declare function
|
|
1054
|
+
export declare function describeDutyPriority(priority: DutyView['priority']): string;
|
|
1055
1055
|
/**
|
|
1056
|
-
* The `Compass:` line of a bound
|
|
1057
|
-
* read does not carry that compass's STATUS, and an archived one governs nothing (the
|
|
1056
|
+
* The `Compass:` line of a bound duty. A duty names its compass (`compassId`) but the
|
|
1057
|
+
* read does not carry that compass's STATUS, and an archived one governs nothing (the duty
|
|
1058
1058
|
* runs on defaults), so the id alone could be read as "governed by it". Only what is known is
|
|
1059
1059
|
* stated: the id, and the command that says whether it is active (OSK-21242).
|
|
1060
1060
|
*/
|
|
1061
|
-
export declare function describeBoundCompass(
|
|
1061
|
+
export declare function describeBoundCompass(duty: Pick<DutyView, 'compassId' | 'agentId'>): string;
|
|
1062
1062
|
/**
|
|
1063
1063
|
* The bound Compass, as `explain` prints it (OSK-21332). `explain` is where a person asks "why does
|
|
1064
|
-
* this
|
|
1065
|
-
*
|
|
1066
|
-
* its status, so the caller reads the
|
|
1064
|
+
* this Duty behave this way", and a bound Compass (or an archived one, which runs the
|
|
1065
|
+
* Duty on defaults) is part of the answer. The explain payload names neither the Compass nor
|
|
1066
|
+
* its status, so the caller reads the Duty itself, the same read `show` renders, and hands the
|
|
1067
1067
|
* result here: the line is `describeBoundCompass`, the one `show` prints, not a second wording.
|
|
1068
1068
|
*
|
|
1069
1069
|
* `null` means that read did not come back. It is said, not skipped: a silent skip is
|
|
1070
|
-
* indistinguishable from "no Compass is bound". A
|
|
1070
|
+
* indistinguishable from "no Compass is bound". A Duty bound to none prints nothing, as in
|
|
1071
1071
|
* `show`.
|
|
1072
1072
|
*/
|
|
1073
|
-
export declare function explainCompassLines(
|
|
1074
|
-
export declare function
|
|
1073
|
+
export declare function explainCompassLines(dutyId: string, duty: Pick<DutyView, 'compassId' | 'agentId'> | null | undefined): string[];
|
|
1074
|
+
export declare function renderDutySummary(duty: DutyView, log: (line: string) => void,
|
|
1075
1075
|
/**
|
|
1076
1076
|
* The most recent check, when the caller has one. Optional because pause /
|
|
1077
1077
|
* complete / detach / reports render this same summary and hold only the
|
|
@@ -1090,12 +1090,12 @@ latestCheck?: {
|
|
|
1090
1090
|
* cadence they affect rather than after the free-text summary at the bottom. Optional for the
|
|
1091
1091
|
* same reason as `latestCheck`: only `show` reads them from the server.
|
|
1092
1092
|
*/
|
|
1093
|
-
scheduleIssues?:
|
|
1093
|
+
scheduleIssues?: DutyScheduleIssue[] | null): void;
|
|
1094
1094
|
/**
|
|
1095
1095
|
* Whether a check woke the agent, in plain words (OSK-4884).
|
|
1096
1096
|
*
|
|
1097
|
-
* The
|
|
1098
|
-
* `rule: '
|
|
1097
|
+
* The duty control loop records its wake decision as a
|
|
1098
|
+
* `rule: 'duty_invocation'` entry in `decision.policyTrace`, but the CLI
|
|
1099
1099
|
* never surfaced it — so `checks` could not answer the first question a reader
|
|
1100
1100
|
* has: did this check start an agent run, and if not, why not? Reads the trace
|
|
1101
1101
|
* entry and renders `yes` / `no — <reason>`; `-` when the check carries no
|
|
@@ -1103,27 +1103,27 @@ scheduleIssues?: CommitmentScheduleIssue[] | null): void;
|
|
|
1103
1103
|
*
|
|
1104
1104
|
* Exported for tests.
|
|
1105
1105
|
*/
|
|
1106
|
-
export declare function describeWakeDecision(check:
|
|
1106
|
+
export declare function describeWakeDecision(check: DutyCheckView): string;
|
|
1107
1107
|
/**
|
|
1108
|
-
* Render the
|
|
1108
|
+
* Render the duty's own decision history — one row per check. `POSTURE` is
|
|
1109
1109
|
* the loop's judgment (stay_quiet / act_silently / nudge_user / escalate …), so
|
|
1110
|
-
* this is the fastest way to see what a
|
|
1110
|
+
* this is the fastest way to see what a duty has actually been deciding.
|
|
1111
1111
|
* `WOKE` says whether the check started an agent run, and why not when it did
|
|
1112
1112
|
* not (OSK-4884).
|
|
1113
1113
|
*/
|
|
1114
|
-
export declare function renderCheckList(checks:
|
|
1114
|
+
export declare function renderCheckList(checks: DutyCheckView[], log: (line: string) => void): void;
|
|
1115
1115
|
type ReadModelRecord = Record<string, unknown>;
|
|
1116
|
-
/** Human view for `
|
|
1117
|
-
export declare function
|
|
1118
|
-
export declare function
|
|
1116
|
+
/** Human view for `duties ledger`; JSON remains the automation surface. */
|
|
1117
|
+
export declare function renderDutyLedger(ledger: ReadModelRecord, log: (line: string) => void): void;
|
|
1118
|
+
export declare function renderDutyTrace(trace: ReadModelRecord, log: (line: string) => void): void;
|
|
1119
1119
|
export declare function renderProactivenessScorecard(scorecard: ReadModelRecord, log: (line: string) => void): void;
|
|
1120
1120
|
/**
|
|
1121
1121
|
* One line per Cycle:
|
|
1122
|
-
* `09-22 12:04 ● stopped act
|
|
1122
|
+
* `09-22 12:04 ● stopped act duty_execution_budget_exhausted — Raise maxRunsPerDay…`
|
|
1123
1123
|
* A run that failed is named under its Cycle with who has to move (machine
|
|
1124
1124
|
* or model), because that is the next question every reader asks.
|
|
1125
1125
|
*/
|
|
1126
|
-
export declare function
|
|
1126
|
+
export declare function formatDutyCycles(page: Partial<DutyCyclesResponse>): string[];
|
|
1127
1127
|
/** One line per typed refusal reason a Run's hypotheses met; never claim text. */
|
|
1128
1128
|
export declare function hypothesisRefusalLines(run: {
|
|
1129
1129
|
hypothesisRefusals?: Array<{
|
|
@@ -1143,7 +1143,7 @@ export declare function wakeOutcomeLines(run: {
|
|
|
1143
1143
|
fix?: string;
|
|
1144
1144
|
};
|
|
1145
1145
|
}): string[];
|
|
1146
|
-
export declare function
|
|
1146
|
+
export declare function formatDutyExplanation(explanation: Partial<DutyExplanationResponse>): string[];
|
|
1147
1147
|
/**
|
|
1148
1148
|
* Print the continuation hint for a paged `object:'list'` response — the line
|
|
1149
1149
|
* that makes history beyond the newest page reachable instead of invisible.
|
|
@@ -1175,17 +1175,17 @@ export declare function describeObservationArtifacts(artifacts: unknown): string
|
|
|
1175
1175
|
* terms present in THESE rows are explained, so an ordinary table adds nothing.
|
|
1176
1176
|
*/
|
|
1177
1177
|
export declare function observationLegend(data: ReadModelRecord[]): string[];
|
|
1178
|
-
export declare function
|
|
1178
|
+
export declare function renderDutyObservations(response: ReadModelRecord, log: (line: string) => void, options?: {
|
|
1179
1179
|
emptyMessage?: string;
|
|
1180
1180
|
}): void;
|
|
1181
1181
|
/** Human view for causal hypotheses. */
|
|
1182
|
-
export declare function
|
|
1182
|
+
export declare function renderDutyHypotheses(response: ReadModelRecord, log: (line: string) => void, options?: {
|
|
1183
1183
|
emptyMessage?: string;
|
|
1184
1184
|
}): void;
|
|
1185
|
-
/** Human view for the
|
|
1186
|
-
export declare function
|
|
1185
|
+
/** Human view for the duty → work lineage projection. */
|
|
1186
|
+
export declare function renderDutyLineage(lineage: ReadModelRecord, log: (line: string) => void): void;
|
|
1187
1187
|
/** Human view for daily control-loop metrics. */
|
|
1188
|
-
export declare function
|
|
1188
|
+
export declare function renderDutyMetrics(response: ReadModelRecord, log: (line: string) => void): void;
|
|
1189
1189
|
/**
|
|
1190
1190
|
* The spend rule a closed day was derived under (OSK-15500): `open` until the day
|
|
1191
1191
|
* closes, `vN` when current, `vN (older)` when a later rule exists, so a day whose
|
|
@@ -1193,7 +1193,7 @@ export declare function renderCommitmentMetrics(response: ReadModelRecord, log:
|
|
|
1193
1193
|
*/
|
|
1194
1194
|
export declare function costRuleCell(projection: Record<string, unknown> | null | undefined, closed?: boolean): string;
|
|
1195
1195
|
/** Human view for the case list — one row per durable problem case. */
|
|
1196
|
-
export declare function
|
|
1196
|
+
export declare function renderDutyCases(response: ReadModelRecord, log: (line: string) => void): void;
|
|
1197
1197
|
/**
|
|
1198
1198
|
* Human view for one case — a bounded digest, never the raw document.
|
|
1199
1199
|
*
|
|
@@ -1204,10 +1204,10 @@ export declare function renderCommitmentCases(response: ReadModelRecord, log: (l
|
|
|
1204
1204
|
* this case and what happened last" in one screen, and `--json` stays the
|
|
1205
1205
|
* opt-in for the full document.
|
|
1206
1206
|
*/
|
|
1207
|
-
export declare function
|
|
1207
|
+
export declare function renderDutyCaseDetail(response: ReadModelRecord, log: (line: string) => void, options?: {
|
|
1208
1208
|
maxEntries?: number;
|
|
1209
1209
|
}): void;
|
|
1210
1210
|
/** Human view for the remediation-proposal list. */
|
|
1211
|
-
export declare function
|
|
1211
|
+
export declare function renderDutyRemediationProposals(response: ReadModelRecord, log: (line: string) => void): void;
|
|
1212
1212
|
/** Human view for one frozen remediation proposal. */
|
|
1213
|
-
export declare function
|
|
1213
|
+
export declare function renderDutyRemediationProposal(response: ReadModelRecord, log: (line: string) => void): void;
|