@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,945 +1,843 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
4
11
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
exports
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var firstPartyHarnessUpdater_exports = {};
|
|
30
|
+
__export(firstPartyHarnessUpdater_exports, {
|
|
31
|
+
FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS: () => import_firstPartyHarnessReleaseKeys2.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS,
|
|
32
|
+
MAX_ARTIFACT_BYTES: () => MAX_ARTIFACT_BYTES,
|
|
33
|
+
PREVIOUS_SUFFIX: () => PREVIOUS_SUFFIX,
|
|
34
|
+
PROVENANCE_SUFFIX: () => PROVENANCE_SUFFIX,
|
|
35
|
+
activateVerifiedFirstPartyHarnessArtifact: () => activateVerifiedFirstPartyHarnessArtifact,
|
|
36
|
+
checkFirstPartyHarnessUpdate: () => checkFirstPartyHarnessUpdate,
|
|
37
|
+
fetchVerifiedManifest: () => fetchVerifiedManifest,
|
|
38
|
+
firstPartyHarnessBinaryPath: () => firstPartyHarnessBinaryPath,
|
|
39
|
+
firstPartyHarnessFeedBase: () => import_firstPartyHarnessChannels2.firstPartyHarnessFeedBase,
|
|
40
|
+
firstPartyHarnessFeedCandidates: () => import_firstPartyHarnessChannels2.firstPartyHarnessFeedCandidates,
|
|
41
|
+
firstPartyHarnessInstallDir: () => firstPartyHarnessInstallDir,
|
|
42
|
+
firstPartyHarnessManifestFile: () => import_firstPartyHarness2.firstPartyHarnessManifestFile,
|
|
43
|
+
firstPartyHarnessPlatformKey: () => firstPartyHarnessPlatformKey,
|
|
44
|
+
getVerifiedInstalledFirstPartyHarness: () => getVerifiedInstalledFirstPartyHarness,
|
|
45
|
+
installFirstPartyHarness: () => installFirstPartyHarness,
|
|
46
|
+
installedFirstPartyHarnessSize: () => installedFirstPartyHarnessSize,
|
|
47
|
+
isManagedFirstPartyHarnessReleasePath: () => isManagedFirstPartyHarnessReleasePath,
|
|
48
|
+
readFirstPartyHarnessUpdateState: () => readFirstPartyHarnessUpdateState,
|
|
49
|
+
rollbackFirstPartyHarness: () => rollbackFirstPartyHarness
|
|
50
|
+
});
|
|
51
|
+
module.exports = __toCommonJS(firstPartyHarnessUpdater_exports);
|
|
52
|
+
var import_node_crypto = require("node:crypto");
|
|
53
|
+
var import_node_fs = require("node:fs");
|
|
54
|
+
var import_node_path = __toESM(require("node:path"), 1);
|
|
55
|
+
var import_proper_lockfile = __toESM(require("proper-lockfile"), 1);
|
|
56
|
+
var import_firstPartyHarness = require("./firstPartyHarness.js");
|
|
57
|
+
var import_firstPartyHarnessHome = require("./firstPartyHarnessHome.js");
|
|
58
|
+
var import_firstPartyHarnessChannels = require("./firstPartyHarnessChannels.js");
|
|
59
|
+
var import_releaseManifest = require("./releaseManifest.js");
|
|
60
|
+
var import_firstPartyHarnessReleaseKeys = require("./firstPartyHarnessReleaseKeys.js");
|
|
61
|
+
var import_releaseVersions = require("./releaseVersions.js");
|
|
62
|
+
var import_releasePolicy = require("./releasePolicy.js");
|
|
63
|
+
var import_firstPartyHarnessReleaseKeys2 = require("./firstPartyHarnessReleaseKeys.js");
|
|
64
|
+
var import_firstPartyHarnessChannels2 = require("./firstPartyHarnessChannels.js");
|
|
65
|
+
var import_firstPartyHarness2 = require("./firstPartyHarness.js");
|
|
66
|
+
const PREVIOUS_SUFFIX = import_firstPartyHarnessHome.FIRST_PARTY_HARNESS_PREVIOUS_SUFFIX;
|
|
67
|
+
const PROVENANCE_SUFFIX = import_firstPartyHarnessHome.FIRST_PARTY_HARNESS_PROVENANCE_SUFFIX;
|
|
68
|
+
const MAX_ARTIFACT_BYTES = 400 * 1024 * 1024;
|
|
69
|
+
const MANIFEST_FETCH_TIMEOUT_MS = 3e4;
|
|
70
|
+
const ARTIFACT_FETCH_TIMEOUT_MS = 10 * 6e4;
|
|
71
|
+
const LOCK_STALE_MS = 12e4;
|
|
49
72
|
function fail(code, error) {
|
|
50
|
-
|
|
73
|
+
return { ok: false, code, error };
|
|
51
74
|
}
|
|
52
75
|
function fetchSignal(options, timeout) {
|
|
53
|
-
|
|
54
|
-
? AbortSignal.any([options.signal, AbortSignal.timeout(timeout)])
|
|
55
|
-
: AbortSignal.timeout(timeout);
|
|
76
|
+
return options.signal ? AbortSignal.any([options.signal, AbortSignal.timeout(timeout)]) : AbortSignal.timeout(timeout);
|
|
56
77
|
}
|
|
57
78
|
function firstPartyHarnessInstallDir(env = process.env) {
|
|
58
|
-
|
|
79
|
+
return (0, import_firstPartyHarnessHome.firstPartyHarnessBinDir)(env);
|
|
59
80
|
}
|
|
60
81
|
function firstPartyHarnessBinaryPath(env = process.env) {
|
|
61
|
-
|
|
82
|
+
return (0, import_firstPartyHarnessHome.firstPartyHarnessInstalledBinaryPath)(env);
|
|
62
83
|
}
|
|
63
84
|
function firstPartyHarnessPlatformKey(platform = process.platform, arch = process.arch) {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
: null;
|
|
69
|
-
if (!cpu ||
|
|
70
|
-
!['darwin', 'linux', 'win32'].includes(platform) ||
|
|
71
|
-
(platform === 'win32' && cpu !== 'x64'))
|
|
72
|
-
return null;
|
|
73
|
-
return `${platform}-${cpu}`;
|
|
85
|
+
const cpu = arch === "arm64" || arch === "aarch64" ? "arm64" : arch === "x64" || arch === "x86_64" ? "x64" : null;
|
|
86
|
+
if (!cpu || !["darwin", "linux", "win32"].includes(platform) || platform === "win32" && cpu !== "x64")
|
|
87
|
+
return null;
|
|
88
|
+
return `${platform}-${cpu}`;
|
|
74
89
|
}
|
|
75
90
|
async function fetchVerifiedManifest(options = {}) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
// throwing. A typo must not leave a machine unable to install anything —
|
|
104
|
-
// that turns a harmless mistake into the outage this installer exists to
|
|
105
|
-
// avoid.
|
|
106
|
-
const { channel, invalid, source } = (0, firstPartyHarnessChannels_js_1.resolveFirstPartyHarnessChannel)(env);
|
|
107
|
-
if (invalid) {
|
|
108
|
-
options.onProgress?.(`unknown update channel ${JSON.stringify(invalid)} in ${source ?? firstPartyHarness_js_1.FIRST_PARTY_HARNESS_ENV.channel.name}; ` +
|
|
109
|
-
`using ${channel}. Valid: ${firstPartyHarnessChannels_js_1.FIRST_PARTY_HARNESS_CHANNELS.join(', ')}.`);
|
|
110
|
-
}
|
|
111
|
-
// Every place the manifest may be published, canonical spelling first.
|
|
112
|
-
//
|
|
113
|
-
// Which spellings depends on what is read. A CHANNEL pointer is current state,
|
|
114
|
-
// so only the accepted spellings are tried: a former spelling's pointer stopped
|
|
115
|
-
// moving when publishing stopped writing it, and falling back to one would
|
|
116
|
-
// install whatever it named on the day of contract. A PINNED release is an
|
|
117
|
-
// immutable artifact, so former spellings are tried too: a release published
|
|
118
|
-
// before the canonical prefix existed lives only under the old one, with the
|
|
119
|
-
// same signed bytes it would have anywhere.
|
|
120
|
-
//
|
|
121
|
-
// Move to the next candidate ONLY when this one is not there. A candidate that
|
|
122
|
-
// answers with a manifest ends the search, whatever that manifest turns out to
|
|
123
|
-
// be: falling through on a malformed or badly signed canonical manifest would
|
|
124
|
-
// let anyone who can make the canonical object fail verification steer the
|
|
125
|
-
// install onto an older spelling's feed — a downgrade by denial.
|
|
126
|
-
//
|
|
127
|
-
// "Not there" is 403 as well as 404. A prefix with no manifest answers 403 (the
|
|
128
|
-
// bucket denies ListBucket, so a missing key cannot be reported as 404).
|
|
129
|
-
const notFound = [];
|
|
130
|
-
let body;
|
|
131
|
-
for (const candidate of (0, firstPartyHarnessChannels_js_1.firstPartyHarnessFeedCandidates)(env, {
|
|
132
|
-
pinnedRelease: Boolean(options.version),
|
|
133
|
-
})) {
|
|
134
|
-
const url = (0, firstPartyHarnessChannels_js_1.resolveChannelManifestUrl)({
|
|
135
|
-
base: candidate.base,
|
|
136
|
-
manifestFilename: candidate.manifestFilename,
|
|
137
|
-
channel,
|
|
138
|
-
pinnedVersion: options.version ?? null,
|
|
139
|
-
});
|
|
140
|
-
try {
|
|
141
|
-
const res = await doFetch(url, {
|
|
142
|
-
signal: fetchSignal(options, options.manifestTimeoutMs ?? MANIFEST_FETCH_TIMEOUT_MS),
|
|
143
|
-
redirect: 'follow',
|
|
144
|
-
});
|
|
145
|
-
if (res.status === 403 || res.status === 404) {
|
|
146
|
-
notFound.push(`HTTP ${res.status} for ${url}`);
|
|
147
|
-
continue;
|
|
148
|
-
}
|
|
149
|
-
if (!res.ok) {
|
|
150
|
-
return fail('feed-unreachable', `manifest fetch failed: HTTP ${res.status} for ${url}`);
|
|
151
|
-
}
|
|
152
|
-
body = await res.text();
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
catch (err) {
|
|
156
|
-
return fail('feed-unreachable', `manifest fetch failed: ${err.message}`);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
if (body === undefined) {
|
|
160
|
-
// Name the CHANNEL when the object simply is not there anywhere.
|
|
161
|
-
//
|
|
162
|
-
// A 403 reads as "you are not allowed" — the one thing it does not mean,
|
|
163
|
-
// since this feed is public. A user on the default channel with nothing
|
|
164
|
-
// published yet would otherwise see a permissions error for a
|
|
165
|
-
// release-management state, and go looking at their credentials. A PINNED
|
|
166
|
-
// version keeps the raw failure: `releases/<v>/` missing means that exact
|
|
167
|
-
// release does not exist, and a channel setting has nothing to do with it.
|
|
168
|
-
const tried = notFound.join('; ');
|
|
169
|
-
if (!options.version) {
|
|
170
|
-
return fail('feed-unreachable', `no ${firstPartyHarness_js_1.FIRST_PARTY_HARNESS.displayName} release published on the '${channel}' channel (${tried}). ` +
|
|
171
|
-
`Set ${firstPartyHarness_js_1.FIRST_PARTY_HARNESS_ENV.channel.name} to a channel that has one, or pin a version.`);
|
|
172
|
-
}
|
|
173
|
-
return fail('feed-unreachable', `manifest fetch failed: ${tried}`);
|
|
174
|
-
}
|
|
175
|
-
let manifest;
|
|
176
|
-
try {
|
|
177
|
-
manifest = JSON.parse(body);
|
|
178
|
-
}
|
|
179
|
-
catch (err) {
|
|
180
|
-
return fail('manifest-malformed', `manifest is not JSON: ${err.message}`);
|
|
181
|
-
}
|
|
182
|
-
if (!manifest ||
|
|
183
|
-
typeof manifest.version !== 'string' ||
|
|
184
|
-
!manifest.platforms ||
|
|
185
|
-
typeof manifest.platforms !== 'object' ||
|
|
186
|
-
Array.isArray(manifest.platforms) ||
|
|
187
|
-
(0, releaseVersions_js_1.compareReleaseVersions)(manifest.version, manifest.version) === null) {
|
|
188
|
-
return fail('manifest-malformed', 'manifest is missing version or platforms');
|
|
189
|
-
}
|
|
190
|
-
const verdict = (0, releaseManifest_js_1.verifyManifest)(manifest, keys);
|
|
191
|
-
if (!('ok' in verdict) || verdict.ok !== true) {
|
|
192
|
-
const reason = 'reason' in verdict ? verdict.reason : 'verification disabled';
|
|
193
|
-
return fail('manifest-unverified', `manifest signature rejected: ${reason}`);
|
|
194
|
-
}
|
|
195
|
-
if (options.version && manifest.version !== options.version) {
|
|
196
|
-
return fail('manifest-malformed', 'pinned manifest version does not match requested version');
|
|
197
|
-
}
|
|
198
|
-
if ((0, releaseVersions_js_1.compareReleaseVersions)(manifest.minimum, manifest.version) === null ||
|
|
199
|
-
(0, releaseVersions_js_1.compareReleaseVersions)(manifest.minimum, manifest.version) > 0) {
|
|
200
|
-
return fail('manifest-malformed', 'manifest minimum is invalid or newer than its release');
|
|
201
|
-
}
|
|
91
|
+
const env = options.env ?? process.env;
|
|
92
|
+
const keys = options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
|
|
93
|
+
const rawFetch = options.fetchImpl ?? globalThis.fetch;
|
|
94
|
+
if (options.version && (0, import_releaseVersions.compareReleaseVersions)(options.version, options.version) === null)
|
|
95
|
+
return fail("version-invalid", "requested version is not a semantic release version");
|
|
96
|
+
if (!keys || keys.length === 0) {
|
|
97
|
+
return fail("no-pinned-keys", `no pinned ${import_firstPartyHarness.FIRST_PARTY_HARNESS.displayName} release keys \u2014 refusing to install`);
|
|
98
|
+
}
|
|
99
|
+
if (typeof rawFetch !== "function") {
|
|
100
|
+
return fail("feed-unreachable", "no fetch implementation available");
|
|
101
|
+
}
|
|
102
|
+
const doFetch = rawFetch;
|
|
103
|
+
const { channel, invalid, source } = (0, import_firstPartyHarnessChannels.resolveFirstPartyHarnessChannel)(env);
|
|
104
|
+
if (invalid) {
|
|
105
|
+
options.onProgress?.(`unknown update channel ${JSON.stringify(invalid)} in ${source ?? import_firstPartyHarness.FIRST_PARTY_HARNESS_ENV.channel.name}; using ${channel}. Valid: ${import_firstPartyHarnessChannels.FIRST_PARTY_HARNESS_CHANNELS.join(", ")}.`);
|
|
106
|
+
}
|
|
107
|
+
const notFound = [];
|
|
108
|
+
let body;
|
|
109
|
+
for (const candidate of (0, import_firstPartyHarnessChannels.firstPartyHarnessFeedCandidates)(env, {
|
|
110
|
+
pinnedRelease: Boolean(options.version)
|
|
111
|
+
})) {
|
|
112
|
+
const url = (0, import_firstPartyHarnessChannels.resolveChannelManifestUrl)({
|
|
113
|
+
base: candidate.base,
|
|
114
|
+
manifestFilename: candidate.manifestFilename,
|
|
115
|
+
channel,
|
|
116
|
+
pinnedVersion: options.version ?? null
|
|
117
|
+
});
|
|
202
118
|
try {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
119
|
+
const res = await doFetch(url, {
|
|
120
|
+
signal: fetchSignal(options, options.manifestTimeoutMs ?? MANIFEST_FETCH_TIMEOUT_MS),
|
|
121
|
+
redirect: "follow"
|
|
122
|
+
});
|
|
123
|
+
if (res.status === 403 || res.status === 404) {
|
|
124
|
+
notFound.push(`HTTP ${res.status} for ${url}`);
|
|
125
|
+
continue;
|
|
126
|
+
}
|
|
127
|
+
if (!res.ok) {
|
|
128
|
+
return fail("feed-unreachable", `manifest fetch failed: HTTP ${res.status} for ${url}`);
|
|
129
|
+
}
|
|
130
|
+
body = await res.text();
|
|
131
|
+
break;
|
|
132
|
+
} catch (err) {
|
|
133
|
+
return fail("feed-unreachable", `manifest fetch failed: ${err.message}`);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (body === void 0) {
|
|
137
|
+
const tried = notFound.join("; ");
|
|
138
|
+
if (!options.version) {
|
|
139
|
+
return fail("feed-unreachable", `no ${import_firstPartyHarness.FIRST_PARTY_HARNESS.displayName} release published on the '${channel}' channel (${tried}). Set ${import_firstPartyHarness.FIRST_PARTY_HARNESS_ENV.channel.name} to a channel that has one, or pin a version.`);
|
|
140
|
+
}
|
|
141
|
+
return fail("feed-unreachable", `manifest fetch failed: ${tried}`);
|
|
142
|
+
}
|
|
143
|
+
let manifest;
|
|
144
|
+
try {
|
|
145
|
+
manifest = JSON.parse(body);
|
|
146
|
+
} catch (err) {
|
|
147
|
+
return fail("manifest-malformed", `manifest is not JSON: ${err.message}`);
|
|
148
|
+
}
|
|
149
|
+
if (!manifest || typeof manifest.version !== "string" || !manifest.platforms || typeof manifest.platforms !== "object" || Array.isArray(manifest.platforms) || (0, import_releaseVersions.compareReleaseVersions)(manifest.version, manifest.version) === null) {
|
|
150
|
+
return fail("manifest-malformed", "manifest is missing version or platforms");
|
|
151
|
+
}
|
|
152
|
+
const verdict = (0, import_releaseManifest.verifyManifest)(manifest, keys);
|
|
153
|
+
if (!("ok" in verdict) || verdict.ok !== true) {
|
|
154
|
+
const reason = "reason" in verdict ? verdict.reason : "verification disabled";
|
|
155
|
+
return fail("manifest-unverified", `manifest signature rejected: ${reason}`);
|
|
156
|
+
}
|
|
157
|
+
if (options.version && manifest.version !== options.version) {
|
|
158
|
+
return fail("manifest-malformed", "pinned manifest version does not match requested version");
|
|
159
|
+
}
|
|
160
|
+
if ((0, import_releaseVersions.compareReleaseVersions)(manifest.minimum, manifest.version) === null || (0, import_releaseVersions.compareReleaseVersions)(manifest.minimum, manifest.version) > 0) {
|
|
161
|
+
return fail("manifest-malformed", "manifest minimum is invalid or newer than its release");
|
|
162
|
+
}
|
|
163
|
+
try {
|
|
164
|
+
const policy = validateEnginePolicy(manifest, options);
|
|
165
|
+
if (policy)
|
|
166
|
+
return policy;
|
|
167
|
+
} catch (error) {
|
|
168
|
+
return fail("policy-rejected", `engine release policy is malformed: ${describe(error)}`);
|
|
169
|
+
}
|
|
170
|
+
return { ok: true, manifest };
|
|
211
171
|
}
|
|
212
|
-
/** A present policy must explicitly describe this component, never the daemon. */
|
|
213
172
|
function validateEnginePolicy(manifest, options) {
|
|
214
|
-
|
|
215
|
-
return null;
|
|
216
|
-
const keys = options.keys ?? firstPartyHarnessReleaseKeys_js_1.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
|
|
217
|
-
const policy = manifest.policy;
|
|
218
|
-
const verdict = (0, releasePolicy_js_1.verifyReleasePolicy)(policy, keys);
|
|
219
|
-
if (!('ok' in verdict) || !verdict.ok)
|
|
220
|
-
return fail('policy-rejected', 'engine release policy signature/shape rejected');
|
|
221
|
-
const component = [firstPartyHarness_js_1.FIRST_PARTY_HARNESS.provider, 'firstPartyHarness'].find((name) => policy.components[name]);
|
|
222
|
-
if (!component)
|
|
223
|
-
return fail('policy-rejected', 'release policy has no first-party engine component');
|
|
224
|
-
const assessment = (0, releasePolicy_js_1.assessReleasePolicy)({
|
|
225
|
-
policy,
|
|
226
|
-
targetDaemonVersion: manifest.version,
|
|
227
|
-
targetComponent: component,
|
|
228
|
-
channel: (0, firstPartyHarnessChannels_js_1.resolveFirstPartyHarnessChannel)(options.env).channel,
|
|
229
|
-
contracts: options.contracts ?? {},
|
|
230
|
-
cohortSubject: options.cohortSubject ?? '',
|
|
231
|
-
autonomous: options.autonomous === true,
|
|
232
|
-
now: options.now,
|
|
233
|
-
});
|
|
234
|
-
if (!assessment.valid || !assessment.eligible)
|
|
235
|
-
return fail('policy-rejected', assessment.reason ?? 'engine release is not eligible for this policy');
|
|
236
|
-
const minimum = policy.components[component].minimumVersion;
|
|
237
|
-
if (minimum &&
|
|
238
|
-
((0, releaseVersions_js_1.compareReleaseVersions)(manifest.version, minimum) === null ||
|
|
239
|
-
(0, releaseVersions_js_1.compareReleaseVersions)(manifest.version, minimum) < 0))
|
|
240
|
-
return fail('minimum-version', 'engine release is below its signed policy minimum');
|
|
173
|
+
if (!manifest.policy)
|
|
241
174
|
return null;
|
|
175
|
+
const keys = options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
|
|
176
|
+
const policy = manifest.policy;
|
|
177
|
+
const verdict = (0, import_releasePolicy.verifyReleasePolicy)(policy, keys);
|
|
178
|
+
if (!("ok" in verdict) || !verdict.ok)
|
|
179
|
+
return fail("policy-rejected", "engine release policy signature/shape rejected");
|
|
180
|
+
const component = [import_firstPartyHarness.FIRST_PARTY_HARNESS.provider, "firstPartyHarness"].find((name) => policy.components[name]);
|
|
181
|
+
if (!component)
|
|
182
|
+
return fail("policy-rejected", "release policy has no first-party engine component");
|
|
183
|
+
const assessment = (0, import_releasePolicy.assessReleasePolicy)({
|
|
184
|
+
policy,
|
|
185
|
+
targetDaemonVersion: manifest.version,
|
|
186
|
+
targetComponent: component,
|
|
187
|
+
channel: (0, import_firstPartyHarnessChannels.resolveFirstPartyHarnessChannel)(options.env).channel,
|
|
188
|
+
contracts: options.contracts ?? {},
|
|
189
|
+
cohortSubject: options.cohortSubject ?? "",
|
|
190
|
+
autonomous: options.autonomous === true,
|
|
191
|
+
now: options.now
|
|
192
|
+
});
|
|
193
|
+
if (!assessment.valid || !assessment.eligible)
|
|
194
|
+
return fail("policy-rejected", assessment.reason ?? "engine release is not eligible for this policy");
|
|
195
|
+
const minimum = policy.components[component].minimumVersion;
|
|
196
|
+
if (minimum && ((0, import_releaseVersions.compareReleaseVersions)(manifest.version, minimum) === null || (0, import_releaseVersions.compareReleaseVersions)(manifest.version, minimum) < 0))
|
|
197
|
+
return fail("minimum-version", "engine release is below its signed policy minimum");
|
|
198
|
+
return null;
|
|
242
199
|
}
|
|
243
200
|
function describe(error) {
|
|
244
|
-
|
|
201
|
+
return error instanceof Error ? error.message : String(error);
|
|
245
202
|
}
|
|
246
203
|
function paths(env) {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
204
|
+
const home = (0, import_firstPartyHarnessHome.firstPartyHarnessHomeDir)(env);
|
|
205
|
+
return {
|
|
206
|
+
home,
|
|
207
|
+
releases: import_node_path.default.join(home, "releases"),
|
|
208
|
+
current: import_node_path.default.join(home, "current"),
|
|
209
|
+
previous: import_node_path.default.join(home, "previous"),
|
|
210
|
+
state: import_node_path.default.join(home, "update-state.json"),
|
|
211
|
+
floor: import_node_path.default.join(home, "minimum-manifest.json"),
|
|
212
|
+
lock: import_node_path.default.join(import_node_path.default.dirname(home), `.${import_firstPartyHarness.FIRST_PARTY_HARNESS.provider}-update`)
|
|
213
|
+
};
|
|
257
214
|
}
|
|
258
215
|
function prepareLock(env) {
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
216
|
+
const target = paths(env).lock;
|
|
217
|
+
(0, import_node_fs.mkdirSync)(import_node_path.default.dirname(target), { recursive: true, mode: 448 });
|
|
218
|
+
(0, import_node_fs.writeFileSync)(target, "", { flag: "a", mode: 384 });
|
|
219
|
+
return target;
|
|
263
220
|
}
|
|
264
221
|
function atomicJson(file, data) {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
222
|
+
(0, import_node_fs.mkdirSync)(import_node_path.default.dirname(file), { recursive: true, mode: 448 });
|
|
223
|
+
const staging = `${file}.tmp-${(0, import_node_crypto.randomUUID)()}`;
|
|
224
|
+
try {
|
|
225
|
+
(0, import_node_fs.writeFileSync)(staging, `${JSON.stringify(data, null, 2)}
|
|
226
|
+
`, { mode: 384 });
|
|
227
|
+
(0, import_node_fs.renameSync)(staging, file);
|
|
228
|
+
} finally {
|
|
229
|
+
(0, import_node_fs.rmSync)(staging, { force: true });
|
|
230
|
+
}
|
|
274
231
|
}
|
|
275
232
|
function atomicLink(target, link) {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
}
|
|
233
|
+
const staging = `${link}.tmp-${(0, import_node_crypto.randomUUID)()}`;
|
|
234
|
+
try {
|
|
235
|
+
(0, import_node_fs.symlinkSync)(target, staging);
|
|
236
|
+
(0, import_node_fs.renameSync)(staging, link);
|
|
237
|
+
} finally {
|
|
238
|
+
(0, import_node_fs.rmSync)(staging, { force: true });
|
|
239
|
+
}
|
|
284
240
|
}
|
|
285
241
|
function readLink(file) {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}
|
|
242
|
+
try {
|
|
243
|
+
return (0, import_node_fs.readlinkSync)(file);
|
|
244
|
+
} catch {
|
|
245
|
+
return null;
|
|
246
|
+
}
|
|
292
247
|
}
|
|
293
248
|
function hasEntry(file) {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
}
|
|
249
|
+
try {
|
|
250
|
+
(0, import_node_fs.lstatSync)(file);
|
|
251
|
+
return true;
|
|
252
|
+
} catch {
|
|
253
|
+
return false;
|
|
254
|
+
}
|
|
301
255
|
}
|
|
302
256
|
function isManagedFirstPartyHarnessReleasePath(binaryPath, env = process.env) {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
readLink(canonical) === `../current/${node_path_1.default.basename(canonical)}`);
|
|
257
|
+
const canonical = firstPartyHarnessBinaryPath(env);
|
|
258
|
+
return import_node_path.default.resolve(binaryPath) === import_node_path.default.resolve(canonical) && readLink(canonical) === `../current/${import_node_path.default.basename(canonical)}`;
|
|
306
259
|
}
|
|
307
|
-
/** Read a single immutable binary/sidecar pair, never two different `current` targets. */
|
|
308
260
|
function getVerifiedInstalledFirstPartyHarness(options = {}) {
|
|
309
|
-
|
|
310
|
-
|
|
261
|
+
const canonical = firstPartyHarnessBinaryPath(options.env);
|
|
262
|
+
return inspectBinary(canonical, options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS, firstPartyHarnessPlatformKey(options.platform, options.arch));
|
|
311
263
|
}
|
|
312
264
|
function inspectBinary(binaryPath, keys, expectedPlatform = firstPartyHarnessPlatformKey()) {
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
return result;
|
|
322
|
-
try {
|
|
323
|
-
const resolved = (0, node_fs_1.realpathSync)(binaryPath);
|
|
324
|
-
const size = (0, node_fs_1.statSync)(resolved).size;
|
|
325
|
-
if (size > exports.MAX_ARTIFACT_BYTES)
|
|
326
|
-
return result;
|
|
327
|
-
const record = JSON.parse((0, node_fs_1.readFileSync)(resolved + exports.PROVENANCE_SUFFIX, 'utf8'));
|
|
328
|
-
if (!record ||
|
|
329
|
-
(0, releaseVersions_js_1.compareReleaseVersions)(record.version, record.version) === null ||
|
|
330
|
-
typeof record.platform !== 'string' ||
|
|
331
|
-
typeof record.sha256 !== 'string' ||
|
|
332
|
-
typeof record.url !== 'string' ||
|
|
333
|
-
typeof record.sig !== 'string')
|
|
334
|
-
return result;
|
|
335
|
-
record.sha256 = record.sha256.toLowerCase();
|
|
336
|
-
result.provenance = record;
|
|
337
|
-
if (record.platform !== expectedPlatform)
|
|
338
|
-
return result;
|
|
339
|
-
const verdict = (0, releaseManifest_js_1.verifyArtifact)(record.platform, record.version, { ...record, file: node_path_1.default.basename(binaryPath), size }, keys);
|
|
340
|
-
if (!('ok' in verdict) ||
|
|
341
|
-
!verdict.ok ||
|
|
342
|
-
(0, node_crypto_1.createHash)('sha256').update((0, node_fs_1.readFileSync)(resolved)).digest('hex') !==
|
|
343
|
-
record.sha256.toLowerCase())
|
|
344
|
-
return result;
|
|
345
|
-
result.version = record.version;
|
|
346
|
-
result.verified = true;
|
|
347
|
-
}
|
|
348
|
-
catch {
|
|
349
|
-
/* absent/malformed/tampered provenance is not a version authority */
|
|
350
|
-
}
|
|
265
|
+
const result = {
|
|
266
|
+
binaryPath,
|
|
267
|
+
version: null,
|
|
268
|
+
verified: false,
|
|
269
|
+
exists: (0, import_node_fs.existsSync)(binaryPath),
|
|
270
|
+
provenance: null
|
|
271
|
+
};
|
|
272
|
+
if (!result.exists || !keys.length)
|
|
351
273
|
return result;
|
|
274
|
+
try {
|
|
275
|
+
const resolved = (0, import_node_fs.realpathSync)(binaryPath);
|
|
276
|
+
const size = (0, import_node_fs.statSync)(resolved).size;
|
|
277
|
+
if (size > MAX_ARTIFACT_BYTES)
|
|
278
|
+
return result;
|
|
279
|
+
const record = JSON.parse((0, import_node_fs.readFileSync)(resolved + PROVENANCE_SUFFIX, "utf8"));
|
|
280
|
+
if (!record || (0, import_releaseVersions.compareReleaseVersions)(record.version, record.version) === null || typeof record.platform !== "string" || typeof record.sha256 !== "string" || typeof record.url !== "string" || typeof record.sig !== "string")
|
|
281
|
+
return result;
|
|
282
|
+
record.sha256 = record.sha256.toLowerCase();
|
|
283
|
+
result.provenance = record;
|
|
284
|
+
if (record.platform !== expectedPlatform)
|
|
285
|
+
return result;
|
|
286
|
+
const verdict = (0, import_releaseManifest.verifyArtifact)(record.platform, record.version, { ...record, file: import_node_path.default.basename(binaryPath), size }, keys);
|
|
287
|
+
if (!("ok" in verdict) || !verdict.ok || (0, import_node_crypto.createHash)("sha256").update((0, import_node_fs.readFileSync)(resolved)).digest("hex") !== record.sha256.toLowerCase())
|
|
288
|
+
return result;
|
|
289
|
+
result.version = record.version;
|
|
290
|
+
result.verified = true;
|
|
291
|
+
} catch {
|
|
292
|
+
}
|
|
293
|
+
return result;
|
|
352
294
|
}
|
|
353
295
|
function readFirstPartyHarnessUpdateState(env = process.env) {
|
|
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
|
-
attemptedAt,
|
|
384
|
-
completedAt: Date.now(),
|
|
385
|
-
targetVersion,
|
|
386
|
-
installedVersion: result.version ?? getVerifiedInstalledFirstPartyHarness({ env, keys }).version ?? undefined,
|
|
387
|
-
code: result.code,
|
|
388
|
-
error: result.error,
|
|
389
|
-
changed: result.changed,
|
|
390
|
-
});
|
|
296
|
+
try {
|
|
297
|
+
const value = JSON.parse((0, import_node_fs.readFileSync)(paths(env).state, "utf8"));
|
|
298
|
+
if (!value || !["install", "rollback"].includes(value.operation) || !["running", "succeeded", "failed"].includes(value.status) || !Number.isFinite(value.attemptedAt))
|
|
299
|
+
return null;
|
|
300
|
+
if (value.status === "running" && !import_proper_lockfile.default.checkSync(paths(env).lock, { realpath: false, stale: LOCK_STALE_MS })) {
|
|
301
|
+
return {
|
|
302
|
+
...value,
|
|
303
|
+
status: "failed",
|
|
304
|
+
code: "install-failed",
|
|
305
|
+
error: "The previous update was interrupted. Run `skrr code update` to retry."
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
return value;
|
|
309
|
+
} catch {
|
|
310
|
+
return null;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
function finishState(env, operation, attemptedAt, result, targetVersion, keys = import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS) {
|
|
314
|
+
atomicJson(paths(env).state, {
|
|
315
|
+
operation,
|
|
316
|
+
status: result.ok ? "succeeded" : "failed",
|
|
317
|
+
attemptedAt,
|
|
318
|
+
completedAt: Date.now(),
|
|
319
|
+
targetVersion,
|
|
320
|
+
installedVersion: result.version ?? getVerifiedInstalledFirstPartyHarness({ env, keys }).version ?? void 0,
|
|
321
|
+
code: result.code,
|
|
322
|
+
error: result.error,
|
|
323
|
+
changed: result.changed
|
|
324
|
+
});
|
|
391
325
|
}
|
|
392
326
|
function retainedManifest(env, keys) {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
if (hasEntry(paths(env).floor))
|
|
405
|
-
throw error;
|
|
406
|
-
return null;
|
|
407
|
-
}
|
|
327
|
+
try {
|
|
328
|
+
const manifest = JSON.parse((0, import_node_fs.readFileSync)(paths(env).floor, "utf8"));
|
|
329
|
+
const verdict = (0, import_releaseManifest.verifyManifest)(manifest, keys);
|
|
330
|
+
if (!("ok" in verdict) || !verdict.ok || (0, import_releaseVersions.compareReleaseVersions)(manifest.minimum, manifest.version) === null || (0, import_releaseVersions.compareReleaseVersions)(manifest.minimum, manifest.version) > 0)
|
|
331
|
+
throw new Error("retained minimum manifest is invalid; refusing to discard the signed floor");
|
|
332
|
+
return manifest;
|
|
333
|
+
} catch (error) {
|
|
334
|
+
if (hasEntry(paths(env).floor))
|
|
335
|
+
throw error;
|
|
336
|
+
return null;
|
|
337
|
+
}
|
|
408
338
|
}
|
|
409
339
|
function effectiveMinimum(manifest, keys) {
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
340
|
+
let minimum = manifest.minimum;
|
|
341
|
+
if (manifest.policy) {
|
|
342
|
+
const policy = manifest.policy;
|
|
343
|
+
const verdict = (0, import_releasePolicy.verifyReleasePolicy)(policy, keys);
|
|
344
|
+
if (!("ok" in verdict) || !verdict.ok)
|
|
345
|
+
throw new Error("retained signed policy is invalid");
|
|
346
|
+
const component = [import_firstPartyHarness.FIRST_PARTY_HARNESS.provider, "firstPartyHarness"].find((name) => policy.components[name]);
|
|
347
|
+
const floor = component ? policy.components[component].minimumVersion : void 0;
|
|
348
|
+
if (floor && (0, import_releaseVersions.compareReleaseVersions)(floor, minimum) === null)
|
|
349
|
+
throw new Error("signed policy minimum is invalid");
|
|
350
|
+
if (floor && (0, import_releaseVersions.compareReleaseVersions)(floor, minimum) === 1)
|
|
351
|
+
minimum = floor;
|
|
352
|
+
}
|
|
353
|
+
return minimum;
|
|
424
354
|
}
|
|
425
355
|
function retainedMinimum(env, keys) {
|
|
426
|
-
|
|
427
|
-
|
|
356
|
+
const manifest = retainedManifest(env, keys);
|
|
357
|
+
return manifest ? effectiveMinimum(manifest, keys) : null;
|
|
428
358
|
}
|
|
429
359
|
function preserveMinimum(env, keys, manifest) {
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
atomicJson(paths(env).floor, manifest);
|
|
360
|
+
if (!manifest)
|
|
361
|
+
return;
|
|
362
|
+
const previous = retainedManifest(env, keys);
|
|
363
|
+
if (!previous || (0, import_releaseVersions.compareReleaseVersions)(effectiveMinimum(manifest, keys), effectiveMinimum(previous, keys)) === 1)
|
|
364
|
+
atomicJson(paths(env).floor, manifest);
|
|
436
365
|
}
|
|
437
366
|
function createAliases(env) {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
catch {
|
|
449
|
-
/* compatibility aliases must not invalidate an activated release */
|
|
450
|
-
}
|
|
451
|
-
}
|
|
367
|
+
const canonical = firstPartyHarnessBinaryPath(env);
|
|
368
|
+
for (const spelling of (0, import_firstPartyHarness.firstPartyHarnessArtifactSpellings)()) {
|
|
369
|
+
const alias = import_node_path.default.join(import_node_path.default.dirname(canonical), (0, import_firstPartyHarness.firstPartyHarnessBinaryName)(spelling));
|
|
370
|
+
if (alias === canonical)
|
|
371
|
+
continue;
|
|
372
|
+
for (const suffix of [PROVENANCE_SUFFIX, ""]) {
|
|
373
|
+
if (!hasEntry(alias + suffix)) {
|
|
374
|
+
try {
|
|
375
|
+
(0, import_node_fs.symlinkSync)(import_node_path.default.basename(canonical) + suffix, alias + suffix);
|
|
376
|
+
} catch {
|
|
452
377
|
}
|
|
378
|
+
}
|
|
453
379
|
}
|
|
380
|
+
}
|
|
454
381
|
}
|
|
455
382
|
function stableLinks(env) {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
383
|
+
const binary = firstPartyHarnessBinaryPath(env);
|
|
384
|
+
(0, import_node_fs.mkdirSync)(import_node_path.default.dirname(binary), { recursive: true, mode: 448 });
|
|
385
|
+
for (const suffix of [PROVENANCE_SUFFIX, ""]) {
|
|
386
|
+
const target = `../current/${import_node_path.default.basename(binary)}${suffix}`;
|
|
387
|
+
if (readLink(binary + suffix) !== target)
|
|
388
|
+
atomicLink(target, binary + suffix);
|
|
389
|
+
}
|
|
390
|
+
if (hasEntry(paths(env).previous)) {
|
|
391
|
+
for (const suffix of [PROVENANCE_SUFFIX, ""]) {
|
|
392
|
+
const target = `../previous/${import_node_path.default.basename(binary)}${suffix}`;
|
|
393
|
+
if (readLink(binary + PREVIOUS_SUFFIX + suffix) !== target)
|
|
394
|
+
atomicLink(target, binary + PREVIOUS_SUFFIX + suffix);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
createAliases(env);
|
|
471
398
|
}
|
|
472
399
|
function migrateFlatLayout(env, _progress) {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
(0,
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
atomicLink(node_path_1.default.relative(p.home, dir), p.current);
|
|
494
|
-
stableLinks(env);
|
|
400
|
+
const p = paths(env);
|
|
401
|
+
const binary = firstPartyHarnessBinaryPath(env);
|
|
402
|
+
(0, import_node_fs.mkdirSync)(p.releases, { recursive: true, mode: 448 });
|
|
403
|
+
if (isManagedFirstPartyHarnessReleasePath(binary, env) || !(0, import_node_fs.existsSync)(binary))
|
|
404
|
+
return;
|
|
405
|
+
const dir = import_node_path.default.join(p.releases, `legacy-${(0, import_node_crypto.randomUUID)()}`);
|
|
406
|
+
(0, import_node_fs.mkdirSync)(dir, { mode: 448 });
|
|
407
|
+
const adopted = import_node_path.default.join(dir, import_node_path.default.basename(binary));
|
|
408
|
+
(0, import_node_fs.copyFileSync)(binary, adopted);
|
|
409
|
+
(0, import_node_fs.chmodSync)(adopted, 365);
|
|
410
|
+
if ((0, import_node_fs.existsSync)(binary + PROVENANCE_SUFFIX)) {
|
|
411
|
+
(0, import_node_fs.copyFileSync)(binary + PROVENANCE_SUFFIX, adopted + PROVENANCE_SUFFIX);
|
|
412
|
+
(0, import_node_fs.chmodSync)(adopted + PROVENANCE_SUFFIX, 292);
|
|
413
|
+
}
|
|
414
|
+
(0, import_node_fs.chmodSync)(dir, 448);
|
|
415
|
+
const outgoing = readLink(p.current);
|
|
416
|
+
if (outgoing)
|
|
417
|
+
atomicLink(outgoing, p.previous);
|
|
418
|
+
atomicLink(import_node_path.default.relative(p.home, dir), p.current);
|
|
419
|
+
stableLinks(env);
|
|
495
420
|
}
|
|
496
421
|
function validateArtifact(options) {
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
if (
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
if ((
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
if (policyFailure)
|
|
531
|
-
return policyFailure;
|
|
532
|
-
const manifestVerdict = (0, releaseManifest_js_1.verifyManifest)(options.manifest, keys);
|
|
533
|
-
const artifact = options.manifest.platforms?.[record.platform];
|
|
534
|
-
if (!('ok' in manifestVerdict) ||
|
|
535
|
-
!manifestVerdict.ok ||
|
|
536
|
-
options.manifest.version !== record.version ||
|
|
537
|
-
artifact?.sha256?.toLowerCase() !== record.sha256.toLowerCase() ||
|
|
538
|
-
(0, releaseVersions_js_1.compareReleaseVersions)(options.manifest.minimum, record.version) === null)
|
|
539
|
-
return fail('manifest-unverified', 'activation manifest does not authenticate this artifact');
|
|
540
|
-
}
|
|
541
|
-
return null;
|
|
422
|
+
const keys = options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
|
|
423
|
+
const record = options.provenance;
|
|
424
|
+
if (!record || typeof record !== "object" || typeof record.version !== "string" || typeof record.platform !== "string" || typeof record.sha256 !== "string" || !/^[a-fA-F0-9]{64}$/.test(record.sha256) || typeof record.url !== "string" || typeof record.sig !== "string" || !Buffer.isBuffer(options.binary))
|
|
425
|
+
return fail("artifact-unverified", "artifact provenance is malformed");
|
|
426
|
+
if (!keys.length)
|
|
427
|
+
return fail("no-pinned-keys", "no pinned engine release keys; refusing activation");
|
|
428
|
+
if ((0, import_releaseVersions.compareReleaseVersions)(record.version, record.version) === null)
|
|
429
|
+
return fail("version-invalid", "artifact version is not a semantic release version");
|
|
430
|
+
if (record.platform !== firstPartyHarnessPlatformKey(options.platform, options.arch))
|
|
431
|
+
return fail("unsupported-platform", `artifact ${record.platform} does not match this host`);
|
|
432
|
+
if ((options.platform ?? process.platform) === "win32")
|
|
433
|
+
return fail("unsupported-platform", "managed engine release activation currently requires macOS or Linux");
|
|
434
|
+
const verdict = (0, import_releaseManifest.verifyArtifact)(record.platform, record.version, {
|
|
435
|
+
...record,
|
|
436
|
+
file: (0, import_firstPartyHarness.firstPartyHarnessBinaryName)(),
|
|
437
|
+
size: options.binary.length
|
|
438
|
+
}, keys);
|
|
439
|
+
if (!("ok" in verdict) || !verdict.ok)
|
|
440
|
+
return fail("artifact-unverified", "artifact provenance signature rejected");
|
|
441
|
+
if (options.binary.length > MAX_ARTIFACT_BYTES)
|
|
442
|
+
return fail("too-large", "artifact exceeds the download ceiling");
|
|
443
|
+
if ((0, import_node_crypto.createHash)("sha256").update(options.binary).digest("hex") !== record.sha256.toLowerCase())
|
|
444
|
+
return fail("hash-mismatch", "artifact bytes do not match signed provenance");
|
|
445
|
+
if (options.manifest) {
|
|
446
|
+
const policyFailure = validateEnginePolicy(options.manifest, options);
|
|
447
|
+
if (policyFailure)
|
|
448
|
+
return policyFailure;
|
|
449
|
+
const manifestVerdict = (0, import_releaseManifest.verifyManifest)(options.manifest, keys);
|
|
450
|
+
const artifact = options.manifest.platforms?.[record.platform];
|
|
451
|
+
if (!("ok" in manifestVerdict) || !manifestVerdict.ok || options.manifest.version !== record.version || artifact?.sha256?.toLowerCase() !== record.sha256.toLowerCase() || (0, import_releaseVersions.compareReleaseVersions)(options.manifest.minimum, record.version) === null)
|
|
452
|
+
return fail("manifest-unverified", "activation manifest does not authenticate this artifact");
|
|
453
|
+
}
|
|
454
|
+
return null;
|
|
542
455
|
}
|
|
543
456
|
function activateLocked(options) {
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
if (options.preserveExternalLink && !hasEntry(binary)) {
|
|
566
|
-
for (const spelling of (0, firstPartyHarness_js_1.firstPartyHarnessArtifactSpellings)()) {
|
|
567
|
-
const alias = node_path_1.default.join(node_path_1.default.dirname(binary), (0, firstPartyHarness_js_1.firstPartyHarnessBinaryName)(spelling));
|
|
568
|
-
const aliasLink = readLink(alias);
|
|
569
|
-
if (aliasLink && aliasLink !== node_path_1.default.basename(binary))
|
|
570
|
-
return {
|
|
571
|
-
ok: true,
|
|
572
|
-
changed: false,
|
|
573
|
-
binaryPath: binary,
|
|
574
|
-
reason: `legacy engine at ${alias} is an externally owned symlink`,
|
|
575
|
-
};
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
const migration = (0, firstPartyHarnessHome_js_1.migrateFirstPartyHarnessHome)({ env });
|
|
579
|
-
for (const change of migration.moved)
|
|
580
|
-
progress(`engine home migration: ${change}`);
|
|
581
|
-
for (const error of migration.errors)
|
|
582
|
-
progress(`engine home migration: ${error}`);
|
|
583
|
-
const installed = getVerifiedInstalledFirstPartyHarness({
|
|
584
|
-
env,
|
|
585
|
-
keys,
|
|
586
|
-
platform: options.platform,
|
|
587
|
-
arch: options.arch,
|
|
588
|
-
});
|
|
589
|
-
const record = { ...options.provenance, sha256: options.provenance.sha256.toLowerCase() };
|
|
590
|
-
const floor = retainedMinimum(env, keys);
|
|
591
|
-
if (floor && (0, releaseVersions_js_1.compareReleaseVersions)(record.version, floor) < 0)
|
|
592
|
-
return fail('minimum-version', `release ${record.version} is below the retained signed minimum ${floor}`);
|
|
593
|
-
if (options.manifest && (0, releaseVersions_js_1.compareReleaseVersions)(record.version, options.manifest.minimum) < 0)
|
|
594
|
-
return fail('minimum-version', 'release is below its signed minimum');
|
|
595
|
-
if (installed.exists && !installed.verified && options.preserveUnknownInstalled)
|
|
457
|
+
const env = options.env ?? process.env;
|
|
458
|
+
const keys = options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
|
|
459
|
+
const progress = options.onProgress ?? (() => {
|
|
460
|
+
});
|
|
461
|
+
const p = paths(env);
|
|
462
|
+
const binary = firstPartyHarnessBinaryPath(env);
|
|
463
|
+
const canonicalLink = readLink(binary);
|
|
464
|
+
const legacyLinks = (0, import_firstPartyHarness.firstPartyHarnessArtifactSpellings)().map((spelling) => (0, import_firstPartyHarness.firstPartyHarnessBinaryName)(spelling));
|
|
465
|
+
if (canonicalLink && !isManagedFirstPartyHarnessReleasePath(binary, env) && !legacyLinks.includes(canonicalLink)) {
|
|
466
|
+
return options.preserveExternalLink ? {
|
|
467
|
+
ok: true,
|
|
468
|
+
changed: false,
|
|
469
|
+
binaryPath: binary,
|
|
470
|
+
reason: "canonical engine is an externally owned symlink"
|
|
471
|
+
} : fail("install-failed", "managed engine path is an external symlink; update its owning installation");
|
|
472
|
+
}
|
|
473
|
+
if (options.preserveExternalLink && !hasEntry(binary)) {
|
|
474
|
+
for (const spelling of (0, import_firstPartyHarness.firstPartyHarnessArtifactSpellings)()) {
|
|
475
|
+
const alias = import_node_path.default.join(import_node_path.default.dirname(binary), (0, import_firstPartyHarness.firstPartyHarnessBinaryName)(spelling));
|
|
476
|
+
const aliasLink = readLink(alias);
|
|
477
|
+
if (aliasLink && aliasLink !== import_node_path.default.basename(binary))
|
|
596
478
|
return {
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
479
|
+
ok: true,
|
|
480
|
+
changed: false,
|
|
481
|
+
binaryPath: binary,
|
|
482
|
+
reason: `legacy engine at ${alias} is an externally owned symlink`
|
|
601
483
|
};
|
|
602
|
-
if (installed.version) {
|
|
603
|
-
const comparison = (0, releaseVersions_js_1.compareReleaseVersions)(record.version, installed.version);
|
|
604
|
-
if (comparison === 0 && installed.provenance?.sha256 !== record.sha256)
|
|
605
|
-
return fail('manifest-malformed', 'release version is immutable but signed artifact digest changed');
|
|
606
|
-
if (comparison === 0 || (comparison < 0 && !options.allowDowngrade)) {
|
|
607
|
-
preserveMinimum(env, keys, options.manifest);
|
|
608
|
-
return {
|
|
609
|
-
ok: true,
|
|
610
|
-
changed: false,
|
|
611
|
-
replaced: true,
|
|
612
|
-
version: installed.version,
|
|
613
|
-
platform: installed.provenance?.platform,
|
|
614
|
-
binaryPath: binary,
|
|
615
|
-
};
|
|
616
|
-
}
|
|
617
484
|
}
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
(0, node_fs_1.renameSync)(staging, slot);
|
|
638
|
-
}
|
|
639
|
-
finally {
|
|
640
|
-
if (hasEntry(staging)) {
|
|
641
|
-
(0, node_fs_1.chmodSync)(staging, 0o700);
|
|
642
|
-
(0, node_fs_1.rmSync)(staging, { recursive: true, force: true });
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
const previous = readLink(p.current);
|
|
647
|
-
const target = node_path_1.default.relative(p.home, slot);
|
|
648
|
-
if (previous && previous !== target)
|
|
649
|
-
atomicLink(previous, p.previous);
|
|
650
|
-
// Prepare the stable entry points while the original release still runs.
|
|
651
|
-
// Subsequent installations only change this ONE pointer.
|
|
652
|
-
stableLinks(env);
|
|
653
|
-
preserveMinimum(env, keys, options.manifest);
|
|
654
|
-
atomicLink(target, p.current);
|
|
655
|
-
progress(`${firstPartyHarness_js_1.FIRST_PARTY_HARNESS.displayName} ${record.version} installed; existing sessions keep their current release.`);
|
|
485
|
+
}
|
|
486
|
+
const migration = (0, import_firstPartyHarnessHome.migrateFirstPartyHarnessHome)({ env });
|
|
487
|
+
for (const change of migration.moved)
|
|
488
|
+
progress(`engine home migration: ${change}`);
|
|
489
|
+
for (const error of migration.errors)
|
|
490
|
+
progress(`engine home migration: ${error}`);
|
|
491
|
+
const installed = getVerifiedInstalledFirstPartyHarness({
|
|
492
|
+
env,
|
|
493
|
+
keys,
|
|
494
|
+
platform: options.platform,
|
|
495
|
+
arch: options.arch
|
|
496
|
+
});
|
|
497
|
+
const record = { ...options.provenance, sha256: options.provenance.sha256.toLowerCase() };
|
|
498
|
+
const floor = retainedMinimum(env, keys);
|
|
499
|
+
if (floor && (0, import_releaseVersions.compareReleaseVersions)(record.version, floor) < 0)
|
|
500
|
+
return fail("minimum-version", `release ${record.version} is below the retained signed minimum ${floor}`);
|
|
501
|
+
if (options.manifest && (0, import_releaseVersions.compareReleaseVersions)(record.version, options.manifest.minimum) < 0)
|
|
502
|
+
return fail("minimum-version", "release is below its signed minimum");
|
|
503
|
+
if (installed.exists && !installed.verified && options.preserveUnknownInstalled)
|
|
656
504
|
return {
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
platform: record.platform,
|
|
662
|
-
binaryPath: binary,
|
|
505
|
+
ok: true,
|
|
506
|
+
changed: false,
|
|
507
|
+
binaryPath: binary,
|
|
508
|
+
reason: "installed engine has no verified provenance"
|
|
663
509
|
};
|
|
510
|
+
if (installed.version) {
|
|
511
|
+
const comparison = (0, import_releaseVersions.compareReleaseVersions)(record.version, installed.version);
|
|
512
|
+
if (comparison === 0 && installed.provenance?.sha256 !== record.sha256)
|
|
513
|
+
return fail("manifest-malformed", "release version is immutable but signed artifact digest changed");
|
|
514
|
+
if (comparison === 0 || comparison < 0 && !options.allowDowngrade) {
|
|
515
|
+
preserveMinimum(env, keys, options.manifest);
|
|
516
|
+
return {
|
|
517
|
+
ok: true,
|
|
518
|
+
changed: false,
|
|
519
|
+
replaced: true,
|
|
520
|
+
version: installed.version,
|
|
521
|
+
platform: installed.provenance?.platform,
|
|
522
|
+
binaryPath: binary
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
migrateFlatLayout(env, progress);
|
|
527
|
+
const slot = import_node_path.default.join(p.releases, `${record.version}-${record.sha256.toLowerCase()}`);
|
|
528
|
+
const slotBinary = import_node_path.default.join(slot, import_node_path.default.basename(binary));
|
|
529
|
+
if (hasEntry(slot)) {
|
|
530
|
+
if ((0, import_node_fs.lstatSync)(slot).isSymbolicLink())
|
|
531
|
+
return fail("install-failed", "release directory must be locally owned, not a symlink");
|
|
532
|
+
const existing = inspectBinary(slotBinary, keys, firstPartyHarnessPlatformKey(options.platform, options.arch));
|
|
533
|
+
if (!existing.verified || existing.provenance?.sha256 !== record.sha256)
|
|
534
|
+
return fail("install-failed", "immutable release directory already exists with invalid bytes");
|
|
535
|
+
} else {
|
|
536
|
+
const staging = import_node_path.default.join(p.releases, `.staging-${(0, import_node_crypto.randomUUID)()}`);
|
|
537
|
+
(0, import_node_fs.mkdirSync)(staging, { mode: 448 });
|
|
538
|
+
try {
|
|
539
|
+
(0, import_node_fs.writeFileSync)(import_node_path.default.join(staging, import_node_path.default.basename(binary)), options.binary, { mode: 493 });
|
|
540
|
+
(0, import_node_fs.writeFileSync)(import_node_path.default.join(staging, import_node_path.default.basename(binary) + PROVENANCE_SUFFIX), `${JSON.stringify(record, null, 2)}
|
|
541
|
+
`, { mode: 384 });
|
|
542
|
+
(0, import_node_fs.chmodSync)(import_node_path.default.join(staging, import_node_path.default.basename(binary)), 365);
|
|
543
|
+
(0, import_node_fs.chmodSync)(import_node_path.default.join(staging, import_node_path.default.basename(binary) + PROVENANCE_SUFFIX), 292);
|
|
544
|
+
(0, import_node_fs.chmodSync)(staging, 448);
|
|
545
|
+
(0, import_node_fs.renameSync)(staging, slot);
|
|
546
|
+
} finally {
|
|
547
|
+
if (hasEntry(staging)) {
|
|
548
|
+
(0, import_node_fs.chmodSync)(staging, 448);
|
|
549
|
+
(0, import_node_fs.rmSync)(staging, { recursive: true, force: true });
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
const previous = readLink(p.current);
|
|
554
|
+
const target = import_node_path.default.relative(p.home, slot);
|
|
555
|
+
if (previous && previous !== target)
|
|
556
|
+
atomicLink(previous, p.previous);
|
|
557
|
+
stableLinks(env);
|
|
558
|
+
preserveMinimum(env, keys, options.manifest);
|
|
559
|
+
atomicLink(target, p.current);
|
|
560
|
+
progress(`${import_firstPartyHarness.FIRST_PARTY_HARNESS.displayName} ${record.version} installed; existing sessions keep their current release.`);
|
|
561
|
+
return {
|
|
562
|
+
ok: true,
|
|
563
|
+
changed: true,
|
|
564
|
+
replaced: installed.exists,
|
|
565
|
+
version: record.version,
|
|
566
|
+
platform: record.platform,
|
|
567
|
+
binaryPath: binary
|
|
568
|
+
};
|
|
664
569
|
}
|
|
665
|
-
/** Desktop's already-downloaded signed artifact uses the exact same transaction. */
|
|
666
570
|
function activateVerifiedFirstPartyHarnessArtifact(options) {
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
catch {
|
|
684
|
-
// Preserve the activation failure if its diagnostic journal is also unwritable.
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
return result;
|
|
688
|
-
}
|
|
689
|
-
finally {
|
|
690
|
-
release?.();
|
|
571
|
+
const invalid = validateArtifact(options);
|
|
572
|
+
const env = options.env ?? process.env;
|
|
573
|
+
const attemptedAt = Date.now();
|
|
574
|
+
let release;
|
|
575
|
+
try {
|
|
576
|
+
release = import_proper_lockfile.default.lockSync(prepareLock(env), { realpath: false, stale: LOCK_STALE_MS });
|
|
577
|
+
const result = invalid ?? activateLocked(options);
|
|
578
|
+
finishState(env, "install", attemptedAt, result, options.provenance?.version, options.keys);
|
|
579
|
+
return result;
|
|
580
|
+
} catch (error) {
|
|
581
|
+
const result = fail(error.code === "ELOCKED" ? "lock-busy" : "install-failed", describe(error));
|
|
582
|
+
if (release) {
|
|
583
|
+
try {
|
|
584
|
+
finishState(env, "install", attemptedAt, result, options.provenance?.version, options.keys);
|
|
585
|
+
} catch {
|
|
586
|
+
}
|
|
691
587
|
}
|
|
588
|
+
return result;
|
|
589
|
+
} finally {
|
|
590
|
+
release?.();
|
|
591
|
+
}
|
|
692
592
|
}
|
|
693
|
-
/** Signed-manifest check reads only; no lock, migration, state writes or login. */
|
|
694
593
|
async function checkFirstPartyHarnessUpdate(options = {}) {
|
|
594
|
+
const fetched = await fetchVerifiedManifest(options);
|
|
595
|
+
if (!fetched.ok)
|
|
596
|
+
return fetched;
|
|
597
|
+
const env = options.env ?? process.env;
|
|
598
|
+
const keys = options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
|
|
599
|
+
const platform = firstPartyHarnessPlatformKey(options.platform, options.arch);
|
|
600
|
+
if (!platform || (options.platform ?? process.platform) === "win32")
|
|
601
|
+
return fail("unsupported-platform", "this host has no managed engine artifact");
|
|
602
|
+
const artifact = fetched.manifest.platforms[platform];
|
|
603
|
+
if (!artifact)
|
|
604
|
+
return fail("artifact-missing", `release has no ${platform} artifact`);
|
|
605
|
+
const verdict = (0, import_releaseManifest.verifyArtifact)(platform, fetched.manifest.version, artifact, keys);
|
|
606
|
+
if (!("ok" in verdict) || !verdict.ok)
|
|
607
|
+
return fail("artifact-unverified", "offered artifact signature rejected");
|
|
608
|
+
let minimum = effectiveMinimum(fetched.manifest, keys);
|
|
609
|
+
try {
|
|
610
|
+
const floor = retainedMinimum(env, keys);
|
|
611
|
+
if (floor && (0, import_releaseVersions.compareReleaseVersions)(fetched.manifest.version, floor) < 0)
|
|
612
|
+
return fail("minimum-version", "offered release is below the retained signed minimum");
|
|
613
|
+
if (floor && (0, import_releaseVersions.compareReleaseVersions)(floor, minimum) === 1)
|
|
614
|
+
minimum = floor;
|
|
615
|
+
} catch (error) {
|
|
616
|
+
return fail("minimum-version", describe(error));
|
|
617
|
+
}
|
|
618
|
+
const installed = getVerifiedInstalledFirstPartyHarness(options);
|
|
619
|
+
if (installed.version === fetched.manifest.version && installed.provenance?.sha256 !== artifact.sha256.toLowerCase())
|
|
620
|
+
return fail("manifest-malformed", "same release version offers a different signed artifact digest");
|
|
621
|
+
const override = (0, import_firstPartyHarness.readFirstPartyHarnessEnv)(env, "path").value;
|
|
622
|
+
return {
|
|
623
|
+
ok: true,
|
|
624
|
+
installedVersion: installed.version,
|
|
625
|
+
latestVersion: fetched.manifest.version,
|
|
626
|
+
channel: (0, import_firstPartyHarnessChannels.resolveFirstPartyHarnessChannel)(env).channel,
|
|
627
|
+
updateAvailable: !installed.version || (0, import_releaseVersions.compareReleaseVersions)(installed.version, fetched.manifest.version) === -1,
|
|
628
|
+
binaryPath: installed.binaryPath,
|
|
629
|
+
owner: override && import_node_path.default.resolve(override) !== import_node_path.default.resolve(installed.binaryPath) ? "external" : "managed",
|
|
630
|
+
installedVerified: installed.verified,
|
|
631
|
+
minimumVersion: minimum,
|
|
632
|
+
lastUpdate: readFirstPartyHarnessUpdateState(env)
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
async function installFirstPartyHarness(options = {}) {
|
|
636
|
+
const env = options.env ?? process.env;
|
|
637
|
+
const keys = options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
|
|
638
|
+
const progress = options.onProgress ?? (() => {
|
|
639
|
+
});
|
|
640
|
+
const platform = firstPartyHarnessPlatformKey(options.platform, options.arch);
|
|
641
|
+
if (!platform || (options.platform ?? process.platform) === "win32")
|
|
642
|
+
return fail("unsupported-platform", "no managed engine activation for this platform");
|
|
643
|
+
if (options.version && (0, import_releaseVersions.compareReleaseVersions)(options.version, options.version) === null)
|
|
644
|
+
return fail("version-invalid", "requested version is not a semantic release version");
|
|
645
|
+
if (options.allowDowngrade && !options.version)
|
|
646
|
+
return fail("downgrade-refused", "a downgrade requires an explicit pinned version");
|
|
647
|
+
const attemptedAt = Date.now();
|
|
648
|
+
let release;
|
|
649
|
+
let result;
|
|
650
|
+
try {
|
|
651
|
+
release = await import_proper_lockfile.default.lock(prepareLock(env), {
|
|
652
|
+
realpath: false,
|
|
653
|
+
stale: LOCK_STALE_MS,
|
|
654
|
+
update: 1e4,
|
|
655
|
+
retries: { retries: 20, minTimeout: 100, maxTimeout: 500, factor: 1.2 }
|
|
656
|
+
});
|
|
657
|
+
atomicJson(paths(env).state, {
|
|
658
|
+
operation: "install",
|
|
659
|
+
status: "running",
|
|
660
|
+
attemptedAt,
|
|
661
|
+
targetVersion: options.version
|
|
662
|
+
});
|
|
663
|
+
result = await downloadAndActivate();
|
|
664
|
+
finishState(env, "install", attemptedAt, result, result.version ?? options.version, keys);
|
|
665
|
+
return result;
|
|
666
|
+
} catch (error) {
|
|
667
|
+
result = fail(error.code === "ELOCKED" ? "lock-busy" : "install-failed", describe(error));
|
|
668
|
+
if (release) {
|
|
669
|
+
try {
|
|
670
|
+
finishState(env, "install", attemptedAt, result, options.version, keys);
|
|
671
|
+
} catch {
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
return result;
|
|
675
|
+
} finally {
|
|
676
|
+
await release?.();
|
|
677
|
+
}
|
|
678
|
+
async function downloadAndActivate() {
|
|
679
|
+
progress("Fetching signed release manifest\u2026");
|
|
695
680
|
const fetched = await fetchVerifiedManifest(options);
|
|
696
681
|
if (!fetched.ok)
|
|
697
|
-
|
|
698
|
-
const
|
|
699
|
-
const
|
|
700
|
-
const platform = firstPartyHarnessPlatformKey(options.platform, options.arch);
|
|
701
|
-
if (!platform || (options.platform ?? process.platform) === 'win32')
|
|
702
|
-
return fail('unsupported-platform', 'this host has no managed engine artifact');
|
|
703
|
-
const artifact = fetched.manifest.platforms[platform];
|
|
682
|
+
return fetched;
|
|
683
|
+
const { manifest } = fetched;
|
|
684
|
+
const artifact = manifest.platforms[platform];
|
|
704
685
|
if (!artifact)
|
|
705
|
-
|
|
706
|
-
const verdict = (0,
|
|
707
|
-
if (!(
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
686
|
+
return fail("artifact-missing", `release ${manifest.version} has no ${platform} artifact`);
|
|
687
|
+
const verdict = (0, import_releaseManifest.verifyArtifact)(platform, manifest.version, artifact, keys);
|
|
688
|
+
if (!("ok" in verdict) || !verdict.ok)
|
|
689
|
+
return fail("artifact-unverified", "artifact signature rejected");
|
|
690
|
+
if (typeof artifact.size === "number" && artifact.size > MAX_ARTIFACT_BYTES)
|
|
691
|
+
return fail("too-large", "artifact declares bytes above the ceiling");
|
|
692
|
+
const installed = getVerifiedInstalledFirstPartyHarness({
|
|
693
|
+
env,
|
|
694
|
+
keys,
|
|
695
|
+
platform: options.platform,
|
|
696
|
+
arch: options.arch
|
|
697
|
+
});
|
|
698
|
+
const floor = retainedMinimum(env, keys);
|
|
699
|
+
if (floor && (0, import_releaseVersions.compareReleaseVersions)(manifest.version, floor) < 0)
|
|
700
|
+
return fail("minimum-version", `offered release is below the retained signed minimum ${floor}`);
|
|
701
|
+
if (installed.version && (0, import_releaseVersions.compareReleaseVersions)(manifest.version, installed.version) < 0 && !options.allowDowngrade) {
|
|
702
|
+
return fail("downgrade-refused", `offered ${manifest.version} is older than installed ${installed.version}; pin a version and use --allow-downgrade for recovery`);
|
|
703
|
+
}
|
|
704
|
+
if (installed.version === manifest.version) {
|
|
705
|
+
if (installed.provenance?.sha256 !== artifact.sha256.toLowerCase())
|
|
706
|
+
return fail("manifest-malformed", "same release version offers a different signed artifact digest");
|
|
707
|
+
preserveMinimum(env, keys, manifest);
|
|
708
|
+
return {
|
|
726
709
|
ok: true,
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
channel: (0, firstPartyHarnessChannels_js_1.resolveFirstPartyHarnessChannel)(env).channel,
|
|
730
|
-
updateAvailable: !installed.version ||
|
|
731
|
-
(0, releaseVersions_js_1.compareReleaseVersions)(installed.version, fetched.manifest.version) === -1,
|
|
710
|
+
changed: false,
|
|
711
|
+
version: installed.version,
|
|
732
712
|
binaryPath: installed.binaryPath,
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
installedVerified: installed.verified,
|
|
737
|
-
minimumVersion: minimum,
|
|
738
|
-
lastUpdate: readFirstPartyHarnessUpdateState(env),
|
|
739
|
-
};
|
|
740
|
-
}
|
|
741
|
-
async function installFirstPartyHarness(options = {}) {
|
|
742
|
-
const env = options.env ?? process.env;
|
|
743
|
-
const keys = options.keys ?? firstPartyHarnessReleaseKeys_js_1.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
|
|
744
|
-
const progress = options.onProgress ?? (() => { });
|
|
745
|
-
const platform = firstPartyHarnessPlatformKey(options.platform, options.arch);
|
|
746
|
-
if (!platform || (options.platform ?? process.platform) === 'win32')
|
|
747
|
-
return fail('unsupported-platform', 'no managed engine activation for this platform');
|
|
748
|
-
if (options.version && (0, releaseVersions_js_1.compareReleaseVersions)(options.version, options.version) === null)
|
|
749
|
-
return fail('version-invalid', 'requested version is not a semantic release version');
|
|
750
|
-
if (options.allowDowngrade && !options.version)
|
|
751
|
-
return fail('downgrade-refused', 'a downgrade requires an explicit pinned version');
|
|
752
|
-
const attemptedAt = Date.now();
|
|
753
|
-
let release;
|
|
754
|
-
let result;
|
|
755
|
-
try {
|
|
756
|
-
release = await proper_lockfile_1.default.lock(prepareLock(env), {
|
|
757
|
-
realpath: false,
|
|
758
|
-
stale: LOCK_STALE_MS,
|
|
759
|
-
update: 10_000,
|
|
760
|
-
retries: { retries: 20, minTimeout: 100, maxTimeout: 500, factor: 1.2 },
|
|
761
|
-
});
|
|
762
|
-
atomicJson(paths(env).state, {
|
|
763
|
-
operation: 'install',
|
|
764
|
-
status: 'running',
|
|
765
|
-
attemptedAt,
|
|
766
|
-
targetVersion: options.version,
|
|
767
|
-
});
|
|
768
|
-
result = await downloadAndActivate();
|
|
769
|
-
finishState(env, 'install', attemptedAt, result, result.version ?? options.version, keys);
|
|
770
|
-
return result;
|
|
713
|
+
platform: installed.provenance?.platform,
|
|
714
|
+
replaced: true
|
|
715
|
+
};
|
|
771
716
|
}
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
return fail('too-large', 'artifact declares bytes above the ceiling');
|
|
801
|
-
const installed = getVerifiedInstalledFirstPartyHarness({
|
|
802
|
-
env,
|
|
803
|
-
keys,
|
|
804
|
-
platform: options.platform,
|
|
805
|
-
arch: options.arch,
|
|
806
|
-
});
|
|
807
|
-
const floor = retainedMinimum(env, keys);
|
|
808
|
-
if (floor && (0, releaseVersions_js_1.compareReleaseVersions)(manifest.version, floor) < 0)
|
|
809
|
-
return fail('minimum-version', `offered release is below the retained signed minimum ${floor}`);
|
|
810
|
-
if (installed.version &&
|
|
811
|
-
(0, releaseVersions_js_1.compareReleaseVersions)(manifest.version, installed.version) < 0 &&
|
|
812
|
-
!options.allowDowngrade) {
|
|
813
|
-
return fail('downgrade-refused', `offered ${manifest.version} is older than installed ${installed.version}; pin a version and use --allow-downgrade for recovery`);
|
|
814
|
-
}
|
|
815
|
-
if (installed.version === manifest.version) {
|
|
816
|
-
if (installed.provenance?.sha256 !== artifact.sha256.toLowerCase())
|
|
817
|
-
return fail('manifest-malformed', 'same release version offers a different signed artifact digest');
|
|
818
|
-
preserveMinimum(env, keys, manifest);
|
|
819
|
-
return {
|
|
820
|
-
ok: true,
|
|
821
|
-
changed: false,
|
|
822
|
-
version: installed.version,
|
|
823
|
-
binaryPath: installed.binaryPath,
|
|
824
|
-
platform: installed.provenance?.platform,
|
|
825
|
-
replaced: true,
|
|
826
|
-
};
|
|
827
|
-
}
|
|
828
|
-
progress(`Downloading ${firstPartyHarness_js_1.FIRST_PARTY_HARNESS.displayName} ${manifest.version} (${platform})…`);
|
|
829
|
-
let binary;
|
|
830
|
-
try {
|
|
831
|
-
const response = await (options.fetchImpl ?? globalThis.fetch)(artifact.url, {
|
|
832
|
-
signal: fetchSignal(options, ARTIFACT_FETCH_TIMEOUT_MS),
|
|
833
|
-
redirect: 'follow',
|
|
834
|
-
});
|
|
835
|
-
if (!response.ok)
|
|
836
|
-
return fail('download-failed', `HTTP ${response.status} for ${artifact.url}`);
|
|
837
|
-
const contentLength = Number(response.headers.get('content-length'));
|
|
838
|
-
if (Number.isFinite(contentLength) && contentLength > exports.MAX_ARTIFACT_BYTES)
|
|
839
|
-
return fail('too-large', 'response declares bytes above the ceiling');
|
|
840
|
-
const chunks = [];
|
|
841
|
-
let size = 0;
|
|
842
|
-
if (!response.body)
|
|
843
|
-
return fail('download-failed', 'artifact response has no body');
|
|
844
|
-
const reader = response.body.getReader();
|
|
845
|
-
try {
|
|
846
|
-
while (true) {
|
|
847
|
-
const part = await reader.read();
|
|
848
|
-
if (part.done)
|
|
849
|
-
break;
|
|
850
|
-
size += part.value.byteLength;
|
|
851
|
-
if (size > exports.MAX_ARTIFACT_BYTES) {
|
|
852
|
-
await reader.cancel();
|
|
853
|
-
return fail('too-large', 'download exceeds the ceiling');
|
|
854
|
-
}
|
|
855
|
-
chunks.push(part.value);
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
finally {
|
|
859
|
-
reader.releaseLock();
|
|
860
|
-
}
|
|
861
|
-
binary = Buffer.concat(chunks, size);
|
|
862
|
-
}
|
|
863
|
-
catch (error) {
|
|
864
|
-
return fail('download-failed', `download failed: ${describe(error)}`);
|
|
717
|
+
progress(`Downloading ${import_firstPartyHarness.FIRST_PARTY_HARNESS.displayName} ${manifest.version} (${platform})\u2026`);
|
|
718
|
+
let binary;
|
|
719
|
+
try {
|
|
720
|
+
const response = await (options.fetchImpl ?? globalThis.fetch)(artifact.url, {
|
|
721
|
+
signal: fetchSignal(options, ARTIFACT_FETCH_TIMEOUT_MS),
|
|
722
|
+
redirect: "follow"
|
|
723
|
+
});
|
|
724
|
+
if (!response.ok)
|
|
725
|
+
return fail("download-failed", `HTTP ${response.status} for ${artifact.url}`);
|
|
726
|
+
const contentLength = Number(response.headers.get("content-length"));
|
|
727
|
+
if (Number.isFinite(contentLength) && contentLength > MAX_ARTIFACT_BYTES)
|
|
728
|
+
return fail("too-large", "response declares bytes above the ceiling");
|
|
729
|
+
const chunks = [];
|
|
730
|
+
let size = 0;
|
|
731
|
+
if (!response.body)
|
|
732
|
+
return fail("download-failed", "artifact response has no body");
|
|
733
|
+
const reader = response.body.getReader();
|
|
734
|
+
try {
|
|
735
|
+
while (true) {
|
|
736
|
+
const part = await reader.read();
|
|
737
|
+
if (part.done)
|
|
738
|
+
break;
|
|
739
|
+
size += part.value.byteLength;
|
|
740
|
+
if (size > MAX_ARTIFACT_BYTES) {
|
|
741
|
+
await reader.cancel();
|
|
742
|
+
return fail("too-large", "download exceeds the ceiling");
|
|
743
|
+
}
|
|
744
|
+
chunks.push(part.value);
|
|
865
745
|
}
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
746
|
+
} finally {
|
|
747
|
+
reader.releaseLock();
|
|
748
|
+
}
|
|
749
|
+
binary = Buffer.concat(chunks, size);
|
|
750
|
+
} catch (error) {
|
|
751
|
+
return fail("download-failed", `download failed: ${describe(error)}`);
|
|
752
|
+
}
|
|
753
|
+
const provenance = {
|
|
754
|
+
version: manifest.version,
|
|
755
|
+
platform,
|
|
756
|
+
sha256: artifact.sha256.toLowerCase(),
|
|
757
|
+
url: artifact.url,
|
|
758
|
+
sig: artifact.sig,
|
|
759
|
+
...artifact.sigs ? { sigs: artifact.sigs } : {},
|
|
760
|
+
...manifest.keyId ? { keyId: manifest.keyId } : {}
|
|
761
|
+
};
|
|
762
|
+
const activation = { ...options, binary, provenance, manifest };
|
|
763
|
+
const invalid = validateArtifact(activation);
|
|
764
|
+
return invalid ?? activateLocked(activation);
|
|
765
|
+
}
|
|
879
766
|
}
|
|
880
|
-
/** Rollback validates the retained immutable release and preserves its signature. */
|
|
881
767
|
function rollbackFirstPartyHarness(env = process.env, options = {}) {
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
catch {
|
|
899
|
-
// Preserve the rollback failure if its diagnostic journal is also unwritable.
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
return result;
|
|
903
|
-
}
|
|
904
|
-
finally {
|
|
905
|
-
release?.();
|
|
906
|
-
}
|
|
907
|
-
function performRollback() {
|
|
908
|
-
if (!isManagedFirstPartyHarnessReleasePath(firstPartyHarnessBinaryPath(env), env))
|
|
909
|
-
return fail('install-failed', 'active engine is outside the managed release store; install an explicitly pinned signed release before rolling back');
|
|
910
|
-
const previous = readLink(p.previous);
|
|
911
|
-
const current = readLink(p.current);
|
|
912
|
-
if (!previous ||
|
|
913
|
-
!current ||
|
|
914
|
-
!previous.startsWith('releases/') ||
|
|
915
|
-
node_path_1.default.resolve(p.home, previous).startsWith(p.releases + node_path_1.default.sep) === false)
|
|
916
|
-
return fail('install-failed', 'no managed previous release to roll back to');
|
|
917
|
-
const restored = inspectBinary(node_path_1.default.join(p.home, previous, node_path_1.default.basename(firstPartyHarnessBinaryPath(env))), keys);
|
|
918
|
-
if (!restored.verified || !restored.version)
|
|
919
|
-
return fail('artifact-unverified', 'previous release provenance is missing or invalid; install an explicitly pinned signed release for recovery');
|
|
920
|
-
const floor = retainedMinimum(env, keys);
|
|
921
|
-
if (floor && (0, releaseVersions_js_1.compareReleaseVersions)(restored.version, floor) < 0)
|
|
922
|
-
return fail('minimum-version', `previous release is below the retained signed minimum ${floor}`);
|
|
923
|
-
// Preserve the outgoing target only after activation. A crash between these
|
|
924
|
-
// operations still leaves `current` on a complete verified release.
|
|
925
|
-
atomicLink(previous, p.current);
|
|
926
|
-
atomicLink(current, p.previous);
|
|
927
|
-
stableLinks(env);
|
|
928
|
-
return {
|
|
929
|
-
ok: true,
|
|
930
|
-
changed: true,
|
|
931
|
-
replaced: true,
|
|
932
|
-
binaryPath: firstPartyHarnessBinaryPath(env),
|
|
933
|
-
version: restored.version,
|
|
934
|
-
platform: restored.provenance?.platform,
|
|
935
|
-
};
|
|
768
|
+
const keys = options.keys ?? import_firstPartyHarnessReleaseKeys.FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS;
|
|
769
|
+
const p = paths(env);
|
|
770
|
+
const attemptedAt = Date.now();
|
|
771
|
+
let release;
|
|
772
|
+
try {
|
|
773
|
+
release = import_proper_lockfile.default.lockSync(prepareLock(env), { realpath: false, stale: LOCK_STALE_MS });
|
|
774
|
+
const result = performRollback();
|
|
775
|
+
finishState(env, "rollback", attemptedAt, result, result.version, keys);
|
|
776
|
+
return result;
|
|
777
|
+
} catch (error) {
|
|
778
|
+
const result = fail(error.code === "ELOCKED" ? "lock-busy" : "install-failed", `rollback failed: ${describe(error)}`);
|
|
779
|
+
if (release) {
|
|
780
|
+
try {
|
|
781
|
+
finishState(env, "rollback", attemptedAt, result, void 0, keys);
|
|
782
|
+
} catch {
|
|
783
|
+
}
|
|
936
784
|
}
|
|
785
|
+
return result;
|
|
786
|
+
} finally {
|
|
787
|
+
release?.();
|
|
788
|
+
}
|
|
789
|
+
function performRollback() {
|
|
790
|
+
if (!isManagedFirstPartyHarnessReleasePath(firstPartyHarnessBinaryPath(env), env))
|
|
791
|
+
return fail("install-failed", "active engine is outside the managed release store; install an explicitly pinned signed release before rolling back");
|
|
792
|
+
const previous = readLink(p.previous);
|
|
793
|
+
const current = readLink(p.current);
|
|
794
|
+
if (!previous || !current || !previous.startsWith("releases/") || import_node_path.default.resolve(p.home, previous).startsWith(p.releases + import_node_path.default.sep) === false)
|
|
795
|
+
return fail("install-failed", "no managed previous release to roll back to");
|
|
796
|
+
const restored = inspectBinary(import_node_path.default.join(p.home, previous, import_node_path.default.basename(firstPartyHarnessBinaryPath(env))), keys);
|
|
797
|
+
if (!restored.verified || !restored.version)
|
|
798
|
+
return fail("artifact-unverified", "previous release provenance is missing or invalid; install an explicitly pinned signed release for recovery");
|
|
799
|
+
const floor = retainedMinimum(env, keys);
|
|
800
|
+
if (floor && (0, import_releaseVersions.compareReleaseVersions)(restored.version, floor) < 0)
|
|
801
|
+
return fail("minimum-version", `previous release is below the retained signed minimum ${floor}`);
|
|
802
|
+
atomicLink(previous, p.current);
|
|
803
|
+
atomicLink(current, p.previous);
|
|
804
|
+
stableLinks(env);
|
|
805
|
+
return {
|
|
806
|
+
ok: true,
|
|
807
|
+
changed: true,
|
|
808
|
+
replaced: true,
|
|
809
|
+
binaryPath: firstPartyHarnessBinaryPath(env),
|
|
810
|
+
version: restored.version,
|
|
811
|
+
platform: restored.provenance?.platform
|
|
812
|
+
};
|
|
813
|
+
}
|
|
937
814
|
}
|
|
938
815
|
function installedFirstPartyHarnessSize(env = process.env) {
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
816
|
+
try {
|
|
817
|
+
return (0, import_node_fs.statSync)(firstPartyHarnessBinaryPath(env)).size;
|
|
818
|
+
} catch {
|
|
819
|
+
return null;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
823
|
+
0 && (module.exports = {
|
|
824
|
+
FIRST_PARTY_HARNESS_RELEASE_PUBLIC_KEYS,
|
|
825
|
+
MAX_ARTIFACT_BYTES,
|
|
826
|
+
PREVIOUS_SUFFIX,
|
|
827
|
+
PROVENANCE_SUFFIX,
|
|
828
|
+
activateVerifiedFirstPartyHarnessArtifact,
|
|
829
|
+
checkFirstPartyHarnessUpdate,
|
|
830
|
+
fetchVerifiedManifest,
|
|
831
|
+
firstPartyHarnessBinaryPath,
|
|
832
|
+
firstPartyHarnessFeedBase,
|
|
833
|
+
firstPartyHarnessFeedCandidates,
|
|
834
|
+
firstPartyHarnessInstallDir,
|
|
835
|
+
firstPartyHarnessManifestFile,
|
|
836
|
+
firstPartyHarnessPlatformKey,
|
|
837
|
+
getVerifiedInstalledFirstPartyHarness,
|
|
838
|
+
installFirstPartyHarness,
|
|
839
|
+
installedFirstPartyHarnessSize,
|
|
840
|
+
isManagedFirstPartyHarnessReleasePath,
|
|
841
|
+
readFirstPartyHarnessUpdateState,
|
|
842
|
+
rollbackFirstPartyHarness
|
|
843
|
+
});
|