@denizokcu/haze 1.0.0 → 1.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 +10 -0
- package/README.md +12 -7
- package/SECURITY.md +3 -1
- package/dist/buildInfo.json +3 -3
- package/dist/cli/chat/TaskBar.js +1 -1
- package/dist/cli/chat/inputSuggestions.js +1 -0
- package/dist/cli/chat/messages.js +3 -3
- package/dist/cli/chat/wizardDispatch.js +10 -0
- package/dist/cli/commands/chat.js +47 -5
- package/dist/cli/commands/commandHelp.js +2 -0
- package/dist/cli/commands/commands.js +2 -0
- package/dist/cli/commands/formatters.js +6 -0
- package/dist/cli/commands/settingsSummary.js +2 -0
- package/dist/cli/commands/themesCommand.d.ts +17 -0
- package/dist/cli/commands/themesCommand.js +24 -0
- package/dist/cli/commands/wizardFlow.d.ts +7 -0
- package/dist/cli/commands/wizardFlow.js +20 -0
- package/dist/config/settings.d.ts +2 -0
- package/dist/config/settings.js +1 -0
- package/dist/core/safety/secretPaths.d.ts +18 -0
- package/dist/core/safety/secretPaths.js +115 -0
- package/dist/llm/hazeTools.js +6 -0
- package/dist/llm/systemPrompt.js +3 -1
- package/dist/llm/toolResultTypes.d.ts +1 -1
- package/dist/llm/tools/failures.d.ts +6 -0
- package/dist/llm/tools/failures.js +8 -2
- package/dist/llm/tools/readRecovery.js +2 -0
- package/dist/llm/tools/shellTool.js +3 -0
- package/dist/llm/tools/workspaceFile.d.ts +4 -3
- package/dist/llm/tools/workspaceFile.js +30 -13
- package/dist/ui/components/Header.js +1 -1
- package/dist/ui/components/MarkdownText.js +10 -10
- package/dist/ui/components/TextInput.d.ts +1 -1
- package/dist/ui/components/TextInput.js +2 -2
- package/dist/ui/terminalColors.d.ts +29 -0
- package/dist/ui/terminalColors.js +47 -0
- package/dist/ui/theme.d.ts +105 -10
- package/dist/ui/theme.js +126 -15
- package/dist/ui/themes/af-magic.d.ts +7 -0
- package/dist/ui/themes/af-magic.js +25 -0
- package/dist/ui/themes/agnoster.d.ts +10 -0
- package/dist/ui/themes/agnoster.js +40 -0
- package/dist/ui/themes/bira.d.ts +10 -0
- package/dist/ui/themes/bira.js +28 -0
- package/dist/ui/themes/bureau.d.ts +10 -0
- package/dist/ui/themes/bureau.js +28 -0
- package/dist/ui/themes/clean.d.ts +9 -0
- package/dist/ui/themes/clean.js +27 -0
- package/dist/ui/themes/cloud.d.ts +6 -0
- package/dist/ui/themes/cloud.js +24 -0
- package/dist/ui/themes/dst.d.ts +10 -0
- package/dist/ui/themes/dst.js +28 -0
- package/dist/ui/themes/fishy.d.ts +7 -0
- package/dist/ui/themes/fishy.js +25 -0
- package/dist/ui/themes/index.d.ts +8 -0
- package/dist/ui/themes/index.js +36 -0
- package/dist/ui/themes/light.d.ts +3 -0
- package/dist/ui/themes/light.js +21 -0
- package/dist/ui/themes/purple.d.ts +7 -0
- package/dist/ui/themes/purple.js +26 -0
- package/dist/ui/themes/robbyrussell.d.ts +8 -0
- package/dist/ui/themes/robbyrussell.js +26 -0
- package/dist/ui/themes/solarized-dark.d.ts +16 -0
- package/dist/ui/themes/solarized-dark.js +44 -0
- package/dist/ui/themes/solarized-light.d.ts +12 -0
- package/dist/ui/themes/solarized-light.js +40 -0
- package/dist/ui/themes/steeef.d.ts +11 -0
- package/dist/ui/themes/steeef.js +29 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
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;
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
};
|