@kolisachint/hoocode-agent 0.5.10 → 0.5.12

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/modes/interactive/interactive-mode.d.ts +6 -9
  3. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  4. package/dist/modes/interactive/interactive-mode.js +18 -35
  5. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  6. package/dist/modes/interactive/model-controller.d.ts +5 -3
  7. package/dist/modes/interactive/model-controller.d.ts.map +1 -1
  8. package/dist/modes/interactive/model-controller.js +9 -16
  9. package/dist/modes/interactive/model-controller.js.map +1 -1
  10. package/dist/modes/interactive/resource-display.d.ts +0 -5
  11. package/dist/modes/interactive/resource-display.d.ts.map +1 -1
  12. package/dist/modes/interactive/resource-display.js +4 -9
  13. package/dist/modes/interactive/resource-display.js.map +1 -1
  14. package/dist/modes/interactive/theme/colorsafe-dark.json +3 -1
  15. package/dist/modes/interactive/theme/colorsafe-light.json +3 -1
  16. package/dist/modes/interactive/theme/dark.json +2 -0
  17. package/dist/modes/interactive/theme/high-contrast-dark.json +3 -1
  18. package/dist/modes/interactive/theme/high-contrast-light.json +3 -1
  19. package/dist/modes/interactive/theme/light.json +2 -0
  20. package/dist/modes/interactive/theme/theme-schema.json +4 -0
  21. package/dist/modes/interactive/theme/theme.d.ts +1 -1
  22. package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
  23. package/dist/modes/interactive/theme/theme.js +9 -0
  24. package/dist/modes/interactive/theme/theme.js.map +1 -1
  25. package/dist/modes/interactive/theme/vox-dark.json +3 -1
  26. package/dist/modes/interactive/theme/vox-light.json +3 -1
  27. package/dist/modes/interactive/theme/warm-dark.json +3 -1
  28. package/dist/modes/interactive/theme/warm-light.json +3 -1
  29. package/docs/themes.md +7 -0
  30. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  31. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  32. package/examples/extensions/sandbox/package.json +1 -1
  33. package/examples/extensions/with-deps/package.json +1 -1
  34. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.12] - 2026-08-12
4
+
5
+ ## [0.5.11] - 2026-08-12
6
+
7
+ ### Added
8
+
9
+ - Optional `warningBg` theme token: the surface behind a warning notice. Every
10
+ built-in theme sets it to a low-chroma tint of its own warning hue; themes
11
+ that omit it fall back to `customMessageBg`. It joins the other surfaces in
12
+ `test/theme-contrast.test.ts`, so all six accessible themes keep every
13
+ foreground at AAA against it.
14
+
15
+ ### Fixed
16
+
17
+ - The Anthropic subscription billing caveat had two renderings behind one
18
+ once-per-session latch, and the compact one claimed the latch first. On a
19
+ normal startup you only ever saw the fragment `anthropic sub — billed as
20
+ extra usage`; the sentence explaining the consequence ("not against plan
21
+ limits") only appeared on a quiet startup. There is now one message, and it
22
+ says what it costs.
23
+ - The same caveat was resolved with an `await` in front of the startup summary,
24
+ so the splash blocked on an auth lookup that can reach the keychain. It now
25
+ resolves in the background, as it always did on the other code path.
26
+
27
+ ### Changed
28
+
29
+ - Warnings that cost money if missed render as a `warningBg`-filled block with a
30
+ bold title, instead of one more coloured line in a startup already full of
31
+ them. `showWarning` is unchanged for everything else.
32
+ - The startup summary dropped its session state line. Model and thinking level
33
+ were on it and in the footer, which is on screen for the whole session and
34
+ also carries the provider.
35
+ - The collapsed details block on the startup summary dropped its `ctrl+o
36
+ details` hint. The banner already shows `ctrl+o more`, and one keypress
37
+ expands both.
38
+
3
39
  ## [0.5.10] - 2026-08-12
4
40
 
5
41
  ### Fixed
@@ -54,8 +54,6 @@ export declare class InteractiveMode {
54
54
  private lastEscapeTime;
55
55
  private changelogMarkdown;
56
56
  private startupNoticesShown;
57
- /** Billing caveat folded into the startup state line, once resolved. */
58
- private startupAuthNote;
59
57
  private lastStatusSpacer;
60
58
  private lastStatusText;
61
59
  private streamingComponent;
@@ -137,13 +135,6 @@ export declare class InteractiveMode {
137
135
  * the summary never advertises a capability the session cannot use.
138
136
  */
139
137
  private getDispatchableAgentCount;
140
- /**
141
- * One line of session state for the startup summary: the model, its thinking
142
- * level, and any billing caveat. The footer carries the same facts for the
143
- * rest of the session, so this replaces the separate status lines that used
144
- * to be emitted for each of them.
145
- */
146
- private buildSessionStateLine;
147
138
  private bindCurrentSessionExtensions;
148
139
  private applyRuntimeSettings;
149
140
  private rebindCurrentSession;
@@ -301,6 +292,12 @@ export declare class InteractiveMode {
301
292
  clearEditor(): void;
302
293
  showError(errorMessage: string): void;
303
294
  showWarning(warningMessage: string): void;
295
+ /**
296
+ * A warning the user pays for if they miss it. `showWarning` paints one more
297
+ * coloured line in a startup already full of them, so this fills a `warningBg`
298
+ * block instead — the same weight the custom-message box carries.
299
+ */
300
+ showNotice(title: string, body: string[]): void;
304
301
  showNewVersionNotification(newVersion: string): void;
305
302
  showPackageUpdateNotification(packages: string[]): void;
306
303
  /**