@tangle-network/agent-runtime 0.86.0 → 0.87.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/agent.js +3 -3
- package/dist/analyst-loop.js +2 -2
- package/dist/{chunk-F7OO2SKB.js → chunk-6XCW3M7W.js} +2 -2
- package/dist/{chunk-EJ7MAQN4.js → chunk-FLVVVBWV.js} +4 -4
- package/dist/{chunk-YPA5MLVE.js → chunk-LCXXIL3U.js} +2 -2
- package/dist/{chunk-U4TS65XZ.js → chunk-MHYF2LIP.js} +2 -2
- package/dist/{chunk-4J6RBI3K.js → chunk-QUXZBZCS.js} +80 -1
- package/dist/chunk-QUXZBZCS.js.map +1 -0
- package/dist/{chunk-3TZOXS7B.js → chunk-VKVNDNG4.js} +56 -20
- package/dist/chunk-VKVNDNG4.js.map +1 -0
- package/dist/index.d.ts +8 -3
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/loop-runner-bin.js +5 -5
- package/dist/loops.d.ts +131 -6
- package/dist/loops.js +7 -3
- package/dist/mcp/bin.js +2 -2
- package/dist/mcp/index.js +4 -4
- package/package.json +1 -1
- package/skills/build-with-agent-runtime/SKILL.md +22 -3
- package/dist/chunk-3TZOXS7B.js.map +0 -1
- package/dist/chunk-4J6RBI3K.js.map +0 -1
- /package/dist/{chunk-F7OO2SKB.js.map → chunk-6XCW3M7W.js.map} +0 -0
- /package/dist/{chunk-EJ7MAQN4.js.map → chunk-FLVVVBWV.js.map} +0 -0
- /package/dist/{chunk-YPA5MLVE.js.map → chunk-LCXXIL3U.js.map} +0 -0
- /package/dist/{chunk-U4TS65XZ.js.map → chunk-MHYF2LIP.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -143,6 +143,10 @@ declare function createOpenAICompatibleBackend<TInput extends AgentBackendInput
|
|
|
143
143
|
* OpenAI Chat Completions `response_format`. Omit for provider default text.
|
|
144
144
|
*/
|
|
145
145
|
responseFormat?: OpenAIChatResponseFormat;
|
|
146
|
+
/** OpenAI Chat Completions `temperature`. Omit for provider default. */
|
|
147
|
+
temperature?: number;
|
|
148
|
+
/** Maximum completion tokens, sent as OpenAI-compatible `max_tokens`. Omit for provider default. */
|
|
149
|
+
maxTokens?: number;
|
|
146
150
|
fetchImpl?: typeof fetch;
|
|
147
151
|
retry?: BackendRetryPolicy;
|
|
148
152
|
}): AgentExecutionBackend<TInput>;
|
|
@@ -1403,8 +1407,9 @@ declare function decideKnowledgeReadiness(report: KnowledgeReadinessReport, opti
|
|
|
1403
1407
|
* This resolver is PURE backend selection. Product concerns — credit hard-cuts,
|
|
1404
1408
|
* fetch-capture shims, D1 platform wiring — stay as product-side WRAPPERS
|
|
1405
1409
|
* around the returned backend. The OpenAI-compat passthrough fields (`tools`,
|
|
1406
|
-
* `toolChoice`, `responseFormat`, `
|
|
1407
|
-
* so a product can advertise its app tools
|
|
1410
|
+
* `toolChoice`, `responseFormat`, `temperature`, `maxTokens`, `fetchImpl`,
|
|
1411
|
+
* `retry`) are forwarded verbatim so a product can advertise its app tools,
|
|
1412
|
+
* preserve generation settings, or install a capturing fetch without
|
|
1408
1413
|
* re-opening the branch this consolidation closes.
|
|
1409
1414
|
*/
|
|
1410
1415
|
|
|
@@ -1416,7 +1421,7 @@ type AgentBackendKind = 'router' | 'tcloud' | 'cli-bridge' | 'sandbox';
|
|
|
1416
1421
|
* inputs so a product keeps its tool advertising / capture-fetch without
|
|
1417
1422
|
* re-implementing the backend branch.
|
|
1418
1423
|
*/
|
|
1419
|
-
type OpenAICompatPassthrough = Pick<Parameters<typeof createOpenAICompatibleBackend>[0], 'tools' | 'toolChoice' | 'responseFormat' | 'fetchImpl' | 'retry'>;
|
|
1424
|
+
type OpenAICompatPassthrough = Pick<Parameters<typeof createOpenAICompatibleBackend>[0], 'tools' | 'toolChoice' | 'responseFormat' | 'temperature' | 'maxTokens' | 'fetchImpl' | 'retry'>;
|
|
1420
1425
|
interface ResolveAgentBackendOptions<TInput extends AgentBackendInput = AgentBackendInput> extends OpenAICompatPassthrough {
|
|
1421
1426
|
/** The chat transport to resolve. */
|
|
1422
1427
|
kind: AgentBackendKind;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mcpToolsForRuntimeMcp,
|
|
3
3
|
mcpToolsForRuntimeMcpSubset
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MHYF2LIP.js";
|
|
5
5
|
import {
|
|
6
6
|
DEFAULT_ROUTER_BASE_URL,
|
|
7
7
|
cleanModelId,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
runLoopRunnerCli,
|
|
21
21
|
selfImproveLoopRunner,
|
|
22
22
|
worktreeLoopRunner
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-FLVVVBWV.js";
|
|
24
24
|
import "./chunk-SGKPNBXE.js";
|
|
25
25
|
import {
|
|
26
26
|
InMemoryRuntimeSessionStore,
|
|
@@ -31,14 +31,14 @@ import {
|
|
|
31
31
|
normalizeBackendStreamEvent,
|
|
32
32
|
nowIso,
|
|
33
33
|
touchSession
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-VKVNDNG4.js";
|
|
35
35
|
import {
|
|
36
36
|
assertModelAllowed,
|
|
37
37
|
composeRuntimeHooks,
|
|
38
38
|
defineRuntimeHooks,
|
|
39
39
|
notifyRuntimeDecisionPoint,
|
|
40
40
|
notifyRuntimeHookEvent
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-6XCW3M7W.js";
|
|
42
42
|
import {
|
|
43
43
|
INTELLIGENCE_WIRE_VERSION,
|
|
44
44
|
buildLoopOtelSpans,
|
|
@@ -48,8 +48,8 @@ import {
|
|
|
48
48
|
loopEventToOtelSpan
|
|
49
49
|
} from "./chunk-UD4BHQMI.js";
|
|
50
50
|
import "./chunk-BZF3KQ6G.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-LCXXIL3U.js";
|
|
52
|
+
import "./chunk-QUXZBZCS.js";
|
|
53
53
|
import {
|
|
54
54
|
agenticGenerator,
|
|
55
55
|
commandVerifier,
|
|
@@ -1494,6 +1494,8 @@ function resolveAgentBackend(opts) {
|
|
|
1494
1494
|
if (opts.tools !== void 0) passthrough.tools = opts.tools;
|
|
1495
1495
|
if (opts.toolChoice !== void 0) passthrough.toolChoice = opts.toolChoice;
|
|
1496
1496
|
if (opts.responseFormat !== void 0) passthrough.responseFormat = opts.responseFormat;
|
|
1497
|
+
if (opts.temperature !== void 0) passthrough.temperature = opts.temperature;
|
|
1498
|
+
if (opts.maxTokens !== void 0) passthrough.maxTokens = opts.maxTokens;
|
|
1497
1499
|
if (opts.fetchImpl !== void 0) passthrough.fetchImpl = opts.fetchImpl;
|
|
1498
1500
|
if (opts.retry !== void 0) passthrough.retry = opts.retry;
|
|
1499
1501
|
return createOpenAICompatibleBackend({
|