@skrr-ai/cli 0.1.8
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 +1952 -0
- package/bin/run.js +26 -0
- package/dist/base-command.d.ts +397 -0
- package/dist/base-command.js +1252 -0
- package/dist/commands/actions/browse.d.ts +14 -0
- package/dist/commands/actions/browse.js +50 -0
- package/dist/commands/actions/create.d.ts +20 -0
- package/dist/commands/actions/create.js +95 -0
- package/dist/commands/actions/delete.d.ts +13 -0
- package/dist/commands/actions/delete.js +42 -0
- package/dist/commands/actions/install.d.ts +13 -0
- package/dist/commands/actions/install.js +49 -0
- package/dist/commands/actions/list.d.ts +14 -0
- package/dist/commands/actions/list.js +49 -0
- package/dist/commands/actions/publish.d.ts +14 -0
- package/dist/commands/actions/publish.js +44 -0
- package/dist/commands/actions/rate.d.ts +13 -0
- package/dist/commands/actions/rate.js +42 -0
- package/dist/commands/actions/show.d.ts +12 -0
- package/dist/commands/actions/show.js +36 -0
- package/dist/commands/actions/update.d.ts +21 -0
- package/dist/commands/actions/update.js +83 -0
- package/dist/commands/agenda/plan.d.ts +27 -0
- package/dist/commands/agenda/plan.js +68 -0
- package/dist/commands/agenda/trigger/create.d.ts +33 -0
- package/dist/commands/agenda/trigger/create.js +128 -0
- package/dist/commands/agenda/trigger/delete.d.ts +21 -0
- package/dist/commands/agenda/trigger/delete.js +56 -0
- package/dist/commands/agenda/trigger/fire.d.ts +28 -0
- package/dist/commands/agenda/trigger/fire.js +74 -0
- package/dist/commands/agenda/trigger/list.d.ts +28 -0
- package/dist/commands/agenda/trigger/list.js +104 -0
- package/dist/commands/agent/call/cancel.d.ts +11 -0
- package/dist/commands/agent/call/cancel.js +49 -0
- package/dist/commands/agent/call/request.d.ts +15 -0
- package/dist/commands/agent/call/request.js +173 -0
- package/dist/commands/agent/call/show.d.ts +11 -0
- package/dist/commands/agent/call/show.js +48 -0
- package/dist/commands/agent/message/context.d.ts +19 -0
- package/dist/commands/agent/message/context.js +79 -0
- package/dist/commands/agent/message/send.d.ts +232 -0
- package/dist/commands/agent/message/send.js +1055 -0
- package/dist/commands/agent/phone-call/request.d.ts +20 -0
- package/dist/commands/agent/phone-call/request.js +145 -0
- package/dist/commands/agent-groups/add.d.ts +13 -0
- package/dist/commands/agent-groups/add.js +45 -0
- package/dist/commands/agent-groups/create.d.ts +14 -0
- package/dist/commands/agent-groups/create.js +62 -0
- package/dist/commands/agent-groups/delete.d.ts +12 -0
- package/dist/commands/agent-groups/delete.js +43 -0
- package/dist/commands/agent-groups/list.d.ts +9 -0
- package/dist/commands/agent-groups/list.js +51 -0
- package/dist/commands/agent-groups/remove.d.ts +13 -0
- package/dist/commands/agent-groups/remove.js +45 -0
- package/dist/commands/agent-groups/show.d.ts +12 -0
- package/dist/commands/agent-groups/show.js +42 -0
- package/dist/commands/agent-groups/update.d.ts +17 -0
- package/dist/commands/agent-groups/update.js +68 -0
- package/dist/commands/agent-shares/accept.d.ts +12 -0
- package/dist/commands/agent-shares/accept.js +35 -0
- package/dist/commands/agent-shares/create.d.ts +15 -0
- package/dist/commands/agent-shares/create.js +66 -0
- package/dist/commands/agent-shares/decline.d.ts +13 -0
- package/dist/commands/agent-shares/decline.js +54 -0
- package/dist/commands/agent-shares/leave.d.ts +12 -0
- package/dist/commands/agent-shares/leave.js +43 -0
- package/dist/commands/agent-shares/list-for.d.ts +12 -0
- package/dist/commands/agent-shares/list-for.js +66 -0
- package/dist/commands/agent-shares/received.d.ts +13 -0
- package/dist/commands/agent-shares/received.js +77 -0
- package/dist/commands/agent-shares/revoke.d.ts +12 -0
- package/dist/commands/agent-shares/revoke.js +43 -0
- package/dist/commands/agent-shares/sent.d.ts +12 -0
- package/dist/commands/agent-shares/sent.js +74 -0
- package/dist/commands/agent-shares/with.d.ts +12 -0
- package/dist/commands/agent-shares/with.js +79 -0
- package/dist/commands/agents/actions/create.d.ts +23 -0
- package/dist/commands/agents/actions/create.js +130 -0
- package/dist/commands/agents/actions/delete.d.ts +13 -0
- package/dist/commands/agents/actions/delete.js +43 -0
- package/dist/commands/agents/actions/list.d.ts +12 -0
- package/dist/commands/agents/actions/list.js +36 -0
- package/dist/commands/agents/actions/run.d.ts +15 -0
- package/dist/commands/agents/actions/run.js +61 -0
- package/dist/commands/agents/actions/schedule.d.ts +29 -0
- package/dist/commands/agents/actions/schedule.js +162 -0
- package/dist/commands/agents/actions/show.d.ts +13 -0
- package/dist/commands/agents/actions/show.js +40 -0
- package/dist/commands/agents/actions/targets.d.ts +14 -0
- package/dist/commands/agents/actions/targets.js +117 -0
- package/dist/commands/agents/actions/update.d.ts +22 -0
- package/dist/commands/agents/actions/update.js +117 -0
- package/dist/commands/agents/activity.d.ts +24 -0
- package/dist/commands/agents/activity.js +195 -0
- package/dist/commands/agents/always-on/disable.d.ts +23 -0
- package/dist/commands/agents/always-on/disable.js +57 -0
- package/dist/commands/agents/always-on/enable.d.ts +31 -0
- package/dist/commands/agents/always-on/enable.js +65 -0
- package/dist/commands/agents/always-on/reconcile.d.ts +23 -0
- package/dist/commands/agents/always-on/reconcile.js +49 -0
- package/dist/commands/agents/always-on/status.d.ts +22 -0
- package/dist/commands/agents/always-on/status.js +67 -0
- package/dist/commands/agents/attach-harness.d.ts +16 -0
- package/dist/commands/agents/attach-harness.js +131 -0
- package/dist/commands/agents/avatar/generate.d.ts +12 -0
- package/dist/commands/agents/avatar/generate.js +27 -0
- package/dist/commands/agents/avatar/upload.d.ts +12 -0
- package/dist/commands/agents/avatar/upload.js +29 -0
- package/dist/commands/agents/channels/connect.d.ts +12 -0
- package/dist/commands/agents/channels/connect.js +33 -0
- package/dist/commands/agents/channels/delete.d.ts +13 -0
- package/dist/commands/agents/channels/delete.js +37 -0
- package/dist/commands/agents/channels/disconnect.d.ts +12 -0
- package/dist/commands/agents/channels/disconnect.js +33 -0
- package/dist/commands/agents/channels/show.d.ts +12 -0
- package/dist/commands/agents/channels/show.js +29 -0
- package/dist/commands/agents/channels/test.d.ts +13 -0
- package/dist/commands/agents/channels/test.js +33 -0
- package/dist/commands/agents/channels/update.d.ts +13 -0
- package/dist/commands/agents/channels/update.js +37 -0
- package/dist/commands/agents/chat.d.ts +72 -0
- package/dist/commands/agents/chat.js +394 -0
- package/dist/commands/agents/create.d.ts +70 -0
- package/dist/commands/agents/create.js +241 -0
- package/dist/commands/agents/delete.d.ts +12 -0
- package/dist/commands/agents/delete.js +46 -0
- package/dist/commands/agents/duplicate.d.ts +12 -0
- package/dist/commands/agents/duplicate.js +46 -0
- package/dist/commands/agents/files/delete.d.ts +13 -0
- package/dist/commands/agents/files/delete.js +32 -0
- package/dist/commands/agents/files/list.d.ts +11 -0
- package/dist/commands/agents/files/list.js +22 -0
- package/dist/commands/agents/files/move.d.ts +13 -0
- package/dist/commands/agents/files/move.js +35 -0
- package/dist/commands/agents/files/rename.d.ts +13 -0
- package/dist/commands/agents/files/rename.js +32 -0
- package/dist/commands/agents/files/upload.d.ts +21 -0
- package/dist/commands/agents/files/upload.js +60 -0
- package/dist/commands/agents/folders/create.d.ts +13 -0
- package/dist/commands/agents/folders/create.js +30 -0
- package/dist/commands/agents/folders/delete.d.ts +13 -0
- package/dist/commands/agents/folders/delete.js +30 -0
- package/dist/commands/agents/folders/list.d.ts +11 -0
- package/dist/commands/agents/folders/list.js +22 -0
- package/dist/commands/agents/folders/show.d.ts +12 -0
- package/dist/commands/agents/folders/show.js +23 -0
- package/dist/commands/agents/folders/update.d.ts +14 -0
- package/dist/commands/agents/folders/update.js +32 -0
- package/dist/commands/agents/goals/assign.d.ts +25 -0
- package/dist/commands/agents/goals/assign.js +56 -0
- package/dist/commands/agents/goals/list.d.ts +24 -0
- package/dist/commands/agents/goals/list.js +71 -0
- package/dist/commands/agents/goals/unassign.d.ts +23 -0
- package/dist/commands/agents/goals/unassign.js +49 -0
- package/dist/commands/agents/identity.d.ts +35 -0
- package/dist/commands/agents/identity.js +78 -0
- package/dist/commands/agents/intuitions/accept.d.ts +13 -0
- package/dist/commands/agents/intuitions/accept.js +26 -0
- package/dist/commands/agents/intuitions/dismiss.d.ts +13 -0
- package/dist/commands/agents/intuitions/dismiss.js +25 -0
- package/dist/commands/agents/intuitions/generate.d.ts +12 -0
- package/dist/commands/agents/intuitions/generate.js +24 -0
- package/dist/commands/agents/intuitions/list.d.ts +11 -0
- package/dist/commands/agents/intuitions/list.js +21 -0
- package/dist/commands/agents/intuitions/stats.d.ts +11 -0
- package/dist/commands/agents/intuitions/stats.js +17 -0
- package/dist/commands/agents/list.d.ts +22 -0
- package/dist/commands/agents/list.js +75 -0
- package/dist/commands/agents/notepad/delete.d.ts +12 -0
- package/dist/commands/agents/notepad/delete.js +29 -0
- package/dist/commands/agents/notepad/show.d.ts +11 -0
- package/dist/commands/agents/notepad/show.js +22 -0
- package/dist/commands/agents/notepad/update.d.ts +13 -0
- package/dist/commands/agents/notepad/update.js +31 -0
- package/dist/commands/agents/overview.d.ts +26 -0
- package/dist/commands/agents/overview.js +98 -0
- package/dist/commands/agents/plan-day.d.ts +66 -0
- package/dist/commands/agents/plan-day.js +279 -0
- package/dist/commands/agents/preferences/show.d.ts +11 -0
- package/dist/commands/agents/preferences/show.js +20 -0
- package/dist/commands/agents/preferences/update.d.ts +14 -0
- package/dist/commands/agents/preferences/update.js +34 -0
- package/dist/commands/agents/query.d.ts +20 -0
- package/dist/commands/agents/query.js +51 -0
- package/dist/commands/agents/reflect.d.ts +36 -0
- package/dist/commands/agents/reflect.js +184 -0
- package/dist/commands/agents/releases/create.d.ts +14 -0
- package/dist/commands/agents/releases/create.js +31 -0
- package/dist/commands/agents/releases/delist.d.ts +14 -0
- package/dist/commands/agents/releases/delist.js +31 -0
- package/dist/commands/agents/releases/list.d.ts +11 -0
- package/dist/commands/agents/releases/list.js +21 -0
- package/dist/commands/agents/releases/restore.d.ts +12 -0
- package/dist/commands/agents/releases/restore.js +27 -0
- package/dist/commands/agents/releases/rollback.d.ts +12 -0
- package/dist/commands/agents/releases/rollback.js +25 -0
- package/dist/commands/agents/revert.d.ts +13 -0
- package/dist/commands/agents/revert.js +42 -0
- package/dist/commands/agents/schedule-overview.d.ts +27 -0
- package/dist/commands/agents/schedule-overview.js +231 -0
- package/dist/commands/agents/schedule-trace.d.ts +27 -0
- package/dist/commands/agents/schedule-trace.js +111 -0
- package/dist/commands/agents/schedule.d.ts +46 -0
- package/dist/commands/agents/schedule.js +155 -0
- package/dist/commands/agents/show.d.ts +30 -0
- package/dist/commands/agents/show.js +147 -0
- package/dist/commands/agents/skills/add.d.ts +29 -0
- package/dist/commands/agents/skills/add.js +59 -0
- package/dist/commands/agents/skills/list.d.ts +21 -0
- package/dist/commands/agents/skills/list.js +78 -0
- package/dist/commands/agents/skills/remove.d.ts +21 -0
- package/dist/commands/agents/skills/remove.js +50 -0
- package/dist/commands/agents/spaces.d.ts +31 -0
- package/dist/commands/agents/spaces.js +87 -0
- package/dist/commands/agents/spawn.d.ts +56 -0
- package/dist/commands/agents/spawn.js +328 -0
- package/dist/commands/agents/todos/cancel.d.ts +19 -0
- package/dist/commands/agents/todos/cancel.js +57 -0
- package/dist/commands/agents/todos/create.d.ts +22 -0
- package/dist/commands/agents/todos/create.js +55 -0
- package/dist/commands/agents/todos/list.d.ts +18 -0
- package/dist/commands/agents/todos/list.js +42 -0
- package/dist/commands/agents/tone/clear.d.ts +18 -0
- package/dist/commands/agents/tone/clear.js +79 -0
- package/dist/commands/agents/tone/inherit.d.ts +17 -0
- package/dist/commands/agents/tone/inherit.js +75 -0
- package/dist/commands/agents/tone/set.d.ts +21 -0
- package/dist/commands/agents/tone/set.js +125 -0
- package/dist/commands/agents/tone/show.d.ts +26 -0
- package/dist/commands/agents/tone/show.js +114 -0
- package/dist/commands/agents/transfer-workspace.d.ts +20 -0
- package/dist/commands/agents/transfer-workspace.js +49 -0
- package/dist/commands/agents/triggers/create.d.ts +93 -0
- package/dist/commands/agents/triggers/create.js +324 -0
- package/dist/commands/agents/triggers/delete.d.ts +18 -0
- package/dist/commands/agents/triggers/delete.js +64 -0
- package/dist/commands/agents/triggers/disable.d.ts +18 -0
- package/dist/commands/agents/triggers/disable.js +42 -0
- package/dist/commands/agents/triggers/enable.d.ts +14 -0
- package/dist/commands/agents/triggers/enable.js +38 -0
- package/dist/commands/agents/triggers/fire.d.ts +20 -0
- package/dist/commands/agents/triggers/fire.js +56 -0
- package/dist/commands/agents/triggers/list.d.ts +30 -0
- package/dist/commands/agents/triggers/list.js +62 -0
- package/dist/commands/agents/triggers/policy.d.ts +20 -0
- package/dist/commands/agents/triggers/policy.js +79 -0
- package/dist/commands/agents/triggers/replay.d.ts +15 -0
- package/dist/commands/agents/triggers/replay.js +55 -0
- package/dist/commands/agents/triggers/runs.d.ts +22 -0
- package/dist/commands/agents/triggers/runs.js +74 -0
- package/dist/commands/agents/triggers/show.d.ts +19 -0
- package/dist/commands/agents/triggers/show.js +44 -0
- package/dist/commands/agents/triggers/update.d.ts +80 -0
- package/dist/commands/agents/triggers/update.js +254 -0
- package/dist/commands/agents/upcoming.d.ts +36 -0
- package/dist/commands/agents/upcoming.js +120 -0
- package/dist/commands/agents/update.d.ts +44 -0
- package/dist/commands/agents/update.js +129 -0
- package/dist/commands/agents/versions.d.ts +26 -0
- package/dist/commands/agents/versions.js +94 -0
- package/dist/commands/agents/visibility.d.ts +19 -0
- package/dist/commands/agents/visibility.js +65 -0
- package/dist/commands/balance/history.d.ts +24 -0
- package/dist/commands/balance/history.js +89 -0
- package/dist/commands/balance/show.d.ts +45 -0
- package/dist/commands/balance/show.js +211 -0
- package/dist/commands/balance/statement.d.ts +89 -0
- package/dist/commands/balance/statement.js +249 -0
- package/dist/commands/balance/usage.d.ts +22 -0
- package/dist/commands/balance/usage.js +106 -0
- package/dist/commands/browser/doctor.d.ts +8 -0
- package/dist/commands/browser/doctor.js +15 -0
- package/dist/commands/browser/install.d.ts +11 -0
- package/dist/commands/browser/install.js +27 -0
- package/dist/commands/browser/mcp-config.d.ts +5 -0
- package/dist/commands/browser/mcp-config.js +12 -0
- package/dist/commands/browser/skill/show.d.ts +8 -0
- package/dist/commands/browser/skill/show.js +15 -0
- package/dist/commands/browser/status.d.ts +8 -0
- package/dist/commands/browser/status.js +15 -0
- package/dist/commands/browser/uninstall.d.ts +11 -0
- package/dist/commands/browser/uninstall.js +27 -0
- package/dist/commands/browser.d.ts +19 -0
- package/dist/commands/browser.js +52 -0
- package/dist/commands/characters/list.d.ts +11 -0
- package/dist/commands/characters/list.js +51 -0
- package/dist/commands/chats/agents/add.d.ts +13 -0
- package/dist/commands/chats/agents/add.js +44 -0
- package/dist/commands/chats/agents/remove.d.ts +13 -0
- package/dist/commands/chats/agents/remove.js +39 -0
- package/dist/commands/chats/create.d.ts +45 -0
- package/dist/commands/chats/create.js +125 -0
- package/dist/commands/chats/delete.d.ts +12 -0
- package/dist/commands/chats/delete.js +46 -0
- package/dist/commands/chats/files/delete.d.ts +13 -0
- package/dist/commands/chats/files/delete.js +50 -0
- package/dist/commands/chats/files/list.d.ts +10 -0
- package/dist/commands/chats/files/list.js +51 -0
- package/dist/commands/chats/files/move.d.ts +14 -0
- package/dist/commands/chats/files/move.js +41 -0
- package/dist/commands/chats/files/rename.d.ts +14 -0
- package/dist/commands/chats/files/rename.js +42 -0
- package/dist/commands/chats/folders/create.d.ts +11 -0
- package/dist/commands/chats/folders/create.js +38 -0
- package/dist/commands/chats/folders/delete.d.ts +13 -0
- package/dist/commands/chats/folders/delete.js +50 -0
- package/dist/commands/chats/folders/list.d.ts +10 -0
- package/dist/commands/chats/folders/list.js +49 -0
- package/dist/commands/chats/folders/update.d.ts +14 -0
- package/dist/commands/chats/folders/update.js +42 -0
- package/dist/commands/chats/join.d.ts +12 -0
- package/dist/commands/chats/join.js +35 -0
- package/dist/commands/chats/list.d.ts +30 -0
- package/dist/commands/chats/list.js +98 -0
- package/dist/commands/chats/messages.d.ts +15 -0
- package/dist/commands/chats/messages.js +59 -0
- package/dist/commands/chats/preferences/show.d.ts +9 -0
- package/dist/commands/chats/preferences/show.js +32 -0
- package/dist/commands/chats/preferences/update.d.ts +13 -0
- package/dist/commands/chats/preferences/update.js +50 -0
- package/dist/commands/chats/send.d.ts +27 -0
- package/dist/commands/chats/send.js +191 -0
- package/dist/commands/chats/show.d.ts +12 -0
- package/dist/commands/chats/show.js +64 -0
- package/dist/commands/chats/spaces/create.d.ts +12 -0
- package/dist/commands/chats/spaces/create.js +52 -0
- package/dist/commands/chats/spaces/link.d.ts +13 -0
- package/dist/commands/chats/spaces/link.js +36 -0
- package/dist/commands/chats/spaces/list.d.ts +10 -0
- package/dist/commands/chats/spaces/list.js +49 -0
- package/dist/commands/chats/spaces/unlink.d.ts +13 -0
- package/dist/commands/chats/spaces/unlink.js +36 -0
- package/dist/commands/chats/triggers/set.d.ts +32 -0
- package/dist/commands/chats/triggers/set.js +127 -0
- package/dist/commands/chats/triggers/show.d.ts +12 -0
- package/dist/commands/chats/triggers/show.js +46 -0
- package/dist/commands/chats/update.d.ts +15 -0
- package/dist/commands/chats/update.js +54 -0
- package/dist/commands/chats/widgets/create.d.ts +13 -0
- package/dist/commands/chats/widgets/create.js +51 -0
- package/dist/commands/chats/widgets/delete.d.ts +13 -0
- package/dist/commands/chats/widgets/delete.js +47 -0
- package/dist/commands/chats/widgets/list.d.ts +10 -0
- package/dist/commands/chats/widgets/list.js +49 -0
- package/dist/commands/chats/widgets/update.d.ts +16 -0
- package/dist/commands/chats/widgets/update.js +54 -0
- package/dist/commands/code/acp.d.ts +20 -0
- package/dist/commands/code/acp.js +46 -0
- package/dist/commands/code/doctor.d.ts +21 -0
- package/dist/commands/code/doctor.js +39 -0
- package/dist/commands/code/handover.d.ts +47 -0
- package/dist/commands/code/handover.js +177 -0
- package/dist/commands/code/index.d.ts +37 -0
- package/dist/commands/code/index.js +105 -0
- package/dist/commands/code/migrate.d.ts +26 -0
- package/dist/commands/code/migrate.js +62 -0
- package/dist/commands/code/oversky-agent.d.ts +63 -0
- package/dist/commands/code/oversky-agent.js +201 -0
- package/dist/commands/code/run.d.ts +13 -0
- package/dist/commands/code/run.js +36 -0
- package/dist/commands/commands.d.ts +16 -0
- package/dist/commands/commands.js +131 -0
- package/dist/commands/commitments/action-history.d.ts +21 -0
- package/dist/commands/commitments/action-history.js +40 -0
- package/dist/commands/commitments/analytics/detail.d.ts +25 -0
- package/dist/commands/commitments/analytics/detail.js +51 -0
- package/dist/commands/commitments/analytics/index.d.ts +34 -0
- package/dist/commands/commitments/analytics/index.js +107 -0
- package/dist/commands/commitments/analytics/replay.d.ts +22 -0
- package/dist/commands/commitments/analytics/replay.js +45 -0
- package/dist/commands/commitments/attach.d.ts +25 -0
- package/dist/commands/commitments/attach.js +81 -0
- package/dist/commands/commitments/autonomy-requests/decide.d.ts +26 -0
- package/dist/commands/commitments/autonomy-requests/decide.js +58 -0
- package/dist/commands/commitments/autonomy.d.ts +34 -0
- package/dist/commands/commitments/autonomy.js +68 -0
- package/dist/commands/commitments/cadence-decisions.d.ts +17 -0
- package/dist/commands/commitments/cadence-decisions.js +36 -0
- package/dist/commands/commitments/case.d.ts +12 -0
- package/dist/commands/commitments/case.js +26 -0
- package/dist/commands/commitments/cases.d.ts +13 -0
- package/dist/commands/commitments/cases.js +32 -0
- package/dist/commands/commitments/check-now.d.ts +22 -0
- package/dist/commands/commitments/check-now.js +76 -0
- package/dist/commands/commitments/checks.d.ts +21 -0
- package/dist/commands/commitments/checks.js +44 -0
- package/dist/commands/commitments/complete.d.ts +17 -0
- package/dist/commands/commitments/complete.js +40 -0
- package/dist/commands/commitments/create.d.ts +51 -0
- package/dist/commands/commitments/create.js +236 -0
- package/dist/commands/commitments/decide-remediation.d.ts +14 -0
- package/dist/commands/commitments/decide-remediation.js +38 -0
- package/dist/commands/commitments/delete.d.ts +27 -0
- package/dist/commands/commitments/delete.js +72 -0
- package/dist/commands/commitments/detach.d.ts +23 -0
- package/dist/commands/commitments/detach.js +77 -0
- package/dist/commands/commitments/effective-policy.d.ts +13 -0
- package/dist/commands/commitments/effective-policy.js +37 -0
- package/dist/commands/commitments/endpoints/connect.d.ts +25 -0
- package/dist/commands/commitments/endpoints/connect.js +78 -0
- package/dist/commands/commitments/endpoints/create.d.ts +32 -0
- package/dist/commands/commitments/endpoints/create.js +80 -0
- package/dist/commands/commitments/endpoints/delete.d.ts +20 -0
- package/dist/commands/commitments/endpoints/delete.js +57 -0
- package/dist/commands/commitments/endpoints/health.d.ts +22 -0
- package/dist/commands/commitments/endpoints/health.js +54 -0
- package/dist/commands/commitments/endpoints/list.d.ts +18 -0
- package/dist/commands/commitments/endpoints/list.js +41 -0
- package/dist/commands/commitments/endpoints/revoke.d.ts +21 -0
- package/dist/commands/commitments/endpoints/revoke.js +58 -0
- package/dist/commands/commitments/execute-remediation.d.ts +13 -0
- package/dist/commands/commitments/execute-remediation.js +29 -0
- package/dist/commands/commitments/export.d.ts +20 -0
- package/dist/commands/commitments/export.js +45 -0
- package/dist/commands/commitments/feedback.d.ts +25 -0
- package/dist/commands/commitments/feedback.js +59 -0
- package/dist/commands/commitments/fork.d.ts +20 -0
- package/dist/commands/commitments/fork.js +44 -0
- package/dist/commands/commitments/goals/link.d.ts +23 -0
- package/dist/commands/commitments/goals/link.js +41 -0
- package/dist/commands/commitments/goals/unlink.d.ts +19 -0
- package/dist/commands/commitments/goals/unlink.js +37 -0
- package/dist/commands/commitments/hypotheses.d.ts +27 -0
- package/dist/commands/commitments/hypotheses.js +60 -0
- package/dist/commands/commitments/import.d.ts +18 -0
- package/dist/commands/commitments/import.js +57 -0
- package/dist/commands/commitments/ledger.d.ts +21 -0
- package/dist/commands/commitments/ledger.js +49 -0
- package/dist/commands/commitments/lineage.d.ts +20 -0
- package/dist/commands/commitments/lineage.js +43 -0
- package/dist/commands/commitments/links/create.d.ts +15 -0
- package/dist/commands/commitments/links/create.js +58 -0
- package/dist/commands/commitments/links/detach.d.ts +12 -0
- package/dist/commands/commitments/links/detach.js +30 -0
- package/dist/commands/commitments/links/list.d.ts +12 -0
- package/dist/commands/commitments/links/list.js +41 -0
- package/dist/commands/commitments/links/update.d.ts +14 -0
- package/dist/commands/commitments/links/update.js +45 -0
- package/dist/commands/commitments/list.d.ts +21 -0
- package/dist/commands/commitments/list.js +64 -0
- package/dist/commands/commitments/metrics.d.ts +20 -0
- package/dist/commands/commitments/metrics.js +43 -0
- package/dist/commands/commitments/observations.d.ts +31 -0
- package/dist/commands/commitments/observations.js +64 -0
- package/dist/commands/commitments/open.d.ts +13 -0
- package/dist/commands/commitments/open.js +50 -0
- package/dist/commands/commitments/operating-review.d.ts +11 -0
- package/dist/commands/commitments/operating-review.js +99 -0
- package/dist/commands/commitments/pack/bind.d.ts +24 -0
- package/dist/commands/commitments/pack/bind.js +88 -0
- package/dist/commands/commitments/pack/list.d.ts +13 -0
- package/dist/commands/commitments/pack/list.js +52 -0
- package/dist/commands/commitments/pack/plan.d.ts +22 -0
- package/dist/commands/commitments/pack/plan.js +65 -0
- package/dist/commands/commitments/pack/preflight.d.ts +28 -0
- package/dist/commands/commitments/pack/preflight.js +85 -0
- package/dist/commands/commitments/pack/promote.d.ts +19 -0
- package/dist/commands/commitments/pack/promote.js +42 -0
- package/dist/commands/commitments/pack/shadow.d.ts +19 -0
- package/dist/commands/commitments/pack/shadow.js +40 -0
- package/dist/commands/commitments/pause.d.ts +16 -0
- package/dist/commands/commitments/pause.js +36 -0
- package/dist/commands/commitments/plan.d.ts +35 -0
- package/dist/commands/commitments/plan.js +126 -0
- package/dist/commands/commitments/preflight.d.ts +39 -0
- package/dist/commands/commitments/preflight.js +98 -0
- package/dist/commands/commitments/propose-remediation.d.ts +13 -0
- package/dist/commands/commitments/propose-remediation.js +40 -0
- package/dist/commands/commitments/reflect.d.ts +21 -0
- package/dist/commands/commitments/reflect.js +66 -0
- package/dist/commands/commitments/reflection-decision.d.ts +13 -0
- package/dist/commands/commitments/reflection-decision.js +37 -0
- package/dist/commands/commitments/reflection.d.ts +11 -0
- package/dist/commands/commitments/reflection.js +25 -0
- package/dist/commands/commitments/remediate.d.ts +30 -0
- package/dist/commands/commitments/remediate.js +65 -0
- package/dist/commands/commitments/remediation-proposal.d.ts +12 -0
- package/dist/commands/commitments/remediation-proposal.js +26 -0
- package/dist/commands/commitments/remediation-proposals.d.ts +14 -0
- package/dist/commands/commitments/remediation-proposals.js +34 -0
- package/dist/commands/commitments/reports.d.ts +26 -0
- package/dist/commands/commitments/reports.js +125 -0
- package/dist/commands/commitments/resume.d.ts +17 -0
- package/dist/commands/commitments/resume.js +37 -0
- package/dist/commands/commitments/show.d.ts +20 -0
- package/dist/commands/commitments/show.js +58 -0
- package/dist/commands/commitments/subject.d.ts +30 -0
- package/dist/commands/commitments/subject.js +115 -0
- package/dist/commands/commitments/trace.d.ts +18 -0
- package/dist/commands/commitments/trace.js +44 -0
- package/dist/commands/commitments/trigger-status.d.ts +27 -0
- package/dist/commands/commitments/trigger-status.js +111 -0
- package/dist/commands/commitments/update.d.ts +43 -0
- package/dist/commands/commitments/update.js +194 -0
- package/dist/commands/commitments/wake-capabilities.d.ts +22 -0
- package/dist/commands/commitments/wake-capabilities.js +61 -0
- package/dist/commands/compass/archive.d.ts +23 -0
- package/dist/commands/compass/archive.js +64 -0
- package/dist/commands/compass/commitments.d.ts +20 -0
- package/dist/commands/compass/commitments.js +58 -0
- package/dist/commands/compass/create.d.ts +39 -0
- package/dist/commands/compass/create.js +91 -0
- package/dist/commands/compass/list.d.ts +18 -0
- package/dist/commands/compass/list.js +45 -0
- package/dist/commands/compass/revert.d.ts +23 -0
- package/dist/commands/compass/revert.js +56 -0
- package/dist/commands/compass/revisions.d.ts +20 -0
- package/dist/commands/compass/revisions.js +46 -0
- package/dist/commands/compass/show.d.ts +21 -0
- package/dist/commands/compass/show.js +49 -0
- package/dist/commands/compass/tactic.d.ts +23 -0
- package/dist/commands/compass/tactic.js +53 -0
- package/dist/commands/compass/trace.d.ts +18 -0
- package/dist/commands/compass/trace.js +41 -0
- package/dist/commands/compass/update.d.ts +30 -0
- package/dist/commands/compass/update.js +82 -0
- package/dist/commands/completion/index.d.ts +13 -0
- package/dist/commands/completion/index.js +59 -0
- package/dist/commands/completion/script.d.ts +9 -0
- package/dist/commands/completion/script.js +24 -0
- package/dist/commands/completion/values.d.ts +10 -0
- package/dist/commands/completion/values.js +27 -0
- package/dist/commands/context.d.ts +10 -0
- package/dist/commands/context.js +130 -0
- package/dist/commands/convos/archive.d.ts +12 -0
- package/dist/commands/convos/archive.js +38 -0
- package/dist/commands/convos/delete.d.ts +12 -0
- package/dist/commands/convos/delete.js +49 -0
- package/dist/commands/convos/duplicate.d.ts +13 -0
- package/dist/commands/convos/duplicate.js +42 -0
- package/dist/commands/convos/fork.d.ts +16 -0
- package/dist/commands/convos/fork.js +56 -0
- package/dist/commands/convos/handover.d.ts +29 -0
- package/dist/commands/convos/handover.js +120 -0
- package/dist/commands/convos/import.d.ts +12 -0
- package/dist/commands/convos/import.js +101 -0
- package/dist/commands/convos/list.d.ts +16 -0
- package/dist/commands/convos/list.js +129 -0
- package/dist/commands/convos/messages.d.ts +30 -0
- package/dist/commands/convos/messages.js +97 -0
- package/dist/commands/convos/search.d.ts +27 -0
- package/dist/commands/convos/search.js +88 -0
- package/dist/commands/convos/show.d.ts +33 -0
- package/dist/commands/convos/show.js +118 -0
- package/dist/commands/convos/unarchive.d.ts +12 -0
- package/dist/commands/convos/unarchive.js +38 -0
- package/dist/commands/convos/update.d.ts +14 -0
- package/dist/commands/convos/update.js +59 -0
- package/dist/commands/create-token.d.ts +53 -0
- package/dist/commands/create-token.js +150 -0
- package/dist/commands/daemon/byok.d.ts +12 -0
- package/dist/commands/daemon/byok.js +33 -0
- package/dist/commands/daemon/index.d.ts +13 -0
- package/dist/commands/daemon/index.js +40 -0
- package/dist/commands/daemon/install.d.ts +18 -0
- package/dist/commands/daemon/install.js +35 -0
- package/dist/commands/daemon/logs.d.ts +60 -0
- package/dist/commands/daemon/logs.js +177 -0
- package/dist/commands/daemon/start.d.ts +6 -0
- package/dist/commands/daemon/start.js +23 -0
- package/dist/commands/daemon/status.d.ts +6 -0
- package/dist/commands/daemon/status.js +23 -0
- package/dist/commands/daemon/stop.d.ts +6 -0
- package/dist/commands/daemon/stop.js +23 -0
- package/dist/commands/daemon/uninstall.d.ts +18 -0
- package/dist/commands/daemon/uninstall.js +35 -0
- package/dist/commands/daemon/usage.d.ts +13 -0
- package/dist/commands/daemon/usage.js +68 -0
- package/dist/commands/daemons.d.ts +11 -0
- package/dist/commands/daemons.js +17 -0
- package/dist/commands/dm/list.d.ts +9 -0
- package/dist/commands/dm/list.js +46 -0
- package/dist/commands/dm/messages.d.ts +14 -0
- package/dist/commands/dm/messages.js +130 -0
- package/dist/commands/dm/show.d.ts +13 -0
- package/dist/commands/dm/show.js +74 -0
- package/dist/commands/dm/thread/broadcast.d.ts +29 -0
- package/dist/commands/dm/thread/broadcast.js +117 -0
- package/dist/commands/dm/thread/follow.d.ts +17 -0
- package/dist/commands/dm/thread/follow.js +90 -0
- package/dist/commands/dm/thread/messages.d.ts +18 -0
- package/dist/commands/dm/thread/messages.js +110 -0
- package/dist/commands/dm/thread/mute.d.ts +17 -0
- package/dist/commands/dm/thread/mute.js +88 -0
- package/dist/commands/dm/thread/share.d.ts +16 -0
- package/dist/commands/dm/thread/share.js +85 -0
- package/dist/commands/dm/thread/show.d.ts +16 -0
- package/dist/commands/dm/thread/show.js +88 -0
- package/dist/commands/dm/threads.d.ts +17 -0
- package/dist/commands/dm/threads.js +92 -0
- package/dist/commands/doctor.d.ts +37 -0
- package/dist/commands/doctor.js +378 -0
- package/dist/commands/engagement/annotate.d.ts +15 -0
- package/dist/commands/engagement/annotate.js +69 -0
- package/dist/commands/engagement/continue.d.ts +13 -0
- package/dist/commands/engagement/continue.js +50 -0
- package/dist/commands/engagement/react.d.ts +14 -0
- package/dist/commands/engagement/react.js +56 -0
- package/dist/commands/engagement/reactions.d.ts +13 -0
- package/dist/commands/engagement/reactions.js +68 -0
- package/dist/commands/engagement/share.d.ts +16 -0
- package/dist/commands/engagement/share.js +67 -0
- package/dist/commands/feeds/create.d.ts +15 -0
- package/dist/commands/feeds/create.js +56 -0
- package/dist/commands/feeds/delete.d.ts +12 -0
- package/dist/commands/feeds/delete.js +49 -0
- package/dist/commands/feeds/list.d.ts +12 -0
- package/dist/commands/feeds/list.js +76 -0
- package/dist/commands/feeds/update.d.ts +16 -0
- package/dist/commands/feeds/update.js +61 -0
- package/dist/commands/generate-recovery-code.d.ts +24 -0
- package/dist/commands/generate-recovery-code.js +78 -0
- package/dist/commands/github/allow-tools.d.ts +16 -0
- package/dist/commands/github/allow-tools.js +80 -0
- package/dist/commands/github/app/install.d.ts +25 -0
- package/dist/commands/github/app/install.js +54 -0
- package/dist/commands/github/app/status.d.ts +19 -0
- package/dist/commands/github/app/status.js +67 -0
- package/dist/commands/github/connect.d.ts +29 -0
- package/dist/commands/github/connect.js +109 -0
- package/dist/commands/github/connections.d.ts +14 -0
- package/dist/commands/github/connections.js +62 -0
- package/dist/commands/github/disconnect.d.ts +14 -0
- package/dist/commands/github/disconnect.js +50 -0
- package/dist/commands/github/finalize.d.ts +18 -0
- package/dist/commands/github/finalize.js +64 -0
- package/dist/commands/github/reconnect.d.ts +16 -0
- package/dist/commands/github/reconnect.js +94 -0
- package/dist/commands/github/run.d.ts +20 -0
- package/dist/commands/github/run.js +104 -0
- package/dist/commands/github/tools.d.ts +19 -0
- package/dist/commands/github/tools.js +82 -0
- package/dist/commands/goals/archive.d.ts +13 -0
- package/dist/commands/goals/archive.js +41 -0
- package/dist/commands/goals/briefing/disable.d.ts +9 -0
- package/dist/commands/goals/briefing/disable.js +32 -0
- package/dist/commands/goals/briefing/enable.d.ts +10 -0
- package/dist/commands/goals/briefing/enable.js +35 -0
- package/dist/commands/goals/briefing/preview.d.ts +9 -0
- package/dist/commands/goals/briefing/preview.js +40 -0
- package/dist/commands/goals/create.d.ts +20 -0
- package/dist/commands/goals/create.js +139 -0
- package/dist/commands/goals/delete.d.ts +12 -0
- package/dist/commands/goals/delete.js +45 -0
- package/dist/commands/goals/descendants.d.ts +13 -0
- package/dist/commands/goals/descendants.js +76 -0
- package/dist/commands/goals/key-results/create.d.ts +26 -0
- package/dist/commands/goals/key-results/create.js +83 -0
- package/dist/commands/goals/key-results/delete.d.ts +18 -0
- package/dist/commands/goals/key-results/delete.js +41 -0
- package/dist/commands/goals/key-results/list.d.ts +21 -0
- package/dist/commands/goals/key-results/list.js +73 -0
- package/dist/commands/goals/key-results/show.d.ts +19 -0
- package/dist/commands/goals/key-results/show.js +56 -0
- package/dist/commands/goals/key-results/update.d.ts +27 -0
- package/dist/commands/goals/key-results/update.js +92 -0
- package/dist/commands/goals/labels/add.d.ts +13 -0
- package/dist/commands/goals/labels/add.js +42 -0
- package/dist/commands/goals/labels/list.d.ts +12 -0
- package/dist/commands/goals/labels/list.js +72 -0
- package/dist/commands/goals/labels/remove.d.ts +13 -0
- package/dist/commands/goals/labels/remove.js +38 -0
- package/dist/commands/goals/list.d.ts +17 -0
- package/dist/commands/goals/list.js +112 -0
- package/dist/commands/goals/open.d.ts +13 -0
- package/dist/commands/goals/open.js +42 -0
- package/dist/commands/goals/plan-now.d.ts +25 -0
- package/dist/commands/goals/plan-now.js +68 -0
- package/dist/commands/goals/planner-config.d.ts +30 -0
- package/dist/commands/goals/planner-config.js +102 -0
- package/dist/commands/goals/revisions.d.ts +12 -0
- package/dist/commands/goals/revisions.js +54 -0
- package/dist/commands/goals/show.d.ts +12 -0
- package/dist/commands/goals/show.js +53 -0
- package/dist/commands/goals/tasks.d.ts +15 -0
- package/dist/commands/goals/tasks.js +106 -0
- package/dist/commands/goals/update.d.ts +26 -0
- package/dist/commands/goals/update.js +116 -0
- package/dist/commands/google-chat/list-channels.d.ts +11 -0
- package/dist/commands/google-chat/list-channels.js +14 -0
- package/dist/commands/google-chat/list-users.d.ts +12 -0
- package/dist/commands/google-chat/list-users.js +19 -0
- package/dist/commands/google-chat/read-channel.d.ts +13 -0
- package/dist/commands/google-chat/read-channel.js +20 -0
- package/dist/commands/google-chat/read-thread.d.ts +14 -0
- package/dist/commands/google-chat/read-thread.js +23 -0
- package/dist/commands/google-chat/run.d.ts +15 -0
- package/dist/commands/google-chat/run.js +17 -0
- package/dist/commands/google-chat/search.d.ts +13 -0
- package/dist/commands/google-chat/search.js +21 -0
- package/dist/commands/google-chat/send-as-agent.d.ts +16 -0
- package/dist/commands/google-chat/send-as-agent.js +23 -0
- package/dist/commands/google-chat/tools.d.ts +10 -0
- package/dist/commands/google-chat/tools.js +14 -0
- package/dist/commands/grants/create.d.ts +30 -0
- package/dist/commands/grants/create.js +84 -0
- package/dist/commands/grants/delete.d.ts +13 -0
- package/dist/commands/grants/delete.js +27 -0
- package/dist/commands/grants/list.d.ts +18 -0
- package/dist/commands/grants/list.js +41 -0
- package/dist/commands/grants/revoke.d.ts +19 -0
- package/dist/commands/grants/revoke.js +36 -0
- package/dist/commands/grants/rotate.d.ts +19 -0
- package/dist/commands/grants/rotate.js +47 -0
- package/dist/commands/harnesses/alias.d.ts +21 -0
- package/dist/commands/harnesses/alias.js +50 -0
- package/dist/commands/harnesses/forget.d.ts +20 -0
- package/dist/commands/harnesses/forget.js +59 -0
- package/dist/commands/harnesses/grants/add.d.ts +28 -0
- package/dist/commands/harnesses/grants/add.js +87 -0
- package/dist/commands/harnesses/grants/list.d.ts +14 -0
- package/dist/commands/harnesses/grants/list.js +60 -0
- package/dist/commands/harnesses/grants/revoke.d.ts +14 -0
- package/dist/commands/harnesses/grants/revoke.js +41 -0
- package/dist/commands/harnesses/install-token.d.ts +21 -0
- package/dist/commands/harnesses/install-token.js +48 -0
- package/dist/commands/harnesses/leases/action.d.ts +21 -0
- package/dist/commands/harnesses/leases/action.js +69 -0
- package/dist/commands/harnesses/leases/billing.d.ts +21 -0
- package/dist/commands/harnesses/leases/billing.js +66 -0
- package/dist/commands/harnesses/leases/list.d.ts +9 -0
- package/dist/commands/harnesses/leases/list.js +60 -0
- package/dist/commands/harnesses/leases/release.d.ts +21 -0
- package/dist/commands/harnesses/leases/release.js +59 -0
- package/dist/commands/harnesses/leases/show.d.ts +12 -0
- package/dist/commands/harnesses/leases/show.js +84 -0
- package/dist/commands/harnesses/list.d.ts +144 -0
- package/dist/commands/harnesses/list.js +247 -0
- package/dist/commands/harnesses/models.d.ts +19 -0
- package/dist/commands/harnesses/models.js +63 -0
- package/dist/commands/harnesses/ping.d.ts +22 -0
- package/dist/commands/harnesses/ping.js +108 -0
- package/dist/commands/harnesses/products.d.ts +9 -0
- package/dist/commands/harnesses/products.js +63 -0
- package/dist/commands/harnesses/quota.d.ts +47 -0
- package/dist/commands/harnesses/quota.js +208 -0
- package/dist/commands/harnesses/set-default.d.ts +21 -0
- package/dist/commands/harnesses/set-default.js +47 -0
- package/dist/commands/harnesses/show.d.ts +12 -0
- package/dist/commands/harnesses/show.js +60 -0
- package/dist/commands/harnesses/update.d.ts +25 -0
- package/dist/commands/harnesses/update.js +63 -0
- package/dist/commands/harnesses/usage.d.ts +47 -0
- package/dist/commands/harnesses/usage.js +128 -0
- package/dist/commands/inbox/index.d.ts +36 -0
- package/dist/commands/inbox/index.js +258 -0
- package/dist/commands/ingress/create.d.ts +22 -0
- package/dist/commands/ingress/create.js +68 -0
- package/dist/commands/ingress/delete.d.ts +13 -0
- package/dist/commands/ingress/delete.js +25 -0
- package/dist/commands/ingress/list.d.ts +15 -0
- package/dist/commands/ingress/list.js +32 -0
- package/dist/commands/ingress/rotate.d.ts +13 -0
- package/dist/commands/ingress/rotate.js +33 -0
- package/dist/commands/initiatives/decide.d.ts +25 -0
- package/dist/commands/initiatives/decide.js +111 -0
- package/dist/commands/initiatives/list.d.ts +20 -0
- package/dist/commands/initiatives/list.js +69 -0
- package/dist/commands/instructions/activate.d.ts +12 -0
- package/dist/commands/instructions/activate.js +30 -0
- package/dist/commands/instructions/archive-version.d.ts +12 -0
- package/dist/commands/instructions/archive-version.js +30 -0
- package/dist/commands/instructions/create.d.ts +13 -0
- package/dist/commands/instructions/create.js +48 -0
- package/dist/commands/instructions/delete.d.ts +12 -0
- package/dist/commands/instructions/delete.js +34 -0
- package/dist/commands/instructions/diff.d.ts +22 -0
- package/dist/commands/instructions/diff.js +81 -0
- package/dist/commands/instructions/install.d.ts +17 -0
- package/dist/commands/instructions/install.js +122 -0
- package/dist/commands/instructions/list.d.ts +10 -0
- package/dist/commands/instructions/list.js +46 -0
- package/dist/commands/instructions/purge-target.d.ts +13 -0
- package/dist/commands/instructions/purge-target.js +44 -0
- package/dist/commands/instructions/remove.d.ts +11 -0
- package/dist/commands/instructions/remove.js +33 -0
- package/dist/commands/instructions/restore-target.d.ts +11 -0
- package/dist/commands/instructions/restore-target.js +27 -0
- package/dist/commands/instructions/restore.d.ts +11 -0
- package/dist/commands/instructions/restore.js +27 -0
- package/dist/commands/instructions/show.d.ts +12 -0
- package/dist/commands/instructions/show.js +72 -0
- package/dist/commands/instructions/status.d.ts +9 -0
- package/dist/commands/instructions/status.js +103 -0
- package/dist/commands/instructions/update-target.d.ts +15 -0
- package/dist/commands/instructions/update-target.js +42 -0
- package/dist/commands/instructions/update.d.ts +17 -0
- package/dist/commands/instructions/update.js +66 -0
- package/dist/commands/integrations/connections/connect.d.ts +19 -0
- package/dist/commands/integrations/connections/connect.js +136 -0
- package/dist/commands/integrations/connections/disconnect.d.ts +17 -0
- package/dist/commands/integrations/connections/disconnect.js +57 -0
- package/dist/commands/integrations/connections/finalize.d.ts +18 -0
- package/dist/commands/integrations/connections/finalize.js +65 -0
- package/dist/commands/integrations/connections/list.d.ts +14 -0
- package/dist/commands/integrations/connections/list.js +62 -0
- package/dist/commands/integrations/connections/reconnect.d.ts +19 -0
- package/dist/commands/integrations/connections/reconnect.js +112 -0
- package/dist/commands/integrations/execute.d.ts +20 -0
- package/dist/commands/integrations/execute.js +97 -0
- package/dist/commands/integrations/search.d.ts +18 -0
- package/dist/commands/integrations/search.js +72 -0
- package/dist/commands/integrations/toolkits.d.ts +13 -0
- package/dist/commands/integrations/toolkits.js +51 -0
- package/dist/commands/integrations/tools/allow.d.ts +18 -0
- package/dist/commands/integrations/tools/allow.js +75 -0
- package/dist/commands/integrations/tools/list.d.ts +15 -0
- package/dist/commands/integrations/tools/list.js +65 -0
- package/dist/commands/labels/archive.d.ts +12 -0
- package/dist/commands/labels/archive.js +37 -0
- package/dist/commands/labels/create.d.ts +17 -0
- package/dist/commands/labels/create.js +74 -0
- package/dist/commands/labels/delete.d.ts +13 -0
- package/dist/commands/labels/delete.js +44 -0
- package/dist/commands/labels/list.d.ts +13 -0
- package/dist/commands/labels/list.js +75 -0
- package/dist/commands/labels/palette.d.ts +9 -0
- package/dist/commands/labels/palette.js +39 -0
- package/dist/commands/labels/reorder.d.ts +12 -0
- package/dist/commands/labels/reorder.js +57 -0
- package/dist/commands/labels/restore.d.ts +12 -0
- package/dist/commands/labels/restore.js +39 -0
- package/dist/commands/labels/update.d.ts +20 -0
- package/dist/commands/labels/update.js +94 -0
- package/dist/commands/lark/list-channels.d.ts +11 -0
- package/dist/commands/lark/list-channels.js +14 -0
- package/dist/commands/lark/list-users.d.ts +12 -0
- package/dist/commands/lark/list-users.js +19 -0
- package/dist/commands/lark/read-channel.d.ts +13 -0
- package/dist/commands/lark/read-channel.js +20 -0
- package/dist/commands/lark/read-thread.d.ts +14 -0
- package/dist/commands/lark/read-thread.js +23 -0
- package/dist/commands/lark/run.d.ts +15 -0
- package/dist/commands/lark/run.js +17 -0
- package/dist/commands/lark/search.d.ts +13 -0
- package/dist/commands/lark/search.js +21 -0
- package/dist/commands/lark/send-as-agent.d.ts +16 -0
- package/dist/commands/lark/send-as-agent.js +23 -0
- package/dist/commands/lark/tools.d.ts +10 -0
- package/dist/commands/lark/tools.js +14 -0
- package/dist/commands/list-daemons.d.ts +57 -0
- package/dist/commands/list-daemons.js +140 -0
- package/dist/commands/list-tokens.d.ts +17 -0
- package/dist/commands/list-tokens.js +80 -0
- package/dist/commands/login.d.ts +69 -0
- package/dist/commands/login.js +243 -0
- package/dist/commands/logout.d.ts +74 -0
- package/dist/commands/logout.js +260 -0
- package/dist/commands/machines/disconnect.d.ts +21 -0
- package/dist/commands/machines/disconnect.js +69 -0
- package/dist/commands/machines/hosted/connect.d.ts +14 -0
- package/dist/commands/machines/hosted/connect.js +92 -0
- package/dist/commands/machines/hosted/destroy.d.ts +13 -0
- package/dist/commands/machines/hosted/destroy.js +43 -0
- package/dist/commands/machines/hosted/exec.d.ts +30 -0
- package/dist/commands/machines/hosted/exec.js +130 -0
- package/dist/commands/machines/hosted/index.d.ts +6 -0
- package/dist/commands/machines/hosted/index.js +26 -0
- package/dist/commands/machines/hosted/list.d.ts +25 -0
- package/dist/commands/machines/hosted/list.js +98 -0
- package/dist/commands/machines/hosted/pause.d.ts +13 -0
- package/dist/commands/machines/hosted/pause.js +43 -0
- package/dist/commands/machines/hosted/pull.d.ts +19 -0
- package/dist/commands/machines/hosted/pull.js +271 -0
- package/dist/commands/machines/hosted/resume.d.ts +16 -0
- package/dist/commands/machines/hosted/resume.js +62 -0
- package/dist/commands/machines/hosted/start.d.ts +27 -0
- package/dist/commands/machines/hosted/start.js +187 -0
- package/dist/commands/machines/hosted/status.d.ts +17 -0
- package/dist/commands/machines/hosted/status.js +88 -0
- package/dist/commands/machines/list.d.ts +13 -0
- package/dist/commands/machines/list.js +60 -0
- package/dist/commands/machines/show.d.ts +13 -0
- package/dist/commands/machines/show.js +99 -0
- package/dist/commands/machines/update.d.ts +24 -0
- package/dist/commands/machines/update.js +82 -0
- package/dist/commands/measures/confirm.d.ts +21 -0
- package/dist/commands/measures/confirm.js +51 -0
- package/dist/commands/measures/create.d.ts +24 -0
- package/dist/commands/measures/create.js +65 -0
- package/dist/commands/measures/list.d.ts +19 -0
- package/dist/commands/measures/list.js +44 -0
- package/dist/commands/measures/record.d.ts +24 -0
- package/dist/commands/measures/record.js +64 -0
- package/dist/commands/measures/tasks.d.ts +27 -0
- package/dist/commands/measures/tasks.js +84 -0
- package/dist/commands/memory/commit.d.ts +14 -0
- package/dist/commands/memory/commit.js +37 -0
- package/dist/commands/memory/context.d.ts +16 -0
- package/dist/commands/memory/context.js +42 -0
- package/dist/commands/memory/daily-log.d.ts +13 -0
- package/dist/commands/memory/daily-log.js +84 -0
- package/dist/commands/memory/delete.d.ts +15 -0
- package/dist/commands/memory/delete.js +50 -0
- package/dist/commands/memory/list.d.ts +12 -0
- package/dist/commands/memory/list.js +53 -0
- package/dist/commands/memory/maintain.d.ts +14 -0
- package/dist/commands/memory/maintain.js +58 -0
- package/dist/commands/memory/observe.d.ts +18 -0
- package/dist/commands/memory/observe.js +51 -0
- package/dist/commands/memory/preferences.d.ts +11 -0
- package/dist/commands/memory/preferences.js +44 -0
- package/dist/commands/memory/read.d.ts +14 -0
- package/dist/commands/memory/read.js +43 -0
- package/dist/commands/memory/rebuild.d.ts +12 -0
- package/dist/commands/memory/rebuild.js +38 -0
- package/dist/commands/memory/save.d.ts +15 -0
- package/dist/commands/memory/save.js +72 -0
- package/dist/commands/memory/search.d.ts +17 -0
- package/dist/commands/memory/search.js +68 -0
- package/dist/commands/memory/show.d.ts +15 -0
- package/dist/commands/memory/show.js +48 -0
- package/dist/commands/memory/tree.d.ts +10 -0
- package/dist/commands/memory/tree.js +40 -0
- package/dist/commands/memory/update.d.ts +17 -0
- package/dist/commands/memory/update.js +42 -0
- package/dist/commands/messages/edit-artifact.d.ts +16 -0
- package/dist/commands/messages/edit-artifact.js +63 -0
- package/dist/commands/messages/feedback.d.ts +17 -0
- package/dist/commands/messages/feedback.js +66 -0
- package/dist/commands/messages/list.d.ts +38 -0
- package/dist/commands/messages/list.js +149 -0
- package/dist/commands/messages/show.d.ts +17 -0
- package/dist/commands/messages/show.js +79 -0
- package/dist/commands/messages/update-content.d.ts +15 -0
- package/dist/commands/messages/update-content.js +43 -0
- package/dist/commands/messages/update.d.ts +15 -0
- package/dist/commands/messages/update.js +44 -0
- package/dist/commands/northstars/create.d.ts +29 -0
- package/dist/commands/northstars/create.js +107 -0
- package/dist/commands/northstars/delete.d.ts +25 -0
- package/dist/commands/northstars/delete.js +75 -0
- package/dist/commands/northstars/governance/configure.d.ts +37 -0
- package/dist/commands/northstars/governance/configure.js +189 -0
- package/dist/commands/northstars/governance/show.d.ts +22 -0
- package/dist/commands/northstars/governance/show.js +45 -0
- package/dist/commands/northstars/intents/decide.d.ts +25 -0
- package/dist/commands/northstars/intents/decide.js +71 -0
- package/dist/commands/northstars/intents/list.d.ts +22 -0
- package/dist/commands/northstars/intents/list.js +52 -0
- package/dist/commands/northstars/link.d.ts +23 -0
- package/dist/commands/northstars/link.js +54 -0
- package/dist/commands/northstars/list.d.ts +18 -0
- package/dist/commands/northstars/list.js +42 -0
- package/dist/commands/northstars/recommendations/apply.d.ts +21 -0
- package/dist/commands/northstars/recommendations/apply.js +53 -0
- package/dist/commands/northstars/recommendations/dismiss.d.ts +21 -0
- package/dist/commands/northstars/recommendations/dismiss.js +45 -0
- package/dist/commands/northstars/recommendations/list.d.ts +22 -0
- package/dist/commands/northstars/recommendations/list.js +50 -0
- package/dist/commands/northstars/review-now.d.ts +21 -0
- package/dist/commands/northstars/review-now.js +62 -0
- package/dist/commands/northstars/reviews.d.ts +23 -0
- package/dist/commands/northstars/reviews.js +83 -0
- package/dist/commands/northstars/show.d.ts +25 -0
- package/dist/commands/northstars/show.js +57 -0
- package/dist/commands/northstars/unlink.d.ts +21 -0
- package/dist/commands/northstars/unlink.js +39 -0
- package/dist/commands/northstars/update.d.ts +32 -0
- package/dist/commands/northstars/update.js +114 -0
- package/dist/commands/outbox/drop.d.ts +20 -0
- package/dist/commands/outbox/drop.js +46 -0
- package/dist/commands/outbox/list.d.ts +22 -0
- package/dist/commands/outbox/list.js +85 -0
- package/dist/commands/outbox/retry.d.ts +39 -0
- package/dist/commands/outbox/retry.js +154 -0
- package/dist/commands/pair.d.ts +67 -0
- package/dist/commands/pair.js +351 -0
- package/dist/commands/payments/wallet.d.ts +10 -0
- package/dist/commands/payments/wallet.js +81 -0
- package/dist/commands/projects/activity.d.ts +25 -0
- package/dist/commands/projects/activity.js +80 -0
- package/dist/commands/projects/archive.d.ts +19 -0
- package/dist/commands/projects/archive.js +55 -0
- package/dist/commands/projects/create.d.ts +19 -0
- package/dist/commands/projects/create.js +76 -0
- package/dist/commands/projects/delete.d.ts +19 -0
- package/dist/commands/projects/delete.js +73 -0
- package/dist/commands/projects/docs/attach.d.ts +23 -0
- package/dist/commands/projects/docs/attach.js +65 -0
- package/dist/commands/projects/docs/detach.d.ts +23 -0
- package/dist/commands/projects/docs/detach.js +65 -0
- package/dist/commands/projects/docs/list.d.ts +22 -0
- package/dist/commands/projects/docs/list.js +67 -0
- package/dist/commands/projects/goals.d.ts +26 -0
- package/dist/commands/projects/goals.js +101 -0
- package/dist/commands/projects/list.d.ts +26 -0
- package/dist/commands/projects/list.js +102 -0
- package/dist/commands/projects/members.d.ts +16 -0
- package/dist/commands/projects/members.js +43 -0
- package/dist/commands/projects/open.d.ts +14 -0
- package/dist/commands/projects/open.js +44 -0
- package/dist/commands/projects/overview.d.ts +29 -0
- package/dist/commands/projects/overview.js +83 -0
- package/dist/commands/projects/promote.d.ts +30 -0
- package/dist/commands/projects/promote.js +84 -0
- package/dist/commands/projects/reorder.d.ts +13 -0
- package/dist/commands/projects/reorder.js +32 -0
- package/dist/commands/projects/revisions.d.ts +14 -0
- package/dist/commands/projects/revisions.js +42 -0
- package/dist/commands/projects/show.d.ts +22 -0
- package/dist/commands/projects/show.js +65 -0
- package/dist/commands/projects/summary.d.ts +12 -0
- package/dist/commands/projects/summary.js +30 -0
- package/dist/commands/projects/tasks.d.ts +28 -0
- package/dist/commands/projects/tasks.js +84 -0
- package/dist/commands/projects/update.d.ts +22 -0
- package/dist/commands/projects/update.js +73 -0
- package/dist/commands/projects/updates/add.d.ts +20 -0
- package/dist/commands/projects/updates/add.js +69 -0
- package/dist/commands/projects/updates/archive.d.ts +13 -0
- package/dist/commands/projects/updates/archive.js +33 -0
- package/dist/commands/projects/updates/cadence.d.ts +19 -0
- package/dist/commands/projects/updates/cadence.js +73 -0
- package/dist/commands/projects/updates/draft.d.ts +15 -0
- package/dist/commands/projects/updates/draft.js +38 -0
- package/dist/commands/projects/updates/edit.d.ts +19 -0
- package/dist/commands/projects/updates/edit.js +80 -0
- package/dist/commands/projects/updates/list.d.ts +14 -0
- package/dist/commands/projects/updates/list.js +53 -0
- package/dist/commands/projects/updates/post.d.ts +16 -0
- package/dist/commands/projects/updates/post.js +39 -0
- package/dist/commands/projects/updates/show.d.ts +13 -0
- package/dist/commands/projects/updates/show.js +43 -0
- package/dist/commands/projects/upsert.d.ts +19 -0
- package/dist/commands/projects/upsert.js +68 -0
- package/dist/commands/requests/cancel.d.ts +12 -0
- package/dist/commands/requests/cancel.js +46 -0
- package/dist/commands/requests/comments/add.d.ts +15 -0
- package/dist/commands/requests/comments/add.js +61 -0
- package/dist/commands/requests/comments/delete.d.ts +13 -0
- package/dist/commands/requests/comments/delete.js +53 -0
- package/dist/commands/requests/comments/list.d.ts +13 -0
- package/dist/commands/requests/comments/list.js +56 -0
- package/dist/commands/requests/create.d.ts +18 -0
- package/dist/commands/requests/create.js +78 -0
- package/dist/commands/requests/list.d.ts +11 -0
- package/dist/commands/requests/list.js +58 -0
- package/dist/commands/requests/pending.d.ts +9 -0
- package/dist/commands/requests/pending.js +33 -0
- package/dist/commands/requests/resolve.d.ts +24 -0
- package/dist/commands/requests/resolve.js +99 -0
- package/dist/commands/requests/show.d.ts +12 -0
- package/dist/commands/requests/show.js +57 -0
- package/dist/commands/revoke-daemon.d.ts +38 -0
- package/dist/commands/revoke-daemon.js +142 -0
- package/dist/commands/revoke-token.d.ts +23 -0
- package/dist/commands/revoke-token.js +93 -0
- package/dist/commands/search/agents.d.ts +38 -0
- package/dist/commands/search/agents.js +105 -0
- package/dist/commands/search/all.d.ts +40 -0
- package/dist/commands/search/all.js +144 -0
- package/dist/commands/search/skills.d.ts +12 -0
- package/dist/commands/search/skills.js +72 -0
- package/dist/commands/search/spaces.d.ts +27 -0
- package/dist/commands/search/spaces.js +84 -0
- package/dist/commands/search/tasks.d.ts +33 -0
- package/dist/commands/search/tasks.js +90 -0
- package/dist/commands/search/teams.d.ts +11 -0
- package/dist/commands/search/teams.js +69 -0
- package/dist/commands/set-capabilities.d.ts +26 -0
- package/dist/commands/set-capabilities.js +130 -0
- package/dist/commands/shares/create.d.ts +13 -0
- package/dist/commands/shares/create.js +40 -0
- package/dist/commands/shares/delete.d.ts +12 -0
- package/dist/commands/shares/delete.js +43 -0
- package/dist/commands/shares/get.d.ts +12 -0
- package/dist/commands/shares/get.js +64 -0
- package/dist/commands/shares/link-for.d.ts +12 -0
- package/dist/commands/shares/link-for.js +40 -0
- package/dist/commands/shares/list.d.ts +15 -0
- package/dist/commands/shares/list.js +84 -0
- package/dist/commands/shares/update.d.ts +12 -0
- package/dist/commands/shares/update.js +35 -0
- package/dist/commands/shortcuts/create.d.ts +19 -0
- package/dist/commands/shortcuts/create.js +140 -0
- package/dist/commands/shortcuts/delete.d.ts +12 -0
- package/dist/commands/shortcuts/delete.js +45 -0
- package/dist/commands/shortcuts/list.d.ts +10 -0
- package/dist/commands/shortcuts/list.js +56 -0
- package/dist/commands/shortcuts/reorder.d.ts +14 -0
- package/dist/commands/shortcuts/reorder.js +37 -0
- package/dist/commands/shortcuts/show.d.ts +12 -0
- package/dist/commands/shortcuts/show.js +79 -0
- package/dist/commands/shortcuts/trigger.d.ts +12 -0
- package/dist/commands/shortcuts/trigger.js +53 -0
- package/dist/commands/shortcuts/update.d.ts +21 -0
- package/dist/commands/shortcuts/update.js +144 -0
- package/dist/commands/skills/browse.d.ts +21 -0
- package/dist/commands/skills/browse.js +87 -0
- package/dist/commands/skills/categories.d.ts +11 -0
- package/dist/commands/skills/categories.js +58 -0
- package/dist/commands/skills/details.d.ts +12 -0
- package/dist/commands/skills/details.js +49 -0
- package/dist/commands/skills/duplicate.d.ts +21 -0
- package/dist/commands/skills/duplicate.js +52 -0
- package/dist/commands/skills/featured.d.ts +22 -0
- package/dist/commands/skills/featured.js +61 -0
- package/dist/commands/skills/install.d.ts +14 -0
- package/dist/commands/skills/install.js +60 -0
- package/dist/commands/skills/invocable.d.ts +21 -0
- package/dist/commands/skills/invocable.js +73 -0
- package/dist/commands/skills/library.d.ts +12 -0
- package/dist/commands/skills/library.js +73 -0
- package/dist/commands/skills/search.d.ts +12 -0
- package/dist/commands/skills/search.js +62 -0
- package/dist/commands/slack/list-channels.d.ts +15 -0
- package/dist/commands/slack/list-channels.js +84 -0
- package/dist/commands/slack/list-usergroups.d.ts +12 -0
- package/dist/commands/slack/list-usergroups.js +66 -0
- package/dist/commands/slack/list-users.d.ts +15 -0
- package/dist/commands/slack/list-users.js +80 -0
- package/dist/commands/slack/read-channel.d.ts +16 -0
- package/dist/commands/slack/read-channel.js +76 -0
- package/dist/commands/slack/read-thread.d.ts +15 -0
- package/dist/commands/slack/read-thread.js +76 -0
- package/dist/commands/slack/run.d.ts +15 -0
- package/dist/commands/slack/run.js +119 -0
- package/dist/commands/slack/search.d.ts +16 -0
- package/dist/commands/slack/search.js +90 -0
- package/dist/commands/slack/send-as-agent.d.ts +18 -0
- package/dist/commands/slack/send-as-agent.js +232 -0
- package/dist/commands/slack/tools.d.ts +10 -0
- package/dist/commands/slack/tools.js +58 -0
- package/dist/commands/space-directory-views/create.d.ts +13 -0
- package/dist/commands/space-directory-views/create.js +57 -0
- package/dist/commands/space-directory-views/delete.d.ts +13 -0
- package/dist/commands/space-directory-views/delete.js +39 -0
- package/dist/commands/space-directory-views/list.d.ts +8 -0
- package/dist/commands/space-directory-views/list.js +27 -0
- package/dist/commands/space-directory-views/show.d.ts +21 -0
- package/dist/commands/space-directory-views/show.js +84 -0
- package/dist/commands/space-directory-views/update.d.ts +16 -0
- package/dist/commands/space-directory-views/update.js +64 -0
- package/dist/commands/spaces/actions/add.d.ts +18 -0
- package/dist/commands/spaces/actions/add.js +60 -0
- package/dist/commands/spaces/actions/available.d.ts +20 -0
- package/dist/commands/spaces/actions/available.js +57 -0
- package/dist/commands/spaces/actions/delete.d.ts +13 -0
- package/dist/commands/spaces/actions/delete.js +47 -0
- package/dist/commands/spaces/actions/list.d.ts +11 -0
- package/dist/commands/spaces/actions/list.js +46 -0
- package/dist/commands/spaces/actions/replace.d.ts +14 -0
- package/dist/commands/spaces/actions/replace.js +66 -0
- package/dist/commands/spaces/actions/update.d.ts +18 -0
- package/dist/commands/spaces/actions/update.js +59 -0
- package/dist/commands/spaces/archive.d.ts +12 -0
- package/dist/commands/spaces/archive.js +34 -0
- package/dist/commands/spaces/auto-executor/preview.d.ts +11 -0
- package/dist/commands/spaces/auto-executor/preview.js +26 -0
- package/dist/commands/spaces/auto-executor/run.d.ts +11 -0
- package/dist/commands/spaces/auto-executor/run.js +29 -0
- package/dist/commands/spaces/auto-executor/update.d.ts +17 -0
- package/dist/commands/spaces/auto-executor/update.js +69 -0
- package/dist/commands/spaces/bootstrap.d.ts +39 -0
- package/dist/commands/spaces/bootstrap.js +103 -0
- package/dist/commands/spaces/briefs/delete.d.ts +14 -0
- package/dist/commands/spaces/briefs/delete.js +50 -0
- package/dist/commands/spaces/briefs/get.d.ts +14 -0
- package/dist/commands/spaces/briefs/get.js +59 -0
- package/dist/commands/spaces/briefs/list.d.ts +12 -0
- package/dist/commands/spaces/briefs/list.js +61 -0
- package/dist/commands/spaces/briefs/set.d.ts +17 -0
- package/dist/commands/spaces/briefs/set.js +116 -0
- package/dist/commands/spaces/capacity.d.ts +13 -0
- package/dist/commands/spaces/capacity.js +55 -0
- package/dist/commands/spaces/conversations.d.ts +14 -0
- package/dist/commands/spaces/conversations.js +86 -0
- package/dist/commands/spaces/create.d.ts +21 -0
- package/dist/commands/spaces/create.js +121 -0
- package/dist/commands/spaces/cycles/create.d.ts +16 -0
- package/dist/commands/spaces/cycles/create.js +44 -0
- package/dist/commands/spaces/cycles/graph.d.ts +13 -0
- package/dist/commands/spaces/cycles/graph.js +65 -0
- package/dist/commands/spaces/cycles/list.d.ts +13 -0
- package/dist/commands/spaces/cycles/list.js +57 -0
- package/dist/commands/spaces/cycles/settings.d.ts +15 -0
- package/dist/commands/spaces/cycles/settings.js +77 -0
- package/dist/commands/spaces/cycles/show.d.ts +12 -0
- package/dist/commands/spaces/cycles/show.js +54 -0
- package/dist/commands/spaces/cycles/update.d.ts +17 -0
- package/dist/commands/spaces/cycles/update.js +50 -0
- package/dist/commands/spaces/delete.d.ts +12 -0
- package/dist/commands/spaces/delete.js +45 -0
- package/dist/commands/spaces/files/delete.d.ts +13 -0
- package/dist/commands/spaces/files/delete.js +47 -0
- package/dist/commands/spaces/files/folders/create.d.ts +14 -0
- package/dist/commands/spaces/files/folders/create.js +48 -0
- package/dist/commands/spaces/files/folders/delete.d.ts +14 -0
- package/dist/commands/spaces/files/folders/delete.js +54 -0
- package/dist/commands/spaces/files/folders/list.d.ts +11 -0
- package/dist/commands/spaces/files/folders/list.js +41 -0
- package/dist/commands/spaces/files/folders/update.d.ts +16 -0
- package/dist/commands/spaces/files/folders/update.js +55 -0
- package/dist/commands/spaces/files/list.d.ts +12 -0
- package/dist/commands/spaces/files/list.js +66 -0
- package/dist/commands/spaces/files/move.d.ts +14 -0
- package/dist/commands/spaces/files/move.js +41 -0
- package/dist/commands/spaces/files/rename.d.ts +13 -0
- package/dist/commands/spaces/files/rename.js +37 -0
- package/dist/commands/spaces/files/upload.d.ts +14 -0
- package/dist/commands/spaces/files/upload.js +103 -0
- package/dist/commands/spaces/github-automations/set.d.ts +12 -0
- package/dist/commands/spaces/github-automations/set.js +51 -0
- package/dist/commands/spaces/github-automations/show.d.ts +11 -0
- package/dist/commands/spaces/github-automations/show.js +43 -0
- package/dist/commands/spaces/goals.d.ts +12 -0
- package/dist/commands/spaces/goals.js +61 -0
- package/dist/commands/spaces/heartbeats/create.d.ts +21 -0
- package/dist/commands/spaces/heartbeats/create.js +92 -0
- package/dist/commands/spaces/heartbeats/delete.d.ts +14 -0
- package/dist/commands/spaces/heartbeats/delete.js +55 -0
- package/dist/commands/spaces/heartbeats/list.d.ts +35 -0
- package/dist/commands/spaces/heartbeats/list.js +101 -0
- package/dist/commands/spaces/heartbeats/status.d.ts +13 -0
- package/dist/commands/spaces/heartbeats/status.js +60 -0
- package/dist/commands/spaces/heartbeats/update.d.ts +22 -0
- package/dist/commands/spaces/heartbeats/update.js +81 -0
- package/dist/commands/spaces/index.d.ts +18 -0
- package/dist/commands/spaces/index.js +132 -0
- package/dist/commands/spaces/insights.d.ts +48 -0
- package/dist/commands/spaces/insights.js +188 -0
- package/dist/commands/spaces/install-template.d.ts +59 -0
- package/dist/commands/spaces/install-template.js +145 -0
- package/dist/commands/spaces/labels/add.d.ts +13 -0
- package/dist/commands/spaces/labels/add.js +48 -0
- package/dist/commands/spaces/labels/list.d.ts +12 -0
- package/dist/commands/spaces/labels/list.js +72 -0
- package/dist/commands/spaces/labels/remove.d.ts +13 -0
- package/dist/commands/spaces/labels/remove.js +44 -0
- package/dist/commands/spaces/list.d.ts +15 -0
- package/dist/commands/spaces/list.js +85 -0
- package/dist/commands/spaces/live/cards/create.d.ts +19 -0
- package/dist/commands/spaces/live/cards/create.js +68 -0
- package/dist/commands/spaces/live/cards/delete.d.ts +13 -0
- package/dist/commands/spaces/live/cards/delete.js +44 -0
- package/dist/commands/spaces/live/cards/list.d.ts +11 -0
- package/dist/commands/spaces/live/cards/list.js +43 -0
- package/dist/commands/spaces/live/cards/reorder.d.ts +13 -0
- package/dist/commands/spaces/live/cards/reorder.js +52 -0
- package/dist/commands/spaces/live/cards/update.d.ts +20 -0
- package/dist/commands/spaces/live/cards/update.js +69 -0
- package/dist/commands/spaces/live/scene.d.ts +13 -0
- package/dist/commands/spaces/live/scene.js +55 -0
- package/dist/commands/spaces/members/add.d.ts +17 -0
- package/dist/commands/spaces/members/add.js +143 -0
- package/dist/commands/spaces/members/list.d.ts +12 -0
- package/dist/commands/spaces/members/list.js +54 -0
- package/dist/commands/spaces/members/remove.d.ts +15 -0
- package/dist/commands/spaces/members/remove.js +76 -0
- package/dist/commands/spaces/members/search.d.ts +13 -0
- package/dist/commands/spaces/members/search.js +57 -0
- package/dist/commands/spaces/move.d.ts +27 -0
- package/dist/commands/spaces/move.js +82 -0
- package/dist/commands/spaces/open.d.ts +13 -0
- package/dist/commands/spaces/open.js +42 -0
- package/dist/commands/spaces/pin.d.ts +11 -0
- package/dist/commands/spaces/pin.js +33 -0
- package/dist/commands/spaces/preferences/show.d.ts +11 -0
- package/dist/commands/spaces/preferences/show.js +34 -0
- package/dist/commands/spaces/preferences/tabs.d.ts +14 -0
- package/dist/commands/spaces/preferences/tabs.js +51 -0
- package/dist/commands/spaces/reorder.d.ts +14 -0
- package/dist/commands/spaces/reorder.js +67 -0
- package/dist/commands/spaces/revisions.d.ts +12 -0
- package/dist/commands/spaces/revisions.js +55 -0
- package/dist/commands/spaces/room/ensure.d.ts +12 -0
- package/dist/commands/spaces/room/ensure.js +39 -0
- package/dist/commands/spaces/room/messages.d.ts +15 -0
- package/dist/commands/spaces/room/messages.js +65 -0
- package/dist/commands/spaces/room/send.d.ts +18 -0
- package/dist/commands/spaces/room/send.js +107 -0
- package/dist/commands/spaces/room/show.d.ts +12 -0
- package/dist/commands/spaces/room/show.js +57 -0
- package/dist/commands/spaces/show.d.ts +12 -0
- package/dist/commands/spaces/show.js +67 -0
- package/dist/commands/spaces/skills/add.d.ts +13 -0
- package/dist/commands/spaces/skills/add.js +37 -0
- package/dist/commands/spaces/skills/list.d.ts +12 -0
- package/dist/commands/spaces/skills/list.js +67 -0
- package/dist/commands/spaces/skills/pin.d.ts +14 -0
- package/dist/commands/spaces/skills/pin.js +48 -0
- package/dist/commands/spaces/skills/remove.d.ts +13 -0
- package/dist/commands/spaces/skills/remove.js +37 -0
- package/dist/commands/spaces/snapshot.d.ts +20 -0
- package/dist/commands/spaces/snapshot.js +89 -0
- package/dist/commands/spaces/states/archive.d.ts +12 -0
- package/dist/commands/spaces/states/archive.js +31 -0
- package/dist/commands/spaces/states/create.d.ts +16 -0
- package/dist/commands/spaces/states/create.js +47 -0
- package/dist/commands/spaces/states/list.d.ts +11 -0
- package/dist/commands/spaces/states/list.js +47 -0
- package/dist/commands/spaces/states/reorder.d.ts +12 -0
- package/dist/commands/spaces/states/reorder.js +36 -0
- package/dist/commands/spaces/states/update.d.ts +15 -0
- package/dist/commands/spaces/states/update.js +42 -0
- package/dist/commands/spaces/subspaces.d.ts +13 -0
- package/dist/commands/spaces/subspaces.js +58 -0
- package/dist/commands/spaces/summary.d.ts +11 -0
- package/dist/commands/spaces/summary.js +29 -0
- package/dist/commands/spaces/tasks.d.ts +14 -0
- package/dist/commands/spaces/tasks.js +73 -0
- package/dist/commands/spaces/templates/create.d.ts +26 -0
- package/dist/commands/spaces/templates/create.js +79 -0
- package/dist/commands/spaces/templates/delete.d.ts +20 -0
- package/dist/commands/spaces/templates/delete.js +46 -0
- package/dist/commands/spaces/templates/fork.d.ts +26 -0
- package/dist/commands/spaces/templates/fork.js +60 -0
- package/dist/commands/spaces/templates/index.d.ts +24 -0
- package/dist/commands/spaces/templates/index.js +106 -0
- package/dist/commands/spaces/templates/purchase-status.d.ts +20 -0
- package/dist/commands/spaces/templates/purchase-status.js +54 -0
- package/dist/commands/spaces/templates/rate.d.ts +18 -0
- package/dist/commands/spaces/templates/rate.js +52 -0
- package/dist/commands/spaces/templates/report.d.ts +21 -0
- package/dist/commands/spaces/templates/report.js +48 -0
- package/dist/commands/spaces/templates/show.d.ts +21 -0
- package/dist/commands/spaces/templates/show.js +75 -0
- package/dist/commands/spaces/templates/update.d.ts +27 -0
- package/dist/commands/spaces/templates/update.js +57 -0
- package/dist/commands/spaces/templates/visibility.d.ts +24 -0
- package/dist/commands/spaces/templates/visibility.js +58 -0
- package/dist/commands/spaces/transfer-workspace.d.ts +20 -0
- package/dist/commands/spaces/transfer-workspace.js +56 -0
- package/dist/commands/spaces/triggers/delete.d.ts +13 -0
- package/dist/commands/spaces/triggers/delete.js +52 -0
- package/dist/commands/spaces/triggers/set.d.ts +36 -0
- package/dist/commands/spaces/triggers/set.js +145 -0
- package/dist/commands/spaces/triggers/show.d.ts +12 -0
- package/dist/commands/spaces/triggers/show.js +50 -0
- package/dist/commands/spaces/unarchive.d.ts +12 -0
- package/dist/commands/spaces/unarchive.js +34 -0
- package/dist/commands/spaces/update.d.ts +22 -0
- package/dist/commands/spaces/update.js +126 -0
- package/dist/commands/spaces/views/create.d.ts +17 -0
- package/dist/commands/spaces/views/create.js +62 -0
- package/dist/commands/spaces/views/delete.d.ts +13 -0
- package/dist/commands/spaces/views/delete.js +44 -0
- package/dist/commands/spaces/views/duplicate.d.ts +12 -0
- package/dist/commands/spaces/views/duplicate.js +30 -0
- package/dist/commands/spaces/views/list.d.ts +11 -0
- package/dist/commands/spaces/views/list.js +45 -0
- package/dist/commands/spaces/views/reorder.d.ts +14 -0
- package/dist/commands/spaces/views/reorder.js +64 -0
- package/dist/commands/spaces/views/subscribe.d.ts +16 -0
- package/dist/commands/spaces/views/subscribe.js +48 -0
- package/dist/commands/spaces/views/subscriptions.d.ts +12 -0
- package/dist/commands/spaces/views/subscriptions.js +31 -0
- package/dist/commands/spaces/views/unsubscribe.d.ts +12 -0
- package/dist/commands/spaces/views/unsubscribe.js +28 -0
- package/dist/commands/spaces/views/update.d.ts +19 -0
- package/dist/commands/spaces/views/update.js +65 -0
- package/dist/commands/spaces/widgets/add.d.ts +14 -0
- package/dist/commands/spaces/widgets/add.js +46 -0
- package/dist/commands/spaces/widgets/list.d.ts +12 -0
- package/dist/commands/spaces/widgets/list.js +71 -0
- package/dist/commands/spaces/widgets/remove.d.ts +14 -0
- package/dist/commands/spaces/widgets/remove.js +57 -0
- package/dist/commands/spaces/work-graph.d.ts +21 -0
- package/dist/commands/spaces/work-graph.js +104 -0
- package/dist/commands/spaces/workflow-templates/archive.d.ts +16 -0
- package/dist/commands/spaces/workflow-templates/archive.js +52 -0
- package/dist/commands/spaces/workflow-templates/create.d.ts +21 -0
- package/dist/commands/spaces/workflow-templates/create.js +69 -0
- package/dist/commands/spaces/workflow-templates/extract.d.ts +27 -0
- package/dist/commands/spaces/workflow-templates/extract.js +74 -0
- package/dist/commands/spaces/workflow-templates/insert.d.ts +26 -0
- package/dist/commands/spaces/workflow-templates/insert.js +133 -0
- package/dist/commands/spaces/workflow-templates/list.d.ts +19 -0
- package/dist/commands/spaces/workflow-templates/list.js +69 -0
- package/dist/commands/spaces/workflow-templates/promote.d.ts +31 -0
- package/dist/commands/spaces/workflow-templates/promote.js +76 -0
- package/dist/commands/spaces/workflow-templates/publish.d.ts +16 -0
- package/dist/commands/spaces/workflow-templates/publish.js +42 -0
- package/dist/commands/spaces/workflow-templates/show.d.ts +16 -0
- package/dist/commands/spaces/workflow-templates/show.js +92 -0
- package/dist/commands/spaces/workflow-templates/update.d.ts +20 -0
- package/dist/commands/spaces/workflow-templates/update.js +67 -0
- package/dist/commands/spaces/workflow-templates/versions.d.ts +15 -0
- package/dist/commands/spaces/workflow-templates/versions.js +51 -0
- package/dist/commands/spaces/workflows/archive.d.ts +13 -0
- package/dist/commands/spaces/workflows/archive.js +44 -0
- package/dist/commands/spaces/workflows/artifact.d.ts +14 -0
- package/dist/commands/spaces/workflows/artifact.js +45 -0
- package/dist/commands/spaces/workflows/cancel.d.ts +13 -0
- package/dist/commands/spaces/workflows/cancel.js +50 -0
- package/dist/commands/spaces/workflows/create.d.ts +19 -0
- package/dist/commands/spaces/workflows/create.js +100 -0
- package/dist/commands/spaces/workflows/events.d.ts +15 -0
- package/dist/commands/spaces/workflows/events.js +80 -0
- package/dist/commands/spaces/workflows/fixtures/create.d.ts +20 -0
- package/dist/commands/spaces/workflows/fixtures/create.js +74 -0
- package/dist/commands/spaces/workflows/fixtures/list.d.ts +13 -0
- package/dist/commands/spaces/workflows/fixtures/list.js +52 -0
- package/dist/commands/spaces/workflows/list.d.ts +11 -0
- package/dist/commands/spaces/workflows/list.js +48 -0
- package/dist/commands/spaces/workflows/pause.d.ts +14 -0
- package/dist/commands/spaces/workflows/pause.js +35 -0
- package/dist/commands/spaces/workflows/plan/show.d.ts +13 -0
- package/dist/commands/spaces/workflows/plan/show.js +39 -0
- package/dist/commands/spaces/workflows/plan/update.d.ts +24 -0
- package/dist/commands/spaces/workflows/plan/update.js +96 -0
- package/dist/commands/spaces/workflows/proposals/apply.d.ts +14 -0
- package/dist/commands/spaces/workflows/proposals/apply.js +45 -0
- package/dist/commands/spaces/workflows/proposals/confirm.d.ts +14 -0
- package/dist/commands/spaces/workflows/proposals/confirm.js +47 -0
- package/dist/commands/spaces/workflows/proposals/create.d.ts +20 -0
- package/dist/commands/spaces/workflows/proposals/create.js +89 -0
- package/dist/commands/spaces/workflows/proposals/dismiss.d.ts +14 -0
- package/dist/commands/spaces/workflows/proposals/dismiss.js +45 -0
- package/dist/commands/spaces/workflows/proposals/list.d.ts +12 -0
- package/dist/commands/spaces/workflows/proposals/list.js +40 -0
- package/dist/commands/spaces/workflows/publish.d.ts +12 -0
- package/dist/commands/spaces/workflows/publish.js +35 -0
- package/dist/commands/spaces/workflows/reconcile.d.ts +12 -0
- package/dist/commands/spaces/workflows/reconcile.js +33 -0
- package/dist/commands/spaces/workflows/resume.d.ts +13 -0
- package/dist/commands/spaces/workflows/resume.js +34 -0
- package/dist/commands/spaces/workflows/retry.d.ts +13 -0
- package/dist/commands/spaces/workflows/retry.js +43 -0
- package/dist/commands/spaces/workflows/run.d.ts +30 -0
- package/dist/commands/spaces/workflows/run.js +87 -0
- package/dist/commands/spaces/workflows/runs.d.ts +35 -0
- package/dist/commands/spaces/workflows/runs.js +83 -0
- package/dist/commands/spaces/workflows/show.d.ts +13 -0
- package/dist/commands/spaces/workflows/show.js +51 -0
- package/dist/commands/spaces/workflows/signal.d.ts +17 -0
- package/dist/commands/spaces/workflows/signal.js +76 -0
- package/dist/commands/spaces/workflows/start.d.ts +32 -0
- package/dist/commands/spaces/workflows/start.js +92 -0
- package/dist/commands/spaces/workflows/task-execution/create.d.ts +15 -0
- package/dist/commands/spaces/workflows/task-execution/create.js +49 -0
- package/dist/commands/spaces/workflows/test.d.ts +16 -0
- package/dist/commands/spaces/workflows/test.js +67 -0
- package/dist/commands/spaces/workflows/triggers/create.d.ts +19 -0
- package/dist/commands/spaces/workflows/triggers/create.js +68 -0
- package/dist/commands/spaces/workflows/triggers/fire.d.ts +16 -0
- package/dist/commands/spaces/workflows/triggers/fire.js +57 -0
- package/dist/commands/spaces/workflows/triggers/list.d.ts +12 -0
- package/dist/commands/spaces/workflows/triggers/list.js +49 -0
- package/dist/commands/spaces/workflows/triggers/update.d.ts +17 -0
- package/dist/commands/spaces/workflows/triggers/update.js +62 -0
- package/dist/commands/spaces/workflows/update.d.ts +35 -0
- package/dist/commands/spaces/workflows/update.js +130 -0
- package/dist/commands/spaces/workflows/validate.d.ts +12 -0
- package/dist/commands/spaces/workflows/validate.js +43 -0
- package/dist/commands/tasks/actionability.d.ts +12 -0
- package/dist/commands/tasks/actionability.js +63 -0
- package/dist/commands/tasks/actions/attach.d.ts +23 -0
- package/dist/commands/tasks/actions/attach.js +143 -0
- package/dist/commands/tasks/actions/detach.d.ts +20 -0
- package/dist/commands/tasks/actions/detach.js +129 -0
- package/dist/commands/tasks/active.d.ts +12 -0
- package/dist/commands/tasks/active.js +123 -0
- package/dist/commands/tasks/activity.d.ts +32 -0
- package/dist/commands/tasks/activity.js +67 -0
- package/dist/commands/tasks/ancestors.d.ts +12 -0
- package/dist/commands/tasks/ancestors.js +54 -0
- package/dist/commands/tasks/approvals/create.d.ts +15 -0
- package/dist/commands/tasks/approvals/create.js +58 -0
- package/dist/commands/tasks/approvals/delete.d.ts +13 -0
- package/dist/commands/tasks/approvals/delete.js +44 -0
- package/dist/commands/tasks/approvals/list.d.ts +27 -0
- package/dist/commands/tasks/approvals/list.js +75 -0
- package/dist/commands/tasks/approvals/resolve.d.ts +15 -0
- package/dist/commands/tasks/approvals/resolve.js +51 -0
- package/dist/commands/tasks/archive.d.ts +13 -0
- package/dist/commands/tasks/archive.js +41 -0
- package/dist/commands/tasks/assign.d.ts +41 -0
- package/dist/commands/tasks/assign.js +232 -0
- package/dist/commands/tasks/attachments/delete.d.ts +13 -0
- package/dist/commands/tasks/attachments/delete.js +44 -0
- package/dist/commands/tasks/attachments/download.d.ts +13 -0
- package/dist/commands/tasks/attachments/download.js +78 -0
- package/dist/commands/tasks/attachments/list.d.ts +29 -0
- package/dist/commands/tasks/attachments/list.js +89 -0
- package/dist/commands/tasks/attachments/upload.d.ts +13 -0
- package/dist/commands/tasks/attachments/upload.js +83 -0
- package/dist/commands/tasks/bulk-update.d.ts +11 -0
- package/dist/commands/tasks/bulk-update.js +120 -0
- package/dist/commands/tasks/calendar.d.ts +18 -0
- package/dist/commands/tasks/calendar.js +40 -0
- package/dist/commands/tasks/cancel-cascade.d.ts +12 -0
- package/dist/commands/tasks/cancel-cascade.js +43 -0
- package/dist/commands/tasks/cascade-status.d.ts +12 -0
- package/dist/commands/tasks/cascade-status.js +41 -0
- package/dist/commands/tasks/chat/exchange.d.ts +30 -0
- package/dist/commands/tasks/chat/exchange.js +88 -0
- package/dist/commands/tasks/chat/index.d.ts +31 -0
- package/dist/commands/tasks/chat/index.js +69 -0
- package/dist/commands/tasks/chat/read.d.ts +14 -0
- package/dist/commands/tasks/chat/read.js +35 -0
- package/dist/commands/tasks/chat/reindex.d.ts +20 -0
- package/dist/commands/tasks/chat/reindex.js +39 -0
- package/dist/commands/tasks/chat/reopen.d.ts +20 -0
- package/dist/commands/tasks/chat/reopen.js +43 -0
- package/dist/commands/tasks/chat/repair-attention.d.ts +19 -0
- package/dist/commands/tasks/chat/repair-attention.js +38 -0
- package/dist/commands/tasks/chat/rotate.d.ts +21 -0
- package/dist/commands/tasks/chat/rotate.js +59 -0
- package/dist/commands/tasks/checkout.d.ts +13 -0
- package/dist/commands/tasks/checkout.js +79 -0
- package/dist/commands/tasks/children.d.ts +12 -0
- package/dist/commands/tasks/children.js +54 -0
- package/dist/commands/tasks/comments/add.d.ts +36 -0
- package/dist/commands/tasks/comments/add.js +258 -0
- package/dist/commands/tasks/comments/anchor.d.ts +80 -0
- package/dist/commands/tasks/comments/anchor.js +374 -0
- package/dist/commands/tasks/comments/delete.d.ts +13 -0
- package/dist/commands/tasks/comments/delete.js +44 -0
- package/dist/commands/tasks/comments/list.d.ts +15 -0
- package/dist/commands/tasks/comments/list.js +96 -0
- package/dist/commands/tasks/comments/react.d.ts +14 -0
- package/dist/commands/tasks/comments/react.js +70 -0
- package/dist/commands/tasks/comments/reopen.d.ts +13 -0
- package/dist/commands/tasks/comments/reopen.js +40 -0
- package/dist/commands/tasks/comments/resolve.d.ts +13 -0
- package/dist/commands/tasks/comments/resolve.js +40 -0
- package/dist/commands/tasks/communications.d.ts +21 -0
- package/dist/commands/tasks/communications.js +45 -0
- package/dist/commands/tasks/complete.d.ts +106 -0
- package/dist/commands/tasks/complete.js +457 -0
- package/dist/commands/tasks/continue-ready.d.ts +20 -0
- package/dist/commands/tasks/continue-ready.js +220 -0
- package/dist/commands/tasks/create-tree.d.ts +30 -0
- package/dist/commands/tasks/create-tree.js +299 -0
- package/dist/commands/tasks/create.d.ts +47 -0
- package/dist/commands/tasks/create.js +389 -0
- package/dist/commands/tasks/current.d.ts +10 -0
- package/dist/commands/tasks/current.js +39 -0
- package/dist/commands/tasks/delete.d.ts +12 -0
- package/dist/commands/tasks/delete.js +45 -0
- package/dist/commands/tasks/descendants.d.ts +13 -0
- package/dist/commands/tasks/descendants.js +56 -0
- package/dist/commands/tasks/dri-plan.d.ts +12 -0
- package/dist/commands/tasks/dri-plan.js +40 -0
- package/dist/commands/tasks/dri-run.d.ts +12 -0
- package/dist/commands/tasks/dri-run.js +40 -0
- package/dist/commands/tasks/dri-status.d.ts +12 -0
- package/dist/commands/tasks/dri-status.js +50 -0
- package/dist/commands/tasks/duplicate-pipeline.d.ts +14 -0
- package/dist/commands/tasks/duplicate-pipeline.js +56 -0
- package/dist/commands/tasks/events/append.d.ts +19 -0
- package/dist/commands/tasks/events/append.js +59 -0
- package/dist/commands/tasks/events/list.d.ts +17 -0
- package/dist/commands/tasks/events/list.js +39 -0
- package/dist/commands/tasks/events/tail.d.ts +15 -0
- package/dist/commands/tasks/events/tail.js +45 -0
- package/dist/commands/tasks/execution-summary.d.ts +32 -0
- package/dist/commands/tasks/execution-summary.js +91 -0
- package/dist/commands/tasks/execution-timeline.d.ts +14 -0
- package/dist/commands/tasks/execution-timeline.js +65 -0
- package/dist/commands/tasks/export.d.ts +39 -0
- package/dist/commands/tasks/export.js +169 -0
- package/dist/commands/tasks/follow-up.d.ts +36 -0
- package/dist/commands/tasks/follow-up.js +181 -0
- package/dist/commands/tasks/forward.d.ts +14 -0
- package/dist/commands/tasks/forward.js +69 -0
- package/dist/commands/tasks/from-message.d.ts +19 -0
- package/dist/commands/tasks/from-message.js +51 -0
- package/dist/commands/tasks/import.d.ts +23 -0
- package/dist/commands/tasks/import.js +293 -0
- package/dist/commands/tasks/input/answer.d.ts +15 -0
- package/dist/commands/tasks/input/answer.js +71 -0
- package/dist/commands/tasks/input/dismiss.d.ts +12 -0
- package/dist/commands/tasks/input/dismiss.js +39 -0
- package/dist/commands/tasks/input/show.d.ts +11 -0
- package/dist/commands/tasks/input/show.js +39 -0
- package/dist/commands/tasks/interrupt.d.ts +19 -0
- package/dist/commands/tasks/interrupt.js +50 -0
- package/dist/commands/tasks/labels/attach.d.ts +25 -0
- package/dist/commands/tasks/labels/attach.js +78 -0
- package/dist/commands/tasks/labels/create.d.ts +12 -0
- package/dist/commands/tasks/labels/create.js +69 -0
- package/dist/commands/tasks/labels/delete.d.ts +12 -0
- package/dist/commands/tasks/labels/delete.js +43 -0
- package/dist/commands/tasks/labels/detach.d.ts +18 -0
- package/dist/commands/tasks/labels/detach.js +69 -0
- package/dist/commands/tasks/labels/list.d.ts +9 -0
- package/dist/commands/tasks/labels/list.js +48 -0
- package/dist/commands/tasks/list.d.ts +56 -0
- package/dist/commands/tasks/list.js +353 -0
- package/dist/commands/tasks/mark-duplicate.d.ts +12 -0
- package/dist/commands/tasks/mark-duplicate.js +35 -0
- package/dist/commands/tasks/monitor.d.ts +16 -0
- package/dist/commands/tasks/monitor.js +226 -0
- package/dist/commands/tasks/move.d.ts +33 -0
- package/dist/commands/tasks/move.js +166 -0
- package/dist/commands/tasks/open.d.ts +17 -0
- package/dist/commands/tasks/open.js +71 -0
- package/dist/commands/tasks/output.d.ts +24 -0
- package/dist/commands/tasks/output.js +186 -0
- package/dist/commands/tasks/pause-schedule.d.ts +12 -0
- package/dist/commands/tasks/pause-schedule.js +38 -0
- package/dist/commands/tasks/plan/add-subtask.d.ts +16 -0
- package/dist/commands/tasks/plan/add-subtask.js +47 -0
- package/dist/commands/tasks/plan/cancel.d.ts +13 -0
- package/dist/commands/tasks/plan/cancel.js +47 -0
- package/dist/commands/tasks/plan/create.d.ts +11 -0
- package/dist/commands/tasks/plan/create.js +28 -0
- package/dist/commands/tasks/plan/pause.d.ts +14 -0
- package/dist/commands/tasks/plan/pause.js +33 -0
- package/dist/commands/tasks/plan/reconcile.d.ts +12 -0
- package/dist/commands/tasks/plan/reconcile.js +29 -0
- package/dist/commands/tasks/plan/resume.d.ts +13 -0
- package/dist/commands/tasks/plan/resume.js +30 -0
- package/dist/commands/tasks/plan/retry.d.ts +13 -0
- package/dist/commands/tasks/plan/retry.js +34 -0
- package/dist/commands/tasks/plan/run-update.d.ts +17 -0
- package/dist/commands/tasks/plan/run-update.js +98 -0
- package/dist/commands/tasks/plan/run.d.ts +12 -0
- package/dist/commands/tasks/plan/run.js +33 -0
- package/dist/commands/tasks/plan/show.d.ts +11 -0
- package/dist/commands/tasks/plan/show.js +27 -0
- package/dist/commands/tasks/plan/start.d.ts +12 -0
- package/dist/commands/tasks/plan/start.js +30 -0
- package/dist/commands/tasks/plan/sync.d.ts +11 -0
- package/dist/commands/tasks/plan/sync.js +28 -0
- package/dist/commands/tasks/plan/update.d.ts +12 -0
- package/dist/commands/tasks/plan/update.js +51 -0
- package/dist/commands/tasks/pr.d.ts +12 -0
- package/dist/commands/tasks/pr.js +92 -0
- package/dist/commands/tasks/prompt-log.d.ts +12 -0
- package/dist/commands/tasks/prompt-log.js +42 -0
- package/dist/commands/tasks/ready.d.ts +15 -0
- package/dist/commands/tasks/ready.js +78 -0
- package/dist/commands/tasks/release.d.ts +12 -0
- package/dist/commands/tasks/release.js +47 -0
- package/dist/commands/tasks/remind.d.ts +14 -0
- package/dist/commands/tasks/remind.js +63 -0
- package/dist/commands/tasks/replay.d.ts +13 -0
- package/dist/commands/tasks/replay.js +61 -0
- package/dist/commands/tasks/report.d.ts +24 -0
- package/dist/commands/tasks/report.js +119 -0
- package/dist/commands/tasks/resume-schedule.d.ts +12 -0
- package/dist/commands/tasks/resume-schedule.js +38 -0
- package/dist/commands/tasks/retry-schedule.d.ts +13 -0
- package/dist/commands/tasks/retry-schedule.js +45 -0
- package/dist/commands/tasks/retry.d.ts +38 -0
- package/dist/commands/tasks/retry.js +110 -0
- package/dist/commands/tasks/revisions.d.ts +12 -0
- package/dist/commands/tasks/revisions.js +54 -0
- package/dist/commands/tasks/runs.d.ts +18 -0
- package/dist/commands/tasks/runs.js +82 -0
- package/dist/commands/tasks/schedule.d.ts +18 -0
- package/dist/commands/tasks/schedule.js +90 -0
- package/dist/commands/tasks/show.d.ts +14 -0
- package/dist/commands/tasks/show.js +220 -0
- package/dist/commands/tasks/skills/pin.d.ts +31 -0
- package/dist/commands/tasks/skills/pin.js +147 -0
- package/dist/commands/tasks/skills/unpin.d.ts +17 -0
- package/dist/commands/tasks/skills/unpin.js +121 -0
- package/dist/commands/tasks/snooze.d.ts +17 -0
- package/dist/commands/tasks/snooze.js +90 -0
- package/dist/commands/tasks/start-all.d.ts +13 -0
- package/dist/commands/tasks/start-all.js +63 -0
- package/dist/commands/tasks/start.d.ts +15 -0
- package/dist/commands/tasks/start.js +114 -0
- package/dist/commands/tasks/subscribe.d.ts +14 -0
- package/dist/commands/tasks/subscribe.js +64 -0
- package/dist/commands/tasks/tags/add.d.ts +21 -0
- package/dist/commands/tasks/tags/add.js +74 -0
- package/dist/commands/tasks/tags/remove.d.ts +17 -0
- package/dist/commands/tasks/tags/remove.js +68 -0
- package/dist/commands/tasks/templates/create.d.ts +19 -0
- package/dist/commands/tasks/templates/create.js +141 -0
- package/dist/commands/tasks/templates/delete.d.ts +12 -0
- package/dist/commands/tasks/templates/delete.js +44 -0
- package/dist/commands/tasks/templates/list.d.ts +10 -0
- package/dist/commands/tasks/templates/list.js +51 -0
- package/dist/commands/tasks/templates/reorder.d.ts +14 -0
- package/dist/commands/tasks/templates/reorder.js +40 -0
- package/dist/commands/tasks/templates/show.d.ts +12 -0
- package/dist/commands/tasks/templates/show.js +49 -0
- package/dist/commands/tasks/templates/update.d.ts +20 -0
- package/dist/commands/tasks/templates/update.js +123 -0
- package/dist/commands/tasks/timeline.d.ts +16 -0
- package/dist/commands/tasks/timeline.js +59 -0
- package/dist/commands/tasks/today.d.ts +12 -0
- package/dist/commands/tasks/today.js +66 -0
- package/dist/commands/tasks/transcript.d.ts +16 -0
- package/dist/commands/tasks/transcript.js +131 -0
- package/dist/commands/tasks/tree.d.ts +16 -0
- package/dist/commands/tasks/tree.js +87 -0
- package/dist/commands/tasks/triage.d.ts +23 -0
- package/dist/commands/tasks/triage.js +141 -0
- package/dist/commands/tasks/unschedule.d.ts +12 -0
- package/dist/commands/tasks/unschedule.js +38 -0
- package/dist/commands/tasks/unsnooze.d.ts +14 -0
- package/dist/commands/tasks/unsnooze.js +45 -0
- package/dist/commands/tasks/unsubscribe.d.ts +14 -0
- package/dist/commands/tasks/unsubscribe.js +58 -0
- package/dist/commands/tasks/update.d.ts +42 -0
- package/dist/commands/tasks/update.js +267 -0
- package/dist/commands/tasks/upsert.d.ts +26 -0
- package/dist/commands/tasks/upsert.js +215 -0
- package/dist/commands/tasks/wait.d.ts +19 -0
- package/dist/commands/tasks/wait.js +145 -0
- package/dist/commands/tasks/watch.d.ts +19 -0
- package/dist/commands/tasks/watch.js +121 -0
- package/dist/commands/tasks/workflow/approve-merge.d.ts +19 -0
- package/dist/commands/tasks/workflow/approve-merge.js +38 -0
- package/dist/commands/tasks/workflow/cancel.d.ts +19 -0
- package/dist/commands/tasks/workflow/cancel.js +57 -0
- package/dist/commands/tasks/workflow/e2e-complete.d.ts +24 -0
- package/dist/commands/tasks/workflow/e2e-complete.js +56 -0
- package/dist/commands/tasks/workflow/index.d.ts +19 -0
- package/dist/commands/tasks/workflow/index.js +37 -0
- package/dist/commands/tasks/workflow/retry-stage.d.ts +20 -0
- package/dist/commands/tasks/workflow/retry-stage.js +43 -0
- package/dist/commands/tasks/workflow/start.d.ts +13 -0
- package/dist/commands/tasks/workflow/start.js +32 -0
- package/dist/commands/tasks/workflow-await.d.ts +23 -0
- package/dist/commands/tasks/workflow-await.js +72 -0
- package/dist/commands/tasks/workflow-context.d.ts +21 -0
- package/dist/commands/tasks/workflow-context.js +114 -0
- package/dist/commands/tasks/workflow-findings.d.ts +23 -0
- package/dist/commands/tasks/workflow-findings.js +96 -0
- package/dist/commands/teams/list-channels.d.ts +11 -0
- package/dist/commands/teams/list-channels.js +14 -0
- package/dist/commands/teams/list-users.d.ts +12 -0
- package/dist/commands/teams/list-users.js +19 -0
- package/dist/commands/teams/read-channel.d.ts +13 -0
- package/dist/commands/teams/read-channel.js +20 -0
- package/dist/commands/teams/read-thread.d.ts +14 -0
- package/dist/commands/teams/read-thread.js +23 -0
- package/dist/commands/teams/run.d.ts +15 -0
- package/dist/commands/teams/run.js +17 -0
- package/dist/commands/teams/search.d.ts +13 -0
- package/dist/commands/teams/search.js +21 -0
- package/dist/commands/teams/send-as-agent.d.ts +16 -0
- package/dist/commands/teams/send-as-agent.js +23 -0
- package/dist/commands/teams/tools.d.ts +10 -0
- package/dist/commands/teams/tools.js +14 -0
- package/dist/commands/token/mint.d.ts +35 -0
- package/dist/commands/token/mint.js +131 -0
- package/dist/commands/tones/apply.d.ts +22 -0
- package/dist/commands/tones/apply.js +127 -0
- package/dist/commands/tones/create.d.ts +26 -0
- package/dist/commands/tones/create.js +109 -0
- package/dist/commands/tones/default.d.ts +21 -0
- package/dist/commands/tones/default.js +117 -0
- package/dist/commands/tones/delete.d.ts +20 -0
- package/dist/commands/tones/delete.js +55 -0
- package/dist/commands/tones/export.d.ts +28 -0
- package/dist/commands/tones/export.js +126 -0
- package/dist/commands/tones/import.d.ts +20 -0
- package/dist/commands/tones/import.js +167 -0
- package/dist/commands/tones/list.d.ts +16 -0
- package/dist/commands/tones/list.js +77 -0
- package/dist/commands/tones/policy/set.d.ts +25 -0
- package/dist/commands/tones/policy/set.js +134 -0
- package/dist/commands/tones/policy/show.d.ts +16 -0
- package/dist/commands/tones/policy/show.js +67 -0
- package/dist/commands/tones/show.d.ts +12 -0
- package/dist/commands/tones/show.js +64 -0
- package/dist/commands/tones/update.d.ts +25 -0
- package/dist/commands/tones/update.js +104 -0
- package/dist/commands/triggers/actions.d.ts +15 -0
- package/dist/commands/triggers/actions.js +64 -0
- package/dist/commands/triggers/audit.d.ts +19 -0
- package/dist/commands/triggers/audit.js +61 -0
- package/dist/commands/triggers/capabilities.d.ts +11 -0
- package/dist/commands/triggers/capabilities.js +48 -0
- package/dist/commands/triggers/create.d.ts +88 -0
- package/dist/commands/triggers/create.js +398 -0
- package/dist/commands/triggers/delete.d.ts +13 -0
- package/dist/commands/triggers/delete.js +51 -0
- package/dist/commands/triggers/disable.d.ts +11 -0
- package/dist/commands/triggers/disable.js +32 -0
- package/dist/commands/triggers/enable.d.ts +11 -0
- package/dist/commands/triggers/enable.js +32 -0
- package/dist/commands/triggers/event-catalog.d.ts +9 -0
- package/dist/commands/triggers/event-catalog.js +51 -0
- package/dist/commands/triggers/fire-detail.d.ts +13 -0
- package/dist/commands/triggers/fire-detail.js +51 -0
- package/dist/commands/triggers/fire.d.ts +13 -0
- package/dist/commands/triggers/fire.js +46 -0
- package/dist/commands/triggers/list.d.ts +15 -0
- package/dist/commands/triggers/list.js +50 -0
- package/dist/commands/triggers/parse-intent.d.ts +16 -0
- package/dist/commands/triggers/parse-intent.js +94 -0
- package/dist/commands/triggers/preflight.d.ts +30 -0
- package/dist/commands/triggers/preflight.js +142 -0
- package/dist/commands/triggers/prune.d.ts +29 -0
- package/dist/commands/triggers/prune.js +151 -0
- package/dist/commands/triggers/replay.d.ts +14 -0
- package/dist/commands/triggers/replay.js +51 -0
- package/dist/commands/triggers/rotate-secret.d.ts +12 -0
- package/dist/commands/triggers/rotate-secret.js +38 -0
- package/dist/commands/triggers/runs.d.ts +24 -0
- package/dist/commands/triggers/runs.js +60 -0
- package/dist/commands/triggers/show.d.ts +12 -0
- package/dist/commands/triggers/show.js +35 -0
- package/dist/commands/triggers/update.d.ts +73 -0
- package/dist/commands/triggers/update.js +249 -0
- package/dist/commands/usage.d.ts +14 -0
- package/dist/commands/usage.js +70 -0
- package/dist/commands/views/create.d.ts +26 -0
- package/dist/commands/views/create.js +115 -0
- package/dist/commands/views/delete.d.ts +12 -0
- package/dist/commands/views/delete.js +41 -0
- package/dist/commands/views/list.d.ts +8 -0
- package/dist/commands/views/list.js +44 -0
- package/dist/commands/views/show.d.ts +11 -0
- package/dist/commands/views/show.js +38 -0
- package/dist/commands/views/subscribe.d.ts +15 -0
- package/dist/commands/views/subscribe.js +44 -0
- package/dist/commands/views/subscriptions.d.ts +11 -0
- package/dist/commands/views/subscriptions.js +30 -0
- package/dist/commands/views/unsubscribe.d.ts +11 -0
- package/dist/commands/views/unsubscribe.js +27 -0
- package/dist/commands/views/update.d.ts +45 -0
- package/dist/commands/views/update.js +166 -0
- package/dist/commands/webhooks/create.d.ts +12 -0
- package/dist/commands/webhooks/create.js +57 -0
- package/dist/commands/webhooks/delete.d.ts +11 -0
- package/dist/commands/webhooks/delete.js +22 -0
- package/dist/commands/webhooks/deliveries.d.ts +12 -0
- package/dist/commands/webhooks/deliveries.js +24 -0
- package/dist/commands/webhooks/list.d.ts +10 -0
- package/dist/commands/webhooks/list.js +33 -0
- package/dist/commands/webhooks/test.d.ts +11 -0
- package/dist/commands/webhooks/test.js +24 -0
- package/dist/commands/whoami.d.ts +15 -0
- package/dist/commands/whoami.js +195 -0
- package/dist/commands/widgets/add.d.ts +13 -0
- package/dist/commands/widgets/add.js +64 -0
- package/dist/commands/widgets/list.d.ts +10 -0
- package/dist/commands/widgets/list.js +66 -0
- package/dist/commands/widgets/remove.d.ts +13 -0
- package/dist/commands/widgets/remove.js +46 -0
- package/dist/commands/widgets/reorder.d.ts +13 -0
- package/dist/commands/widgets/reorder.js +23 -0
- package/dist/commands/widgets/revert.d.ts +13 -0
- package/dist/commands/widgets/revert.js +25 -0
- package/dist/commands/widgets/show.d.ts +13 -0
- package/dist/commands/widgets/show.js +47 -0
- package/dist/commands/widgets/update.d.ts +15 -0
- package/dist/commands/widgets/update.js +53 -0
- package/dist/commands/widgets/versions.d.ts +13 -0
- package/dist/commands/widgets/versions.js +25 -0
- package/dist/commands/wiki/cat.d.ts +15 -0
- package/dist/commands/wiki/cat.js +52 -0
- package/dist/commands/wiki/ls.d.ts +14 -0
- package/dist/commands/wiki/ls.js +61 -0
- package/dist/commands/wiki/mkdir.d.ts +16 -0
- package/dist/commands/wiki/mkdir.js +48 -0
- package/dist/commands/wiki/mv.d.ts +38 -0
- package/dist/commands/wiki/mv.js +178 -0
- package/dist/commands/wiki/rm.d.ts +15 -0
- package/dist/commands/wiki/rm.js +96 -0
- package/dist/commands/wiki/rmdir.d.ts +15 -0
- package/dist/commands/wiki/rmdir.js +101 -0
- package/dist/commands/wiki/search.d.ts +14 -0
- package/dist/commands/wiki/search.js +53 -0
- package/dist/commands/wiki/tree.d.ts +13 -0
- package/dist/commands/wiki/tree.js +44 -0
- package/dist/commands/wiki/update.d.ts +27 -0
- package/dist/commands/wiki/update.js +94 -0
- package/dist/commands/wiki/write.d.ts +55 -0
- package/dist/commands/wiki/write.js +233 -0
- package/dist/commands/work-views/create.d.ts +31 -0
- package/dist/commands/work-views/create.js +84 -0
- package/dist/commands/work-views/delete.d.ts +13 -0
- package/dist/commands/work-views/delete.js +39 -0
- package/dist/commands/work-views/list.d.ts +8 -0
- package/dist/commands/work-views/list.js +29 -0
- package/dist/commands/work-views/result.d.ts +11 -0
- package/dist/commands/work-views/result.js +37 -0
- package/dist/commands/work-views/update.d.ts +15 -0
- package/dist/commands/work-views/update.js +62 -0
- package/dist/commands/worklog/list.d.ts +21 -0
- package/dist/commands/worklog/list.js +53 -0
- package/dist/commands/worklog/rm.d.ts +13 -0
- package/dist/commands/worklog/rm.js +32 -0
- package/dist/commands/worklog/save.d.ts +25 -0
- package/dist/commands/worklog/save.js +73 -0
- package/dist/commands/worklog/search.d.ts +14 -0
- package/dist/commands/worklog/search.js +37 -0
- package/dist/commands/worklog/show.d.ts +13 -0
- package/dist/commands/worklog/show.js +36 -0
- package/dist/commands/worklog/stats.d.ts +10 -0
- package/dist/commands/worklog/stats.js +26 -0
- package/dist/commands/worklog/update.d.ts +17 -0
- package/dist/commands/worklog/update.js +50 -0
- package/dist/commands/workspaces/attribution.d.ts +36 -0
- package/dist/commands/workspaces/attribution.js +88 -0
- package/dist/commands/workspaces/list.d.ts +9 -0
- package/dist/commands/workspaces/list.js +60 -0
- package/dist/commands/workspaces/use.d.ts +25 -0
- package/dist/commands/workspaces/use.js +93 -0
- package/dist/hooks/command-not-found.d.ts +3 -0
- package/dist/hooks/command-not-found.js +171 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -0
- package/dist/lib/action-listings.d.ts +5 -0
- package/dist/lib/action-listings.js +70 -0
- package/dist/lib/agent-actions.d.ts +35 -0
- package/dist/lib/agent-actions.js +162 -0
- package/dist/lib/agent-config.d.ts +2 -0
- package/dist/lib/agent-config.js +52 -0
- package/dist/lib/agent-resolver.d.ts +50 -0
- package/dist/lib/agent-resolver.js +184 -0
- package/dist/lib/agent-scope.d.ts +21 -0
- package/dist/lib/agent-scope.js +33 -0
- package/dist/lib/agent-spaces.d.ts +34 -0
- package/dist/lib/agent-spaces.js +66 -0
- package/dist/lib/agent-thread.d.ts +22 -0
- package/dist/lib/agent-thread.js +51 -0
- package/dist/lib/agentic-stream.d.ts +107 -0
- package/dist/lib/agentic-stream.js +471 -0
- package/dist/lib/api-fetch.d.ts +47 -0
- package/dist/lib/api-fetch.js +248 -0
- package/dist/lib/assignee-resolver.d.ts +103 -0
- package/dist/lib/assignee-resolver.js +204 -0
- package/dist/lib/auth-core-init.d.ts +44 -0
- package/dist/lib/auth-core-init.js +289 -0
- package/dist/lib/auth-storage.d.ts +83 -0
- package/dist/lib/auth-storage.js +481 -0
- package/dist/lib/balance.d.ts +266 -0
- package/dist/lib/balance.js +242 -0
- package/dist/lib/builtinActions.d.ts +32 -0
- package/dist/lib/builtinActions.js +110 -0
- package/dist/lib/bulk-task-targets.d.ts +46 -0
- package/dist/lib/bulk-task-targets.js +81 -0
- package/dist/lib/capability-matrix.d.ts +59 -0
- package/dist/lib/capability-matrix.js +176 -0
- package/dist/lib/channel-command-runners.d.ts +22 -0
- package/dist/lib/channel-command-runners.js +294 -0
- package/dist/lib/channel-tools.d.ts +75 -0
- package/dist/lib/channel-tools.js +60 -0
- package/dist/lib/characters.d.ts +47 -0
- package/dist/lib/characters.js +31 -0
- package/dist/lib/cli-runtime.d.ts +14 -0
- package/dist/lib/cli-runtime.js +91 -0
- package/dist/lib/code-handover.d.ts +68 -0
- package/dist/lib/code-handover.js +96 -0
- package/dist/lib/command-hygiene.d.ts +34 -0
- package/dist/lib/command-hygiene.js +206 -0
- package/dist/lib/command-manifest.d.ts +33 -0
- package/dist/lib/command-manifest.js +85 -0
- package/dist/lib/commitment-analytics.d.ts +77 -0
- package/dist/lib/commitment-analytics.js +102 -0
- package/dist/lib/commitment-endpoints.d.ts +33 -0
- package/dist/lib/commitment-endpoints.js +65 -0
- package/dist/lib/commitment-terms.d.ts +45 -0
- package/dist/lib/commitment-terms.js +100 -0
- package/dist/lib/commitments.d.ts +492 -0
- package/dist/lib/commitments.js +889 -0
- package/dist/lib/compasses.d.ts +96 -0
- package/dist/lib/compasses.js +170 -0
- package/dist/lib/completion-index.d.ts +31 -0
- package/dist/lib/completion-index.js +169 -0
- package/dist/lib/completion-scripts.d.ts +10 -0
- package/dist/lib/completion-scripts.js +167 -0
- package/dist/lib/config.d.ts +156 -0
- package/dist/lib/config.js +343 -0
- package/dist/lib/cred-envelope.d.ts +17 -0
- package/dist/lib/cred-envelope.js +48 -0
- package/dist/lib/credential-resolver.d.ts +85 -0
- package/dist/lib/credential-resolver.js +164 -0
- package/dist/lib/daemonBroker.d.ts +255 -0
- package/dist/lib/daemonBroker.js +516 -0
- package/dist/lib/delegated-cli.d.ts +17 -0
- package/dist/lib/delegated-cli.js +102 -0
- package/dist/lib/device-code.d.ts +71 -0
- package/dist/lib/device-code.js +145 -0
- package/dist/lib/device-id.d.ts +14 -0
- package/dist/lib/device-id.js +27 -0
- package/dist/lib/device-identity.d.ts +7 -0
- package/dist/lib/device-identity.js +21 -0
- package/dist/lib/entity-embeds.d.ts +61 -0
- package/dist/lib/entity-embeds.js +130 -0
- package/dist/lib/entity-open.d.ts +61 -0
- package/dist/lib/entity-open.js +93 -0
- package/dist/lib/exec-oversky.d.ts +26 -0
- package/dist/lib/exec-oversky.js +181 -0
- package/dist/lib/execution-target.d.ts +28 -0
- package/dist/lib/execution-target.js +112 -0
- package/dist/lib/file-mime.d.ts +1 -0
- package/dist/lib/file-mime.js +104 -0
- package/dist/lib/format.d.ts +82 -0
- package/dist/lib/format.js +218 -0
- package/dist/lib/git-task.d.ts +25 -0
- package/dist/lib/git-task.js +137 -0
- package/dist/lib/github-tools.d.ts +12 -0
- package/dist/lib/github-tools.js +68 -0
- package/dist/lib/grants.d.ts +57 -0
- package/dist/lib/grants.js +77 -0
- package/dist/lib/group-chat-message.d.ts +142 -0
- package/dist/lib/group-chat-message.js +262 -0
- package/dist/lib/harness-tiers.d.ts +78 -0
- package/dist/lib/harness-tiers.js +121 -0
- package/dist/lib/harnesses.d.ts +138 -0
- package/dist/lib/harnesses.js +168 -0
- package/dist/lib/hosted-machines.d.ts +178 -0
- package/dist/lib/hosted-machines.js +283 -0
- package/dist/lib/http-error.d.ts +62 -0
- package/dist/lib/http-error.js +107 -0
- package/dist/lib/inbox.d.ts +63 -0
- package/dist/lib/inbox.js +97 -0
- package/dist/lib/ingress.d.ts +54 -0
- package/dist/lib/ingress.js +72 -0
- package/dist/lib/initiatives.d.ts +45 -0
- package/dist/lib/initiatives.js +67 -0
- package/dist/lib/instruction-input.d.ts +60 -0
- package/dist/lib/instruction-input.js +135 -0
- package/dist/lib/integrations-helpers.d.ts +15 -0
- package/dist/lib/integrations-helpers.js +29 -0
- package/dist/lib/keychain.d.ts +45 -0
- package/dist/lib/keychain.js +318 -0
- package/dist/lib/label-scope.d.ts +40 -0
- package/dist/lib/label-scope.js +64 -0
- package/dist/lib/login.d.ts +78 -0
- package/dist/lib/login.js +495 -0
- package/dist/lib/machines.d.ts +131 -0
- package/dist/lib/machines.js +93 -0
- package/dist/lib/measures.d.ts +59 -0
- package/dist/lib/measures.js +95 -0
- package/dist/lib/memory-scope.d.ts +38 -0
- package/dist/lib/memory-scope.js +82 -0
- package/dist/lib/memory-workspace-guidance.d.ts +12 -0
- package/dist/lib/memory-workspace-guidance.js +16 -0
- package/dist/lib/message-content.d.ts +17 -0
- package/dist/lib/message-content.js +60 -0
- package/dist/lib/message-intent.d.ts +166 -0
- package/dist/lib/message-intent.js +287 -0
- package/dist/lib/migrate.d.ts +21 -0
- package/dist/lib/migrate.js +118 -0
- package/dist/lib/node-adapter.d.ts +50 -0
- package/dist/lib/node-adapter.js +365 -0
- package/dist/lib/non-json-response.d.ts +49 -0
- package/dist/lib/non-json-response.js +70 -0
- package/dist/lib/northstars.d.ts +73 -0
- package/dist/lib/northstars.js +278 -0
- package/dist/lib/oauthLogin.d.ts +111 -0
- package/dist/lib/oauthLogin.js +427 -0
- package/dist/lib/outbox.d.ts +110 -0
- package/dist/lib/outbox.js +423 -0
- package/dist/lib/proactiveApi.d.ts +257 -0
- package/dist/lib/proactiveApi.js +38 -0
- package/dist/lib/projects.d.ts +293 -0
- package/dist/lib/projects.js +519 -0
- package/dist/lib/prompt.d.ts +55 -0
- package/dist/lib/prompt.js +181 -0
- package/dist/lib/publicEndpoints.generated.d.ts +10 -0
- package/dist/lib/publicEndpoints.generated.js +15 -0
- package/dist/lib/quota-render.d.ts +61 -0
- package/dist/lib/quota-render.js +189 -0
- package/dist/lib/reflection.d.ts +57 -0
- package/dist/lib/reflection.js +140 -0
- package/dist/lib/refresh.d.ts +79 -0
- package/dist/lib/refresh.js +237 -0
- package/dist/lib/runtime-context.d.ts +75 -0
- package/dist/lib/runtime-context.js +158 -0
- package/dist/lib/runtime-grants.d.ts +53 -0
- package/dist/lib/runtime-grants.js +47 -0
- package/dist/lib/schedule.d.ts +223 -0
- package/dist/lib/schedule.js +193 -0
- package/dist/lib/session-task-endpoints.d.ts +50 -0
- package/dist/lib/session-task-endpoints.js +108 -0
- package/dist/lib/shell-quote.d.ts +26 -0
- package/dist/lib/shell-quote.js +42 -0
- package/dist/lib/skill-library.d.ts +10 -0
- package/dist/lib/skill-library.js +16 -0
- package/dist/lib/sky-code-agent.d.ts +160 -0
- package/dist/lib/sky-code-agent.js +417 -0
- package/dist/lib/sky-code-broker.d.ts +226 -0
- package/dist/lib/sky-code-broker.js +1148 -0
- package/dist/lib/sky-code-doctor.d.ts +42 -0
- package/dist/lib/sky-code-doctor.js +554 -0
- package/dist/lib/sky-code-managed.d.ts +179 -0
- package/dist/lib/sky-code-managed.js +354 -0
- package/dist/lib/sky-code.d.ts +240 -0
- package/dist/lib/sky-code.js +410 -0
- package/dist/lib/slack-tools.d.ts +97 -0
- package/dist/lib/slack-tools.js +47 -0
- package/dist/lib/space-argument.d.ts +32 -0
- package/dist/lib/space-argument.js +43 -0
- package/dist/lib/space-members.d.ts +7 -0
- package/dist/lib/space-members.js +39 -0
- package/dist/lib/space-output.d.ts +28 -0
- package/dist/lib/space-output.js +103 -0
- package/dist/lib/space-resolver.d.ts +86 -0
- package/dist/lib/space-resolver.js +181 -0
- package/dist/lib/space-room.d.ts +65 -0
- package/dist/lib/space-room.js +138 -0
- package/dist/lib/space-templates.d.ts +122 -0
- package/dist/lib/space-templates.js +256 -0
- package/dist/lib/ssh-detect.d.ts +29 -0
- package/dist/lib/ssh-detect.js +44 -0
- package/dist/lib/task-execution.d.ts +90 -0
- package/dist/lib/task-execution.js +329 -0
- package/dist/lib/task-extras.d.ts +78 -0
- package/dist/lib/task-extras.js +100 -0
- package/dist/lib/task-instruction-offer.d.ts +5 -0
- package/dist/lib/task-instruction-offer.js +116 -0
- package/dist/lib/task-plan-output.d.ts +6 -0
- package/dist/lib/task-plan-output.js +28 -0
- package/dist/lib/task-pr.d.ts +11 -0
- package/dist/lib/task-pr.js +11 -0
- package/dist/lib/task-ref-resolver.d.ts +59 -0
- package/dist/lib/task-ref-resolver.js +133 -0
- package/dist/lib/task-report.d.ts +16 -0
- package/dist/lib/task-report.js +71 -0
- package/dist/lib/task-resolver.d.ts +45 -0
- package/dist/lib/task-resolver.js +127 -0
- package/dist/lib/task-transcript.d.ts +82 -0
- package/dist/lib/task-transcript.js +201 -0
- package/dist/lib/task-transfer.d.ts +42 -0
- package/dist/lib/task-transfer.js +311 -0
- package/dist/lib/task-tree.d.ts +23 -0
- package/dist/lib/task-tree.js +152 -0
- package/dist/lib/task-view-render.d.ts +71 -0
- package/dist/lib/task-view-render.js +125 -0
- package/dist/lib/tasks.d.ts +195 -0
- package/dist/lib/tasks.js +714 -0
- package/dist/lib/telephony-call.d.ts +36 -0
- package/dist/lib/telephony-call.js +37 -0
- package/dist/lib/tone-input.d.ts +48 -0
- package/dist/lib/tone-input.js +187 -0
- package/dist/lib/tone-workspace.d.ts +13 -0
- package/dist/lib/tone-workspace.js +43 -0
- package/dist/lib/triggers.d.ts +422 -0
- package/dist/lib/triggers.js +920 -0
- package/dist/lib/update-check.d.ts +31 -0
- package/dist/lib/update-check.js +233 -0
- package/dist/lib/usage-discovery.d.ts +75 -0
- package/dist/lib/usage-discovery.js +227 -0
- package/dist/lib/view-subscriptions.d.ts +32 -0
- package/dist/lib/view-subscriptions.js +61 -0
- package/dist/lib/views/vocabulary.d.ts +8 -0
- package/dist/lib/views/vocabulary.js +23 -0
- package/dist/lib/voice-call-intent.d.ts +65 -0
- package/dist/lib/voice-call-intent.js +106 -0
- package/dist/lib/warnings.d.ts +23 -0
- package/dist/lib/warnings.js +24 -0
- package/dist/lib/web-url.d.ts +176 -0
- package/dist/lib/web-url.js +358 -0
- package/dist/lib/wiki-update.d.ts +29 -0
- package/dist/lib/wiki-update.js +49 -0
- package/dist/lib/wiki.d.ts +53 -0
- package/dist/lib/wiki.js +146 -0
- package/dist/lib/workflow-templates.d.ts +145 -0
- package/dist/lib/workflow-templates.js +571 -0
- package/dist/lib/worklogs.d.ts +52 -0
- package/dist/lib/worklogs.js +100 -0
- package/dist/lib/workspace-header.d.ts +22 -0
- package/dist/lib/workspace-header.js +41 -0
- package/dist/lib/workspace-transfer.d.ts +20 -0
- package/dist/lib/workspace-transfer.js +11 -0
- package/dist/lib/workspaces.d.ts +75 -0
- package/dist/lib/workspaces.js +111 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/aead.d.ts +24 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/aead.js +65 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/authExpiredDetector.d.ts +65 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/authExpiredDetector.js +89 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/authHelper.d.ts +51 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/authHelper.js +321 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialEnvelope.d.ts +85 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialEnvelope.js +230 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialEnvelopeBridge.d.ts +116 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialEnvelopeBridge.js +637 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialResolver.d.ts +278 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialResolver.js +423 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonPair.d.ts +172 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonPair.js +495 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonScopes.d.ts +74 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonScopes.js +84 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/deviceIdentityBridge.d.ts +113 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/deviceIdentityBridge.js +591 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/deviceKey.d.ts +167 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/deviceKey.js +332 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/fdToken.d.ts +17 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/fdToken.js +238 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/harnessTrust.d.ts +72 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/harnessTrust.js +103 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/headers-helper.d.ts +25 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/headers-helper.js +323 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/index.d.ts +37 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/index.js +305 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/jwtUtils.d.ts +35 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/jwtUtils.js +61 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/index.d.ts +89 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/index.js +208 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/linux.d.ts +92 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/linux.js +596 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/macos.d.ts +112 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/macos.js +599 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/types.d.ts +111 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/types.js +43 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/windows.d.ts +71 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/windows.js +350 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/zeroize-registry.d.ts +44 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/zeroize-registry.js +63 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/legacyStatePreflight.d.ts +67 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/legacyStatePreflight.js +78 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/localIdentity.d.ts +54 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/localIdentity.js +57 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/loginLocalhost.d.ts +115 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/loginLocalhost.js +368 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/loginWithLocalhost.d.ts +131 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/loginWithLocalhost.js +359 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/machineId.d.ts +35 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/machineId.js +239 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/messages.d.ts +9 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/messages.js +44 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/package.json +3 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/pkce.d.ts +62 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/pkce.js +158 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/recoveryCode.d.ts +61 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/recoveryCode.js +213 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refresh.d.ts +215 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refresh.js +877 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refreshClassification.d.ts +53 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refreshClassification.js +105 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refreshScheduler.d.ts +53 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refreshScheduler.js +332 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/runtime.d.ts +149 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/runtime.js +136 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/spawnEnv.d.ts +76 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/spawnEnv.js +153 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/ttlParser.d.ts +54 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/ttlParser.js +87 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.d.ts +91 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +26 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/aead.d.ts +24 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/aead.js +57 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/authExpiredDetector.d.ts +65 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/authExpiredDetector.js +85 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/authHelper.d.ts +51 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/authHelper.js +311 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/credentialEnvelope.d.ts +85 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/credentialEnvelope.js +213 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/credentialEnvelopeBridge.d.ts +116 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/credentialEnvelopeBridge.js +620 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/credentialResolver.d.ts +278 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/credentialResolver.js +414 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/daemonPair.d.ts +172 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/daemonPair.js +476 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/daemonScopes.d.ts +74 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/daemonScopes.js +80 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/deviceIdentityBridge.d.ts +113 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/deviceIdentityBridge.js +572 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/deviceKey.d.ts +167 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/deviceKey.js +320 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/fdToken.d.ts +17 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/fdToken.js +231 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/harnessTrust.d.ts +72 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/harnessTrust.js +97 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/headers-helper.d.ts +25 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/headers-helper.js +316 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/index.d.ts +37 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/index.js +144 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/jwtUtils.d.ts +35 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/jwtUtils.js +57 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/kek/index.d.ts +89 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/kek/index.js +162 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/kek/linux.d.ts +92 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/kek/linux.js +585 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/kek/macos.d.ts +112 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/kek/macos.js +586 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/kek/types.d.ts +111 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/kek/types.js +39 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/kek/windows.d.ts +71 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/kek/windows.js +344 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/kek/zeroize-registry.d.ts +44 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/kek/zeroize-registry.js +58 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/legacyStatePreflight.d.ts +67 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/legacyStatePreflight.js +71 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/localIdentity.d.ts +54 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/localIdentity.js +54 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/loginLocalhost.d.ts +115 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/loginLocalhost.js +355 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/loginWithLocalhost.d.ts +131 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/loginWithLocalhost.js +353 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/machineId.d.ts +35 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/machineId.js +231 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/messages.d.ts +9 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/messages.js +40 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/pkce.d.ts +62 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/pkce.js +148 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/recoveryCode.d.ts +61 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/recoveryCode.js +207 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/refresh.d.ts +215 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/refresh.js +863 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/refreshClassification.d.ts +53 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/refreshClassification.js +106 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/refreshScheduler.d.ts +53 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/refreshScheduler.js +329 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/runtime.d.ts +149 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/runtime.js +121 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/spawnEnv.d.ts +76 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/spawnEnv.js +149 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/ttlParser.d.ts +54 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/ttlParser.js +83 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.d.ts +91 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/types.js +21 -0
- package/dist/node_modules/@skrr-ai/auth-core/package.json +33 -0
- package/dist/node_modules/@skrr-ai/data-provider/index.js +47601 -0
- package/dist/node_modules/@skrr-ai/data-provider/package.json +9 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/contract.d.ts +212 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/contract.js +150 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/index.d.ts +57 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/index.js +89 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/loopback-server.d.ts +70 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/loopback-server.js +216 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/managed-inference-broker.d.ts +226 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/managed-inference-broker.js +1063 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/managed-inference-renewal.d.ts +251 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/managed-inference-renewal.js +294 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/package.json +3 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/esm/contract.d.ts +212 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/esm/contract.js +146 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/esm/index.d.ts +57 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/esm/index.js +60 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/esm/loopback-server.d.ts +70 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/esm/loopback-server.js +212 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/esm/managed-inference-broker.d.ts +226 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/esm/managed-inference-broker.js +1054 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/esm/managed-inference-renewal.d.ts +251 -0
- package/dist/node_modules/@skrr-ai/inference-broker/dist/esm/managed-inference-renewal.js +289 -0
- package/dist/node_modules/@skrr-ai/inference-broker/package.json +19 -0
- package/oclif.manifest.json +76131 -0
- package/package.json +426 -0
|
@@ -0,0 +1,1252 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Flags = exports.BaseCommand = void 0;
|
|
4
|
+
exports.assigneePayloadNeedsResolution = assigneePayloadNeedsResolution;
|
|
5
|
+
exports.parseGlobalFlags = parseGlobalFlags;
|
|
6
|
+
exports.withSubject = withSubject;
|
|
7
|
+
exports.describeHarnessUnavailable = describeHarnessUnavailable;
|
|
8
|
+
exports.describeAssigneeNotInSpace = describeAssigneeNotInSpace;
|
|
9
|
+
exports.isRetryableFailure = isRetryableFailure;
|
|
10
|
+
const core_1 = require("@oclif/core");
|
|
11
|
+
Object.defineProperty(exports, "Flags", { enumerable: true, get: function () { return core_1.Flags; } });
|
|
12
|
+
const data_provider_1 = require("@skrr-ai/data-provider");
|
|
13
|
+
const auth_core_1 = require("@skrr-ai/auth-core");
|
|
14
|
+
const assignee_resolver_1 = require("./lib/assignee-resolver");
|
|
15
|
+
const task_ref_resolver_1 = require("./lib/task-ref-resolver");
|
|
16
|
+
const space_resolver_1 = require("./lib/space-resolver");
|
|
17
|
+
const projects_1 = require("./lib/projects");
|
|
18
|
+
const config_1 = require("./lib/config");
|
|
19
|
+
const keychain_1 = require("./lib/keychain");
|
|
20
|
+
const outbox_1 = require("./lib/outbox");
|
|
21
|
+
const node_adapter_1 = require("./lib/node-adapter");
|
|
22
|
+
const migrate_1 = require("./lib/migrate");
|
|
23
|
+
const auth_core_init_1 = require("./lib/auth-core-init");
|
|
24
|
+
const credential_resolver_1 = require("./lib/credential-resolver");
|
|
25
|
+
const daemonBroker_1 = require("./lib/daemonBroker");
|
|
26
|
+
const refresh_1 = require("./lib/refresh");
|
|
27
|
+
const auth_storage_1 = require("./lib/auth-storage");
|
|
28
|
+
const update_check_1 = require("./lib/update-check");
|
|
29
|
+
const web_url_1 = require("./lib/web-url");
|
|
30
|
+
const delegated_cli_1 = require("./lib/delegated-cli");
|
|
31
|
+
const tasks_1 = require("./lib/tasks");
|
|
32
|
+
function assigneePayloadNeedsResolution(payload) {
|
|
33
|
+
const fields = [
|
|
34
|
+
['assigneeUserIds', 'user'],
|
|
35
|
+
['addAssigneeUserIds', 'user'],
|
|
36
|
+
['removeAssigneeUserIds', 'user'],
|
|
37
|
+
['assigneeAgentIds', 'agent'],
|
|
38
|
+
['addAssigneeAgentIds', 'agent'],
|
|
39
|
+
['removeAssigneeAgentIds', 'agent'],
|
|
40
|
+
];
|
|
41
|
+
return fields.some(([field, kind]) => (Array.isArray(payload[field]) ? payload[field] : []).some((value) => {
|
|
42
|
+
const query = String(value).trim();
|
|
43
|
+
return Boolean(query && !(0, assignee_resolver_1.looksLikeRawId)(query, kind));
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Base class for every CLI command.
|
|
48
|
+
*
|
|
49
|
+
* Responsibilities:
|
|
50
|
+
* - Run the one-shot auth-out-of-config migration (Phase H).
|
|
51
|
+
* - Parse global flags (`--bare`, `--token`) from argv once and thread
|
|
52
|
+
* them through the credential resolver and the HTTP adapter.
|
|
53
|
+
* - Resolve the active credential via the CredentialResolver chain —
|
|
54
|
+
* flag → env → helper → keychain → file (Phase H.1). Returns the
|
|
55
|
+
* source name for display in `skrr whoami` / `skrr doctor`.
|
|
56
|
+
* - Wire the Node HttpAdapter into @skrr-ai/data-provider so
|
|
57
|
+
* `dataService.*` calls use our fetch-based transport with bearer
|
|
58
|
+
* auth that matches what the resolver surfaced.
|
|
59
|
+
* - Provide `requireAuth()` for commands that need a signed-in user,
|
|
60
|
+
* and `handleApiError()` for uniform error translation.
|
|
61
|
+
*/
|
|
62
|
+
class BaseCommand extends core_1.Command {
|
|
63
|
+
/** Add the owning agent's web detail link without overwriting resource URLs. */
|
|
64
|
+
withAgentContext(agentId, value) {
|
|
65
|
+
const agentUrl = (0, web_url_1.agentUrlFrom)(this.cliConfig.baseURL, { id: agentId });
|
|
66
|
+
if (value && typeof value === 'object' && !Array.isArray(value)) {
|
|
67
|
+
return { ...value, agentUrl };
|
|
68
|
+
}
|
|
69
|
+
return { value, agentUrl };
|
|
70
|
+
}
|
|
71
|
+
agentJson(agentId, value) {
|
|
72
|
+
return JSON.stringify(this.withAgentContext(agentId, value), null, 2);
|
|
73
|
+
}
|
|
74
|
+
printAgentUrl(agentId) {
|
|
75
|
+
this.log(`Agent URL: ${(0, web_url_1.agentUrlFrom)(this.cliConfig.baseURL, { id: agentId }) ?? '-'}`);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Global flags available on every subclass via oclif's `baseFlags`
|
|
79
|
+
* inheritance. Subclasses that declare their own `static flags` are
|
|
80
|
+
* automatically merged with these, so `skrr whoami --token ...` and
|
|
81
|
+
* `skrr whoami --bare` both parse cleanly.
|
|
82
|
+
*
|
|
83
|
+
* The flag values also surface on `this.parse()` output under the
|
|
84
|
+
* same keys — command `run()` methods can read them if they need
|
|
85
|
+
* to, but the common path is to rely on `this.resolvedCredential`
|
|
86
|
+
* and `this.bareMode` populated in `init()`.
|
|
87
|
+
*/
|
|
88
|
+
static baseFlags = {
|
|
89
|
+
bare: core_1.Flags.boolean({
|
|
90
|
+
description: 'Bare mode — ignore keychain/file credential sources. Token must come from env or --token.',
|
|
91
|
+
default: false,
|
|
92
|
+
}),
|
|
93
|
+
token: core_1.Flags.string({
|
|
94
|
+
description: 'Bearer token for this invocation (debugging/impersonation). Overrides env and stored creds.',
|
|
95
|
+
}),
|
|
96
|
+
workspace: core_1.Flags.string({
|
|
97
|
+
description: 'Workspace ID for workspace-scoped requests (also sets X-Workspace-Id).',
|
|
98
|
+
}),
|
|
99
|
+
};
|
|
100
|
+
cliConfig;
|
|
101
|
+
/**
|
|
102
|
+
* Resolved credential for this process. Populated in `init()` and
|
|
103
|
+
* reused by the node-adapter so we don't re-resolve on every HTTP
|
|
104
|
+
* call. Commands that need the source (e.g. `whoami`) read directly
|
|
105
|
+
* from here.
|
|
106
|
+
*/
|
|
107
|
+
resolvedCredential;
|
|
108
|
+
bareMode = false;
|
|
109
|
+
async init() {
|
|
110
|
+
await super.init();
|
|
111
|
+
// A daemon-stamped autonomous process is a separate principal, not a
|
|
112
|
+
// convenient place to inherit the user's CLI login. Resolve this before
|
|
113
|
+
// touching migration, Keychain/file auth, refresh, or daemon auto-broker
|
|
114
|
+
// state. The restricted session token (or a null credential when it is
|
|
115
|
+
// missing) is the only adapter authority exposed to the command.
|
|
116
|
+
let autonomousCredential = (0, credential_resolver_1.resolveTrustedAutonomousCredential)();
|
|
117
|
+
if ((0, delegated_cli_1.isDelegatedCliSession)()) {
|
|
118
|
+
try {
|
|
119
|
+
const delegatedCredential = await (0, delegated_cli_1.fetchDelegatedCliCredential)();
|
|
120
|
+
if (!delegatedCredential) {
|
|
121
|
+
this.failWithCliError({
|
|
122
|
+
message: 'Daemon delegated Sky credential is unavailable.',
|
|
123
|
+
code: 'DELEGATED_CLI_CREDENTIAL_UNAVAILABLE',
|
|
124
|
+
exit: 75,
|
|
125
|
+
retryable: true,
|
|
126
|
+
});
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
autonomousCredential = delegatedCredential;
|
|
130
|
+
}
|
|
131
|
+
catch (err) {
|
|
132
|
+
this.failWithCliError({
|
|
133
|
+
message: `Daemon delegated Sky credential is unavailable: ${err.message}`,
|
|
134
|
+
code: 'DELEGATED_CLI_CREDENTIAL_UNAVAILABLE',
|
|
135
|
+
exit: 75,
|
|
136
|
+
retryable: true,
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
if (autonomousCredential) {
|
|
141
|
+
// Parse for normal oclif flag validation, but intentionally ignore both
|
|
142
|
+
// `--token` and the user's configured credential store.
|
|
143
|
+
await this.parseBaseFlags();
|
|
144
|
+
this.bareMode = true;
|
|
145
|
+
const autonomousBaseUrl = (process.env.OVERSKY_SERVER_URL || '').trim();
|
|
146
|
+
if (!autonomousBaseUrl) {
|
|
147
|
+
this.failWithCliError({
|
|
148
|
+
message: 'This autonomous Agent process has no trusted OVERSKY_SERVER_URL; refusing to read the user CLI configuration.',
|
|
149
|
+
code: 'AUTONOMOUS_SESSION_SERVER_MISSING',
|
|
150
|
+
exit: 2,
|
|
151
|
+
retryable: false,
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
// Build the minimum metadata-only config in memory. `loadConfig()` is
|
|
155
|
+
// deliberately not called: old cli-config.json files may still contain
|
|
156
|
+
// a legacy human token awaiting migration.
|
|
157
|
+
this.cliConfig = { baseURL: (0, config_1.canonicalizeKnownBaseURL)(autonomousBaseUrl) };
|
|
158
|
+
(0, data_provider_1.setBaseURL)(this.cliConfig.baseURL);
|
|
159
|
+
// Normalize the legacy/current workspace alias for every downstream
|
|
160
|
+
// transport (dataService, direct fetches, and WebSockets). In an Agent
|
|
161
|
+
// process only the daemon-owned session value is authoritative; ambient
|
|
162
|
+
// provider env and command flags must not move the session across tenants.
|
|
163
|
+
const sessionWorkspaceId = process.env.OVERSKY_SESSION_WORKSPACE_ID?.trim();
|
|
164
|
+
if (sessionWorkspaceId) {
|
|
165
|
+
process.env.OVERSKY_WORKSPACE_ID = sessionWorkspaceId;
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
delete process.env.OVERSKY_WORKSPACE_ID;
|
|
169
|
+
}
|
|
170
|
+
this.resolvedCredential = autonomousCredential;
|
|
171
|
+
(0, node_adapter_1.setAdapterCredentialOverride)(this.resolvedCredential);
|
|
172
|
+
(0, data_provider_1.setHttpAdapter)((0, node_adapter_1.createNodeAdapter)());
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
// One-shot migration: legacy token/refreshToken in cli-config.json
|
|
176
|
+
// → keychain (macOS) or cli-auth.json (elsewhere). Idempotent.
|
|
177
|
+
try {
|
|
178
|
+
(0, migrate_1.migrateAuthOutOfConfig)();
|
|
179
|
+
}
|
|
180
|
+
catch {
|
|
181
|
+
// Never block a command on migration failure; the resolver still
|
|
182
|
+
// reads the legacy fields via the file slot in the interim.
|
|
183
|
+
}
|
|
184
|
+
// Parse base flags early. oclif's parser merges `baseFlags` with the
|
|
185
|
+
// concrete subclass's `flags`, so calling this.parse() here gives
|
|
186
|
+
// us `bare` and `token` without each subclass having to re-plumb
|
|
187
|
+
// them.
|
|
188
|
+
const parsed = await this.parseBaseFlags();
|
|
189
|
+
this.bareMode = parsed.bare;
|
|
190
|
+
if (parsed.workspace)
|
|
191
|
+
process.env.OVERSKY_WORKSPACE_ID = parsed.workspace;
|
|
192
|
+
this.cliConfig = (0, config_1.loadConfig)();
|
|
193
|
+
(0, data_provider_1.setBaseURL)(this.cliConfig.baseURL);
|
|
194
|
+
// L12 envelope + L11 device identity init — must run BEFORE
|
|
195
|
+
// resolveCredential so the keychain/file backends can decrypt any
|
|
196
|
+
// wrapped tokens on read. Bounded internally so a stuck KEK probe
|
|
197
|
+
// can't wedge the CLI; on timeout we fall through to legacy
|
|
198
|
+
// plaintext and the resolver still finds the token.
|
|
199
|
+
await (0, auth_core_init_1.prefetchCliAuth)();
|
|
200
|
+
// Resolve credential via the Phase H.1 precedence chain. The
|
|
201
|
+
// adapter then cherry-picks the token for the Authorization
|
|
202
|
+
// header; we hand it a pre-resolved override so it doesn't
|
|
203
|
+
// re-walk the chain on every request.
|
|
204
|
+
this.resolvedCredential = await (0, credential_resolver_1.resolveCredential)({
|
|
205
|
+
flagToken: parsed.token,
|
|
206
|
+
bareMode: this.bareMode,
|
|
207
|
+
// Auth recovery/cleanup must stay reachable even when the persisted
|
|
208
|
+
// envelope cannot initialize. Login/pair replace local authority;
|
|
209
|
+
// logout must always be able to erase it.
|
|
210
|
+
allowUnreadableStoredCredential: this.id === 'login' || this.id === 'logout' || this.id === 'pair',
|
|
211
|
+
});
|
|
212
|
+
let ignoredStoredCredential = null;
|
|
213
|
+
if (!this.resolvedCredential.token && !this.bareMode && !parsed.token) {
|
|
214
|
+
ignoredStoredCredential = (0, auth_storage_1.readFromBackend)(this.cliConfig.baseURL);
|
|
215
|
+
}
|
|
216
|
+
// Daemon-as-broker auto-mint. When the resolver came up empty AND
|
|
217
|
+
// a local `oversky` daemon is already authenticated for this user,
|
|
218
|
+
// silently mint a sibling cli-scope refresh family via the daemon's
|
|
219
|
+
// loopback handoff. This is the "logged-in daemon ⇒ logged-in sky,
|
|
220
|
+
// no `skrr login` ever needed" path.
|
|
221
|
+
//
|
|
222
|
+
// Skip rules are encapsulated in `maybeAutoBroker` (bare mode,
|
|
223
|
+
// env-token override, `OVERSKY_SKIP_DAEMON_BROKER=1`, and the
|
|
224
|
+
// auth-self-managed command list: login/logout/pair/...). When the
|
|
225
|
+
// broker writes a fresh bundle to the keychain, every subsequent
|
|
226
|
+
// skrr command reads it through the normal resolver chain — no
|
|
227
|
+
// per-command broker round-trip.
|
|
228
|
+
//
|
|
229
|
+
// Fail-quiet: any broker failure leaves resolvedCredential null and
|
|
230
|
+
// the command's own `requireAuth()` will surface the "Not signed
|
|
231
|
+
// in" error a moment later. Mismatched baseURL (a real foot-gun the
|
|
232
|
+
// user might not notice) is the one exception — we print a one-
|
|
233
|
+
// line hint so they know how to fix it.
|
|
234
|
+
if (!this.resolvedCredential.token) {
|
|
235
|
+
const autoResult = await (0, daemonBroker_1.maybeAutoBroker)({
|
|
236
|
+
cliConfig: this.cliConfig,
|
|
237
|
+
bareMode: this.bareMode,
|
|
238
|
+
commandId: this.id,
|
|
239
|
+
});
|
|
240
|
+
if (autoResult.triggered && autoResult.outcome) {
|
|
241
|
+
if (autoResult.outcome.ok) {
|
|
242
|
+
// Persist the cliId now so a sibling skrr process spawned
|
|
243
|
+
// immediately after sees the same identity.
|
|
244
|
+
if (autoResult.updatedConfig) {
|
|
245
|
+
try {
|
|
246
|
+
(0, config_1.saveConfig)(autoResult.updatedConfig);
|
|
247
|
+
this.cliConfig = autoResult.updatedConfig;
|
|
248
|
+
}
|
|
249
|
+
catch {
|
|
250
|
+
// Persistence failure is non-fatal — the broker mint
|
|
251
|
+
// succeeded and the token is in the keychain; only the
|
|
252
|
+
// cliId roundtrip is lost. Next process will mint a new
|
|
253
|
+
// cliId, which the server treats as a fresh device.
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
const accessToken = autoResult.outcome.accessToken;
|
|
257
|
+
this.resolvedCredential = {
|
|
258
|
+
token: accessToken,
|
|
259
|
+
// Best-effort source label. `writeToBackend` routes to
|
|
260
|
+
// Keychain on darwin, file elsewhere; we don't re-probe
|
|
261
|
+
// here, but a follow-up `skrr whoami` reads the actual
|
|
262
|
+
// backend so the label there is authoritative.
|
|
263
|
+
source: 'keychain',
|
|
264
|
+
kind: (0, auth_core_1.classifyTokenKind)(accessToken),
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
else if (autoResult.outcome.reason === 'base_url_mismatch' &&
|
|
268
|
+
autoResult.outcome.daemonServerUrl) {
|
|
269
|
+
// The user is about to see "Not signed in" — give them the
|
|
270
|
+
// exact fix. One stderr line so it doesn't pollute --json
|
|
271
|
+
// consumers on stdout.
|
|
272
|
+
process.stderr.write(`[sky] Local oversky daemon is logged in to ${autoResult.outcome.daemonServerUrl}, ` +
|
|
273
|
+
`but skrr is configured for ${this.cliConfig.baseURL}. ` +
|
|
274
|
+
`Run \`skrr login --base-url ${autoResult.outcome.daemonServerUrl}\` to use the daemon.\n`);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
if (!this.resolvedCredential.token && ignoredStoredCredential) {
|
|
279
|
+
if (ignoredStoredCredential.originStatus === 'mismatch') {
|
|
280
|
+
process.stderr.write(`[sky] Ignoring stored credentials issued by ${ignoredStoredCredential.storedServerOrigin}; ` +
|
|
281
|
+
`skrr is configured for ${this.cliConfig.baseURL}. Run \`skrr login --base-url ${this.cliConfig.baseURL}\` ` +
|
|
282
|
+
`or switch back to the issuing server.\n`);
|
|
283
|
+
}
|
|
284
|
+
else if (ignoredStoredCredential.originStatus === 'unbound') {
|
|
285
|
+
process.stderr.write(`[sky] Ignoring legacy credentials that are not bound to a server. ` +
|
|
286
|
+
`Run \`skrr login --base-url ${this.cliConfig.baseURL}\` once to bind a fresh session.\n`);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
if (this.resolvedCredential.token) {
|
|
290
|
+
const fresh = await (0, refresh_1.ensureFreshCliCredential)({
|
|
291
|
+
credential: this.resolvedCredential,
|
|
292
|
+
bareMode: this.bareMode,
|
|
293
|
+
});
|
|
294
|
+
if (fresh.credential.token) {
|
|
295
|
+
this.resolvedCredential = fresh.credential;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
(0, node_adapter_1.setAdapterCredentialOverride)(this.resolvedCredential);
|
|
299
|
+
(0, data_provider_1.setHttpAdapter)((0, node_adapter_1.createNodeAdapter)());
|
|
300
|
+
// Non-blocking "a newer skrr is available" advisory. Decides from a ~4h
|
|
301
|
+
// on-disk cache (zero added latency) and refreshes in the background.
|
|
302
|
+
// Writes at most one line to stderr, never stdout, so --json consumers
|
|
303
|
+
// are unaffected; self-suppresses in bundled/non-TTY/opted-out contexts.
|
|
304
|
+
// Wrapped so an advisory can never break the command it precedes.
|
|
305
|
+
try {
|
|
306
|
+
(0, update_check_1.maybeWarnOutdatedCli)({
|
|
307
|
+
currentVersion: this.config.version,
|
|
308
|
+
baseURL: this.cliConfig.baseURL,
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
catch {
|
|
312
|
+
/* advisory is strictly best-effort */
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Read only the two global base flags. A narrow parser — oclif's
|
|
317
|
+
* `this.parse()` would work but require threading the subclass
|
|
318
|
+
* constructor, which forces every caller path through a generic
|
|
319
|
+
* dance. Walking argv ourselves for these two boolean/string flags
|
|
320
|
+
* is simpler and sidesteps oclif's "unknown flag" strictness on
|
|
321
|
+
* subclass invocations during init().
|
|
322
|
+
*/
|
|
323
|
+
async parseBaseFlags() {
|
|
324
|
+
return parseGlobalFlags(this.argv);
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Opt out of automatic `--space` name resolution for this command.
|
|
328
|
+
*
|
|
329
|
+
* Nothing needs it today. It exists so a future command whose `--space`
|
|
330
|
+
* means something other than "one existing space" can say so declaratively
|
|
331
|
+
* instead of the resolution being quietly wrong.
|
|
332
|
+
*/
|
|
333
|
+
static resolveSpaceFlag = true;
|
|
334
|
+
/**
|
|
335
|
+
* Turn a space reference into a space id, or fail the command.
|
|
336
|
+
*
|
|
337
|
+
* Raw ids short-circuit before any network call, so every script and agent
|
|
338
|
+
* prompt that passes UUIDs today keeps its exact previous behavior and its
|
|
339
|
+
* exact previous request count. Only a value that would otherwise have
|
|
340
|
+
* silently matched nothing reaches the search.
|
|
341
|
+
*/
|
|
342
|
+
async resolveSpaceReference(value) {
|
|
343
|
+
const query = value.trim();
|
|
344
|
+
// Only canonical ids short-circuit. Human-readable refs are accepted by
|
|
345
|
+
// some read endpoints, but space-scoped mutation endpoints require the
|
|
346
|
+
// UUID, so refs go through the same exact-match resolution as titles.
|
|
347
|
+
if (!query || (0, space_resolver_1.looksLikeCanonicalSpaceId)(query))
|
|
348
|
+
return query;
|
|
349
|
+
const normalizedQuery = (0, space_resolver_1.normalizeSpaceRef)(query);
|
|
350
|
+
const load = async (includeArchived) => {
|
|
351
|
+
let response;
|
|
352
|
+
try {
|
|
353
|
+
response = await data_provider_1.dataService.listSpaces({ q: normalizedQuery, limit: 50, includeArchived });
|
|
354
|
+
}
|
|
355
|
+
catch (err) {
|
|
356
|
+
this.handleApiError(err);
|
|
357
|
+
}
|
|
358
|
+
const rows = (response?.data ?? []);
|
|
359
|
+
return rows.map(space_resolver_1.spaceRefFrom).filter((s) => s !== null);
|
|
360
|
+
};
|
|
361
|
+
let outcome = (0, space_resolver_1.resolveSpaceRef)(normalizedQuery, await load(false));
|
|
362
|
+
// Only pay for the second request when the first found nothing — it exists
|
|
363
|
+
// to tell "you named an archived space" apart from "that name matches
|
|
364
|
+
// nothing", which are different problems with different fixes.
|
|
365
|
+
if (!outcome.ok && outcome.code === 'NOT_FOUND') {
|
|
366
|
+
const archived = await load(true);
|
|
367
|
+
if (archived.length > 0)
|
|
368
|
+
outcome = (0, space_resolver_1.resolveSpaceRef)(normalizedQuery, archived);
|
|
369
|
+
}
|
|
370
|
+
if (outcome.ok)
|
|
371
|
+
return outcome.space.id;
|
|
372
|
+
this.failWithCliError({
|
|
373
|
+
message: (0, space_resolver_1.formatSpaceResolutionFailure)(outcome, this.config.bin),
|
|
374
|
+
code: space_resolver_1.SPACE_CLI_ERROR_CODE[outcome.code],
|
|
375
|
+
exit: 2,
|
|
376
|
+
retryable: false,
|
|
377
|
+
details: {
|
|
378
|
+
suggestion: `Run \`${this.config.bin} spaces list --q "${normalizedQuery}"\` to see what matches.`,
|
|
379
|
+
context: { query: normalizedQuery, code: outcome.code, candidates: outcome.candidates },
|
|
380
|
+
},
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
async resolveProjectReference(value, spaceFlag, opts = {}) {
|
|
384
|
+
const spaceRequired = opts.spaceRequired !== false;
|
|
385
|
+
const { projectRef, spaceRef } = (0, projects_1.splitQualifiedProjectRef)(value, spaceFlag);
|
|
386
|
+
if (spaceRef) {
|
|
387
|
+
return { projectRef, spaceId: await this.resolveSpaceReference(spaceRef) };
|
|
388
|
+
}
|
|
389
|
+
// A bare ref (`OSK-P-12`) is unique only inside its space, so nothing can
|
|
390
|
+
// resolve it without one — not the space-scoped routes, not
|
|
391
|
+
// `/tasks?projectId=`, and not the by-id lookup below. One sentence for
|
|
392
|
+
// both contracts.
|
|
393
|
+
if (!(0, projects_1.looksLikeCanonicalProjectId)(projectRef)) {
|
|
394
|
+
this.failWithCliError({
|
|
395
|
+
message: 'Name the space: pass --space, or use the qualified ref `<space>/<project>` that `projects list` prints.',
|
|
396
|
+
code: 'PROJECT_REF_REQUIRES_SPACE',
|
|
397
|
+
exit: 2,
|
|
398
|
+
retryable: false,
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
if (!spaceRequired) {
|
|
402
|
+
return { projectRef };
|
|
403
|
+
}
|
|
404
|
+
// A canonical id is globally unique, but a space-scoped route still needs
|
|
405
|
+
// the owning space in its URL. Ask the server which space that is instead
|
|
406
|
+
// of making the caller know it: `skrr projects update <uuid> --title …`
|
|
407
|
+
// refused to run without `--space` while the docs promised the uuid
|
|
408
|
+
// "works alone", and five project updates in one batch died on exactly
|
|
409
|
+
// that. One request, paid only on this path.
|
|
410
|
+
return { projectRef, spaceId: await this.lookupProjectSpace(projectRef) };
|
|
411
|
+
}
|
|
412
|
+
/** Resolve a canonical project id to its owning space via `GET /api/projects/:id`. */
|
|
413
|
+
async lookupProjectSpace(projectId) {
|
|
414
|
+
try {
|
|
415
|
+
const project = await projects_1.projectApi.get(projectId);
|
|
416
|
+
return project.spaceId;
|
|
417
|
+
}
|
|
418
|
+
catch (err) {
|
|
419
|
+
if (err?.code === 'PROJECT_LOOKUP_UNSUPPORTED') {
|
|
420
|
+
// A server that predates the lookup. The caller's old remedy still
|
|
421
|
+
// works there, so the error names it rather than a server upgrade only.
|
|
422
|
+
this.failWithCliError({
|
|
423
|
+
message: 'This skrr server cannot look a project up by id — name the space: pass --space, or use the qualified ref `<space>/<project>` that `projects list` prints.',
|
|
424
|
+
code: 'PROJECT_REF_REQUIRES_SPACE',
|
|
425
|
+
exit: 2,
|
|
426
|
+
retryable: false,
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
this.handleApiError(err, { subject: `project ${projectId}` });
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* Turn a task reference into something the API can look up, or fail the
|
|
434
|
+
* command.
|
|
435
|
+
*
|
|
436
|
+
* UUIDs and `OSK-2423` refs short-circuit before any network call — the
|
|
437
|
+
* server resolves the latter itself — so existing callers keep their
|
|
438
|
+
* behavior and their request count. Only a title reaches the search.
|
|
439
|
+
*/
|
|
440
|
+
async resolveTaskReference(value) {
|
|
441
|
+
const direct = (0, task_ref_resolver_1.directTaskRef)(value);
|
|
442
|
+
if (direct)
|
|
443
|
+
return direct;
|
|
444
|
+
const query = value.trim();
|
|
445
|
+
if (!query)
|
|
446
|
+
return query;
|
|
447
|
+
let response;
|
|
448
|
+
try {
|
|
449
|
+
response = await data_provider_1.dataService.listTasks({ q: query, limit: 50 });
|
|
450
|
+
}
|
|
451
|
+
catch (err) {
|
|
452
|
+
this.handleApiError(err);
|
|
453
|
+
}
|
|
454
|
+
const rows = (response?.data ?? []);
|
|
455
|
+
const candidates = rows.map(task_ref_resolver_1.taskRefFrom).filter((t) => t !== null);
|
|
456
|
+
const outcome = (0, task_ref_resolver_1.resolveTaskRef)(query, candidates);
|
|
457
|
+
if (outcome.ok)
|
|
458
|
+
return outcome.task.id;
|
|
459
|
+
this.failWithCliError({
|
|
460
|
+
message: (0, task_ref_resolver_1.formatTaskRefFailure)(outcome, this.config.bin),
|
|
461
|
+
code: task_ref_resolver_1.TASK_REF_CLI_ERROR_CODE[outcome.code],
|
|
462
|
+
exit: 2,
|
|
463
|
+
retryable: false,
|
|
464
|
+
details: {
|
|
465
|
+
suggestion: `Run \`${this.config.bin} tasks list --q "${query}"\` to see what matches.`,
|
|
466
|
+
context: { query, code: outcome.code, candidates: outcome.candidates },
|
|
467
|
+
},
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* Parse flags, then resolve any `--space` reference to an id.
|
|
472
|
+
*
|
|
473
|
+
* Done here rather than in each command because the failure this fixes was
|
|
474
|
+
* uniform across all 35 `--space` consumers and silent in every one of them:
|
|
475
|
+
* a name reached the API as a literal, matched no space, and came back as an
|
|
476
|
+
* empty result rather than an error. Fixing it per-command would leave the
|
|
477
|
+
* 36th command to reintroduce it. Commands whose `--space` is not a single
|
|
478
|
+
* space reference set `static resolveSpaceFlag = false`.
|
|
479
|
+
*
|
|
480
|
+
* `--space` is repeatable on `spaces reorder`, so both shapes are handled.
|
|
481
|
+
*/
|
|
482
|
+
async parse(options, argv) {
|
|
483
|
+
const parsed = await super.parse(options, argv);
|
|
484
|
+
const ctor = this.constructor;
|
|
485
|
+
const flags = parsed.flags;
|
|
486
|
+
const raw = flags?.space;
|
|
487
|
+
if (ctor.resolveSpaceFlag !== false && raw !== undefined) {
|
|
488
|
+
if (typeof raw === 'string') {
|
|
489
|
+
flags.space = await this.resolveSpaceReference(raw);
|
|
490
|
+
}
|
|
491
|
+
else if (Array.isArray(raw)) {
|
|
492
|
+
const resolved = [];
|
|
493
|
+
for (const entry of raw) {
|
|
494
|
+
resolved.push(typeof entry === 'string' ? await this.resolveSpaceReference(entry) : entry);
|
|
495
|
+
}
|
|
496
|
+
flags.space = resolved;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
return parsed;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Yes/no confirmation for a destructive verb.
|
|
503
|
+
*
|
|
504
|
+
* Here rather than per-command: `logout` and `revoke-daemon` each carried a
|
|
505
|
+
* private copy, and the second one's comment said "reused pattern from
|
|
506
|
+
* `revoke-daemon`" — a copy that knows it is a copy. Three more were about to
|
|
507
|
+
* land with `engines forget` / `leases release` / `leases action destroy`.
|
|
508
|
+
*
|
|
509
|
+
* Defaults to NO on a bare Enter, which is the load-bearing half: every caller
|
|
510
|
+
* is about to do something it cannot undo, and an accidental ⏎ must not be the
|
|
511
|
+
* thing that does it.
|
|
512
|
+
*
|
|
513
|
+
* Answers false with no prompt when stdin is not a TTY. A piped or CI
|
|
514
|
+
* invocation cannot answer, and blocking forever on a read that will never
|
|
515
|
+
* arrive is worse than refusing — those callers pass `--yes`, which states the
|
|
516
|
+
* intent in the command line where it can be reviewed.
|
|
517
|
+
*/
|
|
518
|
+
confirm(prompt) {
|
|
519
|
+
if (!process.stdin.isTTY) {
|
|
520
|
+
this.log('Refusing without a confirmation: stdin is not a terminal. Pass --yes to proceed.');
|
|
521
|
+
return Promise.resolve(false);
|
|
522
|
+
}
|
|
523
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
524
|
+
const readline = require('readline');
|
|
525
|
+
return new Promise((resolve) => {
|
|
526
|
+
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
527
|
+
rl.question(prompt, (answer) => {
|
|
528
|
+
rl.close();
|
|
529
|
+
const normalized = answer.trim().toLowerCase();
|
|
530
|
+
resolve(normalized === 'y' || normalized === 'yes');
|
|
531
|
+
});
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
/** Abort the command with a helpful message if the user isn't signed in. */
|
|
535
|
+
requireAuth() {
|
|
536
|
+
if (!this.resolvedCredential?.token) {
|
|
537
|
+
this.failWithCliError({
|
|
538
|
+
message: `Not signed in. Run \`${this.config.bin} login\` first.`,
|
|
539
|
+
code: 'NOT_SIGNED_IN',
|
|
540
|
+
exit: 2,
|
|
541
|
+
retryable: false,
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Resolve the authenticated user's id via `GET /api/user`.
|
|
547
|
+
*
|
|
548
|
+
* Used by commands that author resources scoped to "the current user" —
|
|
549
|
+
* e.g. a `space_subscriber` trigger's `subscriberUserId`, which the web
|
|
550
|
+
* Schedule Board fills from the signed-in user. Exits with the standard
|
|
551
|
+
* friendly error on any API failure, so callers can `await` it directly.
|
|
552
|
+
*/
|
|
553
|
+
async resolveCurrentUserId() {
|
|
554
|
+
let user;
|
|
555
|
+
try {
|
|
556
|
+
user = await data_provider_1.dataService.getUser();
|
|
557
|
+
}
|
|
558
|
+
catch (err) {
|
|
559
|
+
this.handleApiError(err);
|
|
560
|
+
}
|
|
561
|
+
// `handleApiError` returns `never`, so TypeScript treats `user` as
|
|
562
|
+
// definitely-assigned here — no optional chaining needed. The guard stays
|
|
563
|
+
// as defense against a malformed (id-less) success response.
|
|
564
|
+
if (!user.id) {
|
|
565
|
+
this.error('Could not determine the current user id from the API.', { exit: 1 });
|
|
566
|
+
}
|
|
567
|
+
return user.id;
|
|
568
|
+
}
|
|
569
|
+
/**
|
|
570
|
+
* Decide who owns a task this invocation is creating, when the caller did
|
|
571
|
+
* not say.
|
|
572
|
+
*
|
|
573
|
+
* Replaces `resolveDefaultTaskAgent()`, which asked the server which agents
|
|
574
|
+
* this account can edit and treated the answer as the caller's identity.
|
|
575
|
+
* That probe had two failure modes and no success mode worth keeping: with
|
|
576
|
+
* several agents it raised AGENT_CONTEXT_AMBIGUOUS and the command exited
|
|
577
|
+
* without recording the work at all; with exactly one it silently assigned
|
|
578
|
+
* an agent that had nothing to do with this session. Identity is now read
|
|
579
|
+
* only from what the session actually proves (`OVERSKY_SESSION_AGENT_ID`),
|
|
580
|
+
* and the decision itself lives in `@skrr-ai/data-provider` beside the
|
|
581
|
+
* copies the REST route and the MCP tools use.
|
|
582
|
+
*
|
|
583
|
+
* The calling user's id costs a request, so it is fetched only on the branch
|
|
584
|
+
* that can use it — a task whose declared executor is human.
|
|
585
|
+
*/
|
|
586
|
+
async defaultTaskAssignees(payload) {
|
|
587
|
+
const claim = {
|
|
588
|
+
hasExplicitAssignee: (0, tasks_1.hasExplicitTaskAssignee)(payload),
|
|
589
|
+
executionMode: payload.executionMode,
|
|
590
|
+
};
|
|
591
|
+
const callerUserId = (0, data_provider_1.taskAssigneeDefaultNeedsCallerUser)(claim)
|
|
592
|
+
? await this.resolveCurrentUserId()
|
|
593
|
+
: undefined;
|
|
594
|
+
return (0, tasks_1.applyTaskAssigneeDefaults)(payload, { callerUserId });
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* Load a space's assignable members (people + agents).
|
|
598
|
+
*
|
|
599
|
+
* Shared by every command that accepts an assignee reference. A failure is
|
|
600
|
+
* fatal rather than a silent fall-back to a global directory search: the
|
|
601
|
+
* server only accepts assignees who are members of the space
|
|
602
|
+
* (`ASSIGNEE_NOT_IN_SPACE`), so widening the lookup could only ever produce
|
|
603
|
+
* a request guaranteed to be rejected — or, worse, resolve a typo to a
|
|
604
|
+
* stranger the caller never intended to name.
|
|
605
|
+
*/
|
|
606
|
+
async loadSpaceMembers(spaceId) {
|
|
607
|
+
let response;
|
|
608
|
+
try {
|
|
609
|
+
response = await data_provider_1.dataService.getResourcePermissions(data_provider_1.ResourceType.SPACE, spaceId);
|
|
610
|
+
}
|
|
611
|
+
catch (err) {
|
|
612
|
+
this.handleApiError(err);
|
|
613
|
+
}
|
|
614
|
+
const principals = (response.principals ?? []);
|
|
615
|
+
return (0, assignee_resolver_1.membersFromPrincipals)(principals);
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* Turn free-text assignee references ("frank", "frank@example.com", "me",
|
|
619
|
+
* or a raw id) into ids, failing the command if ANY of them can't be pinned
|
|
620
|
+
* to exactly one member.
|
|
621
|
+
*
|
|
622
|
+
* All-or-nothing on purpose: resolving 2 of 3 names and writing those two
|
|
623
|
+
* leaves the caller unsure what landed, and a retry of the same command
|
|
624
|
+
* would re-apply the ones that already succeeded.
|
|
625
|
+
*/
|
|
626
|
+
async resolveAssignees(queries, kind, spaceId) {
|
|
627
|
+
const outcome = await (0, assignee_resolver_1.resolveAssigneeReferences)({
|
|
628
|
+
queries: queries ?? [],
|
|
629
|
+
kind,
|
|
630
|
+
spaceId,
|
|
631
|
+
loadMembers: (id) => this.loadSpaceMembers(id),
|
|
632
|
+
resolveSelfId: () => this.resolveCurrentUserId(),
|
|
633
|
+
});
|
|
634
|
+
if (outcome.failures.length > 0) {
|
|
635
|
+
const CLI_ERROR_CODE = {
|
|
636
|
+
AMBIGUOUS: 'ASSIGNEE_AMBIGUOUS',
|
|
637
|
+
NO_SPACE: 'ASSIGNEE_NO_SPACE_CONTEXT',
|
|
638
|
+
NOT_FOUND: 'ASSIGNEE_NOT_FOUND',
|
|
639
|
+
};
|
|
640
|
+
this.failWithCliError({
|
|
641
|
+
message: outcome.failures
|
|
642
|
+
.map((f) => (0, assignee_resolver_1.formatResolutionFailure)(f, this.config.bin))
|
|
643
|
+
.join('\n\n'),
|
|
644
|
+
code: CLI_ERROR_CODE[outcome.failures[0].code],
|
|
645
|
+
exit: 2,
|
|
646
|
+
retryable: false,
|
|
647
|
+
details: {
|
|
648
|
+
suggestion: `Run \`${this.config.bin} spaces members list <space-id>\` to see who can be assigned.`,
|
|
649
|
+
context: { failures: outcome.failures },
|
|
650
|
+
},
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
return outcome;
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* Rewrite every assignee field on a create/update payload in place, turning
|
|
657
|
+
* names / emails / "me" into ids.
|
|
658
|
+
*
|
|
659
|
+
* Applied to `assigneeUserIds`, `addAssigneeUserIds`,
|
|
660
|
+
* `removeAssigneeUserIds` and their agent counterparts, so `tasks create`
|
|
661
|
+
* and `tasks update` accept the same references `tasks assign` does.
|
|
662
|
+
*
|
|
663
|
+
* Strictly additive: `resolveAssigneeReferences` passes raw ids straight
|
|
664
|
+
* through and only fetches space membership when some entry actually needs
|
|
665
|
+
* resolving, so a payload that already carries ObjectIds/UUIDs — every
|
|
666
|
+
* existing script and agent prompt — behaves identically and issues no
|
|
667
|
+
* extra request.
|
|
668
|
+
*/
|
|
669
|
+
async resolveAssigneesInPayload(payload, opts = {}) {
|
|
670
|
+
const FIELDS = [
|
|
671
|
+
['assigneeUserIds', 'user'],
|
|
672
|
+
['addAssigneeUserIds', 'user'],
|
|
673
|
+
['removeAssigneeUserIds', 'user'],
|
|
674
|
+
['assigneeAgentIds', 'agent'],
|
|
675
|
+
['addAssigneeAgentIds', 'agent'],
|
|
676
|
+
['removeAssigneeAgentIds', 'agent'],
|
|
677
|
+
];
|
|
678
|
+
const present = FIELDS.filter(([field]) => Array.isArray(payload[field]));
|
|
679
|
+
if (present.length === 0)
|
|
680
|
+
return;
|
|
681
|
+
// Everything already an id ⇒ nothing to resolve, so we must not fetch the
|
|
682
|
+
// task or the space just to discover that. Bail before touching either.
|
|
683
|
+
const needsResolution = assigneePayloadNeedsResolution(payload);
|
|
684
|
+
if (!needsResolution)
|
|
685
|
+
return;
|
|
686
|
+
const spaceId = typeof payload.spaceId === 'string' && payload.spaceId
|
|
687
|
+
? payload.spaceId
|
|
688
|
+
: await opts.resolveSpaceId?.();
|
|
689
|
+
for (const [field, kind] of present) {
|
|
690
|
+
const queries = payload[field].map((v) => String(v));
|
|
691
|
+
const { ids } = await this.resolveAssignees(queries, kind, spaceId);
|
|
692
|
+
payload[field] = ids;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
/**
|
|
696
|
+
* Describe where the active token came from. Used by `skrr whoami`.
|
|
697
|
+
* Returns `null` when not signed in.
|
|
698
|
+
*/
|
|
699
|
+
credentialSourceLabel() {
|
|
700
|
+
if (!this.resolvedCredential?.token)
|
|
701
|
+
return null;
|
|
702
|
+
return (0, credential_resolver_1.formatCredentialSource)(this.resolvedCredential.source);
|
|
703
|
+
}
|
|
704
|
+
async catch(err) {
|
|
705
|
+
if (isOclifExitError(err)) {
|
|
706
|
+
return super.catch(err);
|
|
707
|
+
}
|
|
708
|
+
if (this.wantsJsonOutput()) {
|
|
709
|
+
const exit = err.exitCode ?? err.oclif?.exit ?? 1;
|
|
710
|
+
process.exitCode = exit;
|
|
711
|
+
this.log(JSON.stringify({
|
|
712
|
+
ok: false,
|
|
713
|
+
error: {
|
|
714
|
+
code: err.code ?? parseCliErrorCode(err),
|
|
715
|
+
message: err.message || String(err),
|
|
716
|
+
retryable: err.retryable ?? false,
|
|
717
|
+
command: this.id ?? null,
|
|
718
|
+
server: this.cliConfig?.baseURL ?? null,
|
|
719
|
+
...(detailsFromCaughtError(err) ? { details: detailsFromCaughtError(err) } : {}),
|
|
720
|
+
},
|
|
721
|
+
}, null, 2));
|
|
722
|
+
return;
|
|
723
|
+
}
|
|
724
|
+
return super.catch(err);
|
|
725
|
+
}
|
|
726
|
+
error(input, options = {}) {
|
|
727
|
+
if (options.exit === false) {
|
|
728
|
+
return super.error(input, options);
|
|
729
|
+
}
|
|
730
|
+
if (this.wantsJsonOutput()) {
|
|
731
|
+
const message = input instanceof Error ? input.message : input;
|
|
732
|
+
const code = options.code ??
|
|
733
|
+
(input instanceof Error && typeof input.code === 'string'
|
|
734
|
+
? input.code
|
|
735
|
+
: 'CLI_ERROR');
|
|
736
|
+
this.writeJsonCliError({
|
|
737
|
+
message,
|
|
738
|
+
code,
|
|
739
|
+
exit: typeof options.exit === 'number' ? options.exit : 1,
|
|
740
|
+
retryable: false,
|
|
741
|
+
details: detailsFromPrettyError(options),
|
|
742
|
+
});
|
|
743
|
+
}
|
|
744
|
+
return super.error(input, options);
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* Translate a data-provider error into a friendly CLI error and exit.
|
|
748
|
+
*
|
|
749
|
+
* Always returns `never` — either throws via `this.error()` or re-throws
|
|
750
|
+
* the original. Call from a `catch` block:
|
|
751
|
+
*
|
|
752
|
+
* try { ... } catch (err) { this.handleApiError(err); }
|
|
753
|
+
*
|
|
754
|
+
* `subject` names the resource the failing call was about — e.g.
|
|
755
|
+
* `Task 68ab…`. Server messages are written from the SERVER's point of
|
|
756
|
+
* view ("Task already has an active run") and so never carry the id the
|
|
757
|
+
* caller passed. That is fine for one interactive invocation and useless
|
|
758
|
+
* for a burst: N concurrent `skrr` processes share one stderr, so an
|
|
759
|
+
* anonymous line cannot be attributed to any of them (OSK-2076). The
|
|
760
|
+
* subject is folded into the message, so the human line and the `--json`
|
|
761
|
+
* envelope carry the same identifying text.
|
|
762
|
+
*/
|
|
763
|
+
handleApiError(err, { subject } = {}) {
|
|
764
|
+
const say = (message) => withSubject(subject, message);
|
|
765
|
+
if (err instanceof Error) {
|
|
766
|
+
const e = err;
|
|
767
|
+
const body = parseErrorBody(e.body);
|
|
768
|
+
const bodyCode = stringProp(body, 'code') || stringProp(body, 'errorType');
|
|
769
|
+
const bodyMessage = stringProp(body, 'message') || stringProp(body, 'error');
|
|
770
|
+
if (bodyCode === 'AGENT_RUNTIME_UNAVAILABLE') {
|
|
771
|
+
// A specific agent's runtime is offline — not a platform outage, even
|
|
772
|
+
// though the server returns 503. Intercept before the 503→outage
|
|
773
|
+
// heuristic so we neither claim a service outage nor promise a
|
|
774
|
+
// fruitless retry (OSK-4965).
|
|
775
|
+
this.failWithCliError({
|
|
776
|
+
message: say(describeHarnessUnavailable(body, this.config.bin)),
|
|
777
|
+
code: bodyCode,
|
|
778
|
+
status: e.status,
|
|
779
|
+
exit: 1,
|
|
780
|
+
retryable: false,
|
|
781
|
+
details: body ?? undefined,
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
else if (bodyCode === 'ASSIGNEE_NOT_IN_SPACE') {
|
|
785
|
+
// Code-specific enrichment takes precedence over the status heuristic:
|
|
786
|
+
// the server rejects a non-member assignee by id with no next step, so
|
|
787
|
+
// give it the same remedy the by-name path already carries (OSK-4864).
|
|
788
|
+
this.failWithCliError({
|
|
789
|
+
message: say(describeAssigneeNotInSpace(bodyMessage, this.config.bin)),
|
|
790
|
+
code: bodyCode,
|
|
791
|
+
status: e.status,
|
|
792
|
+
exit: 2,
|
|
793
|
+
retryable: false,
|
|
794
|
+
details: body ?? undefined,
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
else if (e.status === 401) {
|
|
798
|
+
// ADD-CLI6 — bare mode follows the `EX_TEMPFAIL` (75) convention
|
|
799
|
+
// for needs-reauth, matching the daemon's `bare-mode.ts:117`.
|
|
800
|
+
// CI scripts key off 75 to distinguish "re-authenticate" from
|
|
801
|
+
// "bad command" (exit 2); without this carve-out they had to
|
|
802
|
+
// string-match the stderr message, which was fragile.
|
|
803
|
+
const exitCode = this.bareMode ? 75 : 2;
|
|
804
|
+
// An `osk_ci_*` token is a DAEMON BOOTSTRAP credential — only
|
|
805
|
+
// `POST /api/daemons/token` accepts it. Telling its holder to run
|
|
806
|
+
// `login` sends a CI job to do the one thing it cannot, and hides the
|
|
807
|
+
// real mistake (dogfood OSK-4693). Name the credential instead.
|
|
808
|
+
const presentedCiToken = Boolean(this.resolvedCredential?.token?.startsWith('osk_ci_'));
|
|
809
|
+
this.failWithCliError({
|
|
810
|
+
message: say(presentedCiToken
|
|
811
|
+
? `Authentication failed: this is an \`osk_ci_*\` token, which only bootstraps a ` +
|
|
812
|
+
`daemon (\`OVERSKY_TOKEN=<token> oversky start\`). ${this.config.bin} commands do ` +
|
|
813
|
+
`not accept it — sign in with \`${this.config.bin} login\` instead.`
|
|
814
|
+
: `Authentication failed. Run \`${this.config.bin} login\` to sign in again.`),
|
|
815
|
+
code: bodyCode || 'AUTHENTICATION_FAILED',
|
|
816
|
+
status: e.status,
|
|
817
|
+
exit: exitCode,
|
|
818
|
+
retryable: true,
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
else if (e.status === 403) {
|
|
822
|
+
this.failWithCliError({
|
|
823
|
+
message: say(bodyMessage || 'Forbidden: your account does not have access to this resource.'),
|
|
824
|
+
code: bodyCode || 'FORBIDDEN',
|
|
825
|
+
status: e.status,
|
|
826
|
+
exit: 3,
|
|
827
|
+
retryable: false,
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
else if (e.status === 404) {
|
|
831
|
+
this.failWithCliError({
|
|
832
|
+
message: say(bodyMessage || 'Not found.'),
|
|
833
|
+
code: bodyCode || 'NOT_FOUND',
|
|
834
|
+
status: e.status,
|
|
835
|
+
exit: 4,
|
|
836
|
+
retryable: false,
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
else if (e.code === 'ECONNREFUSED' ||
|
|
840
|
+
e.message.includes('ECONNREFUSED') ||
|
|
841
|
+
e.message.includes('fetch failed')) {
|
|
842
|
+
this.failWithCliError({
|
|
843
|
+
message: say(`Could not connect to ${this.cliConfig.baseURL}. Is the API server running?`),
|
|
844
|
+
code: e.code || 'NETWORK_ERROR',
|
|
845
|
+
exit: 5,
|
|
846
|
+
retryable: true,
|
|
847
|
+
});
|
|
848
|
+
}
|
|
849
|
+
else if ((0, outbox_1.isOutageFailure)(e)) {
|
|
850
|
+
// A gateway/unavailable status is an OUTAGE, and saying so is the whole
|
|
851
|
+
// point. During the OSK-2806 incident these surfaced as bare
|
|
852
|
+
// `HTTP_503`s scattered across unrelated commands, so the failure read
|
|
853
|
+
// as "each of these features is broken" rather than "the control plane
|
|
854
|
+
// is down and nothing you did is at fault". Naming it once, with the
|
|
855
|
+
// same code everywhere, is what lets a user (or a script) tell a
|
|
856
|
+
// transient outage from a real refusal.
|
|
857
|
+
// Persist the observation before failing. A user in an outage is
|
|
858
|
+
// looking at several of these and trying to work out whether the
|
|
859
|
+
// problem is theirs; recording it is what lets the NEXT command, and
|
|
860
|
+
// `skrr doctor`, say "the platform was failing seconds ago" instead of
|
|
861
|
+
// every invocation looking like an isolated bug.
|
|
862
|
+
// The gate is `isOutageFailure`, NOT `isRetryableWrite`. The latter is
|
|
863
|
+
// the QUEUE decision and covers 401/408/425/429/500 — statuses where
|
|
864
|
+
// this prose would be false. Sending the two questions through one
|
|
865
|
+
// predicate is what made a single route's 500 read as a platform
|
|
866
|
+
// outage.
|
|
867
|
+
this.noteControlPlaneOutage(e.status);
|
|
868
|
+
this.failWithCliError({
|
|
869
|
+
message: say(`${this.cliConfig.baseURL} is not serving requests right now` +
|
|
870
|
+
`${e.status ? ` (HTTP ${e.status})` : ''}. ` +
|
|
871
|
+
'This is a service outage, not a problem with your account or this command. ' +
|
|
872
|
+
'Nothing was changed — retry once it recovers.'),
|
|
873
|
+
code: 'CONTROL_PLANE_UNAVAILABLE',
|
|
874
|
+
status: e.status,
|
|
875
|
+
exit: 5,
|
|
876
|
+
retryable: true,
|
|
877
|
+
details: body ?? undefined,
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
else if (typeof e.status === 'number' && e.status >= 500) {
|
|
881
|
+
// The server ANSWERED and then failed. Report only that, because that
|
|
882
|
+
// is all one response supports. In particular do not claim the platform
|
|
883
|
+
// is down (it answered), do not absolve this command (a 500 is usually
|
|
884
|
+
// this very route), and do not claim nothing changed (unknowable — and
|
|
885
|
+
// false for routes that 500 after committing, e.g. `spaces move`
|
|
886
|
+
// returning `space_room_sync_failed` once the move is already durable).
|
|
887
|
+
//
|
|
888
|
+
// The server's own message is preserved rather than overwritten. In
|
|
889
|
+
// production `redactServerErrorResponses` generalizes it to "An
|
|
890
|
+
// unexpected error occurred." and attaches a `requestId`, which is then
|
|
891
|
+
// the only thing that makes the failure diagnosable — so it is promoted
|
|
892
|
+
// into the human line instead of living only in the `--json` envelope.
|
|
893
|
+
const requestId = stringProp(body, 'requestId');
|
|
894
|
+
this.failWithCliError({
|
|
895
|
+
message: say(`${this.cliConfig.baseURL} returned HTTP ${e.status} for this request` +
|
|
896
|
+
`${bodyMessage ? `: ${bodyMessage}` : '.'} ` +
|
|
897
|
+
'The request reached the API and failed there, so this is a server-side fault on ' +
|
|
898
|
+
'this operation rather than an outage. Whether the change was applied is not ' +
|
|
899
|
+
'reported — check before retrying.' +
|
|
900
|
+
(requestId ? ` Request id ${requestId} — quote it when reporting this.` : '')),
|
|
901
|
+
code: bodyCode || `HTTP_${e.status}`,
|
|
902
|
+
status: e.status,
|
|
903
|
+
exit: 1,
|
|
904
|
+
retryable: isRetryableFailure(e.status, body),
|
|
905
|
+
details: body ?? undefined,
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
else {
|
|
909
|
+
this.failWithCliError({
|
|
910
|
+
message: say(bodyMessage || e.message),
|
|
911
|
+
code: bodyCode || e.code || (e.status ? `HTTP_${e.status}` : 'CLI_ERROR'),
|
|
912
|
+
status: e.status,
|
|
913
|
+
exit: 1,
|
|
914
|
+
retryable: isRetryableFailure(e.status, body),
|
|
915
|
+
details: body ?? undefined,
|
|
916
|
+
});
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
this.failWithCliError({
|
|
920
|
+
message: say(String(err)),
|
|
921
|
+
code: 'CLI_ERROR',
|
|
922
|
+
exit: 1,
|
|
923
|
+
retryable: false,
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* Record that the control plane is failing, for the incident surface.
|
|
928
|
+
*
|
|
929
|
+
* Best-effort and never throws: an unwritable config dir must not turn a
|
|
930
|
+
* service outage into a second, more confusing failure.
|
|
931
|
+
*/
|
|
932
|
+
noteControlPlaneOutage(status) {
|
|
933
|
+
try {
|
|
934
|
+
(0, outbox_1.recordIncident)({ baseURL: this.cliConfig.baseURL, status }, (0, keychain_1.getActiveProfile)());
|
|
935
|
+
}
|
|
936
|
+
catch {
|
|
937
|
+
/* the surface is a convenience; never let it mask the real error */
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
/**
|
|
941
|
+
* Durably queue a write the control plane could not accept, then fail.
|
|
942
|
+
*
|
|
943
|
+
* For commands where the USER AUTHORED THE CONTENT — a completion summary, a
|
|
944
|
+
* comment body, a new Space — losing it to a 503 costs the thinking, not just
|
|
945
|
+
* a retry. Those commands call this instead of `handleApiError`, and the
|
|
946
|
+
* content lands in the outbox where `skrr outbox retry` can replay it.
|
|
947
|
+
*
|
|
948
|
+
* Two invariants the caller must honour, both load-bearing:
|
|
949
|
+
*
|
|
950
|
+
* - `idempotencyKey` must be STABLE for the logical write. Replay without
|
|
951
|
+
* one risks a double-create, which is strictly worse than the lost write
|
|
952
|
+
* this exists to prevent. A command that cannot mint a stable key must
|
|
953
|
+
* not call this.
|
|
954
|
+
* - Queuing is NOT success. This still exits non-zero (`QUEUED_FOR_RETRY`),
|
|
955
|
+
* because the write has not happened. A script that read it as done would
|
|
956
|
+
* be wrong.
|
|
957
|
+
*
|
|
958
|
+
* Anything that is not an outage — every 4xx — falls through to the normal
|
|
959
|
+
* error path untouched, because replaying a refusal is just a slower refusal.
|
|
960
|
+
*/
|
|
961
|
+
queueWriteOrFail(err, write) {
|
|
962
|
+
// The durable-write path, and the one this whole step is about. It must
|
|
963
|
+
// read the WIDE predicate: a 401 here is precisely the case where an
|
|
964
|
+
// authored payload was being dropped, because `outbox` only ever queued on
|
|
965
|
+
// `status >= 500`.
|
|
966
|
+
if (!(0, outbox_1.isRetryableWrite)(err)) {
|
|
967
|
+
this.handleApiError(err);
|
|
968
|
+
}
|
|
969
|
+
const e = err;
|
|
970
|
+
// ...but the incident note stays on the NARROW one, so an expired token
|
|
971
|
+
// does not get reported as the control plane being down.
|
|
972
|
+
if ((0, outbox_1.isOutageFailure)(err))
|
|
973
|
+
this.noteControlPlaneOutage(e.status);
|
|
974
|
+
const workspaceId = process.env.OVERSKY_SESSION_WORKSPACE_ID?.trim() || process.env.OVERSKY_WORKSPACE_ID?.trim();
|
|
975
|
+
let queuedId;
|
|
976
|
+
try {
|
|
977
|
+
const entry = (0, outbox_1.enqueueWrite)({
|
|
978
|
+
idempotencyKey: write.idempotencyKey,
|
|
979
|
+
command: write.command,
|
|
980
|
+
summary: write.summary,
|
|
981
|
+
method: write.method,
|
|
982
|
+
url: write.url,
|
|
983
|
+
body: write.body,
|
|
984
|
+
...(workspaceId ? { workspaceId } : {}),
|
|
985
|
+
reason: {
|
|
986
|
+
...(e.status !== undefined ? { status: e.status } : {}),
|
|
987
|
+
...(e.code ? { code: e.code } : {}),
|
|
988
|
+
message: e.message || 'control plane unavailable',
|
|
989
|
+
},
|
|
990
|
+
}, (0, keychain_1.getActiveProfile)());
|
|
991
|
+
queuedId = entry.id;
|
|
992
|
+
}
|
|
993
|
+
catch {
|
|
994
|
+
// The queue itself failed. Say so plainly rather than claiming a
|
|
995
|
+
// durability guarantee we did not deliver.
|
|
996
|
+
this.failWithCliError({
|
|
997
|
+
message: `${this.cliConfig.baseURL} could not accept this write and it could NOT be queued ` +
|
|
998
|
+
'locally. Your content was not saved anywhere — copy it before retrying.',
|
|
999
|
+
code: 'CONTROL_PLANE_UNAVAILABLE',
|
|
1000
|
+
status: e.status,
|
|
1001
|
+
exit: 5,
|
|
1002
|
+
retryable: true,
|
|
1003
|
+
});
|
|
1004
|
+
}
|
|
1005
|
+
// Same discipline as `handleApiError`: only a real outage gets outage
|
|
1006
|
+
// wording, and only an outage lets us say nothing was written. A 500 is
|
|
1007
|
+
// queued too, but the server ran our request before failing, so what it did
|
|
1008
|
+
// with it is unknown — and a replay is safe on the idempotency key rather
|
|
1009
|
+
// than on an assumption that nothing landed.
|
|
1010
|
+
const outage = (0, outbox_1.isOutageFailure)(err);
|
|
1011
|
+
const statusSuffix = e.status ? ` (HTTP ${e.status})` : '';
|
|
1012
|
+
const lead = outage
|
|
1013
|
+
? `${this.cliConfig.baseURL} is not serving requests right now${statusSuffix}. ` +
|
|
1014
|
+
`Your ${write.summary} was queued locally as ${queuedId} — nothing has been written yet.`
|
|
1015
|
+
: `${this.cliConfig.baseURL} did not accept this write${statusSuffix}. ` +
|
|
1016
|
+
`Your ${write.summary} was queued locally as ${queuedId}; whether the server applied ` +
|
|
1017
|
+
'any of it is not reported, so verify before replaying.';
|
|
1018
|
+
this.failWithCliError({
|
|
1019
|
+
message: `${lead} ` +
|
|
1020
|
+
`Replay it with \`${this.config.bin} outbox retry\` (it carries an idempotency key, so a ` +
|
|
1021
|
+
`replay will not double-apply), or discard it with \`${this.config.bin} outbox drop ${queuedId}\`.`,
|
|
1022
|
+
code: 'QUEUED_FOR_RETRY',
|
|
1023
|
+
status: e.status,
|
|
1024
|
+
exit: 5,
|
|
1025
|
+
retryable: true,
|
|
1026
|
+
details: { outboxId: queuedId, idempotencyKey: write.idempotencyKey },
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
failWithCliError({ message, code, status, exit, retryable, details, }) {
|
|
1030
|
+
if (this.wantsJsonOutput()) {
|
|
1031
|
+
this.writeJsonCliError({ message, code, status, exit, retryable, details });
|
|
1032
|
+
}
|
|
1033
|
+
// Human path. Deliberately stderr-only: stdout is the SUCCESS channel, so
|
|
1034
|
+
// `id=$(skrr tasks start "$x")` and `sky ... | jq` are never fed error
|
|
1035
|
+
// prose, and 0 bytes of stdout on failure is the correct outcome. The
|
|
1036
|
+
// status channel already works — `this.error` throws a CLIError carrying
|
|
1037
|
+
// `oclif.exit`, so `handle()` exits with `exit` (never 0).
|
|
1038
|
+
//
|
|
1039
|
+
// What was missing is the DIAGNOSTIC channel's machine-readable half:
|
|
1040
|
+
// `code` arrived here and was dropped, so only `--json` callers could
|
|
1041
|
+
// tell `task_already_running` (benign, someone else won the race) from a
|
|
1042
|
+
// terminal refusal or a 500. oclif's pretty-printer renders a `code` on a
|
|
1043
|
+
// CLIError as its own `Code: <code>` line, so passing it through gives
|
|
1044
|
+
// every skrr command a greppable failure line at no other cost.
|
|
1045
|
+
this.error(message, { exit, code });
|
|
1046
|
+
}
|
|
1047
|
+
writeJsonCliError({ message, code, status, exit, retryable, details, }) {
|
|
1048
|
+
this.log(JSON.stringify({
|
|
1049
|
+
ok: false,
|
|
1050
|
+
error: {
|
|
1051
|
+
code,
|
|
1052
|
+
message,
|
|
1053
|
+
...(status ? { status } : {}),
|
|
1054
|
+
retryable,
|
|
1055
|
+
command: this.id ?? null,
|
|
1056
|
+
server: this.cliConfig?.baseURL ?? null,
|
|
1057
|
+
...(details ? { details } : {}),
|
|
1058
|
+
},
|
|
1059
|
+
}, null, 2));
|
|
1060
|
+
this.exit(exit);
|
|
1061
|
+
}
|
|
1062
|
+
wantsJsonOutput() {
|
|
1063
|
+
return (this.argv.includes('--json') ||
|
|
1064
|
+
process.env.SKY_JSON === '1' ||
|
|
1065
|
+
process.env.OVERSKY_CLI_JSON === '1');
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
exports.BaseCommand = BaseCommand;
|
|
1069
|
+
function parseGlobalFlags(argv) {
|
|
1070
|
+
let bare = false;
|
|
1071
|
+
let token;
|
|
1072
|
+
let workspace;
|
|
1073
|
+
for (let i = 0; i < argv.length; i++) {
|
|
1074
|
+
const arg = argv[i];
|
|
1075
|
+
if (arg === '--bare') {
|
|
1076
|
+
bare = true;
|
|
1077
|
+
continue;
|
|
1078
|
+
}
|
|
1079
|
+
if (arg === '--token') {
|
|
1080
|
+
const value = argv[i + 1];
|
|
1081
|
+
if (typeof value === 'string' && value.length > 0) {
|
|
1082
|
+
token = value;
|
|
1083
|
+
i++;
|
|
1084
|
+
}
|
|
1085
|
+
continue;
|
|
1086
|
+
}
|
|
1087
|
+
if (arg?.startsWith('--token=')) {
|
|
1088
|
+
const v = arg.slice('--token='.length);
|
|
1089
|
+
if (v.length > 0)
|
|
1090
|
+
token = v;
|
|
1091
|
+
continue;
|
|
1092
|
+
}
|
|
1093
|
+
if (arg === '--workspace') {
|
|
1094
|
+
const value = argv[i + 1];
|
|
1095
|
+
if (typeof value === 'string' && value.length > 0) {
|
|
1096
|
+
workspace = value;
|
|
1097
|
+
i++;
|
|
1098
|
+
}
|
|
1099
|
+
continue;
|
|
1100
|
+
}
|
|
1101
|
+
if (arg?.startsWith('--workspace=')) {
|
|
1102
|
+
const v = arg.slice('--workspace='.length);
|
|
1103
|
+
if (v.length > 0)
|
|
1104
|
+
workspace = v;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
return { bare, token, workspace };
|
|
1108
|
+
}
|
|
1109
|
+
function parseErrorBody(body) {
|
|
1110
|
+
if (!body)
|
|
1111
|
+
return null;
|
|
1112
|
+
try {
|
|
1113
|
+
const parsed = JSON.parse(body);
|
|
1114
|
+
return parsed && typeof parsed === 'object' && !Array.isArray(parsed)
|
|
1115
|
+
? parsed
|
|
1116
|
+
: null;
|
|
1117
|
+
}
|
|
1118
|
+
catch {
|
|
1119
|
+
return null;
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
function stringProp(obj, key) {
|
|
1123
|
+
const value = obj?.[key];
|
|
1124
|
+
return typeof value === 'string' && value.trim() ? value.trim() : undefined;
|
|
1125
|
+
}
|
|
1126
|
+
/**
|
|
1127
|
+
* Prefix a failure message with the resource it is about.
|
|
1128
|
+
*
|
|
1129
|
+
* Server messages are phrased from the server's point of view and never echo
|
|
1130
|
+
* the id the caller passed ("Task already has an active run; start rejected").
|
|
1131
|
+
* One interactive invocation doesn't need it — the operator just typed the id.
|
|
1132
|
+
* A burst does: N concurrent `skrr` processes write to the SAME stderr, so an
|
|
1133
|
+
* unattributed line names none of them (OSK-2076).
|
|
1134
|
+
*
|
|
1135
|
+
* Idempotent-ish: if the server already named the subject, don't stutter.
|
|
1136
|
+
*
|
|
1137
|
+
* Exported for tests.
|
|
1138
|
+
*/
|
|
1139
|
+
function withSubject(subject, message) {
|
|
1140
|
+
const trimmed = subject?.trim();
|
|
1141
|
+
if (!trimmed)
|
|
1142
|
+
return message;
|
|
1143
|
+
if (message.includes(trimmed))
|
|
1144
|
+
return message;
|
|
1145
|
+
return `${trimmed}: ${message}`;
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Frame a typed `AGENT_RUNTIME_UNAVAILABLE` failure as what it is — a named
|
|
1149
|
+
* agent's runtime being offline — rather than a control-plane outage (OSK-4965).
|
|
1150
|
+
*
|
|
1151
|
+
* The server returns this at HTTP 503 with a typed `cause` (which names the
|
|
1152
|
+
* runtime and why it is unreachable) and a `remedy`. The generic 503 handler
|
|
1153
|
+
* would otherwise report "service outage, retry once it recovers, nothing was
|
|
1154
|
+
* changed" — all three false here: the platform is serving, an identical retry
|
|
1155
|
+
* cannot revive an offline runtime, and the dispatch did change state (the task
|
|
1156
|
+
* parks blocked). Lead with the server's `cause`, then its `remedy` if present,
|
|
1157
|
+
* falling back to the CLI's own runtime commands.
|
|
1158
|
+
*
|
|
1159
|
+
* Exported for tests.
|
|
1160
|
+
*/
|
|
1161
|
+
function describeHarnessUnavailable(body, bin = 'skrr') {
|
|
1162
|
+
const cause = stringProp(body, 'cause');
|
|
1163
|
+
const remedy = stringProp(body, 'remedy');
|
|
1164
|
+
const lead = cause ||
|
|
1165
|
+
"The agent's runtime is unavailable — it is offline or unregistered, so the run " +
|
|
1166
|
+
'could not be dispatched.';
|
|
1167
|
+
const fix = remedy ||
|
|
1168
|
+
`Inspect it with \`${bin} machines hosted status\`, or re-attach the agent's harness with ` +
|
|
1169
|
+
`\`${bin} agents attach-harness\`.`;
|
|
1170
|
+
return `${lead}\n → ${fix}`;
|
|
1171
|
+
}
|
|
1172
|
+
/**
|
|
1173
|
+
* Enrich the server's `ASSIGNEE_NOT_IN_SPACE` rejection with the same
|
|
1174
|
+
* copy-pasteable remedy the by-name resolution failure already gives (OSK-4864).
|
|
1175
|
+
*
|
|
1176
|
+
* When a caller names an assignee that is not a member of the space, the CLI's
|
|
1177
|
+
* own name-resolution path (`ASSIGNEE_NOT_FOUND`) says "add one with
|
|
1178
|
+
* `skrr spaces members add`". The server's id-based rejection reaches
|
|
1179
|
+
* `handleApiError` as a bare sentence that interpolates ids and offers no next
|
|
1180
|
+
* step, so the two paths for the same mistake read very differently. Append the
|
|
1181
|
+
* remedy unless the server already named it.
|
|
1182
|
+
*
|
|
1183
|
+
* Exported for tests.
|
|
1184
|
+
*/
|
|
1185
|
+
function describeAssigneeNotInSpace(serverMessage, bin = 'skrr') {
|
|
1186
|
+
const base = serverMessage?.trim() || 'That assignee is not a member of this space.';
|
|
1187
|
+
if (base.includes(`${bin} spaces members add`))
|
|
1188
|
+
return base;
|
|
1189
|
+
return (`${base}\n → add it to the space with \`${bin} spaces members add\`, ` +
|
|
1190
|
+
'or assign someone already in it.');
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Server-declared TERMINAL refusals: a state conflict the caller must resolve
|
|
1194
|
+
* by doing something DIFFERENT, never by repeating the identical request.
|
|
1195
|
+
*
|
|
1196
|
+
* `skrr tasks move --status done` on a checked-out task with no approved
|
|
1197
|
+
* TASK_OUTPUT returns 409 `task_output_required`. 409 used to be in the
|
|
1198
|
+
* transient set below, so the JSON envelope said `retryable: true` — and
|
|
1199
|
+
* `daemon/CLAUDE.md` tells daemon-hosted agents to retry retryable errors, so
|
|
1200
|
+
* they looped on a refusal that can never succeed on retry. The refusal names
|
|
1201
|
+
* the supported path (`POST /:taskId/complete` / `skrr tasks complete`); the
|
|
1202
|
+
* envelope has to agree that the ONLY way forward is that path.
|
|
1203
|
+
*/
|
|
1204
|
+
const TERMINAL_ERROR_CODES = new Set(['task_output_required', 'task_output_not_approved']);
|
|
1205
|
+
/**
|
|
1206
|
+
* Whether an automated retry of the IDENTICAL request could plausibly succeed.
|
|
1207
|
+
*
|
|
1208
|
+
* Precedence:
|
|
1209
|
+
* 1. An explicit `retryable` boolean in the error body — the server knows
|
|
1210
|
+
* more about its own failure than any status heuristic does.
|
|
1211
|
+
* 2. A known terminal refusal code → never retryable.
|
|
1212
|
+
* 3. Status heuristic, restricted to genuinely TRANSIENT conditions: request
|
|
1213
|
+
* timeout, too-early, rate limit, server error. 409 Conflict is
|
|
1214
|
+
* deliberately absent — by definition it means the request conflicts with
|
|
1215
|
+
* the resource's current state, which an identical retry cannot change.
|
|
1216
|
+
*
|
|
1217
|
+
* Exported for tests.
|
|
1218
|
+
*/
|
|
1219
|
+
function isRetryableFailure(status, body) {
|
|
1220
|
+
const declared = body?.retryable;
|
|
1221
|
+
if (typeof declared === 'boolean')
|
|
1222
|
+
return declared;
|
|
1223
|
+
const code = stringProp(body, 'code') || stringProp(body, 'errorType');
|
|
1224
|
+
if (code && TERMINAL_ERROR_CODES.has(code))
|
|
1225
|
+
return false;
|
|
1226
|
+
return status === 408 || status === 425 || status === 429 || !!(status && status >= 500);
|
|
1227
|
+
}
|
|
1228
|
+
function detailsFromPrettyError(options) {
|
|
1229
|
+
const details = {};
|
|
1230
|
+
for (const key of ['suggestions', 'ref', 'showHelp']) {
|
|
1231
|
+
if (options[key] !== undefined)
|
|
1232
|
+
details[key] = options[key];
|
|
1233
|
+
}
|
|
1234
|
+
return Object.keys(details).length > 0 ? details : undefined;
|
|
1235
|
+
}
|
|
1236
|
+
function detailsFromCaughtError(err) {
|
|
1237
|
+
const details = {};
|
|
1238
|
+
if (err.suggestions !== undefined)
|
|
1239
|
+
details.suggestions = err.suggestions;
|
|
1240
|
+
if (err.oclif?.exit !== undefined)
|
|
1241
|
+
details.exit = err.oclif.exit;
|
|
1242
|
+
return Object.keys(details).length > 0 ? details : undefined;
|
|
1243
|
+
}
|
|
1244
|
+
function parseCliErrorCode(err) {
|
|
1245
|
+
if (err.name && err.name !== 'Error') {
|
|
1246
|
+
return err.name.replace(/([a-z0-9])([A-Z])/g, '$1_$2').toUpperCase();
|
|
1247
|
+
}
|
|
1248
|
+
return 'CLI_PARSE_ERROR';
|
|
1249
|
+
}
|
|
1250
|
+
function isOclifExitError(err) {
|
|
1251
|
+
return err.name === 'ExitError' || err.message.startsWith('EEXIT:');
|
|
1252
|
+
}
|