@tangle-network/sandbox 0.62.10 → 0.62.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/agent/index.d.ts +2 -2
- package/dist/agent/preview.d.ts +1 -1
- package/dist/{client-CF5pOGkI.d.ts → client-CIrZUB7Q.d.ts} +1 -1
- package/dist/core.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/{preview-Dfbr2yBp.d.ts → preview-BFBAIphI.d.ts} +1 -1
- package/dist/{public-templates-DeRfSJcM.d.ts → public-templates-CM9_NpaD.d.ts} +6 -0
- package/dist/public-templates.d.ts +1 -1
- package/dist/public-templates.js +19 -7
- package/package.json +7 -7
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { g as SandboxSession, m as SandboxTaskSession, n as SandboxInstance } from "../sandbox-BogoNKYF.js";
|
|
2
2
|
import { D as CodeExecutionResult, Do as BackendType, E as CodeExecutionOptions, O as CodeLanguage, d as BackendConfig, fa as SessionListOptions, k as CodeResultPart, si as SandboxFleetParent, ua as SessionInfo } from "../types-B91mhT62.js";
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
3
|
+
import { i as Sandbox } from "../client-CIrZUB7Q.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-BFBAIphI.js";
|
|
5
5
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
6
6
|
import { JSONSchema } from "zod/v4/core";
|
|
7
7
|
import { ToolSet } from "ai";
|
package/dist/agent/preview.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-
|
|
1
|
+
import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-BFBAIphI.js";
|
|
2
2
|
export { AgentPreviewError, AgentPreviewOptions, PREVIEW_MCP_ALIAS, PREVIEW_TOOLS, PreviewAuthorizationRequest, PreviewAuthorizer, PreviewExecutionContext, PreviewTool, PublishAgentPreviewOptions, assertPreviewId, ensureAgentPreview, getAgentPreview, listAgentPreviews, previewOperationTool, previewToolsForProfile, publishAgentPreview, removeAgentPreview, resolveSelfSandbox, servePreviewMcp };
|
|
@@ -3,7 +3,7 @@ import { B as CreateSandboxOptions, Bt as FleetDispatchCancelResult, Ci as Sandb
|
|
|
3
3
|
import { d as MintInteractiveSessionTokenOptions, p as ScopedToken } from "./terminal-stream-DgD7GlFi.js";
|
|
4
4
|
import { L as LinesClient } from "./lines-BWLeaELK.js";
|
|
5
5
|
import { h as SandboxError } from "./errors-tik04CKT.js";
|
|
6
|
-
import { a as PublicTemplatesClient } from "./public-templates-
|
|
6
|
+
import { a as PublicTemplatesClient } from "./public-templates-CM9_NpaD.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import { AgentInteractiveSessionRef, AgentProfile } from "@tangle-network/agent-interface";
|
|
9
9
|
|
package/dist/core.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { _ as ProfileFileDeliveryReport, a as WorkspaceImagePublishResult, i as
|
|
|
2
2
|
import { B as CreateSandboxOptions, Bn as ManagedProcessSpec, Ci as SandboxInfo, Fr as SandboxConfig, In as ManagedProcessJobs, Ln as ManagedProcessOptions, M as ConversationTurnOptions, N as ConversationTurnResult, Rn as ManagedProcessRecord, St as ExecResult, Vn as ManagedProcessState, Wn as NetworkConfig, Xn as PreviewLinkManager, Yn as PreviewLinkInfo, Zn as PreviewLinkWaitOptions, ao as SandboxEnvRecovery, ma as SessionMessageAdmission, oo as SandboxEnvRecoveryView, or as PromptInputPart, xt as ExecOptions, zi as SandboxStatus, zn as ManagedProcessResumeOptions } from "./types-B91mhT62.js";
|
|
3
3
|
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, J as LineApplicationView, K as LineApplicationResult, L as LinesClient, M as LineSenderVerificationStart, S as LineReminderPreferences, U as LINE_APPLICATION_REQUEST_MAX_BYTES, V as profileChannelReference, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, n as LineAgentRolePolicy, p as LineInstanceCreate, q as LineApplicationState, s as LineAttachment, t as Line, w as LineReplyCodeInput, x as LineProvider } from "./lines-BWLeaELK.js";
|
|
4
4
|
import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, t as AuthError, u as NetworkError, v as ServerError, y as StateError } from "./errors-tik04CKT.js";
|
|
5
|
-
import { A as BackendRegistryEntry, C as InstancesClient, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, _ as EnsureInstanceOptions, b as InstanceRecord, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, v as HostedInstance, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-
|
|
6
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
5
|
+
import { A as BackendRegistryEntry, C as InstancesClient, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, _ as EnsureInstanceOptions, b as InstanceRecord, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, v as HostedInstance, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-CIrZUB7Q.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CM9_NpaD.js";
|
|
7
7
|
import { t as ManagedProcessClient } from "./managed-process-qH__EafL.js";
|
|
8
8
|
|
|
9
9
|
//#region src/core.d.ts
|
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { a as InteractiveSessionControlController, c as InteractiveSessionIdenti
|
|
|
5
5
|
import { a as InteractiveSessionControllerOptions, i as InteractiveSessionController, n as BrowserInteractiveSessionControllerOptions, o as InteractiveSessionControllerTransport, r as InteractiveAttachRequest, t as BrowserInteractiveSessionController } from "./interactive-controller-BSWoA0YE.js";
|
|
6
6
|
import { A as LineSendReceipt, B as lineInstanceKey, C as LineReplyCode, D as LineRespondView, E as LineRespondAgent, F as LineVoice, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineVoiceOptions, J as LineApplicationView, K as LineApplicationResult, L as LinesClient, M as LineSenderVerificationStart, N as LineThread, O as LineRole, P as LineTransport, S as LineReminderPreferences, T as LineReplyGate, U as LINE_APPLICATION_REQUEST_MAX_BYTES, V as profileChannelReference, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineMemberPatch, a as LineApplicationAttachOptions, b as LineNumberInventory, c as LineAttachmentReauthorization, d as LineImage, f as LineInstanceAttachOptions, g as LineMemberInstance, h as LineMember, i as LineAllowanceSubject, j as LineSenderVerification, k as LineSendInput, l as LineExecutionKey, m as LineLimits, n as LineAgentRolePolicy, o as LineAttachOptions, p as LineInstanceCreate, q as LineApplicationState, r as LineAllowance, s as LineAttachment, t as Line, u as LineFromConnectionInput, v as LineMemberSpec, w as LineReplyCodeInput, x as LineProvider, y as LineMessage, z as SandboxLines } from "./lines-BWLeaELK.js";
|
|
7
7
|
import { C as ValidationError, S as TimeoutError, _ as SandboxFailureDetail, a as EgressProxyRecoveryError, b as StreamInterruptedError, c as GpuProviderRequirement, d as NotFoundError, f as PartialFailureError, g as SandboxErrorJson, h as SandboxError, i as EdgeNotReadyError, l as KeyBudgetExhaustedError, m as ResumeEnvRequiredError, n as BranchFanoutExceedsHostError, o as FileWriteConflictError, p as QuotaError, r as CapabilityError, s as GpuProviderNotConfiguredError, t as AuthError, u as NetworkError, v as ServerError, x as StreamInterruptionReason, y as StateError } from "./errors-tik04CKT.js";
|
|
8
|
-
import { A as BackendRegistryEntry, C as InstancesClient, D as ParsedSSEEvent, E as ParseSSEStreamOptions, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, O as parseSSEStream, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, S as InstanceStart, T as SandboxFleetClient, _ as EnsureInstanceOptions, a as Team, b as InstanceRecord, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as RunsHttpClient, h as RunsClient, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as HostedInstance, w as SandboxFleet, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-
|
|
9
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
8
|
+
import { A as BackendRegistryEntry, C as InstancesClient, D as ParsedSSEEvent, E as ParseSSEStreamOptions, F as backendRegistryInteractionKindSchema, I as backendRegistryResponseSchema, L as isBackendRegistryInteractionKind, M as BackendRegistryResponse, N as backendRegistryCapabilitiesSchema, O as parseSSEStream, P as backendRegistryEntrySchema, R as parseBackendRegistryResponse, S as InstanceStart, T as SandboxFleetClient, _ as EnsureInstanceOptions, a as Team, b as InstanceRecord, c as SessionBroadcastEvent, d as RunPlacement, f as RunPlacementRecord, g as RunsHttpClient, h as RunsClient, i as Sandbox, j as BackendRegistryInteractionKind, k as BackendRegistryCapabilities, l as SessionBroadcastResult, m as RunWaitOptions, n as IntelligenceClient, o as TeamInvitation, p as RunRecord, r as InviteTeamMemberOptions, s as TeamMember, t as CreateTeamOptions, u as RunOptions, v as HostedInstance, w as SandboxFleet, x as InstanceRestartingError, y as InstanceProfile, z as parseBackendRegistryResponseBody } from "./client-CIrZUB7Q.js";
|
|
9
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CM9_NpaD.js";
|
|
10
10
|
import { d as AnyTokenPayload, h as IssueCollaborationTokenOptions, m as CollaborationTokenPayload, p as CollaborationAccess } from "./index-DfA_usrZ.js";
|
|
11
11
|
import { _ as CollaborationTransportConfig, a as CollaborationClient, c as CollaborationClientConfig, d as CollaborationDocumentRef, f as CollaborationFileBridgeOptions, g as CollaborationTokenRefreshResponse, h as CollaborationTokenRefreshRequest, i as parseCollaborationDocumentId, l as CollaborationDocumentAdapter, m as CollaborationPermissions, n as buildCollaborationDocumentId, o as CollaborationBootstrapRequest, p as CollaborationFileEvent, r as normalizeCollaborationPath, s as CollaborationBootstrapResponse, t as CollaborationFileBridge, u as CollaborationDocumentChange, v as SaveCollaborationSnapshotRequest, y as SaveCollaborationSnapshotResponse } from "./index-CWUW8pqr.js";
|
|
12
12
|
import { t as ManagedProcessClient } from "./managed-process-qH__EafL.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as SandboxInstance } from "./sandbox-BogoNKYF.js";
|
|
2
2
|
import { Yn as PreviewLinkInfo, vt as EnsureDevServerOptions } from "./types-B91mhT62.js";
|
|
3
|
-
import { i as Sandbox } from "./client-
|
|
3
|
+
import { i as Sandbox } from "./client-CIrZUB7Q.js";
|
|
4
4
|
|
|
5
5
|
//#region src/agent/preview-operations.d.ts
|
|
6
6
|
type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
|
|
@@ -68,6 +68,12 @@ declare class PublicTemplatesClient {
|
|
|
68
68
|
versions(idOrSlug: string): Promise<PublicTemplateVersionInfo[]>;
|
|
69
69
|
publish(input: PublishPublicTemplateOptions, options?: PublicTemplatePublishRequestOptions): Promise<PublicTemplateInfo>;
|
|
70
70
|
publishVersion(idOrSlug: string, input: PublishPublicTemplateVersionOptions, options?: PublicTemplatePublishRequestOptions): Promise<PublicTemplateVersionInfo>;
|
|
71
|
+
/**
|
|
72
|
+
* `submit` is the POST that accepts the publication. Each caller spells its
|
|
73
|
+
* own route at the `client.fetch` call so scripts/check-sdk-route-contract.mjs
|
|
74
|
+
* can see the method and path; a path passed through a helper argument is
|
|
75
|
+
* invisible to it, and the API route then reads as having no SDK method.
|
|
76
|
+
*/
|
|
71
77
|
private publishAndWait;
|
|
72
78
|
}
|
|
73
79
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
1
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CM9_NpaD.js";
|
|
2
2
|
export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
|
package/dist/public-templates.js
CHANGED
|
@@ -83,12 +83,24 @@ var PublicTemplatesClient = class {
|
|
|
83
83
|
return (await readResponseJson(await this.client.fetch(`/v1/public-templates/${encodeURIComponent(idOrSlug)}/versions`))).versions ?? [];
|
|
84
84
|
}
|
|
85
85
|
async publish(input, options = {}) {
|
|
86
|
-
return (await this.publishAndWait("/v1/public-templates",
|
|
86
|
+
return (await this.publishAndWait((init) => this.client.fetch("/v1/public-templates", {
|
|
87
|
+
...init,
|
|
88
|
+
method: "POST"
|
|
89
|
+
}), input, options)).template;
|
|
87
90
|
}
|
|
88
91
|
async publishVersion(idOrSlug, input, options = {}) {
|
|
89
|
-
return (await this.publishAndWait(`/v1/public-templates/${encodeURIComponent(idOrSlug)}/versions`,
|
|
92
|
+
return (await this.publishAndWait((init) => this.client.fetch(`/v1/public-templates/${encodeURIComponent(idOrSlug)}/versions`, {
|
|
93
|
+
...init,
|
|
94
|
+
method: "POST"
|
|
95
|
+
}), input, options, idOrSlug)).version;
|
|
90
96
|
}
|
|
91
|
-
|
|
97
|
+
/**
|
|
98
|
+
* `submit` is the POST that accepts the publication. Each caller spells its
|
|
99
|
+
* own route at the `client.fetch` call so scripts/check-sdk-route-contract.mjs
|
|
100
|
+
* can see the method and path; a path passed through a helper argument is
|
|
101
|
+
* invisible to it, and the API route then reads as having no SDK method.
|
|
102
|
+
*/
|
|
103
|
+
async publishAndWait(submit, input, options, idOrSlug) {
|
|
92
104
|
const timeoutMs = options.timeoutMs ?? 30 * 6e4;
|
|
93
105
|
if (!Number.isSafeInteger(timeoutMs) || timeoutMs < 1 || timeoutMs > 2147483647) throw new TypeError("timeoutMs must be a positive safe timer interval");
|
|
94
106
|
if (options.resumeJobId !== void 0 && !options.resumeJobId.trim()) throw new TypeError("resumeJobId must not be empty");
|
|
@@ -112,10 +124,10 @@ var PublicTemplatesClient = class {
|
|
|
112
124
|
job = await readJob(options.resumeJobId);
|
|
113
125
|
artifact = z.object({ artifact: artifactSchema }).parse(await read(`/v1/public-templates/artifacts/${encodeURIComponent(job.artifactId)}`)).artifact;
|
|
114
126
|
} else {
|
|
115
|
-
const accepted = publishResponseSchema.parse(await
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}));
|
|
127
|
+
const accepted = publishResponseSchema.parse(await readResponseJson(await submit({
|
|
128
|
+
body: JSON.stringify(input),
|
|
129
|
+
signal
|
|
130
|
+
})));
|
|
119
131
|
job = accepted.job;
|
|
120
132
|
artifact = accepted.artifact;
|
|
121
133
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sandbox",
|
|
3
|
-
"version": "0.62.
|
|
3
|
+
"version": "0.62.12",
|
|
4
4
|
"description": "Client SDK for the Tangle Sandbox platform - build AI agent applications with dev containers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -160,16 +160,16 @@
|
|
|
160
160
|
"ws": "^8.20.0",
|
|
161
161
|
"yjs": "13.6.30",
|
|
162
162
|
"@products/sandbox-test-utils": "0.0.0",
|
|
163
|
-
"@repo/shared": "0.0.0",
|
|
164
|
-
"@tangle-network/agent-profile-materialize": "0.26.0",
|
|
165
|
-
"@tangle-network/cli-agent-registry": "0.10.2",
|
|
166
163
|
"@tangle-network/runtime-contracts": "0.19.0",
|
|
164
|
+
"@tangle-network/cli-agent-registry": "0.10.2",
|
|
167
165
|
"@tangle-network/sdk": "4.0.16",
|
|
168
|
-
"@tangle-network/sse-core": "0.0.0"
|
|
166
|
+
"@tangle-network/sse-core": "0.0.0",
|
|
167
|
+
"@tangle-network/agent-profile-materialize": "0.26.0",
|
|
168
|
+
"@repo/shared": "0.0.0"
|
|
169
169
|
},
|
|
170
170
|
"tangleRelease": {
|
|
171
|
-
"sourceSha": "
|
|
172
|
-
"mergedAt": "2026-10-
|
|
171
|
+
"sourceSha": "3a57bb381718597c9aac7fe2f0d2c60b35223474",
|
|
172
|
+
"mergedAt": "2026-10-19T11:40:06-06:00"
|
|
173
173
|
},
|
|
174
174
|
"scripts": {
|
|
175
175
|
"build": "node scripts/build-dist.mjs",
|