llmist 9.6.0 → 10.0.0
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/dist/index.cjs +17 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -1
- package/dist/index.d.ts +30 -1
- package/dist/index.js +16 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -8089,7 +8089,8 @@ var init_executor = __esm({
|
|
|
8089
8089
|
} else {
|
|
8090
8090
|
validatedParameters = schemaAwareParameters;
|
|
8091
8091
|
}
|
|
8092
|
-
const
|
|
8092
|
+
const subagentTimeout = this.subagentConfig?.[call.gadgetName]?.timeoutMs;
|
|
8093
|
+
const timeoutMs = subagentTimeout ?? gadget.timeoutMs ?? this.defaultGadgetTimeoutMs;
|
|
8093
8094
|
const abortController = new AbortController();
|
|
8094
8095
|
let callbackCost = 0;
|
|
8095
8096
|
const reportCost = (amount) => {
|
|
@@ -10648,6 +10649,9 @@ var init_builder = __esm({
|
|
|
10648
10649
|
* **Signal Forwarding** - When parent context includes a signal, it's automatically
|
|
10649
10650
|
* forwarded to the subagent for proper cancellation propagation.
|
|
10650
10651
|
*
|
|
10652
|
+
* **Logger Inheritance** - When parent context includes a logger, it's inherited
|
|
10653
|
+
* by the subagent for consistent structured logging.
|
|
10654
|
+
*
|
|
10651
10655
|
* @param ctx - ExecutionContext passed to the gadget's execute() method
|
|
10652
10656
|
* @param depth - Nesting depth (default: 1 for direct child)
|
|
10653
10657
|
* @returns This builder for chaining
|
|
@@ -10687,6 +10691,9 @@ var init_builder = __esm({
|
|
|
10687
10691
|
if (ctx.signal && !this.signal) {
|
|
10688
10692
|
this.signal = ctx.signal;
|
|
10689
10693
|
}
|
|
10694
|
+
if (ctx.logger && !this.logger) {
|
|
10695
|
+
this.logger = ctx.logger;
|
|
10696
|
+
}
|
|
10690
10697
|
return this;
|
|
10691
10698
|
}
|
|
10692
10699
|
/**
|
|
@@ -11184,6 +11191,7 @@ __export(index_exports, {
|
|
|
11184
11191
|
resolveRetryConfig: () => resolveRetryConfig,
|
|
11185
11192
|
resolveRulesTemplate: () => resolveRulesTemplate,
|
|
11186
11193
|
resolveSubagentModel: () => resolveSubagentModel,
|
|
11194
|
+
resolveSubagentTimeout: () => resolveSubagentTimeout,
|
|
11187
11195
|
resolveValue: () => resolveValue,
|
|
11188
11196
|
resultWithAudio: () => resultWithAudio,
|
|
11189
11197
|
resultWithFile: () => resultWithFile,
|
|
@@ -12377,6 +12385,13 @@ function resolveSubagentModel(ctx, gadgetName, runtimeModel, defaultModel) {
|
|
|
12377
12385
|
handleInherit: true
|
|
12378
12386
|
});
|
|
12379
12387
|
}
|
|
12388
|
+
function resolveSubagentTimeout(ctx, gadgetName, runtimeTimeout, defaultTimeout) {
|
|
12389
|
+
return resolveValue(ctx, gadgetName, {
|
|
12390
|
+
runtime: runtimeTimeout,
|
|
12391
|
+
subagentKey: "timeoutMs",
|
|
12392
|
+
defaultValue: defaultTimeout
|
|
12393
|
+
});
|
|
12394
|
+
}
|
|
12380
12395
|
|
|
12381
12396
|
// src/index.ts
|
|
12382
12397
|
init_anthropic();
|
|
@@ -12811,6 +12826,7 @@ function getHostExports2(ctx) {
|
|
|
12811
12826
|
resolveRetryConfig,
|
|
12812
12827
|
resolveRulesTemplate,
|
|
12813
12828
|
resolveSubagentModel,
|
|
12829
|
+
resolveSubagentTimeout,
|
|
12814
12830
|
resolveValue,
|
|
12815
12831
|
resultWithAudio,
|
|
12816
12832
|
resultWithFile,
|