@tangle-network/agent-app 0.46.10 → 0.46.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-3HBH5GFN.js → chunk-CCIQXW6N.js} +10 -2
- package/dist/{chunk-3HBH5GFN.js.map → chunk-CCIQXW6N.js.map} +1 -1
- package/dist/sandbox/index.d.ts +11 -5
- package/dist/sandbox/index.js +1 -1
- package/dist/studio-react/index.js +25 -38
- package/dist/studio-react/index.js.map +1 -1
- package/dist/studio-react/studio-generation-screen.d.ts +1 -2
- package/dist/studio-react/studio.css +6 -0
- package/package.json +1 -1
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
flattenHistory,
|
|
113
113
|
readSandboxBinaryBytes,
|
|
114
114
|
statSandboxFileSize
|
|
115
|
-
} from "../chunk-
|
|
115
|
+
} from "../chunk-CCIQXW6N.js";
|
|
116
116
|
import "../chunk-TH7L265V.js";
|
|
117
117
|
import "../chunk-LWSJK546.js";
|
|
118
118
|
import "../chunk-P5PIAQVS.js";
|
|
@@ -748,6 +748,7 @@ function createSandboxPrewarmer(shell, options) {
|
|
|
748
748
|
userId: scope.userId
|
|
749
749
|
});
|
|
750
750
|
if (peek.status === "running") return abandon("already-running");
|
|
751
|
+
if (peek.status === "warming") return abandon("already-warming");
|
|
751
752
|
if (peek.status === "absent" && mode === "resume-only") {
|
|
752
753
|
return abandon("absent-and-resume-only");
|
|
753
754
|
}
|
|
@@ -779,6 +780,7 @@ function createSandboxPrewarmer(shell, options) {
|
|
|
779
780
|
userId: scope.userId
|
|
780
781
|
});
|
|
781
782
|
if (peek.status === "running") return { status: "ready", boxId: peek.box.id };
|
|
783
|
+
if (peek.status === "warming") return { status: "warming" };
|
|
782
784
|
if (inFlight.has(key)) return { status: "warming" };
|
|
783
785
|
if (claim?.isHeld) {
|
|
784
786
|
try {
|
|
@@ -1606,7 +1608,7 @@ async function isReusableBox(box, harness, probe) {
|
|
|
1606
1608
|
async function resumeStoppedBox(box, timeoutMs, onProgress) {
|
|
1607
1609
|
try {
|
|
1608
1610
|
livenessVerifiedAt.delete(box.id);
|
|
1609
|
-
await box.resume();
|
|
1611
|
+
await box.resume({ timeoutMs });
|
|
1610
1612
|
await box.waitFor("running", { timeoutMs, ...onProgress ? { onProgress } : {} });
|
|
1611
1613
|
return ok(box);
|
|
1612
1614
|
} catch (err) {
|
|
@@ -1663,6 +1665,12 @@ async function peekWorkspaceSandbox(shell, options) {
|
|
|
1663
1665
|
const match = boxes.find((box) => box.name === name) ?? boxes.find((box) => box.name === displayName);
|
|
1664
1666
|
if (!match) return { status: "absent" };
|
|
1665
1667
|
if (match.status !== "running") return { status: "not-running", state: match.status, box: match };
|
|
1668
|
+
if (match.filesystemIncarnationReadiness === "transitioning") {
|
|
1669
|
+
return { status: "warming", readiness: "transitioning", box: match };
|
|
1670
|
+
}
|
|
1671
|
+
if (match.filesystemIncarnationReadiness !== "ready") {
|
|
1672
|
+
throw new Error(`sandbox ${match.id} is running without filesystem incarnation readiness`);
|
|
1673
|
+
}
|
|
1666
1674
|
return { status: "running", box: match };
|
|
1667
1675
|
}
|
|
1668
1676
|
async function finalizeExistingBox(shell, client, box, stage, name, workspaceId, userId, harness, scope) {
|
|
@@ -2391,4 +2399,4 @@ export {
|
|
|
2391
2399
|
isTerminalPromptEvent,
|
|
2392
2400
|
detectInteractiveQuestion
|
|
2393
2401
|
};
|
|
2394
|
-
//# sourceMappingURL=chunk-
|
|
2402
|
+
//# sourceMappingURL=chunk-CCIQXW6N.js.map
|