@skrr-ai/cli 0.1.115 → 0.1.116
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/dist/base-command.js +23 -10
- package/dist/commands/actions/browse.d.ts +6 -6
- package/dist/commands/actions/create.d.ts +12 -12
- package/dist/commands/actions/delete.d.ts +3 -3
- package/dist/commands/actions/install.d.ts +3 -3
- package/dist/commands/actions/list.d.ts +6 -6
- package/dist/commands/actions/publish.d.ts +4 -4
- package/dist/commands/actions/rate.d.ts +3 -3
- package/dist/commands/actions/show.d.ts +2 -2
- package/dist/commands/actions/update.d.ts +11 -11
- package/dist/commands/agenda/plan.d.ts +4 -4
- package/dist/commands/agenda/trigger/create.d.ts +10 -10
- package/dist/commands/agenda/trigger/delete.d.ts +4 -4
- package/dist/commands/agenda/trigger/fire.d.ts +3 -3
- package/dist/commands/agenda/trigger/list.d.ts +3 -3
- package/dist/commands/agent/call/cancel.d.ts +2 -2
- package/dist/commands/agent/call/request.d.ts +6 -6
- package/dist/commands/agent/call/show.d.ts +2 -2
- package/dist/commands/agent/message/context.d.ts +4 -4
- package/dist/commands/agent/message/context.js +21 -1
- package/dist/commands/agent/message/send.d.ts +26 -26
- package/dist/commands/agent/phone-call/request.d.ts +5 -5
- package/dist/commands/agent-groups/add.d.ts +3 -3
- package/dist/commands/agent-groups/create.d.ts +6 -6
- package/dist/commands/agent-groups/delete.d.ts +2 -2
- package/dist/commands/agent-groups/list.d.ts +1 -1
- package/dist/commands/agent-groups/remove.d.ts +3 -3
- package/dist/commands/agent-groups/show.d.ts +2 -2
- package/dist/commands/agent-groups/update.d.ts +7 -7
- package/dist/commands/agent-shares/accept.d.ts +2 -2
- package/dist/commands/agent-shares/create.d.ts +5 -5
- package/dist/commands/agent-shares/decline.d.ts +3 -3
- package/dist/commands/agent-shares/leave.d.ts +2 -2
- package/dist/commands/agent-shares/list-for.d.ts +2 -2
- package/dist/commands/agent-shares/received.d.ts +5 -5
- package/dist/commands/agent-shares/revoke.d.ts +2 -2
- package/dist/commands/agent-shares/sent.d.ts +4 -4
- package/dist/commands/agent-shares/with.d.ts +2 -2
- package/dist/commands/agent-worker.d.ts +2 -2
- package/dist/commands/agents/actions/create.d.ts +18 -18
- package/dist/commands/agents/actions/delete.d.ts +4 -4
- package/dist/commands/agents/actions/list.d.ts +2 -2
- package/dist/commands/agents/actions/run.d.ts +5 -5
- package/dist/commands/agents/actions/schedule.d.ts +19 -19
- package/dist/commands/agents/actions/show.d.ts +3 -3
- package/dist/commands/agents/actions/targets.d.ts +4 -4
- package/dist/commands/agents/actions/update.d.ts +17 -17
- package/dist/commands/agents/activity.d.ts +5 -5
- package/dist/commands/agents/always-on/disable.d.ts +3 -3
- package/dist/commands/agents/always-on/enable.d.ts +3 -3
- package/dist/commands/agents/always-on/reconcile.d.ts +2 -2
- package/dist/commands/agents/always-on/status.d.ts +2 -2
- package/dist/commands/agents/api-actions/add.d.ts +15 -15
- package/dist/commands/agents/api-actions/index.d.ts +2 -2
- package/dist/commands/agents/api-actions/remove.d.ts +3 -3
- package/dist/commands/agents/attach-harness.d.ts +8 -8
- package/dist/commands/agents/avatar/default/apply.d.ts +3 -3
- package/dist/commands/agents/avatar/default/index.d.ts +1 -1
- package/dist/commands/agents/avatar/default/set.d.ts +6 -6
- package/dist/commands/agents/avatar/generate.d.ts +3 -3
- package/dist/commands/agents/avatar/library/delete.d.ts +2 -2
- package/dist/commands/agents/avatar/library/index.d.ts +1 -1
- package/dist/commands/agents/avatar/presets.d.ts +2 -2
- package/dist/commands/agents/avatar/upload.d.ts +3 -3
- package/dist/commands/agents/badge.d.ts +4 -4
- package/dist/commands/agents/categories/create.d.ts +5 -5
- package/dist/commands/agents/categories/delete.d.ts +2 -2
- package/dist/commands/agents/categories/index.d.ts +4 -4
- package/dist/commands/agents/categories/update.d.ts +6 -6
- package/dist/commands/agents/channels/connect.d.ts +3 -3
- package/dist/commands/agents/channels/delete.d.ts +4 -4
- package/dist/commands/agents/channels/disconnect.d.ts +3 -3
- package/dist/commands/agents/channels/show.d.ts +3 -3
- package/dist/commands/agents/channels/test.d.ts +4 -4
- package/dist/commands/agents/channels/update.d.ts +4 -4
- package/dist/commands/agents/chat.d.ts +15 -15
- package/dist/commands/agents/chat.js +1 -0
- package/dist/commands/agents/create.d.ts +45 -45
- package/dist/commands/agents/delete.d.ts +2 -2
- package/dist/commands/agents/duplicate.d.ts +2 -2
- package/dist/commands/agents/egress.d.ts +8 -8
- package/dist/commands/agents/embed.d.ts +2 -2
- package/dist/commands/agents/endpoint/connect.d.ts +6 -6
- package/dist/commands/agents/endpoint/disable.d.ts +2 -2
- package/dist/commands/agents/endpoint/enable.d.ts +2 -2
- package/dist/commands/agents/endpoint/show.d.ts +2 -2
- package/dist/commands/agents/ensure-default.d.ts +2 -2
- package/dist/commands/agents/eval/index.d.ts +8 -8
- package/dist/commands/agents/eval/list.d.ts +3 -3
- package/dist/commands/agents/eval/show.d.ts +3 -3
- package/dist/commands/agents/files/delete.d.ts +4 -4
- package/dist/commands/agents/files/list.d.ts +2 -2
- package/dist/commands/agents/files/move.d.ts +4 -4
- package/dist/commands/agents/files/rename.d.ts +4 -4
- package/dist/commands/agents/files/upload.d.ts +4 -4
- package/dist/commands/agents/folders/create.d.ts +4 -4
- package/dist/commands/agents/folders/delete.d.ts +4 -4
- package/dist/commands/agents/folders/list.d.ts +2 -2
- package/dist/commands/agents/folders/show.d.ts +3 -3
- package/dist/commands/agents/folders/update.d.ts +5 -5
- package/dist/commands/agents/goals/assign.d.ts +3 -3
- package/dist/commands/agents/goals/list.d.ts +2 -2
- package/dist/commands/agents/goals/unassign.d.ts +3 -3
- package/dist/commands/agents/identity.d.ts +2 -2
- package/dist/commands/agents/import.d.ts +4 -4
- package/dist/commands/agents/instructions/add.d.ts +11 -11
- package/dist/commands/agents/instructions/disable.d.ts +3 -3
- package/dist/commands/agents/instructions/edit.d.ts +6 -6
- package/dist/commands/agents/instructions/enable.d.ts +3 -3
- package/dist/commands/agents/instructions/move.d.ts +5 -5
- package/dist/commands/agents/instructions/preview.d.ts +3 -3
- package/dist/commands/agents/instructions/remove.d.ts +3 -3
- package/dist/commands/agents/instructions/set.d.ts +6 -6
- package/dist/commands/agents/instructions/show.d.ts +4 -4
- package/dist/commands/agents/instructions/upgrade.d.ts +5 -5
- package/dist/commands/agents/intuitions/accept.d.ts +4 -4
- package/dist/commands/agents/intuitions/dismiss.d.ts +4 -4
- package/dist/commands/agents/intuitions/generate.d.ts +3 -3
- package/dist/commands/agents/intuitions/list.d.ts +2 -2
- package/dist/commands/agents/intuitions/stats.d.ts +2 -2
- package/dist/commands/agents/list.d.ts +10 -10
- package/dist/commands/agents/mailbox/messages.d.ts +4 -4
- package/dist/commands/agents/mailbox/show.d.ts +2 -2
- package/dist/commands/agents/manager/ensure.d.ts +1 -1
- package/dist/commands/agents/mute.d.ts +2 -2
- package/dist/commands/agents/notepad/delete.d.ts +3 -3
- package/dist/commands/agents/notepad/show.d.ts +2 -2
- package/dist/commands/agents/notepad/update.d.ts +4 -4
- package/dist/commands/agents/operating-plan.d.ts +2 -2
- package/dist/commands/agents/overview.d.ts +3 -3
- package/dist/commands/agents/pin.d.ts +2 -2
- package/dist/commands/agents/plan-day.d.ts +9 -9
- package/dist/commands/agents/preferences/show.d.ts +2 -2
- package/dist/commands/agents/preferences/update.d.ts +5 -5
- package/dist/commands/agents/pull.d.ts +3 -3
- package/dist/commands/agents/push.d.ts +3 -3
- package/dist/commands/agents/query.d.ts +4 -4
- package/dist/commands/agents/reflect.d.ts +7 -7
- package/dist/commands/agents/releases/ci-publish.d.ts +10 -10
- package/dist/commands/agents/releases/create.d.ts +8 -8
- package/dist/commands/agents/releases/delist.d.ts +5 -5
- package/dist/commands/agents/releases/known-issues/add.d.ts +5 -5
- package/dist/commands/agents/releases/known-issues/list.d.ts +3 -3
- package/dist/commands/agents/releases/known-issues/update.d.ts +7 -7
- package/dist/commands/agents/releases/list.d.ts +2 -2
- package/dist/commands/agents/releases/restore.d.ts +3 -3
- package/dist/commands/agents/releases/rollback.d.ts +3 -3
- package/dist/commands/agents/releases/test-install.d.ts +6 -6
- package/dist/commands/agents/releases/trusted-publishers/list.d.ts +2 -2
- package/dist/commands/agents/releases/trusted-publishers/remove.d.ts +3 -3
- package/dist/commands/agents/releases/trusted-publishers/set.d.ts +7 -7
- package/dist/commands/agents/revert.d.ts +3 -3
- package/dist/commands/agents/roles/capture.d.ts +7 -7
- package/dist/commands/agents/roles/example.d.ts +2 -2
- package/dist/commands/agents/roles/export.d.ts +5 -5
- package/dist/commands/agents/roles/install.d.ts +4 -4
- package/dist/commands/agents/roles/list.d.ts +2 -2
- package/dist/commands/agents/roles/preview.d.ts +7 -7
- package/dist/commands/agents/roles/withdraw.d.ts +4 -4
- package/dist/commands/agents/scene-background/upload.d.ts +4 -4
- package/dist/commands/agents/schedule-overview.d.ts +6 -6
- package/dist/commands/agents/schedule-trace.d.ts +7 -7
- package/dist/commands/agents/schedule.d.ts +15 -15
- package/dist/commands/agents/share.d.ts +4 -4
- package/dist/commands/agents/show.d.ts +3 -3
- package/dist/commands/agents/skills/add.d.ts +4 -4
- package/dist/commands/agents/skills/list.d.ts +3 -3
- package/dist/commands/agents/skills/remove.d.ts +4 -4
- package/dist/commands/agents/spaces.d.ts +3 -3
- package/dist/commands/agents/spawn.d.ts +12 -12
- package/dist/commands/agents/todos/cancel.d.ts +3 -3
- package/dist/commands/agents/todos/create.d.ts +7 -7
- package/dist/commands/agents/todos/list.d.ts +3 -3
- package/dist/commands/agents/tone/clear.d.ts +3 -3
- package/dist/commands/agents/tone/inherit.d.ts +2 -2
- package/dist/commands/agents/tone/set.d.ts +4 -4
- package/dist/commands/agents/tone/show.d.ts +4 -4
- package/dist/commands/agents/tools/auth.d.ts +2 -2
- package/dist/commands/agents/tools/calls.d.ts +2 -2
- package/dist/commands/agents/tools/index.d.ts +2 -2
- package/dist/commands/agents/transfer-workspace.d.ts +3 -3
- package/dist/commands/agents/triggers/create.d.ts +65 -65
- package/dist/commands/agents/triggers/delete.d.ts +4 -4
- package/dist/commands/agents/triggers/disable.d.ts +3 -3
- package/dist/commands/agents/triggers/enable.d.ts +3 -3
- package/dist/commands/agents/triggers/fire.d.ts +4 -4
- package/dist/commands/agents/triggers/list.d.ts +6 -6
- package/dist/commands/agents/triggers/policy.d.ts +11 -11
- package/dist/commands/agents/triggers/replay.d.ts +5 -5
- package/dist/commands/agents/triggers/runs.d.ts +6 -6
- package/dist/commands/agents/triggers/show.d.ts +3 -3
- package/dist/commands/agents/triggers/update.d.ts +64 -64
- package/dist/commands/agents/unmute.d.ts +2 -2
- package/dist/commands/agents/unpin.d.ts +2 -2
- package/dist/commands/agents/upcoming.d.ts +8 -8
- package/dist/commands/agents/update.d.ts +46 -46
- package/dist/commands/agents/usage-cap.d.ts +7 -7
- package/dist/commands/agents/validate.d.ts +2 -2
- package/dist/commands/agents/vanity.d.ts +3 -3
- package/dist/commands/agents/versions.d.ts +2 -2
- package/dist/commands/agents/visibility.d.ts +17 -17
- package/dist/commands/api-keys/create.d.ts +7 -7
- package/dist/commands/api-keys/list.d.ts +2 -2
- package/dist/commands/api-keys/revoke.d.ts +3 -3
- package/dist/commands/api-keys/rotate.d.ts +3 -3
- package/dist/commands/apps/channel.d.ts +4 -4
- package/dist/commands/apps/check-draft.d.ts +2 -2
- package/dist/commands/apps/check.d.ts +5 -5
- package/dist/commands/apps/create.d.ts +5 -5
- package/dist/commands/apps/data/put.d.ts +8 -8
- package/dist/commands/apps/data/query.d.ts +10 -10
- package/dist/commands/apps/disclosure.d.ts +6 -6
- package/dist/commands/apps/file/cat.d.ts +5 -5
- package/dist/commands/apps/file/ls.d.ts +3 -3
- package/dist/commands/apps/file/mv.d.ts +5 -5
- package/dist/commands/apps/file/rm.d.ts +5 -5
- package/dist/commands/apps/file/write.d.ts +7 -7
- package/dist/commands/apps/install.d.ts +9 -9
- package/dist/commands/apps/installations/list.d.ts +3 -3
- package/dist/commands/apps/installations/show.d.ts +2 -2
- package/dist/commands/apps/layout/set.d.ts +3 -3
- package/dist/commands/apps/layout/show.d.ts +1 -1
- package/dist/commands/apps/list.d.ts +2 -2
- package/dist/commands/apps/logs.d.ts +3 -3
- package/dist/commands/apps/preview.d.ts +2 -2
- package/dist/commands/apps/publish/propose.d.ts +4 -4
- package/dist/commands/apps/pull.d.ts +4 -4
- package/dist/commands/apps/push.d.ts +5 -5
- package/dist/commands/apps/reconsent.d.ts +3 -3
- package/dist/commands/apps/report.d.ts +5 -5
- package/dist/commands/apps/resume.d.ts +2 -2
- package/dist/commands/apps/settings/set.d.ts +4 -4
- package/dist/commands/apps/settings/show.d.ts +2 -2
- package/dist/commands/apps/show.d.ts +2 -2
- package/dist/commands/apps/suspend.d.ts +2 -2
- package/dist/commands/apps/uninstall.d.ts +3 -3
- package/dist/commands/apps/upgrade.d.ts +4 -4
- package/dist/commands/apps/version/create.d.ts +4 -4
- package/dist/commands/apps/version/show.d.ts +2 -2
- package/dist/commands/apps/versions.d.ts +2 -2
- package/dist/commands/apps/webhooks/list.d.ts +2 -2
- package/dist/commands/balance/history.d.ts +3 -3
- package/dist/commands/balance/overage.d.ts +2 -2
- package/dist/commands/balance/plan.d.ts +1 -1
- package/dist/commands/balance/show.d.ts +1 -1
- package/dist/commands/balance/statement.d.ts +5 -5
- package/dist/commands/balance/usage/breakdown.d.ts +4 -4
- package/dist/commands/balance/usage/events.d.ts +5 -5
- package/dist/commands/balance/usage.d.ts +1 -1
- package/dist/commands/browser/cloud-agents.d.ts +2 -2
- package/dist/commands/browser/doctor.d.ts +1 -1
- package/dist/commands/browser/install.d.ts +4 -4
- package/dist/commands/browser/skill/show.d.ts +1 -1
- package/dist/commands/browser/status.d.ts +1 -1
- package/dist/commands/browser/uninstall.d.ts +4 -4
- package/dist/commands/characters/list.d.ts +3 -3
- package/dist/commands/chats/agents/add.d.ts +3 -3
- package/dist/commands/chats/agents/remove.d.ts +3 -3
- package/dist/commands/chats/create.d.ts +4 -4
- package/dist/commands/chats/delete.d.ts +2 -2
- package/dist/commands/chats/files/delete.d.ts +3 -3
- package/dist/commands/chats/files/list.d.ts +2 -2
- package/dist/commands/chats/files/move.d.ts +4 -4
- package/dist/commands/chats/files/rename.d.ts +4 -4
- package/dist/commands/chats/folders/create.d.ts +3 -3
- package/dist/commands/chats/folders/delete.d.ts +3 -3
- package/dist/commands/chats/folders/list.d.ts +2 -2
- package/dist/commands/chats/folders/update.d.ts +4 -4
- package/dist/commands/chats/join.d.ts +2 -2
- package/dist/commands/chats/list.d.ts +5 -5
- package/dist/commands/chats/messages.d.ts +5 -5
- package/dist/commands/chats/preferences/show.d.ts +1 -1
- package/dist/commands/chats/preferences/update.d.ts +3 -3
- package/dist/commands/chats/send.d.ts +9 -9
- package/dist/commands/chats/show.d.ts +2 -2
- package/dist/commands/chats/spaces/create.d.ts +4 -4
- package/dist/commands/chats/spaces/link.d.ts +3 -3
- package/dist/commands/chats/spaces/list.d.ts +2 -2
- package/dist/commands/chats/spaces/unlink.d.ts +3 -3
- package/dist/commands/chats/triggers/set.d.ts +22 -22
- package/dist/commands/chats/triggers/show.d.ts +2 -2
- package/dist/commands/chats/update.d.ts +5 -5
- package/dist/commands/chats/widgets/create.d.ts +5 -5
- package/dist/commands/chats/widgets/delete.d.ts +3 -3
- package/dist/commands/chats/widgets/list.d.ts +2 -2
- package/dist/commands/chats/widgets/update.d.ts +6 -6
- package/dist/commands/code/doctor.d.ts +2 -2
- package/dist/commands/code/handover.d.ts +9 -9
- package/dist/commands/code/install.d.ts +5 -5
- package/dist/commands/code/install.js +2 -34
- package/dist/commands/code/jobs/approve.d.ts +2 -2
- package/dist/commands/code/jobs/cancel.d.ts +2 -2
- package/dist/commands/code/jobs/list.d.ts +4 -4
- package/dist/commands/code/jobs/run.d.ts +9 -9
- package/dist/commands/code/jobs/show.d.ts +2 -2
- package/dist/commands/code/migrate.d.ts +4 -4
- package/dist/commands/code/rollback.d.ts +1 -1
- package/dist/commands/code/skrr-agent.d.ts +5 -5
- package/dist/commands/code/update.d.ts +8 -8
- package/dist/commands/code/update.js +2 -34
- package/dist/commands/commands.d.ts +6 -6
- package/dist/commands/commands.js +2 -1
- package/dist/commands/commerce/entitlements/explain.d.ts +2 -2
- package/dist/commands/commerce/fees/show.d.ts +2 -2
- package/dist/commands/commerce/incidents/audit.d.ts +3 -3
- package/dist/commands/commerce/incidents/list.d.ts +4 -4
- package/dist/commands/commerce/incidents/resolve.d.ts +3 -3
- package/dist/commands/commerce/incidents/retry.d.ts +3 -3
- package/dist/commands/commerce/incidents/show.d.ts +3 -3
- package/dist/commands/commerce/offers/approve.d.ts +2 -2
- package/dist/commands/commerce/offers/create.d.ts +2 -2
- package/dist/commands/commerce/offers/publish.d.ts +2 -2
- package/dist/commands/commerce/offers/retire.d.ts +2 -2
- package/dist/commands/commerce/offers/validate.d.ts +2 -2
- package/dist/commands/commerce/products/create.d.ts +2 -2
- package/dist/commands/commerce/promotions/redeem.d.ts +2 -2
- package/dist/commands/commerce/terms/accept.d.ts +2 -2
- package/dist/commands/commerce/terms/show.d.ts +2 -2
- package/dist/commands/commerce/trials/conversion-preview.d.ts +2 -2
- package/dist/commands/commerce/trials/start.d.ts +4 -4
- package/dist/commands/commitments/accounting.d.ts +2 -2
- package/dist/commands/commitments/action-history.d.ts +4 -4
- package/dist/commands/commitments/action-proposals/decide.d.ts +6 -6
- package/dist/commands/commitments/action-proposals/execute.d.ts +3 -3
- package/dist/commands/commitments/action-proposals/propose.d.ts +10 -10
- package/dist/commands/commitments/action-proposals.d.ts +4 -4
- package/dist/commands/commitments/analytics/detail.d.ts +7 -7
- package/dist/commands/commitments/analytics/index.d.ts +11 -11
- package/dist/commands/commitments/analytics/replay.d.ts +4 -4
- package/dist/commands/commitments/attach.d.ts +4 -4
- package/dist/commands/commitments/bundle.d.ts +4 -4
- package/dist/commands/commitments/cadence-decisions.d.ts +3 -3
- package/dist/commands/commitments/cadence-requests/decide.d.ts +5 -5
- package/dist/commands/commitments/case.d.ts +4 -4
- package/dist/commands/commitments/cases.d.ts +5 -5
- package/dist/commands/commitments/check-now.d.ts +2 -2
- package/dist/commands/commitments/checks.d.ts +4 -4
- package/dist/commands/commitments/complete.d.ts +2 -2
- package/dist/commands/commitments/control/apply.d.ts +5 -5
- package/dist/commands/commitments/control/preview.d.ts +7 -7
- package/dist/commands/commitments/control/show.d.ts +3 -3
- package/dist/commands/commitments/cost.d.ts +4 -4
- package/dist/commands/commitments/create.d.ts +33 -33
- package/dist/commands/commitments/cycles.d.ts +4 -4
- package/dist/commands/commitments/decide-remediation.d.ts +5 -5
- package/dist/commands/commitments/delete.d.ts +5 -5
- package/dist/commands/commitments/delivery.d.ts +7 -7
- package/dist/commands/commitments/detach.d.ts +4 -4
- package/dist/commands/commitments/doctor.d.ts +3 -3
- package/dist/commands/commitments/effective-policy.d.ts +3 -3
- package/dist/commands/commitments/endpoints/connect.d.ts +3 -3
- package/dist/commands/commitments/endpoints/create.d.ts +6 -6
- package/dist/commands/commitments/endpoints/delete.d.ts +3 -3
- package/dist/commands/commitments/endpoints/health.d.ts +5 -5
- package/dist/commands/commitments/endpoints/list.d.ts +2 -2
- package/dist/commands/commitments/endpoints/revoke.d.ts +3 -3
- package/dist/commands/commitments/evaluations.d.ts +5 -5
- package/dist/commands/commitments/execute-remediation.d.ts +4 -4
- package/dist/commands/commitments/explain.d.ts +2 -2
- package/dist/commands/commitments/export.d.ts +5 -5
- package/dist/commands/commitments/feedback.d.ts +5 -5
- package/dist/commands/commitments/fork.d.ts +4 -4
- package/dist/commands/commitments/goals/link.d.ts +3 -3
- package/dist/commands/commitments/goals/unlink.d.ts +3 -3
- package/dist/commands/commitments/handover.d.ts +4 -4
- package/dist/commands/commitments/hypotheses.d.ts +6 -6
- package/dist/commands/commitments/import.d.ts +3 -3
- package/dist/commands/commitments/ledger.d.ts +3 -3
- package/dist/commands/commitments/lineage.d.ts +3 -3
- package/dist/commands/commitments/links/create.d.ts +6 -6
- package/dist/commands/commitments/links/detach.d.ts +3 -3
- package/dist/commands/commitments/links/list.d.ts +3 -3
- package/dist/commands/commitments/links/update.d.ts +5 -5
- package/dist/commands/commitments/list.d.ts +6 -6
- package/dist/commands/commitments/liveness.d.ts +1 -1
- package/dist/commands/commitments/metrics.d.ts +4 -4
- package/dist/commands/commitments/next-tick.d.ts +2 -2
- package/dist/commands/commitments/observation/probe.d.ts +5 -5
- package/dist/commands/commitments/observation/summary.d.ts +2 -2
- package/dist/commands/commitments/observations.d.ts +11 -11
- package/dist/commands/commitments/open.d.ts +4 -4
- package/dist/commands/commitments/operating-review.d.ts +2 -2
- package/dist/commands/commitments/pack/activate.d.ts +2 -2
- package/dist/commands/commitments/pack/bind.d.ts +9 -9
- package/dist/commands/commitments/pack/list.d.ts +1 -1
- package/dist/commands/commitments/pack/plan.d.ts +7 -7
- package/dist/commands/commitments/pack/preflight.d.ts +3 -3
- package/dist/commands/commitments/patch.d.ts +4 -4
- package/dist/commands/commitments/pause.d.ts +2 -2
- package/dist/commands/commitments/plan.d.ts +8 -8
- package/dist/commands/commitments/preflight.d.ts +6 -6
- package/dist/commands/commitments/propose-remediation.d.ts +4 -4
- package/dist/commands/commitments/readiness/show.d.ts +3 -3
- package/dist/commands/commitments/readiness/verify.d.ts +4 -4
- package/dist/commands/commitments/receipt-metrics.d.ts +5 -5
- package/dist/commands/commitments/receipt.d.ts +7 -7
- package/dist/commands/commitments/reflect.d.ts +2 -2
- package/dist/commands/commitments/reflection-decision.d.ts +4 -4
- package/dist/commands/commitments/reflection.d.ts +2 -2
- package/dist/commands/commitments/remediate.d.ts +5 -5
- package/dist/commands/commitments/remediation-proposal.d.ts +3 -3
- package/dist/commands/commitments/remediation-proposals.d.ts +5 -5
- package/dist/commands/commitments/reports.d.ts +8 -8
- package/dist/commands/commitments/restore.d.ts +2 -2
- package/dist/commands/commitments/resume.d.ts +2 -2
- package/dist/commands/commitments/roster.d.ts +2 -2
- package/dist/commands/commitments/show.d.ts +3 -3
- package/dist/commands/commitments/status.d.ts +2 -2
- package/dist/commands/commitments/subject.d.ts +7 -7
- package/dist/commands/commitments/trace.d.ts +4 -4
- package/dist/commands/commitments/trigger-status.d.ts +3 -3
- package/dist/commands/commitments/update.d.ts +26 -26
- package/dist/commands/commitments/wake-capabilities.d.ts +3 -3
- package/dist/commands/commitments/work-plan.d.ts +2 -2
- package/dist/commands/compass/archive.d.ts +5 -5
- package/dist/commands/compass/commitments.d.ts +3 -3
- package/dist/commands/compass/create.d.ts +6 -6
- package/dist/commands/compass/effective-policy.d.ts +3 -3
- package/dist/commands/compass/list.d.ts +4 -4
- package/dist/commands/compass/revert.d.ts +5 -5
- package/dist/commands/compass/revisions.d.ts +4 -4
- package/dist/commands/compass/show.d.ts +3 -3
- package/dist/commands/compass/tactic.d.ts +6 -6
- package/dist/commands/compass/trace.d.ts +4 -4
- package/dist/commands/compass/update.d.ts +10 -10
- package/dist/commands/completion/index.d.ts +2 -2
- package/dist/commands/completion/script.d.ts +1 -1
- package/dist/commands/completion/values.d.ts +2 -2
- package/dist/commands/computer/index.d.ts +2 -2
- package/dist/commands/context.d.ts +2 -2
- package/dist/commands/context.js +18 -4
- package/dist/commands/convos/archive.d.ts +2 -2
- package/dist/commands/convos/delete.d.ts +2 -2
- package/dist/commands/convos/duplicate.d.ts +3 -3
- package/dist/commands/convos/fork.d.ts +6 -6
- package/dist/commands/convos/handover.d.ts +6 -6
- package/dist/commands/convos/import.d.ts +2 -2
- package/dist/commands/convos/import.js +2 -35
- package/dist/commands/convos/list.d.ts +8 -8
- package/dist/commands/convos/messages.d.ts +5 -5
- package/dist/commands/convos/recovery.d.ts +14 -0
- package/dist/commands/convos/recovery.js +62 -0
- package/dist/commands/convos/search.d.ts +4 -4
- package/dist/commands/convos/show.d.ts +2 -2
- package/dist/commands/convos/unarchive.d.ts +2 -2
- package/dist/commands/convos/update.d.ts +4 -4
- package/dist/commands/create-token.d.ts +2 -2
- package/dist/commands/daemon/logs.d.ts +6 -6
- package/dist/commands/daemon/usage.d.ts +3 -3
- package/dist/commands/dm/list.d.ts +1 -1
- package/dist/commands/dm/messages.d.ts +4 -4
- package/dist/commands/dm/show.d.ts +3 -3
- package/dist/commands/dm/thread/broadcast.d.ts +7 -7
- package/dist/commands/dm/thread/follow.d.ts +6 -6
- package/dist/commands/dm/thread/messages.d.ts +7 -7
- package/dist/commands/dm/thread/mute.d.ts +6 -6
- package/dist/commands/dm/thread/share.d.ts +5 -5
- package/dist/commands/dm/thread/show.d.ts +5 -5
- package/dist/commands/dm/threads.d.ts +6 -6
- package/dist/commands/dm/work.d.ts +10 -10
- package/dist/commands/doctor.d.ts +1 -1
- package/dist/commands/earnings/attributions.d.ts +1 -1
- package/dist/commands/earnings/index.d.ts +1 -1
- package/dist/commands/earnings/payouts.d.ts +3 -3
- package/dist/commands/earnings/statements.d.ts +4 -4
- package/dist/commands/engagement/annotate.d.ts +5 -5
- package/dist/commands/engagement/continue.d.ts +3 -3
- package/dist/commands/engagement/react.d.ts +4 -4
- package/dist/commands/engagement/reactions.d.ts +3 -3
- package/dist/commands/engagement/share.d.ts +6 -6
- package/dist/commands/enterprise/budgets/create.d.ts +2 -2
- package/dist/commands/enterprise/budgets/evaluate.d.ts +2 -2
- package/dist/commands/enterprise/budgets/publish.d.ts +3 -3
- package/dist/commands/enterprise/contracts/activate.d.ts +3 -3
- package/dist/commands/enterprise/contracts/create.d.ts +2 -2
- package/dist/commands/enterprise/contracts/issue.d.ts +3 -3
- package/dist/commands/enterprise/domains/begin.d.ts +3 -3
- package/dist/commands/enterprise/domains/verify.d.ts +3 -3
- package/dist/commands/enterprise/external-config/activate.d.ts +2 -2
- package/dist/commands/enterprise/external-config/set.d.ts +6 -6
- package/dist/commands/enterprise/external-config/show.d.ts +2 -2
- package/dist/commands/enterprise/external-config/suspend.d.ts +3 -3
- package/dist/commands/enterprise/finance/close-snapshot.d.ts +2 -2
- package/dist/commands/enterprise/finance/record-document.d.ts +2 -2
- package/dist/commands/enterprise/profile.d.ts +3 -3
- package/dist/commands/feeds/create.d.ts +7 -7
- package/dist/commands/feeds/delete.d.ts +2 -2
- package/dist/commands/feeds/list.d.ts +4 -4
- package/dist/commands/feeds/update.d.ts +6 -6
- package/dist/commands/followups/act.d.ts +10 -10
- package/dist/commands/followups/cancel.d.ts +3 -3
- package/dist/commands/followups/checkin.d.ts +10 -10
- package/dist/commands/followups/list.d.ts +7 -7
- package/dist/commands/followups/observability.d.ts +3 -3
- package/dist/commands/followups/plans/accepted.d.ts +15 -0
- package/dist/commands/followups/plans/accepted.js +76 -0
- package/dist/commands/followups/plans/cancel-batch.d.ts +18 -0
- package/dist/commands/followups/plans/cancel-batch.js +107 -0
- package/dist/commands/followups/plans/cancel.d.ts +4 -4
- package/dist/commands/followups/plans/capacity.d.ts +2 -2
- package/dist/commands/followups/plans/create.d.ts +3 -3
- package/dist/commands/followups/plans/list.d.ts +6 -6
- package/dist/commands/followups/plans/observability.d.ts +4 -4
- package/dist/commands/followups/plans/preferences/set.d.ts +10 -0
- package/dist/commands/followups/plans/preferences/set.js +50 -0
- package/dist/commands/followups/plans/preferences.d.ts +9 -0
- package/dist/commands/followups/plans/preferences.js +29 -0
- package/dist/commands/followups/plans/revise.d.ts +4 -4
- package/dist/commands/followups/plans/show.d.ts +2 -2
- package/dist/commands/followups/plans/show.js +10 -3
- package/dist/commands/followups/remind.d.ts +11 -11
- package/dist/commands/followups/reschedule.d.ts +4 -4
- package/dist/commands/followups/resolve.d.ts +4 -4
- package/dist/commands/followups/show.d.ts +2 -2
- package/dist/commands/followups/watch.d.ts +28 -28
- package/dist/commands/generate-recovery-code.d.ts +4 -4
- package/dist/commands/github/allow-tools.d.ts +10 -10
- package/dist/commands/github/app/install.d.ts +7 -7
- package/dist/commands/github/app/status.d.ts +6 -6
- package/dist/commands/github/connect.d.ts +10 -10
- package/dist/commands/github/connections.d.ts +8 -8
- package/dist/commands/github/disconnect.d.ts +8 -8
- package/dist/commands/github/finalize.d.ts +10 -10
- package/dist/commands/github/reconnect.d.ts +10 -10
- package/dist/commands/github/run.d.ts +12 -12
- package/dist/commands/github/tools.d.ts +11 -11
- package/dist/commands/goals/archive.d.ts +3 -3
- package/dist/commands/goals/briefing/disable.d.ts +1 -1
- package/dist/commands/goals/briefing/enable.d.ts +2 -2
- package/dist/commands/goals/briefing/preview.d.ts +1 -1
- package/dist/commands/goals/create.d.ts +13 -13
- package/dist/commands/goals/delete.d.ts +2 -2
- package/dist/commands/goals/descendants.d.ts +3 -3
- package/dist/commands/goals/key-results/create.d.ts +9 -9
- package/dist/commands/goals/key-results/delete.d.ts +3 -3
- package/dist/commands/goals/key-results/list.d.ts +2 -2
- package/dist/commands/goals/key-results/show.d.ts +3 -3
- package/dist/commands/goals/key-results/update.d.ts +11 -11
- package/dist/commands/goals/labels/add.d.ts +3 -3
- package/dist/commands/goals/labels/list.d.ts +2 -2
- package/dist/commands/goals/labels/remove.d.ts +3 -3
- package/dist/commands/goals/list.d.ts +9 -9
- package/dist/commands/goals/open.d.ts +4 -4
- package/dist/commands/goals/plan-now.d.ts +3 -3
- package/dist/commands/goals/planner-config.d.ts +7 -7
- package/dist/commands/goals/revisions.d.ts +2 -2
- package/dist/commands/goals/show.d.ts +2 -2
- package/dist/commands/goals/tasks.d.ts +5 -5
- package/dist/commands/goals/update.d.ts +13 -13
- package/dist/commands/google-chat/list-channels.d.ts +3 -3
- package/dist/commands/google-chat/list-users.d.ts +4 -4
- package/dist/commands/google-chat/read-channel.d.ts +5 -5
- package/dist/commands/google-chat/read-thread.d.ts +6 -6
- package/dist/commands/google-chat/run.d.ts +5 -5
- package/dist/commands/google-chat/search.d.ts +5 -5
- package/dist/commands/google-chat/send-as-agent.d.ts +6 -6
- package/dist/commands/google-chat/tools.d.ts +2 -2
- package/dist/commands/grants/create.d.ts +11 -11
- package/dist/commands/grants/delete.d.ts +2 -2
- package/dist/commands/grants/list.d.ts +4 -4
- package/dist/commands/grants/revoke.d.ts +3 -3
- package/dist/commands/grants/rotate.d.ts +4 -4
- package/dist/commands/grants/update.d.ts +3 -3
- package/dist/commands/harnesses/alias.d.ts +4 -4
- package/dist/commands/harnesses/forget.d.ts +3 -3
- package/dist/commands/harnesses/grants/add.d.ts +10 -10
- package/dist/commands/harnesses/grants/list.d.ts +3 -3
- package/dist/commands/harnesses/grants/revoke.d.ts +3 -3
- package/dist/commands/harnesses/install-token.d.ts +2 -2
- package/dist/commands/harnesses/install.d.ts +4 -4
- package/dist/commands/harnesses/installers.d.ts +2 -2
- package/dist/commands/harnesses/leases/action.d.ts +4 -4
- package/dist/commands/harnesses/leases/billing.d.ts +4 -4
- package/dist/commands/harnesses/leases/list.d.ts +4 -4
- package/dist/commands/harnesses/leases/release.d.ts +3 -3
- package/dist/commands/harnesses/leases/show.d.ts +2 -2
- package/dist/commands/harnesses/list.d.ts +9 -9
- package/dist/commands/harnesses/models.d.ts +2 -2
- package/dist/commands/harnesses/ping.d.ts +3 -3
- package/dist/commands/harnesses/products.d.ts +1 -1
- package/dist/commands/harnesses/prune.d.ts +4 -4
- package/dist/commands/harnesses/quota.d.ts +7 -7
- package/dist/commands/harnesses/set-default.d.ts +3 -3
- package/dist/commands/harnesses/show.d.ts +2 -2
- package/dist/commands/harnesses/update.d.ts +11 -11
- package/dist/commands/harnesses/usage.d.ts +2 -2
- package/dist/commands/inbox/index.d.ts +7 -7
- package/dist/commands/ingress/create.d.ts +8 -8
- package/dist/commands/ingress/delete.d.ts +2 -2
- package/dist/commands/ingress/list.d.ts +1 -1
- package/dist/commands/ingress/rotate.d.ts +2 -2
- package/dist/commands/initiatives/decide.d.ts +8 -8
- package/dist/commands/initiatives/list.d.ts +6 -6
- package/dist/commands/instruction-blocks/create.d.ts +11 -11
- package/dist/commands/instruction-blocks/delete.d.ts +3 -3
- package/dist/commands/instruction-blocks/list.d.ts +4 -4
- package/dist/commands/instruction-blocks/show.d.ts +2 -2
- package/dist/commands/instruction-blocks/update.d.ts +12 -12
- package/dist/commands/instructions/activate.d.ts +3 -3
- package/dist/commands/instructions/archive-version.d.ts +3 -3
- package/dist/commands/instructions/create.d.ts +6 -6
- package/dist/commands/instructions/delete.d.ts +3 -3
- package/dist/commands/instructions/diff.d.ts +4 -4
- package/dist/commands/instructions/guide.d.ts +8 -8
- package/dist/commands/instructions/guide.js +8 -1
- package/dist/commands/instructions/install.d.ts +10 -10
- package/dist/commands/instructions/list.d.ts +3 -3
- package/dist/commands/instructions/purge-target.d.ts +4 -4
- package/dist/commands/instructions/remove.d.ts +2 -2
- package/dist/commands/instructions/restore-target.d.ts +2 -2
- package/dist/commands/instructions/restore.d.ts +2 -2
- package/dist/commands/instructions/setup.d.ts +6 -6
- package/dist/commands/instructions/show.d.ts +3 -3
- package/dist/commands/instructions/status.d.ts +2 -2
- package/dist/commands/instructions/update-target.d.ts +7 -7
- package/dist/commands/instructions/update.d.ts +8 -8
- package/dist/commands/integrations/connections/connect.d.ts +11 -11
- package/dist/commands/integrations/connections/disconnect.d.ts +9 -9
- package/dist/commands/integrations/connections/finalize.d.ts +10 -10
- package/dist/commands/integrations/connections/list.d.ts +8 -8
- package/dist/commands/integrations/connections/reconnect.d.ts +11 -11
- package/dist/commands/integrations/execute.d.ts +12 -12
- package/dist/commands/integrations/search.d.ts +10 -10
- package/dist/commands/integrations/toolkits.d.ts +7 -7
- package/dist/commands/integrations/tools/allow.d.ts +10 -10
- package/dist/commands/integrations/tools/list.d.ts +9 -9
- package/dist/commands/labels/archive.d.ts +2 -2
- package/dist/commands/labels/create.d.ts +10 -10
- package/dist/commands/labels/delete.d.ts +3 -3
- package/dist/commands/labels/list.d.ts +6 -6
- package/dist/commands/labels/palette.d.ts +1 -1
- package/dist/commands/labels/reorder.d.ts +4 -4
- package/dist/commands/labels/restore.d.ts +3 -3
- package/dist/commands/labels/update.d.ts +11 -11
- package/dist/commands/lark/list-channels.d.ts +3 -3
- package/dist/commands/lark/list-users.d.ts +4 -4
- package/dist/commands/lark/read-channel.d.ts +5 -5
- package/dist/commands/lark/read-thread.d.ts +6 -6
- package/dist/commands/lark/run.d.ts +5 -5
- package/dist/commands/lark/search.d.ts +5 -5
- package/dist/commands/lark/send-as-agent.d.ts +6 -6
- package/dist/commands/lark/tools.d.ts +2 -2
- package/dist/commands/learning/adapters.d.ts +6 -6
- package/dist/commands/learning/delete.d.ts +2 -2
- package/dist/commands/learning/export.d.ts +5 -5
- package/dist/commands/learning/reset.d.ts +2 -2
- package/dist/commands/learning/set.d.ts +3 -3
- package/dist/commands/learning/status.d.ts +1 -1
- package/dist/commands/list-daemons.d.ts +3 -3
- package/dist/commands/list-tokens.d.ts +2 -2
- package/dist/commands/login.d.ts +7 -7
- package/dist/commands/logout.d.ts +2 -2
- package/dist/commands/machines/computer-adoption.d.ts +1 -1
- package/dist/commands/machines/dedicated/agent-browser.d.ts +4 -4
- package/dist/commands/machines/dedicated/archive.d.ts +4 -4
- package/dist/commands/machines/dedicated/attach.d.ts +5 -5
- package/dist/commands/machines/dedicated/audit.d.ts +8 -8
- package/dist/commands/machines/dedicated/catalog.d.ts +1 -1
- package/dist/commands/machines/dedicated/computer.d.ts +4 -4
- package/dist/commands/machines/dedicated/cp.d.ts +6 -6
- package/dist/commands/machines/dedicated/create.d.ts +17 -17
- package/dist/commands/machines/dedicated/current.d.ts +2 -2
- package/dist/commands/machines/dedicated/destroy.d.ts +8 -8
- package/dist/commands/machines/dedicated/exec.d.ts +8 -8
- package/dist/commands/machines/dedicated/git-status.d.ts +3 -3
- package/dist/commands/machines/dedicated/grow.d.ts +7 -7
- package/dist/commands/machines/dedicated/health-check.d.ts +2 -2
- package/dist/commands/machines/dedicated/incident-close.d.ts +3 -3
- package/dist/commands/machines/dedicated/list.d.ts +3 -3
- package/dist/commands/machines/dedicated/logs.d.ts +5 -5
- package/dist/commands/machines/dedicated/ls.d.ts +6 -6
- package/dist/commands/machines/dedicated/mkdir.d.ts +3 -3
- package/dist/commands/machines/dedicated/mv.d.ts +5 -5
- package/dist/commands/machines/dedicated/power/explain.d.ts +2 -2
- package/dist/commands/machines/dedicated/power/keep-awake.d.ts +5 -5
- package/dist/commands/machines/dedicated/power/set.d.ts +6 -6
- package/dist/commands/machines/dedicated/power/show.d.ts +2 -2
- package/dist/commands/machines/dedicated/power/waiting.d.ts +2 -2
- package/dist/commands/machines/dedicated/price-book.d.ts +1 -1
- package/dist/commands/machines/dedicated/restart.d.ts +5 -5
- package/dist/commands/machines/dedicated/restore.d.ts +9 -9
- package/dist/commands/machines/dedicated/rm.d.ts +5 -5
- package/dist/commands/machines/dedicated/search.d.ts +9 -9
- package/dist/commands/machines/dedicated/service/apply.d.ts +3 -3
- package/dist/commands/machines/dedicated/service/approve.d.ts +4 -4
- package/dist/commands/machines/dedicated/service/create.d.ts +16 -16
- package/dist/commands/machines/dedicated/service/edit.d.ts +4 -4
- package/dist/commands/machines/dedicated/service/exec.d.ts +5 -5
- package/dist/commands/machines/dedicated/service/export.d.ts +5 -5
- package/dist/commands/machines/dedicated/service/logs.d.ts +5 -5
- package/dist/commands/machines/dedicated/service/ls.d.ts +2 -2
- package/dist/commands/machines/dedicated/service/restart.d.ts +3 -3
- package/dist/commands/machines/dedicated/service/rm.d.ts +3 -3
- package/dist/commands/machines/dedicated/service/secret/rm.d.ts +4 -4
- package/dist/commands/machines/dedicated/service/secret/set.d.ts +5 -5
- package/dist/commands/machines/dedicated/service/start.d.ts +3 -3
- package/dist/commands/machines/dedicated/service/status.d.ts +3 -3
- package/dist/commands/machines/dedicated/service/stop.d.ts +3 -3
- package/dist/commands/machines/dedicated/service/top.d.ts +3 -3
- package/dist/commands/machines/dedicated/show.d.ts +2 -2
- package/dist/commands/machines/dedicated/sign-in-status.d.ts +2 -2
- package/dist/commands/machines/dedicated/sign-in.d.ts +2 -2
- package/dist/commands/machines/dedicated/snapshot.d.ts +5 -5
- package/dist/commands/machines/dedicated/spending-limit.d.ts +4 -4
- package/dist/commands/machines/dedicated/ssh-config.d.ts +4 -4
- package/dist/commands/machines/dedicated/ssh-proxy.d.ts +1 -1
- package/dist/commands/machines/dedicated/ssh.d.ts +2 -2
- package/dist/commands/machines/dedicated/start.d.ts +5 -5
- package/dist/commands/machines/dedicated/stat.d.ts +4 -4
- package/dist/commands/machines/dedicated/stop.d.ts +5 -5
- package/dist/commands/machines/dedicated/terminal/kill.d.ts +3 -3
- package/dist/commands/machines/dedicated/terminal/ls.d.ts +2 -2
- package/dist/commands/machines/dedicated/terminal/rename.d.ts +4 -4
- package/dist/commands/machines/dedicated/terminal.d.ts +6 -6
- package/dist/commands/machines/dedicated/update-image.d.ts +5 -5
- package/dist/commands/machines/disconnect.d.ts +3 -3
- package/dist/commands/machines/hosted/connect.d.ts +4 -4
- package/dist/commands/machines/hosted/destroy.d.ts +3 -3
- package/dist/commands/machines/hosted/exec.d.ts +7 -7
- package/dist/commands/machines/hosted/list.d.ts +4 -4
- package/dist/commands/machines/hosted/pause.d.ts +3 -3
- package/dist/commands/machines/hosted/pull.d.ts +9 -9
- package/dist/commands/machines/hosted/resume.d.ts +6 -6
- package/dist/commands/machines/hosted/start.d.ts +18 -18
- package/dist/commands/machines/hosted/status.d.ts +6 -6
- package/dist/commands/machines/list.d.ts +2 -2
- package/dist/commands/machines/services/declare.d.ts +6 -6
- package/dist/commands/machines/services/ls.d.ts +2 -2
- package/dist/commands/machines/services/withdraw.d.ts +3 -3
- package/dist/commands/machines/share.d.ts +4 -4
- package/dist/commands/machines/shared.d.ts +1 -1
- package/dist/commands/machines/shares.d.ts +2 -2
- package/dist/commands/machines/show.d.ts +3 -3
- package/dist/commands/machines/unshare.d.ts +3 -3
- package/dist/commands/machines/update.d.ts +6 -6
- package/dist/commands/managed-execution/show.d.ts +1 -1
- package/dist/commands/measures/confirm.d.ts +4 -4
- package/dist/commands/measures/create.d.ts +10 -10
- package/dist/commands/measures/list.d.ts +4 -4
- package/dist/commands/measures/record.d.ts +7 -7
- package/dist/commands/measures/show.d.ts +2 -2
- package/dist/commands/measures/tasks.d.ts +7 -7
- package/dist/commands/memory/approvals/issue.d.ts +11 -11
- package/dist/commands/memory/commit.d.ts +5 -5
- package/dist/commands/memory/context.d.ts +8 -8
- package/dist/commands/memory/daily-log.d.ts +3 -3
- package/dist/commands/memory/delete.d.ts +5 -5
- package/dist/commands/memory/governance/index.d.ts +2 -2
- package/dist/commands/memory/governance/set.d.ts +7 -7
- package/dist/commands/memory/list.d.ts +4 -4
- package/dist/commands/memory/maintain.d.ts +4 -4
- package/dist/commands/memory/mounts/resolve.d.ts +3 -3
- package/dist/commands/memory/observe.d.ts +9 -9
- package/dist/commands/memory/preferences.d.ts +3 -3
- package/dist/commands/memory/proposals/commit.d.ts +9 -9
- package/dist/commands/memory/proposals/create.d.ts +11 -11
- package/dist/commands/memory/proposals/list.d.ts +6 -6
- package/dist/commands/memory/proposals/promote.d.ts +15 -15
- package/dist/commands/memory/proposals/reject.d.ts +7 -7
- package/dist/commands/memory/provenance.d.ts +3 -3
- package/dist/commands/memory/read.d.ts +5 -5
- package/dist/commands/memory/rebuild-index.d.ts +11 -11
- package/dist/commands/memory/rebuild.d.ts +3 -3
- package/dist/commands/memory/save.d.ts +7 -7
- package/dist/commands/memory/search.d.ts +10 -10
- package/dist/commands/memory/show.d.ts +5 -5
- package/dist/commands/memory/stores/archive.d.ts +7 -7
- package/dist/commands/memory/stores/create.d.ts +5 -5
- package/dist/commands/memory/stores/delete.d.ts +8 -8
- package/dist/commands/memory/stores/list.d.ts +3 -3
- package/dist/commands/memory/stores/show.d.ts +5 -5
- package/dist/commands/memory/stores/update.d.ts +8 -8
- package/dist/commands/memory/sync/delete.d.ts +4 -4
- package/dist/commands/memory/sync/pull.d.ts +12 -12
- package/dist/commands/memory/sync/push.d.ts +11 -11
- package/dist/commands/memory/sync/resolve.d.ts +14 -14
- package/dist/commands/memory/sync/status.d.ts +2 -2
- package/dist/commands/memory/topics/archive.d.ts +11 -11
- package/dist/commands/memory/topics/create.d.ts +16 -16
- package/dist/commands/memory/topics/delete.d.ts +13 -13
- package/dist/commands/memory/topics/forget.d.ts +13 -13
- package/dist/commands/memory/topics/list.d.ts +6 -6
- package/dist/commands/memory/topics/move.d.ts +13 -13
- package/dist/commands/memory/topics/show.d.ts +8 -8
- package/dist/commands/memory/topics/update.d.ts +14 -14
- package/dist/commands/memory/tree.d.ts +6 -6
- package/dist/commands/memory/update.d.ts +7 -7
- package/dist/commands/memory/versions/list.d.ts +7 -7
- package/dist/commands/memory/versions/redact.d.ts +12 -12
- package/dist/commands/memory/versions/restore.d.ts +11 -11
- package/dist/commands/memory/versions/show.d.ts +6 -6
- package/dist/commands/messages/edit-artifact.d.ts +6 -6
- package/dist/commands/messages/feedback.d.ts +7 -7
- package/dist/commands/messages/list.d.ts +5 -5
- package/dist/commands/messages/show.d.ts +3 -3
- package/dist/commands/messages/update-content.d.ts +5 -5
- package/dist/commands/messages/update.d.ts +5 -5
- package/dist/commands/native/allow-all.d.ts +2 -2
- package/dist/commands/native/allow.d.ts +3 -3
- package/dist/commands/native/deny.d.ts +3 -3
- package/dist/commands/native/disable.d.ts +2 -2
- package/dist/commands/native/enable.d.ts +3 -3
- package/dist/commands/native/list-apps.d.ts +2 -2
- package/dist/commands/native/restrict-to.d.ts +3 -3
- package/dist/commands/native/status.d.ts +2 -2
- package/dist/commands/native.d.ts +1 -1
- package/dist/commands/northstars/create.d.ts +12 -12
- package/dist/commands/northstars/delete.d.ts +3 -3
- package/dist/commands/northstars/governance/configure.d.ts +20 -20
- package/dist/commands/northstars/governance/show.d.ts +2 -2
- package/dist/commands/northstars/intents/decide.d.ts +6 -6
- package/dist/commands/northstars/intents/list.d.ts +4 -4
- package/dist/commands/northstars/link.d.ts +4 -4
- package/dist/commands/northstars/list.d.ts +3 -3
- package/dist/commands/northstars/recommendations/apply.d.ts +3 -3
- package/dist/commands/northstars/recommendations/dismiss.d.ts +3 -3
- package/dist/commands/northstars/recommendations/list.d.ts +3 -3
- package/dist/commands/northstars/review-now.d.ts +2 -2
- package/dist/commands/northstars/reviews.d.ts +5 -5
- package/dist/commands/northstars/show.d.ts +2 -2
- package/dist/commands/northstars/unlink.d.ts +3 -3
- package/dist/commands/northstars/update.d.ts +15 -15
- package/dist/commands/open.d.ts +3 -3
- package/dist/commands/outbox/drop.d.ts +2 -2
- package/dist/commands/outbox/list.d.ts +1 -1
- package/dist/commands/outbox/retry.d.ts +3 -3
- package/dist/commands/payments/wallet.d.ts +2 -2
- package/dist/commands/profiles/list.d.ts +1 -1
- package/dist/commands/projects/activity.d.ts +5 -5
- package/dist/commands/projects/archive.d.ts +5 -5
- package/dist/commands/projects/create.d.ts +9 -9
- package/dist/commands/projects/delete.d.ts +5 -5
- package/dist/commands/projects/docs/attach.d.ts +5 -5
- package/dist/commands/projects/docs/detach.d.ts +5 -5
- package/dist/commands/projects/docs/list.d.ts +3 -3
- package/dist/commands/projects/goals.d.ts +6 -6
- package/dist/commands/projects/list.d.ts +9 -9
- package/dist/commands/projects/members.d.ts +7 -7
- package/dist/commands/projects/open.d.ts +5 -5
- package/dist/commands/projects/overview.d.ts +5 -5
- package/dist/commands/projects/promote.d.ts +4 -4
- package/dist/commands/projects/reorder.d.ts +4 -4
- package/dist/commands/projects/revisions.d.ts +5 -5
- package/dist/commands/projects/show.d.ts +3 -3
- package/dist/commands/projects/summary.d.ts +3 -3
- package/dist/commands/projects/tasks.d.ts +6 -6
- package/dist/commands/projects/update.d.ts +8 -8
- package/dist/commands/projects/updates/add.d.ts +10 -10
- package/dist/commands/projects/updates/archive.d.ts +4 -4
- package/dist/commands/projects/updates/cadence.d.ts +10 -10
- package/dist/commands/projects/updates/draft.d.ts +4 -4
- package/dist/commands/projects/updates/edit.d.ts +10 -10
- package/dist/commands/projects/updates/list.d.ts +5 -5
- package/dist/commands/projects/updates/post.d.ts +7 -7
- package/dist/commands/projects/updates/show.d.ts +4 -4
- package/dist/commands/projects/upsert.d.ts +9 -9
- package/dist/commands/proposals/discard.d.ts +2 -2
- package/dist/commands/proposals/keep.d.ts +2 -2
- package/dist/commands/proposals/list.d.ts +8 -8
- package/dist/commands/proposals/show.d.ts +3 -3
- package/dist/commands/proposals/snooze.d.ts +2 -2
- package/dist/commands/requests/cancel.d.ts +2 -2
- package/dist/commands/requests/comments/add.d.ts +5 -5
- package/dist/commands/requests/comments/delete.d.ts +3 -3
- package/dist/commands/requests/comments/list.d.ts +3 -3
- package/dist/commands/requests/create.d.ts +9 -9
- package/dist/commands/requests/list.d.ts +3 -3
- package/dist/commands/requests/pending.d.ts +1 -1
- package/dist/commands/requests/resolve.d.ts +6 -6
- package/dist/commands/requests/show.d.ts +2 -2
- package/dist/commands/revoke-daemon.d.ts +3 -3
- package/dist/commands/revoke-token.d.ts +2 -2
- package/dist/commands/search/agents.d.ts +4 -4
- package/dist/commands/search/all.d.ts +3 -3
- package/dist/commands/search/skills.d.ts +5 -5
- package/dist/commands/search/spaces.d.ts +5 -5
- package/dist/commands/search/tasks.d.ts +6 -6
- package/dist/commands/search/teams.d.ts +3 -3
- package/dist/commands/security/overview.d.ts +2 -2
- package/dist/commands/service/logs.d.ts +3 -3
- package/dist/commands/service/ls.d.ts +1 -1
- package/dist/commands/service/propose.d.ts +12 -12
- package/dist/commands/service/status.d.ts +2 -2
- package/dist/commands/set-capabilities.d.ts +3 -3
- package/dist/commands/shares/create.d.ts +3 -3
- package/dist/commands/shares/delete.d.ts +2 -2
- package/dist/commands/shares/get.d.ts +2 -2
- package/dist/commands/shares/link-for.d.ts +2 -2
- package/dist/commands/shares/list.d.ts +7 -7
- package/dist/commands/shares/update.d.ts +2 -2
- package/dist/commands/shortcuts/create.d.ts +11 -11
- package/dist/commands/shortcuts/create.js +1 -34
- package/dist/commands/shortcuts/delete.d.ts +2 -2
- package/dist/commands/shortcuts/list.d.ts +2 -2
- package/dist/commands/shortcuts/reorder.d.ts +3 -3
- package/dist/commands/shortcuts/show.d.ts +2 -2
- package/dist/commands/shortcuts/trigger.d.ts +2 -2
- package/dist/commands/shortcuts/update.d.ts +11 -11
- package/dist/commands/shortcuts/update.js +1 -34
- package/dist/commands/signals/monitors/create.d.ts +2 -2
- package/dist/commands/signals/monitors/list.d.ts +1 -1
- package/dist/commands/signals/monitors/pause.d.ts +2 -2
- package/dist/commands/signals/monitors/resume.d.ts +2 -2
- package/dist/commands/signals/monitors/revise.d.ts +3 -3
- package/dist/commands/signals/monitors/show.d.ts +2 -2
- package/dist/commands/signals/monitors/test.d.ts +3 -3
- package/dist/commands/signals/monitors/transitions.d.ts +2 -2
- package/dist/commands/signals/monitors/validate.d.ts +2 -2
- package/dist/commands/signals/schemas/list.d.ts +1 -1
- package/dist/commands/signals/schemas/show.d.ts +2 -2
- package/dist/commands/signals/sources/list.d.ts +1 -1
- package/dist/commands/signals/sources/receipts.d.ts +2 -2
- package/dist/commands/signals/sources/show.d.ts +2 -2
- package/dist/commands/skills/browse.d.ts +4 -4
- package/dist/commands/skills/categories.d.ts +3 -3
- package/dist/commands/skills/details.d.ts +2 -2
- package/dist/commands/skills/duplicate.d.ts +4 -4
- package/dist/commands/skills/featured.d.ts +2 -2
- package/dist/commands/skills/import-as-actions.d.ts +9 -9
- package/dist/commands/skills/install.d.ts +4 -4
- package/dist/commands/skills/invocable.d.ts +3 -3
- package/dist/commands/skills/library.d.ts +4 -4
- package/dist/commands/skills/local.d.ts +5 -5
- package/dist/commands/skills/search.d.ts +5 -5
- package/dist/commands/skills/visibility.d.ts +5 -5
- package/dist/commands/slack/list-channels.d.ts +7 -7
- package/dist/commands/slack/list-usergroups.d.ts +4 -4
- package/dist/commands/slack/list-users.d.ts +7 -7
- package/dist/commands/slack/read-channel.d.ts +8 -8
- package/dist/commands/slack/read-thread.d.ts +7 -7
- package/dist/commands/slack/run.d.ts +5 -5
- package/dist/commands/slack/search.d.ts +8 -8
- package/dist/commands/slack/send-as-agent.d.ts +8 -8
- package/dist/commands/slack/tools.d.ts +2 -2
- package/dist/commands/space-directory-views/create.d.ts +6 -6
- package/dist/commands/space-directory-views/delete.d.ts +4 -4
- package/dist/commands/space-directory-views/list.d.ts +1 -1
- package/dist/commands/space-directory-views/show.d.ts +2 -2
- package/dist/commands/space-directory-views/update.d.ts +7 -7
- package/dist/commands/spaces/actions/add.d.ts +9 -9
- package/dist/commands/spaces/actions/available.d.ts +2 -2
- package/dist/commands/spaces/actions/delete.d.ts +4 -4
- package/dist/commands/spaces/actions/list.d.ts +3 -3
- package/dist/commands/spaces/actions/replace.d.ts +5 -5
- package/dist/commands/spaces/actions/run.d.ts +3 -3
- package/dist/commands/spaces/actions/update.d.ts +9 -9
- package/dist/commands/spaces/archive.d.ts +2 -2
- package/dist/commands/spaces/auto-executor/preview.d.ts +2 -2
- package/dist/commands/spaces/auto-executor/run.d.ts +2 -2
- package/dist/commands/spaces/auto-executor/runs.d.ts +3 -3
- package/dist/commands/spaces/auto-executor/update.d.ts +11 -11
- package/dist/commands/spaces/bootstrap.d.ts +2 -2
- package/dist/commands/spaces/briefs/delete.d.ts +4 -4
- package/dist/commands/spaces/briefs/get.d.ts +4 -4
- package/dist/commands/spaces/briefs/list.d.ts +2 -2
- package/dist/commands/spaces/briefs/set.d.ts +10 -10
- package/dist/commands/spaces/capacity.d.ts +3 -3
- package/dist/commands/spaces/claim.d.ts +2 -2
- package/dist/commands/spaces/conversations.d.ts +4 -4
- package/dist/commands/spaces/create.d.ts +17 -17
- package/dist/commands/spaces/cycles/create.d.ts +7 -7
- package/dist/commands/spaces/cycles/graph.d.ts +4 -4
- package/dist/commands/spaces/cycles/list.d.ts +4 -4
- package/dist/commands/spaces/cycles/settings.d.ts +6 -6
- package/dist/commands/spaces/cycles/show.d.ts +3 -3
- package/dist/commands/spaces/cycles/update.d.ts +8 -8
- package/dist/commands/spaces/delete.d.ts +2 -2
- package/dist/commands/spaces/expertise-suggestions.d.ts +2 -2
- package/dist/commands/spaces/files/delete.d.ts +4 -4
- package/dist/commands/spaces/files/folders/create.d.ts +5 -5
- package/dist/commands/spaces/files/folders/delete.d.ts +5 -5
- package/dist/commands/spaces/files/folders/list.d.ts +2 -2
- package/dist/commands/spaces/files/folders/update.d.ts +7 -7
- package/dist/commands/spaces/files/list.d.ts +2 -2
- package/dist/commands/spaces/files/move.d.ts +5 -5
- package/dist/commands/spaces/files/rename.d.ts +4 -4
- package/dist/commands/spaces/files/upload.d.ts +4 -4
- package/dist/commands/spaces/github-automations/set.d.ts +3 -3
- package/dist/commands/spaces/github-automations/show.d.ts +2 -2
- package/dist/commands/spaces/goals.d.ts +2 -2
- package/dist/commands/spaces/heartbeats/create.d.ts +11 -11
- package/dist/commands/spaces/heartbeats/delete.d.ts +4 -4
- package/dist/commands/spaces/heartbeats/list.d.ts +2 -2
- package/dist/commands/spaces/heartbeats/status.d.ts +3 -3
- package/dist/commands/spaces/heartbeats/update.d.ts +12 -12
- package/dist/commands/spaces/index.d.ts +1 -1
- package/dist/commands/spaces/insights.d.ts +14 -14
- package/dist/commands/spaces/install-template.d.ts +7 -7
- package/dist/commands/spaces/label-summaries.d.ts +1 -1
- package/dist/commands/spaces/labels/add.d.ts +3 -3
- package/dist/commands/spaces/labels/list.d.ts +2 -2
- package/dist/commands/spaces/labels/remove.d.ts +3 -3
- package/dist/commands/spaces/list.d.ts +11 -11
- package/dist/commands/spaces/live/cards/create.d.ts +10 -10
- package/dist/commands/spaces/live/cards/delete.d.ts +4 -4
- package/dist/commands/spaces/live/cards/list.d.ts +2 -2
- package/dist/commands/spaces/live/cards/reorder.d.ts +4 -4
- package/dist/commands/spaces/live/cards/update.d.ts +11 -11
- package/dist/commands/spaces/live/scene.d.ts +4 -4
- package/dist/commands/spaces/members/add.d.ts +8 -8
- package/dist/commands/spaces/members/list.d.ts +3 -3
- package/dist/commands/spaces/members/remove.d.ts +5 -5
- package/dist/commands/spaces/members/search.d.ts +3 -3
- package/dist/commands/spaces/move.d.ts +4 -4
- package/dist/commands/spaces/open.d.ts +4 -4
- package/dist/commands/spaces/ownership.d.ts +2 -2
- package/dist/commands/spaces/pin.d.ts +2 -2
- package/dist/commands/spaces/preferences/show.d.ts +2 -2
- package/dist/commands/spaces/preferences/tabs.d.ts +5 -5
- package/dist/commands/spaces/reorder.d.ts +6 -6
- package/dist/commands/spaces/revisions.d.ts +2 -2
- package/dist/commands/spaces/room/ensure.d.ts +2 -2
- package/dist/commands/spaces/room/messages.d.ts +5 -5
- package/dist/commands/spaces/room/send.d.ts +8 -8
- package/dist/commands/spaces/room/show.d.ts +2 -2
- package/dist/commands/spaces/show.d.ts +2 -2
- package/dist/commands/spaces/skills/add.d.ts +3 -3
- package/dist/commands/spaces/skills/list.d.ts +2 -2
- package/dist/commands/spaces/skills/pin.d.ts +4 -4
- package/dist/commands/spaces/skills/remove.d.ts +3 -3
- package/dist/commands/spaces/snapshot.d.ts +11 -11
- package/dist/commands/spaces/states/archive.d.ts +3 -3
- package/dist/commands/spaces/states/create.d.ts +7 -7
- package/dist/commands/spaces/states/list.d.ts +2 -2
- package/dist/commands/spaces/states/reorder.d.ts +3 -3
- package/dist/commands/spaces/states/update.d.ts +6 -6
- package/dist/commands/spaces/subspaces.d.ts +3 -3
- package/dist/commands/spaces/summary.d.ts +2 -2
- package/dist/commands/spaces/task-rollups.d.ts +1 -1
- package/dist/commands/spaces/tasks.d.ts +7 -7
- package/dist/commands/spaces/templates/create.d.ts +9 -9
- package/dist/commands/spaces/templates/delete.d.ts +3 -3
- package/dist/commands/spaces/templates/fork.d.ts +4 -4
- package/dist/commands/spaces/templates/index.d.ts +7 -7
- package/dist/commands/spaces/templates/purchase-status.d.ts +2 -2
- package/dist/commands/spaces/templates/rate.d.ts +4 -4
- package/dist/commands/spaces/templates/report.d.ts +4 -4
- package/dist/commands/spaces/templates/show.d.ts +3 -3
- package/dist/commands/spaces/templates/update.d.ts +11 -11
- package/dist/commands/spaces/templates/visibility.d.ts +7 -7
- package/dist/commands/spaces/transfer-workspace.d.ts +3 -3
- package/dist/commands/spaces/triggers/delete.d.ts +3 -3
- package/dist/commands/spaces/triggers/set.d.ts +26 -26
- package/dist/commands/spaces/triggers/show.d.ts +2 -2
- package/dist/commands/spaces/unarchive.d.ts +2 -2
- package/dist/commands/spaces/update.d.ts +26 -26
- package/dist/commands/spaces/usage.d.ts +3 -3
- package/dist/commands/spaces/views/create.d.ts +8 -8
- package/dist/commands/spaces/views/delete.d.ts +4 -4
- package/dist/commands/spaces/views/duplicate.d.ts +3 -3
- package/dist/commands/spaces/views/list.d.ts +2 -2
- package/dist/commands/spaces/views/reorder.d.ts +5 -5
- package/dist/commands/spaces/views/subscribe.d.ts +7 -7
- package/dist/commands/spaces/views/subscriptions.d.ts +3 -3
- package/dist/commands/spaces/views/unsubscribe.d.ts +3 -3
- package/dist/commands/spaces/views/update.d.ts +10 -10
- package/dist/commands/spaces/widgets/add.d.ts +4 -4
- package/dist/commands/spaces/widgets/list.d.ts +2 -2
- package/dist/commands/spaces/widgets/remove.d.ts +4 -4
- package/dist/commands/spaces/work-graph.d.ts +4 -4
- package/dist/commands/spaces/work-sync/reconcile.d.ts +2 -2
- package/dist/commands/spaces/work-sync/telemetry.d.ts +3 -3
- package/dist/commands/spaces/workflow-templates/archive.d.ts +4 -4
- package/dist/commands/spaces/workflow-templates/create.d.ts +8 -8
- package/dist/commands/spaces/workflow-templates/extract.d.ts +9 -9
- package/dist/commands/spaces/workflow-templates/insert.d.ts +9 -9
- package/dist/commands/spaces/workflow-templates/list.d.ts +7 -7
- package/dist/commands/spaces/workflow-templates/promote.d.ts +5 -5
- package/dist/commands/spaces/workflow-templates/publish.d.ts +4 -4
- package/dist/commands/spaces/workflow-templates/show.d.ts +5 -5
- package/dist/commands/spaces/workflow-templates/update.d.ts +8 -8
- package/dist/commands/spaces/workflow-templates/versions.d.ts +3 -3
- package/dist/commands/spaces/workflows/archive.d.ts +4 -4
- package/dist/commands/spaces/workflows/artifact.d.ts +5 -5
- package/dist/commands/spaces/workflows/cancel-node.d.ts +6 -6
- package/dist/commands/spaces/workflows/cancel.d.ts +5 -5
- package/dist/commands/spaces/workflows/create.d.ts +7 -7
- package/dist/commands/spaces/workflows/events.d.ts +4 -4
- package/dist/commands/spaces/workflows/fixtures/create.d.ts +11 -11
- package/dist/commands/spaces/workflows/fixtures/list.d.ts +4 -4
- package/dist/commands/spaces/workflows/lifecycle-diagnostics.d.ts +2 -2
- package/dist/commands/spaces/workflows/list.d.ts +2 -2
- package/dist/commands/spaces/workflows/node-types.d.ts +2 -2
- package/dist/commands/spaces/workflows/pause.d.ts +5 -5
- package/dist/commands/spaces/workflows/plan/show.d.ts +3 -3
- package/dist/commands/spaces/workflows/plan/update.d.ts +7 -7
- package/dist/commands/spaces/workflows/proposals/apply.d.ts +5 -5
- package/dist/commands/spaces/workflows/proposals/confirm.d.ts +5 -5
- package/dist/commands/spaces/workflows/proposals/create.d.ts +7 -7
- package/dist/commands/spaces/workflows/proposals/dismiss.d.ts +5 -5
- package/dist/commands/spaces/workflows/proposals/list.d.ts +3 -3
- package/dist/commands/spaces/workflows/publish.d.ts +3 -3
- package/dist/commands/spaces/workflows/reconcile.d.ts +3 -3
- package/dist/commands/spaces/workflows/resume.d.ts +4 -4
- package/dist/commands/spaces/workflows/retry.d.ts +4 -4
- package/dist/commands/spaces/workflows/run.d.ts +4 -4
- package/dist/commands/spaces/workflows/runs.d.ts +6 -6
- package/dist/commands/spaces/workflows/show.d.ts +3 -3
- package/dist/commands/spaces/workflows/signal.d.ts +7 -7
- package/dist/commands/spaces/workflows/start.d.ts +6 -6
- package/dist/commands/spaces/workflows/task-execution/create.d.ts +5 -5
- package/dist/commands/spaces/workflows/test.d.ts +7 -7
- package/dist/commands/spaces/workflows/triggers/create.d.ts +7 -7
- package/dist/commands/spaces/workflows/triggers/fire.d.ts +7 -7
- package/dist/commands/spaces/workflows/triggers/list.d.ts +3 -3
- package/dist/commands/spaces/workflows/triggers/update.d.ts +8 -8
- package/dist/commands/spaces/workflows/update.d.ts +13 -13
- package/dist/commands/spaces/workflows/validate.d.ts +3 -3
- package/dist/commands/step-up.d.ts +4 -4
- package/dist/commands/store/acquisitions/approve.d.ts +3 -3
- package/dist/commands/store/acquisitions/decline.d.ts +2 -2
- package/dist/commands/store/acquisitions/list.d.ts +3 -3
- package/dist/commands/store/acquisitions/show.d.ts +2 -2
- package/dist/commands/store/admissions/approve.d.ts +5 -5
- package/dist/commands/store/admissions/list.d.ts +2 -2
- package/dist/commands/store/admissions/refuse.d.ts +5 -5
- package/dist/commands/store/advisories/artifact.d.ts +6 -6
- package/dist/commands/store/advisories/cancel.d.ts +2 -2
- package/dist/commands/store/advisories/close.d.ts +4 -4
- package/dist/commands/store/advisories/confirm.d.ts +3 -3
- package/dist/commands/store/advisories/issue.d.ts +6 -6
- package/dist/commands/store/advisories/list.d.ts +4 -4
- package/dist/commands/store/advisories/show.d.ts +2 -2
- package/dist/commands/store/artifacts/release.d.ts +8 -8
- package/dist/commands/store/artifacts/used-by.d.ts +3 -3
- package/dist/commands/store/browse.d.ts +11 -11
- package/dist/commands/store/channel.d.ts +3 -3
- package/dist/commands/store/follow.d.ts +4 -4
- package/dist/commands/store/follows/list.d.ts +2 -2
- package/dist/commands/store/follows/remove.d.ts +2 -2
- package/dist/commands/store/governance/artifacts.d.ts +8 -8
- package/dist/commands/store/governance/assign.d.ts +5 -5
- package/dist/commands/store/governance/create-license.d.ts +2 -2
- package/dist/commands/store/governance/install-plan.d.ts +6 -6
- package/dist/commands/store/governance/license-policy.d.ts +6 -6
- package/dist/commands/store/governance/policy.d.ts +7 -7
- package/dist/commands/store/governance/publish-release.d.ts +2 -2
- package/dist/commands/store/governance/requests.d.ts +7 -7
- package/dist/commands/store/install.d.ts +9 -9
- package/dist/commands/store/installs.d.ts +1 -1
- package/dist/commands/store/issues.d.ts +10 -10
- package/dist/commands/store/maintainers/add.d.ts +4 -4
- package/dist/commands/store/maintainers/remove.d.ts +5 -5
- package/dist/commands/store/publishers/approve.d.ts +4 -4
- package/dist/commands/store/publishers/cancel.d.ts +2 -2
- package/dist/commands/store/publishers/claim.d.ts +3 -3
- package/dist/commands/store/publishers/confirm.d.ts +2 -2
- package/dist/commands/store/publishers/domains/begin.d.ts +3 -3
- package/dist/commands/store/publishers/domains/list.d.ts +2 -2
- package/dist/commands/store/publishers/domains/verify.d.ts +3 -3
- package/dist/commands/store/publishers/namespaces.d.ts +1 -1
- package/dist/commands/store/publishers/profile/draft.d.ts +4 -4
- package/dist/commands/store/publishers/profile/handle.d.ts +3 -3
- package/dist/commands/store/publishers/profile/hide.d.ts +3 -3
- package/dist/commands/store/publishers/profile/preview.d.ts +2 -2
- package/dist/commands/store/publishers/profile/publish.d.ts +3 -3
- package/dist/commands/store/publishers/profile/restore.d.ts +4 -4
- package/dist/commands/store/publishers/profile/revisions.d.ts +2 -2
- package/dist/commands/store/publishers/profile/show.d.ts +2 -2
- package/dist/commands/store/publishers/verified.d.ts +2 -2
- package/dist/commands/store/refund.d.ts +5 -5
- package/dist/commands/store/releases.d.ts +2 -2
- package/dist/commands/store/report.d.ts +5 -5
- package/dist/commands/store/reports/confirm-ban.d.ts +3 -3
- package/dist/commands/store/reports/disposition.d.ts +4 -4
- package/dist/commands/store/reports/list.d.ts +4 -4
- package/dist/commands/store/reports/withdraw-ban.d.ts +3 -3
- package/dist/commands/store/reports.d.ts +2 -2
- package/dist/commands/store/review.d.ts +5 -5
- package/dist/commands/store/reviews.d.ts +8 -8
- package/dist/commands/store/show.d.ts +2 -2
- package/dist/commands/store/signals.d.ts +2 -2
- package/dist/commands/store/star.d.ts +3 -3
- package/dist/commands/store/stars.d.ts +1 -1
- package/dist/commands/store/stats.d.ts +3 -3
- package/dist/commands/store/tip.d.ts +4 -4
- package/dist/commands/store/trial.d.ts +2 -2
- package/dist/commands/store/uninstall.d.ts +4 -4
- package/dist/commands/store/update.d.ts +7 -7
- package/dist/commands/store/updates.d.ts +1 -1
- package/dist/commands/store/watch.d.ts +3 -3
- package/dist/commands/subscriptions/cancel.d.ts +4 -4
- package/dist/commands/subscriptions/health.d.ts +2 -2
- package/dist/commands/subscriptions/list.d.ts +1 -1
- package/dist/commands/subscriptions/status.d.ts +2 -2
- package/dist/commands/subscriptions/subscribe.d.ts +6 -6
- package/dist/commands/tasks/actionability.d.ts +3 -3
- package/dist/commands/tasks/actions/attach.d.ts +5 -5
- package/dist/commands/tasks/actions/detach.d.ts +5 -5
- package/dist/commands/tasks/active.d.ts +4 -4
- package/dist/commands/tasks/activity.d.ts +3 -3
- package/dist/commands/tasks/ancestors.d.ts +2 -2
- package/dist/commands/tasks/approvals/create.d.ts +5 -5
- package/dist/commands/tasks/approvals/delete.d.ts +3 -3
- package/dist/commands/tasks/approvals/list.d.ts +2 -2
- package/dist/commands/tasks/approvals/resolve.d.ts +5 -5
- package/dist/commands/tasks/archive.d.ts +3 -3
- package/dist/commands/tasks/assign.d.ts +13 -13
- package/dist/commands/tasks/attachments/delete.d.ts +3 -3
- package/dist/commands/tasks/attachments/download.d.ts +4 -4
- package/dist/commands/tasks/attachments/list.d.ts +2 -2
- package/dist/commands/tasks/attachments/set-role.d.ts +4 -4
- package/dist/commands/tasks/attachments/upload.d.ts +4 -4
- package/dist/commands/tasks/bulk-update.d.ts +5 -5
- package/dist/commands/tasks/calendar.d.ts +3 -3
- package/dist/commands/tasks/cancel-cascade.d.ts +3 -3
- package/dist/commands/tasks/cascade-status.d.ts +2 -2
- package/dist/commands/tasks/chat/exchange.d.ts +8 -8
- package/dist/commands/tasks/chat/index.d.ts +8 -8
- package/dist/commands/tasks/chat/read.d.ts +3 -3
- package/dist/commands/tasks/chat/reindex.d.ts +2 -2
- package/dist/commands/tasks/chat/reopen.d.ts +3 -3
- package/dist/commands/tasks/chat/repair-attention.d.ts +2 -2
- package/dist/commands/tasks/chat/rotate.d.ts +4 -4
- package/dist/commands/tasks/chat/send.d.ts +5 -5
- package/dist/commands/tasks/checkout.d.ts +3 -3
- package/dist/commands/tasks/children.d.ts +2 -2
- package/dist/commands/tasks/comments/add.d.ts +12 -12
- package/dist/commands/tasks/comments/add.js +8 -36
- package/dist/commands/tasks/comments/anchor.d.ts +12 -12
- package/dist/commands/tasks/comments/delete.d.ts +3 -3
- package/dist/commands/tasks/comments/list.d.ts +5 -5
- package/dist/commands/tasks/comments/react.d.ts +4 -4
- package/dist/commands/tasks/comments/reopen.d.ts +3 -3
- package/dist/commands/tasks/comments/resolve.d.ts +3 -3
- package/dist/commands/tasks/communications.d.ts +4 -4
- package/dist/commands/tasks/complete.d.ts +20 -20
- package/dist/commands/tasks/complete.js +1 -34
- package/dist/commands/tasks/continue-ready.d.ts +10 -10
- package/dist/commands/tasks/continue.d.ts +8 -8
- package/dist/commands/tasks/create-tree.d.ts +16 -16
- package/dist/commands/tasks/create.d.ts +44 -44
- package/dist/commands/tasks/current.d.ts +1 -1
- package/dist/commands/tasks/delete.d.ts +3 -3
- package/dist/commands/tasks/deliverable/add.d.ts +14 -14
- package/dist/commands/tasks/deliverable/archive.d.ts +5 -5
- package/dist/commands/tasks/deliverable/confirm.d.ts +4 -4
- package/dist/commands/tasks/deliverable/list.d.ts +3 -3
- package/dist/commands/tasks/descendants.d.ts +3 -3
- package/dist/commands/tasks/dri-plan.d.ts +2 -2
- package/dist/commands/tasks/dri-run.d.ts +2 -2
- package/dist/commands/tasks/dri-status.d.ts +2 -2
- package/dist/commands/tasks/duplicate-pipeline.d.ts +4 -4
- package/dist/commands/tasks/economics-compare.d.ts +5 -5
- package/dist/commands/tasks/events/append.d.ts +11 -11
- package/dist/commands/tasks/events/list.d.ts +8 -8
- package/dist/commands/tasks/events/tail.d.ts +6 -6
- package/dist/commands/tasks/execution-state.d.ts +2 -2
- package/dist/commands/tasks/execution-summary.d.ts +2 -2
- package/dist/commands/tasks/execution-timeline.d.ts +4 -4
- package/dist/commands/tasks/expectations/assess.d.ts +14 -14
- package/dist/commands/tasks/expectations/evaluate.d.ts +4 -4
- package/dist/commands/tasks/expectations.d.ts +2 -2
- package/dist/commands/tasks/export.d.ts +35 -35
- package/dist/commands/tasks/follow-up.d.ts +26 -26
- package/dist/commands/tasks/fork.d.ts +8 -8
- package/dist/commands/tasks/forward.d.ts +4 -4
- package/dist/commands/tasks/from-message.d.ts +3 -3
- package/dist/commands/tasks/guide.d.ts +1 -1
- package/dist/commands/tasks/handover.d.ts +7 -7
- package/dist/commands/tasks/import.d.ts +10 -10
- package/dist/commands/tasks/input/answer.d.ts +6 -6
- package/dist/commands/tasks/input/dismiss.d.ts +3 -3
- package/dist/commands/tasks/input/show.d.ts +2 -2
- package/dist/commands/tasks/interrupt.d.ts +3 -3
- package/dist/commands/tasks/judge.d.ts +5 -5
- package/dist/commands/tasks/labels/attach.d.ts +3 -3
- package/dist/commands/tasks/labels/create.d.ts +5 -5
- package/dist/commands/tasks/labels/delete.d.ts +2 -2
- package/dist/commands/tasks/labels/detach.d.ts +3 -3
- package/dist/commands/tasks/labels/list.d.ts +1 -1
- package/dist/commands/tasks/labels/suggest.d.ts +2 -2
- package/dist/commands/tasks/lifecycle/attach.d.ts +5 -5
- package/dist/commands/tasks/lifecycle/definitions.d.ts +2 -2
- package/dist/commands/tasks/lifecycle/detach.d.ts +4 -4
- package/dist/commands/tasks/lifecycle/history.d.ts +4 -4
- package/dist/commands/tasks/lifecycle/migrate.d.ts +4 -4
- package/dist/commands/tasks/lifecycle/reconcile.d.ts +2 -2
- package/dist/commands/tasks/lifecycle/reopen.d.ts +5 -5
- package/dist/commands/tasks/lifecycle/show.d.ts +2 -2
- package/dist/commands/tasks/lifecycle/start.d.ts +3 -3
- package/dist/commands/tasks/lifecycle/transition.d.ts +6 -6
- package/dist/commands/tasks/list.d.ts +49 -49
- package/dist/commands/tasks/mark-duplicate.d.ts +3 -3
- package/dist/commands/tasks/monitor.d.ts +6 -6
- package/dist/commands/tasks/move.d.ts +8 -8
- package/dist/commands/tasks/open.d.ts +5 -5
- package/dist/commands/tasks/output.d.ts +4 -4
- package/dist/commands/tasks/pause-schedule.d.ts +2 -2
- package/dist/commands/tasks/plan/add-subtask.d.ts +7 -7
- package/dist/commands/tasks/plan/cancel.d.ts +4 -4
- package/dist/commands/tasks/plan/create.d.ts +2 -2
- package/dist/commands/tasks/plan/pause.d.ts +5 -5
- package/dist/commands/tasks/plan/reconcile.d.ts +3 -3
- package/dist/commands/tasks/plan/resume.d.ts +4 -4
- package/dist/commands/tasks/plan/retry.d.ts +4 -4
- package/dist/commands/tasks/plan/run-update.d.ts +7 -7
- package/dist/commands/tasks/plan/run.d.ts +3 -3
- package/dist/commands/tasks/plan/show.d.ts +2 -2
- package/dist/commands/tasks/plan/start.d.ts +3 -3
- package/dist/commands/tasks/plan/sync.d.ts +2 -2
- package/dist/commands/tasks/plan/update.d.ts +3 -3
- package/dist/commands/tasks/pr.d.ts +3 -3
- package/dist/commands/tasks/preflight.d.ts +4 -4
- package/dist/commands/tasks/promote.d.ts +5 -5
- package/dist/commands/tasks/prompt-log.d.ts +2 -2
- package/dist/commands/tasks/ready.d.ts +7 -7
- package/dist/commands/tasks/rearm-recurrence.d.ts +4 -4
- package/dist/commands/tasks/release.d.ts +2 -2
- package/dist/commands/tasks/remind.d.ts +3 -3
- package/dist/commands/tasks/replay.d.ts +3 -3
- package/dist/commands/tasks/report.d.ts +10 -10
- package/dist/commands/tasks/resource/add.d.ts +13 -13
- package/dist/commands/tasks/resource/list.d.ts +4 -4
- package/dist/commands/tasks/result/show.d.ts +4 -4
- package/dist/commands/tasks/result/submit.d.ts +17 -17
- package/dist/commands/tasks/result/submit.js +1 -34
- package/dist/commands/tasks/resume/save.d.ts +7 -7
- package/dist/commands/tasks/resume/show.d.ts +4 -4
- package/dist/commands/tasks/resume-schedule.d.ts +2 -2
- package/dist/commands/tasks/retry-schedule.d.ts +3 -3
- package/dist/commands/tasks/retry.d.ts +5 -5
- package/dist/commands/tasks/review-queue.d.ts +5 -5
- package/dist/commands/tasks/review.d.ts +8 -8
- package/dist/commands/tasks/revisions.d.ts +2 -2
- package/dist/commands/tasks/runs.d.ts +2 -2
- package/dist/commands/tasks/schedule.d.ts +8 -8
- package/dist/commands/tasks/self-schedule.d.ts +8 -8
- package/dist/commands/tasks/show.d.ts +5 -5
- package/dist/commands/tasks/skills/pin.d.ts +5 -5
- package/dist/commands/tasks/skills/unpin.d.ts +5 -5
- package/dist/commands/tasks/snooze.d.ts +6 -6
- package/dist/commands/tasks/start-all.d.ts +3 -3
- package/dist/commands/tasks/start.d.ts +6 -6
- package/dist/commands/tasks/subscribe.d.ts +3 -3
- package/dist/commands/tasks/tags/add.d.ts +3 -3
- package/dist/commands/tasks/tags/remove.d.ts +3 -3
- package/dist/commands/tasks/templates/create.d.ts +11 -11
- package/dist/commands/tasks/templates/create.js +1 -34
- package/dist/commands/tasks/templates/delete.d.ts +2 -2
- package/dist/commands/tasks/templates/list.d.ts +2 -2
- package/dist/commands/tasks/templates/reorder.d.ts +3 -3
- package/dist/commands/tasks/templates/show.d.ts +2 -2
- package/dist/commands/tasks/templates/update.d.ts +10 -10
- package/dist/commands/tasks/templates/update.js +1 -34
- package/dist/commands/tasks/timeline.d.ts +7 -7
- package/dist/commands/tasks/today.d.ts +7 -7
- package/dist/commands/tasks/transcript.d.ts +6 -6
- package/dist/commands/tasks/tree.d.ts +6 -6
- package/dist/commands/tasks/triage.d.ts +8 -8
- package/dist/commands/tasks/trust.d.ts +5 -5
- package/dist/commands/tasks/unschedule.d.ts +2 -2
- package/dist/commands/tasks/unsnooze.d.ts +3 -3
- package/dist/commands/tasks/unsubscribe.d.ts +3 -3
- package/dist/commands/tasks/update.d.ts +45 -45
- package/dist/commands/tasks/updates/add.d.ts +13 -13
- package/dist/commands/tasks/updates/add.js +1 -34
- package/dist/commands/tasks/updates/list.d.ts +6 -6
- package/dist/commands/tasks/upsert.d.ts +20 -20
- package/dist/commands/tasks/wait.d.ts +9 -9
- package/dist/commands/tasks/waive.d.ts +4 -4
- package/dist/commands/tasks/watch.d.ts +8 -8
- package/dist/commands/tasks/workflow/approve-merge.d.ts +2 -2
- package/dist/commands/tasks/workflow/cancel.d.ts +3 -3
- package/dist/commands/tasks/workflow/e2e-complete.d.ts +7 -7
- package/dist/commands/tasks/workflow/index.d.ts +2 -2
- package/dist/commands/tasks/workflow/retry-stage.d.ts +3 -3
- package/dist/commands/tasks/workflow/start.d.ts +2 -2
- package/dist/commands/tasks/workflow-await.d.ts +5 -5
- package/dist/commands/tasks/workflow-context.d.ts +3 -3
- package/dist/commands/tasks/workflow-findings.d.ts +5 -5
- package/dist/commands/teams/list-channels.d.ts +3 -3
- package/dist/commands/teams/list-users.d.ts +4 -4
- package/dist/commands/teams/read-channel.d.ts +5 -5
- package/dist/commands/teams/read-thread.d.ts +6 -6
- package/dist/commands/teams/run.d.ts +5 -5
- package/dist/commands/teams/search.d.ts +5 -5
- package/dist/commands/teams/send-as-agent.d.ts +6 -6
- package/dist/commands/teams/tools.d.ts +2 -2
- package/dist/commands/token/list.d.ts +3 -3
- package/dist/commands/token/mint.d.ts +3 -3
- package/dist/commands/token/revoke.d.ts +2 -2
- package/dist/commands/tokens/create.d.ts +7 -7
- package/dist/commands/tokens/list.d.ts +2 -2
- package/dist/commands/tokens/revoke.d.ts +3 -3
- package/dist/commands/tones/apply.d.ts +4 -4
- package/dist/commands/tones/create.d.ts +11 -11
- package/dist/commands/tones/default.d.ts +3 -3
- package/dist/commands/tones/delete.d.ts +2 -2
- package/dist/commands/tones/export.d.ts +6 -6
- package/dist/commands/tones/import.d.ts +4 -4
- package/dist/commands/tones/list.d.ts +4 -4
- package/dist/commands/tones/policy/set.d.ts +8 -8
- package/dist/commands/tones/policy/show.d.ts +2 -2
- package/dist/commands/tones/show.d.ts +2 -2
- package/dist/commands/tones/update.d.ts +11 -11
- package/dist/commands/triggers/actions.d.ts +2 -2
- package/dist/commands/triggers/audit.d.ts +9 -9
- package/dist/commands/triggers/capabilities.d.ts +2 -2
- package/dist/commands/triggers/create.d.ts +73 -73
- package/dist/commands/triggers/delete.d.ts +3 -3
- package/dist/commands/triggers/disable.d.ts +2 -2
- package/dist/commands/triggers/enable.d.ts +2 -2
- package/dist/commands/triggers/event-catalog.d.ts +1 -1
- package/dist/commands/triggers/fire-detail.d.ts +3 -3
- package/dist/commands/triggers/fire.d.ts +4 -4
- package/dist/commands/triggers/list.d.ts +7 -7
- package/dist/commands/triggers/parse-intent.d.ts +8 -8
- package/dist/commands/triggers/preflight.d.ts +4 -4
- package/dist/commands/triggers/prune.d.ts +8 -8
- package/dist/commands/triggers/replay.d.ts +4 -4
- package/dist/commands/triggers/rotate-secret.d.ts +2 -2
- package/dist/commands/triggers/runs.d.ts +5 -5
- package/dist/commands/triggers/show.d.ts +2 -2
- package/dist/commands/triggers/update.d.ts +63 -63
- package/dist/commands/update.d.ts +5 -5
- package/dist/commands/usage.d.ts +3 -3
- package/dist/commands/views/create.d.ts +19 -19
- package/dist/commands/views/delete.d.ts +3 -3
- package/dist/commands/views/list.d.ts +1 -1
- package/dist/commands/views/show.d.ts +2 -2
- package/dist/commands/views/subscribe.d.ts +6 -6
- package/dist/commands/views/subscriptions.d.ts +2 -2
- package/dist/commands/views/unsubscribe.d.ts +2 -2
- package/dist/commands/views/update.d.ts +16 -16
- package/dist/commands/webhooks/create.d.ts +5 -5
- package/dist/commands/webhooks/delete.d.ts +2 -2
- package/dist/commands/webhooks/deliveries.d.ts +3 -3
- package/dist/commands/webhooks/list.d.ts +3 -3
- package/dist/commands/webhooks/test.d.ts +2 -2
- package/dist/commands/whoami.d.ts +1 -1
- package/dist/commands/widgets/add.d.ts +5 -5
- package/dist/commands/widgets/check.d.ts +5 -5
- package/dist/commands/widgets/list.d.ts +2 -2
- package/dist/commands/widgets/remove.d.ts +3 -3
- package/dist/commands/widgets/reorder.d.ts +4 -4
- package/dist/commands/widgets/revert.d.ts +4 -4
- package/dist/commands/widgets/save-as-app.d.ts +3 -3
- package/dist/commands/widgets/show.d.ts +3 -3
- package/dist/commands/widgets/update.d.ts +5 -5
- package/dist/commands/widgets/versions.d.ts +4 -4
- package/dist/commands/wiki/cat.d.ts +5 -5
- package/dist/commands/wiki/ls.d.ts +4 -4
- package/dist/commands/wiki/mkdir.d.ts +3 -3
- package/dist/commands/wiki/mv.d.ts +5 -5
- package/dist/commands/wiki/rm.d.ts +6 -6
- package/dist/commands/wiki/rmdir.d.ts +5 -5
- package/dist/commands/wiki/search.d.ts +4 -4
- package/dist/commands/wiki/tree.d.ts +3 -3
- package/dist/commands/wiki/update.d.ts +7 -7
- package/dist/commands/wiki/write.d.ts +9 -9
- package/dist/commands/work-views/create.d.ts +5 -5
- package/dist/commands/work-views/delete.d.ts +4 -4
- package/dist/commands/work-views/list.d.ts +1 -1
- package/dist/commands/work-views/result.d.ts +2 -2
- package/dist/commands/work-views/update.d.ts +6 -6
- package/dist/commands/worklog/list.d.ts +6 -6
- package/dist/commands/worklog/rm.d.ts +3 -3
- package/dist/commands/worklog/save.d.ts +8 -8
- package/dist/commands/worklog/search.d.ts +4 -4
- package/dist/commands/worklog/show.d.ts +3 -3
- package/dist/commands/worklog/stats.d.ts +2 -2
- package/dist/commands/worklog/update.d.ts +7 -7
- package/dist/commands/workspaces/attribution.d.ts +4 -4
- package/dist/commands/workspaces/audit.d.ts +8 -8
- package/dist/commands/workspaces/grants.d.ts +2 -2
- package/dist/commands/workspaces/list.d.ts +1 -1
- package/dist/commands/workspaces/members.d.ts +3 -3
- package/dist/commands/workspaces/stewardship.d.ts +3 -3
- package/dist/commands/workspaces/use.d.ts +3 -3
- package/dist/generated/managed-instruction-guides.json +2 -2
- package/dist/lib/agentic-stream.d.ts +5 -0
- package/dist/lib/agentic-stream.js +51 -2
- package/dist/lib/artifact-export.d.ts +8 -8
- package/dist/lib/channel-command-runners.d.ts +11 -11
- package/dist/lib/commerce-command.d.ts +2 -2
- package/dist/lib/commitment-endpoints.d.ts +1 -1
- package/dist/lib/computer-use.js +6 -1
- package/dist/lib/continuityPreferences.d.ts +3 -0
- package/dist/lib/continuityPreferences.js +42 -0
- package/dist/lib/dedicated-lease-command.d.ts +3 -3
- package/dist/lib/dedicated-service-command.d.ts +9 -9
- package/dist/lib/exec-runtime-binary.d.ts +1 -1
- package/dist/lib/exec-runtime-binary.js +3 -3
- package/dist/lib/first-party-harness-remote-install.d.ts +3 -3
- package/dist/lib/first-party-harness-remote-update.d.ts +3 -3
- package/dist/lib/followups.d.ts +1 -1
- package/dist/lib/label-scope.d.ts +3 -3
- package/dist/lib/list-output.d.ts +3 -3
- package/dist/lib/lookbackPlans.d.ts +14 -2
- package/dist/lib/lookbackPlans.js +34 -15
- package/dist/lib/member-output.d.ts +1 -1
- package/dist/lib/memory-scope.d.ts +3 -3
- package/dist/lib/proposal-decision-command.d.ts +7 -7
- package/dist/lib/publisher-profile-flags.d.ts +2 -2
- package/dist/lib/scoped-memory-command.d.ts +25 -25
- package/dist/lib/session-task-write.d.ts +1 -1
- package/dist/lib/space-custom-actions.d.ts +2 -2
- package/dist/lib/task-resolver.d.ts +8 -0
- package/dist/lib/task-resolver.js +18 -0
- package/dist/lib/write-target.d.ts +1 -1
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/aead.js +75 -59
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/authExpiredDetector.js +67 -80
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/authHelper.js +240 -294
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/cliHandoffWire.js +138 -165
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/commitmentExecutionContract.js +376 -492
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/computerUse.js +362 -330
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/computerWire.js +1106 -1235
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/configRoot.js +45 -59
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialEnvelope.js +135 -202
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialEnvelopeBridge.js +565 -888
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialResolver.js +277 -417
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/credentialSession.js +82 -103
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonPair.js +362 -459
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonScopes.js +58 -90
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonToolApproval.js +144 -205
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/daemonWire.js +554 -623
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dedicatedRuntimeBusyWire.js +113 -146
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dedicatedRuntimeWakeWire.js +86 -108
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/desktopWire.js +74 -40
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/deviceIdentityBridge.js +533 -730
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/deviceKey.js +214 -329
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/dpop.js +132 -162
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/fdToken.js +173 -220
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarness.js +322 -505
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarnessChannels.js +70 -146
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarnessHome.js +233 -343
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarnessReleaseKeys.js +33 -103
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/firstPartyHarnessUpdater.js +761 -863
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/githubPushRefusal.js +59 -41
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/harnessPermissionControls.js +64 -57
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/harnessSkillLayout.js +44 -91
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/harnessTrust.js +65 -110
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/headers-helper.js +228 -304
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/index.js +568 -446
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/jwtUtils.js +44 -56
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/index.js +145 -195
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/linux.js +361 -596
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/macos.js +332 -546
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/types.js +32 -40
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/windows.js +226 -330
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/kek/zeroize-registry.js +39 -54
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/legacyStatePreflight.js +117 -134
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/localIdentity.js +39 -56
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/loginLocalhost.js +216 -321
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/loginWithLocalhost.js +212 -337
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/loopbackHttp.js +214 -241
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/machineId.js +129 -212
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/machineUuid.js +265 -405
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/messages.js +51 -59
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/pkce.js +77 -145
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/profileStateDir.js +239 -344
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/recoveryCode.js +112 -190
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refresh.js +494 -953
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refreshClassification.js +79 -126
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/refreshScheduler.js +236 -310
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/releaseKeys.js +36 -92
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/releaseManifest.js +146 -283
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/releasePolicy.js +126 -151
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/releaseVersions.js +64 -41
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/restartArtifact.d.ts +10 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/restartArtifact.js +148 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/runtime.js +95 -109
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionPermissionAuthority.js +42 -39
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/sessionRevocation.js +370 -453
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/spawnEnv.js +178 -266
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/telemetryRedaction.js +149 -237
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/toolApprovalSignature.js +245 -339
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/toolOperationOutcome.d.ts +16 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/toolOperationOutcome.js +75 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/ttlParser.js +71 -83
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/types.js +51 -32
- package/dist/node_modules/@skrr-ai/auth-core/dist/cjs/workspaceIsolationProbeWire.js +45 -45
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/restartArtifact.d.ts +10 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/restartArtifact.js +138 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/toolOperationOutcome.d.ts +16 -0
- package/dist/node_modules/@skrr-ai/auth-core/dist/esm/toolOperationOutcome.js +40 -0
- package/dist/node_modules/@skrr-ai/auth-core/package.json +21 -1
- package/dist/node_modules/@skrr-ai/data-provider/index.js +19880 -27012
- package/dist/node_modules/@skrr-ai/data-provider/package.json +1 -1
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/contract.js +93 -141
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/index.js +57 -89
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/loopback-server.js +204 -262
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/managed-inference-broker.js +681 -1041
- package/dist/node_modules/@skrr-ai/inference-broker/dist/cjs/managed-inference-renewal.js +145 -286
- package/dist/node_modules/@skrr-ai/inference-broker/package.json +1 -1
- package/dist/signal-command.d.ts +5 -5
- package/docs/v1/lookback-plans.md +58 -0
- package/oclif.manifest.json +432 -2
- package/package.json +4 -5
|
@@ -1,1110 +1,750 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
*
|
|
47
|
-
* The broker is reached over a Unix socket, but its base URLs name
|
|
48
|
-
* {@link INFERENCE_BROKER_HOST}, and an engine that honours HTTP(S)_PROXY treats
|
|
49
|
-
* that name like any other host. On a Dedicated Runtime guest, which exports an
|
|
50
|
-
* egress proxy, Bun kept dialing the socket but wrote the request line in proxy
|
|
51
|
-
* form, and the broker refused every turn. The loopback server now accepts that
|
|
52
|
-
* form. This makes sure it is never produced: engine traffic to the synthetic host
|
|
53
|
-
* is not addressed to a proxy at all. A runtime that one day honours the proxy
|
|
54
|
-
* over `fetch({ unix })` would otherwise send the prompt to the egress proxy.
|
|
55
|
-
*
|
|
56
|
-
* Returns BOTH spellings, for layering LAST over the environment the child would
|
|
57
|
-
* otherwise receive (`env`), because tools disagree on which one they read and
|
|
58
|
-
* whether they fall back to the other:
|
|
59
|
-
*
|
|
60
|
-
* - existing entries keep their order, and the host is appended once;
|
|
61
|
-
* - a spelling that is unset (or empty) is seeded from the other one before the
|
|
62
|
-
* host is appended. Seeding only the host would silently drop every existing
|
|
63
|
-
* exemption for a tool that prefers the unset spelling, which today reads the
|
|
64
|
-
* other through its fallback;
|
|
65
|
-
* - a list that is `*` already exempts everything and is left alone, because
|
|
66
|
-
* some clients honour `*` only as the entire value.
|
|
67
|
-
*/
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var managed_inference_broker_exports = {};
|
|
20
|
+
__export(managed_inference_broker_exports, {
|
|
21
|
+
INFERENCE_BROKER_HOST: () => INFERENCE_BROKER_HOST,
|
|
22
|
+
INFERENCE_BROKER_ORIGIN: () => INFERENCE_BROKER_ORIGIN,
|
|
23
|
+
INFERENCE_BROKER_SOCKET_ENV: () => INFERENCE_BROKER_SOCKET_ENV,
|
|
24
|
+
MANAGED_PROMPT_CACHING_ENV: () => MANAGED_PROMPT_CACHING_ENV,
|
|
25
|
+
MANAGED_SESSION_ENV: () => MANAGED_SESSION_ENV,
|
|
26
|
+
MANAGED_STATUS_PATH: () => MANAGED_STATUS_PATH,
|
|
27
|
+
buildManagedInferenceRelayCredential: () => buildManagedInferenceRelayCredential,
|
|
28
|
+
classifyLeaseRenewalRefusal: () => classifyLeaseRenewalRefusal,
|
|
29
|
+
inferenceBrokerNoProxyEnv: () => inferenceBrokerNoProxyEnv,
|
|
30
|
+
isGatewayCredential: () => isGatewayCredential,
|
|
31
|
+
isManagedInferenceModelScope: () => isManagedInferenceModelScope,
|
|
32
|
+
managedClientModelId: () => managedClientModelId,
|
|
33
|
+
startManagedInferenceBroker: () => startManagedInferenceBroker
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(managed_inference_broker_exports);
|
|
36
|
+
var import_node_crypto = require("node:crypto");
|
|
37
|
+
var import_node_fs = require("node:fs");
|
|
38
|
+
var import_node_path = require("node:path");
|
|
39
|
+
var import_loopback_server = require("./loopback-server.js");
|
|
40
|
+
var import_contract = require("./contract.js");
|
|
41
|
+
var import_managed_inference_renewal = require("./managed-inference-renewal.js");
|
|
42
|
+
const MANAGED_STATUS_PATH = "/oversky/managed-status";
|
|
43
|
+
const INFERENCE_BROKER_ORIGIN = "http://oversky-inference-broker.invalid";
|
|
44
|
+
const INFERENCE_BROKER_HOST = new URL(INFERENCE_BROKER_ORIGIN).hostname;
|
|
45
|
+
const INFERENCE_BROKER_SOCKET_ENV = "OVERSKY_INFERENCE_BROKER_SOCKET";
|
|
68
46
|
function inferenceBrokerNoProxyEnv(env) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
47
|
+
const upper = nonEmpty(env.NO_PROXY);
|
|
48
|
+
const lower = nonEmpty(env.no_proxy);
|
|
49
|
+
return {
|
|
50
|
+
NO_PROXY: withInferenceBrokerHost(upper ?? lower ?? ""),
|
|
51
|
+
no_proxy: withInferenceBrokerHost(lower ?? upper ?? "")
|
|
52
|
+
};
|
|
75
53
|
}
|
|
76
54
|
function withInferenceBrokerHost(list) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
55
|
+
const entries = list.split(",").map((entry) => entry.trim().toLowerCase());
|
|
56
|
+
if (entries.includes("*") || entries.includes(INFERENCE_BROKER_HOST))
|
|
57
|
+
return list;
|
|
58
|
+
const kept = list.replace(/[\s,]+$/, "");
|
|
59
|
+
return kept ? `${kept},${INFERENCE_BROKER_HOST}` : INFERENCE_BROKER_HOST;
|
|
82
60
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const ALLOWED_PATHS = new Set([
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
61
|
+
const MANAGED_SESSION_ENV = "OVERSKY_MANAGED_SESSION";
|
|
62
|
+
const MANAGED_PROMPT_CACHING_ENV = "OVERSKY_MANAGED_PROMPT_CACHING";
|
|
63
|
+
const ALLOWED_PATHS = /* @__PURE__ */ new Set([
|
|
64
|
+
"/v1/messages",
|
|
65
|
+
"/messages",
|
|
66
|
+
"/v1/chat/completions",
|
|
67
|
+
"/chat/completions",
|
|
68
|
+
"/v1/responses",
|
|
69
|
+
"/responses"
|
|
92
70
|
]);
|
|
93
|
-
const ANTHROPIC_ALLOWED_PATHS = new Set([
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
71
|
+
const ANTHROPIC_ALLOWED_PATHS = /* @__PURE__ */ new Set([
|
|
72
|
+
"/v1/messages",
|
|
73
|
+
"/messages",
|
|
74
|
+
"/v1/chat/completions",
|
|
75
|
+
"/chat/completions"
|
|
98
76
|
]);
|
|
99
|
-
const OPENAI_COMPATIBLE_CHAT_PATHS = new Set([
|
|
100
|
-
const FORWARDED_HEADERS = new Set([
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
77
|
+
const OPENAI_COMPATIBLE_CHAT_PATHS = /* @__PURE__ */ new Set(["/v1/chat/completions", "/chat/completions"]);
|
|
78
|
+
const FORWARDED_HEADERS = /* @__PURE__ */ new Set([
|
|
79
|
+
"accept",
|
|
80
|
+
"content-type",
|
|
81
|
+
"anthropic-version",
|
|
82
|
+
"anthropic-beta",
|
|
83
|
+
"user-agent"
|
|
106
84
|
]);
|
|
107
85
|
function nonEmpty(value) {
|
|
108
|
-
|
|
86
|
+
return typeof value === "string" && value.trim().length > 0 ? value.trim() : null;
|
|
109
87
|
}
|
|
110
88
|
function managedClientModelId(scope) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
// the ACP model handshake must use the exact synthetic alias that the
|
|
116
|
-
// validated lease already binds to.
|
|
117
|
-
if (scope.upstreamProvider === 'bedrock' && scope.gatewayModelAlias.startsWith('bedrock/')) {
|
|
118
|
-
return scope.gatewayModelAlias;
|
|
119
|
-
}
|
|
120
|
-
return scope.harnessModelId;
|
|
89
|
+
if (scope.upstreamProvider === "bedrock" && scope.gatewayModelAlias.startsWith("bedrock/")) {
|
|
90
|
+
return scope.gatewayModelAlias;
|
|
91
|
+
}
|
|
92
|
+
return scope.harnessModelId;
|
|
121
93
|
}
|
|
122
|
-
/** True only for a concrete gateway descriptor; raw provider keys never enter this broker. */
|
|
123
94
|
function isGatewayCredential(value) {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
95
|
+
if (!value || typeof value !== "object")
|
|
96
|
+
return false;
|
|
97
|
+
const credential = value;
|
|
98
|
+
return Boolean(nonEmpty(credential.baseUrl) && nonEmpty(credential.authToken));
|
|
128
99
|
}
|
|
129
100
|
function isManagedInferenceModelScope(value) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
nonEmpty(scope.harnessModelId) &&
|
|
135
|
-
nonEmpty(scope.upstreamProvider) &&
|
|
136
|
-
nonEmpty(scope.gatewayModelAlias) &&
|
|
137
|
-
nonEmpty(scope.wireModel) === nonEmpty(scope.gatewayModelAlias) &&
|
|
138
|
-
nonEmpty(scope.policyVersion) &&
|
|
139
|
-
nonEmpty(scope.reservationId) &&
|
|
140
|
-
isManagedRequestEnvelope(scope.requestEnvelope) &&
|
|
141
|
-
isManagedInputTokenAccounting(scope.inputTokenAccounting) &&
|
|
142
|
-
managedAccountingMatchesProvider(scope.upstreamProvider, scope.inputTokenAccounting));
|
|
101
|
+
if (!value || typeof value !== "object")
|
|
102
|
+
return false;
|
|
103
|
+
const scope = value;
|
|
104
|
+
return Boolean(scope.version === 1 && nonEmpty(scope.harnessModelId) && nonEmpty(scope.upstreamProvider) && nonEmpty(scope.gatewayModelAlias) && nonEmpty(scope.wireModel) === nonEmpty(scope.gatewayModelAlias) && nonEmpty(scope.policyVersion) && nonEmpty(scope.reservationId) && isManagedRequestEnvelope(scope.requestEnvelope) && isManagedInputTokenAccounting(scope.inputTokenAccounting) && managedAccountingMatchesProvider(scope.upstreamProvider, scope.inputTokenAccounting));
|
|
143
105
|
}
|
|
144
106
|
function isManagedInputTokenAccounting(value) {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
accounting.mode === 'server_authoritative' &&
|
|
150
|
-
['openai_o200k_json_v1', 'utf8_bytes_json_v1'].includes(String(accounting.algorithm)));
|
|
107
|
+
if (!value || typeof value !== "object")
|
|
108
|
+
return false;
|
|
109
|
+
const accounting = value;
|
|
110
|
+
return Boolean(accounting.version === 1 && accounting.mode === "server_authoritative" && ["openai_o200k_json_v1", "utf8_bytes_json_v1"].includes(String(accounting.algorithm)));
|
|
151
111
|
}
|
|
152
112
|
function managedAccountingMatchesProvider(upstreamProvider, accounting) {
|
|
153
|
-
|
|
154
|
-
(['anthropic', 'openrouter', 'bedrock'].includes(String(upstreamProvider)) &&
|
|
155
|
-
accounting.algorithm === 'utf8_bytes_json_v1'));
|
|
113
|
+
return upstreamProvider === "openai" && accounting.algorithm === "openai_o200k_json_v1" || ["anthropic", "openrouter", "bedrock"].includes(String(upstreamProvider)) && accounting.algorithm === "utf8_bytes_json_v1";
|
|
156
114
|
}
|
|
157
|
-
/**
|
|
158
|
-
* Build the public, session-scoped OverSky relay from a non-secret server
|
|
159
|
-
* model contract. Current servers never deliver a LiteLLM virtual key to the
|
|
160
|
-
* daemon. The explicit return shape also discards any legacy `authToken` that
|
|
161
|
-
* an older server might include, while the public relay authenticates the
|
|
162
|
-
* already-issued `agst_` claim and retrieves the virtual key server-side.
|
|
163
|
-
*/
|
|
164
115
|
function buildManagedInferenceRelayCredential(credential, options) {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
};
|
|
116
|
+
const sessionId = nonEmpty(options.sessionId);
|
|
117
|
+
const sessionToken = nonEmpty(options.sessionToken);
|
|
118
|
+
if (!sessionId || !sessionToken?.startsWith("agst_")) {
|
|
119
|
+
throw new Error("managed inference relay requires a session-scoped capability");
|
|
120
|
+
}
|
|
121
|
+
let base;
|
|
122
|
+
try {
|
|
123
|
+
base = new URL(options.serverUrl);
|
|
124
|
+
} catch {
|
|
125
|
+
throw new Error("managed inference relay requires a valid skrr server URL");
|
|
126
|
+
}
|
|
127
|
+
if (base.protocol !== "https:" || base.username || base.password || base.search || base.hash) {
|
|
128
|
+
throw new Error("managed inference relay requires an authenticated HTTPS skrr server");
|
|
129
|
+
}
|
|
130
|
+
base.pathname = `/api/agentic/sessions/${encodeURIComponent(sessionId)}/inference`;
|
|
131
|
+
return {
|
|
132
|
+
source: "gateway-relay",
|
|
133
|
+
...credential.modelScope ? { modelScope: credential.modelScope } : {},
|
|
134
|
+
baseUrl: base.toString().replace(/\/$/, ""),
|
|
135
|
+
authToken: sessionToken
|
|
136
|
+
};
|
|
187
137
|
}
|
|
188
|
-
/**
|
|
189
|
-
* Start the daemon-local, request-envelope-constrained proxy.
|
|
190
|
-
*
|
|
191
|
-
* skrr Code is a multi-provider ACP runtime, so the child receives each dialect
|
|
192
|
-
* it may select: OpenAI/OpenRouter and Anthropic. Every credential variable
|
|
193
|
-
* contains the same daemon-local relay secret, never the LiteLLM virtual key.
|
|
194
|
-
* The first-party engine must use one of these supplied base URLs for managed
|
|
195
|
-
* execution; a failure to do so becomes an auth failure rather than a
|
|
196
|
-
* direct-provider fallback.
|
|
197
|
-
*/
|
|
198
138
|
async function startManagedInferenceBroker(options) {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
* duration: a duration recorded once and read later is wrong by however long the
|
|
231
|
-
* gap was, and a countdown that lies about the time left is worse than no
|
|
232
|
-
* countdown.
|
|
233
|
-
*/
|
|
234
|
-
const status = {
|
|
235
|
-
expiresAtMs: options.leaseExpiresInMs && options.leaseExpiresInMs > 0
|
|
236
|
-
? Date.now() + options.leaseExpiresInMs
|
|
237
|
-
: null,
|
|
238
|
-
spendUsd: null,
|
|
239
|
-
authorizedUsd: null,
|
|
240
|
-
renewals: 0,
|
|
139
|
+
const gatewayBase = nonEmpty(options.credential.baseUrl);
|
|
140
|
+
const gatewayKey = nonEmpty(options.credential.authToken);
|
|
141
|
+
const modelScope = isManagedInferenceModelScope(options.modelScope) ? options.modelScope : null;
|
|
142
|
+
const legacyModel = nonEmpty(options.model);
|
|
143
|
+
if (!gatewayBase || !gatewayKey || !modelScope && !legacyModel) {
|
|
144
|
+
throw new Error("managed inference broker requires gateway base URL, virtual key, and resolved model");
|
|
145
|
+
}
|
|
146
|
+
let origin;
|
|
147
|
+
try {
|
|
148
|
+
origin = new URL(gatewayBase).origin;
|
|
149
|
+
} catch {
|
|
150
|
+
throw new Error("managed inference broker received an invalid gateway base URL");
|
|
151
|
+
}
|
|
152
|
+
let relayToken = (0, import_node_crypto.randomBytes)(32).toString("base64url");
|
|
153
|
+
let upstreamKey = gatewayKey;
|
|
154
|
+
let renewal = null;
|
|
155
|
+
const status = {
|
|
156
|
+
expiresAtMs: options.leaseExpiresInMs && options.leaseExpiresInMs > 0 ? Date.now() + options.leaseExpiresInMs : null,
|
|
157
|
+
spendUsd: null,
|
|
158
|
+
authorizedUsd: null,
|
|
159
|
+
renewals: 0
|
|
160
|
+
};
|
|
161
|
+
const statusResponse = () => {
|
|
162
|
+
const payload = {
|
|
163
|
+
managed: true,
|
|
164
|
+
expiresInMs: status.expiresAtMs == null ? null : Math.max(0, status.expiresAtMs - Date.now()),
|
|
165
|
+
spendUsd: status.spendUsd,
|
|
166
|
+
authorizedUsd: status.authorizedUsd,
|
|
167
|
+
...status.budgetState ? { budgetState: status.budgetState } : {},
|
|
168
|
+
renewals: status.renewals,
|
|
169
|
+
...status.stopped ? { stopped: status.stopped } : {}
|
|
241
170
|
};
|
|
242
|
-
const
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
renewals: status.renewals,
|
|
250
|
-
...(status.stopped ? { stopped: status.stopped } : {}),
|
|
251
|
-
};
|
|
252
|
-
const encoded = new TextEncoder().encode(JSON.stringify(payload));
|
|
253
|
-
return {
|
|
254
|
-
status: 200,
|
|
255
|
-
headers: { 'content-type': 'application/json', 'cache-control': 'no-store' },
|
|
256
|
-
body: (async function* () {
|
|
257
|
-
yield encoded;
|
|
258
|
-
})(),
|
|
259
|
-
};
|
|
171
|
+
const encoded = new TextEncoder().encode(JSON.stringify(payload));
|
|
172
|
+
return {
|
|
173
|
+
status: 200,
|
|
174
|
+
headers: { "content-type": "application/json", "cache-control": "no-store" },
|
|
175
|
+
body: (async function* () {
|
|
176
|
+
yield encoded;
|
|
177
|
+
})()
|
|
260
178
|
};
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
179
|
+
};
|
|
180
|
+
const fetchImpl = options.fetchImpl ?? ((url, init) => fetch(url, init));
|
|
181
|
+
const envelope = modelScope?.requestEnvelope ?? null;
|
|
182
|
+
let activeRequests = 0;
|
|
183
|
+
let totalRequests = 0;
|
|
184
|
+
const requestStarts = [];
|
|
185
|
+
const acquireRequestSlot = () => {
|
|
186
|
+
if (!envelope)
|
|
187
|
+
return () => {
|
|
188
|
+
};
|
|
189
|
+
const now = Date.now();
|
|
190
|
+
while (requestStarts.length > 0 && requestStarts[0] <= now - 6e4)
|
|
191
|
+
requestStarts.shift();
|
|
192
|
+
if (activeRequests >= envelope.maxConcurrentRequests || totalRequests >= envelope.maxTotalRequests || requestStarts.length >= envelope.maxRequestsPerMinute) {
|
|
193
|
+
rejectManagedRequest("managed inference broker request rate or concurrency envelope exceeded");
|
|
194
|
+
}
|
|
195
|
+
activeRequests += 1;
|
|
196
|
+
totalRequests += 1;
|
|
197
|
+
requestStarts.push(now);
|
|
198
|
+
let released = false;
|
|
199
|
+
return () => {
|
|
200
|
+
if (released)
|
|
201
|
+
return;
|
|
202
|
+
released = true;
|
|
203
|
+
activeRequests -= 1;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
const readBudgetHeaders = (headers) => {
|
|
207
|
+
const verdict = headers.get("x-oversky-budget-state");
|
|
208
|
+
if (verdict === "ok" || verdict === "warn" || verdict === "exhausted") {
|
|
209
|
+
status.budgetState = verdict;
|
|
210
|
+
}
|
|
211
|
+
const usd = (name) => {
|
|
212
|
+
const raw = headers.get(name);
|
|
213
|
+
if (raw === null || raw.trim() === "")
|
|
214
|
+
return null;
|
|
215
|
+
const value = Number(raw);
|
|
216
|
+
return Number.isFinite(value) ? value : null;
|
|
287
217
|
};
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
218
|
+
const settled = usd("x-oversky-session-settled-usd");
|
|
219
|
+
if (settled !== null)
|
|
220
|
+
status.spendUsd = settled;
|
|
221
|
+
const authorized = usd("x-oversky-session-authorized-usd");
|
|
222
|
+
if (authorized !== null && authorized > 0)
|
|
223
|
+
status.authorizedUsd = authorized;
|
|
224
|
+
};
|
|
225
|
+
const forwarder = {
|
|
226
|
+
forward: async (request, { signal }) => {
|
|
227
|
+
if (request.path === MANAGED_STATUS_PATH) {
|
|
228
|
+
return statusResponse();
|
|
229
|
+
}
|
|
230
|
+
const releaseSlot = acquireRequestSlot();
|
|
231
|
+
const url = resolveGatewayUrl(gatewayBase, origin, request.path);
|
|
232
|
+
try {
|
|
233
|
+
const body = assertApprovedEnvelope(request.method, request.path, request.body, modelScope, legacyModel);
|
|
234
|
+
const headers = new Headers();
|
|
235
|
+
for (const [name, value] of Object.entries(request.headers)) {
|
|
236
|
+
if (FORWARDED_HEADERS.has(name.toLowerCase()))
|
|
237
|
+
headers.set(name, value);
|
|
300
238
|
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
239
|
+
headers.set("authorization", `Bearer ${upstreamKey}`);
|
|
240
|
+
const response = await fetchImpl(url.toString(), {
|
|
241
|
+
method: request.method,
|
|
242
|
+
headers,
|
|
243
|
+
body: body ? body : void 0,
|
|
244
|
+
signal,
|
|
245
|
+
duplex: "half",
|
|
246
|
+
redirect: "error"
|
|
247
|
+
});
|
|
248
|
+
readBudgetHeaders(response.headers);
|
|
249
|
+
return {
|
|
250
|
+
status: response.status,
|
|
251
|
+
headers: responseHeaders(response.headers),
|
|
252
|
+
body: responseBody(response, envelope?.maxResponseBytes, releaseSlot)
|
|
311
253
|
};
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
status.spendUsd = settled;
|
|
315
|
-
const authorized = usd('x-oversky-session-authorized-usd');
|
|
316
|
-
if (authorized !== null && authorized > 0)
|
|
317
|
-
status.authorizedUsd = authorized;
|
|
318
|
-
};
|
|
319
|
-
const forwarder = {
|
|
320
|
-
forward: async (request, { signal }) => {
|
|
321
|
-
// OSK-3893 (I5) — the supervised-session readout, answered LOCALLY.
|
|
322
|
-
//
|
|
323
|
-
// Intercepted here rather than added to the loopback server, so the
|
|
324
|
-
// transport keeps exactly one job (authenticate, read, forward) and the
|
|
325
|
-
// reserved path cannot be reached without the relay token that already
|
|
326
|
-
// guards every inference call.
|
|
327
|
-
//
|
|
328
|
-
// It consumes no request slot and never leaves the machine: the numbers were
|
|
329
|
-
// already fetched by the renewal heartbeat, which is a round-trip on the
|
|
330
|
-
// cadence a human readout wants anyway. A second polling surface would have
|
|
331
|
-
// been a second thing to authorize and revoke.
|
|
332
|
-
if (request.path === exports.MANAGED_STATUS_PATH) {
|
|
333
|
-
return statusResponse();
|
|
334
|
-
}
|
|
335
|
-
const releaseSlot = acquireRequestSlot();
|
|
336
|
-
const url = resolveGatewayUrl(gatewayBase, origin, request.path);
|
|
337
|
-
try {
|
|
338
|
-
const body = assertApprovedEnvelope(request.method, request.path, request.body, modelScope, legacyModel);
|
|
339
|
-
const headers = new Headers();
|
|
340
|
-
for (const [name, value] of Object.entries(request.headers)) {
|
|
341
|
-
if (FORWARDED_HEADERS.has(name.toLowerCase()))
|
|
342
|
-
headers.set(name, value);
|
|
343
|
-
}
|
|
344
|
-
headers.set('authorization', `Bearer ${upstreamKey}`);
|
|
345
|
-
const response = await fetchImpl(url.toString(), {
|
|
346
|
-
method: request.method,
|
|
347
|
-
headers,
|
|
348
|
-
body: body ? body : undefined,
|
|
349
|
-
signal,
|
|
350
|
-
duplex: 'half',
|
|
351
|
-
redirect: 'error',
|
|
352
|
-
});
|
|
353
|
-
// OSK-3932 — learn the money from the response the session just made.
|
|
354
|
-
//
|
|
355
|
-
// The readout used to arrive only on the renewal heartbeat, and a read of
|
|
356
|
-
// dev found `renewalCount: 0` on every interactive reservation: sessions
|
|
357
|
-
// end in ~44-60s while the first heartbeat is armed at 72s. So the status
|
|
358
|
-
// this broker serves was, in practice, never populated with a figure at
|
|
359
|
-
// all. Every inference call carries one now, which is the one channel a
|
|
360
|
-
// session cannot be too short to use.
|
|
361
|
-
readBudgetHeaders(response.headers);
|
|
362
|
-
return {
|
|
363
|
-
status: response.status,
|
|
364
|
-
headers: responseHeaders(response.headers),
|
|
365
|
-
body: responseBody(response, envelope?.maxResponseBytes, releaseSlot),
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
catch (error) {
|
|
369
|
-
releaseSlot();
|
|
370
|
-
throw error;
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
};
|
|
374
|
-
if (process.platform === 'win32') {
|
|
375
|
-
throw new Error('managed inference broker requires a verified local IPC transport on Windows');
|
|
376
|
-
}
|
|
377
|
-
// Keep below Unix-domain socket path limits even on macOS where os.tmpdir()
|
|
378
|
-
// can be deeply nested. The random mkdtemp directory is private to this
|
|
379
|
-
// daemon process; the socket itself is chmod 0600 by the listener.
|
|
380
|
-
const socketDirectory = (0, node_fs_1.mkdtempSync)('/tmp/oversky-inference-');
|
|
381
|
-
const sharedSocketGroup = Number.isSafeInteger(options.socketGroupId);
|
|
382
|
-
if (sharedSocketGroup) {
|
|
383
|
-
(0, node_fs_1.chownSync)(socketDirectory, typeof process.getuid === 'function' ? process.getuid() : -1, options.socketGroupId);
|
|
384
|
-
}
|
|
385
|
-
(0, node_fs_1.chmodSync)(socketDirectory, sharedSocketGroup ? 0o750 : 0o700);
|
|
386
|
-
const socketPath = (0, node_path_1.join)(socketDirectory, 'broker.sock');
|
|
387
|
-
const server = new loopback_server_js_1.ModelProxyLoopbackServer({
|
|
388
|
-
relayToken,
|
|
389
|
-
forwarder,
|
|
390
|
-
socketPath,
|
|
391
|
-
...(sharedSocketGroup ? { socketGroupId: options.socketGroupId } : {}),
|
|
392
|
-
advertisedBaseUrl: exports.INFERENCE_BROKER_ORIGIN,
|
|
393
|
-
...(envelope ? { maxBodyBytes: envelope.maxInputBytes } : {}),
|
|
394
|
-
});
|
|
395
|
-
try {
|
|
396
|
-
await server.start();
|
|
397
|
-
}
|
|
398
|
-
catch (error) {
|
|
399
|
-
(0, node_fs_1.rmSync)(socketDirectory, { recursive: true, force: true });
|
|
254
|
+
} catch (error) {
|
|
255
|
+
releaseSlot();
|
|
400
256
|
throw error;
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
renew: async ({ renewalId }) => {
|
|
464
|
-
const response = await fetchImpl(renewUrl, {
|
|
465
|
-
method: 'POST',
|
|
466
|
-
headers: {
|
|
467
|
-
Authorization: `Bearer ${upstreamKey}`,
|
|
468
|
-
'Content-Type': 'application/json',
|
|
469
|
-
},
|
|
470
|
-
body: JSON.stringify({ model: renewModel, renewalId }),
|
|
471
|
-
});
|
|
472
|
-
if (response.ok) {
|
|
473
|
-
const payload = (await response.json().catch(() => ({})));
|
|
474
|
-
// Absolute instant, and only from fields the server actually sent —
|
|
475
|
-
// `?? null` rather than `?? 0`, because "not reported" must stay
|
|
476
|
-
// distinguishable from "zero spent" all the way to the screen.
|
|
477
|
-
if (typeof payload.expiresInMs === 'number') {
|
|
478
|
-
status.expiresAtMs = Date.now() + payload.expiresInMs;
|
|
479
|
-
}
|
|
480
|
-
if (payload.budgetState === 'ok' ||
|
|
481
|
-
payload.budgetState === 'warn' ||
|
|
482
|
-
payload.budgetState === 'exhausted') {
|
|
483
|
-
status.budgetState = payload.budgetState;
|
|
484
|
-
}
|
|
485
|
-
if (typeof payload.spendUsd === 'number')
|
|
486
|
-
status.spendUsd = payload.spendUsd;
|
|
487
|
-
if (typeof payload.authorizedUsd === 'number') {
|
|
488
|
-
status.authorizedUsd = payload.authorizedUsd;
|
|
489
|
-
}
|
|
490
|
-
status.renewals =
|
|
491
|
-
typeof payload.renewalCount === 'number' ? payload.renewalCount : status.renewals + 1;
|
|
492
|
-
return { ok: true, expiresInMs: payload.expiresInMs };
|
|
493
|
-
}
|
|
494
|
-
return classifyLeaseRenewalRefusal(response);
|
|
495
|
-
},
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
if (process.platform === "win32") {
|
|
261
|
+
throw new Error("managed inference broker requires a verified local IPC transport on Windows");
|
|
262
|
+
}
|
|
263
|
+
const socketDirectory = (0, import_node_fs.mkdtempSync)("/tmp/oversky-inference-");
|
|
264
|
+
const sharedSocketGroup = Number.isSafeInteger(options.socketGroupId);
|
|
265
|
+
if (sharedSocketGroup) {
|
|
266
|
+
(0, import_node_fs.chownSync)(socketDirectory, typeof process.getuid === "function" ? process.getuid() : -1, options.socketGroupId);
|
|
267
|
+
}
|
|
268
|
+
(0, import_node_fs.chmodSync)(socketDirectory, sharedSocketGroup ? 488 : 448);
|
|
269
|
+
const socketPath = (0, import_node_path.join)(socketDirectory, "broker.sock");
|
|
270
|
+
const server = new import_loopback_server.ModelProxyLoopbackServer({
|
|
271
|
+
relayToken,
|
|
272
|
+
forwarder,
|
|
273
|
+
socketPath,
|
|
274
|
+
...sharedSocketGroup ? { socketGroupId: options.socketGroupId } : {},
|
|
275
|
+
advertisedBaseUrl: INFERENCE_BROKER_ORIGIN,
|
|
276
|
+
...envelope ? { maxBodyBytes: envelope.maxInputBytes } : {}
|
|
277
|
+
});
|
|
278
|
+
try {
|
|
279
|
+
await server.start();
|
|
280
|
+
} catch (error) {
|
|
281
|
+
(0, import_node_fs.rmSync)(socketDirectory, { recursive: true, force: true });
|
|
282
|
+
throw error;
|
|
283
|
+
}
|
|
284
|
+
let stopped = false;
|
|
285
|
+
if (options.leaseExpiresInMs && options.leaseExpiresInMs > 0) {
|
|
286
|
+
const renewUrl = `${gatewayBase.replace(/\/+$/, "")}/renew`;
|
|
287
|
+
const renewModel = modelScope?.gatewayModelAlias ?? legacyModel;
|
|
288
|
+
const refreshCapability = options.refreshCapability;
|
|
289
|
+
renewal = (0, import_managed_inference_renewal.startRenewalLoop)({
|
|
290
|
+
initialExpiresInMs: options.leaseExpiresInMs,
|
|
291
|
+
...options.capabilityExpiresAtMs && refreshCapability ? {
|
|
292
|
+
capabilityExpiresAtMs: options.capabilityExpiresAtMs,
|
|
293
|
+
refreshCapability: async () => {
|
|
294
|
+
const outcome = await refreshCapability();
|
|
295
|
+
if (!outcome.ok)
|
|
296
|
+
return outcome;
|
|
297
|
+
const token = nonEmpty(outcome.token);
|
|
298
|
+
if (!token) {
|
|
299
|
+
return { ok: false, reason: "capability refresh returned no token" };
|
|
300
|
+
}
|
|
301
|
+
if (stopped)
|
|
302
|
+
return { ok: false, reason: "managed session stopped" };
|
|
303
|
+
upstreamKey = token;
|
|
304
|
+
return outcome;
|
|
305
|
+
}
|
|
306
|
+
} : {},
|
|
307
|
+
onStop: (reason, detail) => {
|
|
308
|
+
status.stopped = { reason, ...detail ? { detail } : {} };
|
|
309
|
+
options.onLeaseRenewalStopped?.(reason, detail);
|
|
310
|
+
},
|
|
311
|
+
renew: async ({ renewalId }) => {
|
|
312
|
+
const response = await fetchImpl(renewUrl, {
|
|
313
|
+
method: "POST",
|
|
314
|
+
headers: {
|
|
315
|
+
Authorization: `Bearer ${upstreamKey}`,
|
|
316
|
+
"Content-Type": "application/json"
|
|
317
|
+
},
|
|
318
|
+
body: JSON.stringify({ model: renewModel, renewalId })
|
|
496
319
|
});
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
320
|
+
if (response.ok) {
|
|
321
|
+
const payload = await response.json().catch(() => ({}));
|
|
322
|
+
if (typeof payload.expiresInMs === "number") {
|
|
323
|
+
status.expiresAtMs = Date.now() + payload.expiresInMs;
|
|
324
|
+
}
|
|
325
|
+
if (payload.budgetState === "ok" || payload.budgetState === "warn" || payload.budgetState === "exhausted") {
|
|
326
|
+
status.budgetState = payload.budgetState;
|
|
327
|
+
}
|
|
328
|
+
if (typeof payload.spendUsd === "number")
|
|
329
|
+
status.spendUsd = payload.spendUsd;
|
|
330
|
+
if (typeof payload.authorizedUsd === "number") {
|
|
331
|
+
status.authorizedUsd = payload.authorizedUsd;
|
|
332
|
+
}
|
|
333
|
+
status.renewals = typeof payload.renewalCount === "number" ? payload.renewalCount : status.renewals + 1;
|
|
334
|
+
return { ok: true, expiresInMs: payload.expiresInMs };
|
|
335
|
+
}
|
|
336
|
+
return classifyLeaseRenewalRefusal(response);
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
return {
|
|
341
|
+
env: {
|
|
342
|
+
OPENAI_BASE_URL: INFERENCE_BROKER_ORIGIN,
|
|
343
|
+
OPENAI_API_KEY: relayToken,
|
|
344
|
+
// skrr Code's existing multi-provider adapter uses the OpenRouter key
|
|
345
|
+
// name. Pointing both dialect variables at the loopback avoids falling
|
|
346
|
+
// back to an inherited operator credential.
|
|
347
|
+
OPENROUTER_BASE_URL: INFERENCE_BROKER_ORIGIN,
|
|
348
|
+
OPENROUTER_API_KEY: relayToken,
|
|
349
|
+
// Bedrock is reached only through LiteLLM's reviewed OpenAI-compatible
|
|
350
|
+
// alias. These are daemon-local relay values, never AWS credentials.
|
|
351
|
+
BEDROCK_BASE_URL: INFERENCE_BROKER_ORIGIN,
|
|
352
|
+
BEDROCK_API_KEY: relayToken,
|
|
353
|
+
// Claude's native Messages adapter does not consult either OpenAI
|
|
354
|
+
// variable. ANTHROPIC_AUTH_TOKEN makes it send the same short-lived
|
|
355
|
+
// Bearer capability that ModelProxyLoopbackServer validates.
|
|
356
|
+
ANTHROPIC_BASE_URL: INFERENCE_BROKER_ORIGIN,
|
|
357
|
+
ANTHROPIC_AUTH_TOKEN: relayToken,
|
|
358
|
+
[INFERENCE_BROKER_SOCKET_ENV]: socketPath,
|
|
359
|
+
[MANAGED_SESSION_ENV]: "1",
|
|
360
|
+
...modelScope?.requestEnvelope.allowPromptCaching && supportsManagedPromptCaching(modelScope) ? { [MANAGED_PROMPT_CACHING_ENV]: "1" } : {}
|
|
361
|
+
},
|
|
362
|
+
socketPath,
|
|
363
|
+
...modelScope ? { clientModelId: managedClientModelId(modelScope) } : {},
|
|
364
|
+
...envelope ? {
|
|
365
|
+
reasoningPolicy: {
|
|
366
|
+
allowedEfforts: [...envelope.allowedReasoningEfforts],
|
|
367
|
+
defaultEffort: envelope.defaultReasoningEffort ?? envelope.allowedReasoningEfforts[0],
|
|
368
|
+
...envelope.selectedReasoningEffort ? { requestedEffort: envelope.selectedReasoningEffort } : {},
|
|
369
|
+
...envelope.reasoningSelectionSource ? { selectionSource: envelope.reasoningSelectionSource } : {}
|
|
370
|
+
}
|
|
371
|
+
} : {},
|
|
372
|
+
async stop() {
|
|
373
|
+
if (stopped)
|
|
374
|
+
return;
|
|
375
|
+
stopped = true;
|
|
376
|
+
renewal?.stop();
|
|
377
|
+
await server.stop();
|
|
378
|
+
(0, import_node_fs.rmSync)(socketDirectory, { recursive: true, force: true });
|
|
379
|
+
relayToken = "";
|
|
380
|
+
upstreamKey = "";
|
|
381
|
+
}
|
|
382
|
+
};
|
|
554
383
|
}
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
* `POST <relay>/renew` answers this BEFORE it extends the gateway key, which is
|
|
559
|
-
* what makes it distinguishable at all: every other refusal that route can produce
|
|
560
|
-
* arrives as `lease-denied`, and that code covers revoked, reaped and spent
|
|
561
|
-
* identically. Matched exactly rather than by prefix — an unrecognised 4xx still
|
|
562
|
-
* stops the loop, just with the more cautious sentence.
|
|
563
|
-
*/
|
|
564
|
-
const LEASE_CEILING_CODE = 'lease-ceiling-reached';
|
|
565
|
-
/**
|
|
566
|
-
* The two money refusals (OSK-3932). Separate constants rather than a prefix
|
|
567
|
-
* match, for the same reason the ceiling is matched exactly: an unrecognised
|
|
568
|
-
* code must still stop the loop, just with the more cautious sentence.
|
|
569
|
-
*
|
|
570
|
-
* They differ in ONE respect that reaches the user — whether a `resetAt`
|
|
571
|
-
* accompanies them — so the classifier treats them alike and the message layer
|
|
572
|
-
* does not.
|
|
573
|
-
*/
|
|
574
|
-
const SESSION_BUDGET_CODE = 'session-budget-exhausted';
|
|
575
|
-
/**
|
|
576
|
-
* RESERVED, not currently emitted. The server deleted this refusal in
|
|
577
|
-
* `77d3b26187` because the quantity behind it — `hardUsd - spentUsd -
|
|
578
|
-
* reservedUsd` — is the NEW-ADMISSION question, and asking it of a live session
|
|
579
|
-
* would have terminated one admitted at an exact fit, on a bucket
|
|
580
|
-
* (`provider_model`) whose scope key carries no tenant and is therefore shared
|
|
581
|
-
* fleet-wide.
|
|
582
|
-
*
|
|
583
|
-
* Kept because the classifier must not regress if renewal ever claims new money
|
|
584
|
-
* (S3), and because a client that meets an unknown 402 falls through to the
|
|
585
|
-
* generic `denied` sentence, which is the wrong one for a budget. Costs one
|
|
586
|
-
* comparison; removing it would be a wire regression waiting to happen.
|
|
587
|
-
*/
|
|
588
|
-
const ACCOUNT_BUDGET_CODE = 'account-budget-exhausted';
|
|
589
|
-
/**
|
|
590
|
-
* Classify a NON-OK lease renewal response.
|
|
591
|
-
*
|
|
592
|
-
* Exported (though not re-exported from the package index) so a test can drive
|
|
593
|
-
* the loop's schedule against the server's ACTUAL wire shapes rather than against
|
|
594
|
-
* an injected outcome — which is the only way the interaction between the two
|
|
595
|
-
* schedules is testable at all, and a test that injects the outcome would have
|
|
596
|
-
* been green through the defect this exists to close.
|
|
597
|
-
*
|
|
598
|
-
* The status CLASS still decides everything else, deliberately: 4xx is a decision
|
|
599
|
-
* and 5xx is the dependency, and parsing server prose to tell them apart is a job
|
|
600
|
-
* the daemon should not have. The one exception is the ceiling, which is the
|
|
601
|
-
* refusal a supervised session is EXPECTED to end on and therefore the one whose
|
|
602
|
-
* sentence has to differ.
|
|
603
|
-
*/
|
|
384
|
+
const LEASE_CEILING_CODE = "lease-ceiling-reached";
|
|
385
|
+
const SESSION_BUDGET_CODE = "session-budget-exhausted";
|
|
386
|
+
const ACCOUNT_BUDGET_CODE = "account-budget-exhausted";
|
|
604
387
|
async function classifyLeaseRenewalRefusal(response) {
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
return {
|
|
608
|
-
ok: false,
|
|
609
|
-
ceiling: true,
|
|
610
|
-
// The INSTANT rather than the code, and only here: the user knows which
|
|
611
|
-
// rule fired — they want to know when their window ended.
|
|
612
|
-
reason: refusal.maxExpiresAt
|
|
613
|
-
? `authorized through ${refusal.maxExpiresAt}`
|
|
614
|
-
: LEASE_CEILING_CODE,
|
|
615
|
-
};
|
|
616
|
-
}
|
|
617
|
-
// The MONEY, matched before the generic 4xx fallthrough for exactly the reason
|
|
618
|
-
// the ceiling is: both would otherwise arrive as `denied`, which covers
|
|
619
|
-
// revoked, reaped and spent identically and would tell a user whose budget ran
|
|
620
|
-
// out to go looking for a fault in their access.
|
|
621
|
-
if (refusal.code === SESSION_BUDGET_CODE || refusal.code === ACCOUNT_BUDGET_CODE) {
|
|
622
|
-
return {
|
|
623
|
-
ok: false,
|
|
624
|
-
exhausted: true,
|
|
625
|
-
// Carried only when the server sent one. A session's own authorization
|
|
626
|
-
// never comes back, so inventing a time here would be the one wrong
|
|
627
|
-
// answer that sounds reassuring.
|
|
628
|
-
...(refusal.resetAt ? { resetAt: refusal.resetAt } : {}),
|
|
629
|
-
reason: refusal.code,
|
|
630
|
-
};
|
|
631
|
-
}
|
|
632
|
-
const denied = response.status >= 400 && response.status < 500;
|
|
388
|
+
const refusal = await readRenewalRefusal(response);
|
|
389
|
+
if (refusal.code === LEASE_CEILING_CODE) {
|
|
633
390
|
return {
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
391
|
+
ok: false,
|
|
392
|
+
ceiling: true,
|
|
393
|
+
// The INSTANT rather than the code, and only here: the user knows which
|
|
394
|
+
// rule fired — they want to know when their window ended.
|
|
395
|
+
reason: refusal.maxExpiresAt ? `authorized through ${refusal.maxExpiresAt}` : LEASE_CEILING_CODE
|
|
637
396
|
};
|
|
397
|
+
}
|
|
398
|
+
if (refusal.code === SESSION_BUDGET_CODE || refusal.code === ACCOUNT_BUDGET_CODE) {
|
|
399
|
+
return {
|
|
400
|
+
ok: false,
|
|
401
|
+
exhausted: true,
|
|
402
|
+
// Carried only when the server sent one. A session's own authorization
|
|
403
|
+
// never comes back, so inventing a time here would be the one wrong
|
|
404
|
+
// answer that sounds reassuring.
|
|
405
|
+
...refusal.resetAt ? { resetAt: refusal.resetAt } : {},
|
|
406
|
+
reason: refusal.code
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
const denied = response.status >= 400 && response.status < 500;
|
|
410
|
+
return {
|
|
411
|
+
ok: false,
|
|
412
|
+
denied,
|
|
413
|
+
reason: refusal.code ?? `renewal HTTP ${response.status}`
|
|
414
|
+
};
|
|
638
415
|
}
|
|
639
|
-
/**
|
|
640
|
-
* Read `{error: {code}, maxExpiresAt}` without letting a hostile or huge body
|
|
641
|
-
* matter, and without letting a malformed one throw on a teardown-adjacent path.
|
|
642
|
-
*/
|
|
643
416
|
async function readRenewalRefusal(response) {
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
catch {
|
|
659
|
-
return {};
|
|
660
|
-
}
|
|
417
|
+
try {
|
|
418
|
+
const raw = (await response.text()).slice(0, 2048);
|
|
419
|
+
const parsed = JSON.parse(raw);
|
|
420
|
+
const code = parsed?.error?.code;
|
|
421
|
+
const maxExpiresAt = parsed?.maxExpiresAt;
|
|
422
|
+
const resetAt = parsed?.resetAt;
|
|
423
|
+
return {
|
|
424
|
+
...typeof code === "string" && code ? { code } : {},
|
|
425
|
+
...typeof maxExpiresAt === "string" && maxExpiresAt ? { maxExpiresAt } : {},
|
|
426
|
+
...typeof resetAt === "string" && resetAt ? { resetAt } : {}
|
|
427
|
+
};
|
|
428
|
+
} catch {
|
|
429
|
+
return {};
|
|
430
|
+
}
|
|
661
431
|
}
|
|
662
432
|
function resolveGatewayUrl(base, allowedOrigin, path) {
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
!url.pathname.endsWith('/v1/chat/completions') &&
|
|
681
|
-
!url.pathname.endsWith('/v1/responses'))) {
|
|
682
|
-
rejectManagedRequest('managed inference broker denied an unapproved upstream route');
|
|
683
|
-
}
|
|
684
|
-
return url;
|
|
433
|
+
let url;
|
|
434
|
+
try {
|
|
435
|
+
const parsedBase = new URL(base);
|
|
436
|
+
const canonicalPath = path.startsWith("/v1/") ? path : `/v1${path}`;
|
|
437
|
+
const basePath = parsedBase.pathname.replace(/\/$/, "");
|
|
438
|
+
const suffix = basePath.endsWith("/v1") ? canonicalPath.slice(3) : canonicalPath;
|
|
439
|
+
parsedBase.pathname = `${basePath}${suffix}`;
|
|
440
|
+
parsedBase.search = "";
|
|
441
|
+
parsedBase.hash = "";
|
|
442
|
+
url = parsedBase;
|
|
443
|
+
} catch {
|
|
444
|
+
rejectManagedRequest("managed inference broker received an invalid request path");
|
|
445
|
+
}
|
|
446
|
+
if (url.origin !== allowedOrigin || !ALLOWED_PATHS.has(path) || !url.pathname.endsWith("/v1/messages") && !url.pathname.endsWith("/v1/chat/completions") && !url.pathname.endsWith("/v1/responses")) {
|
|
447
|
+
rejectManagedRequest("managed inference broker denied an unapproved upstream route");
|
|
448
|
+
}
|
|
449
|
+
return url;
|
|
685
450
|
}
|
|
686
451
|
function assertApprovedEnvelope(method, path, body, modelScope, legacyModel) {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
const
|
|
711
|
-
if (
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
const clientModelId = providerLocalModelId(modelScope.harnessModelId);
|
|
727
|
-
const approved = constantTimeStringEqual(requestedModel, modelScope.harnessModelId) ||
|
|
728
|
-
constantTimeStringEqual(requestedModel, modelScope.gatewayModelAlias) ||
|
|
729
|
-
(clientModelId !== null && constantTimeStringEqual(requestedModel, clientModelId));
|
|
730
|
-
if (!approved) {
|
|
731
|
-
rejectManagedRequest('managed inference broker denied a model outside the approved lease');
|
|
732
|
-
}
|
|
733
|
-
// The child speaks in its harness namespace. The virtual key and LiteLLM
|
|
734
|
-
// route are scoped in the gateway namespace, so make that translation in
|
|
735
|
-
// the trusted daemon and guarantee the upstream always sees the alias the
|
|
736
|
-
// key was actually minted for.
|
|
737
|
-
payload.model = modelScope.wireModel;
|
|
738
|
-
enforceRequestEnvelope(payload, path, modelScope.requestEnvelope, modelScope);
|
|
739
|
-
const sanitized = new TextEncoder().encode(JSON.stringify(payload));
|
|
740
|
-
if (sanitized.byteLength > modelScope.requestEnvelope.maxInputBytes) {
|
|
741
|
-
rejectManagedRequest('managed inference broker input byte envelope exceeded');
|
|
742
|
-
}
|
|
743
|
-
return sanitized;
|
|
744
|
-
}
|
|
745
|
-
if (!legacyModel || !constantTimeStringEqual(requestedModel, legacyModel)) {
|
|
746
|
-
rejectManagedRequest('managed inference broker denied a model outside the approved lease');
|
|
747
|
-
}
|
|
748
|
-
return body;
|
|
452
|
+
if (method.toUpperCase() !== "POST" || !ALLOWED_PATHS.has(path)) {
|
|
453
|
+
rejectManagedRequest("managed inference broker denied an unapproved request method or route");
|
|
454
|
+
}
|
|
455
|
+
if (!body)
|
|
456
|
+
rejectManagedRequest("managed inference broker requires a model request body");
|
|
457
|
+
if (modelScope && body.byteLength > modelScope.requestEnvelope.maxInputBytes) {
|
|
458
|
+
rejectManagedRequest("managed inference broker input byte envelope exceeded");
|
|
459
|
+
}
|
|
460
|
+
let payload;
|
|
461
|
+
try {
|
|
462
|
+
payload = JSON.parse(new TextDecoder().decode(body));
|
|
463
|
+
} catch {
|
|
464
|
+
rejectManagedRequest("managed inference broker requires a JSON model request");
|
|
465
|
+
}
|
|
466
|
+
if (!payload || typeof payload !== "object") {
|
|
467
|
+
rejectManagedRequest("managed inference broker denied a model outside the approved lease");
|
|
468
|
+
}
|
|
469
|
+
const requestedModel = payload.model;
|
|
470
|
+
if (modelScope) {
|
|
471
|
+
if (modelScope.upstreamProvider === "anthropic" && !ANTHROPIC_ALLOWED_PATHS.has(path) || modelScope.upstreamProvider === "bedrock" && !OPENAI_COMPATIBLE_CHAT_PATHS.has(path) || !["anthropic", "bedrock"].includes(modelScope.upstreamProvider) && path.endsWith("/messages")) {
|
|
472
|
+
rejectManagedRequest("managed inference broker denied a route outside the provider dialect");
|
|
473
|
+
}
|
|
474
|
+
const clientModelId = providerLocalModelId(modelScope.harnessModelId);
|
|
475
|
+
const approved = constantTimeStringEqual(requestedModel, modelScope.harnessModelId) || constantTimeStringEqual(requestedModel, modelScope.gatewayModelAlias) || clientModelId !== null && constantTimeStringEqual(requestedModel, clientModelId);
|
|
476
|
+
if (!approved) {
|
|
477
|
+
rejectManagedRequest("managed inference broker denied a model outside the approved lease");
|
|
478
|
+
}
|
|
479
|
+
payload.model = modelScope.wireModel;
|
|
480
|
+
enforceRequestEnvelope(payload, path, modelScope.requestEnvelope, modelScope);
|
|
481
|
+
const sanitized = new TextEncoder().encode(JSON.stringify(payload));
|
|
482
|
+
if (sanitized.byteLength > modelScope.requestEnvelope.maxInputBytes) {
|
|
483
|
+
rejectManagedRequest("managed inference broker input byte envelope exceeded");
|
|
484
|
+
}
|
|
485
|
+
return sanitized;
|
|
486
|
+
}
|
|
487
|
+
if (!legacyModel || !constantTimeStringEqual(requestedModel, legacyModel)) {
|
|
488
|
+
rejectManagedRequest("managed inference broker denied a model outside the approved lease");
|
|
489
|
+
}
|
|
490
|
+
return body;
|
|
749
491
|
}
|
|
750
492
|
function enforceRequestEnvelope(payload, path, envelope, modelScope) {
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
rejectManagedRequest(
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
: undefined;
|
|
811
|
-
const anthropicOutputConfig = isPlainObject(payload.output_config)
|
|
812
|
-
? payload.output_config
|
|
813
|
-
: null;
|
|
814
|
-
const anthropicEffort = anthropicOutputConfig?.effort;
|
|
815
|
-
// Whether the pin is AUTHORITY or merely a DEFAULT, and the difference is the
|
|
816
|
-
// whole reason a managed `skrr code` session could not complete a single turn.
|
|
817
|
-
//
|
|
818
|
-
// `selectedReasoningEffort` has two provenances and the envelope has always
|
|
819
|
-
// recorded which (`reasoningSelectionSource`) — it was read for reporting and
|
|
820
|
-
// ignored here. When the caller ASKED for an effort, admission priced that
|
|
821
|
-
// request and the reservation is authority: a later request naming a
|
|
822
|
-
// different one is trying to change what was authorized, and is refused.
|
|
823
|
-
//
|
|
824
|
-
// When it came from `policy_default`, nobody asked for anything. The server
|
|
825
|
-
// filled a blank, and refusing the engine's own choice enforces a preference
|
|
826
|
-
// the platform invented. That is what happened: the interactive admit sends
|
|
827
|
-
// no effort at all, so every supervised reservation pinned dev's
|
|
828
|
-
// `defaultReasoningEffort: 'low'`, and every request the engine made carried
|
|
829
|
-
// its own model default and was denied. Deterministic, not a race — no retry
|
|
830
|
-
// could help, and the CLI had no way to declare an effort in the first place.
|
|
831
|
-
//
|
|
832
|
-
// Cost is still bounded, and not by this check: `allowedReasoningEfforts`
|
|
833
|
-
// gates the value just above, `maxReasoningTokens` hard-caps the tokens
|
|
834
|
-
// reasoning may actually consume, and both apply to whatever wins here. So
|
|
835
|
-
// adopting the caller's explicit effort widens no envelope.
|
|
836
|
-
//
|
|
837
|
-
// Not solved by silently rewriting to the default either. The engine asked
|
|
838
|
-
// for something specific; answering with a quieter model and saying nothing
|
|
839
|
-
// is the same class of defect as a badge reporting a healthy lease over a
|
|
840
|
-
// dead one.
|
|
841
|
-
const declared = [responseEffort, payload.reasoning_effort, anthropicEffort].filter((value) => value != null);
|
|
842
|
-
let effectiveEffort = selectedEffort;
|
|
843
|
-
if (declared.length > 0) {
|
|
844
|
-
// The dialects must agree with EACH OTHER before either can be honoured.
|
|
845
|
-
// Two conflicting efforts in one payload is malformed, and picking one
|
|
846
|
-
// would make the winner depend on field order.
|
|
847
|
-
if (declared.some((value) => value !== declared[0])) {
|
|
848
|
-
rejectManagedRequest('managed inference broker denied conflicting reasoning efforts in one request');
|
|
849
|
-
}
|
|
850
|
-
const callerEffort = declared[0];
|
|
851
|
-
if (envelope.reasoningSelectionSource === 'request') {
|
|
852
|
-
if (callerEffort !== selectedEffort) {
|
|
853
|
-
rejectManagedRequest('managed inference broker denied reasoning effort different from the immutable reservation');
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
else if (callerEffort !== selectedEffort) {
|
|
857
|
-
// Re-validated rather than trusted. The allow-list check above covers the
|
|
858
|
-
// OpenAI dialects; `output_config.effort` reaches here unchecked, and this
|
|
859
|
-
// is the branch that would let it through.
|
|
860
|
-
if (typeof callerEffort !== 'string' ||
|
|
861
|
-
!envelope.allowedReasoningEfforts.includes(callerEffort)) {
|
|
862
|
-
rejectManagedRequest('managed inference broker denied reasoning effort outside the lease envelope');
|
|
863
|
-
}
|
|
864
|
-
effectiveEffort = callerEffort;
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
if (path.endsWith('/responses')) {
|
|
868
|
-
payload.reasoning = {
|
|
869
|
-
...(reasoning && typeof reasoning === 'object' && !Array.isArray(reasoning)
|
|
870
|
-
? reasoning
|
|
871
|
-
: {}),
|
|
872
|
-
effort: effectiveEffort,
|
|
873
|
-
};
|
|
874
|
-
}
|
|
875
|
-
else if (path.endsWith('/messages')) {
|
|
876
|
-
if (!['low', 'medium', 'high', 'max'].includes(effectiveEffort)) {
|
|
877
|
-
rejectManagedRequest('managed inference broker denied reasoning effort unsupported by the Anthropic dialect');
|
|
878
|
-
}
|
|
879
|
-
payload.output_config = { ...(anthropicOutputConfig ?? {}), effort: effectiveEffort };
|
|
880
|
-
}
|
|
881
|
-
else if (modelScope.upstreamProvider === 'openrouter') {
|
|
882
|
-
// OpenRouter accepts either reasoning.effort or reasoning.max_tokens,
|
|
883
|
-
// never both. skrr Code's compatible adapter may send a token budget even
|
|
884
|
-
// though the managed reservation selected an immutable effort. The
|
|
885
|
-
// reservation wins: replace the caller budget with that exact effort in
|
|
886
|
-
// OpenRouter's native envelope and leave LiteLLM nothing to merge twice.
|
|
887
|
-
const openRouterReasoning = reasoning && typeof reasoning === 'object' && !Array.isArray(reasoning)
|
|
888
|
-
? { ...reasoning }
|
|
889
|
-
: {};
|
|
890
|
-
delete openRouterReasoning.max_tokens;
|
|
891
|
-
payload.reasoning = { ...openRouterReasoning, effort: effectiveEffort };
|
|
892
|
-
delete payload.reasoning_effort;
|
|
893
|
-
}
|
|
894
|
-
else {
|
|
895
|
-
payload.reasoning_effort = effectiveEffort;
|
|
493
|
+
if (payload.extra_body != null) {
|
|
494
|
+
rejectManagedRequest("managed inference broker denied a caller-supplied extra body");
|
|
495
|
+
}
|
|
496
|
+
const outputFields = ["max_tokens", "max_completion_tokens", "max_output_tokens"];
|
|
497
|
+
let sawOutputLimit = false;
|
|
498
|
+
for (const field of outputFields) {
|
|
499
|
+
if (payload[field] == null)
|
|
500
|
+
continue;
|
|
501
|
+
const value = Number(payload[field]);
|
|
502
|
+
if (!Number.isSafeInteger(value) || value < 1) {
|
|
503
|
+
rejectManagedRequest(`managed inference broker denied invalid ${field}`);
|
|
504
|
+
}
|
|
505
|
+
payload[field] = Math.min(value, envelope.maxOutputTokens);
|
|
506
|
+
sawOutputLimit = true;
|
|
507
|
+
}
|
|
508
|
+
if (!sawOutputLimit) {
|
|
509
|
+
payload[path.endsWith("/responses") ? "max_output_tokens" : path.endsWith("/messages") ? "max_tokens" : "max_completion_tokens"] = envelope.maxOutputTokens;
|
|
510
|
+
}
|
|
511
|
+
if (payload.stream != null && typeof payload.stream !== "boolean") {
|
|
512
|
+
rejectManagedRequest("managed inference broker denied invalid streaming mode");
|
|
513
|
+
}
|
|
514
|
+
if (payload.stream === true && !envelope.allowStreaming) {
|
|
515
|
+
rejectManagedRequest("managed inference broker denied streaming outside the lease envelope");
|
|
516
|
+
}
|
|
517
|
+
const reasoning = payload.reasoning;
|
|
518
|
+
if (reasoning != null) {
|
|
519
|
+
if (!reasoning || typeof reasoning !== "object" || Array.isArray(reasoning)) {
|
|
520
|
+
rejectManagedRequest("managed inference broker denied invalid reasoning envelope");
|
|
521
|
+
}
|
|
522
|
+
const record = reasoning;
|
|
523
|
+
if (record.effort != null && (typeof record.effort !== "string" || !envelope.allowedReasoningEfforts.includes(record.effort))) {
|
|
524
|
+
rejectManagedRequest("managed inference broker denied reasoning effort outside the lease envelope");
|
|
525
|
+
}
|
|
526
|
+
if (record.max_tokens != null) {
|
|
527
|
+
const value = Number(record.max_tokens);
|
|
528
|
+
if (!Number.isSafeInteger(value) || value < 1) {
|
|
529
|
+
rejectManagedRequest("managed inference broker denied invalid reasoning token limit");
|
|
530
|
+
}
|
|
531
|
+
record.max_tokens = Math.min(value, envelope.maxReasoningTokens);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
if (payload.reasoning_effort != null && (typeof payload.reasoning_effort !== "string" || !envelope.allowedReasoningEfforts.includes(payload.reasoning_effort))) {
|
|
535
|
+
rejectManagedRequest("managed inference broker denied reasoning effort outside the lease envelope");
|
|
536
|
+
}
|
|
537
|
+
const selectedEffort = envelope.selectedReasoningEffort;
|
|
538
|
+
if (selectedEffort) {
|
|
539
|
+
const responseEffort = reasoning && typeof reasoning === "object" && !Array.isArray(reasoning) ? reasoning.effort : void 0;
|
|
540
|
+
const anthropicOutputConfig = isPlainObject(payload.output_config) ? payload.output_config : null;
|
|
541
|
+
const anthropicEffort = anthropicOutputConfig?.effort;
|
|
542
|
+
const declared = [responseEffort, payload.reasoning_effort, anthropicEffort].filter((value) => value != null);
|
|
543
|
+
let effectiveEffort = selectedEffort;
|
|
544
|
+
if (declared.length > 0) {
|
|
545
|
+
if (declared.some((value) => value !== declared[0])) {
|
|
546
|
+
rejectManagedRequest("managed inference broker denied conflicting reasoning efforts in one request");
|
|
547
|
+
}
|
|
548
|
+
const callerEffort = declared[0];
|
|
549
|
+
if (envelope.reasoningSelectionSource === "request") {
|
|
550
|
+
if (callerEffort !== selectedEffort) {
|
|
551
|
+
rejectManagedRequest("managed inference broker denied reasoning effort different from the immutable reservation");
|
|
896
552
|
}
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
if (!Number.isSafeInteger(value) || value < 1) {
|
|
901
|
-
rejectManagedRequest('managed inference broker denied invalid reasoning token limit');
|
|
553
|
+
} else if (callerEffort !== selectedEffort) {
|
|
554
|
+
if (typeof callerEffort !== "string" || !envelope.allowedReasoningEfforts.includes(callerEffort)) {
|
|
555
|
+
rejectManagedRequest("managed inference broker denied reasoning effort outside the lease envelope");
|
|
902
556
|
}
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
557
|
+
effectiveEffort = callerEffort;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
if (path.endsWith("/responses")) {
|
|
561
|
+
payload.reasoning = {
|
|
562
|
+
...reasoning && typeof reasoning === "object" && !Array.isArray(reasoning) ? reasoning : {},
|
|
563
|
+
effort: effectiveEffort
|
|
564
|
+
};
|
|
565
|
+
} else if (path.endsWith("/messages")) {
|
|
566
|
+
if (!["low", "medium", "high", "max"].includes(effectiveEffort)) {
|
|
567
|
+
rejectManagedRequest("managed inference broker denied reasoning effort unsupported by the Anthropic dialect");
|
|
568
|
+
}
|
|
569
|
+
payload.output_config = { ...anthropicOutputConfig ?? {}, effort: effectiveEffort };
|
|
570
|
+
} else if (modelScope.upstreamProvider === "openrouter") {
|
|
571
|
+
const openRouterReasoning = reasoning && typeof reasoning === "object" && !Array.isArray(reasoning) ? { ...reasoning } : {};
|
|
572
|
+
delete openRouterReasoning.max_tokens;
|
|
573
|
+
payload.reasoning = { ...openRouterReasoning, effort: effectiveEffort };
|
|
574
|
+
delete payload.reasoning_effort;
|
|
575
|
+
} else {
|
|
576
|
+
payload.reasoning_effort = effectiveEffort;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
if (payload.max_reasoning_tokens != null) {
|
|
580
|
+
const value = Number(payload.max_reasoning_tokens);
|
|
581
|
+
if (!Number.isSafeInteger(value) || value < 1) {
|
|
582
|
+
rejectManagedRequest("managed inference broker denied invalid reasoning token limit");
|
|
583
|
+
}
|
|
584
|
+
payload.max_reasoning_tokens = Math.min(value, envelope.maxReasoningTokens);
|
|
585
|
+
}
|
|
586
|
+
enforcePromptCacheEnvelope(payload, envelope, modelScope);
|
|
906
587
|
}
|
|
907
588
|
function rejectManagedRequest(message) {
|
|
908
|
-
|
|
589
|
+
throw new import_contract.ModelProxyError(import_contract.MODEL_PROXY_ERROR.REQUEST_REJECTED, message);
|
|
909
590
|
}
|
|
910
591
|
function containsObjectKey(value, target) {
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
Object.values(record).some((item) => containsObjectKey(item, target)));
|
|
592
|
+
if (Array.isArray(value))
|
|
593
|
+
return value.some((item) => containsObjectKey(item, target));
|
|
594
|
+
if (!value || typeof value !== "object")
|
|
595
|
+
return false;
|
|
596
|
+
const record = value;
|
|
597
|
+
return Object.prototype.hasOwnProperty.call(record, target) || Object.values(record).some((item) => containsObjectKey(item, target));
|
|
918
598
|
}
|
|
919
599
|
function objectKeyValues(value, target, found = []) {
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
return found;
|
|
927
|
-
const record = value;
|
|
928
|
-
if (Object.prototype.hasOwnProperty.call(record, target))
|
|
929
|
-
found.push(record[target]);
|
|
930
|
-
for (const item of Object.values(record))
|
|
931
|
-
objectKeyValues(item, target, found);
|
|
600
|
+
if (Array.isArray(value)) {
|
|
601
|
+
for (const item of value)
|
|
602
|
+
objectKeyValues(item, target, found);
|
|
603
|
+
return found;
|
|
604
|
+
}
|
|
605
|
+
if (!value || typeof value !== "object")
|
|
932
606
|
return found;
|
|
607
|
+
const record = value;
|
|
608
|
+
if (Object.prototype.hasOwnProperty.call(record, target))
|
|
609
|
+
found.push(record[target]);
|
|
610
|
+
for (const item of Object.values(record))
|
|
611
|
+
objectKeyValues(item, target, found);
|
|
612
|
+
return found;
|
|
933
613
|
}
|
|
934
614
|
function isPlainObject(value) {
|
|
935
|
-
|
|
615
|
+
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
936
616
|
}
|
|
937
617
|
const MAX_OPENAI_CACHE_BREAKPOINTS = 50;
|
|
938
618
|
function supportsManagedPromptCaching(modelScope) {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
.toLowerCase();
|
|
942
|
-
return modelScope.upstreamProvider === 'openai' && Boolean(model?.startsWith('gpt-5.6'));
|
|
619
|
+
const model = nonEmpty(modelScope.wireModel)?.replace(/^openai\//, "").toLowerCase();
|
|
620
|
+
return modelScope.upstreamProvider === "openai" && Boolean(model?.startsWith("gpt-5.6"));
|
|
943
621
|
}
|
|
944
|
-
/**
|
|
945
|
-
* OpenAI GPT-5.6 caching is implicit by default; removing the SDK's routing
|
|
946
|
-
* key does not disable it. A disabled lease is normalized to the provider's
|
|
947
|
-
* explicit/no-breakpoint contract before the request reaches the public relay.
|
|
948
|
-
* The authenticated API repeats this enforcement for direct capability calls.
|
|
949
|
-
*
|
|
950
|
-
* Source: https://developers.openai.com/api/docs/guides/prompt-caching
|
|
951
|
-
*/
|
|
952
622
|
function enforcePromptCacheEnvelope(payload, envelope, modelScope) {
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
if (!isPlainObject(options) ||
|
|
994
|
-
keys.some((key) => !['mode', 'ttl'].includes(key)) ||
|
|
995
|
-
(options.mode != null &&
|
|
996
|
-
(typeof options.mode !== 'string' || !['implicit', 'explicit'].includes(options.mode))) ||
|
|
997
|
-
(options.ttl != null && (typeof options.ttl !== 'string' || options.ttl !== '30m'))) {
|
|
998
|
-
rejectManagedRequest('managed inference broker denied invalid prompt cache options');
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
if (breakpoints.length > MAX_OPENAI_CACHE_BREAKPOINTS ||
|
|
1002
|
-
breakpoints.some((breakpoint) => !isPlainObject(breakpoint) ||
|
|
1003
|
-
Object.keys(breakpoint).length !== 1 ||
|
|
1004
|
-
breakpoint.mode !== 'explicit')) {
|
|
1005
|
-
rejectManagedRequest('managed inference broker denied invalid prompt cache breakpoint');
|
|
1006
|
-
}
|
|
623
|
+
const model = nonEmpty(modelScope.wireModel)?.replace(/^openai\//, "").toLowerCase();
|
|
624
|
+
const claudeCacheControlFamily = ["anthropic", "openrouter", "bedrock"].includes(modelScope.upstreamProvider) && model?.includes("claude");
|
|
625
|
+
if (claudeCacheControlFamily) {
|
|
626
|
+
if (envelope.allowPromptCaching) {
|
|
627
|
+
rejectManagedRequest("managed inference broker has no prompt cache policy for the leased model");
|
|
628
|
+
}
|
|
629
|
+
if (containsObjectKey(payload, "cache_control") || containsObjectKey(payload, "prompt_cache_breakpoint") || payload.prompt_cache_key != null || payload.prompt_cache_options != null || payload.prompt_cache_retention != null) {
|
|
630
|
+
rejectManagedRequest("managed inference broker denied prompt caching outside the lease envelope");
|
|
631
|
+
}
|
|
632
|
+
return;
|
|
633
|
+
}
|
|
634
|
+
if (!supportsManagedPromptCaching(modelScope)) {
|
|
635
|
+
rejectManagedRequest("managed inference broker has no prompt cache policy for the leased model");
|
|
636
|
+
}
|
|
637
|
+
const breakpoints = objectKeyValues(payload, "prompt_cache_breakpoint");
|
|
638
|
+
if (!envelope.allowPromptCaching) {
|
|
639
|
+
if (containsObjectKey(payload, "cache_control") || breakpoints.length > 0) {
|
|
640
|
+
rejectManagedRequest("managed inference broker denied prompt caching outside the lease envelope");
|
|
641
|
+
}
|
|
642
|
+
delete payload.prompt_cache_key;
|
|
643
|
+
delete payload.prompt_cache_retention;
|
|
644
|
+
payload.prompt_cache_options = { mode: "explicit" };
|
|
645
|
+
return;
|
|
646
|
+
}
|
|
647
|
+
if (payload.prompt_cache_key != null && !nonEmpty(payload.prompt_cache_key)) {
|
|
648
|
+
rejectManagedRequest("managed inference broker denied invalid prompt cache key");
|
|
649
|
+
}
|
|
650
|
+
if (payload.prompt_cache_retention != null) {
|
|
651
|
+
rejectManagedRequest("managed inference broker denied deprecated GPT-5.6 cache retention");
|
|
652
|
+
}
|
|
653
|
+
if (payload.prompt_cache_options != null) {
|
|
654
|
+
const options = payload.prompt_cache_options;
|
|
655
|
+
const keys = isPlainObject(options) ? Object.keys(options) : [];
|
|
656
|
+
if (!isPlainObject(options) || keys.some((key) => !["mode", "ttl"].includes(key)) || options.mode != null && (typeof options.mode !== "string" || !["implicit", "explicit"].includes(options.mode)) || options.ttl != null && (typeof options.ttl !== "string" || options.ttl !== "30m")) {
|
|
657
|
+
rejectManagedRequest("managed inference broker denied invalid prompt cache options");
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
if (breakpoints.length > MAX_OPENAI_CACHE_BREAKPOINTS || breakpoints.some((breakpoint) => !isPlainObject(breakpoint) || Object.keys(breakpoint).length !== 1 || breakpoint.mode !== "explicit")) {
|
|
661
|
+
rejectManagedRequest("managed inference broker denied invalid prompt cache breakpoint");
|
|
662
|
+
}
|
|
1007
663
|
}
|
|
1008
664
|
function isManagedRequestEnvelope(value) {
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
boundedPositiveInteger(envelope.maxInputTokens, 1_000_000) &&
|
|
1016
|
-
boundedPositiveInteger(envelope.maxOutputTokens, 1_000_000) &&
|
|
1017
|
-
boundedPositiveInteger(envelope.maxReasoningTokens, 1_000_000) &&
|
|
1018
|
-
boundedPositiveInteger(envelope.maxConcurrentRequests, 64) &&
|
|
1019
|
-
boundedPositiveInteger(envelope.maxRequestsPerMinute, 10_000) &&
|
|
1020
|
-
boundedPositiveInteger(envelope.maxTotalRequests, 100_000) &&
|
|
1021
|
-
boundedPositiveInteger(envelope.maxResponseBytes, 128 * 1024 * 1024) &&
|
|
1022
|
-
typeof envelope.allowStreaming === 'boolean' &&
|
|
1023
|
-
typeof envelope.allowPromptCaching === 'boolean' &&
|
|
1024
|
-
Array.isArray(envelope.allowedReasoningEfforts) &&
|
|
1025
|
-
envelope.allowedReasoningEfforts.length > 0 &&
|
|
1026
|
-
envelope.allowedReasoningEfforts.every((effort) => allowedEfforts.has(effort)) &&
|
|
1027
|
-
(envelope.defaultReasoningEffort == null ||
|
|
1028
|
-
(allowedEfforts.has(envelope.defaultReasoningEffort) &&
|
|
1029
|
-
envelope.allowedReasoningEfforts.includes(envelope.defaultReasoningEffort))) &&
|
|
1030
|
-
(envelope.selectedReasoningEffort == null
|
|
1031
|
-
? envelope.requestedReasoningEffort == null && envelope.reasoningSelectionSource == null
|
|
1032
|
-
: allowedEfforts.has(envelope.selectedReasoningEffort) &&
|
|
1033
|
-
envelope.allowedReasoningEfforts.includes(envelope.selectedReasoningEffort) &&
|
|
1034
|
-
(envelope.reasoningSelectionSource === 'request' ||
|
|
1035
|
-
envelope.reasoningSelectionSource === 'policy_default')) &&
|
|
1036
|
-
(envelope.reasoningSelectionSource !== 'request' ||
|
|
1037
|
-
envelope.requestedReasoningEffort === envelope.selectedReasoningEffort) &&
|
|
1038
|
-
(envelope.reasoningSelectionSource !== 'policy_default' ||
|
|
1039
|
-
envelope.defaultReasoningEffort === envelope.selectedReasoningEffort));
|
|
665
|
+
if (!value || typeof value !== "object")
|
|
666
|
+
return false;
|
|
667
|
+
const envelope = value;
|
|
668
|
+
const boundedPositiveInteger = (candidate, max) => Number.isSafeInteger(candidate) && Number(candidate) > 0 && Number(candidate) <= max;
|
|
669
|
+
const allowedEfforts = /* @__PURE__ */ new Set(["none", "minimal", "low", "medium", "high", "xhigh", "max"]);
|
|
670
|
+
return Boolean(boundedPositiveInteger(envelope.maxInputBytes, 8 * 1024 * 1024) && boundedPositiveInteger(envelope.maxInputTokens, 1e6) && boundedPositiveInteger(envelope.maxOutputTokens, 1e6) && boundedPositiveInteger(envelope.maxReasoningTokens, 1e6) && boundedPositiveInteger(envelope.maxConcurrentRequests, 64) && boundedPositiveInteger(envelope.maxRequestsPerMinute, 1e4) && boundedPositiveInteger(envelope.maxTotalRequests, 1e5) && boundedPositiveInteger(envelope.maxResponseBytes, 128 * 1024 * 1024) && typeof envelope.allowStreaming === "boolean" && typeof envelope.allowPromptCaching === "boolean" && Array.isArray(envelope.allowedReasoningEfforts) && envelope.allowedReasoningEfforts.length > 0 && envelope.allowedReasoningEfforts.every((effort) => allowedEfforts.has(effort)) && (envelope.defaultReasoningEffort == null || allowedEfforts.has(envelope.defaultReasoningEffort) && envelope.allowedReasoningEfforts.includes(envelope.defaultReasoningEffort)) && (envelope.selectedReasoningEffort == null ? envelope.requestedReasoningEffort == null && envelope.reasoningSelectionSource == null : allowedEfforts.has(envelope.selectedReasoningEffort) && envelope.allowedReasoningEfforts.includes(envelope.selectedReasoningEffort) && (envelope.reasoningSelectionSource === "request" || envelope.reasoningSelectionSource === "policy_default")) && (envelope.reasoningSelectionSource !== "request" || envelope.requestedReasoningEffort === envelope.selectedReasoningEffort) && (envelope.reasoningSelectionSource !== "policy_default" || envelope.defaultReasoningEffort === envelope.selectedReasoningEffort));
|
|
1040
671
|
}
|
|
1041
672
|
function constantTimeStringEqual(value, expected) {
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
673
|
+
if (typeof value !== "string")
|
|
674
|
+
return false;
|
|
675
|
+
const left = Buffer.from(value);
|
|
676
|
+
const right = Buffer.from(expected);
|
|
677
|
+
return left.length === right.length && (0, import_node_crypto.timingSafeEqual)(left, right);
|
|
1047
678
|
}
|
|
1048
679
|
function providerLocalModelId(harnessModelId) {
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
680
|
+
const separator = harnessModelId.indexOf("/");
|
|
681
|
+
if (separator <= 0 || separator === harnessModelId.length - 1)
|
|
682
|
+
return null;
|
|
683
|
+
return harnessModelId.slice(separator + 1);
|
|
1053
684
|
}
|
|
1054
685
|
function responseHeaders(headers) {
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
return;
|
|
1067
|
-
if (bodyWasDecoded && (name === 'content-encoding' || name === 'content-length'))
|
|
1068
|
-
return;
|
|
1069
|
-
out[name] = value;
|
|
1070
|
-
});
|
|
1071
|
-
return out;
|
|
686
|
+
const out = {};
|
|
687
|
+
const contentEncoding = headers.get("content-encoding")?.trim().toLowerCase();
|
|
688
|
+
const bodyWasDecoded = Boolean(contentEncoding && contentEncoding !== "identity");
|
|
689
|
+
headers.forEach((value, name) => {
|
|
690
|
+
if (name === "connection" || name === "transfer-encoding")
|
|
691
|
+
return;
|
|
692
|
+
if (bodyWasDecoded && (name === "content-encoding" || name === "content-length"))
|
|
693
|
+
return;
|
|
694
|
+
out[name] = value;
|
|
695
|
+
});
|
|
696
|
+
return out;
|
|
1072
697
|
}
|
|
1073
|
-
async function* responseBody(response, maxBytes, onComplete = () => {
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
698
|
+
async function* responseBody(response, maxBytes, onComplete = () => {
|
|
699
|
+
}) {
|
|
700
|
+
if (!response.body) {
|
|
701
|
+
onComplete();
|
|
702
|
+
return;
|
|
703
|
+
}
|
|
704
|
+
let totalBytes = 0;
|
|
705
|
+
const bounded = (value) => {
|
|
706
|
+
totalBytes += value.byteLength;
|
|
707
|
+
if (maxBytes != null && totalBytes > maxBytes) {
|
|
708
|
+
throw new Error("managed inference broker response byte envelope exceeded");
|
|
709
|
+
}
|
|
710
|
+
return value;
|
|
711
|
+
};
|
|
712
|
+
const stream = response.body;
|
|
713
|
+
try {
|
|
714
|
+
if (typeof stream[Symbol.asyncIterator] === "function") {
|
|
715
|
+
for await (const value of stream)
|
|
716
|
+
yield bounded(value);
|
|
717
|
+
return;
|
|
718
|
+
}
|
|
719
|
+
const reader = response.body.getReader();
|
|
1087
720
|
try {
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
1103
|
-
finally {
|
|
1104
|
-
reader.releaseLock();
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
finally {
|
|
1108
|
-
onComplete();
|
|
1109
|
-
}
|
|
721
|
+
for (; ; ) {
|
|
722
|
+
const { done, value } = await reader.read();
|
|
723
|
+
if (done)
|
|
724
|
+
break;
|
|
725
|
+
if (value)
|
|
726
|
+
yield bounded(value);
|
|
727
|
+
}
|
|
728
|
+
} finally {
|
|
729
|
+
reader.releaseLock();
|
|
730
|
+
}
|
|
731
|
+
} finally {
|
|
732
|
+
onComplete();
|
|
733
|
+
}
|
|
1110
734
|
}
|
|
735
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
736
|
+
0 && (module.exports = {
|
|
737
|
+
INFERENCE_BROKER_HOST,
|
|
738
|
+
INFERENCE_BROKER_ORIGIN,
|
|
739
|
+
INFERENCE_BROKER_SOCKET_ENV,
|
|
740
|
+
MANAGED_PROMPT_CACHING_ENV,
|
|
741
|
+
MANAGED_SESSION_ENV,
|
|
742
|
+
MANAGED_STATUS_PATH,
|
|
743
|
+
buildManagedInferenceRelayCredential,
|
|
744
|
+
classifyLeaseRenewalRefusal,
|
|
745
|
+
inferenceBrokerNoProxyEnv,
|
|
746
|
+
isGatewayCredential,
|
|
747
|
+
isManagedInferenceModelScope,
|
|
748
|
+
managedClientModelId,
|
|
749
|
+
startManagedInferenceBroker
|
|
750
|
+
});
|