@skrr-ai/cli 0.1.150 → 0.1.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -20
- package/dist/base-command.d.ts +6 -6
- package/dist/base-command.js +26 -26
- package/dist/commands/agenda/trigger/list.d.ts +1 -1
- package/dist/commands/agenda/trigger/list.js +6 -6
- package/dist/commands/agents/always-on/disable.js +10 -3
- package/dist/commands/agents/always-on/enable.js +1 -1
- package/dist/commands/agents/always-on/reconcile.js +1 -1
- package/dist/commands/agents/always-on/status.js +31 -8
- package/dist/commands/agents/create.d.ts +2 -2
- package/dist/commands/agents/create.js +12 -12
- package/dist/commands/agents/egress.js +1 -1
- package/dist/commands/agents/list.d.ts +1 -1
- package/dist/commands/agents/list.js +1 -1
- package/dist/commands/agents/roles/capture.d.ts +1 -1
- package/dist/commands/agents/roles/capture.js +2 -2
- package/dist/commands/agents/roles/install.js +1 -1
- package/dist/commands/agents/spawn.js +38 -38
- package/dist/commands/agents/update.d.ts +1 -1
- package/dist/commands/agents/update.js +3 -3
- package/dist/commands/code/jobs/show.js +1 -1
- package/dist/commands/compass/archive.d.ts +1 -1
- package/dist/commands/compass/archive.js +1 -1
- package/dist/commands/compass/create.js +1 -1
- package/dist/commands/compass/{commitments.d.ts → duties.d.ts} +5 -5
- package/dist/commands/compass/{commitments.js → duties.js} +14 -14
- package/dist/commands/compass/trace.d.ts +1 -1
- package/dist/commands/compass/trace.js +2 -2
- package/dist/commands/convos/messages.js +2 -1
- package/dist/commands/doctor.d.ts +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/{commitments → duties}/accounting.d.ts +7 -7
- package/dist/commands/{commitments → duties}/accounting.js +13 -13
- package/dist/commands/{commitments → duties}/action-history.d.ts +3 -3
- package/dist/commands/{commitments → duties}/action-history.js +12 -12
- package/dist/commands/{commitments → duties}/action-proposal.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposal.js +6 -6
- package/dist/commands/{commitments → duties}/action-proposals/decide.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposals/decide.js +8 -8
- package/dist/commands/{commitments → duties}/action-proposals/execute.d.ts +2 -2
- package/dist/commands/{commitments → duties}/action-proposals/execute.js +7 -7
- package/dist/commands/{commitments → duties}/action-proposals/propose.d.ts +4 -4
- package/dist/commands/{commitments → duties}/action-proposals/propose.js +15 -15
- package/dist/commands/{commitments → duties}/action-proposals.d.ts +1 -1
- package/dist/commands/{commitments → duties}/action-proposals.js +6 -6
- package/dist/commands/{commitments → duties}/analytics/detail.d.ts +5 -5
- package/dist/commands/{commitments → duties}/analytics/detail.js +13 -13
- package/dist/commands/{commitments → duties}/analytics/index.d.ts +5 -5
- package/dist/commands/{commitments → duties}/analytics/index.js +30 -30
- package/dist/commands/{commitments → duties}/analytics/replay.d.ts +3 -3
- package/dist/commands/{commitments → duties}/analytics/replay.js +11 -11
- package/dist/commands/{commitments → duties}/attach.d.ts +3 -3
- package/dist/commands/{commitments → duties}/attach.js +21 -21
- package/dist/commands/{commitments → duties}/bundle.d.ts +1 -1
- package/dist/commands/{commitments → duties}/bundle.js +7 -7
- package/dist/commands/{commitments → duties}/cadence-decisions.d.ts +3 -3
- package/dist/commands/duties/cadence-decisions.js +41 -0
- package/dist/commands/{commitments → duties}/cadence-requests/decide.d.ts +4 -4
- package/dist/commands/{commitments → duties}/cadence-requests/decide.js +11 -11
- package/dist/commands/{commitments → duties}/case.d.ts +2 -2
- package/dist/commands/{commitments → duties}/case.js +8 -8
- package/dist/commands/{commitments → duties}/cases.d.ts +2 -2
- package/dist/commands/{commitments → duties}/cases.js +9 -9
- package/dist/commands/{commitments → duties}/check-now.d.ts +6 -6
- package/dist/commands/{commitments → duties}/check-now.js +29 -29
- package/dist/commands/{commitments → duties}/checks.d.ts +3 -3
- package/dist/commands/{commitments → duties}/checks.js +13 -13
- package/dist/commands/{commitments → duties}/complete.d.ts +2 -2
- package/dist/commands/duties/complete.js +40 -0
- package/dist/commands/{commitments → duties}/control/apply.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/apply.js +7 -7
- package/dist/commands/{commitments → duties}/control/preview.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/preview.js +8 -8
- package/dist/commands/{commitments → duties}/control/show.d.ts +1 -1
- package/dist/commands/{commitments → duties}/control/show.js +6 -6
- package/dist/commands/{commitments → duties}/cost.d.ts +6 -6
- package/dist/commands/{commitments → duties}/cost.js +14 -14
- package/dist/commands/{commitments → duties}/create.d.ts +8 -8
- package/dist/commands/{commitments → duties}/create.js +92 -92
- package/dist/commands/{commitments → duties}/cycles.d.ts +2 -2
- package/dist/commands/{commitments → duties}/cycles.js +11 -11
- package/dist/commands/{commitments → duties}/decide-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/decide-remediation.js +6 -6
- package/dist/commands/{commitments → duties}/delete.d.ts +4 -4
- package/dist/commands/{commitments → duties}/delete.js +24 -24
- package/dist/commands/{commitments → duties}/delivery.d.ts +1 -1
- package/dist/commands/{commitments → duties}/delivery.js +15 -15
- package/dist/commands/{commitments → duties}/detach.d.ts +3 -3
- package/dist/commands/{commitments → duties}/detach.js +20 -20
- package/dist/commands/{commitments → duties}/doctor.d.ts +4 -4
- package/dist/commands/{commitments → duties}/doctor.js +21 -21
- package/dist/commands/{commitments → duties}/effective-policy.d.ts +3 -3
- package/dist/commands/{commitments → duties}/effective-policy.js +24 -24
- package/dist/commands/{commitments → duties}/endpoints/connect.d.ts +2 -2
- package/dist/commands/{commitments → duties}/endpoints/connect.js +10 -10
- package/dist/commands/{commitments → duties}/endpoints/create.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/create.js +16 -16
- package/dist/commands/{commitments → duties}/endpoints/delete.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/delete.js +11 -11
- package/dist/commands/{commitments → duties}/endpoints/health.d.ts +2 -2
- package/dist/commands/{commitments → duties}/endpoints/health.js +10 -10
- package/dist/commands/{commitments → duties}/endpoints/list.d.ts +3 -3
- package/dist/commands/{commitments → duties}/endpoints/list.js +11 -11
- package/dist/commands/{commitments → duties}/endpoints/revoke.d.ts +4 -4
- package/dist/commands/{commitments → duties}/endpoints/revoke.js +13 -13
- package/dist/commands/{commitments → duties}/evaluations.d.ts +2 -2
- package/dist/commands/{commitments → duties}/evaluations.js +8 -8
- package/dist/commands/{commitments → duties}/execute-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/execute-remediation.js +7 -7
- package/dist/commands/{commitments → duties}/explain.d.ts +2 -2
- package/dist/commands/{commitments → duties}/explain.js +13 -13
- package/dist/commands/{commitments → duties}/export.d.ts +3 -3
- package/dist/commands/{commitments → duties}/export.js +15 -15
- package/dist/commands/{commitments → duties}/feedback.d.ts +4 -4
- package/dist/commands/{commitments → duties}/feedback.js +13 -13
- package/dist/commands/{commitments → duties}/fork.d.ts +3 -3
- package/dist/commands/{commitments → duties}/fork.js +11 -11
- package/dist/commands/{commitments → duties}/goals/link.d.ts +6 -6
- package/dist/commands/duties/goals/link.js +41 -0
- package/dist/commands/{commitments → duties}/goals/unlink.d.ts +4 -4
- package/dist/commands/duties/goals/unlink.js +37 -0
- package/dist/commands/{commitments → duties}/handover.d.ts +5 -5
- package/dist/commands/{commitments → duties}/handover.js +21 -21
- package/dist/commands/{commitments → duties}/hypotheses.d.ts +3 -3
- package/dist/commands/{commitments → duties}/hypotheses.js +13 -13
- package/dist/commands/{commitments → duties}/import.d.ts +2 -2
- package/dist/commands/{commitments → duties}/import.js +10 -10
- package/dist/commands/{commitments → duties}/ledger.d.ts +4 -4
- package/dist/commands/{commitments → duties}/ledger.js +12 -12
- package/dist/commands/{commitments → duties}/lineage.d.ts +5 -5
- package/dist/commands/duties/lineage.js +43 -0
- package/dist/commands/{commitments → duties}/links/create.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/create.js +9 -9
- package/dist/commands/{commitments → duties}/links/detach.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/detach.js +7 -7
- package/dist/commands/{commitments → duties}/links/list.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/list.js +9 -9
- package/dist/commands/{commitments → duties}/links/update.d.ts +2 -2
- package/dist/commands/{commitments → duties}/links/update.js +7 -7
- package/dist/commands/{commitments → duties}/list.d.ts +3 -3
- package/dist/commands/{commitments → duties}/list.js +17 -17
- package/dist/commands/{commitments → duties}/liveness.d.ts +6 -6
- package/dist/commands/{commitments → duties}/liveness.js +13 -13
- package/dist/commands/{commitments → duties}/metrics.d.ts +3 -3
- package/dist/commands/{commitments → duties}/metrics.js +12 -12
- package/dist/commands/{commitments → duties}/next-tick.d.ts +7 -7
- package/dist/commands/{commitments → duties}/next-tick.js +14 -14
- package/dist/commands/{commitments → duties}/observation/probe.d.ts +1 -1
- package/dist/commands/{commitments → duties}/observation/probe.js +12 -12
- package/dist/commands/{commitments → duties}/observation/summary.d.ts +1 -1
- package/dist/commands/{commitments → duties}/observation/summary.js +5 -5
- package/dist/commands/{commitments → duties}/observations.d.ts +4 -4
- package/dist/commands/{commitments → duties}/observations.js +18 -18
- package/dist/commands/{commitments → duties}/open.d.ts +1 -1
- package/dist/commands/{commitments → duties}/open.js +13 -13
- package/dist/commands/{commitments → duties}/operating-review.d.ts +5 -5
- package/dist/commands/{commitments → duties}/operating-review.js +21 -21
- package/dist/commands/{commitments → duties}/pack/activate.d.ts +1 -1
- package/dist/commands/{commitments → duties}/pack/activate.js +6 -6
- package/dist/commands/{commitments → duties}/pack/bind.d.ts +4 -4
- package/dist/commands/{commitments → duties}/pack/bind.js +19 -19
- package/dist/commands/{commitments → duties}/pack/list.d.ts +2 -2
- package/dist/commands/{commitments → duties}/pack/list.js +10 -10
- package/dist/commands/{commitments → duties}/pack/plan.d.ts +3 -3
- package/dist/commands/{commitments → duties}/pack/plan.js +12 -12
- package/dist/commands/{commitments → duties}/pack/preflight.d.ts +3 -3
- package/dist/commands/{commitments → duties}/pack/preflight.js +10 -10
- package/dist/commands/{commitments → duties}/patch.d.ts +1 -1
- package/dist/commands/{commitments → duties}/patch.js +7 -7
- package/dist/commands/{commitments → duties}/pause.d.ts +2 -2
- package/dist/commands/{commitments → duties}/pause.js +16 -16
- package/dist/commands/{commitments → duties}/plan.d.ts +4 -4
- package/dist/commands/{commitments → duties}/plan.js +20 -20
- package/dist/commands/{commitments → duties}/preflight.d.ts +8 -8
- package/dist/commands/{commitments → duties}/preflight.js +32 -32
- package/dist/commands/{commitments → duties}/propose-remediation.d.ts +2 -2
- package/dist/commands/{commitments → duties}/propose-remediation.js +6 -6
- package/dist/commands/{commitments → duties}/readiness/show.d.ts +1 -1
- package/dist/commands/{commitments → duties}/readiness/show.js +6 -6
- package/dist/commands/{commitments → duties}/readiness/verify.d.ts +1 -1
- package/dist/commands/{commitments → duties}/readiness/verify.js +7 -7
- package/dist/commands/{commitments → duties}/receipt-metrics.d.ts +4 -4
- package/dist/commands/{commitments → duties}/receipt-metrics.js +16 -16
- package/dist/commands/{commitments → duties}/receipt.d.ts +1 -1
- package/dist/commands/{commitments → duties}/receipt.js +10 -10
- package/dist/commands/{commitments → duties}/reflect.d.ts +4 -4
- package/dist/commands/{commitments → duties}/reflect.js +12 -12
- package/dist/commands/{commitments → duties}/reflection-decision.d.ts +2 -2
- package/dist/commands/{commitments → duties}/reflection-decision.js +7 -7
- package/dist/commands/{commitments → duties}/reflection.d.ts +2 -2
- package/dist/commands/{commitments → duties}/reflection.js +9 -9
- package/dist/commands/{commitments → duties}/remediate.d.ts +5 -5
- package/dist/commands/{commitments → duties}/remediate.js +14 -14
- package/dist/commands/{commitments → duties}/remediation-proposal.d.ts +2 -2
- package/dist/commands/{commitments → duties}/remediation-proposal.js +7 -7
- package/dist/commands/{commitments → duties}/remediation-proposals.d.ts +2 -2
- package/dist/commands/{commitments → duties}/remediation-proposals.js +8 -8
- package/dist/commands/{commitments → duties}/reports.d.ts +5 -5
- package/dist/commands/{commitments → duties}/reports.js +35 -35
- package/dist/commands/{commitments → duties}/restore.d.ts +2 -2
- package/dist/commands/duties/restore.js +46 -0
- package/dist/commands/{commitments → duties}/resume.d.ts +2 -2
- package/dist/commands/duties/resume.js +37 -0
- package/dist/commands/{commitments → duties}/roster.d.ts +2 -2
- package/dist/commands/duties/roster.js +39 -0
- package/dist/commands/{commitments → duties}/show.d.ts +7 -7
- package/dist/commands/{commitments → duties}/show.js +40 -40
- package/dist/commands/{commitments → duties}/status.d.ts +3 -3
- package/dist/commands/duties/status.js +41 -0
- package/dist/commands/{commitments → duties}/subject.d.ts +4 -4
- package/dist/commands/{commitments → duties}/subject.js +29 -29
- package/dist/commands/{commitments → duties}/trace.d.ts +3 -3
- package/dist/commands/{commitments → duties}/trace.js +12 -12
- package/dist/commands/{commitments → duties}/trigger-status.d.ts +6 -6
- package/dist/commands/{commitments → duties}/trigger-status.js +19 -19
- package/dist/commands/{commitments → duties}/update.d.ts +5 -5
- package/dist/commands/{commitments → duties}/update.js +64 -64
- package/dist/commands/{commitments → duties}/wake-capabilities.d.ts +6 -6
- package/dist/commands/{commitments → duties}/wake-capabilities.js +22 -22
- package/dist/commands/{commitments → duties}/work-plan.d.ts +1 -1
- package/dist/commands/{commitments → duties}/work-plan.js +6 -6
- package/dist/commands/goals/key-results/show.js +2 -1
- package/dist/commands/goals/plan-now.js +2 -2
- package/dist/commands/goals/planner-compare.d.ts +1 -1
- package/dist/commands/goals/planner-compare.js +2 -2
- package/dist/commands/grants/create.d.ts +1 -1
- package/dist/commands/grants/create.js +9 -9
- package/dist/commands/grants/list.d.ts +1 -1
- package/dist/commands/grants/list.js +2 -2
- package/dist/commands/initiatives/list.d.ts +1 -1
- package/dist/commands/initiatives/list.js +1 -1
- package/dist/commands/measures/create.d.ts +2 -2
- package/dist/commands/measures/create.js +4 -4
- package/dist/commands/measures/list.d.ts +1 -1
- package/dist/commands/measures/list.js +2 -2
- package/dist/commands/northstars/create.js +4 -4
- package/dist/commands/northstars/delete.d.ts +3 -3
- package/dist/commands/northstars/delete.js +8 -8
- package/dist/commands/northstars/governance/configure.js +15 -15
- package/dist/commands/northstars/intents/decide.d.ts +1 -1
- package/dist/commands/northstars/intents/decide.js +1 -1
- package/dist/commands/northstars/link.d.ts +4 -4
- package/dist/commands/northstars/link.js +8 -8
- package/dist/commands/northstars/list.d.ts +2 -2
- package/dist/commands/northstars/list.js +3 -3
- package/dist/commands/northstars/recommendations/apply.d.ts +1 -1
- package/dist/commands/northstars/recommendations/apply.js +2 -2
- package/dist/commands/northstars/review-now.js +2 -2
- package/dist/commands/northstars/show.d.ts +3 -3
- package/dist/commands/northstars/show.js +5 -5
- package/dist/commands/northstars/unlink.d.ts +3 -3
- package/dist/commands/northstars/unlink.js +6 -6
- package/dist/commands/northstars/update.js +3 -3
- package/dist/commands/proposals/list.d.ts +3 -3
- package/dist/commands/proposals/list.js +7 -7
- package/dist/commands/spaces/auto-executor/compare.js +1 -1
- package/dist/commands/spaces/auto-executor/runs.js +1 -1
- package/dist/commands/spaces/heartbeats/list.js +2 -2
- package/dist/commands/spaces/index.js +2 -2
- package/dist/commands/spaces/list.d.ts +1 -1
- package/dist/commands/spaces/list.js +1 -1
- package/dist/commands/spaces/loops/migrate.d.ts +1 -1
- package/dist/commands/spaces/loops/migrate.js +1 -1
- package/dist/commands/spaces/loops/release.d.ts +1 -1
- package/dist/commands/spaces/loops/release.js +10 -10
- package/dist/commands/spaces/notebook.d.ts +2 -2
- package/dist/commands/spaces/notebook.js +2 -2
- package/dist/commands/spaces/proposals/discard.js +1 -1
- package/dist/commands/spaces/proposals/keep.js +1 -1
- package/dist/commands/spaces/triggers/show.js +3 -3
- package/dist/commands/spaces/write-policy/set.js +1 -1
- package/dist/commands/store/uninstall.js +2 -2
- package/dist/commands/subscriptions/health.d.ts +2 -2
- package/dist/commands/subscriptions/health.js +2 -2
- package/dist/commands/subscriptions/status.js +2 -2
- package/dist/commands/subscriptions/subscribe.js +4 -4
- package/dist/commands/tasks/create.d.ts +20 -1
- package/dist/commands/tasks/create.js +44 -3
- package/dist/commands/tasks/list.d.ts +7 -1
- package/dist/commands/tasks/list.js +2 -1
- package/dist/generated/agent-guides.json +496 -496
- package/dist/generated/managed-instruction-guides.json +2 -2
- package/dist/hooks/command-not-found.d.ts +1 -1
- package/dist/hooks/command-not-found.js +1 -1
- package/dist/lib/agent-chat-start.js +2 -1
- package/dist/lib/agent-trigger-listing.d.ts +4 -4
- package/dist/lib/agent-trigger-listing.js +7 -7
- package/dist/lib/always-on-command-result.d.ts +8 -1
- package/dist/lib/always-on-command-result.js +11 -2
- package/dist/lib/auth-failure.js +1 -1
- package/dist/lib/capability-matrix.d.ts +3 -3
- package/dist/lib/capability-matrix.js +9 -9
- package/dist/lib/command-hygiene.js +6 -6
- package/dist/lib/command-miss.js +1 -1
- package/dist/lib/compass-refusals.d.ts +1 -1
- package/dist/lib/compass-refusals.js +1 -1
- package/dist/lib/compasses.d.ts +5 -5
- package/dist/lib/compasses.js +15 -15
- package/dist/lib/dedicated-machines.js +2 -1
- package/dist/lib/dedicated-power.js +2 -0
- package/dist/lib/{commitments.d.ts → duties.d.ts} +198 -198
- package/dist/lib/{commitments.js → duties.js} +282 -282
- package/dist/lib/{commitment-analytics.d.ts → duty-analytics.d.ts} +18 -18
- package/dist/lib/{commitment-analytics.js → duty-analytics.js} +12 -12
- package/dist/lib/{commitment-attention-copy.d.ts → duty-attention-copy.d.ts} +6 -6
- package/dist/lib/{commitment-attention-copy.js → duty-attention-copy.js} +8 -8
- package/dist/lib/{commitment-endpoints.d.ts → duty-endpoints.d.ts} +6 -6
- package/dist/lib/{commitment-endpoints.js → duty-endpoints.js} +10 -10
- package/dist/lib/{commitment-event-wakes.d.ts → duty-event-wakes.d.ts} +2 -2
- package/dist/lib/{commitment-event-wakes.js → duty-event-wakes.js} +2 -2
- package/dist/lib/{commitment-ledgers.js → duty-ledgers.js} +3 -3
- package/dist/lib/{commitment-loop-status.d.ts → duty-loop-status.d.ts} +11 -11
- package/dist/lib/{commitment-loop-status.js → duty-loop-status.js} +22 -22
- package/dist/lib/{commitment-product.d.ts → duty-product.d.ts} +6 -6
- package/dist/lib/{commitment-product.js → duty-product.js} +5 -5
- package/dist/lib/{commitment-terms.d.ts → duty-terms.d.ts} +9 -9
- package/dist/lib/{commitment-terms.js → duty-terms.js} +21 -21
- package/dist/lib/entity-open.d.ts +1 -1
- package/dist/lib/entity-open.js +1 -1
- package/dist/lib/format.d.ts +1 -1
- package/dist/lib/grants.d.ts +3 -3
- package/dist/lib/grants.js +2 -2
- package/dist/lib/initiatives.js +4 -4
- package/dist/lib/node-adapter.js +1 -1
- package/dist/lib/northstars.d.ts +13 -13
- package/dist/lib/northstars.js +56 -56
- package/dist/lib/open-target.js +1 -1
- package/dist/lib/preflight-copy.js +5 -5
- package/dist/lib/proactiveApi.d.ts +4 -4
- package/dist/lib/proposals.js +16 -16
- package/dist/lib/responsibility-controls.d.ts +1 -1
- package/dist/lib/responsibility-controls.js +6 -6
- package/dist/lib/roles.d.ts +1 -1
- package/dist/lib/schedule.d.ts +5 -5
- package/dist/lib/schedule.js +1 -1
- package/dist/lib/session-task-write.d.ts +1 -1
- package/dist/lib/session-task-write.js +2 -2
- package/dist/lib/space-loop-migration.js +6 -6
- package/dist/lib/space-notebook.js +2 -2
- package/dist/lib/space-write-policy.js +2 -2
- package/dist/lib/stewardship-output.js +2 -2
- package/dist/lib/task-spec-verification.js +1 -1
- package/dist/lib/tasks.d.ts +1 -1
- package/dist/lib/tasks.js +8 -8
- package/dist/lib/triggers.d.ts +3 -3
- package/dist/lib/triggers.js +11 -10
- package/dist/lib/usage-discovery.js +2 -4
- package/dist/lib/web-url.d.ts +6 -6
- package/dist/lib/web-url.js +13 -13
- package/dist/lib/workspaces.d.ts +4 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/{commitmentExecutionContract.js → dutyExecutionContract.js} +22 -22
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceipt.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/executorStopReceiptV2.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.d.ts +9 -9
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.js +5 -5
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.d.ts +2 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +4 -4
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.d.ts → dutyExecutionContract.d.ts} +7 -7
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/{commitmentExecutionContract.js → dutyExecutionContract.js} +16 -16
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceipt.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/executorStopReceiptV2.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/profilePorts.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.d.ts +9 -9
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionPermissionAuthority.js +8 -8
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.d.ts +2 -2
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/sessionRevocation.js +6 -6
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/workspaceIsolationProbeWire.js +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/package.json +6 -6
- package/dist/node_modules/@skrr-ai/data-provider/index.js +8150 -8140
- package/docs/v1/lookback-plans.md +1 -1
- package/oclif.manifest.json +5337 -5337
- package/package.json +16 -16
- package/dist/commands/commitments/cadence-decisions.js +0 -41
- package/dist/commands/commitments/complete.js +0 -40
- package/dist/commands/commitments/goals/link.js +0 -41
- package/dist/commands/commitments/goals/unlink.js +0 -37
- package/dist/commands/commitments/lineage.js +0 -43
- package/dist/commands/commitments/restore.js +0 -46
- package/dist/commands/commitments/resume.js +0 -37
- package/dist/commands/commitments/roster.js +0 -39
- package/dist/commands/commitments/status.js +0 -41
- /package/dist/lib/{commitment-ledgers.d.ts → duty-ledgers.d.ts} +0 -0
package/dist/lib/open-target.js
CHANGED
|
@@ -33,7 +33,7 @@ const REF_KINDS = {
|
|
|
33
33
|
space: (id) => ({ kind: 'space', spaceId: id }),
|
|
34
34
|
task: (id) => ({ kind: 'task', taskId: id }),
|
|
35
35
|
goal: (id) => ({ kind: 'goal', goalId: id }),
|
|
36
|
-
|
|
36
|
+
duty: (id) => ({ kind: 'duty', dutyId: id }),
|
|
37
37
|
northstar: (id) => ({ kind: 'northstar', northstarId: id }),
|
|
38
38
|
// The owner's workspace for an agent you hold. To open a published agent's
|
|
39
39
|
// public page — the address you hand to someone else — use `listing:`.
|
|
@@ -15,16 +15,16 @@ exports.capabilityStatusLabel = capabilityStatusLabel;
|
|
|
15
15
|
/** What a refused event-source code means, in words. An unknown code is printed as it is. */
|
|
16
16
|
const SOURCE_REFUSAL_WORDS = {
|
|
17
17
|
source_authorization_descriptor_invalid: 'authorization record incomplete (it names no id to check access against)',
|
|
18
|
-
source_binding_detached: 'no longer matches a source attached to this
|
|
18
|
+
source_binding_detached: 'no longer matches a source attached to this Duty',
|
|
19
19
|
source_access_revoked: 'access refused',
|
|
20
20
|
source_access_unavailable: 'access could not be checked just now',
|
|
21
21
|
};
|
|
22
22
|
/** What an attached Sensor's refusal means, in words (OSK-22592, OSK-22593). */
|
|
23
23
|
const SENSOR_REFUSAL_WORDS = {
|
|
24
|
-
sensor_not_found: 'no longer exists, so this
|
|
24
|
+
sensor_not_found: 'no longer exists, so this Duty cannot see events from it. Attach a working sensor or remove the reference',
|
|
25
25
|
sensor_disabled: 'is disabled, so it delivers nothing. Enable it or remove the reference',
|
|
26
|
-
sensor_not_observer: 'is not an observing sensor, so it cannot wake this
|
|
27
|
-
sensor_workspace_scope_missing_or_mismatched: 'belongs to a different workspace than this
|
|
26
|
+
sensor_not_observer: 'is not an observing sensor, so it cannot wake this Duty',
|
|
27
|
+
sensor_workspace_scope_missing_or_mismatched: 'belongs to a different workspace than this Duty',
|
|
28
28
|
};
|
|
29
29
|
/** One sentence per attached Sensor that is not delivering, or null when it is. */
|
|
30
30
|
function sensorLine(row) {
|
|
@@ -74,7 +74,7 @@ function gateExplanationLines(gate) {
|
|
|
74
74
|
switch (gate.reason) {
|
|
75
75
|
case 'evidence_unconfigured':
|
|
76
76
|
return [
|
|
77
|
-
'No freshness expectation is set, so nothing will flag this
|
|
77
|
+
'No freshness expectation is set, so nothing will flag this Duty’s evidence as stale or silent.',
|
|
78
78
|
];
|
|
79
79
|
case 'evidence_stale': {
|
|
80
80
|
const criteria = Array.isArray(gate.detail?.criteria)
|
|
@@ -48,7 +48,7 @@ export interface ProactiveAgentSpec {
|
|
|
48
48
|
mode: OrchestratorMode;
|
|
49
49
|
executePlan: boolean;
|
|
50
50
|
};
|
|
51
|
-
|
|
51
|
+
duties?: Array<Record<string, unknown>>;
|
|
52
52
|
initialize?: {
|
|
53
53
|
goals?: Array<{
|
|
54
54
|
title: string;
|
|
@@ -146,7 +146,7 @@ export interface InstallPreviewResponse {
|
|
|
146
146
|
without: string[];
|
|
147
147
|
};
|
|
148
148
|
runtime: {
|
|
149
|
-
|
|
149
|
+
duties: 'can_run' | 'cannot_run' | 'unknown';
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
/** The defaults `--without` can decline; the server refuses any other name. */
|
|
@@ -223,7 +223,7 @@ export interface ApplyProactiveAgentResponse {
|
|
|
223
223
|
enabled?: boolean | null;
|
|
224
224
|
code?: string;
|
|
225
225
|
}>;
|
|
226
|
-
|
|
226
|
+
duties?: Array<{
|
|
227
227
|
id: string;
|
|
228
228
|
title?: string;
|
|
229
229
|
status?: string;
|
|
@@ -249,7 +249,7 @@ export interface ApplyProactiveAgentResponse {
|
|
|
249
249
|
enabled: boolean;
|
|
250
250
|
origin: 'requested' | 'default';
|
|
251
251
|
}> | null;
|
|
252
|
-
|
|
252
|
+
duties: Array<{
|
|
253
253
|
id: string;
|
|
254
254
|
title: string | null;
|
|
255
255
|
status: string | null;
|
package/dist/lib/proposals.js
CHANGED
|
@@ -69,7 +69,7 @@ function describeProposalNotFound(kind, id, bin = 'skrr') {
|
|
|
69
69
|
/* --------------------------------------------------------------------------
|
|
70
70
|
* A Northstar intent, in words
|
|
71
71
|
*
|
|
72
|
-
* `proposals list` showed the intent's TITLE as its kind code (`
|
|
72
|
+
* `proposals list` showed the intent's TITLE as its kind code (`pause_duty`),
|
|
73
73
|
* `proposals show` printed the raw JSON, `rejected` read as `discarded` (the inbox's
|
|
74
74
|
* own vocabulary, which says a person discarded something), and the sentence the
|
|
75
75
|
* governor wrote lived only inside the JSON. Everything below renders fields the
|
|
@@ -77,13 +77,13 @@ function describeProposalNotFound(kind, id, bin = 'skrr') {
|
|
|
77
77
|
* ------------------------------------------------------------------------ */
|
|
78
78
|
/** What each kind of intent does, as a phrase a target can follow. A new kind fails the build. */
|
|
79
79
|
const INTENT_PHRASE = {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
pause_duty: 'Pause',
|
|
81
|
+
resume_duty: 'Resume',
|
|
82
|
+
reprioritize_duty: 'Reprioritize',
|
|
83
|
+
request_duty_check: 'Check now:',
|
|
84
84
|
set_execution_bounds: 'Change the run bounds of',
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
create_duty_proposal: 'Start a new duty',
|
|
86
|
+
reassign_duty_proposal: 'Reassign',
|
|
87
87
|
};
|
|
88
88
|
/** The intent's own verdict, which the inbox flattens into proposed/kept/discarded/expired. */
|
|
89
89
|
const VERDICT_WORDS = {
|
|
@@ -99,10 +99,10 @@ function isNorthstarIntentView(view) {
|
|
|
99
99
|
return view.kind === 'northstar_intent' && Boolean(view.decisionContext?.snapshot);
|
|
100
100
|
}
|
|
101
101
|
function intentTarget(view) {
|
|
102
|
-
const id = view.decisionContext?.snapshot.
|
|
103
|
-
if (view.
|
|
104
|
-
return id ? `${view.
|
|
105
|
-
return id ?? 'a
|
|
102
|
+
const id = view.decisionContext?.snapshot.targetDutyId ?? view.dutyId;
|
|
103
|
+
if (view.dutyTitle)
|
|
104
|
+
return id ? `${view.dutyTitle} (${id})` : view.dutyTitle;
|
|
105
|
+
return id ?? 'a duty';
|
|
106
106
|
}
|
|
107
107
|
/**
|
|
108
108
|
* The intent's title in words: what it would DO, to what. Any other kind of proposal, and an
|
|
@@ -113,11 +113,11 @@ function proposalTitleFor(view) {
|
|
|
113
113
|
return view.title;
|
|
114
114
|
const snapshot = view.decisionContext.snapshot;
|
|
115
115
|
const phrase = INTENT_PHRASE[snapshot.kind] ?? snapshot.kind;
|
|
116
|
-
if (snapshot.kind === '
|
|
116
|
+
if (snapshot.kind === 'create_duty_proposal') {
|
|
117
117
|
const title = snapshot.payload?.title;
|
|
118
118
|
return typeof title === 'string' && title.trim() ? `${phrase}: ${title.trim()}` : phrase;
|
|
119
119
|
}
|
|
120
|
-
if (snapshot.kind === '
|
|
120
|
+
if (snapshot.kind === 'reassign_duty_proposal') {
|
|
121
121
|
const agent = snapshot.payload?.agentId;
|
|
122
122
|
const to = typeof agent === 'string' && agent ? ` to agent ${agent}` : '';
|
|
123
123
|
return `${phrase} ${intentTarget(view)}${to}`;
|
|
@@ -155,14 +155,14 @@ function renderNorthstarIntentView(view) {
|
|
|
155
155
|
const verdict = view.sourceStatus;
|
|
156
156
|
// The intent's own rating (`intentRisk`), the one `northstars intents list` prints under RISK.
|
|
157
157
|
const risk = (0, northstars_1.intentRisk)({ riskLevel: context.riskLevel ?? context.snapshot.riskLevel });
|
|
158
|
-
const hasTarget = Boolean(context.snapshot.
|
|
158
|
+
const hasTarget = Boolean(context.snapshot.targetDutyId || view.dutyId);
|
|
159
159
|
const lines = [proposalTitleFor(view), ''];
|
|
160
160
|
lines.push(`Proposal ${view.id}`);
|
|
161
161
|
lines.push(`Kind ${context.snapshot.kind}`);
|
|
162
162
|
// Said once, here, because this is where a person who saw a lower "recommendation risk" on the
|
|
163
163
|
// recommendation this came from looks for the reason the two differ.
|
|
164
164
|
lines.push(`Risk ${risk} (rated for this change; the recommendation behind it has its own "recommendation risk")`);
|
|
165
|
-
lines.push(`Target ${hasTarget ? intentTarget(view) : 'none (a new
|
|
165
|
+
lines.push(`Target ${hasTarget ? intentTarget(view) : 'none (a new duty)'}`);
|
|
166
166
|
if (context.reason)
|
|
167
167
|
lines.push(`Why ${context.reason}`);
|
|
168
168
|
lines.push(`Status ${VERDICT_WORDS[verdict] ?? verdict} (the inbox files it under "${view.disposition}")`);
|
|
@@ -193,7 +193,7 @@ function renderNorthstarIntentView(view) {
|
|
|
193
193
|
}
|
|
194
194
|
const continuation = view.continuation;
|
|
195
195
|
if (continuation) {
|
|
196
|
-
const bits = [continuation.status, continuation.
|
|
196
|
+
const bits = [continuation.status, continuation.dutyId, continuation.reason].filter(Boolean);
|
|
197
197
|
lines.push(`Continued ${bits.join(' · ')}`);
|
|
198
198
|
}
|
|
199
199
|
lines.push(`Revision ${JSON.stringify(view.revision)}`);
|
|
@@ -5,7 +5,7 @@ export declare const RESPONSIBILITY_CONTROL_SCOPES: readonly ["mute_updates", "p
|
|
|
5
5
|
* Presentation and authority fields cannot become request fields. The canonical
|
|
6
6
|
* service validates every attempt pin and rejects stale or enlarged selections.
|
|
7
7
|
*/
|
|
8
|
-
export declare function controlFromPreview(
|
|
8
|
+
export declare function controlFromPreview(dutyId: string, preview: Record<string, unknown>, idempotencyKey: string, reason?: string): Record<string, unknown>;
|
|
9
9
|
export declare function renderControl(value: Record<string, unknown>, log: (line: string) => void): void;
|
|
10
10
|
export declare function renderReadiness(value: Record<string, unknown>, log: (line: string) => void): void;
|
|
11
11
|
export declare function renderProbe(value: Record<string, unknown>, log: (line: string) => void): void;
|
|
@@ -17,9 +17,9 @@ function record(value) {
|
|
|
17
17
|
* Presentation and authority fields cannot become request fields. The canonical
|
|
18
18
|
* service validates every attempt pin and rejects stale or enlarged selections.
|
|
19
19
|
*/
|
|
20
|
-
function controlFromPreview(
|
|
21
|
-
if (preview.schemaVersion !== 1 || preview.
|
|
22
|
-
throw new Error('Use a control preview for this exact
|
|
20
|
+
function controlFromPreview(dutyId, preview, idempotencyKey, reason) {
|
|
21
|
+
if (preview.schemaVersion !== 1 || preview.dutyId !== dutyId) {
|
|
22
|
+
throw new Error('Use a control preview for this exact Duty.');
|
|
23
23
|
}
|
|
24
24
|
if (preview.available !== true)
|
|
25
25
|
throw new Error('The reviewed control is unavailable; refresh its preview.');
|
|
@@ -28,7 +28,7 @@ function controlFromPreview(commitmentId, preview, idempotencyKey, reason) {
|
|
|
28
28
|
}
|
|
29
29
|
if (typeof preview.expectedVersion !== 'number' || !Number.isSafeInteger(preview.expectedVersion)
|
|
30
30
|
|| preview.expectedVersion < 1)
|
|
31
|
-
throw new Error('The preview must pin its
|
|
31
|
+
throw new Error('The preview must pin its Duty version.');
|
|
32
32
|
if (!idempotencyKey.trim() || idempotencyKey.length > 200)
|
|
33
33
|
throw new Error('Use an idempotency key of 1..200 characters.');
|
|
34
34
|
if (reason !== undefined && reason.length > 1000)
|
|
@@ -69,7 +69,7 @@ function renderControl(value, log) {
|
|
|
69
69
|
if (value.controlId)
|
|
70
70
|
log(`Control receipt: ${value.controlId}`);
|
|
71
71
|
if (value.expectedVersion !== undefined)
|
|
72
|
-
log(`
|
|
72
|
+
log(`Duty version: ${value.expectedVersion}`);
|
|
73
73
|
if (value.unavailableReason)
|
|
74
74
|
log(`Reason: ${value.unavailableReason}`);
|
|
75
75
|
for (const key of ['affected', 'remaining']) {
|
|
@@ -86,7 +86,7 @@ function renderControl(value, log) {
|
|
|
86
86
|
log(String(warning));
|
|
87
87
|
}
|
|
88
88
|
function renderReadiness(value, log) {
|
|
89
|
-
const activation = value.object === '
|
|
89
|
+
const activation = value.object === 'duty_readiness_activation_receipt';
|
|
90
90
|
log(`${activation ? 'Activation' : 'Readiness'} receipt: ${value.id ?? 'not recorded'}`);
|
|
91
91
|
if (activation) {
|
|
92
92
|
log(`Validated version: ${value.validatedVersion ?? 'unknown'}`);
|
package/dist/lib/roles.d.ts
CHANGED
package/dist/lib/schedule.d.ts
CHANGED
|
@@ -7,11 +7,11 @@ export interface TodoTaskRef {
|
|
|
7
7
|
statusSnapshot: string;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* A direct
|
|
10
|
+
* A direct Duty block (Smart Schedule only). The server revalidates it at
|
|
11
11
|
* approval, so the CLI carries the draft's reference through untouched.
|
|
12
12
|
*/
|
|
13
|
-
export interface
|
|
14
|
-
|
|
13
|
+
export interface TodoDutyRef {
|
|
14
|
+
dutyId: string;
|
|
15
15
|
titleSnapshot?: string;
|
|
16
16
|
kindSnapshot?: string;
|
|
17
17
|
versionSnapshot: number;
|
|
@@ -68,7 +68,7 @@ export interface ProposedTodo {
|
|
|
68
68
|
confidence?: TodoConfidence;
|
|
69
69
|
dropped?: boolean;
|
|
70
70
|
taskRefs?: TodoTaskRef[];
|
|
71
|
-
|
|
71
|
+
dutyRefs?: TodoDutyRef[];
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
74
|
* A block from the previously approved plan that approving this draft cancels
|
|
@@ -189,7 +189,7 @@ export interface ApproveTodoInput {
|
|
|
189
189
|
timezone?: string;
|
|
190
190
|
durationMinutes?: number;
|
|
191
191
|
taskRefs?: TodoTaskRef[];
|
|
192
|
-
|
|
192
|
+
dutyRefs?: TodoDutyRef[];
|
|
193
193
|
rationale?: string;
|
|
194
194
|
confidence?: TodoConfidence;
|
|
195
195
|
}
|
package/dist/lib/schedule.js
CHANGED
|
@@ -556,7 +556,7 @@ function proposalToApproveTodos(proposal) {
|
|
|
556
556
|
// The draft's references are part of what the reviewer approved. Leaving
|
|
557
557
|
// them out makes the server create an unlinked To-Do (OSK-22413).
|
|
558
558
|
...(t.taskRefs ? { taskRefs: t.taskRefs } : {}),
|
|
559
|
-
...(t.
|
|
559
|
+
...(t.dutyRefs ? { dutyRefs: t.dutyRefs } : {}),
|
|
560
560
|
rationale: t.rationale,
|
|
561
561
|
confidence: t.confidence,
|
|
562
562
|
}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SessionTaskOperation } from './session-task-endpoints';
|
|
2
2
|
/**
|
|
3
3
|
* The server's refusal when a session's run carries no Task at all — a
|
|
4
|
-
*
|
|
4
|
+
* Duty, Routine or other autonomous run that is not a Task run. It is
|
|
5
5
|
* the ONE refusal that means "the session-scoped route does not apply here",
|
|
6
6
|
* not "you may not write": such a run legitimately writes the Tasks it created
|
|
7
7
|
* or was handed, through the generic `/api/tasks/:id/*` routes, where
|
|
@@ -8,7 +8,7 @@ const credential_resolver_1 = require("./credential-resolver");
|
|
|
8
8
|
const session_task_endpoints_1 = require("./session-task-endpoints");
|
|
9
9
|
/**
|
|
10
10
|
* The server's refusal when a session's run carries no Task at all — a
|
|
11
|
-
*
|
|
11
|
+
* Duty, Routine or other autonomous run that is not a Task run. It is
|
|
12
12
|
* the ONE refusal that means "the session-scoped route does not apply here",
|
|
13
13
|
* not "you may not write": such a run legitimately writes the Tasks it created
|
|
14
14
|
* or was handed, through the generic `/api/tasks/:id/*` routes, where
|
|
@@ -67,7 +67,7 @@ async function sessionTaskWrite(operation, requestedTask, env = process.env) {
|
|
|
67
67
|
code: 'SESSION_TASK_CREDENTIAL_MISSING',
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
// A run with no bound Task (e.g. a
|
|
70
|
+
// A run with no bound Task (e.g. a Duty run) has no session-scoped
|
|
71
71
|
// Task surface; its writes take the generic routes (OSK-16124).
|
|
72
72
|
if (sessionsWithoutBoundTask.has(sessionId))
|
|
73
73
|
return null;
|
|
@@ -5,7 +5,7 @@ exports.applyLines = applyLines;
|
|
|
5
5
|
const space_notebook_1 = require("./space-notebook");
|
|
6
6
|
const SHAPE_WORD = {
|
|
7
7
|
space_loop: "the Space's loop",
|
|
8
|
-
member_automation: "its owner's own
|
|
8
|
+
member_automation: "its owner's own Duty, delivering into the Space",
|
|
9
9
|
};
|
|
10
10
|
const OUTCOME_WORD = {
|
|
11
11
|
handed_over: 'handed over',
|
|
@@ -31,7 +31,7 @@ function convertLines(entry) {
|
|
|
31
31
|
lines.push(` becomes ${SHAPE_WORD[target.shape] || target.shape}: owned by user ${target.ownerUserId}, held by agent ${target.agentId}`);
|
|
32
32
|
}
|
|
33
33
|
if (entry.pointer) {
|
|
34
|
-
lines.push(` loop ${entry.pointer.
|
|
34
|
+
lines.push(` loop ${entry.pointer.dutyId} (${entry.pointer.loopStatus || 'unknown'}); the entry keeps firing until it is active`);
|
|
35
35
|
}
|
|
36
36
|
const cadence = entry.cadence;
|
|
37
37
|
if (cadence) {
|
|
@@ -54,8 +54,8 @@ function planLines(plan, { binName = 'skrr' } = {}) {
|
|
|
54
54
|
const lines = [
|
|
55
55
|
`Converting ${plan.sourceLabel} entries of space ${plan.spaceId} into Space loops`,
|
|
56
56
|
plan.executionPrincipal
|
|
57
|
-
? `Execution principal: user ${plan.executionPrincipal.userId} (version ${plan.executionPrincipal.version}). Their entries become the Space's loops; everyone else's become their own
|
|
58
|
-
: "This Space has no active execution principal, so every entry becomes its owner's own
|
|
57
|
+
? `Execution principal: user ${plan.executionPrincipal.userId} (version ${plan.executionPrincipal.version}). Their entries become the Space's loops; everyone else's become their own Duties.`
|
|
58
|
+
: "This Space has no active execution principal, so every entry becomes its owner's own Duty.",
|
|
59
59
|
];
|
|
60
60
|
if (plan.entryScope === 'owner') {
|
|
61
61
|
lines.push(`A ${plan.sourceLabel} is private to its member: this plan lists only yours, and each member converts their own.`);
|
|
@@ -79,7 +79,7 @@ function planLines(plan, { binName = 'skrr' } = {}) {
|
|
|
79
79
|
}
|
|
80
80
|
else if (entry.disposition === 'handed_over') {
|
|
81
81
|
const status = entry.pointer?.loopStatus;
|
|
82
|
-
lines.push(`${entryHeading(entry)}: retired, replaced by loop ${entry.pointer?.
|
|
82
|
+
lines.push(`${entryHeading(entry)}: retired, replaced by loop ${entry.pointer?.dutyId} (${status || 'unknown'})${status && status !== 'active' && status !== 'paused'
|
|
83
83
|
? '. A retired entry stays retired; make a new loop or heartbeat to bring the turn back.'
|
|
84
84
|
: ''}`);
|
|
85
85
|
}
|
|
@@ -112,7 +112,7 @@ function planLines(plan, { binName = 'skrr' } = {}) {
|
|
|
112
112
|
function applyLines(response) {
|
|
113
113
|
const lines = response.results.map((result) => {
|
|
114
114
|
const word = OUTCOME_WORD[result.outcome] || result.outcome;
|
|
115
|
-
const loop = result.
|
|
115
|
+
const loop = result.dutyId ? ` -> loop ${result.dutyId}` : '';
|
|
116
116
|
const code = result.code ? ` (${result.code})` : '';
|
|
117
117
|
const detail = result.detail ? `: ${(0, space_notebook_1.oneLine)(result.detail, 240)}` : '';
|
|
118
118
|
return `${result.entryId} ${word}${loop}${code}${detail}`;
|
|
@@ -56,9 +56,9 @@ const LINK_WORD = {
|
|
|
56
56
|
};
|
|
57
57
|
const VISIBILITY_WORD = {
|
|
58
58
|
space_access: 'shared with the Space',
|
|
59
|
-
|
|
59
|
+
duty_access: 'only for people who can open the Duty',
|
|
60
60
|
};
|
|
61
|
-
/** Which
|
|
61
|
+
/** Which Duty a loop row came from, and who may see the row. */
|
|
62
62
|
function loopLine(row) {
|
|
63
63
|
const link = LINK_WORD[row.loop.link] || row.loop.link;
|
|
64
64
|
const seen = VISIBILITY_WORD[row.visibility] || row.visibility;
|
|
@@ -88,8 +88,8 @@ function spaceWritePendingLines(body, { binName }) {
|
|
|
88
88
|
body.message,
|
|
89
89
|
`Approval bundle: ${proposal.id} (item ${proposal.itemId})`,
|
|
90
90
|
];
|
|
91
|
-
if (proposal.
|
|
92
|
-
lines.push(`Review it: ${binName}
|
|
91
|
+
if (proposal.dutyId) {
|
|
92
|
+
lines.push(`Review it: ${binName} duties action-proposals ${proposal.dutyId}`);
|
|
93
93
|
}
|
|
94
94
|
if (proposal.expiresAt)
|
|
95
95
|
lines.push(`Expires: ${proposal.expiresAt}`);
|
|
@@ -38,7 +38,7 @@ function printStewardshipCoverage(report, log) {
|
|
|
38
38
|
if (source.unlisted) {
|
|
39
39
|
// A capped count is a lower bound; say so rather than print 200 as exact.
|
|
40
40
|
const count = `${source.truncated ? 'at least ' : ''}${source.unlisted}`;
|
|
41
|
-
log(`${source.name}: ${count} Grant${source.unlisted === 1 && !source.truncated ? '' : 's'} on an Agent or
|
|
41
|
+
log(`${source.name}: ${count} Grant${source.unlisted === 1 && !source.truncated ? '' : 's'} on an Agent or Duty in this workspace carry no workspace stamp, so they are not listed here. Their owners can see them with \`skrr grants list\`.`);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -106,7 +106,7 @@ function printWorkspaceStewardship(report, log) {
|
|
|
106
106
|
? `${rows.length} shown, cut at the row cap (there are more)`
|
|
107
107
|
: String(rows.length);
|
|
108
108
|
for (const [name, source, rows] of [
|
|
109
|
-
['
|
|
109
|
+
['Duties', 'duties', report.duties],
|
|
110
110
|
['Approver seats', 'approverSeats', report.approverSeats],
|
|
111
111
|
]) {
|
|
112
112
|
log(`${name}: ${count(rows, source)}`);
|
|
@@ -5,7 +5,7 @@ exports.verifyTaskSpecifications = verifyTaskSpecifications;
|
|
|
5
5
|
const node_util_1 = require("node:util");
|
|
6
6
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
7
7
|
const FIELDS = [
|
|
8
|
-
'title', 'status', 'priority', 'estimate', '
|
|
8
|
+
'title', 'status', 'priority', 'estimate', 'dutyId', 'spaceId', 'goalId', 'projectId', 'parentId',
|
|
9
9
|
'externalKey', 'executionMode', 'reviewPolicy', 'assigneeAgentIds',
|
|
10
10
|
'assigneeUserIds', 'labelIds', 'tags', 'workingDirectory', 'executionIsolation',
|
|
11
11
|
'startDate', 'dueDate', 'expectations', 'blocksIds', 'blockedByIds',
|
package/dist/lib/tasks.d.ts
CHANGED
package/dist/lib/tasks.js
CHANGED
|
@@ -319,7 +319,7 @@ function normalizeTaskCreateJsonAliases(body) {
|
|
|
319
319
|
['parent', 'parentId'],
|
|
320
320
|
['space', 'spaceId'],
|
|
321
321
|
['goal', 'goalId'],
|
|
322
|
-
['
|
|
322
|
+
['duty', 'dutyId'],
|
|
323
323
|
['project', 'projectId'],
|
|
324
324
|
['cycle', 'cycleId'],
|
|
325
325
|
['spawnedBy', 'spawnedByTaskId'],
|
|
@@ -361,7 +361,7 @@ function buildTaskCreatePayload(body, flags = {}) {
|
|
|
361
361
|
parentId: flags.parent,
|
|
362
362
|
spaceId: flags.space,
|
|
363
363
|
goalId: flags.goal,
|
|
364
|
-
|
|
364
|
+
dutyId: flags.duty,
|
|
365
365
|
projectId: flags.project,
|
|
366
366
|
cycleId: flags.cycle,
|
|
367
367
|
assigneeAgentIds: flags['assignee-agent'],
|
|
@@ -417,13 +417,13 @@ function applyDaemonSessionDefaults(payload) {
|
|
|
417
417
|
if (spaceId)
|
|
418
418
|
payload.spaceId = spaceId;
|
|
419
419
|
}
|
|
420
|
-
// A
|
|
420
|
+
// A duty-owned agent run can create work that does not belong to a
|
|
421
421
|
// Goal. Preserve that durable ownership edge so later checks can observe the
|
|
422
422
|
// task rather than inferring it from its title, creator, or GitHub SHA.
|
|
423
|
-
if (!Object.prototype.hasOwnProperty.call(payload, '
|
|
424
|
-
const
|
|
425
|
-
if (
|
|
426
|
-
payload.
|
|
423
|
+
if (!Object.prototype.hasOwnProperty.call(payload, 'dutyId')) {
|
|
424
|
+
const dutyId = envFirst('OVERSKY_SESSION_DUTY_ID', 'OVERSKY_DUTY_ID');
|
|
425
|
+
if (dutyId)
|
|
426
|
+
payload.dutyId = dutyId;
|
|
427
427
|
}
|
|
428
428
|
if (!Object.prototype.hasOwnProperty.call(payload, 'sourceConversationId')) {
|
|
429
429
|
const conversationId = envFirst('OVERSKY_SESSION_CONVERSATION_ID', 'OVERSKY_CONVERSATION_ID');
|
|
@@ -482,7 +482,7 @@ function validateTaskCreatePayload(payload) {
|
|
|
482
482
|
for (const field of [
|
|
483
483
|
'parentId',
|
|
484
484
|
'goalId',
|
|
485
|
-
'
|
|
485
|
+
'dutyId',
|
|
486
486
|
'spaceId',
|
|
487
487
|
'sourceConversationId',
|
|
488
488
|
'sourceMessageId',
|
package/dist/lib/triggers.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ export declare const TRIGGER_KINDS: readonly ["schedule", "once", "event", "stoc
|
|
|
3
3
|
/**
|
|
4
4
|
* The scope kinds the trigger endpoints accept. NOT a list of its own: `@skrr-ai/data-provider` owns it
|
|
5
5
|
* (`TRIGGER_API_SCOPE_KINDS`) and the API route reads the same array. The hand-written copy that stood here
|
|
6
|
-
* lacked `
|
|
6
|
+
* lacked `duty_watcher` and `space_cycle`, so `triggers list --scope duty_watcher` was refused locally
|
|
7
7
|
* for a scope the server serves (OSK-21518). `trigger-scope-kinds-parity.spec.ts` pins it.
|
|
8
8
|
*/
|
|
9
|
-
export declare const TRIGGER_SCOPE_KINDS: readonly ["agent", "group_chat_subscriber", "space_oracle", "space_subscriber", "key_result_watcher", "task_watcher", "goal_watcher", "
|
|
9
|
+
export declare const TRIGGER_SCOPE_KINDS: readonly ["agent", "group_chat_subscriber", "space_oracle", "space_subscriber", "key_result_watcher", "task_watcher", "goal_watcher", "duty_watcher", "entity_reminder", "space_cycle"];
|
|
10
10
|
/**
|
|
11
11
|
* Executor modes this CLI will let you author.
|
|
12
12
|
*
|
|
@@ -177,7 +177,7 @@ export interface TriggerDefinition {
|
|
|
177
177
|
* the loop is active; `retired`: replaced by the loop, read-only, does not run.
|
|
178
178
|
*/
|
|
179
179
|
supersededBy?: {
|
|
180
|
-
|
|
180
|
+
dutyId?: string;
|
|
181
181
|
state?: string;
|
|
182
182
|
recordedAt?: string;
|
|
183
183
|
retiredAt?: string;
|
package/dist/lib/triggers.js
CHANGED
|
@@ -81,6 +81,7 @@ const http_error_1 = require("./http-error");
|
|
|
81
81
|
const format_1 = require("./format");
|
|
82
82
|
const planOutcome_1 = require("./planOutcome");
|
|
83
83
|
const failedRunCause_1 = require("./failedRunCause");
|
|
84
|
+
const LAST_RESULT_LABEL_RE = /^(outside_working_hours|inside_quiet_hours)(?::\1)?$/;
|
|
84
85
|
const PARSE_JSON_ARRAY_RE = /^[[{]/;
|
|
85
86
|
const ARMED_STATE_LABEL_RE = /^skipped:(.+)$/;
|
|
86
87
|
const WEBHOOK_INGEST_URL_RE = /\/+$/;
|
|
@@ -97,7 +98,7 @@ exports.TRIGGER_KINDS = [
|
|
|
97
98
|
/**
|
|
98
99
|
* The scope kinds the trigger endpoints accept. NOT a list of its own: `@skrr-ai/data-provider` owns it
|
|
99
100
|
* (`TRIGGER_API_SCOPE_KINDS`) and the API route reads the same array. The hand-written copy that stood here
|
|
100
|
-
* lacked `
|
|
101
|
+
* lacked `duty_watcher` and `space_cycle`, so `triggers list --scope duty_watcher` was refused locally
|
|
101
102
|
* for a scope the server serves (OSK-21518). `trigger-scope-kinds-parity.spec.ts` pins it.
|
|
102
103
|
*/
|
|
103
104
|
exports.TRIGGER_SCOPE_KINDS = data_provider_1.TRIGGER_API_SCOPE_KINDS;
|
|
@@ -378,8 +379,8 @@ const SCOPE_EXPECTED_REF_KEYS = {
|
|
|
378
379
|
task_watcher: ['taskId', 'watcherAgentId'],
|
|
379
380
|
key_result_watcher: ['keyResultId', 'watcherAgentId'],
|
|
380
381
|
space_subscriber: ['spaceId', 'agentId', 'subscriberUserId'],
|
|
381
|
-
// `
|
|
382
|
-
|
|
382
|
+
// `dutyId` is the one the resolver requires; it also reads optional agentId/goalId/spaceId/... refs.
|
|
383
|
+
duty_watcher: ['dutyId'],
|
|
383
384
|
};
|
|
384
385
|
function parseKeyValueFlags(values, flagName, scopeKind) {
|
|
385
386
|
const refs = {};
|
|
@@ -1512,7 +1513,7 @@ windowVerdict) {
|
|
|
1512
1513
|
}
|
|
1513
1514
|
// "Will fire" is the row's intent. A platform-managed row whose owner is fenced (Always-On off) ticks on
|
|
1514
1515
|
// schedule and is skipped every time, and the same screen's `Fires:` line says so; the first line a reader
|
|
1515
|
-
// meets must not say the opposite (dogfood df-261031-
|
|
1516
|
+
// meets must not say the opposite (dogfood df-261031-duty-authoring, OSK-21103).
|
|
1516
1517
|
const skipped = typeof lastResult === 'string' ? ARMED_STATE_LABEL_RE.exec(lastResult) : null;
|
|
1517
1518
|
return skipped
|
|
1518
1519
|
? `yes — but its last tick was skipped (${skipped[1]}), so it did not run`
|
|
@@ -1643,8 +1644,8 @@ function debounceSpan(ms) {
|
|
|
1643
1644
|
function debounceSummaryLine(trigger) {
|
|
1644
1645
|
if (trigger.kind !== 'event')
|
|
1645
1646
|
return undefined;
|
|
1646
|
-
// A
|
|
1647
|
-
if (trigger.scope?.kind === '
|
|
1647
|
+
// A Duty wake coalesces in the wake ledger; TriggerEngine never debounces those fires.
|
|
1648
|
+
if (trigger.scope?.kind === 'duty_watcher' || trigger.execution?.mode === 'duty_reflection') {
|
|
1648
1649
|
return undefined;
|
|
1649
1650
|
}
|
|
1650
1651
|
const ms = trigger.event?.debounceMs;
|
|
@@ -1773,10 +1774,10 @@ function renderTriggerSummary(trigger, log, options = {}) {
|
|
|
1773
1774
|
}
|
|
1774
1775
|
// A trigger converted into a Space loop is read-only, and says where its turn went.
|
|
1775
1776
|
const loop = trigger.supersededBy;
|
|
1776
|
-
if (loop?.
|
|
1777
|
+
if (loop?.dutyId) {
|
|
1777
1778
|
log(loop.state === 'retired'
|
|
1778
|
-
? `Loop: replaced by Space loop ${loop.
|
|
1779
|
-
: `Loop: being converted into Space loop ${loop.
|
|
1779
|
+
? `Loop: replaced by Space loop ${loop.dutyId}; read-only and does not run (skrr duties show ${loop.dutyId})`
|
|
1780
|
+
: `Loop: being converted into Space loop ${loop.dutyId}; read-only, and keeps firing until the loop is active`);
|
|
1780
1781
|
}
|
|
1781
1782
|
if (trigger.label)
|
|
1782
1783
|
log(`Label: ${trigger.label}`);
|
|
@@ -1996,7 +1997,7 @@ function lastResultLabel(trigger) {
|
|
|
1996
1997
|
const last = trigger.audit?.lastResult;
|
|
1997
1998
|
if (typeof last !== 'string' || !last)
|
|
1998
1999
|
return undefined;
|
|
1999
|
-
const code =
|
|
2000
|
+
const code = LAST_RESULT_LABEL_RE.exec(last)?.[1];
|
|
2000
2001
|
if (!code)
|
|
2001
2002
|
return last;
|
|
2002
2003
|
const summary = clockSkipAuditExplanation({
|
|
@@ -10,6 +10,7 @@ exports.renderUsageOverview = renderUsageOverview;
|
|
|
10
10
|
exports.renderUsageReference = renderUsageReference;
|
|
11
11
|
exports.auditUsageBudgets = auditUsageBudgets;
|
|
12
12
|
const command_manifest_1 = require("./command-manifest");
|
|
13
|
+
const EXAMPLE_FOR_RE = /<%=\s*config\.bin\s*%>/g;
|
|
13
14
|
const COMPACT_RE = /\s+/g;
|
|
14
15
|
/**
|
|
15
16
|
* `skrr commands --json` is intentionally exhaustive. That makes it the right
|
|
@@ -230,10 +231,7 @@ function usageCommand(entry, bin) {
|
|
|
230
231
|
};
|
|
231
232
|
}
|
|
232
233
|
function exampleFor(entry, bin) {
|
|
233
|
-
const raw = entry.examples[0]
|
|
234
|
-
?.replace(/<%=\s*config\.bin\s*%>/g, bin)
|
|
235
|
-
.split('#')[0]
|
|
236
|
-
.trim();
|
|
234
|
+
const raw = entry.examples[0]?.replace(EXAMPLE_FOR_RE, bin).split('#')[0].trim();
|
|
237
235
|
return compact(raw || `${bin} ${entry.command}`, 96);
|
|
238
236
|
}
|
|
239
237
|
function compact(value, maxCharacters) {
|
package/dist/lib/web-url.d.ts
CHANGED
|
@@ -37,8 +37,8 @@ export type WebUrlRef = {
|
|
|
37
37
|
goalId: string;
|
|
38
38
|
spaceId?: string | null;
|
|
39
39
|
} | {
|
|
40
|
-
kind: '
|
|
41
|
-
|
|
40
|
+
kind: 'duty';
|
|
41
|
+
dutyId: string;
|
|
42
42
|
} | {
|
|
43
43
|
kind: 'northstar';
|
|
44
44
|
northstarId: string;
|
|
@@ -141,8 +141,8 @@ export declare function conversationUrlFrom(baseURL: string, conversation: Entit
|
|
|
141
141
|
export declare function groupChatUrlFrom(baseURL: string, chat: EntityRecord): string | null;
|
|
142
142
|
/** Build a goal URL from a raw server goal record. */
|
|
143
143
|
export declare function goalUrlFrom(baseURL: string, goal: EntityRecord): string | null;
|
|
144
|
-
/** Build a
|
|
145
|
-
export declare function
|
|
144
|
+
/** Build a duty URL from a raw server duty record. */
|
|
145
|
+
export declare function dutyUrlFrom(baseURL: string, duty: EntityRecord): string | null;
|
|
146
146
|
/** Build a Northstar detail URL from a raw server Northstar record. */
|
|
147
147
|
export declare function northstarUrlFrom(baseURL: string, northstar: EntityRecord): string | null;
|
|
148
148
|
/** Build an agent detail URL from a raw server agent record. */
|
|
@@ -186,8 +186,8 @@ export declare function wikiPageUrlFrom(baseURL: string, page: EntityRecord): st
|
|
|
186
186
|
export declare function withWikiPageUrl<T extends EntityRecord>(baseURL: string, page: T): T & {
|
|
187
187
|
url: string | null;
|
|
188
188
|
};
|
|
189
|
-
/** Return a shallow copy of a
|
|
190
|
-
export declare function
|
|
189
|
+
/** Return a shallow copy of a duty record with a `url` field attached. */
|
|
190
|
+
export declare function withDutyUrl<T extends EntityRecord>(baseURL: string, duty: T): T & {
|
|
191
191
|
url: string | null;
|
|
192
192
|
};
|
|
193
193
|
/** Return a shallow copy of a Northstar record with a canonical web URL. */
|