@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.
- package/CHANGELOG.md +19 -0
- package/dist/core/agent-session-retry.d.ts.map +1 -1
- package/dist/core/agent-session-retry.js +10 -1
- package/dist/core/agent-session-retry.js.map +1 -1
- package/dist/core/session-identity.d.ts +10 -0
- package/dist/core/session-identity.d.ts.map +1 -1
- package/dist/core/session-identity.js +48 -0
- package/dist/core/session-identity.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +1 -1
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +1 -0
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tools/edit-diff.d.ts +7 -3
- package/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/dist/core/tools/edit-diff.js +156 -65
- package/dist/core/tools/edit-diff.js.map +1 -1
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +5 -4
- package/dist/core/tools/read.js.map +1 -1
- package/dist/modes/interactive/command-executor.d.ts +9 -3
- package/dist/modes/interactive/command-executor.d.ts.map +1 -1
- package/dist/modes/interactive/command-executor.js +16 -8
- package/dist/modes/interactive/command-executor.js.map +1 -1
- package/dist/modes/interactive/components/session-color-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-color-selector.js +5 -2
- package/dist/modes/interactive/components/session-color-selector.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +7 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/utils/sleep.d.ts +9 -0
- package/dist/utils/sleep.d.ts.map +1 -1
- package/dist/utils/sleep.js +11 -1
- package/dist/utils/sleep.js.map +1 -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
|
@@ -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) {
|