@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
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
/**
|
|
3
|
-
* `skrr northstars link <northstar-id> <
|
|
3
|
+
* `skrr northstars link <northstar-id> <duty-id>` — put a duty into
|
|
4
4
|
* a portfolio.
|
|
5
5
|
*
|
|
6
|
-
* By default the
|
|
6
|
+
* By default the duty INHERITS the northstar's priority and its
|
|
7
7
|
* `priority.source` becomes `northstar`, which is what makes portfolio-level
|
|
8
|
-
* reprioritization meaningful later. Pass `--keep-priority` when the
|
|
8
|
+
* reprioritization meaningful later. Pass `--keep-priority` when the duty
|
|
9
9
|
* should belong to the portfolio while keeping a priority you set by hand.
|
|
10
10
|
*/
|
|
11
11
|
export default class NorthstarsLink extends BaseCommand {
|
|
@@ -13,7 +13,7 @@ export default class NorthstarsLink extends BaseCommand {
|
|
|
13
13
|
static examples: string[];
|
|
14
14
|
static args: {
|
|
15
15
|
northstarId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
16
|
-
|
|
16
|
+
dutyId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
17
17
|
};
|
|
18
18
|
static flags: {
|
|
19
19
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
@@ -4,28 +4,28 @@ const core_1 = require("@oclif/core");
|
|
|
4
4
|
const base_command_1 = require("../../base-command");
|
|
5
5
|
const northstars_1 = require("../../lib/northstars");
|
|
6
6
|
/**
|
|
7
|
-
* `skrr northstars link <northstar-id> <
|
|
7
|
+
* `skrr northstars link <northstar-id> <duty-id>` — put a duty into
|
|
8
8
|
* a portfolio.
|
|
9
9
|
*
|
|
10
|
-
* By default the
|
|
10
|
+
* By default the duty INHERITS the northstar's priority and its
|
|
11
11
|
* `priority.source` becomes `northstar`, which is what makes portfolio-level
|
|
12
|
-
* reprioritization meaningful later. Pass `--keep-priority` when the
|
|
12
|
+
* reprioritization meaningful later. Pass `--keep-priority` when the duty
|
|
13
13
|
* should belong to the portfolio while keeping a priority you set by hand.
|
|
14
14
|
*/
|
|
15
15
|
class NorthstarsLink extends base_command_1.BaseCommand {
|
|
16
|
-
static description = 'Link a
|
|
16
|
+
static description = 'Link a duty into a northstar portfolio';
|
|
17
17
|
static examples = [
|
|
18
18
|
'<%= config.bin %> northstars link nst_abc123 cmt_xyz789',
|
|
19
19
|
'<%= config.bin %> northstars link nst_abc123 cmt_xyz789 --keep-priority',
|
|
20
20
|
];
|
|
21
21
|
static args = {
|
|
22
22
|
northstarId: core_1.Args.string({ ignoreStdin: true, description: 'Northstar ID', required: true }),
|
|
23
|
-
|
|
23
|
+
dutyId: core_1.Args.string({ ignoreStdin: true, description: 'Duty ID', required: true }),
|
|
24
24
|
};
|
|
25
25
|
static flags = {
|
|
26
26
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
27
27
|
'keep-priority': core_1.Flags.boolean({
|
|
28
|
-
description: "Do not overwrite the
|
|
28
|
+
description: "Do not overwrite the duty's priority with the northstar's",
|
|
29
29
|
}),
|
|
30
30
|
};
|
|
31
31
|
async run() {
|
|
@@ -34,7 +34,7 @@ class NorthstarsLink extends base_command_1.BaseCommand {
|
|
|
34
34
|
let result;
|
|
35
35
|
try {
|
|
36
36
|
result = await northstars_1.northstarApi.link(args.northstarId, {
|
|
37
|
-
|
|
37
|
+
dutyId: args.dutyId,
|
|
38
38
|
inheritPriority: !flags['keep-priority'],
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -45,7 +45,7 @@ class NorthstarsLink extends base_command_1.BaseCommand {
|
|
|
45
45
|
this.log(JSON.stringify(result, null, 2));
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
|
-
this.log(`Linked ${args.
|
|
48
|
+
this.log(`Linked ${args.dutyId} → ${args.northstarId}.`);
|
|
49
49
|
if (!flags['keep-priority']) {
|
|
50
50
|
this.log('Priority now inherits from the northstar (priority.source = northstar).');
|
|
51
51
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
/**
|
|
3
|
-
* `skrr northstars list` — the strategic portfolio layer above
|
|
3
|
+
* `skrr northstars list` — the strategic portfolio layer above duties.
|
|
4
4
|
*
|
|
5
5
|
* A Northstar is not a goal and not a unit of work: it groups and prioritizes a
|
|
6
|
-
* SET of
|
|
6
|
+
* SET of duties, allocates attention and compute across them, and reviews
|
|
7
7
|
* their health on a cadence.
|
|
8
8
|
*/
|
|
9
9
|
export default class NorthstarsList extends BaseCommand {
|
|
@@ -5,14 +5,14 @@ const core_1 = require("@oclif/core");
|
|
|
5
5
|
const base_command_1 = require("../../base-command");
|
|
6
6
|
const northstars_1 = require("../../lib/northstars");
|
|
7
7
|
/**
|
|
8
|
-
* `skrr northstars list` — the strategic portfolio layer above
|
|
8
|
+
* `skrr northstars list` — the strategic portfolio layer above duties.
|
|
9
9
|
*
|
|
10
10
|
* A Northstar is not a goal and not a unit of work: it groups and prioritizes a
|
|
11
|
-
* SET of
|
|
11
|
+
* SET of duties, allocates attention and compute across them, and reviews
|
|
12
12
|
* their health on a cadence.
|
|
13
13
|
*/
|
|
14
14
|
class NorthstarsList extends base_command_1.BaseCommand {
|
|
15
|
-
static description = `List northstars (the portfolio layer above
|
|
15
|
+
static description = `List northstars (the portfolio layer above duties)\n\nThe WORKSPACE column is a shortened workspace id (--json has the full workspaceId) or "personal". ${northstars_1.NORTHSTAR_WORKSPACE_READ_HELP}`;
|
|
16
16
|
static examples = [
|
|
17
17
|
'<%= config.bin %> northstars list',
|
|
18
18
|
'<%= config.bin %> northstars list --status active',
|
|
@@ -3,7 +3,7 @@ import { BaseCommand } from '../../../base-command';
|
|
|
3
3
|
* `skrr northstars recommendations apply <id> <rec-id>` — act on one
|
|
4
4
|
* deterministic recommendation.
|
|
5
5
|
*
|
|
6
|
-
* `
|
|
6
|
+
* `create_duty` and `reassign_duty` are acknowledged but NOT
|
|
7
7
|
* executed: both mint or move an obligation, and the server keeps that a human
|
|
8
8
|
* action. The command says so rather than letting you assume work happened.
|
|
9
9
|
*/
|
|
@@ -7,12 +7,12 @@ const northstars_1 = require("../../../lib/northstars");
|
|
|
7
7
|
* `skrr northstars recommendations apply <id> <rec-id>` — act on one
|
|
8
8
|
* deterministic recommendation.
|
|
9
9
|
*
|
|
10
|
-
* `
|
|
10
|
+
* `create_duty` and `reassign_duty` are acknowledged but NOT
|
|
11
11
|
* executed: both mint or move an obligation, and the server keeps that a human
|
|
12
12
|
* action. The command says so rather than letting you assume work happened.
|
|
13
13
|
*/
|
|
14
14
|
class NorthstarsRecommendationsApply extends base_command_1.BaseCommand {
|
|
15
|
-
static description = 'Apply a northstar recommendation through
|
|
15
|
+
static description = 'Apply a northstar recommendation through DutyControl';
|
|
16
16
|
static examples = [
|
|
17
17
|
'<%= config.bin %> northstars recommendations apply nst_abc123 a1b2c3d4',
|
|
18
18
|
];
|
|
@@ -46,8 +46,8 @@ class NorthstarsReviewNow extends base_command_1.BaseCommand {
|
|
|
46
46
|
this.log(`Review ${String(review.id)} (${String(review.status)})`);
|
|
47
47
|
}
|
|
48
48
|
this.log((0, northstars_1.describeReviewAllocations)(result));
|
|
49
|
-
// The allocation above gives each
|
|
50
|
-
// the number of active
|
|
49
|
+
// The allocation above gives each duty at least 1/day; when the budget is smaller than
|
|
50
|
+
// the number of active duties that adds up to more than the budget (OSK-21334).
|
|
51
51
|
const floorNote = (0, northstars_1.runBudgetFloorNote)(result.runBudgetFloor);
|
|
52
52
|
if (floorNote)
|
|
53
53
|
this.log(` ! ${floorNote}`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
/**
|
|
3
|
-
* The API envelopes the portfolio as `{ northstar,
|
|
3
|
+
* The API envelopes the portfolio as `{ northstar, duties }`, while
|
|
4
4
|
* create/list return a Northstar resource directly. Keep the portfolio data
|
|
5
5
|
* but make the CLI JSON chainable through the standard top-level `id`.
|
|
6
6
|
*/
|
|
@@ -8,8 +8,8 @@ export declare function normalizeNorthstarShowResponse(status: unknown): Record<
|
|
|
8
8
|
/**
|
|
9
9
|
* `skrr northstars show <id>` — the northstar plus the portfolio it holds.
|
|
10
10
|
*
|
|
11
|
-
* The endpoint returns `{northstar,
|
|
12
|
-
* northstar read without its
|
|
11
|
+
* The endpoint returns `{northstar, duties}`, and both halves matter: a
|
|
12
|
+
* northstar read without its duties cannot answer the only question worth
|
|
13
13
|
* asking of a portfolio, which is what is actually in it.
|
|
14
14
|
*/
|
|
15
15
|
export default class NorthstarsShow extends BaseCommand {
|
|
@@ -5,7 +5,7 @@ const core_1 = require("@oclif/core");
|
|
|
5
5
|
const base_command_1 = require("../../base-command");
|
|
6
6
|
const northstars_1 = require("../../lib/northstars");
|
|
7
7
|
/**
|
|
8
|
-
* The API envelopes the portfolio as `{ northstar,
|
|
8
|
+
* The API envelopes the portfolio as `{ northstar, duties }`, while
|
|
9
9
|
* create/list return a Northstar resource directly. Keep the portfolio data
|
|
10
10
|
* but make the CLI JSON chainable through the standard top-level `id`.
|
|
11
11
|
*/
|
|
@@ -14,7 +14,7 @@ function normalizeNorthstarShowResponse(status) {
|
|
|
14
14
|
if (envelope?.northstar && typeof envelope.northstar === 'object') {
|
|
15
15
|
return {
|
|
16
16
|
...envelope.northstar,
|
|
17
|
-
|
|
17
|
+
duties: Array.isArray(envelope.duties) ? envelope.duties : [],
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
return status && typeof status === 'object' ? status : {};
|
|
@@ -22,12 +22,12 @@ function normalizeNorthstarShowResponse(status) {
|
|
|
22
22
|
/**
|
|
23
23
|
* `skrr northstars show <id>` — the northstar plus the portfolio it holds.
|
|
24
24
|
*
|
|
25
|
-
* The endpoint returns `{northstar,
|
|
26
|
-
* northstar read without its
|
|
25
|
+
* The endpoint returns `{northstar, duties}`, and both halves matter: a
|
|
26
|
+
* northstar read without its duties cannot answer the only question worth
|
|
27
27
|
* asking of a portfolio, which is what is actually in it.
|
|
28
28
|
*/
|
|
29
29
|
class NorthstarsShow extends base_command_1.BaseCommand {
|
|
30
|
-
static description = `Show a northstar, its linked
|
|
30
|
+
static description = `Show a northstar, its linked duties, and open recommendations\n\nThe Workspace line is the full workspace id, or "personal". ${northstars_1.NORTHSTAR_WORKSPACE_READ_HELP}`;
|
|
31
31
|
static examples = [
|
|
32
32
|
'<%= config.bin %> northstars show nst_abc123',
|
|
33
33
|
'<%= config.bin %> northstars show nst_abc123 --json',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
/**
|
|
3
|
-
* `skrr northstars unlink <northstar-id> <
|
|
3
|
+
* `skrr northstars unlink <northstar-id> <duty-id>` — take a duty
|
|
4
4
|
* out of a portfolio.
|
|
5
5
|
*
|
|
6
|
-
* The
|
|
6
|
+
* The duty keeps running; only the strategy link drops, and its priority
|
|
7
7
|
* source reverts to `manual`. Any pending management intent that targeted it is
|
|
8
8
|
* INVALIDATED at apply time — a portfolio may not steer work it no longer holds.
|
|
9
9
|
*/
|
|
@@ -12,7 +12,7 @@ export default class NorthstarsUnlink extends BaseCommand {
|
|
|
12
12
|
static examples: string[];
|
|
13
13
|
static args: {
|
|
14
14
|
northstarId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
15
|
-
|
|
15
|
+
dutyId: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
16
16
|
};
|
|
17
17
|
static flags: {
|
|
18
18
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
@@ -4,19 +4,19 @@ const core_1 = require("@oclif/core");
|
|
|
4
4
|
const base_command_1 = require("../../base-command");
|
|
5
5
|
const northstars_1 = require("../../lib/northstars");
|
|
6
6
|
/**
|
|
7
|
-
* `skrr northstars unlink <northstar-id> <
|
|
7
|
+
* `skrr northstars unlink <northstar-id> <duty-id>` — take a duty
|
|
8
8
|
* out of a portfolio.
|
|
9
9
|
*
|
|
10
|
-
* The
|
|
10
|
+
* The duty keeps running; only the strategy link drops, and its priority
|
|
11
11
|
* source reverts to `manual`. Any pending management intent that targeted it is
|
|
12
12
|
* INVALIDATED at apply time — a portfolio may not steer work it no longer holds.
|
|
13
13
|
*/
|
|
14
14
|
class NorthstarsUnlink extends base_command_1.BaseCommand {
|
|
15
|
-
static description = 'Unlink a
|
|
15
|
+
static description = 'Unlink a duty from a northstar portfolio';
|
|
16
16
|
static examples = ['<%= config.bin %> northstars unlink nst_abc123 cmt_xyz789'];
|
|
17
17
|
static args = {
|
|
18
18
|
northstarId: core_1.Args.string({ ignoreStdin: true, description: 'Northstar ID', required: true }),
|
|
19
|
-
|
|
19
|
+
dutyId: core_1.Args.string({ ignoreStdin: true, description: 'Duty ID', required: true }),
|
|
20
20
|
};
|
|
21
21
|
static flags = { json: core_1.Flags.boolean({ description: 'Output as JSON' }) };
|
|
22
22
|
async run() {
|
|
@@ -24,7 +24,7 @@ class NorthstarsUnlink extends base_command_1.BaseCommand {
|
|
|
24
24
|
const { args, flags } = await this.parse(NorthstarsUnlink);
|
|
25
25
|
let result;
|
|
26
26
|
try {
|
|
27
|
-
result = await northstars_1.northstarApi.unlink(args.northstarId, {
|
|
27
|
+
result = await northstars_1.northstarApi.unlink(args.northstarId, { dutyId: args.dutyId });
|
|
28
28
|
}
|
|
29
29
|
catch (err) {
|
|
30
30
|
this.handleApiError(err);
|
|
@@ -33,7 +33,7 @@ class NorthstarsUnlink extends base_command_1.BaseCommand {
|
|
|
33
33
|
this.log(JSON.stringify(result, null, 2));
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
|
-
this.log(`Unlinked ${args.
|
|
36
|
+
this.log(`Unlinked ${args.dutyId}. It keeps running; priority is manual again.`);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
exports.default = NorthstarsUnlink;
|
|
@@ -33,7 +33,7 @@ class NorthstarsUpdate extends base_command_1.BaseCommand {
|
|
|
33
33
|
weight: core_1.Flags.integer({ description: 'Priority weight (0..100)', min: 0, max: 100 }),
|
|
34
34
|
'total-weight': core_1.Flags.integer({ description: 'Attention budget total weight', min: 0 }),
|
|
35
35
|
'max-active': core_1.Flags.integer({
|
|
36
|
-
description: 'Soft cap on active
|
|
36
|
+
description: 'Soft cap on active duties (0 = no cap)',
|
|
37
37
|
min: 0,
|
|
38
38
|
}),
|
|
39
39
|
goal: core_1.Flags.string({ description: 'Goal ID (repeatable; replaces the list)', multiple: true }),
|
|
@@ -74,7 +74,7 @@ class NorthstarsUpdate extends base_command_1.BaseCommand {
|
|
|
74
74
|
if (flags['total-weight'] !== undefined || flags['max-active'] !== undefined) {
|
|
75
75
|
body.attentionBudget = {
|
|
76
76
|
...(flags['total-weight'] !== undefined ? { totalWeight: flags['total-weight'] } : {}),
|
|
77
|
-
...(flags['max-active'] !== undefined ? {
|
|
77
|
+
...(flags['max-active'] !== undefined ? { maxActiveDuties: flags['max-active'] } : {}),
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
if (flags.goal)
|
|
@@ -114,7 +114,7 @@ class NorthstarsUpdate extends base_command_1.BaseCommand {
|
|
|
114
114
|
this.log(`Updated ${northstar.id} — ${northstar.title} (${northstar.status}, v${northstar.version})`);
|
|
115
115
|
// 0 is stored, and a review treats it as "no cap": say so here, not only in `show` (OSK-21252).
|
|
116
116
|
if (flags['max-active'] !== undefined) {
|
|
117
|
-
this.log(`Attention max active ${(0, northstars_1.describeMaxActive)(northstar.attentionBudget?.
|
|
117
|
+
this.log(`Attention max active ${(0, northstars_1.describeMaxActive)(northstar.attentionBudget?.maxActiveDuties ?? flags['max-active'])}`);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -2,13 +2,13 @@ import type { ProposalView } from '@skrr-ai/data-provider';
|
|
|
2
2
|
import { BaseCommand } from '../../base-command';
|
|
3
3
|
/**
|
|
4
4
|
* What an empty page means. With a filter AND a next cursor it does NOT mean "none": the inbox reads a
|
|
5
|
-
* bounded page of each source and applies some filters (the
|
|
5
|
+
* bounded page of each source and applies some filters (the Duty, the kind of row) afterwards,
|
|
6
6
|
* so an unmatched id pages through every page of an 864-row inbox before the cursor ends (OSK-15369).
|
|
7
7
|
* Without a cursor the inbox is exhausted and "none" is true.
|
|
8
8
|
*/
|
|
9
9
|
export declare function emptyPageLines(narrowed: boolean, nextCursor: string | null | undefined): string[];
|
|
10
10
|
/**
|
|
11
|
-
* What the row is ABOUT: the
|
|
11
|
+
* What the row is ABOUT: the Duty and the Agent behind it, in the order the web inbox shows them. 51 distinct titles covered 747 decidable
|
|
12
12
|
* initiatives, so the title alone could not tell two rows apart (OSK-15378). A dash is "not named" (an id the
|
|
13
13
|
* server could not read for this viewer is in `--json`), never "none".
|
|
14
14
|
*/
|
|
@@ -19,7 +19,7 @@ export default class ProposalsList extends BaseCommand {
|
|
|
19
19
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
20
20
|
kind: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
21
|
disposition: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
-
'
|
|
22
|
+
'duty-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
23
|
'agent-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
24
24
|
limit: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
25
25
|
cursor: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -10,7 +10,7 @@ const proposals_1 = require("../../lib/proposals");
|
|
|
10
10
|
const format_1 = require("../../lib/format");
|
|
11
11
|
/**
|
|
12
12
|
* What an empty page means. With a filter AND a next cursor it does NOT mean "none": the inbox reads a
|
|
13
|
-
* bounded page of each source and applies some filters (the
|
|
13
|
+
* bounded page of each source and applies some filters (the Duty, the kind of row) afterwards,
|
|
14
14
|
* so an unmatched id pages through every page of an 864-row inbox before the cursor ends (OSK-15369).
|
|
15
15
|
* Without a cursor the inbox is exhausted and "none" is true.
|
|
16
16
|
*/
|
|
@@ -26,15 +26,15 @@ function emptyPageLines(narrowed, nextCursor) {
|
|
|
26
26
|
: ['No proposals on this page; the cursor below continues.'];
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
29
|
-
* What the row is ABOUT: the
|
|
29
|
+
* What the row is ABOUT: the Duty and the Agent behind it, in the order the web inbox shows them. 51 distinct titles covered 747 decidable
|
|
30
30
|
* initiatives, so the title alone could not tell two rows apart (OSK-15378). A dash is "not named" (an id the
|
|
31
31
|
* server could not read for this viewer is in `--json`), never "none".
|
|
32
32
|
*/
|
|
33
33
|
function aboutFor(row) {
|
|
34
|
-
const named = [row.
|
|
34
|
+
const named = [row.dutyTitle, row.agent?.name].filter(Boolean).join(' · ');
|
|
35
35
|
if (named)
|
|
36
36
|
return named;
|
|
37
|
-
// A Northstar intent that targets no
|
|
37
|
+
// A Northstar intent that targets no duty (a proposal to start one) is about its northstar.
|
|
38
38
|
const northstarId = row.decisionContext?.northstarId;
|
|
39
39
|
return northstarId ? `northstar ${northstarId}` : '—';
|
|
40
40
|
}
|
|
@@ -56,7 +56,7 @@ class ProposalsList extends base_command_1.BaseCommand {
|
|
|
56
56
|
json: core_1.Flags.boolean(),
|
|
57
57
|
kind: core_1.Flags.string({ options: [...data_provider_1.PROPOSAL_KINDS] }),
|
|
58
58
|
disposition: core_1.Flags.string({ options: [...data_provider_1.PROPOSAL_DISPOSITIONS] }),
|
|
59
|
-
'
|
|
59
|
+
'duty-id': core_1.Flags.string(),
|
|
60
60
|
'agent-id': core_1.Flags.string(),
|
|
61
61
|
limit: core_1.Flags.integer({ min: 1, max: 100, default: 50 }),
|
|
62
62
|
cursor: core_1.Flags.string(),
|
|
@@ -74,7 +74,7 @@ class ProposalsList extends base_command_1.BaseCommand {
|
|
|
74
74
|
result = await proposals_1.proposalApi.list({
|
|
75
75
|
kind: flags.kind,
|
|
76
76
|
disposition: flags.disposition,
|
|
77
|
-
|
|
77
|
+
dutyId: flags['duty-id'],
|
|
78
78
|
agentId: flags['agent-id'],
|
|
79
79
|
limit: flags.limit,
|
|
80
80
|
cursor: flags.cursor,
|
|
@@ -89,7 +89,7 @@ class ProposalsList extends base_command_1.BaseCommand {
|
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
91
|
if (!result.data.length) {
|
|
92
|
-
const narrowed = Boolean(flags.kind || flags.disposition || flags['
|
|
92
|
+
const narrowed = Boolean(flags.kind || flags.disposition || flags['duty-id'] || flags['agent-id']);
|
|
93
93
|
for (const line of emptyPageLines(narrowed, result.nextCursor))
|
|
94
94
|
this.log(line);
|
|
95
95
|
}
|
|
@@ -28,9 +28,12 @@ export declare function storeAgentRow(a: Record<string, unknown>): {
|
|
|
28
28
|
export default class SearchAgents extends BaseCommand {
|
|
29
29
|
static description: string;
|
|
30
30
|
static examples: string[];
|
|
31
|
+
static args: {
|
|
32
|
+
query: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
33
|
+
};
|
|
31
34
|
static flags: {
|
|
32
35
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
33
|
-
query: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
36
|
+
query: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
34
37
|
category: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
35
38
|
limit: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
36
39
|
};
|
|
@@ -7,6 +7,7 @@ const data_provider_1 = require("@skrr-ai/data-provider");
|
|
|
7
7
|
const base_command_1 = require("../../base-command");
|
|
8
8
|
const format_1 = require("../../lib/format");
|
|
9
9
|
const web_url_1 = require("../../lib/web-url");
|
|
10
|
+
const search_query_1 = require("../../lib/search-query");
|
|
10
11
|
/**
|
|
11
12
|
* Render a numeric-ish store metric to one decimal place.
|
|
12
13
|
*
|
|
@@ -41,16 +42,17 @@ function storeAgentRow(a) {
|
|
|
41
42
|
class SearchAgents extends base_command_1.BaseCommand {
|
|
42
43
|
static description = 'Search agents in the skrr store';
|
|
43
44
|
static examples = [
|
|
45
|
+
'<%= config.bin %> search agents "code review"',
|
|
44
46
|
'<%= config.bin %> search agents --query "code review"',
|
|
45
47
|
'<%= config.bin %> search agents --query productivity --category automation',
|
|
46
48
|
'<%= config.bin %> search agents --query "data analysis" --limit 10 --json',
|
|
47
49
|
];
|
|
50
|
+
static args = { query: core_1.Args.string({ description: 'Search term', ignoreStdin: true }) };
|
|
48
51
|
static flags = {
|
|
49
52
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
50
53
|
query: core_1.Flags.string({
|
|
51
54
|
char: 'q',
|
|
52
55
|
description: 'Search query',
|
|
53
|
-
required: true,
|
|
54
56
|
}),
|
|
55
57
|
category: core_1.Flags.string({
|
|
56
58
|
char: 'c',
|
|
@@ -63,11 +65,12 @@ class SearchAgents extends base_command_1.BaseCommand {
|
|
|
63
65
|
};
|
|
64
66
|
async run() {
|
|
65
67
|
this.requireAuth();
|
|
66
|
-
const { flags } = await this.parse(SearchAgents);
|
|
68
|
+
const { args, flags } = await this.parse(SearchAgents);
|
|
69
|
+
const query = (0, search_query_1.resolveSearchQuery)(this, args.query, flags.query, 'search agents');
|
|
67
70
|
let response;
|
|
68
71
|
try {
|
|
69
72
|
response = await data_provider_1.dataService.getStoreAgents({
|
|
70
|
-
q:
|
|
73
|
+
q: query,
|
|
71
74
|
category: flags.category,
|
|
72
75
|
limit: flags.limit,
|
|
73
76
|
});
|
|
@@ -31,9 +31,12 @@ export declare function storeSearchRow(type: 'agent' | 'skill' | 'team' | 'task'
|
|
|
31
31
|
export default class SearchAll extends BaseCommand {
|
|
32
32
|
static description: string;
|
|
33
33
|
static examples: string[];
|
|
34
|
+
static args: {
|
|
35
|
+
query: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
36
|
+
};
|
|
34
37
|
static flags: {
|
|
35
38
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
36
|
-
query: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
39
|
+
query: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
37
40
|
limit: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
38
41
|
};
|
|
39
42
|
run(): Promise<void>;
|
|
@@ -9,6 +9,7 @@ const format_1 = require("../../lib/format");
|
|
|
9
9
|
const web_url_1 = require("../../lib/web-url");
|
|
10
10
|
const skill_store_pagination_1 = require("../../lib/skill-store-pagination");
|
|
11
11
|
const search_display_1 = require("../../lib/search-display");
|
|
12
|
+
const search_query_1 = require("../../lib/search-query");
|
|
12
13
|
const PLAIN_DESCRIPTION_RE = /<[^>]*>/g;
|
|
13
14
|
const PLAIN_DESCRIPTION_RE_2 = / /g;
|
|
14
15
|
const PLAIN_DESCRIPTION_RE_3 = /&/g;
|
|
@@ -71,17 +72,20 @@ function storeSearchRow(type, doc) {
|
|
|
71
72
|
class SearchAll extends base_command_1.BaseCommand {
|
|
72
73
|
static description = 'Search your tasks and spaces plus store agents, skills, and teams in one shot';
|
|
73
74
|
static examples = [
|
|
75
|
+
'<%= config.bin %> search all "code review"',
|
|
74
76
|
'<%= config.bin %> search all --query "code review"',
|
|
75
77
|
'<%= config.bin %> search all --query dogfood --limit 5 --json',
|
|
76
78
|
];
|
|
79
|
+
static args = { query: core_1.Args.string({ description: 'Search term', ignoreStdin: true }) };
|
|
77
80
|
static flags = {
|
|
78
81
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
79
|
-
query: core_1.Flags.string({ char: 'q', description: 'Search query'
|
|
82
|
+
query: core_1.Flags.string({ char: 'q', description: 'Search query' }),
|
|
80
83
|
limit: core_1.Flags.integer({ description: 'Per-bucket result limit', default: 10 }),
|
|
81
84
|
};
|
|
82
85
|
async run() {
|
|
83
86
|
this.requireAuth();
|
|
84
|
-
const { flags } = await this.parse(SearchAll);
|
|
87
|
+
const { args, flags } = await this.parse(SearchAll);
|
|
88
|
+
const query = (0, search_query_1.resolveSearchQuery)(this, args.query, flags.query, 'search all');
|
|
85
89
|
const validBucket = (value) => {
|
|
86
90
|
const rows = Array.isArray(value) ? value
|
|
87
91
|
: value && typeof value === 'object' ? value.data : undefined;
|
|
@@ -90,11 +94,11 @@ class SearchAll extends base_command_1.BaseCommand {
|
|
|
90
94
|
const items = (b) => Array.isArray(b) ? b : (b?.data ?? []);
|
|
91
95
|
const names = ['agents', 'skills', 'teams', 'tasks', 'spaces'];
|
|
92
96
|
const outcomes = await Promise.allSettled([
|
|
93
|
-
data_provider_1.dataService.getStoreAgents({ q:
|
|
94
|
-
data_provider_1.dataService.getStoreSkills({ q:
|
|
95
|
-
data_provider_1.dataService.getStoreTeams({ q:
|
|
96
|
-
data_provider_1.dataService.listTasks({ q:
|
|
97
|
-
data_provider_1.dataService.listSpaces({ q:
|
|
97
|
+
data_provider_1.dataService.getStoreAgents({ q: query, limit: flags.limit }),
|
|
98
|
+
data_provider_1.dataService.getStoreSkills({ q: query, limit: flags.limit }),
|
|
99
|
+
data_provider_1.dataService.getStoreTeams({ q: query, limit: flags.limit }),
|
|
100
|
+
data_provider_1.dataService.listTasks({ q: query, limit: flags.limit }),
|
|
101
|
+
data_provider_1.dataService.listSpaces({ q: query, limit: flags.limit }),
|
|
98
102
|
]);
|
|
99
103
|
const [agents, skills, teams, tasks, spaces] = outcomes.map((outcome) => outcome.status === 'fulfilled' && validBucket(outcome.value) ? outcome.value : undefined);
|
|
100
104
|
const failed = names.filter((_, index) => outcomes[index].status === 'rejected' ||
|
|
@@ -2,9 +2,12 @@ import { BaseCommand } from '../../base-command';
|
|
|
2
2
|
export default class SearchTeams extends BaseCommand {
|
|
3
3
|
static description: string;
|
|
4
4
|
static examples: string[];
|
|
5
|
+
static args: {
|
|
6
|
+
query: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
7
|
+
};
|
|
5
8
|
static flags: {
|
|
6
9
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
7
|
-
query: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
query: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
11
|
limit: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
12
|
};
|
|
10
13
|
run(): Promise<void>;
|
|
@@ -4,19 +4,21 @@ const core_1 = require("@oclif/core");
|
|
|
4
4
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
5
5
|
const base_command_1 = require("../../base-command");
|
|
6
6
|
const format_1 = require("../../lib/format");
|
|
7
|
+
const search_query_1 = require("../../lib/search-query");
|
|
7
8
|
class SearchTeams extends base_command_1.BaseCommand {
|
|
8
9
|
static description = 'Search agent teams in the skrr store';
|
|
9
10
|
static examples = [
|
|
11
|
+
'<%= config.bin %> search teams research',
|
|
10
12
|
'<%= config.bin %> search teams --query "research"',
|
|
11
13
|
'<%= config.bin %> search teams --query "customer support" --limit 10',
|
|
12
14
|
'<%= config.bin %> search teams --query marketing --json',
|
|
13
15
|
];
|
|
16
|
+
static args = { query: core_1.Args.string({ description: 'Search term', ignoreStdin: true }) };
|
|
14
17
|
static flags = {
|
|
15
18
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
16
19
|
query: core_1.Flags.string({
|
|
17
20
|
char: 'q',
|
|
18
21
|
description: 'Search query',
|
|
19
|
-
required: true,
|
|
20
22
|
}),
|
|
21
23
|
limit: core_1.Flags.integer({
|
|
22
24
|
description: 'Maximum number of results',
|
|
@@ -25,11 +27,12 @@ class SearchTeams extends base_command_1.BaseCommand {
|
|
|
25
27
|
};
|
|
26
28
|
async run() {
|
|
27
29
|
this.requireAuth();
|
|
28
|
-
const { flags } = await this.parse(SearchTeams);
|
|
30
|
+
const { args, flags } = await this.parse(SearchTeams);
|
|
31
|
+
const query = (0, search_query_1.resolveSearchQuery)(this, args.query, flags.query, 'search teams');
|
|
29
32
|
let response;
|
|
30
33
|
try {
|
|
31
34
|
response = await data_provider_1.dataService.getStoreTeams({
|
|
32
|
-
q:
|
|
35
|
+
q: query,
|
|
33
36
|
limit: flags.limit,
|
|
34
37
|
});
|
|
35
38
|
}
|
|
@@ -25,7 +25,7 @@ function holderNowLabel(current) {
|
|
|
25
25
|
if (current.holder === 'leader')
|
|
26
26
|
return 'the Leader';
|
|
27
27
|
if (current.holder === 'space_loop') {
|
|
28
|
-
return `the space_orchestration loop ${current.
|
|
28
|
+
return `the space_orchestration loop ${current.dutyId ?? ''}`.trim();
|
|
29
29
|
}
|
|
30
30
|
return 'unknown (could not be read)';
|
|
31
31
|
}
|
|
@@ -14,7 +14,7 @@ function judgmentTurnLabel(turn) {
|
|
|
14
14
|
if (turn.holder === 'leader')
|
|
15
15
|
return ' turn: Leader';
|
|
16
16
|
if (turn.holder === 'space_loop') {
|
|
17
|
-
return ` turn: loop ${turn.
|
|
17
|
+
return ` turn: loop ${turn.dutyId ?? ''}${turn.inFlightRunId ? ' (waiting for its turn to end)' : ''}`;
|
|
18
18
|
}
|
|
19
19
|
return ' turn: unreadable, Leader stood down';
|
|
20
20
|
}
|
|
@@ -30,9 +30,9 @@ const space_output_1 = require("../../../lib/space-output");
|
|
|
30
30
|
*/
|
|
31
31
|
function loopCell(loop) {
|
|
32
32
|
const pointer = loop;
|
|
33
|
-
if (!pointer?.
|
|
33
|
+
if (!pointer?.dutyId)
|
|
34
34
|
return '-';
|
|
35
|
-
return `${(0, format_1.formatCell)(pointer.state)} -> ${(0, format_1.formatCell)(pointer.
|
|
35
|
+
return `${(0, format_1.formatCell)(pointer.state)} -> ${(0, format_1.formatCell)(pointer.dutyId)}`;
|
|
36
36
|
}
|
|
37
37
|
function heartbeatRow(h) {
|
|
38
38
|
const schedule = h.schedule;
|
|
@@ -51,9 +51,9 @@ const PERSPECTIVES = [
|
|
|
51
51
|
purpose: "The Space's standing loops (weekly review, curator, goal advance). No command lists them: read their cycles from the notebook",
|
|
52
52
|
commands: [
|
|
53
53
|
'spaces notebook <space-id> --kinds loop_cycle',
|
|
54
|
-
'
|
|
54
|
+
'duties pack plan --pack space_review --space <space-id>',
|
|
55
55
|
'spaces loops migrate <space-id> --from heartbeats',
|
|
56
|
-
'spaces loops release <space-id> --
|
|
56
|
+
'spaces loops release <space-id> --duty <id>',
|
|
57
57
|
],
|
|
58
58
|
url: '/spaces/<space-id>/loops',
|
|
59
59
|
},
|
|
@@ -7,7 +7,7 @@ export declare function noSpacesMatchedMessage(q: string, bin?: string, mode?: s
|
|
|
7
7
|
* A bare `No spaces.` on a fresh account is technically true and operationally
|
|
8
8
|
* useless: it names no next step, so the user reading `GETTING_STARTED.md`
|
|
9
9
|
* step 3 hits three of these in a row and concludes the product is inert.
|
|
10
|
-
* `
|
|
10
|
+
* `duties/list.ts` learned this the hard way and left the reasoning in a
|
|
11
11
|
* comment; the fix is to follow the same pattern here — one line naming the
|
|
12
12
|
* command that fixes it.
|
|
13
13
|
*
|
|
@@ -25,7 +25,7 @@ function noSpacesMatchedMessage(q, bin = 'skrr', mode = 'fuzzy') {
|
|
|
25
25
|
* A bare `No spaces.` on a fresh account is technically true and operationally
|
|
26
26
|
* useless: it names no next step, so the user reading `GETTING_STARTED.md`
|
|
27
27
|
* step 3 hits three of these in a row and concludes the product is inert.
|
|
28
|
-
* `
|
|
28
|
+
* `duties/list.ts` learned this the hard way and left the reasoning in a
|
|
29
29
|
* comment; the fix is to follow the same pattern here — one line naming the
|
|
30
30
|
* command that fixes it.
|
|
31
31
|
*
|