@kolisachint/hoocode-agent 0.5.47 → 0.5.49

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 (40) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/core/agent-session-retry.d.ts.map +1 -1
  3. package/dist/core/agent-session-retry.js +10 -1
  4. package/dist/core/agent-session-retry.js.map +1 -1
  5. package/dist/core/session-identity.d.ts +10 -0
  6. package/dist/core/session-identity.d.ts.map +1 -1
  7. package/dist/core/session-identity.js +48 -0
  8. package/dist/core/session-identity.js.map +1 -1
  9. package/dist/core/slash-commands.d.ts.map +1 -1
  10. package/dist/core/slash-commands.js +1 -1
  11. package/dist/core/slash-commands.js.map +1 -1
  12. package/dist/core/system-prompt.d.ts.map +1 -1
  13. package/dist/core/system-prompt.js +1 -0
  14. package/dist/core/system-prompt.js.map +1 -1
  15. package/dist/core/tools/edit-diff.d.ts +7 -3
  16. package/dist/core/tools/edit-diff.d.ts.map +1 -1
  17. package/dist/core/tools/edit-diff.js +156 -65
  18. package/dist/core/tools/edit-diff.js.map +1 -1
  19. package/dist/core/tools/read.d.ts.map +1 -1
  20. package/dist/core/tools/read.js +5 -4
  21. package/dist/core/tools/read.js.map +1 -1
  22. package/dist/modes/interactive/command-executor.d.ts +9 -3
  23. package/dist/modes/interactive/command-executor.d.ts.map +1 -1
  24. package/dist/modes/interactive/command-executor.js +16 -8
  25. package/dist/modes/interactive/command-executor.js.map +1 -1
  26. package/dist/modes/interactive/components/session-color-selector.d.ts.map +1 -1
  27. package/dist/modes/interactive/components/session-color-selector.js +5 -2
  28. package/dist/modes/interactive/components/session-color-selector.js.map +1 -1
  29. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  30. package/dist/modes/interactive/interactive-mode.js +7 -0
  31. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  32. package/dist/utils/sleep.d.ts +9 -0
  33. package/dist/utils/sleep.d.ts.map +1 -1
  34. package/dist/utils/sleep.js +11 -1
  35. package/dist/utils/sleep.js.map +1 -1
  36. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  37. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  38. package/examples/extensions/sandbox/package.json +1 -1
  39. package/examples/extensions/with-deps/package.json +1 -1
  40. package/package.json +4 -4
@@ -7,6 +7,7 @@ import * as fs from "node:fs";
7
7
  import * as os from "node:os";
8
8
  import * as path from "node:path";
9
9
  import { createCompactionSummaryMessage } from "@kolisachint/hoocode-agent-core";
10
+ import { isLongRetryDelayError } from "@kolisachint/hoocode-ai";
10
11
  import { Box, CombinedAutocompleteProvider, Container, fuzzyFilter, getCapabilities, hyperlink, Loader, Markdown, matchesKey, ProcessTerminal, Spacer, setKeybindings, Text, TUI, } from "@kolisachint/hoocode-tui";
11
12
  import { spawnSync } from "child_process";
12
13
  import { APP_NAME, APP_TITLE, VERSION } from "../../config.js";
@@ -2960,6 +2961,12 @@ export class InteractiveMode {
2960
2961
  }
2961
2962
  showError(errorMessage) {
2962
2963
  const { title, body } = this.splitBlockMessage(errorMessage);
2964
+ // A wait measured in days is a dead end, not a delay, and the block that
2965
+ // reports it is the only place the user finds out. Say what to do about
2966
+ // it there, rather than leaving them to reread a 429 and guess.
2967
+ if (isLongRetryDelayError(errorMessage)) {
2968
+ body.push("Switch to another model with /model, or wait for the provider's quota to reset.");
2969
+ }
2963
2970
  this.showBlock("toolErrorBg", "error", `Error: ${title}`, body);
2964
2971
  }
2965
2972
  showWarning(warningMessage) {