@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,6 +1,6 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
/**
|
|
3
|
-
* The API envelopes the portfolio as `{ northstar,
|
|
3
|
+
* The API envelopes the portfolio as `{ northstar, duties }`, while
|
|
4
4
|
* create/list return a Northstar resource directly. Keep the portfolio data
|
|
5
5
|
* but make the CLI JSON chainable through the standard top-level `id`.
|
|
6
6
|
*/
|
|
@@ -8,8 +8,8 @@ export declare function normalizeNorthstarShowResponse(status: unknown): Record<
|
|
|
8
8
|
/**
|
|
9
9
|
* `skrr northstars show <id>` — the northstar plus the portfolio it holds.
|
|
10
10
|
*
|
|
11
|
-
* The endpoint returns `{northstar,
|
|
12
|
-
* northstar read without its
|
|
11
|
+
* The endpoint returns `{northstar, duties}`, and both halves matter: a
|
|
12
|
+
* northstar read without its duties cannot answer the only question worth
|
|
13
13
|
* asking of a portfolio, which is what is actually in it.
|
|
14
14
|
*/
|
|
15
15
|
export default class NorthstarsShow extends BaseCommand {
|
|
@@ -5,7 +5,7 @@ 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
|
-
* The API envelopes the portfolio as `{ northstar,
|
|
8
|
+
* The API envelopes the portfolio as `{ northstar, duties }`, while
|
|
9
9
|
* create/list return a Northstar resource directly. Keep the portfolio data
|
|
10
10
|
* but make the CLI JSON chainable through the standard top-level `id`.
|
|
11
11
|
*/
|
|
@@ -14,7 +14,7 @@ function normalizeNorthstarShowResponse(status) {
|
|
|
14
14
|
if (envelope?.northstar && typeof envelope.northstar === 'object') {
|
|
15
15
|
return {
|
|
16
16
|
...envelope.northstar,
|
|
17
|
-
|
|
17
|
+
duties: Array.isArray(envelope.duties) ? envelope.duties : [],
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
return status && typeof status === 'object' ? status : {};
|
|
@@ -22,12 +22,12 @@ function normalizeNorthstarShowResponse(status) {
|
|
|
22
22
|
/**
|
|
23
23
|
* `skrr northstars show <id>` — the northstar plus the portfolio it holds.
|
|
24
24
|
*
|
|
25
|
-
* The endpoint returns `{northstar,
|
|
26
|
-
* northstar read without its
|
|
25
|
+
* The endpoint returns `{northstar, duties}`, and both halves matter: a
|
|
26
|
+
* northstar read without its duties cannot answer the only question worth
|
|
27
27
|
* asking of a portfolio, which is what is actually in it.
|
|
28
28
|
*/
|
|
29
29
|
class NorthstarsShow extends base_command_1.BaseCommand {
|
|
30
|
-
static description = `Show a northstar, its linked
|
|
30
|
+
static description = `Show a northstar, its linked duties, and open recommendations\n\nThe Workspace line is the full workspace id, or "personal". ${northstars_1.NORTHSTAR_WORKSPACE_READ_HELP}`;
|
|
31
31
|
static examples = [
|
|
32
32
|
'<%= config.bin %> northstars show nst_abc123',
|
|
33
33
|
'<%= config.bin %> northstars show nst_abc123 --json',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
/**
|
|
3
|
-
* `skrr northstars unlink <northstar-id> <
|
|
3
|
+
* `skrr northstars unlink <northstar-id> <duty-id>` — take a duty
|
|
4
4
|
* out of a portfolio.
|
|
5
5
|
*
|
|
6
|
-
* The
|
|
6
|
+
* The duty keeps running; only the strategy link drops, and its priority
|
|
7
7
|
* source reverts to `manual`. Any pending management intent that targeted it is
|
|
8
8
|
* INVALIDATED at apply time — a portfolio may not steer work it no longer holds.
|
|
9
9
|
*/
|
|
@@ -12,7 +12,7 @@ export default class NorthstarsUnlink extends BaseCommand {
|
|
|
12
12
|
static examples: string[];
|
|
13
13
|
static args: {
|
|
14
14
|
northstarId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
15
|
-
|
|
15
|
+
dutyId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
16
16
|
};
|
|
17
17
|
static flags: {
|
|
18
18
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
@@ -4,19 +4,19 @@ 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 unlink <northstar-id> <
|
|
7
|
+
* `skrr northstars unlink <northstar-id> <duty-id>` — take a duty
|
|
8
8
|
* out of a portfolio.
|
|
9
9
|
*
|
|
10
|
-
* The
|
|
10
|
+
* The duty keeps running; only the strategy link drops, and its priority
|
|
11
11
|
* source reverts to `manual`. Any pending management intent that targeted it is
|
|
12
12
|
* INVALIDATED at apply time — a portfolio may not steer work it no longer holds.
|
|
13
13
|
*/
|
|
14
14
|
class NorthstarsUnlink extends base_command_1.BaseCommand {
|
|
15
|
-
static description = 'Unlink a
|
|
15
|
+
static description = 'Unlink a duty from a northstar portfolio';
|
|
16
16
|
static examples = ['<%= config.bin %> northstars unlink nst_abc123 cmt_xyz789'];
|
|
17
17
|
static args = {
|
|
18
18
|
northstarId: core_1.Args.string({ ignoreStdin: true, description: 'Northstar ID', required: true }),
|
|
19
|
-
|
|
19
|
+
dutyId: core_1.Args.string({ ignoreStdin: true, description: 'Duty ID', required: true }),
|
|
20
20
|
};
|
|
21
21
|
static flags = { json: core_1.Flags.boolean({ description: 'Output as JSON' }) };
|
|
22
22
|
async run() {
|
|
@@ -24,7 +24,7 @@ class NorthstarsUnlink extends base_command_1.BaseCommand {
|
|
|
24
24
|
const { args, flags } = await this.parse(NorthstarsUnlink);
|
|
25
25
|
let result;
|
|
26
26
|
try {
|
|
27
|
-
result = await northstars_1.northstarApi.unlink(args.northstarId, {
|
|
27
|
+
result = await northstars_1.northstarApi.unlink(args.northstarId, { dutyId: args.dutyId });
|
|
28
28
|
}
|
|
29
29
|
catch (err) {
|
|
30
30
|
this.handleApiError(err);
|
|
@@ -33,7 +33,7 @@ class NorthstarsUnlink extends base_command_1.BaseCommand {
|
|
|
33
33
|
this.log(JSON.stringify(result, null, 2));
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
|
-
this.log(`Unlinked ${args.
|
|
36
|
+
this.log(`Unlinked ${args.dutyId}. It keeps running; priority is manual again.`);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
exports.default = NorthstarsUnlink;
|
|
@@ -33,7 +33,7 @@ class NorthstarsUpdate extends base_command_1.BaseCommand {
|
|
|
33
33
|
weight: core_1.Flags.integer({ description: 'Priority weight (0..100)', min: 0, max: 100 }),
|
|
34
34
|
'total-weight': core_1.Flags.integer({ description: 'Attention budget total weight', min: 0 }),
|
|
35
35
|
'max-active': core_1.Flags.integer({
|
|
36
|
-
description: 'Soft cap on active
|
|
36
|
+
description: 'Soft cap on active duties (0 = no cap)',
|
|
37
37
|
min: 0,
|
|
38
38
|
}),
|
|
39
39
|
goal: core_1.Flags.string({ description: 'Goal ID (repeatable; replaces the list)', multiple: true }),
|
|
@@ -74,7 +74,7 @@ class NorthstarsUpdate extends base_command_1.BaseCommand {
|
|
|
74
74
|
if (flags['total-weight'] !== undefined || flags['max-active'] !== undefined) {
|
|
75
75
|
body.attentionBudget = {
|
|
76
76
|
...(flags['total-weight'] !== undefined ? { totalWeight: flags['total-weight'] } : {}),
|
|
77
|
-
...(flags['max-active'] !== undefined ? {
|
|
77
|
+
...(flags['max-active'] !== undefined ? { maxActiveDuties: flags['max-active'] } : {}),
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
if (flags.goal)
|
|
@@ -114,7 +114,7 @@ class NorthstarsUpdate extends base_command_1.BaseCommand {
|
|
|
114
114
|
this.log(`Updated ${northstar.id} — ${northstar.title} (${northstar.status}, v${northstar.version})`);
|
|
115
115
|
// 0 is stored, and a review treats it as "no cap": say so here, not only in `show` (OSK-21252).
|
|
116
116
|
if (flags['max-active'] !== undefined) {
|
|
117
|
-
this.log(`Attention max active ${(0, northstars_1.describeMaxActive)(northstar.attentionBudget?.
|
|
117
|
+
this.log(`Attention max active ${(0, northstars_1.describeMaxActive)(northstar.attentionBudget?.maxActiveDuties ?? flags['max-active'])}`);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -2,13 +2,13 @@ import type { ProposalView } from '@skrr-ai/data-provider';
|
|
|
2
2
|
import { BaseCommand } from '../../base-command';
|
|
3
3
|
/**
|
|
4
4
|
* What an empty page means. With a filter AND a next cursor it does NOT mean "none": the inbox reads a
|
|
5
|
-
* bounded page of each source and applies some filters (the
|
|
5
|
+
* bounded page of each source and applies some filters (the Duty, the kind of row) afterwards,
|
|
6
6
|
* so an unmatched id pages through every page of an 864-row inbox before the cursor ends (OSK-15369).
|
|
7
7
|
* Without a cursor the inbox is exhausted and "none" is true.
|
|
8
8
|
*/
|
|
9
9
|
export declare function emptyPageLines(narrowed: boolean, nextCursor: string | null | undefined): string[];
|
|
10
10
|
/**
|
|
11
|
-
* What the row is ABOUT: the
|
|
11
|
+
* What the row is ABOUT: the Duty and the Agent behind it, in the order the web inbox shows them. 51 distinct titles covered 747 decidable
|
|
12
12
|
* initiatives, so the title alone could not tell two rows apart (OSK-15378). A dash is "not named" (an id the
|
|
13
13
|
* server could not read for this viewer is in `--json`), never "none".
|
|
14
14
|
*/
|
|
@@ -19,7 +19,7 @@ export default class ProposalsList extends BaseCommand {
|
|
|
19
19
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
20
20
|
kind: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
21
|
disposition: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
-
'
|
|
22
|
+
'duty-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
23
|
'agent-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
24
|
limit: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
25
25
|
cursor: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -10,7 +10,7 @@ const proposals_1 = require("../../lib/proposals");
|
|
|
10
10
|
const format_1 = require("../../lib/format");
|
|
11
11
|
/**
|
|
12
12
|
* What an empty page means. With a filter AND a next cursor it does NOT mean "none": the inbox reads a
|
|
13
|
-
* bounded page of each source and applies some filters (the
|
|
13
|
+
* bounded page of each source and applies some filters (the Duty, the kind of row) afterwards,
|
|
14
14
|
* so an unmatched id pages through every page of an 864-row inbox before the cursor ends (OSK-15369).
|
|
15
15
|
* Without a cursor the inbox is exhausted and "none" is true.
|
|
16
16
|
*/
|
|
@@ -26,15 +26,15 @@ function emptyPageLines(narrowed, nextCursor) {
|
|
|
26
26
|
: ['No proposals on this page; the cursor below continues.'];
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
* What the row is ABOUT: the
|
|
29
|
+
* What the row is ABOUT: the Duty and the Agent behind it, in the order the web inbox shows them. 51 distinct titles covered 747 decidable
|
|
30
30
|
* initiatives, so the title alone could not tell two rows apart (OSK-15378). A dash is "not named" (an id the
|
|
31
31
|
* server could not read for this viewer is in `--json`), never "none".
|
|
32
32
|
*/
|
|
33
33
|
function aboutFor(row) {
|
|
34
|
-
const named = [row.
|
|
34
|
+
const named = [row.dutyTitle, row.agent?.name].filter(Boolean).join(' · ');
|
|
35
35
|
if (named)
|
|
36
36
|
return named;
|
|
37
|
-
// A Northstar intent that targets no
|
|
37
|
+
// A Northstar intent that targets no duty (a proposal to start one) is about its northstar.
|
|
38
38
|
const northstarId = row.decisionContext?.northstarId;
|
|
39
39
|
return northstarId ? `northstar ${northstarId}` : '—';
|
|
40
40
|
}
|
|
@@ -56,7 +56,7 @@ class ProposalsList extends base_command_1.BaseCommand {
|
|
|
56
56
|
json: core_1.Flags.boolean(),
|
|
57
57
|
kind: core_1.Flags.string({ options: [...data_provider_1.PROPOSAL_KINDS] }),
|
|
58
58
|
disposition: core_1.Flags.string({ options: [...data_provider_1.PROPOSAL_DISPOSITIONS] }),
|
|
59
|
-
'
|
|
59
|
+
'duty-id': core_1.Flags.string(),
|
|
60
60
|
'agent-id': core_1.Flags.string(),
|
|
61
61
|
limit: core_1.Flags.integer({ min: 1, max: 100, default: 50 }),
|
|
62
62
|
cursor: core_1.Flags.string(),
|
|
@@ -74,7 +74,7 @@ class ProposalsList extends base_command_1.BaseCommand {
|
|
|
74
74
|
result = await proposals_1.proposalApi.list({
|
|
75
75
|
kind: flags.kind,
|
|
76
76
|
disposition: flags.disposition,
|
|
77
|
-
|
|
77
|
+
dutyId: flags['duty-id'],
|
|
78
78
|
agentId: flags['agent-id'],
|
|
79
79
|
limit: flags.limit,
|
|
80
80
|
cursor: flags.cursor,
|
|
@@ -89,7 +89,7 @@ class ProposalsList extends base_command_1.BaseCommand {
|
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
91
|
if (!result.data.length) {
|
|
92
|
-
const narrowed = Boolean(flags.kind || flags.disposition || flags['
|
|
92
|
+
const narrowed = Boolean(flags.kind || flags.disposition || flags['duty-id'] || flags['agent-id']);
|
|
93
93
|
for (const line of emptyPageLines(narrowed, result.nextCursor))
|
|
94
94
|
this.log(line);
|
|
95
95
|
}
|
|
@@ -25,7 +25,7 @@ function holderNowLabel(current) {
|
|
|
25
25
|
if (current.holder === 'leader')
|
|
26
26
|
return 'the Leader';
|
|
27
27
|
if (current.holder === 'space_loop') {
|
|
28
|
-
return `the space_orchestration loop ${current.
|
|
28
|
+
return `the space_orchestration loop ${current.dutyId ?? ''}`.trim();
|
|
29
29
|
}
|
|
30
30
|
return 'unknown (could not be read)';
|
|
31
31
|
}
|
|
@@ -14,7 +14,7 @@ function judgmentTurnLabel(turn) {
|
|
|
14
14
|
if (turn.holder === 'leader')
|
|
15
15
|
return ' turn: Leader';
|
|
16
16
|
if (turn.holder === 'space_loop') {
|
|
17
|
-
return ` turn: loop ${turn.
|
|
17
|
+
return ` turn: loop ${turn.dutyId ?? ''}${turn.inFlightRunId ? ' (waiting for its turn to end)' : ''}`;
|
|
18
18
|
}
|
|
19
19
|
return ' turn: unreadable, Leader stood down';
|
|
20
20
|
}
|
|
@@ -30,9 +30,9 @@ const space_output_1 = require("../../../lib/space-output");
|
|
|
30
30
|
*/
|
|
31
31
|
function loopCell(loop) {
|
|
32
32
|
const pointer = loop;
|
|
33
|
-
if (!pointer?.
|
|
33
|
+
if (!pointer?.dutyId)
|
|
34
34
|
return '-';
|
|
35
|
-
return `${(0, format_1.formatCell)(pointer.state)} -> ${(0, format_1.formatCell)(pointer.
|
|
35
|
+
return `${(0, format_1.formatCell)(pointer.state)} -> ${(0, format_1.formatCell)(pointer.dutyId)}`;
|
|
36
36
|
}
|
|
37
37
|
function heartbeatRow(h) {
|
|
38
38
|
const schedule = h.schedule;
|
|
@@ -51,9 +51,9 @@ const PERSPECTIVES = [
|
|
|
51
51
|
purpose: "The Space's standing loops (weekly review, curator, goal advance). No command lists them: read their cycles from the notebook",
|
|
52
52
|
commands: [
|
|
53
53
|
'spaces notebook <space-id> --kinds loop_cycle',
|
|
54
|
-
'
|
|
54
|
+
'duties pack plan --pack space_review --space <space-id>',
|
|
55
55
|
'spaces loops migrate <space-id> --from heartbeats',
|
|
56
|
-
'spaces loops release <space-id> --
|
|
56
|
+
'spaces loops release <space-id> --duty <id>',
|
|
57
57
|
],
|
|
58
58
|
url: '/spaces/<space-id>/loops',
|
|
59
59
|
},
|
|
@@ -7,7 +7,7 @@ export declare function noSpacesMatchedMessage(q: string, bin?: string, mode?: s
|
|
|
7
7
|
* A bare `No spaces.` on a fresh account is technically true and operationally
|
|
8
8
|
* useless: it names no next step, so the user reading `GETTING_STARTED.md`
|
|
9
9
|
* step 3 hits three of these in a row and concludes the product is inert.
|
|
10
|
-
* `
|
|
10
|
+
* `duties/list.ts` learned this the hard way and left the reasoning in a
|
|
11
11
|
* comment; the fix is to follow the same pattern here — one line naming the
|
|
12
12
|
* command that fixes it.
|
|
13
13
|
*
|
|
@@ -25,7 +25,7 @@ function noSpacesMatchedMessage(q, bin = 'skrr', mode = 'fuzzy') {
|
|
|
25
25
|
* A bare `No spaces.` on a fresh account is technically true and operationally
|
|
26
26
|
* useless: it names no next step, so the user reading `GETTING_STARTED.md`
|
|
27
27
|
* step 3 hits three of these in a row and concludes the product is inert.
|
|
28
|
-
* `
|
|
28
|
+
* `duties/list.ts` learned this the hard way and left the reasoning in a
|
|
29
29
|
* comment; the fix is to follow the same pattern here — one line naming the
|
|
30
30
|
* command that fixes it.
|
|
31
31
|
*
|
|
@@ -9,7 +9,7 @@ import { BaseCommand } from '../../../base-command';
|
|
|
9
9
|
*
|
|
10
10
|
* Without `--apply` it prints the plan, a pure read: every entry, what it
|
|
11
11
|
* becomes (the Space's loop when its owner is the Space's execution principal,
|
|
12
|
-
* otherwise its owner's own
|
|
12
|
+
* otherwise its owner's own Duty), its cadence before and after (never
|
|
13
13
|
* rounded silently), what the loop does differently, the entries it cannot
|
|
14
14
|
* convert and why, and who may apply each. With `--apply --plan-digest <digest>`
|
|
15
15
|
* it converts the entries the caller may, acting only on the plan that digest
|
|
@@ -14,7 +14,7 @@ const space_loop_migration_1 = require("../../../lib/space-loop-migration");
|
|
|
14
14
|
*
|
|
15
15
|
* Without `--apply` it prints the plan, a pure read: every entry, what it
|
|
16
16
|
* becomes (the Space's loop when its owner is the Space's execution principal,
|
|
17
|
-
* otherwise its owner's own
|
|
17
|
+
* otherwise its owner's own Duty), its cadence before and after (never
|
|
18
18
|
* rounded silently), what the loop does differently, the entries it cannot
|
|
19
19
|
* convert and why, and who may apply each. With `--apply --plan-digest <digest>`
|
|
20
20
|
* it converts the entries the caller may, acting only on the plan that digest
|
|
@@ -6,7 +6,7 @@ export default class SpacesLoopsRelease extends BaseCommand {
|
|
|
6
6
|
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
7
|
};
|
|
8
8
|
static flags: {
|
|
9
|
-
|
|
9
|
+
duty: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
10
|
link: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
11
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
12
|
};
|
|
@@ -6,14 +6,14 @@ const base_command_1 = require("../../../base-command");
|
|
|
6
6
|
class SpacesLoopsRelease extends base_command_1.BaseCommand {
|
|
7
7
|
static description = 'Pause a loop and release its Space and Goals to built-in planners (requires Space SHARE permission)';
|
|
8
8
|
static examples = [
|
|
9
|
-
'<%= config.bin %> spaces loops release <space-id> --
|
|
10
|
-
'<%= config.bin %> spaces loops release "Growth lab" --
|
|
9
|
+
'<%= config.bin %> spaces loops release <space-id> --duty <duty-id>',
|
|
10
|
+
'<%= config.bin %> spaces loops release "Growth lab" --duty <duty-id> --json',
|
|
11
11
|
];
|
|
12
12
|
static args = {
|
|
13
13
|
id: core_1.Args.string({ description: 'Space ID, or a title to resolve', required: true, ignoreStdin: true }),
|
|
14
14
|
};
|
|
15
15
|
static flags = {
|
|
16
|
-
|
|
16
|
+
duty: core_1.Flags.string({ description: 'The loop Duty to pause and release', required: true }),
|
|
17
17
|
link: core_1.Flags.string({ description: 'Pin the reviewed home link ID; otherwise resolve the current active home link once' }),
|
|
18
18
|
json: core_1.Flags.boolean({ description: 'Output the release receipt as JSON' }),
|
|
19
19
|
};
|
|
@@ -25,28 +25,28 @@ class SpacesLoopsRelease extends base_command_1.BaseCommand {
|
|
|
25
25
|
try {
|
|
26
26
|
let linkId = flags.link;
|
|
27
27
|
if (!linkId) {
|
|
28
|
-
const links = await data_provider_1.dataService.
|
|
29
|
-
const homes = links.data.filter((link) => link.
|
|
28
|
+
const links = await data_provider_1.dataService.listDutyWorkLinksForTarget({ targetType: 'space', targetId: spaceId });
|
|
29
|
+
const homes = links.data.filter((link) => link.dutyId === flags.duty && link.status === 'active' && link.roles.includes('home'));
|
|
30
30
|
if (homes.length !== 1) {
|
|
31
31
|
this.error('No unique active home link found. Supply --link <home-link-id> to release a reviewed link or retry its receipt.', { exit: 2 });
|
|
32
32
|
}
|
|
33
33
|
linkId = homes[0].id;
|
|
34
34
|
}
|
|
35
|
-
receipt = await data_provider_1.dataService.releaseSpaceLoop(spaceId, flags.
|
|
35
|
+
receipt = await data_provider_1.dataService.releaseSpaceLoop(spaceId, flags.duty, { linkId });
|
|
36
36
|
}
|
|
37
37
|
catch (err) {
|
|
38
|
-
this.handleApiError(err, { subject: `loop ${flags.
|
|
38
|
+
this.handleApiError(err, { subject: `loop ${flags.duty} in space ${args.id}` });
|
|
39
39
|
}
|
|
40
40
|
if (flags.json) {
|
|
41
41
|
this.printJsonResult(receipt);
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
this.log(receipt.outcome === 'already_released'
|
|
45
|
-
? `Loop ${receipt.
|
|
46
|
-
: `Loop ${receipt.
|
|
45
|
+
? `Loop ${receipt.dutyId} was already released from this Space.`
|
|
46
|
+
: `Loop ${receipt.dutyId} is paused and released from this Space.`);
|
|
47
47
|
this.log(`Home link: ${receipt.linkId}`);
|
|
48
48
|
this.log(receipt.outcome === 'released'
|
|
49
|
-
? 'Its Space and Goal planning turns are released after current turns finish. The owner may explicitly resume the
|
|
49
|
+
? 'Its Space and Goal planning turns are released after current turns finish. The owner may explicitly resume the Duty personally.'
|
|
50
50
|
: 'This receipt refers to the previously released home link. Current planning may have changed.');
|
|
51
51
|
if (receipt.teardown?.status === 'degraded') {
|
|
52
52
|
this.log('Some running work could not be stopped. Review the teardown receipt before assuming all work has ended.');
|
|
@@ -5,8 +5,8 @@ import { BaseCommand } from '../../base-command';
|
|
|
5
5
|
* pages, newest first. A view over records that already exist: each row is a
|
|
6
6
|
* summary and a link, and the body is read from the record itself. VIEW on
|
|
7
7
|
* the Space. A loop's Cycles are shared with the Space's members while its
|
|
8
|
-
* rules hold; a
|
|
9
|
-
* verdict, show only to people who can open the
|
|
8
|
+
* rules hold; a Duty that only watches the Space, and every hypothesis
|
|
9
|
+
* verdict, show only to people who can open the Duty. Each loop row says
|
|
10
10
|
* which.
|
|
11
11
|
*/
|
|
12
12
|
export default class SpacesNotebook extends BaseCommand {
|
|
@@ -11,8 +11,8 @@ const web_url_1 = require("../../lib/web-url");
|
|
|
11
11
|
* pages, newest first. A view over records that already exist: each row is a
|
|
12
12
|
* summary and a link, and the body is read from the record itself. VIEW on
|
|
13
13
|
* the Space. A loop's Cycles are shared with the Space's members while its
|
|
14
|
-
* rules hold; a
|
|
15
|
-
* verdict, show only to people who can open the
|
|
14
|
+
* rules hold; a Duty that only watches the Space, and every hypothesis
|
|
15
|
+
* verdict, show only to people who can open the Duty. Each loop row says
|
|
16
16
|
* which.
|
|
17
17
|
*/
|
|
18
18
|
class SpacesNotebook extends base_command_1.BaseCommand {
|
|
@@ -5,7 +5,7 @@ const space_proposal_decision_command_1 = require("../../../lib/space-proposal-d
|
|
|
5
5
|
class SpacesProposalsDiscard extends space_proposal_decision_command_1.SpaceProposalDecisionCommand {
|
|
6
6
|
static description = "Discard (reject) one item in a space's proposals inbox, through the item's own decision endpoint";
|
|
7
7
|
static examples = [
|
|
8
|
-
`<%= config.bin %> spaces proposals discard <space-id>
|
|
8
|
+
`<%= config.bin %> spaces proposals discard <space-id> duty_action_proposal:cap_123 --expected '{"snapshotDigest":"…","bundleVersion":2}' --reason-code not_worth_it`,
|
|
9
9
|
'<%= config.bin %> spaces proposals discard <space-id> memory_proposal:<uuid> --reason "Not true any more"',
|
|
10
10
|
'<%= config.bin %> spaces proposals discard <space-id> space_lesson:<uuid> --reason-code incorrect --reason "Step 2 is the old flow"',
|
|
11
11
|
];
|
|
@@ -5,7 +5,7 @@ const space_proposal_decision_command_1 = require("../../../lib/space-proposal-d
|
|
|
5
5
|
class SpacesProposalsKeep extends space_proposal_decision_command_1.SpaceProposalDecisionCommand {
|
|
6
6
|
static description = "Keep (approve) one item in a space's proposals inbox, through the item's own decision endpoint";
|
|
7
7
|
static examples = [
|
|
8
|
-
`<%= config.bin %> spaces proposals keep <space-id>
|
|
8
|
+
`<%= config.bin %> spaces proposals keep <space-id> duty_action_proposal:cap_123 --expected '{"snapshotDigest":"…","bundleVersion":2}'`,
|
|
9
9
|
'<%= config.bin %> spaces proposals keep <space-id> memory_proposal:<uuid>',
|
|
10
10
|
'<%= config.bin %> spaces proposals keep <space-id> space_lesson:<uuid>',
|
|
11
11
|
];
|
|
@@ -39,10 +39,10 @@ class SpacesTriggersShow extends base_command_1.BaseCommand {
|
|
|
39
39
|
this.log(`On event: ${formatLane(triggers.onEvent)}`);
|
|
40
40
|
this.log(`On schedule:${formatLane(triggers.onSchedule)}`);
|
|
41
41
|
const loop = assistant.loop;
|
|
42
|
-
if (loop?.
|
|
42
|
+
if (loop?.dutyId) {
|
|
43
43
|
this.log(loop.state === 'retired'
|
|
44
|
-
? `Loop: converted into loop ${loop.
|
|
45
|
-
: `Loop: being converted into loop ${loop.
|
|
44
|
+
? `Loop: converted into loop ${loop.dutyId}, which replaced its scheduled turns; read-only`
|
|
45
|
+
: `Loop: being converted into loop ${loop.dutyId}; read-only, and it keeps running until the loop is active`);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -39,7 +39,7 @@ class SpacesWritePolicySet extends base_command_1.BaseCommand {
|
|
|
39
39
|
options: MODE_OPTIONS,
|
|
40
40
|
}),
|
|
41
41
|
'member-automation': core_1.Flags.string({
|
|
42
|
-
description: "Mode for other members' agents writing unattended (for example their
|
|
42
|
+
description: "Mode for other members' agents writing unattended (for example their Duty runs); " +
|
|
43
43
|
'`default` resets it',
|
|
44
44
|
options: MODE_OPTIONS,
|
|
45
45
|
}),
|
|
@@ -42,7 +42,7 @@ function parseReceipt(body) {
|
|
|
42
42
|
: null;
|
|
43
43
|
}
|
|
44
44
|
class StoreUninstall extends base_command_1.BaseCommand {
|
|
45
|
-
static description = 'Uninstall is reversible: reinstalling restores the Agent copy. --erase permanently removes its Memory and ends
|
|
45
|
+
static description = 'Uninstall is reversible: reinstalling restores the Agent copy. --erase permanently removes its Memory and ends duties; the Agent, purchase, and delivered tasks remain.';
|
|
46
46
|
static examples = [
|
|
47
47
|
'<%= config.bin %> store uninstall agent_abc123',
|
|
48
48
|
'<%= config.bin %> store uninstall agent_abc123 --erase',
|
|
@@ -58,7 +58,7 @@ class StoreUninstall extends base_command_1.BaseCommand {
|
|
|
58
58
|
static flags = {
|
|
59
59
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
60
60
|
erase: core_1.Flags.boolean({
|
|
61
|
-
description: "Also erase the copy's memory and end its
|
|
61
|
+
description: "Also erase the copy's memory and end its duties. Works on a copy you already uninstalled.",
|
|
62
62
|
}),
|
|
63
63
|
yes: core_1.Flags.boolean({ char: 'y', description: 'Skip the confirmation prompt for --erase' }),
|
|
64
64
|
};
|
|
@@ -4,7 +4,7 @@ import { BaseCommand } from '../../base-command';
|
|
|
4
4
|
* Has this service actually delivered?
|
|
5
5
|
*
|
|
6
6
|
* The question every recurring charge has to answer, and the reason a
|
|
7
|
-
* subscription is modelled as a
|
|
7
|
+
* subscription is modelled as a Duty rather than a billing schedule.
|
|
8
8
|
*
|
|
9
9
|
* `unverified` — the work is done and nobody has looked — is counted as
|
|
10
10
|
* DELIVERED and reported separately as "waiting on you". It is not a failure:
|
|
@@ -26,7 +26,7 @@ export default class SubscriptionsHealth extends BaseCommand {
|
|
|
26
26
|
/**
|
|
27
27
|
* What the service owes, as bought. Four answers that must never print alike:
|
|
28
28
|
* the list itself; a service that declared nothing; a subscription whose
|
|
29
|
-
*
|
|
29
|
+
* Duty does not exist yet, so nothing holds the service to what was
|
|
30
30
|
* bought (NOT "declared nothing" — the release may declare plenty); and a
|
|
31
31
|
* contract that could not be read. `undefined` is an older server that does not
|
|
32
32
|
* report it, so nothing is said.
|
|
@@ -8,7 +8,7 @@ const base_command_1 = require("../../base-command");
|
|
|
8
8
|
* Has this service actually delivered?
|
|
9
9
|
*
|
|
10
10
|
* The question every recurring charge has to answer, and the reason a
|
|
11
|
-
* subscription is modelled as a
|
|
11
|
+
* subscription is modelled as a Duty rather than a billing schedule.
|
|
12
12
|
*
|
|
13
13
|
* `unverified` — the work is done and nobody has looked — is counted as
|
|
14
14
|
* DELIVERED and reported separately as "waiting on you". It is not a failure:
|
|
@@ -75,7 +75,7 @@ exports.default = SubscriptionsHealth;
|
|
|
75
75
|
/**
|
|
76
76
|
* What the service owes, as bought. Four answers that must never print alike:
|
|
77
77
|
* the list itself; a service that declared nothing; a subscription whose
|
|
78
|
-
*
|
|
78
|
+
* Duty does not exist yet, so nothing holds the service to what was
|
|
79
79
|
* bought (NOT "declared nothing" — the release may declare plenty); and a
|
|
80
80
|
* contract that could not be read. `undefined` is an older server that does not
|
|
81
81
|
* report it, so nothing is said.
|
|
@@ -51,8 +51,8 @@ class SubscriptionsStatus extends base_command_1.BaseCommand {
|
|
|
51
51
|
if (response.billingIssueCode) {
|
|
52
52
|
this.log(`Last charge failed with: ${response.billingIssueCode}`);
|
|
53
53
|
}
|
|
54
|
-
if (response.
|
|
55
|
-
this.log(`Obligation: ${response.
|
|
54
|
+
if (response.dutyId) {
|
|
55
|
+
this.log(`Obligation: ${response.dutyId}`);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -105,12 +105,12 @@ class SubscriptionsSubscribe extends base_command_1.BaseCommand {
|
|
|
105
105
|
this.log(`Paid through: ${response.expiresAt}`);
|
|
106
106
|
}
|
|
107
107
|
this.log(`Compute paid by: ${(0, data_provider_1.describeStoreComputePayer)(response?.computePayer)}`);
|
|
108
|
-
if (response?.
|
|
109
|
-
// The
|
|
108
|
+
if (response?.dutyId) {
|
|
109
|
+
// The duty is the thing you can hold the service to — surface it,
|
|
110
110
|
// because "is it working" is answered there and nowhere else.
|
|
111
|
-
this.log(`Obligation: ${response.
|
|
111
|
+
this.log(`Obligation: ${response.dutyId}`);
|
|
112
112
|
}
|
|
113
|
-
if (response?.degraded === '
|
|
113
|
+
if (response?.degraded === 'duty_pending') {
|
|
114
114
|
this.log('');
|
|
115
115
|
this.log('Note: the subscription is live but its obligation has not been created yet. It is resumable and refundable; retry to finish opening it.');
|
|
116
116
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
import { type TaskRecord } from '../../lib/tasks';
|
|
3
|
+
import { resolveListWorkspace } from './list';
|
|
4
|
+
import type { ListWorkspaceScope } from './list';
|
|
3
5
|
/**
|
|
4
6
|
* Whether the estimate we asked for survived the write. (S3 dogfood finding)
|
|
5
7
|
*
|
|
@@ -34,6 +36,23 @@ export declare function droppedEstimateWarning(requested: number | undefined, wr
|
|
|
34
36
|
/** A create may have committed before any of these response failures surfaced. */
|
|
35
37
|
export declare function taskCreateMayHaveCommitted(error: unknown): boolean;
|
|
36
38
|
export declare function taskMatchesCreateIdentity(task: TaskRecord, payload: TaskRecord): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Which workspace a new task is stamped with when the person named none (OSK-22516).
|
|
41
|
+
*
|
|
42
|
+
* `tasks list` reads the signed-in person's DEFAULT workspace when no workspace is selected, but
|
|
43
|
+
* `tasks create` sent no workspace at all, so a task made from a plain CLI session had none. The
|
|
44
|
+
* workspace-scoped list returns only tasks in that workspace's Spaces or stamped with its id, so
|
|
45
|
+
* the person's own new task never showed in their own default list while the briefing, which counts
|
|
46
|
+
* everything they authored, still counted it: 220 review tasks and 66 active ones on production
|
|
47
|
+
* (briefing 2,867 against a list of 2,647).
|
|
48
|
+
*
|
|
49
|
+
* The rule is the list's, not a copy of it: a task that names a Space, project, parent or goal
|
|
50
|
+
* takes its scope from that, a selected workspace (`--workspace`, `skrr workspaces use`) stands, an
|
|
51
|
+
* autonomous Agent session stays personal, and a failed lookup changes nothing.
|
|
52
|
+
*/
|
|
53
|
+
export declare function resolveCreateWorkspace(scoped: boolean, env: NodeJS.ProcessEnv, lookupDefault: Parameters<typeof resolveListWorkspace>[2]): Promise<Extract<ListWorkspaceScope, {
|
|
54
|
+
source: 'default';
|
|
55
|
+
}> | undefined>;
|
|
37
56
|
export default class TasksCreate extends BaseCommand {
|
|
38
57
|
static description: string;
|
|
39
58
|
static examples: string[];
|
|
@@ -54,7 +73,7 @@ export default class TasksCreate extends BaseCommand {
|
|
|
54
73
|
'spawn-reason': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
55
74
|
space: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
56
75
|
goal: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
57
|
-
|
|
76
|
+
duty: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
58
77
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
59
78
|
cycle: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
60
79
|
'source-conversation': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|