@skrr-ai/cli 0.1.150 → 0.1.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -20
- package/dist/base-command.d.ts +6 -6
- package/dist/base-command.js +26 -26
- package/dist/commands/agenda/trigger/list.d.ts +1 -1
- package/dist/commands/agenda/trigger/list.js +6 -6
- package/dist/commands/agents/always-on/disable.js +10 -3
- package/dist/commands/agents/always-on/enable.js +1 -1
- package/dist/commands/agents/always-on/reconcile.js +1 -1
- package/dist/commands/agents/always-on/status.js +31 -8
- package/dist/commands/agents/chat.d.ts +3 -0
- package/dist/commands/agents/chat.js +27 -0
- package/dist/commands/agents/create.d.ts +2 -2
- package/dist/commands/agents/create.js +12 -12
- package/dist/commands/agents/egress.js +1 -1
- package/dist/commands/agents/list.d.ts +1 -1
- package/dist/commands/agents/list.js +1 -1
- package/dist/commands/agents/plan-day.d.ts +3 -0
- package/dist/commands/agents/plan-day.js +31 -8
- package/dist/commands/agents/roles/capture.d.ts +1 -1
- package/dist/commands/agents/roles/capture.js +2 -2
- package/dist/commands/agents/roles/install.js +1 -1
- package/dist/commands/agents/show.d.ts +3 -0
- package/dist/commands/agents/show.js +59 -3
- package/dist/commands/agents/spawn.js +38 -38
- package/dist/commands/agents/triggers/list.js +2 -1
- package/dist/commands/agents/update.d.ts +1 -1
- package/dist/commands/agents/update.js +3 -3
- package/dist/commands/balance/usage/breakdown.d.ts +1 -1
- package/dist/commands/balance/usage/breakdown.js +22 -6
- package/dist/commands/balance/usage/events.d.ts +3 -2
- package/dist/commands/balance/usage/events.js +34 -7
- package/dist/commands/code/jobs/show.js +1 -1
- package/dist/commands/compass/archive.d.ts +1 -1
- package/dist/commands/compass/archive.js +1 -1
- package/dist/commands/compass/create.js +1 -1
- package/dist/commands/compass/{commitments.d.ts → duties.d.ts} +5 -5
- package/dist/commands/compass/{commitments.js → duties.js} +14 -14
- package/dist/commands/compass/trace.d.ts +1 -1
- package/dist/commands/compass/trace.js +2 -2
- package/dist/commands/convos/messages.js +2 -1
- package/dist/commands/doctor.d.ts +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/{commitments → duties}/accounting.d.ts +7 -7
- package/dist/commands/{commitments → duties}/accounting.js +13 -13
- package/dist/commands/{commitments → duties}/action-history.d.ts +3 -3
- package/dist/commands/{commitments → duties}/action-history.js +12 -12
- package/dist/commands/{commitments → duties}/action-proposal.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposal.js +6 -6
- package/dist/commands/{commitments → duties}/action-proposals/decide.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposals/decide.js +8 -8
- package/dist/commands/{commitments → duties}/action-proposals/execute.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposals/execute.js +7 -7
- package/dist/commands/{commitments → duties}/action-proposals/propose.d.ts +4 -4
- package/dist/commands/{commitments → duties}/action-proposals/propose.js +15 -15
- package/dist/commands/{commitments → duties}/action-proposals.d.ts +1 -1
- package/dist/commands/{commitments → duties}/action-proposals.js +6 -6
- package/dist/commands/{commitments → duties}/analytics/detail.d.ts +5 -5
- package/dist/commands/{commitments → duties}/analytics/detail.js +13 -13
- package/dist/commands/{commitments → duties}/analytics/index.d.ts +5 -5
- package/dist/commands/{commitments → duties}/analytics/index.js +30 -30
- package/dist/commands/{commitments → duties}/analytics/replay.d.ts +3 -3
- package/dist/commands/{commitments → duties}/analytics/replay.js +11 -11
- package/dist/commands/{commitments → duties}/attach.d.ts +3 -3
- package/dist/commands/{commitments → duties}/attach.js +21 -21
- package/dist/commands/{commitments → duties}/bundle.d.ts +1 -1
- package/dist/commands/{commitments → duties}/bundle.js +7 -7
- package/dist/commands/{commitments → duties}/cadence-decisions.d.ts +3 -3
- package/dist/commands/duties/cadence-decisions.js +41 -0
- package/dist/commands/{commitments → duties}/cadence-requests/decide.d.ts +4 -4
- package/dist/commands/{commitments → duties}/cadence-requests/decide.js +11 -11
- package/dist/commands/{commitments → duties}/case.d.ts +2 -2
- package/dist/commands/{commitments → duties}/case.js +8 -8
- package/dist/commands/{commitments → duties}/cases.d.ts +2 -2
- package/dist/commands/{commitments → duties}/cases.js +9 -9
- package/dist/commands/{commitments → duties}/check-now.d.ts +6 -6
- package/dist/commands/{commitments → duties}/check-now.js +29 -29
- package/dist/commands/{commitments → duties}/checks.d.ts +3 -3
- package/dist/commands/{commitments → duties}/checks.js +13 -13
- package/dist/commands/{commitments → duties}/complete.d.ts +2 -2
- package/dist/commands/duties/complete.js +40 -0
- package/dist/commands/{commitments → duties}/control/apply.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/apply.js +7 -7
- package/dist/commands/{commitments → duties}/control/preview.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/preview.js +8 -8
- package/dist/commands/{commitments → duties}/control/show.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/show.js +6 -6
- package/dist/commands/{commitments → duties}/cost.d.ts +6 -6
- package/dist/commands/{commitments → duties}/cost.js +14 -14
- package/dist/commands/{commitments → duties}/create.d.ts +8 -8
- package/dist/commands/{commitments → duties}/create.js +92 -92
- package/dist/commands/{commitments → duties}/cycles.d.ts +2 -2
- package/dist/commands/{commitments → duties}/cycles.js +11 -11
- package/dist/commands/{commitments → duties}/decide-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/decide-remediation.js +6 -6
- package/dist/commands/{commitments → duties}/delete.d.ts +4 -4
- package/dist/commands/{commitments → duties}/delete.js +24 -24
- package/dist/commands/{commitments → duties}/delivery.d.ts +1 -1
- package/dist/commands/{commitments → duties}/delivery.js +15 -15
- package/dist/commands/{commitments → duties}/detach.d.ts +3 -3
- package/dist/commands/{commitments → duties}/detach.js +20 -20
- package/dist/commands/{commitments → duties}/doctor.d.ts +4 -4
- package/dist/commands/{commitments → duties}/doctor.js +21 -21
- package/dist/commands/{commitments → duties}/effective-policy.d.ts +3 -3
- package/dist/commands/{commitments → duties}/effective-policy.js +24 -24
- package/dist/commands/{commitments → duties}/endpoints/connect.d.ts +2 -2
- package/dist/commands/{commitments → duties}/endpoints/connect.js +10 -10
- package/dist/commands/{commitments → duties}/endpoints/create.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/create.js +16 -16
- package/dist/commands/{commitments → duties}/endpoints/delete.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/delete.js +11 -11
- package/dist/commands/{commitments → duties}/endpoints/health.d.ts +2 -2
- package/dist/commands/{commitments → duties}/endpoints/health.js +10 -10
- package/dist/commands/{commitments → duties}/endpoints/list.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/list.js +11 -11
- package/dist/commands/{commitments → duties}/endpoints/revoke.d.ts +4 -4
- package/dist/commands/{commitments → duties}/endpoints/revoke.js +13 -13
- package/dist/commands/{commitments → duties}/evaluations.d.ts +2 -2
- package/dist/commands/{commitments → duties}/evaluations.js +8 -8
- package/dist/commands/{commitments → duties}/execute-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/execute-remediation.js +7 -7
- package/dist/commands/{commitments → duties}/explain.d.ts +2 -2
- package/dist/commands/{commitments → duties}/explain.js +13 -13
- package/dist/commands/{commitments → duties}/export.d.ts +3 -3
- package/dist/commands/{commitments → duties}/export.js +15 -15
- package/dist/commands/{commitments → duties}/feedback.d.ts +4 -4
- package/dist/commands/{commitments → duties}/feedback.js +13 -13
- package/dist/commands/{commitments → duties}/fork.d.ts +3 -3
- package/dist/commands/{commitments → duties}/fork.js +11 -11
- package/dist/commands/{commitments → duties}/goals/link.d.ts +6 -6
- package/dist/commands/duties/goals/link.js +41 -0
- package/dist/commands/{commitments → duties}/goals/unlink.d.ts +4 -4
- package/dist/commands/duties/goals/unlink.js +37 -0
- package/dist/commands/{commitments → duties}/handover.d.ts +5 -5
- package/dist/commands/{commitments → duties}/handover.js +21 -21
- package/dist/commands/{commitments → duties}/hypotheses.d.ts +3 -3
- package/dist/commands/{commitments → duties}/hypotheses.js +13 -13
- package/dist/commands/{commitments → duties}/import.d.ts +2 -2
- package/dist/commands/{commitments → duties}/import.js +10 -10
- package/dist/commands/{commitments → duties}/ledger.d.ts +4 -4
- package/dist/commands/{commitments → duties}/ledger.js +12 -12
- package/dist/commands/{commitments → duties}/lineage.d.ts +5 -5
- package/dist/commands/duties/lineage.js +43 -0
- package/dist/commands/{commitments → duties}/links/create.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/create.js +9 -9
- package/dist/commands/{commitments → duties}/links/detach.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/detach.js +7 -7
- package/dist/commands/{commitments → duties}/links/list.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/list.js +9 -9
- package/dist/commands/{commitments → duties}/links/update.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/update.js +7 -7
- package/dist/commands/{commitments → duties}/list.d.ts +3 -3
- package/dist/commands/{commitments → duties}/list.js +17 -17
- package/dist/commands/{commitments → duties}/liveness.d.ts +6 -6
- package/dist/commands/{commitments → duties}/liveness.js +13 -13
- package/dist/commands/{commitments → duties}/metrics.d.ts +3 -3
- package/dist/commands/{commitments → duties}/metrics.js +12 -12
- package/dist/commands/{commitments → duties}/next-tick.d.ts +7 -7
- package/dist/commands/{commitments → duties}/next-tick.js +14 -14
- package/dist/commands/{commitments → duties}/observation/probe.d.ts +1 -1
- package/dist/commands/{commitments → duties}/observation/probe.js +12 -12
- package/dist/commands/{commitments → duties}/observation/summary.d.ts +1 -1
- package/dist/commands/duties/observation/summary.js +53 -0
- package/dist/commands/{commitments → duties}/observations.d.ts +4 -4
- package/dist/commands/{commitments → duties}/observations.js +18 -18
- package/dist/commands/{commitments → duties}/open.d.ts +1 -1
- package/dist/commands/{commitments → duties}/open.js +13 -13
- package/dist/commands/{commitments → duties}/operating-review.d.ts +5 -5
- package/dist/commands/{commitments → duties}/operating-review.js +21 -21
- package/dist/commands/{commitments → duties}/pack/activate.d.ts +1 -1
- package/dist/commands/{commitments → duties}/pack/activate.js +6 -6
- package/dist/commands/{commitments → duties}/pack/bind.d.ts +4 -4
- package/dist/commands/{commitments → duties}/pack/bind.js +19 -19
- package/dist/commands/{commitments → duties}/pack/list.d.ts +2 -2
- package/dist/commands/{commitments → duties}/pack/list.js +10 -10
- package/dist/commands/{commitments → duties}/pack/plan.d.ts +3 -3
- package/dist/commands/{commitments → duties}/pack/plan.js +12 -12
- package/dist/commands/{commitments → duties}/pack/preflight.d.ts +3 -3
- package/dist/commands/{commitments → duties}/pack/preflight.js +10 -10
- package/dist/commands/{commitments → duties}/patch.d.ts +1 -1
- package/dist/commands/{commitments → duties}/patch.js +7 -7
- package/dist/commands/{commitments → duties}/pause.d.ts +2 -2
- package/dist/commands/{commitments → duties}/pause.js +16 -16
- package/dist/commands/{commitments → duties}/plan.d.ts +4 -4
- package/dist/commands/{commitments → duties}/plan.js +20 -20
- package/dist/commands/{commitments → duties}/preflight.d.ts +8 -8
- package/dist/commands/{commitments → duties}/preflight.js +32 -32
- package/dist/commands/{commitments → duties}/propose-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/propose-remediation.js +6 -6
- package/dist/commands/{commitments → duties}/readiness/show.d.ts +1 -1
- package/dist/commands/{commitments → duties}/readiness/show.js +6 -6
- package/dist/commands/{commitments → duties}/readiness/verify.d.ts +1 -1
- package/dist/commands/{commitments → duties}/readiness/verify.js +7 -7
- package/dist/commands/{commitments → duties}/receipt-metrics.d.ts +4 -4
- package/dist/commands/{commitments → duties}/receipt-metrics.js +16 -16
- package/dist/commands/{commitments → duties}/receipt.d.ts +1 -1
- package/dist/commands/{commitments → duties}/receipt.js +10 -10
- package/dist/commands/{commitments → duties}/reflect.d.ts +4 -4
- package/dist/commands/{commitments → duties}/reflect.js +12 -12
- package/dist/commands/{commitments → duties}/reflection-decision.d.ts +2 -2
- package/dist/commands/{commitments → duties}/reflection-decision.js +7 -7
- package/dist/commands/{commitments → duties}/reflection.d.ts +2 -2
- package/dist/commands/{commitments → duties}/reflection.js +9 -9
- package/dist/commands/{commitments → duties}/remediate.d.ts +5 -5
- package/dist/commands/{commitments → duties}/remediate.js +14 -14
- package/dist/commands/{commitments → duties}/remediation-proposal.d.ts +2 -2
- package/dist/commands/{commitments → duties}/remediation-proposal.js +7 -7
- package/dist/commands/{commitments → duties}/remediation-proposals.d.ts +2 -2
- package/dist/commands/{commitments → duties}/remediation-proposals.js +8 -8
- package/dist/commands/{commitments → duties}/reports.d.ts +5 -5
- package/dist/commands/{commitments → duties}/reports.js +35 -35
- package/dist/commands/{commitments → duties}/restore.d.ts +2 -2
- package/dist/commands/duties/restore.js +46 -0
- package/dist/commands/{commitments → duties}/resume.d.ts +2 -2
- package/dist/commands/duties/resume.js +37 -0
- package/dist/commands/{commitments → duties}/roster.d.ts +2 -2
- package/dist/commands/duties/roster.js +39 -0
- package/dist/commands/{commitments → duties}/show.d.ts +7 -7
- package/dist/commands/{commitments → duties}/show.js +40 -40
- package/dist/commands/{commitments → duties}/status.d.ts +3 -3
- package/dist/commands/duties/status.js +41 -0
- package/dist/commands/{commitments → duties}/subject.d.ts +4 -4
- package/dist/commands/{commitments → duties}/subject.js +29 -29
- package/dist/commands/{commitments → duties}/trace.d.ts +3 -3
- package/dist/commands/{commitments → duties}/trace.js +12 -12
- package/dist/commands/{commitments → duties}/trigger-status.d.ts +6 -6
- package/dist/commands/{commitments → duties}/trigger-status.js +19 -19
- package/dist/commands/{commitments → duties}/update.d.ts +5 -5
- package/dist/commands/{commitments → duties}/update.js +64 -64
- package/dist/commands/{commitments → duties}/wake-capabilities.d.ts +6 -6
- package/dist/commands/{commitments → duties}/wake-capabilities.js +22 -22
- package/dist/commands/{commitments → duties}/work-plan.d.ts +1 -1
- package/dist/commands/{commitments → duties}/work-plan.js +6 -6
- package/dist/commands/goals/key-results/show.js +2 -1
- package/dist/commands/goals/plan-now.js +3 -2
- package/dist/commands/goals/planner-compare.d.ts +1 -1
- package/dist/commands/goals/planner-compare.js +13 -2
- package/dist/commands/grants/create.d.ts +1 -1
- package/dist/commands/grants/create.js +9 -9
- package/dist/commands/grants/list.d.ts +1 -1
- package/dist/commands/grants/list.js +2 -2
- package/dist/commands/harnesses/list.d.ts +2 -1
- package/dist/commands/harnesses/list.js +7 -5
- package/dist/commands/harnesses/models.js +1 -1
- package/dist/commands/harnesses/quota.d.ts +9 -11
- package/dist/commands/harnesses/quota.js +83 -18
- package/dist/commands/harnesses/show.js +1 -1
- package/dist/commands/harnesses/usage.d.ts +19 -0
- package/dist/commands/harnesses/usage.js +27 -7
- package/dist/commands/initiatives/list.d.ts +1 -1
- package/dist/commands/initiatives/list.js +1 -1
- package/dist/commands/measures/create.d.ts +2 -2
- package/dist/commands/measures/create.js +4 -4
- package/dist/commands/measures/list.d.ts +1 -1
- package/dist/commands/measures/list.js +2 -2
- package/dist/commands/memory/topics/create.js +4 -1
- package/dist/commands/northstars/create.js +4 -4
- package/dist/commands/northstars/delete.d.ts +3 -3
- package/dist/commands/northstars/delete.js +8 -8
- package/dist/commands/northstars/governance/configure.js +15 -15
- package/dist/commands/northstars/intents/decide.d.ts +1 -1
- package/dist/commands/northstars/intents/decide.js +1 -1
- package/dist/commands/northstars/link.d.ts +4 -4
- package/dist/commands/northstars/link.js +8 -8
- package/dist/commands/northstars/list.d.ts +2 -2
- package/dist/commands/northstars/list.js +3 -3
- package/dist/commands/northstars/recommendations/apply.d.ts +1 -1
- package/dist/commands/northstars/recommendations/apply.js +2 -2
- package/dist/commands/northstars/review-now.js +2 -2
- package/dist/commands/northstars/show.d.ts +3 -3
- package/dist/commands/northstars/show.js +5 -5
- package/dist/commands/northstars/unlink.d.ts +3 -3
- package/dist/commands/northstars/unlink.js +6 -6
- package/dist/commands/northstars/update.js +3 -3
- package/dist/commands/proposals/list.d.ts +3 -3
- package/dist/commands/proposals/list.js +7 -7
- package/dist/commands/spaces/auto-executor/compare.js +1 -1
- package/dist/commands/spaces/auto-executor/runs.js +1 -1
- package/dist/commands/spaces/heartbeats/list.js +2 -2
- package/dist/commands/spaces/index.js +2 -2
- package/dist/commands/spaces/list.d.ts +1 -1
- package/dist/commands/spaces/list.js +1 -1
- package/dist/commands/spaces/loops/migrate.d.ts +1 -1
- package/dist/commands/spaces/loops/migrate.js +1 -1
- package/dist/commands/spaces/loops/release.d.ts +1 -1
- package/dist/commands/spaces/loops/release.js +10 -10
- package/dist/commands/spaces/notebook.d.ts +2 -2
- package/dist/commands/spaces/notebook.js +2 -2
- package/dist/commands/spaces/proposals/discard.js +1 -1
- package/dist/commands/spaces/proposals/keep.js +1 -1
- package/dist/commands/spaces/triggers/show.js +3 -3
- package/dist/commands/spaces/write-policy/set.js +1 -1
- package/dist/commands/store/uninstall.js +2 -2
- package/dist/commands/subscriptions/health.d.ts +2 -2
- package/dist/commands/subscriptions/health.js +2 -2
- package/dist/commands/subscriptions/status.js +2 -2
- package/dist/commands/subscriptions/subscribe.js +4 -4
- package/dist/commands/tasks/create.d.ts +20 -1
- package/dist/commands/tasks/create.js +44 -3
- package/dist/commands/tasks/list.d.ts +7 -1
- package/dist/commands/tasks/list.js +2 -1
- package/dist/commands/tokens/create.d.ts +3 -4
- package/dist/commands/tokens/create.js +20 -7
- package/dist/commands/triggers/preflight.js +9 -2
- package/dist/generated/agent-guides.json +496 -496
- package/dist/generated/managed-instruction-guides.json +2 -2
- package/dist/hooks/command-not-found.d.ts +1 -1
- package/dist/hooks/command-not-found.js +1 -1
- package/dist/lib/agent-chat-start.js +2 -1
- package/dist/lib/agent-model-check.js +3 -1
- package/dist/lib/agent-trigger-listing.d.ts +4 -4
- package/dist/lib/agent-trigger-listing.js +7 -7
- package/dist/lib/agentic-stream.js +6 -7
- package/dist/lib/always-on-command-result.d.ts +8 -1
- package/dist/lib/always-on-command-result.js +11 -2
- package/dist/lib/auth-failure.js +1 -1
- package/dist/lib/balance.d.ts +5 -2
- package/dist/lib/balance.js +26 -0
- package/dist/lib/capability-matrix.d.ts +3 -3
- package/dist/lib/capability-matrix.js +9 -9
- package/dist/lib/command-hygiene.js +6 -6
- package/dist/lib/command-miss.js +1 -1
- package/dist/lib/compass-refusals.d.ts +1 -1
- package/dist/lib/compass-refusals.js +1 -1
- package/dist/lib/compasses.d.ts +5 -5
- package/dist/lib/compasses.js +15 -15
- package/dist/lib/config.d.ts +1 -1
- package/dist/lib/config.js +1 -0
- package/dist/lib/dedicated-machines.js +2 -1
- package/dist/lib/dedicated-power.js +2 -0
- package/dist/lib/{commitments.d.ts → duties.d.ts} +198 -198
- package/dist/lib/{commitments.js → duties.js} +282 -282
- package/dist/lib/{commitment-analytics.d.ts → duty-analytics.d.ts} +18 -18
- package/dist/lib/{commitment-analytics.js → duty-analytics.js} +12 -12
- package/dist/lib/{commitment-attention-copy.d.ts → duty-attention-copy.d.ts} +6 -6
- package/dist/lib/{commitment-attention-copy.js → duty-attention-copy.js} +8 -8
- package/dist/lib/{commitment-endpoints.d.ts → duty-endpoints.d.ts} +6 -6
- package/dist/lib/{commitment-endpoints.js → duty-endpoints.js} +10 -10
- package/dist/lib/{commitment-event-wakes.d.ts → duty-event-wakes.d.ts} +2 -2
- package/dist/lib/{commitment-event-wakes.js → duty-event-wakes.js} +2 -2
- package/dist/lib/{commitment-ledgers.js → duty-ledgers.js} +3 -3
- package/dist/lib/{commitment-loop-status.d.ts → duty-loop-status.d.ts} +11 -11
- package/dist/lib/{commitment-loop-status.js → duty-loop-status.js} +22 -22
- package/dist/lib/{commitment-product.d.ts → duty-product.d.ts} +6 -6
- package/dist/lib/{commitment-product.js → duty-product.js} +5 -5
- package/dist/lib/{commitment-terms.d.ts → duty-terms.d.ts} +9 -9
- package/dist/lib/{commitment-terms.js → duty-terms.js} +21 -21
- package/dist/lib/entity-open.d.ts +1 -1
- package/dist/lib/entity-open.js +1 -1
- package/dist/lib/format.d.ts +1 -1
- package/dist/lib/grants.d.ts +3 -3
- package/dist/lib/grants.js +2 -2
- package/dist/lib/harness-labels.d.ts +1 -0
- package/dist/lib/harness-labels.js +4 -0
- package/dist/lib/harnesses.d.ts +35 -0
- package/dist/lib/harnesses.js +8 -0
- package/dist/lib/initiatives.js +4 -4
- package/dist/lib/machines.d.ts +2 -1
- package/dist/lib/machines.js +2 -2
- package/dist/lib/node-adapter.js +1 -1
- package/dist/lib/northstars.d.ts +13 -13
- package/dist/lib/northstars.js +56 -56
- package/dist/lib/open-target.js +1 -1
- package/dist/lib/preflight-copy.js +5 -5
- package/dist/lib/proactiveApi.d.ts +4 -4
- package/dist/lib/proposals.js +16 -16
- package/dist/lib/publicEndpoints.generated.d.ts +4 -0
- package/dist/lib/publicEndpoints.generated.js +4 -0
- package/dist/lib/responsibility-controls.d.ts +1 -1
- package/dist/lib/responsibility-controls.js +6 -6
- package/dist/lib/roles.d.ts +1 -1
- package/dist/lib/schedule.d.ts +6 -5
- package/dist/lib/schedule.js +5 -5
- package/dist/lib/session-task-write.d.ts +1 -1
- package/dist/lib/session-task-write.js +2 -2
- package/dist/lib/space-loop-migration.js +6 -6
- package/dist/lib/space-notebook.js +2 -2
- package/dist/lib/space-write-policy.js +2 -2
- package/dist/lib/stewardship-output.js +2 -2
- package/dist/lib/task-spec-verification.js +1 -1
- package/dist/lib/tasks.d.ts +1 -1
- package/dist/lib/tasks.js +8 -8
- package/dist/lib/triggers.d.ts +5 -5
- package/dist/lib/triggers.js +25 -16
- package/dist/lib/update-check.d.ts +1 -1
- package/dist/lib/update-check.js +12 -8
- package/dist/lib/usage-discovery.js +2 -4
- package/dist/lib/web-url.d.ts +6 -6
- package/dist/lib/web-url.js +13 -13
- package/dist/lib/workspaces.d.ts +4 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.js → dutyExecutionContract.js} +22 -22
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceipt.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceiptV2.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.d.ts +9 -9
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.js +5 -5
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.d.ts +2 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +4 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.js → dutyExecutionContract.js} +16 -16
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceipt.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceiptV2.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/profilePorts.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.d.ts +9 -9
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.js +8 -8
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.d.ts +2 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.js +6 -6
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/package.json +6 -6
- package/dist/node_modules/@skrr-ai/data-provider/index.js +8295 -8283
- package/docs/v1/lookback-plans.md +1 -1
- package/oclif.manifest.json +5356 -5333
- package/package.json +16 -16
- package/dist/commands/commitments/cadence-decisions.js +0 -41
- package/dist/commands/commitments/complete.js +0 -40
- package/dist/commands/commitments/goals/link.js +0 -41
- package/dist/commands/commitments/goals/unlink.js +0 -37
- package/dist/commands/commitments/lineage.js +0 -43
- package/dist/commands/commitments/observation/summary.js +0 -31
- package/dist/commands/commitments/restore.js +0 -46
- package/dist/commands/commitments/resume.js +0 -37
- package/dist/commands/commitments/roster.js +0 -39
- package/dist/commands/commitments/status.js +0 -41
- /package/dist/lib/{commitment-ledgers.d.ts → duty-ledgers.d.ts} +0 -0
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.previousPlanNotice = previousPlanNotice;
|
|
3
4
|
const core_1 = require("@oclif/core");
|
|
4
5
|
const base_command_1 = require("../../base-command");
|
|
5
6
|
const format_1 = require("../../lib/format");
|
|
6
7
|
const schedule_1 = require("../../lib/schedule");
|
|
8
|
+
/** Keep historical failures distinct from a newly requested plan. */
|
|
9
|
+
function previousPlanNotice(request, regenerating) {
|
|
10
|
+
if (!regenerating)
|
|
11
|
+
return (0, schedule_1.describePlanRequest)(request) ?? '';
|
|
12
|
+
if (request.state === 'unknown') {
|
|
13
|
+
return 'An earlier planning attempt did not report a result and may still finish. A new request could produce a second draft.';
|
|
14
|
+
}
|
|
15
|
+
return 'A previous planning attempt failed. The new request may have a different result.';
|
|
16
|
+
}
|
|
7
17
|
/**
|
|
8
18
|
* `skrr agents plan-day <agent-id>` — Smart Schedule ("Plan my day").
|
|
9
19
|
*
|
|
@@ -26,7 +36,7 @@ const schedule_1 = require("../../lib/schedule");
|
|
|
26
36
|
* `todos list` use, so one agent-day is one zone across the commands.
|
|
27
37
|
*/
|
|
28
38
|
class AgentsPlanDay extends base_command_1.BaseCommand {
|
|
29
|
-
static description = "Smart Schedule an agent's day: propose a plan, then approve or dismiss it";
|
|
39
|
+
static description = "Smart Schedule an agent's day: propose a plan, then approve or dismiss it. Tasks are checked only in a Space led by the agent; unscoped tasks are not checked. After a failed or unknown request, use --regenerate to explicitly request another plan.";
|
|
30
40
|
static examples = [
|
|
31
41
|
'<%= config.bin %> agents plan-day <agent-id>',
|
|
32
42
|
'<%= config.bin %> agents plan-day <agent-id> --approve',
|
|
@@ -230,7 +240,7 @@ class AgentsPlanDay extends base_command_1.BaseCommand {
|
|
|
230
240
|
message: (0, schedule_1.describePlanRequest)(request) ?? 'The planning request failed.',
|
|
231
241
|
code: 'SMART_SCHEDULE_PLAN_FAILED',
|
|
232
242
|
exit: 1,
|
|
233
|
-
retryable:
|
|
243
|
+
retryable: !['INFERENCE_CREDENTIAL_UNAVAILABLE', 'INFERENCE_TARGET_UNAVAILABLE'].includes(request.failure?.code ?? ''),
|
|
234
244
|
details: { agentId, planRequest: request },
|
|
235
245
|
});
|
|
236
246
|
}
|
|
@@ -342,9 +352,13 @@ class AgentsPlanDay extends base_command_1.BaseCommand {
|
|
|
342
352
|
proposal = waited.proposal;
|
|
343
353
|
}
|
|
344
354
|
else if (waited.outcome === 'unknown') {
|
|
345
|
-
this.
|
|
346
|
-
|
|
347
|
-
|
|
355
|
+
this.failWithCliError({
|
|
356
|
+
message: `The earlier request stopped reporting and may still finish. Check \`${this.config.bin} agents schedule-trace ${agentId}\` before explicitly requesting a new plan with \`--regenerate "..."\`.`,
|
|
357
|
+
code: 'SMART_SCHEDULE_PREVIOUS_OUTCOME_UNKNOWN',
|
|
358
|
+
exit: 1,
|
|
359
|
+
retryable: false,
|
|
360
|
+
details: { agentId, planRequest: before.planRequest },
|
|
361
|
+
});
|
|
348
362
|
}
|
|
349
363
|
else {
|
|
350
364
|
this.failWithCliError({
|
|
@@ -361,12 +375,21 @@ class AgentsPlanDay extends base_command_1.BaseCommand {
|
|
|
361
375
|
// Recover a pending draft unless the caller explicitly wants a fresh one.
|
|
362
376
|
proposal = before?.proposal ?? null;
|
|
363
377
|
}
|
|
364
|
-
// A
|
|
365
|
-
//
|
|
378
|
+
// A bare read after failure must not silently start another billable run.
|
|
379
|
+
// Explicit regeneration remains available after the user checks the outcome.
|
|
366
380
|
let priorAttempt = null;
|
|
367
381
|
if (before?.planRequest?.state === 'failed' || before?.planRequest?.state === 'unknown') {
|
|
368
382
|
priorAttempt = before.planRequest;
|
|
369
|
-
|
|
383
|
+
if (!proposal && flags.regenerate === undefined) {
|
|
384
|
+
this.failWithCliError({
|
|
385
|
+
message: `${(0, schedule_1.describePlanRequest)(priorAttempt) ?? 'The previous planning request did not complete.'} To request another plan, explicitly run \`${this.config.bin} agents plan-day ${agentId} --regenerate "..."\`.`,
|
|
386
|
+
code: 'SMART_SCHEDULE_PREVIOUS_REQUEST_NOT_COMPLETED',
|
|
387
|
+
exit: 1,
|
|
388
|
+
retryable: false,
|
|
389
|
+
details: { agentId, planRequest: priorAttempt },
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
this.warn(previousPlanNotice(priorAttempt, flags.regenerate !== undefined));
|
|
370
393
|
}
|
|
371
394
|
const showingPending = proposal !== null;
|
|
372
395
|
if (!proposal) {
|
|
@@ -7,7 +7,7 @@ export default class RolesCapture extends BaseCommand {
|
|
|
7
7
|
static flags: {
|
|
8
8
|
key: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
9
|
title: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
-
|
|
10
|
+
duty: import("@oclif/core/interfaces").OptionFlag<string[], import("@oclif/core/interfaces").CustomOptions>;
|
|
11
11
|
compass: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
12
|
output: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
13
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
@@ -12,7 +12,7 @@ class RolesCapture extends base_command_1.BaseCommand {
|
|
|
12
12
|
static flags = {
|
|
13
13
|
key: core_1.Flags.string({ required: true, description: 'Portable role key' }),
|
|
14
14
|
title: core_1.Flags.string({ required: true, description: 'Role title' }),
|
|
15
|
-
|
|
15
|
+
duty: core_1.Flags.string({
|
|
16
16
|
required: true,
|
|
17
17
|
multiple: true,
|
|
18
18
|
description: 'Responsibility ID (repeat for each)',
|
|
@@ -28,7 +28,7 @@ class RolesCapture extends base_command_1.BaseCommand {
|
|
|
28
28
|
const result = await roles_1.roleApi.capture(args.id, {
|
|
29
29
|
key: flags.key,
|
|
30
30
|
title: flags.title,
|
|
31
|
-
|
|
31
|
+
dutyIds: flags.duty,
|
|
32
32
|
...(flags.compass ? { compassId: flags.compass } : {}),
|
|
33
33
|
});
|
|
34
34
|
if (flags.output)
|
|
@@ -35,7 +35,7 @@ class RolesInstall extends base_command_1.BaseCommand {
|
|
|
35
35
|
this.log(receipt.complete ? 'Role installed inactive.' : 'Role installation partially saved.');
|
|
36
36
|
for (const item of receipt.results)
|
|
37
37
|
this.log(` ${item.key || item.id || 'receipt'}: ${item.status}${item.code ? ` (${item.code})` : ''}`);
|
|
38
|
-
this.log('Review and activate the Compass, attach required skills and evidence sources, then activate responsibilities through
|
|
38
|
+
this.log('Review and activate the Compass, attach required skills and evidence sources, then activate responsibilities through duties resume.');
|
|
39
39
|
this.log(`Inspect the joined state: agents operating-plan ${args.id}`);
|
|
40
40
|
}
|
|
41
41
|
if (!receipt.complete)
|
|
@@ -22,9 +22,12 @@ export declare function agentToneLine(agent: {
|
|
|
22
22
|
* resolution, and says that is all it knows.
|
|
23
23
|
*/
|
|
24
24
|
export declare function agentPermissionLines(agent: Record<string, unknown>, harness: string): string[];
|
|
25
|
+
export declare function agentHarnessStatus(status: unknown, presence: unknown): string | null;
|
|
25
26
|
/** Text rendering is deliberately based on the server projection, with a
|
|
26
27
|
* storage-shape fallback while all stored policies are migrated. */
|
|
27
28
|
export declare function agentExecutionOrderLines(agent: Record<string, unknown>): string[];
|
|
29
|
+
/** Saved policy, not a prediction of availability, authorization or cost. */
|
|
30
|
+
export declare function agentFallbackPolicyLines(agent: Record<string, unknown>): string[];
|
|
28
31
|
export default class AgentsShow extends BaseCommand {
|
|
29
32
|
static description: string;
|
|
30
33
|
static examples: string[];
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.agentToneLine = agentToneLine;
|
|
4
4
|
exports.agentPermissionLines = agentPermissionLines;
|
|
5
|
+
exports.agentHarnessStatus = agentHarnessStatus;
|
|
5
6
|
exports.agentExecutionOrderLines = agentExecutionOrderLines;
|
|
7
|
+
exports.agentFallbackPolicyLines = agentFallbackPolicyLines;
|
|
6
8
|
const core_1 = require("@oclif/core");
|
|
7
9
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
8
10
|
const base_command_1 = require("../../base-command");
|
|
@@ -83,6 +85,13 @@ function agentPermissionLines(agent, harness) {
|
|
|
83
85
|
lines.push(`${pad}A turn's own mode (\`agents chat --permission-mode\`) overrides this for that turn.`);
|
|
84
86
|
return lines;
|
|
85
87
|
}
|
|
88
|
+
function agentHarnessStatus(status, presence) {
|
|
89
|
+
if (presence === 'unconfirmed')
|
|
90
|
+
return 'connection to this server unconfirmed';
|
|
91
|
+
if (presence === 'unknown')
|
|
92
|
+
return 'connection status unknown';
|
|
93
|
+
return typeof status === 'string' && status ? status : null;
|
|
94
|
+
}
|
|
86
95
|
/** Text rendering is deliberately based on the server projection, with a
|
|
87
96
|
* storage-shape fallback while all stored policies are migrated. */
|
|
88
97
|
function agentExecutionOrderLines(agent) {
|
|
@@ -120,8 +129,15 @@ function agentExecutionOrderLines(agent) {
|
|
|
120
129
|
...entries.map((entry, index) => {
|
|
121
130
|
const position = Number.isInteger(entry.position) ? entry.position : index + 1;
|
|
122
131
|
const target = typeof entry.name === 'string' && entry.name ? entry.name : entry.selector;
|
|
132
|
+
// The name is not a unique registration. Keep the configured selector
|
|
133
|
+
// visible even when the server resolves a friendly display name.
|
|
134
|
+
const selector = typeof entry.selector === 'string' && entry.selector &&
|
|
135
|
+
entry.selector !== target && !isSynthetic(entry)
|
|
136
|
+
? ` [selector: ${entry.selector}]`
|
|
137
|
+
: '';
|
|
123
138
|
const label = typeof entry.label === 'string' && entry.label ? ` — ${entry.label}` : '';
|
|
124
|
-
const
|
|
139
|
+
const statusLabel = agentHarnessStatus(entry.status, entry.presenceStatus);
|
|
140
|
+
const status = statusLabel ? ` (${statusLabel})` : '';
|
|
125
141
|
// An UNRESOLVABLE target used to render as an absence — no name, no
|
|
126
142
|
// `(online)`/`(offline)` marker — on a line that otherwise looks like a
|
|
127
143
|
// normal one. `attach-harness` accepts an id that resolves to nothing
|
|
@@ -137,7 +153,7 @@ function agentExecutionOrderLines(agent) {
|
|
|
137
153
|
!isSynthetic(entry)
|
|
138
154
|
? ' [!] no such harness — nothing is registered under this id'
|
|
139
155
|
: '';
|
|
140
|
-
return ` ${position}. ${target || '(invalid target)'}${status}${label}${unresolvable}`;
|
|
156
|
+
return ` ${position}. ${target || '(invalid target)'}${status}${selector}${label}${unresolvable}`;
|
|
141
157
|
}),
|
|
142
158
|
];
|
|
143
159
|
}
|
|
@@ -150,6 +166,42 @@ function isSynthetic(entry) {
|
|
|
150
166
|
const selector = typeof entry.selector === 'string' ? entry.selector : '';
|
|
151
167
|
return selector.startsWith('__oversky_') || selector.startsWith('sbs_');
|
|
152
168
|
}
|
|
169
|
+
/** Saved policy, not a prediction of availability, authorization or cost. */
|
|
170
|
+
function agentFallbackPolicyLines(agent) {
|
|
171
|
+
const policy = agent.executionPolicy;
|
|
172
|
+
if (!policy || policy.mode !== 'ordered' || !Array.isArray(policy.targets)) {
|
|
173
|
+
return ['Fallback policy: not available in this response'];
|
|
174
|
+
}
|
|
175
|
+
const targets = policy.targets.filter((value) => Boolean(value && typeof value === 'object') && value.enabled !== false);
|
|
176
|
+
const defaults = agent.executionPolicyDefaults;
|
|
177
|
+
const savedConsent = typeof policy.handoverConsent === 'string' &&
|
|
178
|
+
['ask', 'configured', 'permissive'].includes(policy.handoverConsent) ? policy.handoverConsent : null;
|
|
179
|
+
const defaultConsent = typeof defaults?.handoverConsent === 'string' ? defaults.handoverConsent : null;
|
|
180
|
+
const effectiveConsent = savedConsent || defaultConsent;
|
|
181
|
+
const consent = savedConsent || (defaultConsent ? `${defaultConsent} (server default)` : 'not explicitly saved (server default unavailable)');
|
|
182
|
+
const lines = [
|
|
183
|
+
'Fallback policy (saved configuration; actual routing can differ):',
|
|
184
|
+
` Handover consent: ${consent}`,
|
|
185
|
+
];
|
|
186
|
+
if (effectiveConsent === 'configured')
|
|
187
|
+
lines.push(' Configured managed fallbacks may run; Hosted Machine also needs its acknowledgement.');
|
|
188
|
+
else if (effectiveConsent === 'ask')
|
|
189
|
+
lines.push(' Managed fallback requires approval before it can run.');
|
|
190
|
+
else if (effectiveConsent === 'permissive')
|
|
191
|
+
lines.push(' Managed fallbacks may run without a per-target acknowledgement.');
|
|
192
|
+
targets.forEach((target, index) => {
|
|
193
|
+
const selector = target.harnessId || target.machineSessionId || target.kind || '(invalid target)';
|
|
194
|
+
const advance = Array.isArray(target.advanceOn)
|
|
195
|
+
? target.advanceOn.filter((value) => typeof value === 'string' && Boolean(value)).join(', ') || 'none'
|
|
196
|
+
: Array.isArray(defaults?.advanceOn) && defaults.advanceOn.every((value) => typeof value === 'string')
|
|
197
|
+
? `${defaults.advanceOn.join(', ') || 'none'} (server default)`
|
|
198
|
+
: 'not explicitly saved (server default unavailable)';
|
|
199
|
+
lines.push(` ${index + 1}. ${String(selector)} — advance on: ${advance}`);
|
|
200
|
+
if (target.kind === 'hosted-machine')
|
|
201
|
+
lines.push(` Hosted Machine managed usage acknowledgement: ${target.managedUsageConsent === true ? 'yes' : target.managedUsageConsent === false ? 'no' : 'not explicitly saved'}`);
|
|
202
|
+
});
|
|
203
|
+
return lines;
|
|
204
|
+
}
|
|
153
205
|
class AgentsShow extends base_command_1.BaseCommand {
|
|
154
206
|
static description = 'Show details for a single agent';
|
|
155
207
|
static examples = [
|
|
@@ -213,8 +265,12 @@ class AgentsShow extends base_command_1.BaseCommand {
|
|
|
213
265
|
: 'unlimited'}`);
|
|
214
266
|
for (const line of agentExecutionOrderLines(a))
|
|
215
267
|
this.log(line);
|
|
268
|
+
if (flags.expanded)
|
|
269
|
+
for (const line of agentFallbackPolicyLines(a))
|
|
270
|
+
this.log(line);
|
|
216
271
|
if (a.harnessName || a.harnessProvider || a.harnessStatus) {
|
|
217
|
-
|
|
272
|
+
const harnessStatus = agentHarnessStatus(a.harnessStatus, a.harnessPresenceStatus);
|
|
273
|
+
this.log(`Harness: ${a.harnessName ?? (typeof a.harnessProvider === 'string' ? (0, harness_provider_input_1.canonicalHarnessInput)(a.harnessProvider) : a.harnessProvider) ?? '-'}${harnessStatus ? ` (${harnessStatus})` : ''}`);
|
|
218
274
|
// On a harness, the HARNESS decides what runs and which permission modes
|
|
219
275
|
// exist — `Provider` is only the cloud model contract, so an agent read
|
|
220
276
|
// as "anthropic" while running Codex (OSK-12071). And the mode itself was
|
|
@@ -87,7 +87,7 @@ exports.SPEC_FORMAT_HELP = [
|
|
|
87
87
|
'- worker.watchers[].source: task_goal_watcher, initiative_follow_through, slack_watcher, memory_watcher, calendar_watcher, daemon_watcher, email_watcher, github_watcher, initiative_digest_watcher, rss_watcher. Optional intervalMinutes (15-1440) and limit (1-100).',
|
|
88
88
|
'- worker.policy.mode: suggestions_only, ask_first, auto_run_limited, auto_run. workingHours and quietHours: { enabled, start, end, timezone }, with times as "HH:MM".',
|
|
89
89
|
'- orchestrator (installed when systems has orchestrator): mode review or auto, executePlan true or false, workingHours { start, end, timezone }.',
|
|
90
|
-
'- Optional:
|
|
90
|
+
'- Optional: duties (at most 3), initialize { goals, tasks, jobs }, compass, autonomyPosture.',
|
|
91
91
|
].join('\n');
|
|
92
92
|
/**
|
|
93
93
|
* The install plan as lines: every object a spec will install, marked `requested` (the spec names
|
|
@@ -206,54 +206,54 @@ function proactiveInstallReadiness(result, bin) {
|
|
|
206
206
|
return {
|
|
207
207
|
status: 'ready',
|
|
208
208
|
message: firstRuns
|
|
209
|
-
? `All requested setup steps completed. Its first runs start in the background: read \`${bin}
|
|
209
|
+
? `All requested setup steps completed. Its first runs start in the background: read \`${bin} duties operating-review ${safeAgent}\` in a few minutes to see whether they worked.`
|
|
210
210
|
: 'All requested setup steps completed.',
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
|
-
if (result.warnings.some((warning) => warning.step.startsWith('
|
|
214
|
-
// A
|
|
213
|
+
if (result.warnings.some((warning) => warning.step.startsWith('duty.'))) {
|
|
214
|
+
// A Duty the owner deleted is reported, not repaired: it was not recreated on
|
|
215
215
|
// purpose, and a repair command that names its id is a dead end (OSK-22381).
|
|
216
|
-
const deleted = (result.installed.
|
|
217
|
-
const affected = (result.installed.
|
|
216
|
+
const deleted = (result.installed.duties || []).filter((duty) => duty.status === 'deleted');
|
|
217
|
+
const affected = (result.installed.duties || []).filter((duty) => duty.status !== 'deleted' && (duty.status !== 'active' || result.warnings.some((warning) => warning.step === `duty.${duty.title}`)));
|
|
218
218
|
if (deleted.length && !affected.length &&
|
|
219
|
-
result.warnings.every((warning) => warning.code === '
|
|
219
|
+
result.warnings.every((warning) => warning.code === 'duty_deleted_not_recreated')) {
|
|
220
220
|
return {
|
|
221
221
|
status: 'degraded',
|
|
222
|
-
message: `${deleted.length === 1 ? 'A
|
|
222
|
+
message: `${deleted.length === 1 ? 'A Duty' : `${deleted.length} Duties`} from this spec ` +
|
|
223
223
|
`${deleted.length === 1 ? 'was' : 'were'} deleted earlier, so ${deleted.length === 1 ? 'it was' : 'they were'} not created again. ` +
|
|
224
224
|
'Change its title and apply the spec again if you want it back.',
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
const ids = [...new Set(affected.map((
|
|
227
|
+
const ids = [...new Set(affected.map((duty) => duty.id))].filter((id) => typeof id === 'string' && PROACTIVE_INSTALL_READINESS_RE.test(id));
|
|
228
228
|
const safeAgentId = PROACTIVE_INSTALL_READINESS_RE.test(result.agentId) ? result.agentId : null;
|
|
229
229
|
// Always-On was still starting when setup finished, so the only thing that
|
|
230
230
|
// stopped activation was a gate that clears by itself. Say so and name the
|
|
231
|
-
// command that finishes the job; `
|
|
231
|
+
// command that finishes the job; `duties preflight` is a dry run that
|
|
232
232
|
// never mentions resume (OSK-22351).
|
|
233
|
-
const stillStarting = affected.length > 0 && affected.every((
|
|
234
|
-
(
|
|
235
|
-
(
|
|
233
|
+
const stillStarting = affected.length > 0 && affected.every((duty) => duty.status === 'draft' &&
|
|
234
|
+
(duty.activationBlockedBy || []).length > 0 &&
|
|
235
|
+
(duty.activationBlockedBy || []).every((entry) => entry.gate === 'always_on' && entry.reason === 'reconcile_pending'));
|
|
236
236
|
if (stillStarting && ids.length) {
|
|
237
237
|
return {
|
|
238
238
|
status: 'degraded',
|
|
239
|
-
message: `Always-On was still starting when setup finished, so the
|
|
239
|
+
message: `Always-On was still starting when setup finished, so the Dut${ids.length === 1 ? 'y' : 'ies'} ${ids.join(', ')} ` +
|
|
240
240
|
`${ids.length === 1 ? 'was' : 'were'} left as ${ids.length === 1 ? 'a draft' : 'drafts'}. ` +
|
|
241
241
|
'Nothing else is wrong; resume it in a moment.',
|
|
242
242
|
repairCommand: ids.length === 1
|
|
243
|
-
? `${bin}
|
|
244
|
-
: `${bin}
|
|
243
|
+
? `${bin} duties resume ${ids[0]}`
|
|
244
|
+
: `${bin} duties list --agent ${safeAgentId ?? '<agent-id>'} --status draft`,
|
|
245
245
|
};
|
|
246
246
|
}
|
|
247
247
|
// A draft held only because Always-On is off names that gate in its `blockedBy` (no activation
|
|
248
248
|
// diagnostic exists, since nothing refused it). The repair is turning Always-On on, not a dry
|
|
249
|
-
// run; `
|
|
249
|
+
// run; `duties preflight` told the owner so one step later (OSK-22629).
|
|
250
250
|
const heldByAlwaysOff = affected.length > 0 &&
|
|
251
|
-
affected.every((
|
|
252
|
-
(
|
|
251
|
+
affected.every((duty) => duty.status === 'draft' &&
|
|
252
|
+
(duty.blockedBy || []).some((entry) => entry.gate === 'always_on' && entry.reason === 'always_on_disabled'));
|
|
253
253
|
if (heldByAlwaysOff && safeAgentId && ids.length) {
|
|
254
254
|
return {
|
|
255
255
|
status: 'degraded',
|
|
256
|
-
message: `Always-On is off, so the
|
|
256
|
+
message: `Always-On is off, so the Dut${ids.length === 1 ? 'y' : 'ies'} ${ids.join(', ')} ` +
|
|
257
257
|
`${ids.length === 1 ? 'was' : 'were'} left as ${ids.length === 1 ? 'a draft' : 'drafts'}. ` +
|
|
258
258
|
'Turn Always-On on if you want it to run, then resume it.',
|
|
259
259
|
repairCommand: `${bin} agents always-on enable ${safeAgentId}`,
|
|
@@ -262,11 +262,11 @@ function proactiveInstallReadiness(result, bin) {
|
|
|
262
262
|
return {
|
|
263
263
|
status: 'degraded',
|
|
264
264
|
message: ids.length
|
|
265
|
-
? `Review the existing
|
|
266
|
-
: 'A requested
|
|
265
|
+
? `Review the existing Dut${ids.length === 1 ? 'y' : 'ies'} ${ids.join(', ')} and resolve the reported issues. Review any other setup warnings as well.`
|
|
266
|
+
: 'A requested Duty needs attention. Review the setup warnings and inspect the Agent’s existing Duties before deciding what to do next.',
|
|
267
267
|
...(ids.length === 1
|
|
268
|
-
? { repairCommand: `${bin}
|
|
269
|
-
: safeAgentId ? { repairCommand: `${bin}
|
|
268
|
+
? { repairCommand: `${bin} duties preflight ${ids[0]}` }
|
|
269
|
+
: safeAgentId ? { repairCommand: `${bin} duties list --agent ${safeAgentId}` } : {}),
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
272
|
if (result.warnings.some((warning) => ['job_preserved_disabled', 'job_already_fired', 'job_state_unavailable'].includes(warning.code))) {
|
|
@@ -308,12 +308,12 @@ function proactiveInstallReadiness(result, bin) {
|
|
|
308
308
|
message: 'What the spec asked for is installed. Part of the new Agent\u2019s own setup did not finish; ' +
|
|
309
309
|
'the warning below says which part and why. Re-running the spec does not change that.',
|
|
310
310
|
...(inspectAgent
|
|
311
|
-
? { repairCommand: `${bin}
|
|
311
|
+
? { repairCommand: `${bin} duties operating-review ${inspectAgent}` }
|
|
312
312
|
: {}),
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
315
|
// A full trigger budget must not make a new persona-only Agent look broken
|
|
316
|
-
// when its core system
|
|
316
|
+
// when its core system duties, local execution policy, and Always-On
|
|
317
317
|
// state installed successfully. The optional backlog watcher is deferred;
|
|
318
318
|
// surface the constraint in warnings but do not tell the owner to retry an
|
|
319
319
|
// installation that cannot succeed until they reclaim quota.
|
|
@@ -321,7 +321,7 @@ function proactiveInstallReadiness(result, bin) {
|
|
|
321
321
|
if (quotaOnly) {
|
|
322
322
|
return {
|
|
323
323
|
status: 'ready',
|
|
324
|
-
message: 'Core proactive service is ready. The optional task/goal watcher is deferred because your trigger quota is full; first-day context discovery and Meta
|
|
324
|
+
message: 'Core proactive service is ready. The optional task/goal watcher is deferred because your trigger quota is full; first-day context discovery and Meta Duties remain active.',
|
|
325
325
|
};
|
|
326
326
|
}
|
|
327
327
|
const repairCommand = `${bin} agents spawn --agent-id ${result.agentId} --from-spec <spec.json> --approve`;
|
|
@@ -745,10 +745,10 @@ class AgentsSpawn extends base_command_1.BaseCommand {
|
|
|
745
745
|
`hours: ${o.workingHours.start}–${o.workingHours.end}` +
|
|
746
746
|
`${o.workingHours.timezone ? ` ${o.workingHours.timezone}` : ''}`);
|
|
747
747
|
}
|
|
748
|
-
if (Array.isArray(spec.
|
|
748
|
+
if (Array.isArray(spec.duties) && spec.duties.length > 0) {
|
|
749
749
|
this.log('');
|
|
750
|
-
this.log('
|
|
751
|
-
this.log(JSON.stringify(spec.
|
|
750
|
+
this.log('Duties (as provided; subject to validation):');
|
|
751
|
+
this.log(JSON.stringify(spec.duties, null, 2));
|
|
752
752
|
}
|
|
753
753
|
// What approval will create besides the systems above. `--json` always listed
|
|
754
754
|
// these; the text plan showed none of them, so "Create it" created a goal, tasks
|
|
@@ -850,9 +850,9 @@ class AgentsSpawn extends base_command_1.BaseCommand {
|
|
|
850
850
|
const seeded = initializeSummary(result.installed.initialize);
|
|
851
851
|
if (seeded)
|
|
852
852
|
this.log(` seeded: ${seeded}`);
|
|
853
|
-
for (const
|
|
854
|
-
this.log(`
|
|
855
|
-
` (${
|
|
853
|
+
for (const duty of result.installed.duties || []) {
|
|
854
|
+
this.log(` duty: ${duty.title ?? duty.id} — ${duty.status ?? 'unknown'}` +
|
|
855
|
+
` (${duty.id})${duty.existing ? ', already existed' : ''}`);
|
|
856
856
|
}
|
|
857
857
|
for (const watcher of result.installed.defaultWatchers || []) {
|
|
858
858
|
if (!watcher.ok)
|
|
@@ -870,11 +870,11 @@ class AgentsSpawn extends base_command_1.BaseCommand {
|
|
|
870
870
|
` - ${trigger.enabled ? 'enabled' : 'disabled'} (${trigger.id})`);
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
|
-
if (inventory?.
|
|
874
|
-
this.log(' system
|
|
875
|
-
for (const
|
|
876
|
-
this.log(` ${
|
|
877
|
-
` - ${
|
|
873
|
+
if (inventory?.duties?.length) {
|
|
874
|
+
this.log(' system duties on this agent:');
|
|
875
|
+
for (const duty of inventory.duties) {
|
|
876
|
+
this.log(` ${duty.systemRole ?? duty.title ?? '(unnamed)'}` +
|
|
877
|
+
` - ${duty.status ?? 'unknown'} (${duty.id})`);
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
if (result.warnings.length > 0) {
|
|
@@ -19,7 +19,7 @@ const triggers_1 = require("../../../lib/triggers");
|
|
|
19
19
|
* `skrr triggers <verb> <trigger-id>` for those (the ids printed below).
|
|
20
20
|
*/
|
|
21
21
|
class AgentsTriggersList extends base_command_1.BaseCommand {
|
|
22
|
-
static description = 'List the
|
|
22
|
+
static description = 'List directly Agent-scoped triggers; search other scopes that reference the Agent with `skrr triggers list --ref agentId=<agent-id>`';
|
|
23
23
|
static examples = [
|
|
24
24
|
'<%= config.bin %> agents triggers list <agent-id>',
|
|
25
25
|
'<%= config.bin %> agents triggers list <agent-id> --kind schedule --enabled',
|
|
@@ -57,6 +57,7 @@ class AgentsTriggersList extends base_command_1.BaseCommand {
|
|
|
57
57
|
this.printJsonResult((0, list_output_1.listResult)(response, 'triggers'));
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
|
+
this.log('Showing only directly Agent-scoped triggers. To search other scopes that reference this Agent, use `skrr triggers list --ref agentId=<agent-id>`.');
|
|
60
61
|
(0, triggers_1.renderTriggerList)(response.triggers ?? [], (line) => this.log(line));
|
|
61
62
|
}
|
|
62
63
|
}
|
|
@@ -136,7 +136,7 @@ export declare function defaultPermissionModePatch(flags: {
|
|
|
136
136
|
/**
|
|
137
137
|
* What changing the agent's default permission mode actually changed
|
|
138
138
|
* (OSK-12124). It is the AGENT's default, so it governs every conversation,
|
|
139
|
-
* task run and
|
|
139
|
+
* task run and Duty Run of the agent from its next turn — which the bare
|
|
140
140
|
* "Updated agent" line never said, and the only way to learn that a live
|
|
141
141
|
* conversation picked it up was to spend another turn. Names the per-turn
|
|
142
142
|
* alternative for the case that wanted one conversation changed.
|
|
@@ -59,7 +59,7 @@ class AgentsUpdate extends base_command_1.BaseCommand {
|
|
|
59
59
|
}),
|
|
60
60
|
'default-permission-mode': core_1.Flags.string({
|
|
61
61
|
description: "Permission mode for this agent's local-harness sessions (every harness, not only Claude Code). " +
|
|
62
|
-
'It is the default for EVERY conversation, task run and
|
|
62
|
+
'It is the default for EVERY conversation, task run and Duty Run of the agent; for one ' +
|
|
63
63
|
'turn only use `agents chat --permission-mode`. ' +
|
|
64
64
|
'One-shot harnesses (gemini, opencode, cursor, copilot, goose, pi, openclaw) can only run as ' +
|
|
65
65
|
'bypassPermissions; any other mode is refused for them.',
|
|
@@ -442,7 +442,7 @@ function defaultPermissionModePatch(flags) {
|
|
|
442
442
|
/**
|
|
443
443
|
* What changing the agent's default permission mode actually changed
|
|
444
444
|
* (OSK-12124). It is the AGENT's default, so it governs every conversation,
|
|
445
|
-
* task run and
|
|
445
|
+
* task run and Duty Run of the agent from its next turn — which the bare
|
|
446
446
|
* "Updated agent" line never said, and the only way to learn that a live
|
|
447
447
|
* conversation picked it up was to spend another turn. Names the per-turn
|
|
448
448
|
* alternative for the case that wanted one conversation changed.
|
|
@@ -455,7 +455,7 @@ function defaultPermissionModeNote(requested, updated) {
|
|
|
455
455
|
: requested;
|
|
456
456
|
return [
|
|
457
457
|
`Permission: ${stored} is now this agent's default for EVERY conversation, task run and`,
|
|
458
|
-
'
|
|
458
|
+
' Duty Run, starting with each one’s next turn. A turn that names its own',
|
|
459
459
|
' mode still wins. To change one turn only, leave the default alone and pass',
|
|
460
460
|
` \`skrr agents chat <agent> --conversation <id> --permission-mode ${requested}\`.`,
|
|
461
461
|
].join('\n');
|
|
@@ -11,4 +11,4 @@ export default class BalanceUsageBreakdown extends BaseCommand {
|
|
|
11
11
|
};
|
|
12
12
|
run(): Promise<void>;
|
|
13
13
|
}
|
|
14
|
-
export declare function renderSkyCodeUsageBreakdown(breakdown: TSkyCodeUsageBreakdown, log: (line: string) => void): void;
|
|
14
|
+
export declare function renderSkyCodeUsageBreakdown(breakdown: TSkyCodeUsageBreakdown, log: (line: string) => void, agentNames?: ReadonlyMap<string, string>): void;
|
|
@@ -11,13 +11,13 @@ class BalanceUsageBreakdown extends base_command_1.BaseCommand {
|
|
|
11
11
|
'<%= config.bin %> balance usage breakdown',
|
|
12
12
|
'<%= config.bin %> balance usage breakdown --json',
|
|
13
13
|
'<%= config.bin %> balance usage breakdown --workspace <workspace-id>',
|
|
14
|
-
'<%= config.bin %> balance usage breakdown --from 2026-09-01 --to 2026-09-
|
|
14
|
+
'<%= config.bin %> balance usage breakdown --from 2026-09-01 --to 2026-09-01T23:59:59.999Z',
|
|
15
15
|
'<%= config.bin %> balance usage breakdown --product-family sky-code-api',
|
|
16
16
|
];
|
|
17
17
|
static flags = {
|
|
18
18
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
19
|
-
from: core_1.Flags.string({ description: 'Inclusive ISO start time; defaults to 30 days
|
|
20
|
-
to: core_1.Flags.string({ description: 'Inclusive ISO end time; defaults to now' }),
|
|
19
|
+
from: core_1.Flags.string({ description: 'Inclusive ISO start time; YYYY-MM-DD means midnight UTC; defaults to 30 days before end' }),
|
|
20
|
+
to: core_1.Flags.string({ description: 'Inclusive ISO end time; YYYY-MM-DD means midnight UTC, not end of day; defaults to now' }),
|
|
21
21
|
'product-family': core_1.Flags.string({
|
|
22
22
|
description: 'Restrict to one product family (e.g. sky-code-api for PAYG spend)',
|
|
23
23
|
}),
|
|
@@ -41,11 +41,21 @@ class BalanceUsageBreakdown extends base_command_1.BaseCommand {
|
|
|
41
41
|
this.log(JSON.stringify(breakdown, null, 2));
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
let agentNames = new Map();
|
|
45
|
+
let lookupFailed = false;
|
|
46
|
+
try {
|
|
47
|
+
agentNames = await (0, balance_1.getUsageAgentNames)(breakdown.byAgent.flatMap((row) => row.agentId ? [row.agentId] : []), workspaceId);
|
|
48
|
+
}
|
|
49
|
+
catch {
|
|
50
|
+
lookupFailed = true;
|
|
51
|
+
}
|
|
52
|
+
renderSkyCodeUsageBreakdown(breakdown, (line) => this.log(line), agentNames);
|
|
53
|
+
if (lookupFailed)
|
|
54
|
+
this.log(' Agent names unavailable; showing recorded IDs.');
|
|
45
55
|
}
|
|
46
56
|
}
|
|
47
57
|
exports.default = BalanceUsageBreakdown;
|
|
48
|
-
function renderSkyCodeUsageBreakdown(breakdown, log) {
|
|
58
|
+
function renderSkyCodeUsageBreakdown(breakdown, log, agentNames = new Map()) {
|
|
49
59
|
log(`${auth_core_1.FIRST_PARTY_HARNESS.displayName} usage breakdown · ${breakdown.ownerType} ${breakdown.ownerId}`);
|
|
50
60
|
log(` Window ${breakdown.from} to ${breakdown.to}`);
|
|
51
61
|
log(` Total ${(0, balance_1.formatCreditsWithUsd)(breakdown.total.usageMicros)} across ${breakdown.total.events} settled authorization${breakdown.total.events === 1 ? '' : 's'}`);
|
|
@@ -62,7 +72,13 @@ function renderSkyCodeUsageBreakdown(breakdown, log) {
|
|
|
62
72
|
...row,
|
|
63
73
|
label: [row.provider, row.model].filter(Boolean).join('/') || 'unknown',
|
|
64
74
|
})));
|
|
75
|
+
section('By configured transport (authorizations may overlap; not a provider invoice)', (breakdown.byConfiguredTransport ?? []).map((row) => ({
|
|
76
|
+
...row, label: row.transportProvider ?? 'unknown',
|
|
77
|
+
})));
|
|
65
78
|
section('By surface', breakdown.bySurface.map((row) => ({ ...row, label: row.surface ?? 'unknown' })));
|
|
66
|
-
section('By
|
|
79
|
+
section('By recorded source (application attribution, not a provider invoice)', (breakdown.bySource ?? []).map((row) => ({ ...row, label: row.sourceType ?? 'unknown' })));
|
|
80
|
+
section('By agent', breakdown.byAgent.map((row) => ({ ...row, label: row.agentId
|
|
81
|
+
? agentNames.has(row.agentId) ? `${agentNames.get(row.agentId)} (${row.agentId})` : row.agentId
|
|
82
|
+
: 'unattributed' })));
|
|
67
83
|
section('By member', breakdown.byMember.map((row) => ({ ...row, label: row.memberUserId ?? 'unattributed' })));
|
|
68
84
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TSkyCodeUsageEvents } from '@skrr-ai/data-provider';
|
|
1
|
+
import type { TSkyCodeUsageEvents, TSkyCodeUsageSettlements } from '@skrr-ai/data-provider';
|
|
2
2
|
import { BaseCommand } from '../../../base-command';
|
|
3
3
|
export default class BalanceUsageEvents extends BaseCommand {
|
|
4
4
|
static description: string;
|
|
@@ -9,7 +9,8 @@ export default class BalanceUsageEvents extends BaseCommand {
|
|
|
9
9
|
to: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
10
|
cursor: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
11
|
limit: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'legacy-charges': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
13
|
};
|
|
13
14
|
run(): Promise<void>;
|
|
14
15
|
}
|
|
15
|
-
export declare function renderSkyCodeUsageEvents(events: TSkyCodeUsageEvents, log: (line: string) => void): void;
|
|
16
|
+
export declare function renderSkyCodeUsageEvents(events: TSkyCodeUsageEvents | TSkyCodeUsageSettlements, log: (line: string) => void): void;
|