@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,1148 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* OSK-3892 — the ACQUISITION half: turn a logged-in CLI into a managed session.
|
|
4
|
+
*
|
|
5
|
+
* Four steps, in this order, none of which may be reordered:
|
|
6
|
+
*
|
|
7
|
+
* 1. mint an `agst_` session capability for a fresh sessionId, bound to an agent
|
|
8
|
+
* and to THIS process start;
|
|
9
|
+
* 2. admit an interactive reservation with it, which reserves budget and issues
|
|
10
|
+
* the gateway lease server-side;
|
|
11
|
+
* 3. build the public relay credential from the non-secret model contract;
|
|
12
|
+
* 4. start the loopback broker, which is what the engine actually talks to.
|
|
13
|
+
*
|
|
14
|
+
* ── Invariant I1: the engine gets a socket, never a credential ──────────────
|
|
15
|
+
*
|
|
16
|
+
* The `agst_` token authenticates the RELAY, which lives in this process. What
|
|
17
|
+
* crosses into the engine's environment is `session.env` — loopback base URLs, a
|
|
18
|
+
* per-session random secret meaningful only to our own socket, and the managed
|
|
19
|
+
* marker. That is true by construction in `startManagedInferenceBroker`, which
|
|
20
|
+
* never puts the upstream key in the returned env; this module simply must not
|
|
21
|
+
* add one, and does not.
|
|
22
|
+
*
|
|
23
|
+
* ── Why the admit call does not go through `apiFetch` ───────────────────────
|
|
24
|
+
*
|
|
25
|
+
* `apiFetch` owns the HUMAN credential: on a 401 it force-refreshes the user's
|
|
26
|
+
* CLI token and rotates the refresh family. Handing it an `agst_` token would make
|
|
27
|
+
* an expired session capability trigger a rotation of an unrelated credential. The
|
|
28
|
+
* mint (a user-JWT call) uses `apiFetch`; everything authenticated by the session
|
|
29
|
+
* token uses plain `fetch` against a URL derived from the same base — exactly the
|
|
30
|
+
* split `daemon/src/session-wrapper-token-issuer.ts` makes. That includes the
|
|
31
|
+
* capability REFRESH below, which is the one call most likely to meet an expired
|
|
32
|
+
* token and therefore the one that must never reach `apiFetch`'s 401 path.
|
|
33
|
+
*
|
|
34
|
+
* ── The capability is bounded by the lease, so it must track the lease ──────
|
|
35
|
+
*
|
|
36
|
+
* The `agst_` token minted in step 1 lives an hour; a supervised policy profile
|
|
37
|
+
* buys a lease ceiling of about two. Nothing used to refresh the token, so at
|
|
38
|
+
* ~60 minutes the relay 401ed, this module's own lease heartbeat 401ed, and the
|
|
39
|
+
* user got one warning line and a live TUI that could no longer infer — while the
|
|
40
|
+
* money behind it was still authorized. The heartbeat now refreshes BOTH: the
|
|
41
|
+
* capability's new expiry comes from the server (which clamps it to the lease's
|
|
42
|
+
* remaining ceiling), and the refreshed token is written back into the one
|
|
43
|
+
* variable every later call reads — including the release at teardown, which past
|
|
44
|
+
* the first hour would otherwise authenticate with a dead token and leak the
|
|
45
|
+
* reservation to the reaper.
|
|
46
|
+
*
|
|
47
|
+
* ── Why every failure is typed ─────────────────────────────────────────────
|
|
48
|
+
*
|
|
49
|
+
* `skrr code` must fall back to BYOK with ONE line naming the reason (invariant
|
|
50
|
+
* I4), and it must not do that by pattern-matching server prose. The server's
|
|
51
|
+
* refusals already carry codes (`model-denied`, `budget-exhausted`,
|
|
52
|
+
* `policy-unavailable`, `session-lease-exists`, …); this module forwards them
|
|
53
|
+
* verbatim and adds its own for the local preconditions.
|
|
54
|
+
*/
|
|
55
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56
|
+
exports.ManagedAcquisitionError = void 0;
|
|
57
|
+
exports.acquireManagedSession = acquireManagedSession;
|
|
58
|
+
exports.hasLocalCredential = hasLocalCredential;
|
|
59
|
+
exports.createManagedEngineHooks = createManagedEngineHooks;
|
|
60
|
+
exports.managedRenewalStoppedLine = managedRenewalStoppedLine;
|
|
61
|
+
exports.managedFallbackLine = managedFallbackLine;
|
|
62
|
+
const node_crypto_1 = require("node:crypto");
|
|
63
|
+
const auth_core_1 = require("@skrr-ai/auth-core");
|
|
64
|
+
const inference_broker_1 = require("@skrr-ai/inference-broker");
|
|
65
|
+
const api_fetch_1 = require("./api-fetch");
|
|
66
|
+
const auth_storage_1 = require("./auth-storage");
|
|
67
|
+
const auth_core_init_1 = require("./auth-core-init");
|
|
68
|
+
const config_1 = require("./config");
|
|
69
|
+
const cred_envelope_1 = require("./cred-envelope");
|
|
70
|
+
const device_id_1 = require("./device-id");
|
|
71
|
+
const sky_code_1 = require("./sky-code");
|
|
72
|
+
const sky_code_agent_1 = require("./sky-code-agent");
|
|
73
|
+
const sky_code_managed_1 = require("./sky-code-managed");
|
|
74
|
+
/**
|
|
75
|
+
* Harness selections the POLICY resolves, mirroring the server's own set.
|
|
76
|
+
*
|
|
77
|
+
* Sent when the user named no model: the control plane picks
|
|
78
|
+
* `policy.defaultModel`, which is the only party that knows which models are
|
|
79
|
+
* priced and allowed. Guessing one here would be an admission for a model the
|
|
80
|
+
* policy may refuse.
|
|
81
|
+
*/
|
|
82
|
+
const AUTOMATIC_MODEL = 'default';
|
|
83
|
+
/**
|
|
84
|
+
* How long the WHOLE acquisition may take before this run is BYOK.
|
|
85
|
+
*
|
|
86
|
+
* One bound for all three round trips (agent resolution, mint, admit), not one
|
|
87
|
+
* per hop: what the user is promised is "`skrr code` starts, or tells you why,
|
|
88
|
+
* within fifteen seconds", and three 15s hops is a 45s promise. Bounding each
|
|
89
|
+
* call separately also missed the case this number exists for — a host that
|
|
90
|
+
* completes a TCP handshake and then never answers (captive portal, half-open
|
|
91
|
+
* VPN), where every hop burns its own full budget.
|
|
92
|
+
*/
|
|
93
|
+
const ACQUISITION_TIMEOUT_MS = 15_000;
|
|
94
|
+
/**
|
|
95
|
+
* And a much tighter one for handing the lease BACK.
|
|
96
|
+
*
|
|
97
|
+
* A release runs on a teardown path with the human already waiting for their
|
|
98
|
+
* prompt, and the thing it protects against — a lease renewing itself against
|
|
99
|
+
* budget nobody is using — is bounded by the server's own reaper. Waiting 15s to
|
|
100
|
+
* be tidy is the wrong trade; the server's idempotency makes a missed release
|
|
101
|
+
* recoverable, and a hung teardown is not.
|
|
102
|
+
*/
|
|
103
|
+
const RELEASE_TIMEOUT_MS = 5_000;
|
|
104
|
+
/**
|
|
105
|
+
* And one for the capability refresh, which runs INSIDE the lease heartbeat.
|
|
106
|
+
*
|
|
107
|
+
* It has to be short for that reason: the refresh is awaited before the tick's
|
|
108
|
+
* lease renewal, so a hung one does not merely delay a token — it delays the
|
|
109
|
+
* renewal that keeps the lease alive. Ten seconds fits inside the slack the
|
|
110
|
+
* heartbeat's 60%-of-window cadence leaves on the windows this path actually gets
|
|
111
|
+
* (a 120s lease is renewed with ~48s to spare, a 5-minute one with ~2 minutes),
|
|
112
|
+
* and is far under undici's 300s `headersTimeout` — which is what an unbounded
|
|
113
|
+
* fetch would really wait.
|
|
114
|
+
*/
|
|
115
|
+
const CAPABILITY_REFRESH_TIMEOUT_MS = 10_000;
|
|
116
|
+
/**
|
|
117
|
+
* The fence refusal that means the session's authorized ceiling has passed.
|
|
118
|
+
*
|
|
119
|
+
* The server derives its wire code as `session-token-renewal-<fence reason>`, so
|
|
120
|
+
* this is the one string that distinguishes "your authorized time is up" from
|
|
121
|
+
* every other refusal — and those two must not read the same to a user. Matched
|
|
122
|
+
* exactly rather than by prefix: a code we do not recognise still stops the loop,
|
|
123
|
+
* just with the more cautious sentence.
|
|
124
|
+
*/
|
|
125
|
+
const CAPABILITY_CEILING_CODE = 'session-token-renewal-lease_ceiling_reached';
|
|
126
|
+
/**
|
|
127
|
+
* The 401 that means OUR OWN token died, rather than that we were refused.
|
|
128
|
+
*
|
|
129
|
+
* `requireSessionScopedAuth` answers 401 for BOTH an expired and a revoked
|
|
130
|
+
* capability, and those are opposite events: one is a server decision about this
|
|
131
|
+
* session, the other is a clock. The code separates them, which is why it is
|
|
132
|
+
* matched rather than the status.
|
|
133
|
+
*/
|
|
134
|
+
const CAPABILITY_EXPIRED_CODE = 'session-token-expired';
|
|
135
|
+
class ManagedAcquisitionError extends Error {
|
|
136
|
+
/** Machine-classifiable: either a server refusal code or one of ours. */
|
|
137
|
+
code;
|
|
138
|
+
/**
|
|
139
|
+
* The gateway model alias of a lease that WAS reserved server-side, when the
|
|
140
|
+
* failure happened after admission.
|
|
141
|
+
*
|
|
142
|
+
* Carried on the error because that is the only place the caller can learn it:
|
|
143
|
+
* a refusal thrown from inside `admitLease` has already cost budget, an active
|
|
144
|
+
* reservation, and a live gateway key, and releasing it needs the alias the
|
|
145
|
+
* relay resolves authority by. Absent means "nothing to hand back".
|
|
146
|
+
*/
|
|
147
|
+
reservedModel;
|
|
148
|
+
constructor(code, message, reservedModel) {
|
|
149
|
+
super(message);
|
|
150
|
+
this.name = 'ManagedAcquisitionError';
|
|
151
|
+
this.code = code;
|
|
152
|
+
if (reservedModel)
|
|
153
|
+
this.reservedModel = reservedModel;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.ManagedAcquisitionError = ManagedAcquisitionError;
|
|
157
|
+
/**
|
|
158
|
+
* Acquire a managed session, or throw a typed `ManagedAcquisitionError`.
|
|
159
|
+
*
|
|
160
|
+
* Throwing rather than returning null: the caller's only correct response to any
|
|
161
|
+
* failure is the same one-line BYOK fallback, and a null that means six different
|
|
162
|
+
* things is a null whose message has to be reconstructed by the caller.
|
|
163
|
+
*/
|
|
164
|
+
async function acquireManagedSession(input = {}, deps = {}) {
|
|
165
|
+
const newId = deps.newId ?? (() => (0, node_crypto_1.randomUUID)());
|
|
166
|
+
const fetchImpl = deps.fetchImpl ?? ((url, init) => fetch(url, init));
|
|
167
|
+
const api = deps.api ?? ((path, opts) => (0, api_fetch_1.apiFetch)(path, opts));
|
|
168
|
+
const serverUrl = (deps.serverUrl ?? (() => (0, sky_code_managed_1.skyCodeServerUrl)(input.env ?? process.env)))();
|
|
169
|
+
// Envelope-wrapped credentials are unreadable until this has run: without it
|
|
170
|
+
// `readFromBackend` returns a null plaintext and the whole bundle is dropped, so
|
|
171
|
+
// a signed-in user looks signed out. `BaseCommand` awaits it for the same reason
|
|
172
|
+
// before resolving a credential; `skrr code` does not extend `BaseCommand`, so it
|
|
173
|
+
// is awaited here.
|
|
174
|
+
await (deps.prefetchAuth ?? auth_core_init_1.prefetchCliAuth)();
|
|
175
|
+
// Checked locally, BEFORE any network. A fresh machine that has never run
|
|
176
|
+
// `skrr login` must fall back to BYOK without a round trip and without a 401 that
|
|
177
|
+
// would drag `apiFetch`'s refresh machinery in behind it.
|
|
178
|
+
let localCredentialAvailable;
|
|
179
|
+
if (deps.hasCredential) {
|
|
180
|
+
localCredentialAvailable = deps.hasCredential();
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
(0, cred_envelope_1.consumeEncryptedCredentialReadWhileInactive)();
|
|
184
|
+
localCredentialAvailable = hasLocalCredential();
|
|
185
|
+
if (!localCredentialAvailable && (0, cred_envelope_1.consumeEncryptedCredentialReadWhileInactive)()) {
|
|
186
|
+
await (0, auth_core_init_1.waitForCliCredentialEnvelope)();
|
|
187
|
+
localCredentialAvailable = hasLocalCredential();
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
if (!localCredentialAvailable) {
|
|
191
|
+
throw new ManagedAcquisitionError('not-signed-in', 'no skrr session on this machine — run `skrr login`');
|
|
192
|
+
}
|
|
193
|
+
const sessionId = newId();
|
|
194
|
+
// The interactive `attemptId` surrogate is derived from this server-side. Two
|
|
195
|
+
// concurrent turns in one session therefore need two process starts to be
|
|
196
|
+
// distinguishable, which is exactly what one CLI process is.
|
|
197
|
+
const processStartId = newId();
|
|
198
|
+
// ONE deadline for the whole handshake, armed here and disarmed once the last
|
|
199
|
+
// round trip has answered. Everything the acquisition does over the network is
|
|
200
|
+
// inside it, including agent resolution — which is one to two `/api/agents`
|
|
201
|
+
// calls and, before this, was unbounded.
|
|
202
|
+
const acquisition = new AbortController();
|
|
203
|
+
const deadline = setTimeout(() => acquisition.abort(), ACQUISITION_TIMEOUT_MS);
|
|
204
|
+
/** Turn an abort into the ONE code the fallback line should name. */
|
|
205
|
+
const timedOut = () => new ManagedAcquisitionError('acquisition-timeout', `the skrr control plane did not answer within ${Math.round(ACQUISITION_TIMEOUT_MS / 1000)}s`);
|
|
206
|
+
/**
|
|
207
|
+
* Hand a lease back after it has been reserved but before anything can use it.
|
|
208
|
+
*
|
|
209
|
+
* Not conditional on the failure KIND: every path from here to a live broker
|
|
210
|
+
* leaves the same debris (reserved budget, an `active`/`issued` reservation, a
|
|
211
|
+
* minted gateway key) and the server's release is idempotent, so attempting it
|
|
212
|
+
* once too often costs a 200 with `released:false`.
|
|
213
|
+
*/
|
|
214
|
+
const compensate = async (model, sessionToken) => {
|
|
215
|
+
if (!model)
|
|
216
|
+
return;
|
|
217
|
+
await releaseLease({ serverUrl, sessionId, sessionToken, model, reason: 'cli_broker_failed' }, fetchImpl, input.log);
|
|
218
|
+
};
|
|
219
|
+
let agent;
|
|
220
|
+
/**
|
|
221
|
+
* The live capability. A `let` because the heartbeat REPLACES it: `compensate`,
|
|
222
|
+
* the relay credential and `stop()`'s release all read it, and the last of those
|
|
223
|
+
* runs long after the token minted below has expired.
|
|
224
|
+
*/
|
|
225
|
+
let sessionToken;
|
|
226
|
+
/** What the SERVER said that capability expires at. Absent means no refresh. */
|
|
227
|
+
let capabilityExpiresAtMs;
|
|
228
|
+
let lease;
|
|
229
|
+
try {
|
|
230
|
+
agent = await (deps.resolveAgent ??
|
|
231
|
+
((ref, signal) => (0, sky_code_agent_1.resolveSkyCodeAgent)(ref, {}, signal ? { signal } : {})))(input.agentRef, acquisition.signal);
|
|
232
|
+
// Say it exactly once, on the run that actually minted it.
|
|
233
|
+
//
|
|
234
|
+
// A user who never chose an agent is about to have a new one appear in their
|
|
235
|
+
// agent list, and their session's spend is going to land on it. That is not
|
|
236
|
+
// something to discover later from a bill — but it is also not worth a line
|
|
237
|
+
// on every subsequent session, which is why the server distinguishes created
|
|
238
|
+
// from found rather than the CLI guessing from a timestamp.
|
|
239
|
+
if (agent.createdNow) {
|
|
240
|
+
input.log?.(`Created "${agent.name ?? agent.id}" as your default skrr Code agent — ` +
|
|
241
|
+
'this session, and future ones, are attributed to it. ' +
|
|
242
|
+
'Change it with `skrr code oversky-agent --set <id-or-name>`.');
|
|
243
|
+
}
|
|
244
|
+
const minted = await mintSessionToken({ sessionId, processStartId, agentId: agent.id, actorId: newId() }, api, acquisition.signal);
|
|
245
|
+
sessionToken = minted.token;
|
|
246
|
+
capabilityExpiresAtMs = minted.expiresAtMs;
|
|
247
|
+
try {
|
|
248
|
+
lease = await admitLease({
|
|
249
|
+
serverUrl,
|
|
250
|
+
sessionId,
|
|
251
|
+
sessionToken,
|
|
252
|
+
model: input.model?.trim() || AUTOMATIC_MODEL,
|
|
253
|
+
localRuntimeId: (deps.localRuntimeId ?? localRuntimeId)(),
|
|
254
|
+
machineUuid: (deps.machineUuid ?? auth_core_1.ensureMachineDaemonId)(),
|
|
255
|
+
}, fetchImpl, acquisition.signal);
|
|
256
|
+
}
|
|
257
|
+
catch (err) {
|
|
258
|
+
// An admission that reserved budget and then failed its own completeness
|
|
259
|
+
// check has already spent something. `reservedModel` is set exactly when
|
|
260
|
+
// that happened; a refused admission carries nothing to release.
|
|
261
|
+
await compensate(err instanceof ManagedAcquisitionError ? err.reservedModel : undefined, sessionToken);
|
|
262
|
+
throw err;
|
|
263
|
+
}
|
|
264
|
+
// OSK-3924 — the capability above was minted BEFORE this lease existed.
|
|
265
|
+
//
|
|
266
|
+
// `…/session-token/issue` mints an unclamped `DEFAULT_TTL_S`, and
|
|
267
|
+
// structurally must: at that instant there is no reservation to clamp it
|
|
268
|
+
// against, because admission is authenticated BY the capability. Now there
|
|
269
|
+
// is one. If the capability we are already holding would outlive the money
|
|
270
|
+
// behind it, spend one round trip to shorten it — the renewal path clamps to
|
|
271
|
+
// `min(DEFAULT_TTL_S, remaining ceiling)`, so asking is the whole fix.
|
|
272
|
+
//
|
|
273
|
+
// CONDITIONAL rather than unconditional, which is the difference between a
|
|
274
|
+
// fix and a tax. Under the shipped supervised profile (120s × 60 → a ~2h02m
|
|
275
|
+
// ceiling) a 1h capability already sits well inside it, so on the common
|
|
276
|
+
// path this compares two numbers and makes no request at all. It fires only
|
|
277
|
+
// for a reviewed policy that grants a session less total time than the
|
|
278
|
+
// capability's own TTL — which is exactly the case where the two clocks
|
|
279
|
+
// disagree.
|
|
280
|
+
//
|
|
281
|
+
// BEST-EFFORT, and it must be: acquisition has already succeeded here, the
|
|
282
|
+
// lease is reserved and budget is committed. A failure leaves precisely
|
|
283
|
+
// today's behaviour — an over-long capability that can authenticate and that
|
|
284
|
+
// `assertReservationIdentity` still refuses to let spend past the lease — so
|
|
285
|
+
// it must not be able to fail a session that is otherwise fine. It is also
|
|
286
|
+
// the first call in the renewal rate-limiter's 30s window, and the scheduled
|
|
287
|
+
// refresh that follows is due no sooner than minutes later.
|
|
288
|
+
if (capabilityExpiresAtMs !== undefined &&
|
|
289
|
+
lease.ceilingAtMs !== undefined &&
|
|
290
|
+
capabilityExpiresAtMs > lease.ceilingAtMs) {
|
|
291
|
+
const clamped = await refreshSessionCapability({ serverUrl, sessionId, sessionToken, capabilityExpiresAtMs }, fetchImpl).catch(() => null);
|
|
292
|
+
// Both or neither, for the same reason the scheduled refresh writes both:
|
|
293
|
+
// an expiry left behind would judge every later 401 against a window that
|
|
294
|
+
// closed refreshes ago.
|
|
295
|
+
if (clamped?.ok && clamped.token) {
|
|
296
|
+
sessionToken = clamped.token;
|
|
297
|
+
capabilityExpiresAtMs = clamped.expiresAtMs;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
catch (err) {
|
|
302
|
+
// The bound is user-visible, so it gets its own code rather than arriving as
|
|
303
|
+
// whatever `AbortError` the transport happened to produce.
|
|
304
|
+
if (acquisition.signal.aborted)
|
|
305
|
+
throw timedOut();
|
|
306
|
+
throw err;
|
|
307
|
+
}
|
|
308
|
+
finally {
|
|
309
|
+
clearTimeout(deadline);
|
|
310
|
+
}
|
|
311
|
+
const releaseModel = lease.modelScope.gatewayModelAlias;
|
|
312
|
+
/**
|
|
313
|
+
* Latched, so a RUN of transient refresh failures produces one line rather than
|
|
314
|
+
* one per heartbeat tick.
|
|
315
|
+
*/
|
|
316
|
+
let saidRefreshIsFailing = false;
|
|
317
|
+
// The one configuration relation nothing else pins.
|
|
318
|
+
//
|
|
319
|
+
// The capability refresh can only fire on a lease tick, so it lands before
|
|
320
|
+
// expiry only while the token window is wider than 1.5x the lease window. Both
|
|
321
|
+
// sides are server environment set independently — `OVERSKY_SESSION_TOKEN_TTL_S`
|
|
322
|
+
// and `OVERSKY_GATEWAY_KEY_TTL` — and at the supported 15-minute gateway TTL a
|
|
323
|
+
// token TTL of 1350s or less means the FIRST refresh presents an already-dead
|
|
324
|
+
// token. The feature then silently does not apply, in a deployment that looks
|
|
325
|
+
// configured, and the only symptom is a session that dies at its token TTL.
|
|
326
|
+
//
|
|
327
|
+
// A warning rather than a refusal: an ill-timed refresh may still land if a tick
|
|
328
|
+
// happens to fall right, and declining to try would make a survivable
|
|
329
|
+
// misconfiguration fatal.
|
|
330
|
+
if (capabilityExpiresAtMs !== undefined) {
|
|
331
|
+
const capabilityWindowMs = capabilityExpiresAtMs - Date.now();
|
|
332
|
+
// The RENEWAL window, not the admission one (OSK-3937).
|
|
333
|
+
//
|
|
334
|
+
// `minimumCapabilityWindowMs`'s docstring says so, and the warning text
|
|
335
|
+
// below says so too — "1.5x its OVERSKY_GATEWAY_KEY_TTL". The call passed
|
|
336
|
+
// `leaseExpiresInMs`, which is the 120s admission window, so the check
|
|
337
|
+
// demanded 180s where the true requirement is 450s at the default gateway
|
|
338
|
+
// TTL and 1350s at the supported maximum. That made the warning INERT in the
|
|
339
|
+
// exact configuration it was written for: at `OVERSKY_GATEWAY_KEY_TTL=15m`
|
|
340
|
+
// with a 1350s token TTL, nothing printed and the session lost the model
|
|
341
|
+
// mid-run.
|
|
342
|
+
//
|
|
343
|
+
// Falls back to the admission window only for a server that predates the
|
|
344
|
+
// field. That is the old, too-permissive behaviour — kept because a warning
|
|
345
|
+
// that cannot be computed should not become a refusal, and an older server
|
|
346
|
+
// is not a misconfiguration.
|
|
347
|
+
const requiredMs = (0, inference_broker_1.minimumCapabilityWindowMs)(lease.renewalWindowMs ?? lease.leaseExpiresInMs);
|
|
348
|
+
if (capabilityWindowMs <= requiredMs) {
|
|
349
|
+
input.log?.('Managed inference cannot refresh its session credential in time: the capability ' +
|
|
350
|
+
`window (${Math.round(capabilityWindowMs / 1_000)}s) is not wider than the ` +
|
|
351
|
+
`${Math.round(requiredMs / 1_000)}s this lease heartbeat needs. Set the server's ` +
|
|
352
|
+
'OVERSKY_SESSION_TOKEN_TTL_S above 1.5x its OVERSKY_GATEWAY_KEY_TTL. This session ' +
|
|
353
|
+
'will lose access to the model when its credential expires.');
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
let session;
|
|
357
|
+
try {
|
|
358
|
+
const credential = (deps.buildRelayCredential ?? inference_broker_1.buildManagedInferenceRelayCredential)({ modelScope: lease.modelScope }, { serverUrl, sessionId, sessionToken });
|
|
359
|
+
session = await (deps.startBroker ?? inference_broker_1.startManagedInferenceBroker)({
|
|
360
|
+
credential,
|
|
361
|
+
modelScope: lease.modelScope,
|
|
362
|
+
leaseExpiresInMs: lease.leaseExpiresInMs,
|
|
363
|
+
// Both or neither. A schedule without a refresher does nothing, and a
|
|
364
|
+
// refresher without a server-stated expiry has no honest moment to fire: the
|
|
365
|
+
// server owns this TTL and clamps it to the lease ceiling, so any lead the
|
|
366
|
+
// CLI invented would be wrong in exactly the window that matters.
|
|
367
|
+
...(capabilityExpiresAtMs
|
|
368
|
+
? {
|
|
369
|
+
capabilityExpiresAtMs,
|
|
370
|
+
refreshCapability: async () => {
|
|
371
|
+
const outcome = await refreshSessionCapability(
|
|
372
|
+
// Read at CALL time, so the Nth refresh presents the (N-1)th token
|
|
373
|
+
// rather than the one minted at acquisition — and reports the
|
|
374
|
+
// expiry of THAT token, which is what makes a 401 classifiable.
|
|
375
|
+
{
|
|
376
|
+
serverUrl,
|
|
377
|
+
sessionId,
|
|
378
|
+
sessionToken,
|
|
379
|
+
...(capabilityExpiresAtMs !== undefined ? { capabilityExpiresAtMs } : {}),
|
|
380
|
+
}, fetchImpl);
|
|
381
|
+
// The write-back. The broker swaps its own copy — what the relay and
|
|
382
|
+
// the lease renewal send — and this is the copy `stop()` releases
|
|
383
|
+
// with. Updating only one of the two is the failure that looks fixed.
|
|
384
|
+
if (outcome.ok && outcome.token) {
|
|
385
|
+
sessionToken = outcome.token;
|
|
386
|
+
// The expiry moves with the token. Left behind, the next 401 would
|
|
387
|
+
// be judged against a window that closed refreshes ago and every
|
|
388
|
+
// later refusal would read as a lapse.
|
|
389
|
+
capabilityExpiresAtMs = outcome.expiresAtMs;
|
|
390
|
+
}
|
|
391
|
+
else if (isTransientRefresh(outcome) && !saidRefreshIsFailing) {
|
|
392
|
+
// ONCE. Every transient refresh failure used to be completely
|
|
393
|
+
// silent — no log, no readout field, no stop reason — while the
|
|
394
|
+
// status readout kept showing a healthy lease, so a session that
|
|
395
|
+
// was quietly running out of credential looked fine right up to the
|
|
396
|
+
// moment it stopped. Not repeated per retry: this is a breadcrumb
|
|
397
|
+
// for the user who later asks why their session ended, and if it
|
|
398
|
+
// never recovers the stop reason says so in its own line.
|
|
399
|
+
saidRefreshIsFailing = true;
|
|
400
|
+
input.log?.(`Managed inference could not refresh its session credential (${outcome.reason ?? 'unknown error'}). ` +
|
|
401
|
+
'Retrying — the session continues for now.');
|
|
402
|
+
}
|
|
403
|
+
return outcome;
|
|
404
|
+
},
|
|
405
|
+
}
|
|
406
|
+
: {}),
|
|
407
|
+
...(input.onLeaseRenewalStopped
|
|
408
|
+
? { onLeaseRenewalStopped: input.onLeaseRenewalStopped }
|
|
409
|
+
: {}),
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
catch (err) {
|
|
413
|
+
// The asymmetry this closes: `admitLease` has already reserved budget and
|
|
414
|
+
// minted a live gateway key, and the caller's answer to a broker failure is a
|
|
415
|
+
// one-line BYOK fallback — so without this the lease stays `active` /
|
|
416
|
+
// `leaseStatus: 'issued'` with nothing pointing at it until the reaper.
|
|
417
|
+
// Reachable from a mkdtemp/chmod failure, an EADDRINUSE, and from a base URL
|
|
418
|
+
// carrying userinfo/query/fragment: that passes the CLI's protocol-only HTTPS
|
|
419
|
+
// check and is refused by `buildManagedInferenceRelayCredential`.
|
|
420
|
+
await compensate(releaseModel, sessionToken);
|
|
421
|
+
throw err;
|
|
422
|
+
}
|
|
423
|
+
return {
|
|
424
|
+
env: session.env,
|
|
425
|
+
socketPath: session.socketPath,
|
|
426
|
+
sessionId,
|
|
427
|
+
agent,
|
|
428
|
+
reservationId: lease.reservationId,
|
|
429
|
+
model: lease.model,
|
|
430
|
+
...(session.clientModelId ? { clientModelId: session.clientModelId } : {}),
|
|
431
|
+
authorizedUsd: lease.authorizedUsd,
|
|
432
|
+
leaseExpiresInMs: lease.leaseExpiresInMs,
|
|
433
|
+
stop: async (reason = 'cli_session_ended') => {
|
|
434
|
+
try {
|
|
435
|
+
// The broker FIRST, because `stop()` stops the renewal loop: releasing
|
|
436
|
+
// while a heartbeat is in flight risks the renewal re-extending the lease
|
|
437
|
+
// we just ended, which would leave exactly the debris this call removes.
|
|
438
|
+
await session.stop();
|
|
439
|
+
}
|
|
440
|
+
finally {
|
|
441
|
+
// In a `finally`: a broker that fails to shut down cleanly is a local
|
|
442
|
+
// problem, while a lease left renewing itself is a billed one. The
|
|
443
|
+
// original error still propagates to the caller's teardown log.
|
|
444
|
+
await releaseLease({ serverUrl, sessionId, sessionToken, model: releaseModel, reason }, fetchImpl, input.log);
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* OSK-3892 — end the lease, or say once that we could not.
|
|
451
|
+
*
|
|
452
|
+
* `POST …/inference/release` is idempotent and answers `{ok: true, released:
|
|
453
|
+
* false}` when there is no live lease, so calling it twice, or after expiry, or
|
|
454
|
+
* on a reservation the reaper already took, is not an error. That is what makes
|
|
455
|
+
* it safe to call from both a compensating path and a normal teardown without
|
|
456
|
+
* either having to know what the other did.
|
|
457
|
+
*
|
|
458
|
+
* Never throws. Every caller is on a path where the outcome is already decided —
|
|
459
|
+
* a fallback to BYOK, or an engine that has exited with a code the user cares
|
|
460
|
+
* about — and a teardown error that replaces either is a strictly worse answer
|
|
461
|
+
* than a lease the server's reaper collects a couple of minutes later.
|
|
462
|
+
*/
|
|
463
|
+
async function releaseLease(input, fetchImpl, log) {
|
|
464
|
+
const url = `${input.serverUrl.replace(/\/+$/, '')}` +
|
|
465
|
+
`/api/agentic/sessions/${encodeURIComponent(input.sessionId)}/inference/release`;
|
|
466
|
+
const controller = new AbortController();
|
|
467
|
+
const timeout = setTimeout(() => controller.abort(), RELEASE_TIMEOUT_MS);
|
|
468
|
+
try {
|
|
469
|
+
const response = await fetchImpl(url, {
|
|
470
|
+
method: 'POST',
|
|
471
|
+
headers: {
|
|
472
|
+
Accept: 'application/json',
|
|
473
|
+
'Content-Type': 'application/json',
|
|
474
|
+
Authorization: `Bearer ${input.sessionToken}`,
|
|
475
|
+
},
|
|
476
|
+
body: JSON.stringify({ model: input.model, reason: input.reason }),
|
|
477
|
+
signal: controller.signal,
|
|
478
|
+
});
|
|
479
|
+
if (!response.ok) {
|
|
480
|
+
// Only a 503 `release-unavailable` is a real failure; the refusals that
|
|
481
|
+
// mean "nothing to release" come back 200. Reported either way, because a
|
|
482
|
+
// client that cannot tell the server it is done is worth one line.
|
|
483
|
+
const refusal = await readRefusal(response);
|
|
484
|
+
log?.(`Managed inference lease was not released (HTTP ${response.status}` +
|
|
485
|
+
`${refusal.code ? ` ${refusal.code}` : ''}) — the control plane will reclaim it.`);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
catch (err) {
|
|
489
|
+
log?.(`Managed inference lease was not released (${describe(err)}) — ` +
|
|
490
|
+
'the control plane will reclaim it.');
|
|
491
|
+
}
|
|
492
|
+
finally {
|
|
493
|
+
clearTimeout(timeout);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Mint the session capability.
|
|
498
|
+
*
|
|
499
|
+
* `agentId` is what makes the server mint a DEFAULT INTERACTIVE claim
|
|
500
|
+
* (`capabilities: ['submit_interactive']`); without it the token is claimless and
|
|
501
|
+
* the relay refuses every call. `processStartId` is what makes the interactive
|
|
502
|
+
* attempt surrogate exist, and admission refuses a token that lacks one.
|
|
503
|
+
*
|
|
504
|
+
* `spaceId` is deliberately NOT sent. The mint puts a space id into the claim's
|
|
505
|
+
* WORKSPACE slot, which would make the reservation bill to
|
|
506
|
+
* `workspace:<spaceId>` — a tenant that does not exist. The server cannot tell the
|
|
507
|
+
* two id namespaces apart, so not sending one is the only defence.
|
|
508
|
+
*
|
|
509
|
+
* The response's `expiresAt` used to be dropped on the floor. It is the only
|
|
510
|
+
* statement of when this capability dies — the TTL is server env, so the CLI
|
|
511
|
+
* cannot derive it — and without it there is nothing to schedule a refresh
|
|
512
|
+
* against. A mint that omits it is not an error: the session simply behaves as it
|
|
513
|
+
* did before refresh existed.
|
|
514
|
+
*/
|
|
515
|
+
async function mintSessionToken(input, api, signal) {
|
|
516
|
+
let response;
|
|
517
|
+
try {
|
|
518
|
+
response = await api(`/api/agentic/sessions/${encodeURIComponent(input.sessionId)}/session-token/issue`, {
|
|
519
|
+
method: 'POST',
|
|
520
|
+
body: {
|
|
521
|
+
actorId: input.actorId,
|
|
522
|
+
agentId: input.agentId,
|
|
523
|
+
processStartId: input.processStartId,
|
|
524
|
+
},
|
|
525
|
+
...(signal ? { signal } : {}),
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
catch (err) {
|
|
529
|
+
throw new ManagedAcquisitionError(errorCodeOf(err) ?? 'session-token-refused', `the server would not issue a session capability — ${describe(err)}`);
|
|
530
|
+
}
|
|
531
|
+
const token = typeof response?.token === 'string' ? response.token.trim() : '';
|
|
532
|
+
if (!token) {
|
|
533
|
+
throw new ManagedAcquisitionError('session-token-missing', 'the server issued no session capability');
|
|
534
|
+
}
|
|
535
|
+
const expiresAtMs = coerceExpiresAtMs(response?.expiresAt);
|
|
536
|
+
return { token, ...(expiresAtMs !== undefined ? { expiresAtMs } : {}) };
|
|
537
|
+
}
|
|
538
|
+
/**
|
|
539
|
+
* Refresh the session capability, presenting the CURRENT one.
|
|
540
|
+
*
|
|
541
|
+
* `POST …/session-token/renew` re-mints with every claim copied verbatim —
|
|
542
|
+
* including `processStartId`, which is what keeps the refreshed token bound to the
|
|
543
|
+
* same interactive reservation — and the server clamps the new TTL to what remains
|
|
544
|
+
* of that reservation's immutable ceiling. So this call cannot widen anything: the
|
|
545
|
+
* most it can do is extend the credential up to the money that was already
|
|
546
|
+
* authorized for it.
|
|
547
|
+
*
|
|
548
|
+
* Classified per STATUS, never per status class. The four outcomes below are
|
|
549
|
+
* genuinely different events and the 4xx/5xx split gets three of them wrong: a 429
|
|
550
|
+
* is the most retryable failure there is, the ceiling is the one refusal that has
|
|
551
|
+
* a specific and actionable thing to tell the user, and a 401 against a token that
|
|
552
|
+
* was ALREADY DEAD is not a refusal at all — nothing was evaluated.
|
|
553
|
+
*
|
|
554
|
+
* Never throws. A refresh failure is the heartbeat's decision to make, and the
|
|
555
|
+
* heartbeat is what keeps the lease — the half of the session that costs money —
|
|
556
|
+
* alive.
|
|
557
|
+
*/
|
|
558
|
+
async function refreshSessionCapability(input, fetchImpl) {
|
|
559
|
+
const url = `${input.serverUrl.replace(/\/+$/, '')}` +
|
|
560
|
+
`/api/agentic/sessions/${encodeURIComponent(input.sessionId)}/session-token/renew`;
|
|
561
|
+
const controller = new AbortController();
|
|
562
|
+
const timeout = setTimeout(() => controller.abort(), CAPABILITY_REFRESH_TIMEOUT_MS);
|
|
563
|
+
try {
|
|
564
|
+
const response = await fetchImpl(url, {
|
|
565
|
+
method: 'POST',
|
|
566
|
+
headers: {
|
|
567
|
+
Accept: 'application/json',
|
|
568
|
+
// The session capability, not the user's login credential. The route is
|
|
569
|
+
// session-scoped auth, and `apiFetch` would answer a 401 here by rotating
|
|
570
|
+
// an unrelated refresh family.
|
|
571
|
+
Authorization: `Bearer ${input.sessionToken}`,
|
|
572
|
+
},
|
|
573
|
+
signal: controller.signal,
|
|
574
|
+
});
|
|
575
|
+
if (response.ok) {
|
|
576
|
+
const payload = (await response.json().catch(() => null));
|
|
577
|
+
const token = typeof payload?.token === 'string' ? payload.token.trim() : '';
|
|
578
|
+
const expiresAtMs = coerceExpiresAtMs(payload?.expiresAt);
|
|
579
|
+
if (!token.startsWith('agst_') || expiresAtMs === undefined) {
|
|
580
|
+
// A 200 we cannot use. Retryable rather than terminal: killing a session
|
|
581
|
+
// that is otherwise healthy over one malformed answer is the worse trade,
|
|
582
|
+
// and the heartbeat still holds a working token until its real expiry.
|
|
583
|
+
return {
|
|
584
|
+
ok: false,
|
|
585
|
+
reason: 'the server renewed the capability without a usable token or expiry',
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
return { ok: true, token, expiresAtMs };
|
|
589
|
+
}
|
|
590
|
+
// Read BEFORE the body: `readRefusal` consumes it.
|
|
591
|
+
const retryAfter = retryAfterMs(response);
|
|
592
|
+
const refusal = await readRefusal(response);
|
|
593
|
+
const reason = refusal.code ?? `capability refresh HTTP ${response.status}`;
|
|
594
|
+
if (response.status === 429) {
|
|
595
|
+
// One refresh per 30s per session, and the heartbeat's own retries fire with
|
|
596
|
+
// no backoff — so this is reachable, and reading it as a refusal would end a
|
|
597
|
+
// session over a limiter doing its job.
|
|
598
|
+
return {
|
|
599
|
+
ok: false,
|
|
600
|
+
...(retryAfter !== undefined ? { retryAfterMs: retryAfter } : {}),
|
|
601
|
+
reason,
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
if (refusal.code === CAPABILITY_CEILING_CODE) {
|
|
605
|
+
// Prefer the INSTANT over the code here, and only here: this is the one
|
|
606
|
+
// refusal whose useful detail is not "which rule fired" — the user knows the
|
|
607
|
+
// rule, they want to know when their window ended.
|
|
608
|
+
return {
|
|
609
|
+
ok: false,
|
|
610
|
+
ceiling: true,
|
|
611
|
+
reason: refusal.ceilingAt ? `authorized through ${refusal.ceilingAt}` : reason,
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
if (response.status === 401 &&
|
|
615
|
+
(refusal.code === CAPABILITY_EXPIRED_CODE || credentialAlreadyLapsed(input))) {
|
|
616
|
+
// The modal cause is a LAPTOP SUSPEND. Timers do not fire while asleep, so
|
|
617
|
+
// the loop wakes hours late and presents a token that died in the meantime —
|
|
618
|
+
// and calling that "renewal was refused" attributes to the server a decision
|
|
619
|
+
// it never made, sending the user to look for a policy problem that is not
|
|
620
|
+
// there. Terminal either way (there is nothing left to authenticate with),
|
|
621
|
+
// and a REVOKED token is deliberately not folded in here: that one is a real
|
|
622
|
+
// decision and keeps reading as `denied`.
|
|
623
|
+
return {
|
|
624
|
+
ok: false,
|
|
625
|
+
expired: true,
|
|
626
|
+
reason: input.capabilityExpiresAtMs
|
|
627
|
+
? `the session capability expired at ${new Date(input.capabilityExpiresAtMs).toISOString()}`
|
|
628
|
+
: 'the session capability expired',
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
// 5xx includes the fence's own `lease_state_unavailable`, which is explicitly
|
|
632
|
+
// a fail-closed-but-retryable answer: the ceiling could not be READ, which is
|
|
633
|
+
// not the same as having been reached.
|
|
634
|
+
if (response.status >= 500)
|
|
635
|
+
return { ok: false, reason };
|
|
636
|
+
return { ok: false, denied: true, reason };
|
|
637
|
+
}
|
|
638
|
+
catch (err) {
|
|
639
|
+
return { ok: false, reason: describe(err) };
|
|
640
|
+
}
|
|
641
|
+
finally {
|
|
642
|
+
clearTimeout(timeout);
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* A refresh failure the heartbeat will try again — as opposed to one that ends it.
|
|
647
|
+
*
|
|
648
|
+
* Read off the same three terminal flags the loop reads, so "the loop will keep
|
|
649
|
+
* going" and "we said something about it" cannot disagree.
|
|
650
|
+
*/
|
|
651
|
+
function isTransientRefresh(outcome) {
|
|
652
|
+
return !outcome.ok && !outcome.ceiling && !outcome.denied && !outcome.expired;
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* Whether the credential we just presented was already past its stated expiry.
|
|
656
|
+
*
|
|
657
|
+
* No skew allowance in either direction. Our clock and the server's agreeing that
|
|
658
|
+
* the token is dead is what makes "it lapsed" the honest reading; a token the
|
|
659
|
+
* server killed EARLY still reads as a refusal, which is correct, because the
|
|
660
|
+
* server really did decide something.
|
|
661
|
+
*/
|
|
662
|
+
function credentialAlreadyLapsed(input) {
|
|
663
|
+
return input.capabilityExpiresAtMs !== undefined && Date.now() >= input.capabilityExpiresAtMs;
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* `Retry-After`, in ms.
|
|
667
|
+
*
|
|
668
|
+
* Only the delta-seconds form, which is what this route sends. An HTTP-date would
|
|
669
|
+
* read as `NaN` and fall back to the heartbeat's own floor, which is the safe
|
|
670
|
+
* direction: waiting the rate-limit window is never wrong.
|
|
671
|
+
*/
|
|
672
|
+
function retryAfterMs(response) {
|
|
673
|
+
const header = response.headers.get('retry-after');
|
|
674
|
+
const seconds = header ? Number(header) : Number.NaN;
|
|
675
|
+
return Number.isFinite(seconds) && seconds > 0 ? Math.ceil(seconds * 1_000) : undefined;
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Read an `expiresAt` the server stated, or nothing.
|
|
679
|
+
*
|
|
680
|
+
* Epoch ms today; the string forms are tolerated for the same reason
|
|
681
|
+
* `daemon/src/session-token-expiry.ts` tolerates them — a JSON number that has been
|
|
682
|
+
* through a proxy or a serializer is not always still a number. Anything else is
|
|
683
|
+
* `undefined`, which the caller reads as "no schedule", never as "no bound".
|
|
684
|
+
*/
|
|
685
|
+
function coerceExpiresAtMs(value) {
|
|
686
|
+
if (typeof value === 'number' && Number.isFinite(value) && value > 0)
|
|
687
|
+
return value;
|
|
688
|
+
if (typeof value === 'string' && value.length > 0) {
|
|
689
|
+
const numeric = Number(value);
|
|
690
|
+
if (Number.isFinite(numeric) && numeric > 0)
|
|
691
|
+
return numeric;
|
|
692
|
+
const parsed = Date.parse(value);
|
|
693
|
+
if (Number.isFinite(parsed) && parsed > 0)
|
|
694
|
+
return parsed;
|
|
695
|
+
}
|
|
696
|
+
return undefined;
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* Admit the interactive reservation.
|
|
700
|
+
*
|
|
701
|
+
* The body carries WORK and local runtime identity only: userId, sessionId,
|
|
702
|
+
* agentId, workspaceId and processStartId are read from the token by the server,
|
|
703
|
+
* and the run/attempt identity is DERIVED from the session and the process. A
|
|
704
|
+
* caller that could name those could attribute its spend to someone else's run.
|
|
705
|
+
*
|
|
706
|
+
* `localRuntimeId` must carry the `cli_` namespace — `describeLocalRuntimeIdentity`
|
|
707
|
+
* refuses an unprefixed id for kind `cli` — and it is self-asserted on this path
|
|
708
|
+
* by design: there is no server-side registry of CLI installations, locatability
|
|
709
|
+
* is scoped to the authenticated user, and requiring an enrolled daemon record
|
|
710
|
+
* would break the standalone case the feature exists for.
|
|
711
|
+
*/
|
|
712
|
+
async function admitLease(input, fetchImpl,
|
|
713
|
+
// The acquisition-wide deadline, not one of this call's own: a hung control
|
|
714
|
+
// plane must not hold an interactive command open when a perfectly good BYOK
|
|
715
|
+
// path is one line away, and the user was promised one number for the whole
|
|
716
|
+
// handshake rather than one per hop.
|
|
717
|
+
signal) {
|
|
718
|
+
const url = `${input.serverUrl.replace(/\/+$/, '')}` +
|
|
719
|
+
`/api/agentic/sessions/${encodeURIComponent(input.sessionId)}/inference/admit`;
|
|
720
|
+
let response;
|
|
721
|
+
try {
|
|
722
|
+
response = await fetchImpl(url, {
|
|
723
|
+
method: 'POST',
|
|
724
|
+
headers: {
|
|
725
|
+
Accept: 'application/json',
|
|
726
|
+
'Content-Type': 'application/json',
|
|
727
|
+
Authorization: `Bearer ${input.sessionToken}`,
|
|
728
|
+
},
|
|
729
|
+
body: JSON.stringify({
|
|
730
|
+
model: input.model,
|
|
731
|
+
localRuntimeId: input.localRuntimeId,
|
|
732
|
+
machineUuid: input.machineUuid,
|
|
733
|
+
}),
|
|
734
|
+
...(signal ? { signal } : {}),
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
catch (err) {
|
|
738
|
+
throw new ManagedAcquisitionError('admission-unreachable', `could not reach the skrr control plane — ${describe(err)}`);
|
|
739
|
+
}
|
|
740
|
+
if (!response.ok) {
|
|
741
|
+
const refusal = await readRefusal(response);
|
|
742
|
+
throw new ManagedAcquisitionError(refusal.code ?? `admission-http-${response.status}`, refusal.message ?? `the control plane refused admission (HTTP ${response.status})`);
|
|
743
|
+
}
|
|
744
|
+
const payload = (await response.json().catch(() => null));
|
|
745
|
+
const modelScope = payload?.modelScope;
|
|
746
|
+
const model = typeof payload?.model === 'string' ? payload.model.trim() : '';
|
|
747
|
+
// The alias the RELAY resolves authority by, which is also the only handle a
|
|
748
|
+
// compensating release has. Read before the refusals below so a lease that was
|
|
749
|
+
// reserved and is then rejected here can still be handed back.
|
|
750
|
+
const reservedModel = typeof modelScope?.gatewayModelAlias === 'string' ? modelScope.gatewayModelAlias : undefined;
|
|
751
|
+
// Validated rather than trusted: the broker needs an exact immutable lease, and a
|
|
752
|
+
// truncated one would surface later as a rejected turn rather than as a clear
|
|
753
|
+
// refusal here. `isManagedInferenceModelScope` is the package's own predicate,
|
|
754
|
+
// but re-deriving the fields we depend on keeps the error message specific.
|
|
755
|
+
if (!payload?.reservationId || !model || !modelScope || modelScope.version !== 1) {
|
|
756
|
+
throw new ManagedAcquisitionError('admission-incomplete', 'the control plane admitted a session without a usable model lease', reservedModel);
|
|
757
|
+
}
|
|
758
|
+
const leaseExpiresInMs = Number(payload.leaseExpiresInMs);
|
|
759
|
+
// Same refusal as a missing `modelScope`, for the same reason.
|
|
760
|
+
//
|
|
761
|
+
// `startManagedInferenceBroker` arms its renewal heartbeat only when this is a
|
|
762
|
+
// positive number, so a missing, null or non-numeric value produced a broker
|
|
763
|
+
// with NO heartbeat and no `onLeaseRenewalStopped` — the session then died
|
|
764
|
+
// silently at the 120s money clock and every later turn 403'd, with nothing on
|
|
765
|
+
// screen ever naming the cause. A lease with no renewable window is not a
|
|
766
|
+
// usable supervised lease; it is an incomplete admission that happens to have
|
|
767
|
+
// all its other fields.
|
|
768
|
+
if (!Number.isFinite(leaseExpiresInMs) || leaseExpiresInMs <= 0) {
|
|
769
|
+
throw new ManagedAcquisitionError('admission-incomplete', 'the control plane admitted a session with no renewable lease window', reservedModel);
|
|
770
|
+
}
|
|
771
|
+
// The immutable ceiling, stamped to an ABSOLUTE instant here (OSK-3914's rule:
|
|
772
|
+
// a relative duration decays from the moment it arrives, and this one is
|
|
773
|
+
// compared against another clock several statements later). Optional — a
|
|
774
|
+
// pre-OSK-3888 reservation reports none, and a server that predates OSK-3924
|
|
775
|
+
// sends none either, in which case the capability clamp below simply does not
|
|
776
|
+
// run and behaviour is exactly what it was.
|
|
777
|
+
//
|
|
778
|
+
// The wire name and the field name differ ON PURPOSE, and the difference is
|
|
779
|
+
// the conversion: the server sends `maxExpiresInMs` (relative, so its clock is
|
|
780
|
+
// the authority, matching `leaseExpiresInMs`) and this stores `ceilingAtMs`
|
|
781
|
+
// (absolute, so it cannot decay while it waits to be compared). Reading the
|
|
782
|
+
// wire field off a widened type keeps `AdmittedLease` describing what this
|
|
783
|
+
// module HOLDS rather than what the server SAID.
|
|
784
|
+
const maxExpiresInMs = Number(payload.maxExpiresInMs);
|
|
785
|
+
const reportedRenewalWindowMs = Number(payload.renewalWindowMs);
|
|
786
|
+
return {
|
|
787
|
+
reservationId: String(payload.reservationId),
|
|
788
|
+
model,
|
|
789
|
+
modelScope,
|
|
790
|
+
leaseExpiresInMs,
|
|
791
|
+
...(Number.isFinite(maxExpiresInMs) && maxExpiresInMs > 0
|
|
792
|
+
? { ceilingAtMs: Date.now() + maxExpiresInMs }
|
|
793
|
+
: {}),
|
|
794
|
+
...(Number.isFinite(reportedRenewalWindowMs) && reportedRenewalWindowMs > 0
|
|
795
|
+
? { renewalWindowMs: reportedRenewalWindowMs }
|
|
796
|
+
: {}),
|
|
797
|
+
authorizedUsd: Number(payload.authorizedUsd ?? 0),
|
|
798
|
+
};
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
* Read `{error: {code, message}}` without letting a hostile/huge body matter.
|
|
802
|
+
*
|
|
803
|
+
* Plus the one refusal FIELD this module needs beyond the code: `fence.maxExpiresAt`,
|
|
804
|
+
* the lease ceiling the token-renewal fence echoes when it refuses. Read here rather
|
|
805
|
+
* than by a second parse of the same body, since the body can be read only once —
|
|
806
|
+
* and it is the difference between telling a user that their authorized window ended
|
|
807
|
+
* and telling them only that something was refused.
|
|
808
|
+
*/
|
|
809
|
+
async function readRefusal(response) {
|
|
810
|
+
try {
|
|
811
|
+
const raw = (await response.text()).slice(0, 2048);
|
|
812
|
+
const parsed = JSON.parse(raw);
|
|
813
|
+
const code = parsed?.error?.code ?? parsed?.code;
|
|
814
|
+
const message = parsed?.error?.message ?? parsed?.message;
|
|
815
|
+
const ceilingAt = parsed?.fence?.maxExpiresAt;
|
|
816
|
+
return {
|
|
817
|
+
...(typeof code === 'string' && code ? { code } : {}),
|
|
818
|
+
...(typeof message === 'string' && message ? { message } : {}),
|
|
819
|
+
...(typeof ceilingAt === 'string' && ceilingAt ? { ceilingAt } : {}),
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
catch {
|
|
823
|
+
return {};
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* Whether a credential exists on this machine, without a network call.
|
|
828
|
+
*
|
|
829
|
+
* Reads the same two slots the resolver's non-interactive path reads: the auth
|
|
830
|
+
* backend (keychain or `cli-auth.json`, origin-checked) and the env overlay that
|
|
831
|
+
* `OVERSKY_TOKEN` lands in. Deliberately NOT `resolveCredential()`, which may
|
|
832
|
+
* spawn an auth helper or prompt — a precondition check must not have side
|
|
833
|
+
* effects.
|
|
834
|
+
*/
|
|
835
|
+
function hasLocalCredential() {
|
|
836
|
+
try {
|
|
837
|
+
const cfg = (0, config_1.loadConfig)();
|
|
838
|
+
if (cfg.token)
|
|
839
|
+
return true;
|
|
840
|
+
return Boolean((0, auth_storage_1.readFromBackend)(cfg.baseURL).bundle?.token);
|
|
841
|
+
}
|
|
842
|
+
catch {
|
|
843
|
+
return false;
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* This installation's runtime id.
|
|
848
|
+
*
|
|
849
|
+
* Persisted at first login as `cliId`; regenerated deterministically when absent
|
|
850
|
+
* (same hostname+user always yields the same value), matching `daemonBroker.ts`
|
|
851
|
+
* and `refresh.ts`. Normalized to the `cli_` namespace the server requires,
|
|
852
|
+
* because `OVERSKY_CLI_ID` is overlaid verbatim with no format check and a
|
|
853
|
+
* hand-set value would otherwise come back as an opaque
|
|
854
|
+
* `runtime-id-namespace-mismatch`.
|
|
855
|
+
*/
|
|
856
|
+
function localRuntimeId() {
|
|
857
|
+
const configured = (() => {
|
|
858
|
+
try {
|
|
859
|
+
return (0, config_1.loadConfig)().cliId?.trim();
|
|
860
|
+
}
|
|
861
|
+
catch {
|
|
862
|
+
return undefined;
|
|
863
|
+
}
|
|
864
|
+
})();
|
|
865
|
+
if (configured?.startsWith('cli_'))
|
|
866
|
+
return configured;
|
|
867
|
+
return (0, device_id_1.generateCliId)();
|
|
868
|
+
}
|
|
869
|
+
function errorCodeOf(err) {
|
|
870
|
+
const code = err?.code;
|
|
871
|
+
return typeof code === 'string' && code ? code : undefined;
|
|
872
|
+
}
|
|
873
|
+
function describe(err) {
|
|
874
|
+
const text = err instanceof Error ? err.message : String(err);
|
|
875
|
+
return text.trim() || 'unknown error';
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* What is ACTUALLY about to happen instead — which is not always BYOK.
|
|
879
|
+
*
|
|
880
|
+
* Every fallback line used to end in a fixed "Continuing with your own provider
|
|
881
|
+
* credentials", without checking that any existed. On the exact machine this
|
|
882
|
+
* feature targets — `skrr login` done, no provider key exported, no daemon — the
|
|
883
|
+
* user was told the run continues on their own credentials, the engine started
|
|
884
|
+
* with none, and the next thing they saw was a provider auth error that reads
|
|
885
|
+
* like a broken engine rather than like a mode switch. Invariant I4 requires
|
|
886
|
+
* managed, BYOK and offline never be confused, and a sentence that names the
|
|
887
|
+
* wrong one of the three is the confusion, not a mitigation of it.
|
|
888
|
+
*
|
|
889
|
+
* The predicate is `hasProviderCredential`, the same one that decides what the
|
|
890
|
+
* engine actually inherits (`sky-code.ts`), so the sentence and the spawn cannot
|
|
891
|
+
* disagree.
|
|
892
|
+
*/
|
|
893
|
+
function fallbackTail(env) {
|
|
894
|
+
if ((0, sky_code_1.hasProviderCredential)(env))
|
|
895
|
+
return 'Continuing with your own provider credentials.';
|
|
896
|
+
return ('No provider credential is set here either, so the engine will start without one and ' +
|
|
897
|
+
'its first request will fail — set OPENROUTER_API_KEY, or resolve the reason above ' +
|
|
898
|
+
'(`skrr code doctor`).');
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
901
|
+
* Build the three `execEngine` hooks for one `skrr code` invocation.
|
|
902
|
+
*
|
|
903
|
+
* The whole managed path is expressed as hooks rather than as work done before
|
|
904
|
+
* `execEngine` because of an ordering that matters: `execEngine` resolves the
|
|
905
|
+
* engine binary FIRST and refuses a missing one before `prepare` runs. Acquiring
|
|
906
|
+
* earlier would mint a lease and open a socket for an engine that never starts.
|
|
907
|
+
*
|
|
908
|
+
* `prepare` cannot throw. `execEngine` awaits it OUTSIDE its try/finally, so a
|
|
909
|
+
* throw here would abort the run and skip `cleanup` — turning "we could not get
|
|
910
|
+
* you a managed session" into the hard failure invariant I4 forbids. Every
|
|
911
|
+
* failure is therefore caught, said once, and answered with `{}` (BYOK).
|
|
912
|
+
*/
|
|
913
|
+
function createManagedEngineHooks(input) {
|
|
914
|
+
const env = input.env ?? process.env;
|
|
915
|
+
const log = input.log ?? ((line) => process.stderr.write(`${line}\n`));
|
|
916
|
+
const acquire = input.acquire ?? acquireManagedSession;
|
|
917
|
+
const requestedModel = (0, sky_code_managed_1.namedEngineModel)(input.passthrough);
|
|
918
|
+
let handle = null;
|
|
919
|
+
/**
|
|
920
|
+
* Set the instant teardown begins, so a renewal refusal our OWN release caused
|
|
921
|
+
* is not reported to the user as a decision about their account (OSK-3961).
|
|
922
|
+
*/
|
|
923
|
+
let tearingDown = false;
|
|
924
|
+
return {
|
|
925
|
+
session: () => handle,
|
|
926
|
+
// A live handle means a broker is running and the engine's base URLs point at
|
|
927
|
+
// it, which is exactly when re-admitting an ambient provider key would let the
|
|
928
|
+
// engine bypass the relay (or 401 preferring a stale `x-api-key`). No handle
|
|
929
|
+
// means acquisition was skipped or failed, the run genuinely IS BYOK, and the
|
|
930
|
+
// user was told so.
|
|
931
|
+
credentialMode: () => (handle ? 'managed' : 'byok'),
|
|
932
|
+
prepare: async () => {
|
|
933
|
+
const skip = (0, sky_code_managed_1.managedSkipReason)(env);
|
|
934
|
+
if (skip) {
|
|
935
|
+
if (skip.announce)
|
|
936
|
+
log(`Managed inference not used: ${skip.detail}. ${fallbackTail(env)}`);
|
|
937
|
+
return {};
|
|
938
|
+
}
|
|
939
|
+
try {
|
|
940
|
+
handle = await acquire({
|
|
941
|
+
...(input.agentRef ? { agentRef: input.agentRef } : {}),
|
|
942
|
+
...(requestedModel ? { model: requestedModel } : {}),
|
|
943
|
+
env,
|
|
944
|
+
// The acquisition's own best-effort teardown line (a lease it could not
|
|
945
|
+
// hand back) goes to the same place as the fallback line.
|
|
946
|
+
log,
|
|
947
|
+
onLeaseRenewalStopped: (reason, detail) => {
|
|
948
|
+
// Said as it happens rather than at the end: once renewal stops the
|
|
949
|
+
// relay will refuse the next turn, and a user staring at a hung TUI
|
|
950
|
+
// deserves the reason — and WHICH reason, because "your authorized time
|
|
951
|
+
// is up" and "the server refused" call for different next moves.
|
|
952
|
+
// Silent once teardown has begun (OSK-3961).
|
|
953
|
+
//
|
|
954
|
+
// Observed on ~50% of clean exits against deployed dev:
|
|
955
|
+
// "Managed inference renewal was refused (denied: lease-revoked)."
|
|
956
|
+
// `denied` is the arm that means a decision was made about YOUR
|
|
957
|
+
// ACCOUNT, so it is the worst available sentence for a session that
|
|
958
|
+
// worked and is shutting down normally.
|
|
959
|
+
//
|
|
960
|
+
// The loop is stopped before the release and `finish()` latches, so a
|
|
961
|
+
// refusal cannot arrive after `stop()` RESOLVES — which means this is
|
|
962
|
+
// a renewal already on the wire when teardown began, racing the
|
|
963
|
+
// revoke that teardown itself performs. That race is inherent: the
|
|
964
|
+
// request left before we decided to stop, and the release must revoke.
|
|
965
|
+
//
|
|
966
|
+
// Gated on the TIME OF TEARDOWN rather than on the reason, because
|
|
967
|
+
// any refusal caused by our own shutdown tells the user nothing they
|
|
968
|
+
// can act on — while a refusal arriving mid-session is real and must
|
|
969
|
+
// still speak.
|
|
970
|
+
if (tearingDown)
|
|
971
|
+
return;
|
|
972
|
+
const line = managedRenewalStoppedLine(reason, detail);
|
|
973
|
+
if (line)
|
|
974
|
+
log(line);
|
|
975
|
+
},
|
|
976
|
+
});
|
|
977
|
+
return handle.env;
|
|
978
|
+
}
|
|
979
|
+
catch (err) {
|
|
980
|
+
log(managedFallbackLine(err, env));
|
|
981
|
+
return {};
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
finalizeArgs: (args) =>
|
|
985
|
+
// Only when WE resolved the model. A user-named model is already in the argv.
|
|
986
|
+
(0, sky_code_managed_1.withManagedModel)(input.subcommand, args, handle && !requestedModel ? (handle.clientModelId ?? handle.model) : undefined),
|
|
987
|
+
cleanup: async (outcome) => {
|
|
988
|
+
const live = handle;
|
|
989
|
+
handle = null;
|
|
990
|
+
if (!live)
|
|
991
|
+
return;
|
|
992
|
+
tearingDown = true;
|
|
993
|
+
try {
|
|
994
|
+
// A Ctrl-C reaches this same path: `stdio: 'inherit'` puts the engine in
|
|
995
|
+
// this process group, the CLI's own handler kills it, and `execEngine`'s
|
|
996
|
+
// `finally` still runs — so the only thing missing was telling the server
|
|
997
|
+
// WHICH of the two endings this was.
|
|
998
|
+
await live.stop(outcome?.interrupted ? 'cli_session_interrupted' : 'cli_session_ended');
|
|
999
|
+
}
|
|
1000
|
+
catch (err) {
|
|
1001
|
+
// `cleanup` runs in `execEngine`'s `finally`, so throwing here would
|
|
1002
|
+
// replace the engine's own exit reason with a teardown error.
|
|
1003
|
+
log(`Managed inference broker did not shut down cleanly: ${describe(err)}`);
|
|
1004
|
+
}
|
|
1005
|
+
},
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* What a stopped renewal heartbeat tells the user — or, once, nothing.
|
|
1010
|
+
*
|
|
1011
|
+
* Five events used to print one sentence with the reason word interpolated into
|
|
1012
|
+
* it, which made the ones that matter indistinguishable in the only way a user
|
|
1013
|
+
* reads them:
|
|
1014
|
+
*
|
|
1015
|
+
* `ceiling` the session spent the whole window its policy authorized. Not a
|
|
1016
|
+
* failure, not something to retry, and the only one with a useful
|
|
1017
|
+
* next step. On the shipped profile this is the ORDINARY ending of
|
|
1018
|
+
* a long supervised session, which is why it must not read like a
|
|
1019
|
+
* fault.
|
|
1020
|
+
* `expired` OUR credential lapsed while this process was not running — a
|
|
1021
|
+
* laptop suspend, almost always. The server refused nothing,
|
|
1022
|
+
* because it was never really asked.
|
|
1023
|
+
* `denied` the server evaluated this session and refused it — a revoked
|
|
1024
|
+
* lease, an exhausted budget, a scope that no longer holds.
|
|
1025
|
+
* `unavailable` we could not reach the control plane. Nothing was decided.
|
|
1026
|
+
* `stopped` WE stopped it, on the way out. Nothing happened TO the session,
|
|
1027
|
+
* so saying "this session will lose access shortly" while the user
|
|
1028
|
+
* is already at their shell is noise that trains them to ignore
|
|
1029
|
+
* the other four.
|
|
1030
|
+
*
|
|
1031
|
+
* Returns null when there is nothing worth saying.
|
|
1032
|
+
*/
|
|
1033
|
+
function managedRenewalStoppedLine(reason, detail) {
|
|
1034
|
+
const because = detail ? `: ${detail}` : '';
|
|
1035
|
+
switch (reason) {
|
|
1036
|
+
case 'stopped':
|
|
1037
|
+
return null;
|
|
1038
|
+
case 'ceiling':
|
|
1039
|
+
// The detail is a parenthetical rather than the `(reason: detail)` shape the
|
|
1040
|
+
// others use, because "ceiling" is already the subject of the sentence and
|
|
1041
|
+
// the useful detail here is WHEN the window ended, not which rule fired.
|
|
1042
|
+
return ('Managed inference reached the limit this session was authorized for' +
|
|
1043
|
+
`${detail ? ` (${detail})` : ''}. ` +
|
|
1044
|
+
'It cannot be extended further — start a new `skrr code` session to continue.');
|
|
1045
|
+
case 'expired':
|
|
1046
|
+
// Deliberately names the cause rather than only the fact. A user who was
|
|
1047
|
+
// told "renewal was refused" goes looking for a policy or budget problem;
|
|
1048
|
+
// the actual event is that their machine slept through the refresh window,
|
|
1049
|
+
// and the fix is the same one-liner as the ceiling's.
|
|
1050
|
+
return ('Managed inference lost its session credential before it could be refreshed' +
|
|
1051
|
+
`${detail ? ` (${detail})` : ''} — this usually means the machine slept. ` +
|
|
1052
|
+
'Start a new `skrr code` session to continue.');
|
|
1053
|
+
case 'exhausted': {
|
|
1054
|
+
// OSK-3932 — the money, which until now could only reach the user as
|
|
1055
|
+
// `denied` ("something is wrong with your access") or, worse, as nothing at
|
|
1056
|
+
// all while the badge went on reporting a healthy lease.
|
|
1057
|
+
//
|
|
1058
|
+
// TWO sentences, because the two exhaustions have genuinely different
|
|
1059
|
+
// remedies and telling a human to wait for a reset that will not restore
|
|
1060
|
+
// their session is worse than saying nothing about time.
|
|
1061
|
+
//
|
|
1062
|
+
// The detail carries the reset INSTANT when the server sent one and the
|
|
1063
|
+
// refusal code when it did not, so a parseable date is exactly the signal
|
|
1064
|
+
// that waiting helps. Sniffed rather than flagged because `onStop` carries
|
|
1065
|
+
// one string; a code never parses as a date, so the test is total.
|
|
1066
|
+
const resetAt = detail && Number.isFinite(Date.parse(detail)) ? detail : null;
|
|
1067
|
+
if (resetAt) {
|
|
1068
|
+
return (`Managed inference stopped: your account's budget for the current window is spent (resets ${resetAt}). ` +
|
|
1069
|
+
'This session will lose access to the model shortly. Wait for the reset, ' +
|
|
1070
|
+
'or export OPENROUTER_API_KEY to continue on your own key.');
|
|
1071
|
+
}
|
|
1072
|
+
return ('Managed inference stopped: this session spent the budget it was authorized. ' +
|
|
1073
|
+
'Waiting will not restore it — start a new `skrr code` session to continue, ' +
|
|
1074
|
+
'or export OPENROUTER_API_KEY to continue on your own key.');
|
|
1075
|
+
}
|
|
1076
|
+
case 'denied':
|
|
1077
|
+
// Names what to do next, like `ceiling` and `expired` already do.
|
|
1078
|
+
//
|
|
1079
|
+
// §9 of the architecture record promised this arm would name
|
|
1080
|
+
// `oversky byok set <provider>` — "never a silent stall, and never a silent
|
|
1081
|
+
// mode switch". It never shipped, and naming that command would have been
|
|
1082
|
+
// WRONG ADVICE anyway: its credential is deliberately non-injectable into a
|
|
1083
|
+
// standalone engine (`provider-credentials.ts`), and `hasProviderCredential`
|
|
1084
|
+
// reads the environment only. So the doc was the stale artifact, not the
|
|
1085
|
+
// code, and §9 has been amended to match what actually works (OSK-3942).
|
|
1086
|
+
//
|
|
1087
|
+
// A refusal is about the ACCOUNT, so unlike the ceiling a new session may
|
|
1088
|
+
// hit the same answer — saying so is the difference between a remedy and a
|
|
1089
|
+
// loop.
|
|
1090
|
+
return (`Managed inference renewal was refused (${reason}${because}). ` +
|
|
1091
|
+
'This session will lose access to the model shortly. This is an answer about ' +
|
|
1092
|
+
'your account rather than the clock, so a new session may get it again — run ' +
|
|
1093
|
+
'`skrr code doctor`, or export OPENROUTER_API_KEY to continue on your own key.');
|
|
1094
|
+
default:
|
|
1095
|
+
// `unavailable`, and any reason a future package version adds: the cautious
|
|
1096
|
+
// sentence is the right default for something this CLI does not recognise.
|
|
1097
|
+
//
|
|
1098
|
+
// Distinct from `denied` on purpose: this one is usually the network or the
|
|
1099
|
+
// service, so retrying is reasonable and a BYOK key is the fallback rather
|
|
1100
|
+
// than the fix.
|
|
1101
|
+
return (`Managed inference could not renew its lease (${reason}${because}). ` +
|
|
1102
|
+
'This session will lose access to the model shortly. If it does not recover, ' +
|
|
1103
|
+
'start a new `skrr code` session, or export OPENROUTER_API_KEY to continue on ' +
|
|
1104
|
+
'your own key.');
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* The ONE line a failed acquisition prints.
|
|
1109
|
+
*
|
|
1110
|
+
* Names the machine-readable code as well as the sentence: the codes are the
|
|
1111
|
+
* server's typed refusals (`model-denied`, `budget-exhausted`, `policy-unavailable`
|
|
1112
|
+
* …) and "which of those happened" is the first thing support asks. Ends by saying
|
|
1113
|
+
* what is about to happen instead, because a user who does not know they switched
|
|
1114
|
+
* to their own key is the failure mode I4 exists to prevent — and by reading the
|
|
1115
|
+
* environment for whether "your own key" is a thing that exists here, because
|
|
1116
|
+
* naming the wrong one of managed / BYOK / offline is the same failure.
|
|
1117
|
+
*/
|
|
1118
|
+
/**
|
|
1119
|
+
* Refusals that are a DECISION about the account, not the service being down.
|
|
1120
|
+
*
|
|
1121
|
+
* The server answers these with 402 and a sentence that already says what is
|
|
1122
|
+
* wrong and what to do — 1408f64ab4 changed them from `503
|
|
1123
|
+
* admission-unavailable` precisely so a short account would stop reading as an
|
|
1124
|
+
* outage. Prefixing "Managed inference unavailable" put the outage back on:
|
|
1125
|
+
* the reader was told the platform was broken and, underneath, that their
|
|
1126
|
+
* balance was empty, and the first sentence is the one people act on.
|
|
1127
|
+
*
|
|
1128
|
+
* Everything else keeps the cautious wording, which is right for something this
|
|
1129
|
+
* CLI does not recognise.
|
|
1130
|
+
*
|
|
1131
|
+
* `budget-exhausted` is deliberately NOT here. It reports a lease's budget or
|
|
1132
|
+
* concurrency slot being held — including the case where a user who quit and
|
|
1133
|
+
* restarted inside the release window is refused on a lease they just gave back
|
|
1134
|
+
* — so it is transient in a way a balance is not, and retrying really can be
|
|
1135
|
+
* the answer. Widening this set to a code whose semantics are inferred rather
|
|
1136
|
+
* than read is how honest copy drifts back into vague copy.
|
|
1137
|
+
*/
|
|
1138
|
+
const ACCOUNT_DECISION_CODES = new Set(['balance-exhausted', 'billing-account-missing']);
|
|
1139
|
+
function managedFallbackLine(err, env = process.env) {
|
|
1140
|
+
const code = errorCodeOf(err);
|
|
1141
|
+
if (code && ACCOUNT_DECISION_CODES.has(code)) {
|
|
1142
|
+
// No "unavailable": nothing is down. The server's sentence names the pot
|
|
1143
|
+
// and the remedy, so it leads.
|
|
1144
|
+
return `Managed inference was refused (${code}): ${describe(err)}. ${fallbackTail(env)}`;
|
|
1145
|
+
}
|
|
1146
|
+
return (`Managed inference unavailable${code ? ` (${code})` : ''}: ${describe(err)}. ` +
|
|
1147
|
+
fallbackTail(env));
|
|
1148
|
+
}
|