@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,4 +1,13 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
|
+
/**
|
|
3
|
+
* Usage for one harness, or the rollup across all of them.
|
|
4
|
+
*
|
|
5
|
+
* ONE command over two endpoints, selected by whether an id was given, because
|
|
6
|
+
* "how much did this cost" is one question the caller asks at two scopes. The
|
|
7
|
+
* web makes the same pairing (`usage(id)` and `fleetUsage`).
|
|
8
|
+
*/
|
|
9
|
+
/** Two decimals is how money is read; the API sends full float precision. */
|
|
10
|
+
export declare function usageCost(row: UsageRow): string;
|
|
2
11
|
export type UsageRow = {
|
|
3
12
|
/** Fleet rollup only — one row per harness. */
|
|
4
13
|
harnessId?: string;
|
|
@@ -14,6 +23,8 @@ export type UsageRow = {
|
|
|
14
23
|
provider?: string;
|
|
15
24
|
sessions?: number;
|
|
16
25
|
totalCostUsd?: number;
|
|
26
|
+
costReportedSessions?: number | null;
|
|
27
|
+
costCoverageVerified?: boolean | null;
|
|
17
28
|
inputTokens?: number;
|
|
18
29
|
outputTokens?: number;
|
|
19
30
|
cachedInputTokens?: number;
|
|
@@ -47,6 +58,14 @@ export interface UsageTable {
|
|
|
47
58
|
maxWidth?: number;
|
|
48
59
|
}[];
|
|
49
60
|
}
|
|
61
|
+
export declare const HARNESS_USAGE_COVERAGE: {
|
|
62
|
+
scope: string;
|
|
63
|
+
explanation: string;
|
|
64
|
+
};
|
|
65
|
+
/** Keep the server response intact and add a machine-readable CLI explanation. */
|
|
66
|
+
export declare function withUsageCoverage<T extends object>(report: T): T & {
|
|
67
|
+
cliCoverage: typeof HARNESS_USAGE_COVERAGE;
|
|
68
|
+
};
|
|
50
69
|
/**
|
|
51
70
|
* The rows differ as much as the two envelopes do.
|
|
52
71
|
*
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HARNESS_USAGE_COVERAGE = void 0;
|
|
4
|
+
exports.usageCost = usageCost;
|
|
3
5
|
exports.selectUsageRows = selectUsageRows;
|
|
4
6
|
exports.usageRowHarnessCell = usageRowHarnessCell;
|
|
7
|
+
exports.withUsageCoverage = withUsageCoverage;
|
|
5
8
|
exports.buildUsageTable = buildUsageTable;
|
|
6
9
|
const core_1 = require("@oclif/core");
|
|
10
|
+
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
7
11
|
const base_command_1 = require("../../base-command");
|
|
8
12
|
const format_1 = require("../../lib/format");
|
|
9
13
|
const harnesses_1 = require("../../lib/harnesses");
|
|
@@ -15,9 +19,13 @@ const harnesses_1 = require("../../lib/harnesses");
|
|
|
15
19
|
* web makes the same pairing (`usage(id)` and `fleetUsage`).
|
|
16
20
|
*/
|
|
17
21
|
/** Two decimals is how money is read; the API sends full float precision. */
|
|
18
|
-
function
|
|
19
|
-
const
|
|
20
|
-
|
|
22
|
+
function usageCost(row) {
|
|
23
|
+
const status = (0, data_provider_1.harnessCostReporting)(row);
|
|
24
|
+
if (status === 'idle' || status === 'not_reported' || status === 'unknown' ||
|
|
25
|
+
typeof row.totalCostUsd !== 'number' || !Number.isFinite(row.totalCostUsd))
|
|
26
|
+
return '—';
|
|
27
|
+
const value = status === 'partial' ? Math.floor(row.totalCostUsd * 100) / 100 : row.totalCostUsd;
|
|
28
|
+
return `$${value.toFixed(2)}${status === 'partial' ? '+' : ''}`;
|
|
21
29
|
}
|
|
22
30
|
/** Thousands separators — these run to eight digits and are compared by eye. */
|
|
23
31
|
function count(value) {
|
|
@@ -56,6 +64,14 @@ const SHARED_COLUMNS = [
|
|
|
56
64
|
{ key: 'cached', header: 'CACHED' },
|
|
57
65
|
{ key: 'cacheWrite', header: 'CACHE WRITE' },
|
|
58
66
|
];
|
|
67
|
+
exports.HARNESS_USAGE_COVERAGE = {
|
|
68
|
+
scope: 'skrr_recorded_harness_usage',
|
|
69
|
+
explanation: 'Only usage recorded by Skrr for these harnesses is shown. Other activity or unreported usage may be absent; this is not a provider bill.',
|
|
70
|
+
};
|
|
71
|
+
/** Keep the server response intact and add a machine-readable CLI explanation. */
|
|
72
|
+
function withUsageCoverage(report) {
|
|
73
|
+
return { cliCoverage: exports.HARNESS_USAGE_COVERAGE, ...report };
|
|
74
|
+
}
|
|
59
75
|
/**
|
|
60
76
|
* The rows differ as much as the two envelopes do.
|
|
61
77
|
*
|
|
@@ -73,7 +89,7 @@ function buildUsageTable(rows, perHarness) {
|
|
|
73
89
|
const shared = (r) => ({
|
|
74
90
|
provider: (0, format_1.formatCell)(r.provider),
|
|
75
91
|
sessions: count(r.sessions),
|
|
76
|
-
cost:
|
|
92
|
+
cost: usageCost(r),
|
|
77
93
|
in: count(r.inputTokens),
|
|
78
94
|
out: count(r.outputTokens),
|
|
79
95
|
cached: count(r.cachedInputTokens),
|
|
@@ -100,7 +116,7 @@ function buildUsageTable(rows, perHarness) {
|
|
|
100
116
|
};
|
|
101
117
|
}
|
|
102
118
|
class HarnessesUsage extends base_command_1.BaseCommand {
|
|
103
|
-
static description = '
|
|
119
|
+
static description = 'Skrr-recorded usage for one harness or the fleet; not a complete provider bill';
|
|
104
120
|
static examples = [
|
|
105
121
|
'<%= config.bin %> harnesses usage',
|
|
106
122
|
'<%= config.bin %> harnesses usage <harness-id>',
|
|
@@ -124,7 +140,7 @@ class HarnessesUsage extends base_command_1.BaseCommand {
|
|
|
124
140
|
this.handleApiError(err);
|
|
125
141
|
}
|
|
126
142
|
if (flags.json) {
|
|
127
|
-
this.log(JSON.stringify(report, null, 2));
|
|
143
|
+
this.log(JSON.stringify(withUsageCoverage(report ?? {}), null, 2));
|
|
128
144
|
return;
|
|
129
145
|
}
|
|
130
146
|
// The two endpoints answer in DIFFERENT shapes: the fleet rollup sends
|
|
@@ -136,6 +152,7 @@ class HarnessesUsage extends base_command_1.BaseCommand {
|
|
|
136
152
|
const totals = payload?.grandTotals ?? payload?.totals;
|
|
137
153
|
if (rows.length === 0) {
|
|
138
154
|
this.log(args.harness ? 'No usage recorded for this harness.' : 'No usage recorded.');
|
|
155
|
+
this.log(exports.HARNESS_USAGE_COVERAGE.explanation);
|
|
139
156
|
return;
|
|
140
157
|
}
|
|
141
158
|
if (args.harness) {
|
|
@@ -146,7 +163,7 @@ class HarnessesUsage extends base_command_1.BaseCommand {
|
|
|
146
163
|
(0, format_1.renderTable)(table.rows, table.columns, (line) => this.log(line));
|
|
147
164
|
if (totals) {
|
|
148
165
|
this.log('');
|
|
149
|
-
this.log(`Total: ${count(totals.sessions)} sessions · ${
|
|
166
|
+
this.log(`Total: ${count(totals.sessions)} sessions · ${usageCost(totals)} · ` +
|
|
150
167
|
`${count(totals.inputTokens)} in / ${count(totals.outputTokens)} out / ` +
|
|
151
168
|
`${count(totals.cachedInputTokens)} cached / ${count(totals.cacheCreationInputTokens)} cache write`);
|
|
152
169
|
// SAY WHICH PROVIDERS THAT TOTAL COVERS.
|
|
@@ -167,6 +184,9 @@ class HarnessesUsage extends base_command_1.BaseCommand {
|
|
|
167
184
|
'This is NOT necessarily your whole account.');
|
|
168
185
|
}
|
|
169
186
|
}
|
|
187
|
+
this.log('');
|
|
188
|
+
this.log('Cost: — means unknown, not reported, or no activity; + means a lower bound.');
|
|
189
|
+
this.log(exports.HARNESS_USAGE_COVERAGE.explanation);
|
|
170
190
|
}
|
|
171
191
|
}
|
|
172
192
|
exports.default = HarnessesUsage;
|
|
@@ -2,7 +2,7 @@ import { BaseCommand } from '../../base-command';
|
|
|
2
2
|
/**
|
|
3
3
|
* `skrr initiatives list` — what your agents are waiting on you for.
|
|
4
4
|
*
|
|
5
|
-
* A Meta
|
|
5
|
+
* A Meta Duty proposal lands here and stays until the owner decides, so
|
|
6
6
|
* this is the queue that tells you whether the proactive layer is producing
|
|
7
7
|
* anything at all.
|
|
8
8
|
*/
|
|
@@ -7,7 +7,7 @@ const initiatives_1 = require("../../lib/initiatives");
|
|
|
7
7
|
/**
|
|
8
8
|
* `skrr initiatives list` — what your agents are waiting on you for.
|
|
9
9
|
*
|
|
10
|
-
* A Meta
|
|
10
|
+
* A Meta Duty proposal lands here and stays until the owner decides, so
|
|
11
11
|
* this is the queue that tells you whether the proactive layer is producing
|
|
12
12
|
* anything at all.
|
|
13
13
|
*/
|
|
@@ -3,7 +3,7 @@ import { BaseCommand } from '../../base-command';
|
|
|
3
3
|
* `skrr measures create` — declare what should move.
|
|
4
4
|
*
|
|
5
5
|
* `--direction` is stored, never inferred: "keep error rate at zero" and "drive
|
|
6
|
-
* error rate to zero" carry identical numbers and are different
|
|
6
|
+
* error rate to zero" carry identical numbers and are different duties.
|
|
7
7
|
*/
|
|
8
8
|
export default class MeasuresCreate extends BaseCommand {
|
|
9
9
|
static description: string;
|
|
@@ -18,7 +18,7 @@ export default class MeasuresCreate extends BaseCommand {
|
|
|
18
18
|
baseline: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
19
|
target: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
20
|
agent: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
-
|
|
21
|
+
duty: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
22
|
};
|
|
23
23
|
run(): Promise<void>;
|
|
24
24
|
}
|
|
@@ -7,7 +7,7 @@ const measures_1 = require("../../lib/measures");
|
|
|
7
7
|
* `skrr measures create` — declare what should move.
|
|
8
8
|
*
|
|
9
9
|
* `--direction` is stored, never inferred: "keep error rate at zero" and "drive
|
|
10
|
-
* error rate to zero" carry identical numbers and are different
|
|
10
|
+
* error rate to zero" carry identical numbers and are different duties.
|
|
11
11
|
*/
|
|
12
12
|
class MeasuresCreate extends base_command_1.BaseCommand {
|
|
13
13
|
static description = 'Create a measure';
|
|
@@ -29,7 +29,7 @@ class MeasuresCreate extends base_command_1.BaseCommand {
|
|
|
29
29
|
baseline: core_1.Flags.string({ description: 'Starting value', required: true }),
|
|
30
30
|
target: core_1.Flags.string({ description: 'Target value' }),
|
|
31
31
|
agent: core_1.Flags.string({ description: 'Attribute to this agent' }),
|
|
32
|
-
|
|
32
|
+
duty: core_1.Flags.string({ description: 'Attribute to this duty' }),
|
|
33
33
|
};
|
|
34
34
|
async run() {
|
|
35
35
|
this.requireAuth();
|
|
@@ -51,8 +51,8 @@ class MeasuresCreate extends base_command_1.BaseCommand {
|
|
|
51
51
|
direction: flags.direction,
|
|
52
52
|
baseline: { value: baseline },
|
|
53
53
|
...(target !== undefined ? { target: { value: target } } : {}),
|
|
54
|
-
...(flags.agent || flags.
|
|
55
|
-
? { attribution: { agentId: flags.agent,
|
|
54
|
+
...(flags.agent || flags.duty
|
|
55
|
+
? { attribution: { agentId: flags.agent, dutyId: flags.duty } }
|
|
56
56
|
: {}),
|
|
57
57
|
});
|
|
58
58
|
if (flags.json) {
|
|
@@ -6,7 +6,7 @@ export default class MeasuresList extends BaseCommand {
|
|
|
6
6
|
static flags: {
|
|
7
7
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
8
8
|
agent: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
-
|
|
9
|
+
duty: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
10
|
status: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
11
|
};
|
|
12
12
|
run(): Promise<void>;
|
|
@@ -15,7 +15,7 @@ class MeasuresList extends base_command_1.BaseCommand {
|
|
|
15
15
|
static flags = {
|
|
16
16
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
17
17
|
agent: core_1.Flags.string({ description: 'Filter by attributed agent ID' }),
|
|
18
|
-
|
|
18
|
+
duty: core_1.Flags.string({ description: 'Filter by duty ID' }),
|
|
19
19
|
status: core_1.Flags.string({
|
|
20
20
|
description: 'Filter by status',
|
|
21
21
|
options: ['active', 'achieved', 'abandoned', 'archived'],
|
|
@@ -26,7 +26,7 @@ class MeasuresList extends base_command_1.BaseCommand {
|
|
|
26
26
|
const { flags } = await this.parse(MeasuresList);
|
|
27
27
|
const response = await measures_1.measureApi.list((0, triggers_1.withQuery)('/api/measures', {
|
|
28
28
|
agentId: flags.agent,
|
|
29
|
-
|
|
29
|
+
dutyId: flags.duty,
|
|
30
30
|
status: flags.status,
|
|
31
31
|
}));
|
|
32
32
|
if (flags.json) {
|
|
@@ -18,7 +18,10 @@ class MemoryTopicsCreate extends scoped_memory_command_1.ScopedMemoryCommand {
|
|
|
18
18
|
static description = 'Create a versioned semantic Memory topic';
|
|
19
19
|
static flags = {
|
|
20
20
|
...scoped_memory_command_1.mutationFlags,
|
|
21
|
-
path: core_1.Flags.string({
|
|
21
|
+
path: core_1.Flags.string({
|
|
22
|
+
required: true,
|
|
23
|
+
description: 'Absolute Memory path beginning with /, for example /people/alex',
|
|
24
|
+
}),
|
|
22
25
|
content: core_1.Flags.string({ required: true }),
|
|
23
26
|
title: core_1.Flags.string(),
|
|
24
27
|
kind: core_1.Flags.string({
|
|
@@ -15,7 +15,7 @@ const HOUR_MS = 60 * 60 * 1000;
|
|
|
15
15
|
* `skrr northstars governance configure`.
|
|
16
16
|
*/
|
|
17
17
|
class NorthstarsCreate extends base_command_1.BaseCommand {
|
|
18
|
-
static description = `Create a northstar (the portfolio layer above
|
|
18
|
+
static description = `Create a northstar (the portfolio layer above duties)\n\n${northstars_1.NORTHSTAR_WORKSPACE_CREATE_HELP}`;
|
|
19
19
|
static examples = [
|
|
20
20
|
'<%= config.bin %> northstars create --title "Reach $10M ARR"',
|
|
21
21
|
'<%= config.bin %> northstars create --title "Reliability" --tier critical --max-active 5 --review-interval-hours 24',
|
|
@@ -28,11 +28,11 @@ class NorthstarsCreate extends base_command_1.BaseCommand {
|
|
|
28
28
|
tier: core_1.Flags.string({ description: 'Priority tier', options: [...northstars_1.NORTHSTAR_PRIORITY_TIERS] }),
|
|
29
29
|
weight: core_1.Flags.integer({ description: 'Priority weight (0..100)', min: 0, max: 100 }),
|
|
30
30
|
'total-weight': core_1.Flags.integer({
|
|
31
|
-
description: 'Attention budget to distribute across
|
|
31
|
+
description: 'Attention budget to distribute across duties',
|
|
32
32
|
min: 0,
|
|
33
33
|
}),
|
|
34
34
|
'max-active': core_1.Flags.integer({
|
|
35
|
-
description: 'Soft cap on simultaneously active
|
|
35
|
+
description: 'Soft cap on simultaneously active duties (0 = no cap)',
|
|
36
36
|
min: 0,
|
|
37
37
|
}),
|
|
38
38
|
goal: core_1.Flags.string({
|
|
@@ -68,7 +68,7 @@ class NorthstarsCreate extends base_command_1.BaseCommand {
|
|
|
68
68
|
if (flags['total-weight'] !== undefined || flags['max-active'] !== undefined) {
|
|
69
69
|
body.attentionBudget = {
|
|
70
70
|
...(flags['total-weight'] !== undefined ? { totalWeight: flags['total-weight'] } : {}),
|
|
71
|
-
...(flags['max-active'] !== undefined ? {
|
|
71
|
+
...(flags['max-active'] !== undefined ? { maxActiveDuties: flags['max-active'] } : {}),
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
if (flags.goal)
|
|
@@ -2,12 +2,12 @@ import { BaseCommand } from '../../base-command';
|
|
|
2
2
|
/**
|
|
3
3
|
* `skrr northstars delete <id>` — archive a northstar.
|
|
4
4
|
*
|
|
5
|
-
* The
|
|
5
|
+
* The duties under it KEEP RUNNING. Archiving a portfolio detaches its
|
|
6
6
|
* members and drops their northstar-sourced priority back to `manual`; it does
|
|
7
|
-
* not pause, complete, or delete a single
|
|
7
|
+
* not pause, complete, or delete a single duty. That is the whole point of
|
|
8
8
|
* the layering — a portfolio is a lens on work, not the work.
|
|
9
9
|
*
|
|
10
|
-
* The confirmation states the
|
|
10
|
+
* The confirmation states the duty count for that reason: the number is
|
|
11
11
|
* what tells you whether you are archiving an empty draft or detaching a live
|
|
12
12
|
* portfolio.
|
|
13
13
|
*/
|
|
@@ -7,17 +7,17 @@ const northstars_1 = require("../../lib/northstars");
|
|
|
7
7
|
/**
|
|
8
8
|
* `skrr northstars delete <id>` — archive a northstar.
|
|
9
9
|
*
|
|
10
|
-
* The
|
|
10
|
+
* The duties under it KEEP RUNNING. Archiving a portfolio detaches its
|
|
11
11
|
* members and drops their northstar-sourced priority back to `manual`; it does
|
|
12
|
-
* not pause, complete, or delete a single
|
|
12
|
+
* not pause, complete, or delete a single duty. That is the whole point of
|
|
13
13
|
* the layering — a portfolio is a lens on work, not the work.
|
|
14
14
|
*
|
|
15
|
-
* The confirmation states the
|
|
15
|
+
* The confirmation states the duty count for that reason: the number is
|
|
16
16
|
* what tells you whether you are archiving an empty draft or detaching a live
|
|
17
17
|
* portfolio.
|
|
18
18
|
*/
|
|
19
19
|
class NorthstarsDelete extends base_command_1.BaseCommand {
|
|
20
|
-
static description = 'Archive a northstar (linked
|
|
20
|
+
static description = 'Archive a northstar (linked duties keep running, detached)';
|
|
21
21
|
static examples = [
|
|
22
22
|
'<%= config.bin %> northstars delete nst_abc123',
|
|
23
23
|
'<%= config.bin %> northstars delete nst_abc123 --yes',
|
|
@@ -32,12 +32,12 @@ class NorthstarsDelete extends base_command_1.BaseCommand {
|
|
|
32
32
|
async run() {
|
|
33
33
|
this.requireAuth();
|
|
34
34
|
const { args, flags } = await this.parse(NorthstarsDelete);
|
|
35
|
-
let question = `Archive northstar ${args.northstarId}? Linked
|
|
35
|
+
let question = `Archive northstar ${args.northstarId}? Linked duties are detached and keep running.`;
|
|
36
36
|
if (!flags.yes) {
|
|
37
37
|
try {
|
|
38
38
|
const status = await northstars_1.northstarApi.get(args.northstarId);
|
|
39
|
-
const count = (status.
|
|
40
|
-
question = `Archive "${status.northstar.title}"? ${count}
|
|
39
|
+
const count = (status.duties ?? []).length;
|
|
40
|
+
question = `Archive "${status.northstar.title}"? ${count} duty(s) will be detached and keep running.`;
|
|
41
41
|
}
|
|
42
42
|
catch {
|
|
43
43
|
// A pre-read failure must not block the delete; fall back to the
|
|
@@ -69,7 +69,7 @@ class NorthstarsDelete extends base_command_1.BaseCommand {
|
|
|
69
69
|
this.log(JSON.stringify(result, null, 2));
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
|
-
this.log(`Archived ${result.id}. Linked
|
|
72
|
+
this.log(`Archived ${result.id}. Linked duties were detached and keep running.`);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
exports.default = NorthstarsDelete;
|
|
@@ -17,7 +17,7 @@ class NorthstarsGovernanceConfigure extends base_command_1.BaseCommand {
|
|
|
17
17
|
static examples = [
|
|
18
18
|
'<%= config.bin %> northstars governance configure nst_abc123 --analysis agent_assisted --reviewer-agent agent_xyz',
|
|
19
19
|
'<%= config.bin %> northstars governance configure nst_abc123 --execution approval',
|
|
20
|
-
'<%= config.bin %> northstars governance configure nst_abc123 --execution bounded_auto --allow
|
|
20
|
+
'<%= config.bin %> northstars governance configure nst_abc123 --execution bounded_auto --allow request_duty_check --max-auto-per-day 3',
|
|
21
21
|
'<%= config.bin %> northstars governance configure nst_abc123 --protect cmt_1 --protect cmt_2',
|
|
22
22
|
'<%= config.bin %> northstars governance configure nst_abc123 --clear-protected',
|
|
23
23
|
'<%= config.bin %> northstars governance configure nst_abc123 --clear-max-runs-per-day',
|
|
@@ -32,7 +32,7 @@ class NorthstarsGovernanceConfigure extends base_command_1.BaseCommand {
|
|
|
32
32
|
options: [...northstars_1.NORTHSTAR_ANALYSIS_MODES],
|
|
33
33
|
}),
|
|
34
34
|
execution: core_1.Flags.string({
|
|
35
|
-
description: "What happens to management intents: advisory records them (none is applied), approval asks first, bounded_auto applies a narrow set. In every mode a review still writes each linked active
|
|
35
|
+
description: "What happens to management intents: advisory records them (none is applied), approval asks first, bounded_auto applies a narrow set. In every mode a review still writes each linked active duty's allocation (cadence band, run share); it never pauses, resumes, reprioritizes or checks in advisory",
|
|
36
36
|
options: [...northstars_1.NORTHSTAR_EXECUTION_MODES],
|
|
37
37
|
}),
|
|
38
38
|
'reviewer-agent': core_1.Flags.string({
|
|
@@ -45,17 +45,17 @@ class NorthstarsGovernanceConfigure extends base_command_1.BaseCommand {
|
|
|
45
45
|
multiple: true,
|
|
46
46
|
}),
|
|
47
47
|
'require-approval-for': core_1.Flags.string({
|
|
48
|
-
description: `Change class that always needs a human (repeatable; replaces the current list). ${northstars_1.
|
|
48
|
+
description: `Change class that always needs a human (repeatable; replaces the current list). ${northstars_1.CRITICAL_DUTY_APPROVAL_NOTE}. With critical_duty removed, a bounded_auto review may apply a one-tier-step promotion to critical without asking`,
|
|
49
49
|
options: [...northstars_1.NORTHSTAR_APPROVAL_TRIGGERS],
|
|
50
50
|
multiple: true,
|
|
51
51
|
}),
|
|
52
52
|
protect: core_1.Flags.string({
|
|
53
|
-
description: '
|
|
53
|
+
description: 'Duty the governor may never touch (repeatable; replaces the current list; --clear-protected empties it)',
|
|
54
54
|
multiple: true,
|
|
55
55
|
exclusive: ['clear-protected'],
|
|
56
56
|
}),
|
|
57
57
|
'clear-protected': core_1.Flags.boolean({
|
|
58
|
-
description: 'Remove every protected
|
|
58
|
+
description: 'Remove every protected duty (the list becomes empty)',
|
|
59
59
|
exclusive: ['protect'],
|
|
60
60
|
}),
|
|
61
61
|
'max-intents-per-review': core_1.Flags.integer({
|
|
@@ -74,17 +74,17 @@ class NorthstarsGovernanceConfigure extends base_command_1.BaseCommand {
|
|
|
74
74
|
max: 200,
|
|
75
75
|
}),
|
|
76
76
|
'cooldown-hours': core_1.Flags.integer({
|
|
77
|
-
description: 'Minimum hours between automatic mutations on ONE
|
|
77
|
+
description: 'Minimum hours between automatic mutations on ONE duty',
|
|
78
78
|
min: 0,
|
|
79
79
|
max: 720,
|
|
80
80
|
}),
|
|
81
81
|
'min-interval-hours': core_1.Flags.integer({
|
|
82
|
-
description: 'Floor of the cadence band
|
|
82
|
+
description: 'Floor of the cadence band duties may be tuned inside',
|
|
83
83
|
min: 1,
|
|
84
84
|
max: 720,
|
|
85
85
|
}),
|
|
86
86
|
'max-interval-hours': core_1.Flags.integer({
|
|
87
|
-
description: 'Ceiling of the cadence band
|
|
87
|
+
description: 'Ceiling of the cadence band duties may be tuned inside',
|
|
88
88
|
min: 1,
|
|
89
89
|
max: 720,
|
|
90
90
|
}),
|
|
@@ -122,7 +122,7 @@ class NorthstarsGovernanceConfigure extends base_command_1.BaseCommand {
|
|
|
122
122
|
exclusive: ['max-concurrent-runs'],
|
|
123
123
|
}),
|
|
124
124
|
'critical-reserve': core_1.Flags.string({
|
|
125
|
-
description: 'Fraction of the execution budget held for critical
|
|
125
|
+
description: 'Fraction of the execution budget held for critical duties (0..1)',
|
|
126
126
|
}),
|
|
127
127
|
};
|
|
128
128
|
async run() {
|
|
@@ -142,15 +142,15 @@ class NorthstarsGovernanceConfigure extends base_command_1.BaseCommand {
|
|
|
142
142
|
if (flags['require-approval-for'])
|
|
143
143
|
body.requireApprovalFor = flags['require-approval-for'];
|
|
144
144
|
if (flags['clear-protected']) {
|
|
145
|
-
body.
|
|
145
|
+
body.protectedDutyIds = [];
|
|
146
146
|
}
|
|
147
147
|
else if (flags.protect) {
|
|
148
148
|
// An empty value used to reach the server and come back as
|
|
149
|
-
// `
|
|
149
|
+
// `protectedDutyIds.0: Too small`, a REST field name nobody typed.
|
|
150
150
|
if (flags.protect.some((id) => id.trim() === '')) {
|
|
151
|
-
this.error('--protect needs a
|
|
151
|
+
this.error('--protect needs a duty id. To remove every protected duty, pass --clear-protected.');
|
|
152
152
|
}
|
|
153
|
-
body.
|
|
153
|
+
body.protectedDutyIds = flags.protect;
|
|
154
154
|
}
|
|
155
155
|
if (flags['max-intents-per-review'] !== undefined) {
|
|
156
156
|
body.maxIntentsPerReview = flags['max-intents-per-review'];
|
|
@@ -217,7 +217,7 @@ class NorthstarsGovernanceConfigure extends base_command_1.BaseCommand {
|
|
|
217
217
|
catch (err) {
|
|
218
218
|
this.handleApiError(err);
|
|
219
219
|
}
|
|
220
|
-
// The write response says what the server did to the linked
|
|
220
|
+
// The write response says what the server did to the linked duties; the status
|
|
221
221
|
// re-read below does not (OSK-21245).
|
|
222
222
|
const refresh = (0, northstars_1.readAllocationRefresh)(written);
|
|
223
223
|
// Re-read the STATUS rather than echoing the write response: the effective
|
|
@@ -255,7 +255,7 @@ class NorthstarsGovernanceConfigure extends base_command_1.BaseCommand {
|
|
|
255
255
|
this.warn(warning);
|
|
256
256
|
if (flags['max-concurrent-runs'] !== undefined) {
|
|
257
257
|
this.log('');
|
|
258
|
-
this.log('Note: --max-concurrent-runs is recorded but not yet enforced. Nothing limits concurrent runs across this northstar; each
|
|
258
|
+
this.log('Note: --max-concurrent-runs is recorded but not yet enforced. Nothing limits concurrent runs across this northstar; each duty keeps its own concurrency limit.');
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
}
|
|
@@ -2,7 +2,7 @@ import { BaseCommand } from '../../../base-command';
|
|
|
2
2
|
/**
|
|
3
3
|
* `skrr northstars intents decide <northstar-id> <intent-id> --approve|--reject`
|
|
4
4
|
*
|
|
5
|
-
* Approval does NOT bypass the fences. The server re-reads the
|
|
5
|
+
* Approval does NOT bypass the fences. The server re-reads the Duty and
|
|
6
6
|
* re-checks both its version and the Northstar's before applying, so a yes given
|
|
7
7
|
* hours later against a portfolio that has since changed is invalidated rather
|
|
8
8
|
* than forced through. That is the point of approving an INTENT rather than
|
|
@@ -6,7 +6,7 @@ const northstars_1 = require("../../../lib/northstars");
|
|
|
6
6
|
/**
|
|
7
7
|
* `skrr northstars intents decide <northstar-id> <intent-id> --approve|--reject`
|
|
8
8
|
*
|
|
9
|
-
* Approval does NOT bypass the fences. The server re-reads the
|
|
9
|
+
* Approval does NOT bypass the fences. The server re-reads the Duty and
|
|
10
10
|
* re-checks both its version and the Northstar's before applying, so a yes given
|
|
11
11
|
* hours later against a portfolio that has since changed is invalidated rather
|
|
12
12
|
* than forced through. That is the point of approving an INTENT rather than
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
/**
|
|
3
|
-
* `skrr northstars link <northstar-id> <
|
|
3
|
+
* `skrr northstars link <northstar-id> <duty-id>` — put a duty into
|
|
4
4
|
* a portfolio.
|
|
5
5
|
*
|
|
6
|
-
* By default the
|
|
6
|
+
* By default the duty INHERITS the northstar's priority and its
|
|
7
7
|
* `priority.source` becomes `northstar`, which is what makes portfolio-level
|
|
8
|
-
* reprioritization meaningful later. Pass `--keep-priority` when the
|
|
8
|
+
* reprioritization meaningful later. Pass `--keep-priority` when the duty
|
|
9
9
|
* should belong to the portfolio while keeping a priority you set by hand.
|
|
10
10
|
*/
|
|
11
11
|
export default class NorthstarsLink extends BaseCommand {
|
|
@@ -13,7 +13,7 @@ export default class NorthstarsLink extends BaseCommand {
|
|
|
13
13
|
static examples: string[];
|
|
14
14
|
static args: {
|
|
15
15
|
northstarId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
16
|
-
|
|
16
|
+
dutyId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
17
17
|
};
|
|
18
18
|
static flags: {
|
|
19
19
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
@@ -4,28 +4,28 @@ const core_1 = require("@oclif/core");
|
|
|
4
4
|
const base_command_1 = require("../../base-command");
|
|
5
5
|
const northstars_1 = require("../../lib/northstars");
|
|
6
6
|
/**
|
|
7
|
-
* `skrr northstars link <northstar-id> <
|
|
7
|
+
* `skrr northstars link <northstar-id> <duty-id>` — put a duty into
|
|
8
8
|
* a portfolio.
|
|
9
9
|
*
|
|
10
|
-
* By default the
|
|
10
|
+
* By default the duty INHERITS the northstar's priority and its
|
|
11
11
|
* `priority.source` becomes `northstar`, which is what makes portfolio-level
|
|
12
|
-
* reprioritization meaningful later. Pass `--keep-priority` when the
|
|
12
|
+
* reprioritization meaningful later. Pass `--keep-priority` when the duty
|
|
13
13
|
* should belong to the portfolio while keeping a priority you set by hand.
|
|
14
14
|
*/
|
|
15
15
|
class NorthstarsLink extends base_command_1.BaseCommand {
|
|
16
|
-
static description = 'Link a
|
|
16
|
+
static description = 'Link a duty into a northstar portfolio';
|
|
17
17
|
static examples = [
|
|
18
18
|
'<%= config.bin %> northstars link nst_abc123 cmt_xyz789',
|
|
19
19
|
'<%= config.bin %> northstars link nst_abc123 cmt_xyz789 --keep-priority',
|
|
20
20
|
];
|
|
21
21
|
static args = {
|
|
22
22
|
northstarId: core_1.Args.string({ ignoreStdin: true, description: 'Northstar ID', required: true }),
|
|
23
|
-
|
|
23
|
+
dutyId: core_1.Args.string({ ignoreStdin: true, description: 'Duty ID', required: true }),
|
|
24
24
|
};
|
|
25
25
|
static flags = {
|
|
26
26
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
27
27
|
'keep-priority': core_1.Flags.boolean({
|
|
28
|
-
description: "Do not overwrite the
|
|
28
|
+
description: "Do not overwrite the duty's priority with the northstar's",
|
|
29
29
|
}),
|
|
30
30
|
};
|
|
31
31
|
async run() {
|
|
@@ -34,7 +34,7 @@ class NorthstarsLink extends base_command_1.BaseCommand {
|
|
|
34
34
|
let result;
|
|
35
35
|
try {
|
|
36
36
|
result = await northstars_1.northstarApi.link(args.northstarId, {
|
|
37
|
-
|
|
37
|
+
dutyId: args.dutyId,
|
|
38
38
|
inheritPriority: !flags['keep-priority'],
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -45,7 +45,7 @@ class NorthstarsLink extends base_command_1.BaseCommand {
|
|
|
45
45
|
this.log(JSON.stringify(result, null, 2));
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
|
-
this.log(`Linked ${args.
|
|
48
|
+
this.log(`Linked ${args.dutyId} → ${args.northstarId}.`);
|
|
49
49
|
if (!flags['keep-priority']) {
|
|
50
50
|
this.log('Priority now inherits from the northstar (priority.source = northstar).');
|
|
51
51
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
/**
|
|
3
|
-
* `skrr northstars list` — the strategic portfolio layer above
|
|
3
|
+
* `skrr northstars list` — the strategic portfolio layer above duties.
|
|
4
4
|
*
|
|
5
5
|
* A Northstar is not a goal and not a unit of work: it groups and prioritizes a
|
|
6
|
-
* SET of
|
|
6
|
+
* SET of duties, allocates attention and compute across them, and reviews
|
|
7
7
|
* their health on a cadence.
|
|
8
8
|
*/
|
|
9
9
|
export default class NorthstarsList extends BaseCommand {
|
|
@@ -5,14 +5,14 @@ const core_1 = require("@oclif/core");
|
|
|
5
5
|
const base_command_1 = require("../../base-command");
|
|
6
6
|
const northstars_1 = require("../../lib/northstars");
|
|
7
7
|
/**
|
|
8
|
-
* `skrr northstars list` — the strategic portfolio layer above
|
|
8
|
+
* `skrr northstars list` — the strategic portfolio layer above duties.
|
|
9
9
|
*
|
|
10
10
|
* A Northstar is not a goal and not a unit of work: it groups and prioritizes a
|
|
11
|
-
* SET of
|
|
11
|
+
* SET of duties, allocates attention and compute across them, and reviews
|
|
12
12
|
* their health on a cadence.
|
|
13
13
|
*/
|
|
14
14
|
class NorthstarsList extends base_command_1.BaseCommand {
|
|
15
|
-
static description = `List northstars (the portfolio layer above
|
|
15
|
+
static description = `List northstars (the portfolio layer above duties)\n\nThe WORKSPACE column is a shortened workspace id (--json has the full workspaceId) or "personal". ${northstars_1.NORTHSTAR_WORKSPACE_READ_HELP}`;
|
|
16
16
|
static examples = [
|
|
17
17
|
'<%= config.bin %> northstars list',
|
|
18
18
|
'<%= config.bin %> northstars list --status active',
|
|
@@ -3,7 +3,7 @@ import { BaseCommand } from '../../../base-command';
|
|
|
3
3
|
* `skrr northstars recommendations apply <id> <rec-id>` — act on one
|
|
4
4
|
* deterministic recommendation.
|
|
5
5
|
*
|
|
6
|
-
* `
|
|
6
|
+
* `create_duty` and `reassign_duty` are acknowledged but NOT
|
|
7
7
|
* executed: both mint or move an obligation, and the server keeps that a human
|
|
8
8
|
* action. The command says so rather than letting you assume work happened.
|
|
9
9
|
*/
|
|
@@ -7,12 +7,12 @@ const northstars_1 = require("../../../lib/northstars");
|
|
|
7
7
|
* `skrr northstars recommendations apply <id> <rec-id>` — act on one
|
|
8
8
|
* deterministic recommendation.
|
|
9
9
|
*
|
|
10
|
-
* `
|
|
10
|
+
* `create_duty` and `reassign_duty` are acknowledged but NOT
|
|
11
11
|
* executed: both mint or move an obligation, and the server keeps that a human
|
|
12
12
|
* action. The command says so rather than letting you assume work happened.
|
|
13
13
|
*/
|
|
14
14
|
class NorthstarsRecommendationsApply extends base_command_1.BaseCommand {
|
|
15
|
-
static description = 'Apply a northstar recommendation through
|
|
15
|
+
static description = 'Apply a northstar recommendation through DutyControl';
|
|
16
16
|
static examples = [
|
|
17
17
|
'<%= config.bin %> northstars recommendations apply nst_abc123 a1b2c3d4',
|
|
18
18
|
];
|
|
@@ -46,8 +46,8 @@ class NorthstarsReviewNow extends base_command_1.BaseCommand {
|
|
|
46
46
|
this.log(`Review ${String(review.id)} (${String(review.status)})`);
|
|
47
47
|
}
|
|
48
48
|
this.log((0, northstars_1.describeReviewAllocations)(result));
|
|
49
|
-
// The allocation above gives each
|
|
50
|
-
// the number of active
|
|
49
|
+
// The allocation above gives each duty at least 1/day; when the budget is smaller than
|
|
50
|
+
// the number of active duties that adds up to more than the budget (OSK-21334).
|
|
51
51
|
const floorNote = (0, northstars_1.runBudgetFloorNote)(result.runBudgetFloor);
|
|
52
52
|
if (floorNote)
|
|
53
53
|
this.log(` ! ${floorNote}`);
|