@bastani/atomic 0.10.18 → 0.10.19
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/CHANGELOG.md +83 -0
- package/README.md +27 -5
- package/dist/_shared/config-binary-install-SNFYFXWB.js +70 -0
- package/dist/_shared/config-binary-install-SNFYFXWB.js.map +1 -0
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/{mode-interactive-sdk-7KXUFI2F.js → mode-interactive-sdk-JXBZ3H27.js} +434 -11
- package/dist/_shared/mode-interactive-sdk-JXBZ3H27.js.map +1 -0
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +21 -6
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +7 -6
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/p0-cli-BB45ZQY6.js +56 -3
- package/dist/_shared/p0-cli-BB45ZQY6.js.map +1 -1
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/runtime-O4KCSG4C.js +3 -3
- package/dist/_shared/{sdk-OHKMDJ74.js → sdk-BHX35EPK.js} +40 -9
- package/dist/_shared/sdk-BHX35EPK.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/{startup-0-0-OV6RAEAP.js → startup-0-0-4EDVBK5P.js} +464 -7
- package/dist/_shared/startup-0-0-4EDVBK5P.js.map +1 -0
- package/dist/_shared/{startup-0-1-EZAJI6RE.js → startup-0-1-H5IXVRXQ.js} +85 -7
- package/dist/_shared/startup-0-1-H5IXVRXQ.js.map +1 -0
- package/dist/_shared/startup-0-2-YZZOC22D.js +4 -4
- package/dist/_shared/startup-0-3-DE2NCS6A.js +4 -4
- package/dist/_shared/startup-0-4-ZMJV547D.js +4 -4
- package/dist/_shared/startup-0-5-HZX3ZPTP.js +44 -11
- package/dist/_shared/startup-0-5-HZX3ZPTP.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
- package/dist/_shared/startup-12-0-55AAXBJZ.js +2 -2
- package/dist/_shared/startup-14-0-MLX36RBG.js +3 -3
- package/dist/_shared/startup-15-0-YUKGAC63.js +3 -3
- package/dist/_shared/{startup-15-1-4S7FLMNG.js → startup-15-1-WQZBOTMZ.js} +70 -28
- package/dist/_shared/{startup-15-1-4S7FLMNG.js.map → startup-15-1-WQZBOTMZ.js.map} +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +4 -4
- package/dist/_shared/{startup-8-1-LZFXSD3Z.js → startup-8-1-QZMXUGHI.js} +242 -20
- package/dist/_shared/startup-8-1-QZMXUGHI.js.map +1 -0
- package/dist/_shared/storage-command-7MGXLJGZ.js +5 -5
- package/dist/_shared/storage-status-K7PX2RXA.js +3 -3
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/team-DOQKICG2.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/binary-self-update.js +310 -0
- package/dist/binary-self-update.js.map +1 -0
- package/dist/builtin/intercom/index.bundle.mjs +2 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +30 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/skills/agent-browser/SKILL.md +1 -1
- package/dist/builtin/subagents/skills/impeccable/SKILL.md +3 -3
- package/dist/builtin/subagents/skills/impeccable/reference/audit.md +2 -2
- package/dist/builtin/subagents/skills/impeccable/reference/critique.md +3 -3
- package/dist/builtin/subagents/skills/impeccable/reference/generate.md +1 -1
- package/dist/builtin/subagents/skills/impeccable/reference/init.md +0 -2
- package/dist/builtin/subagents/skills/impeccable/reference/live.md +4 -2
- package/dist/builtin/subagents/skills/impeccable/reference/new-work-comp.md +1 -1
- package/dist/builtin/subagents/skills/impeccable/reference/new-work-world.md +1 -1
- package/dist/builtin/subagents/skills/impeccable/scripts/VERSION +1 -1
- package/dist/builtin/subagents/skills/impeccable/scripts/engine-checksums.txt +5 -5
- package/dist/builtin/subagents/skills/impeccable/scripts/impeccable +28 -5
- package/dist/builtin/subagents/skills/impeccable/scripts/impeccable.cmd +11 -2
- package/dist/builtin/subagents/skills/impeccable/scripts/live-browser.js +10 -6
- package/dist/builtin/subagents/skills/research-codebase/SKILL.md +13 -19
- package/dist/builtin/subagents/skills/skill-creator/SKILL.md +1 -1
- package/dist/builtin/subagents/skills/subagent/SKILL.md +7 -7
- package/dist/builtin/subagents/skills/workflow/SKILL.md +98 -0
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +2 -1
- package/dist/builtin/web-access/index.bundle.mjs +2 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +3 -3
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +2 -2
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +2 -2
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.code.js +2 -2
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +1 -1
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +1 -1
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +3 -3
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +1 -1
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli/usage-command.js +22 -0
- package/dist/cli/usage-command.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/config-binary-install.js +3 -0
- package/dist/config-binary-install.js.map +1 -0
- package/dist/core/agent-session-services.js +3 -0
- package/dist/core/agent-session-services.js.map +1 -0
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +2 -2
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.code.js +1 -1
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/extensions/loader-virtual-modules.js +1 -1
- package/dist/core/extensions/runner-context.js +2 -2
- package/dist/core/intercom-broker-control-host.code.js +1 -1
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +3 -3
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/{legacy-workflow-files.d.ts → legacy-workflows.d.ts} +1 -1
- package/dist/core/model-runtime.d.ts +8 -2
- package/dist/core/package-manager-storage-adapters.code.js +1 -1
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/resource-loader-core.d.ts +1 -1
- package/dist/core/resource-loader-internals.d.ts +1 -1
- package/dist/core/resource-loader-types.d.ts +1 -1
- package/dist/core/resource-loader-types.js.map +1 -1
- package/dist/core/sdk.code.js +4 -4
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +5 -5
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +1 -1
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.code.js +1 -1
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/settings-manager.js +5 -0
- package/dist/core/settings-manager.js.map +1 -0
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +3 -3
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +2 -2
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +2 -2
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-window.code.js +3 -3
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +2 -2
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +3 -3
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/subscription-usage-credential.d.ts +2 -0
- package/dist/core/subscription-usage-endpoints.d.ts +54 -0
- package/dist/core/subscription-usage.d.ts +55 -0
- package/dist/core/subscription-usage.js +3 -0
- package/dist/core/subscription-usage.js.map +1 -0
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +3 -3
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +4 -4
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.code.js +1 -1
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/edit-diff.d.ts +4 -6
- package/dist/core/tools/read-url.code.js +3 -3
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.js +2 -2
- package/dist/core/worktree-snapshot/errors.code.js +2 -2
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.code.js +1 -1
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +2 -2
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +2 -2
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.d.ts +3 -0
- package/dist/index.js +7 -7
- package/dist/main-first-time-setup.code.js +1 -1
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/main.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/interactive/interactive-mode-surface.d.ts +1 -0
- package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +3 -0
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +3 -0
- package/dist/modes/rpc/rpc-types.d.ts +25 -0
- package/dist/package-manager-cli.code.js +31 -8
- package/dist/package-manager-cli.code.js.map +1 -1
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +2 -2
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/12.js +1 -1
- package/dist/startup-stages/4.js +1 -1
- package/dist/startup-stages/6.js +1 -1
- package/dist/subscription-usage-sdk.d.ts +9 -0
- package/dist/utils/changelog.d.ts +1 -0
- package/dist/utils/startup-database-spare.code.js +2 -2
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.code.js +1 -1
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/changelog.mdx +46 -6
- package/docs/containerization.md +17 -15
- package/docs/docs.json +1 -0
- package/docs/getting-started/installation.md +132 -80
- package/docs/guides/subscription-usage.md +133 -0
- package/docs/guides/team-setup.md +14 -3
- package/docs/guides.md +3 -0
- package/docs/index.md +18 -6
- package/docs/intercom/operations.md +1 -1
- package/docs/orchestration/migrating-workflows.md +16 -10
- package/docs/orchestration/patterns.md +8 -2
- package/docs/orchestration.md +17 -8
- package/docs/quickstart.md +7 -15
- package/docs/reference/cli.md +29 -22
- package/docs/rpc/protocol.md +9 -1
- package/docs/rpc.md +1 -1
- package/docs/sdk/reference.md +5 -1
- package/docs/skills.md +20 -4
- package/docs/slash-commands.md +3 -2
- package/docs/tools.md +57 -12
- package/docs/usage.md +1 -0
- package/docs/windows.md +4 -4
- package/package.json +9 -9
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +0 -1
- package/dist/_shared/sdk-OHKMDJ74.js.map +0 -1
- package/dist/_shared/startup-0-0-OV6RAEAP.js.map +0 -1
- package/dist/_shared/startup-0-1-EZAJI6RE.js.map +0 -1
- package/dist/_shared/startup-8-1-LZFXSD3Z.js.map +0 -1
- package/dist/builtin/subagents/skills/workflow-files/SKILL.md +0 -28
|
@@ -3,10 +3,10 @@ import { existsSync, readFileSync } from "node:fs";
|
|
|
3
3
|
import { join, resolve } from "node:path";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
import { APP_NAME, VERSION } from "./p0-cli-BB45ZQY6.js";
|
|
6
|
-
import { getBuiltinPackageLocations } from "./startup-0-0-
|
|
7
|
-
import { SettingsManager, adoptInlineSnapshotBlobs, inlineSnapshotBlobs, resolveSessionStore, selectSessionStorageWithSettings, sessionSnapshotBlobs } from "./startup-8-1-
|
|
6
|
+
import { getBuiltinPackageLocations } from "./startup-0-0-4EDVBK5P.js";
|
|
7
|
+
import { SettingsManager, adoptInlineSnapshotBlobs, inlineSnapshotBlobs, resolveSessionStore, selectSessionStorageWithSettings, sessionSnapshotBlobs } from "./startup-8-1-QZMXUGHI.js";
|
|
8
8
|
import { mkdir as mkdir$1 } from "node:fs/promises";
|
|
9
|
-
import { SESSIONS_TRANSFER_DIRECTORY, StorageImportIncompleteError, StorageTransferError, assertSessionBlobStore, inlineToolOutput, isStorageImportIncompleteError, isStorageTransferError, readTransferDirectory, storeSessionBlobs, takeInlineToolOutput, transferFile, writeLinesAtomically } from "./startup-0-1-
|
|
9
|
+
import { SESSIONS_TRANSFER_DIRECTORY, StorageImportIncompleteError, StorageTransferError, assertSessionBlobStore, inlineToolOutput, isStorageImportIncompleteError, isStorageTransferError, readTransferDirectory, storeSessionBlobs, takeInlineToolOutput, transferFile, writeLinesAtomically } from "./startup-0-1-H5IXVRXQ.js";
|
|
10
10
|
import { SessionConflictError, SessionExistsError } from "../core/storage/session/errors.js";
|
|
11
11
|
import { JsonlSessionStore, isCurrentSessionHeader } from "./startup-8-0-34CBHPZH.js";
|
|
12
12
|
import "./settings-startup-HXQLSUWM.js";
|
|
@@ -1237,7 +1237,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
1237
1237
|
return (async () => {
|
|
1238
1238
|
const root = new URL("../", import.meta.url);
|
|
1239
1239
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
1240
|
-
const key = `${root.href}#0.10.
|
|
1240
|
+
const key = `${root.href}#0.10.19`;
|
|
1241
1241
|
let release = releases.get(key);
|
|
1242
1242
|
if (release === undefined) {
|
|
1243
1243
|
const current = (async () => {
|
|
@@ -1265,7 +1265,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
1265
1265
|
} catch {
|
|
1266
1266
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
1267
1267
|
}
|
|
1268
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
1268
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.19" ? installed : running !== undefined && running.version !== "0.10.19" ? "0.10.19" : undefined;
|
|
1269
1269
|
if (updatedTo === undefined) throw error;
|
|
1270
1270
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
1271
1271
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -4,7 +4,7 @@ import { isAbsolute, join } from "node:path";
|
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
import { setLongTimeout } from "../__atomic_timers/index.js";
|
|
6
6
|
import { ENV_SESSION_DIR, isBunBinary, resolvePath } from "./p0-cli-BB45ZQY6.js";
|
|
7
|
-
import { SettingsManager, selectSessionStorageWithSettings } from "./startup-8-1-
|
|
7
|
+
import { SettingsManager, selectSessionStorageWithSettings } from "./startup-8-1-QZMXUGHI.js";
|
|
8
8
|
import { ProjectTrustStore, hasProjectTrustInputs } from "./p1b-elig-BY2G5BUE.js";
|
|
9
9
|
import { adapterOpenContext, loadStorageAdapter, resolveAdapterOptions, storageSelectionKey } from "../core/storage/provider.js";
|
|
10
10
|
import { StorageAdapterLoadError, describeStorageError } from "../core/storage/errors.js";
|
|
@@ -517,7 +517,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
517
517
|
return (async () => {
|
|
518
518
|
const root = new URL("../", import.meta.url);
|
|
519
519
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
520
|
-
const key = `${root.href}#0.10.
|
|
520
|
+
const key = `${root.href}#0.10.19`;
|
|
521
521
|
let release = releases.get(key);
|
|
522
522
|
if (release === undefined) {
|
|
523
523
|
const current = (async () => {
|
|
@@ -545,7 +545,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
545
545
|
} catch {
|
|
546
546
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
547
547
|
}
|
|
548
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
548
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.19" ? installed : running !== undefined && running.version !== "0.10.19" ? "0.10.19" : undefined;
|
|
549
549
|
if (updatedTo === undefined) throw error;
|
|
550
550
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
551
551
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -31,7 +31,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
31
31
|
return (async () => {
|
|
32
32
|
const root = new URL("../", import.meta.url);
|
|
33
33
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
34
|
-
const key = `${root.href}#0.10.
|
|
34
|
+
const key = `${root.href}#0.10.19`;
|
|
35
35
|
let release = releases.get(key);
|
|
36
36
|
if (release === undefined) {
|
|
37
37
|
const current = (async () => {
|
|
@@ -59,7 +59,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
59
59
|
} catch {
|
|
60
60
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
61
61
|
}
|
|
62
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
62
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.19" ? installed : running !== undefined && running.version !== "0.10.19" ? "0.10.19" : undefined;
|
|
63
63
|
if (updatedTo === undefined) throw error;
|
|
64
64
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
65
65
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -5,8 +5,8 @@ import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
|
5
5
|
import { setLongTimeout } from "../__atomic_timers/index.js";
|
|
6
6
|
import { getAgentDir } from "./p0-cli-BB45ZQY6.js";
|
|
7
7
|
import { parseJsonFileContent } from "./p1-shared-RG5I5LJ6.js";
|
|
8
|
-
import { prepareLockTakeover } from "./startup-0-0-
|
|
9
|
-
import { FileSettingsStorage, SettingsManager, resolvePackageStorageAdapter, selectSessionStorageWithSettings, writeSettingsFile } from "./startup-8-1-
|
|
8
|
+
import { prepareLockTakeover } from "./startup-0-0-4EDVBK5P.js";
|
|
9
|
+
import { FileSettingsStorage, SettingsManager, resolvePackageStorageAdapter, selectSessionStorageWithSettings, writeSettingsFile } from "./startup-8-1-QZMXUGHI.js";
|
|
10
10
|
import { describeStorageSelection, openAdapterSelectionDatabase, projectTrust, selectIntercomStorage, selectSharedStorage } from "./storage-status-K7PX2RXA.js";
|
|
11
11
|
import { StorageConfigError, StorageError, TeamProfileError, TeamProfileTimeoutError, describeStorageError } from "../core/storage/errors.js";
|
|
12
12
|
import { defaultSessionDatabasePath, storageHomeDir } from "../core/storage/file-identity.js";
|
|
@@ -88,7 +88,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
88
88
|
return (async () => {
|
|
89
89
|
const root = new URL("../", import.meta.url);
|
|
90
90
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
91
|
-
const key = `${root.href}#0.10.
|
|
91
|
+
const key = `${root.href}#0.10.19`;
|
|
92
92
|
let release = releases.get(key);
|
|
93
93
|
if (release === undefined) {
|
|
94
94
|
const current = (async () => {
|
|
@@ -116,7 +116,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
116
116
|
} catch {
|
|
117
117
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
118
118
|
}
|
|
119
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
119
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.19" ? installed : running !== undefined && running.version !== "0.10.19" ? "0.10.19" : undefined;
|
|
120
120
|
if (updatedTo === undefined) throw error;
|
|
121
121
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
122
122
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import "./_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
+
import { createHash } from "node:crypto";
|
|
3
|
+
import { constants, createReadStream, createWriteStream } from "node:fs";
|
|
4
|
+
import { access, lstat, mkdtemp, readFile, rm } from "node:fs/promises";
|
|
5
|
+
import { tmpdir } from "node:os";
|
|
6
|
+
import { basename, dirname, join } from "node:path";
|
|
7
|
+
import { createInterface } from "node:readline";
|
|
8
|
+
import { Readable } from "node:stream";
|
|
9
|
+
import { pipeline } from "node:stream/promises";
|
|
10
|
+
import { require_semver } from "./_shared/startup-0-5-HZX3ZPTP.js";
|
|
11
|
+
import { APP_NAME, ENV_PACKAGE_DIR, ENV_SELF_UPDATE_COMMAND, getEnvNames, processLaunch, processLaunchAsync, spawnLaunchedProcess, spawnLaunchedProcessSync } from "./_shared/p0-cli-BB45ZQY6.js";
|
|
12
|
+
import { findBinaryInstall } from "./_shared/config-binary-install-SNFYFXWB.js";
|
|
13
|
+
import { detectLinuxLibc, isOfflineModeEnabled } from "./_shared/startup-0-1-H5IXVRXQ.js";
|
|
14
|
+
import { fetchWithRetry } from "./_shared/startup-0-0-4EDVBK5P.js";
|
|
15
|
+
// dist/binary-self-update.js
|
|
16
|
+
var import_semver = require_semver();
|
|
17
|
+
const RELEASES = "https://github.com/bastani-inc/atomic/releases";
|
|
18
|
+
const RELEASES_API = "https://api.github.com/repos/bastani-inc/atomic/releases";
|
|
19
|
+
const RELEASE_TIMEOUT = { timeoutMs: 1e4 };
|
|
20
|
+
const DOWNLOAD_TIMEOUT = { timeoutMs: 9e5 };
|
|
21
|
+
const FIRST_ARCHIVE_RELEASE = "0.8.30-alpha.1";
|
|
22
|
+
const FIRST_MUSL_ARCHIVE_RELEASE = "0.9.11-alpha.11";
|
|
23
|
+
const FIRST_CURRENT_ARCHIVE_LAYOUT = "0.9.20-alpha.4";
|
|
24
|
+
const RELEASE_TAG = /^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-alpha\.[1-9]\d*)?$/;
|
|
25
|
+
function isReleaseTag(tag) {
|
|
26
|
+
return RELEASE_TAG.test(tag) && (0, import_semver.valid)(tag) === tag;
|
|
27
|
+
}
|
|
28
|
+
async function checkWritable(install) {
|
|
29
|
+
for (const path of [
|
|
30
|
+
install.root,
|
|
31
|
+
join(install.root, "versions"),
|
|
32
|
+
...install.binDir ? [install.binDir] : []
|
|
33
|
+
]) try {
|
|
34
|
+
await access(path, constants.W_OK);
|
|
35
|
+
} catch (error) {
|
|
36
|
+
throw new Error(`The install directory is not writable: ${path}`, { cause: error });
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
async function githubMetadata(url) {
|
|
40
|
+
const token = new URL(url).origin === "https://api.github.com" && (process.env.GITHUB_TOKEN || process.env.GH_TOKEN);
|
|
41
|
+
const headers = {
|
|
42
|
+
accept: "application/vnd.github+json",
|
|
43
|
+
...token ? { authorization: `Bearer ${token}` } : {}
|
|
44
|
+
};
|
|
45
|
+
return fetchWithRetry(url, {
|
|
46
|
+
headers,
|
|
47
|
+
redirect: "error"
|
|
48
|
+
}, RELEASE_TIMEOUT, async (response) => {
|
|
49
|
+
if (!response.ok) {
|
|
50
|
+
await response.body?.cancel();
|
|
51
|
+
throw new Error(`Could not resolve the GitHub release (HTTP ${response.status}).`);
|
|
52
|
+
}
|
|
53
|
+
return await response.json();
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function requestedVersion(options) {
|
|
57
|
+
return options.version ?? (options.prerelease ? void 0 : process.env.ATOMIC_VERSION || void 0);
|
|
58
|
+
}
|
|
59
|
+
async function resolveBinaryRelease(options) {
|
|
60
|
+
if (isOfflineModeEnabled()) throw new Error("Cannot update the release install in offline mode.");
|
|
61
|
+
const releases = options.releases ?? RELEASES;
|
|
62
|
+
const api = options.api ?? RELEASES_API;
|
|
63
|
+
const requested = requestedVersion(options);
|
|
64
|
+
if (requested !== void 0) {
|
|
65
|
+
if (!isReleaseTag(requested)) throw new Error("Expected a release version like 1.2.3 or 1.2.3-alpha.1.");
|
|
66
|
+
return requested;
|
|
67
|
+
}
|
|
68
|
+
if (options.prerelease) {
|
|
69
|
+
const tag = (await githubMetadata(`${api}?per_page=100`)).flatMap((release) => !release.draft && release.tag_name && isReleaseTag(release.tag_name) ? [release.tag_name] : []).sort((a, b) => (0, import_semver.compare)(b, a))[0];
|
|
70
|
+
if (tag) return tag;
|
|
71
|
+
} else {
|
|
72
|
+
const tag = await fetchWithRetry(`${releases}/latest`, { redirect: "manual" }, RELEASE_TIMEOUT, async (response) => {
|
|
73
|
+
await response.body?.cancel();
|
|
74
|
+
const location = response.headers.get("location");
|
|
75
|
+
if (response.status < 300 || response.status >= 400 || !location) return void 0;
|
|
76
|
+
const target = new URL(location, releases);
|
|
77
|
+
const prefix = `${new URL(releases).pathname}/tag/`;
|
|
78
|
+
if (target.origin !== new URL(releases).origin || !target.pathname.startsWith(prefix)) return void 0;
|
|
79
|
+
return target.pathname.slice(prefix.length);
|
|
80
|
+
}).catch(() => void 0);
|
|
81
|
+
if (tag && isReleaseTag(tag) && !tag.includes("-")) return tag;
|
|
82
|
+
const release = await githubMetadata(`${api}/latest`);
|
|
83
|
+
if (release.tag_name && isReleaseTag(release.tag_name) && !release.tag_name.includes("-")) return release.tag_name;
|
|
84
|
+
}
|
|
85
|
+
throw new Error("No published Atomic release was found for that channel.");
|
|
86
|
+
}
|
|
87
|
+
function releaseAsset() {
|
|
88
|
+
const platform = process.platform;
|
|
89
|
+
let arch = process.arch;
|
|
90
|
+
const env = {
|
|
91
|
+
...process.env,
|
|
92
|
+
LC_ALL: "C"
|
|
93
|
+
};
|
|
94
|
+
if (platform === "win32") {
|
|
95
|
+
const architecture = (env.PROCESSOR_ARCHITEW6432 || env.PROCESSOR_ARCHITECTURE || "").toUpperCase();
|
|
96
|
+
if (architecture === "ARM64") arch = "arm64";
|
|
97
|
+
if (architecture === "AMD64" || architecture === "X86_64") arch = "x64";
|
|
98
|
+
} else if (platform === "darwin" && arch === "x64") {
|
|
99
|
+
const result = spawnLaunchedProcessSync(processLaunch("/usr/sbin/sysctl", { env }), ["-in", "hw.optional.arm64"], {
|
|
100
|
+
encoding: "utf8",
|
|
101
|
+
stdio: [
|
|
102
|
+
"ignore",
|
|
103
|
+
"pipe",
|
|
104
|
+
"ignore"
|
|
105
|
+
],
|
|
106
|
+
env
|
|
107
|
+
});
|
|
108
|
+
if (result.status === 0 && result.stdout.trim() === "1") arch = "arm64";
|
|
109
|
+
}
|
|
110
|
+
if (arch === "x64" || arch === "arm64") {
|
|
111
|
+
if (platform === "win32") return `atomic-windows-${arch}.zip`;
|
|
112
|
+
if (platform === "darwin") return `atomic-darwin-${arch}.tar.gz`;
|
|
113
|
+
if (platform === "linux") {
|
|
114
|
+
const suffix = detectLinuxLibc().family === "musl" ? "-musl" : "";
|
|
115
|
+
return `atomic-linux-${arch}${suffix}.tar.gz`;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
throw new Error(`No Atomic release archive is available for ${platform} ${arch}.`);
|
|
119
|
+
}
|
|
120
|
+
async function download(url, name, path) {
|
|
121
|
+
await fetchWithRetry(url, void 0, DOWNLOAD_TIMEOUT, async (response) => {
|
|
122
|
+
if (!response.ok || !response.body) {
|
|
123
|
+
await response.body?.cancel();
|
|
124
|
+
throw new Error(`Could not download ${name} (HTTP ${response.status}).`);
|
|
125
|
+
}
|
|
126
|
+
await pipeline(Readable.from(response.body), createWriteStream(path, { flags: "wx" }));
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
async function verifyArchive(archive, manifest, asset) {
|
|
130
|
+
const rows = (await readFile(manifest, "utf8")).split(/\r?\n/).map((line) => line.trim().split(/\s+/)).filter((fields) => fields[1]?.replace(/^\*/, "") === asset);
|
|
131
|
+
if (rows.length !== 1) throw new Error(`SHA256SUMS must contain exactly one row for ${asset}.`);
|
|
132
|
+
const [expected, , extra] = rows[0];
|
|
133
|
+
if (!/^[\da-f]{64}$/i.test(expected) || extra !== void 0) throw new Error(`SHA256SUMS row for ${asset} is malformed.`);
|
|
134
|
+
const hash = createHash("sha256");
|
|
135
|
+
for await (const chunk of createReadStream(archive)) hash.update(chunk);
|
|
136
|
+
if (hash.digest("hex") !== expected.toLowerCase()) throw new Error(`Checksum verification failed for ${asset}.`);
|
|
137
|
+
}
|
|
138
|
+
async function run(command, args, env, failure, onLine) {
|
|
139
|
+
const launch = await processLaunchAsync(command, { env });
|
|
140
|
+
await new Promise((resolve, reject) => {
|
|
141
|
+
const child = spawnLaunchedProcess(launch, args, {
|
|
142
|
+
env,
|
|
143
|
+
stdio: [
|
|
144
|
+
"ignore",
|
|
145
|
+
onLine ? "pipe" : "inherit",
|
|
146
|
+
"inherit"
|
|
147
|
+
]
|
|
148
|
+
});
|
|
149
|
+
if (onLine && child.stdout) createInterface({ input: child.stdout }).on("line", onLine);
|
|
150
|
+
child.once("error", (error) => reject(new Error(`${failure}: ${error.message}`, { cause: error })));
|
|
151
|
+
child.once("close", (code, signal) => {
|
|
152
|
+
if (code === 0) resolve();
|
|
153
|
+
else reject(/* @__PURE__ */ new Error(`${failure} (${signal ?? `exit code ${code}`}).`));
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
const EXTRACT_WINDOWS_INSTALLER = `
|
|
158
|
+
$ErrorActionPreference = 'Stop'
|
|
159
|
+
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
|
160
|
+
$zip = [IO.Compression.ZipFile]::OpenRead($env:ATOMIC_UPDATE_ARCHIVE)
|
|
161
|
+
try {
|
|
162
|
+
$entry = $zip.GetEntry('install.ps1')
|
|
163
|
+
if ($null -ne $entry) {
|
|
164
|
+
[IO.Compression.ZipFileExtensions]::ExtractToFile($entry, $env:ATOMIC_UPDATE_INSTALLER)
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
finally { $zip.Dispose() }
|
|
168
|
+
`;
|
|
169
|
+
async function selectInstaller(extracted, install) {
|
|
170
|
+
const bundled = join(dirname(install.executable), basename(extracted));
|
|
171
|
+
for (const path of [extracted, bundled]) try {
|
|
172
|
+
if (!(await lstat(path)).isFile()) throw new Error(`The release installer is not a regular file: ${path}`);
|
|
173
|
+
return path;
|
|
174
|
+
} catch (error) {
|
|
175
|
+
if (error.code !== "ENOENT") throw error;
|
|
176
|
+
}
|
|
177
|
+
throw new Error("Neither release includes an installer for this update. Reinstall with the official release installer.");
|
|
178
|
+
}
|
|
179
|
+
async function installArchive(install, archive, dir, tag, executable) {
|
|
180
|
+
const env = {
|
|
181
|
+
...process.env,
|
|
182
|
+
ATOMIC_INSTALL_DIR: install.root,
|
|
183
|
+
ATOMIC_BIN_DIR: install.binDir ?? join(install.root, "bin")
|
|
184
|
+
};
|
|
185
|
+
for (const name of [
|
|
186
|
+
...getEnvNames(ENV_PACKAGE_DIR),
|
|
187
|
+
"GITHUB_TOKEN",
|
|
188
|
+
"GH_TOKEN"
|
|
189
|
+
]) delete env[name];
|
|
190
|
+
const retry = `Retry \`${APP_NAME} update\` or reinstall with the official release installer.`;
|
|
191
|
+
const legacyLayout = (0, import_semver.compare)(tag, FIRST_CURRENT_ARCHIVE_LAYOUT) < 0;
|
|
192
|
+
const installFailure = "Could not update the release install; retry the update or reinstall with the official release installer";
|
|
193
|
+
if (install.binDir) {
|
|
194
|
+
const extracted = join(dir, "install.ps1");
|
|
195
|
+
const command = "powershell.exe";
|
|
196
|
+
const args = [
|
|
197
|
+
"-NoLogo",
|
|
198
|
+
"-NoProfile",
|
|
199
|
+
"-NonInteractive"
|
|
200
|
+
];
|
|
201
|
+
await run(command, [
|
|
202
|
+
...args,
|
|
203
|
+
"-EncodedCommand",
|
|
204
|
+
Buffer.from(EXTRACT_WINDOWS_INSTALLER, "utf16le").toString("base64")
|
|
205
|
+
], {
|
|
206
|
+
...env,
|
|
207
|
+
ATOMIC_UPDATE_ARCHIVE: archive,
|
|
208
|
+
ATOMIC_UPDATE_INSTALLER: extracted
|
|
209
|
+
}, "Could not read the installer from the verified release archive");
|
|
210
|
+
const installer = await selectInstaller(extracted, install);
|
|
211
|
+
await run(command, [
|
|
212
|
+
...args,
|
|
213
|
+
"-ExecutionPolicy",
|
|
214
|
+
"Bypass",
|
|
215
|
+
"-File",
|
|
216
|
+
installer,
|
|
217
|
+
"-Ref",
|
|
218
|
+
tag,
|
|
219
|
+
"-UpdateFrom",
|
|
220
|
+
install.executable,
|
|
221
|
+
"-UpdateArchive",
|
|
222
|
+
archive,
|
|
223
|
+
...installer !== extracted && legacyLayout ? ["-LegacyLayout"] : []
|
|
224
|
+
], env, installFailure);
|
|
225
|
+
} else {
|
|
226
|
+
const member = "atomic/install.sh";
|
|
227
|
+
const extracted = join(dir, member);
|
|
228
|
+
let hasInstaller = false;
|
|
229
|
+
await run("tar", ["-tzf", archive], env, "Could not read the verified release archive", (line) => {
|
|
230
|
+
if (line === member) hasInstaller = true;
|
|
231
|
+
});
|
|
232
|
+
if (hasInstaller) await run("tar", [
|
|
233
|
+
"-xzf",
|
|
234
|
+
archive,
|
|
235
|
+
"-C",
|
|
236
|
+
dir,
|
|
237
|
+
member
|
|
238
|
+
], env, "Could not read the installer from the verified release archive");
|
|
239
|
+
const installer = await selectInstaller(extracted, install);
|
|
240
|
+
await run("sh", [
|
|
241
|
+
installer,
|
|
242
|
+
"--ref",
|
|
243
|
+
tag,
|
|
244
|
+
"--update-from",
|
|
245
|
+
install.executable,
|
|
246
|
+
"--update-archive",
|
|
247
|
+
archive,
|
|
248
|
+
...installer !== extracted && legacyLayout ? ["--legacy-layout"] : []
|
|
249
|
+
], env, installFailure);
|
|
250
|
+
}
|
|
251
|
+
const installed = await findBinaryInstall(executable);
|
|
252
|
+
const failed = `Could not update ${APP_NAME} to ${tag}:`;
|
|
253
|
+
if (!installed || installed.root !== install.root) throw new Error(`${failed} could not find the active launcher in this installation. ${retry}`);
|
|
254
|
+
if (installed.activeExecutable === install.activeExecutable || installed.activeVersion !== tag) throw new Error(`${failed} the current launcher still points to ${installed.activeVersion}. ${retry}`);
|
|
255
|
+
const version = spawnLaunchedProcessSync(processLaunch(installed.activeExecutable, { env }), ["--version"], {
|
|
256
|
+
encoding: "utf8",
|
|
257
|
+
stdio: [
|
|
258
|
+
"ignore",
|
|
259
|
+
"pipe",
|
|
260
|
+
"ignore"
|
|
261
|
+
],
|
|
262
|
+
timeout: 1e4,
|
|
263
|
+
env
|
|
264
|
+
});
|
|
265
|
+
const reported = version.status === 0 ? version.stdout.trim() : void 0;
|
|
266
|
+
if (reported !== tag) throw new Error(`${failed} the active binary ${reported ? `reports ${reported}` : "did not report a version"}. ${retry}`);
|
|
267
|
+
}
|
|
268
|
+
/** Verify a release before giving its installer access to the live installation. */
|
|
269
|
+
async function updateBinaryInstall(options = {}) {
|
|
270
|
+
if (isOfflineModeEnabled()) throw new Error("Cannot update the release install in offline mode.");
|
|
271
|
+
const install = await findBinaryInstall(options.executable);
|
|
272
|
+
if (!install || !isReleaseTag(install.version)) throw new Error(`This ${APP_NAME} binary is not running from an installer-managed release. Reinstall with the official release installer, or set ${ENV_SELF_UPDATE_COMMAND} or selfUpdateCommand to use your own update command.`);
|
|
273
|
+
if (install.executable !== install.activeExecutable) throw new Error(`This is not the active ${APP_NAME} binary. Restart ${APP_NAME} and rerun the update.`);
|
|
274
|
+
const releases = options.releases ?? RELEASES;
|
|
275
|
+
const version = await resolveBinaryRelease(options);
|
|
276
|
+
const comparison = (0, import_semver.compare)(version, install.version);
|
|
277
|
+
if (!options.force && process.env.ATOMIC_FORCE_INSTALL !== "1" && (requestedVersion(options) ? comparison === 0 : comparison <= 0)) return {
|
|
278
|
+
status: "current",
|
|
279
|
+
version: install.version
|
|
280
|
+
};
|
|
281
|
+
const asset = releaseAsset();
|
|
282
|
+
const oldest = asset.endsWith("-musl.tar.gz") ? FIRST_MUSL_ARCHIVE_RELEASE : FIRST_ARCHIVE_RELEASE;
|
|
283
|
+
if ((0, import_semver.compare)(version, oldest) < 0) throw new Error(`Release ${version} is too old. The oldest supported archive for this platform is ${oldest}.`);
|
|
284
|
+
await checkWritable(install);
|
|
285
|
+
const base = process.env.ATOMIC_RELEASE_BASE_URL || `${releases}/download/${version}`;
|
|
286
|
+
const dir = await mkdtemp(join(tmpdir(), "atomic-release-update-"));
|
|
287
|
+
try {
|
|
288
|
+
const archive = join(dir, asset);
|
|
289
|
+
const manifest = join(dir, "SHA256SUMS");
|
|
290
|
+
await download(`${base}/SHA256SUMS`, "SHA256SUMS", manifest);
|
|
291
|
+
await download(`${base}/${asset}`, asset, archive);
|
|
292
|
+
await verifyArchive(archive, manifest, asset);
|
|
293
|
+
await installArchive(install, archive, dir, version, options.executable);
|
|
294
|
+
return {
|
|
295
|
+
status: "updated",
|
|
296
|
+
previous: install.version,
|
|
297
|
+
version
|
|
298
|
+
};
|
|
299
|
+
} finally {
|
|
300
|
+
await rm(dir, {
|
|
301
|
+
recursive: true,
|
|
302
|
+
force: true,
|
|
303
|
+
maxRetries: 4,
|
|
304
|
+
retryDelay: 100
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
export { resolveBinaryRelease, updateBinaryInstall };
|
|
309
|
+
|
|
310
|
+
//# sourceMappingURL=binary-self-update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"binary-self-update.js","names":["valid","compare"],"sources":["../src/binary-self-update.ts"],"mappings":";;;;;;;;;;;;;;;;AAqBA,MAAM,WAAW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AG,KAAI,GAAI,SAAS,OAAO,OAAO;EACjD,MAAM,cAAc,SAAS,UAAU,KAAK;EAC5C,MAAM,eAAe,SAAS,SAAS,KAAK,SAAS,QAAQ,UAAU;EACvE,OAAO;GAAE,QAAQ;GAAW,UAAU,QAAQ;GAAS;EAAO;CAC/D,UAAU;EACT,MAAM,GAAG,KAAK;GAAE,WAAW;GAAM,OAAO;GAAM,YAAY;GAAG,YAAY;EAAG,CAAE;CAC/E;AACD"}
|
|
@@ -7,7 +7,7 @@ import * as __atomicHostImport1 from "@bastani/atomic-ai";
|
|
|
7
7
|
if (!(name in namespace)) missing.push(`The requested module '${specifier}' does not provide an export named '${name}'`);
|
|
8
8
|
if (missing.length > 0) {
|
|
9
9
|
const application = typeof __atomicHostImport0.APP_NAME === "string" ? __atomicHostImport0.APP_NAME : "atomic";
|
|
10
|
-
if (__atomicHostImport0.VERSION !== "0.10.
|
|
10
|
+
if (__atomicHostImport0.VERSION !== "0.10.19") missing.unshift(application + " was updated to 0.10.19 while this session was running; restart it to keep using the intercom extension.");
|
|
11
11
|
throw new Error(missing.join("\n"));
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -2465,6 +2465,7 @@ var CORE_COMMAND_NAMES;
|
|
|
2465
2465
|
var init_builtin_command_names = __esm(() => {
|
|
2466
2466
|
CORE_COMMAND_NAMES = [
|
|
2467
2467
|
"settings",
|
|
2468
|
+
"usage",
|
|
2468
2469
|
"model",
|
|
2469
2470
|
"tree",
|
|
2470
2471
|
"thinking",
|
|
@@ -6,7 +6,7 @@ import * as __atomicHostImport0 from "@bastani/atomic";
|
|
|
6
6
|
if (!(name in namespace)) missing.push(`The requested module '${specifier}' does not provide an export named '${name}'`);
|
|
7
7
|
if (missing.length > 0) {
|
|
8
8
|
const application = typeof __atomicHostImport0.APP_NAME === "string" ? __atomicHostImport0.APP_NAME : "atomic";
|
|
9
|
-
if (__atomicHostImport0.VERSION !== "0.10.
|
|
9
|
+
if (__atomicHostImport0.VERSION !== "0.10.19") missing.unshift(application + " was updated to 0.10.19 while this session was running; restart it to keep using the mcp extension.");
|
|
10
10
|
throw new Error(missing.join("\n"));
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -2,6 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.10.19] - 2026-11-28
|
|
6
|
+
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
- Atomic renamed the bundled `workflow-files` skill to `workflow`. The old name no longer works. Replace `/skill:workflow-files` with `/skill:workflow` in saved prompts. Use `skill://workflow` in skill links and `workflow` in subagent skill lists ([#6854](https://github.com/bastani-inc/atomic/pull/6854)).
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- The `impeccable` skill stops waiting when a live preview stays idle and keeps the choices you already made. Setup no longer starts by asking you to sign in ([#6851](https://github.com/bastani-inc/atomic/pull/6851)).
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- The `research-codebase` skill tells the agent how to wait for existing research tasks without starting them again ([#6851](https://github.com/bastani-inc/atomic/pull/6851)).
|
|
18
|
+
- The `subagent` skill now explains when a subagent should reuse the parent conversation and when to give one agent responsibility for editing files ([#6851](https://github.com/bastani-inc/atomic/pull/6851)).
|
|
19
|
+
|
|
20
|
+
## [0.10.19-alpha.1] - 2026-11-28
|
|
21
|
+
|
|
22
|
+
### Breaking Changes
|
|
23
|
+
|
|
24
|
+
- Atomic renamed the bundled `workflow-files` skill to `workflow`. The old name no longer works. Replace `/skill:workflow-files` with `/skill:workflow` in saved prompts. Use `skill://workflow` in skill links and `workflow` in subagent skill lists ([#6854](https://github.com/bastani-inc/atomic/pull/6854)).
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- The `impeccable` skill stops waiting when a live preview stays idle and keeps the choices you already made. Setup no longer starts by asking you to sign in ([#6851](https://github.com/bastani-inc/atomic/pull/6851)).
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- The `research-codebase` skill tells the agent how to wait for existing research tasks without starting them again ([#6851](https://github.com/bastani-inc/atomic/pull/6851)).
|
|
33
|
+
- The `subagent` skill now explains when a subagent should reuse the parent conversation and when to give one agent responsibility for editing files ([#6851](https://github.com/bastani-inc/atomic/pull/6851)).
|
|
34
|
+
|
|
5
35
|
## [0.10.16] - 2026-11-27
|
|
6
36
|
|
|
7
37
|
### Fixed
|
|
@@ -4,7 +4,7 @@ description: Browser automation CLI for AI agents. Use when the user needs to in
|
|
|
4
4
|
hidden: true
|
|
5
5
|
metadata:
|
|
6
6
|
github-path: skills/agent-browser
|
|
7
|
-
github-ref: refs/tags/v0.
|
|
7
|
+
github-ref: refs/tags/v0.45.0
|
|
8
8
|
github-repo: https://github.com/vercel-labs/agent-browser
|
|
9
9
|
github-tree-sha: d75a393c9a371295c6d6be46c34938e76ef21184
|
|
10
10
|
name: agent-browser
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: impeccable
|
|
3
3
|
description: "Use when the user wants to design, redesign, shape, critique, audit, polish, simplify, harden, animate, or otherwise improve a frontend interface: websites, landing pages, dashboards, product UI, components, forms, settings, onboarding, empty states, and native iOS or Android screens. Handles UX review, hierarchy, layout, typography, color, motion, UX copy, accessibility, responsive behavior, edge cases, and capturing or documenting design systems (DESIGN.md, tokens). Also for making bland UI bolder, loud UI quieter, or ambitious visual effects. Not for backend-only or non-UI tasks."
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.11.1
|
|
5
5
|
license: Apache 2.0
|
|
6
6
|
metadata:
|
|
7
7
|
github-repo: https://github.com/pbakaus/impeccable
|
|
8
8
|
github-path: .pi/skills/impeccable
|
|
9
|
-
github-ref: refs/tags/skill-v4.
|
|
10
|
-
github-tree-sha:
|
|
9
|
+
github-ref: refs/tags/skill-v4.11.1
|
|
10
|
+
github-tree-sha: 3936d8c7fab681cdc1a731047a7c3762d313f33b
|
|
11
11
|
allowed-tools:
|
|
12
12
|
- Bash(npx impeccable *)
|
|
13
13
|
- Bash(.pi/skills/impeccable/scripts/impeccable *)
|
|
@@ -150,8 +150,8 @@ Keep P3s few: a long tail of minor issues buries the ones that matter.
|
|
|
150
150
|
After the report is delivered, save a copy so the findings outlive this conversation: write it, from the score table through Recommended Actions, to a temp file, then run the write command with the scores as metadata and delete the temp file:
|
|
151
151
|
|
|
152
152
|
```bash
|
|
153
|
-
IMPECCABLE_REPORT_META='{"target":"<user phrasing, or .>","total_score":<n>,"max_score":20,"p0_count":<n>,"p1_count":<n>,"p2_count":<n>,"p3_count":<n>}' \
|
|
153
|
+
IMPECCABLE_REPORT_META='{"target":"<user phrasing, or .>","title":"<page title, or empty>","total_score":<n>,"max_score":20,"p0_count":<n>,"p1_count":<n>,"p2_count":<n>,"p3_count":<n>}' \
|
|
154
154
|
.pi/skills/impeccable/scripts/impeccable audit-storage write "<resolved target, or . for the whole project>" <temp-file>
|
|
155
155
|
```
|
|
156
156
|
|
|
157
|
-
The helper prints the path it wrote, which you mention in one line; `REPORTS OFF:` means the project opted out, and you mention nothing. Saving never replaces delivering: the user reads the report in chat first.
|
|
157
|
+
Use the observed `<title>` or first h1 for `title`; leave it empty when unknown. The helper prints the path it wrote, which you mention in one line. Pass any `Saved to Impeccable: <url>` or `Not saved to Impeccable: <reason>` line on to the person word for word; `REPORTS OFF:` means the project opted out, and you mention nothing. Saving never replaces delivering: the user reads the report in chat first.
|
|
@@ -209,14 +209,14 @@ Skip this step if the Setup slug was null (vague or root-level target), and say
|
|
|
209
209
|
|
|
210
210
|
1. **Write the body to a temp file** so you can pipe it to the helper. Use the full critique report (heuristic table, design-specificity verdict, priority issues, persona red flags, minor observations, and questions), but stop before the "Ask the User" / "Recommended Actions" sections that come later.
|
|
211
211
|
|
|
212
|
-
|
|
212
|
+
Copy the delivered report for later commands to read. If you are composing it for the first time in this heredoc, you skipped Deliver the Report; go back and send it.
|
|
213
213
|
|
|
214
214
|
2. **Pass the structured metadata** through `IMPECCABLE_CRITIQUE_META` (JSON), then run the write command:
|
|
215
215
|
```bash
|
|
216
|
-
IMPECCABLE_CRITIQUE_META='{"target":"<user phrasing>","total_score":<n>,"max_score":<n>,"na_heuristics":"<comma-separated numbers, or empty>","p0_count":<n>,"p1_count":<n>}' \
|
|
216
|
+
IMPECCABLE_CRITIQUE_META='{"target":"<user phrasing>","title":"<page title, or empty>","url":"<http(s) URL you viewed, or empty>","pr":"<PR number checked out, or empty>","heuristics":[{"n":<1-10>,"score":<0-4>}],"total_score":<n>,"max_score":<n>,"na_heuristics":"<comma-separated numbers, or empty>","p0_count":<n>,"p1_count":<n>,"p2_count":<n>,"p3_count":<n>}' \
|
|
217
217
|
.pi/skills/impeccable/scripts/impeccable critique-storage write "<resolved target>" <body-file>
|
|
218
218
|
```
|
|
219
|
-
|
|
219
|
+
Use the observed `<title>` or first h1 for `title`; omit N/A heuristics. `max_score` is the table’s applicable maximum (40 if all apply), distinguishing renormalized totals. For local files the helper records an exact content fingerprint, so polish detects later edits without Git or timestamps. The helper prints the absolute saved path, sometimes followed by a line (`Saved to Impeccable: <link>` or `Not saved to Impeccable: <reason>`); put that line in the close word for word, also from detect (JSON `savedTo`: `Saved to Impeccable: <url>`). Leave that file on disk. Polish closes it; this run does not. `REPORTS OFF:` instead means the project opted out of saved reports: skip the trend read and carry on.
|
|
220
220
|
|
|
221
221
|
3. **Delete the temp body file** after the write attempt completes, whether the write succeeded or failed. If deletion fails, mention `temp-file cleanup failed: <reason>` briefly in the final output, but do not block the critique.
|
|
222
222
|
|
|
@@ -77,7 +77,7 @@ The event is a standard `generate` event: the picked element's context, a prefli
|
|
|
77
77
|
.pi/skills/impeccable/scripts/impeccable live-poll --reply EVENT_ID done --file src/App.jsx --then-poll
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
This replies done (the browser mounts the variants) and then blocks until the user's choice arrives, so run it the way your harness runs a long wait: **Claude Code** in the foreground with your tool's longest timeout (600000 ms), so you are paused until the choice arrives; **Codex** in a yielded foreground exec. Never pass a short `--timeout=`. While it runs there is nothing else to do: never sleep and never poll its output on a timer; a harness that backgrounds it wakes you when it returns. `{"type":"timeout"}` means the user has not chosen yet: run `live-poll` again
|
|
80
|
+
This replies done (the browser mounts the variants) and then blocks until the user's choice arrives, so run it the way your harness runs a long wait: **Claude Code** in the foreground with your tool's longest timeout (600000 ms), so you are paused until the choice arrives; **Codex** in a yielded foreground exec. Never pass a short `--timeout=`. While it runs there is nothing else to do: never sleep and never poll its output on a timer; a harness that backgrounds it wakes you when it returns. `{"type":"timeout"}` means the user has not chosen yet: run `live-poll` again, at most twice (about 30 minutes of waiting in all). After the third timeout, stop polling: tell the user the variants are still live on the page, to Accept or Discard there and then tell you, and end your turn; one `live-poll` collects the queued choice, and Step 4 runs from there. If the edit fails after the browser flipped to GENERATING, `--reply EVENT_ID error "Short reason"` (without `--then-poll`) so the bar resets.
|
|
81
81
|
|
|
82
82
|
Then tell the user, in one line, where their variants are: *"Three [bolder] variants are live on [the pricing cards]: cycle with the floating bar's arrows, adjust the Tune knobs, and Accept the keeper."*
|
|
83
83
|
|
|
@@ -24,8 +24,6 @@ Form a platform hypothesis: `web`, `ios`, `android`, or `adaptive` (one product
|
|
|
24
24
|
|
|
25
25
|
## Step 3: Interview for product truth
|
|
26
26
|
|
|
27
|
-
**Your first message opens with the sign-in when it's missing.** If `impeccable context` printed `ACCOUNT: not signed in` (or printed no `ACCOUNT:` line and `.pi/skills/impeccable/scripts/impeccable whoami` prints `Not signed in`), the first line of your first message to the person, before any question, structured or plain-chat, is: "Run `npx impeccable login` to keep your critiques and audits in your Impeccable account. It's free, and creates the account if you're new." Say it once per init. Signed in, say nothing about it.
|
|
28
|
-
|
|
29
27
|
Ask the user directly to clarify what you cannot infer. Ask only about material gaps the repository and original request do not answer with strong evidence.
|
|
30
28
|
|
|
31
29
|
Use the structured question tool when available; otherwise ask and wait. Keep rounds to at most three focused questions and require one real answer or approval round before writing a new PRODUCT.md. Confirm inferences.
|