@oh-my-pi/pi-coding-agent 17.0.9 → 17.1.0
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 +54 -0
- package/README.md +1 -1
- package/dist/cli.js +4659 -4261
- package/dist/types/async/job-manager.d.ts +37 -1
- package/dist/types/cli/args.d.ts +2 -0
- package/dist/types/cli/bench-cli.d.ts +41 -0
- package/dist/types/commands/bench.d.ts +15 -3
- package/dist/types/commands/launch.d.ts +4 -0
- package/dist/types/config/model-registry.d.ts +3 -1
- package/dist/types/config/models-config-schema.d.ts +18 -6
- package/dist/types/config/models-config.d.ts +14 -5
- package/dist/types/config/provider-globals.d.ts +2 -2
- package/dist/types/config/service-tier.d.ts +5 -1
- package/dist/types/config/settings-schema.d.ts +316 -47
- package/dist/types/config/settings.d.ts +7 -0
- package/dist/types/dap/client.d.ts +20 -0
- package/dist/types/exec/bash-executor.d.ts +38 -0
- package/dist/types/exec/direnv.d.ts +33 -0
- package/dist/types/export/html/args.d.ts +15 -0
- package/dist/types/export/html/index.d.ts +11 -26
- package/dist/types/export/html/web-palette.d.ts +55 -116
- package/dist/types/extensibility/extensions/loader.d.ts +3 -0
- package/dist/types/extensibility/extensions/types.d.ts +17 -2
- package/dist/types/extensibility/plugins/legacy-pi-compat.d.ts +13 -0
- package/dist/types/live/controller.d.ts +40 -0
- package/dist/types/live/protocol.d.ts +85 -0
- package/dist/types/live/protocol.test.d.ts +1 -0
- package/dist/types/live/transport.d.ts +48 -0
- package/dist/types/live/visualizer.d.ts +33 -0
- package/dist/types/lsp/client.d.ts +16 -1
- package/dist/types/mcp/config-writer.test.d.ts +1 -0
- package/dist/types/mcp/oauth-discovery.d.ts +2 -0
- package/dist/types/mcp/smithery-auth.d.ts +1 -1
- package/dist/types/mcp/smithery-auth.test.d.ts +1 -0
- package/dist/types/memory-backend/tool-names.d.ts +2 -0
- package/dist/types/modes/components/login-dialog.d.ts +2 -2
- package/dist/types/modes/components/plan-review-overlay.d.ts +26 -0
- package/dist/types/modes/components/settings-defs.d.ts +7 -1
- package/dist/types/modes/components/status-line/component.jj-cache.test.d.ts +1 -0
- package/dist/types/modes/components/tool-execution.d.ts +9 -1
- package/dist/types/modes/controllers/command-controller.d.ts +1 -1
- package/dist/types/modes/controllers/event-controller.d.ts +6 -1
- package/dist/types/modes/controllers/live-command-controller.d.ts +14 -0
- package/dist/types/modes/interactive-mode.d.ts +5 -0
- package/dist/types/modes/theme/theme.d.ts +1 -1
- package/dist/types/modes/types.d.ts +3 -1
- package/dist/types/modes/utils/context-usage.d.ts +12 -2
- package/dist/types/plan-mode/plan-files.d.ts +10 -0
- package/dist/types/registry/agent-lifecycle.d.ts +21 -9
- package/dist/types/registry/agent-registry.d.ts +11 -4
- package/dist/types/sdk.d.ts +15 -1
- package/dist/types/secrets/index.d.ts +15 -2
- package/dist/types/secrets/obfuscator.d.ts +113 -15
- package/dist/types/session/acp-permission-gate.d.ts +19 -0
- package/dist/types/session/agent-session-events.d.ts +84 -0
- package/dist/types/session/agent-session-types.d.ts +314 -0
- package/dist/types/session/agent-session.d.ts +118 -755
- package/dist/types/session/async-job-delivery.d.ts +28 -0
- package/dist/types/session/bash-runner.d.ts +75 -0
- package/dist/types/session/blob-store.d.ts +11 -1
- package/dist/types/session/blob-store.test.d.ts +1 -0
- package/dist/types/session/checkpoint-entries.d.ts +28 -0
- package/dist/types/session/eval-runner.d.ts +49 -0
- package/dist/types/session/irc-bridge.d.ts +46 -0
- package/dist/types/session/messages.d.ts +22 -0
- package/dist/types/session/model-controls.d.ts +180 -0
- package/dist/types/session/prewalk.d.ts +46 -0
- package/dist/types/session/queued-messages.d.ts +22 -0
- package/dist/types/session/redis-session-storage.d.ts +1 -0
- package/dist/types/session/retry-fallback-chains.d.ts +74 -0
- package/dist/types/session/role-models.d.ts +15 -0
- package/dist/types/session/session-advisors.d.ts +228 -0
- package/dist/types/session/session-entries.d.ts +8 -0
- package/dist/types/session/session-handoff.d.ts +70 -0
- package/dist/types/session/session-history-format.d.ts +6 -1
- package/dist/types/session/session-maintenance.d.ts +246 -0
- package/dist/types/session/session-manager.d.ts +41 -0
- package/dist/types/session/session-memory.d.ts +56 -0
- package/dist/types/session/session-provider-boundary.d.ts +62 -0
- package/dist/types/session/session-stats.d.ts +48 -0
- package/dist/types/session/session-tools.d.ts +143 -0
- package/dist/types/session/session-workspace.d.ts +32 -0
- package/dist/types/session/stream-guards.d.ts +44 -0
- package/dist/types/session/todo-tracker.d.ts +56 -0
- package/dist/types/session/ttsr-coordinator.d.ts +51 -0
- package/dist/types/session/turn-recovery.d.ts +225 -0
- package/dist/types/system-prompt.d.ts +2 -0
- package/dist/types/task/executor.d.ts +4 -1
- package/dist/types/task/output-manager.d.ts +3 -1
- package/dist/types/tools/approval.d.ts +1 -0
- package/dist/types/tools/browser/launch.d.ts +5 -0
- package/dist/types/tools/image-gen.d.ts +4 -4
- package/dist/types/tools/image-providers.d.ts +38 -0
- package/dist/types/tools/index.d.ts +5 -0
- package/dist/types/tools/path-utils.d.ts +8 -0
- package/dist/types/tools/todo.d.ts +10 -4
- package/dist/types/tools/xdev.d.ts +5 -1
- package/dist/types/tts/streaming-player.d.ts +14 -0
- package/dist/types/tts/vocalizer.d.ts +5 -0
- package/dist/types/utils/jj.d.ts +29 -0
- package/dist/types/utils/lang-from-path.d.ts +1 -0
- package/dist/types/utils/title-generator.d.ts +30 -0
- package/dist/types/vibe/runtime.d.ts +36 -8
- package/dist/types/web/search/index.d.ts +1 -1
- package/dist/types/web/search/provider.d.ts +15 -5
- package/dist/types/web/search/types.d.ts +94 -0
- package/package.json +12 -12
- package/scripts/generate-share-viewer.ts +4 -6
- package/src/advisor/__tests__/advisor.test.ts +643 -0
- package/src/advisor/runtime.ts +144 -43
- package/src/async/job-manager.ts +90 -2
- package/src/cli/args.ts +2 -0
- package/src/cli/auth-gateway-cli.ts +18 -3
- package/src/cli/bench-cli.ts +395 -29
- package/src/cli/flag-tables.ts +3 -0
- package/src/cli/gc-cli.ts +2 -2
- package/src/cli/usage-cli.ts +10 -1
- package/src/collab/host.ts +3 -2
- package/src/commands/bench.ts +18 -4
- package/src/commands/launch.ts +4 -0
- package/src/config/model-registry.ts +10 -2
- package/src/config/models-config-schema.ts +15 -4
- package/src/config/provider-globals.ts +9 -9
- package/src/config/service-tier.ts +26 -1
- package/src/config/settings-schema.ts +209 -51
- package/src/config/settings.ts +81 -2
- package/src/dap/client.ts +37 -4
- package/src/edit/index.ts +49 -12
- package/src/eval/py/executor.ts +103 -33
- package/src/exec/bash-executor.ts +89 -6
- package/src/exec/direnv.ts +145 -0
- package/src/export/html/args.ts +20 -0
- package/src/export/html/index.ts +45 -47
- package/src/export/html/template.css +19 -1
- package/src/export/html/template.html +6 -0
- package/src/export/html/template.js +21 -0
- package/src/export/html/tool-views.generated.js +31 -31
- package/src/export/html/web-palette.ts +116 -132
- package/src/export/share.ts +249 -49
- package/src/extensibility/extensions/loader.ts +29 -1
- package/src/extensibility/extensions/runner.ts +6 -0
- package/src/extensibility/extensions/types.ts +33 -2
- package/src/extensibility/plugins/legacy-pi-compat.ts +19 -1
- package/src/hindsight/state.ts +64 -6
- package/src/internal-urls/local-protocol.ts +2 -1
- package/src/internal-urls/memory-protocol.ts +2 -2
- package/src/internal-urls/skill-protocol.ts +2 -2
- package/src/internal-urls/ssh-protocol.ts +2 -1
- package/src/internal-urls/vault-protocol.ts +2 -1
- package/src/live/audio-worklet.txt +59 -0
- package/src/live/browser-runtime.txt +221 -0
- package/src/live/controller.ts +464 -0
- package/src/live/prompts/agent-final-message.md +3 -0
- package/src/live/prompts/live-instructions.md +23 -0
- package/src/live/protocol.test.ts +140 -0
- package/src/live/protocol.ts +233 -0
- package/src/live/transport.ts +490 -0
- package/src/live/visualizer.ts +234 -0
- package/src/lsp/client.ts +29 -9
- package/src/lsp/index.ts +19 -4
- package/src/main.ts +8 -1
- package/src/mcp/config-writer.test.ts +43 -0
- package/src/mcp/config-writer.ts +109 -82
- package/src/mcp/oauth-discovery.ts +10 -2
- package/src/mcp/smithery-auth.test.ts +29 -0
- package/src/mcp/smithery-auth.ts +3 -2
- package/src/memories/index.ts +40 -20
- package/src/memory-backend/tool-names.ts +2 -0
- package/src/mnemopi/backend.ts +24 -7
- package/src/modes/acp/acp-agent.ts +56 -10
- package/src/modes/acp/acp-event-mapper.ts +8 -1
- package/src/modes/components/agent-hub.ts +1 -1
- package/src/modes/components/login-dialog.ts +14 -4
- package/src/modes/components/plan-review-overlay.ts +350 -35
- package/src/modes/components/settings-defs.ts +23 -1
- package/src/modes/components/settings-selector.ts +169 -1
- package/src/modes/components/status-line/component.jj-cache.test.ts +229 -0
- package/src/modes/components/status-line/component.ts +123 -2
- package/src/modes/components/tool-execution.ts +11 -2
- package/src/modes/controllers/command-controller.ts +56 -15
- package/src/modes/controllers/event-controller.ts +111 -16
- package/src/modes/controllers/extension-ui-controller.test.ts +1 -0
- package/src/modes/controllers/extension-ui-controller.ts +20 -4
- package/src/modes/controllers/live-command-controller.ts +178 -0
- package/src/modes/controllers/mcp-command-controller.ts +10 -1
- package/src/modes/controllers/omfg-controller.ts +44 -40
- package/src/modes/controllers/selector-controller.ts +18 -10
- package/src/modes/controllers/session-focus-controller.ts +6 -1
- package/src/modes/interactive-mode.ts +157 -38
- package/src/modes/runtime-init.ts +2 -0
- package/src/modes/setup-wizard/scenes/web-search.ts +17 -9
- package/src/modes/theme/theme.ts +1 -1
- package/src/modes/types.ts +3 -1
- package/src/modes/utils/context-usage.ts +23 -7
- package/src/modes/utils/ui-helpers.ts +10 -5
- package/src/plan-mode/plan-files.ts +40 -0
- package/src/prompts/bench/cache-prefix-chunk.md +1 -0
- package/src/prompts/bench/cache-prefix.md +3 -0
- package/src/prompts/bench/cache-suffix.md +1 -0
- package/src/prompts/system/custom-system-prompt.md +1 -1
- package/src/prompts/system/project-prompt.md +8 -1
- package/src/prompts/system/subagent-async-pending.md +6 -0
- package/src/prompts/system/system-prompt.md +1 -1
- package/src/prompts/system/workflow-notice.md +48 -40
- package/src/prompts/system/xdev-mount-notice.md +4 -0
- package/src/prompts/tools/todo.md +3 -1
- package/src/registry/agent-lifecycle.ts +116 -46
- package/src/registry/agent-registry.ts +35 -8
- package/src/registry/persisted-agents.ts +26 -2
- package/src/sdk.ts +210 -136
- package/src/secrets/index.ts +127 -4
- package/src/secrets/obfuscator.ts +2328 -105
- package/src/session/acp-permission-gate.ts +165 -0
- package/src/session/agent-session-error-log.test.ts +1 -1
- package/src/session/agent-session-events.ts +66 -0
- package/src/session/agent-session-types.ts +334 -0
- package/src/session/agent-session.ts +1892 -12226
- package/src/session/artifacts.ts +6 -5
- package/src/session/async-job-delivery.ts +74 -0
- package/src/session/bash-runner.ts +326 -0
- package/src/session/blob-store.test.ts +56 -0
- package/src/session/blob-store.ts +18 -2
- package/src/session/checkpoint-entries.ts +81 -0
- package/src/session/eval-runner.ts +212 -0
- package/src/session/indexed-session-storage.ts +9 -2
- package/src/session/irc-bridge.ts +203 -0
- package/src/session/messages.ts +263 -1
- package/src/session/model-controls.ts +714 -0
- package/src/session/prewalk.ts +252 -0
- package/src/session/queued-messages.ts +93 -0
- package/src/session/redis-session-storage.ts +51 -11
- package/src/session/retry-fallback-chains.ts +455 -0
- package/src/session/role-models.ts +85 -0
- package/src/session/session-advisors.ts +1679 -0
- package/src/session/session-context.ts +6 -3
- package/src/session/session-entries.ts +8 -0
- package/src/session/session-handoff.ts +308 -0
- package/src/session/session-history-format.ts +20 -9
- package/src/session/session-loader.ts +0 -46
- package/src/session/session-maintenance.ts +2983 -0
- package/src/session/session-manager.ts +390 -30
- package/src/session/session-memory.ts +222 -0
- package/src/session/session-provider-boundary.ts +307 -0
- package/src/session/session-stats.ts +293 -0
- package/src/session/session-tools.ts +943 -0
- package/src/session/session-workspace.ts +53 -0
- package/src/session/stream-guards.ts +417 -0
- package/src/session/todo-tracker.ts +380 -0
- package/src/session/ttsr-coordinator.ts +496 -0
- package/src/session/turn-recovery.ts +1629 -0
- package/src/slash-commands/builtin-registry.ts +92 -11
- package/src/slash-commands/helpers/usage-report.ts +22 -3
- package/src/system-prompt.ts +41 -17
- package/src/task/executor.ts +285 -70
- package/src/task/index.ts +98 -105
- package/src/task/output-manager.ts +25 -3
- package/src/task/persisted-revive.ts +4 -3
- package/src/task/structured-subagent.ts +1 -0
- package/src/tools/approval.ts +55 -10
- package/src/tools/bash-interactive.ts +26 -0
- package/src/tools/bash-skill-urls.ts +28 -2
- package/src/tools/bash.ts +339 -123
- package/src/tools/browser/launch.ts +9 -1
- package/src/tools/browser/tab-supervisor.ts +8 -5
- package/src/tools/browser.ts +94 -47
- package/src/tools/image-gen.ts +20 -28
- package/src/tools/image-providers.ts +50 -0
- package/src/tools/index.ts +9 -0
- package/src/tools/path-utils.ts +49 -2
- package/src/tools/read.ts +156 -88
- package/src/tools/renderers.ts +7 -1
- package/src/tools/todo.ts +101 -11
- package/src/tools/vibe.ts +1 -2
- package/src/tools/write.ts +51 -1
- package/src/tools/xdev.ts +67 -3
- package/src/tts/streaming-player.ts +62 -4
- package/src/tts/vocalizer.ts +18 -1
- package/src/utils/jj.ts +125 -4
- package/src/utils/lang-from-path.ts +7 -0
- package/src/utils/title-generator.ts +137 -1
- package/src/vibe/runtime.ts +852 -72
- package/src/web/search/index.ts +3 -6
- package/src/web/search/provider.ts +31 -16
- package/src/web/search/providers/xai.ts +7 -1
- package/src/web/search/types.ts +3 -0
|
@@ -1,142 +1,126 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
* client (`my.omp.sh/`) and every public HTML export / share viewer (`/s/<id>`).
|
|
4
|
-
*
|
|
5
|
-
* Why this exists separately from `modes/theme/dark.json`: the `dark` theme is
|
|
6
|
-
* the **default TUI theme** — its amber accent (`#febc38`) drives the terminal
|
|
7
|
-
* status line, syntax highlighting, thinking levels, and bash/python mode
|
|
8
|
-
* colors for every omp user. The public web artifacts want the collab-web
|
|
9
|
-
* pink/purple identity instead, so they pin this palette rather than inheriting
|
|
10
|
-
* the TUI's. Editing `dark.json` to repurpose it for the web would repaint
|
|
11
|
-
* every terminal; this file keeps the two surfaces decoupled.
|
|
12
|
-
*
|
|
13
|
-
* Token layout — emitted as CSS custom properties on `:root`:
|
|
14
|
-
* • Legacy export names consumed by `template.css` / `template.js`
|
|
15
|
-
* (`--text`, `--body-bg`, `--container-bg`, `--info-bg`, `--accent`,
|
|
16
|
-
* `--border`, `--success`, `--error`, `--warning`, `--muted`, `--dim`,
|
|
17
|
-
* `--borderAccent`, `--selectedBg`, `--userMessageBg`, `--customMessageBg`,
|
|
18
|
-
* `--customMessageLabel`, `--mdHeading`, `--mdLink`, `--mdCode`,
|
|
19
|
-
* `--mdListBullet`, `--toolOutput`, `--thinkingText`, syntax*, …).
|
|
20
|
-
* • collab-web-native aliases consumed by the `tv-` tool-render bridge
|
|
21
|
-
* (`tool-render.css`: `var(--bg-inset, …)`, `var(--fg, …)`, …) so embedded
|
|
22
|
-
* tool cards resolve to the *real* collab-web tokens and render
|
|
23
|
-
* pixel-identical to the live client.
|
|
24
|
-
*
|
|
25
|
-
* Alpha-bearing tokens (`--border`, `--ring`, `--accent-muted`, …) keep their
|
|
26
|
-
* `oklch(… / N%)` form — flattening them to opaque hex would produce harsh
|
|
27
|
-
* white borders and non-matching translucent focus rings. Opaque surfaces are
|
|
28
|
-
* sRGB hex (the collab-web `tokens.css` OKLCH dark-theme tokens converted via
|
|
29
|
-
* the standard OKLab→linear-sRGB→gamma path); if the live client palette
|
|
30
|
-
* changes, regenerate those from there.
|
|
31
|
-
*/
|
|
32
|
-
export const WEB_EXPORT_PALETTE = {
|
|
33
|
-
// --- collab-web-native aliases (tv- bridge) ---
|
|
34
|
-
"--bg": "#0f0b14",
|
|
35
|
-
"--bg-raised": "#16111c",
|
|
36
|
-
"--bg-inset": "#09060c",
|
|
37
|
-
"--bg-overlay": "#211b28",
|
|
38
|
-
"--fg": "#e6e3ea",
|
|
39
|
-
"--fg-muted": "#a49faa",
|
|
40
|
-
"--fg-faint": "#6e6974",
|
|
41
|
-
"--accent": "#ed4abf",
|
|
42
|
-
"--accent-muted": "oklch(0.674 0.23 341 / 18%)",
|
|
43
|
-
"--ok": "#68ca80",
|
|
44
|
-
"--err": "#f05653",
|
|
45
|
-
"--warn": "#e4b33f",
|
|
46
|
-
"--ring": "oklch(0.817 0.112 205 / 70%)",
|
|
47
|
-
"--font-mono": 'ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace',
|
|
1
|
+
/** omp web palette bundled into standalone exports and the share viewer. */
|
|
2
|
+
export type WebExportScheme = "dark" | "light";
|
|
48
3
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"--body-bg": "
|
|
52
|
-
"--container-bg": "
|
|
53
|
-
"--info-bg": "
|
|
54
|
-
|
|
55
|
-
"--
|
|
56
|
-
"--
|
|
57
|
-
"--
|
|
58
|
-
"--
|
|
59
|
-
// hairlines — white-alpha, matching collab-web's --border/--border-strong
|
|
60
|
-
"--border": "oklch(1 0 0 / 9%)",
|
|
61
|
-
"--borderMuted": "oklch(1 0 0 / 6%)",
|
|
62
|
-
// accent + brand purple (the gradient's mid stop) for secondary highlights
|
|
4
|
+
const COMMON_EXPORT_PALETTE = {
|
|
5
|
+
"--font-mono": 'ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace',
|
|
6
|
+
"--body-bg": "var(--bg)",
|
|
7
|
+
"--container-bg": "var(--bg-raised)",
|
|
8
|
+
"--info-bg": "var(--bg-inset)",
|
|
9
|
+
"--text": "var(--fg)",
|
|
10
|
+
"--muted": "var(--fg-muted)",
|
|
11
|
+
"--dim": "var(--fg-faint)",
|
|
12
|
+
"--thinkingText": "var(--fg-muted)",
|
|
13
|
+
"--borderMuted": "color-mix(in srgb, var(--border) 67%, transparent)",
|
|
63
14
|
"--borderAccent": "#945ff9",
|
|
64
|
-
"--selectedBg": "
|
|
65
|
-
|
|
66
|
-
"--
|
|
67
|
-
"--
|
|
68
|
-
"--
|
|
69
|
-
|
|
70
|
-
"--
|
|
71
|
-
"--
|
|
72
|
-
"--
|
|
73
|
-
"--
|
|
74
|
-
"--
|
|
75
|
-
|
|
76
|
-
"--
|
|
77
|
-
"--
|
|
78
|
-
"--
|
|
79
|
-
"--
|
|
80
|
-
"--
|
|
81
|
-
|
|
82
|
-
"--
|
|
83
|
-
"--
|
|
84
|
-
"--
|
|
85
|
-
"--
|
|
86
|
-
"--
|
|
87
|
-
"--
|
|
88
|
-
"--
|
|
89
|
-
"--
|
|
90
|
-
"--
|
|
91
|
-
"--
|
|
92
|
-
|
|
93
|
-
"--
|
|
94
|
-
"--
|
|
95
|
-
"--toolDiffContext": "#6e6974",
|
|
96
|
-
// syntax — cool-neutral with pink/purple accents for keywords/types
|
|
97
|
-
"--syntaxComment": "#6e6974", // = --fg-faint
|
|
98
|
-
"--syntaxKeyword": "#945ff9", // brand purple
|
|
99
|
-
"--syntaxFunction": "#e4b33f", // warn amber (analog of dark.json's DCDCAA)
|
|
100
|
-
"--syntaxVariable": "#5ad8e5", // ring cyan
|
|
101
|
-
"--syntaxString": "#68ca80", // ok green
|
|
102
|
-
"--syntaxNumber": "#ed4abf", // accent
|
|
103
|
-
"--syntaxType": "#b281d6", // lilac
|
|
104
|
-
"--syntaxOperator": "#e6e3ea",
|
|
105
|
-
"--syntaxPunctuation": "#a49faa",
|
|
106
|
-
// thinking-level ramp — purple → lilac, matching the brand gradient
|
|
107
|
-
"--thinkingOff": "#6e6974",
|
|
108
|
-
"--thinkingMinimal": "#6e6974",
|
|
15
|
+
"--selectedBg": "var(--accent-muted)",
|
|
16
|
+
"--success": "var(--ok)",
|
|
17
|
+
"--error": "var(--err)",
|
|
18
|
+
"--warning": "var(--warn)",
|
|
19
|
+
"--userMessageBg": "var(--accent-muted)",
|
|
20
|
+
"--userMessageText": "var(--fg)",
|
|
21
|
+
"--customMessageBg": "var(--bg-overlay)",
|
|
22
|
+
"--customMessageText": "var(--fg-muted)",
|
|
23
|
+
"--customMessageLabel": "#945ff9",
|
|
24
|
+
"--toolPendingBg": "var(--bg-raised)",
|
|
25
|
+
"--toolSuccessBg": "var(--bg-inset)",
|
|
26
|
+
"--toolErrorBg": "color-mix(in srgb, var(--err) 14%, transparent)",
|
|
27
|
+
"--toolTitle": "var(--fg)",
|
|
28
|
+
"--toolOutput": "var(--fg-muted)",
|
|
29
|
+
"--mdHeading": "var(--accent)",
|
|
30
|
+
"--mdLink": "var(--link)",
|
|
31
|
+
"--mdLinkUrl": "var(--fg-faint)",
|
|
32
|
+
"--mdCode": "var(--fg)",
|
|
33
|
+
"--mdCodeBlock": "var(--fg)",
|
|
34
|
+
"--mdCodeBlockBorder": "var(--border)",
|
|
35
|
+
"--mdQuote": "var(--fg-muted)",
|
|
36
|
+
"--mdQuoteBorder": "var(--border-strong)",
|
|
37
|
+
"--mdHr": "var(--border)",
|
|
38
|
+
"--mdListBullet": "var(--accent)",
|
|
39
|
+
"--toolDiffAdded": "var(--ok)",
|
|
40
|
+
"--toolDiffRemoved": "var(--err)",
|
|
41
|
+
"--toolDiffContext": "var(--fg-faint)",
|
|
42
|
+
"--syntaxOperator": "var(--fg)",
|
|
43
|
+
"--syntaxPunctuation": "var(--fg-muted)",
|
|
44
|
+
"--thinkingOff": "var(--fg-faint)",
|
|
45
|
+
"--thinkingMinimal": "var(--fg-faint)",
|
|
109
46
|
"--thinkingLow": "#945ff9",
|
|
110
47
|
"--thinkingMedium": "#b281d6",
|
|
111
|
-
"--thinkingHigh": "
|
|
112
|
-
"--thinkingXhigh": "
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"--
|
|
116
|
-
"--
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"--
|
|
120
|
-
"--
|
|
121
|
-
"--
|
|
122
|
-
"--
|
|
123
|
-
"--
|
|
124
|
-
"--
|
|
125
|
-
"--statusLineContext": "#a49faa",
|
|
126
|
-
"--statusLineSpend": "#5ad8e5",
|
|
127
|
-
"--statusLineStaged": "#68ca80",
|
|
128
|
-
"--statusLineDirty": "#e4b33f",
|
|
48
|
+
"--thinkingHigh": "var(--accent)",
|
|
49
|
+
"--thinkingXhigh": "var(--warn)",
|
|
50
|
+
"--bashMode": "#168b9a",
|
|
51
|
+
"--pythonMode": "var(--warn)",
|
|
52
|
+
"--statusLineBg": "var(--bg)",
|
|
53
|
+
"--statusLineSep": "var(--fg-faint)",
|
|
54
|
+
"--statusLineModel": "var(--accent)",
|
|
55
|
+
"--statusLinePath": "#168b9a",
|
|
56
|
+
"--statusLineGitClean": "var(--ok)",
|
|
57
|
+
"--statusLineGitDirty": "var(--warn)",
|
|
58
|
+
"--statusLineContext": "var(--fg-muted)",
|
|
59
|
+
"--statusLineSpend": "#168b9a",
|
|
60
|
+
"--statusLineStaged": "var(--ok)",
|
|
61
|
+
"--statusLineDirty": "var(--warn)",
|
|
129
62
|
"--statusLineUntracked": "#945ff9",
|
|
130
63
|
"--statusLineOutput": "#b281d6",
|
|
131
64
|
"--statusLineCost": "#b281d6",
|
|
132
|
-
"--statusLineSubagents": "
|
|
65
|
+
"--statusLineSubagents": "var(--accent)",
|
|
133
66
|
} as const satisfies Record<string, string>;
|
|
134
67
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
68
|
+
export const WEB_EXPORT_PALETTES = {
|
|
69
|
+
dark: {
|
|
70
|
+
"--bg": "#0f0b14",
|
|
71
|
+
"--bg-raised": "#16111c",
|
|
72
|
+
"--bg-inset": "#09060c",
|
|
73
|
+
"--bg-overlay": "#211b28",
|
|
74
|
+
"--fg": "#e6e3ea",
|
|
75
|
+
"--fg-muted": "#a49faa",
|
|
76
|
+
"--fg-faint": "#6e6974",
|
|
77
|
+
"--accent": "#ed4abf",
|
|
78
|
+
"--accent-muted": "oklch(0.674 0.23 341 / 18%)",
|
|
79
|
+
"--ok": "#68ca80",
|
|
80
|
+
"--err": "#f05653",
|
|
81
|
+
"--warn": "#e4b33f",
|
|
82
|
+
"--border": "oklch(1 0 0 / 9%)",
|
|
83
|
+
"--border-strong": "oklch(1 0 0 / 13%)",
|
|
84
|
+
"--ring": "oklch(0.817 0.112 205 / 70%)",
|
|
85
|
+
"--link": "#5ad8e5",
|
|
86
|
+
"--syntaxComment": "#6e6974",
|
|
87
|
+
"--syntaxKeyword": "#945ff9",
|
|
88
|
+
"--syntaxFunction": "#e4b33f",
|
|
89
|
+
"--syntaxVariable": "#5ad8e5",
|
|
90
|
+
"--syntaxString": "#68ca80",
|
|
91
|
+
"--syntaxNumber": "#ed4abf",
|
|
92
|
+
"--syntaxType": "#b281d6",
|
|
93
|
+
},
|
|
94
|
+
light: {
|
|
95
|
+
"--bg": "oklch(0.985 0.004 307)",
|
|
96
|
+
"--bg-raised": "oklch(1 0 0)",
|
|
97
|
+
"--bg-inset": "oklch(0.95 0.006 307)",
|
|
98
|
+
"--bg-overlay": "oklch(0.965 0.006 307)",
|
|
99
|
+
"--fg": "oklch(0.26 0.03 307)",
|
|
100
|
+
"--fg-muted": "oklch(0.46 0.03 307)",
|
|
101
|
+
"--fg-faint": "oklch(0.58 0.025 307)",
|
|
102
|
+
"--accent": "oklch(0.62 0.23 341)",
|
|
103
|
+
"--accent-muted": "oklch(0.62 0.23 341 / 14%)",
|
|
104
|
+
"--ok": "oklch(0.55 0.13 150)",
|
|
105
|
+
"--err": "oklch(0.55 0.19 25)",
|
|
106
|
+
"--warn": "oklch(0.6 0.13 85)",
|
|
107
|
+
"--border": "oklch(0 0 0 / 10%)",
|
|
108
|
+
"--border-strong": "oklch(0 0 0 / 15%)",
|
|
109
|
+
"--ring": "oklch(0.58 0.13 230 / 70%)",
|
|
110
|
+
"--link": "#0f7a88",
|
|
111
|
+
"--syntaxComment": "#77717c",
|
|
112
|
+
"--syntaxKeyword": "#6d35c7",
|
|
113
|
+
"--syntaxFunction": "#8a6000",
|
|
114
|
+
"--syntaxVariable": "#087f8c",
|
|
115
|
+
"--syntaxString": "#247a3d",
|
|
116
|
+
"--syntaxNumber": "#b51f88",
|
|
117
|
+
"--syntaxType": "#7b3fa2",
|
|
118
|
+
},
|
|
119
|
+
} as const satisfies Record<WebExportScheme, Record<string, string>>;
|
|
120
|
+
|
|
121
|
+
/** Serialize one web color scheme as CSS custom-property declarations. */
|
|
122
|
+
export function webExportThemeVars(scheme: WebExportScheme): string {
|
|
123
|
+
return Object.entries({ ...COMMON_EXPORT_PALETTE, ...WEB_EXPORT_PALETTES[scheme] })
|
|
124
|
+
.map(([key, value]) => `${key}: ${value};`)
|
|
125
|
+
.join(" ");
|
|
142
126
|
}
|