@tangle-network/agent-app 0.60.221 → 0.60.223
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/assistant/index.js +3 -2
- package/dist/assistant/index.js.map +1 -1
- package/dist/chat-react/index.js +2 -1
- package/dist/chat-routes/hybrid-producer.d.ts +93 -0
- package/dist/chat-routes/index.d.ts +1 -0
- package/dist/chat-routes/index.js +116 -3
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/chat-routes/router-producer.d.ts +3 -1
- package/dist/{chunk-A5DGO2XT.js → chunk-2JY3SQD2.js} +2 -2
- package/dist/{chunk-KNTRS7OZ.js → chunk-BQILMP73.js} +70 -115
- package/dist/chunk-BQILMP73.js.map +1 -0
- package/dist/{chunk-2XUIWCRW.js → chunk-DA5XLDZR.js} +7 -2
- package/dist/chunk-DA5XLDZR.js.map +1 -0
- package/dist/{chunk-DMXEPYB5.js → chunk-HDY72UBR.js} +12 -7
- package/dist/chunk-HDY72UBR.js.map +1 -0
- package/dist/chunk-OXUBZ5SE.js +54 -0
- package/dist/chunk-OXUBZ5SE.js.map +1 -0
- package/dist/{chunk-N7WTF5P2.js → chunk-XWJDF34U.js} +10 -2
- package/dist/chunk-XWJDF34U.js.map +1 -0
- package/dist/{chunk-C7WAGXQN.js → chunk-YS2RYZQG.js} +9 -8
- package/dist/{chunk-C7WAGXQN.js.map → chunk-YS2RYZQG.js.map} +1 -1
- package/dist/public-consultation/index.d.ts +1 -1
- package/dist/runtime/index.js +2 -2
- package/dist/runtime/router-turn.d.ts +16 -4
- package/dist/runtime/router-turn.js +1 -1
- package/dist/sandbox/escalation-speculator.d.ts +15 -27
- package/dist/sandbox/index.js +1 -3
- package/dist/sandbox/sandbox-run-tool.d.ts +4 -3
- package/dist/signoff/cli.js +1 -1
- package/dist/signoff/index.js +1 -1
- package/dist/web-react/chat-composer.d.ts +2 -1
- package/dist/web-react/index.js +10 -4
- package/dist/web-react/workspace-prewarm.d.ts +7 -0
- package/dist/workspace-react/index.d.ts +9 -1
- package/dist/workspace-react/index.js +8 -2
- package/dist/workspace-react/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-2XUIWCRW.js.map +0 -1
- package/dist/chunk-DMXEPYB5.js.map +0 -1
- package/dist/chunk-KNTRS7OZ.js.map +0 -1
- package/dist/chunk-N7WTF5P2.js.map +0 -1
- /package/dist/{chunk-A5DGO2XT.js.map → chunk-2JY3SQD2.js.map} +0 -0
|
@@ -1444,9 +1444,6 @@ WHERE key = ?1 AND pending_warm_at = ?2 RETURNING key`, key, warmAt, day, Math.m
|
|
|
1444
1444
|
}
|
|
1445
1445
|
|
|
1446
1446
|
// src/sandbox/escalation-speculator.ts
|
|
1447
|
-
function parsePrewarmHint(value) {
|
|
1448
|
-
return value?.trim().toLowerCase() === "deterministic" ? "deterministic" : "off";
|
|
1449
|
-
}
|
|
1450
1447
|
var DEFAULT_ESCALATION_TOOLS = ["sandbox_run", "sandbox_exec"];
|
|
1451
1448
|
var PROCESS_MEDIA = /^(application\/(pdf|zip|x-zip|gzip|x-tar|vnd\.openxmlformats|vnd\.ms-excel|vnd\.oasis)|text\/(csv|x-python|x-script))/i;
|
|
1452
1449
|
var PROCESS_EXTENSIONS = /\.(pdf|xlsx?|csv|tsv|ods|zip|tar|gz|py|ipynb|js|ts|sh|sql|parquet|json)$/i;
|
|
@@ -1465,13 +1462,16 @@ function createEscalationSpeculator(options) {
|
|
|
1465
1462
|
const tools = new Set(options.escalationTools ?? DEFAULT_ESCALATION_TOOLS);
|
|
1466
1463
|
let fired = null;
|
|
1467
1464
|
const speculate = (hint) => {
|
|
1468
|
-
if (
|
|
1465
|
+
if (fired) return;
|
|
1469
1466
|
fired = hint;
|
|
1470
1467
|
try {
|
|
1471
1468
|
options.onSpeculate?.(hint);
|
|
1472
1469
|
} catch {
|
|
1473
1470
|
}
|
|
1474
|
-
|
|
1471
|
+
try {
|
|
1472
|
+
void Promise.resolve(options.warm()).catch(() => void 0);
|
|
1473
|
+
} catch {
|
|
1474
|
+
}
|
|
1475
1475
|
};
|
|
1476
1476
|
return {
|
|
1477
1477
|
onInput(input) {
|
|
@@ -1479,7 +1479,9 @@ function createEscalationSpeculator(options) {
|
|
|
1479
1479
|
if (hint) speculate(hint);
|
|
1480
1480
|
},
|
|
1481
1481
|
onEvent(event) {
|
|
1482
|
-
if (event.type === "tool_call_start" && event.toolName && tools.has(event.toolName))
|
|
1482
|
+
if ((event.type === "tool_start" || event.type === "tool_call_start") && event.toolName && tools.has(event.toolName)) {
|
|
1483
|
+
speculate("tool-call-start");
|
|
1484
|
+
}
|
|
1483
1485
|
},
|
|
1484
1486
|
get fired() {
|
|
1485
1487
|
return fired;
|
|
@@ -3733,7 +3735,6 @@ export {
|
|
|
3733
3735
|
WARM_LEASE_DECLINED_UNTIL_DDL,
|
|
3734
3736
|
WARM_LEASE_PENDING_DDL,
|
|
3735
3737
|
createD1WarmLeaseStore,
|
|
3736
|
-
parsePrewarmHint,
|
|
3737
3738
|
DEFAULT_ESCALATION_TOOLS,
|
|
3738
3739
|
escalationHints,
|
|
3739
3740
|
createEscalationSpeculator,
|
|
@@ -3793,4 +3794,4 @@ export {
|
|
|
3793
3794
|
isTerminalPromptEvent,
|
|
3794
3795
|
detectInteractiveQuestion
|
|
3795
3796
|
};
|
|
3796
|
-
//# sourceMappingURL=chunk-
|
|
3797
|
+
//# sourceMappingURL=chunk-YS2RYZQG.js.map
|