@tangle-network/agent-app 0.47.23 → 0.47.24
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 +3 -3
- package/dist/{chunk-PMAQSFJS.js → chunk-3SIQ4CDA.js} +14 -3
- package/dist/chunk-3SIQ4CDA.js.map +1 -0
- package/dist/{chunk-KBJL6LIW.js → chunk-6A7MYOUI.js} +2 -2
- package/dist/chunk-6A7MYOUI.js.map +1 -0
- package/dist/{chunk-P5PIAQVS.js → chunk-FZOGDD2E.js} +2 -2
- package/dist/design-canvas/index.js +1 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/surface-profile.d.ts +4 -4
- package/dist/sandbox/index.d.ts +15 -20
- package/dist/sandbox/index.js +3 -3
- package/dist/sequences/index.js +1 -1
- package/dist/tools/auth.d.ts +8 -7
- package/dist/tools/index.js +2 -2
- package/dist/tools/mcp.d.ts +25 -22
- package/package.json +3 -3
- package/dist/chunk-KBJL6LIW.js.map +0 -1
- package/dist/chunk-PMAQSFJS.js.map +0 -1
- /package/dist/{chunk-P5PIAQVS.js.map → chunk-FZOGDD2E.js.map} +0 -0
|
@@ -41,11 +41,11 @@ import {
|
|
|
41
41
|
flattenHistory,
|
|
42
42
|
readSandboxBinaryBytes,
|
|
43
43
|
statSandboxFileSize
|
|
44
|
-
} from "../chunk-
|
|
44
|
+
} from "../chunk-3SIQ4CDA.js";
|
|
45
45
|
import "../chunk-MCYJON3F.js";
|
|
46
46
|
import "../chunk-LWSJK546.js";
|
|
47
|
-
import "../chunk-
|
|
48
|
-
import "../chunk-
|
|
47
|
+
import "../chunk-FZOGDD2E.js";
|
|
48
|
+
import "../chunk-6A7MYOUI.js";
|
|
49
49
|
import "../chunk-TX6S7XXU.js";
|
|
50
50
|
import "../chunk-UGWQLQDS.js";
|
|
51
51
|
import "../chunk-S5SRJJQG.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-LWSJK546.js";
|
|
10
10
|
import {
|
|
11
11
|
buildAppToolMcpServer
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6A7MYOUI.js";
|
|
13
13
|
import {
|
|
14
14
|
resolveTangleExecutionEnvironment,
|
|
15
15
|
trimOrNull
|
|
@@ -1833,6 +1833,11 @@ async function peekWorkspaceSandbox(shell, options) {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
return { status: "running", box: match };
|
|
1835
1835
|
}
|
|
1836
|
+
async function resolveWorkspaceRuntimeEnv(shell, scope) {
|
|
1837
|
+
const env = await shell.runtimeEnv?.(scope) ?? {};
|
|
1838
|
+
assertEnvWithinLimits(env);
|
|
1839
|
+
return env;
|
|
1840
|
+
}
|
|
1836
1841
|
async function finalizeExistingBox(shell, client, box, stage, name, workspaceId, userId, harness, scope) {
|
|
1837
1842
|
await assertExistingBoxEgress(box, shell.egressPolicy, shell.migrateEgressPolicy, stage, name);
|
|
1838
1843
|
const written = await materializeDeferredFilesForExistingBox(
|
|
@@ -1849,6 +1854,10 @@ async function finalizeExistingBox(shell, client, box, stage, name, workspaceId,
|
|
|
1849
1854
|
throw deferredProfileWriteFailed(stage, name, written.error);
|
|
1850
1855
|
}
|
|
1851
1856
|
const finalBox = written.value;
|
|
1857
|
+
const runtimeEnv = await resolveWorkspaceRuntimeEnv(shell, scope);
|
|
1858
|
+
if (Object.keys(runtimeEnv).length > 0) {
|
|
1859
|
+
await finalBox.setRuntimeEnv(runtimeEnv);
|
|
1860
|
+
}
|
|
1852
1861
|
if (shell.bootstrap) {
|
|
1853
1862
|
const boot = await shell.bootstrap(finalBox, scope);
|
|
1854
1863
|
if (!boot.succeeded) {
|
|
@@ -2098,11 +2107,13 @@ async function provisionWorkspaceSandbox(shell, options) {
|
|
|
2098
2107
|
connectedIntegrationIds,
|
|
2099
2108
|
...userId ? { userId } : {}
|
|
2100
2109
|
};
|
|
2101
|
-
const [secrets,
|
|
2110
|
+
const [secrets, creationEnv, runtimeEnv, files] = await Promise.all([
|
|
2102
2111
|
shell.secrets(workspaceId),
|
|
2103
2112
|
shell.env(buildCtx),
|
|
2113
|
+
resolveWorkspaceRuntimeEnv(shell, scope),
|
|
2104
2114
|
shell.files(buildCtx)
|
|
2105
2115
|
]);
|
|
2116
|
+
const env = { ...creationEnv, ...runtimeEnv };
|
|
2106
2117
|
const fullProfile = shell.profile({ extraFiles: files, harness });
|
|
2107
2118
|
const { leanProfile, deferredFiles } = shell.deferProfileFiles ? splitDeferredProfileFiles(fullProfile) : { leanProfile: fullProfile, deferredFiles: [] };
|
|
2108
2119
|
const profile = leanProfile;
|
|
@@ -2826,4 +2837,4 @@ export {
|
|
|
2826
2837
|
isTerminalPromptEvent,
|
|
2827
2838
|
detectInteractiveQuestion
|
|
2828
2839
|
};
|
|
2829
|
-
//# sourceMappingURL=chunk-
|
|
2840
|
+
//# sourceMappingURL=chunk-3SIQ4CDA.js.map
|