@denizokcu/haze 1.1.0 → 1.2.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 +49 -1
- package/README.md +17 -10
- package/SECURITY.md +1 -1
- package/dist/buildInfo.json +3 -3
- package/dist/cli/chat/busyIndicator.d.ts +11 -0
- package/dist/cli/chat/busyIndicator.js +34 -0
- package/dist/cli/chat/chatMetrics.d.ts +0 -1
- package/dist/cli/chat/chatMetrics.js +1 -7
- package/dist/cli/chat/followUpQueue.d.ts +11 -0
- package/dist/cli/chat/followUpQueue.js +38 -0
- package/dist/cli/chat/messages.d.ts +0 -22
- package/dist/cli/chat/messages.js +40 -85
- package/dist/cli/chat/sessionLifecycle.d.ts +3 -1
- package/dist/cli/chat/sessionLifecycle.js +8 -1
- package/dist/cli/chat/sessionRecorder.d.ts +9 -0
- package/dist/cli/chat/sessionRecorder.js +12 -0
- package/dist/cli/chat/startupSequence.d.ts +29 -0
- package/dist/cli/chat/startupSequence.js +59 -0
- package/dist/cli/chat/transcriptPartition.d.ts +23 -0
- package/dist/cli/chat/transcriptPartition.js +78 -0
- package/dist/cli/chat/wizard/fieldTransitions.d.ts +38 -0
- package/dist/cli/chat/wizard/fieldTransitions.js +43 -0
- package/dist/cli/chat/wizard/lspHandlers.d.ts +4 -0
- package/dist/cli/chat/wizard/lspHandlers.js +85 -0
- package/dist/cli/chat/wizard/mcpHandlers.d.ts +8 -0
- package/dist/cli/chat/wizard/mcpHandlers.js +82 -0
- package/dist/cli/chat/wizard/providerHandlers.d.ts +12 -0
- package/dist/cli/chat/wizard/providerHandlers.js +420 -0
- package/dist/cli/chat/wizard/sessionThemeHandlers.d.ts +4 -0
- package/dist/cli/chat/wizard/sessionThemeHandlers.js +48 -0
- package/dist/cli/chat/wizard/skillsHandlers.d.ts +4 -0
- package/dist/cli/chat/wizard/skillsHandlers.js +125 -0
- package/dist/cli/chat/wizard/types.d.ts +63 -0
- package/dist/cli/chat/wizard/types.js +24 -0
- package/dist/cli/chat/wizard/uiState.d.ts +56 -0
- package/dist/cli/chat/wizard/uiState.js +15 -0
- package/dist/cli/chat/wizardDispatch.d.ts +11 -113
- package/dist/cli/chat/wizardDispatch.js +41 -815
- package/dist/cli/commands/chat.js +69 -110
- package/dist/cli/commands/formatters.d.ts +0 -3
- package/dist/cli/commands/formatters.js +0 -29
- package/dist/cli/commands/runCommand.d.ts +2 -0
- package/dist/cli/commands/runCommand.js +73 -4
- package/dist/cli/commands/streaming/agentAttempt.d.ts +11 -1
- package/dist/cli/commands/streaming/agentAttempt.js +9 -5
- package/dist/cli/commands/streaming/assistantSegments.d.ts +19 -0
- package/dist/cli/commands/streaming/assistantSegments.js +48 -0
- package/dist/cli/commands/streaming/attemptOutcome.d.ts +25 -5
- package/dist/cli/commands/streaming/attemptOutcome.js +69 -16
- package/dist/cli/commands/streaming/attemptSetup.d.ts +10 -3
- package/dist/cli/commands/streaming/attemptSetup.js +30 -13
- package/dist/cli/commands/streaming/goalCheckpoint.d.ts +69 -8
- package/dist/cli/commands/streaming/goalCheckpoint.js +36 -1
- package/dist/cli/commands/streaming/goalSupervisor.d.ts +18 -3
- package/dist/cli/commands/streaming/goalSupervisor.js +71 -12
- package/dist/cli/commands/streaming/prepareStep.d.ts +40 -0
- package/dist/cli/commands/streaming/prepareStep.js +116 -0
- package/dist/cli/commands/streaming/recoverySlices.d.ts +15 -0
- package/dist/cli/commands/streaming/recoverySlices.js +29 -0
- package/dist/cli/commands/streaming/stallRecovery.d.ts +0 -1
- package/dist/cli/commands/streaming/stallRecovery.js +2 -6
- package/dist/cli/commands/streaming/streamLoop.d.ts +31 -4
- package/dist/cli/commands/streaming/streamLoop.js +283 -268
- package/dist/cli/commands/streaming/toolGroupRenderer.js +2 -1
- package/dist/cli/commands/streaming/toolPartHandlers.d.ts +19 -0
- package/dist/cli/commands/streaming/toolPartHandlers.js +108 -0
- package/dist/cli/commands/streaming/turnRuntime.d.ts +1 -1
- package/dist/cli/commands/streaming/turnRuntime.js +3 -2
- package/dist/cli/commands/streaming.d.ts +12 -1
- package/dist/cli/commands/streaming.js +20 -25
- package/dist/cli/index.js +6 -3
- package/dist/config/modelCatalog.d.ts +32 -0
- package/dist/config/modelCatalog.js +84 -0
- package/dist/config/providerPresets.d.ts +7 -0
- package/dist/config/providerPresets.js +195 -391
- package/dist/config/settings.d.ts +10 -2
- package/dist/config/settings.js +3 -0
- package/dist/core/agent/budgets.d.ts +10 -0
- package/dist/core/agent/budgets.js +10 -0
- package/dist/core/agent/compaction.d.ts +42 -3
- package/dist/core/agent/compaction.js +53 -5
- package/dist/core/agent/completionController.d.ts +16 -7
- package/dist/core/agent/completionController.js +13 -6
- package/dist/core/agent/contextBudget.d.ts +56 -0
- package/dist/core/agent/contextBudget.js +53 -0
- package/dist/core/agent/errors.js +2 -2
- package/dist/core/agent/events.d.ts +36 -1
- package/dist/core/agent/goalPolicy.d.ts +4 -3
- package/dist/core/agent/goalPolicy.js +9 -4
- package/dist/core/agent/overflow.d.ts +45 -0
- package/dist/core/agent/overflow.js +91 -0
- package/dist/core/agent/requestAssembly.d.ts +7 -0
- package/dist/core/agent/requestAssembly.js +15 -7
- package/dist/core/agent/workState.d.ts +25 -15
- package/dist/core/agent/workState.js +84 -44
- package/dist/core/safety/shellClassifier.d.ts +16 -0
- package/dist/core/safety/shellClassifier.js +31 -0
- package/dist/core/session/sessionSlimming.js +8 -0
- package/dist/core/session/sessionStore.d.ts +71 -1
- package/dist/core/session/sessionStore.js +121 -6
- package/dist/core/validation/outputParser.d.ts +1 -1
- package/dist/core/validation/outputParser.js +6 -1
- package/dist/llm/client.d.ts +2 -2
- package/dist/llm/client.js +14 -6
- package/dist/llm/hazeTools.d.ts +64 -208
- package/dist/llm/tools/shellTool.js +27 -8
- package/dist/llm/tools/taskTool.d.ts +64 -208
- package/dist/llm/tools/taskTool.js +22 -10
- package/dist/ui/components/TextInput.d.ts +18 -1
- package/dist/ui/components/TextInput.js +50 -73
- package/dist/ui/components/useInputSuggestions.d.ts +27 -0
- package/dist/ui/components/useInputSuggestions.js +98 -0
- package/dist/ui/theme.d.ts +8 -8
- package/dist/ui/theme.js +11 -12
- package/dist/ui/themes/registry.d.ts +5 -0
- package/dist/ui/themes/registry.js +436 -0
- package/dist/utils/format.d.ts +10 -0
- package/dist/utils/format.js +45 -0
- package/package.json +16 -15
- package/dist/ui/themes/af-magic.d.ts +0 -7
- package/dist/ui/themes/af-magic.js +0 -25
- package/dist/ui/themes/agnoster.d.ts +0 -10
- package/dist/ui/themes/agnoster.js +0 -40
- package/dist/ui/themes/bira.d.ts +0 -10
- package/dist/ui/themes/bira.js +0 -28
- package/dist/ui/themes/bureau.d.ts +0 -10
- package/dist/ui/themes/bureau.js +0 -28
- package/dist/ui/themes/clean.d.ts +0 -9
- package/dist/ui/themes/clean.js +0 -27
- package/dist/ui/themes/cloud.d.ts +0 -6
- package/dist/ui/themes/cloud.js +0 -24
- package/dist/ui/themes/dst.d.ts +0 -10
- package/dist/ui/themes/dst.js +0 -28
- package/dist/ui/themes/fishy.d.ts +0 -7
- package/dist/ui/themes/fishy.js +0 -25
- package/dist/ui/themes/index.d.ts +0 -8
- package/dist/ui/themes/index.js +0 -36
- package/dist/ui/themes/light.d.ts +0 -3
- package/dist/ui/themes/light.js +0 -21
- package/dist/ui/themes/purple.d.ts +0 -7
- package/dist/ui/themes/purple.js +0 -26
- package/dist/ui/themes/robbyrussell.d.ts +0 -8
- package/dist/ui/themes/robbyrussell.js +0 -26
- package/dist/ui/themes/solarized-dark.d.ts +0 -16
- package/dist/ui/themes/solarized-dark.js +0 -44
- package/dist/ui/themes/solarized-light.d.ts +0 -12
- package/dist/ui/themes/solarized-light.js +0 -40
- package/dist/ui/themes/steeef.d.ts +0 -11
- package/dist/ui/themes/steeef.js +0 -29
package/dist/ui/themes/bira.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Port of bira.zsh-theme (the ╭─/╰─ two-line prompt):
|
|
3
|
-
* $fg[green]%n@%m (user, non-root) → accent 'green'
|
|
4
|
-
* %B$fg[blue]%~ (cwd, bold) → command 'blue'
|
|
5
|
-
* $fg[yellow]‹branch› → info 'yellow'
|
|
6
|
-
* $fg[red]● (dirty), %? ↵ → danger 'red'
|
|
7
|
-
* $fg[green]‹venv› → success 'green'
|
|
8
|
-
*/
|
|
9
|
-
export const bira = {
|
|
10
|
-
roles: {
|
|
11
|
-
// Classic dark-terminal canvas, one step under the xterm-256 234 surfaces.
|
|
12
|
-
background: '#121212',
|
|
13
|
-
accent: 'green',
|
|
14
|
-
accentDim: 'green',
|
|
15
|
-
border: '236',
|
|
16
|
-
info: 'yellow',
|
|
17
|
-
muted: '245',
|
|
18
|
-
foreground: 'default',
|
|
19
|
-
command: 'blue',
|
|
20
|
-
success: 'green',
|
|
21
|
-
successBg: '22',
|
|
22
|
-
danger: 'red',
|
|
23
|
-
dangerBg: '52',
|
|
24
|
-
warning: 'yellow',
|
|
25
|
-
surfaceBg: '234',
|
|
26
|
-
codeBg: '234',
|
|
27
|
-
},
|
|
28
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { HazeThemeSpec } from '../theme.js';
|
|
2
|
-
/**
|
|
3
|
-
* Port of bureau.zsh-theme [±master ▾●]:
|
|
4
|
-
* $fg_bold[green]± ✓ $ (prompt) → accent 'green'
|
|
5
|
-
* $fg_bold[white]%n %~ (user/path) → command 'white' (cwd), foreground
|
|
6
|
-
* $fg[cyan]▴ (ahead) → info 'cyan'
|
|
7
|
-
* $fg_bold[yellow]● (unstaged) → warning 'yellow'
|
|
8
|
-
* $fg_bold[red]● (untracked) → danger 'red'
|
|
9
|
-
*/
|
|
10
|
-
export declare const bureau: HazeThemeSpec;
|
package/dist/ui/themes/bureau.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Port of bureau.zsh-theme [±master ▾●]:
|
|
3
|
-
* $fg_bold[green]± ✓ $ (prompt) → accent 'green'
|
|
4
|
-
* $fg_bold[white]%n %~ (user/path) → command 'white' (cwd), foreground
|
|
5
|
-
* $fg[cyan]▴ (ahead) → info 'cyan'
|
|
6
|
-
* $fg_bold[yellow]● (unstaged) → warning 'yellow'
|
|
7
|
-
* $fg_bold[red]● (untracked) → danger 'red'
|
|
8
|
-
*/
|
|
9
|
-
export const bureau = {
|
|
10
|
-
roles: {
|
|
11
|
-
// Classic dark-terminal canvas, one step under the xterm-256 234 surfaces.
|
|
12
|
-
background: '#121212',
|
|
13
|
-
accent: 'green',
|
|
14
|
-
accentDim: '236',
|
|
15
|
-
border: '236',
|
|
16
|
-
info: 'cyan',
|
|
17
|
-
muted: '245',
|
|
18
|
-
foreground: 'default',
|
|
19
|
-
command: 'white',
|
|
20
|
-
success: 'green',
|
|
21
|
-
successBg: '22',
|
|
22
|
-
danger: 'red',
|
|
23
|
-
dangerBg: '52',
|
|
24
|
-
warning: 'yellow',
|
|
25
|
-
surfaceBg: '234',
|
|
26
|
-
codeBg: '235',
|
|
27
|
-
},
|
|
28
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { HazeThemeSpec } from '../theme.js';
|
|
2
|
-
/**
|
|
3
|
-
* Port of clean.zsh-theme:
|
|
4
|
-
* $fg_bold[white]%n (user) → accent 'white'
|
|
5
|
-
* $fg_bold[blue]%c/ (cwd) → command 'blue'
|
|
6
|
-
* $fg_bold[blue]( git branch → info 'blue', branch $fg[yellow] → warning
|
|
7
|
-
* $fg_bold[red]✗ (dirty) → danger 'red'
|
|
8
|
-
*/
|
|
9
|
-
export declare const clean: HazeThemeSpec;
|
package/dist/ui/themes/clean.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Port of clean.zsh-theme:
|
|
3
|
-
* $fg_bold[white]%n (user) → accent 'white'
|
|
4
|
-
* $fg_bold[blue]%c/ (cwd) → command 'blue'
|
|
5
|
-
* $fg_bold[blue]( git branch → info 'blue', branch $fg[yellow] → warning
|
|
6
|
-
* $fg_bold[red]✗ (dirty) → danger 'red'
|
|
7
|
-
*/
|
|
8
|
-
export const clean = {
|
|
9
|
-
roles: {
|
|
10
|
-
// Classic dark-terminal canvas, one step under the xterm-256 234 surfaces.
|
|
11
|
-
background: '#121212',
|
|
12
|
-
accent: 'white',
|
|
13
|
-
accentDim: '236',
|
|
14
|
-
border: '236',
|
|
15
|
-
info: 'blue',
|
|
16
|
-
muted: '245',
|
|
17
|
-
foreground: 'default',
|
|
18
|
-
command: 'blue',
|
|
19
|
-
success: 'green',
|
|
20
|
-
successBg: '22',
|
|
21
|
-
danger: 'red',
|
|
22
|
-
dangerBg: '52',
|
|
23
|
-
warning: 'yellow',
|
|
24
|
-
surfaceBg: '234',
|
|
25
|
-
codeBg: '234',
|
|
26
|
-
},
|
|
27
|
-
};
|
package/dist/ui/themes/cloud.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Port of cloud.zsh-theme: $fg_bold[cyan]☁, $fg[green]%c,
|
|
3
|
-
* $fg[green][$fg[cyan]branch, $fg[yellow]⚡ dirty.
|
|
4
|
-
*/
|
|
5
|
-
export const cloud = {
|
|
6
|
-
roles: {
|
|
7
|
-
// Classic dark-terminal canvas, one step under the xterm-256 234 surfaces.
|
|
8
|
-
background: '#121212',
|
|
9
|
-
accent: 'cyan',
|
|
10
|
-
accentDim: '236',
|
|
11
|
-
border: '236',
|
|
12
|
-
info: 'blue',
|
|
13
|
-
muted: '245',
|
|
14
|
-
foreground: 'default',
|
|
15
|
-
command: 'green',
|
|
16
|
-
success: 'green',
|
|
17
|
-
successBg: '22',
|
|
18
|
-
danger: 'red',
|
|
19
|
-
dangerBg: '52',
|
|
20
|
-
warning: 'yellow',
|
|
21
|
-
surfaceBg: '234',
|
|
22
|
-
codeBg: '234',
|
|
23
|
-
},
|
|
24
|
-
};
|
package/dist/ui/themes/dst.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { HazeThemeSpec } from '../theme.js';
|
|
2
|
-
/**
|
|
3
|
-
* Port of dst.zsh-theme:
|
|
4
|
-
* $fg[magenta]%n (user) → accent 'magenta'
|
|
5
|
-
* $fg[yellow]%m (host) → warning 'yellow'
|
|
6
|
-
* $fg_bold[blue]%~ (cwd) → command 'blue'
|
|
7
|
-
* $fg[green]branch prefix → info 'green' $fg[red]! (dirty) → danger 'red'
|
|
8
|
-
* $fg[green][%*] (clock) → success 'green'
|
|
9
|
-
*/
|
|
10
|
-
export declare const dst: HazeThemeSpec;
|
package/dist/ui/themes/dst.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Port of dst.zsh-theme:
|
|
3
|
-
* $fg[magenta]%n (user) → accent 'magenta'
|
|
4
|
-
* $fg[yellow]%m (host) → warning 'yellow'
|
|
5
|
-
* $fg_bold[blue]%~ (cwd) → command 'blue'
|
|
6
|
-
* $fg[green]branch prefix → info 'green' $fg[red]! (dirty) → danger 'red'
|
|
7
|
-
* $fg[green][%*] (clock) → success 'green'
|
|
8
|
-
*/
|
|
9
|
-
export const dst = {
|
|
10
|
-
roles: {
|
|
11
|
-
// Classic dark-terminal canvas, one step under the xterm-256 234 surfaces.
|
|
12
|
-
background: '#121212',
|
|
13
|
-
accent: 'magenta',
|
|
14
|
-
accentDim: 'magenta',
|
|
15
|
-
border: '236',
|
|
16
|
-
info: 'green',
|
|
17
|
-
muted: '245',
|
|
18
|
-
foreground: 'default',
|
|
19
|
-
command: 'blue',
|
|
20
|
-
success: 'green',
|
|
21
|
-
successBg: '22',
|
|
22
|
-
danger: 'red',
|
|
23
|
-
dangerBg: '52',
|
|
24
|
-
warning: 'yellow',
|
|
25
|
-
surfaceBg: '234',
|
|
26
|
-
codeBg: '234',
|
|
27
|
-
},
|
|
28
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { HazeThemeSpec } from '../theme.js';
|
|
2
|
-
/**
|
|
3
|
-
* Port of fishy.zsh-theme: $fg[green]%n and cwd (user_color='green'),
|
|
4
|
-
* $fg_bold[red] exit status, and its git-status markers (+ green, ! blue,
|
|
5
|
-
* - red, > magenta, # yellow, ? cyan).
|
|
6
|
-
*/
|
|
7
|
-
export declare const fishy: HazeThemeSpec;
|
package/dist/ui/themes/fishy.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Port of fishy.zsh-theme: $fg[green]%n and cwd (user_color='green'),
|
|
3
|
-
* $fg_bold[red] exit status, and its git-status markers (+ green, ! blue,
|
|
4
|
-
* - red, > magenta, # yellow, ? cyan).
|
|
5
|
-
*/
|
|
6
|
-
export const fishy = {
|
|
7
|
-
roles: {
|
|
8
|
-
// Classic dark-terminal canvas, one step under the xterm-256 234 surfaces.
|
|
9
|
-
background: '#121212',
|
|
10
|
-
accent: 'green',
|
|
11
|
-
accentDim: 'green',
|
|
12
|
-
border: '236',
|
|
13
|
-
info: 'cyan',
|
|
14
|
-
muted: '245',
|
|
15
|
-
foreground: 'default',
|
|
16
|
-
command: 'green',
|
|
17
|
-
success: 'green',
|
|
18
|
-
successBg: '22',
|
|
19
|
-
danger: 'red',
|
|
20
|
-
dangerBg: '52',
|
|
21
|
-
warning: 'yellow',
|
|
22
|
-
surfaceBg: '234',
|
|
23
|
-
codeBg: '235',
|
|
24
|
-
},
|
|
25
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { HazeThemeSpec } from '../theme.js';
|
|
2
|
-
/**
|
|
3
|
-
* Every built-in theme, keyed by its settings name. Keys must equal their file
|
|
4
|
-
* names (minus `.ts`), mirroring how oh-my-zsh discovers `themes/<name>.zsh-theme`
|
|
5
|
-
* by `ZSH_THEME=<name>`; `tests/ui/theme.test.ts` enforces folder↔registry parity.
|
|
6
|
-
* See AGENTS.md in this folder for how to add/convert themes.
|
|
7
|
-
*/
|
|
8
|
-
export declare const BUILT_IN_THEME_SPECS: Record<string, HazeThemeSpec>;
|
package/dist/ui/themes/index.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { purple } from './purple.js';
|
|
2
|
-
import { light } from './light.js';
|
|
3
|
-
import { afMagic } from './af-magic.js';
|
|
4
|
-
import { agnoster } from './agnoster.js';
|
|
5
|
-
import { bira } from './bira.js';
|
|
6
|
-
import { bureau } from './bureau.js';
|
|
7
|
-
import { clean } from './clean.js';
|
|
8
|
-
import { cloud } from './cloud.js';
|
|
9
|
-
import { dst } from './dst.js';
|
|
10
|
-
import { fishy } from './fishy.js';
|
|
11
|
-
import { robbyrussell } from './robbyrussell.js';
|
|
12
|
-
import { solarizedDark } from './solarized-dark.js';
|
|
13
|
-
import { solarizedLight } from './solarized-light.js';
|
|
14
|
-
import { steeef } from './steeef.js';
|
|
15
|
-
/**
|
|
16
|
-
* Every built-in theme, keyed by its settings name. Keys must equal their file
|
|
17
|
-
* names (minus `.ts`), mirroring how oh-my-zsh discovers `themes/<name>.zsh-theme`
|
|
18
|
-
* by `ZSH_THEME=<name>`; `tests/ui/theme.test.ts` enforces folder↔registry parity.
|
|
19
|
-
* See AGENTS.md in this folder for how to add/convert themes.
|
|
20
|
-
*/
|
|
21
|
-
export const BUILT_IN_THEME_SPECS = {
|
|
22
|
-
purple,
|
|
23
|
-
light,
|
|
24
|
-
'af-magic': afMagic,
|
|
25
|
-
agnoster,
|
|
26
|
-
bira,
|
|
27
|
-
bureau,
|
|
28
|
-
clean,
|
|
29
|
-
cloud,
|
|
30
|
-
dst,
|
|
31
|
-
fishy,
|
|
32
|
-
robbyrussell,
|
|
33
|
-
'solarized-dark': solarizedDark,
|
|
34
|
-
'solarized-light': solarizedLight,
|
|
35
|
-
steeef,
|
|
36
|
-
};
|
package/dist/ui/themes/light.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/** Light-terminal variant of the haze `purple` palette: every fg/bg pair re-tuned together. */
|
|
2
|
-
export const light = {
|
|
3
|
-
roles: {
|
|
4
|
-
// Pure white terminal background; layered surfaces stay slightly off-white.
|
|
5
|
-
background: '#ffffff',
|
|
6
|
-
accent: '#a78bfa',
|
|
7
|
-
accentDim: '#c4b5fd',
|
|
8
|
-
border: '#6b7280',
|
|
9
|
-
info: '#3b82f6',
|
|
10
|
-
muted: '#6b7280',
|
|
11
|
-
foreground: '#1e293b',
|
|
12
|
-
command: '#f59e0b',
|
|
13
|
-
success: '#10b981',
|
|
14
|
-
successBg: '#f0fdf4',
|
|
15
|
-
danger: '#ef4444',
|
|
16
|
-
dangerBg: '#fef2f2',
|
|
17
|
-
warning: '#f59e0b',
|
|
18
|
-
surfaceBg: '#f8fafc',
|
|
19
|
-
codeBg: '#f1f5f9',
|
|
20
|
-
},
|
|
21
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { HazeThemeSpec } from '../theme.js';
|
|
2
|
-
/**
|
|
3
|
-
* haze's own brand palette and the default theme: the purple-fog look that
|
|
4
|
-
* shipped as haze 1.0's hard-coded colors. Selected when `theme` is unset in
|
|
5
|
-
* settings, and the fallback base for roles another theme omits.
|
|
6
|
-
*/
|
|
7
|
-
export declare const purple: HazeThemeSpec;
|
package/dist/ui/themes/purple.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* haze's own brand palette and the default theme: the purple-fog look that
|
|
3
|
-
* shipped as haze 1.0's hard-coded colors. Selected when `theme` is unset in
|
|
4
|
-
* settings, and the fallback base for roles another theme omits.
|
|
5
|
-
*/
|
|
6
|
-
export const purple = {
|
|
7
|
-
roles: {
|
|
8
|
-
// Terminal background: the docs site's darkest haze tone (--terminal-quote),
|
|
9
|
-
// one step under surfaceBg so the user-message block stays visible on it.
|
|
10
|
-
background: '#171127',
|
|
11
|
-
accent: '#a78bfa',
|
|
12
|
-
accentDim: '#6d28d9',
|
|
13
|
-
border: '#6d28d9',
|
|
14
|
-
info: '#60a5fa',
|
|
15
|
-
muted: '#9ca3af',
|
|
16
|
-
foreground: '#f0eef6',
|
|
17
|
-
command: '#ffb86c',
|
|
18
|
-
success: '#39ff14',
|
|
19
|
-
successBg: '#14331f',
|
|
20
|
-
danger: '#fb7185',
|
|
21
|
-
dangerBg: '#3a1720',
|
|
22
|
-
warning: '#fbbf24',
|
|
23
|
-
surfaceBg: '#1f1633',
|
|
24
|
-
codeBg: '#202124',
|
|
25
|
-
},
|
|
26
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { HazeThemeSpec } from '../theme.js';
|
|
2
|
-
/**
|
|
3
|
-
* Port of robbyrussell.zsh-theme (the oh-my-zsh default):
|
|
4
|
-
* $fg_bold[green]➜ → accent 'green' $fg[cyan]%c → command 'cyan'
|
|
5
|
-
* $fg_bold[blue]git:→ info 'blue' $fg[red]branch → danger 'red'
|
|
6
|
-
* $fg[yellow]✗ → warning 'yellow'
|
|
7
|
-
*/
|
|
8
|
-
export declare const robbyrussell: HazeThemeSpec;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Port of robbyrussell.zsh-theme (the oh-my-zsh default):
|
|
3
|
-
* $fg_bold[green]➜ → accent 'green' $fg[cyan]%c → command 'cyan'
|
|
4
|
-
* $fg_bold[blue]git:→ info 'blue' $fg[red]branch → danger 'red'
|
|
5
|
-
* $fg[yellow]✗ → warning 'yellow'
|
|
6
|
-
*/
|
|
7
|
-
export const robbyrussell = {
|
|
8
|
-
roles: {
|
|
9
|
-
// Classic dark-terminal canvas, one step under the xterm-256 234 surfaces.
|
|
10
|
-
background: '#121212',
|
|
11
|
-
accent: 'green',
|
|
12
|
-
accentDim: 'green',
|
|
13
|
-
border: 'black',
|
|
14
|
-
info: 'blue',
|
|
15
|
-
muted: '245',
|
|
16
|
-
foreground: 'default',
|
|
17
|
-
command: 'cyan',
|
|
18
|
-
success: 'green',
|
|
19
|
-
successBg: '22',
|
|
20
|
-
danger: 'red',
|
|
21
|
-
dangerBg: '52',
|
|
22
|
-
warning: 'yellow',
|
|
23
|
-
surfaceBg: '234',
|
|
24
|
-
codeBg: '234',
|
|
25
|
-
},
|
|
26
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { HazeThemeSpec } from '../theme.js';
|
|
2
|
-
/**
|
|
3
|
-
* Port of Solarized Dark (Ethan Schoonover, ethanschoonover.com/solarized).
|
|
4
|
-
* Solarized is a terminal *palette*, not a prompt theme, so the port pins the
|
|
5
|
-
* canonical 16-color mapping as `palette` and writes roles as zsh names.
|
|
6
|
-
*
|
|
7
|
-
* Base tones (dark mode): bg base03, emphasis bg base02, body base0,
|
|
8
|
-
* comments base01. Accent colors are identical in both modes by design —
|
|
9
|
-
* each Solarized accent maps to exactly one haze role:
|
|
10
|
-
* blue #268bd2 → accent violet #6c71c4 → accentDim yellow #b58900 → command
|
|
11
|
-
* cyan #2aa198 → info green #859900 → success orange #cb4b16 → warning
|
|
12
|
-
* red #dc322f → danger
|
|
13
|
-
* All backgrounds use base02 ("bg highlight"), Solarized's own surface tone
|
|
14
|
-
* for selection/diff regions: the accent foreground carries the meaning.
|
|
15
|
-
*/
|
|
16
|
-
export declare const solarizedDark: HazeThemeSpec;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Port of Solarized Dark (Ethan Schoonover, ethanschoonover.com/solarized).
|
|
3
|
-
* Solarized is a terminal *palette*, not a prompt theme, so the port pins the
|
|
4
|
-
* canonical 16-color mapping as `palette` and writes roles as zsh names.
|
|
5
|
-
*
|
|
6
|
-
* Base tones (dark mode): bg base03, emphasis bg base02, body base0,
|
|
7
|
-
* comments base01. Accent colors are identical in both modes by design —
|
|
8
|
-
* each Solarized accent maps to exactly one haze role:
|
|
9
|
-
* blue #268bd2 → accent violet #6c71c4 → accentDim yellow #b58900 → command
|
|
10
|
-
* cyan #2aa198 → info green #859900 → success orange #cb4b16 → warning
|
|
11
|
-
* red #dc322f → danger
|
|
12
|
-
* All backgrounds use base02 ("bg highlight"), Solarized's own surface tone
|
|
13
|
-
* for selection/diff regions: the accent foreground carries the meaning.
|
|
14
|
-
*/
|
|
15
|
-
export const solarizedDark = {
|
|
16
|
-
palette: {
|
|
17
|
-
black: '#002b36', // base03 (ANSI slot 0)
|
|
18
|
-
red: '#dc322f',
|
|
19
|
-
green: '#859900',
|
|
20
|
-
yellow: '#b58900',
|
|
21
|
-
blue: '#268bd2',
|
|
22
|
-
magenta: '#d33682',
|
|
23
|
-
cyan: '#2aa198',
|
|
24
|
-
white: '#eee8d5', // base2 (ANSI slot 7)
|
|
25
|
-
default: '#839496', // base0 — dark-mode body text
|
|
26
|
-
},
|
|
27
|
-
roles: {
|
|
28
|
-
background: '#002b36', // base03 — the dark-mode canvas
|
|
29
|
-
accent: 'blue',
|
|
30
|
-
accentDim: '#6c71c4', // violet
|
|
31
|
-
border: '#586e75', // base01 — chrome structure
|
|
32
|
-
info: 'cyan',
|
|
33
|
-
muted: '#586e75', // base01 — dark-mode comments
|
|
34
|
-
foreground: 'default',
|
|
35
|
-
command: 'yellow',
|
|
36
|
-
success: 'green',
|
|
37
|
-
successBg: '#073642', // base02
|
|
38
|
-
danger: 'red',
|
|
39
|
-
dangerBg: '#073642', // base02
|
|
40
|
-
warning: '#cb4b16', // orange
|
|
41
|
-
surfaceBg: '#073642', // base02
|
|
42
|
-
codeBg: '#073642', // base02
|
|
43
|
-
},
|
|
44
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { HazeThemeSpec } from '../theme.js';
|
|
2
|
-
/**
|
|
3
|
-
* Port of Solarized Light (Ethan Schoonover, ethanschoonover.com/solarized).
|
|
4
|
-
* Same accent palette as `solarized-dark` — Solarized's two modes swap only
|
|
5
|
-
* the base tones, never the accent colors:
|
|
6
|
-
* dark: bg base03, surfaces base02, body base0, comments base01
|
|
7
|
-
* light: bg base3, surfaces base2, body base00, comments base1
|
|
8
|
-
* Role → accent mapping is identical to solarized-dark (see its comment);
|
|
9
|
-
* orange/red gain contrast on light while yellow softens, exactly as in the
|
|
10
|
-
* source palette.
|
|
11
|
-
*/
|
|
12
|
-
export declare const solarizedLight: HazeThemeSpec;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Port of Solarized Light (Ethan Schoonover, ethanschoonover.com/solarized).
|
|
3
|
-
* Same accent palette as `solarized-dark` — Solarized's two modes swap only
|
|
4
|
-
* the base tones, never the accent colors:
|
|
5
|
-
* dark: bg base03, surfaces base02, body base0, comments base01
|
|
6
|
-
* light: bg base3, surfaces base2, body base00, comments base1
|
|
7
|
-
* Role → accent mapping is identical to solarized-dark (see its comment);
|
|
8
|
-
* orange/red gain contrast on light while yellow softens, exactly as in the
|
|
9
|
-
* source palette.
|
|
10
|
-
*/
|
|
11
|
-
export const solarizedLight = {
|
|
12
|
-
palette: {
|
|
13
|
-
black: '#002b36', // base03 (ANSI slot 0)
|
|
14
|
-
red: '#dc322f',
|
|
15
|
-
green: '#859900',
|
|
16
|
-
yellow: '#b58900',
|
|
17
|
-
blue: '#268bd2',
|
|
18
|
-
magenta: '#d33682',
|
|
19
|
-
cyan: '#2aa198',
|
|
20
|
-
white: '#eee8d5', // base2 (ANSI slot 7)
|
|
21
|
-
default: '#657b83', // base00 — light-mode body text
|
|
22
|
-
},
|
|
23
|
-
roles: {
|
|
24
|
-
background: '#fdf6e3', // base3 — the light-mode canvas (full Solarized Light)
|
|
25
|
-
accent: 'blue',
|
|
26
|
-
accentDim: '#6c71c4', // violet
|
|
27
|
-
border: '#93a1a1', // base1 — chrome structure on light
|
|
28
|
-
info: 'cyan',
|
|
29
|
-
muted: '#93a1a1', // base1 — light-mode comments
|
|
30
|
-
foreground: 'default',
|
|
31
|
-
command: 'yellow',
|
|
32
|
-
success: 'green',
|
|
33
|
-
successBg: '#eee8d5', // base2
|
|
34
|
-
danger: 'red',
|
|
35
|
-
dangerBg: '#eee8d5', // base2
|
|
36
|
-
warning: '#cb4b16', // orange
|
|
37
|
-
surfaceBg: '#eee8d5', // base2
|
|
38
|
-
codeBg: '#eee8d5', // base2
|
|
39
|
-
},
|
|
40
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { HazeThemeSpec } from '../theme.js';
|
|
2
|
-
/**
|
|
3
|
-
* Port of steeef.zsh-theme (Steve Losh's Prose style), using its 256-color
|
|
4
|
-
* branch — kept numeric so the port stays a transliteration:
|
|
5
|
-
* %F{135}%n (user, purple) → accent '135'
|
|
6
|
-
* %F{166}%m (host, orange), unstaged ● → warning '166'
|
|
7
|
-
* %F{118}%~ (cwd, limegreen) → command/success '118'
|
|
8
|
-
* %F{81}branch (turquoise) → info '81'
|
|
9
|
-
* %F{161}● (untracked, hotpink) → danger '161'
|
|
10
|
-
*/
|
|
11
|
-
export declare const steeef: HazeThemeSpec;
|
package/dist/ui/themes/steeef.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Port of steeef.zsh-theme (Steve Losh's Prose style), using its 256-color
|
|
3
|
-
* branch — kept numeric so the port stays a transliteration:
|
|
4
|
-
* %F{135}%n (user, purple) → accent '135'
|
|
5
|
-
* %F{166}%m (host, orange), unstaged ● → warning '166'
|
|
6
|
-
* %F{118}%~ (cwd, limegreen) → command/success '118'
|
|
7
|
-
* %F{81}branch (turquoise) → info '81'
|
|
8
|
-
* %F{161}● (untracked, hotpink) → danger '161'
|
|
9
|
-
*/
|
|
10
|
-
export const steeef = {
|
|
11
|
-
roles: {
|
|
12
|
-
// Classic dark-terminal canvas, one step under the xterm-256 234 surfaces.
|
|
13
|
-
background: '#121212',
|
|
14
|
-
accent: '135',
|
|
15
|
-
accentDim: '61',
|
|
16
|
-
border: '236',
|
|
17
|
-
info: '81',
|
|
18
|
-
muted: '245',
|
|
19
|
-
foreground: 'default',
|
|
20
|
-
command: '118',
|
|
21
|
-
success: '118',
|
|
22
|
-
successBg: '22',
|
|
23
|
-
danger: '161',
|
|
24
|
-
dangerBg: '52',
|
|
25
|
-
warning: '166',
|
|
26
|
-
surfaceBg: '234',
|
|
27
|
-
codeBg: '235',
|
|
28
|
-
},
|
|
29
|
-
};
|