@skrr-ai/cli 0.1.150 → 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/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 +38 -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/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/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 +4 -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 +5337 -5337
- 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
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* duty-terms.ts — shared read-modify-write helpers for the four
|
|
3
|
+
* Duty terms (gap analysis §B1–§B4).
|
|
4
4
|
*
|
|
5
5
|
* ---------------------------------------------------------------------------
|
|
6
|
-
* Why attach/detach are commands, not flags on `
|
|
6
|
+
* Why attach/detach are commands, not flags on `duties update`
|
|
7
7
|
* ---------------------------------------------------------------------------
|
|
8
|
-
* `PATCH /api/
|
|
9
|
-
* WHOLESALE — the same merge hazard `
|
|
8
|
+
* `PATCH /api/duties/:id` replaces `sensors` / `grants` / `reports`
|
|
9
|
+
* WHOLESALE — the same merge hazard `duties update` already documents for
|
|
10
10
|
* `target` and `cadence`. A `--sensor` flag on that command would inherit the
|
|
11
|
-
* replace semantics `--watch` has, so `--sensor X` on a
|
|
11
|
+
* replace semantics `--watch` has, so `--sensor X` on a duty already
|
|
12
12
|
* watching Y would silently detach Y. "Attach" that detaches something else is
|
|
13
13
|
* the kind of surface the audit spends §1.2 on.
|
|
14
14
|
*
|
|
15
15
|
* These helpers read the current array, apply ONE change, and write the whole
|
|
16
16
|
* array back — so the command name and the effect agree.
|
|
17
17
|
*/
|
|
18
|
-
import type {
|
|
18
|
+
import type { Duty } from './duties';
|
|
19
19
|
export type SensorRefInput = {
|
|
20
20
|
kind: 'trigger' | 'ingress';
|
|
21
21
|
refId: string;
|
|
@@ -31,7 +31,7 @@ export declare function sensorRefKey(ref: {
|
|
|
31
31
|
refId?: string;
|
|
32
32
|
}): string;
|
|
33
33
|
/** Fetch the contract, or fail with a message naming the id the user typed. */
|
|
34
|
-
export declare function
|
|
34
|
+
export declare function loadDuty(id: string): Promise<Duty>;
|
|
35
35
|
/**
|
|
36
36
|
* Add one item to a term array, refusing a duplicate.
|
|
37
37
|
*
|
|
@@ -42,4 +42,4 @@ export declare function appendUnique<T>(existing: readonly T[], next: T, keyOf:
|
|
|
42
42
|
/** Remove one item from a term array, refusing a no-op. */
|
|
43
43
|
export declare function removeByKey<T>(existing: readonly T[], key: string, keyOf: (item: T) => string, what: string): T[];
|
|
44
44
|
/** Render the four terms for the human-readable command output. */
|
|
45
|
-
export declare function
|
|
45
|
+
export declare function renderDutyTerms(duty: Duty, log: (line: string) => void): void;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* duty-terms.ts — shared read-modify-write helpers for the four
|
|
4
|
+
* Duty terms (gap analysis §B1–§B4).
|
|
5
5
|
*
|
|
6
6
|
* ---------------------------------------------------------------------------
|
|
7
|
-
* Why attach/detach are commands, not flags on `
|
|
7
|
+
* Why attach/detach are commands, not flags on `duties update`
|
|
8
8
|
* ---------------------------------------------------------------------------
|
|
9
|
-
* `PATCH /api/
|
|
10
|
-
* WHOLESALE — the same merge hazard `
|
|
9
|
+
* `PATCH /api/duties/:id` replaces `sensors` / `grants` / `reports`
|
|
10
|
+
* WHOLESALE — the same merge hazard `duties update` already documents for
|
|
11
11
|
* `target` and `cadence`. A `--sensor` flag on that command would inherit the
|
|
12
|
-
* replace semantics `--watch` has, so `--sensor X` on a
|
|
12
|
+
* replace semantics `--watch` has, so `--sensor X` on a duty already
|
|
13
13
|
* watching Y would silently detach Y. "Attach" that detaches something else is
|
|
14
14
|
* the kind of surface the audit spends §1.2 on.
|
|
15
15
|
*
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.parseSensorRef = parseSensorRef;
|
|
21
21
|
exports.sensorRefKey = sensorRefKey;
|
|
22
|
-
exports.
|
|
22
|
+
exports.loadDuty = loadDuty;
|
|
23
23
|
exports.appendUnique = appendUnique;
|
|
24
24
|
exports.removeByKey = removeByKey;
|
|
25
|
-
exports.
|
|
26
|
-
const
|
|
25
|
+
exports.renderDutyTerms = renderDutyTerms;
|
|
26
|
+
const duties_1 = require("./duties");
|
|
27
27
|
const PARSE_SENSOR_REF_RE = /^(trigger|ingress):(.+)$/;
|
|
28
28
|
/**
|
|
29
29
|
* Parse a sensor reference. Accepts `ingress:<id>` / `trigger:<id>`, or a bare
|
|
@@ -47,13 +47,13 @@ function sensorRefKey(ref) {
|
|
|
47
47
|
return `${ref.kind}:${ref.refId}`;
|
|
48
48
|
}
|
|
49
49
|
/** Fetch the contract, or fail with a message naming the id the user typed. */
|
|
50
|
-
async function
|
|
51
|
-
const res = await
|
|
52
|
-
const
|
|
53
|
-
if (!
|
|
54
|
-
throw new Error(`
|
|
50
|
+
async function loadDuty(id) {
|
|
51
|
+
const res = await duties_1.dutyApi.get(id);
|
|
52
|
+
const duty = res?.duty;
|
|
53
|
+
if (!duty) {
|
|
54
|
+
throw new Error(`Duty ${id} not found.`);
|
|
55
55
|
}
|
|
56
|
-
return
|
|
56
|
+
return duty;
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* Add one item to a term array, refusing a duplicate.
|
|
@@ -72,27 +72,27 @@ function appendUnique(existing, next, keyOf, what) {
|
|
|
72
72
|
function removeByKey(existing, key, keyOf, what) {
|
|
73
73
|
const out = existing.filter((item) => keyOf(item) !== key);
|
|
74
74
|
if (out.length === existing.length) {
|
|
75
|
-
throw new Error(`${what} ${key} is not attached to this
|
|
75
|
+
throw new Error(`${what} ${key} is not attached to this duty.`);
|
|
76
76
|
}
|
|
77
77
|
return out;
|
|
78
78
|
}
|
|
79
79
|
/** Render the four terms for the human-readable command output. */
|
|
80
|
-
function
|
|
81
|
-
const subject =
|
|
80
|
+
function renderDutyTerms(duty, log) {
|
|
81
|
+
const subject = duty.subject;
|
|
82
82
|
log(`Subject: ${subject?.externalKey
|
|
83
83
|
? `${subject.type} ${subject.label || subject.externalKey}`
|
|
84
84
|
: 'standing (not about one instance)'}`);
|
|
85
|
-
const sensors =
|
|
85
|
+
const sensors = duty.sensors ?? [];
|
|
86
86
|
log(`Sensors: ${sensors.length
|
|
87
87
|
? sensors
|
|
88
88
|
.map((s) => `${sensorRefKey(s)}${s.sensorType ? ` (${s.sensorType})` : ''}`)
|
|
89
89
|
.join(', ')
|
|
90
90
|
: 'nothing attached'}`);
|
|
91
|
-
const grants =
|
|
91
|
+
const grants = duty.grants ?? [];
|
|
92
92
|
log(`Can use: ${grants.length
|
|
93
93
|
? grants.map((g) => g.provider || g.label || g.grantId).join(', ')
|
|
94
94
|
: 'no credentials'}`);
|
|
95
|
-
const reports =
|
|
95
|
+
const reports = duty.reports ?? [];
|
|
96
96
|
log(`Reports: ${reports.length
|
|
97
97
|
? reports
|
|
98
98
|
.map((r) => `${r.destination}${r.destinationTarget ? `:${r.destinationTarget}` : ''} on ${r.on ?? 'material_change'}${r.format ? ` format ${r.format}` : ''}${r.review ? ` · reviewed by ${r.review}` : ''}`)
|
|
@@ -45,7 +45,7 @@ export declare function launchEntityUrl(url: string, target: EntityOpenTarget, {
|
|
|
45
45
|
}): Promise<void>;
|
|
46
46
|
/**
|
|
47
47
|
* The common open decision for tasks, spaces, projects, goals, and
|
|
48
|
-
*
|
|
48
|
+
* duties. In a pipeline or redirected shell opening a GUI is surprising
|
|
49
49
|
* and often impossible, so return `opened: false` and let the command print
|
|
50
50
|
* the canonical URL instead.
|
|
51
51
|
*/
|
package/dist/lib/entity-open.js
CHANGED
|
@@ -78,7 +78,7 @@ async function launchEntityUrl(url, target, { platform = process.platform, run =
|
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
80
|
* The common open decision for tasks, spaces, projects, goals, and
|
|
81
|
-
*
|
|
81
|
+
* duties. In a pipeline or redirected shell opening a GUI is surprising
|
|
82
82
|
* and often impossible, so return `opened: false` and let the command print
|
|
83
83
|
* the canonical URL instead.
|
|
84
84
|
*/
|
package/dist/lib/format.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ export declare function collapseWhitespace(value: string): string;
|
|
|
64
64
|
* Render an array of row objects as a column-aligned table.
|
|
65
65
|
*
|
|
66
66
|
* `maxWidth` clips a column against a hard-coded guess, not against the
|
|
67
|
-
* terminal — so `
|
|
67
|
+
* terminal — so `duties list` printed `obj_585a163b-baa9-48e0-9374…` in a
|
|
68
68
|
* 190-column window (OSK-6175). For a prose column that is the right trade:
|
|
69
69
|
* a clipped title still reads. For an identifier it is not, because the one
|
|
70
70
|
* thing an ID column is FOR is being pasted into the next command, and
|
package/dist/lib/grants.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { GrantAccess, GrantAccessSource } from '@skrr-ai/data-provider';
|
|
2
2
|
import { type TableColumn } from './format';
|
|
3
|
-
export declare const GRANT_PRINCIPAL_KINDS: readonly ["agent", "
|
|
3
|
+
export declare const GRANT_PRINCIPAL_KINDS: readonly ["agent", "duty"];
|
|
4
4
|
export declare const GRANT_CREDENTIAL_KINDS: readonly ["env", "bearer", "basic", "json"];
|
|
5
5
|
export interface GrantPrincipal {
|
|
6
|
-
kind: 'agent' | '
|
|
6
|
+
kind: 'agent' | 'duty';
|
|
7
7
|
agentId?: string;
|
|
8
|
-
|
|
8
|
+
dutyId?: string;
|
|
9
9
|
}
|
|
10
10
|
export interface Grant {
|
|
11
11
|
access?: GrantAccess;
|
package/dist/lib/grants.js
CHANGED
|
@@ -19,7 +19,7 @@ exports.renderGrantList = renderGrantList;
|
|
|
19
19
|
*/
|
|
20
20
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
21
21
|
const format_1 = require("./format");
|
|
22
|
-
exports.GRANT_PRINCIPAL_KINDS = ['agent', '
|
|
22
|
+
exports.GRANT_PRINCIPAL_KINDS = ['agent', 'duty'];
|
|
23
23
|
exports.GRANT_CREDENTIAL_KINDS = ['env', 'bearer', 'basic', 'json'];
|
|
24
24
|
exports.grantApi = {
|
|
25
25
|
list: (path) => data_provider_1.request.get(path),
|
|
@@ -73,7 +73,7 @@ function grantTableCells(g) {
|
|
|
73
73
|
access: g.access
|
|
74
74
|
? `${g.access} (${g.accessSource === 'attested' ? 'attested' : 'declared, not verified'})`
|
|
75
75
|
: 'undeclared',
|
|
76
|
-
principal: principal?.agentId || principal?.
|
|
76
|
+
principal: principal?.agentId || principal?.dutyId || principal?.kind || '—',
|
|
77
77
|
// NAMES only. This is the audit surface; a value never reaches the CLI.
|
|
78
78
|
credential: g.credential?.configured
|
|
79
79
|
? g.credential.envKeys.join(',') || g.credential.kind || 'set'
|
package/dist/lib/initiatives.js
CHANGED
|
@@ -7,17 +7,17 @@ exports.initiativeSummaryLine = initiativeSummaryLine;
|
|
|
7
7
|
* (`/api/initiatives/*`).
|
|
8
8
|
*
|
|
9
9
|
* An **Agent Initiative** is the proposal-and-decision surface for everything an
|
|
10
|
-
* agent wants to do but may not do on its own. A Meta
|
|
10
|
+
* agent wants to do but may not do on its own. A Meta Duty's Portfolio
|
|
11
11
|
* Steward emits a typed proposal; the router freezes it into an Initiative with
|
|
12
12
|
* `approvalRequired: true`; and the owner's decision is what turns it into a
|
|
13
|
-
*
|
|
13
|
+
* Duty draft, a Space, or a Task.
|
|
14
14
|
*
|
|
15
15
|
* The decision therefore has to be reachable from `skrr`: an agent whose
|
|
16
|
-
*
|
|
16
|
+
* duties execute on the local daemon otherwise produces proposals its own
|
|
17
17
|
* operator has to open a browser to answer.
|
|
18
18
|
*
|
|
19
19
|
* These endpoints are not exposed as `dataService.*` functions, so this talks to
|
|
20
|
-
* them through the shared `request` transport, following `
|
|
20
|
+
* them through the shared `request` transport, following `dutyApi`.
|
|
21
21
|
*/
|
|
22
22
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
23
23
|
const triggers_1 = require("./triggers");
|
package/dist/lib/node-adapter.js
CHANGED
|
@@ -97,7 +97,7 @@ function createNodeAdapter(opts = {}) {
|
|
|
97
97
|
}
|
|
98
98
|
// Correlation hints only. The task API never trusts these values directly:
|
|
99
99
|
// it resolves the durable Run under the authenticated owner and verifies
|
|
100
|
-
// the exact attempt session before stamping
|
|
100
|
+
// the exact attempt session before stamping Duty provenance.
|
|
101
101
|
const autonomousRunId = process.env.OVERSKY_AUTONOMOUS_RUN_ID?.trim();
|
|
102
102
|
const sessionId = process.env.OVERSKY_SESSION_ID?.trim();
|
|
103
103
|
// The same pair for a Task run the AgentWorker executes (OSK-18132). It has
|
package/dist/lib/northstars.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare function intentRisk(intent: {
|
|
|
18
18
|
export declare function shortReviewId(id: string): string;
|
|
19
19
|
/**
|
|
20
20
|
* What a configure that changed the allocation inputs (the run budget, the critical reserve, the
|
|
21
|
-
* cadence band) says it did to the linked
|
|
21
|
+
* cadence band) says it did to the linked duties. Additive on the server: absent from an
|
|
22
22
|
* older server, `allocationsPending` only when non-zero, `allocationsRefreshFailed` only on failure.
|
|
23
23
|
*/
|
|
24
24
|
export type AllocationRefreshFields = {
|
|
@@ -173,8 +173,8 @@ export declare function personalNorthstarNote(context?: PersonalNorthstarContext
|
|
|
173
173
|
export declare function createdNorthstarNote(northstar: WorkspaceBearing, context?: PersonalNorthstarContext): string | undefined;
|
|
174
174
|
export declare function renderNorthstarList(rows: Northstar[], log: (line: string) => void): void;
|
|
175
175
|
/**
|
|
176
|
-
* The active-
|
|
177
|
-
* treats it as "no cap" (it does not flag every
|
|
176
|
+
* The active-duty cap, in words. `0` is accepted and stored, and a review
|
|
177
|
+
* treats it as "no cap" (it does not flag every duty over a cap of zero),
|
|
178
178
|
* so the screen says that rather than letting `0` read as a limit.
|
|
179
179
|
*/
|
|
180
180
|
export declare function describeMaxActive(value: number | undefined): string;
|
|
@@ -187,7 +187,7 @@ export declare function renderRecommendationList(rows: NorthstarRecommendation[]
|
|
|
187
187
|
* would run it is online.
|
|
188
188
|
*/
|
|
189
189
|
export declare function reviewerReadiness(reviewer: NorthstarGovernanceStatus['reviewer']): string;
|
|
190
|
-
/** The `governance configure` flags that move what a
|
|
190
|
+
/** The `governance configure` flags that move what a duty's allocation is computed from. */
|
|
191
191
|
export declare const ALLOCATION_INPUT_FLAGS: readonly ["max-runs-per-day", "clear-max-runs-per-day", "critical-reserve", "min-interval-hours", "max-interval-hours", "max-relative-change"];
|
|
192
192
|
export type AllocationRefresh = {
|
|
193
193
|
refreshed: number;
|
|
@@ -197,8 +197,8 @@ export type AllocationRefresh = {
|
|
|
197
197
|
/** The refresh summary a configure response carries, or undefined from a server that sends none. */
|
|
198
198
|
export declare function readAllocationRefresh(response: AllocationRefreshFields | undefined): AllocationRefresh | undefined;
|
|
199
199
|
/**
|
|
200
|
-
* What `governance configure` says about the linked
|
|
201
|
-
* budget or cadence band to every linked active
|
|
200
|
+
* What `governance configure` says about the linked duties. The server re-applies a changed
|
|
201
|
+
* budget or cadence band to every linked active duty at once and answers how many it wrote,
|
|
202
202
|
* how many it could not, and whether the refresh itself failed; the command discarded all of it and
|
|
203
203
|
* re-read the status, so "nothing happened" and "applied to three" looked the same (OSK-21245).
|
|
204
204
|
*
|
|
@@ -214,9 +214,9 @@ export declare function describeAllocationRefresh(refresh: AllocationRefresh | u
|
|
|
214
214
|
warnings: string[];
|
|
215
215
|
};
|
|
216
216
|
/**
|
|
217
|
-
* The `Allocations` line of `review-now`. The count is of
|
|
217
|
+
* The `Allocations` line of `review-now`. The count is of duties WRITTEN, so `0` does not say
|
|
218
218
|
* "nothing happened": it is what a review prints when a configure already applied the budget, or
|
|
219
|
-
* when no active
|
|
219
|
+
* when no active duty is linked, or when no review row could be opened to write under.
|
|
220
220
|
*/
|
|
221
221
|
export declare function describeReviewAllocations(result: {
|
|
222
222
|
review?: unknown;
|
|
@@ -224,12 +224,12 @@ export declare function describeReviewAllocations(result: {
|
|
|
224
224
|
attention?: unknown;
|
|
225
225
|
}): string;
|
|
226
226
|
/**
|
|
227
|
-
* The sentence for a portfolio run budget smaller than the number of linked active
|
|
227
|
+
* The sentence for a portfolio run budget smaller than the number of linked active duties
|
|
228
228
|
* (OSK-21334): each still gets the floor of 1 run/day, so the ceilings add up to more than the
|
|
229
229
|
* budget. The server derives it once (`portfolioRunBudgetFloor.js`) and carries it, when it
|
|
230
230
|
* applies, on the `governance show` read, the `review-now` result and the effective policy's
|
|
231
231
|
* `portfolio`; every one of those three prints THIS sentence, so none composes its own and they
|
|
232
|
-
* cannot disagree. Absent from an older server, and from a budget that covers every
|
|
232
|
+
* cannot disagree. Absent from an older server, and from a budget that covers every duty:
|
|
233
233
|
* no line, never a guess.
|
|
234
234
|
*
|
|
235
235
|
* Takes the carried field as it arrives (`unknown`), because two of the three callers read it off
|
|
@@ -237,18 +237,18 @@ export declare function describeReviewAllocations(result: {
|
|
|
237
237
|
*/
|
|
238
238
|
export declare function runBudgetFloorNote(value: unknown): string | undefined;
|
|
239
239
|
/**
|
|
240
|
-
* What `
|
|
240
|
+
* What `critical_duty` on the always-ask list does and does not do (OSK-21333).
|
|
241
241
|
*
|
|
242
242
|
* The list governs PROMOTION to critical (`critical_promotion`): remove the class and a bounded_auto
|
|
243
243
|
* review applies a small promotion itself. It does not govern the way back: a demotion away from
|
|
244
244
|
* critical is held for a person in `bounded_auto` whatever the list says (`critical_demotion`,
|
|
245
245
|
* `NorthstarGovernancePolicy.classifyIntent`: the demotion rule never reads the list). The behaviour
|
|
246
|
-
* is pinned by `NorthstarGovernancePolicy.spec.js` ("
|
|
246
|
+
* is pinned by `NorthstarGovernancePolicy.spec.js` ("critical_duty off the approval list"),
|
|
247
247
|
* the words by `cli/src/commands/northstars/__tests__/critical-approval-help.spec.ts`. The flag help
|
|
248
248
|
* and the `Approval for` line of `governance show` both read this one sentence, so neither can
|
|
249
249
|
* drift from the other.
|
|
250
250
|
*/
|
|
251
|
-
export declare const
|
|
251
|
+
export declare const CRITICAL_DUTY_APPROVAL_NOTE = "critical_duty governs promotion to critical only; demotion away from critical (critical_demotion) is always held for a person, whatever this list says";
|
|
252
252
|
export declare function renderGovernance(status: NorthstarGovernanceStatus, log: (line: string) => void): void;
|
|
253
253
|
/**
|
|
254
254
|
* The automatic-change budget line.
|
package/dist/lib/northstars.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.northstarWideFlag = exports.
|
|
3
|
+
exports.northstarWideFlag = exports.CRITICAL_DUTY_APPROVAL_NOTE = exports.ALLOCATION_INPUT_FLAGS = exports.NORTHSTAR_WORKSPACE_CREATE_HELP = exports.NORTHSTAR_WORKSPACE_READ_HELP = exports.NORTHSTAR_WEB_SCOPE_SENTENCE = exports.PERSONAL_NORTHSTAR_WORKSPACE = exports.NORTHSTAR_LIST_DEFAULT_LIMIT = exports.northstarApi = exports.NORTHSTAR_RECOMMENDATION_STATUSES = exports.NORTHSTAR_PRIORITY_TIERS = exports.NORTHSTAR_STATUSES = exports.describeNorthstarReason = exports.NORTHSTAR_REASON_WORDS = exports.NORTHSTAR_REVIEW_STATUSES = exports.NORTHSTAR_MANAGEMENT_INTENT_KINDS = exports.NORTHSTAR_INTENT_VERDICTS = exports.NORTHSTAR_EXECUTION_MODES = exports.NORTHSTAR_APPROVAL_TRIGGERS = exports.NORTHSTAR_ANALYSIS_MODES = void 0;
|
|
4
4
|
exports.intentRisk = intentRisk;
|
|
5
5
|
exports.shortReviewId = shortReviewId;
|
|
6
6
|
exports.lookupReview = lookupReview;
|
|
@@ -34,11 +34,11 @@ exports.intentBudgetNote = intentBudgetNote;
|
|
|
34
34
|
* northstars.ts — request-based client for the Northstar portfolio layer
|
|
35
35
|
* (`/api/northstars/*`) and its Portfolio Governor.
|
|
36
36
|
*
|
|
37
|
-
* A **Northstar** groups and prioritizes many
|
|
37
|
+
* A **Northstar** groups and prioritizes many Duties without owning their
|
|
38
38
|
* loop. The **Governor** is a MODE of its periodic review, not a separate
|
|
39
|
-
* entity: a review rolls portfolio health up, allocates each
|
|
39
|
+
* entity: a review rolls portfolio health up, allocates each Duty a
|
|
40
40
|
* cadence band and run budget, and emits TYPED management intents that a single
|
|
41
|
-
* router turns into `
|
|
41
|
+
* router turns into `DutyControl` mutations — advisory, awaiting a human,
|
|
42
42
|
* or (narrowly) automatic.
|
|
43
43
|
*
|
|
44
44
|
* Two dials, deliberately separate:
|
|
@@ -87,7 +87,7 @@ exports.NORTHSTAR_RECOMMENDATION_STATUSES = ['open', 'applied', 'dismissed'];
|
|
|
87
87
|
* (`northstars intents`, `proposals show`) is rated by the governance policy for the change it
|
|
88
88
|
* would make, and that is the rating the policy gates on, records and sends in the
|
|
89
89
|
* awaiting-approval notice. They differ on purpose: a pause is recommended as `low` (it is the
|
|
90
|
-
* lowest-priority
|
|
90
|
+
* lowest-priority duty over the cap) and is a `high`-risk change to apply. Printed side by
|
|
91
91
|
* side under one word they read as a contradiction (OSK-21192), so:
|
|
92
92
|
*
|
|
93
93
|
* - every surface that shows an INTENT shows the intent's own rating, labelled `risk`;
|
|
@@ -115,7 +115,7 @@ exports.northstarApi = {
|
|
|
115
115
|
/* --- portfolio CRUD ---------------------------------------------------- */
|
|
116
116
|
list: (query = {}) => data_provider_1.request.get((0, triggers_1.withQuery)('/api/northstars', query)),
|
|
117
117
|
create: (body) => data_provider_1.request.post('/api/northstars', body),
|
|
118
|
-
// GET /:id returns `{ northstar,
|
|
118
|
+
// GET /:id returns `{ northstar, duties }` — NOT a bare northstar.
|
|
119
119
|
// Unwrap before rendering, or every field reads as undefined.
|
|
120
120
|
get: (id) => data_provider_1.request.get(base(id)),
|
|
121
121
|
update: (id, body) => data_provider_1.request.patch(base(id), body),
|
|
@@ -292,15 +292,15 @@ function describeDecisionOutcome(result, ctx) {
|
|
|
292
292
|
const continuation = result.continuation;
|
|
293
293
|
const applyResult = result.applyResult;
|
|
294
294
|
if (verdict === 'applied') {
|
|
295
|
-
const
|
|
295
|
+
const dutyId = stringField(continuation, 'dutyId');
|
|
296
296
|
const status = stringField(continuation, 'status');
|
|
297
297
|
let text;
|
|
298
298
|
if (status === 'draft_created') {
|
|
299
|
-
text = `Created draft
|
|
299
|
+
text = `Created draft duty ${dutyId ?? ''}`.trim();
|
|
300
300
|
text += '. Configure and activate it when you are ready.';
|
|
301
301
|
}
|
|
302
302
|
else if (status === 'executor_reassigned') {
|
|
303
|
-
text = `Reassigned the executor of ${
|
|
303
|
+
text = `Reassigned the executor of ${dutyId ?? 'the duty'}.`;
|
|
304
304
|
}
|
|
305
305
|
if (replayed)
|
|
306
306
|
text = `Already applied — nothing changed.${text ? ` ${text}` : ''}`;
|
|
@@ -311,10 +311,10 @@ function describeDecisionOutcome(result, ctx) {
|
|
|
311
311
|
stringField(continuation, 'reason') ??
|
|
312
312
|
stringField(continuation, 'status');
|
|
313
313
|
let text;
|
|
314
|
-
if (code === '
|
|
315
|
-
const what = code === '
|
|
316
|
-
? 'The
|
|
317
|
-
: 'The
|
|
314
|
+
if (code === 'duty_version_drift' || code === 'duty_not_found') {
|
|
315
|
+
const what = code === 'duty_not_found'
|
|
316
|
+
? 'The duty no longer exists'
|
|
317
|
+
: 'The duty changed after this was proposed';
|
|
318
318
|
text = `${what}, so the approval was not applied and the intent was invalidated. ${reviewNow}`;
|
|
319
319
|
}
|
|
320
320
|
else if (code) {
|
|
@@ -449,7 +449,7 @@ function renderNorthstarList(rows, log) {
|
|
|
449
449
|
status: row.status,
|
|
450
450
|
health: row.state?.health ?? 'unknown',
|
|
451
451
|
tier: row.priority?.tier ?? '—',
|
|
452
|
-
|
|
452
|
+
duties: String(row.state?.activeDutyCount ?? 0),
|
|
453
453
|
open: String(row.state?.openRecommendationCount ?? 0),
|
|
454
454
|
reviewed: shortDate(row.state?.lastReviewedAt),
|
|
455
455
|
workspace: northstarWorkspaceLabel(row, { short: true }),
|
|
@@ -459,7 +459,7 @@ function renderNorthstarList(rows, log) {
|
|
|
459
459
|
{ key: 'status', header: 'STATUS' },
|
|
460
460
|
{ key: 'health', header: 'HEALTH' },
|
|
461
461
|
{ key: 'tier', header: 'TIER' },
|
|
462
|
-
{ key: '
|
|
462
|
+
{ key: 'duties', header: 'ACTIVE' },
|
|
463
463
|
{ key: 'open', header: 'OPEN REC' },
|
|
464
464
|
{ key: 'reviewed', header: 'REVIEWED' },
|
|
465
465
|
{ key: 'workspace', header: 'WORKSPACE' },
|
|
@@ -468,8 +468,8 @@ function renderNorthstarList(rows, log) {
|
|
|
468
468
|
/** A budget that was never set says so; `—` is kept for a timestamp that does not exist yet. */
|
|
469
469
|
const notSet = (value) => value === undefined || value === null ? 'not set' : String(value);
|
|
470
470
|
/**
|
|
471
|
-
* The active-
|
|
472
|
-
* treats it as "no cap" (it does not flag every
|
|
471
|
+
* The active-duty cap, in words. `0` is accepted and stored, and a review
|
|
472
|
+
* treats it as "no cap" (it does not flag every duty over a cap of zero),
|
|
473
473
|
* so the screen says that rather than letting `0` read as a limit.
|
|
474
474
|
*/
|
|
475
475
|
function describeMaxActive(value) {
|
|
@@ -484,7 +484,7 @@ function renderNorthstar(status, log) {
|
|
|
484
484
|
if (ns.description)
|
|
485
485
|
log(`About ${ns.description}`);
|
|
486
486
|
log(`Priority ${ns.priority?.tier ?? '—'} / weight ${ns.priority?.weight ?? '—'}`);
|
|
487
|
-
log(`Attention total ${notSet(ns.attentionBudget?.totalWeight)} · max active ${describeMaxActive(ns.attentionBudget?.
|
|
487
|
+
log(`Attention total ${notSet(ns.attentionBudget?.totalWeight)} · max active ${describeMaxActive(ns.attentionBudget?.maxActiveDuties)}`);
|
|
488
488
|
const cadence = ns.reviewCadence ?? {};
|
|
489
489
|
log(`Review ${cadence.mode ?? 'manual'}${cadence.intervalMs ? ` every ${humanMs(cadence.intervalMs)}` : ''} next ${shortDate(cadence.nextReviewAt)} last ${shortDate(ns.state?.lastReviewedAt)}`);
|
|
490
490
|
log(northstarWorkspaceLine(ns));
|
|
@@ -495,20 +495,20 @@ function renderNorthstar(status, log) {
|
|
|
495
495
|
if (ns.state?.summary)
|
|
496
496
|
log(`Summary ${ns.state.summary}`);
|
|
497
497
|
log('');
|
|
498
|
-
const
|
|
499
|
-
if (
|
|
500
|
-
log('No
|
|
498
|
+
const duties = status.duties ?? [];
|
|
499
|
+
if (duties.length === 0) {
|
|
500
|
+
log('No duties linked to this northstar.');
|
|
501
501
|
}
|
|
502
502
|
else {
|
|
503
|
-
log(`Portfolio (${
|
|
504
|
-
(0, format_1.renderTable)(
|
|
505
|
-
id:
|
|
506
|
-
title: String(
|
|
507
|
-
status: String(
|
|
508
|
-
health: String(
|
|
509
|
-
tier: String(
|
|
503
|
+
log(`Portfolio (${duties.length}):`);
|
|
504
|
+
(0, format_1.renderTable)(duties.map((duty) => ({
|
|
505
|
+
id: duty.id,
|
|
506
|
+
title: String(duty.title ?? ''),
|
|
507
|
+
status: String(duty.status ?? ''),
|
|
508
|
+
health: String(duty.assessment?.label ?? 'Outcome unknown'),
|
|
509
|
+
tier: String(duty.priority?.tier ?? '—'),
|
|
510
510
|
})), [
|
|
511
|
-
{ key: 'id', header: '
|
|
511
|
+
{ key: 'id', header: 'DUTY' },
|
|
512
512
|
{ key: 'title', header: 'TITLE', maxWidth: 40 },
|
|
513
513
|
{ key: 'status', header: 'STATUS' },
|
|
514
514
|
{ key: 'health', header: 'HEALTH' },
|
|
@@ -530,7 +530,7 @@ function renderRecommendationList(rows, log) {
|
|
|
530
530
|
(0, format_1.renderTable)(rows.map((rec) => ({
|
|
531
531
|
id: rec.id,
|
|
532
532
|
kind: rec.kind,
|
|
533
|
-
target: rec.
|
|
533
|
+
target: rec.dutyId ?? rec.agentId ?? '—',
|
|
534
534
|
status: rec.status ?? 'open',
|
|
535
535
|
risk: rec.riskLevel ?? 'low',
|
|
536
536
|
reason: rec.reason ?? rec.title ?? '—',
|
|
@@ -572,7 +572,7 @@ function reviewerReadiness(reviewer) {
|
|
|
572
572
|
// said "offline" about an agent that was reachable and merely not Always-On.
|
|
573
573
|
return ` [not ready: ${reviewer.reason ? (0, data_provider_1.describeNorthstarReason)(reviewer.reason) : 'reason unknown'}]`;
|
|
574
574
|
}
|
|
575
|
-
/** The `governance configure` flags that move what a
|
|
575
|
+
/** The `governance configure` flags that move what a duty's allocation is computed from. */
|
|
576
576
|
exports.ALLOCATION_INPUT_FLAGS = [
|
|
577
577
|
'max-runs-per-day',
|
|
578
578
|
'clear-max-runs-per-day',
|
|
@@ -592,8 +592,8 @@ function readAllocationRefresh(response) {
|
|
|
592
592
|
};
|
|
593
593
|
}
|
|
594
594
|
/**
|
|
595
|
-
* What `governance configure` says about the linked
|
|
596
|
-
* budget or cadence band to every linked active
|
|
595
|
+
* What `governance configure` says about the linked duties. The server re-applies a changed
|
|
596
|
+
* budget or cadence band to every linked active duty at once and answers how many it wrote,
|
|
597
597
|
* how many it could not, and whether the refresh itself failed; the command discarded all of it and
|
|
598
598
|
* re-read the status, so "nothing happened" and "applied to three" looked the same (OSK-21245).
|
|
599
599
|
*
|
|
@@ -607,42 +607,42 @@ function describeAllocationRefresh(refresh, options) {
|
|
|
607
607
|
return { lines, warnings };
|
|
608
608
|
const bin = options.bin ?? 'skrr';
|
|
609
609
|
if (refresh.failed) {
|
|
610
|
-
warnings.push(`The policy is saved, but re-applying it to the linked
|
|
610
|
+
warnings.push(`The policy is saved, but re-applying it to the linked duties failed. The next review applies it, or run \`${bin} northstars review-now ${options.northstarId}\`.`);
|
|
611
611
|
}
|
|
612
612
|
if (refresh.pending > 0) {
|
|
613
|
-
warnings.push(`${refresh.pending} linked
|
|
613
|
+
warnings.push(`${refresh.pending} linked duty(s) were out of date but could not be updated yet; the next review applies them.`);
|
|
614
614
|
}
|
|
615
615
|
if (refresh.refreshed > 0) {
|
|
616
|
-
lines.push(`Applied to ${refresh.refreshed} linked
|
|
616
|
+
lines.push(`Applied to ${refresh.refreshed} linked duty(s) now.`);
|
|
617
617
|
}
|
|
618
618
|
else if (options.inputsSent && !refresh.failed && refresh.pending === 0) {
|
|
619
|
-
lines.push('Allocations already up to date: no linked
|
|
619
|
+
lines.push('Allocations already up to date: no linked duty needed a write.');
|
|
620
620
|
}
|
|
621
621
|
return { lines, warnings };
|
|
622
622
|
}
|
|
623
623
|
/**
|
|
624
|
-
* The `Allocations` line of `review-now`. The count is of
|
|
624
|
+
* The `Allocations` line of `review-now`. The count is of duties WRITTEN, so `0` does not say
|
|
625
625
|
* "nothing happened": it is what a review prints when a configure already applied the budget, or
|
|
626
|
-
* when no active
|
|
626
|
+
* when no active duty is linked, or when no review row could be opened to write under.
|
|
627
627
|
*/
|
|
628
628
|
function describeReviewAllocations(result) {
|
|
629
629
|
const written = Array.isArray(result.allocations) ? result.allocations.length : 0;
|
|
630
630
|
if (written > 0)
|
|
631
|
-
return `Allocations ${written}
|
|
631
|
+
return `Allocations ${written} duty(s) re-budgeted`;
|
|
632
632
|
if (!result.review)
|
|
633
633
|
return 'Allocations not written: the review could not be recorded';
|
|
634
634
|
if (Array.isArray(result.attention) && result.attention.length === 0) {
|
|
635
|
-
return 'Allocations nothing to allocate: no active
|
|
635
|
+
return 'Allocations nothing to allocate: no active duty is linked';
|
|
636
636
|
}
|
|
637
|
-
return 'Allocations already up to date: no
|
|
637
|
+
return 'Allocations already up to date: no duty needed a write';
|
|
638
638
|
}
|
|
639
639
|
/**
|
|
640
|
-
* The sentence for a portfolio run budget smaller than the number of linked active
|
|
640
|
+
* The sentence for a portfolio run budget smaller than the number of linked active duties
|
|
641
641
|
* (OSK-21334): each still gets the floor of 1 run/day, so the ceilings add up to more than the
|
|
642
642
|
* budget. The server derives it once (`portfolioRunBudgetFloor.js`) and carries it, when it
|
|
643
643
|
* applies, on the `governance show` read, the `review-now` result and the effective policy's
|
|
644
644
|
* `portfolio`; every one of those three prints THIS sentence, so none composes its own and they
|
|
645
|
-
* cannot disagree. Absent from an older server, and from a budget that covers every
|
|
645
|
+
* cannot disagree. Absent from an older server, and from a budget that covers every duty:
|
|
646
646
|
* no line, never a guess.
|
|
647
647
|
*
|
|
648
648
|
* Takes the carried field as it arrives (`unknown`), because two of the three callers read it off
|
|
@@ -650,23 +650,23 @@ function describeReviewAllocations(result) {
|
|
|
650
650
|
*/
|
|
651
651
|
function runBudgetFloorNote(value) {
|
|
652
652
|
const floor = value;
|
|
653
|
-
if (!floor || floor.code !== '
|
|
653
|
+
if (!floor || floor.code !== 'run_budget_below_active_duties')
|
|
654
654
|
return undefined;
|
|
655
655
|
return typeof floor.message === 'string' && floor.message ? floor.message : undefined;
|
|
656
656
|
}
|
|
657
657
|
/**
|
|
658
|
-
* What `
|
|
658
|
+
* What `critical_duty` on the always-ask list does and does not do (OSK-21333).
|
|
659
659
|
*
|
|
660
660
|
* The list governs PROMOTION to critical (`critical_promotion`): remove the class and a bounded_auto
|
|
661
661
|
* review applies a small promotion itself. It does not govern the way back: a demotion away from
|
|
662
662
|
* critical is held for a person in `bounded_auto` whatever the list says (`critical_demotion`,
|
|
663
663
|
* `NorthstarGovernancePolicy.classifyIntent`: the demotion rule never reads the list). The behaviour
|
|
664
|
-
* is pinned by `NorthstarGovernancePolicy.spec.js` ("
|
|
664
|
+
* is pinned by `NorthstarGovernancePolicy.spec.js` ("critical_duty off the approval list"),
|
|
665
665
|
* the words by `cli/src/commands/northstars/__tests__/critical-approval-help.spec.ts`. The flag help
|
|
666
666
|
* and the `Approval for` line of `governance show` both read this one sentence, so neither can
|
|
667
667
|
* drift from the other.
|
|
668
668
|
*/
|
|
669
|
-
exports.
|
|
669
|
+
exports.CRITICAL_DUTY_APPROVAL_NOTE = 'critical_duty governs promotion to critical only; demotion away from critical (critical_demotion) is always held for a person, whatever this list says';
|
|
670
670
|
function renderGovernance(status, log) {
|
|
671
671
|
const g = status.governance;
|
|
672
672
|
log(`Northstar ${status.northstarId} (v${status.northstarVersion}, ${status.status})`);
|
|
@@ -689,16 +689,16 @@ function renderGovernance(status, log) {
|
|
|
689
689
|
log(`Approval for ${g.requireApprovalFor.join(', ') ||
|
|
690
690
|
'none — no change class is always held for a person (the execution mode still decides)'}`);
|
|
691
691
|
// True whatever the list holds, so it is printed for an empty one too: removing
|
|
692
|
-
// `
|
|
693
|
-
log(` ${exports.
|
|
692
|
+
// `critical_duty` frees promotion, and never the way back.
|
|
693
|
+
log(` ${exports.CRITICAL_DUTY_APPROVAL_NOTE}.`);
|
|
694
694
|
if (g.requireApprovalFor.length === 0) {
|
|
695
695
|
log(' ! No change class is on the always-ask list, so the execution mode alone decides what waits for you.');
|
|
696
696
|
}
|
|
697
|
-
log(`Protected ${g.
|
|
697
|
+
log(`Protected ${g.protectedDutyIds.join(', ') || 'none'}`);
|
|
698
698
|
const eb = status.executionBudget ?? {};
|
|
699
699
|
log(`Exec budget action runs/day ${notSet(eb.maxRunsPerDay)} · concurrent ${eb.maxConcurrentRuns == null ? 'not set' : `${eb.maxConcurrentRuns} (recorded, not enforced)`} · critical reserve ${notSet(eb.reserveWeightForCritical)}`);
|
|
700
700
|
log(`Observation runs/day ${notSet(eb.maxObservationRunsPerDay)} · daily budgets reset at 00:00 UTC`);
|
|
701
|
-
// A budget below the number of active
|
|
701
|
+
// A budget below the number of active duties is still given to each at the floor of 1/day.
|
|
702
702
|
const floorNote = runBudgetFloorNote(status.runBudgetFloor);
|
|
703
703
|
if (floorNote)
|
|
704
704
|
log(` ! ${floorNote}`);
|
|
@@ -826,9 +826,9 @@ exports.northstarWideFlag = core_1.Flags.boolean({
|
|
|
826
826
|
});
|
|
827
827
|
/**
|
|
828
828
|
* The WHY column never shrinks below this, however narrow the terminal. The reviewer's sentences run
|
|
829
|
-
* to about 105 characters ("This northstar's attention budget allows 12 active
|
|
829
|
+
* to about 105 characters ("This northstar's attention budget allows 12 active duties; this
|
|
830
830
|
* is the lowest priority over the cap."), and the part that matters is often at the END of one
|
|
831
|
-
* ("
|
|
831
|
+
* ("Duty tier (high) drifted from northstar tier (low)."): at the old floor of 40 the default
|
|
832
832
|
* clip cut it before the fact, and the owner needed `--wide` to read the reason (OSK-21248).
|
|
833
833
|
*/
|
|
834
834
|
const INTENT_WHY_MIN_WIDTH = 110;
|
|
@@ -861,7 +861,7 @@ function renderIntentList(intents, log, options = {}) {
|
|
|
861
861
|
id: intent.id,
|
|
862
862
|
review: intent.reviewId ? shortReviewId(intent.reviewId) : '—',
|
|
863
863
|
kind: intent.kind,
|
|
864
|
-
target: intent.
|
|
864
|
+
target: intent.targetDutyId ?? '—',
|
|
865
865
|
verdict: intent.verdict,
|
|
866
866
|
// The intent's OWN rating (see `intentRisk`), never its recommendation's.
|
|
867
867
|
risk: intentRisk(intent),
|
|
@@ -874,7 +874,7 @@ function renderIntentList(intents, log, options = {}) {
|
|
|
874
874
|
id: 'INTENT',
|
|
875
875
|
review: 'REVIEW',
|
|
876
876
|
kind: 'KIND',
|
|
877
|
-
target: '
|
|
877
|
+
target: 'DUTY',
|
|
878
878
|
verdict: 'VERDICT',
|
|
879
879
|
risk: 'RISK',
|
|
880
880
|
source: 'SOURCE',
|