@kolisachint/hoocode-agent 0.5.10 → 0.5.11

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 +34 -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,39 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.11] - 2026-08-12
4
+
5
+ ### Added
6
+
7
+ - Optional `warningBg` theme token: the surface behind a warning notice. Every
8
+ built-in theme sets it to a low-chroma tint of its own warning hue; themes
9
+ that omit it fall back to `customMessageBg`. It joins the other surfaces in
10
+ `test/theme-contrast.test.ts`, so all six accessible themes keep every
11
+ foreground at AAA against it.
12
+
13
+ ### Fixed
14
+
15
+ - The Anthropic subscription billing caveat had two renderings behind one
16
+ once-per-session latch, and the compact one claimed the latch first. On a
17
+ normal startup you only ever saw the fragment `anthropic sub — billed as
18
+ extra usage`; the sentence explaining the consequence ("not against plan
19
+ limits") only appeared on a quiet startup. There is now one message, and it
20
+ says what it costs.
21
+ - The same caveat was resolved with an `await` in front of the startup summary,
22
+ so the splash blocked on an auth lookup that can reach the keychain. It now
23
+ resolves in the background, as it always did on the other code path.
24
+
25
+ ### Changed
26
+
27
+ - Warnings that cost money if missed render as a `warningBg`-filled block with a
28
+ bold title, instead of one more coloured line in a startup already full of
29
+ them. `showWarning` is unchanged for everything else.
30
+ - The startup summary dropped its session state line. Model and thinking level
31
+ were on it and in the footer, which is on screen for the whole session and
32
+ also carries the provider.
33
+ - The collapsed details block on the startup summary dropped its `ctrl+o
34
+ details` hint. The banner already shows `ctrl+o more`, and one keypress
35
+ expands both.
36
+
3
37
  ## [0.5.10] - 2026-08-12
4
38
 
5
39
  ### 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
  /**