@skrr-ai/cli 0.1.149 → 0.1.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -20
- package/dist/base-command.d.ts +6 -6
- package/dist/base-command.js +26 -26
- package/dist/commands/agenda/trigger/list.d.ts +1 -1
- package/dist/commands/agenda/trigger/list.js +6 -6
- package/dist/commands/agents/always-on/disable.js +10 -3
- package/dist/commands/agents/always-on/enable.js +1 -1
- package/dist/commands/agents/always-on/reconcile.js +1 -1
- package/dist/commands/agents/always-on/status.js +31 -8
- package/dist/commands/agents/create.d.ts +2 -2
- package/dist/commands/agents/create.js +12 -12
- package/dist/commands/agents/delete.d.ts +17 -1
- package/dist/commands/agents/delete.js +37 -1
- package/dist/commands/agents/egress.js +1 -1
- package/dist/commands/agents/list.d.ts +1 -1
- package/dist/commands/agents/list.js +1 -1
- package/dist/commands/agents/roles/capture.d.ts +1 -1
- package/dist/commands/agents/roles/capture.js +2 -2
- package/dist/commands/agents/roles/install.js +1 -1
- package/dist/commands/agents/spawn.js +47 -38
- package/dist/commands/agents/update.d.ts +1 -1
- package/dist/commands/agents/update.js +3 -3
- package/dist/commands/code/jobs/show.js +1 -1
- package/dist/commands/compass/archive.d.ts +1 -1
- package/dist/commands/compass/archive.js +1 -1
- package/dist/commands/compass/create.js +1 -1
- package/dist/commands/compass/{commitments.d.ts → duties.d.ts} +5 -5
- package/dist/commands/compass/{commitments.js → duties.js} +14 -14
- package/dist/commands/compass/trace.d.ts +1 -1
- package/dist/commands/compass/trace.js +2 -2
- package/dist/commands/convos/messages.js +2 -1
- package/dist/commands/doctor.d.ts +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/{commitments → duties}/accounting.d.ts +7 -7
- package/dist/commands/{commitments → duties}/accounting.js +13 -13
- package/dist/commands/{commitments → duties}/action-history.d.ts +3 -3
- package/dist/commands/{commitments → duties}/action-history.js +12 -12
- package/dist/commands/{commitments → duties}/action-proposal.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposal.js +6 -6
- package/dist/commands/{commitments → duties}/action-proposals/decide.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposals/decide.js +8 -8
- package/dist/commands/{commitments → duties}/action-proposals/execute.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposals/execute.js +7 -7
- package/dist/commands/{commitments → duties}/action-proposals/propose.d.ts +4 -4
- package/dist/commands/{commitments → duties}/action-proposals/propose.js +15 -15
- package/dist/commands/{commitments → duties}/action-proposals.d.ts +1 -1
- package/dist/commands/{commitments → duties}/action-proposals.js +6 -6
- package/dist/commands/{commitments → duties}/analytics/detail.d.ts +5 -5
- package/dist/commands/{commitments → duties}/analytics/detail.js +13 -13
- package/dist/commands/{commitments → duties}/analytics/index.d.ts +5 -5
- package/dist/commands/{commitments → duties}/analytics/index.js +30 -30
- package/dist/commands/{commitments → duties}/analytics/replay.d.ts +3 -3
- package/dist/commands/{commitments → duties}/analytics/replay.js +11 -11
- package/dist/commands/{commitments → duties}/attach.d.ts +3 -3
- package/dist/commands/{commitments → duties}/attach.js +21 -21
- package/dist/commands/{commitments → duties}/bundle.d.ts +1 -1
- package/dist/commands/{commitments → duties}/bundle.js +7 -7
- package/dist/commands/{commitments → duties}/cadence-decisions.d.ts +3 -3
- package/dist/commands/duties/cadence-decisions.js +41 -0
- package/dist/commands/{commitments → duties}/cadence-requests/decide.d.ts +4 -4
- package/dist/commands/{commitments → duties}/cadence-requests/decide.js +11 -11
- package/dist/commands/{commitments → duties}/case.d.ts +2 -2
- package/dist/commands/{commitments → duties}/case.js +8 -8
- package/dist/commands/{commitments → duties}/cases.d.ts +2 -2
- package/dist/commands/{commitments → duties}/cases.js +9 -9
- package/dist/commands/{commitments → duties}/check-now.d.ts +6 -6
- package/dist/commands/{commitments → duties}/check-now.js +29 -29
- package/dist/commands/{commitments → duties}/checks.d.ts +3 -3
- package/dist/commands/{commitments → duties}/checks.js +13 -13
- package/dist/commands/{commitments → duties}/complete.d.ts +2 -2
- package/dist/commands/duties/complete.js +40 -0
- package/dist/commands/{commitments → duties}/control/apply.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/apply.js +7 -7
- package/dist/commands/{commitments → duties}/control/preview.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/preview.js +8 -8
- package/dist/commands/{commitments → duties}/control/show.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/show.js +6 -6
- package/dist/commands/{commitments → duties}/cost.d.ts +6 -6
- package/dist/commands/{commitments → duties}/cost.js +14 -14
- package/dist/commands/{commitments → duties}/create.d.ts +8 -8
- package/dist/commands/{commitments → duties}/create.js +92 -92
- package/dist/commands/{commitments → duties}/cycles.d.ts +2 -2
- package/dist/commands/{commitments → duties}/cycles.js +11 -11
- package/dist/commands/{commitments → duties}/decide-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/decide-remediation.js +6 -6
- package/dist/commands/{commitments → duties}/delete.d.ts +4 -4
- package/dist/commands/{commitments → duties}/delete.js +24 -24
- package/dist/commands/{commitments → duties}/delivery.d.ts +1 -1
- package/dist/commands/{commitments → duties}/delivery.js +15 -15
- package/dist/commands/{commitments → duties}/detach.d.ts +3 -3
- package/dist/commands/{commitments → duties}/detach.js +20 -20
- package/dist/commands/{commitments → duties}/doctor.d.ts +4 -4
- package/dist/commands/{commitments → duties}/doctor.js +21 -21
- package/dist/commands/{commitments → duties}/effective-policy.d.ts +3 -3
- package/dist/commands/{commitments → duties}/effective-policy.js +24 -24
- package/dist/commands/{commitments → duties}/endpoints/connect.d.ts +2 -2
- package/dist/commands/{commitments → duties}/endpoints/connect.js +10 -10
- package/dist/commands/{commitments → duties}/endpoints/create.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/create.js +16 -16
- package/dist/commands/{commitments → duties}/endpoints/delete.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/delete.js +11 -11
- package/dist/commands/{commitments → duties}/endpoints/health.d.ts +2 -2
- package/dist/commands/{commitments → duties}/endpoints/health.js +10 -10
- package/dist/commands/{commitments → duties}/endpoints/list.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/list.js +11 -11
- package/dist/commands/{commitments → duties}/endpoints/revoke.d.ts +4 -4
- package/dist/commands/{commitments → duties}/endpoints/revoke.js +13 -13
- package/dist/commands/{commitments → duties}/evaluations.d.ts +2 -2
- package/dist/commands/{commitments → duties}/evaluations.js +8 -8
- package/dist/commands/{commitments → duties}/execute-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/execute-remediation.js +7 -7
- package/dist/commands/{commitments → duties}/explain.d.ts +2 -2
- package/dist/commands/{commitments → duties}/explain.js +13 -13
- package/dist/commands/{commitments → duties}/export.d.ts +3 -3
- package/dist/commands/{commitments → duties}/export.js +15 -15
- package/dist/commands/{commitments → duties}/feedback.d.ts +4 -4
- package/dist/commands/{commitments → duties}/feedback.js +13 -13
- package/dist/commands/{commitments → duties}/fork.d.ts +3 -3
- package/dist/commands/{commitments → duties}/fork.js +11 -11
- package/dist/commands/{commitments → duties}/goals/link.d.ts +6 -6
- package/dist/commands/duties/goals/link.js +41 -0
- package/dist/commands/{commitments → duties}/goals/unlink.d.ts +4 -4
- package/dist/commands/duties/goals/unlink.js +37 -0
- package/dist/commands/{commitments → duties}/handover.d.ts +5 -5
- package/dist/commands/{commitments → duties}/handover.js +21 -21
- package/dist/commands/{commitments → duties}/hypotheses.d.ts +3 -3
- package/dist/commands/{commitments → duties}/hypotheses.js +13 -13
- package/dist/commands/{commitments → duties}/import.d.ts +2 -2
- package/dist/commands/{commitments → duties}/import.js +10 -10
- package/dist/commands/{commitments → duties}/ledger.d.ts +4 -4
- package/dist/commands/{commitments → duties}/ledger.js +12 -12
- package/dist/commands/{commitments → duties}/lineage.d.ts +5 -5
- package/dist/commands/duties/lineage.js +43 -0
- package/dist/commands/{commitments → duties}/links/create.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/create.js +9 -9
- package/dist/commands/{commitments → duties}/links/detach.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/detach.js +7 -7
- package/dist/commands/{commitments → duties}/links/list.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/list.js +9 -9
- package/dist/commands/{commitments → duties}/links/update.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/update.js +7 -7
- package/dist/commands/{commitments → duties}/list.d.ts +3 -3
- package/dist/commands/{commitments → duties}/list.js +17 -17
- package/dist/commands/{commitments → duties}/liveness.d.ts +6 -6
- package/dist/commands/{commitments → duties}/liveness.js +13 -13
- package/dist/commands/{commitments → duties}/metrics.d.ts +3 -3
- package/dist/commands/{commitments → duties}/metrics.js +12 -12
- package/dist/commands/{commitments → duties}/next-tick.d.ts +7 -7
- package/dist/commands/{commitments → duties}/next-tick.js +14 -14
- package/dist/commands/{commitments → duties}/observation/probe.d.ts +1 -1
- package/dist/commands/{commitments → duties}/observation/probe.js +12 -12
- package/dist/commands/{commitments → duties}/observation/summary.d.ts +1 -1
- package/dist/commands/{commitments → duties}/observation/summary.js +5 -5
- package/dist/commands/{commitments → duties}/observations.d.ts +4 -4
- package/dist/commands/{commitments → duties}/observations.js +18 -18
- package/dist/commands/{commitments → duties}/open.d.ts +1 -1
- package/dist/commands/{commitments → duties}/open.js +13 -13
- package/dist/commands/{commitments → duties}/operating-review.d.ts +5 -5
- package/dist/commands/{commitments → duties}/operating-review.js +21 -21
- package/dist/commands/{commitments → duties}/pack/activate.d.ts +1 -1
- package/dist/commands/{commitments → duties}/pack/activate.js +6 -6
- package/dist/commands/{commitments → duties}/pack/bind.d.ts +4 -4
- package/dist/commands/{commitments → duties}/pack/bind.js +19 -19
- package/dist/commands/{commitments → duties}/pack/list.d.ts +2 -2
- package/dist/commands/{commitments → duties}/pack/list.js +10 -10
- package/dist/commands/{commitments → duties}/pack/plan.d.ts +3 -3
- package/dist/commands/{commitments → duties}/pack/plan.js +12 -12
- package/dist/commands/{commitments → duties}/pack/preflight.d.ts +3 -3
- package/dist/commands/{commitments → duties}/pack/preflight.js +10 -10
- package/dist/commands/{commitments → duties}/patch.d.ts +1 -1
- package/dist/commands/{commitments → duties}/patch.js +7 -7
- package/dist/commands/{commitments → duties}/pause.d.ts +2 -2
- package/dist/commands/{commitments → duties}/pause.js +16 -16
- package/dist/commands/{commitments → duties}/plan.d.ts +4 -4
- package/dist/commands/{commitments → duties}/plan.js +20 -20
- package/dist/commands/{commitments → duties}/preflight.d.ts +8 -8
- package/dist/commands/{commitments → duties}/preflight.js +32 -32
- package/dist/commands/{commitments → duties}/propose-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/propose-remediation.js +6 -6
- package/dist/commands/{commitments → duties}/readiness/show.d.ts +1 -1
- package/dist/commands/{commitments → duties}/readiness/show.js +6 -6
- package/dist/commands/{commitments → duties}/readiness/verify.d.ts +1 -1
- package/dist/commands/{commitments → duties}/readiness/verify.js +7 -7
- package/dist/commands/{commitments → duties}/receipt-metrics.d.ts +4 -4
- package/dist/commands/{commitments → duties}/receipt-metrics.js +16 -16
- package/dist/commands/{commitments → duties}/receipt.d.ts +1 -1
- package/dist/commands/{commitments → duties}/receipt.js +10 -10
- package/dist/commands/{commitments → duties}/reflect.d.ts +4 -4
- package/dist/commands/{commitments → duties}/reflect.js +12 -12
- package/dist/commands/{commitments → duties}/reflection-decision.d.ts +2 -2
- package/dist/commands/{commitments → duties}/reflection-decision.js +7 -7
- package/dist/commands/{commitments → duties}/reflection.d.ts +2 -2
- package/dist/commands/{commitments → duties}/reflection.js +9 -9
- package/dist/commands/{commitments → duties}/remediate.d.ts +5 -5
- package/dist/commands/{commitments → duties}/remediate.js +14 -14
- package/dist/commands/{commitments → duties}/remediation-proposal.d.ts +2 -2
- package/dist/commands/{commitments → duties}/remediation-proposal.js +7 -7
- package/dist/commands/{commitments → duties}/remediation-proposals.d.ts +2 -2
- package/dist/commands/{commitments → duties}/remediation-proposals.js +8 -8
- package/dist/commands/{commitments → duties}/reports.d.ts +5 -5
- package/dist/commands/{commitments → duties}/reports.js +35 -35
- package/dist/commands/{commitments → duties}/restore.d.ts +2 -2
- package/dist/commands/duties/restore.js +46 -0
- package/dist/commands/{commitments → duties}/resume.d.ts +2 -2
- package/dist/commands/duties/resume.js +37 -0
- package/dist/commands/{commitments → duties}/roster.d.ts +2 -2
- package/dist/commands/duties/roster.js +39 -0
- package/dist/commands/{commitments → duties}/show.d.ts +7 -7
- package/dist/commands/{commitments → duties}/show.js +40 -40
- package/dist/commands/{commitments → duties}/status.d.ts +3 -3
- package/dist/commands/duties/status.js +41 -0
- package/dist/commands/{commitments → duties}/subject.d.ts +4 -4
- package/dist/commands/{commitments → duties}/subject.js +29 -29
- package/dist/commands/{commitments → duties}/trace.d.ts +3 -3
- package/dist/commands/{commitments → duties}/trace.js +12 -12
- package/dist/commands/{commitments → duties}/trigger-status.d.ts +6 -6
- package/dist/commands/{commitments → duties}/trigger-status.js +19 -19
- package/dist/commands/{commitments → duties}/update.d.ts +5 -5
- package/dist/commands/{commitments → duties}/update.js +64 -64
- package/dist/commands/{commitments → duties}/wake-capabilities.d.ts +6 -6
- package/dist/commands/{commitments → duties}/wake-capabilities.js +22 -22
- package/dist/commands/{commitments → duties}/work-plan.d.ts +1 -1
- package/dist/commands/{commitments → duties}/work-plan.js +6 -6
- package/dist/commands/goals/key-results/show.js +2 -1
- package/dist/commands/goals/plan-now.js +2 -2
- package/dist/commands/goals/planner-compare.d.ts +1 -1
- package/dist/commands/goals/planner-compare.js +2 -2
- package/dist/commands/grants/create.d.ts +1 -1
- package/dist/commands/grants/create.js +9 -9
- package/dist/commands/grants/list.d.ts +1 -1
- package/dist/commands/grants/list.js +2 -2
- package/dist/commands/initiatives/list.d.ts +1 -1
- package/dist/commands/initiatives/list.js +1 -1
- package/dist/commands/measures/create.d.ts +2 -2
- package/dist/commands/measures/create.js +4 -4
- package/dist/commands/measures/list.d.ts +1 -1
- package/dist/commands/measures/list.js +2 -2
- package/dist/commands/northstars/create.js +4 -4
- package/dist/commands/northstars/delete.d.ts +3 -3
- package/dist/commands/northstars/delete.js +8 -8
- package/dist/commands/northstars/governance/configure.js +15 -15
- package/dist/commands/northstars/intents/decide.d.ts +1 -1
- package/dist/commands/northstars/intents/decide.js +1 -1
- package/dist/commands/northstars/link.d.ts +4 -4
- package/dist/commands/northstars/link.js +8 -8
- package/dist/commands/northstars/list.d.ts +2 -2
- package/dist/commands/northstars/list.js +3 -3
- package/dist/commands/northstars/recommendations/apply.d.ts +1 -1
- package/dist/commands/northstars/recommendations/apply.js +2 -2
- package/dist/commands/northstars/review-now.js +2 -2
- package/dist/commands/northstars/show.d.ts +3 -3
- package/dist/commands/northstars/show.js +5 -5
- package/dist/commands/northstars/unlink.d.ts +3 -3
- package/dist/commands/northstars/unlink.js +6 -6
- package/dist/commands/northstars/update.js +3 -3
- package/dist/commands/proposals/list.d.ts +3 -3
- package/dist/commands/proposals/list.js +7 -7
- package/dist/commands/search/agents.d.ts +4 -1
- package/dist/commands/search/agents.js +6 -3
- package/dist/commands/search/all.d.ts +4 -1
- package/dist/commands/search/all.js +11 -7
- package/dist/commands/search/teams.d.ts +4 -1
- package/dist/commands/search/teams.js +6 -3
- package/dist/commands/spaces/auto-executor/compare.js +1 -1
- package/dist/commands/spaces/auto-executor/runs.js +1 -1
- package/dist/commands/spaces/heartbeats/list.js +2 -2
- package/dist/commands/spaces/index.js +2 -2
- package/dist/commands/spaces/list.d.ts +1 -1
- package/dist/commands/spaces/list.js +1 -1
- package/dist/commands/spaces/loops/migrate.d.ts +1 -1
- package/dist/commands/spaces/loops/migrate.js +1 -1
- package/dist/commands/spaces/loops/release.d.ts +1 -1
- package/dist/commands/spaces/loops/release.js +10 -10
- package/dist/commands/spaces/notebook.d.ts +2 -2
- package/dist/commands/spaces/notebook.js +2 -2
- package/dist/commands/spaces/proposals/discard.js +1 -1
- package/dist/commands/spaces/proposals/keep.js +1 -1
- package/dist/commands/spaces/triggers/show.js +3 -3
- package/dist/commands/spaces/write-policy/set.js +1 -1
- package/dist/commands/store/uninstall.js +2 -2
- package/dist/commands/subscriptions/health.d.ts +2 -2
- package/dist/commands/subscriptions/health.js +2 -2
- package/dist/commands/subscriptions/status.js +2 -2
- package/dist/commands/subscriptions/subscribe.js +4 -4
- package/dist/commands/tasks/create.d.ts +20 -1
- package/dist/commands/tasks/create.js +44 -3
- package/dist/commands/tasks/list.d.ts +7 -1
- package/dist/commands/tasks/list.js +2 -1
- package/dist/generated/agent-guides.json +496 -496
- package/dist/generated/managed-instruction-guides.json +2 -2
- package/dist/hooks/command-not-found.d.ts +1 -1
- package/dist/hooks/command-not-found.js +1 -1
- package/dist/lib/agent-chat-start.js +2 -1
- package/dist/lib/agent-trigger-listing.d.ts +4 -4
- package/dist/lib/agent-trigger-listing.js +7 -7
- package/dist/lib/agentic-stream.d.ts +16 -0
- package/dist/lib/agentic-stream.js +78 -21
- package/dist/lib/always-on-command-result.d.ts +8 -1
- package/dist/lib/always-on-command-result.js +11 -2
- package/dist/lib/auth-failure.js +1 -1
- package/dist/lib/capability-matrix.d.ts +3 -3
- package/dist/lib/capability-matrix.js +9 -9
- package/dist/lib/command-hygiene.js +6 -6
- package/dist/lib/command-miss.js +1 -1
- package/dist/lib/compass-refusals.d.ts +1 -1
- package/dist/lib/compass-refusals.js +1 -1
- package/dist/lib/compasses.d.ts +5 -5
- package/dist/lib/compasses.js +15 -15
- package/dist/lib/dedicated-machines.js +2 -1
- package/dist/lib/dedicated-power.js +2 -0
- package/dist/lib/{commitments.d.ts → duties.d.ts} +198 -198
- package/dist/lib/{commitments.js → duties.js} +282 -282
- package/dist/lib/{commitment-analytics.d.ts → duty-analytics.d.ts} +18 -18
- package/dist/lib/{commitment-analytics.js → duty-analytics.js} +12 -12
- package/dist/lib/{commitment-attention-copy.d.ts → duty-attention-copy.d.ts} +6 -6
- package/dist/lib/{commitment-attention-copy.js → duty-attention-copy.js} +8 -8
- package/dist/lib/{commitment-endpoints.d.ts → duty-endpoints.d.ts} +6 -6
- package/dist/lib/{commitment-endpoints.js → duty-endpoints.js} +10 -10
- package/dist/lib/{commitment-event-wakes.d.ts → duty-event-wakes.d.ts} +2 -2
- package/dist/lib/{commitment-event-wakes.js → duty-event-wakes.js} +2 -2
- package/dist/lib/{commitment-ledgers.js → duty-ledgers.js} +3 -3
- package/dist/lib/{commitment-loop-status.d.ts → duty-loop-status.d.ts} +11 -11
- package/dist/lib/{commitment-loop-status.js → duty-loop-status.js} +22 -22
- package/dist/lib/{commitment-product.d.ts → duty-product.d.ts} +6 -6
- package/dist/lib/{commitment-product.js → duty-product.js} +5 -5
- package/dist/lib/{commitment-terms.d.ts → duty-terms.d.ts} +9 -9
- package/dist/lib/{commitment-terms.js → duty-terms.js} +21 -21
- package/dist/lib/entity-open.d.ts +1 -1
- package/dist/lib/entity-open.js +1 -1
- package/dist/lib/format.d.ts +1 -1
- package/dist/lib/grants.d.ts +3 -3
- package/dist/lib/grants.js +2 -2
- package/dist/lib/initiatives.js +4 -4
- package/dist/lib/node-adapter.js +1 -1
- package/dist/lib/northstars.d.ts +13 -13
- package/dist/lib/northstars.js +56 -56
- package/dist/lib/open-target.js +1 -1
- package/dist/lib/preflight-copy.js +5 -5
- package/dist/lib/proactiveApi.d.ts +15 -4
- package/dist/lib/proposals.js +16 -16
- package/dist/lib/responsibility-controls.d.ts +1 -1
- package/dist/lib/responsibility-controls.js +6 -6
- package/dist/lib/roles.d.ts +1 -1
- package/dist/lib/schedule.d.ts +5 -5
- package/dist/lib/schedule.js +1 -1
- package/dist/lib/session-task-write.d.ts +1 -1
- package/dist/lib/session-task-write.js +2 -2
- package/dist/lib/space-loop-migration.js +6 -6
- package/dist/lib/space-notebook.js +2 -2
- package/dist/lib/space-write-policy.js +2 -2
- package/dist/lib/stewardship-output.js +2 -2
- package/dist/lib/task-spec-verification.js +1 -1
- package/dist/lib/tasks.d.ts +1 -1
- package/dist/lib/tasks.js +8 -8
- package/dist/lib/triggers.d.ts +3 -3
- package/dist/lib/triggers.js +11 -10
- package/dist/lib/usage-discovery.js +2 -4
- package/dist/lib/web-url.d.ts +6 -6
- package/dist/lib/web-url.js +13 -13
- package/dist/lib/workspaces.d.ts +4 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.js → dutyExecutionContract.js} +22 -22
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceipt.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceiptV2.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.d.ts +9 -9
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.js +5 -5
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.d.ts +2 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +4 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.js → dutyExecutionContract.js} +16 -16
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceipt.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceiptV2.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/profilePorts.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.d.ts +9 -9
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.js +8 -8
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.d.ts +2 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.js +6 -6
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/package.json +6 -6
- package/dist/node_modules/@skrr-ai/data-provider/index.js +8150 -8140
- package/docs/v1/lookback-plans.md +1 -1
- package/oclif.manifest.json +5365 -5350
- package/package.json +16 -16
- package/dist/commands/commitments/cadence-decisions.js +0 -41
- package/dist/commands/commitments/complete.js +0 -40
- package/dist/commands/commitments/goals/link.js +0 -41
- package/dist/commands/commitments/goals/unlink.js +0 -37
- package/dist/commands/commitments/lineage.js +0 -43
- package/dist/commands/commitments/restore.js +0 -46
- package/dist/commands/commitments/resume.js +0 -37
- package/dist/commands/commitments/roster.js +0 -39
- package/dist/commands/commitments/status.js +0 -41
- /package/dist/lib/{commitment-ledgers.d.ts → duty-ledgers.d.ts} +0 -0
|
@@ -5,10 +5,10 @@ exports.wakePolicyLines = wakePolicyLines;
|
|
|
5
5
|
exports.describeUnavailable = describeUnavailable;
|
|
6
6
|
const core_1 = require("@oclif/core");
|
|
7
7
|
const base_command_1 = require("../../base-command");
|
|
8
|
-
const
|
|
8
|
+
const duties_1 = require("../../lib/duties");
|
|
9
9
|
const format_1 = require("../../lib/format");
|
|
10
|
-
const
|
|
11
|
-
const
|
|
10
|
+
const duty_event_wakes_1 = require("../../lib/duty-event-wakes");
|
|
11
|
+
const duty_attention_copy_1 = require("../../lib/duty-attention-copy");
|
|
12
12
|
/**
|
|
13
13
|
* The headline used to stop at "configured sources may wake the Agent within lifecycle and execution
|
|
14
14
|
* budgets", over a column marked ACTIVE, which read as bound while `trigger-status` said no event
|
|
@@ -29,18 +29,18 @@ function wakePolicyLines(result) {
|
|
|
29
29
|
if (!wakes) {
|
|
30
30
|
return [
|
|
31
31
|
wakePolicyHeadline(),
|
|
32
|
-
`${pickable} \`skrr
|
|
32
|
+
`${pickable} \`skrr duties trigger-status <id>\` shows what is bound.`,
|
|
33
33
|
];
|
|
34
34
|
}
|
|
35
35
|
const lines = [wakePolicyHeadline(), pickable];
|
|
36
|
-
if (wakes.
|
|
37
|
-
lines.push(`The
|
|
36
|
+
if (wakes.dutyStatus !== 'active') {
|
|
37
|
+
lines.push(`The Duty's status is ${wakes.dutyStatus}, so none of this wakes it.`);
|
|
38
38
|
}
|
|
39
39
|
lines.push(`Cadence mode: ${wakes.cadenceMode ?? 'unknown'}`);
|
|
40
|
-
lines.push(...(0,
|
|
40
|
+
lines.push(...(0, duty_event_wakes_1.eventWakeLines)(wakes.eventCapabilities));
|
|
41
41
|
lines.push('`materialized` means a trigger exists, not that it is enabled or can fire (Always-On, the upstream ' +
|
|
42
|
-
'installation): `skrr
|
|
43
|
-
if (wakes.
|
|
42
|
+
'installation): `skrr duties trigger-status <id>` lists each binding with its state.');
|
|
43
|
+
if (wakes.dutyStatus === 'active' && wakes.agentChosenEventWaits > 0) {
|
|
44
44
|
lines.push(`The Agent has ${wakes.agentChosenEventWaits} event wait(s) of its own set (enabled trigger rows); the cadence does not gate those.`);
|
|
45
45
|
}
|
|
46
46
|
return lines;
|
|
@@ -57,25 +57,25 @@ function describeUnavailable(reason) {
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
|
-
* `skrr
|
|
60
|
+
* `skrr duties wake-capabilities <id>` — which wakes an Agent may pick.
|
|
61
61
|
*
|
|
62
62
|
* Two lists, and the difference between them is the whole point:
|
|
63
|
-
* ELIGIBLE — what this
|
|
63
|
+
* ELIGIBLE — what this duty's sensors/grants make technically possible.
|
|
64
64
|
* VISIBLE — what the wake permission policy actually offers the Agent.
|
|
65
65
|
*
|
|
66
66
|
* A capability that is eligible but not visible is a deliberate refusal, not a
|
|
67
67
|
* misconfiguration. Showing only one list would make those indistinguishable.
|
|
68
68
|
*/
|
|
69
|
-
class
|
|
69
|
+
class DutiesWakeCapabilities extends base_command_1.BaseCommand {
|
|
70
70
|
// A working command an operator cannot discover is an observability gap, not
|
|
71
71
|
// a product simplification — surfaced by dogfood (OSK-10941).
|
|
72
|
-
static description = 'Inspect configured wake-source diagnostics for a
|
|
72
|
+
static description = 'Inspect configured wake-source diagnostics for a duty';
|
|
73
73
|
static examples = [
|
|
74
|
-
'<%= config.bin %>
|
|
75
|
-
'<%= config.bin %>
|
|
74
|
+
'<%= config.bin %> duties wake-capabilities obj_abc123',
|
|
75
|
+
'<%= config.bin %> duties wake-capabilities obj_abc123 --json',
|
|
76
76
|
];
|
|
77
77
|
static args = {
|
|
78
|
-
|
|
78
|
+
dutyId: core_1.Args.string({ ignoreStdin: true, description: 'Duty ID', required: true }),
|
|
79
79
|
};
|
|
80
80
|
static flags = {
|
|
81
81
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
@@ -83,10 +83,10 @@ class CommitmentsWakeCapabilities extends base_command_1.BaseCommand {
|
|
|
83
83
|
};
|
|
84
84
|
async run() {
|
|
85
85
|
this.requireAuth();
|
|
86
|
-
const { args, flags } = await this.parse(
|
|
86
|
+
const { args, flags } = await this.parse(DutiesWakeCapabilities);
|
|
87
87
|
let result;
|
|
88
88
|
try {
|
|
89
|
-
result = await
|
|
89
|
+
result = await duties_1.dutyApi.wakeCapabilities(args.dutyId);
|
|
90
90
|
}
|
|
91
91
|
catch (err) {
|
|
92
92
|
this.handleApiError(err);
|
|
@@ -99,11 +99,11 @@ class CommitmentsWakeCapabilities extends base_command_1.BaseCommand {
|
|
|
99
99
|
this.log(line);
|
|
100
100
|
// The owner's allowlist of event sources (OSK-21113): the response does not carry it, and for
|
|
101
101
|
// unset, [], a bogus name and a real source this output was byte-identical. Read from the
|
|
102
|
-
//
|
|
102
|
+
// Duty's own policy; unread, the line is left out rather than claim "all allowed".
|
|
103
103
|
try {
|
|
104
|
-
const policy = (await
|
|
104
|
+
const policy = (await duties_1.dutyApi.get(args.dutyId))?.duty?.policy;
|
|
105
105
|
if (policy) {
|
|
106
|
-
this.log(`Event sources: ${(0,
|
|
106
|
+
this.log(`Event sources: ${(0, duty_attention_copy_1.describeEventSources)(policy.executionBudget?.allowedEventSources)}`);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
catch {
|
|
@@ -127,4 +127,4 @@ class CommitmentsWakeCapabilities extends base_command_1.BaseCommand {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
exports.default =
|
|
130
|
+
exports.default = DutiesWakeCapabilities;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
|
-
export default class
|
|
2
|
+
export default class DutiesWorkPlan extends BaseCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static args: {
|
|
5
5
|
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const core_1 = require("@oclif/core");
|
|
4
4
|
const base_command_1 = require("../../base-command");
|
|
5
|
-
const
|
|
6
|
-
class
|
|
5
|
+
const duties_1 = require("../../lib/duties");
|
|
6
|
+
class DutiesWorkPlan extends base_command_1.BaseCommand {
|
|
7
7
|
static description = 'Read permission-filtered delegated assignments and workflow episodes for a responsibility';
|
|
8
|
-
static args = { id: core_1.Args.string({ description: '
|
|
8
|
+
static args = { id: core_1.Args.string({ description: 'Duty ID', required: true, ignoreStdin: true }) };
|
|
9
9
|
static flags = { json: core_1.Flags.boolean({ description: 'Output the complete public work-plan projection as JSON' }) };
|
|
10
10
|
async run() {
|
|
11
11
|
this.requireAuth();
|
|
12
|
-
const { args, flags } = await this.parse(
|
|
12
|
+
const { args, flags } = await this.parse(DutiesWorkPlan);
|
|
13
13
|
try {
|
|
14
|
-
const plan = await
|
|
14
|
+
const plan = await duties_1.dutyApi.workPlan(args.id);
|
|
15
15
|
if (flags.json) {
|
|
16
16
|
this.log(JSON.stringify(plan, null, 2));
|
|
17
17
|
return;
|
|
@@ -33,4 +33,4 @@ class CommitmentsWorkPlan extends base_command_1.BaseCommand {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
exports.default =
|
|
36
|
+
exports.default = DutiesWorkPlan;
|
|
@@ -4,6 +4,7 @@ const core_1 = require("@oclif/core");
|
|
|
4
4
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
5
|
const base_command_1 = require("../../../base-command");
|
|
6
6
|
const history_1 = require("./history");
|
|
7
|
+
const RUN_RE = /\s+/g;
|
|
7
8
|
/**
|
|
8
9
|
* `skrr goals key-results show <goal-id> <kr-id>` — full detail for one key
|
|
9
10
|
* result. Wraps `GET /api/goals/:goalId/key-results/:krId` (data-provider
|
|
@@ -60,7 +61,7 @@ class GoalsKeyResultsShow extends base_command_1.BaseCommand {
|
|
|
60
61
|
}
|
|
61
62
|
this.log(`Activity: ${activity ? `${activity.done} of ${activity.total} linked task(s) done` : '-'}`);
|
|
62
63
|
if (assessment) {
|
|
63
|
-
const why = assessment.rationale?.replace(
|
|
64
|
+
const why = assessment.rationale?.replace(RUN_RE, ' ').trim();
|
|
64
65
|
this.log(`Judged: ${String(assessment.at ?? '')
|
|
65
66
|
.slice(0, 19)
|
|
66
67
|
.replace('T', ' ')}`);
|
|
@@ -72,7 +72,7 @@ function describePlannerReason(reason) {
|
|
|
72
72
|
case 'one_voice_busy':
|
|
73
73
|
return 'another agent was already speaking for this owner, so the tick stayed quiet';
|
|
74
74
|
case 'goal_loop_holds_turn':
|
|
75
|
-
return "a goal_advance loop holds this goal's planning turn, so the planner stood down (ask the loop instead: `
|
|
75
|
+
return "a goal_advance loop holds this goal's planning turn, so the planner stood down (ask the loop instead: `duties check-now <id>`; cancelling it or detaching its advance link hands the goal back)";
|
|
76
76
|
case 'goal_turn_unreadable':
|
|
77
77
|
return 'whether a goal_advance loop holds this goal could not be read, so the planner did not run';
|
|
78
78
|
default:
|
|
@@ -208,7 +208,7 @@ class GoalsPlanNow extends base_command_1.BaseCommand {
|
|
|
208
208
|
const retry = transient
|
|
209
209
|
? ` Re-run \`${this.config.bin} goals plan-now ${args.id}\` to try again.`
|
|
210
210
|
: '';
|
|
211
|
-
const loop = r?.
|
|
211
|
+
const loop = r?.dutyId ? ` The loop is duty ${r.dutyId}.` : '';
|
|
212
212
|
this.failWithCliError({
|
|
213
213
|
message: `The planner did not run for goal ${args.id}` +
|
|
214
214
|
(reasonText ? `: ${reasonText}.` : '.') +
|
|
@@ -12,7 +12,7 @@ export declare function comparisonLines(result: GoalPlanningComparison): string[
|
|
|
12
12
|
* the key results (the planner never does), its open and failed work is no
|
|
13
13
|
* worse than the planner's, the key results it held over moved no worse, and
|
|
14
14
|
* concurrent turns are 0. Every stop of the loop is explained in its Cycles
|
|
15
|
-
* (`
|
|
15
|
+
* (`duties cycles <id>`).
|
|
16
16
|
*/
|
|
17
17
|
export default class GoalsPlannerCompare extends BaseCommand {
|
|
18
18
|
static description: string;
|
|
@@ -27,7 +27,7 @@ function holderNowLabel(current) {
|
|
|
27
27
|
if (current.holder === 'goal_planner')
|
|
28
28
|
return 'the Goal planner';
|
|
29
29
|
if (current.holder === 'goal_loop') {
|
|
30
|
-
return `the goal_advance loop ${current.
|
|
30
|
+
return `the goal_advance loop ${current.dutyId ?? ''}`.trim();
|
|
31
31
|
}
|
|
32
32
|
return 'unknown (could not be read)';
|
|
33
33
|
}
|
|
@@ -87,7 +87,7 @@ function comparisonLines(result) {
|
|
|
87
87
|
* the key results (the planner never does), its open and failed work is no
|
|
88
88
|
* worse than the planner's, the key results it held over moved no worse, and
|
|
89
89
|
* concurrent turns are 0. Every stop of the loop is explained in its Cycles
|
|
90
|
-
* (`
|
|
90
|
+
* (`duties cycles <id>`).
|
|
91
91
|
*/
|
|
92
92
|
class GoalsPlannerCompare extends base_command_1.BaseCommand {
|
|
93
93
|
static description = "Compare the Goal planner with the Goal's goal_advance loop: who held the planning turn, the Goal each held it over, and whether their turns overlapped";
|
|
@@ -17,7 +17,7 @@ export default class GrantsCreate extends BaseCommand {
|
|
|
17
17
|
static flags: {
|
|
18
18
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
19
19
|
agent: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
-
|
|
20
|
+
duty: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
21
|
provider: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
22
|
label: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
23
|
access: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -16,17 +16,17 @@ const data_provider_1 = require("@skrr-ai/data-provider");
|
|
|
16
16
|
* The value is stored encrypted and cannot be read back — keep your own copy.
|
|
17
17
|
*/
|
|
18
18
|
class GrantsCreate extends base_command_1.BaseCommand {
|
|
19
|
-
static description = 'Create a credential grant for an agent or
|
|
19
|
+
static description = 'Create a credential grant for an agent or duty';
|
|
20
20
|
static examples = [
|
|
21
21
|
'<%= config.bin %> grants create --agent <agent-id> --provider aws --label "AWS read-only" --env AWS_ACCESS_KEY_ID=AKIA... --env AWS_SECRET_ACCESS_KEY=...',
|
|
22
|
-
'<%= config.bin %> grants create --
|
|
22
|
+
'<%= config.bin %> grants create --duty <duty-id> --provider stripe --label Billing --env STRIPE_API_KEY=sk_live_... --daemon',
|
|
23
23
|
];
|
|
24
24
|
static args = {};
|
|
25
25
|
static flags = {
|
|
26
26
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
27
27
|
agent: core_1.Flags.string({ description: 'Agent ID this grant is issued to' }),
|
|
28
|
-
|
|
29
|
-
description: '
|
|
28
|
+
duty: core_1.Flags.string({
|
|
29
|
+
description: 'Duty ID this grant is issued to (tighter blast radius than an agent)',
|
|
30
30
|
}),
|
|
31
31
|
provider: core_1.Flags.string({ description: 'Provider slug (e.g. aws, stripe)', required: true }),
|
|
32
32
|
label: core_1.Flags.string({ description: 'Human label', required: true }),
|
|
@@ -53,11 +53,11 @@ class GrantsCreate extends base_command_1.BaseCommand {
|
|
|
53
53
|
async run() {
|
|
54
54
|
this.requireAuth();
|
|
55
55
|
const { flags } = await this.parse(GrantsCreate);
|
|
56
|
-
if (!flags.agent && !flags.
|
|
57
|
-
this.error('Specify --agent or --
|
|
56
|
+
if (!flags.agent && !flags.duty) {
|
|
57
|
+
this.error('Specify --agent or --duty: a grant must name the principal that holds it.');
|
|
58
58
|
}
|
|
59
|
-
if (flags.agent && flags.
|
|
60
|
-
this.error('Specify only one of --agent / --
|
|
59
|
+
if (flags.agent && flags.duty) {
|
|
60
|
+
this.error('Specify only one of --agent / --duty.');
|
|
61
61
|
}
|
|
62
62
|
let env;
|
|
63
63
|
try {
|
|
@@ -69,7 +69,7 @@ class GrantsCreate extends base_command_1.BaseCommand {
|
|
|
69
69
|
const grant = await grants_1.grantApi.create({
|
|
70
70
|
principal: flags.agent
|
|
71
71
|
? { kind: 'agent', agentId: flags.agent }
|
|
72
|
-
: { kind: '
|
|
72
|
+
: { kind: 'duty', dutyId: flags.duty },
|
|
73
73
|
provider: flags.provider,
|
|
74
74
|
label: flags.label,
|
|
75
75
|
...(flags.access ? { access: flags.access } : {}),
|
|
@@ -11,7 +11,7 @@ export default class GrantsList extends BaseCommand {
|
|
|
11
11
|
static flags: {
|
|
12
12
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
13
13
|
agent: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
-
|
|
14
|
+
duty: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
15
|
provider: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
16
|
};
|
|
17
17
|
run(): Promise<void>;
|
|
@@ -21,7 +21,7 @@ class GrantsList extends base_command_1.BaseCommand {
|
|
|
21
21
|
static flags = {
|
|
22
22
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
23
23
|
agent: core_1.Flags.string({ description: 'Filter by agent ID' }),
|
|
24
|
-
|
|
24
|
+
duty: core_1.Flags.string({ description: 'Filter by duty ID' }),
|
|
25
25
|
provider: core_1.Flags.string({ description: 'Filter by provider (e.g. aws)' }),
|
|
26
26
|
};
|
|
27
27
|
async run() {
|
|
@@ -29,7 +29,7 @@ class GrantsList extends base_command_1.BaseCommand {
|
|
|
29
29
|
const { flags } = await this.parse(GrantsList);
|
|
30
30
|
const response = await grants_1.grantApi.list((0, triggers_1.withQuery)('/api/grants', {
|
|
31
31
|
agentId: flags.agent,
|
|
32
|
-
|
|
32
|
+
dutyId: flags.duty,
|
|
33
33
|
provider: flags.provider,
|
|
34
34
|
}));
|
|
35
35
|
if (flags.json) {
|
|
@@ -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) {
|
|
@@ -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
|