@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
package/README.md
CHANGED
|
@@ -142,7 +142,7 @@ observability), and shared links.
|
|
|
142
142
|
| **dm** | `list`, `show`, `messages`, `threads`, `thread show/messages/follow/mute/share`, `send` (agent 1:1 main chat and Slack-style Thread controls) |
|
|
143
143
|
| **diagnostics** | `context`, `doctor`, `usage`, `commands` (agent-friendly runtime identity, readiness, progressive token-budgeted discovery, and complete machine-readable schemas) |
|
|
144
144
|
| **goals** | `list`, `show`, `create`, `update`, `delete`, `descendants`, `tasks`, `archive`, `revisions` |
|
|
145
|
-
| **
|
|
145
|
+
| **duties** | `list`, `show`, `create`, `plan`, `preflight`, `update`, `checks`, `check-now`, `action-proposals`, `autonomy`, `pause`, `resume`, `complete`, `subject`, `attach`, `detach`, `reports`, `export`, `import`, `fork` (durable agent duty contracts) |
|
|
146
146
|
| **goals briefing** | `enable`, `disable`, `preview` |
|
|
147
147
|
| **tasks** | `list`, `show`, `create`, `upsert`, `create-tree`, `bulk-update`, `tree`, `update`, `delete`, `actionability`, `ready`, `start`, `active`, `monitor`, `watch`, `wait`, `continue-ready`, `move`, `complete`, `children`, `ancestors`, `descendants`, `activity`, `runs`, `execution-summary`, `execution-timeline`, `replay`, `checkout`, `release`, `start-all`, `cancel-cascade`, `cascade-status`, `dri-status`, `duplicate-pipeline`, `archive`, `today`, `prompt-log`, `revisions`, `transcript` |
|
|
148
148
|
| **tasks input** | `show`, `answer`, `dismiss` (durable Human-input handoff) |
|
|
@@ -758,46 +758,46 @@ sky triggers capabilities space_subscriber
|
|
|
758
758
|
Use `--from-json <file|->` on `create`, `update`, and `fire` for full request
|
|
759
759
|
bodies. Scope refs are passed as repeatable `--ref key=value` flags.
|
|
760
760
|
|
|
761
|
-
### `sky
|
|
761
|
+
### `sky duties ...`
|
|
762
762
|
|
|
763
|
-
Durable **
|
|
764
|
-
standing
|
|
763
|
+
Durable **duty contracts**. A duty is not a unit of work — it is a
|
|
764
|
+
standing duty ("hold this outcome true") that an agent watches on a cadence
|
|
765
765
|
with its own control loop: a fast _check_ (sense → project open loops → pick a
|
|
766
|
-
posture → act) and a slower _reflection_ that retunes the
|
|
767
|
-
from realized outcomes.
|
|
766
|
+
posture → act) and a slower _reflection_ that retunes the duty's own cadence
|
|
767
|
+
from realized outcomes. Duties sit above goals/tasks, which they watch as
|
|
768
768
|
sensors and can create work in.
|
|
769
769
|
|
|
770
770
|
```bash
|
|
771
|
-
sky
|
|
772
|
-
sky
|
|
773
|
-
sky
|
|
771
|
+
sky duties list --agent <agent-id> --status active
|
|
772
|
+
sky duties show <duty-id>
|
|
773
|
+
sky duties preflight <duty-id> # explain gates before it runs
|
|
774
774
|
|
|
775
775
|
# Author one (draft by default — read it back, then activate)
|
|
776
|
-
sky
|
|
776
|
+
sky duties create --agent <agent-id> \
|
|
777
777
|
--title "Hiring loop" --outcome "Every candidate hears back within 48h" \
|
|
778
778
|
--watch tasks --watch email --cadence 12h
|
|
779
|
-
sky
|
|
779
|
+
sky duties create --agent <agent-id> --title "AWS cost watch" \
|
|
780
780
|
--outcome "Cost regressions are investigated" \
|
|
781
781
|
--agent-directive-file ./aws-cost-policy.md
|
|
782
|
-
sky
|
|
782
|
+
sky duties create --agent <agent-id> --title "Keep CI healthy" \
|
|
783
783
|
--outcome "Failed checks are repaired" --watch github --event-driven \
|
|
784
784
|
--mode execute --delivery draft-pr --repo owner/repo --base main --status active
|
|
785
|
-
sky
|
|
785
|
+
sky duties resume <duty-id> # activate
|
|
786
786
|
|
|
787
787
|
# Or draft it from a sentence (read-only proposal)
|
|
788
|
-
sky
|
|
788
|
+
sky duties plan --agent <agent-id> --sentence "Make sure every candidate hears back in 48h"
|
|
789
789
|
|
|
790
790
|
# Steer it
|
|
791
|
-
sky
|
|
792
|
-
sky
|
|
793
|
-
sky
|
|
794
|
-
sky
|
|
795
|
-
sky
|
|
791
|
+
sky duties update <duty-id> --cadence 6h # retune how often it checks
|
|
792
|
+
sky duties autonomy <duty-id> --mode prepare # reason and wait for approval
|
|
793
|
+
sky duties checks <duty-id> # what it has been deciding
|
|
794
|
+
sky duties check-now <duty-id> # run one iteration now
|
|
795
|
+
sky duties pause <duty-id> # kill-switch
|
|
796
796
|
```
|
|
797
797
|
|
|
798
798
|
Autonomy modes: `monitor` (default), `prepare`, and `execute`. Pause/resume is
|
|
799
799
|
the lifecycle control; approval classes live in execution policy. Full reference:
|
|
800
|
-
[docs/cli/
|
|
800
|
+
[docs/cli/SKRR_DUTIES.md](../docs/cli/SKRR_DUTIES.md).
|
|
801
801
|
|
|
802
802
|
### `sky spaces` — perspective guide
|
|
803
803
|
|
package/dist/base-command.d.ts
CHANGED
|
@@ -524,21 +524,21 @@ export declare function apiRefusal(err: unknown): {
|
|
|
524
524
|
body?: Record<string, unknown>;
|
|
525
525
|
};
|
|
526
526
|
/**
|
|
527
|
-
* The remedy a refused
|
|
527
|
+
* The remedy a refused Duty activation carries.
|
|
528
528
|
*
|
|
529
529
|
* The refusal's message names the blocking Preflight gate by its QUESTION and a reason token
|
|
530
|
-
* ("Can the runtime enforce this Run? (
|
|
530
|
+
* ("Can the runtime enforce this Run? (runtime_duty_contract_unavailable)"). The gate's own
|
|
531
531
|
* `hint` — the sentence that says what to run — travels beside it at
|
|
532
532
|
* `diagnostic.firstBlocker.detail`, and the web client already shows it
|
|
533
|
-
* (`activationFailureMessage`). The CLI dropped it, so `
|
|
534
|
-
* `
|
|
535
|
-
* `
|
|
533
|
+
* (`activationFailureMessage`). The CLI dropped it, so `duties resume` and
|
|
534
|
+
* `duties create --activate` told a person to "fix the gate the reason names" while
|
|
535
|
+
* `duties preflight` knew the exact command (OSK-21126).
|
|
536
536
|
*
|
|
537
537
|
* Undefined when the gate offered none, so a caller keeps its generic wording.
|
|
538
538
|
*
|
|
539
539
|
* Exported for tests.
|
|
540
540
|
*/
|
|
541
|
-
export declare function
|
|
541
|
+
export declare function dutyActivationHint(body: Record<string, unknown> | null | undefined): string | undefined;
|
|
542
542
|
/**
|
|
543
543
|
* Prefix a failure message with the resource it is about.
|
|
544
544
|
*
|
package/dist/base-command.js
CHANGED
|
@@ -5,7 +5,7 @@ exports.assigneePayloadNeedsResolution = assigneePayloadNeedsResolution;
|
|
|
5
5
|
exports.parseGlobalFlags = parseGlobalFlags;
|
|
6
6
|
exports.refusalCodeOf = refusalCodeOf;
|
|
7
7
|
exports.apiRefusal = apiRefusal;
|
|
8
|
-
exports.
|
|
8
|
+
exports.dutyActivationHint = dutyActivationHint;
|
|
9
9
|
exports.withSubject = withSubject;
|
|
10
10
|
exports.describeHarnessUnavailable = describeHarnessUnavailable;
|
|
11
11
|
exports.describeGitHubUnavailable = describeGitHubUnavailable;
|
|
@@ -1420,7 +1420,7 @@ class BaseCommand extends core_1.Command {
|
|
|
1420
1420
|
// A transport error that reaches here uncaught still carries the server's
|
|
1421
1421
|
// coded refusal in its body — node adapter `err.body` text, axios-shaped
|
|
1422
1422
|
// `err.response.data` — but the envelope below reads only `err.code` and
|
|
1423
|
-
// the transport line. `
|
|
1423
|
+
// the transport line. `duties import` answered a fingerprint-mismatch
|
|
1424
1424
|
// 400 as `CLI_PARSE_ERROR` while the body named the mismatch. Lift the
|
|
1425
1425
|
// body's code and message onto the error so the JSON envelope and the
|
|
1426
1426
|
// `super.catch` line both report the refusal the API actually sent.
|
|
@@ -1649,30 +1649,30 @@ class BaseCommand extends core_1.Command {
|
|
|
1649
1649
|
details: envelopeDetails(body),
|
|
1650
1650
|
});
|
|
1651
1651
|
}
|
|
1652
|
-
else if ((bodyCode ===
|
|
1653
|
-
stringProp(body, 'error') ===
|
|
1654
|
-
|
|
1652
|
+
else if ((bodyCode === DUTY_ACTIVATION_BLOCKED ||
|
|
1653
|
+
stringProp(body, 'error') === DUTY_ACTIVATION_BLOCKED) &&
|
|
1654
|
+
dutyActivationHint(body)) {
|
|
1655
1655
|
// The route puts the code in `error`, in upper case, which `refusalCodeOf` does not read
|
|
1656
1656
|
// as a code — so this refusal arrived as `HTTP_409` with the gate's QUESTION as its only
|
|
1657
1657
|
// explanation. Name the code, and say what to do (OSK-21126).
|
|
1658
1658
|
this.failWithCliError({
|
|
1659
|
-
message: say(`${bodyMessage || e.message}\n → ${
|
|
1660
|
-
code:
|
|
1659
|
+
message: say(`${bodyMessage || e.message}\n → ${dutyActivationHint(body)}`),
|
|
1660
|
+
code: DUTY_ACTIVATION_BLOCKED,
|
|
1661
1661
|
status: e.status,
|
|
1662
1662
|
exit: 1,
|
|
1663
1663
|
retryable: false,
|
|
1664
1664
|
details: envelopeDetails(body),
|
|
1665
1665
|
});
|
|
1666
1666
|
}
|
|
1667
|
-
else if (
|
|
1668
|
-
// These
|
|
1667
|
+
else if (dutyBodyErrorCode(body)) {
|
|
1668
|
+
// These Duty routes send the code in upper-case `error`, which `refusalCodeOf` does not
|
|
1669
1669
|
// read as a code, so the documented code (the guide's refusal table) never reached `error.code`:
|
|
1670
1670
|
// a program saw `HTTP_400` or `HTTP_409` and had to know to look in `details.error` (OSK-21102).
|
|
1671
1671
|
// Read them by name, as the activation and Compass refusals are, rather than widening
|
|
1672
1672
|
// `refusalCodeOf` for every route. The message is the server's, unchanged.
|
|
1673
1673
|
this.failWithCliError({
|
|
1674
1674
|
message: say(bodyMessage || e.message),
|
|
1675
|
-
code:
|
|
1675
|
+
code: dutyBodyErrorCode(body),
|
|
1676
1676
|
status: e.status,
|
|
1677
1677
|
exit: 1,
|
|
1678
1678
|
retryable: false,
|
|
@@ -2374,39 +2374,39 @@ function apiRefusal(err) {
|
|
|
2374
2374
|
...(body ? { body } : {}),
|
|
2375
2375
|
};
|
|
2376
2376
|
}
|
|
2377
|
-
/** The typed code the server refuses a
|
|
2378
|
-
const
|
|
2377
|
+
/** The typed code the server refuses a Duty activation with. */
|
|
2378
|
+
const DUTY_ACTIVATION_BLOCKED = 'DUTY_ACTIVATION_BLOCKED';
|
|
2379
2379
|
/**
|
|
2380
|
-
*
|
|
2380
|
+
* Duty refusals the routes send in upper-case `error` (OSK-21102): the retired `mode` and
|
|
2381
2381
|
* `policy.autonomyMode` fields, a cadence window no single wall-clock pattern holds, and an edit that
|
|
2382
2382
|
* tries to activate a draft (which only `resume` may do).
|
|
2383
2383
|
*/
|
|
2384
|
-
const
|
|
2385
|
-
'
|
|
2386
|
-
'
|
|
2387
|
-
'
|
|
2388
|
-
'
|
|
2384
|
+
const DUTY_BODY_ERROR_CODES = new Set([
|
|
2385
|
+
'DUTY_MODE_RETIRED',
|
|
2386
|
+
'DUTY_POLICY_RETIRED',
|
|
2387
|
+
'DUTY_CADENCE_WINDOW_UNSUPPORTED',
|
|
2388
|
+
'DUTY_RESUME_REQUIRES_EXPLICIT_ACTION',
|
|
2389
2389
|
]);
|
|
2390
|
-
function
|
|
2390
|
+
function dutyBodyErrorCode(body) {
|
|
2391
2391
|
const value = stringProp(body, 'error');
|
|
2392
|
-
return value &&
|
|
2392
|
+
return value && DUTY_BODY_ERROR_CODES.has(value) ? value : undefined;
|
|
2393
2393
|
}
|
|
2394
2394
|
/**
|
|
2395
|
-
* The remedy a refused
|
|
2395
|
+
* The remedy a refused Duty activation carries.
|
|
2396
2396
|
*
|
|
2397
2397
|
* The refusal's message names the blocking Preflight gate by its QUESTION and a reason token
|
|
2398
|
-
* ("Can the runtime enforce this Run? (
|
|
2398
|
+
* ("Can the runtime enforce this Run? (runtime_duty_contract_unavailable)"). The gate's own
|
|
2399
2399
|
* `hint` — the sentence that says what to run — travels beside it at
|
|
2400
2400
|
* `diagnostic.firstBlocker.detail`, and the web client already shows it
|
|
2401
|
-
* (`activationFailureMessage`). The CLI dropped it, so `
|
|
2402
|
-
* `
|
|
2403
|
-
* `
|
|
2401
|
+
* (`activationFailureMessage`). The CLI dropped it, so `duties resume` and
|
|
2402
|
+
* `duties create --activate` told a person to "fix the gate the reason names" while
|
|
2403
|
+
* `duties preflight` knew the exact command (OSK-21126).
|
|
2404
2404
|
*
|
|
2405
2405
|
* Undefined when the gate offered none, so a caller keeps its generic wording.
|
|
2406
2406
|
*
|
|
2407
2407
|
* Exported for tests.
|
|
2408
2408
|
*/
|
|
2409
|
-
function
|
|
2409
|
+
function dutyActivationHint(body) {
|
|
2410
2410
|
const diagnostic = body?.diagnostic;
|
|
2411
2411
|
if (!diagnostic || typeof diagnostic !== 'object')
|
|
2412
2412
|
return undefined;
|
|
@@ -13,7 +13,7 @@ export declare function isUnconfirmedTurnCapture(trigger: Record<string, unknown
|
|
|
13
13
|
/**
|
|
14
14
|
* `skrr agenda trigger list <agent-id>` — show all triggers registered for
|
|
15
15
|
* an agent (any kind, not just agenda-created ones), including the ones the
|
|
16
|
-
* platform manages for its
|
|
16
|
+
* platform manages for its Duties (the daily self-reflection check).
|
|
17
17
|
*/
|
|
18
18
|
export default class AgendaTriggerList extends BaseCommand {
|
|
19
19
|
static description: string;
|
|
@@ -29,10 +29,10 @@ function isUnconfirmedTurnCapture(trigger) {
|
|
|
29
29
|
/**
|
|
30
30
|
* `skrr agenda trigger list <agent-id>` — show all triggers registered for
|
|
31
31
|
* an agent (any kind, not just agenda-created ones), including the ones the
|
|
32
|
-
* platform manages for its
|
|
32
|
+
* platform manages for its Duties (the daily self-reflection check).
|
|
33
33
|
*/
|
|
34
34
|
class AgendaTriggerList extends base_command_1.BaseCommand {
|
|
35
|
-
static description = "List every trigger registered against an agent, including the ones the platform manages for its
|
|
35
|
+
static description = "List every trigger registered against an agent, including the ones the platform manages for its Duties (SOURCE 'system'). A passive agent (--initial-always-on off) still has a daily self-reflection check.";
|
|
36
36
|
static examples = [
|
|
37
37
|
'<%= config.bin %> agenda trigger list <agent-id>',
|
|
38
38
|
'<%= config.bin %> agenda trigger list <agent-id> --unconfirmed',
|
|
@@ -59,8 +59,8 @@ class AgendaTriggerList extends base_command_1.BaseCommand {
|
|
|
59
59
|
}
|
|
60
60
|
const r = response;
|
|
61
61
|
const listed = r?.data ?? [];
|
|
62
|
-
// The per-agent route lists `scope: 'agent'` rows only; the
|
|
63
|
-
// live under `
|
|
62
|
+
// The per-agent route lists `scope: 'agent'` rows only; the Duty triggers a passive agent still owns
|
|
63
|
+
// live under `duty_watcher`. `--unconfirmed` is about turn captures, which are agent-scoped, so it
|
|
64
64
|
// skips the extra read.
|
|
65
65
|
let extra = [];
|
|
66
66
|
let extraUnreadable = null;
|
|
@@ -149,8 +149,8 @@ class AgendaTriggerList extends base_command_1.BaseCommand {
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
exports.default = AgendaTriggerList;
|
|
152
|
-
/** Said, not skipped: a missing read must not look like an agent with no
|
|
152
|
+
/** Said, not skipped: a missing read must not look like an agent with no Duty triggers. */
|
|
153
153
|
function systemTriggersUnreadable(agentId, reason) {
|
|
154
|
-
return (`Platform-managed (
|
|
154
|
+
return (`Platform-managed (Duty) triggers could not be read (${reason}); this list may be incomplete. ` +
|
|
155
155
|
`Try: skrr triggers list --ref-entity agent:${agentId}`);
|
|
156
156
|
}
|
|
@@ -45,7 +45,8 @@ class AgentsAlwaysOnDisable extends base_command_1.BaseCommand {
|
|
|
45
45
|
catch (err) {
|
|
46
46
|
this.handleApiError(err);
|
|
47
47
|
}
|
|
48
|
-
const
|
|
48
|
+
const displayState = (0, data_provider_1.alwaysOnDisplayState)(status) || 'status_unknown';
|
|
49
|
+
const result = (0, always_on_command_result_1.alwaysOnCommandResult)(false, status, displayState);
|
|
49
50
|
if (flags.json) {
|
|
50
51
|
this.log(JSON.stringify(status, null, 2));
|
|
51
52
|
// The envelope carries `desiredEnabled` and `controlCommand`; the exit
|
|
@@ -54,11 +55,17 @@ class AgentsAlwaysOnDisable extends base_command_1.BaseCommand {
|
|
|
54
55
|
this.exit(1);
|
|
55
56
|
return;
|
|
56
57
|
}
|
|
58
|
+
// The receipt line says what this command did (and whether another write superseded it);
|
|
59
|
+
// the note below says what the Agent is doing now, from a state that never reads Off without
|
|
60
|
+
// evidence that nothing is still running.
|
|
57
61
|
this.log(result.line);
|
|
58
62
|
if (!result.matched)
|
|
59
63
|
this.exit(1);
|
|
60
|
-
if (
|
|
61
|
-
this.log('Note: active
|
|
64
|
+
if (displayState === 'work_remaining' || displayState === 'cancelling') {
|
|
65
|
+
this.log('Note: active or pending work remains. Work started separately may continue; re-run `always-on status` for an update.');
|
|
66
|
+
}
|
|
67
|
+
else if (displayState === 'status_unknown') {
|
|
68
|
+
this.log('Note: shutdown status is uncertain. Re-run `always-on status` before assuming work has stopped.');
|
|
62
69
|
}
|
|
63
70
|
}
|
|
64
71
|
}
|
|
@@ -66,7 +66,7 @@ class AgentsAlwaysOnEnable extends base_command_1.BaseCommand {
|
|
|
66
66
|
if (!result.matched)
|
|
67
67
|
this.exit(1);
|
|
68
68
|
if (status.operationalState === 'needs_setup') {
|
|
69
|
-
this.log('Note: no
|
|
69
|
+
this.log('Note: no Duty or managed producer lane exists yet. Create a Duty (or convert a standalone check-in) so the runtime has something to fire.');
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -40,7 +40,7 @@ class AgentsAlwaysOnReconcile extends base_command_1.BaseCommand {
|
|
|
40
40
|
this.log(JSON.stringify(status, null, 2));
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
|
-
this.log(`Reconcile done — generation=${status.generation} reconcile=${status.reconcile.status} operational=${status
|
|
43
|
+
this.log(`Reconcile done — generation=${status.generation} reconcile=${status.reconcile.status} operational=${(0, data_provider_1.alwaysOnDisplayState)(status) || 'status_unknown'}`);
|
|
44
44
|
if (status.reconcile.status === 'degraded' && status.reconcile.lastError) {
|
|
45
45
|
this.log(`Last error: ${status.reconcile.lastError}`);
|
|
46
46
|
}
|
|
@@ -75,13 +75,20 @@ class AgentsAlwaysOnStatus extends base_command_1.BaseCommand {
|
|
|
75
75
|
}
|
|
76
76
|
this.log(`Desired: ${status.desiredEnabled ? 'on' : 'off'}`);
|
|
77
77
|
this.log(`Generation: ${status.generation}`);
|
|
78
|
-
|
|
78
|
+
const displayState = (0, data_provider_1.alwaysOnDisplayState)(status) || 'status_unknown';
|
|
79
|
+
this.log(`Operational: ${displayState}`);
|
|
80
|
+
if (displayState !== status.operationalState) {
|
|
81
|
+
this.log(`Server label: ${status.operationalState}`);
|
|
82
|
+
}
|
|
79
83
|
for (const line of (0, always_on_runtime_1.runtimeLines)(runtime, status.desiredEnabled))
|
|
80
84
|
this.log(line);
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
const reconcile = status.reconcile;
|
|
86
|
+
this.log(`Reconcile: ${reconcile?.status ?? 'unavailable'}` +
|
|
87
|
+
(reconcile?.lastError ? ` (${reconcile.lastError})` : ''));
|
|
88
|
+
if (reconcile) {
|
|
89
|
+
this.log(`Managed triggers: ${reconcile.managedTriggerCount}` +
|
|
90
|
+
` (${reconcile.eligibleDutyCount} eligible dut${reconcile.eligibleDutyCount === 1 ? 'y' : 'ies'})`);
|
|
91
|
+
}
|
|
85
92
|
if (status.nextFireAt) {
|
|
86
93
|
const kind = status.nextFire?.sourceKind ?? 'unknown';
|
|
87
94
|
this.log(`Next fire: ${status.nextFireAt} (${kind})`);
|
|
@@ -90,9 +97,25 @@ class AgentsAlwaysOnStatus extends base_command_1.BaseCommand {
|
|
|
90
97
|
this.log('Next fire: (no enabled managed lane)');
|
|
91
98
|
}
|
|
92
99
|
const cr = status.checkRun;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
100
|
+
const count = (value) => typeof value === 'number' && Number.isFinite(value) && value >= 0;
|
|
101
|
+
if (cr?.checks &&
|
|
102
|
+
cr?.runs &&
|
|
103
|
+
[
|
|
104
|
+
cr.checks.queued,
|
|
105
|
+
cr.checks.running,
|
|
106
|
+
cr.runs.queued,
|
|
107
|
+
cr.runs.running,
|
|
108
|
+
cr.runs.waiting,
|
|
109
|
+
cr.activeTotal,
|
|
110
|
+
].every(count)) {
|
|
111
|
+
const deferredKnown = count(cr.runs.deferred);
|
|
112
|
+
this.log(`Checks/Runs: checks=${cr.checks.queued + cr.checks.running}` +
|
|
113
|
+
` runs${deferredKnown ? '=' : '>='}${(deferredKnown ? cr.runs.deferred : 0) + cr.runs.queued + cr.runs.running + cr.runs.waiting}` +
|
|
114
|
+
` (deferred=${deferredKnown ? cr.runs.deferred : 'unknown'}, active${deferredKnown ? '=' : '>='}${cr.activeTotal})`);
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
this.log('Checks/Runs: unavailable');
|
|
118
|
+
}
|
|
96
119
|
if (status.messaging?.degraded) {
|
|
97
120
|
const reasons = (status.messaging.degradedReasons || []).join(', ') || 'unknown';
|
|
98
121
|
this.log(`Messaging: degraded (${reasons})`);
|
|
@@ -208,12 +208,15 @@ export declare function noOutputFailureMessage(input: {
|
|
|
208
208
|
* the generic sentence.
|
|
209
209
|
*/
|
|
210
210
|
export declare function agentRunFailureMessage(result: Pick<AgenticStreamResult, 'lastEvent'>): string;
|
|
211
|
+
/** The acceptance response is a plan, not proof of the eventual executor. */
|
|
212
|
+
export declare function admittedRouting(runtime: unknown): Record<string, unknown> | undefined;
|
|
211
213
|
export declare function noStreamJsonPayload(input: {
|
|
212
214
|
result: AgenticStreamResult;
|
|
213
215
|
conversationId?: string;
|
|
214
216
|
agentId: string;
|
|
215
217
|
baseURL: string;
|
|
216
218
|
threadRootMessageId?: string;
|
|
219
|
+
admittedRuntime?: unknown;
|
|
217
220
|
}): Record<string, unknown>;
|
|
218
221
|
/**
|
|
219
222
|
* OSK-4854 — the human header printed `Streaming agent <id> (<uuid>)` with the
|
|
@@ -14,6 +14,7 @@ exports.interruptAction = interruptAction;
|
|
|
14
14
|
exports.inspectTurnCommand = inspectTurnCommand;
|
|
15
15
|
exports.noOutputFailureMessage = noOutputFailureMessage;
|
|
16
16
|
exports.agentRunFailureMessage = agentRunFailureMessage;
|
|
17
|
+
exports.admittedRouting = admittedRouting;
|
|
17
18
|
exports.noStreamJsonPayload = noStreamJsonPayload;
|
|
18
19
|
exports.chatStreamHeaderLines = chatStreamHeaderLines;
|
|
19
20
|
exports.daemonPinFields = daemonPinFields;
|
|
@@ -325,8 +326,25 @@ function noOutputFailureMessage(input) {
|
|
|
325
326
|
function agentRunFailureMessage(result) {
|
|
326
327
|
return (0, agentic_stream_1.terminalFailureMessage)(result.lastEvent) ?? 'Agent run failed';
|
|
327
328
|
}
|
|
329
|
+
/** The acceptance response is a plan, not proof of the eventual executor. */
|
|
330
|
+
function admittedRouting(runtime) {
|
|
331
|
+
if (!runtime || typeof runtime !== 'object' || Array.isArray(runtime))
|
|
332
|
+
return undefined;
|
|
333
|
+
const plan = runtime.executionPlan;
|
|
334
|
+
if (!plan || typeof plan !== 'object' || Array.isArray(plan))
|
|
335
|
+
return undefined;
|
|
336
|
+
const { selectedKind, selectedExecutionSelector, fallbackUsed } = plan;
|
|
337
|
+
const routing = {
|
|
338
|
+
...(typeof selectedKind === 'string' && selectedKind ? { selectedKind } : {}),
|
|
339
|
+
...(typeof selectedExecutionSelector === 'string' && selectedExecutionSelector
|
|
340
|
+
? { selectedExecutionSelector } : {}),
|
|
341
|
+
...(typeof fallbackUsed === 'boolean' ? { fallbackUsed } : {}),
|
|
342
|
+
};
|
|
343
|
+
return Object.keys(routing).length ? routing : undefined;
|
|
344
|
+
}
|
|
328
345
|
function noStreamJsonPayload(input) {
|
|
329
346
|
const { result, conversationId, agentId, baseURL, threadRootMessageId } = input;
|
|
347
|
+
const routing = admittedRouting(input.admittedRuntime);
|
|
330
348
|
return {
|
|
331
349
|
mode: 'no-stream',
|
|
332
350
|
executed: true,
|
|
@@ -345,6 +363,13 @@ function noStreamJsonPayload(input) {
|
|
|
345
363
|
}
|
|
346
364
|
: {}),
|
|
347
365
|
response: result.text,
|
|
366
|
+
...(routing ? { admittedRouting: routing } : {}),
|
|
367
|
+
// A terminal worker result can name its producer after dispatch. This is
|
|
368
|
+
// distinct from the initial routing plan and from billing settlement.
|
|
369
|
+
...(result.lastEvent?.executionAttribution &&
|
|
370
|
+
typeof result.lastEvent.executionAttribution === 'object'
|
|
371
|
+
? { executionAttribution: result.lastEvent.executionAttribution }
|
|
372
|
+
: {}),
|
|
348
373
|
// The model a local harness reported running (OSK-12111). Absent on a
|
|
349
374
|
// cloud turn and on a harness that reports none.
|
|
350
375
|
...(typeof result.lastEvent?.harnessModel === 'string' && result.lastEvent.harnessModel
|
|
@@ -854,6 +879,7 @@ class AgentsChat extends base_command_1.BaseCommand {
|
|
|
854
879
|
conversationId: started.conversationId,
|
|
855
880
|
...(flags['thread-root'] ? { threadRootMessageId: flags['thread-root'] } : {}),
|
|
856
881
|
responseMessageId: started.responseMessageId,
|
|
882
|
+
...(admittedRouting(started.runtime) ? { admittedRouting: admittedRouting(started.runtime) } : {}),
|
|
857
883
|
// OSK-13599 — where the turn runs and who chose it, when the server
|
|
858
884
|
// says (`request` | `agent_home`); absent against an older server.
|
|
859
885
|
...(workspaceDefault === 'supported'
|
|
@@ -1100,6 +1126,7 @@ class AgentsChat extends base_command_1.BaseCommand {
|
|
|
1100
1126
|
// A real executed turn — the metadata says so, unlike `--quick`.
|
|
1101
1127
|
this.log(JSON.stringify(noStreamJsonPayload({
|
|
1102
1128
|
result,
|
|
1129
|
+
admittedRuntime: started.runtime,
|
|
1103
1130
|
conversationId: started.conversationId,
|
|
1104
1131
|
agentId: args.agentId,
|
|
1105
1132
|
baseURL: this.cliConfig.baseURL,
|
|
@@ -31,12 +31,12 @@ export declare function agentCreateMissingFields(payload: Record<string, unknown
|
|
|
31
31
|
* OSK-7680 — what creating ONE agent also starts.
|
|
32
32
|
*
|
|
33
33
|
* Within ~10 seconds of `agents create`, the new agent owns five
|
|
34
|
-
* system-managed
|
|
34
|
+
* system-managed duties, four of them already active, on 30m/1h/2h/12h/1d
|
|
35
35
|
* cadences, three of them in Execute mode. Nothing in the create output said
|
|
36
36
|
* so: it carried only `proactiveProvisioning: {status: 'pending'}`, which does
|
|
37
37
|
* not read as "I am about to enrol this agent in four recurring autonomous
|
|
38
38
|
* loops". The person who asked for one agent got a standing workload, and the
|
|
39
|
-
* default `
|
|
39
|
+
* default `duties list --agent <id>` then answered "No duties."
|
|
40
40
|
*
|
|
41
41
|
* Said at creation because that is the moment the decision is being made and
|
|
42
42
|
* the moment `--no-relationship-loops` is still available. The opt-out already
|
|
@@ -71,12 +71,12 @@ function agentCreateMissingFields(payload) {
|
|
|
71
71
|
* OSK-7680 — what creating ONE agent also starts.
|
|
72
72
|
*
|
|
73
73
|
* Within ~10 seconds of `agents create`, the new agent owns five
|
|
74
|
-
* system-managed
|
|
74
|
+
* system-managed duties, four of them already active, on 30m/1h/2h/12h/1d
|
|
75
75
|
* cadences, three of them in Execute mode. Nothing in the create output said
|
|
76
76
|
* so: it carried only `proactiveProvisioning: {status: 'pending'}`, which does
|
|
77
77
|
* not read as "I am about to enrol this agent in four recurring autonomous
|
|
78
78
|
* loops". The person who asked for one agent got a standing workload, and the
|
|
79
|
-
* default `
|
|
79
|
+
* default `duties list --agent <id>` then answered "No duties."
|
|
80
80
|
*
|
|
81
81
|
* Said at creation because that is the moment the decision is being made and
|
|
82
82
|
* the moment `--no-relationship-loops` is still available. The opt-out already
|
|
@@ -156,18 +156,18 @@ function backgroundLoopLines(agentId, relationshipLoopsSkipped, initialAlwaysOn
|
|
|
156
156
|
...alwaysOnLines,
|
|
157
157
|
'Background loops: relationship portfolio skipped (--no-relationship-loops). ' +
|
|
158
158
|
'Self-reflection is still seeded and runs on its own cadence.',
|
|
159
|
-
` skrr
|
|
159
|
+
` skrr duties list --agent ${agentId} --include-system # what it still runs`,
|
|
160
160
|
];
|
|
161
161
|
}
|
|
162
162
|
return [
|
|
163
163
|
...alwaysOnLines,
|
|
164
|
-
'Background loops: this agent is being enrolled in system-managed
|
|
165
|
-
'self-reflection, conversation continuity, relationship pulse,
|
|
164
|
+
'Background loops: this agent is being enrolled in system-managed duties — ' +
|
|
165
|
+
'self-reflection, conversation continuity, relationship pulse, duty incubator ' +
|
|
166
166
|
'and open-loop closer. They run on their own cadence, unprompted, and are hidden ' +
|
|
167
|
-
'from the default
|
|
168
|
-
` skrr
|
|
169
|
-
` skrr
|
|
170
|
-
' skrr
|
|
167
|
+
'from the default duties list.',
|
|
168
|
+
` skrr duties list --agent ${agentId} --include-system # see them`,
|
|
169
|
+
` skrr duties operating-review ${agentId} # what they are doing`,
|
|
170
|
+
' skrr duties pause <duty-id> # stop one',
|
|
171
171
|
' skrr agents create --no-relationship-loops # a single-purpose agent next time',
|
|
172
172
|
];
|
|
173
173
|
}
|
|
@@ -258,12 +258,12 @@ class AgentsCreate extends base_command_1.BaseCommand {
|
|
|
258
258
|
}),
|
|
259
259
|
'initial-always-on': core_1.Flags.string({
|
|
260
260
|
description: 'Start autonomous work after creation (default: on). Use off for a passive agent; explicit chat still works. ' +
|
|
261
|
-
'A passive agent is still seeded with the system-managed daily self-reflection
|
|
262
|
-
'and `
|
|
261
|
+
'A passive agent is still seeded with the system-managed daily self-reflection Duty: `agenda trigger list <agent>` shows its trigger (SOURCE "system", marked "suspended" while the platform holds it for Always-On being off) ' +
|
|
262
|
+
'and `duties list --agent <agent> --include-system` finds the Duty to pause. Relationship-loop seeding is configured separately.',
|
|
263
263
|
options: ['on', 'off'],
|
|
264
264
|
}),
|
|
265
265
|
'no-relationship-loops': core_1.Flags.boolean({
|
|
266
|
-
description: 'Single-purpose agent: skip the system-managed relationship portfolio (conversation continuity, relationship pulse,
|
|
266
|
+
description: 'Single-purpose agent: skip the system-managed relationship portfolio (conversation continuity, relationship pulse, duty incubator, open-loop closer). Self-reflection is still seeded.',
|
|
267
267
|
}),
|
|
268
268
|
'default-permission-mode': core_1.Flags.string({
|
|
269
269
|
description: "Permission mode for this agent's local-harness sessions (every harness, not only Claude Code). " +
|
|
@@ -61,7 +61,7 @@ class AgentsEgress extends base_command_1.BaseCommand {
|
|
|
61
61
|
}
|
|
62
62
|
const repositories = result.declaration?.repositories;
|
|
63
63
|
this.log(repositories?.length
|
|
64
|
-
? `Repositories: ${repositories.join(', ')} (Hosted Jobs and
|
|
64
|
+
? `Repositories: ${repositories.join(', ')} (Hosted Jobs and Duty deliveries may use only these; git_commit push is not enabled in production turns and, when enabled, is bounded by them too; raw git in a shell is not limited by it)`
|
|
65
65
|
: 'Repositories: none declared (no restriction)');
|
|
66
66
|
if (!('policy' in result.effective)) {
|
|
67
67
|
this.log('Effective network unavailable: the workspace policy could not be read.');
|
|
@@ -31,7 +31,7 @@ export declare function agentRow(a: Record<string, unknown>): {
|
|
|
31
31
|
/**
|
|
32
32
|
* What the zero-row case is allowed to say. The account-is-new empty state
|
|
33
33
|
* showed a bare `No agents.` and named no next step, which is what the
|
|
34
|
-
* `
|
|
34
|
+
* `duties/list.ts` empty state was fixed to stop doing. Point at the
|
|
35
35
|
* shortest path a new user actually wants (`skrr code`, which lazily creates
|
|
36
36
|
* a default agent for the first-party harness), and at `agents create` for the
|
|
37
37
|
* explicit path.
|
|
@@ -47,7 +47,7 @@ function agentRow(a) {
|
|
|
47
47
|
/**
|
|
48
48
|
* What the zero-row case is allowed to say. The account-is-new empty state
|
|
49
49
|
* showed a bare `No agents.` and named no next step, which is what the
|
|
50
|
-
* `
|
|
50
|
+
* `duties/list.ts` empty state was fixed to stop doing. Point at the
|
|
51
51
|
* shortest path a new user actually wants (`skrr code`, which lazily creates
|
|
52
52
|
* a default agent for the first-party harness), and at `agents create` for the
|
|
53
53
|
* explicit path.
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
|
+
import { type SmartSchedulePlanRequest } from '../../lib/schedule';
|
|
3
|
+
/** Keep historical failures distinct from a newly requested plan. */
|
|
4
|
+
export declare function previousPlanNotice(request: SmartSchedulePlanRequest, regenerating: boolean): string;
|
|
2
5
|
/**
|
|
3
6
|
* `skrr agents plan-day <agent-id>` — Smart Schedule ("Plan my day").
|
|
4
7
|
*
|