@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
|
@@ -9,7 +9,7 @@ import { BaseCommand } from '../../../base-command';
|
|
|
9
9
|
*
|
|
10
10
|
* Without `--apply` it prints the plan, a pure read: every entry, what it
|
|
11
11
|
* becomes (the Space's loop when its owner is the Space's execution principal,
|
|
12
|
-
* otherwise its owner's own
|
|
12
|
+
* otherwise its owner's own Duty), its cadence before and after (never
|
|
13
13
|
* rounded silently), what the loop does differently, the entries it cannot
|
|
14
14
|
* convert and why, and who may apply each. With `--apply --plan-digest <digest>`
|
|
15
15
|
* it converts the entries the caller may, acting only on the plan that digest
|
|
@@ -14,7 +14,7 @@ const space_loop_migration_1 = require("../../../lib/space-loop-migration");
|
|
|
14
14
|
*
|
|
15
15
|
* Without `--apply` it prints the plan, a pure read: every entry, what it
|
|
16
16
|
* becomes (the Space's loop when its owner is the Space's execution principal,
|
|
17
|
-
* otherwise its owner's own
|
|
17
|
+
* otherwise its owner's own Duty), its cadence before and after (never
|
|
18
18
|
* rounded silently), what the loop does differently, the entries it cannot
|
|
19
19
|
* convert and why, and who may apply each. With `--apply --plan-digest <digest>`
|
|
20
20
|
* it converts the entries the caller may, acting only on the plan that digest
|
|
@@ -6,7 +6,7 @@ export default class SpacesLoopsRelease extends BaseCommand {
|
|
|
6
6
|
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
7
7
|
};
|
|
8
8
|
static flags: {
|
|
9
|
-
|
|
9
|
+
duty: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
10
|
link: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
11
|
json: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
12
12
|
};
|
|
@@ -6,14 +6,14 @@ const base_command_1 = require("../../../base-command");
|
|
|
6
6
|
class SpacesLoopsRelease extends base_command_1.BaseCommand {
|
|
7
7
|
static description = 'Pause a loop and release its Space and Goals to built-in planners (requires Space SHARE permission)';
|
|
8
8
|
static examples = [
|
|
9
|
-
'<%= config.bin %> spaces loops release <space-id> --
|
|
10
|
-
'<%= config.bin %> spaces loops release "Growth lab" --
|
|
9
|
+
'<%= config.bin %> spaces loops release <space-id> --duty <duty-id>',
|
|
10
|
+
'<%= config.bin %> spaces loops release "Growth lab" --duty <duty-id> --json',
|
|
11
11
|
];
|
|
12
12
|
static args = {
|
|
13
13
|
id: core_1.Args.string({ description: 'Space ID, or a title to resolve', required: true, ignoreStdin: true }),
|
|
14
14
|
};
|
|
15
15
|
static flags = {
|
|
16
|
-
|
|
16
|
+
duty: core_1.Flags.string({ description: 'The loop Duty to pause and release', required: true }),
|
|
17
17
|
link: core_1.Flags.string({ description: 'Pin the reviewed home link ID; otherwise resolve the current active home link once' }),
|
|
18
18
|
json: core_1.Flags.boolean({ description: 'Output the release receipt as JSON' }),
|
|
19
19
|
};
|
|
@@ -25,28 +25,28 @@ class SpacesLoopsRelease extends base_command_1.BaseCommand {
|
|
|
25
25
|
try {
|
|
26
26
|
let linkId = flags.link;
|
|
27
27
|
if (!linkId) {
|
|
28
|
-
const links = await data_provider_1.dataService.
|
|
29
|
-
const homes = links.data.filter((link) => link.
|
|
28
|
+
const links = await data_provider_1.dataService.listDutyWorkLinksForTarget({ targetType: 'space', targetId: spaceId });
|
|
29
|
+
const homes = links.data.filter((link) => link.dutyId === flags.duty && link.status === 'active' && link.roles.includes('home'));
|
|
30
30
|
if (homes.length !== 1) {
|
|
31
31
|
this.error('No unique active home link found. Supply --link <home-link-id> to release a reviewed link or retry its receipt.', { exit: 2 });
|
|
32
32
|
}
|
|
33
33
|
linkId = homes[0].id;
|
|
34
34
|
}
|
|
35
|
-
receipt = await data_provider_1.dataService.releaseSpaceLoop(spaceId, flags.
|
|
35
|
+
receipt = await data_provider_1.dataService.releaseSpaceLoop(spaceId, flags.duty, { linkId });
|
|
36
36
|
}
|
|
37
37
|
catch (err) {
|
|
38
|
-
this.handleApiError(err, { subject: `loop ${flags.
|
|
38
|
+
this.handleApiError(err, { subject: `loop ${flags.duty} in space ${args.id}` });
|
|
39
39
|
}
|
|
40
40
|
if (flags.json) {
|
|
41
41
|
this.printJsonResult(receipt);
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
this.log(receipt.outcome === 'already_released'
|
|
45
|
-
? `Loop ${receipt.
|
|
46
|
-
: `Loop ${receipt.
|
|
45
|
+
? `Loop ${receipt.dutyId} was already released from this Space.`
|
|
46
|
+
: `Loop ${receipt.dutyId} is paused and released from this Space.`);
|
|
47
47
|
this.log(`Home link: ${receipt.linkId}`);
|
|
48
48
|
this.log(receipt.outcome === 'released'
|
|
49
|
-
? 'Its Space and Goal planning turns are released after current turns finish. The owner may explicitly resume the
|
|
49
|
+
? 'Its Space and Goal planning turns are released after current turns finish. The owner may explicitly resume the Duty personally.'
|
|
50
50
|
: 'This receipt refers to the previously released home link. Current planning may have changed.');
|
|
51
51
|
if (receipt.teardown?.status === 'degraded') {
|
|
52
52
|
this.log('Some running work could not be stopped. Review the teardown receipt before assuming all work has ended.');
|
|
@@ -5,8 +5,8 @@ import { BaseCommand } from '../../base-command';
|
|
|
5
5
|
* pages, newest first. A view over records that already exist: each row is a
|
|
6
6
|
* summary and a link, and the body is read from the record itself. VIEW on
|
|
7
7
|
* the Space. A loop's Cycles are shared with the Space's members while its
|
|
8
|
-
* rules hold; a
|
|
9
|
-
* verdict, show only to people who can open the
|
|
8
|
+
* rules hold; a Duty that only watches the Space, and every hypothesis
|
|
9
|
+
* verdict, show only to people who can open the Duty. Each loop row says
|
|
10
10
|
* which.
|
|
11
11
|
*/
|
|
12
12
|
export default class SpacesNotebook extends BaseCommand {
|
|
@@ -11,8 +11,8 @@ const web_url_1 = require("../../lib/web-url");
|
|
|
11
11
|
* pages, newest first. A view over records that already exist: each row is a
|
|
12
12
|
* summary and a link, and the body is read from the record itself. VIEW on
|
|
13
13
|
* the Space. A loop's Cycles are shared with the Space's members while its
|
|
14
|
-
* rules hold; a
|
|
15
|
-
* verdict, show only to people who can open the
|
|
14
|
+
* rules hold; a Duty that only watches the Space, and every hypothesis
|
|
15
|
+
* verdict, show only to people who can open the Duty. Each loop row says
|
|
16
16
|
* which.
|
|
17
17
|
*/
|
|
18
18
|
class SpacesNotebook extends base_command_1.BaseCommand {
|
|
@@ -5,7 +5,7 @@ const space_proposal_decision_command_1 = require("../../../lib/space-proposal-d
|
|
|
5
5
|
class SpacesProposalsDiscard extends space_proposal_decision_command_1.SpaceProposalDecisionCommand {
|
|
6
6
|
static description = "Discard (reject) one item in a space's proposals inbox, through the item's own decision endpoint";
|
|
7
7
|
static examples = [
|
|
8
|
-
`<%= config.bin %> spaces proposals discard <space-id>
|
|
8
|
+
`<%= config.bin %> spaces proposals discard <space-id> duty_action_proposal:cap_123 --expected '{"snapshotDigest":"…","bundleVersion":2}' --reason-code not_worth_it`,
|
|
9
9
|
'<%= config.bin %> spaces proposals discard <space-id> memory_proposal:<uuid> --reason "Not true any more"',
|
|
10
10
|
'<%= config.bin %> spaces proposals discard <space-id> space_lesson:<uuid> --reason-code incorrect --reason "Step 2 is the old flow"',
|
|
11
11
|
];
|
|
@@ -5,7 +5,7 @@ const space_proposal_decision_command_1 = require("../../../lib/space-proposal-d
|
|
|
5
5
|
class SpacesProposalsKeep extends space_proposal_decision_command_1.SpaceProposalDecisionCommand {
|
|
6
6
|
static description = "Keep (approve) one item in a space's proposals inbox, through the item's own decision endpoint";
|
|
7
7
|
static examples = [
|
|
8
|
-
`<%= config.bin %> spaces proposals keep <space-id>
|
|
8
|
+
`<%= config.bin %> spaces proposals keep <space-id> duty_action_proposal:cap_123 --expected '{"snapshotDigest":"…","bundleVersion":2}'`,
|
|
9
9
|
'<%= config.bin %> spaces proposals keep <space-id> memory_proposal:<uuid>',
|
|
10
10
|
'<%= config.bin %> spaces proposals keep <space-id> space_lesson:<uuid>',
|
|
11
11
|
];
|
|
@@ -39,10 +39,10 @@ class SpacesTriggersShow extends base_command_1.BaseCommand {
|
|
|
39
39
|
this.log(`On event: ${formatLane(triggers.onEvent)}`);
|
|
40
40
|
this.log(`On schedule:${formatLane(triggers.onSchedule)}`);
|
|
41
41
|
const loop = assistant.loop;
|
|
42
|
-
if (loop?.
|
|
42
|
+
if (loop?.dutyId) {
|
|
43
43
|
this.log(loop.state === 'retired'
|
|
44
|
-
? `Loop: converted into loop ${loop.
|
|
45
|
-
: `Loop: being converted into loop ${loop.
|
|
44
|
+
? `Loop: converted into loop ${loop.dutyId}, which replaced its scheduled turns; read-only`
|
|
45
|
+
: `Loop: being converted into loop ${loop.dutyId}; read-only, and it keeps running until the loop is active`);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -39,7 +39,7 @@ class SpacesWritePolicySet extends base_command_1.BaseCommand {
|
|
|
39
39
|
options: MODE_OPTIONS,
|
|
40
40
|
}),
|
|
41
41
|
'member-automation': core_1.Flags.string({
|
|
42
|
-
description: "Mode for other members' agents writing unattended (for example their
|
|
42
|
+
description: "Mode for other members' agents writing unattended (for example their Duty runs); " +
|
|
43
43
|
'`default` resets it',
|
|
44
44
|
options: MODE_OPTIONS,
|
|
45
45
|
}),
|
|
@@ -42,7 +42,7 @@ function parseReceipt(body) {
|
|
|
42
42
|
: null;
|
|
43
43
|
}
|
|
44
44
|
class StoreUninstall extends base_command_1.BaseCommand {
|
|
45
|
-
static description = 'Uninstall is reversible: reinstalling restores the Agent copy. --erase permanently removes its Memory and ends
|
|
45
|
+
static description = 'Uninstall is reversible: reinstalling restores the Agent copy. --erase permanently removes its Memory and ends duties; the Agent, purchase, and delivered tasks remain.';
|
|
46
46
|
static examples = [
|
|
47
47
|
'<%= config.bin %> store uninstall agent_abc123',
|
|
48
48
|
'<%= config.bin %> store uninstall agent_abc123 --erase',
|
|
@@ -58,7 +58,7 @@ class StoreUninstall extends base_command_1.BaseCommand {
|
|
|
58
58
|
static flags = {
|
|
59
59
|
json: core_1.Flags.boolean({ description: 'Output as JSON' }),
|
|
60
60
|
erase: core_1.Flags.boolean({
|
|
61
|
-
description: "Also erase the copy's memory and end its
|
|
61
|
+
description: "Also erase the copy's memory and end its duties. Works on a copy you already uninstalled.",
|
|
62
62
|
}),
|
|
63
63
|
yes: core_1.Flags.boolean({ char: 'y', description: 'Skip the confirmation prompt for --erase' }),
|
|
64
64
|
};
|
|
@@ -4,7 +4,7 @@ import { BaseCommand } from '../../base-command';
|
|
|
4
4
|
* Has this service actually delivered?
|
|
5
5
|
*
|
|
6
6
|
* The question every recurring charge has to answer, and the reason a
|
|
7
|
-
* subscription is modelled as a
|
|
7
|
+
* subscription is modelled as a Duty rather than a billing schedule.
|
|
8
8
|
*
|
|
9
9
|
* `unverified` — the work is done and nobody has looked — is counted as
|
|
10
10
|
* DELIVERED and reported separately as "waiting on you". It is not a failure:
|
|
@@ -26,7 +26,7 @@ export default class SubscriptionsHealth extends BaseCommand {
|
|
|
26
26
|
/**
|
|
27
27
|
* What the service owes, as bought. Four answers that must never print alike:
|
|
28
28
|
* the list itself; a service that declared nothing; a subscription whose
|
|
29
|
-
*
|
|
29
|
+
* Duty does not exist yet, so nothing holds the service to what was
|
|
30
30
|
* bought (NOT "declared nothing" — the release may declare plenty); and a
|
|
31
31
|
* contract that could not be read. `undefined` is an older server that does not
|
|
32
32
|
* report it, so nothing is said.
|
|
@@ -8,7 +8,7 @@ const base_command_1 = require("../../base-command");
|
|
|
8
8
|
* Has this service actually delivered?
|
|
9
9
|
*
|
|
10
10
|
* The question every recurring charge has to answer, and the reason a
|
|
11
|
-
* subscription is modelled as a
|
|
11
|
+
* subscription is modelled as a Duty rather than a billing schedule.
|
|
12
12
|
*
|
|
13
13
|
* `unverified` — the work is done and nobody has looked — is counted as
|
|
14
14
|
* DELIVERED and reported separately as "waiting on you". It is not a failure:
|
|
@@ -75,7 +75,7 @@ exports.default = SubscriptionsHealth;
|
|
|
75
75
|
/**
|
|
76
76
|
* What the service owes, as bought. Four answers that must never print alike:
|
|
77
77
|
* the list itself; a service that declared nothing; a subscription whose
|
|
78
|
-
*
|
|
78
|
+
* Duty does not exist yet, so nothing holds the service to what was
|
|
79
79
|
* bought (NOT "declared nothing" — the release may declare plenty); and a
|
|
80
80
|
* contract that could not be read. `undefined` is an older server that does not
|
|
81
81
|
* report it, so nothing is said.
|
|
@@ -51,8 +51,8 @@ class SubscriptionsStatus extends base_command_1.BaseCommand {
|
|
|
51
51
|
if (response.billingIssueCode) {
|
|
52
52
|
this.log(`Last charge failed with: ${response.billingIssueCode}`);
|
|
53
53
|
}
|
|
54
|
-
if (response.
|
|
55
|
-
this.log(`Obligation: ${response.
|
|
54
|
+
if (response.dutyId) {
|
|
55
|
+
this.log(`Obligation: ${response.dutyId}`);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -105,12 +105,12 @@ class SubscriptionsSubscribe extends base_command_1.BaseCommand {
|
|
|
105
105
|
this.log(`Paid through: ${response.expiresAt}`);
|
|
106
106
|
}
|
|
107
107
|
this.log(`Compute paid by: ${(0, data_provider_1.describeStoreComputePayer)(response?.computePayer)}`);
|
|
108
|
-
if (response?.
|
|
109
|
-
// The
|
|
108
|
+
if (response?.dutyId) {
|
|
109
|
+
// The duty is the thing you can hold the service to — surface it,
|
|
110
110
|
// because "is it working" is answered there and nowhere else.
|
|
111
|
-
this.log(`Obligation: ${response.
|
|
111
|
+
this.log(`Obligation: ${response.dutyId}`);
|
|
112
112
|
}
|
|
113
|
-
if (response?.degraded === '
|
|
113
|
+
if (response?.degraded === 'duty_pending') {
|
|
114
114
|
this.log('');
|
|
115
115
|
this.log('Note: the subscription is live but its obligation has not been created yet. It is resumable and refundable; retry to finish opening it.');
|
|
116
116
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { BaseCommand } from '../../base-command';
|
|
2
2
|
import { type TaskRecord } from '../../lib/tasks';
|
|
3
|
+
import { resolveListWorkspace } from './list';
|
|
4
|
+
import type { ListWorkspaceScope } from './list';
|
|
3
5
|
/**
|
|
4
6
|
* Whether the estimate we asked for survived the write. (S3 dogfood finding)
|
|
5
7
|
*
|
|
@@ -34,6 +36,23 @@ export declare function droppedEstimateWarning(requested: number | undefined, wr
|
|
|
34
36
|
/** A create may have committed before any of these response failures surfaced. */
|
|
35
37
|
export declare function taskCreateMayHaveCommitted(error: unknown): boolean;
|
|
36
38
|
export declare function taskMatchesCreateIdentity(task: TaskRecord, payload: TaskRecord): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Which workspace a new task is stamped with when the person named none (OSK-22516).
|
|
41
|
+
*
|
|
42
|
+
* `tasks list` reads the signed-in person's DEFAULT workspace when no workspace is selected, but
|
|
43
|
+
* `tasks create` sent no workspace at all, so a task made from a plain CLI session had none. The
|
|
44
|
+
* workspace-scoped list returns only tasks in that workspace's Spaces or stamped with its id, so
|
|
45
|
+
* the person's own new task never showed in their own default list while the briefing, which counts
|
|
46
|
+
* everything they authored, still counted it: 220 review tasks and 66 active ones on production
|
|
47
|
+
* (briefing 2,867 against a list of 2,647).
|
|
48
|
+
*
|
|
49
|
+
* The rule is the list's, not a copy of it: a task that names a Space, project, parent or goal
|
|
50
|
+
* takes its scope from that, a selected workspace (`--workspace`, `skrr workspaces use`) stands, an
|
|
51
|
+
* autonomous Agent session stays personal, and a failed lookup changes nothing.
|
|
52
|
+
*/
|
|
53
|
+
export declare function resolveCreateWorkspace(scoped: boolean, env: NodeJS.ProcessEnv, lookupDefault: Parameters<typeof resolveListWorkspace>[2]): Promise<Extract<ListWorkspaceScope, {
|
|
54
|
+
source: 'default';
|
|
55
|
+
}> | undefined>;
|
|
37
56
|
export default class TasksCreate extends BaseCommand {
|
|
38
57
|
static description: string;
|
|
39
58
|
static examples: string[];
|
|
@@ -54,7 +73,7 @@ export default class TasksCreate extends BaseCommand {
|
|
|
54
73
|
'spawn-reason': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
55
74
|
space: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
56
75
|
goal: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
57
|
-
|
|
76
|
+
duty: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
58
77
|
project: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
59
78
|
cycle: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
60
79
|
'source-conversation': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
@@ -4,6 +4,7 @@ exports.taskTagLabelWarning = taskTagLabelWarning;
|
|
|
4
4
|
exports.droppedEstimateWarning = droppedEstimateWarning;
|
|
5
5
|
exports.taskCreateMayHaveCommitted = taskCreateMayHaveCommitted;
|
|
6
6
|
exports.taskMatchesCreateIdentity = taskMatchesCreateIdentity;
|
|
7
|
+
exports.resolveCreateWorkspace = resolveCreateWorkspace;
|
|
7
8
|
const core_1 = require("@oclif/core");
|
|
8
9
|
const task_economics_1 = require("../../lib/task-economics");
|
|
9
10
|
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
@@ -12,6 +13,7 @@ const label_ref_1 = require("../../lib/label-ref");
|
|
|
12
13
|
const prompt_1 = require("../../lib/prompt");
|
|
13
14
|
const tasks_1 = require("../../lib/tasks");
|
|
14
15
|
const task_instruction_offer_1 = require("../../lib/task-instruction-offer");
|
|
16
|
+
const list_1 = require("./list");
|
|
15
17
|
const web_url_1 = require("../../lib/web-url");
|
|
16
18
|
const TASK_CREATE_MAY_HAVE_COMMITTED_RE = /fetch failed|socket hang up|timed? ?out/i;
|
|
17
19
|
/**
|
|
@@ -104,7 +106,7 @@ function taskMatchesCreateIdentity(task, payload) {
|
|
|
104
106
|
'goalId',
|
|
105
107
|
'projectId',
|
|
106
108
|
'parentId',
|
|
107
|
-
'
|
|
109
|
+
'dutyId',
|
|
108
110
|
'executionMode',
|
|
109
111
|
]) {
|
|
110
112
|
const requested = payload[field];
|
|
@@ -125,6 +127,26 @@ function taskMatchesCreateIdentity(task, payload) {
|
|
|
125
127
|
}
|
|
126
128
|
return true;
|
|
127
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Which workspace a new task is stamped with when the person named none (OSK-22516).
|
|
132
|
+
*
|
|
133
|
+
* `tasks list` reads the signed-in person's DEFAULT workspace when no workspace is selected, but
|
|
134
|
+
* `tasks create` sent no workspace at all, so a task made from a plain CLI session had none. The
|
|
135
|
+
* workspace-scoped list returns only tasks in that workspace's Spaces or stamped with its id, so
|
|
136
|
+
* the person's own new task never showed in their own default list while the briefing, which counts
|
|
137
|
+
* everything they authored, still counted it: 220 review tasks and 66 active ones on production
|
|
138
|
+
* (briefing 2,867 against a list of 2,647).
|
|
139
|
+
*
|
|
140
|
+
* The rule is the list's, not a copy of it: a task that names a Space, project, parent or goal
|
|
141
|
+
* takes its scope from that, a selected workspace (`--workspace`, `skrr workspaces use`) stands, an
|
|
142
|
+
* autonomous Agent session stays personal, and a failed lookup changes nothing.
|
|
143
|
+
*/
|
|
144
|
+
async function resolveCreateWorkspace(scoped, env, lookupDefault) {
|
|
145
|
+
if (scoped)
|
|
146
|
+
return undefined;
|
|
147
|
+
const scope = await (0, list_1.resolveListWorkspace)({}, env, lookupDefault);
|
|
148
|
+
return scope?.source === 'default' ? scope : undefined;
|
|
149
|
+
}
|
|
128
150
|
class TasksCreate extends base_command_1.BaseCommand {
|
|
129
151
|
static description = 'Create a new task';
|
|
130
152
|
static examples = [
|
|
@@ -187,8 +209,8 @@ class TasksCreate extends base_command_1.BaseCommand {
|
|
|
187
209
|
}),
|
|
188
210
|
space: core_1.Flags.string({ description: 'Space ID' }),
|
|
189
211
|
goal: core_1.Flags.string({ description: 'Goal ID' }),
|
|
190
|
-
|
|
191
|
-
description: '
|
|
212
|
+
duty: core_1.Flags.string({
|
|
213
|
+
description: 'Duty ID that owns this task. Use for work created directly from a duty without a linked goal.',
|
|
192
214
|
}),
|
|
193
215
|
project: core_1.Flags.string({
|
|
194
216
|
description: 'Project to attach the task to: its `id` (uuid; a pasted `_id` is accepted and rewritten ' +
|
|
@@ -333,6 +355,25 @@ class TasksCreate extends base_command_1.BaseCommand {
|
|
|
333
355
|
retryable: false,
|
|
334
356
|
});
|
|
335
357
|
}
|
|
358
|
+
// Stamp the person's default workspace on a task that names no scope of its own, the way
|
|
359
|
+
// `tasks list` reads it, so the task they create is one their default list shows (OSK-22516).
|
|
360
|
+
// Applied as `--workspace` is: the request header follows OVERSKY_WORKSPACE_ID for this process.
|
|
361
|
+
const namesAScope = Boolean(flags.space ||
|
|
362
|
+
flags.project ||
|
|
363
|
+
flags.parent ||
|
|
364
|
+
flags.goal ||
|
|
365
|
+
body.spaceId ||
|
|
366
|
+
body.projectId ||
|
|
367
|
+
body.parentId ||
|
|
368
|
+
body.goalId);
|
|
369
|
+
const defaultWorkspace = await resolveCreateWorkspace(namesAScope, process.env, list_1.lookupDefaultWorkspace);
|
|
370
|
+
if (defaultWorkspace) {
|
|
371
|
+
process.env.OVERSKY_WORKSPACE_ID = defaultWorkspace.workspaceId;
|
|
372
|
+
if (!flags.json && defaultWorkspace.workspaceCount > 1) {
|
|
373
|
+
this.logToStderr(`Workspace: ${defaultWorkspace.workspaceName ? `"${defaultWorkspace.workspaceName}"` : defaultWorkspace.workspaceId} ` +
|
|
374
|
+
`(your default). To create it in another: ${this.config.bin} tasks create ... --workspace <id>`);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
336
377
|
// Resolve --expect BEFORE any write. A bad spec must fail here rather than
|
|
337
378
|
// reaching the server as a silently-dropped field: a declaration that did
|
|
338
379
|
// not stick is worse than none, because the board then shows a contract
|
|
@@ -36,6 +36,12 @@ export declare function resolveListWorkspace(flags: {
|
|
|
36
36
|
name?: string;
|
|
37
37
|
count: number;
|
|
38
38
|
} | null>): Promise<ListWorkspaceScope | undefined>;
|
|
39
|
+
/** The default workspace the signed-in person's `skrr workspaces list` reports. */
|
|
40
|
+
export declare function lookupDefaultWorkspace(): Promise<{
|
|
41
|
+
id: string;
|
|
42
|
+
name?: string;
|
|
43
|
+
count: number;
|
|
44
|
+
} | null>;
|
|
39
45
|
/**
|
|
40
46
|
* E12: inside an agent session an unfiltered `tasks list --json` returned the
|
|
41
47
|
* first page of EVERYTHING, which in practice was cancelled test tasks. When the
|
|
@@ -54,7 +60,7 @@ export declare function agentSessionOpenDefault(flags: ListFlags, env?: NodeJS.P
|
|
|
54
60
|
* What the zero-row case is allowed to say. The bare `No tasks.` was step 3
|
|
55
61
|
* of `GETTING_STARTED.md` and named no next step; a new user reading it hit
|
|
56
62
|
* three of these in a row and concluded the product was empty. Follow the
|
|
57
|
-
* `
|
|
63
|
+
* `duties/list.ts` pattern: name the command that fixes THIS empty state,
|
|
58
64
|
* with the specific `--status in_progress` hint kept because a reaped run
|
|
59
65
|
* genuinely hides here (a real bug, not a first-run scenario).
|
|
60
66
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveListWorkspace = resolveListWorkspace;
|
|
4
|
+
exports.lookupDefaultWorkspace = lookupDefaultWorkspace;
|
|
4
5
|
exports.agentSessionOpenDefault = agentSessionOpenDefault;
|
|
5
6
|
exports.emptyTasksMessage = emptyTasksMessage;
|
|
6
7
|
exports.externalKeyPrefixWarnings = externalKeyPrefixWarnings;
|
|
@@ -148,7 +149,7 @@ function agentSessionOpenDefault(flags, env = process.env) {
|
|
|
148
149
|
* What the zero-row case is allowed to say. The bare `No tasks.` was step 3
|
|
149
150
|
* of `GETTING_STARTED.md` and named no next step; a new user reading it hit
|
|
150
151
|
* three of these in a row and concluded the product was empty. Follow the
|
|
151
|
-
* `
|
|
152
|
+
* `duties/list.ts` pattern: name the command that fixes THIS empty state,
|
|
152
153
|
* with the specific `--status in_progress` hint kept because a reaped run
|
|
153
154
|
* genuinely hides here (a real bug, not a first-run scenario).
|
|
154
155
|
*
|