@tangle-network/agent-app 0.45.11 → 0.45.12
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/chat-routes/index.js +1 -1
- package/dist/{chunk-WVY5UAXB.js → chunk-AIZZU6ZW.js} +8 -3
- package/dist/chunk-AIZZU6ZW.js.map +1 -0
- package/dist/{chunk-ZSJRDHCN.js → chunk-S24VVLKV.js} +2 -1
- package/dist/chunk-S24VVLKV.js.map +1 -0
- package/dist/peer-floors/check.js +1 -1
- package/dist/peer-floors/cli.js +1 -1
- package/dist/sandbox/index.d.ts +14 -1
- package/dist/sandbox/index.js +3 -1
- package/package.json +1 -1
- package/dist/chunk-WVY5UAXB.js.map +0 -1
- package/dist/chunk-ZSJRDHCN.js.map +0 -1
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
flattenHistory,
|
|
101
101
|
readSandboxBinaryBytes,
|
|
102
102
|
statSandboxFileSize
|
|
103
|
-
} from "../chunk-
|
|
103
|
+
} from "../chunk-AIZZU6ZW.js";
|
|
104
104
|
import "../chunk-73F3CKVK.js";
|
|
105
105
|
import "../chunk-LWSJK546.js";
|
|
106
106
|
import "../chunk-C5OIABSB.js";
|
|
@@ -1337,6 +1337,7 @@ async function deleteBox(box) {
|
|
|
1337
1337
|
var SHELL_PROMPT_BUDGET_HINT = "If this prompt size is a decision you already made at compose time, mirror it on the shell as `promptBudget: { maxSystemPromptBytes, overBudgetReason }` \u2014 the shell gate is the one that sees the profile actually sent.";
|
|
1338
1338
|
var PROVISION_PAYLOAD_MAX_BYTES = 24e4;
|
|
1339
1339
|
var ENV_VALUE_MAX_BYTES = 12e4;
|
|
1340
|
+
var DEFAULT_PROVISION_TIMEOUT_MS = 12e4;
|
|
1340
1341
|
var ENV_TOTAL_MAX_BYTES = 2e5;
|
|
1341
1342
|
function utf8ByteLength(value) {
|
|
1342
1343
|
return new TextEncoder().encode(typeof value === "string" ? value : JSON.stringify(value ?? null)).byteLength;
|
|
@@ -1678,7 +1679,7 @@ async function provisionWorkspaceSandbox(shell, options) {
|
|
|
1678
1679
|
let name = resolved.name;
|
|
1679
1680
|
let recoveryRestore;
|
|
1680
1681
|
const resources = shell.resources ?? DEFAULT_SANDBOX_RESOURCES;
|
|
1681
|
-
const resumeTimeout =
|
|
1682
|
+
const resumeTimeout = shell.provisionTimeoutMs ?? DEFAULT_PROVISION_TIMEOUT_MS;
|
|
1682
1683
|
const existing = await listRunning(client, name);
|
|
1683
1684
|
if (existing.succeeded && existing.value) {
|
|
1684
1685
|
const found = existing.value;
|
|
@@ -1822,7 +1823,10 @@ async function provisionWorkspaceSandbox(shell, options) {
|
|
|
1822
1823
|
);
|
|
1823
1824
|
assertProvisionPayloadWithinCap(payload ?? {});
|
|
1824
1825
|
let box = await client.create(payload);
|
|
1825
|
-
await box.waitFor("running", {
|
|
1826
|
+
await box.waitFor("running", {
|
|
1827
|
+
timeoutMs: shell.provisionTimeoutMs ?? DEFAULT_PROVISION_TIMEOUT_MS,
|
|
1828
|
+
...onProgress ? { onProgress } : {}
|
|
1829
|
+
});
|
|
1826
1830
|
box = await refreshRuntimeConnection(client, box);
|
|
1827
1831
|
if (deferredFiles.length > 0) {
|
|
1828
1832
|
const written = await writeProfileFilesToBox(box, deferredFiles);
|
|
@@ -2207,6 +2211,7 @@ export {
|
|
|
2207
2211
|
deferredCorpusHash,
|
|
2208
2212
|
PROVISION_PAYLOAD_MAX_BYTES,
|
|
2209
2213
|
ENV_VALUE_MAX_BYTES,
|
|
2214
|
+
DEFAULT_PROVISION_TIMEOUT_MS,
|
|
2210
2215
|
ENV_TOTAL_MAX_BYTES,
|
|
2211
2216
|
assertProvisionPayloadWithinCap,
|
|
2212
2217
|
assertEnvWithinLimits,
|
|
@@ -2232,4 +2237,4 @@ export {
|
|
|
2232
2237
|
isTerminalPromptEvent,
|
|
2233
2238
|
detectInteractiveQuestion
|
|
2234
2239
|
};
|
|
2235
|
-
//# sourceMappingURL=chunk-
|
|
2240
|
+
//# sourceMappingURL=chunk-AIZZU6ZW.js.map
|