@tangle-network/agent-app 0.45.9 → 0.45.11
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/{auth-Bulnsz3V.d.ts → auth-B69PcJjv.d.ts} +1 -1
- package/dist/chat-routes/index.d.ts +1 -1
- package/dist/chat-routes/index.js +1 -1
- package/dist/{chunk-EPOPI77J.js → chunk-WVY5UAXB.js} +10 -2
- package/dist/chunk-WVY5UAXB.js.map +1 -0
- package/dist/design-canvas/index.d.ts +2 -2
- package/dist/{mcp-C-jV_Xe9.d.ts → mcp-Cy9ZXudB.d.ts} +1 -1
- package/dist/runtime/index.d.ts +2 -2
- package/dist/sandbox/index.d.ts +1 -1
- package/dist/sandbox/index.js +1 -1
- package/dist/sequences/index.d.ts +2 -2
- package/dist/tools/index.d.ts +3 -3
- package/package.json +1 -1
- package/dist/chunk-EPOPI77J.js.map +0 -1
|
@@ -70,4 +70,4 @@ declare function authenticateToolRequest(request: Request, opts: AuthenticateOpt
|
|
|
70
70
|
* aliases (`args` / `arguments`) or a bare body. Returns null on non-JSON. */
|
|
71
71
|
declare function readToolArgs<T>(request: Request): Promise<T | null>;
|
|
72
72
|
|
|
73
|
-
export { type AuthenticateOptions as A, DEFAULT_HEADER_NAMES as D, type ToolHeaderNames as T, type ToolAuthResult as a, authenticateToolRequest as b, readToolArgs as r };
|
|
73
|
+
export { type AuthenticateOptions as A, type CapabilitySubject as C, DEFAULT_HEADER_NAMES as D, type ToolHeaderNames as T, type ToolAuthResult as a, authenticateToolRequest as b, readToolArgs as r };
|
|
@@ -16,7 +16,7 @@ import '../contract-CQNvv5th.js';
|
|
|
16
16
|
import '../types-CCeYywdS.js';
|
|
17
17
|
import '../plans/index.js';
|
|
18
18
|
import '@tangle-network/sandbox/core';
|
|
19
|
-
import '../auth-
|
|
19
|
+
import '../auth-B69PcJjv.js';
|
|
20
20
|
import '../types-DbU-oO5h.js';
|
|
21
21
|
import '../harness/index.js';
|
|
22
22
|
import '../model-CdCDfBA9.js';
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
flattenHistory,
|
|
101
101
|
readSandboxBinaryBytes,
|
|
102
102
|
statSandboxFileSize
|
|
103
|
-
} from "../chunk-
|
|
103
|
+
} from "../chunk-WVY5UAXB.js";
|
|
104
104
|
import "../chunk-73F3CKVK.js";
|
|
105
105
|
import "../chunk-LWSJK546.js";
|
|
106
106
|
import "../chunk-C5OIABSB.js";
|
|
@@ -529,6 +529,13 @@ function isSandboxHostCapacityFailure(diagnostics) {
|
|
|
529
529
|
return /host has no available slot|host capacity reservation failed/i.test(cause.message);
|
|
530
530
|
});
|
|
531
531
|
}
|
|
532
|
+
function isSandboxBoxConfigFailure(diagnostics) {
|
|
533
|
+
return diagnostics.causes.some((cause) => {
|
|
534
|
+
if (cause.origin !== "sandbox-api") return false;
|
|
535
|
+
if (typeof cause.message !== "string") return false;
|
|
536
|
+
return /has no recorded egress policy|cannot rebuild the proxy config/i.test(cause.message);
|
|
537
|
+
});
|
|
538
|
+
}
|
|
532
539
|
function sandboxApiEndpointPath(endpoint) {
|
|
533
540
|
if (endpoint.startsWith("/")) return endpoint;
|
|
534
541
|
try {
|
|
@@ -1661,7 +1668,8 @@ async function ensureWorkspaceSandbox(shell, options) {
|
|
|
1661
1668
|
}
|
|
1662
1669
|
function isUnbringableBoxError(error) {
|
|
1663
1670
|
if (error instanceof SandboxRecoveryFailedError) return true;
|
|
1664
|
-
|
|
1671
|
+
const diagnostics = serializeSandboxProvisioningError(error);
|
|
1672
|
+
return isSandboxHostCapacityFailure(diagnostics) || isSandboxBoxConfigFailure(diagnostics);
|
|
1665
1673
|
}
|
|
1666
1674
|
async function provisionWorkspaceSandbox(shell, options) {
|
|
1667
1675
|
const { workspaceId, userId, harness, forceNew, onProgress, billingOwnerId } = options;
|
|
@@ -2224,4 +2232,4 @@ export {
|
|
|
2224
2232
|
isTerminalPromptEvent,
|
|
2225
2233
|
detectInteractiveQuestion
|
|
2226
2234
|
};
|
|
2227
|
-
//# sourceMappingURL=chunk-
|
|
2235
|
+
//# sourceMappingURL=chunk-WVY5UAXB.js.map
|