@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,1311 +1,1182 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* names and refusal codes, and two hand-typed copies of a wire contract drift
|
|
10
|
-
* in exactly the way neither copy's tests can see (OSK-8588). So the names live
|
|
11
|
-
* here, in the published package, the way `firstPartyHarness.ts` does for the
|
|
12
|
-
* harness; `@skrr-ai/data-provider` re-exports this module and builds its zod
|
|
13
|
-
* schemas over these constants (`z.enum(COMPUTER_REFUSAL_CODES)`), so each name
|
|
14
|
-
* is still declared exactly once. `packages/data-provider/specs/computerWireBoundary.spec.ts`
|
|
15
|
-
* fails on a `computer:*` event name or a refusal-code table declared anywhere
|
|
16
|
-
* else.
|
|
17
|
-
*
|
|
18
|
-
* Pure TypeScript: no zod, no Node-only imports, so the browser, React Native
|
|
19
|
-
* and a bun-compiled daemon all load it. Most payload SHAPES are not here — they
|
|
20
|
-
* are zod schemas in data-provider; the daemon re-validates every field it
|
|
21
|
-
* reads. The exceptions are shapes the DAEMON produces and the API re-validates
|
|
22
|
-
* (activity details, the browser key input): those are declared here as plain
|
|
23
|
-
* interfaces, and data-provider's zod schemas are checked against them at
|
|
24
|
-
* compile time, because a producer and a validator that each spell the shape
|
|
25
|
-
* dropped every command event for a release (OSK-13605).
|
|
26
|
-
*/
|
|
27
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.COMPUTER_BROWSER_DIALOG_KINDS = exports.COMPUTER_INPUT_TEXT_MAX_LENGTH = exports.COMPUTER_BROWSER_INPUT_PLATFORMS = exports.COMPUTER_BROWSER_VIEWPORT_LIMITS = exports.COMPUTER_BROWSER_INPUT_TYPES = exports.COMPUTER_TERMINAL_CAVEATS = exports.COMPUTER_TERMINAL_HISTORY_CAUSES = exports.COMPUTER_TERMINAL_LIFETIMES = exports.COMPUTER_TERMINAL_INPUT_TYPES = exports.COMPUTER_TERMINAL_SIGNALS = exports.COMPUTER_DIAGNOSTICS_MAX_STREAMS = exports.COMPUTER_DIAGNOSTICS_INTERVAL_MS = exports.COMPUTER_DIAGNOSTIC_COUNTERS = exports.COMPUTER_FRAME_ACK_TIMEOUT_MS = exports.COMPUTER_FRAME_MAX_BYTES = exports.COMPUTER_BROWSER_VIEWPORT = exports.COMPUTER_SURFACE_END_REASONS = exports.COMPUTER_SURFACE_STATES = exports.COMPUTER_SURFACE_KINDS = exports.COMPUTER_CONTROL_ACTIVITY_CHANGES = exports.COMPUTER_CONTROL_CHANGE_REASONS = exports.COMPUTER_SURFACE_UNPIN_REASONS = exports.COMPUTER_SURFACE_PIN_ACTIONS = exports.COMPUTER_SHARE_MODES = exports.COMPUTER_SHARE_ACTIONS = exports.COMPUTER_CONTROL_ACTIONS = exports.COMPUTER_AGENT_WRITE_WAIT_MS = exports.COMPUTER_RECONNECT_GRACE_MS = exports.COMPUTER_RECLAIM_WARNING_MS = exports.COMPUTER_CONTROL_IDLE_MS = exports.COMPUTER_HANDBACK_NOTE_MAX_LENGTH = exports.COMPUTER_GRANT_TIERS = exports.COMPUTER_OPERATIONS = exports.COMPUTER_ACCESS_LEVELS = exports.COMPUTER_ACTOR_ENGINE_MAX_LENGTH = exports.COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES = exports.COMPUTER_ACTIVITY_ACTOR_KINDS = exports.COMPUTER_ACTOR_KINDS = exports.COMPUTER_REFUSAL_CODES = exports.COMPUTER_CAPABILITY_VALUES = exports.COMPUTER_CAPABILITIES = exports.COMPUTER_MANIFEST_REORDER_WAIT_MS = exports.COMPUTER_RESYNC_TIMEOUT_MS = exports.COMPUTER_API_ANSWERED_EVENT_KEYS = exports.COMPUTER_SERVER_EVENT_KEYS = exports.DAEMON_COMPUTER_REPORT_EVENT_KEYS = exports.DAEMON_COMPUTER_EVENT_NAMES = exports.COMPUTER_EVENT_NAMES = exports.DAEMON_COMPUTER_EVENTS = exports.COMPUTER_EVENTS = void 0;
|
|
29
|
-
exports.COMPUTER_DECLARED_SERVICES_MAX = exports.COMPUTER_DECLARED_SERVICE_PROTOCOLS = exports.COMPUTER_SERVICES_TOOL_ERROR_PREFIX = exports.COMPUTER_SERVICES_TOOL_NAME = exports.COMPUTER_DECLARED_SERVICE_ACTIONS = exports.COMPUTER_COMMAND_OUTPUT_STREAMS = exports.COMPUTER_COMMAND_START_REFUSALS = exports.COMPUTER_COMMAND_UNKNOWN_END_SIGNAL = exports.COMPUTER_COMMAND_NOT_STARTED_SIGNAL = exports.COMPUTER_COMMAND_OUTCOMES = exports.COMPUTER_LIFECYCLE_EVENTS = exports.COMPUTER_COMMAND_PHASES = exports.COMPUTER_ACTIVITY_WITHHELD_PLACEHOLDER = exports.COMPUTER_ACTIVITY_OUTPUT_MAX_LENGTH = exports.COMPUTER_ACTIVITY_SUMMARY_MAX_LENGTH = exports.COMPUTER_ACTIVITY_KINDS = exports.COMPUTER_FILE_CONTENTS_TAG_PATTERN = exports.COMPUTER_FILE_CONTENTS_TAG_MAX_ENTRIES = exports.COMPUTER_FILE_CHANGES = exports.COMPUTER_FILES_CHANGED_MAX_CHANGES = exports.COMPUTER_FILES_WATCH_DEGRADED_REASONS = exports.COMPUTER_FILE_WITHHELD_REASONS = exports.COMPUTER_FILE_TYPES = exports.COMPUTER_FILE_GIT_STATUS_BUDGET_MS = exports.COMPUTER_FILE_SEARCH_MAX_QUERY_LENGTH = exports.COMPUTER_FILE_SEARCH_MAX_BUDGET_MS = exports.COMPUTER_FILE_SEARCH_DEFAULT_BUDGET_MS = exports.COMPUTER_FILE_SEARCH_MAX_LIMIT = exports.COMPUTER_FILE_SEARCH_DEFAULT_LIMIT = exports.COMPUTER_FILE_GIT_MARKS = exports.COMPUTER_FILE_SEARCH_STATES = exports.COMPUTER_FILE_SEARCH_OPERATIONS = exports.COMPUTER_FILE_OPERATIONS = exports.COMPUTER_BROWSER_URL_MAX_LENGTH = exports.COMPUTER_BROWSER_TAB_ACTIONS = exports.COMPUTER_BROWSER_HISTORY_ACTIONS = exports.COMPUTER_BROWSER_COPY_MAX_LENGTH = exports.COMPUTER_TERMINAL_CWD_MAX_LENGTH = exports.COMPUTER_BROWSER_FILE_CHOOSER_PATH_MAX_LENGTH = exports.COMPUTER_BROWSER_FILE_CHOOSER_ACCEPT_MAX_LENGTH = exports.COMPUTER_BROWSER_FILE_CHOOSER_MAX_FILES = exports.COMPUTER_BROWSER_FILE_CHOOSER_OUTCOMES = exports.COMPUTER_BROWSER_FILE_CHOOSER_MODES = exports.COMPUTER_BROWSER_DOWNLOADS_MAX = exports.COMPUTER_BROWSER_DOWNLOAD_STATES = exports.COMPUTER_BROWSER_DIALOG_CREDENTIAL_MAX_LENGTH = exports.COMPUTER_BROWSER_DIALOG_PROMPT_MAX_LENGTH = exports.COMPUTER_BROWSER_DIALOG_MESSAGE_MAX_LENGTH = exports.COMPUTER_BROWSER_DIALOG_ANSWERERS = exports.COMPUTER_BROWSER_DIALOG_OUTCOMES = void 0;
|
|
30
|
-
exports.COMPUTER_DAEMON_LOG_LIMITS = exports.COMPUTER_DAEMON_LOG_LEVELS = exports.COMPUTER_LEASE_STATE_POWER_PHASE = exports.COMPUTER_START_REFUSALS = exports.COMPUTER_PERSONAL_SIGN_IN_REASONS = exports.COMPUTER_PERSONAL_POWER_PHASES = exports.COMPUTER_POWER_PHASES = exports.COMPUTER_MACHINE_KINDS = exports.COMPUTER_DECLARED_SERVICE_PROBLEMS = exports.COMPUTER_DECLARED_SERVICE_NAME_PATTERN = exports.COMPUTER_DECLARED_SERVICE_HOST = exports.COMPUTER_DECLARED_SERVICE_PATH_MAX_LENGTH = exports.COMPUTER_DECLARED_SERVICE_NAME_MAX_LENGTH = void 0;
|
|
31
|
-
exports.normalizeComputerRefusalCode = normalizeComputerRefusalCode;
|
|
32
|
-
exports.isComputerPlatformRouteSession = isComputerPlatformRouteSession;
|
|
33
|
-
exports.computerTierOperations = computerTierOperations;
|
|
34
|
-
exports.computerOperationAllowed = computerOperationAllowed;
|
|
35
|
-
exports.computerAccessOperations = computerAccessOperations;
|
|
36
|
-
exports.computerControlChangeIsHolderChange = computerControlChangeIsHolderChange;
|
|
37
|
-
exports.computerLeaseInputRefusal = computerLeaseInputRefusal;
|
|
38
|
-
exports.computerLeaseAcceptsInput = computerLeaseAcceptsInput;
|
|
39
|
-
exports.clampComputerBrowserViewport = clampComputerBrowserViewport;
|
|
40
|
-
exports.computerFileEntityTagsEqual = computerFileEntityTagsEqual;
|
|
41
|
-
exports.computerDeclaredServiceOperation = computerDeclaredServiceOperation;
|
|
42
|
-
exports.computerDeclaredServiceSpec = computerDeclaredServiceSpec;
|
|
43
|
-
exports.computerDeclaredServiceUrl = computerDeclaredServiceUrl;
|
|
44
|
-
exports.computerPowerPhaseForLeaseState = computerPowerPhaseForLeaseState;
|
|
45
|
-
exports.computerShowsDesktop = computerShowsDesktop;
|
|
46
|
-
exports.computerOffersPowerActions = computerOffersPowerActions;
|
|
47
|
-
exports.normalizeBrowserActivityOriginPolicy = normalizeBrowserActivityOriginPolicy;
|
|
48
|
-
exports.browserActivityOriginAllowed = browserActivityOriginAllowed;
|
|
49
|
-
// ---------------------------------------------------------------------------
|
|
50
|
-
// Events (§7.1)
|
|
51
|
-
// ---------------------------------------------------------------------------
|
|
52
|
-
/**
|
|
53
|
-
* Client ⇄ API, on the existing `/ws/agentic` socket. A request the client
|
|
54
|
-
* needs answered is acknowledged through the Socket.IO acknowledgement
|
|
55
|
-
* callback.
|
|
56
|
-
*/
|
|
57
|
-
exports.COMPUTER_EVENTS = {
|
|
58
|
-
/** client → API: attach to a machine. */
|
|
59
|
-
attach: 'computer:attach',
|
|
60
|
-
/** client → API: leave. */
|
|
61
|
-
detach: 'computer:detach',
|
|
62
|
-
/**
|
|
63
|
-
* client → API: read the whole manifest again ON THE SAME ATTACHMENT, after
|
|
64
|
-
* a missed delta or a `stale_epoch` (OSK-13815). The ack carries what an
|
|
65
|
-
* attach's does — the attachment id (unchanged), the manifest and the
|
|
66
|
-
* operations — or a typed refusal; `not_found` means the attachment is gone
|
|
67
|
-
* and only then does the client attach afresh. Re-reading state must never
|
|
68
|
-
* change who the reader is: a control lease is bound to the attachment
|
|
69
|
-
* (`holderAttachmentId`), and a resync that detached and attached again
|
|
70
|
-
* orphaned the hold the person had just taken. Answered by the API, which
|
|
71
|
-
* renews the binding with the daemon exactly as its periodic re-check does
|
|
72
|
-
* (a repeated `daemon:computer:attach` with the same id), so it has no
|
|
73
|
-
* daemon mirror and needs no daemon capability. An API that predates it
|
|
74
|
-
* never answers; the client bounds the wait and falls back to attaching
|
|
75
|
-
* afresh.
|
|
76
|
-
*/
|
|
77
|
-
resync: 'computer:resync',
|
|
78
|
-
/** API → client: this attachment was detached, with the reason (revoked, stale generation, …). */
|
|
79
|
-
detached: 'computer:detached',
|
|
80
|
-
/** API → client: a whole manifest, or a revisioned delta. */
|
|
81
|
-
manifest: 'computer:manifest',
|
|
82
|
-
/** client → API: observe one surface. */
|
|
83
|
-
subscribe: 'computer:surface:subscribe',
|
|
84
|
-
/** client → API: stop observing one surface. */
|
|
85
|
-
unsubscribe: 'computer:surface:unsubscribe',
|
|
86
|
-
/** API → client: terminal bytes with a byte cursor, or a page frame. */
|
|
87
|
-
data: 'computer:surface:data',
|
|
88
|
-
/**
|
|
89
|
-
* client → API: this viewer painted the page frame `seq` and wants the next.
|
|
90
|
-
* A viewer's slot is latest-wins: until it acknowledges, newer frames
|
|
91
|
-
* replace the one waiting for it and nothing queues (§6.2, §7.2 R3).
|
|
92
|
-
* Never acknowledged.
|
|
93
|
-
*/
|
|
94
|
-
frameAck: 'computer:surface:frame:ack',
|
|
95
|
-
/** client → API: take / release / request / grant / decline. */
|
|
96
|
-
control: 'computer:surface:control',
|
|
97
|
-
/** client → API: share or unshare one of the person's own surfaces with an agent session. */
|
|
98
|
-
share: 'computer:surface:share',
|
|
99
|
-
/** client → API: one input, carrying the lease epoch. Never acknowledged. */
|
|
100
|
-
input: 'computer:surface:input',
|
|
101
|
-
/** client → API: open a person's own terminal or browser window. */
|
|
102
|
-
open: 'computer:surface:open',
|
|
103
|
-
/** client → API: close a surface. */
|
|
104
|
-
close: 'computer:surface:close',
|
|
105
|
-
/** API → client: activity events. */
|
|
106
|
-
activity: 'computer:activity',
|
|
107
|
-
/** client → API: the activity events after a `seq`, to fill a gap. */
|
|
108
|
-
activityFill: 'computer:activity:fill',
|
|
109
|
-
/** client → API: the directories expanded and files open, which scope the file watches. */
|
|
110
|
-
filesWatch: 'computer:files:watch',
|
|
111
|
-
/**
|
|
112
|
-
* API → client: what this attachment's scoped watches saw — paths and kinds,
|
|
113
|
-
* never contents — or that they went stale and the tree must be refreshed
|
|
114
|
-
* (§6.3 layer 2). Needs `computer_files_watch_v1`.
|
|
115
|
-
*/
|
|
116
|
-
filesChanged: 'computer:files:changed',
|
|
117
|
-
/**
|
|
118
|
-
* client → API: answer a dialog the page is blocked on. Only the attachment
|
|
119
|
-
* holding the browser's lease, at the current epoch. Needs
|
|
120
|
-
* `computer_browser_page_v1`.
|
|
121
|
-
*/
|
|
122
|
-
dialog: 'computer:surface:dialog',
|
|
123
|
-
/**
|
|
124
|
-
* client → API: copy-out — the text the person selected on the page, answered
|
|
125
|
-
* to the asking attachment alone and only while it holds the lease at the
|
|
126
|
-
* current epoch. Needs `computer_browser_page_v1`.
|
|
127
|
-
*/
|
|
128
|
-
copy: 'computer:surface:copy',
|
|
129
|
-
/**
|
|
130
|
-
* client → API: answer the file chooser a page opened (§6.2 "a file chooser
|
|
131
|
-
* opens a picker over the computer's files, or a local upload"): paths on the
|
|
132
|
-
* computer, or none to cancel. Only the attachment holding the browser's
|
|
133
|
-
* lease, at the current epoch; the paths are read as the file surface reads
|
|
134
|
-
* them. Needs `computer_browser_file_chooser_v1`.
|
|
135
|
-
*/
|
|
136
|
-
fileChooser: 'computer:surface:filechooser',
|
|
137
|
-
/** Deliberate semantic teaching in the browser controlled by this attachment. */
|
|
138
|
-
teaching: 'computer:surface:teaching',
|
|
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 });
|
|
139
9
|
};
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
/** Bind an attachment: its principal, operations and (dedicated) generation. */
|
|
148
|
-
attach: 'daemon:computer:attach',
|
|
149
|
-
detach: 'daemon:computer:detach',
|
|
150
|
-
/** The machine's grant set, whole, on registration and on every change. */
|
|
151
|
-
grants: 'daemon:computer:grants',
|
|
152
|
-
subscribe: 'daemon:computer:surface:subscribe',
|
|
153
|
-
unsubscribe: 'daemon:computer:surface:unsubscribe',
|
|
154
|
-
frameAck: 'daemon:computer:surface:frame:ack',
|
|
155
|
-
control: 'daemon:computer:surface:control',
|
|
156
|
-
share: 'daemon:computer:surface:share',
|
|
157
|
-
input: 'daemon:computer:surface:input',
|
|
158
|
-
open: 'daemon:computer:surface:open',
|
|
159
|
-
close: 'daemon:computer:surface:close',
|
|
160
|
-
activityFill: 'daemon:computer:activity:fill',
|
|
161
|
-
filesWatch: 'daemon:computer:files:watch',
|
|
162
|
-
/** One file operation, relayed from `/api/machines/:machineId/files/<op>`. */
|
|
163
|
-
files: 'daemon:computer:files',
|
|
164
|
-
dialog: 'daemon:computer:surface:dialog',
|
|
165
|
-
copy: 'daemon:computer:surface:copy',
|
|
166
|
-
fileChooser: 'daemon:computer:surface:filechooser',
|
|
167
|
-
teaching: 'daemon:computer:surface:teaching',
|
|
168
|
-
/**
|
|
169
|
-
* Pin or unpin the surface an open human-input request names (§8): a pinned
|
|
170
|
-
* surface is not reclaimed by idle or wall-clock expiry. Fire-and-forget,
|
|
171
|
-
* idempotent on the pin id, bounded by its own `until`. Needs
|
|
172
|
-
* `computer_surface_pin_v1`.
|
|
173
|
-
*/
|
|
174
|
-
pin: 'daemon:computer:surface:pin',
|
|
175
|
-
/**
|
|
176
|
-
* Declare, withdraw or list the machine's declared services (§20.5): a web
|
|
177
|
-
* service someone started on the machine, named and opened in the
|
|
178
|
-
* computer's own browser. Carries a `requestId`, the principal the API
|
|
179
|
-
* authorized and, for a declaration, who declared it; the daemon checks the
|
|
180
|
-
* principal against the grant set it holds. Needs
|
|
181
|
-
* `computer_declared_services_v1`.
|
|
182
|
-
*/
|
|
183
|
-
services: 'daemon:computer:services',
|
|
184
|
-
/**
|
|
185
|
-
* Read the tail of the daemon's OWN process log (a bounded, redacted copy of
|
|
186
|
-
* what its logger wrote since it started), for the owner who asks why their
|
|
187
|
-
* machine reconnected. Carries a `requestId` and the principal the API
|
|
188
|
-
* authorized (`observe`); the daemon checks the principal against the grant
|
|
189
|
-
* set it holds. Needs `computer_daemon_log_v1`.
|
|
190
|
-
*/
|
|
191
|
-
daemonLog: 'daemon:computer:log',
|
|
192
|
-
// daemon → API
|
|
193
|
-
/** The answer to any request that carried a `requestId`. */
|
|
194
|
-
ack: 'daemon:computer:ack',
|
|
195
|
-
manifest: 'daemon:computer:manifest',
|
|
196
|
-
data: 'daemon:computer:surface:data',
|
|
197
|
-
activity: 'daemon:computer:activity',
|
|
198
|
-
/** The daemon detached an attachment itself, e.g. its grant was revoked. */
|
|
199
|
-
detached: 'daemon:computer:detached',
|
|
200
|
-
/** One attachment's scoped watches saw changes, or went stale (§6.3). */
|
|
201
|
-
filesChanged: 'daemon:computer:files:changed',
|
|
202
|
-
/**
|
|
203
|
-
* The daemon's own frame-lane counters (§7.2, OSK-13616), every
|
|
204
|
-
* `COMPUTER_DIAGNOSTICS_INTERVAL_MS` while anyone is attached: counters and
|
|
205
|
-
* per-viewer timestamps from a closed vocabulary, never content. Needs
|
|
206
|
-
* `computer_diagnostics_v1`. Fire-and-forget; a lost report is the next one.
|
|
207
|
-
*/
|
|
208
|
-
diagnostics: 'daemon:computer:diagnostics',
|
|
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;
|
|
209
17
|
};
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var computerWire_exports = {};
|
|
20
|
+
__export(computerWire_exports, {
|
|
21
|
+
COMPUTER_ACCESS_LEVELS: () => COMPUTER_ACCESS_LEVELS,
|
|
22
|
+
COMPUTER_ACTIVITY_ACTOR_KINDS: () => COMPUTER_ACTIVITY_ACTOR_KINDS,
|
|
23
|
+
COMPUTER_ACTIVITY_KINDS: () => COMPUTER_ACTIVITY_KINDS,
|
|
24
|
+
COMPUTER_ACTIVITY_OUTPUT_MAX_LENGTH: () => COMPUTER_ACTIVITY_OUTPUT_MAX_LENGTH,
|
|
25
|
+
COMPUTER_ACTIVITY_SUMMARY_MAX_LENGTH: () => COMPUTER_ACTIVITY_SUMMARY_MAX_LENGTH,
|
|
26
|
+
COMPUTER_ACTIVITY_WITHHELD_PLACEHOLDER: () => COMPUTER_ACTIVITY_WITHHELD_PLACEHOLDER,
|
|
27
|
+
COMPUTER_ACTOR_ENGINE_MAX_LENGTH: () => COMPUTER_ACTOR_ENGINE_MAX_LENGTH,
|
|
28
|
+
COMPUTER_ACTOR_KINDS: () => COMPUTER_ACTOR_KINDS,
|
|
29
|
+
COMPUTER_AGENT_WRITE_WAIT_MS: () => COMPUTER_AGENT_WRITE_WAIT_MS,
|
|
30
|
+
COMPUTER_API_ANSWERED_EVENT_KEYS: () => COMPUTER_API_ANSWERED_EVENT_KEYS,
|
|
31
|
+
COMPUTER_BROWSER_COPY_MAX_LENGTH: () => COMPUTER_BROWSER_COPY_MAX_LENGTH,
|
|
32
|
+
COMPUTER_BROWSER_DIALOG_ANSWERERS: () => COMPUTER_BROWSER_DIALOG_ANSWERERS,
|
|
33
|
+
COMPUTER_BROWSER_DIALOG_CREDENTIAL_MAX_LENGTH: () => COMPUTER_BROWSER_DIALOG_CREDENTIAL_MAX_LENGTH,
|
|
34
|
+
COMPUTER_BROWSER_DIALOG_KINDS: () => COMPUTER_BROWSER_DIALOG_KINDS,
|
|
35
|
+
COMPUTER_BROWSER_DIALOG_MESSAGE_MAX_LENGTH: () => COMPUTER_BROWSER_DIALOG_MESSAGE_MAX_LENGTH,
|
|
36
|
+
COMPUTER_BROWSER_DIALOG_OUTCOMES: () => COMPUTER_BROWSER_DIALOG_OUTCOMES,
|
|
37
|
+
COMPUTER_BROWSER_DIALOG_PROMPT_MAX_LENGTH: () => COMPUTER_BROWSER_DIALOG_PROMPT_MAX_LENGTH,
|
|
38
|
+
COMPUTER_BROWSER_DOWNLOADS_MAX: () => COMPUTER_BROWSER_DOWNLOADS_MAX,
|
|
39
|
+
COMPUTER_BROWSER_DOWNLOAD_STATES: () => COMPUTER_BROWSER_DOWNLOAD_STATES,
|
|
40
|
+
COMPUTER_BROWSER_FILE_CHOOSER_ACCEPT_MAX_LENGTH: () => COMPUTER_BROWSER_FILE_CHOOSER_ACCEPT_MAX_LENGTH,
|
|
41
|
+
COMPUTER_BROWSER_FILE_CHOOSER_MAX_FILES: () => COMPUTER_BROWSER_FILE_CHOOSER_MAX_FILES,
|
|
42
|
+
COMPUTER_BROWSER_FILE_CHOOSER_MODES: () => COMPUTER_BROWSER_FILE_CHOOSER_MODES,
|
|
43
|
+
COMPUTER_BROWSER_FILE_CHOOSER_OUTCOMES: () => COMPUTER_BROWSER_FILE_CHOOSER_OUTCOMES,
|
|
44
|
+
COMPUTER_BROWSER_FILE_CHOOSER_PATH_MAX_LENGTH: () => COMPUTER_BROWSER_FILE_CHOOSER_PATH_MAX_LENGTH,
|
|
45
|
+
COMPUTER_BROWSER_HISTORY_ACTIONS: () => COMPUTER_BROWSER_HISTORY_ACTIONS,
|
|
46
|
+
COMPUTER_BROWSER_INPUT_PLATFORMS: () => COMPUTER_BROWSER_INPUT_PLATFORMS,
|
|
47
|
+
COMPUTER_BROWSER_INPUT_TYPES: () => COMPUTER_BROWSER_INPUT_TYPES,
|
|
48
|
+
COMPUTER_BROWSER_TAB_ACTIONS: () => COMPUTER_BROWSER_TAB_ACTIONS,
|
|
49
|
+
COMPUTER_BROWSER_URL_MAX_LENGTH: () => COMPUTER_BROWSER_URL_MAX_LENGTH,
|
|
50
|
+
COMPUTER_BROWSER_VIEWPORT: () => COMPUTER_BROWSER_VIEWPORT,
|
|
51
|
+
COMPUTER_BROWSER_VIEWPORT_LIMITS: () => COMPUTER_BROWSER_VIEWPORT_LIMITS,
|
|
52
|
+
COMPUTER_CAPABILITIES: () => COMPUTER_CAPABILITIES,
|
|
53
|
+
COMPUTER_CAPABILITY_VALUES: () => COMPUTER_CAPABILITY_VALUES,
|
|
54
|
+
COMPUTER_COMMAND_NOT_STARTED_SIGNAL: () => COMPUTER_COMMAND_NOT_STARTED_SIGNAL,
|
|
55
|
+
COMPUTER_COMMAND_OUTCOMES: () => COMPUTER_COMMAND_OUTCOMES,
|
|
56
|
+
COMPUTER_COMMAND_OUTPUT_STREAMS: () => COMPUTER_COMMAND_OUTPUT_STREAMS,
|
|
57
|
+
COMPUTER_COMMAND_PHASES: () => COMPUTER_COMMAND_PHASES,
|
|
58
|
+
COMPUTER_COMMAND_START_REFUSALS: () => COMPUTER_COMMAND_START_REFUSALS,
|
|
59
|
+
COMPUTER_COMMAND_UNKNOWN_END_SIGNAL: () => COMPUTER_COMMAND_UNKNOWN_END_SIGNAL,
|
|
60
|
+
COMPUTER_CONTROL_ACTIONS: () => COMPUTER_CONTROL_ACTIONS,
|
|
61
|
+
COMPUTER_CONTROL_ACTIVITY_CHANGES: () => COMPUTER_CONTROL_ACTIVITY_CHANGES,
|
|
62
|
+
COMPUTER_CONTROL_CHANGE_REASONS: () => COMPUTER_CONTROL_CHANGE_REASONS,
|
|
63
|
+
COMPUTER_CONTROL_IDLE_MS: () => COMPUTER_CONTROL_IDLE_MS,
|
|
64
|
+
COMPUTER_DAEMON_LOG_LEVELS: () => COMPUTER_DAEMON_LOG_LEVELS,
|
|
65
|
+
COMPUTER_DAEMON_LOG_LIMITS: () => COMPUTER_DAEMON_LOG_LIMITS,
|
|
66
|
+
COMPUTER_DECLARED_SERVICES_MAX: () => COMPUTER_DECLARED_SERVICES_MAX,
|
|
67
|
+
COMPUTER_DECLARED_SERVICE_ACTIONS: () => COMPUTER_DECLARED_SERVICE_ACTIONS,
|
|
68
|
+
COMPUTER_DECLARED_SERVICE_HOST: () => COMPUTER_DECLARED_SERVICE_HOST,
|
|
69
|
+
COMPUTER_DECLARED_SERVICE_NAME_MAX_LENGTH: () => COMPUTER_DECLARED_SERVICE_NAME_MAX_LENGTH,
|
|
70
|
+
COMPUTER_DECLARED_SERVICE_NAME_PATTERN: () => COMPUTER_DECLARED_SERVICE_NAME_PATTERN,
|
|
71
|
+
COMPUTER_DECLARED_SERVICE_PATH_MAX_LENGTH: () => COMPUTER_DECLARED_SERVICE_PATH_MAX_LENGTH,
|
|
72
|
+
COMPUTER_DECLARED_SERVICE_PROBLEMS: () => COMPUTER_DECLARED_SERVICE_PROBLEMS,
|
|
73
|
+
COMPUTER_DECLARED_SERVICE_PROTOCOLS: () => COMPUTER_DECLARED_SERVICE_PROTOCOLS,
|
|
74
|
+
COMPUTER_DIAGNOSTICS_INTERVAL_MS: () => COMPUTER_DIAGNOSTICS_INTERVAL_MS,
|
|
75
|
+
COMPUTER_DIAGNOSTICS_MAX_STREAMS: () => COMPUTER_DIAGNOSTICS_MAX_STREAMS,
|
|
76
|
+
COMPUTER_DIAGNOSTIC_COUNTERS: () => COMPUTER_DIAGNOSTIC_COUNTERS,
|
|
77
|
+
COMPUTER_EVENTS: () => COMPUTER_EVENTS,
|
|
78
|
+
COMPUTER_EVENT_NAMES: () => COMPUTER_EVENT_NAMES,
|
|
79
|
+
COMPUTER_FILES_CHANGED_MAX_CHANGES: () => COMPUTER_FILES_CHANGED_MAX_CHANGES,
|
|
80
|
+
COMPUTER_FILES_WATCH_DEGRADED_REASONS: () => COMPUTER_FILES_WATCH_DEGRADED_REASONS,
|
|
81
|
+
COMPUTER_FILE_CHANGES: () => COMPUTER_FILE_CHANGES,
|
|
82
|
+
COMPUTER_FILE_CONTENTS_TAG_MAX_ENTRIES: () => COMPUTER_FILE_CONTENTS_TAG_MAX_ENTRIES,
|
|
83
|
+
COMPUTER_FILE_CONTENTS_TAG_PATTERN: () => COMPUTER_FILE_CONTENTS_TAG_PATTERN,
|
|
84
|
+
COMPUTER_FILE_GIT_MARKS: () => COMPUTER_FILE_GIT_MARKS,
|
|
85
|
+
COMPUTER_FILE_GIT_STATUS_BUDGET_MS: () => COMPUTER_FILE_GIT_STATUS_BUDGET_MS,
|
|
86
|
+
COMPUTER_FILE_OPERATIONS: () => COMPUTER_FILE_OPERATIONS,
|
|
87
|
+
COMPUTER_FILE_SEARCH_DEFAULT_BUDGET_MS: () => COMPUTER_FILE_SEARCH_DEFAULT_BUDGET_MS,
|
|
88
|
+
COMPUTER_FILE_SEARCH_DEFAULT_LIMIT: () => COMPUTER_FILE_SEARCH_DEFAULT_LIMIT,
|
|
89
|
+
COMPUTER_FILE_SEARCH_MAX_BUDGET_MS: () => COMPUTER_FILE_SEARCH_MAX_BUDGET_MS,
|
|
90
|
+
COMPUTER_FILE_SEARCH_MAX_LIMIT: () => COMPUTER_FILE_SEARCH_MAX_LIMIT,
|
|
91
|
+
COMPUTER_FILE_SEARCH_MAX_QUERY_LENGTH: () => COMPUTER_FILE_SEARCH_MAX_QUERY_LENGTH,
|
|
92
|
+
COMPUTER_FILE_SEARCH_OPERATIONS: () => COMPUTER_FILE_SEARCH_OPERATIONS,
|
|
93
|
+
COMPUTER_FILE_SEARCH_STATES: () => COMPUTER_FILE_SEARCH_STATES,
|
|
94
|
+
COMPUTER_FILE_TYPES: () => COMPUTER_FILE_TYPES,
|
|
95
|
+
COMPUTER_FILE_WITHHELD_REASONS: () => COMPUTER_FILE_WITHHELD_REASONS,
|
|
96
|
+
COMPUTER_FRAME_ACK_TIMEOUT_MS: () => COMPUTER_FRAME_ACK_TIMEOUT_MS,
|
|
97
|
+
COMPUTER_FRAME_MAX_BYTES: () => COMPUTER_FRAME_MAX_BYTES,
|
|
98
|
+
COMPUTER_GRANT_TIERS: () => COMPUTER_GRANT_TIERS,
|
|
99
|
+
COMPUTER_HANDBACK_NOTE_MAX_LENGTH: () => COMPUTER_HANDBACK_NOTE_MAX_LENGTH,
|
|
100
|
+
COMPUTER_INPUT_TEXT_MAX_LENGTH: () => COMPUTER_INPUT_TEXT_MAX_LENGTH,
|
|
101
|
+
COMPUTER_LEASE_STATE_POWER_PHASE: () => COMPUTER_LEASE_STATE_POWER_PHASE,
|
|
102
|
+
COMPUTER_LIFECYCLE_EVENTS: () => COMPUTER_LIFECYCLE_EVENTS,
|
|
103
|
+
COMPUTER_MACHINE_KINDS: () => COMPUTER_MACHINE_KINDS,
|
|
104
|
+
COMPUTER_MANIFEST_REORDER_WAIT_MS: () => COMPUTER_MANIFEST_REORDER_WAIT_MS,
|
|
105
|
+
COMPUTER_OPERATIONS: () => COMPUTER_OPERATIONS,
|
|
106
|
+
COMPUTER_PERSONAL_POWER_PHASES: () => COMPUTER_PERSONAL_POWER_PHASES,
|
|
107
|
+
COMPUTER_PERSONAL_SIGN_IN_REASONS: () => COMPUTER_PERSONAL_SIGN_IN_REASONS,
|
|
108
|
+
COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES: () => COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES,
|
|
109
|
+
COMPUTER_POWER_PHASES: () => COMPUTER_POWER_PHASES,
|
|
110
|
+
COMPUTER_RECLAIM_WARNING_MS: () => COMPUTER_RECLAIM_WARNING_MS,
|
|
111
|
+
COMPUTER_RECONNECT_GRACE_MS: () => COMPUTER_RECONNECT_GRACE_MS,
|
|
112
|
+
COMPUTER_REFUSAL_CODES: () => COMPUTER_REFUSAL_CODES,
|
|
113
|
+
COMPUTER_RESYNC_TIMEOUT_MS: () => COMPUTER_RESYNC_TIMEOUT_MS,
|
|
114
|
+
COMPUTER_SERVER_EVENT_KEYS: () => COMPUTER_SERVER_EVENT_KEYS,
|
|
115
|
+
COMPUTER_SERVICES_TOOL_ERROR_PREFIX: () => COMPUTER_SERVICES_TOOL_ERROR_PREFIX,
|
|
116
|
+
COMPUTER_SERVICES_TOOL_NAME: () => COMPUTER_SERVICES_TOOL_NAME,
|
|
117
|
+
COMPUTER_SHARE_ACTIONS: () => COMPUTER_SHARE_ACTIONS,
|
|
118
|
+
COMPUTER_SHARE_MODES: () => COMPUTER_SHARE_MODES,
|
|
119
|
+
COMPUTER_START_REFUSALS: () => COMPUTER_START_REFUSALS,
|
|
120
|
+
COMPUTER_SURFACE_END_REASONS: () => COMPUTER_SURFACE_END_REASONS,
|
|
121
|
+
COMPUTER_SURFACE_KINDS: () => COMPUTER_SURFACE_KINDS,
|
|
122
|
+
COMPUTER_SURFACE_PIN_ACTIONS: () => COMPUTER_SURFACE_PIN_ACTIONS,
|
|
123
|
+
COMPUTER_SURFACE_STATES: () => COMPUTER_SURFACE_STATES,
|
|
124
|
+
COMPUTER_SURFACE_UNPIN_REASONS: () => COMPUTER_SURFACE_UNPIN_REASONS,
|
|
125
|
+
COMPUTER_TERMINAL_CAVEATS: () => COMPUTER_TERMINAL_CAVEATS,
|
|
126
|
+
COMPUTER_TERMINAL_CWD_MAX_LENGTH: () => COMPUTER_TERMINAL_CWD_MAX_LENGTH,
|
|
127
|
+
COMPUTER_TERMINAL_HISTORY_CAUSES: () => COMPUTER_TERMINAL_HISTORY_CAUSES,
|
|
128
|
+
COMPUTER_TERMINAL_INPUT_TYPES: () => COMPUTER_TERMINAL_INPUT_TYPES,
|
|
129
|
+
COMPUTER_TERMINAL_LIFETIMES: () => COMPUTER_TERMINAL_LIFETIMES,
|
|
130
|
+
COMPUTER_TERMINAL_SIGNALS: () => COMPUTER_TERMINAL_SIGNALS,
|
|
131
|
+
DAEMON_COMPUTER_EVENTS: () => DAEMON_COMPUTER_EVENTS,
|
|
132
|
+
DAEMON_COMPUTER_EVENT_NAMES: () => DAEMON_COMPUTER_EVENT_NAMES,
|
|
133
|
+
DAEMON_COMPUTER_REPORT_EVENT_KEYS: () => DAEMON_COMPUTER_REPORT_EVENT_KEYS,
|
|
134
|
+
browserActivityOriginAllowed: () => browserActivityOriginAllowed,
|
|
135
|
+
clampComputerBrowserViewport: () => clampComputerBrowserViewport,
|
|
136
|
+
computerAccessOperations: () => computerAccessOperations,
|
|
137
|
+
computerControlChangeIsHolderChange: () => computerControlChangeIsHolderChange,
|
|
138
|
+
computerDeclaredServiceOperation: () => computerDeclaredServiceOperation,
|
|
139
|
+
computerDeclaredServiceSpec: () => computerDeclaredServiceSpec,
|
|
140
|
+
computerDeclaredServiceUrl: () => computerDeclaredServiceUrl,
|
|
141
|
+
computerFileEntityTagsEqual: () => computerFileEntityTagsEqual,
|
|
142
|
+
computerLeaseAcceptsInput: () => computerLeaseAcceptsInput,
|
|
143
|
+
computerLeaseInputRefusal: () => computerLeaseInputRefusal,
|
|
144
|
+
computerOffersPowerActions: () => computerOffersPowerActions,
|
|
145
|
+
computerOperationAllowed: () => computerOperationAllowed,
|
|
146
|
+
computerPowerPhaseForLeaseState: () => computerPowerPhaseForLeaseState,
|
|
147
|
+
computerShowsDesktop: () => computerShowsDesktop,
|
|
148
|
+
computerTierOperations: () => computerTierOperations,
|
|
149
|
+
isComputerPlatformRouteSession: () => isComputerPlatformRouteSession,
|
|
150
|
+
normalizeBrowserActivityOriginPolicy: () => normalizeBrowserActivityOriginPolicy,
|
|
151
|
+
normalizeComputerRefusalCode: () => normalizeComputerRefusalCode
|
|
152
|
+
});
|
|
153
|
+
module.exports = __toCommonJS(computerWire_exports);
|
|
154
|
+
const COMPUTER_EVENTS = {
|
|
155
|
+
/** client → API: attach to a machine. */
|
|
156
|
+
attach: "computer:attach",
|
|
157
|
+
/** client → API: leave. */
|
|
158
|
+
detach: "computer:detach",
|
|
159
|
+
/**
|
|
160
|
+
* client → API: read the whole manifest again ON THE SAME ATTACHMENT, after
|
|
161
|
+
* a missed delta or a `stale_epoch` (OSK-13815). The ack carries what an
|
|
162
|
+
* attach's does — the attachment id (unchanged), the manifest and the
|
|
163
|
+
* operations — or a typed refusal; `not_found` means the attachment is gone
|
|
164
|
+
* and only then does the client attach afresh. Re-reading state must never
|
|
165
|
+
* change who the reader is: a control lease is bound to the attachment
|
|
166
|
+
* (`holderAttachmentId`), and a resync that detached and attached again
|
|
167
|
+
* orphaned the hold the person had just taken. Answered by the API, which
|
|
168
|
+
* renews the binding with the daemon exactly as its periodic re-check does
|
|
169
|
+
* (a repeated `daemon:computer:attach` with the same id), so it has no
|
|
170
|
+
* daemon mirror and needs no daemon capability. An API that predates it
|
|
171
|
+
* never answers; the client bounds the wait and falls back to attaching
|
|
172
|
+
* afresh.
|
|
173
|
+
*/
|
|
174
|
+
resync: "computer:resync",
|
|
175
|
+
/** API → client: this attachment was detached, with the reason (revoked, stale generation, …). */
|
|
176
|
+
detached: "computer:detached",
|
|
177
|
+
/** API → client: a whole manifest, or a revisioned delta. */
|
|
178
|
+
manifest: "computer:manifest",
|
|
179
|
+
/** client → API: observe one surface. */
|
|
180
|
+
subscribe: "computer:surface:subscribe",
|
|
181
|
+
/** client → API: stop observing one surface. */
|
|
182
|
+
unsubscribe: "computer:surface:unsubscribe",
|
|
183
|
+
/** API → client: terminal bytes with a byte cursor, or a page frame. */
|
|
184
|
+
data: "computer:surface:data",
|
|
185
|
+
/**
|
|
186
|
+
* client → API: this viewer painted the page frame `seq` and wants the next.
|
|
187
|
+
* A viewer's slot is latest-wins: until it acknowledges, newer frames
|
|
188
|
+
* replace the one waiting for it and nothing queues (§6.2, §7.2 R3).
|
|
189
|
+
* Never acknowledged.
|
|
190
|
+
*/
|
|
191
|
+
frameAck: "computer:surface:frame:ack",
|
|
192
|
+
/** client → API: take / release / request / grant / decline. */
|
|
193
|
+
control: "computer:surface:control",
|
|
194
|
+
/** client → API: share or unshare one of the person's own surfaces with an agent session. */
|
|
195
|
+
share: "computer:surface:share",
|
|
196
|
+
/** client → API: one input, carrying the lease epoch. Never acknowledged. */
|
|
197
|
+
input: "computer:surface:input",
|
|
198
|
+
/** client → API: open a person's own terminal or browser window. */
|
|
199
|
+
open: "computer:surface:open",
|
|
200
|
+
/** client → API: close a surface. */
|
|
201
|
+
close: "computer:surface:close",
|
|
202
|
+
/** API → client: activity events. */
|
|
203
|
+
activity: "computer:activity",
|
|
204
|
+
/** client → API: the activity events after a `seq`, to fill a gap. */
|
|
205
|
+
activityFill: "computer:activity:fill",
|
|
206
|
+
/** client → API: the directories expanded and files open, which scope the file watches. */
|
|
207
|
+
filesWatch: "computer:files:watch",
|
|
208
|
+
/**
|
|
209
|
+
* API → client: what this attachment's scoped watches saw — paths and kinds,
|
|
210
|
+
* never contents — or that they went stale and the tree must be refreshed
|
|
211
|
+
* (§6.3 layer 2). Needs `computer_files_watch_v1`.
|
|
212
|
+
*/
|
|
213
|
+
filesChanged: "computer:files:changed",
|
|
214
|
+
/**
|
|
215
|
+
* client → API: answer a dialog the page is blocked on. Only the attachment
|
|
216
|
+
* holding the browser's lease, at the current epoch. Needs
|
|
217
|
+
* `computer_browser_page_v1`.
|
|
218
|
+
*/
|
|
219
|
+
dialog: "computer:surface:dialog",
|
|
220
|
+
/**
|
|
221
|
+
* client → API: copy-out — the text the person selected on the page, answered
|
|
222
|
+
* to the asking attachment alone and only while it holds the lease at the
|
|
223
|
+
* current epoch. Needs `computer_browser_page_v1`.
|
|
224
|
+
*/
|
|
225
|
+
copy: "computer:surface:copy",
|
|
226
|
+
/**
|
|
227
|
+
* client → API: answer the file chooser a page opened (§6.2 "a file chooser
|
|
228
|
+
* opens a picker over the computer's files, or a local upload"): paths on the
|
|
229
|
+
* computer, or none to cancel. Only the attachment holding the browser's
|
|
230
|
+
* lease, at the current epoch; the paths are read as the file surface reads
|
|
231
|
+
* them. Needs `computer_browser_file_chooser_v1`.
|
|
232
|
+
*/
|
|
233
|
+
fileChooser: "computer:surface:filechooser",
|
|
234
|
+
/** Deliberate semantic teaching in the browser controlled by this attachment. */
|
|
235
|
+
teaching: "computer:surface:teaching"
|
|
236
|
+
};
|
|
237
|
+
const DAEMON_COMPUTER_EVENTS = {
|
|
238
|
+
// API → daemon
|
|
239
|
+
/** Bind an attachment: its principal, operations and (dedicated) generation. */
|
|
240
|
+
attach: "daemon:computer:attach",
|
|
241
|
+
detach: "daemon:computer:detach",
|
|
242
|
+
/** The machine's grant set, whole, on registration and on every change. */
|
|
243
|
+
grants: "daemon:computer:grants",
|
|
244
|
+
subscribe: "daemon:computer:surface:subscribe",
|
|
245
|
+
unsubscribe: "daemon:computer:surface:unsubscribe",
|
|
246
|
+
frameAck: "daemon:computer:surface:frame:ack",
|
|
247
|
+
control: "daemon:computer:surface:control",
|
|
248
|
+
share: "daemon:computer:surface:share",
|
|
249
|
+
input: "daemon:computer:surface:input",
|
|
250
|
+
open: "daemon:computer:surface:open",
|
|
251
|
+
close: "daemon:computer:surface:close",
|
|
252
|
+
activityFill: "daemon:computer:activity:fill",
|
|
253
|
+
filesWatch: "daemon:computer:files:watch",
|
|
254
|
+
/** One file operation, relayed from `/api/machines/:machineId/files/<op>`. */
|
|
255
|
+
files: "daemon:computer:files",
|
|
256
|
+
dialog: "daemon:computer:surface:dialog",
|
|
257
|
+
copy: "daemon:computer:surface:copy",
|
|
258
|
+
fileChooser: "daemon:computer:surface:filechooser",
|
|
259
|
+
teaching: "daemon:computer:surface:teaching",
|
|
260
|
+
/**
|
|
261
|
+
* Pin or unpin the surface an open human-input request names (§8): a pinned
|
|
262
|
+
* surface is not reclaimed by idle or wall-clock expiry. Fire-and-forget,
|
|
263
|
+
* idempotent on the pin id, bounded by its own `until`. Needs
|
|
264
|
+
* `computer_surface_pin_v1`.
|
|
265
|
+
*/
|
|
266
|
+
pin: "daemon:computer:surface:pin",
|
|
267
|
+
/**
|
|
268
|
+
* Declare, withdraw or list the machine's declared services (§20.5): a web
|
|
269
|
+
* service someone started on the machine, named and opened in the
|
|
270
|
+
* computer's own browser. Carries a `requestId`, the principal the API
|
|
271
|
+
* authorized and, for a declaration, who declared it; the daemon checks the
|
|
272
|
+
* principal against the grant set it holds. Needs
|
|
273
|
+
* `computer_declared_services_v1`.
|
|
274
|
+
*/
|
|
275
|
+
services: "daemon:computer:services",
|
|
276
|
+
/**
|
|
277
|
+
* Read the tail of the daemon's OWN process log (a bounded, redacted copy of
|
|
278
|
+
* what its logger wrote since it started), for the owner who asks why their
|
|
279
|
+
* machine reconnected. Carries a `requestId` and the principal the API
|
|
280
|
+
* authorized (`observe`); the daemon checks the principal against the grant
|
|
281
|
+
* set it holds. Needs `computer_daemon_log_v1`.
|
|
282
|
+
*/
|
|
283
|
+
daemonLog: "daemon:computer:log",
|
|
284
|
+
// daemon → API
|
|
285
|
+
/** The answer to any request that carried a `requestId`. */
|
|
286
|
+
ack: "daemon:computer:ack",
|
|
287
|
+
manifest: "daemon:computer:manifest",
|
|
288
|
+
data: "daemon:computer:surface:data",
|
|
289
|
+
activity: "daemon:computer:activity",
|
|
290
|
+
/** The daemon detached an attachment itself, e.g. its grant was revoked. */
|
|
291
|
+
detached: "daemon:computer:detached",
|
|
292
|
+
/** One attachment's scoped watches saw changes, or went stale (§6.3). */
|
|
293
|
+
filesChanged: "daemon:computer:files:changed",
|
|
294
|
+
/**
|
|
295
|
+
* The daemon's own frame-lane counters (§7.2, OSK-13616), every
|
|
296
|
+
* `COMPUTER_DIAGNOSTICS_INTERVAL_MS` while anyone is attached: counters and
|
|
297
|
+
* per-viewer timestamps from a closed vocabulary, never content. Needs
|
|
298
|
+
* `computer_diagnostics_v1`. Fire-and-forget; a lost report is the next one.
|
|
299
|
+
*/
|
|
300
|
+
diagnostics: "daemon:computer:diagnostics"
|
|
301
|
+
};
|
|
302
|
+
const COMPUTER_EVENT_NAMES = Object.values(COMPUTER_EVENTS);
|
|
303
|
+
const DAEMON_COMPUTER_EVENT_NAMES = Object.values(DAEMON_COMPUTER_EVENTS);
|
|
304
|
+
const DAEMON_COMPUTER_REPORT_EVENT_KEYS = [
|
|
305
|
+
"ack",
|
|
306
|
+
"manifest",
|
|
307
|
+
"data",
|
|
308
|
+
"activity",
|
|
309
|
+
"detached",
|
|
310
|
+
"filesChanged",
|
|
311
|
+
"diagnostics"
|
|
221
312
|
];
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
'filesChanged',
|
|
313
|
+
const COMPUTER_SERVER_EVENT_KEYS = [
|
|
314
|
+
"detached",
|
|
315
|
+
"manifest",
|
|
316
|
+
"data",
|
|
317
|
+
"activity",
|
|
318
|
+
"filesChanged"
|
|
229
319
|
];
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
* mirror: every other client request is relayed to the daemon under the same
|
|
233
|
-
* key. `resync` renews the binding through the daemon's existing attach
|
|
234
|
-
* (OSK-13815).
|
|
235
|
-
*/
|
|
236
|
-
exports.COMPUTER_API_ANSWERED_EVENT_KEYS = [
|
|
237
|
-
'resync',
|
|
320
|
+
const COMPUTER_API_ANSWERED_EVENT_KEYS = [
|
|
321
|
+
"resync"
|
|
238
322
|
];
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
*/
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
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
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
* is not starting. Without the announcement a client cannot tell, and falls
|
|
386
|
-
* back to reading a surface it saw open moments ago as starting.
|
|
387
|
-
*/
|
|
388
|
-
browserStarting: 'computer_browser_starting_v1',
|
|
389
|
-
/**
|
|
390
|
-
* An agent actor on the machine's activity and control leases (OSK-13827)
|
|
391
|
-
* names the REAL agent: `agentId` is the agent's own id for tool-call and
|
|
392
|
-
* browser sessions too (v1 daemons put the SESSION id there for tool calls,
|
|
393
|
-
* so no reader could ever name them), and may carry `engine`, the harness
|
|
394
|
-
* the session runs on, so one agent's sessions on different engines can be
|
|
395
|
-
* told apart. A daemon announcing this states what it sends; the server
|
|
396
|
-
* withholds `engine` from every other daemon's actors, and a reader treats
|
|
397
|
-
* an actor without it as it always did.
|
|
398
|
-
*/
|
|
399
|
-
activityActorV2: 'computer_activity_actor_v2',
|
|
323
|
+
const COMPUTER_RESYNC_TIMEOUT_MS = 12e3;
|
|
324
|
+
const COMPUTER_MANIFEST_REORDER_WAIT_MS = 300;
|
|
325
|
+
const COMPUTER_CAPABILITIES = {
|
|
326
|
+
/** Manifest, surfaces, control leases, terminal surfaces, activity core. */
|
|
327
|
+
computer: "computer_v1",
|
|
328
|
+
/** The grant set and the daemon's own check of every attachment against it (§9). */
|
|
329
|
+
access: "computer_access_v1",
|
|
330
|
+
/** The file surface: `daemon:computer:files` and `computer:files:watch` (§6.3). */
|
|
331
|
+
files: "computer_files_v1",
|
|
332
|
+
/**
|
|
333
|
+
* Filename and content search and git status decorations over the tenant
|
|
334
|
+
* roots, as the workload (§6.3 "Later, same contract"): the `FileSearch` and
|
|
335
|
+
* `FileGitStatus` tools. A daemon without it is never asked.
|
|
336
|
+
*/
|
|
337
|
+
filesSearch: "computer_files_search_v1",
|
|
338
|
+
/**
|
|
339
|
+
* File mutations fenced on what the person saw (review CW-01, CW-02 and the
|
|
340
|
+
* folder-delete finding): an upload commits create-only (`exists` when the
|
|
341
|
+
* name was claimed) or over exactly the version chosen to be replaced
|
|
342
|
+
* (`replaceTag`, else `file_changed`); a committed transfer leaves a receipt,
|
|
343
|
+
* so a resume after a lost final acknowledgement answers "already
|
|
344
|
+
* committed"; and `stat` with `contents: true` gives a folder a contents tag that
|
|
345
|
+
* a recursive delete presents. A daemon without it would ignore those
|
|
346
|
+
* conditions, so the API refuses them `capability_missing` instead of
|
|
347
|
+
* sending them.
|
|
348
|
+
*/
|
|
349
|
+
filesFenced: "computer_files_fenced_v1",
|
|
350
|
+
/** Observe attachments on a browser surface, separate from control (§6.2). */
|
|
351
|
+
browserObserve: "computer_browser_observe_v1",
|
|
352
|
+
/** A browser surface's tab strip and tab input (§6.2). */
|
|
353
|
+
browserTabs: "computer_browser_tabs_v1",
|
|
354
|
+
/**
|
|
355
|
+
* The rest of a real browser on a browser surface (§6.2): its pending
|
|
356
|
+
* dialogs and its downloads on the descriptor, answering a dialog
|
|
357
|
+
* (`computer:surface:dialog`) and copy-out (`computer:surface:copy`).
|
|
358
|
+
* Permission prompts are not part of it: Chromium exposes no CDP event for
|
|
359
|
+
* them (headless refuses them), so no surface may claim to show one.
|
|
360
|
+
*/
|
|
361
|
+
browserPage: "computer_browser_page_v1",
|
|
362
|
+
browserTeaching: "computer_browser_teaching_v1",
|
|
363
|
+
/** Separately consented, origin-filtered semantic activity review. */
|
|
364
|
+
browserActivityReview: "computer_browser_activity_review_v1",
|
|
365
|
+
/** Sharing a person's own surface with an agent session (§5.4). */
|
|
366
|
+
surfaceShare: "computer_surface_share_v1",
|
|
367
|
+
/** Pinning a surface an open human-input request names: `daemon:computer:surface:pin` (§8). */
|
|
368
|
+
surfacePin: "computer_surface_pin_v1",
|
|
369
|
+
/**
|
|
370
|
+
* "Reset browser" — sign out everywhere (§6.2, OSK-13499): the
|
|
371
|
+
* `reset_browser` control action on a browser surface. Announced only by a
|
|
372
|
+
* daemon whose browser keeps one profile across sessions (a Dedicated
|
|
373
|
+
* Runtime guest); a personal machine's browser keeps nothing to reset.
|
|
374
|
+
*/
|
|
375
|
+
browserReset: "computer_browser_reset_v1",
|
|
376
|
+
/**
|
|
377
|
+
* Scoped file watches (§6.3 layer 2): `computer:files:watch` is served and
|
|
378
|
+
* `computer:files:changed` reports. Announced only where the daemon runs a
|
|
379
|
+
* watcher it can stand behind; without it the file tree says it does not
|
|
380
|
+
* update by itself and offers a refresh.
|
|
381
|
+
*/
|
|
382
|
+
filesWatch: "computer_files_watch_v1",
|
|
383
|
+
/**
|
|
384
|
+
* The file chooser a page opens while a person holds the browser (§6.2,
|
|
385
|
+
* OSK-13481): the pending chooser on the descriptor (`fileChooser`) and
|
|
386
|
+
* answering it with files on the computer (`computer:surface:file-chooser`).
|
|
387
|
+
* Announced only by a daemon whose browser intercepts the chooser.
|
|
388
|
+
*/
|
|
389
|
+
browserFileChooser: "computer_browser_file_chooser_v1",
|
|
390
|
+
/**
|
|
391
|
+
* A person's own terminal opens in a folder (§6.3 "Open a terminal here",
|
|
392
|
+
* OSK-13615): `computer:surface:open` carries `cwd`, which the daemon checks
|
|
393
|
+
* the way the file surface would (the tenant roots as the workload; on a
|
|
394
|
+
* personal machine the deny set, `blockedPaths` and home) and refuses typed
|
|
395
|
+
* when it may not. Without it the client types `cd` once it holds control.
|
|
396
|
+
*/
|
|
397
|
+
terminalCwd: "computer_terminal_cwd_v1",
|
|
398
|
+
/**
|
|
399
|
+
* A run in an agent's interactive shell (`terminal.run`, tool `Terminal`)
|
|
400
|
+
* says where in its terminal's byte stream it began: `streamOffset` on its
|
|
401
|
+
* `command` activity, the terminal lane's cursor at that moment (§6.1, task
|
|
402
|
+
* 5-04b, OSK-13614). A client places such a block inline at that point of
|
|
403
|
+
* the terminal; without the capability it keeps every block in the list
|
|
404
|
+
* below the terminal, as before.
|
|
405
|
+
*/
|
|
406
|
+
terminalCommandOffset: "computer_terminal_command_offset_v1",
|
|
407
|
+
/**
|
|
408
|
+
* The daemon reports its frame-lane counters (`daemon:computer:diagnostics`,
|
|
409
|
+
* OSK-13616), so the API's own logs can tell "the daemon stopped sending"
|
|
410
|
+
* from "the page did not change". Announced by the relay that sends them;
|
|
411
|
+
* the API asks nothing of a daemon without it, and reads its silence as
|
|
412
|
+
* "unreported", never as healthy.
|
|
413
|
+
*/
|
|
414
|
+
diagnostics: "computer_diagnostics_v1",
|
|
415
|
+
/**
|
|
416
|
+
* Declared services (§20.5, 9-17, OSK-13579): the manifest carries
|
|
417
|
+
* `services`, the web services an agent or a person declared on this
|
|
418
|
+
* machine, and `daemon:computer:services` (and the agent's
|
|
419
|
+
* `computer.services` tool call) declares, withdraws and lists them. A
|
|
420
|
+
* service is a localhost port on the machine, opened in the computer's own
|
|
421
|
+
* browser; nothing is proxied to it. Announced by the relay that serves it.
|
|
422
|
+
*/
|
|
423
|
+
declaredServices: "computer_declared_services_v1",
|
|
424
|
+
/**
|
|
425
|
+
* The daemon serves the tail of its own process log
|
|
426
|
+
* (`daemon:computer:log`): an in-memory ring of lines its logger
|
|
427
|
+
* wrote, redacted before they enter the ring, read at the `watch` tier. It
|
|
428
|
+
* is NOT syslog or the journal and never reads either. Announced by the relay
|
|
429
|
+
* that serves it; a personal machine's daemon announces it too and refuses
|
|
430
|
+
* the read `consent_missing` until `skrr computer allow`.
|
|
431
|
+
*/
|
|
432
|
+
daemonLog: "computer_daemon_log_v1",
|
|
433
|
+
/**
|
|
434
|
+
* The page follows the controlling window (§6.2 "a stable viewport", §7.1,
|
|
435
|
+
* OSK-13808): a browser `viewport` input, sent only by the attachment that
|
|
436
|
+
* holds the browser's lease at the current epoch, sizes the streamed page
|
|
437
|
+
* to that window's content box (`COMPUTER_BROWSER_VIEWPORT_LIMITS`). Only
|
|
438
|
+
* while a person holds control: handing back — or the hold lapsing, being
|
|
439
|
+
* revoked or moving to the agent any other way — restores the browser's own
|
|
440
|
+
* viewport before the agent can act, so an agent never inherits a person's
|
|
441
|
+
* size. Watchers keep seeing the page at whatever size it is, scaled to
|
|
442
|
+
* fit. Announced only where the browser driver can override and restore
|
|
443
|
+
* the page's metrics; without it the window scales the fixed page, as
|
|
444
|
+
* before, and never sends the input.
|
|
445
|
+
*/
|
|
446
|
+
browserViewport: "computer_browser_viewport_v1",
|
|
447
|
+
/**
|
|
448
|
+
* A browser surface whose browser is still starting says so (OSK-13824): its
|
|
449
|
+
* descriptor carries `starting: { since }` from the moment its Chromium
|
|
450
|
+
* begins to launch until that launch ends (running, or failed), and the
|
|
451
|
+
* window shows "Starting the browser…" instead of subscribing into a
|
|
452
|
+
* refusal. A cold start on a fresh guest takes 25–30 s. A daemon announcing
|
|
453
|
+
* this states the ABSENCE of `starting` too: a browser surface without it
|
|
454
|
+
* is not starting. Without the announcement a client cannot tell, and falls
|
|
455
|
+
* back to reading a surface it saw open moments ago as starting.
|
|
456
|
+
*/
|
|
457
|
+
browserStarting: "computer_browser_starting_v1",
|
|
458
|
+
/**
|
|
459
|
+
* An agent actor on the machine's activity and control leases (OSK-13827)
|
|
460
|
+
* names the REAL agent: `agentId` is the agent's own id for tool-call and
|
|
461
|
+
* browser sessions too (v1 daemons put the SESSION id there for tool calls,
|
|
462
|
+
* so no reader could ever name them), and may carry `engine`, the harness
|
|
463
|
+
* the session runs on, so one agent's sessions on different engines can be
|
|
464
|
+
* told apart. A daemon announcing this states what it sends; the server
|
|
465
|
+
* withholds `engine` from every other daemon's actors, and a reader treats
|
|
466
|
+
* an actor without it as it always did.
|
|
467
|
+
*/
|
|
468
|
+
activityActorV2: "computer_activity_actor_v2"
|
|
400
469
|
};
|
|
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
|
-
'consent_missing',
|
|
452
|
-
/** The path is withheld by the daemon's deny set, `blockedPaths` or a sensitive pattern (§18). */
|
|
453
|
-
'path_withheld',
|
|
454
|
-
/** The file is over the size the editor or the read accepts. */
|
|
455
|
-
'too_large',
|
|
456
|
-
/** The machine has as many declared services as it allows (`COMPUTER_DECLARED_SERVICES_MAX`). */
|
|
457
|
-
'service_limit',
|
|
470
|
+
const COMPUTER_CAPABILITY_VALUES = Object.values(COMPUTER_CAPABILITIES);
|
|
471
|
+
const COMPUTER_REFUSAL_CODES = [
|
|
472
|
+
/** A person holds the surface; the agent may wait, do other work, or ask. */
|
|
473
|
+
"human_control",
|
|
474
|
+
/** The input was issued under a lease epoch that is no longer current. */
|
|
475
|
+
"stale_epoch",
|
|
476
|
+
/** The attachment is bound to a Dedicated Runtime generation that has been replaced. */
|
|
477
|
+
"stale_generation",
|
|
478
|
+
/** The file changed since it was read; the refusal carries the current tag. */
|
|
479
|
+
"file_changed",
|
|
480
|
+
/** The machine's daemon did not announce the capability this needs. */
|
|
481
|
+
"capability_missing",
|
|
482
|
+
/** The principal may not perform this operation on this machine. */
|
|
483
|
+
"unauthorized",
|
|
484
|
+
/** Control cannot move this way, e.g. an agent asking to take from a person. */
|
|
485
|
+
"control_denied",
|
|
486
|
+
/** The attachment does not hold the lease it is acting under. */
|
|
487
|
+
"not_holder",
|
|
488
|
+
"attachment_limit",
|
|
489
|
+
"observer_limit",
|
|
490
|
+
"watch_limit",
|
|
491
|
+
"grant_limit",
|
|
492
|
+
/** The machine runs as many browsers as it allows; a person's own window waits for one to close. */
|
|
493
|
+
"browser_limit",
|
|
494
|
+
"rate_limited",
|
|
495
|
+
/** The machine, surface, tab or request does not exist. */
|
|
496
|
+
"not_found",
|
|
497
|
+
/** The surface has ended. */
|
|
498
|
+
"surface_ended",
|
|
499
|
+
/** The machine is not running (§10 decides the picture). */
|
|
500
|
+
"machine_unavailable",
|
|
501
|
+
/** The machine's daemon is not answering. */
|
|
502
|
+
"daemon_unreachable",
|
|
503
|
+
/**
|
|
504
|
+
* The relay failed while answering — an exception, not a fact about the
|
|
505
|
+
* machine. Retryable; the API log carries the same `correlationId`
|
|
506
|
+
* (OSK-13823). Never `machine_unavailable`, which says the machine is down.
|
|
507
|
+
*/
|
|
508
|
+
"relay_error",
|
|
509
|
+
/** A bounded wait ran out (§7.2 R4). */
|
|
510
|
+
"timeout",
|
|
511
|
+
"invalid_request",
|
|
512
|
+
/** A personal machine has not allowed this part of the computer (§18, D11). */
|
|
513
|
+
"consent_missing",
|
|
514
|
+
/** The path is withheld by the daemon's deny set, `blockedPaths` or a sensitive pattern (§18). */
|
|
515
|
+
"path_withheld",
|
|
516
|
+
/** The file is over the size the editor or the read accepts. */
|
|
517
|
+
"too_large",
|
|
518
|
+
/** The machine has as many declared services as it allows (`COMPUTER_DECLARED_SERVICES_MAX`). */
|
|
519
|
+
"service_limit"
|
|
458
520
|
];
|
|
459
|
-
/**
|
|
460
|
-
* The code when it is a computer refusal, else `null`. There is one spelling
|
|
461
|
-
* per code: the browser's older spelling of `human_control` was accepted for
|
|
462
|
-
* one release and retired with the old browser events (§5.2, OSK-13509).
|
|
463
|
-
*/
|
|
464
521
|
function normalizeComputerRefusalCode(code) {
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
? code
|
|
470
|
-
: null;
|
|
522
|
+
if (typeof code !== "string") {
|
|
523
|
+
return null;
|
|
524
|
+
}
|
|
525
|
+
return COMPUTER_REFUSAL_CODES.includes(code) ? code : null;
|
|
471
526
|
}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
* Who an activity event is attributed to. `system` is what happened with no
|
|
478
|
-
* actor behind it — a process exited, the machine stopped — and appears ONLY
|
|
479
|
-
* on activity: it never holds a lease, is never present, is never audited as
|
|
480
|
-
* an actor. Without it on the wire every lifecycle event was dropped by the
|
|
481
|
-
* API and a client saw a `seq` hole no fill could close.
|
|
482
|
-
*/
|
|
483
|
-
exports.COMPUTER_ACTIVITY_ACTOR_KINDS = [...exports.COMPUTER_ACTOR_KINDS, 'system'];
|
|
484
|
-
/**
|
|
485
|
-
* The session ids the PLATFORM's own routes run daemon tools under — the web
|
|
486
|
-
* Files surface (`computer-files:` on a personal machine, `dedicated-runtime:`
|
|
487
|
-
* on a Dedicated Runtime) and the owner's `skrr machines dedicated` commands.
|
|
488
|
-
* No agent and no model is behind such a session: the person who asked is
|
|
489
|
-
* known to the API (which audits it), not to the daemon. So an activity event
|
|
490
|
-
* produced under one names no agent (OSK-13790: a person's upload used to read
|
|
491
|
-
* "agent created …"). Built by `ComputerFileService.runPersonalMachineTool`
|
|
492
|
-
* and `DedicatedRuntimeMachineAccess.runDedicatedRuntimeTool`.
|
|
493
|
-
*/
|
|
494
|
-
exports.COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES = [
|
|
495
|
-
'dedicated-runtime:',
|
|
496
|
-
'computer-files:',
|
|
527
|
+
const COMPUTER_ACTOR_KINDS = ["agent", "human"];
|
|
528
|
+
const COMPUTER_ACTIVITY_ACTOR_KINDS = [...COMPUTER_ACTOR_KINDS, "system"];
|
|
529
|
+
const COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES = [
|
|
530
|
+
"dedicated-runtime:",
|
|
531
|
+
"computer-files:"
|
|
497
532
|
];
|
|
498
|
-
/** Whether a tool call's session is one of the platform's own routes, not an agent's. */
|
|
499
533
|
function isComputerPlatformRouteSession(sessionId) {
|
|
500
|
-
|
|
501
|
-
exports.COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES.some((prefix) => sessionId.startsWith(prefix)));
|
|
534
|
+
return typeof sessionId === "string" && COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES.some((prefix) => sessionId.startsWith(prefix));
|
|
502
535
|
}
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
* What a principal may do on a computer. Kept separate so a refusal says
|
|
513
|
-
* exactly what was refused. `power`, closing other people's surfaces and
|
|
514
|
-
* managing grants stay with the owner; no tier contains `power`.
|
|
515
|
-
*/
|
|
516
|
-
exports.COMPUTER_OPERATIONS = [
|
|
517
|
-
'observe',
|
|
518
|
-
'control',
|
|
519
|
-
'files.read',
|
|
520
|
-
'files.write',
|
|
521
|
-
'open',
|
|
522
|
-
'power',
|
|
536
|
+
const COMPUTER_ACTOR_ENGINE_MAX_LENGTH = 64;
|
|
537
|
+
const COMPUTER_ACCESS_LEVELS = ["owner", "watch", "operate"];
|
|
538
|
+
const COMPUTER_OPERATIONS = [
|
|
539
|
+
"observe",
|
|
540
|
+
"control",
|
|
541
|
+
"files.read",
|
|
542
|
+
"files.write",
|
|
543
|
+
"open",
|
|
544
|
+
"power"
|
|
523
545
|
];
|
|
524
|
-
|
|
525
|
-
exports.COMPUTER_GRANT_TIERS = ['watch', 'operate'];
|
|
546
|
+
const COMPUTER_GRANT_TIERS = ["watch", "operate"];
|
|
526
547
|
const TIER_OPERATIONS = Object.freeze({
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
548
|
+
/** See every surface on the machine and its activity. No input, no file browsing. */
|
|
549
|
+
watch: Object.freeze(["observe"]),
|
|
550
|
+
/** The machine's account in another person's hands. */
|
|
551
|
+
operate: Object.freeze(["observe", "control", "files.read", "files.write", "open"])
|
|
531
552
|
});
|
|
532
|
-
/** The fixed set of operations a grant tier carries. */
|
|
533
553
|
function computerTierOperations(tier) {
|
|
534
|
-
|
|
554
|
+
return TIER_OPERATIONS[tier];
|
|
535
555
|
}
|
|
536
|
-
/** Whether a grant tier carries `operation`. */
|
|
537
556
|
function computerOperationAllowed(tier, operation) {
|
|
538
|
-
|
|
557
|
+
return TIER_OPERATIONS[tier].includes(operation);
|
|
539
558
|
}
|
|
540
|
-
/** The operations an access level carries: the owner holds every one. */
|
|
541
559
|
function computerAccessOperations(level) {
|
|
542
|
-
|
|
560
|
+
return level === "owner" ? COMPUTER_OPERATIONS : TIER_OPERATIONS[level];
|
|
543
561
|
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
'reveal',
|
|
574
|
-
/**
|
|
575
|
-
* Sign out everywhere (§6.2, OSK-13499): end every browser window on the
|
|
576
|
-
* computer — the agent's and the person's, which share one cookie jar —
|
|
577
|
-
* stop the browser and remove its profile. On a browser surface, by the
|
|
578
|
-
* owner or the person holding it; never an observer. Needs
|
|
579
|
-
* `computer_browser_reset_v1`. Answers with the asking surface's last lease.
|
|
580
|
-
*/
|
|
581
|
-
'reset_browser',
|
|
562
|
+
const COMPUTER_HANDBACK_NOTE_MAX_LENGTH = 2e3;
|
|
563
|
+
const COMPUTER_CONTROL_IDLE_MS = 10 * 60 * 1e3;
|
|
564
|
+
const COMPUTER_RECLAIM_WARNING_MS = 60 * 1e3;
|
|
565
|
+
const COMPUTER_RECONNECT_GRACE_MS = 10 * 1e3;
|
|
566
|
+
const COMPUTER_AGENT_WRITE_WAIT_MS = 60 * 1e3;
|
|
567
|
+
const COMPUTER_CONTROL_ACTIONS = [
|
|
568
|
+
/** A person takes an agent-held surface. Human priority over the agent is unconditional. */
|
|
569
|
+
"take",
|
|
570
|
+
/** The holder hands back, optionally with a note. */
|
|
571
|
+
"release",
|
|
572
|
+
/** Ask a PERSON who holds the surface for it; leaves the lease untouched. */
|
|
573
|
+
"request",
|
|
574
|
+
/** The holding person gives the surface to the person who requested it. */
|
|
575
|
+
"grant",
|
|
576
|
+
/** The holding person declines a request. Changes nothing. */
|
|
577
|
+
"decline",
|
|
578
|
+
/**
|
|
579
|
+
* The person who stopped driving a browser without handing it back says the
|
|
580
|
+
* agent may see the page again (D12). Changes no holder.
|
|
581
|
+
*/
|
|
582
|
+
"reveal",
|
|
583
|
+
/**
|
|
584
|
+
* Sign out everywhere (§6.2, OSK-13499): end every browser window on the
|
|
585
|
+
* computer — the agent's and the person's, which share one cookie jar —
|
|
586
|
+
* stop the browser and remove its profile. On a browser surface, by the
|
|
587
|
+
* owner or the person holding it; never an observer. Needs
|
|
588
|
+
* `computer_browser_reset_v1`. Answers with the asking surface's last lease.
|
|
589
|
+
*/
|
|
590
|
+
"reset_browser"
|
|
582
591
|
];
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
'unshare',
|
|
603
|
-
/** The holder's grant was revoked. */
|
|
604
|
-
'revoked',
|
|
605
|
-
'machine_stopped',
|
|
592
|
+
const COMPUTER_SHARE_ACTIONS = ["share", "unshare"];
|
|
593
|
+
const COMPUTER_SHARE_MODES = ["observe", "control"];
|
|
594
|
+
const COMPUTER_SURFACE_PIN_ACTIONS = ["pin", "unpin"];
|
|
595
|
+
const COMPUTER_SURFACE_UNPIN_REASONS = ["answered", "dismissed", "expired"];
|
|
596
|
+
const COMPUTER_CONTROL_CHANGE_REASONS = [
|
|
597
|
+
"take",
|
|
598
|
+
"release",
|
|
599
|
+
"grant",
|
|
600
|
+
/** No human input for `COMPUTER_CONTROL_IDLE_MS`. */
|
|
601
|
+
"idle",
|
|
602
|
+
/** The holding client stayed disconnected past the reconnect grace. */
|
|
603
|
+
"disconnect",
|
|
604
|
+
/** A person's surface was shared with an agent session for control. */
|
|
605
|
+
"share",
|
|
606
|
+
/** The share ended: unshared, or the agent session ended. */
|
|
607
|
+
"unshare",
|
|
608
|
+
/** The holder's grant was revoked. */
|
|
609
|
+
"revoked",
|
|
610
|
+
"machine_stopped"
|
|
606
611
|
];
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
'request',
|
|
617
|
-
'request_declined',
|
|
618
|
-
'request_expired',
|
|
619
|
-
'request_withdrawn',
|
|
620
|
-
/** The page is visible to the agent again; no holder changed. */
|
|
621
|
-
'revealed',
|
|
612
|
+
const COMPUTER_CONTROL_ACTIVITY_CHANGES = [
|
|
613
|
+
...COMPUTER_CONTROL_CHANGE_REASONS,
|
|
614
|
+
/** A person asked the holding person for the surface. */
|
|
615
|
+
"request",
|
|
616
|
+
"request_declined",
|
|
617
|
+
"request_expired",
|
|
618
|
+
"request_withdrawn",
|
|
619
|
+
/** The page is visible to the agent again; no holder changed. */
|
|
620
|
+
"revealed"
|
|
622
621
|
];
|
|
623
|
-
/** Whether a `control` activity change moved the lease to a new holder. */
|
|
624
622
|
function computerControlChangeIsHolderChange(change) {
|
|
625
|
-
|
|
623
|
+
return COMPUTER_CONTROL_CHANGE_REASONS.includes(change);
|
|
626
624
|
}
|
|
627
|
-
/**
|
|
628
|
-
* Why an input from `attachmentId`, issued under `epoch`, must be dropped — or
|
|
629
|
-
* `null` when the lease accepts it.
|
|
630
|
-
*
|
|
631
|
-
* The epoch is checked first: an input issued under an epoch that is no longer
|
|
632
|
-
* current is the in-flight keystroke the fence exists for, whoever sent it.
|
|
633
|
-
* Only a current-epoch input from an attachment that does not hold the lease
|
|
634
|
-
* is `not_holder`. An agent-held lease accepts no attachment's input.
|
|
635
|
-
*/
|
|
636
625
|
function computerLeaseInputRefusal(lease, attachmentId, epoch) {
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
626
|
+
if (lease.epoch !== epoch) {
|
|
627
|
+
return "stale_epoch";
|
|
628
|
+
}
|
|
629
|
+
if (lease.holder.kind !== "human" || !lease.holderAttachmentId) {
|
|
630
|
+
return "not_holder";
|
|
631
|
+
}
|
|
632
|
+
return lease.holderAttachmentId === attachmentId ? null : "not_holder";
|
|
644
633
|
}
|
|
645
|
-
/** Whether the lease accepts an input from `attachmentId` issued under `epoch`. */
|
|
646
634
|
function computerLeaseAcceptsInput(lease, attachmentId, epoch) {
|
|
647
|
-
|
|
635
|
+
return computerLeaseInputRefusal(lease, attachmentId, epoch) === null;
|
|
648
636
|
}
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
/**
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
'closed',
|
|
665
|
-
'process_exited',
|
|
666
|
-
'daemon_restarted',
|
|
667
|
-
'browser_crashed',
|
|
668
|
-
/** The browser session was reclaimed by idle or wall-clock expiry. */
|
|
669
|
-
'expired',
|
|
670
|
-
/** Someone signed the computer's browser out everywhere, which ends every browser window. */
|
|
671
|
-
'browser_reset',
|
|
637
|
+
const COMPUTER_SURFACE_KINDS = ["terminal", "browser"];
|
|
638
|
+
const COMPUTER_SURFACE_STATES = ["live", "ended"];
|
|
639
|
+
const COMPUTER_SURFACE_END_REASONS = [
|
|
640
|
+
"machine_stopped",
|
|
641
|
+
/** The machine's owner closed a surface someone else opened (§5.1 rule 8). */
|
|
642
|
+
"closed_by_owner",
|
|
643
|
+
/** Whoever opened the surface closed it. */
|
|
644
|
+
"closed",
|
|
645
|
+
"process_exited",
|
|
646
|
+
"daemon_restarted",
|
|
647
|
+
"browser_crashed",
|
|
648
|
+
/** The browser session was reclaimed by idle or wall-clock expiry. */
|
|
649
|
+
"expired",
|
|
650
|
+
/** Someone signed the computer's browser out everywhere, which ends every browser window. */
|
|
651
|
+
"browser_reset"
|
|
672
652
|
];
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
*/
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
|
|
681
|
-
/**
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
*/
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
exports.COMPUTER_DIAGNOSTIC_COUNTERS = [
|
|
694
|
-
/** The browser handed the lane a frame for a live viewer: the page changed. */
|
|
695
|
-
'frames_produced',
|
|
696
|
-
/** A browser frame handed to the transport for a viewer. */
|
|
697
|
-
'frames_sent',
|
|
698
|
-
/** The transport was down when a frame was produced; the live view keeps it for its resume. */
|
|
699
|
-
'frames_held_disconnected',
|
|
700
|
-
/** A frame larger than the smallest transport, dropped at the source (R7). */
|
|
701
|
-
'frames_dropped_oversize',
|
|
702
|
-
/** The transport refused a frame; the next one is the newest anyway. */
|
|
703
|
-
'frames_send_failed',
|
|
704
|
-
/** A viewer acknowledged the frame in flight. */
|
|
705
|
-
'frames_acked',
|
|
706
|
-
/** No acknowledgement within the bound: the slot freed itself. */
|
|
707
|
-
'frames_ack_timeout',
|
|
708
|
-
/** A viewer's frame slot was freed by a resubscribe, detach or stop. */
|
|
709
|
-
'frame_slots_released',
|
|
653
|
+
const COMPUTER_BROWSER_VIEWPORT = Object.freeze({ width: 1280, height: 800 });
|
|
654
|
+
const COMPUTER_FRAME_MAX_BYTES = 1024 * 1024;
|
|
655
|
+
const COMPUTER_FRAME_ACK_TIMEOUT_MS = 5e3;
|
|
656
|
+
const COMPUTER_DIAGNOSTIC_COUNTERS = [
|
|
657
|
+
/** The browser handed the lane a frame for a live viewer: the page changed. */
|
|
658
|
+
"frames_produced",
|
|
659
|
+
/** A browser frame handed to the transport for a viewer. */
|
|
660
|
+
"frames_sent",
|
|
661
|
+
/** The transport was down when a frame was produced; the live view keeps it for its resume. */
|
|
662
|
+
"frames_held_disconnected",
|
|
663
|
+
/** A frame larger than the smallest transport, dropped at the source (R7). */
|
|
664
|
+
"frames_dropped_oversize",
|
|
665
|
+
/** The transport refused a frame; the next one is the newest anyway. */
|
|
666
|
+
"frames_send_failed",
|
|
667
|
+
/** A viewer acknowledged the frame in flight. */
|
|
668
|
+
"frames_acked",
|
|
669
|
+
/** No acknowledgement within the bound: the slot freed itself. */
|
|
670
|
+
"frames_ack_timeout",
|
|
671
|
+
/** A viewer's frame slot was freed by a resubscribe, detach or stop. */
|
|
672
|
+
"frame_slots_released"
|
|
710
673
|
];
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
* - `tmux`: a guest's persistent terminal from before the host; it outlives
|
|
726
|
-
* the daemon and ends with the machine, with no history;
|
|
727
|
-
* - `daemon`: its shell is in the daemon's own process and ends with it.
|
|
728
|
-
*/
|
|
729
|
-
exports.COMPUTER_TERMINAL_LIFETIMES = ['host', 'tmux', 'daemon'];
|
|
730
|
-
/**
|
|
731
|
-
* Why a reopened terminal's shell is not the one that wrote the history above
|
|
732
|
-
* its divider (OSK-13474). The terminal host decides it from its records.
|
|
733
|
-
*/
|
|
734
|
-
exports.COMPUTER_TERMINAL_HISTORY_CAUSES = [
|
|
735
|
-
/** The machine stopped or rebooted. */
|
|
736
|
-
'machine_restarted',
|
|
737
|
-
/** The terminal host was stopped while the shell ran. */
|
|
738
|
-
'host_stopped',
|
|
739
|
-
/** Off a guest: the host closed its terminals after its daemon stayed away for an hour. */
|
|
740
|
-
'host_orphaned',
|
|
741
|
-
/** The terminal host died without stopping and was started again. */
|
|
742
|
-
'host_restarted',
|
|
674
|
+
const COMPUTER_DIAGNOSTICS_INTERVAL_MS = 15e3;
|
|
675
|
+
const COMPUTER_DIAGNOSTICS_MAX_STREAMS = 64;
|
|
676
|
+
const COMPUTER_TERMINAL_SIGNALS = ["interrupt", "eof"];
|
|
677
|
+
const COMPUTER_TERMINAL_INPUT_TYPES = ["bytes", "paste", "resize", "signal"];
|
|
678
|
+
const COMPUTER_TERMINAL_LIFETIMES = ["host", "tmux", "daemon"];
|
|
679
|
+
const COMPUTER_TERMINAL_HISTORY_CAUSES = [
|
|
680
|
+
/** The machine stopped or rebooted. */
|
|
681
|
+
"machine_restarted",
|
|
682
|
+
/** The terminal host was stopped while the shell ran. */
|
|
683
|
+
"host_stopped",
|
|
684
|
+
/** Off a guest: the host closed its terminals after its daemon stayed away for an hour. */
|
|
685
|
+
"host_orphaned",
|
|
686
|
+
/** The terminal host died without stopping and was started again. */
|
|
687
|
+
"host_restarted"
|
|
743
688
|
];
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
* `viewport` needs `computer_browser_viewport_v1`.
|
|
754
|
-
*/
|
|
755
|
-
exports.COMPUTER_BROWSER_INPUT_TYPES = [
|
|
756
|
-
'pointer',
|
|
757
|
-
'key',
|
|
758
|
-
'text',
|
|
759
|
-
'navigate',
|
|
760
|
-
'history',
|
|
761
|
-
'tab',
|
|
762
|
-
'viewport',
|
|
689
|
+
const COMPUTER_TERMINAL_CAVEATS = ["windows_pty_unverified"];
|
|
690
|
+
const COMPUTER_BROWSER_INPUT_TYPES = [
|
|
691
|
+
"pointer",
|
|
692
|
+
"key",
|
|
693
|
+
"text",
|
|
694
|
+
"navigate",
|
|
695
|
+
"history",
|
|
696
|
+
"tab",
|
|
697
|
+
"viewport"
|
|
763
698
|
];
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
*/
|
|
772
|
-
exports.COMPUTER_BROWSER_VIEWPORT_LIMITS = Object.freeze({
|
|
773
|
-
minWidth: 320,
|
|
774
|
-
maxWidth: 2560,
|
|
775
|
-
minHeight: 240,
|
|
776
|
-
maxHeight: 1600,
|
|
777
|
-
minAspect: 0.4,
|
|
778
|
-
maxAspect: 3.2,
|
|
699
|
+
const COMPUTER_BROWSER_VIEWPORT_LIMITS = Object.freeze({
|
|
700
|
+
minWidth: 320,
|
|
701
|
+
maxWidth: 2560,
|
|
702
|
+
minHeight: 240,
|
|
703
|
+
maxHeight: 1600,
|
|
704
|
+
minAspect: 0.4,
|
|
705
|
+
maxAspect: 3.2
|
|
779
706
|
});
|
|
780
|
-
/**
|
|
781
|
-
* The size a `viewport` input asks for, made legal: whole CSS pixels inside
|
|
782
|
-
* `COMPUTER_BROWSER_VIEWPORT_LIMITS`, its aspect inside the clamp. Total and
|
|
783
|
-
* idempotent: the window sends what this returns and the daemon applies what
|
|
784
|
-
* this returns, so both ends agree on the page a size produces. Null for a size
|
|
785
|
-
* with no area (a hidden or collapsed window asks for nothing).
|
|
786
|
-
*/
|
|
787
707
|
function clampComputerBrowserViewport(size) {
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
708
|
+
const { width: rawWidth, height: rawHeight } = size ?? {};
|
|
709
|
+
if (!Number.isFinite(rawWidth) || !Number.isFinite(rawHeight))
|
|
710
|
+
return null;
|
|
711
|
+
if (!(rawWidth > 0) || !(rawHeight > 0))
|
|
712
|
+
return null;
|
|
713
|
+
const limits = COMPUTER_BROWSER_VIEWPORT_LIMITS;
|
|
714
|
+
const bound = (value, low, high) => Math.max(low, Math.min(high, Math.round(value)));
|
|
715
|
+
let width = bound(rawWidth, limits.minWidth, limits.maxWidth);
|
|
716
|
+
let height = bound(rawHeight, limits.minHeight, limits.maxHeight);
|
|
717
|
+
if (width / height > limits.maxAspect) {
|
|
718
|
+
width = Math.max(limits.minWidth, Math.floor(height * limits.maxAspect));
|
|
797
719
|
if (width / height > limits.maxAspect) {
|
|
798
|
-
|
|
799
|
-
width = Math.max(limits.minWidth, Math.floor(height * limits.maxAspect));
|
|
800
|
-
if (width / height > limits.maxAspect) {
|
|
801
|
-
height = Math.min(limits.maxHeight, Math.ceil(width / limits.maxAspect));
|
|
802
|
-
}
|
|
720
|
+
height = Math.min(limits.maxHeight, Math.ceil(width / limits.maxAspect));
|
|
803
721
|
}
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
width = Math.min(limits.maxWidth, Math.ceil(height * limits.minAspect));
|
|
809
|
-
}
|
|
722
|
+
} else if (width / height < limits.minAspect) {
|
|
723
|
+
height = Math.max(limits.minHeight, Math.floor(width / limits.minAspect));
|
|
724
|
+
if (width / height < limits.minAspect) {
|
|
725
|
+
width = Math.min(limits.maxWidth, Math.ceil(height * limits.minAspect));
|
|
810
726
|
}
|
|
811
|
-
|
|
727
|
+
}
|
|
728
|
+
return { width, height };
|
|
812
729
|
}
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
exports.COMPUTER_INPUT_TEXT_MAX_LENGTH = 16 * 1024;
|
|
822
|
-
/** What a page can block on until someone answers (§6.2). Permission prompts have no CDP event. */
|
|
823
|
-
exports.COMPUTER_BROWSER_DIALOG_KINDS = [
|
|
824
|
-
'alert',
|
|
825
|
-
'confirm',
|
|
826
|
-
'prompt',
|
|
827
|
-
'beforeunload',
|
|
828
|
-
'auth',
|
|
730
|
+
const COMPUTER_BROWSER_INPUT_PLATFORMS = ["mac", "windows", "linux", "other"];
|
|
731
|
+
const COMPUTER_INPUT_TEXT_MAX_LENGTH = 16 * 1024;
|
|
732
|
+
const COMPUTER_BROWSER_DIALOG_KINDS = [
|
|
733
|
+
"alert",
|
|
734
|
+
"confirm",
|
|
735
|
+
"prompt",
|
|
736
|
+
"beforeunload",
|
|
737
|
+
"auth"
|
|
829
738
|
];
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
'cancelled',
|
|
739
|
+
const COMPUTER_BROWSER_DIALOG_OUTCOMES = [
|
|
740
|
+
"accepted",
|
|
741
|
+
"dismissed",
|
|
742
|
+
"credentials_supplied",
|
|
743
|
+
"cancelled"
|
|
836
744
|
];
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
'page',
|
|
745
|
+
const COMPUTER_BROWSER_DIALOG_ANSWERERS = [
|
|
746
|
+
"agent_policy",
|
|
747
|
+
"agent",
|
|
748
|
+
"person",
|
|
749
|
+
"page"
|
|
843
750
|
];
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
/** `history` input: the browser's own back, forward and reload. */
|
|
869
|
-
exports.COMPUTER_BROWSER_HISTORY_ACTIONS = ['back', 'forward', 'reload'];
|
|
870
|
-
/** `tab` input. `activate` and `close` name a `tabId`; `open` opens a blank tab. */
|
|
871
|
-
exports.COMPUTER_BROWSER_TAB_ACTIONS = ['activate', 'open', 'close'];
|
|
872
|
-
/** The longest URL a `navigate` input carries. */
|
|
873
|
-
exports.COMPUTER_BROWSER_URL_MAX_LENGTH = 4096;
|
|
874
|
-
// ---------------------------------------------------------------------------
|
|
875
|
-
// Files (§6.3, §18)
|
|
876
|
-
// ---------------------------------------------------------------------------
|
|
877
|
-
exports.COMPUTER_FILE_OPERATIONS = [
|
|
878
|
-
'list',
|
|
879
|
-
'stat',
|
|
880
|
-
'read',
|
|
881
|
-
'write',
|
|
882
|
-
'mkdir',
|
|
883
|
-
'move',
|
|
884
|
-
'delete',
|
|
885
|
-
'archive',
|
|
751
|
+
const COMPUTER_BROWSER_DIALOG_MESSAGE_MAX_LENGTH = 2e3;
|
|
752
|
+
const COMPUTER_BROWSER_DIALOG_PROMPT_MAX_LENGTH = 4096;
|
|
753
|
+
const COMPUTER_BROWSER_DIALOG_CREDENTIAL_MAX_LENGTH = 1024;
|
|
754
|
+
const COMPUTER_BROWSER_DOWNLOAD_STATES = ["in_progress", "completed", "canceled"];
|
|
755
|
+
const COMPUTER_BROWSER_DOWNLOADS_MAX = 20;
|
|
756
|
+
const COMPUTER_BROWSER_FILE_CHOOSER_MODES = ["single", "multiple"];
|
|
757
|
+
const COMPUTER_BROWSER_FILE_CHOOSER_OUTCOMES = ["files_chosen", "cancelled"];
|
|
758
|
+
const COMPUTER_BROWSER_FILE_CHOOSER_MAX_FILES = 32;
|
|
759
|
+
const COMPUTER_BROWSER_FILE_CHOOSER_ACCEPT_MAX_LENGTH = 512;
|
|
760
|
+
const COMPUTER_BROWSER_FILE_CHOOSER_PATH_MAX_LENGTH = 4096;
|
|
761
|
+
const COMPUTER_TERMINAL_CWD_MAX_LENGTH = 4096;
|
|
762
|
+
const COMPUTER_BROWSER_COPY_MAX_LENGTH = 64 * 1024;
|
|
763
|
+
const COMPUTER_BROWSER_HISTORY_ACTIONS = ["back", "forward", "reload"];
|
|
764
|
+
const COMPUTER_BROWSER_TAB_ACTIONS = ["activate", "open", "close"];
|
|
765
|
+
const COMPUTER_BROWSER_URL_MAX_LENGTH = 4096;
|
|
766
|
+
const COMPUTER_FILE_OPERATIONS = [
|
|
767
|
+
"list",
|
|
768
|
+
"stat",
|
|
769
|
+
"read",
|
|
770
|
+
"write",
|
|
771
|
+
"mkdir",
|
|
772
|
+
"move",
|
|
773
|
+
"delete",
|
|
774
|
+
"archive"
|
|
886
775
|
];
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
/** What `git status` says about one entry of a directory. */
|
|
896
|
-
exports.COMPUTER_FILE_GIT_MARKS = [
|
|
897
|
-
'modified',
|
|
898
|
-
'added',
|
|
899
|
-
'untracked',
|
|
900
|
-
'ignored',
|
|
901
|
-
'conflicted',
|
|
776
|
+
const COMPUTER_FILE_SEARCH_OPERATIONS = ["search", "gitstatus"];
|
|
777
|
+
const COMPUTER_FILE_SEARCH_STATES = ["complete", "truncated", "timed_out"];
|
|
778
|
+
const COMPUTER_FILE_GIT_MARKS = [
|
|
779
|
+
"modified",
|
|
780
|
+
"added",
|
|
781
|
+
"untracked",
|
|
782
|
+
"ignored",
|
|
783
|
+
"conflicted"
|
|
902
784
|
];
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
*/
|
|
916
|
-
exports.COMPUTER_FILE_WITHHELD_REASONS = [
|
|
917
|
-
'deny_set',
|
|
918
|
-
'blocked_path',
|
|
919
|
-
'sensitive_pattern',
|
|
920
|
-
'os_permission',
|
|
785
|
+
const COMPUTER_FILE_SEARCH_DEFAULT_LIMIT = 200;
|
|
786
|
+
const COMPUTER_FILE_SEARCH_MAX_LIMIT = 1e3;
|
|
787
|
+
const COMPUTER_FILE_SEARCH_DEFAULT_BUDGET_MS = 8e3;
|
|
788
|
+
const COMPUTER_FILE_SEARCH_MAX_BUDGET_MS = 2e4;
|
|
789
|
+
const COMPUTER_FILE_SEARCH_MAX_QUERY_LENGTH = 200;
|
|
790
|
+
const COMPUTER_FILE_GIT_STATUS_BUDGET_MS = 4e3;
|
|
791
|
+
const COMPUTER_FILE_TYPES = ["file", "directory", "symlink", "other"];
|
|
792
|
+
const COMPUTER_FILE_WITHHELD_REASONS = [
|
|
793
|
+
"deny_set",
|
|
794
|
+
"blocked_path",
|
|
795
|
+
"sensitive_pattern",
|
|
796
|
+
"os_permission"
|
|
921
797
|
];
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
* - `watcher_exited`: the watcher ended (tenant code may kill it on a guest).
|
|
929
|
-
* - `watch_quota`: the account's watch quota is spent.
|
|
930
|
-
* - `events_overflow`: more changes arrived than are forwarded (a build
|
|
931
|
-
* writing thousands of files), so the watcher stopped rather than queue.
|
|
932
|
-
* - `delivery_gap`: a report was lost between the machine and this viewer.
|
|
933
|
-
*/
|
|
934
|
-
exports.COMPUTER_FILES_WATCH_DEGRADED_REASONS = [
|
|
935
|
-
'spawn_failed',
|
|
936
|
-
'watcher_exited',
|
|
937
|
-
'watch_quota',
|
|
938
|
-
'events_overflow',
|
|
939
|
-
'delivery_gap',
|
|
798
|
+
const COMPUTER_FILES_WATCH_DEGRADED_REASONS = [
|
|
799
|
+
"spawn_failed",
|
|
800
|
+
"watcher_exited",
|
|
801
|
+
"watch_quota",
|
|
802
|
+
"events_overflow",
|
|
803
|
+
"delivery_gap"
|
|
940
804
|
];
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
/** The most entries below a folder a contents tag covers; a larger folder is `too_large`. */
|
|
946
|
-
exports.COMPUTER_FILE_CONTENTS_TAG_MAX_ENTRIES = 100_000;
|
|
947
|
-
/** A contents tag's shape: SHA-256 as lowercase hex. */
|
|
948
|
-
exports.COMPUTER_FILE_CONTENTS_TAG_PATTERN = /^[0-9a-f]{64}$/;
|
|
805
|
+
const COMPUTER_FILES_CHANGED_MAX_CHANGES = 256;
|
|
806
|
+
const COMPUTER_FILE_CHANGES = ["created", "modified", "deleted", "moved"];
|
|
807
|
+
const COMPUTER_FILE_CONTENTS_TAG_MAX_ENTRIES = 1e5;
|
|
808
|
+
const COMPUTER_FILE_CONTENTS_TAG_PATTERN = /^[0-9a-f]{64}$/;
|
|
949
809
|
function computerFileEntityTagsEqual(a, b) {
|
|
950
|
-
|
|
951
|
-
a.size === b.size &&
|
|
952
|
-
a.mtimeNs === b.mtimeNs &&
|
|
953
|
-
(a.contents ?? null) === (b.contents ?? null));
|
|
810
|
+
return a.inode === b.inode && a.size === b.size && a.mtimeNs === b.mtimeNs && (a.contents ?? null) === (b.contents ?? null);
|
|
954
811
|
}
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
'file_change',
|
|
962
|
-
'control',
|
|
963
|
-
'lifecycle',
|
|
812
|
+
const COMPUTER_ACTIVITY_KINDS = [
|
|
813
|
+
"command",
|
|
814
|
+
"browser_action",
|
|
815
|
+
"file_change",
|
|
816
|
+
"control",
|
|
817
|
+
"lifecycle"
|
|
964
818
|
];
|
|
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
|
-
* `COMPUTER_RECLAIM_WARNING_MS` before the deadline, once per idle window;
|
|
990
|
-
* input moves the deadline and the warning is stale from that moment.
|
|
991
|
-
*/
|
|
992
|
-
'reclaim_imminent',
|
|
993
|
-
'power',
|
|
994
|
-
/** The computer's browser was signed out everywhere: its profile removed, every window ended. */
|
|
995
|
-
'browser_reset',
|
|
819
|
+
const COMPUTER_ACTIVITY_SUMMARY_MAX_LENGTH = 500;
|
|
820
|
+
const COMPUTER_ACTIVITY_OUTPUT_MAX_LENGTH = 64 * 1024;
|
|
821
|
+
const COMPUTER_ACTIVITY_WITHHELD_PLACEHOLDER = "[withheld]";
|
|
822
|
+
const COMPUTER_COMMAND_PHASES = ["started", "output", "exited"];
|
|
823
|
+
const COMPUTER_LIFECYCLE_EVENTS = [
|
|
824
|
+
"surface_opened",
|
|
825
|
+
"surface_ended",
|
|
826
|
+
"surface_shared",
|
|
827
|
+
"surface_unshared",
|
|
828
|
+
/**
|
|
829
|
+
* A person whose access was revoked left this surface open: it is theirs and
|
|
830
|
+
* still running, and closing it is the owner's visible decision (§5.1 rule 8).
|
|
831
|
+
*/
|
|
832
|
+
"surface_orphaned",
|
|
833
|
+
/**
|
|
834
|
+
* A person holds this surface and idle reclaim will hand it back to the agent
|
|
835
|
+
* at `deadline` unless they provide input or take it again (§8, D12). Emitted
|
|
836
|
+
* `COMPUTER_RECLAIM_WARNING_MS` before the deadline, once per idle window;
|
|
837
|
+
* input moves the deadline and the warning is stale from that moment.
|
|
838
|
+
*/
|
|
839
|
+
"reclaim_imminent",
|
|
840
|
+
"power",
|
|
841
|
+
/** The computer's browser was signed out everywhere: its profile removed, every window ended. */
|
|
842
|
+
"browser_reset"
|
|
996
843
|
];
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
exports.COMPUTER_COMMAND_UNKNOWN_END_SIGNAL = 'unknown';
|
|
1008
|
-
/**
|
|
1009
|
-
* Why a run in an agent's shell never started (`refusal` beside
|
|
1010
|
-
* `signal: 'not_started'`): the shell was busy with another run, had ended,
|
|
1011
|
-
* was still opening, a person held the terminal, the command could not be
|
|
1012
|
-
* handed to the shell, or the request was incomplete. A client shows an
|
|
1013
|
-
* unknown value as "did not start" without a reason.
|
|
1014
|
-
*/
|
|
1015
|
-
exports.COMPUTER_COMMAND_START_REFUSALS = [
|
|
1016
|
-
'session_busy',
|
|
1017
|
-
'session_closed',
|
|
1018
|
-
'session_not_ready',
|
|
1019
|
-
'human_control',
|
|
1020
|
-
'start_failed',
|
|
1021
|
-
'invalid_request',
|
|
844
|
+
const COMPUTER_COMMAND_OUTCOMES = ["succeeded", "failed"];
|
|
845
|
+
const COMPUTER_COMMAND_NOT_STARTED_SIGNAL = "not_started";
|
|
846
|
+
const COMPUTER_COMMAND_UNKNOWN_END_SIGNAL = "unknown";
|
|
847
|
+
const COMPUTER_COMMAND_START_REFUSALS = [
|
|
848
|
+
"session_busy",
|
|
849
|
+
"session_closed",
|
|
850
|
+
"session_not_ready",
|
|
851
|
+
"human_control",
|
|
852
|
+
"start_failed",
|
|
853
|
+
"invalid_request"
|
|
1022
854
|
];
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
/**
|
|
1028
|
-
* What `daemon:computer:services` (and the agent's `computer.services` call)
|
|
1029
|
-
* asks of the machine: add or replace one service by name, remove one, or
|
|
1030
|
-
* answer the list. Declaring and withdrawing need `open`; listing needs
|
|
1031
|
-
* `observe`.
|
|
1032
|
-
*/
|
|
1033
|
-
exports.COMPUTER_DECLARED_SERVICE_ACTIONS = ['declare', 'withdraw', 'list'];
|
|
1034
|
-
/**
|
|
1035
|
-
* The tool an agent session's declaration rides to its own daemon: the same
|
|
1036
|
-
* `daemon:tool:request` channel that carries its other calls, answered by the
|
|
1037
|
-
* same gate as `daemon:computer:services`. The input is the API's (action,
|
|
1038
|
-
* principal, agent, service or name); the session is the request's own.
|
|
1039
|
-
*/
|
|
1040
|
-
exports.COMPUTER_SERVICES_TOOL_NAME = 'computer.services';
|
|
1041
|
-
/** A refused `computer.services` call: this prefix, then the refusal as JSON. */
|
|
1042
|
-
exports.COMPUTER_SERVICES_TOOL_ERROR_PREFIX = 'computer_services_refused:';
|
|
1043
|
-
/** The operation each action needs, by the one access vocabulary. */
|
|
855
|
+
const COMPUTER_COMMAND_OUTPUT_STREAMS = ["stdout", "stderr"];
|
|
856
|
+
const COMPUTER_DECLARED_SERVICE_ACTIONS = ["declare", "withdraw", "list"];
|
|
857
|
+
const COMPUTER_SERVICES_TOOL_NAME = "computer.services";
|
|
858
|
+
const COMPUTER_SERVICES_TOOL_ERROR_PREFIX = "computer_services_refused:";
|
|
1044
859
|
function computerDeclaredServiceOperation(action) {
|
|
1045
|
-
|
|
860
|
+
return action === "list" ? "observe" : "open";
|
|
1046
861
|
}
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
* The one host a declared service names. A declaration carries a port and a
|
|
1054
|
-
* path, never a host or a URL: the target is always this machine's own
|
|
1055
|
-
* loopback, by construction, and a request that names anything else is
|
|
1056
|
-
* refused as malformed rather than narrowed.
|
|
1057
|
-
*/
|
|
1058
|
-
exports.COMPUTER_DECLARED_SERVICE_HOST = 'localhost';
|
|
1059
|
-
/** A service's name: its key on the machine, lower case, shown as written. */
|
|
1060
|
-
exports.COMPUTER_DECLARED_SERVICE_NAME_PATTERN = /^[a-z0-9][a-z0-9._-]*$/;
|
|
1061
|
-
/**
|
|
1062
|
-
* A path on the service: absolute, no query and no fragment (a token in a
|
|
1063
|
-
* query string would be shown to everyone who can see the machine), no
|
|
1064
|
-
* whitespace or backslash, and not starting with two slashes.
|
|
1065
|
-
*/
|
|
862
|
+
const COMPUTER_DECLARED_SERVICE_PROTOCOLS = ["http", "https"];
|
|
863
|
+
const COMPUTER_DECLARED_SERVICES_MAX = 16;
|
|
864
|
+
const COMPUTER_DECLARED_SERVICE_NAME_MAX_LENGTH = 48;
|
|
865
|
+
const COMPUTER_DECLARED_SERVICE_PATH_MAX_LENGTH = 512;
|
|
866
|
+
const COMPUTER_DECLARED_SERVICE_HOST = "localhost";
|
|
867
|
+
const COMPUTER_DECLARED_SERVICE_NAME_PATTERN = /^[a-z0-9][a-z0-9._-]*$/;
|
|
1066
868
|
const DECLARED_SERVICE_PATH_PATTERN = /^\/(?!\/)[A-Za-z0-9\-._~!$&'()*+,;=:@%/]*$/;
|
|
1067
|
-
const DECLARED_SERVICE_KEYS = new Set([
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
'protocol',
|
|
869
|
+
const DECLARED_SERVICE_KEYS = /* @__PURE__ */ new Set(["name", "port", "path", "protocol"]);
|
|
870
|
+
const COMPUTER_DECLARED_SERVICE_PROBLEMS = [
|
|
871
|
+
/** Not an object, or a field other than name, port, path and protocol (a host, a URL). */
|
|
872
|
+
"shape",
|
|
873
|
+
"name",
|
|
874
|
+
"port",
|
|
875
|
+
"path",
|
|
876
|
+
"protocol"
|
|
1076
877
|
];
|
|
1077
|
-
/**
|
|
1078
|
-
* A declaration, checked and filled in, or the part of it that was refused.
|
|
1079
|
-
* The daemon, the API, the client and the CLI all read a declaration through
|
|
1080
|
-
* this one rule, so a service none of them would accept never reaches the
|
|
1081
|
-
* manifest.
|
|
1082
|
-
*/
|
|
1083
878
|
function computerDeclaredServiceSpec(raw) {
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
879
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
|
|
880
|
+
return { ok: false, problem: "shape" };
|
|
881
|
+
}
|
|
882
|
+
const data = raw;
|
|
883
|
+
if (Object.keys(data).some((key) => !DECLARED_SERVICE_KEYS.has(key))) {
|
|
884
|
+
return { ok: false, problem: "shape" };
|
|
885
|
+
}
|
|
886
|
+
const { name, port, path, protocol } = data;
|
|
887
|
+
if (typeof name !== "string" || name.length === 0 || name.length > COMPUTER_DECLARED_SERVICE_NAME_MAX_LENGTH || !COMPUTER_DECLARED_SERVICE_NAME_PATTERN.test(name)) {
|
|
888
|
+
return { ok: false, problem: "name" };
|
|
889
|
+
}
|
|
890
|
+
if (typeof port !== "number" || !Number.isInteger(port) || port < 1 || port > 65535) {
|
|
891
|
+
return { ok: false, problem: "port" };
|
|
892
|
+
}
|
|
893
|
+
if (path !== void 0 && (typeof path !== "string" || path.length > COMPUTER_DECLARED_SERVICE_PATH_MAX_LENGTH || !DECLARED_SERVICE_PATH_PATTERN.test(path))) {
|
|
894
|
+
return { ok: false, problem: "path" };
|
|
895
|
+
}
|
|
896
|
+
if (protocol !== void 0 && (typeof protocol !== "string" || !COMPUTER_DECLARED_SERVICE_PROTOCOLS.includes(protocol))) {
|
|
897
|
+
return { ok: false, problem: "protocol" };
|
|
898
|
+
}
|
|
899
|
+
return {
|
|
900
|
+
ok: true,
|
|
901
|
+
spec: {
|
|
902
|
+
name,
|
|
903
|
+
port,
|
|
904
|
+
path: typeof path === "string" ? path : "/",
|
|
905
|
+
protocol: protocol ?? "http"
|
|
1097
906
|
}
|
|
1098
|
-
|
|
1099
|
-
return { ok: false, problem: 'port' };
|
|
1100
|
-
}
|
|
1101
|
-
if (path !== undefined &&
|
|
1102
|
-
(typeof path !== 'string' ||
|
|
1103
|
-
path.length > exports.COMPUTER_DECLARED_SERVICE_PATH_MAX_LENGTH ||
|
|
1104
|
-
!DECLARED_SERVICE_PATH_PATTERN.test(path))) {
|
|
1105
|
-
return { ok: false, problem: 'path' };
|
|
1106
|
-
}
|
|
1107
|
-
if (protocol !== undefined &&
|
|
1108
|
-
(typeof protocol !== 'string' ||
|
|
1109
|
-
!exports.COMPUTER_DECLARED_SERVICE_PROTOCOLS.includes(protocol))) {
|
|
1110
|
-
return { ok: false, problem: 'protocol' };
|
|
1111
|
-
}
|
|
1112
|
-
return {
|
|
1113
|
-
ok: true,
|
|
1114
|
-
spec: {
|
|
1115
|
-
name,
|
|
1116
|
-
port,
|
|
1117
|
-
path: typeof path === 'string' ? path : '/',
|
|
1118
|
-
protocol: protocol ?? 'http',
|
|
1119
|
-
},
|
|
1120
|
-
};
|
|
907
|
+
};
|
|
1121
908
|
}
|
|
1122
|
-
/**
|
|
1123
|
-
* The address a declared service opens at in the computer's browser: always
|
|
1124
|
-
* this machine's loopback. Throws on a spec the rule above would refuse, so a
|
|
1125
|
-
* caller can never be handed an address off the machine.
|
|
1126
|
-
*/
|
|
1127
909
|
function computerDeclaredServiceUrl(service) {
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
910
|
+
const checked = computerDeclaredServiceSpec({
|
|
911
|
+
name: "service",
|
|
912
|
+
port: service.port,
|
|
913
|
+
...service.path !== void 0 ? { path: service.path } : {},
|
|
914
|
+
...service.protocol !== void 0 ? { protocol: service.protocol } : {}
|
|
915
|
+
});
|
|
916
|
+
if (!checked.ok) {
|
|
917
|
+
throw new Error(`not a declared service address (${checked.problem})`);
|
|
918
|
+
}
|
|
919
|
+
const { protocol, port, path } = checked.spec;
|
|
920
|
+
return `${protocol}://${COMPUTER_DECLARED_SERVICE_HOST}:${port}${path}`;
|
|
1139
921
|
}
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
//
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
*/
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
'needs_update',
|
|
1173
|
-
// A personal machine: no lease, no power actions.
|
|
1174
|
-
'online',
|
|
1175
|
-
'offline',
|
|
1176
|
-
'needs_sign_in',
|
|
1177
|
-
/** The machine has not allowed the computer (§18). */
|
|
1178
|
-
'not_allowed',
|
|
922
|
+
const COMPUTER_MACHINE_KINDS = ["dedicated", "personal", "space"];
|
|
923
|
+
const COMPUTER_POWER_PHASES = [
|
|
924
|
+
// A Dedicated Runtime, from its lease state.
|
|
925
|
+
/** `ready`, `active`, `idle`: the desktop. */
|
|
926
|
+
"on",
|
|
927
|
+
/** On the way up: a boot screen naming the step, with elapsed time. */
|
|
928
|
+
"booting",
|
|
929
|
+
/** `stopping`, `snapshotting`: saving files, with the checkpoint outcome when known. */
|
|
930
|
+
"stopping",
|
|
931
|
+
/** `stopped`: off, files preserved. */
|
|
932
|
+
"off",
|
|
933
|
+
/** Files retained until a date. */
|
|
934
|
+
"archived",
|
|
935
|
+
/** `terminating`: being removed. */
|
|
936
|
+
"removing",
|
|
937
|
+
/** `failed`, `lost`, `terminated`: the reason, and what is recoverable. */
|
|
938
|
+
"gone",
|
|
939
|
+
/** The provider could not be read. Explicitly not "off". */
|
|
940
|
+
"blind",
|
|
941
|
+
/** The lease is healthy and the daemon is not answering. */
|
|
942
|
+
"unresponsive",
|
|
943
|
+
/** A lease state that belongs to another machine product (`pausing`, `paused`, `resuming`). */
|
|
944
|
+
"not_a_computer",
|
|
945
|
+
// Either kind.
|
|
946
|
+
/** The daemon does not announce `computer_v1`. */
|
|
947
|
+
"needs_update",
|
|
948
|
+
// A personal machine: no lease, no power actions.
|
|
949
|
+
"online",
|
|
950
|
+
"offline",
|
|
951
|
+
"needs_sign_in",
|
|
952
|
+
/** The machine has not allowed the computer (§18). */
|
|
953
|
+
"not_allowed"
|
|
1179
954
|
];
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
'offline',
|
|
1188
|
-
'needs_sign_in',
|
|
1189
|
-
'not_allowed',
|
|
1190
|
-
'needs_update',
|
|
1191
|
-
'blind',
|
|
955
|
+
const COMPUTER_PERSONAL_POWER_PHASES = [
|
|
956
|
+
"online",
|
|
957
|
+
"offline",
|
|
958
|
+
"needs_sign_in",
|
|
959
|
+
"not_allowed",
|
|
960
|
+
"needs_update",
|
|
961
|
+
"blind"
|
|
1192
962
|
];
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
starting: 'booting',
|
|
1217
|
-
restarting: 'booting',
|
|
1218
|
-
recovering: 'booting',
|
|
1219
|
-
stopping: 'stopping',
|
|
1220
|
-
snapshotting: 'stopping',
|
|
1221
|
-
stopped: 'off',
|
|
1222
|
-
archived: 'archived',
|
|
1223
|
-
terminating: 'removing',
|
|
1224
|
-
failed: 'gone',
|
|
1225
|
-
lost: 'gone',
|
|
1226
|
-
terminated: 'gone',
|
|
1227
|
-
pausing: 'not_a_computer',
|
|
1228
|
-
paused: 'not_a_computer',
|
|
1229
|
-
resuming: 'not_a_computer',
|
|
963
|
+
const COMPUTER_PERSONAL_SIGN_IN_REASONS = ["needs_reauth", "revoked"];
|
|
964
|
+
const COMPUTER_START_REFUSALS = ["spend_cap", "entitlement"];
|
|
965
|
+
const COMPUTER_LEASE_STATE_POWER_PHASE = Object.freeze({
|
|
966
|
+
ready: "on",
|
|
967
|
+
active: "on",
|
|
968
|
+
idle: "on",
|
|
969
|
+
requested: "booting",
|
|
970
|
+
provisioning: "booting",
|
|
971
|
+
bootstrapping: "booting",
|
|
972
|
+
starting: "booting",
|
|
973
|
+
restarting: "booting",
|
|
974
|
+
recovering: "booting",
|
|
975
|
+
stopping: "stopping",
|
|
976
|
+
snapshotting: "stopping",
|
|
977
|
+
stopped: "off",
|
|
978
|
+
archived: "archived",
|
|
979
|
+
terminating: "removing",
|
|
980
|
+
failed: "gone",
|
|
981
|
+
lost: "gone",
|
|
982
|
+
terminated: "gone",
|
|
983
|
+
pausing: "not_a_computer",
|
|
984
|
+
paused: "not_a_computer",
|
|
985
|
+
resuming: "not_a_computer"
|
|
1230
986
|
});
|
|
1231
|
-
/** The phase a Dedicated Runtime lease state shows as, or `null` for a state this build does not know. */
|
|
1232
987
|
function computerPowerPhaseForLeaseState(state) {
|
|
1233
|
-
|
|
1234
|
-
Object.prototype.hasOwnProperty.call(exports.COMPUTER_LEASE_STATE_POWER_PHASE, state)
|
|
1235
|
-
? exports.COMPUTER_LEASE_STATE_POWER_PHASE[state]
|
|
1236
|
-
: null;
|
|
988
|
+
return typeof state === "string" && Object.prototype.hasOwnProperty.call(COMPUTER_LEASE_STATE_POWER_PHASE, state) ? COMPUTER_LEASE_STATE_POWER_PHASE[state] : null;
|
|
1237
989
|
}
|
|
1238
|
-
/** Whether the phase shows the desktop. */
|
|
1239
990
|
function computerShowsDesktop(phase) {
|
|
1240
|
-
|
|
991
|
+
return phase === "on" || phase === "online";
|
|
1241
992
|
}
|
|
1242
|
-
/** Power actions are offered for a Dedicated Runtime only; a personal machine has none (§18). */
|
|
1243
993
|
function computerOffersPowerActions(machineKind) {
|
|
1244
|
-
|
|
994
|
+
return machineKind === "dedicated" || machineKind === "space";
|
|
1245
995
|
}
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
/** Lines returned when the caller names none. */
|
|
1264
|
-
defaultLines: 100,
|
|
1265
|
-
/** The most lines one answer carries. */
|
|
1266
|
-
maxLines: 500,
|
|
1267
|
-
/** The most bytes (UTF-8) one answer's text carries; far under the 1 MiB SSE frame. */
|
|
1268
|
-
maxBytes: 192 * 1024,
|
|
1269
|
-
/** The longest look-back a `sinceMs` may ask for (24 h; the ring is shorter anyway). */
|
|
1270
|
-
maxSinceMs: 24 * 60 * 60 * 1000,
|
|
1271
|
-
/** Requests the daemon answers per `rateWindowMs`; one more is `rate_limited`. */
|
|
1272
|
-
rateMax: 30,
|
|
1273
|
-
rateWindowMs: 60 * 1000,
|
|
996
|
+
const COMPUTER_DAEMON_LOG_LEVELS = ["trace", "debug", "info", "warn", "error"];
|
|
997
|
+
const COMPUTER_DAEMON_LOG_LIMITS = {
|
|
998
|
+
/** Lines the daemon keeps in memory; older ones fall off the front. */
|
|
999
|
+
ringLines: 2e3,
|
|
1000
|
+
/** A line longer than this is cut and marked, never kept whole. */
|
|
1001
|
+
lineChars: 1e3,
|
|
1002
|
+
/** Lines returned when the caller names none. */
|
|
1003
|
+
defaultLines: 100,
|
|
1004
|
+
/** The most lines one answer carries. */
|
|
1005
|
+
maxLines: 500,
|
|
1006
|
+
/** The most bytes (UTF-8) one answer's text carries; far under the 1 MiB SSE frame. */
|
|
1007
|
+
maxBytes: 192 * 1024,
|
|
1008
|
+
/** The longest look-back a `sinceMs` may ask for (24 h; the ring is shorter anyway). */
|
|
1009
|
+
maxSinceMs: 24 * 60 * 60 * 1e3,
|
|
1010
|
+
/** Requests the daemon answers per `rateWindowMs`; one more is `rate_limited`. */
|
|
1011
|
+
rateMax: 30,
|
|
1012
|
+
rateWindowMs: 60 * 1e3
|
|
1274
1013
|
};
|
|
1275
1014
|
function normalizeBrowserActivityOriginPolicy(input) {
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
return { allowOrigins: origins(value.allowOrigins, true), excludeOrigins: origins(value.excludeOrigins, false) };
|
|
1015
|
+
if (!input || typeof input !== "object" || Array.isArray(input))
|
|
1016
|
+
throw new Error("Choose exact allowed and excluded web origins");
|
|
1017
|
+
const value = input;
|
|
1018
|
+
if (Object.keys(value).some((key) => !["allowOrigins", "excludeOrigins"].includes(key)))
|
|
1019
|
+
throw new Error("Unsupported source filter");
|
|
1020
|
+
const origins = (items, required) => {
|
|
1021
|
+
if (!Array.isArray(items) || items.length > 20 || required && !items.length)
|
|
1022
|
+
throw new Error("Choose from one to twenty allowed origins and up to twenty excluded origins");
|
|
1023
|
+
return [...new Set(items.map((item) => {
|
|
1024
|
+
if (typeof item !== "string" || item.length > 500)
|
|
1025
|
+
throw new Error("Use an exact http or https origin without a path, credentials, query or fragment");
|
|
1026
|
+
let url;
|
|
1027
|
+
try {
|
|
1028
|
+
url = new URL(item);
|
|
1029
|
+
} catch {
|
|
1030
|
+
throw new Error("Use an exact http or https origin");
|
|
1031
|
+
}
|
|
1032
|
+
if (!["http:", "https:"].includes(url.protocol) || url.hostname.includes("*") || url.username || url.password || item !== url.origin)
|
|
1033
|
+
throw new Error("Use an exact http or https origin without a path, credentials, query or fragment");
|
|
1034
|
+
return url.origin;
|
|
1035
|
+
}))].sort();
|
|
1036
|
+
};
|
|
1037
|
+
return { allowOrigins: origins(value.allowOrigins, true), excludeOrigins: origins(value.excludeOrigins, false) };
|
|
1300
1038
|
}
|
|
1301
1039
|
function browserActivityOriginAllowed(policy, url) {
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
}
|
|
1040
|
+
if (typeof url !== "string")
|
|
1041
|
+
return false;
|
|
1042
|
+
try {
|
|
1043
|
+
const origin = new URL(url).origin;
|
|
1044
|
+
return ["http:", "https:"].includes(new URL(url).protocol) && policy.allowOrigins.includes(origin) && !policy.excludeOrigins.includes(origin);
|
|
1045
|
+
} catch {
|
|
1046
|
+
return false;
|
|
1047
|
+
}
|
|
1311
1048
|
}
|
|
1049
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1050
|
+
0 && (module.exports = {
|
|
1051
|
+
COMPUTER_ACCESS_LEVELS,
|
|
1052
|
+
COMPUTER_ACTIVITY_ACTOR_KINDS,
|
|
1053
|
+
COMPUTER_ACTIVITY_KINDS,
|
|
1054
|
+
COMPUTER_ACTIVITY_OUTPUT_MAX_LENGTH,
|
|
1055
|
+
COMPUTER_ACTIVITY_SUMMARY_MAX_LENGTH,
|
|
1056
|
+
COMPUTER_ACTIVITY_WITHHELD_PLACEHOLDER,
|
|
1057
|
+
COMPUTER_ACTOR_ENGINE_MAX_LENGTH,
|
|
1058
|
+
COMPUTER_ACTOR_KINDS,
|
|
1059
|
+
COMPUTER_AGENT_WRITE_WAIT_MS,
|
|
1060
|
+
COMPUTER_API_ANSWERED_EVENT_KEYS,
|
|
1061
|
+
COMPUTER_BROWSER_COPY_MAX_LENGTH,
|
|
1062
|
+
COMPUTER_BROWSER_DIALOG_ANSWERERS,
|
|
1063
|
+
COMPUTER_BROWSER_DIALOG_CREDENTIAL_MAX_LENGTH,
|
|
1064
|
+
COMPUTER_BROWSER_DIALOG_KINDS,
|
|
1065
|
+
COMPUTER_BROWSER_DIALOG_MESSAGE_MAX_LENGTH,
|
|
1066
|
+
COMPUTER_BROWSER_DIALOG_OUTCOMES,
|
|
1067
|
+
COMPUTER_BROWSER_DIALOG_PROMPT_MAX_LENGTH,
|
|
1068
|
+
COMPUTER_BROWSER_DOWNLOADS_MAX,
|
|
1069
|
+
COMPUTER_BROWSER_DOWNLOAD_STATES,
|
|
1070
|
+
COMPUTER_BROWSER_FILE_CHOOSER_ACCEPT_MAX_LENGTH,
|
|
1071
|
+
COMPUTER_BROWSER_FILE_CHOOSER_MAX_FILES,
|
|
1072
|
+
COMPUTER_BROWSER_FILE_CHOOSER_MODES,
|
|
1073
|
+
COMPUTER_BROWSER_FILE_CHOOSER_OUTCOMES,
|
|
1074
|
+
COMPUTER_BROWSER_FILE_CHOOSER_PATH_MAX_LENGTH,
|
|
1075
|
+
COMPUTER_BROWSER_HISTORY_ACTIONS,
|
|
1076
|
+
COMPUTER_BROWSER_INPUT_PLATFORMS,
|
|
1077
|
+
COMPUTER_BROWSER_INPUT_TYPES,
|
|
1078
|
+
COMPUTER_BROWSER_TAB_ACTIONS,
|
|
1079
|
+
COMPUTER_BROWSER_URL_MAX_LENGTH,
|
|
1080
|
+
COMPUTER_BROWSER_VIEWPORT,
|
|
1081
|
+
COMPUTER_BROWSER_VIEWPORT_LIMITS,
|
|
1082
|
+
COMPUTER_CAPABILITIES,
|
|
1083
|
+
COMPUTER_CAPABILITY_VALUES,
|
|
1084
|
+
COMPUTER_COMMAND_NOT_STARTED_SIGNAL,
|
|
1085
|
+
COMPUTER_COMMAND_OUTCOMES,
|
|
1086
|
+
COMPUTER_COMMAND_OUTPUT_STREAMS,
|
|
1087
|
+
COMPUTER_COMMAND_PHASES,
|
|
1088
|
+
COMPUTER_COMMAND_START_REFUSALS,
|
|
1089
|
+
COMPUTER_COMMAND_UNKNOWN_END_SIGNAL,
|
|
1090
|
+
COMPUTER_CONTROL_ACTIONS,
|
|
1091
|
+
COMPUTER_CONTROL_ACTIVITY_CHANGES,
|
|
1092
|
+
COMPUTER_CONTROL_CHANGE_REASONS,
|
|
1093
|
+
COMPUTER_CONTROL_IDLE_MS,
|
|
1094
|
+
COMPUTER_DAEMON_LOG_LEVELS,
|
|
1095
|
+
COMPUTER_DAEMON_LOG_LIMITS,
|
|
1096
|
+
COMPUTER_DECLARED_SERVICES_MAX,
|
|
1097
|
+
COMPUTER_DECLARED_SERVICE_ACTIONS,
|
|
1098
|
+
COMPUTER_DECLARED_SERVICE_HOST,
|
|
1099
|
+
COMPUTER_DECLARED_SERVICE_NAME_MAX_LENGTH,
|
|
1100
|
+
COMPUTER_DECLARED_SERVICE_NAME_PATTERN,
|
|
1101
|
+
COMPUTER_DECLARED_SERVICE_PATH_MAX_LENGTH,
|
|
1102
|
+
COMPUTER_DECLARED_SERVICE_PROBLEMS,
|
|
1103
|
+
COMPUTER_DECLARED_SERVICE_PROTOCOLS,
|
|
1104
|
+
COMPUTER_DIAGNOSTICS_INTERVAL_MS,
|
|
1105
|
+
COMPUTER_DIAGNOSTICS_MAX_STREAMS,
|
|
1106
|
+
COMPUTER_DIAGNOSTIC_COUNTERS,
|
|
1107
|
+
COMPUTER_EVENTS,
|
|
1108
|
+
COMPUTER_EVENT_NAMES,
|
|
1109
|
+
COMPUTER_FILES_CHANGED_MAX_CHANGES,
|
|
1110
|
+
COMPUTER_FILES_WATCH_DEGRADED_REASONS,
|
|
1111
|
+
COMPUTER_FILE_CHANGES,
|
|
1112
|
+
COMPUTER_FILE_CONTENTS_TAG_MAX_ENTRIES,
|
|
1113
|
+
COMPUTER_FILE_CONTENTS_TAG_PATTERN,
|
|
1114
|
+
COMPUTER_FILE_GIT_MARKS,
|
|
1115
|
+
COMPUTER_FILE_GIT_STATUS_BUDGET_MS,
|
|
1116
|
+
COMPUTER_FILE_OPERATIONS,
|
|
1117
|
+
COMPUTER_FILE_SEARCH_DEFAULT_BUDGET_MS,
|
|
1118
|
+
COMPUTER_FILE_SEARCH_DEFAULT_LIMIT,
|
|
1119
|
+
COMPUTER_FILE_SEARCH_MAX_BUDGET_MS,
|
|
1120
|
+
COMPUTER_FILE_SEARCH_MAX_LIMIT,
|
|
1121
|
+
COMPUTER_FILE_SEARCH_MAX_QUERY_LENGTH,
|
|
1122
|
+
COMPUTER_FILE_SEARCH_OPERATIONS,
|
|
1123
|
+
COMPUTER_FILE_SEARCH_STATES,
|
|
1124
|
+
COMPUTER_FILE_TYPES,
|
|
1125
|
+
COMPUTER_FILE_WITHHELD_REASONS,
|
|
1126
|
+
COMPUTER_FRAME_ACK_TIMEOUT_MS,
|
|
1127
|
+
COMPUTER_FRAME_MAX_BYTES,
|
|
1128
|
+
COMPUTER_GRANT_TIERS,
|
|
1129
|
+
COMPUTER_HANDBACK_NOTE_MAX_LENGTH,
|
|
1130
|
+
COMPUTER_INPUT_TEXT_MAX_LENGTH,
|
|
1131
|
+
COMPUTER_LEASE_STATE_POWER_PHASE,
|
|
1132
|
+
COMPUTER_LIFECYCLE_EVENTS,
|
|
1133
|
+
COMPUTER_MACHINE_KINDS,
|
|
1134
|
+
COMPUTER_MANIFEST_REORDER_WAIT_MS,
|
|
1135
|
+
COMPUTER_OPERATIONS,
|
|
1136
|
+
COMPUTER_PERSONAL_POWER_PHASES,
|
|
1137
|
+
COMPUTER_PERSONAL_SIGN_IN_REASONS,
|
|
1138
|
+
COMPUTER_PLATFORM_ROUTE_SESSION_PREFIXES,
|
|
1139
|
+
COMPUTER_POWER_PHASES,
|
|
1140
|
+
COMPUTER_RECLAIM_WARNING_MS,
|
|
1141
|
+
COMPUTER_RECONNECT_GRACE_MS,
|
|
1142
|
+
COMPUTER_REFUSAL_CODES,
|
|
1143
|
+
COMPUTER_RESYNC_TIMEOUT_MS,
|
|
1144
|
+
COMPUTER_SERVER_EVENT_KEYS,
|
|
1145
|
+
COMPUTER_SERVICES_TOOL_ERROR_PREFIX,
|
|
1146
|
+
COMPUTER_SERVICES_TOOL_NAME,
|
|
1147
|
+
COMPUTER_SHARE_ACTIONS,
|
|
1148
|
+
COMPUTER_SHARE_MODES,
|
|
1149
|
+
COMPUTER_START_REFUSALS,
|
|
1150
|
+
COMPUTER_SURFACE_END_REASONS,
|
|
1151
|
+
COMPUTER_SURFACE_KINDS,
|
|
1152
|
+
COMPUTER_SURFACE_PIN_ACTIONS,
|
|
1153
|
+
COMPUTER_SURFACE_STATES,
|
|
1154
|
+
COMPUTER_SURFACE_UNPIN_REASONS,
|
|
1155
|
+
COMPUTER_TERMINAL_CAVEATS,
|
|
1156
|
+
COMPUTER_TERMINAL_CWD_MAX_LENGTH,
|
|
1157
|
+
COMPUTER_TERMINAL_HISTORY_CAUSES,
|
|
1158
|
+
COMPUTER_TERMINAL_INPUT_TYPES,
|
|
1159
|
+
COMPUTER_TERMINAL_LIFETIMES,
|
|
1160
|
+
COMPUTER_TERMINAL_SIGNALS,
|
|
1161
|
+
DAEMON_COMPUTER_EVENTS,
|
|
1162
|
+
DAEMON_COMPUTER_EVENT_NAMES,
|
|
1163
|
+
DAEMON_COMPUTER_REPORT_EVENT_KEYS,
|
|
1164
|
+
browserActivityOriginAllowed,
|
|
1165
|
+
clampComputerBrowserViewport,
|
|
1166
|
+
computerAccessOperations,
|
|
1167
|
+
computerControlChangeIsHolderChange,
|
|
1168
|
+
computerDeclaredServiceOperation,
|
|
1169
|
+
computerDeclaredServiceSpec,
|
|
1170
|
+
computerDeclaredServiceUrl,
|
|
1171
|
+
computerFileEntityTagsEqual,
|
|
1172
|
+
computerLeaseAcceptsInput,
|
|
1173
|
+
computerLeaseInputRefusal,
|
|
1174
|
+
computerOffersPowerActions,
|
|
1175
|
+
computerOperationAllowed,
|
|
1176
|
+
computerPowerPhaseForLeaseState,
|
|
1177
|
+
computerShowsDesktop,
|
|
1178
|
+
computerTierOperations,
|
|
1179
|
+
isComputerPlatformRouteSession,
|
|
1180
|
+
normalizeBrowserActivityOriginPolicy,
|
|
1181
|
+
normalizeComputerRefusalCode
|
|
1182
|
+
});
|