@skrr-ai/cli 0.1.149 → 0.1.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -20
- package/dist/base-command.d.ts +6 -6
- package/dist/base-command.js +26 -26
- package/dist/commands/agenda/trigger/list.d.ts +1 -1
- package/dist/commands/agenda/trigger/list.js +6 -6
- package/dist/commands/agents/always-on/disable.js +10 -3
- package/dist/commands/agents/always-on/enable.js +1 -1
- package/dist/commands/agents/always-on/reconcile.js +1 -1
- package/dist/commands/agents/always-on/status.js +31 -8
- package/dist/commands/agents/create.d.ts +2 -2
- package/dist/commands/agents/create.js +12 -12
- package/dist/commands/agents/delete.d.ts +17 -1
- package/dist/commands/agents/delete.js +37 -1
- package/dist/commands/agents/egress.js +1 -1
- package/dist/commands/agents/list.d.ts +1 -1
- package/dist/commands/agents/list.js +1 -1
- package/dist/commands/agents/roles/capture.d.ts +1 -1
- package/dist/commands/agents/roles/capture.js +2 -2
- package/dist/commands/agents/roles/install.js +1 -1
- package/dist/commands/agents/spawn.js +47 -38
- package/dist/commands/agents/update.d.ts +1 -1
- package/dist/commands/agents/update.js +3 -3
- package/dist/commands/code/jobs/show.js +1 -1
- package/dist/commands/compass/archive.d.ts +1 -1
- package/dist/commands/compass/archive.js +1 -1
- package/dist/commands/compass/create.js +1 -1
- package/dist/commands/compass/{commitments.d.ts → duties.d.ts} +5 -5
- package/dist/commands/compass/{commitments.js → duties.js} +14 -14
- package/dist/commands/compass/trace.d.ts +1 -1
- package/dist/commands/compass/trace.js +2 -2
- package/dist/commands/convos/messages.js +2 -1
- package/dist/commands/doctor.d.ts +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/{commitments → duties}/accounting.d.ts +7 -7
- package/dist/commands/{commitments → duties}/accounting.js +13 -13
- package/dist/commands/{commitments → duties}/action-history.d.ts +3 -3
- package/dist/commands/{commitments → duties}/action-history.js +12 -12
- package/dist/commands/{commitments → duties}/action-proposal.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposal.js +6 -6
- package/dist/commands/{commitments → duties}/action-proposals/decide.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposals/decide.js +8 -8
- package/dist/commands/{commitments → duties}/action-proposals/execute.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposals/execute.js +7 -7
- package/dist/commands/{commitments → duties}/action-proposals/propose.d.ts +4 -4
- package/dist/commands/{commitments → duties}/action-proposals/propose.js +15 -15
- package/dist/commands/{commitments → duties}/action-proposals.d.ts +1 -1
- package/dist/commands/{commitments → duties}/action-proposals.js +6 -6
- package/dist/commands/{commitments → duties}/analytics/detail.d.ts +5 -5
- package/dist/commands/{commitments → duties}/analytics/detail.js +13 -13
- package/dist/commands/{commitments → duties}/analytics/index.d.ts +5 -5
- package/dist/commands/{commitments → duties}/analytics/index.js +30 -30
- package/dist/commands/{commitments → duties}/analytics/replay.d.ts +3 -3
- package/dist/commands/{commitments → duties}/analytics/replay.js +11 -11
- package/dist/commands/{commitments → duties}/attach.d.ts +3 -3
- package/dist/commands/{commitments → duties}/attach.js +21 -21
- package/dist/commands/{commitments → duties}/bundle.d.ts +1 -1
- package/dist/commands/{commitments → duties}/bundle.js +7 -7
- package/dist/commands/{commitments → duties}/cadence-decisions.d.ts +3 -3
- package/dist/commands/duties/cadence-decisions.js +41 -0
- package/dist/commands/{commitments → duties}/cadence-requests/decide.d.ts +4 -4
- package/dist/commands/{commitments → duties}/cadence-requests/decide.js +11 -11
- package/dist/commands/{commitments → duties}/case.d.ts +2 -2
- package/dist/commands/{commitments → duties}/case.js +8 -8
- package/dist/commands/{commitments → duties}/cases.d.ts +2 -2
- package/dist/commands/{commitments → duties}/cases.js +9 -9
- package/dist/commands/{commitments → duties}/check-now.d.ts +6 -6
- package/dist/commands/{commitments → duties}/check-now.js +29 -29
- package/dist/commands/{commitments → duties}/checks.d.ts +3 -3
- package/dist/commands/{commitments → duties}/checks.js +13 -13
- package/dist/commands/{commitments → duties}/complete.d.ts +2 -2
- package/dist/commands/duties/complete.js +40 -0
- package/dist/commands/{commitments → duties}/control/apply.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/apply.js +7 -7
- package/dist/commands/{commitments → duties}/control/preview.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/preview.js +8 -8
- package/dist/commands/{commitments → duties}/control/show.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/show.js +6 -6
- package/dist/commands/{commitments → duties}/cost.d.ts +6 -6
- package/dist/commands/{commitments → duties}/cost.js +14 -14
- package/dist/commands/{commitments → duties}/create.d.ts +8 -8
- package/dist/commands/{commitments → duties}/create.js +92 -92
- package/dist/commands/{commitments → duties}/cycles.d.ts +2 -2
- package/dist/commands/{commitments → duties}/cycles.js +11 -11
- package/dist/commands/{commitments → duties}/decide-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/decide-remediation.js +6 -6
- package/dist/commands/{commitments → duties}/delete.d.ts +4 -4
- package/dist/commands/{commitments → duties}/delete.js +24 -24
- package/dist/commands/{commitments → duties}/delivery.d.ts +1 -1
- package/dist/commands/{commitments → duties}/delivery.js +15 -15
- package/dist/commands/{commitments → duties}/detach.d.ts +3 -3
- package/dist/commands/{commitments → duties}/detach.js +20 -20
- package/dist/commands/{commitments → duties}/doctor.d.ts +4 -4
- package/dist/commands/{commitments → duties}/doctor.js +21 -21
- package/dist/commands/{commitments → duties}/effective-policy.d.ts +3 -3
- package/dist/commands/{commitments → duties}/effective-policy.js +24 -24
- package/dist/commands/{commitments → duties}/endpoints/connect.d.ts +2 -2
- package/dist/commands/{commitments → duties}/endpoints/connect.js +10 -10
- package/dist/commands/{commitments → duties}/endpoints/create.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/create.js +16 -16
- package/dist/commands/{commitments → duties}/endpoints/delete.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/delete.js +11 -11
- package/dist/commands/{commitments → duties}/endpoints/health.d.ts +2 -2
- package/dist/commands/{commitments → duties}/endpoints/health.js +10 -10
- package/dist/commands/{commitments → duties}/endpoints/list.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/list.js +11 -11
- package/dist/commands/{commitments → duties}/endpoints/revoke.d.ts +4 -4
- package/dist/commands/{commitments → duties}/endpoints/revoke.js +13 -13
- package/dist/commands/{commitments → duties}/evaluations.d.ts +2 -2
- package/dist/commands/{commitments → duties}/evaluations.js +8 -8
- package/dist/commands/{commitments → duties}/execute-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/execute-remediation.js +7 -7
- package/dist/commands/{commitments → duties}/explain.d.ts +2 -2
- package/dist/commands/{commitments → duties}/explain.js +13 -13
- package/dist/commands/{commitments → duties}/export.d.ts +3 -3
- package/dist/commands/{commitments → duties}/export.js +15 -15
- package/dist/commands/{commitments → duties}/feedback.d.ts +4 -4
- package/dist/commands/{commitments → duties}/feedback.js +13 -13
- package/dist/commands/{commitments → duties}/fork.d.ts +3 -3
- package/dist/commands/{commitments → duties}/fork.js +11 -11
- package/dist/commands/{commitments → duties}/goals/link.d.ts +6 -6
- package/dist/commands/duties/goals/link.js +41 -0
- package/dist/commands/{commitments → duties}/goals/unlink.d.ts +4 -4
- package/dist/commands/duties/goals/unlink.js +37 -0
- package/dist/commands/{commitments → duties}/handover.d.ts +5 -5
- package/dist/commands/{commitments → duties}/handover.js +21 -21
- package/dist/commands/{commitments → duties}/hypotheses.d.ts +3 -3
- package/dist/commands/{commitments → duties}/hypotheses.js +13 -13
- package/dist/commands/{commitments → duties}/import.d.ts +2 -2
- package/dist/commands/{commitments → duties}/import.js +10 -10
- package/dist/commands/{commitments → duties}/ledger.d.ts +4 -4
- package/dist/commands/{commitments → duties}/ledger.js +12 -12
- package/dist/commands/{commitments → duties}/lineage.d.ts +5 -5
- package/dist/commands/duties/lineage.js +43 -0
- package/dist/commands/{commitments → duties}/links/create.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/create.js +9 -9
- package/dist/commands/{commitments → duties}/links/detach.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/detach.js +7 -7
- package/dist/commands/{commitments → duties}/links/list.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/list.js +9 -9
- package/dist/commands/{commitments → duties}/links/update.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/update.js +7 -7
- package/dist/commands/{commitments → duties}/list.d.ts +3 -3
- package/dist/commands/{commitments → duties}/list.js +17 -17
- package/dist/commands/{commitments → duties}/liveness.d.ts +6 -6
- package/dist/commands/{commitments → duties}/liveness.js +13 -13
- package/dist/commands/{commitments → duties}/metrics.d.ts +3 -3
- package/dist/commands/{commitments → duties}/metrics.js +12 -12
- package/dist/commands/{commitments → duties}/next-tick.d.ts +7 -7
- package/dist/commands/{commitments → duties}/next-tick.js +14 -14
- package/dist/commands/{commitments → duties}/observation/probe.d.ts +1 -1
- package/dist/commands/{commitments → duties}/observation/probe.js +12 -12
- package/dist/commands/{commitments → duties}/observation/summary.d.ts +1 -1
- package/dist/commands/{commitments → duties}/observation/summary.js +5 -5
- package/dist/commands/{commitments → duties}/observations.d.ts +4 -4
- package/dist/commands/{commitments → duties}/observations.js +18 -18
- package/dist/commands/{commitments → duties}/open.d.ts +1 -1
- package/dist/commands/{commitments → duties}/open.js +13 -13
- package/dist/commands/{commitments → duties}/operating-review.d.ts +5 -5
- package/dist/commands/{commitments → duties}/operating-review.js +21 -21
- package/dist/commands/{commitments → duties}/pack/activate.d.ts +1 -1
- package/dist/commands/{commitments → duties}/pack/activate.js +6 -6
- package/dist/commands/{commitments → duties}/pack/bind.d.ts +4 -4
- package/dist/commands/{commitments → duties}/pack/bind.js +19 -19
- package/dist/commands/{commitments → duties}/pack/list.d.ts +2 -2
- package/dist/commands/{commitments → duties}/pack/list.js +10 -10
- package/dist/commands/{commitments → duties}/pack/plan.d.ts +3 -3
- package/dist/commands/{commitments → duties}/pack/plan.js +12 -12
- package/dist/commands/{commitments → duties}/pack/preflight.d.ts +3 -3
- package/dist/commands/{commitments → duties}/pack/preflight.js +10 -10
- package/dist/commands/{commitments → duties}/patch.d.ts +1 -1
- package/dist/commands/{commitments → duties}/patch.js +7 -7
- package/dist/commands/{commitments → duties}/pause.d.ts +2 -2
- package/dist/commands/{commitments → duties}/pause.js +16 -16
- package/dist/commands/{commitments → duties}/plan.d.ts +4 -4
- package/dist/commands/{commitments → duties}/plan.js +20 -20
- package/dist/commands/{commitments → duties}/preflight.d.ts +8 -8
- package/dist/commands/{commitments → duties}/preflight.js +32 -32
- package/dist/commands/{commitments → duties}/propose-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/propose-remediation.js +6 -6
- package/dist/commands/{commitments → duties}/readiness/show.d.ts +1 -1
- package/dist/commands/{commitments → duties}/readiness/show.js +6 -6
- package/dist/commands/{commitments → duties}/readiness/verify.d.ts +1 -1
- package/dist/commands/{commitments → duties}/readiness/verify.js +7 -7
- package/dist/commands/{commitments → duties}/receipt-metrics.d.ts +4 -4
- package/dist/commands/{commitments → duties}/receipt-metrics.js +16 -16
- package/dist/commands/{commitments → duties}/receipt.d.ts +1 -1
- package/dist/commands/{commitments → duties}/receipt.js +10 -10
- package/dist/commands/{commitments → duties}/reflect.d.ts +4 -4
- package/dist/commands/{commitments → duties}/reflect.js +12 -12
- package/dist/commands/{commitments → duties}/reflection-decision.d.ts +2 -2
- package/dist/commands/{commitments → duties}/reflection-decision.js +7 -7
- package/dist/commands/{commitments → duties}/reflection.d.ts +2 -2
- package/dist/commands/{commitments → duties}/reflection.js +9 -9
- package/dist/commands/{commitments → duties}/remediate.d.ts +5 -5
- package/dist/commands/{commitments → duties}/remediate.js +14 -14
- package/dist/commands/{commitments → duties}/remediation-proposal.d.ts +2 -2
- package/dist/commands/{commitments → duties}/remediation-proposal.js +7 -7
- package/dist/commands/{commitments → duties}/remediation-proposals.d.ts +2 -2
- package/dist/commands/{commitments → duties}/remediation-proposals.js +8 -8
- package/dist/commands/{commitments → duties}/reports.d.ts +5 -5
- package/dist/commands/{commitments → duties}/reports.js +35 -35
- package/dist/commands/{commitments → duties}/restore.d.ts +2 -2
- package/dist/commands/duties/restore.js +46 -0
- package/dist/commands/{commitments → duties}/resume.d.ts +2 -2
- package/dist/commands/duties/resume.js +37 -0
- package/dist/commands/{commitments → duties}/roster.d.ts +2 -2
- package/dist/commands/duties/roster.js +39 -0
- package/dist/commands/{commitments → duties}/show.d.ts +7 -7
- package/dist/commands/{commitments → duties}/show.js +40 -40
- package/dist/commands/{commitments → duties}/status.d.ts +3 -3
- package/dist/commands/duties/status.js +41 -0
- package/dist/commands/{commitments → duties}/subject.d.ts +4 -4
- package/dist/commands/{commitments → duties}/subject.js +29 -29
- package/dist/commands/{commitments → duties}/trace.d.ts +3 -3
- package/dist/commands/{commitments → duties}/trace.js +12 -12
- package/dist/commands/{commitments → duties}/trigger-status.d.ts +6 -6
- package/dist/commands/{commitments → duties}/trigger-status.js +19 -19
- package/dist/commands/{commitments → duties}/update.d.ts +5 -5
- package/dist/commands/{commitments → duties}/update.js +64 -64
- package/dist/commands/{commitments → duties}/wake-capabilities.d.ts +6 -6
- package/dist/commands/{commitments → duties}/wake-capabilities.js +22 -22
- package/dist/commands/{commitments → duties}/work-plan.d.ts +1 -1
- package/dist/commands/{commitments → duties}/work-plan.js +6 -6
- package/dist/commands/goals/key-results/show.js +2 -1
- package/dist/commands/goals/plan-now.js +2 -2
- package/dist/commands/goals/planner-compare.d.ts +1 -1
- package/dist/commands/goals/planner-compare.js +2 -2
- package/dist/commands/grants/create.d.ts +1 -1
- package/dist/commands/grants/create.js +9 -9
- package/dist/commands/grants/list.d.ts +1 -1
- package/dist/commands/grants/list.js +2 -2
- package/dist/commands/initiatives/list.d.ts +1 -1
- package/dist/commands/initiatives/list.js +1 -1
- package/dist/commands/measures/create.d.ts +2 -2
- package/dist/commands/measures/create.js +4 -4
- package/dist/commands/measures/list.d.ts +1 -1
- package/dist/commands/measures/list.js +2 -2
- package/dist/commands/northstars/create.js +4 -4
- package/dist/commands/northstars/delete.d.ts +3 -3
- package/dist/commands/northstars/delete.js +8 -8
- package/dist/commands/northstars/governance/configure.js +15 -15
- package/dist/commands/northstars/intents/decide.d.ts +1 -1
- package/dist/commands/northstars/intents/decide.js +1 -1
- package/dist/commands/northstars/link.d.ts +4 -4
- package/dist/commands/northstars/link.js +8 -8
- package/dist/commands/northstars/list.d.ts +2 -2
- package/dist/commands/northstars/list.js +3 -3
- package/dist/commands/northstars/recommendations/apply.d.ts +1 -1
- package/dist/commands/northstars/recommendations/apply.js +2 -2
- package/dist/commands/northstars/review-now.js +2 -2
- package/dist/commands/northstars/show.d.ts +3 -3
- package/dist/commands/northstars/show.js +5 -5
- package/dist/commands/northstars/unlink.d.ts +3 -3
- package/dist/commands/northstars/unlink.js +6 -6
- package/dist/commands/northstars/update.js +3 -3
- package/dist/commands/proposals/list.d.ts +3 -3
- package/dist/commands/proposals/list.js +7 -7
- package/dist/commands/search/agents.d.ts +4 -1
- package/dist/commands/search/agents.js +6 -3
- package/dist/commands/search/all.d.ts +4 -1
- package/dist/commands/search/all.js +11 -7
- package/dist/commands/search/teams.d.ts +4 -1
- package/dist/commands/search/teams.js +6 -3
- package/dist/commands/spaces/auto-executor/compare.js +1 -1
- package/dist/commands/spaces/auto-executor/runs.js +1 -1
- package/dist/commands/spaces/heartbeats/list.js +2 -2
- package/dist/commands/spaces/index.js +2 -2
- package/dist/commands/spaces/list.d.ts +1 -1
- package/dist/commands/spaces/list.js +1 -1
- package/dist/commands/spaces/loops/migrate.d.ts +1 -1
- package/dist/commands/spaces/loops/migrate.js +1 -1
- package/dist/commands/spaces/loops/release.d.ts +1 -1
- package/dist/commands/spaces/loops/release.js +10 -10
- package/dist/commands/spaces/notebook.d.ts +2 -2
- package/dist/commands/spaces/notebook.js +2 -2
- package/dist/commands/spaces/proposals/discard.js +1 -1
- package/dist/commands/spaces/proposals/keep.js +1 -1
- package/dist/commands/spaces/triggers/show.js +3 -3
- package/dist/commands/spaces/write-policy/set.js +1 -1
- package/dist/commands/store/uninstall.js +2 -2
- package/dist/commands/subscriptions/health.d.ts +2 -2
- package/dist/commands/subscriptions/health.js +2 -2
- package/dist/commands/subscriptions/status.js +2 -2
- package/dist/commands/subscriptions/subscribe.js +4 -4
- package/dist/commands/tasks/create.d.ts +20 -1
- package/dist/commands/tasks/create.js +44 -3
- package/dist/commands/tasks/list.d.ts +7 -1
- package/dist/commands/tasks/list.js +2 -1
- package/dist/generated/agent-guides.json +496 -496
- package/dist/generated/managed-instruction-guides.json +2 -2
- package/dist/hooks/command-not-found.d.ts +1 -1
- package/dist/hooks/command-not-found.js +1 -1
- package/dist/lib/agent-chat-start.js +2 -1
- package/dist/lib/agent-trigger-listing.d.ts +4 -4
- package/dist/lib/agent-trigger-listing.js +7 -7
- package/dist/lib/agentic-stream.d.ts +16 -0
- package/dist/lib/agentic-stream.js +78 -21
- package/dist/lib/always-on-command-result.d.ts +8 -1
- package/dist/lib/always-on-command-result.js +11 -2
- package/dist/lib/auth-failure.js +1 -1
- package/dist/lib/capability-matrix.d.ts +3 -3
- package/dist/lib/capability-matrix.js +9 -9
- package/dist/lib/command-hygiene.js +6 -6
- package/dist/lib/command-miss.js +1 -1
- package/dist/lib/compass-refusals.d.ts +1 -1
- package/dist/lib/compass-refusals.js +1 -1
- package/dist/lib/compasses.d.ts +5 -5
- package/dist/lib/compasses.js +15 -15
- package/dist/lib/dedicated-machines.js +2 -1
- package/dist/lib/dedicated-power.js +2 -0
- package/dist/lib/{commitments.d.ts → duties.d.ts} +198 -198
- package/dist/lib/{commitments.js → duties.js} +282 -282
- package/dist/lib/{commitment-analytics.d.ts → duty-analytics.d.ts} +18 -18
- package/dist/lib/{commitment-analytics.js → duty-analytics.js} +12 -12
- package/dist/lib/{commitment-attention-copy.d.ts → duty-attention-copy.d.ts} +6 -6
- package/dist/lib/{commitment-attention-copy.js → duty-attention-copy.js} +8 -8
- package/dist/lib/{commitment-endpoints.d.ts → duty-endpoints.d.ts} +6 -6
- package/dist/lib/{commitment-endpoints.js → duty-endpoints.js} +10 -10
- package/dist/lib/{commitment-event-wakes.d.ts → duty-event-wakes.d.ts} +2 -2
- package/dist/lib/{commitment-event-wakes.js → duty-event-wakes.js} +2 -2
- package/dist/lib/{commitment-ledgers.js → duty-ledgers.js} +3 -3
- package/dist/lib/{commitment-loop-status.d.ts → duty-loop-status.d.ts} +11 -11
- package/dist/lib/{commitment-loop-status.js → duty-loop-status.js} +22 -22
- package/dist/lib/{commitment-product.d.ts → duty-product.d.ts} +6 -6
- package/dist/lib/{commitment-product.js → duty-product.js} +5 -5
- package/dist/lib/{commitment-terms.d.ts → duty-terms.d.ts} +9 -9
- package/dist/lib/{commitment-terms.js → duty-terms.js} +21 -21
- package/dist/lib/entity-open.d.ts +1 -1
- package/dist/lib/entity-open.js +1 -1
- package/dist/lib/format.d.ts +1 -1
- package/dist/lib/grants.d.ts +3 -3
- package/dist/lib/grants.js +2 -2
- package/dist/lib/initiatives.js +4 -4
- package/dist/lib/node-adapter.js +1 -1
- package/dist/lib/northstars.d.ts +13 -13
- package/dist/lib/northstars.js +56 -56
- package/dist/lib/open-target.js +1 -1
- package/dist/lib/preflight-copy.js +5 -5
- package/dist/lib/proactiveApi.d.ts +15 -4
- package/dist/lib/proposals.js +16 -16
- package/dist/lib/responsibility-controls.d.ts +1 -1
- package/dist/lib/responsibility-controls.js +6 -6
- package/dist/lib/roles.d.ts +1 -1
- package/dist/lib/schedule.d.ts +5 -5
- package/dist/lib/schedule.js +1 -1
- package/dist/lib/session-task-write.d.ts +1 -1
- package/dist/lib/session-task-write.js +2 -2
- package/dist/lib/space-loop-migration.js +6 -6
- package/dist/lib/space-notebook.js +2 -2
- package/dist/lib/space-write-policy.js +2 -2
- package/dist/lib/stewardship-output.js +2 -2
- package/dist/lib/task-spec-verification.js +1 -1
- package/dist/lib/tasks.d.ts +1 -1
- package/dist/lib/tasks.js +8 -8
- package/dist/lib/triggers.d.ts +3 -3
- package/dist/lib/triggers.js +11 -10
- package/dist/lib/usage-discovery.js +2 -4
- package/dist/lib/web-url.d.ts +6 -6
- package/dist/lib/web-url.js +13 -13
- package/dist/lib/workspaces.d.ts +4 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.js → dutyExecutionContract.js} +22 -22
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceipt.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceiptV2.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.d.ts +9 -9
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.js +5 -5
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.d.ts +2 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +4 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.js → dutyExecutionContract.js} +16 -16
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceipt.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceiptV2.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/profilePorts.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.d.ts +9 -9
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.js +8 -8
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.d.ts +2 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.js +6 -6
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/package.json +6 -6
- package/dist/node_modules/@skrr-ai/data-provider/index.js +8150 -8140
- package/docs/v1/lookback-plans.md +1 -1
- package/oclif.manifest.json +5365 -5350
- package/package.json +16 -16
- package/dist/commands/commitments/cadence-decisions.js +0 -41
- package/dist/commands/commitments/complete.js +0 -40
- package/dist/commands/commitments/goals/link.js +0 -41
- package/dist/commands/commitments/goals/unlink.js +0 -37
- package/dist/commands/commitments/lineage.js +0 -43
- package/dist/commands/commitments/restore.js +0 -46
- package/dist/commands/commitments/resume.js +0 -37
- package/dist/commands/commitments/roster.js +0 -39
- package/dist/commands/commitments/status.js +0 -41
- /package/dist/lib/{commitment-ledgers.d.ts → duty-ledgers.d.ts} +0 -0
|
@@ -2,62 +2,62 @@ import { withQuery } from './triggers';
|
|
|
2
2
|
type Query = Parameters<typeof withQuery>[1];
|
|
3
3
|
/**
|
|
4
4
|
* The fleet-wide reports, keyed by the name a user types. Keeping them in one
|
|
5
|
-
* table means `skrr
|
|
5
|
+
* table means `skrr duties analytics --help` lists exactly what exists —
|
|
6
6
|
* a per-report command file would drift from the route the moment one is added.
|
|
7
7
|
*/
|
|
8
8
|
export declare const ANALYTICS_REPORTS: {
|
|
9
9
|
readonly 'prd-readout': {
|
|
10
|
-
readonly path: "/api/
|
|
11
|
-
readonly summary: "Product readout: activation, value and attention across all
|
|
10
|
+
readonly path: "/api/duty-analytics/prd-readout";
|
|
11
|
+
readonly summary: "Product readout: activation, value and attention across all duties";
|
|
12
12
|
};
|
|
13
13
|
readonly 'operations-queue': {
|
|
14
|
-
readonly path: "/api/
|
|
14
|
+
readonly path: "/api/duty-analytics/operations/queue";
|
|
15
15
|
readonly summary: "What needs an operator right now — stuck, blocked and waiting work";
|
|
16
16
|
};
|
|
17
17
|
readonly 'governance-exceptions': {
|
|
18
|
-
readonly path: "/api/
|
|
18
|
+
readonly path: "/api/duty-analytics/governance/exceptions";
|
|
19
19
|
readonly summary: "Where a governance rule refused, deferred or escalated an action";
|
|
20
20
|
};
|
|
21
21
|
readonly distribution: {
|
|
22
|
-
readonly path: "/api/
|
|
23
|
-
readonly summary: "How
|
|
22
|
+
readonly path: "/api/duty-analytics/distribution";
|
|
23
|
+
readonly summary: "How duties are spread across agents, tiers and cadences";
|
|
24
24
|
};
|
|
25
25
|
readonly 'distribution-tripwire': {
|
|
26
|
-
readonly path: "/api/
|
|
26
|
+
readonly path: "/api/duty-analytics/distribution/tripwire";
|
|
27
27
|
readonly summary: "Persistent weekly confirmation of portfolio overload risk";
|
|
28
28
|
};
|
|
29
29
|
readonly 'attention-budget': {
|
|
30
|
-
readonly path: "/api/
|
|
30
|
+
readonly path: "/api/duty-analytics/attention-budget";
|
|
31
31
|
readonly summary: "How much user attention the fleet is actually spending";
|
|
32
32
|
};
|
|
33
33
|
readonly 'decision-inbox': {
|
|
34
|
-
readonly path: "/api/
|
|
34
|
+
readonly path: "/api/duty-analytics/decision-inbox";
|
|
35
35
|
readonly summary: "One ranked owner inbox across approvals, blockers, attention and held surfaces";
|
|
36
36
|
};
|
|
37
37
|
readonly 'action-adapters-audit': {
|
|
38
|
-
readonly path: "/api/
|
|
38
|
+
readonly path: "/api/duty-analytics/action-adapters/audit";
|
|
39
39
|
readonly summary: "Which action adapters are installed and what they are permitted to do";
|
|
40
40
|
};
|
|
41
41
|
readonly 'recovery-metrics': {
|
|
42
|
-
readonly path: "/api/
|
|
42
|
+
readonly path: "/api/duty-analytics/recovery-metrics";
|
|
43
43
|
readonly summary: "Recovery sweep counters — how much work is being re-driven";
|
|
44
44
|
};
|
|
45
45
|
readonly recovery: {
|
|
46
|
-
readonly path: "/api/
|
|
46
|
+
readonly path: "/api/duty-analytics/recovery";
|
|
47
47
|
readonly summary: "Records the recovery sweep is currently repairing";
|
|
48
48
|
};
|
|
49
49
|
readonly 'dormant-records': {
|
|
50
|
-
readonly path: "/api/
|
|
50
|
+
readonly path: "/api/duty-analytics/dormant-records";
|
|
51
51
|
readonly summary: "Ledger records that are active but have stopped moving — the \"why did nothing fire\" read";
|
|
52
52
|
};
|
|
53
53
|
readonly 'held-surfaces': {
|
|
54
|
-
readonly path: "/api/
|
|
54
|
+
readonly path: "/api/duty-analytics/held-surfaces";
|
|
55
55
|
readonly summary: "Surfaces the attention policy is holding — deferred (a clock) or filtered (a setting)";
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
export type AnalyticsReport = keyof typeof ANALYTICS_REPORTS;
|
|
59
59
|
export declare const ANALYTICS_REPORT_NAMES: AnalyticsReport[];
|
|
60
|
-
export declare const
|
|
60
|
+
export declare const dutyAnalyticsApi: {
|
|
61
61
|
prdReadout: (query?: Query) => Promise<Record<string, unknown>>;
|
|
62
62
|
operationsQueue: (query?: Query) => Promise<Record<string, unknown>>;
|
|
63
63
|
governanceExceptions: (query?: Query) => Promise<Record<string, unknown>>;
|
|
@@ -75,8 +75,8 @@ export declare const commitmentAnalyticsApi: {
|
|
|
75
75
|
* This is the "show me exactly what happened on that fire" read.
|
|
76
76
|
*/
|
|
77
77
|
replay: (query: Query) => Promise<Record<string, unknown>>;
|
|
78
|
-
/** Per-
|
|
79
|
-
|
|
78
|
+
/** Per-duty analytics — distinct from `skrr duties show`. */
|
|
79
|
+
forDuty: (id: string, query?: Query) => Promise<Record<string, unknown>>;
|
|
80
80
|
/** The analytics projection of the ledger (joined), not the raw ledger read. */
|
|
81
81
|
ledger: (id: string, query?: Query) => Promise<Record<string, unknown>>;
|
|
82
82
|
/** Force a reflection pass — the slow loop that retunes cadence. */
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.dutyAnalyticsApi = exports.ANALYTICS_REPORT_NAMES = exports.ANALYTICS_REPORTS = void 0;
|
|
4
4
|
exports.renderReportCatalogue = renderReportCatalogue;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* duty-analytics.ts — client for `/api/duty-analytics`.
|
|
7
7
|
*
|
|
8
|
-
* These are the OPERATOR reads for the
|
|
9
|
-
* this
|
|
10
|
-
*
|
|
8
|
+
* These are the OPERATOR reads for the duty control plane: not "what does
|
|
9
|
+
* this duty say" (that is `skrr duties show`) but "is the fleet of
|
|
10
|
+
* duties healthy, where is it stuck, and what did the governance rules
|
|
11
11
|
* actually decide".
|
|
12
12
|
*
|
|
13
13
|
* They matter headless because that is where the answers are needed — a 3am
|
|
@@ -17,17 +17,17 @@ exports.renderReportCatalogue = renderReportCatalogue;
|
|
|
17
17
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
18
18
|
const format_1 = require("./format");
|
|
19
19
|
const triggers_1 = require("./triggers");
|
|
20
|
-
const MOUNT = '/api/
|
|
20
|
+
const MOUNT = '/api/duty-analytics';
|
|
21
21
|
const base = (id) => `${MOUNT}/${encodeURIComponent(id)}`;
|
|
22
22
|
/**
|
|
23
23
|
* The fleet-wide reports, keyed by the name a user types. Keeping them in one
|
|
24
|
-
* table means `skrr
|
|
24
|
+
* table means `skrr duties analytics --help` lists exactly what exists —
|
|
25
25
|
* a per-report command file would drift from the route the moment one is added.
|
|
26
26
|
*/
|
|
27
27
|
exports.ANALYTICS_REPORTS = {
|
|
28
28
|
'prd-readout': {
|
|
29
29
|
path: `${MOUNT}/prd-readout`,
|
|
30
|
-
summary: 'Product readout: activation, value and attention across all
|
|
30
|
+
summary: 'Product readout: activation, value and attention across all duties',
|
|
31
31
|
},
|
|
32
32
|
'operations-queue': {
|
|
33
33
|
path: `${MOUNT}/operations/queue`,
|
|
@@ -39,7 +39,7 @@ exports.ANALYTICS_REPORTS = {
|
|
|
39
39
|
},
|
|
40
40
|
distribution: {
|
|
41
41
|
path: `${MOUNT}/distribution`,
|
|
42
|
-
summary: 'How
|
|
42
|
+
summary: 'How duties are spread across agents, tiers and cadences',
|
|
43
43
|
},
|
|
44
44
|
'distribution-tripwire': {
|
|
45
45
|
path: `${MOUNT}/distribution/tripwire`,
|
|
@@ -75,7 +75,7 @@ exports.ANALYTICS_REPORTS = {
|
|
|
75
75
|
},
|
|
76
76
|
};
|
|
77
77
|
exports.ANALYTICS_REPORT_NAMES = Object.keys(exports.ANALYTICS_REPORTS);
|
|
78
|
-
exports.
|
|
78
|
+
exports.dutyAnalyticsApi = {
|
|
79
79
|
prdReadout: (query = {}) => data_provider_1.request.get((0, triggers_1.withQuery)(`${MOUNT}/prd-readout`, query)),
|
|
80
80
|
operationsQueue: (query = {}) => data_provider_1.request.get((0, triggers_1.withQuery)(`${MOUNT}/operations/queue`, query)),
|
|
81
81
|
governanceExceptions: (query = {}) => data_provider_1.request.get((0, triggers_1.withQuery)(`${MOUNT}/governance/exceptions`, query)),
|
|
@@ -93,8 +93,8 @@ exports.commitmentAnalyticsApi = {
|
|
|
93
93
|
* This is the "show me exactly what happened on that fire" read.
|
|
94
94
|
*/
|
|
95
95
|
replay: (query) => data_provider_1.request.get((0, triggers_1.withQuery)(`${MOUNT}/replay`, query)),
|
|
96
|
-
/** Per-
|
|
97
|
-
|
|
96
|
+
/** Per-duty analytics — distinct from `skrr duties show`. */
|
|
97
|
+
forDuty: (id, query = {}) => data_provider_1.request.get((0, triggers_1.withQuery)(base(id), query)),
|
|
98
98
|
/** The analytics projection of the ledger (joined), not the raw ledger read. */
|
|
99
99
|
ledger: (id, query = {}) => data_provider_1.request.get((0, triggers_1.withQuery)(`${base(id)}/ledger`, query)),
|
|
100
100
|
/** Force a reflection pass — the slow loop that retunes cadence. */
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The attention settings of a
|
|
2
|
+
* The attention settings of a Duty, said in words.
|
|
3
3
|
*
|
|
4
4
|
* `show`, `effective-policy` and `preflight` all print these, from this one
|
|
5
5
|
* file, so the three cannot phrase a setting three ways. A value is described
|
|
6
6
|
* from the RAW stored setting and never through a coercion: `null` is "no
|
|
7
7
|
* limit" and `0` is "muted", and `Number(null)` is `0`, which is exactly how a
|
|
8
8
|
* cap that was never set would read as a mute (the server documents the same
|
|
9
|
-
* trap at `policySchema.maxUserNudgesPerDay` in api/server/routes/
|
|
9
|
+
* trap at `policySchema.maxUserNudgesPerDay` in api/server/routes/duties.js).
|
|
10
10
|
*/
|
|
11
11
|
/** What the owner can type for `--max-nudges`, as `--help` prints it. */
|
|
12
12
|
export declare const MAX_NUDGES_FLAG_HELP: string;
|
|
@@ -36,8 +36,8 @@ export type NudgeSettings = {
|
|
|
36
36
|
/** Read the three settings out of a stored `policy`. */
|
|
37
37
|
export declare function nudgeSettingsFromPolicy(policy: Record<string, any>): NudgeSettings;
|
|
38
38
|
/**
|
|
39
|
-
* The lines that say how much a
|
|
40
|
-
* prints the mute alone: a gap and a back-off on a
|
|
39
|
+
* The lines that say how much a Duty may interrupt its owner. A muted one
|
|
40
|
+
* prints the mute alone: a gap and a back-off on a Duty that never speaks
|
|
41
41
|
* would only suggest it does. `withNoReply: false` leaves the back-off out when the
|
|
42
42
|
* stored rule could not be read, rather than claim it is off.
|
|
43
43
|
*/
|
|
@@ -59,7 +59,7 @@ export declare const QUIET_HOURS_HELP: string;
|
|
|
59
59
|
export declare const EVENT_SOURCES_HELP: string;
|
|
60
60
|
/**
|
|
61
61
|
* The allowlist in words. An empty or missing list means every source is allowed
|
|
62
|
-
* (`sourceAllowed` in api/server/services/EventBus/
|
|
62
|
+
* (`sourceAllowed` in api/server/services/EventBus/dutyWakeCapabilities.js and the check in
|
|
63
63
|
* WakeIntentResolver.js both treat it so); the stored form of "never set" is the same `[]`.
|
|
64
64
|
*/
|
|
65
65
|
export declare function describeEventSources(allowed: unknown): string;
|
|
@@ -77,7 +77,7 @@ type QuietHoursPolicy = {
|
|
|
77
77
|
timezone?: string;
|
|
78
78
|
} | null;
|
|
79
79
|
/**
|
|
80
|
-
* The
|
|
80
|
+
* The Duty's own quiet-hours window in words. Without one of its own a Duty uses its
|
|
81
81
|
* Agent's Compass window (`scheduleIssues.js` documents the same rule), so "none set" says where
|
|
82
82
|
* else a window may come from rather than claiming there is no quiet time at all.
|
|
83
83
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* The attention settings of a
|
|
3
|
+
* The attention settings of a Duty, said in words.
|
|
4
4
|
*
|
|
5
5
|
* `show`, `effective-policy` and `preflight` all print these, from this one
|
|
6
6
|
* file, so the three cannot phrase a setting three ways. A value is described
|
|
7
7
|
* from the RAW stored setting and never through a coercion: `null` is "no
|
|
8
8
|
* limit" and `0` is "muted", and `Number(null)` is `0`, which is exactly how a
|
|
9
9
|
* cap that was never set would read as a mute (the server documents the same
|
|
10
|
-
* trap at `policySchema.maxUserNudgesPerDay` in api/server/routes/
|
|
10
|
+
* trap at `policySchema.maxUserNudgesPerDay` in api/server/routes/duties.js).
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.EVENT_SOURCES_HELP = exports.QUIET_HOURS_HELP = exports.CLOCK_TIME_HINT = exports.MAX_NUDGES_FLAG_HELP = void 0;
|
|
@@ -89,8 +89,8 @@ function nudgeSettingsFromPolicy(policy) {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
|
-
* The lines that say how much a
|
|
93
|
-
* prints the mute alone: a gap and a back-off on a
|
|
92
|
+
* The lines that say how much a Duty may interrupt its owner. A muted one
|
|
93
|
+
* prints the mute alone: a gap and a back-off on a Duty that never speaks
|
|
94
94
|
* would only suggest it does. `withNoReply: false` leaves the back-off out when the
|
|
95
95
|
* stored rule could not be read, rather than claim it is off.
|
|
96
96
|
*/
|
|
@@ -120,11 +120,11 @@ exports.QUIET_HOURS_HELP = 'Quiet hours (no messages to you) go in the JSON as p
|
|
|
120
120
|
* What `policy.executionBudget.allowedEventSources` means, for the same help. An empty list is the
|
|
121
121
|
* unrestricted case, which is the opposite of what `[]` suggests (OSK-21113).
|
|
122
122
|
*/
|
|
123
|
-
exports.EVENT_SOURCES_HELP = 'policy.executionBudget.allowedEventSources limits which event sources may wake the
|
|
123
|
+
exports.EVENT_SOURCES_HELP = 'policy.executionBudget.allowedEventSources limits which event sources may wake the Duty: ' +
|
|
124
124
|
'an empty or missing list allows every source (it is not "none"); name sources to restrict it.';
|
|
125
125
|
/**
|
|
126
126
|
* The allowlist in words. An empty or missing list means every source is allowed
|
|
127
|
-
* (`sourceAllowed` in api/server/services/EventBus/
|
|
127
|
+
* (`sourceAllowed` in api/server/services/EventBus/dutyWakeCapabilities.js and the check in
|
|
128
128
|
* WakeIntentResolver.js both treat it so); the stored form of "never set" is the same `[]`.
|
|
129
129
|
*/
|
|
130
130
|
function describeEventSources(allowed) {
|
|
@@ -164,13 +164,13 @@ function clockText(value) {
|
|
|
164
164
|
/** An omitted timezone is UTC, and no text surface said so (OSK-21122). */
|
|
165
165
|
const NO_TIMEZONE_NOTE = 'UTC (no timezone set, UTC is used)';
|
|
166
166
|
/**
|
|
167
|
-
* The
|
|
167
|
+
* The Duty's own quiet-hours window in words. Without one of its own a Duty uses its
|
|
168
168
|
* Agent's Compass window (`scheduleIssues.js` documents the same rule), so "none set" says where
|
|
169
169
|
* else a window may come from rather than claiming there is no quiet time at all.
|
|
170
170
|
*/
|
|
171
171
|
function describeQuietHours(quietHours) {
|
|
172
172
|
if (!quietHours) {
|
|
173
|
-
return "none set on this
|
|
173
|
+
return "none set on this Duty (a window in its Agent's Compass applies, if it has one)";
|
|
174
174
|
}
|
|
175
175
|
const zone = quietHours.timezone ? quietHours.timezone : NO_TIMEZONE_NOTE;
|
|
176
176
|
const window = quietHours.start && quietHours.end
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { withQuery } from './triggers';
|
|
2
2
|
export declare const ENDPOINT_CAPABILITIES: readonly ["push", "reply", "structuredAsk"];
|
|
3
3
|
/** Derived from the one destination registry; never a second list. */
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const DUTY_ENDPOINT_DESTINATIONS: ("email" | "main" | "pinned" | "app_owner_dm" | "slack_owner_dm" | "slack_channel" | "discord_owner_dm" | "user_notify")[];
|
|
5
5
|
export type EndpointCapability = (typeof ENDPOINT_CAPABILITIES)[number];
|
|
6
|
-
export interface
|
|
6
|
+
export interface DutyEndpoint {
|
|
7
7
|
id: string;
|
|
8
8
|
agentId?: string;
|
|
9
9
|
label?: string;
|
|
@@ -18,11 +18,11 @@ export interface CommitmentEndpoint {
|
|
|
18
18
|
createdAt?: string;
|
|
19
19
|
updatedAt?: string;
|
|
20
20
|
}
|
|
21
|
-
export declare const
|
|
21
|
+
export declare const dutyEndpointApi: {
|
|
22
22
|
list: (query?: Parameters<typeof withQuery>[1]) => Promise<{
|
|
23
|
-
endpoints:
|
|
23
|
+
endpoints: DutyEndpoint[];
|
|
24
24
|
}>;
|
|
25
|
-
create: (body: Record<string, unknown>) => Promise<
|
|
25
|
+
create: (body: Record<string, unknown>) => Promise<DutyEndpoint>;
|
|
26
26
|
/** Probes the native App/Slack transport and records current health. */
|
|
27
27
|
connect: (id: string, body?: Record<string, unknown>) => Promise<Record<string, unknown>>;
|
|
28
28
|
/** Legacy compatibility call; new native endpoints do not use OAuth. */
|
|
@@ -32,4 +32,4 @@ export declare const commitmentEndpointApi: {
|
|
|
32
32
|
revoke: (id: string, body?: Record<string, unknown>) => Promise<Record<string, unknown>>;
|
|
33
33
|
remove: (id: string) => Promise<Record<string, unknown>>;
|
|
34
34
|
};
|
|
35
|
-
export declare function renderEndpointList(rows:
|
|
35
|
+
export declare function renderEndpointList(rows: DutyEndpoint[], log: (line: string) => void): void;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.dutyEndpointApi = exports.DUTY_ENDPOINT_DESTINATIONS = exports.ENDPOINT_CAPABILITIES = void 0;
|
|
4
4
|
exports.renderEndpointList = renderEndpointList;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* duty-endpoints.ts — client for `/api/duty-endpoints`.
|
|
7
7
|
*
|
|
8
|
-
* A **
|
|
8
|
+
* A **duty endpoint** is a channel-neutral DELIVERY TARGET: "this agent
|
|
9
9
|
* can reach me on Slack DM / this channel / App DM", expressed as a connection
|
|
10
|
-
* record with a readiness state.
|
|
11
|
-
* these, so a
|
|
10
|
+
* record with a readiness state. Duties then declare report targets against
|
|
11
|
+
* these, so a duty never names a raw Slack channel id or a token.
|
|
12
12
|
*
|
|
13
13
|
* The lifecycle is the interesting part, and it is why this needs a CLI at all:
|
|
14
14
|
*
|
|
@@ -22,10 +22,10 @@ const format_1 = require("./format");
|
|
|
22
22
|
const triggers_1 = require("./triggers");
|
|
23
23
|
exports.ENDPOINT_CAPABILITIES = ['push', 'reply', 'structuredAsk'];
|
|
24
24
|
/** Derived from the one destination registry; never a second list. */
|
|
25
|
-
exports.
|
|
26
|
-
const MOUNT = '/api/
|
|
25
|
+
exports.DUTY_ENDPOINT_DESTINATIONS = data_provider_1.DUTY_REGISTRABLE_REPORT_DESTINATIONS;
|
|
26
|
+
const MOUNT = '/api/duty-endpoints';
|
|
27
27
|
const base = (id) => `${MOUNT}/${encodeURIComponent(id)}`;
|
|
28
|
-
exports.
|
|
28
|
+
exports.dutyEndpointApi = {
|
|
29
29
|
list: (query = {}) => data_provider_1.request.get((0, triggers_1.withQuery)(MOUNT, query)),
|
|
30
30
|
create: (body) => data_provider_1.request.post(MOUNT, body),
|
|
31
31
|
/** Probes the native App/Slack transport and records current health. */
|
|
@@ -39,7 +39,7 @@ exports.commitmentEndpointApi = {
|
|
|
39
39
|
};
|
|
40
40
|
function renderEndpointList(rows, log) {
|
|
41
41
|
if (rows.length === 0) {
|
|
42
|
-
log('No
|
|
42
|
+
log('No duty endpoints. Create one with `skrr duties endpoints create`.');
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
(0, format_1.renderTable)(rows.map((row) => ({
|
|
@@ -48,7 +48,7 @@ function renderEndpointList(rows, log) {
|
|
|
48
48
|
destination: row.destination ?? '—',
|
|
49
49
|
provider: row.provider ?? '—',
|
|
50
50
|
status: row.status ?? '—',
|
|
51
|
-
// `available` is the field the
|
|
51
|
+
// `available` is the field the duty invocation actually reads when
|
|
52
52
|
// deciding whether a report target can be used, so it earns its own column
|
|
53
53
|
// rather than being inferred from `status`.
|
|
54
54
|
usable: row.available ? 'yes' : 'no',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { EventWakeCapabilities } from './
|
|
1
|
+
import type { EventWakeCapabilities } from './duties';
|
|
2
2
|
/**
|
|
3
3
|
* The "Event wakes:" block, one renderer for `trigger-status` and `wake-capabilities`. The second
|
|
4
4
|
* used to word its own conclusion ("configured sources may wake the Agent", a column marked
|
|
5
|
-
* ACTIVE) and contradicted the first for the same
|
|
5
|
+
* ACTIVE) and contradicted the first for the same Duty (OSK-15428, OSK-15419); printing the
|
|
6
6
|
* same facts in the same words is the only way the two cannot disagree.
|
|
7
7
|
*/
|
|
8
8
|
export declare function eventWakeLines(caps: EventWakeCapabilities): string[];
|
|
@@ -4,7 +4,7 @@ exports.eventWakeLines = eventWakeLines;
|
|
|
4
4
|
/**
|
|
5
5
|
* The "Event wakes:" block, one renderer for `trigger-status` and `wake-capabilities`. The second
|
|
6
6
|
* used to word its own conclusion ("configured sources may wake the Agent", a column marked
|
|
7
|
-
* ACTIVE) and contradicted the first for the same
|
|
7
|
+
* ACTIVE) and contradicted the first for the same Duty (OSK-15428, OSK-15419); printing the
|
|
8
8
|
* same facts in the same words is the only way the two cannot disagree.
|
|
9
9
|
*/
|
|
10
10
|
function eventWakeLines(caps) {
|
|
@@ -50,7 +50,7 @@ function eventWakeLines(caps) {
|
|
|
50
50
|
for (const item of caps.selectedEvents) {
|
|
51
51
|
const name = `${item.source ?? 'source'}: ${item.event ?? '(incomplete selection)'}`;
|
|
52
52
|
lines.push(item.verdict === 'set_aside'
|
|
53
|
-
? ` ${name} — set aside: ${item.detail ?? item.reason ?? 'it cannot wake this
|
|
53
|
+
? ` ${name} — set aside: ${item.detail ?? item.reason ?? 'it cannot wake this Duty'}`
|
|
54
54
|
: ` ${name} — can wake`);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -4,12 +4,12 @@ exports.renderActionHistory = renderActionHistory;
|
|
|
4
4
|
exports.renderReflection = renderReflection;
|
|
5
5
|
exports.renderCadenceDecisions = renderCadenceDecisions;
|
|
6
6
|
/**
|
|
7
|
-
* Human views for three
|
|
7
|
+
* Human views for three Duty read commands that printed raw JSON without `--json`
|
|
8
8
|
* (OSK-15435): `action-history`, `reflection` and `cadence-decisions`. `--json` is unchanged; these
|
|
9
9
|
* only replace the default. An empty ledger is a sentence, not `"data": []`.
|
|
10
10
|
*/
|
|
11
11
|
const format_1 = require("./format");
|
|
12
|
-
const
|
|
12
|
+
const duties_1 = require("./duties");
|
|
13
13
|
const text = (value, fallback = '-') => typeof value === 'string' && value.trim()
|
|
14
14
|
? value
|
|
15
15
|
: typeof value === 'number'
|
|
@@ -58,7 +58,7 @@ function renderActionHistory(page, log) {
|
|
|
58
58
|
{ key: 'why', header: 'WHY', maxWidth: 100 },
|
|
59
59
|
], log);
|
|
60
60
|
}
|
|
61
|
-
(0,
|
|
61
|
+
(0, duties_1.renderListPageHint)(page, log);
|
|
62
62
|
}
|
|
63
63
|
function renderReflection(review, log) {
|
|
64
64
|
const metrics = (review?.metrics ?? {});
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Text rendering for `skrr
|
|
2
|
+
* Text rendering for `skrr duties roster` / `skrr duties status`.
|
|
3
3
|
*
|
|
4
|
-
* The loop state is DERIVED server-side (`
|
|
4
|
+
* The loop state is DERIVED server-side (`DutyLoopStatus`); this file
|
|
5
5
|
* only words it. Two rules it must keep:
|
|
6
6
|
* - paused, unarmed and degraded read differently — "you paused it", "nothing
|
|
7
7
|
* will wake it" and "it cannot see" have different fixes;
|
|
8
8
|
* - `unknown` never borrows the healthy wording or an OK mark. "Cannot see"
|
|
9
9
|
* is not "fine".
|
|
10
10
|
*/
|
|
11
|
-
import { type
|
|
11
|
+
import { type DutyLoopStatus, type DutyRoster } from '@skrr-ai/data-provider';
|
|
12
12
|
export declare function loopStateLabel(state: unknown): string;
|
|
13
13
|
/**
|
|
14
14
|
* What an empty "next wakes" list means. "Nothing is scheduled" is true only of an unarmed loop: a held
|
|
15
15
|
* wake IS scheduled and is being refused, and the line above it says "armed" (OSK-21261). Unknown stays
|
|
16
16
|
* "could not be read" because cannot-see is not none.
|
|
17
17
|
*/
|
|
18
|
-
export declare function noNextWakeText(status: Pick<
|
|
19
|
-
/** Roster table: one row per
|
|
20
|
-
export declare function
|
|
18
|
+
export declare function noNextWakeText(status: Pick<DutyLoopStatus, 'loopState' | 'loopReason'>): string;
|
|
19
|
+
/** Roster table: one row per Duty. */
|
|
20
|
+
export declare function formatDutyRoster(roster: Partial<DutyRoster>): string[];
|
|
21
21
|
/**
|
|
22
|
-
* One loop in a few lines, for a surface that lists many (`
|
|
23
|
-
* the same facts as `
|
|
22
|
+
* One loop in a few lines, for a surface that lists many (`duties operating-review`). It carries
|
|
23
|
+
* the same facts as `formatDutyLoopStatus` but in the order an owner asks them: is it armed,
|
|
24
24
|
* when does it next wake, why did it last stop, can it read what it watches, what did it run today.
|
|
25
25
|
* Every line is present when its fact is unknown, because "cannot see" must not read as "nothing to
|
|
26
26
|
* report" (OSK-15438, OSK-15412). Lines are returned unindented; the caller indents them.
|
|
27
27
|
*/
|
|
28
|
-
export declare function formatLoopSummary(status:
|
|
29
|
-
/** One
|
|
30
|
-
export declare function
|
|
28
|
+
export declare function formatLoopSummary(status: DutyLoopStatus): string[];
|
|
29
|
+
/** One Duty's loop, in full. */
|
|
30
|
+
export declare function formatDutyLoopStatus(status: DutyLoopStatus): string[];
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.loopStateLabel = loopStateLabel;
|
|
4
4
|
exports.noNextWakeText = noNextWakeText;
|
|
5
|
-
exports.
|
|
5
|
+
exports.formatDutyRoster = formatDutyRoster;
|
|
6
6
|
exports.formatLoopSummary = formatLoopSummary;
|
|
7
|
-
exports.
|
|
7
|
+
exports.formatDutyLoopStatus = formatDutyLoopStatus;
|
|
8
8
|
/**
|
|
9
|
-
* Text rendering for `skrr
|
|
9
|
+
* Text rendering for `skrr duties roster` / `skrr duties status`.
|
|
10
10
|
*
|
|
11
|
-
* The loop state is DERIVED server-side (`
|
|
11
|
+
* The loop state is DERIVED server-side (`DutyLoopStatus`); this file
|
|
12
12
|
* only words it. Two rules it must keep:
|
|
13
13
|
* - paused, unarmed and degraded read differently — "you paused it", "nothing
|
|
14
14
|
* will wake it" and "it cannot see" have different fixes;
|
|
@@ -101,18 +101,18 @@ function watchSummary(status) {
|
|
|
101
101
|
})
|
|
102
102
|
.join(' ');
|
|
103
103
|
}
|
|
104
|
-
/** Roster table: one row per
|
|
105
|
-
function
|
|
104
|
+
/** Roster table: one row per Duty. */
|
|
105
|
+
function formatDutyRoster(roster) {
|
|
106
106
|
const lines = [];
|
|
107
|
-
const
|
|
108
|
-
lines.push(`Agent ${roster.agentId ?? '-'} — ${
|
|
109
|
-
if (!
|
|
110
|
-
lines.push('No
|
|
107
|
+
const duties = Array.isArray(roster.duties) ? roster.duties : [];
|
|
108
|
+
lines.push(`Agent ${roster.agentId ?? '-'} — ${duties.length} dut${duties.length === 1 ? 'y' : 'ies'}`);
|
|
109
|
+
if (!duties.length) {
|
|
110
|
+
lines.push('No duties.');
|
|
111
111
|
return lines;
|
|
112
112
|
}
|
|
113
|
-
(0, format_1.renderTable)(
|
|
113
|
+
(0, format_1.renderTable)(duties.map((status) => ({
|
|
114
114
|
state: loopStateLabel(status.loopState),
|
|
115
|
-
id: status.
|
|
115
|
+
id: status.dutyId,
|
|
116
116
|
title: status.systemRole ? `${status.title} [${status.systemRole}]` : status.title,
|
|
117
117
|
next: nextWake(status),
|
|
118
118
|
runs: runs(status),
|
|
@@ -127,25 +127,25 @@ function formatCommitmentRoster(roster) {
|
|
|
127
127
|
{ key: 'watching', header: 'WATCHING', maxWidth: 40 },
|
|
128
128
|
{ key: 'reason', header: 'REASON', maxWidth: 40 },
|
|
129
129
|
], (line) => lines.push(line));
|
|
130
|
-
const attention =
|
|
130
|
+
const attention = duties.filter((status) => !['healthy', 'paused', 'inactive'].includes(String(status.loopState))).length;
|
|
131
131
|
if (attention) {
|
|
132
|
-
lines.push(`${attention} need${attention === 1 ? 's' : ''} attention — run \`skrr
|
|
132
|
+
lines.push(`${attention} need${attention === 1 ? 's' : ''} attention — run \`skrr duties status <id>\` for why.`);
|
|
133
133
|
}
|
|
134
134
|
if (roster.truncated) {
|
|
135
|
-
lines.push('More
|
|
135
|
+
lines.push('More duties exist than this roster shows.');
|
|
136
136
|
}
|
|
137
137
|
return lines;
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
|
-
* One loop in a few lines, for a surface that lists many (`
|
|
141
|
-
* the same facts as `
|
|
140
|
+
* One loop in a few lines, for a surface that lists many (`duties operating-review`). It carries
|
|
141
|
+
* the same facts as `formatDutyLoopStatus` but in the order an owner asks them: is it armed,
|
|
142
142
|
* when does it next wake, why did it last stop, can it read what it watches, what did it run today.
|
|
143
143
|
* Every line is present when its fact is unknown, because "cannot see" must not read as "nothing to
|
|
144
144
|
* report" (OSK-15438, OSK-15412). Lines are returned unindented; the caller indents them.
|
|
145
145
|
*/
|
|
146
146
|
function formatLoopSummary(status) {
|
|
147
147
|
const lines = [];
|
|
148
|
-
const detail = status.loopDetail || (0, data_provider_1.
|
|
148
|
+
const detail = status.loopDetail || (0, data_provider_1.describeDutyLoopState)(status.loopState);
|
|
149
149
|
lines.push(`loop: ${loopStateLabel(status.loopState)} — ${detail}${status.loopReason ? ` (${status.loopReason})` : ''}`);
|
|
150
150
|
const wake = status.nextWakes?.[0];
|
|
151
151
|
lines.push(`next wake: ${wake
|
|
@@ -180,12 +180,12 @@ function formatLoopSummary(status) {
|
|
|
180
180
|
}
|
|
181
181
|
return lines;
|
|
182
182
|
}
|
|
183
|
-
/** One
|
|
184
|
-
function
|
|
183
|
+
/** One Duty's loop, in full. */
|
|
184
|
+
function formatDutyLoopStatus(status) {
|
|
185
185
|
const lines = [];
|
|
186
|
-
lines.push(`${status.title} (${status.
|
|
186
|
+
lines.push(`${status.title} (${status.dutyId})${status.systemRole ? ` [${status.systemRole}]` : ''}`);
|
|
187
187
|
lines.push(` Loop: ${loopStateLabel(status.loopState)}${status.loopReason ? ` (${status.loopReason})` : ''}`);
|
|
188
|
-
lines.push(` ${status.loopDetail || (0, data_provider_1.
|
|
188
|
+
lines.push(` ${status.loopDetail || (0, data_provider_1.describeDutyLoopState)(status.loopState)}`);
|
|
189
189
|
lines.push(` Lifecycle: ${status.lifecycleStatus}`);
|
|
190
190
|
lines.push(` Last check: ${when(status.lastCheckAt)}`);
|
|
191
191
|
lines.push(` Last seen: ${when(status.lastSuccessfulObservationAt)}`);
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const
|
|
1
|
+
import type { DutyDeliveryIntent, TaskReviewPolicy, DutyExecutionReceipt, DutyExecutionReceiptQuarterlyMetricsResponse } from '@skrr-ai/data-provider';
|
|
2
|
+
export declare const DUTY_DELIVERY_CHOICES: readonly ["report-only", "local-patch", "draft-pr", "push-branch", "direct-branch"];
|
|
3
3
|
export declare function deliveryLabel(mode?: string): string;
|
|
4
4
|
export declare function normalizeTaskReviewPolicy(value: unknown): TaskReviewPolicy;
|
|
5
5
|
export declare function deliveryInput(mode: string, options?: {
|
|
6
6
|
repo?: string;
|
|
7
7
|
base?: string;
|
|
8
8
|
taskReviewPolicy?: TaskReviewPolicy;
|
|
9
|
-
}):
|
|
10
|
-
export declare function renderExecutionReceipt(receipt:
|
|
9
|
+
}): DutyDeliveryIntent;
|
|
10
|
+
export declare function renderExecutionReceipt(receipt: DutyExecutionReceipt, log: (line: string) => void, verbose?: boolean): void;
|
|
11
11
|
/**
|
|
12
|
-
* `skrr
|
|
12
|
+
* `skrr duties receipt-metrics <id>` — the closed-quarter rollup.
|
|
13
13
|
*
|
|
14
14
|
* Ordered as the funnel it describes rather than as the payload's field order:
|
|
15
15
|
* a wake arrives, some wakes were eligible to act on, some of those started an
|
|
16
16
|
* execution, some declared a delivery, and some of THOSE were verified. Reading
|
|
17
17
|
* it top to bottom is how you see which step the loop is losing work at.
|
|
18
18
|
*/
|
|
19
|
-
export declare function renderExecutionReceiptQuarterlyMetrics(response:
|
|
19
|
+
export declare function renderExecutionReceiptQuarterlyMetrics(response: DutyExecutionReceiptQuarterlyMetricsResponse, log: (line: string) => void, verbose?: boolean): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.DUTY_DELIVERY_CHOICES = void 0;
|
|
4
4
|
exports.deliveryLabel = deliveryLabel;
|
|
5
5
|
exports.normalizeTaskReviewPolicy = normalizeTaskReviewPolicy;
|
|
6
6
|
exports.deliveryInput = deliveryInput;
|
|
@@ -9,7 +9,7 @@ exports.renderExecutionReceiptQuarterlyMetrics = renderExecutionReceiptQuarterly
|
|
|
9
9
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
10
10
|
const DELIVERY_INPUT_RE = /-/g;
|
|
11
11
|
const RENDER_EXECUTION_RECEIPT_RE = /^[A-Za-z0-9_.:-]+$/;
|
|
12
|
-
exports.
|
|
12
|
+
exports.DUTY_DELIVERY_CHOICES = [
|
|
13
13
|
'report-only',
|
|
14
14
|
'local-patch',
|
|
15
15
|
'draft-pr',
|
|
@@ -32,8 +32,8 @@ function normalizeTaskReviewPolicy(value) {
|
|
|
32
32
|
}
|
|
33
33
|
function deliveryInput(mode, options = {}) {
|
|
34
34
|
const normalized = mode.replace(DELIVERY_INPUT_RE, '_');
|
|
35
|
-
if (!exports.
|
|
36
|
-
throw new Error(`Unknown delivery. Choose ${exports.
|
|
35
|
+
if (!exports.DUTY_DELIVERY_CHOICES.some((choice) => choice.replace(DELIVERY_INPUT_RE, '_') === normalized)) {
|
|
36
|
+
throw new Error(`Unknown delivery. Choose ${exports.DUTY_DELIVERY_CHOICES.join(', ')}.`);
|
|
37
37
|
}
|
|
38
38
|
return {
|
|
39
39
|
version: 1,
|
|
@@ -112,7 +112,7 @@ function ratio(value) {
|
|
|
112
112
|
return value.toFixed(2);
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
|
-
* `skrr
|
|
115
|
+
* `skrr duties receipt-metrics <id>` — the closed-quarter rollup.
|
|
116
116
|
*
|
|
117
117
|
* Ordered as the funnel it describes rather than as the payload's field order:
|
|
118
118
|
* a wake arrives, some wakes were eligible to act on, some of those started an
|