@bastani/atomic 0.10.9-alpha.1 → 0.10.10-alpha.1
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 +69 -0
- package/README.md +211 -155
- 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 +27 -12
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +47 -7
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +48 -19
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/{p1a-prewarm-UQY3X2UK.js → p1a-prewarm-XIU57JHF.js} +5 -5
- package/dist/_shared/{p1a-prewarm-UQY3X2UK.js.map → p1a-prewarm-XIU57JHF.js.map} +1 -1
- package/dist/_shared/p2-shell-main-B2WIALFD.js +30 -25
- package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
- package/dist/_shared/runtime-O4KCSG4C.js +5 -5
- package/dist/_shared/{sdk-OSBEPR3Q.js → sdk-RRLVN7ER.js} +15 -9
- package/dist/_shared/sdk-RRLVN7ER.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/settings-startup-8-DNZ2RIHM.js +4 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js.map +1 -1
- package/dist/_shared/{startup-0-0-TYUFUOJZ.js → startup-0-0-4VG2G44V.js} +427 -33
- package/dist/_shared/startup-0-0-4VG2G44V.js.map +1 -0
- package/dist/_shared/{startup-0-1-W2G2UY7R.js → startup-0-1-XTIL65D4.js} +18 -11
- package/dist/_shared/startup-0-1-XTIL65D4.js.map +1 -0
- package/dist/_shared/{startup-0-2-UXBUEOXW.js → startup-0-2-27OWFHV6.js} +145 -58
- package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -0
- package/dist/_shared/startup-0-3-T4DVFYWX.js +15 -25
- package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
- package/dist/_shared/{startup-0-4-HN5EB4K7.js → startup-0-4-ZMJV547D.js} +81 -12
- package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -0
- package/dist/_shared/startup-0-5-FD2P735I.js +90 -50
- package/dist/_shared/startup-0-5-FD2P735I.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
- package/dist/_shared/startup-12-0-55AAXBJZ.js +13 -7
- package/dist/_shared/startup-12-0-55AAXBJZ.js.map +1 -1
- package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
- package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
- package/dist/_shared/startup-15-1-4S7FLMNG.js +88 -28
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +5 -5
- package/dist/_shared/startup-8-1-4KANEHRA.js +61 -17
- package/dist/_shared/startup-8-1-4KANEHRA.js.map +1 -1
- package/dist/_shared/storage-command-7MGXLJGZ.js +4 -4
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/CHANGELOG.md +6 -0
- package/dist/builtin/intercom/README.md +85 -114
- package/dist/builtin/intercom/broker/broker.bundle.mjs +3 -3
- package/dist/builtin/intercom/broker/presence-handler.ts +1 -1
- package/dist/builtin/intercom/group.ts +7 -3
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/README.md +37 -27
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +8 -0
- package/dist/builtin/subagents/README.md +71 -138
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +213 -74
- package/dist/builtin/web-access/CHANGELOG.md +9 -0
- package/dist/builtin/web-access/README.md +60 -87
- package/dist/builtin/web-access/index.bundle.mjs +387 -351
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +4 -4
- 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 +3 -3
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.code.js +3 -3
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +2 -2
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/agent-session-methods.d.ts +4 -1
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session.d.ts +3 -0
- package/dist/core/compaction/compactor.d.ts +20 -14
- package/dist/core/compaction/errors.d.ts +120 -0
- package/dist/core/compaction/index.d.ts +1 -0
- package/dist/core/compaction/model-resolver.d.ts +2 -2
- 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.code.js +1 -1
- 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/api-types.d.ts +1 -1
- package/dist/core/extensions/api-types.js.map +1 -1
- package/dist/core/extensions/index.d.ts +1 -1
- 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/provider-types.d.ts +18 -6
- package/dist/core/extensions/provider-types.js.map +1 -1
- package/dist/core/extensions/runner-context.js +1 -1
- 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/model-config.d.ts +40 -0
- package/dist/core/model-registry.js +1 -1
- package/dist/core/model-resolver-scope.d.ts +4 -4
- package/dist/core/model-runtime.d.ts +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/provider-composer-internal.d.ts +11 -2
- package/dist/core/sdk.code.js +3 -3
- 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.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/settings-manager-basic-accessors.d.ts +6 -2
- 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 +3 -3
- 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/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.code.js +1 -1
- 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.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.code.js +2 -2
- 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 +3 -3
- 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-extensions.d.ts +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +7 -7
- package/dist/main-first-time-setup.code.js +2 -2
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/modes/interactive/components/settings-selector-types.d.ts +1 -0
- package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
- 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/theme/color-utils.d.ts +5 -5
- package/dist/modes/interactive/theme/theme-loading.d.ts +1 -0
- package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
- package/dist/modes/interactive-engine/remote-model-catalog.d.ts +1 -0
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +6 -0
- package/dist/modes/rpc/rpc-types.d.ts +29 -2
- package/dist/package-manager-cli.code.js +5 -5
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +1 -1
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/5.js +1 -1
- package/dist/startup-stages/7.js +1 -1
- package/dist/startup-stages/8.js +1 -2
- package/dist/startup-stages/9.js +2 -1
- package/dist/utils/native-module.d.ts +44 -0
- package/dist/utils/startup-database-spare.code.js +3 -3
- 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/background-tasks.md +235 -243
- package/docs/build.md +12 -11
- package/docs/codemode.md +60 -51
- package/docs/compaction/reference.md +61 -24
- package/docs/compaction.md +117 -65
- package/docs/computer-use.md +179 -146
- package/docs/containerization.md +79 -33
- package/docs/custom-provider/api-reference.md +148 -11
- package/docs/custom-provider/oauth.md +44 -27
- package/docs/custom-provider/override.md +14 -7
- package/docs/custom-provider/registration.md +75 -65
- package/docs/custom-provider/streaming.md +42 -19
- package/docs/custom-provider.md +25 -61
- package/docs/development.md +47 -43
- package/docs/docs.json +33 -33
- package/docs/environment-variables.md +83 -57
- package/docs/extensions/api-reference.md +323 -734
- package/docs/extensions/authoring.md +186 -269
- package/docs/extensions/events.md +308 -375
- package/docs/extensions/examples.md +122 -74
- package/docs/extensions/ui.md +217 -197
- package/docs/extensions.md +152 -259
- package/docs/getting-started/authentication.md +27 -14
- package/docs/getting-started/first-session.md +25 -26
- package/docs/getting-started/installation.md +62 -84
- package/docs/getting-started/project-instructions.md +39 -14
- package/docs/guides/configuration.md +42 -20
- package/docs/guides/intercom.md +17 -13
- package/docs/guides/non-interactive.md +29 -16
- package/docs/guides/orchestration.md +16 -10
- package/docs/guides/resume-on-any-machine.md +54 -49
- package/docs/guides/subagents.md +22 -14
- package/docs/guides/team-setup.md +37 -26
- package/docs/guides.md +22 -21
- package/docs/herdr.md +21 -16
- package/docs/index.md +16 -17
- package/docs/intercom/operations.md +68 -66
- package/docs/intercom/reference.md +196 -191
- package/docs/intercom.md +103 -92
- package/docs/json.md +71 -71
- package/docs/keybindings.md +63 -50
- package/docs/libraries/agent-core.md +49 -8
- package/docs/libraries/ai.md +21 -12
- package/docs/libraries/codemode.md +28 -6
- package/docs/libraries/schema.md +7 -7
- package/docs/libraries/telemetry.md +7 -7
- package/docs/libraries/tui.md +74 -94
- package/docs/libraries.md +5 -5
- package/docs/llama-cpp.md +38 -33
- package/docs/mcp-servers.md +96 -90
- package/docs/models/reference.md +46 -33
- package/docs/models-configuration.md +12 -6
- package/docs/models.md +93 -88
- package/docs/orchestration/migrating-workflows.md +21 -19
- package/docs/orchestration/patterns.md +35 -20
- package/docs/orchestration.md +22 -21
- package/docs/packages/authoring.md +28 -19
- package/docs/packages/reference.md +75 -16
- package/docs/packages.md +31 -33
- package/docs/programmatic.md +22 -21
- package/docs/prompt-templates.md +63 -41
- package/docs/providers/reference.md +35 -19
- package/docs/providers.md +61 -71
- package/docs/quickstart.md +32 -46
- package/docs/reference/cli.md +249 -252
- package/docs/reference.md +23 -20
- package/docs/rpc/examples.md +74 -17
- package/docs/rpc/extension-ui.md +79 -62
- package/docs/rpc/protocol.md +816 -358
- package/docs/rpc.md +75 -151
- package/docs/sdk/reference.md +175 -45
- package/docs/sdk/structured-decisions.md +92 -62
- package/docs/sdk/web-server.md +79 -46
- package/docs/sdk.md +237 -195
- package/docs/security.md +106 -43
- package/docs/session-format.md +96 -59
- package/docs/sessions.md +149 -113
- package/docs/settings.md +289 -204
- package/docs/shell-aliases.md +15 -6
- package/docs/skills/authoring.md +17 -9
- package/docs/skills/reference.md +23 -21
- package/docs/skills.md +104 -97
- package/docs/storage.md +140 -242
- package/docs/subagents/authoring.md +147 -16
- package/docs/subagents/reference.md +100 -30
- package/docs/subagents.md +220 -252
- package/docs/terminal-setup.md +97 -69
- package/docs/termux.md +51 -85
- package/docs/themes/reference.md +51 -37
- package/docs/themes.md +49 -54
- package/docs/tmux.md +38 -21
- package/docs/tools.md +198 -147
- package/docs/tui/reference.md +64 -32
- package/docs/tui.md +38 -66
- package/docs/usage.md +76 -78
- package/docs/verification.md +25 -25
- package/docs/web-access.md +72 -55
- package/docs/windows.md +53 -58
- package/docs/worktree-snapshots.md +62 -65
- package/package.json +8 -8
- package/schemas/models.schema.json +51 -0
- package/dist/_shared/sdk-OSBEPR3Q.js.map +0 -1
- package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +0 -1
- package/dist/_shared/startup-0-1-W2G2UY7R.js.map +0 -1
- package/dist/_shared/startup-0-2-UXBUEOXW.js.map +0 -1
- package/dist/_shared/startup-0-4-HN5EB4K7.js.map +0 -1
package/docs/themes/reference.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: Theme reference
|
|
3
|
-
|
|
2
|
+
title: "Theme reference"
|
|
3
|
+
sidebarTitle: "Themes"
|
|
4
|
+
description: "Reference for theme JSON structure, all 51 required and 3 optional color tokens, color formats, and terminal color modes."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
# Theme reference
|
|
7
|
-
|
|
8
7
|
## Theme format
|
|
9
8
|
|
|
10
9
|
```json
|
|
@@ -13,13 +12,14 @@ description: Theme file format, every color token, and accepted color values.
|
|
|
13
12
|
"name": "my-theme",
|
|
14
13
|
"vars": {
|
|
15
14
|
"blue": "#0066cc",
|
|
15
|
+
"accentColor": "blue",
|
|
16
16
|
"gray": 242
|
|
17
17
|
},
|
|
18
18
|
"colors": {
|
|
19
|
-
"accent": "
|
|
19
|
+
"accent": "accentColor",
|
|
20
20
|
"muted": "gray",
|
|
21
21
|
"text": "",
|
|
22
|
-
|
|
22
|
+
"border": "blue"
|
|
23
23
|
},
|
|
24
24
|
"workingIndicator": {
|
|
25
25
|
"dark": "#70759f",
|
|
@@ -28,28 +28,33 @@ description: Theme file format, every color token, and accepted color values.
|
|
|
28
28
|
"accent": "blue",
|
|
29
29
|
"bright": "#b8d2ff",
|
|
30
30
|
"peak": "#eef4ff"
|
|
31
|
+
},
|
|
32
|
+
"export": {
|
|
33
|
+
"pageBg": "#18181e",
|
|
34
|
+
"cardBg": "#1e1e24",
|
|
35
|
+
"infoBg": "#3c3728"
|
|
31
36
|
}
|
|
32
37
|
}
|
|
33
38
|
```
|
|
34
39
|
|
|
35
|
-
- `name` is required, must be unique, and must not contain `/`.
|
|
36
|
-
- `vars` is optional. Define reusable colors here
|
|
40
|
+
- `name` is required, must be a non-empty string, must be unique, and must not contain `/`. The name `system` is reserved and cannot be overridden.
|
|
41
|
+
- `vars` is optional. Define reusable colors here and reference them from `colors`, `workingIndicator`, `export`, or other `vars` entries. Chained variable references are supported; circular references fail validation with `"Circular variable reference detected"`, and undefined variable names fail with `"Variable reference not found"`.
|
|
37
42
|
- `colors` must define all 51 required tokens. `scrollbarThumb` is optional and falls back to `selectedBg` when omitted. `searchMatchBg` and `searchMatchText` remain accepted for older theme files but are unused.
|
|
38
43
|
- `workingIndicator` is optional. It can override any of the six tones in the outward half of the ordinary `∀` ramp. Atomic derives omitted tones from selected background, accent, and text roles, then mirrors the palette back after `peak`.
|
|
39
|
-
- Explicit numeric values from 0 through 255 remain exact terminal palette indices.
|
|
40
|
-
- When an index from 0 through 15 seeds an omitted tone, Atomic mixes from its built-in approximation of the common ANSI RGB value. The terminal still controls the explicit index's actual appearance.
|
|
44
|
+
- Explicit numeric values from `0` through `255` remain exact terminal palette indices.
|
|
45
|
+
- When an index from `0` through `15` seeds an omitted tone, Atomic mixes from its built-in approximation of the common ANSI RGB value. The terminal still controls the explicit index's actual appearance.
|
|
41
46
|
- Both explicit and derived tones update on theme hot reload.
|
|
42
47
|
|
|
43
|
-
The `$schema` field enables editor
|
|
48
|
+
The `$schema` field enables editor completion and validation against the [theme JSON schema](https://github.com/bastani-inc/atomic/blob/main/packages/coding-agent/schemas/theme.schema.json). Atomic rejects theme files with unknown top-level fields or unknown properties under `colors`, `workingIndicator`, or `export`. Define reusable custom colors under `vars` instead.
|
|
44
49
|
|
|
45
50
|
## Color tokens
|
|
46
51
|
|
|
47
|
-
Every theme must define all 51 required color tokens. The optional tokens preserve compatibility with older theme files: `scrollbarThumb` and unused `searchMatchBg` fall back to `selectedBg`, and unused `searchMatchText` falls back to `text`.
|
|
52
|
+
Every theme must define all 51 required color tokens. The three optional tokens preserve compatibility with older theme files: `scrollbarThumb` and unused `searchMatchBg` fall back to `selectedBg`, and unused `searchMatchText` falls back to `text`.
|
|
48
53
|
|
|
49
54
|
### Core UI (11 colors)
|
|
50
55
|
|
|
51
56
|
| Token | Purpose |
|
|
52
|
-
|
|
57
|
+
| --- | --- |
|
|
53
58
|
| `accent` | Primary accent (logo, selected items, cursor) |
|
|
54
59
|
| `border` | Normal borders |
|
|
55
60
|
| `borderAccent` | Highlighted borders |
|
|
@@ -62,10 +67,10 @@ Every theme must define all 51 required color tokens. The optional tokens preser
|
|
|
62
67
|
| `text` | Default text (usually `""`) |
|
|
63
68
|
| `thinkingText` | Thinking block text |
|
|
64
69
|
|
|
65
|
-
### Backgrounds
|
|
70
|
+
### Backgrounds and content (11 required, 3 optional)
|
|
66
71
|
|
|
67
72
|
| Token | Purpose |
|
|
68
|
-
|
|
73
|
+
| --- | --- |
|
|
69
74
|
| `selectedBg` | Selected line background |
|
|
70
75
|
| `scrollbarThumb` | Fullscreen scrollbar thumb background; optional, falls back to `selectedBg` |
|
|
71
76
|
| `searchMatchBg` | Unused leftover token; optional, falls back to `selectedBg` |
|
|
@@ -84,7 +89,7 @@ Every theme must define all 51 required color tokens. The optional tokens preser
|
|
|
84
89
|
### Markdown (10 colors)
|
|
85
90
|
|
|
86
91
|
| Token | Purpose |
|
|
87
|
-
|
|
92
|
+
| --- | --- |
|
|
88
93
|
| `mdHeading` | Headings |
|
|
89
94
|
| `mdLink` | Link text |
|
|
90
95
|
| `mdLinkUrl` | Link URL |
|
|
@@ -99,7 +104,7 @@ Every theme must define all 51 required color tokens. The optional tokens preser
|
|
|
99
104
|
### Tool diffs (3 colors)
|
|
100
105
|
|
|
101
106
|
| Token | Purpose |
|
|
102
|
-
|
|
107
|
+
| --- | --- |
|
|
103
108
|
| `toolDiffAdded` | Added lines |
|
|
104
109
|
| `toolDiffRemoved` | Removed lines |
|
|
105
110
|
| `toolDiffContext` | Context lines |
|
|
@@ -107,7 +112,7 @@ Every theme must define all 51 required color tokens. The optional tokens preser
|
|
|
107
112
|
### Syntax highlighting (9 colors)
|
|
108
113
|
|
|
109
114
|
| Token | Purpose |
|
|
110
|
-
|
|
115
|
+
| --- | --- |
|
|
111
116
|
| `syntaxComment` | Comments |
|
|
112
117
|
| `syntaxKeyword` | Keywords |
|
|
113
118
|
| `syntaxFunction` | Function names |
|
|
@@ -123,7 +128,7 @@ Every theme must define all 51 required color tokens. The optional tokens preser
|
|
|
123
128
|
Editor border colors indicating thinking level (from subtle to prominent):
|
|
124
129
|
|
|
125
130
|
| Token | Purpose |
|
|
126
|
-
|
|
131
|
+
| --- | --- |
|
|
127
132
|
| `thinkingOff` | Thinking off |
|
|
128
133
|
| `thinkingMinimal` | Minimal thinking |
|
|
129
134
|
| `thinkingLow` | Low thinking |
|
|
@@ -134,12 +139,12 @@ Editor border colors indicating thinking level (from subtle to prominent):
|
|
|
134
139
|
### Bash mode (1 color)
|
|
135
140
|
|
|
136
141
|
| Token | Purpose |
|
|
137
|
-
|
|
142
|
+
| --- | --- |
|
|
138
143
|
| `bashMode` | Editor border in bash mode (`!` prefix) |
|
|
139
144
|
|
|
140
145
|
### HTML export (optional)
|
|
141
146
|
|
|
142
|
-
The `export` section controls colors for `/export` HTML output.
|
|
147
|
+
The `export` section controls background colors for `/export` HTML output. Each field accepts hex, OKHSL, 256-color integers, or `vars` references. Omitted fields (or `""`) derive from `userMessageBg`.
|
|
143
148
|
|
|
144
149
|
```json
|
|
145
150
|
{
|
|
@@ -151,38 +156,47 @@ The `export` section controls colors for `/export` HTML output. If omitted, colo
|
|
|
151
156
|
}
|
|
152
157
|
```
|
|
153
158
|
|
|
159
|
+
In HTML exports, an empty string `""` color token renders as `#000000` for built-in light themes (`light`, `catppuccin-latte`, or `system` on a light terminal) and `#e5e5e7` for all other themes.
|
|
160
|
+
|
|
154
161
|
## Color values
|
|
155
162
|
|
|
156
|
-
Five formats are supported:
|
|
163
|
+
Five value formats are supported:
|
|
157
164
|
|
|
158
|
-
| Format | Example |
|
|
159
|
-
|
|
160
|
-
| Hex | `"#ff0000"` | 6-digit hex
|
|
161
|
-
| OKHSL | `"okhsl(295 0.6 0.5)"` or `"okhsl(295deg 60% 50%)"` |
|
|
162
|
-
| 256-color | `39` |
|
|
163
|
-
| Variable | `"primary"` |
|
|
164
|
-
| Default | `""` |
|
|
165
|
+
| Format | Example | Validation rules |
|
|
166
|
+
| --- | --- | --- |
|
|
167
|
+
| Hex | `"#ff0000"` | Strictly 6 hex digits (`#rrggbb`, case-insensitive). 3-digit shorthand (`#f00`) and 8-digit hex with alpha (`#ff000080`) are rejected. |
|
|
168
|
+
| OKHSL | `"okhsl(295 0.6 0.5)"` or `"okhsl(295deg 60% 50%)"` | Case-insensitive, whitespace-separated only (commas are rejected). Hue accepts optional `deg`; saturation and lightness must be in `0` to `1` or `0%` to `100%` or loading fails. Converted to hex for rendering and HTML export. Other CSS color functions such as `oklch(...)` are not accepted. |
|
|
169
|
+
| 256-color | `39` | Must be a JSON integer from `0` to `255`. Floats (such as `39.5`) fail validation, and quoted strings (such as `"39"`) are treated as variable references instead of palette indices. |
|
|
170
|
+
| Variable | `"primary"` | References a key in `vars`. Chained references work; circular or missing references fail theme loading. |
|
|
171
|
+
| Default | `""` | Uses the terminal's default foreground or background color. |
|
|
165
172
|
|
|
166
173
|
### 256-color palette
|
|
167
174
|
|
|
168
175
|
- `0` to `15`: Basic ANSI colors (terminal-dependent)
|
|
169
|
-
- `16` to `231`:
|
|
176
|
+
- `16` to `231`: 6x6x6 RGB cube (`16 + 36*R + 6*G + B` where `R`, `G`, and `B` are `0` to `5`)
|
|
170
177
|
- `232` to `255`: Grayscale ramp
|
|
171
178
|
|
|
172
179
|
### Terminal compatibility
|
|
173
180
|
|
|
174
|
-
Atomic
|
|
181
|
+
Atomic selects truecolor (24-bit RGB) or 256-color output in this precedence order:
|
|
182
|
+
|
|
183
|
+
1. `terminal.trueColor` in `settings.json` (`true` forces truecolor; `false` forces 256-color)
|
|
184
|
+
2. `ATOMIC_TRUE_COLOR` environment variable (`1` forces truecolor; `0` forces 256-color; legacy `PI_TRUE_COLOR` is also supported)
|
|
185
|
+
3. Automatic detection:
|
|
186
|
+
- `COLORTERM=truecolor`, `COLORTERM=24bit`, or `WT_SESSION` selects truecolor.
|
|
187
|
+
- `TERM=dumb`, empty `TERM`, `TERM=linux`, `TERM=screen*`, or `TERM_PROGRAM=Apple_Terminal` selects 256-color.
|
|
188
|
+
- Other terminals default to truecolor.
|
|
175
189
|
|
|
176
|
-
The tool status backgrounds `toolPendingBg`, `toolSuccessBg`, and `toolErrorBg`
|
|
190
|
+
When falling back to 256-color mode, Atomic maps 24-bit RGB colors to the nearest palette color, which can turn a slightly tinted background into gray. The tool status backgrounds `toolPendingBg`, `toolSuccessBg`, and `toolErrorBg` preserve their hue instead by picking the nearest palette color whose strongest RGB channel matches. Give these three tokens different dominant channels (for example blue, green, and red tints) to keep them distinguishable in 256-color terminals, or set a 256-color index directly.
|
|
177
191
|
|
|
178
|
-
Check
|
|
192
|
+
Check your terminal's advertised color capability:
|
|
179
193
|
|
|
180
194
|
```bash
|
|
181
|
-
echo $COLORTERM #
|
|
195
|
+
echo "$COLORTERM" # Outputs "truecolor" or "24bit" when advertised
|
|
182
196
|
```
|
|
183
197
|
|
|
184
|
-
Turning colors off:
|
|
198
|
+
Turning colors off or overriding ANSI output:
|
|
185
199
|
|
|
186
200
|
- `NO_COLOR` (any value) turns off every theme color, foreground and background, and text styles such as bold, italic, underline, inverse, strikethrough, and dim. Layout and text stay the same.
|
|
187
|
-
- `FORCE_COLOR=0` (or `FORCE_COLOR=false`) does the same. `FORCE_COLOR=1` (or `true` or empty) and `FORCE_COLOR=2` limit truecolor themes to the 256-color palette, and `FORCE_COLOR=3` keeps the terminal's
|
|
188
|
-
- An extension
|
|
201
|
+
- `FORCE_COLOR=0` (or `FORCE_COLOR=false`) does the same. `FORCE_COLOR=1` (or `true` or empty) and `FORCE_COLOR=2` limit truecolor themes to the 256-color palette, and `FORCE_COLOR=3` keeps the terminal's resolved color mode. `NO_COLOR` wins when both are set.
|
|
202
|
+
- An extension painting custom `#rrggbb` colors can call `hexColorAnsi(hex, "fg")` or `hexColorAnsi(hex, "bg")` from `@bastani/atomic` to get the ANSI sequence respecting `NO_COLOR` and `FORCE_COLOR` (empty string when colors are off). Note that `hexColorAnsi()` respects `NO_COLOR` and `FORCE_COLOR` (`1`/`2` -> 256-color, `3`/unset -> truecolor), and does not read `terminal.trueColor` or `ATOMIC_TRUE_COLOR`.
|
package/docs/themes.md
CHANGED
|
@@ -1,28 +1,48 @@
|
|
|
1
1
|
---
|
|
2
|
-
title:
|
|
3
|
-
|
|
2
|
+
title: "Customize themes"
|
|
3
|
+
sidebarTitle: "Themes"
|
|
4
|
+
description: "Switch built-in terminal themes, follow system light or dark appearance, and author custom JSON themes with hot reload."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
Themes are JSON files that define colors for the Atomic terminal UI.
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
This page covers selecting a theme and authoring your own. See [Theme reference](/themes/reference) for the file schema, every color token, accepted color formats, and terminal color overrides.
|
|
9
10
|
|
|
10
|
-
##
|
|
11
|
+
## Built-in themes
|
|
12
|
+
|
|
13
|
+
Atomic ships seven built-in themes:
|
|
14
|
+
|
|
15
|
+
- `system`: derives colors from your terminal's reported foreground, background, and ANSI palette, and follows terminal appearance changes where supported. If the terminal does not report colors, it uses ANSI palette colors and faint secondary text. `system` is reserved and cannot be overridden by a custom theme.
|
|
16
|
+
- `dark`
|
|
17
|
+
- `light`
|
|
18
|
+
- `catppuccin-frappe`
|
|
19
|
+
- `catppuccin-latte`
|
|
20
|
+
- `catppuccin-macchiato`
|
|
21
|
+
- `catppuccin-mocha`
|
|
11
22
|
|
|
12
|
-
|
|
23
|
+
## Locations and precedence
|
|
13
24
|
|
|
14
|
-
|
|
25
|
+
Atomic loads custom themes from these sources:
|
|
15
26
|
|
|
16
|
-
|
|
27
|
+
- **Global:** `~/.atomic/agent/themes/*.json` (legacy `~/.pi/agent/themes/*.json`)
|
|
28
|
+
- **Project** (only after you trust the project): `.atomic/themes/*.json` (legacy `.pi/themes/*.json`)
|
|
29
|
+
- **Packages:** `themes/` directories, `atomic.themes`, or legacy `pi.themes` entries in `package.json`
|
|
30
|
+
- **Settings:** `themes` array in global or project `settings.json`, which accepts files, directories, and filter patterns (`!glob`, `+path`, `-path` with `~` expansion; see [Package filtering](/packages/reference#package-filtering))
|
|
31
|
+
- **CLI:** `--theme <path>` (repeatable) loads a theme file; `--use-theme <name>` (see [Initial theme](#initial-theme)) selects an already-loaded theme for one run without saving it
|
|
17
32
|
|
|
18
|
-
|
|
19
|
-
- Global: `~/.atomic/agent/themes/*.json` (legacy `~/.pi/agent/themes/*.json`)
|
|
20
|
-
- Project: `.atomic/themes/*.json` (legacy `.pi/themes/*.json`, only after the project is trusted)
|
|
21
|
-
- Packages: `themes/` directories, `atomic.themes`, or legacy `pi.themes` entries in `package.json`
|
|
22
|
-
- Settings: `themes` array with files or directories
|
|
23
|
-
- CLI: `--theme <path>` (repeatable)
|
|
33
|
+
Discovery rules:
|
|
24
34
|
|
|
25
|
-
|
|
35
|
+
- Auto-discovery in `~/.atomic/agent/themes/` and `.atomic/themes/` is non-recursive and skips dotfiles, `node_modules`, and files matched by `.gitignore`, `.ignore`, or `.fdignore`.
|
|
36
|
+
- Disable custom and package theme discovery with `--no-themes` (no short flag). Built-in themes and explicit `--theme <path>` files remain available.
|
|
37
|
+
- When multiple custom themes share the same `"name"`, Atomic keeps the first match and reports a collision diagnostic at startup or `/reload`. Precedence order:
|
|
38
|
+
1. Packages passed with `-e` / `--extension`
|
|
39
|
+
2. Project `settings.json` `themes` array
|
|
40
|
+
3. Project auto-discovered directories (`.atomic/themes/`, then legacy `.pi/themes/`)
|
|
41
|
+
4. Global `settings.json` `themes` array
|
|
42
|
+
5. Global auto-discovered directories (`~/.atomic/agent/themes/`, then legacy `~/.pi/agent/themes/`)
|
|
43
|
+
6. Configured packages (project packages, then global packages)
|
|
44
|
+
7. Bundled packages
|
|
45
|
+
8. Explicit CLI `--theme <path>` paths
|
|
26
46
|
|
|
27
47
|
## Selecting a theme
|
|
28
48
|
|
|
@@ -34,15 +54,18 @@ Atomic does not have a `/theme` slash command. Select a theme through `/settings
|
|
|
34
54
|
}
|
|
35
55
|
```
|
|
36
56
|
|
|
37
|
-
Use `"theme": "
|
|
57
|
+
Use `"theme": "light-theme/dark-theme"` for automatic mode. Specify exactly one `/`, with non-empty names on both sides (surrounding spaces are trimmed). Atomic selects the matching theme using this fallback order:
|
|
38
58
|
|
|
39
|
-
|
|
59
|
+
1. Terminal-reported background color (waits up to 100 ms at startup, and applies late terminal replies asynchronously if they arrive after startup)
|
|
60
|
+
2. Terminal appearance change notifications
|
|
61
|
+
3. `COLORFGBG` environment variable (uses the last `;`-separated number; indices `0` to `6` and `8` map to dark, all other integers map to light)
|
|
62
|
+
4. Dark theme fallback
|
|
40
63
|
|
|
41
|
-
On first run, Atomic detects your terminal background and defaults to `dark` or `light`.
|
|
64
|
+
A malformed auto value with extra `/` characters or an empty side falls back to the terminal default (`dark` or `light`). On first run, Atomic detects your terminal background and defaults to `dark` or `light`.
|
|
42
65
|
|
|
43
66
|
The main chat uses the terminal's default background, including transparency. Headers, footers, and tool cards keep their theme colors.
|
|
44
67
|
|
|
45
|
-
### Initial
|
|
68
|
+
### Initial theme
|
|
46
69
|
|
|
47
70
|
Start an interactive run with a theme without changing the saved setting:
|
|
48
71
|
|
|
@@ -50,13 +73,13 @@ Start an interactive run with a theme without changing the saved setting:
|
|
|
50
73
|
atomic --use-theme light
|
|
51
74
|
```
|
|
52
75
|
|
|
53
|
-
To follow terminal appearance,
|
|
76
|
+
To follow terminal appearance for one run, pass `lightTheme/darkTheme`:
|
|
54
77
|
|
|
55
78
|
```bash
|
|
56
79
|
atomic --use-theme light/dark
|
|
57
80
|
```
|
|
58
81
|
|
|
59
|
-
|
|
82
|
+
`--use-theme` applies in interactive mode only (ignored in print, JSON, and RPC modes). Choosing another theme later in `/settings` applies it immediately and saves it normally. If the requested theme name is unknown or fails to load, Atomic prints an error (`Failed to load theme "<name>": ...`) and falls back to `dark`.
|
|
60
83
|
|
|
61
84
|
## Creating a custom theme
|
|
62
85
|
|
|
@@ -67,7 +90,7 @@ mkdir -p ~/.atomic/agent/themes
|
|
|
67
90
|
vim ~/.atomic/agent/themes/my-theme.json
|
|
68
91
|
```
|
|
69
92
|
|
|
70
|
-
2. Define the theme with all required
|
|
93
|
+
2. Define the theme with all 51 required color tokens (see [Color tokens](/themes/reference#color-tokens)):
|
|
71
94
|
|
|
72
95
|
```json
|
|
73
96
|
{
|
|
@@ -136,9 +159,11 @@ vim ~/.atomic/agent/themes/my-theme.json
|
|
|
136
159
|
|
|
137
160
|
3. Select the theme via `/settings`.
|
|
138
161
|
|
|
139
|
-
|
|
162
|
+
### Live hot reload
|
|
163
|
+
|
|
164
|
+
Atomic watches the active custom theme's actual file path and reloads it automatically when you save edits (debounced by 100 ms). Hot reload works for global themes, project themes, package themes, `--theme <path>` files, and custom themes whose filename differs from their JSON `"name"`. If you save invalid JSON mid-edit, Atomic ignores the broken save and keeps the last valid theme active until the next valid save.
|
|
140
165
|
|
|
141
|
-
Theme files are strict. Atomic accepts only the documented top-level fields and color tokens.
|
|
166
|
+
Theme files are strict. Atomic accepts only the documented top-level fields and color tokens. Extra top-level metadata or unknown keys under `colors`, `workingIndicator`, or `export` make the theme invalid. Define reusable custom colors under `vars`. The [theme JSON schema](https://github.com/bastani-inc/atomic/blob/main/packages/coding-agent/schemas/theme.schema.json) lists every accepted property, required token, and value type. Atomic reports invalid theme files during startup and `/reload`.
|
|
142
167
|
|
|
143
168
|
## Tips
|
|
144
169
|
|
|
@@ -151,33 +176,3 @@ Theme files are strict. Atomic accepts only the documented top-level fields and
|
|
|
151
176
|
**Testing.** Check your theme with different message types, tool states, Markdown content, and long wrapped text.
|
|
152
177
|
|
|
153
178
|
**VS Code.** Set `terminal.integrated.minimumContrastRatio` to `1` for accurate colors.
|
|
154
|
-
|
|
155
|
-
## Built-in themes
|
|
156
|
-
|
|
157
|
-
Atomic ships seven built-in themes:
|
|
158
|
-
|
|
159
|
-
- `system` (generated from your terminal's reported colors and ANSI palette)
|
|
160
|
-
- `dark`
|
|
161
|
-
- `light`
|
|
162
|
-
- `catppuccin-frappe`
|
|
163
|
-
- `catppuccin-latte`
|
|
164
|
-
- `catppuccin-macchiato`
|
|
165
|
-
- `catppuccin-mocha`
|
|
166
|
-
|
|
167
|
-
## Moved sections
|
|
168
|
-
|
|
169
|
-
<a id="theme-format" />
|
|
170
|
-
<a id="color-tokens" />
|
|
171
|
-
<a id="core-ui-11-colors" />
|
|
172
|
-
<a id="backgrounds-&-content-11-required-3-optional" />
|
|
173
|
-
<a id="markdown-10-colors" />
|
|
174
|
-
<a id="tool-diffs-3-colors" />
|
|
175
|
-
<a id="syntax-highlighting-9-colors" />
|
|
176
|
-
<a id="thinking-level-borders-6-colors" />
|
|
177
|
-
<a id="bash-mode-1-color" />
|
|
178
|
-
<a id="html-export-optional" />
|
|
179
|
-
<a id="color-values" />
|
|
180
|
-
<a id="256-color-palette" />
|
|
181
|
-
<a id="terminal-compatibility" />
|
|
182
|
-
|
|
183
|
-
- Theme format, color tokens, HTML export settings, color values, 256-color palette behavior, and terminal compatibility moved to [Theme reference](/themes/reference).
|
package/docs/tmux.md
CHANGED
|
@@ -1,60 +1,77 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "tmux"
|
|
3
|
-
|
|
2
|
+
title: "tmux setup"
|
|
3
|
+
sidebarTitle: "tmux"
|
|
4
|
+
description: "Configure tmux for modified keys, Escape timing, hyperlinks, clipboard copy, mouse scrolling, and image paste with Atomic."
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
Atomic works inside tmux, though tmux strips modifier keys, delays `Escape`, and filters hyperlinks by default. Without configuration, `Shift+Enter` and `Ctrl+Enter` arrive as plain `Enter`.
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
For terminal automation, prefer Herdr when available, with tmux or native Windows psmux as fallbacks. See [Computer use](/computer-use#terminal-automation-with-herdr) for tool selection and session control. This page covers running Atomic interactively inside tmux.
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
## Recommended tmux configuration
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Add to `~/.tmux.conf`:
|
|
13
|
+
Add these lines to `~/.tmux.conf`:
|
|
15
14
|
|
|
16
15
|
```tmux
|
|
17
16
|
set -g extended-keys on
|
|
18
17
|
set -g extended-keys-format csi-u
|
|
18
|
+
set -sg escape-time 10
|
|
19
|
+
set -g mouse on
|
|
20
|
+
set -g set-clipboard on
|
|
21
|
+
set -as terminal-features ',*:hyperlinks'
|
|
19
22
|
```
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
Restart tmux completely so the server reloads every option cleanly:
|
|
22
25
|
|
|
23
26
|
```bash
|
|
24
27
|
tmux kill-server
|
|
25
28
|
tmux
|
|
26
29
|
```
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
What each setting does:
|
|
32
|
+
|
|
33
|
+
- **`extended-keys on` (or `always`) and `extended-keys-format csi-u`:** Forwards modified keys such as `Shift+Enter` and `Ctrl+Enter` in CSI-u format. Whenever `$TMUX` is set, Atomic checks `tmux show -gv extended-keys` and `tmux show -gv extended-keys-format` at startup and displays a warning if `extended-keys` is not `on` or `always`, or if `extended-keys-format` is `xterm`. (`extended-keys-format` requires tmux 3.5 or later.)
|
|
34
|
+
- **`escape-time 10`:** Lowers tmux's Escape key delay from older defaults (up to 500 ms) to 10 ms so pressing `Escape` cancels runs and closes dialogs without lag.
|
|
35
|
+
- **`mouse on`:** Forwards clicks, wheel scrolling, and drag selection to Atomic's fullscreen viewport.
|
|
36
|
+
- **`set-clipboard on`:** Allows OSC 52 clipboard copies to reach your outer terminal.
|
|
37
|
+
- **`terminal-features ',*:hyperlinks'`:** Advertises OSC 8 hyperlink forwarding so Atomic renders clickable links.
|
|
29
38
|
|
|
30
39
|
## Why `csi-u` is recommended
|
|
31
40
|
|
|
32
41
|
With only `set -g extended-keys on`, tmux defaults to `extended-keys-format xterm`, which sends modified keys in xterm `modifyOtherKeys` format:
|
|
33
42
|
|
|
34
|
-
- `
|
|
35
|
-
- `
|
|
36
|
-
- `
|
|
43
|
+
- `Ctrl+C` sends `\x1b[27;5;99~`
|
|
44
|
+
- `Ctrl+D` sends `\x1b[27;5;100~`
|
|
45
|
+
- `Ctrl+Enter` sends `\x1b[27;5;13~`
|
|
37
46
|
|
|
38
47
|
With `extended-keys-format csi-u`, tmux sends the same keys as CSI-u sequences:
|
|
39
48
|
|
|
40
|
-
- `
|
|
41
|
-
- `
|
|
42
|
-
- `
|
|
49
|
+
- `Ctrl+C` sends `\x1b[99;5u`
|
|
50
|
+
- `Ctrl+D` sends `\x1b[100;5u`
|
|
51
|
+
- `Ctrl+Enter` sends `\x1b[13;5u`
|
|
43
52
|
|
|
44
53
|
Atomic parses both formats, and `csi-u` is the most reliable choice.
|
|
45
54
|
|
|
46
|
-
|
|
55
|
+
### What extended keys fix
|
|
47
56
|
|
|
48
57
|
Without extended keys, modified Enter keys collapse to legacy sequences:
|
|
49
58
|
|
|
50
59
|
| Key | Without extended keys | With `csi-u` |
|
|
51
60
|
| --- | --- | --- |
|
|
52
61
|
| `Enter` | `\r` | `\r` |
|
|
53
|
-
| `
|
|
54
|
-
| `
|
|
62
|
+
| `Shift+Enter` | `\r` | `\x1b[13;2u` |
|
|
63
|
+
| `Ctrl+Enter` | `\r` | `\x1b[13;5u` |
|
|
55
64
|
| `Alt/Option+Enter` | `\x1b\r` | `\x1b[13;3u` |
|
|
56
65
|
|
|
57
|
-
Enabling extended keys restores the default `
|
|
66
|
+
Enabling extended keys restores the default `Shift+Enter` newline shortcut and custom modified-Enter bindings. (`Ctrl+J` also inserts a newline out of the box even without extended keys.)
|
|
67
|
+
|
|
68
|
+
## Inline images, hyperlinks, mouse, and clipboard
|
|
69
|
+
|
|
70
|
+
- **Inline images:** Atomic disables inline image protocols whenever `$TMUX` is set or `TERM` starts with `tmux`, even if tmux has `allow-passthrough on`. If your outer terminal and tmux configuration support image passthrough, explicitly override the protocol with `terminal.images` in `~/.atomic/agent/settings.json` or `ATOMIC_IMAGE_PROTOCOL=kitty` (or `iterm2`).
|
|
71
|
+
- **OSC 8 hyperlinks:** Inside tmux, Atomic runs `tmux display-message -p '#{client_termfeatures}'` (250 ms timeout) and emits clickable hyperlinks only when `hyperlinks` is listed. Add `set -as terminal-features ',*:hyperlinks'` to `~/.tmux.conf`, or force hyperlinks with `"terminal": { "hyperlinks": true }` or `ATOMIC_HYPERLINKS=1`.
|
|
72
|
+
- **Clipboard over SSH (OSC 52):** Over SSH inside tmux, OSC 52 copies require `set -g set-clipboard on` (and `set -g allow-passthrough on` depending on your tmux version) so copied text reaches your local terminal clipboard. See [Clipboard and mouse behavior](/terminal-setup#clipboard-and-mouse-behavior).
|
|
73
|
+
- **Mouse scrolling and selection:** With `set -g mouse on`, Atomic handles clicks, drag selection, and wheel scrolling inside panes. Inside tmux, Atomic uses button-motion mouse reporting (`1002h`) instead of all-motion reporting (`1003h`) to keep terminal traffic light.
|
|
74
|
+
- **Program status (OSC 7501):** tmux does not forward OSC 7501 status reports. See [Program status](/terminal-setup#program-status).
|
|
58
75
|
|
|
59
76
|
## Image paste
|
|
60
77
|
|
|
@@ -63,7 +80,7 @@ Inside tmux on macOS, paste clipboard images with `Ctrl+V` instead of `Cmd+V`. O
|
|
|
63
80
|
## Requirements
|
|
64
81
|
|
|
65
82
|
- tmux 3.5 or later for `extended-keys-format csi-u` (check with `tmux -V`)
|
|
66
|
-
-
|
|
83
|
+
- An outer terminal emulator that supports extended keys (Ghostty, Kitty, iTerm2, WezTerm, or Windows Terminal)
|
|
67
84
|
|
|
68
85
|
With tmux 3.2 through 3.4, omit `extended-keys-format csi-u`; Atomic supports tmux's default xterm `modifyOtherKeys` format.
|
|
69
86
|
|