@tangle-network/sandbox 1.0.20 → 1.0.21
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/agent/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bi
|
|
|
2
2
|
import { E as assertCurrentBackendType } from "../interactive-controller-BkfV4Cs_.js";
|
|
3
3
|
import { t as SandboxInstance } from "../sandbox-BAhF5QaX.js";
|
|
4
4
|
import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-ZmDrrk4f.js";
|
|
5
|
-
import { t as Sandbox } from "../client-
|
|
5
|
+
import { t as Sandbox } from "../client-HMGk7nNW.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/agent/instances.ts
|
|
8
8
|
const managers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1317,11 +1317,11 @@ function isLocalSandboxEndpoint(baseUrl) {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
}
|
|
1319
1319
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
1320
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
1320
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-DzovETOu.js");
|
|
1321
1321
|
return discoverLocalCliAuthFiles(backendType);
|
|
1322
1322
|
}
|
|
1323
1323
|
async function loadLocalCliAuthExpectation(backendType) {
|
|
1324
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
1324
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-DzovETOu.js");
|
|
1325
1325
|
return describe(backendType);
|
|
1326
1326
|
}
|
|
1327
1327
|
/**
|
package/dist/core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as ManagedProcessClient, r as WorkspaceImages, t as SandboxInstance } from "./sandbox-BAhF5QaX.js";
|
|
2
2
|
import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, d as FileWriteConflictError, g as NotFoundError, h as NetworkError, s as CapabilityError, v as ProfileFileMountPathError, x as SandboxError, y as QuotaError } from "./errors-ZmDrrk4f.js";
|
|
3
|
-
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-
|
|
3
|
+
import { a as InstancesClient, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, p as isBackendRegistryInteractionKind, r as HostedInstance, t as Sandbox, u as backendRegistryEntrySchema } from "./client-HMGk7nNW.js";
|
|
4
4
|
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-BqZOl_io.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
6
|
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, l as sandboxFailureKind, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-DvYE_89H.js";
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { A as requestedPublicProfileDigest, F as createAgentRunOutcomeTracker, I
|
|
|
4
4
|
import { n as agentProfileSchema, r as SANDBOX_SIZE_PRESET_NAMES, t as agentProfileConfidentialSchema } from "./profile-schema-CT3hB1mG.js";
|
|
5
5
|
import { C as materializeProfileFileMounts, E as validateDeferredProfileFileMounts, S as SandboxOperationFailedError, T as splitInlineProfileSkills, _ as collectAgentResponseText, a as buildTraceExportPayload, b as ManagedProcessClient, c as toOtelJson, d as InteractiveSessionHandle, f as InteractiveTerminalFrameLog, g as collectAgentFinalMessageText, h as applySandboxEventText, i as MAX_EGRESS_DENIALS_LIMIT, l as SandboxTaskSession, m as createInteractiveTerminalSession, o as exportTraceBundle, p as createInteractiveTerminalCapture, r as WorkspaceImages, s as otelTraceIdForTangleTrace, t as SandboxInstance, u as SandboxSession, v as getSandboxEventText, w as splitInlineProfileFileMounts, x as SandboxOperation, y as isToolBearingEvent } from "./sandbox-BAhF5QaX.js";
|
|
6
6
|
import { C as StateError, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, b as ResumeEnvRequiredError, c as CompliancePlacementError, d as FileWriteConflictError, f as GpuProviderNotConfiguredError, g as NotFoundError, h as NetworkError, l as EdgeNotReadyError, o as BranchFanoutExceedsHostError, p as KeyBudgetExhaustedError, s as CapabilityError, t as TerminalStreamError, u as EgressProxyRecoveryError, v as ProfileFileMountPathError, w as StreamInterruptedError, x as SandboxError, y as QuotaError } from "./errors-ZmDrrk4f.js";
|
|
7
|
-
import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-
|
|
7
|
+
import { _ as createBatchResultAccumulator, a as InstancesClient, c as runtimeWorkspaceCwdSchema, d as backendRegistryInteractionKindSchema, f as backendRegistryResponseSchema, g as IntelligenceClient, h as parseBackendRegistryResponseBody, i as InstanceRestartingError, l as backendRegistryCapabilitiesSchema, m as parseBackendRegistryResponse, n as RunsClient, o as SandboxFleetClient, p as isBackendRegistryInteractionKind, r as HostedInstance, s as SandboxFleet, t as Sandbox, u as backendRegistryEntrySchema, v as validateBatchRunRequest } from "./client-HMGk7nNW.js";
|
|
8
8
|
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "./collaboration-BTGTf3We.js";
|
|
9
9
|
import { t as parseSSEStream } from "./sse-parser-CJ52bhG3.js";
|
|
10
10
|
import { i as profileChannelReference, n as SandboxLines, r as lineInstanceKey, t as LinesClient } from "./lines-BqZOl_io.js";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-KtV88h1f.js";
|
|
2
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
3
|
+
import { basename, dirname, join } from "node:path";
|
|
4
|
+
import { homedir } from "node:os";
|
|
5
|
+
//#region ../../../packages/cli-agent-registry/dist/local-cli-auth.mjs
|
|
6
|
+
const DEFAULT_MODE = 384;
|
|
7
|
+
function readAuthFile(sourcePath, targetPath) {
|
|
8
|
+
if (!existsSync(sourcePath)) return null;
|
|
9
|
+
return {
|
|
10
|
+
path: targetPath,
|
|
11
|
+
content: readFileSync(sourcePath, "utf-8"),
|
|
12
|
+
mode: DEFAULT_MODE
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function discoverLocalCliAuthFiles(backendType, options = {}) {
|
|
16
|
+
const env = options.env ?? (options.homeDir === void 0 ? process.env : {});
|
|
17
|
+
const homeDir = options.homeDir ?? (env.HOME || homedir());
|
|
18
|
+
const authPath = AUTH_BUNDLE_PATHS[backendType];
|
|
19
|
+
const configDir = env[backendType === "codex" ? "CODEX_HOME" : "CLAUDE_CONFIG_DIR"] || join(homeDir, dirname(authPath));
|
|
20
|
+
const credentialDir = backendType === "claude-code" ? env.CLAUDE_SECURESTORAGE_CONFIG_DIR || configDir : configDir;
|
|
21
|
+
const authFiles = [authPath, ...backendType === "claude-code" && !options.credentialOnly ? [".claude/settings.json", ".claude/settings.local.json"] : []].map((path) => readAuthFile(join(path === authPath ? credentialDir : configDir, basename(path)), path)).filter((entry) => entry !== null);
|
|
22
|
+
return authFiles.length > 0 ? authFiles : void 0;
|
|
23
|
+
}
|
|
24
|
+
function describeLocalCliAuthExpectation(backendType) {
|
|
25
|
+
if (backendType === "codex") return "auth.json in CODEX_HOME, or ~/.codex when CODEX_HOME is unset";
|
|
26
|
+
return "Claude credential files in CLAUDE_SECURESTORAGE_CONFIG_DIR or CLAUDE_CONFIG_DIR (default ~/.claude)";
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { describeLocalCliAuthExpectation, discoverLocalCliAuthFiles };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -153,15 +153,15 @@
|
|
|
153
153
|
"vitest": "^4.1.12",
|
|
154
154
|
"ws": "^8.22.0",
|
|
155
155
|
"yjs": "13.6.30",
|
|
156
|
-
"@repo/shared": "0.0.0",
|
|
157
156
|
"@products/sandbox-test-utils": "0.0.0",
|
|
158
|
-
"@
|
|
157
|
+
"@repo/shared": "0.0.0",
|
|
159
158
|
"@tangle-network/cli-agent-registry": "0.10.2",
|
|
159
|
+
"@tangle-network/agent-profile-materialize": "0.26.0",
|
|
160
160
|
"@tangle-network/runtime-contracts": "0.19.0"
|
|
161
161
|
},
|
|
162
162
|
"tangleRelease": {
|
|
163
|
-
"sourceSha": "
|
|
164
|
-
"mergedAt": "2026-10-
|
|
163
|
+
"sourceSha": "50a847ca8a463e358e2ae738398e9197b6de0629",
|
|
164
|
+
"mergedAt": "2026-10-27T02:04:02-06:00"
|
|
165
165
|
},
|
|
166
166
|
"scripts": {
|
|
167
167
|
"build": "node scripts/build-dist.mjs",
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-KtV88h1f.js";
|
|
2
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
3
|
-
import { join } from "node:path";
|
|
4
|
-
import { homedir } from "node:os";
|
|
5
|
-
//#region ../../../packages/cli-agent-registry/dist/local-cli-auth.mjs
|
|
6
|
-
const DEFAULT_MODE = 384;
|
|
7
|
-
function readAuthFile(sourcePath, targetPath) {
|
|
8
|
-
if (!existsSync(sourcePath)) return null;
|
|
9
|
-
return {
|
|
10
|
-
path: targetPath,
|
|
11
|
-
content: readFileSync(sourcePath, "utf-8"),
|
|
12
|
-
mode: DEFAULT_MODE
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
function discoverCodexAuthFiles(homeDir) {
|
|
16
|
-
const auth = readAuthFile(join(homeDir, AUTH_BUNDLE_PATHS.codex), AUTH_BUNDLE_PATHS.codex);
|
|
17
|
-
return auth ? [auth] : [];
|
|
18
|
-
}
|
|
19
|
-
function discoverClaudeAuthFiles(homeDir) {
|
|
20
|
-
return [
|
|
21
|
-
readAuthFile(join(homeDir, AUTH_BUNDLE_PATHS["claude-code"]), AUTH_BUNDLE_PATHS["claude-code"]),
|
|
22
|
-
readAuthFile(join(homeDir, ".claude", "settings.json"), ".claude/settings.json"),
|
|
23
|
-
readAuthFile(join(homeDir, ".claude", "settings.local.json"), ".claude/settings.local.json")
|
|
24
|
-
].filter((entry) => entry !== null);
|
|
25
|
-
}
|
|
26
|
-
function discoverLocalCliAuthFiles(backendType, options = {}) {
|
|
27
|
-
const homeDir = options.homeDir ?? homedir();
|
|
28
|
-
const authFiles = backendType === "codex" ? discoverCodexAuthFiles(homeDir) : discoverClaudeAuthFiles(homeDir);
|
|
29
|
-
return authFiles.length > 0 ? authFiles : void 0;
|
|
30
|
-
}
|
|
31
|
-
function describeLocalCliAuthExpectation(backendType) {
|
|
32
|
-
if (backendType === "codex") return "~/.codex/auth.json";
|
|
33
|
-
return "~/.claude/{.credentials.json,settings.json,settings.local.json}";
|
|
34
|
-
}
|
|
35
|
-
//#endregion
|
|
36
|
-
export { describeLocalCliAuthExpectation, discoverLocalCliAuthFiles };
|