@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
|
@@ -6,19 +6,20 @@ const auth_core_1 = require("@skrr-ai/auth-core");
|
|
|
6
6
|
const base_command_1 = require("../../../base-command");
|
|
7
7
|
const balance_1 = require("../../../lib/balance");
|
|
8
8
|
class BalanceUsageEvents extends base_command_1.BaseCommand {
|
|
9
|
-
static description = `List
|
|
9
|
+
static description = `List settled ${auth_core_1.FIRST_PARTY_HARNESS.displayName} usage and its run/session attribution`;
|
|
10
10
|
static examples = [
|
|
11
11
|
'<%= config.bin %> balance usage events',
|
|
12
12
|
'<%= config.bin %> balance usage events --limit 20 --json',
|
|
13
13
|
'<%= config.bin %> balance usage events --workspace <workspace-id>',
|
|
14
|
-
'<%= config.bin %> balance usage events --from 2026-09-01 --to 2026-09-
|
|
14
|
+
'<%= config.bin %> balance usage events --from 2026-09-01 --to 2026-09-01T23:59:59.999Z',
|
|
15
15
|
];
|
|
16
16
|
static flags = {
|
|
17
17
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
18
|
-
from: core_1.Flags.string({ description: 'Inclusive ISO start time; defaults to 30 days
|
|
19
|
-
to: core_1.Flags.string({ description: 'Inclusive ISO end time; defaults to now' }),
|
|
18
|
+
from: core_1.Flags.string({ description: 'Inclusive ISO start time; YYYY-MM-DD means midnight UTC; defaults to 30 days before end' }),
|
|
19
|
+
to: core_1.Flags.string({ description: 'Inclusive ISO end time; YYYY-MM-DD means midnight UTC, not end of day; defaults to now' }),
|
|
20
20
|
cursor: core_1.Flags.string({ description: 'Opaque cursor returned by the previous page' }),
|
|
21
21
|
limit: core_1.Flags.integer({ description: 'Rows to return (1-200)', min: 1, max: 200, default: 50 }),
|
|
22
|
+
'legacy-charges': core_1.Flags.boolean({ description: 'Show legacy service-charge records; status is not shown and totals overlap settlements' }),
|
|
22
23
|
};
|
|
23
24
|
async run() {
|
|
24
25
|
this.requireAuth();
|
|
@@ -31,13 +32,16 @@ class BalanceUsageEvents extends base_command_1.BaseCommand {
|
|
|
31
32
|
to: flags.to,
|
|
32
33
|
cursor: flags.cursor,
|
|
33
34
|
limit: flags.limit,
|
|
35
|
+
...(!flags['legacy-charges'] ? { view: 'settlements' } : {}),
|
|
34
36
|
});
|
|
35
37
|
}
|
|
36
38
|
catch (error) {
|
|
37
39
|
this.handleApiError(error);
|
|
38
40
|
}
|
|
39
41
|
if (flags.json) {
|
|
40
|
-
this.log(JSON.stringify(events
|
|
42
|
+
this.log(JSON.stringify(events?.version === 1 && !flags['legacy-charges']
|
|
43
|
+
? { ...events, scopeWarning: 'This server only returned legacy service-charge records; their status and included allowance usage are not shown.' }
|
|
44
|
+
: events, null, 2));
|
|
41
45
|
return;
|
|
42
46
|
}
|
|
43
47
|
renderSkyCodeUsageEvents(events, (line) => this.log(line));
|
|
@@ -47,6 +51,12 @@ exports.default = BalanceUsageEvents;
|
|
|
47
51
|
function renderSkyCodeUsageEvents(events, log) {
|
|
48
52
|
log(`${auth_core_1.FIRST_PARTY_HARNESS.displayName} usage events · ${events.ownerType} ${events.ownerId}`);
|
|
49
53
|
log(` Window ${events.from} to ${events.to}`);
|
|
54
|
+
if (events.version === 1) {
|
|
55
|
+
log(' Legacy service-charge records only; status and final payment are not shown. Included allowance usage is not shown. Do not add this view to settlement totals.');
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
log(' Settled authorizations; legacy service-charge records are a separate overlapping view.');
|
|
59
|
+
}
|
|
50
60
|
if (events.items.length === 0) {
|
|
51
61
|
log(' No usage events in this window.');
|
|
52
62
|
return;
|
|
@@ -61,8 +71,25 @@ function renderSkyCodeUsageEvents(events, log) {
|
|
|
61
71
|
]
|
|
62
72
|
.filter(Boolean)
|
|
63
73
|
.join(' · ');
|
|
64
|
-
|
|
65
|
-
|
|
74
|
+
if (events.version === 2 && 'authorizationId' in item) {
|
|
75
|
+
const usage = item.usageMicros == null ? 'usage unknown' : `${item.usageMicros} customer_usage_micros`;
|
|
76
|
+
const balance = item.balanceMicros == null ? 'balance unknown' : `${(0, balance_1.formatMicros)(item.balanceMicros)} ${item.postpaid ? 'postpaid accrued' : 'balance'}`;
|
|
77
|
+
log(` ${item.settledAt} ${usage} · ${balance} ${providerModel}`);
|
|
78
|
+
log(` ${incurredBy || 'No run/session attribution'} · ${item.sourceType || 'source unknown'} · authorization ${item.authorizationId}`);
|
|
79
|
+
const extra = [item.sourceId ? `source ${item.sourceId}` : null,
|
|
80
|
+
item.dutyId ? `duty ${item.dutyId}` : null,
|
|
81
|
+
item.memberUserId ? `member ${item.memberUserId}` : null,
|
|
82
|
+
item.parentAuthorizationId ? `parent authorization ${item.parentAuthorizationId}` : null].filter(Boolean);
|
|
83
|
+
if (extra.length)
|
|
84
|
+
log(` ${extra.join(' · ')}`);
|
|
85
|
+
if (item.entitlementUsageMicros != null || item.degradedUsageMicros != null) {
|
|
86
|
+
log(` Included allowance ${item.entitlementUsageMicros ?? 'unknown'} · degraded allowance ${item.degradedUsageMicros ?? 'unknown'} customer_usage_micros`);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
else if ('chargeId' in item) {
|
|
90
|
+
log(` ${item.createdAt} ${(0, balance_1.formatMicros)(item.amountMicros)} ${providerModel}`);
|
|
91
|
+
log(` ${incurredBy || 'No run/session attribution'} · charge ${item.chargeId}`);
|
|
92
|
+
}
|
|
66
93
|
}
|
|
67
94
|
if (events.nextCursor) {
|
|
68
95
|
log(` Next cursor: ${events.nextCursor}`);
|
|
@@ -54,7 +54,7 @@ class CodeJobsShow extends base_command_1.BaseCommand {
|
|
|
54
54
|
line('PR:', task.prUrl);
|
|
55
55
|
line('Parent Task:', task.lineage?.taskId);
|
|
56
56
|
line('Task run:', task.lineage?.taskExecutionRunId);
|
|
57
|
-
line('
|
|
57
|
+
line('Duty:', task.lineage?.dutyId);
|
|
58
58
|
line('Parent run:', task.lineage?.autonomousRunId);
|
|
59
59
|
line('Preview:', task.previewUrl);
|
|
60
60
|
// Same sentence `machines hosted start` prints, from the snapshot the job
|
|
@@ -3,7 +3,7 @@ import { BaseCommand } from '../../base-command';
|
|
|
3
3
|
* `skrr compass archive <compass-id> --agent <id>`
|
|
4
4
|
*
|
|
5
5
|
* There is no hard delete, by design. A compass explains why an agent behaved
|
|
6
|
-
* the way it did, and destroying it would orphan every
|
|
6
|
+
* the way it did, and destroying it would orphan every duty, revision and
|
|
7
7
|
* audit row that cites its version. Archiving stops it being resolved at runtime
|
|
8
8
|
* while keeping the record readable.
|
|
9
9
|
*/
|
|
@@ -8,7 +8,7 @@ const compasses_1 = require("../../lib/compasses");
|
|
|
8
8
|
* `skrr compass archive <compass-id> --agent <id>`
|
|
9
9
|
*
|
|
10
10
|
* There is no hard delete, by design. A compass explains why an agent behaved
|
|
11
|
-
* the way it did, and destroying it would orphan every
|
|
11
|
+
* the way it did, and destroying it would orphan every duty, revision and
|
|
12
12
|
* audit row that cites its version. Archiving stops it being resolved at runtime
|
|
13
13
|
* while keeping the record readable.
|
|
14
14
|
*/
|
|
@@ -38,7 +38,7 @@ class CompassCreate extends base_command_1.BaseCommand {
|
|
|
38
38
|
|
|
39
39
|
${compass_body_help_1.COMPASS_BODY_HELP}
|
|
40
40
|
|
|
41
|
-
To govern a
|
|
41
|
+
To govern a Duty with this compass, put "compassId" in the Duty's --from-json create body (see: duties create --help). The binding is fixed at creation.`;
|
|
42
42
|
static examples = [
|
|
43
43
|
'<%= config.bin %> compass create --agent agent_abc --title "Production reliability" --domain reliability',
|
|
44
44
|
'<%= config.bin %> compass create --agent agent_abc --title "FinOps" --invariant "Cloud spend stays under $10k/mo"',
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
/**
|
|
3
|
-
* `skrr compass
|
|
3
|
+
* `skrr compass duties <compass-id> --agent <id>`
|
|
4
4
|
*
|
|
5
|
-
* The
|
|
6
|
-
* a `maintain`
|
|
7
|
-
* target changes what those
|
|
5
|
+
* The duties this compass governs. Useful before editing an invariant:
|
|
6
|
+
* a `maintain` duty is DERIVED from an invariant target, so changing the
|
|
7
|
+
* target changes what those duties watch.
|
|
8
8
|
*/
|
|
9
|
-
export default class
|
|
9
|
+
export default class CompassDuties extends BaseCommand {
|
|
10
10
|
static description: string;
|
|
11
11
|
static examples: string[];
|
|
12
12
|
static args: {
|
|
@@ -5,16 +5,16 @@ const base_command_1 = require("../../base-command");
|
|
|
5
5
|
const compasses_1 = require("../../lib/compasses");
|
|
6
6
|
const format_1 = require("../../lib/format");
|
|
7
7
|
/**
|
|
8
|
-
* `skrr compass
|
|
8
|
+
* `skrr compass duties <compass-id> --agent <id>`
|
|
9
9
|
*
|
|
10
|
-
* The
|
|
11
|
-
* a `maintain`
|
|
12
|
-
* target changes what those
|
|
10
|
+
* The duties this compass governs. Useful before editing an invariant:
|
|
11
|
+
* a `maintain` duty is DERIVED from an invariant target, so changing the
|
|
12
|
+
* target changes what those duties watch.
|
|
13
13
|
*/
|
|
14
|
-
class
|
|
15
|
-
static description = 'List the
|
|
14
|
+
class CompassDuties extends base_command_1.BaseCommand {
|
|
15
|
+
static description = 'List the duties governed by a compass';
|
|
16
16
|
static examples = [
|
|
17
|
-
'<%= config.bin %> compass
|
|
17
|
+
'<%= config.bin %> compass duties agch_abc123 --agent agent_xyz',
|
|
18
18
|
];
|
|
19
19
|
static args = {
|
|
20
20
|
compassId: core_1.Args.string({ ignoreStdin: true, description: 'Compass ID', required: true }),
|
|
@@ -25,10 +25,10 @@ class CompassCommitments extends base_command_1.BaseCommand {
|
|
|
25
25
|
};
|
|
26
26
|
async run() {
|
|
27
27
|
this.requireAuth();
|
|
28
|
-
const { args, flags } = await this.parse(
|
|
28
|
+
const { args, flags } = await this.parse(CompassDuties);
|
|
29
29
|
let response;
|
|
30
30
|
try {
|
|
31
|
-
response = await compasses_1.compassApi.
|
|
31
|
+
response = await compasses_1.compassApi.duties(args.compassId, { agentId: flags.agent });
|
|
32
32
|
}
|
|
33
33
|
catch (err) {
|
|
34
34
|
this.handleApiError(err);
|
|
@@ -50,23 +50,23 @@ class CompassCommitments extends base_command_1.BaseCommand {
|
|
|
50
50
|
const archived = status === 'archived';
|
|
51
51
|
if (rows.length === 0) {
|
|
52
52
|
this.log(archived
|
|
53
|
-
? 'No
|
|
54
|
-
: 'No
|
|
53
|
+
? 'No duties are bound to this compass.'
|
|
54
|
+
: 'No duties are governed by this compass.');
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
if (archived)
|
|
58
|
-
this.log((0, compasses_1.
|
|
58
|
+
this.log((0, compasses_1.describeBoundDuties)(rows.length, status));
|
|
59
59
|
(0, format_1.renderTable)(rows.map((row) => ({
|
|
60
60
|
id: String(row.id ?? ''),
|
|
61
61
|
title: String(row.title ?? ''),
|
|
62
62
|
kind: String(row.kind ?? 'achieve'),
|
|
63
63
|
status: String(row.status ?? ''),
|
|
64
64
|
})), [
|
|
65
|
-
{ key: 'id', header: '
|
|
65
|
+
{ key: 'id', header: 'DUTY' },
|
|
66
66
|
{ key: 'title', header: 'TITLE', maxWidth: 44 },
|
|
67
67
|
{ key: 'kind', header: 'KIND' },
|
|
68
68
|
{ key: 'status', header: 'STATUS' },
|
|
69
69
|
], (line) => this.log(line));
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
exports.default =
|
|
72
|
+
exports.default = CompassDuties;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
/**
|
|
3
3
|
* `skrr compass trace <compass-id> --agent <id>` — one causal view of the
|
|
4
|
-
* Compass revision chain and the
|
|
4
|
+
* Compass revision chain and the Duty work that used each revision.
|
|
5
5
|
*/
|
|
6
6
|
export default class CompassTrace extends BaseCommand {
|
|
7
7
|
static description: string;
|
|
@@ -5,10 +5,10 @@ const base_command_1 = require("../../base-command");
|
|
|
5
5
|
const compasses_1 = require("../../lib/compasses");
|
|
6
6
|
/**
|
|
7
7
|
* `skrr compass trace <compass-id> --agent <id>` — one causal view of the
|
|
8
|
-
* Compass revision chain and the
|
|
8
|
+
* Compass revision chain and the Duty work that used each revision.
|
|
9
9
|
*/
|
|
10
10
|
class CompassTrace extends base_command_1.BaseCommand {
|
|
11
|
-
static description = 'Show Compass revisions and the linked
|
|
11
|
+
static description = 'Show Compass revisions and the linked Duty checks, actions, runs, and work they influenced';
|
|
12
12
|
static examples = [
|
|
13
13
|
'<%= config.bin %> compass trace agch_abc123 --agent agent_xyz',
|
|
14
14
|
'<%= config.bin %> compass trace agch_abc123 --agent agent_xyz --limit 200 --json',
|
|
@@ -5,6 +5,7 @@ const core_1 = require("@oclif/core");
|
|
|
5
5
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
6
6
|
const base_command_1 = require("../../base-command");
|
|
7
7
|
const message_content_1 = require("../../lib/message-content");
|
|
8
|
+
const FORMAT_MESSAGE_LINES_RE_2 = /\s+/g;
|
|
8
9
|
const FORMAT_MESSAGE_LINES_RE = /\s+/g;
|
|
9
10
|
/**
|
|
10
11
|
* The lines `skrr convos messages` prints for one message row.
|
|
@@ -35,7 +36,7 @@ function formatMessageLines(m, options = {}) {
|
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
if (failure) {
|
|
38
|
-
const reason = failure.reason?.replace(
|
|
39
|
+
const reason = failure.reason?.replace(FORMAT_MESSAGE_LINES_RE_2, ' ').trim();
|
|
39
40
|
lines.push(` failed: ${reason || 'no reason was recorded on the message'}`);
|
|
40
41
|
}
|
|
41
42
|
if (options.metadata && m.metadata && Object.keys(m.metadata).length > 0) {
|
|
@@ -22,7 +22,7 @@ export declare function configuredOclifPluginAvailability(root: string): OclifPl
|
|
|
22
22
|
* while `handleApiError` two files away answers a 401 with "Run `skrr login`"
|
|
23
23
|
* (OSK-5088).
|
|
24
24
|
*
|
|
25
|
-
* Shaped after `
|
|
25
|
+
* Shaped after `duties preflight`, which already does this well in the
|
|
26
26
|
* same CLI: a named question per check, a mark, and the remedy beside the
|
|
27
27
|
* failure. `--json` is unchanged.
|
|
28
28
|
*/
|
package/dist/commands/doctor.js
CHANGED
|
@@ -131,7 +131,7 @@ function configuredOclifPluginAvailability(root) {
|
|
|
131
131
|
* while `handleApiError` two files away answers a 401 with "Run `skrr login`"
|
|
132
132
|
* (OSK-5088).
|
|
133
133
|
*
|
|
134
|
-
* Shaped after `
|
|
134
|
+
* Shaped after `duties preflight`, which already does this well in the
|
|
135
135
|
* same CLI: a named question per check, a mark, and the remedy beside the
|
|
136
136
|
* failure. `--json` is unchanged.
|
|
137
137
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
|
-
import { type
|
|
2
|
+
import { type DutyAccountingReadout } from '../../lib/duties';
|
|
3
3
|
/**
|
|
4
|
-
* `skrr
|
|
4
|
+
* `skrr duties accounting <id>` — the allowance-accounting SHADOW readout.
|
|
5
5
|
*
|
|
6
6
|
* Allowance accounting replaces "count the attempts" with "count what the
|
|
7
7
|
* attempts advanced", and it may only be activated once there is enough CLOSED
|
|
@@ -13,11 +13,11 @@ import { type CommitmentAccountingReadout } from '../../lib/commitments';
|
|
|
13
13
|
* derives, and — the field that matters — whether it can activate yet and what
|
|
14
14
|
* is blocking it.
|
|
15
15
|
*
|
|
16
|
-
* WORKSPACE-scoped despite taking a
|
|
17
|
-
* closed daily metric in the
|
|
18
|
-
* per-
|
|
16
|
+
* WORKSPACE-scoped despite taking a duty id: the readout aggregates every
|
|
17
|
+
* closed daily metric in the duty's workspace. `duties cost` is the
|
|
18
|
+
* per-duty spend question.
|
|
19
19
|
*/
|
|
20
|
-
export default class
|
|
20
|
+
export default class DutiesAccounting extends BaseCommand {
|
|
21
21
|
static description: string;
|
|
22
22
|
static examples: string[];
|
|
23
23
|
static args: {
|
|
@@ -36,4 +36,4 @@ export default class CommitmentsAccounting extends BaseCommand {
|
|
|
36
36
|
* `canActivate: false` is running on the old attempt accounting and has no
|
|
37
37
|
* other surface that says so.
|
|
38
38
|
*/
|
|
39
|
-
export declare function formatAccountingReadout(readout:
|
|
39
|
+
export declare function formatAccountingReadout(readout: DutyAccountingReadout): string[];
|
|
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.formatAccountingReadout = formatAccountingReadout;
|
|
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 cost_1 = require("./cost");
|
|
8
8
|
/**
|
|
9
|
-
* `skrr
|
|
9
|
+
* `skrr duties accounting <id>` — the allowance-accounting SHADOW readout.
|
|
10
10
|
*
|
|
11
11
|
* Allowance accounting replaces "count the attempts" with "count what the
|
|
12
12
|
* attempts advanced", and it may only be activated once there is enough CLOSED
|
|
@@ -18,28 +18,28 @@ const cost_1 = require("./cost");
|
|
|
18
18
|
* derives, and — the field that matters — whether it can activate yet and what
|
|
19
19
|
* is blocking it.
|
|
20
20
|
*
|
|
21
|
-
* WORKSPACE-scoped despite taking a
|
|
22
|
-
* closed daily metric in the
|
|
23
|
-
* per-
|
|
21
|
+
* WORKSPACE-scoped despite taking a duty id: the readout aggregates every
|
|
22
|
+
* closed daily metric in the duty's workspace. `duties cost` is the
|
|
23
|
+
* per-duty spend question.
|
|
24
24
|
*/
|
|
25
|
-
class
|
|
25
|
+
class DutiesAccounting extends base_command_1.BaseCommand {
|
|
26
26
|
static description = "Show the workspace's allowance-accounting shadow readout and whether it can activate";
|
|
27
27
|
static examples = [
|
|
28
|
-
'<%= config.bin %>
|
|
29
|
-
'<%= config.bin %>
|
|
28
|
+
'<%= config.bin %> duties accounting obj_abc123',
|
|
29
|
+
'<%= config.bin %> duties accounting obj_abc123 --json',
|
|
30
30
|
];
|
|
31
31
|
static args = {
|
|
32
|
-
id: core_1.Args.string({ description: '
|
|
32
|
+
id: core_1.Args.string({ description: 'Duty ID', required: true, ignoreStdin: true }),
|
|
33
33
|
};
|
|
34
34
|
static flags = {
|
|
35
35
|
json: core_1.Flags.boolean({ description: 'Output the complete readout as JSON' }),
|
|
36
36
|
};
|
|
37
37
|
async run() {
|
|
38
38
|
this.requireAuth();
|
|
39
|
-
const { args, flags } = await this.parse(
|
|
39
|
+
const { args, flags } = await this.parse(DutiesAccounting);
|
|
40
40
|
let readout;
|
|
41
41
|
try {
|
|
42
|
-
readout = await
|
|
42
|
+
readout = await duties_1.dutyApi.accountingReadout(args.id);
|
|
43
43
|
}
|
|
44
44
|
catch (err) {
|
|
45
45
|
this.handleApiError(err);
|
|
@@ -52,7 +52,7 @@ class CommitmentsAccounting extends base_command_1.BaseCommand {
|
|
|
52
52
|
this.log(line);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
exports.default =
|
|
55
|
+
exports.default = DutiesAccounting;
|
|
56
56
|
/**
|
|
57
57
|
* Pure renderer for the accounting readout.
|
|
58
58
|
*
|
|
@@ -89,7 +89,7 @@ function formatAccountingReadout(readout) {
|
|
|
89
89
|
lines.push(`Advancing checks: ${Number(readout.advancements || 0)}`);
|
|
90
90
|
lines.push(` advancement kinds, net of self-minted: ${Number(readout.netAdvancements || 0)}`);
|
|
91
91
|
lines.push(`Divergence: ${Number(readout.allowanceAttemptDivergence || 0)}`);
|
|
92
|
-
// Same attribution caveat as `
|
|
92
|
+
// Same attribution caveat as `duties cost`: a bare dollar figure lets
|
|
93
93
|
// a priced window and an unpriced one read alike (OSK-10940).
|
|
94
94
|
const costStatus = readout.costStatus ?? 'not_applicable';
|
|
95
95
|
const costCaveat = {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
/**
|
|
3
|
-
* `skrr
|
|
3
|
+
* `skrr duties action-history <id>` — what the duty DID, as opposed to
|
|
4
4
|
* what it decided.
|
|
5
5
|
*
|
|
6
6
|
* `checks` shows postures and open loops; this shows the routed actions those
|
|
7
7
|
* postures produced, including the ones that were gated, deferred, or refused
|
|
8
8
|
* by the Attention Contract.
|
|
9
9
|
*/
|
|
10
|
-
export default class
|
|
10
|
+
export default class DutiesActionHistory extends BaseCommand {
|
|
11
11
|
static description: string;
|
|
12
12
|
static examples: string[];
|
|
13
13
|
static args: {
|
|
14
|
-
|
|
14
|
+
dutyId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
15
15
|
};
|
|
16
16
|
static flags: {
|
|
17
17
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
@@ -2,24 +2,24 @@
|
|
|
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
|
-
const
|
|
5
|
+
const duties_1 = require("../../lib/duties");
|
|
6
|
+
const duty_ledgers_1 = require("../../lib/duty-ledgers");
|
|
7
7
|
/**
|
|
8
|
-
* `skrr
|
|
8
|
+
* `skrr duties action-history <id>` — what the duty DID, as opposed to
|
|
9
9
|
* what it decided.
|
|
10
10
|
*
|
|
11
11
|
* `checks` shows postures and open loops; this shows the routed actions those
|
|
12
12
|
* postures produced, including the ones that were gated, deferred, or refused
|
|
13
13
|
* by the Attention Contract.
|
|
14
14
|
*/
|
|
15
|
-
class
|
|
16
|
-
static description = "List the actions this
|
|
15
|
+
class DutiesActionHistory extends base_command_1.BaseCommand {
|
|
16
|
+
static description = "List the actions this duty's checks actually routed";
|
|
17
17
|
static examples = [
|
|
18
|
-
'<%= config.bin %>
|
|
19
|
-
'<%= config.bin %>
|
|
18
|
+
'<%= config.bin %> duties action-history obj_abc123',
|
|
19
|
+
'<%= config.bin %> duties action-history obj_abc123 --limit 50 --json',
|
|
20
20
|
];
|
|
21
21
|
static args = {
|
|
22
|
-
|
|
22
|
+
dutyId: core_1.Args.string({ ignoreStdin: true, description: 'Duty ID', required: true }),
|
|
23
23
|
};
|
|
24
24
|
static flags = {
|
|
25
25
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
@@ -30,10 +30,10 @@ class CommitmentsActionHistory extends base_command_1.BaseCommand {
|
|
|
30
30
|
};
|
|
31
31
|
async run() {
|
|
32
32
|
this.requireAuth();
|
|
33
|
-
const { args, flags } = await this.parse(
|
|
33
|
+
const { args, flags } = await this.parse(DutiesActionHistory);
|
|
34
34
|
let response;
|
|
35
35
|
try {
|
|
36
|
-
response = await
|
|
36
|
+
response = await duties_1.dutyApi.actionHistory(args.dutyId, {
|
|
37
37
|
limit: flags.limit,
|
|
38
38
|
cursor: flags.cursor,
|
|
39
39
|
});
|
|
@@ -46,7 +46,7 @@ class CommitmentsActionHistory extends base_command_1.BaseCommand {
|
|
|
46
46
|
this.log(JSON.stringify(response, null, 2));
|
|
47
47
|
return;
|
|
48
48
|
}
|
|
49
|
-
(0,
|
|
49
|
+
(0, duty_ledgers_1.renderActionHistory)(response, (line) => this.log(line));
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
exports.default =
|
|
52
|
+
exports.default = DutiesActionHistory;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
/** Read the exact Action Bundle execution receipt before any retry. */
|
|
3
|
-
export default class
|
|
3
|
+
export default class DutiesActionProposal extends BaseCommand {
|
|
4
4
|
static description: string;
|
|
5
5
|
static args: {
|
|
6
|
-
|
|
6
|
+
dutyId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
7
|
proposalId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
8
8
|
};
|
|
9
9
|
static flags: {
|
|
@@ -2,12 +2,12 @@
|
|
|
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
|
/** Read the exact Action Bundle execution receipt before any retry. */
|
|
7
|
-
class
|
|
7
|
+
class DutiesActionProposal extends base_command_1.BaseCommand {
|
|
8
8
|
static description = 'Show one frozen Action Bundle and its execution receipt';
|
|
9
9
|
static args = {
|
|
10
|
-
|
|
10
|
+
dutyId: core_1.Args.string({ ignoreStdin: true, description: 'Duty ID', required: true }),
|
|
11
11
|
proposalId: core_1.Args.string({
|
|
12
12
|
ignoreStdin: true,
|
|
13
13
|
description: 'Action Proposal ID',
|
|
@@ -17,9 +17,9 @@ class CommitmentsActionProposal extends base_command_1.BaseCommand {
|
|
|
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(
|
|
20
|
+
const { args, flags } = await this.parse(DutiesActionProposal);
|
|
21
21
|
try {
|
|
22
|
-
const result = await
|
|
22
|
+
const result = await duties_1.dutyApi.actionProposal(args.dutyId, args.proposalId);
|
|
23
23
|
if (flags.json)
|
|
24
24
|
this.printJsonResult(result);
|
|
25
25
|
else {
|
|
@@ -36,4 +36,4 @@ class CommitmentsActionProposal extends base_command_1.BaseCommand {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
exports.default =
|
|
39
|
+
exports.default = DutiesActionProposal;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseCommand } from '../../../base-command';
|
|
2
|
-
export default class
|
|
2
|
+
export default class DutiesActionProposalsDecide extends BaseCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static args: {
|
|
5
|
-
|
|
5
|
+
dutyId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
6
|
proposalId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
7
|
};
|
|
8
8
|
static flags: {
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const core_1 = require("@oclif/core");
|
|
4
4
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
5
|
const base_command_1 = require("../../../base-command");
|
|
6
|
-
const
|
|
7
|
-
class
|
|
6
|
+
const duties_1 = require("../../../lib/duties");
|
|
7
|
+
class DutiesActionProposalsDecide extends base_command_1.BaseCommand {
|
|
8
8
|
static description = 'Approve & run, or reject, one frozen Action Bundle';
|
|
9
9
|
static args = {
|
|
10
|
-
|
|
10
|
+
dutyId: core_1.Args.string({ description: 'Duty ID', required: true, ignoreStdin: true }),
|
|
11
11
|
proposalId: core_1.Args.string({
|
|
12
12
|
description: 'Action Proposal ID',
|
|
13
13
|
required: true,
|
|
@@ -27,11 +27,11 @@ class CommitmentsActionProposalsDecide extends base_command_1.BaseCommand {
|
|
|
27
27
|
};
|
|
28
28
|
async run() {
|
|
29
29
|
this.requireAuth();
|
|
30
|
-
const { args, flags } = await this.parse(
|
|
30
|
+
const { args, flags } = await this.parse(DutiesActionProposalsDecide);
|
|
31
31
|
const decision = flags.decision;
|
|
32
32
|
let result;
|
|
33
33
|
try {
|
|
34
|
-
const listed = await
|
|
34
|
+
const listed = await duties_1.dutyApi.actionProposals(args.dutyId, { limit: 200 });
|
|
35
35
|
const proposal = listed.data.find((item) => item.id === args.proposalId);
|
|
36
36
|
if (!proposal)
|
|
37
37
|
this.error('Action Bundle not found.');
|
|
@@ -41,7 +41,7 @@ class CommitmentsActionProposalsDecide extends base_command_1.BaseCommand {
|
|
|
41
41
|
if (!flags.json && proposal.snapshotDigest) {
|
|
42
42
|
this.log(`Action Bundle digest: ${proposal.snapshotDigest}`);
|
|
43
43
|
}
|
|
44
|
-
const decided = await
|
|
44
|
+
const decided = await duties_1.dutyApi.decideActionProposal(args.dutyId, args.proposalId, decision, {
|
|
45
45
|
snapshotDigest: proposal.snapshotDigest,
|
|
46
46
|
bundleVersion: proposal.bundleVersion,
|
|
47
47
|
...(flags.reason ? { reason: flags.reason } : {}),
|
|
@@ -50,7 +50,7 @@ class CommitmentsActionProposalsDecide extends base_command_1.BaseCommand {
|
|
|
50
50
|
: {}),
|
|
51
51
|
});
|
|
52
52
|
const execution = decision === 'approve' && decided.status === 'approved'
|
|
53
|
-
? await
|
|
53
|
+
? await duties_1.dutyApi.executeActionProposal(args.dutyId, args.proposalId, proposal.snapshotDigest && Number.isInteger(proposal.bundleVersion)
|
|
54
54
|
? {
|
|
55
55
|
// Keep the automatic hand-off fenced to the same Action
|
|
56
56
|
// Bundle the human decision just approved.
|
|
@@ -74,4 +74,4 @@ class CommitmentsActionProposalsDecide extends base_command_1.BaseCommand {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
exports.default =
|
|
77
|
+
exports.default = DutiesActionProposalsDecide;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BaseCommand } from '../../../base-command';
|
|
2
|
-
export default class
|
|
2
|
+
export default class DutiesActionProposalsExecute extends BaseCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static args: {
|
|
5
|
-
|
|
5
|
+
dutyId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
6
|
proposalId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
7
|
};
|
|
8
8
|
static flags: {
|
|
@@ -2,11 +2,11 @@
|
|
|
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 DutiesActionProposalsExecute extends base_command_1.BaseCommand {
|
|
7
7
|
static description = 'Nudge an approved Action Bundle now (recovery continues automatically)';
|
|
8
8
|
static args = {
|
|
9
|
-
|
|
9
|
+
dutyId: core_1.Args.string({ description: 'Duty ID', required: true, ignoreStdin: true }),
|
|
10
10
|
proposalId: core_1.Args.string({
|
|
11
11
|
description: 'Action Proposal ID',
|
|
12
12
|
required: true,
|
|
@@ -16,17 +16,17 @@ class CommitmentsActionProposalsExecute extends base_command_1.BaseCommand {
|
|
|
16
16
|
static flags = { json: core_1.Flags.boolean({ description: 'Output as JSON' }) };
|
|
17
17
|
async run() {
|
|
18
18
|
this.requireAuth();
|
|
19
|
-
const { args, flags } = await this.parse(
|
|
19
|
+
const { args, flags } = await this.parse(DutiesActionProposalsExecute);
|
|
20
20
|
let result;
|
|
21
21
|
try {
|
|
22
22
|
// Read the frozen bundle first. The server compares both coordinates in
|
|
23
23
|
// its claim CAS, so a re-proposed bundle cannot inherit this nudge.
|
|
24
|
-
const inspected = await
|
|
24
|
+
const inspected = await duties_1.dutyApi.actionProposal(args.dutyId, args.proposalId);
|
|
25
25
|
const proposal = inspected.proposal;
|
|
26
26
|
if (!proposal || typeof proposal.bundleVersion !== 'number' || typeof proposal.snapshotDigest !== 'string') {
|
|
27
27
|
throw new Error('The Action Bundle inspection did not include its reviewed revision.');
|
|
28
28
|
}
|
|
29
|
-
result = await
|
|
29
|
+
result = await duties_1.dutyApi.executeActionProposal(args.dutyId, args.proposalId, {
|
|
30
30
|
expectedBundleVersion: proposal.bundleVersion,
|
|
31
31
|
expectedSnapshotDigest: proposal.snapshotDigest,
|
|
32
32
|
});
|
|
@@ -40,4 +40,4 @@ class CommitmentsActionProposalsExecute extends base_command_1.BaseCommand {
|
|
|
40
40
|
this.log(`Action Bundle is ${String(result.status || 'queued')}.`);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
exports.default =
|
|
43
|
+
exports.default = DutiesActionProposalsExecute;
|