@kolisachint/hoocode-agent 0.5.39 → 0.5.41
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 +98 -0
- package/dist/core/agent-session.d.ts +10 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +18 -1
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/footer-data-provider.d.ts.map +1 -1
- package/dist/core/footer-data-provider.js +6 -67
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/git-branch.d.ts +35 -0
- package/dist/core/git-branch.d.ts.map +1 -0
- package/dist/core/git-branch.js +88 -0
- package/dist/core/git-branch.js.map +1 -0
- package/dist/core/session-identity.d.ts +25 -0
- package/dist/core/session-identity.d.ts.map +1 -0
- package/dist/core/session-identity.js +137 -0
- package/dist/core/session-identity.js.map +1 -0
- package/dist/core/session-manager.d.ts +38 -4
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +62 -10
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +1 -0
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/modes/interactive/command-executor.d.ts +8 -0
- package/dist/modes/interactive/command-executor.d.ts.map +1 -1
- package/dist/modes/interactive/command-executor.js +39 -11
- package/dist/modes/interactive/command-executor.js.map +1 -1
- package/dist/modes/interactive/components/footer.d.ts +7 -0
- package/dist/modes/interactive/components/footer.d.ts.map +1 -1
- package/dist/modes/interactive/components/footer.js +14 -1
- package/dist/modes/interactive/components/footer.js.map +1 -1
- package/dist/modes/interactive/components/session-chip.d.ts +25 -0
- package/dist/modes/interactive/components/session-chip.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-chip.js +62 -0
- package/dist/modes/interactive/components/session-chip.js.map +1 -0
- package/dist/modes/interactive/components/session-color-selector.d.ts +14 -0
- package/dist/modes/interactive/components/session-color-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-color-selector.js +54 -0
- package/dist/modes/interactive/components/session-color-selector.js.map +1 -0
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +32 -3
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +18 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +75 -4
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/interactive/theme/solarized-dark.json +107 -0
- package/dist/modes/interactive/theme/solarized-light.json +110 -0
- package/dist/modes/interactive/theme/theme.d.ts +24 -0
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +72 -11
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/docs/themes.md +53 -1
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/examples/extensions/sandbox/package.json +1 -1
- package/examples/extensions/with-deps/package.json +1 -1
- package/package.json +4 -4
package/docs/themes.md
CHANGED
|
@@ -44,9 +44,12 @@ Disable discovery with `--no-themes`.
|
|
|
44
44
|
| `vox-light` | cream | Ink on paper; yellow survives as highlight and brand chip |
|
|
45
45
|
| `vox-cutout-light` | cream / Solarized Light | Paper cut-outs: bold flat stocks, cut edges, AAA ink |
|
|
46
46
|
| `vox-cutout-dark` | Solarized Dark | The same cut-outs on newsprint black; AAA ink |
|
|
47
|
+
| `solarized-light` | Solarized Light | The canonical sixteen colors on `base3`; low, selective contrast |
|
|
48
|
+
| `solarized-dark` | Solarized Dark | The same sixteen on `base03`; the accents do not change |
|
|
47
49
|
|
|
48
50
|
The six accessible themes are `high-contrast-*`, `warm-*`, and `colorsafe-*`; the
|
|
49
|
-
`vox-*` themes are style themes and are described separately
|
|
51
|
+
`vox-*` and `solarized-*` themes are style themes and are described separately
|
|
52
|
+
below. The six are built
|
|
50
53
|
for low vision. Every color they
|
|
51
54
|
draw clears **WCAG AAA (7:1)** against every surface the TUI paints behind it —
|
|
52
55
|
the page, selected rows, user messages, and all three tool-box states — and none
|
|
@@ -145,6 +148,55 @@ holds; the sheets simply read a touch louder.
|
|
|
145
148
|
Both themes set the four cut-out token groups described under
|
|
146
149
|
[Optional Tokens](#optional-tokens).
|
|
147
150
|
|
|
151
|
+
### The `solarized-*` pair
|
|
152
|
+
|
|
153
|
+
Ethan Schoonover's Solarized, kept as it was designed rather than corrected. Two
|
|
154
|
+
things define it, and both are enforced by `test/theme-contrast.test.ts`.
|
|
155
|
+
|
|
156
|
+
**One palette, read from both ends.** Solarized is sixteen colors: eight
|
|
157
|
+
monotones on a symmetric CIELAB lightness ramp, and eight accents. The two
|
|
158
|
+
themes are the same ramp with the roles mirrored — `base03`↔`base3` for the
|
|
159
|
+
page, `base02`↔`base2` for the highlight, `base01`↔`base1` for comments and
|
|
160
|
+
tertiary chrome, `base00`↔`base0` for body text — and the eight accents are the
|
|
161
|
+
*same hex* on both grounds. Nothing is retuned per mode: `success` is `green`
|
|
162
|
+
`#859900` and `error` is `red` `#dc322f` whether you are on cream or on slate.
|
|
163
|
+
That is the palette's whole claim, so the pair is checked against each other
|
|
164
|
+
rather than only against their own surfaces.
|
|
165
|
+
|
|
166
|
+
**Low contrast, spent selectively.** Those tones sit well below maximum contrast
|
|
167
|
+
on purpose, and each mode has three content tones rather than a ramp of grays:
|
|
168
|
+
emphasized, body, comment. `text` and `toolTitle` take the emphasized tone (5.6:1
|
|
169
|
+
on `base03`, 5.0:1 on `base3`), `muted` and `toolOutput` the body tone (4.8:1 and
|
|
170
|
+
4.1:1), and `dim` — with quotes, rules and syntax comments — the comment tone, at
|
|
171
|
+
2.0-2.8:1, which is exactly where Solarized puts its comments. Holding this pair
|
|
172
|
+
to the 7:1 floor the accessible themes clear would mean shipping something that
|
|
173
|
+
is not Solarized, so what the tests enforce is the contrast Solarized actually
|
|
174
|
+
has, tier by tier:
|
|
175
|
+
**content inks 3.2:1, accents 2.3:1, the comment tone 1.9:1**, on every surface
|
|
176
|
+
either theme paints *and* on both Solarized terminal stops. If you want a
|
|
177
|
+
guaranteed floor rather than the original, use one of the six accessible themes.
|
|
178
|
+
|
|
179
|
+
Two places where the TUI needs more than the palette ships:
|
|
180
|
+
|
|
181
|
+
- **A sheet per tool state.** Solarized has two background stops and the
|
|
182
|
+
transcript needs one for each of pending, done, failed, extension and notice.
|
|
183
|
+
Each is mixed from the accent that already means that thing and then pulled
|
|
184
|
+
back to the highlight's own lightness, so a state reads through hue and not
|
|
185
|
+
through getting louder — which is what keeps the ink on a tool box at the same
|
|
186
|
+
contrast it has on the page. They are named in `vars` and are the only colors
|
|
187
|
+
in either file that are not canonical.
|
|
188
|
+
- **A neutral for position.** `selectedBg` and the radar mark are neutrals on
|
|
189
|
+
the `base03`→`base01` axis (`base3`→`base1` on the light side), one step off
|
|
190
|
+
the page. Hue carries meaning in these themes; position does not get a hue.
|
|
191
|
+
|
|
192
|
+
`solarized-light` sets `brandBg`/`brandText` so the footer's brand mark reads as
|
|
193
|
+
a `base02` chip — a cyan bright enough to be the accent is not legible as text on
|
|
194
|
+
cream. Neither theme sets the cut-out tokens: paper shadows and headline chips
|
|
195
|
+
are the `vox-cutout-*` voice, and Solarized's is restraint.
|
|
196
|
+
|
|
197
|
+
Point your terminal at the matching Solarized background and the themes sit on
|
|
198
|
+
their own page; on pure white or pure black every floor above still holds.
|
|
199
|
+
|
|
148
200
|
## Selecting a Theme
|
|
149
201
|
|
|
150
202
|
Select a theme via `/settings` or in `settings.json`:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolisachint/hoocode-agent",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.41",
|
|
4
4
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"hoocodeConfig": {
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"prepublishOnly": "npm run clean && npm run build"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@kolisachint/hoocode-agent-core": "^0.5.
|
|
54
|
-
"@kolisachint/hoocode-ai": "^0.5.
|
|
55
|
-
"@kolisachint/hoocode-tui": "^0.5.
|
|
53
|
+
"@kolisachint/hoocode-agent-core": "^0.5.41",
|
|
54
|
+
"@kolisachint/hoocode-ai": "^0.5.41",
|
|
55
|
+
"@kolisachint/hoocode-tui": "^0.5.41",
|
|
56
56
|
"@silvia-odwyer/photon-node": "^0.3.4",
|
|
57
57
|
"chalk": "^5.5.0",
|
|
58
58
|
"cli-highlight": "^2.1.11",
|