@axiom-lattice/core 2.1.68 → 2.1.69
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/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +23 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -5617,6 +5617,9 @@ var SandboxLatticeManager = class _SandboxLatticeManager extends BaseLatticeMana
|
|
|
5617
5617
|
projectId: config.projectId,
|
|
5618
5618
|
assistant_id: config.assistant_id
|
|
5619
5619
|
});
|
|
5620
|
+
console.log(
|
|
5621
|
+
`[SandboxLattice] getSandboxFromConfig name=${name} isolation=${policy.vmIsolation} tenantId=${config.tenantId} workspaceId=${config.workspaceId} projectId=${config.projectId} assistant_id=${config.assistant_id} thread_id=${config.thread_id}`
|
|
5622
|
+
);
|
|
5620
5623
|
return this.createSandbox(name, config);
|
|
5621
5624
|
}
|
|
5622
5625
|
async getVolumeBackend(config) {
|
|
@@ -5727,7 +5730,11 @@ var createShellExecTool = ({
|
|
|
5727
5730
|
const runConfig = exe_config?.configurable?.runConfig ?? {};
|
|
5728
5731
|
const sandboxManager = getSandBoxManager();
|
|
5729
5732
|
const sandbox = await sandboxManager.getSandboxFromConfig({
|
|
5730
|
-
|
|
5733
|
+
assistant_id: runConfig.assistant_id || "",
|
|
5734
|
+
thread_id: runConfig.thread_id || "",
|
|
5735
|
+
tenantId: runConfig.tenantId,
|
|
5736
|
+
workspaceId: runConfig.workspaceId,
|
|
5737
|
+
projectId: runConfig.projectId,
|
|
5731
5738
|
vmIsolation
|
|
5732
5739
|
});
|
|
5733
5740
|
const executeResult = await sandbox.shell.execCommand({
|
|
@@ -5786,7 +5793,11 @@ registerToolLattice(
|
|
|
5786
5793
|
const runConfig = exe_config.configurable?.runConfig || {};
|
|
5787
5794
|
const sandboxManager = getSandBoxManager();
|
|
5788
5795
|
const sandbox = await sandboxManager.getSandboxFromConfig({
|
|
5789
|
-
|
|
5796
|
+
assistant_id: runConfig.assistant_id || "",
|
|
5797
|
+
thread_id: runConfig.thread_id || "",
|
|
5798
|
+
tenantId: runConfig.tenantId,
|
|
5799
|
+
workspaceId: runConfig.workspaceId,
|
|
5800
|
+
projectId: runConfig.projectId,
|
|
5790
5801
|
vmIsolation: "global"
|
|
5791
5802
|
});
|
|
5792
5803
|
let inputPath = input.uri;
|
|
@@ -20945,6 +20956,9 @@ var MicrosandboxServiceClient = class {
|
|
|
20945
20956
|
this.apiKey = config.apiKey;
|
|
20946
20957
|
}
|
|
20947
20958
|
async ensureSandbox(name, input) {
|
|
20959
|
+
console.log(
|
|
20960
|
+
`[MicrosandboxClient] ensureSandbox name=${name} image=${input.image ?? "not set"} envKeys=${Object.keys(input.env ?? {}).join(",") || "none"}`
|
|
20961
|
+
);
|
|
20948
20962
|
return this.request(`/api/sandboxes/${encodeURIComponent(name)}`, {
|
|
20949
20963
|
method: "PUT",
|
|
20950
20964
|
body: input
|
|
@@ -21192,8 +21206,12 @@ var MicrosandboxRemoteProvider = class {
|
|
|
21192
21206
|
}
|
|
21193
21207
|
buildEnsureInput(config) {
|
|
21194
21208
|
const defaultMicrosandboxRemoteConfig = getDefaultMicrosandboxRemoteConfig();
|
|
21209
|
+
const image = this.config.image ?? defaultMicrosandboxRemoteConfig.image;
|
|
21210
|
+
console.log(
|
|
21211
|
+
`[MicrosandboxRemote] buildEnsureInput image=${image} from=${this.config.image ? "providerConfig" : "defaultConfig"}`
|
|
21212
|
+
);
|
|
21195
21213
|
return {
|
|
21196
|
-
image
|
|
21214
|
+
image,
|
|
21197
21215
|
cpus: this.config.cpus ?? defaultMicrosandboxRemoteConfig.cpus,
|
|
21198
21216
|
memoryMib: this.config.memoryMib ?? defaultMicrosandboxRemoteConfig.memoryMib,
|
|
21199
21217
|
env: {
|
|
@@ -21358,7 +21376,7 @@ var RemoteSandboxProvider = class {
|
|
|
21358
21376
|
environment: ""
|
|
21359
21377
|
});
|
|
21360
21378
|
}
|
|
21361
|
-
async createSandbox(name) {
|
|
21379
|
+
async createSandbox(name, _config) {
|
|
21362
21380
|
const existing = this.instances.get(name);
|
|
21363
21381
|
if (existing) {
|
|
21364
21382
|
return existing;
|
|
@@ -21495,7 +21513,7 @@ var E2BProvider = class {
|
|
|
21495
21513
|
this.instances = /* @__PURE__ */ new Map();
|
|
21496
21514
|
this.creating = /* @__PURE__ */ new Map();
|
|
21497
21515
|
}
|
|
21498
|
-
async createSandbox(name) {
|
|
21516
|
+
async createSandbox(name, _config) {
|
|
21499
21517
|
const existing = this.instances.get(name);
|
|
21500
21518
|
if (existing) {
|
|
21501
21519
|
const running = await existing.getStatus();
|