@kolisachint/hoocode-agent 0.4.11 → 0.4.13
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 +17 -0
- package/dist/cli/args.d.ts +2 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +3 -0
- package/dist/cli/args.js.map +1 -1
- package/dist/config.d.ts +16 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +22 -0
- package/dist/config.js.map +1 -1
- package/dist/core/subagent-pool-instance.d.ts +19 -0
- package/dist/core/subagent-pool-instance.d.ts.map +1 -0
- package/dist/core/subagent-pool-instance.js +40 -0
- package/dist/core/subagent-pool-instance.js.map +1 -0
- package/dist/core/subagent-pool.d.ts +18 -6
- package/dist/core/subagent-pool.d.ts.map +1 -1
- package/dist/core/subagent-pool.js +35 -12
- package/dist/core/subagent-pool.js.map +1 -1
- package/dist/core/subagent-result.d.ts +34 -0
- package/dist/core/subagent-result.d.ts.map +1 -0
- package/dist/core/subagent-result.js +89 -0
- package/dist/core/subagent-result.js.map +1 -0
- package/dist/core/subagent.d.ts +6 -46
- package/dist/core/subagent.d.ts.map +1 -1
- package/dist/core/subagent.js +5 -141
- package/dist/core/subagent.js.map +1 -1
- package/dist/core/tools/subagent.d.ts +1 -1
- package/dist/core/tools/subagent.d.ts.map +1 -1
- package/dist/core/tools/subagent.js +37 -36
- package/dist/core/tools/subagent.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -0
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
- package/dist/modes/interactive/components/tool-execution.js +38 -6
- package/dist/modes/interactive/components/tool-execution.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +11 -12
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/print-mode.d.ts +2 -0
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +30 -1
- package/dist/modes/print-mode.js.map +1 -1
- package/docs/routing.md +13 -2
- 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
|
@@ -21,7 +21,7 @@ import { BUILT_IN_PROVIDER_DISPLAY_NAMES } from "../../core/provider-display-nam
|
|
|
21
21
|
import { formatMissingSessionCwdPrompt, MissingSessionCwdError } from "../../core/session-cwd.js";
|
|
22
22
|
import { SessionManager } from "../../core/session-manager.js";
|
|
23
23
|
import { BUILTIN_SLASH_COMMANDS } from "../../core/slash-commands.js";
|
|
24
|
-
import {
|
|
24
|
+
import { getSubagentPool } from "../../core/subagent-pool-instance.js";
|
|
25
25
|
import { taskStore } from "../../core/task-store.js";
|
|
26
26
|
import { WORDMARK } from "../../core/wordmark.js";
|
|
27
27
|
import { getChangelogPath, getNewEntries, parseChangelog } from "../../utils/changelog.js";
|
|
@@ -3564,28 +3564,27 @@ export class InteractiveMode {
|
|
|
3564
3564
|
}
|
|
3565
3565
|
this.showStatus(`Spawning ${mode} subagent...`);
|
|
3566
3566
|
try {
|
|
3567
|
-
const
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
model: this.session.model ?? undefined,
|
|
3573
|
-
modelRegistry: this.runtimeHost.services.modelRegistry,
|
|
3574
|
-
signal: undefined,
|
|
3567
|
+
const pool = getSubagentPool(this.session.sessionManager.getCwd());
|
|
3568
|
+
const dispatchResult = await pool.dispatch(task, {
|
|
3569
|
+
forceAgent: mode,
|
|
3570
|
+
model: this.session.model?.id,
|
|
3571
|
+
provider: this.session.model?.provider,
|
|
3575
3572
|
});
|
|
3576
|
-
|
|
3573
|
+
const result = dispatchResult.result;
|
|
3574
|
+
const resultData = result?.result_data;
|
|
3575
|
+
if (result?.ok) {
|
|
3577
3576
|
this.showStatus(`${mode} subagent completed`);
|
|
3578
3577
|
// Inject the subagent answer as a custom message so the user can see it in the chat
|
|
3579
3578
|
this.sessionManager.appendMessage({
|
|
3580
3579
|
role: "custom",
|
|
3581
3580
|
customType: "subagent",
|
|
3582
|
-
content:
|
|
3581
|
+
content: resultData?.summary || "(no output)",
|
|
3583
3582
|
display: true,
|
|
3584
3583
|
timestamp: Date.now(),
|
|
3585
3584
|
});
|
|
3586
3585
|
}
|
|
3587
3586
|
else {
|
|
3588
|
-
this.showError(`Subagent (${mode}) failed: ${result
|
|
3587
|
+
this.showError(`Subagent (${mode}) failed: ${result?.error ?? "unknown error"}`);
|
|
3589
3588
|
}
|
|
3590
3589
|
}
|
|
3591
3590
|
catch (error) {
|