@kolisachint/hoocode-agent 0.4.72 → 0.4.74
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 +41 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +1 -1
- package/dist/cli/args.js.map +1 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +19 -15
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/model-registry.d.ts.map +1 -1
- package/dist/core/model-registry.js +0 -1
- package/dist/core/model-registry.js.map +1 -1
- package/dist/core/routing/local-inference.d.ts +14 -15
- package/dist/core/routing/local-inference.d.ts.map +1 -1
- package/dist/core/routing/local-inference.js +6 -15
- package/dist/core/routing/local-inference.js.map +1 -1
- package/dist/core/subagent-pool-instance.d.ts.map +1 -1
- package/dist/core/subagent-pool-instance.js +27 -0
- package/dist/core/subagent-pool-instance.js.map +1 -1
- package/dist/core/subagent-pool.d.ts +26 -0
- package/dist/core/subagent-pool.d.ts.map +1 -1
- package/dist/core/subagent-pool.js +65 -18
- package/dist/core/subagent-pool.js.map +1 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +4 -0
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/task-store.d.ts +7 -0
- package/dist/core/task-store.d.ts.map +1 -1
- package/dist/core/task-store.js +3 -0
- package/dist/core/task-store.js.map +1 -1
- package/dist/modes/interactive/components/task-panel.d.ts.map +1 -1
- package/dist/modes/interactive/components/task-panel.js +4 -1
- package/dist/modes/interactive/components/task-panel.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
|
@@ -1499,22 +1499,26 @@ export class AgentSession {
|
|
|
1499
1499
|
// Size band guards local inference globally: only route conversations within
|
|
1500
1500
|
// the configured byte band to the executor. Oversized conversations are slow
|
|
1501
1501
|
// locally and can OOM small machines, so they fall back to the primary model.
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1502
|
+
// Only serialize to measure size when routing is actually engaged (avoids
|
|
1503
|
+
// needless work on the common primary-only path).
|
|
1504
|
+
if (router && executor && executor !== primaryModel) {
|
|
1505
|
+
const conversationBytes = Buffer.byteLength(serializeConversation(convertToLlm(preparation.messagesToSummarize)), "utf8");
|
|
1506
|
+
if (router.withinSizeBand(conversationBytes)) {
|
|
1507
|
+
try {
|
|
1508
|
+
if (!(await this._ensureExecutorServer(signal))) {
|
|
1509
|
+
throw new Error("executor server unavailable");
|
|
1510
|
+
}
|
|
1511
|
+
const { apiKey: exKey, headers: exHeaders } = await this._getRequiredRequestAuth(executor);
|
|
1512
|
+
return await compact(preparation, executor, exKey, exHeaders, customInstructions, signal,
|
|
1513
|
+
// Executor runs without thinking (validated config); summary quality
|
|
1514
|
+
// relies on /no_think via the model's promptSuffix compat setting.
|
|
1515
|
+
"off");
|
|
1516
|
+
}
|
|
1517
|
+
catch (error) {
|
|
1518
|
+
if (signal.aborted)
|
|
1519
|
+
throw error;
|
|
1520
|
+
logLocalInferenceFallback("summarization", error);
|
|
1507
1521
|
}
|
|
1508
|
-
const { apiKey: exKey, headers: exHeaders } = await this._getRequiredRequestAuth(executor);
|
|
1509
|
-
return await compact(preparation, executor, exKey, exHeaders, customInstructions, signal,
|
|
1510
|
-
// Executor runs without thinking (validated config); summary quality
|
|
1511
|
-
// relies on /no_think via the model's promptSuffix compat setting.
|
|
1512
|
-
"off");
|
|
1513
|
-
}
|
|
1514
|
-
catch (error) {
|
|
1515
|
-
if (signal.aborted)
|
|
1516
|
-
throw error;
|
|
1517
|
-
logLocalInferenceFallback("summarization", error);
|
|
1518
1522
|
}
|
|
1519
1523
|
}
|
|
1520
1524
|
return compact(preparation, primaryModel, apiKey, headers, customInstructions, signal, this.thinkingLevel);
|