@skrr-ai/cli 0.1.150 → 0.1.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -20
- package/dist/base-command.d.ts +6 -6
- package/dist/base-command.js +26 -26
- package/dist/commands/agenda/trigger/list.d.ts +1 -1
- package/dist/commands/agenda/trigger/list.js +6 -6
- package/dist/commands/agents/always-on/disable.js +10 -3
- package/dist/commands/agents/always-on/enable.js +1 -1
- package/dist/commands/agents/always-on/reconcile.js +1 -1
- package/dist/commands/agents/always-on/status.js +31 -8
- package/dist/commands/agents/chat.d.ts +3 -0
- package/dist/commands/agents/chat.js +27 -0
- package/dist/commands/agents/create.d.ts +2 -2
- package/dist/commands/agents/create.js +12 -12
- package/dist/commands/agents/egress.js +1 -1
- package/dist/commands/agents/list.d.ts +1 -1
- package/dist/commands/agents/list.js +1 -1
- package/dist/commands/agents/plan-day.d.ts +3 -0
- package/dist/commands/agents/plan-day.js +31 -8
- package/dist/commands/agents/roles/capture.d.ts +1 -1
- package/dist/commands/agents/roles/capture.js +2 -2
- package/dist/commands/agents/roles/install.js +1 -1
- package/dist/commands/agents/show.d.ts +3 -0
- package/dist/commands/agents/show.js +59 -3
- package/dist/commands/agents/spawn.js +38 -38
- package/dist/commands/agents/triggers/list.js +2 -1
- package/dist/commands/agents/update.d.ts +1 -1
- package/dist/commands/agents/update.js +3 -3
- package/dist/commands/balance/usage/breakdown.d.ts +1 -1
- package/dist/commands/balance/usage/breakdown.js +22 -6
- package/dist/commands/balance/usage/events.d.ts +3 -2
- package/dist/commands/balance/usage/events.js +34 -7
- package/dist/commands/code/jobs/show.js +1 -1
- package/dist/commands/compass/archive.d.ts +1 -1
- package/dist/commands/compass/archive.js +1 -1
- package/dist/commands/compass/create.js +1 -1
- package/dist/commands/compass/{commitments.d.ts → duties.d.ts} +5 -5
- package/dist/commands/compass/{commitments.js → duties.js} +14 -14
- package/dist/commands/compass/trace.d.ts +1 -1
- package/dist/commands/compass/trace.js +2 -2
- package/dist/commands/convos/messages.js +2 -1
- package/dist/commands/doctor.d.ts +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/{commitments → duties}/accounting.d.ts +7 -7
- package/dist/commands/{commitments → duties}/accounting.js +13 -13
- package/dist/commands/{commitments → duties}/action-history.d.ts +3 -3
- package/dist/commands/{commitments → duties}/action-history.js +12 -12
- package/dist/commands/{commitments → duties}/action-proposal.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposal.js +6 -6
- package/dist/commands/{commitments → duties}/action-proposals/decide.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposals/decide.js +8 -8
- package/dist/commands/{commitments → duties}/action-proposals/execute.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposals/execute.js +7 -7
- package/dist/commands/{commitments → duties}/action-proposals/propose.d.ts +4 -4
- package/dist/commands/{commitments → duties}/action-proposals/propose.js +15 -15
- package/dist/commands/{commitments → duties}/action-proposals.d.ts +1 -1
- package/dist/commands/{commitments → duties}/action-proposals.js +6 -6
- package/dist/commands/{commitments → duties}/analytics/detail.d.ts +5 -5
- package/dist/commands/{commitments → duties}/analytics/detail.js +13 -13
- package/dist/commands/{commitments → duties}/analytics/index.d.ts +5 -5
- package/dist/commands/{commitments → duties}/analytics/index.js +30 -30
- package/dist/commands/{commitments → duties}/analytics/replay.d.ts +3 -3
- package/dist/commands/{commitments → duties}/analytics/replay.js +11 -11
- package/dist/commands/{commitments → duties}/attach.d.ts +3 -3
- package/dist/commands/{commitments → duties}/attach.js +21 -21
- package/dist/commands/{commitments → duties}/bundle.d.ts +1 -1
- package/dist/commands/{commitments → duties}/bundle.js +7 -7
- package/dist/commands/{commitments → duties}/cadence-decisions.d.ts +3 -3
- package/dist/commands/duties/cadence-decisions.js +41 -0
- package/dist/commands/{commitments → duties}/cadence-requests/decide.d.ts +4 -4
- package/dist/commands/{commitments → duties}/cadence-requests/decide.js +11 -11
- package/dist/commands/{commitments → duties}/case.d.ts +2 -2
- package/dist/commands/{commitments → duties}/case.js +8 -8
- package/dist/commands/{commitments → duties}/cases.d.ts +2 -2
- package/dist/commands/{commitments → duties}/cases.js +9 -9
- package/dist/commands/{commitments → duties}/check-now.d.ts +6 -6
- package/dist/commands/{commitments → duties}/check-now.js +29 -29
- package/dist/commands/{commitments → duties}/checks.d.ts +3 -3
- package/dist/commands/{commitments → duties}/checks.js +13 -13
- package/dist/commands/{commitments → duties}/complete.d.ts +2 -2
- package/dist/commands/duties/complete.js +40 -0
- package/dist/commands/{commitments → duties}/control/apply.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/apply.js +7 -7
- package/dist/commands/{commitments → duties}/control/preview.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/preview.js +8 -8
- package/dist/commands/{commitments → duties}/control/show.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/show.js +6 -6
- package/dist/commands/{commitments → duties}/cost.d.ts +6 -6
- package/dist/commands/{commitments → duties}/cost.js +14 -14
- package/dist/commands/{commitments → duties}/create.d.ts +8 -8
- package/dist/commands/{commitments → duties}/create.js +92 -92
- package/dist/commands/{commitments → duties}/cycles.d.ts +2 -2
- package/dist/commands/{commitments → duties}/cycles.js +11 -11
- package/dist/commands/{commitments → duties}/decide-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/decide-remediation.js +6 -6
- package/dist/commands/{commitments → duties}/delete.d.ts +4 -4
- package/dist/commands/{commitments → duties}/delete.js +24 -24
- package/dist/commands/{commitments → duties}/delivery.d.ts +1 -1
- package/dist/commands/{commitments → duties}/delivery.js +15 -15
- package/dist/commands/{commitments → duties}/detach.d.ts +3 -3
- package/dist/commands/{commitments → duties}/detach.js +20 -20
- package/dist/commands/{commitments → duties}/doctor.d.ts +4 -4
- package/dist/commands/{commitments → duties}/doctor.js +21 -21
- package/dist/commands/{commitments → duties}/effective-policy.d.ts +3 -3
- package/dist/commands/{commitments → duties}/effective-policy.js +24 -24
- package/dist/commands/{commitments → duties}/endpoints/connect.d.ts +2 -2
- package/dist/commands/{commitments → duties}/endpoints/connect.js +10 -10
- package/dist/commands/{commitments → duties}/endpoints/create.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/create.js +16 -16
- package/dist/commands/{commitments → duties}/endpoints/delete.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/delete.js +11 -11
- package/dist/commands/{commitments → duties}/endpoints/health.d.ts +2 -2
- package/dist/commands/{commitments → duties}/endpoints/health.js +10 -10
- package/dist/commands/{commitments → duties}/endpoints/list.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/list.js +11 -11
- package/dist/commands/{commitments → duties}/endpoints/revoke.d.ts +4 -4
- package/dist/commands/{commitments → duties}/endpoints/revoke.js +13 -13
- package/dist/commands/{commitments → duties}/evaluations.d.ts +2 -2
- package/dist/commands/{commitments → duties}/evaluations.js +8 -8
- package/dist/commands/{commitments → duties}/execute-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/execute-remediation.js +7 -7
- package/dist/commands/{commitments → duties}/explain.d.ts +2 -2
- package/dist/commands/{commitments → duties}/explain.js +13 -13
- package/dist/commands/{commitments → duties}/export.d.ts +3 -3
- package/dist/commands/{commitments → duties}/export.js +15 -15
- package/dist/commands/{commitments → duties}/feedback.d.ts +4 -4
- package/dist/commands/{commitments → duties}/feedback.js +13 -13
- package/dist/commands/{commitments → duties}/fork.d.ts +3 -3
- package/dist/commands/{commitments → duties}/fork.js +11 -11
- package/dist/commands/{commitments → duties}/goals/link.d.ts +6 -6
- package/dist/commands/duties/goals/link.js +41 -0
- package/dist/commands/{commitments → duties}/goals/unlink.d.ts +4 -4
- package/dist/commands/duties/goals/unlink.js +37 -0
- package/dist/commands/{commitments → duties}/handover.d.ts +5 -5
- package/dist/commands/{commitments → duties}/handover.js +21 -21
- package/dist/commands/{commitments → duties}/hypotheses.d.ts +3 -3
- package/dist/commands/{commitments → duties}/hypotheses.js +13 -13
- package/dist/commands/{commitments → duties}/import.d.ts +2 -2
- package/dist/commands/{commitments → duties}/import.js +10 -10
- package/dist/commands/{commitments → duties}/ledger.d.ts +4 -4
- package/dist/commands/{commitments → duties}/ledger.js +12 -12
- package/dist/commands/{commitments → duties}/lineage.d.ts +5 -5
- package/dist/commands/duties/lineage.js +43 -0
- package/dist/commands/{commitments → duties}/links/create.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/create.js +9 -9
- package/dist/commands/{commitments → duties}/links/detach.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/detach.js +7 -7
- package/dist/commands/{commitments → duties}/links/list.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/list.js +9 -9
- package/dist/commands/{commitments → duties}/links/update.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/update.js +7 -7
- package/dist/commands/{commitments → duties}/list.d.ts +3 -3
- package/dist/commands/{commitments → duties}/list.js +17 -17
- package/dist/commands/{commitments → duties}/liveness.d.ts +6 -6
- package/dist/commands/{commitments → duties}/liveness.js +13 -13
- package/dist/commands/{commitments → duties}/metrics.d.ts +3 -3
- package/dist/commands/{commitments → duties}/metrics.js +12 -12
- package/dist/commands/{commitments → duties}/next-tick.d.ts +7 -7
- package/dist/commands/{commitments → duties}/next-tick.js +14 -14
- package/dist/commands/{commitments → duties}/observation/probe.d.ts +1 -1
- package/dist/commands/{commitments → duties}/observation/probe.js +12 -12
- package/dist/commands/{commitments → duties}/observation/summary.d.ts +1 -1
- package/dist/commands/duties/observation/summary.js +53 -0
- package/dist/commands/{commitments → duties}/observations.d.ts +4 -4
- package/dist/commands/{commitments → duties}/observations.js +18 -18
- package/dist/commands/{commitments → duties}/open.d.ts +1 -1
- package/dist/commands/{commitments → duties}/open.js +13 -13
- package/dist/commands/{commitments → duties}/operating-review.d.ts +5 -5
- package/dist/commands/{commitments → duties}/operating-review.js +21 -21
- package/dist/commands/{commitments → duties}/pack/activate.d.ts +1 -1
- package/dist/commands/{commitments → duties}/pack/activate.js +6 -6
- package/dist/commands/{commitments → duties}/pack/bind.d.ts +4 -4
- package/dist/commands/{commitments → duties}/pack/bind.js +19 -19
- package/dist/commands/{commitments → duties}/pack/list.d.ts +2 -2
- package/dist/commands/{commitments → duties}/pack/list.js +10 -10
- package/dist/commands/{commitments → duties}/pack/plan.d.ts +3 -3
- package/dist/commands/{commitments → duties}/pack/plan.js +12 -12
- package/dist/commands/{commitments → duties}/pack/preflight.d.ts +3 -3
- package/dist/commands/{commitments → duties}/pack/preflight.js +10 -10
- package/dist/commands/{commitments → duties}/patch.d.ts +1 -1
- package/dist/commands/{commitments → duties}/patch.js +7 -7
- package/dist/commands/{commitments → duties}/pause.d.ts +2 -2
- package/dist/commands/{commitments → duties}/pause.js +16 -16
- package/dist/commands/{commitments → duties}/plan.d.ts +4 -4
- package/dist/commands/{commitments → duties}/plan.js +20 -20
- package/dist/commands/{commitments → duties}/preflight.d.ts +8 -8
- package/dist/commands/{commitments → duties}/preflight.js +32 -32
- package/dist/commands/{commitments → duties}/propose-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/propose-remediation.js +6 -6
- package/dist/commands/{commitments → duties}/readiness/show.d.ts +1 -1
- package/dist/commands/{commitments → duties}/readiness/show.js +6 -6
- package/dist/commands/{commitments → duties}/readiness/verify.d.ts +1 -1
- package/dist/commands/{commitments → duties}/readiness/verify.js +7 -7
- package/dist/commands/{commitments → duties}/receipt-metrics.d.ts +4 -4
- package/dist/commands/{commitments → duties}/receipt-metrics.js +16 -16
- package/dist/commands/{commitments → duties}/receipt.d.ts +1 -1
- package/dist/commands/{commitments → duties}/receipt.js +10 -10
- package/dist/commands/{commitments → duties}/reflect.d.ts +4 -4
- package/dist/commands/{commitments → duties}/reflect.js +12 -12
- package/dist/commands/{commitments → duties}/reflection-decision.d.ts +2 -2
- package/dist/commands/{commitments → duties}/reflection-decision.js +7 -7
- package/dist/commands/{commitments → duties}/reflection.d.ts +2 -2
- package/dist/commands/{commitments → duties}/reflection.js +9 -9
- package/dist/commands/{commitments → duties}/remediate.d.ts +5 -5
- package/dist/commands/{commitments → duties}/remediate.js +14 -14
- package/dist/commands/{commitments → duties}/remediation-proposal.d.ts +2 -2
- package/dist/commands/{commitments → duties}/remediation-proposal.js +7 -7
- package/dist/commands/{commitments → duties}/remediation-proposals.d.ts +2 -2
- package/dist/commands/{commitments → duties}/remediation-proposals.js +8 -8
- package/dist/commands/{commitments → duties}/reports.d.ts +5 -5
- package/dist/commands/{commitments → duties}/reports.js +35 -35
- package/dist/commands/{commitments → duties}/restore.d.ts +2 -2
- package/dist/commands/duties/restore.js +46 -0
- package/dist/commands/{commitments → duties}/resume.d.ts +2 -2
- package/dist/commands/duties/resume.js +37 -0
- package/dist/commands/{commitments → duties}/roster.d.ts +2 -2
- package/dist/commands/duties/roster.js +39 -0
- package/dist/commands/{commitments → duties}/show.d.ts +7 -7
- package/dist/commands/{commitments → duties}/show.js +40 -40
- package/dist/commands/{commitments → duties}/status.d.ts +3 -3
- package/dist/commands/duties/status.js +41 -0
- package/dist/commands/{commitments → duties}/subject.d.ts +4 -4
- package/dist/commands/{commitments → duties}/subject.js +29 -29
- package/dist/commands/{commitments → duties}/trace.d.ts +3 -3
- package/dist/commands/{commitments → duties}/trace.js +12 -12
- package/dist/commands/{commitments → duties}/trigger-status.d.ts +6 -6
- package/dist/commands/{commitments → duties}/trigger-status.js +19 -19
- package/dist/commands/{commitments → duties}/update.d.ts +5 -5
- package/dist/commands/{commitments → duties}/update.js +64 -64
- package/dist/commands/{commitments → duties}/wake-capabilities.d.ts +6 -6
- package/dist/commands/{commitments → duties}/wake-capabilities.js +22 -22
- package/dist/commands/{commitments → duties}/work-plan.d.ts +1 -1
- package/dist/commands/{commitments → duties}/work-plan.js +6 -6
- package/dist/commands/goals/key-results/show.js +2 -1
- package/dist/commands/goals/plan-now.js +3 -2
- package/dist/commands/goals/planner-compare.d.ts +1 -1
- package/dist/commands/goals/planner-compare.js +13 -2
- package/dist/commands/grants/create.d.ts +1 -1
- package/dist/commands/grants/create.js +9 -9
- package/dist/commands/grants/list.d.ts +1 -1
- package/dist/commands/grants/list.js +2 -2
- package/dist/commands/harnesses/list.d.ts +2 -1
- package/dist/commands/harnesses/list.js +7 -5
- package/dist/commands/harnesses/models.js +1 -1
- package/dist/commands/harnesses/quota.d.ts +9 -11
- package/dist/commands/harnesses/quota.js +83 -18
- package/dist/commands/harnesses/show.js +1 -1
- package/dist/commands/harnesses/usage.d.ts +19 -0
- package/dist/commands/harnesses/usage.js +27 -7
- package/dist/commands/initiatives/list.d.ts +1 -1
- package/dist/commands/initiatives/list.js +1 -1
- package/dist/commands/measures/create.d.ts +2 -2
- package/dist/commands/measures/create.js +4 -4
- package/dist/commands/measures/list.d.ts +1 -1
- package/dist/commands/measures/list.js +2 -2
- package/dist/commands/memory/topics/create.js +4 -1
- package/dist/commands/northstars/create.js +4 -4
- package/dist/commands/northstars/delete.d.ts +3 -3
- package/dist/commands/northstars/delete.js +8 -8
- package/dist/commands/northstars/governance/configure.js +15 -15
- package/dist/commands/northstars/intents/decide.d.ts +1 -1
- package/dist/commands/northstars/intents/decide.js +1 -1
- package/dist/commands/northstars/link.d.ts +4 -4
- package/dist/commands/northstars/link.js +8 -8
- package/dist/commands/northstars/list.d.ts +2 -2
- package/dist/commands/northstars/list.js +3 -3
- package/dist/commands/northstars/recommendations/apply.d.ts +1 -1
- package/dist/commands/northstars/recommendations/apply.js +2 -2
- package/dist/commands/northstars/review-now.js +2 -2
- package/dist/commands/northstars/show.d.ts +3 -3
- package/dist/commands/northstars/show.js +5 -5
- package/dist/commands/northstars/unlink.d.ts +3 -3
- package/dist/commands/northstars/unlink.js +6 -6
- package/dist/commands/northstars/update.js +3 -3
- package/dist/commands/proposals/list.d.ts +3 -3
- package/dist/commands/proposals/list.js +7 -7
- package/dist/commands/spaces/auto-executor/compare.js +1 -1
- package/dist/commands/spaces/auto-executor/runs.js +1 -1
- package/dist/commands/spaces/heartbeats/list.js +2 -2
- package/dist/commands/spaces/index.js +2 -2
- package/dist/commands/spaces/list.d.ts +1 -1
- package/dist/commands/spaces/list.js +1 -1
- package/dist/commands/spaces/loops/migrate.d.ts +1 -1
- package/dist/commands/spaces/loops/migrate.js +1 -1
- package/dist/commands/spaces/loops/release.d.ts +1 -1
- package/dist/commands/spaces/loops/release.js +10 -10
- package/dist/commands/spaces/notebook.d.ts +2 -2
- package/dist/commands/spaces/notebook.js +2 -2
- package/dist/commands/spaces/proposals/discard.js +1 -1
- package/dist/commands/spaces/proposals/keep.js +1 -1
- package/dist/commands/spaces/triggers/show.js +3 -3
- package/dist/commands/spaces/write-policy/set.js +1 -1
- package/dist/commands/store/uninstall.js +2 -2
- package/dist/commands/subscriptions/health.d.ts +2 -2
- package/dist/commands/subscriptions/health.js +2 -2
- package/dist/commands/subscriptions/status.js +2 -2
- package/dist/commands/subscriptions/subscribe.js +4 -4
- package/dist/commands/tasks/create.d.ts +20 -1
- package/dist/commands/tasks/create.js +44 -3
- package/dist/commands/tasks/list.d.ts +7 -1
- package/dist/commands/tasks/list.js +2 -1
- package/dist/commands/tokens/create.d.ts +3 -4
- package/dist/commands/tokens/create.js +20 -7
- package/dist/commands/triggers/preflight.js +9 -2
- package/dist/generated/agent-guides.json +496 -496
- package/dist/generated/managed-instruction-guides.json +2 -2
- package/dist/hooks/command-not-found.d.ts +1 -1
- package/dist/hooks/command-not-found.js +1 -1
- package/dist/lib/agent-chat-start.js +2 -1
- package/dist/lib/agent-model-check.js +3 -1
- package/dist/lib/agent-trigger-listing.d.ts +4 -4
- package/dist/lib/agent-trigger-listing.js +7 -7
- package/dist/lib/agentic-stream.js +6 -7
- package/dist/lib/always-on-command-result.d.ts +8 -1
- package/dist/lib/always-on-command-result.js +11 -2
- package/dist/lib/auth-failure.js +1 -1
- package/dist/lib/balance.d.ts +5 -2
- package/dist/lib/balance.js +26 -0
- package/dist/lib/capability-matrix.d.ts +3 -3
- package/dist/lib/capability-matrix.js +9 -9
- package/dist/lib/command-hygiene.js +6 -6
- package/dist/lib/command-miss.js +1 -1
- package/dist/lib/compass-refusals.d.ts +1 -1
- package/dist/lib/compass-refusals.js +1 -1
- package/dist/lib/compasses.d.ts +5 -5
- package/dist/lib/compasses.js +15 -15
- package/dist/lib/config.d.ts +1 -1
- package/dist/lib/config.js +1 -0
- package/dist/lib/dedicated-machines.js +2 -1
- package/dist/lib/dedicated-power.js +2 -0
- package/dist/lib/{commitments.d.ts → duties.d.ts} +198 -198
- package/dist/lib/{commitments.js → duties.js} +282 -282
- package/dist/lib/{commitment-analytics.d.ts → duty-analytics.d.ts} +18 -18
- package/dist/lib/{commitment-analytics.js → duty-analytics.js} +12 -12
- package/dist/lib/{commitment-attention-copy.d.ts → duty-attention-copy.d.ts} +6 -6
- package/dist/lib/{commitment-attention-copy.js → duty-attention-copy.js} +8 -8
- package/dist/lib/{commitment-endpoints.d.ts → duty-endpoints.d.ts} +6 -6
- package/dist/lib/{commitment-endpoints.js → duty-endpoints.js} +10 -10
- package/dist/lib/{commitment-event-wakes.d.ts → duty-event-wakes.d.ts} +2 -2
- package/dist/lib/{commitment-event-wakes.js → duty-event-wakes.js} +2 -2
- package/dist/lib/{commitment-ledgers.js → duty-ledgers.js} +3 -3
- package/dist/lib/{commitment-loop-status.d.ts → duty-loop-status.d.ts} +11 -11
- package/dist/lib/{commitment-loop-status.js → duty-loop-status.js} +22 -22
- package/dist/lib/{commitment-product.d.ts → duty-product.d.ts} +6 -6
- package/dist/lib/{commitment-product.js → duty-product.js} +5 -5
- package/dist/lib/{commitment-terms.d.ts → duty-terms.d.ts} +9 -9
- package/dist/lib/{commitment-terms.js → duty-terms.js} +21 -21
- package/dist/lib/entity-open.d.ts +1 -1
- package/dist/lib/entity-open.js +1 -1
- package/dist/lib/format.d.ts +1 -1
- package/dist/lib/grants.d.ts +3 -3
- package/dist/lib/grants.js +2 -2
- package/dist/lib/harness-labels.d.ts +1 -0
- package/dist/lib/harness-labels.js +4 -0
- package/dist/lib/harnesses.d.ts +35 -0
- package/dist/lib/harnesses.js +8 -0
- package/dist/lib/initiatives.js +4 -4
- package/dist/lib/machines.d.ts +2 -1
- package/dist/lib/machines.js +2 -2
- package/dist/lib/node-adapter.js +1 -1
- package/dist/lib/northstars.d.ts +13 -13
- package/dist/lib/northstars.js +56 -56
- package/dist/lib/open-target.js +1 -1
- package/dist/lib/preflight-copy.js +5 -5
- package/dist/lib/proactiveApi.d.ts +4 -4
- package/dist/lib/proposals.js +16 -16
- package/dist/lib/publicEndpoints.generated.d.ts +4 -0
- package/dist/lib/publicEndpoints.generated.js +4 -0
- package/dist/lib/responsibility-controls.d.ts +1 -1
- package/dist/lib/responsibility-controls.js +6 -6
- package/dist/lib/roles.d.ts +1 -1
- package/dist/lib/schedule.d.ts +6 -5
- package/dist/lib/schedule.js +5 -5
- package/dist/lib/session-task-write.d.ts +1 -1
- package/dist/lib/session-task-write.js +2 -2
- package/dist/lib/space-loop-migration.js +6 -6
- package/dist/lib/space-notebook.js +2 -2
- package/dist/lib/space-write-policy.js +2 -2
- package/dist/lib/stewardship-output.js +2 -2
- package/dist/lib/task-spec-verification.js +1 -1
- package/dist/lib/tasks.d.ts +1 -1
- package/dist/lib/tasks.js +8 -8
- package/dist/lib/triggers.d.ts +5 -5
- package/dist/lib/triggers.js +25 -16
- package/dist/lib/update-check.d.ts +1 -1
- package/dist/lib/update-check.js +12 -8
- package/dist/lib/usage-discovery.js +2 -4
- package/dist/lib/web-url.d.ts +6 -6
- package/dist/lib/web-url.js +13 -13
- package/dist/lib/workspaces.d.ts +4 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.js → dutyExecutionContract.js} +22 -22
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceipt.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceiptV2.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.d.ts +9 -9
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.js +5 -5
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.d.ts +2 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +4 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.js → dutyExecutionContract.js} +16 -16
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceipt.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceiptV2.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/profilePorts.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.d.ts +9 -9
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.js +8 -8
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.d.ts +2 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.js +6 -6
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/package.json +6 -6
- package/dist/node_modules/@skrr-ai/data-provider/index.js +8295 -8283
- package/docs/v1/lookback-plans.md +1 -1
- package/oclif.manifest.json +5356 -5333
- package/package.json +16 -16
- package/dist/commands/commitments/cadence-decisions.js +0 -41
- package/dist/commands/commitments/complete.js +0 -40
- package/dist/commands/commitments/goals/link.js +0 -41
- package/dist/commands/commitments/goals/unlink.js +0 -37
- package/dist/commands/commitments/lineage.js +0 -43
- package/dist/commands/commitments/observation/summary.js +0 -31
- package/dist/commands/commitments/restore.js +0 -46
- package/dist/commands/commitments/resume.js +0 -37
- package/dist/commands/commitments/roster.js +0 -39
- package/dist/commands/commitments/status.js +0 -41
- /package/dist/lib/{commitment-ledgers.d.ts → duty-ledgers.d.ts} +0 -0
|
@@ -8,7 +8,7 @@ const credential_resolver_1 = require("./credential-resolver");
|
|
|
8
8
|
const session_task_endpoints_1 = require("./session-task-endpoints");
|
|
9
9
|
/**
|
|
10
10
|
* The server's refusal when a session's run carries no Task at all — a
|
|
11
|
-
*
|
|
11
|
+
* Duty, Routine or other autonomous run that is not a Task run. It is
|
|
12
12
|
* the ONE refusal that means "the session-scoped route does not apply here",
|
|
13
13
|
* not "you may not write": such a run legitimately writes the Tasks it created
|
|
14
14
|
* or was handed, through the generic `/api/tasks/:id/*` routes, where
|
|
@@ -67,7 +67,7 @@ async function sessionTaskWrite(operation, requestedTask, env = process.env) {
|
|
|
67
67
|
code: 'SESSION_TASK_CREDENTIAL_MISSING',
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
// A run with no bound Task (e.g. a
|
|
70
|
+
// A run with no bound Task (e.g. a Duty run) has no session-scoped
|
|
71
71
|
// Task surface; its writes take the generic routes (OSK-16124).
|
|
72
72
|
if (sessionsWithoutBoundTask.has(sessionId))
|
|
73
73
|
return null;
|
|
@@ -5,7 +5,7 @@ exports.applyLines = applyLines;
|
|
|
5
5
|
const space_notebook_1 = require("./space-notebook");
|
|
6
6
|
const SHAPE_WORD = {
|
|
7
7
|
space_loop: "the Space's loop",
|
|
8
|
-
member_automation: "its owner's own
|
|
8
|
+
member_automation: "its owner's own Duty, delivering into the Space",
|
|
9
9
|
};
|
|
10
10
|
const OUTCOME_WORD = {
|
|
11
11
|
handed_over: 'handed over',
|
|
@@ -31,7 +31,7 @@ function convertLines(entry) {
|
|
|
31
31
|
lines.push(` becomes ${SHAPE_WORD[target.shape] || target.shape}: owned by user ${target.ownerUserId}, held by agent ${target.agentId}`);
|
|
32
32
|
}
|
|
33
33
|
if (entry.pointer) {
|
|
34
|
-
lines.push(` loop ${entry.pointer.
|
|
34
|
+
lines.push(` loop ${entry.pointer.dutyId} (${entry.pointer.loopStatus || 'unknown'}); the entry keeps firing until it is active`);
|
|
35
35
|
}
|
|
36
36
|
const cadence = entry.cadence;
|
|
37
37
|
if (cadence) {
|
|
@@ -54,8 +54,8 @@ function planLines(plan, { binName = 'skrr' } = {}) {
|
|
|
54
54
|
const lines = [
|
|
55
55
|
`Converting ${plan.sourceLabel} entries of space ${plan.spaceId} into Space loops`,
|
|
56
56
|
plan.executionPrincipal
|
|
57
|
-
? `Execution principal: user ${plan.executionPrincipal.userId} (version ${plan.executionPrincipal.version}). Their entries become the Space's loops; everyone else's become their own
|
|
58
|
-
: "This Space has no active execution principal, so every entry becomes its owner's own
|
|
57
|
+
? `Execution principal: user ${plan.executionPrincipal.userId} (version ${plan.executionPrincipal.version}). Their entries become the Space's loops; everyone else's become their own Duties.`
|
|
58
|
+
: "This Space has no active execution principal, so every entry becomes its owner's own Duty.",
|
|
59
59
|
];
|
|
60
60
|
if (plan.entryScope === 'owner') {
|
|
61
61
|
lines.push(`A ${plan.sourceLabel} is private to its member: this plan lists only yours, and each member converts their own.`);
|
|
@@ -79,7 +79,7 @@ function planLines(plan, { binName = 'skrr' } = {}) {
|
|
|
79
79
|
}
|
|
80
80
|
else if (entry.disposition === 'handed_over') {
|
|
81
81
|
const status = entry.pointer?.loopStatus;
|
|
82
|
-
lines.push(`${entryHeading(entry)}: retired, replaced by loop ${entry.pointer?.
|
|
82
|
+
lines.push(`${entryHeading(entry)}: retired, replaced by loop ${entry.pointer?.dutyId} (${status || 'unknown'})${status && status !== 'active' && status !== 'paused'
|
|
83
83
|
? '. A retired entry stays retired; make a new loop or heartbeat to bring the turn back.'
|
|
84
84
|
: ''}`);
|
|
85
85
|
}
|
|
@@ -112,7 +112,7 @@ function planLines(plan, { binName = 'skrr' } = {}) {
|
|
|
112
112
|
function applyLines(response) {
|
|
113
113
|
const lines = response.results.map((result) => {
|
|
114
114
|
const word = OUTCOME_WORD[result.outcome] || result.outcome;
|
|
115
|
-
const loop = result.
|
|
115
|
+
const loop = result.dutyId ? ` -> loop ${result.dutyId}` : '';
|
|
116
116
|
const code = result.code ? ` (${result.code})` : '';
|
|
117
117
|
const detail = result.detail ? `: ${(0, space_notebook_1.oneLine)(result.detail, 240)}` : '';
|
|
118
118
|
return `${result.entryId} ${word}${loop}${code}${detail}`;
|
|
@@ -56,9 +56,9 @@ const LINK_WORD = {
|
|
|
56
56
|
};
|
|
57
57
|
const VISIBILITY_WORD = {
|
|
58
58
|
space_access: 'shared with the Space',
|
|
59
|
-
|
|
59
|
+
duty_access: 'only for people who can open the Duty',
|
|
60
60
|
};
|
|
61
|
-
/** Which
|
|
61
|
+
/** Which Duty a loop row came from, and who may see the row. */
|
|
62
62
|
function loopLine(row) {
|
|
63
63
|
const link = LINK_WORD[row.loop.link] || row.loop.link;
|
|
64
64
|
const seen = VISIBILITY_WORD[row.visibility] || row.visibility;
|
|
@@ -88,8 +88,8 @@ function spaceWritePendingLines(body, { binName }) {
|
|
|
88
88
|
body.message,
|
|
89
89
|
`Approval bundle: ${proposal.id} (item ${proposal.itemId})`,
|
|
90
90
|
];
|
|
91
|
-
if (proposal.
|
|
92
|
-
lines.push(`Review it: ${binName}
|
|
91
|
+
if (proposal.dutyId) {
|
|
92
|
+
lines.push(`Review it: ${binName} duties action-proposals ${proposal.dutyId}`);
|
|
93
93
|
}
|
|
94
94
|
if (proposal.expiresAt)
|
|
95
95
|
lines.push(`Expires: ${proposal.expiresAt}`);
|
|
@@ -38,7 +38,7 @@ function printStewardshipCoverage(report, log) {
|
|
|
38
38
|
if (source.unlisted) {
|
|
39
39
|
// A capped count is a lower bound; say so rather than print 200 as exact.
|
|
40
40
|
const count = `${source.truncated ? 'at least ' : ''}${source.unlisted}`;
|
|
41
|
-
log(`${source.name}: ${count} Grant${source.unlisted === 1 && !source.truncated ? '' : 's'} on an Agent or
|
|
41
|
+
log(`${source.name}: ${count} Grant${source.unlisted === 1 && !source.truncated ? '' : 's'} on an Agent or Duty in this workspace carry no workspace stamp, so they are not listed here. Their owners can see them with \`skrr grants list\`.`);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -106,7 +106,7 @@ function printWorkspaceStewardship(report, log) {
|
|
|
106
106
|
? `${rows.length} shown, cut at the row cap (there are more)`
|
|
107
107
|
: String(rows.length);
|
|
108
108
|
for (const [name, source, rows] of [
|
|
109
|
-
['
|
|
109
|
+
['Duties', 'duties', report.duties],
|
|
110
110
|
['Approver seats', 'approverSeats', report.approverSeats],
|
|
111
111
|
]) {
|
|
112
112
|
log(`${name}: ${count(rows, source)}`);
|
|
@@ -5,7 +5,7 @@ exports.verifyTaskSpecifications = verifyTaskSpecifications;
|
|
|
5
5
|
const node_util_1 = require("node:util");
|
|
6
6
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
7
7
|
const FIELDS = [
|
|
8
|
-
'title', 'status', 'priority', 'estimate', '
|
|
8
|
+
'title', 'status', 'priority', 'estimate', 'dutyId', 'spaceId', 'goalId', 'projectId', 'parentId',
|
|
9
9
|
'externalKey', 'executionMode', 'reviewPolicy', 'assigneeAgentIds',
|
|
10
10
|
'assigneeUserIds', 'labelIds', 'tags', 'workingDirectory', 'executionIsolation',
|
|
11
11
|
'startDate', 'dueDate', 'expectations', 'blocksIds', 'blockedByIds',
|
package/dist/lib/tasks.d.ts
CHANGED
package/dist/lib/tasks.js
CHANGED
|
@@ -319,7 +319,7 @@ function normalizeTaskCreateJsonAliases(body) {
|
|
|
319
319
|
['parent', 'parentId'],
|
|
320
320
|
['space', 'spaceId'],
|
|
321
321
|
['goal', 'goalId'],
|
|
322
|
-
['
|
|
322
|
+
['duty', 'dutyId'],
|
|
323
323
|
['project', 'projectId'],
|
|
324
324
|
['cycle', 'cycleId'],
|
|
325
325
|
['spawnedBy', 'spawnedByTaskId'],
|
|
@@ -361,7 +361,7 @@ function buildTaskCreatePayload(body, flags = {}) {
|
|
|
361
361
|
parentId: flags.parent,
|
|
362
362
|
spaceId: flags.space,
|
|
363
363
|
goalId: flags.goal,
|
|
364
|
-
|
|
364
|
+
dutyId: flags.duty,
|
|
365
365
|
projectId: flags.project,
|
|
366
366
|
cycleId: flags.cycle,
|
|
367
367
|
assigneeAgentIds: flags['assignee-agent'],
|
|
@@ -417,13 +417,13 @@ function applyDaemonSessionDefaults(payload) {
|
|
|
417
417
|
if (spaceId)
|
|
418
418
|
payload.spaceId = spaceId;
|
|
419
419
|
}
|
|
420
|
-
// A
|
|
420
|
+
// A duty-owned agent run can create work that does not belong to a
|
|
421
421
|
// Goal. Preserve that durable ownership edge so later checks can observe the
|
|
422
422
|
// task rather than inferring it from its title, creator, or GitHub SHA.
|
|
423
|
-
if (!Object.prototype.hasOwnProperty.call(payload, '
|
|
424
|
-
const
|
|
425
|
-
if (
|
|
426
|
-
payload.
|
|
423
|
+
if (!Object.prototype.hasOwnProperty.call(payload, 'dutyId')) {
|
|
424
|
+
const dutyId = envFirst('OVERSKY_SESSION_DUTY_ID', 'OVERSKY_DUTY_ID');
|
|
425
|
+
if (dutyId)
|
|
426
|
+
payload.dutyId = dutyId;
|
|
427
427
|
}
|
|
428
428
|
if (!Object.prototype.hasOwnProperty.call(payload, 'sourceConversationId')) {
|
|
429
429
|
const conversationId = envFirst('OVERSKY_SESSION_CONVERSATION_ID', 'OVERSKY_CONVERSATION_ID');
|
|
@@ -482,7 +482,7 @@ function validateTaskCreatePayload(payload) {
|
|
|
482
482
|
for (const field of [
|
|
483
483
|
'parentId',
|
|
484
484
|
'goalId',
|
|
485
|
-
'
|
|
485
|
+
'dutyId',
|
|
486
486
|
'spaceId',
|
|
487
487
|
'sourceConversationId',
|
|
488
488
|
'sourceMessageId',
|
package/dist/lib/triggers.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ export declare const TRIGGER_KINDS: readonly ["schedule", "once", "event", "stoc
|
|
|
3
3
|
/**
|
|
4
4
|
* The scope kinds the trigger endpoints accept. NOT a list of its own: `@skrr-ai/data-provider` owns it
|
|
5
5
|
* (`TRIGGER_API_SCOPE_KINDS`) and the API route reads the same array. The hand-written copy that stood here
|
|
6
|
-
* lacked `
|
|
6
|
+
* lacked `duty_watcher` and `space_cycle`, so `triggers list --scope duty_watcher` was refused locally
|
|
7
7
|
* for a scope the server serves (OSK-21518). `trigger-scope-kinds-parity.spec.ts` pins it.
|
|
8
8
|
*/
|
|
9
|
-
export declare const TRIGGER_SCOPE_KINDS: readonly ["agent", "group_chat_subscriber", "space_oracle", "space_subscriber", "key_result_watcher", "task_watcher", "goal_watcher", "
|
|
9
|
+
export declare const TRIGGER_SCOPE_KINDS: readonly ["agent", "group_chat_subscriber", "space_oracle", "space_subscriber", "key_result_watcher", "task_watcher", "goal_watcher", "duty_watcher", "entity_reminder", "space_cycle"];
|
|
10
10
|
/**
|
|
11
11
|
* Executor modes this CLI will let you author.
|
|
12
12
|
*
|
|
@@ -177,7 +177,7 @@ export interface TriggerDefinition {
|
|
|
177
177
|
* the loop is active; `retired`: replaced by the loop, read-only, does not run.
|
|
178
178
|
*/
|
|
179
179
|
supersededBy?: {
|
|
180
|
-
|
|
180
|
+
dutyId?: string;
|
|
181
181
|
state?: string;
|
|
182
182
|
recordedAt?: string;
|
|
183
183
|
retiredAt?: string;
|
|
@@ -715,8 +715,8 @@ export declare function claimsAwaitingStartLine(limits?: SchedulerLimits | null)
|
|
|
715
715
|
* Human phrasing for a trigger's enabled state (OSK-4886).
|
|
716
716
|
*
|
|
717
717
|
* `Enabled: yes` never used the vocabulary the create flow does — a trigger is
|
|
718
|
-
* "armed" when
|
|
719
|
-
*
|
|
718
|
+
* "armed" when enabled and "inert" until enabled. Execution still depends
|
|
719
|
+
* on live gates which this stored trigger summary cannot establish.
|
|
720
720
|
*/
|
|
721
721
|
export declare function armedStateLabel(enabled: boolean | undefined, lastResult?: string | null,
|
|
722
722
|
/**
|
package/dist/lib/triggers.js
CHANGED
|
@@ -81,6 +81,7 @@ const http_error_1 = require("./http-error");
|
|
|
81
81
|
const format_1 = require("./format");
|
|
82
82
|
const planOutcome_1 = require("./planOutcome");
|
|
83
83
|
const failedRunCause_1 = require("./failedRunCause");
|
|
84
|
+
const LAST_RESULT_LABEL_RE = /^(outside_working_hours|inside_quiet_hours)(?::\1)?$/;
|
|
84
85
|
const PARSE_JSON_ARRAY_RE = /^[[{]/;
|
|
85
86
|
const ARMED_STATE_LABEL_RE = /^skipped:(.+)$/;
|
|
86
87
|
const WEBHOOK_INGEST_URL_RE = /\/+$/;
|
|
@@ -97,7 +98,7 @@ exports.TRIGGER_KINDS = [
|
|
|
97
98
|
/**
|
|
98
99
|
* The scope kinds the trigger endpoints accept. NOT a list of its own: `@skrr-ai/data-provider` owns it
|
|
99
100
|
* (`TRIGGER_API_SCOPE_KINDS`) and the API route reads the same array. The hand-written copy that stood here
|
|
100
|
-
* lacked `
|
|
101
|
+
* lacked `duty_watcher` and `space_cycle`, so `triggers list --scope duty_watcher` was refused locally
|
|
101
102
|
* for a scope the server serves (OSK-21518). `trigger-scope-kinds-parity.spec.ts` pins it.
|
|
102
103
|
*/
|
|
103
104
|
exports.TRIGGER_SCOPE_KINDS = data_provider_1.TRIGGER_API_SCOPE_KINDS;
|
|
@@ -378,8 +379,8 @@ const SCOPE_EXPECTED_REF_KEYS = {
|
|
|
378
379
|
task_watcher: ['taskId', 'watcherAgentId'],
|
|
379
380
|
key_result_watcher: ['keyResultId', 'watcherAgentId'],
|
|
380
381
|
space_subscriber: ['spaceId', 'agentId', 'subscriberUserId'],
|
|
381
|
-
// `
|
|
382
|
-
|
|
382
|
+
// `dutyId` is the one the resolver requires; it also reads optional agentId/goalId/spaceId/... refs.
|
|
383
|
+
duty_watcher: ['dutyId'],
|
|
383
384
|
};
|
|
384
385
|
function parseKeyValueFlags(values, flagName, scopeKind) {
|
|
385
386
|
const refs = {};
|
|
@@ -1094,10 +1095,16 @@ function formatFireInZone(iso, timeZone) {
|
|
|
1094
1095
|
}
|
|
1095
1096
|
}
|
|
1096
1097
|
function nextFireLines(schedule) {
|
|
1097
|
-
if (!schedule
|
|
1098
|
+
if (!schedule)
|
|
1098
1099
|
return [];
|
|
1100
|
+
const lines = [];
|
|
1101
|
+
if (schedule.nextFireAt) {
|
|
1102
|
+
lines.push(`Stored due time: ${formatFireInZone(schedule.nextFireAt, schedule.timezone)}`);
|
|
1103
|
+
}
|
|
1104
|
+
if (!schedule.nextFires?.length)
|
|
1105
|
+
return lines;
|
|
1099
1106
|
const windows = new Map((schedule.nextFireWindows ?? []).map((entry) => [entry.at, entry]));
|
|
1100
|
-
|
|
1107
|
+
lines.push(`Projected schedule slots (${schedule.timezone}):`);
|
|
1101
1108
|
for (const at of schedule.nextFires) {
|
|
1102
1109
|
const window = windows.get(at);
|
|
1103
1110
|
const mark = window && !window.runs
|
|
@@ -1466,8 +1473,8 @@ function claimsAwaitingStartLine(limits) {
|
|
|
1466
1473
|
* Human phrasing for a trigger's enabled state (OSK-4886).
|
|
1467
1474
|
*
|
|
1468
1475
|
* `Enabled: yes` never used the vocabulary the create flow does — a trigger is
|
|
1469
|
-
* "armed" when
|
|
1470
|
-
*
|
|
1476
|
+
* "armed" when enabled and "inert" until enabled. Execution still depends
|
|
1477
|
+
* on live gates which this stored trigger summary cannot establish.
|
|
1471
1478
|
*/
|
|
1472
1479
|
function armedStateLabel(enabled, lastResult,
|
|
1473
1480
|
/**
|
|
@@ -1502,6 +1509,8 @@ windowVerdict) {
|
|
|
1502
1509
|
}
|
|
1503
1510
|
if (enabled === false)
|
|
1504
1511
|
return 'no — inert until enabled';
|
|
1512
|
+
if (enabled !== true)
|
|
1513
|
+
return 'unknown — enabled state was not reported (see `skrr triggers preflight <id>`)';
|
|
1505
1514
|
if (schedulerLimits?.state === 'reached')
|
|
1506
1515
|
return `no — ${schedulerLimitSentence(schedulerLimits)}`;
|
|
1507
1516
|
if (windowVerdict?.state === 'blocks_all') {
|
|
@@ -1510,13 +1519,13 @@ windowVerdict) {
|
|
|
1510
1519
|
if (windowVerdict?.state === 'blocks_next') {
|
|
1511
1520
|
return `yes — but its next run falls ${windowVerdict.reason === 'outside_working_hours' ? 'outside its working hours' : 'inside its quiet hours'} and will be skipped`;
|
|
1512
1521
|
}
|
|
1513
|
-
//
|
|
1522
|
+
// A platform-managed row whose owner is fenced (Always-On off) ticks on
|
|
1514
1523
|
// schedule and is skipped every time, and the same screen's `Fires:` line says so; the first line a reader
|
|
1515
|
-
// meets must not say the opposite (dogfood df-261031-
|
|
1524
|
+
// meets must not say the opposite (dogfood df-261031-duty-authoring, OSK-21103).
|
|
1516
1525
|
const skipped = typeof lastResult === 'string' ? ARMED_STATE_LABEL_RE.exec(lastResult) : null;
|
|
1517
1526
|
return skipped
|
|
1518
1527
|
? `yes — but its last tick was skipped (${skipped[1]}), so it did not run`
|
|
1519
|
-
: 'yes —
|
|
1528
|
+
: 'yes — enabled; execution depends on current gates (see `skrr triggers preflight <id>`)';
|
|
1520
1529
|
}
|
|
1521
1530
|
/**
|
|
1522
1531
|
* Human phrasing for an effect trigger's write mode (OSK-4886).
|
|
@@ -1643,8 +1652,8 @@ function debounceSpan(ms) {
|
|
|
1643
1652
|
function debounceSummaryLine(trigger) {
|
|
1644
1653
|
if (trigger.kind !== 'event')
|
|
1645
1654
|
return undefined;
|
|
1646
|
-
// A
|
|
1647
|
-
if (trigger.scope?.kind === '
|
|
1655
|
+
// A Duty wake coalesces in the wake ledger; TriggerEngine never debounces those fires.
|
|
1656
|
+
if (trigger.scope?.kind === 'duty_watcher' || trigger.execution?.mode === 'duty_reflection') {
|
|
1648
1657
|
return undefined;
|
|
1649
1658
|
}
|
|
1650
1659
|
const ms = trigger.event?.debounceMs;
|
|
@@ -1773,10 +1782,10 @@ function renderTriggerSummary(trigger, log, options = {}) {
|
|
|
1773
1782
|
}
|
|
1774
1783
|
// A trigger converted into a Space loop is read-only, and says where its turn went.
|
|
1775
1784
|
const loop = trigger.supersededBy;
|
|
1776
|
-
if (loop?.
|
|
1785
|
+
if (loop?.dutyId) {
|
|
1777
1786
|
log(loop.state === 'retired'
|
|
1778
|
-
? `Loop: replaced by Space loop ${loop.
|
|
1779
|
-
: `Loop: being converted into Space loop ${loop.
|
|
1787
|
+
? `Loop: replaced by Space loop ${loop.dutyId}; read-only and does not run (skrr duties show ${loop.dutyId})`
|
|
1788
|
+
: `Loop: being converted into Space loop ${loop.dutyId}; read-only, and keeps firing until the loop is active`);
|
|
1780
1789
|
}
|
|
1781
1790
|
if (trigger.label)
|
|
1782
1791
|
log(`Label: ${trigger.label}`);
|
|
@@ -1996,7 +2005,7 @@ function lastResultLabel(trigger) {
|
|
|
1996
2005
|
const last = trigger.audit?.lastResult;
|
|
1997
2006
|
if (typeof last !== 'string' || !last)
|
|
1998
2007
|
return undefined;
|
|
1999
|
-
const code =
|
|
2008
|
+
const code = LAST_RESULT_LABEL_RE.exec(last)?.[1];
|
|
2000
2009
|
if (!code)
|
|
2001
2010
|
return last;
|
|
2002
2011
|
const summary = clockSkipAuditExplanation({
|
|
@@ -81,7 +81,7 @@ export declare function resolveCliPackageDir(argv?: readonly string[]): string |
|
|
|
81
81
|
* `dist` and no `src`.
|
|
82
82
|
*/
|
|
83
83
|
export declare function classifyCliInstall(env: NodeJS.ProcessEnv, argv: readonly string[], npmGlobalRoot: string | null, probeWritable?: boolean): CliInstallDescriptor;
|
|
84
|
-
export declare function cliUpdateCommand(owner: CliInstallKind, npmPrefix?: string): string;
|
|
84
|
+
export declare function cliUpdateCommand(owner: CliInstallKind, npmPrefix?: string, offeredVersion?: string | null): string;
|
|
85
85
|
export declare function buildNudgeLine(currentVersion: string, latest: string | null, _npmPackage: string | null, installKind?: CliInstallKind, npmPrefix?: string): string | null;
|
|
86
86
|
export type CliUpdateAction = {
|
|
87
87
|
type: 'nudge';
|
package/dist/lib/update-check.js
CHANGED
|
@@ -287,12 +287,17 @@ async function resolveNpmGlobalRoot(env = process.env) {
|
|
|
287
287
|
return null;
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
function cliUpdateCommand(owner, npmPrefix) {
|
|
290
|
+
function cliUpdateCommand(owner, npmPrefix, offeredVersion) {
|
|
291
|
+
// The offered version comes from remote metadata or a local cache. Only put
|
|
292
|
+
// an exact, shell-safe npm version into an executable suggestion.
|
|
293
|
+
const version = offeredVersion && /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$/.test(offeredVersion)
|
|
294
|
+
? offeredVersion
|
|
295
|
+
: 'latest';
|
|
291
296
|
switch (owner) {
|
|
292
297
|
case 'npm-global':
|
|
293
298
|
return npmPrefix
|
|
294
|
-
? `npm install --global --prefix '${npmPrefix.replace(CLI_UPDATE_COMMAND_RE, "'\\''")}' ${CLI_PACKAGE}
|
|
295
|
-
: `npm install -g ${CLI_PACKAGE}
|
|
299
|
+
? `npm install --global --prefix '${npmPrefix.replace(CLI_UPDATE_COMMAND_RE, "'\\''")}' ${CLI_PACKAGE}@${version}`
|
|
300
|
+
: `npm install -g ${CLI_PACKAGE}@${version}`;
|
|
296
301
|
case 'npm-local':
|
|
297
302
|
return `Use npm in the project that owns ${CLI_PACKAGE}`;
|
|
298
303
|
case 'dev':
|
|
@@ -310,8 +315,7 @@ function cliUpdateCommand(owner, npmPrefix) {
|
|
|
310
315
|
function buildNudgeLine(currentVersion, latest, _npmPackage, installKind = 'npm-global', npmPrefix) {
|
|
311
316
|
if (!latest || !isOlderVersion(currentVersion, latest))
|
|
312
317
|
return null;
|
|
313
|
-
const command = installKind
|
|
314
|
-
? `npm update -g ${CLI_PACKAGE}` : cliUpdateCommand(installKind, npmPrefix);
|
|
318
|
+
const command = cliUpdateCommand(installKind, npmPrefix, latest);
|
|
315
319
|
const context = installKind === 'dev'
|
|
316
320
|
? ' to rebuild your checkout'
|
|
317
321
|
: '';
|
|
@@ -349,7 +353,7 @@ function decideCliUpdateAction(args) {
|
|
|
349
353
|
if (attempt?.status === 'failed')
|
|
350
354
|
return {
|
|
351
355
|
type: 'nudge',
|
|
352
|
-
line: `[skrr] CLI update to ${cache.latest} failed. Inspect \`skrr update --status\` or run \`${cliUpdateCommand(install.kind, install.npmPrefix)}\`.\n`,
|
|
356
|
+
line: `[skrr] CLI update to ${cache.latest} failed. Inspect \`skrr update --status\` or run \`${cliUpdateCommand(install.kind, install.npmPrefix, cache.latest)}\`.\n`,
|
|
353
357
|
};
|
|
354
358
|
}
|
|
355
359
|
const line = buildNudgeLine(currentVersion, cache.latest, CLI_PACKAGE, install.kind, install.npmPrefix);
|
|
@@ -488,7 +492,7 @@ function readCliUpdateStatus(opts) {
|
|
|
488
492
|
state,
|
|
489
493
|
autoUpdateAllowed: autoUpdateReason === null,
|
|
490
494
|
autoUpdateReason,
|
|
491
|
-
command: cliUpdateCommand(install.kind, install.npmPrefix),
|
|
495
|
+
command: cliUpdateCommand(install.kind, install.npmPrefix, offeredVersion),
|
|
492
496
|
lastCheckAt: matchingCache?.lastCheckAt ?? null,
|
|
493
497
|
lastAttempt,
|
|
494
498
|
logPath: path.join(directory, 'update.log'),
|
|
@@ -613,7 +617,7 @@ async function performCliUpdate(opts) {
|
|
|
613
617
|
env.SKRR_CLI_UPDATE_SESSION_UNAVAILABLE === '1') {
|
|
614
618
|
return {
|
|
615
619
|
...status,
|
|
616
|
-
message: `This CLI is owned by ${install.kind}${install.kind === 'npm-global' ? ' in a shared or external prefix' : ''}. ${cliUpdateCommand(install.kind, install.npmPrefix)}.`,
|
|
620
|
+
message: `This CLI is owned by ${install.kind}${install.kind === 'npm-global' ? ' in a shared or external prefix' : ''}. ${cliUpdateCommand(install.kind, install.npmPrefix, status.offeredVersion)}.`,
|
|
617
621
|
};
|
|
618
622
|
}
|
|
619
623
|
const recoverableAttempt = status.lastAttempt && ['queued', 'running'].includes(status.lastAttempt.status);
|
|
@@ -10,6 +10,7 @@ exports.renderUsageOverview = renderUsageOverview;
|
|
|
10
10
|
exports.renderUsageReference = renderUsageReference;
|
|
11
11
|
exports.auditUsageBudgets = auditUsageBudgets;
|
|
12
12
|
const command_manifest_1 = require("./command-manifest");
|
|
13
|
+
const EXAMPLE_FOR_RE = /<%=\s*config\.bin\s*%>/g;
|
|
13
14
|
const COMPACT_RE = /\s+/g;
|
|
14
15
|
/**
|
|
15
16
|
* `skrr commands --json` is intentionally exhaustive. That makes it the right
|
|
@@ -230,10 +231,7 @@ function usageCommand(entry, bin) {
|
|
|
230
231
|
};
|
|
231
232
|
}
|
|
232
233
|
function exampleFor(entry, bin) {
|
|
233
|
-
const raw = entry.examples[0]
|
|
234
|
-
?.replace(/<%=\s*config\.bin\s*%>/g, bin)
|
|
235
|
-
.split('#')[0]
|
|
236
|
-
.trim();
|
|
234
|
+
const raw = entry.examples[0]?.replace(EXAMPLE_FOR_RE, bin).split('#')[0].trim();
|
|
237
235
|
return compact(raw || `${bin} ${entry.command}`, 96);
|
|
238
236
|
}
|
|
239
237
|
function compact(value, maxCharacters) {
|
package/dist/lib/web-url.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export type WebUrlRef = {
|
|
|
37
37
|
goalId: string;
|
|
38
38
|
spaceId?: string | null;
|
|
39
39
|
} | {
|
|
40
|
-
kind: '
|
|
41
|
-
|
|
40
|
+
kind: 'duty';
|
|
41
|
+
dutyId: string;
|
|
42
42
|
} | {
|
|
43
43
|
kind: 'northstar';
|
|
44
44
|
northstarId: string;
|
|
@@ -141,8 +141,8 @@ export declare function conversationUrlFrom(baseURL: string, conversation: Entit
|
|
|
141
141
|
export declare function groupChatUrlFrom(baseURL: string, chat: EntityRecord): string | null;
|
|
142
142
|
/** Build a goal URL from a raw server goal record. */
|
|
143
143
|
export declare function goalUrlFrom(baseURL: string, goal: EntityRecord): string | null;
|
|
144
|
-
/** Build a
|
|
145
|
-
export declare function
|
|
144
|
+
/** Build a duty URL from a raw server duty record. */
|
|
145
|
+
export declare function dutyUrlFrom(baseURL: string, duty: EntityRecord): string | null;
|
|
146
146
|
/** Build a Northstar detail URL from a raw server Northstar record. */
|
|
147
147
|
export declare function northstarUrlFrom(baseURL: string, northstar: EntityRecord): string | null;
|
|
148
148
|
/** Build an agent detail URL from a raw server agent record. */
|
|
@@ -186,8 +186,8 @@ export declare function wikiPageUrlFrom(baseURL: string, page: EntityRecord): st
|
|
|
186
186
|
export declare function withWikiPageUrl<T extends EntityRecord>(baseURL: string, page: T): T & {
|
|
187
187
|
url: string | null;
|
|
188
188
|
};
|
|
189
|
-
/** Return a shallow copy of a
|
|
190
|
-
export declare function
|
|
189
|
+
/** Return a shallow copy of a duty record with a `url` field attached. */
|
|
190
|
+
export declare function withDutyUrl<T extends EntityRecord>(baseURL: string, duty: T): T & {
|
|
191
191
|
url: string | null;
|
|
192
192
|
};
|
|
193
193
|
/** Return a shallow copy of a Northstar record with a canonical web URL. */
|
package/dist/lib/web-url.js
CHANGED
|
@@ -27,7 +27,7 @@ exports.spaceUrlFrom = spaceUrlFrom;
|
|
|
27
27
|
exports.conversationUrlFrom = conversationUrlFrom;
|
|
28
28
|
exports.groupChatUrlFrom = groupChatUrlFrom;
|
|
29
29
|
exports.goalUrlFrom = goalUrlFrom;
|
|
30
|
-
exports.
|
|
30
|
+
exports.dutyUrlFrom = dutyUrlFrom;
|
|
31
31
|
exports.northstarUrlFrom = northstarUrlFrom;
|
|
32
32
|
exports.agentUrlFrom = agentUrlFrom;
|
|
33
33
|
exports.compassUrlFrom = compassUrlFrom;
|
|
@@ -39,7 +39,7 @@ exports.projectUrlFrom = projectUrlFrom;
|
|
|
39
39
|
exports.withProjectUrl = withProjectUrl;
|
|
40
40
|
exports.wikiPageUrlFrom = wikiPageUrlFrom;
|
|
41
41
|
exports.withWikiPageUrl = withWikiPageUrl;
|
|
42
|
-
exports.
|
|
42
|
+
exports.withDutyUrl = withDutyUrl;
|
|
43
43
|
exports.withNorthstarUrl = withNorthstarUrl;
|
|
44
44
|
exports.withAgentUrl = withAgentUrl;
|
|
45
45
|
exports.withDataUrls = withDataUrls;
|
|
@@ -85,9 +85,9 @@ function webPath(ref) {
|
|
|
85
85
|
const spaceId = encodeId(ref.spaceId);
|
|
86
86
|
return spaceId ? `/spaces/${spaceId}/goals/${goalId}` : `/goals/${goalId}`;
|
|
87
87
|
}
|
|
88
|
-
case '
|
|
89
|
-
const
|
|
90
|
-
return
|
|
88
|
+
case 'duty': {
|
|
89
|
+
const dutyId = encodeId(ref.dutyId);
|
|
90
|
+
return dutyId ? `/duties/${dutyId}` : null;
|
|
91
91
|
}
|
|
92
92
|
case 'northstar': {
|
|
93
93
|
const northstarId = encodeId(ref.northstarId);
|
|
@@ -259,12 +259,12 @@ function goalUrlFrom(baseURL, goal) {
|
|
|
259
259
|
return null;
|
|
260
260
|
return webUrl(baseURL, { kind: 'goal', goalId, spaceId: idOf(goal, 'spaceId') ?? null });
|
|
261
261
|
}
|
|
262
|
-
/** Build a
|
|
263
|
-
function
|
|
264
|
-
const
|
|
265
|
-
if (!
|
|
262
|
+
/** Build a duty URL from a raw server duty record. */
|
|
263
|
+
function dutyUrlFrom(baseURL, duty) {
|
|
264
|
+
const dutyId = idOf(duty, 'id', '_id');
|
|
265
|
+
if (!dutyId)
|
|
266
266
|
return null;
|
|
267
|
-
return webUrl(baseURL, { kind: '
|
|
267
|
+
return webUrl(baseURL, { kind: 'duty', dutyId });
|
|
268
268
|
}
|
|
269
269
|
/** Build a Northstar detail URL from a raw server Northstar record. */
|
|
270
270
|
function northstarUrlFrom(baseURL, northstar) {
|
|
@@ -348,9 +348,9 @@ function wikiPageUrlFrom(baseURL, page) {
|
|
|
348
348
|
function withWikiPageUrl(baseURL, page) {
|
|
349
349
|
return { ...page, url: wikiPageUrlFrom(baseURL, page) };
|
|
350
350
|
}
|
|
351
|
-
/** Return a shallow copy of a
|
|
352
|
-
function
|
|
353
|
-
return { ...
|
|
351
|
+
/** Return a shallow copy of a duty record with a `url` field attached. */
|
|
352
|
+
function withDutyUrl(baseURL, duty) {
|
|
353
|
+
return { ...duty, url: dutyUrlFrom(baseURL, duty) };
|
|
354
354
|
}
|
|
355
355
|
/** Return a shallow copy of a Northstar record with a canonical web URL. */
|
|
356
356
|
function withNorthstarUrl(baseURL, northstar) {
|
package/dist/lib/workspaces.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface StewardshipSource {
|
|
|
4
4
|
status: 'available' | 'unavailable';
|
|
5
5
|
truncated: boolean;
|
|
6
6
|
code?: string;
|
|
7
|
-
/** `unattributedGrants` only: Grants in this workspace by Agent or
|
|
7
|
+
/** `unattributedGrants` only: Grants in this workspace by Agent or Duty that carry no workspace stamp and so are not listed. */
|
|
8
8
|
unlisted?: number;
|
|
9
9
|
}
|
|
10
10
|
export interface StewardshipCoverage {
|
|
@@ -24,7 +24,7 @@ export interface WorkspaceGrantReport {
|
|
|
24
24
|
grants: WorkspaceGrantMetadata[] | null;
|
|
25
25
|
coverage: StewardshipCoverage;
|
|
26
26
|
}
|
|
27
|
-
export interface
|
|
27
|
+
export interface StewardshipDutyMetadata {
|
|
28
28
|
id: string;
|
|
29
29
|
title?: string;
|
|
30
30
|
status?: string;
|
|
@@ -38,8 +38,8 @@ export interface WorkspaceStewardshipReport extends WorkspaceGrantReport {
|
|
|
38
38
|
/** `false` on `absent`: a removed member and an id that never existed read alike. */
|
|
39
39
|
canDistinguishRemoved?: boolean;
|
|
40
40
|
};
|
|
41
|
-
|
|
42
|
-
approverSeats:
|
|
41
|
+
duties: StewardshipDutyMetadata[] | null;
|
|
42
|
+
approverSeats: StewardshipDutyMetadata[] | null;
|
|
43
43
|
agents: Array<{
|
|
44
44
|
id: string;
|
|
45
45
|
name?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** Mode-free responsibility context. Tool permissions belong to the Agent runtime. */
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export interface
|
|
2
|
+
export declare const DUTY_EXECUTION_CONTRACT_VERSION: 3;
|
|
3
|
+
export declare const DUTY_EXECUTION_CONTRACT_CAPABILITY = "duty_execution_contract_v3";
|
|
4
|
+
export interface DutyExecutionContract {
|
|
5
5
|
version: 3;
|
|
6
|
-
kind: '
|
|
6
|
+
kind: 'duty' | 'task_delivery';
|
|
7
7
|
responsibilityRef: {
|
|
8
|
-
kind: '
|
|
8
|
+
kind: 'duty' | 'task';
|
|
9
9
|
id: string;
|
|
10
10
|
version: number;
|
|
11
11
|
};
|
|
@@ -38,8 +38,8 @@ export interface CommitmentExecutionContract {
|
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
mustNot: string[];
|
|
41
|
-
return: '
|
|
41
|
+
return: 'duty_result_v1' | 'task_output';
|
|
42
42
|
}
|
|
43
43
|
export declare function eventRepository(event: Record<string, unknown> | null | undefined): string;
|
|
44
44
|
/** One strict parser used at storage admission and at runtime admission. */
|
|
45
|
-
export declare function
|
|
45
|
+
export declare function normalizeDutyExecutionContract(value: unknown): DutyExecutionContract | null;
|