@tangle-network/sandbox 1.0.21 → 1.0.23

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.
Files changed (75) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +5 -5
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/agent/preview.js +3 -3
  5. package/dist/{agent-run-outcome-I1nMkkrz.d.ts → agent-run-outcome-DQjHjmTQ.d.ts} +2 -2
  6. package/dist/{api-request-EseiF9B1.js → api-request-DNrodWdz.js} +1 -1
  7. package/dist/auth/index.d.ts +2 -2
  8. package/dist/auth/index.js +1 -1
  9. package/dist/{browser-interactive-control-controller-Bt1vcu9c.js → browser-interactive-control-controller-EhML8YjF.js} +186 -2131
  10. package/dist/{browser-interactive-control-controller-CVnME80O.d.ts → browser-interactive-control-controller-i9JtmJDf.d.ts} +1 -1
  11. package/dist/{chunked-upload-Df_5Q2x8.js → chunked-upload-KRWmiJsw.js} +1 -1
  12. package/dist/{chunked-upload-file-Dtm1GBkE.js → chunked-upload-file-DPSyrGUb.js} +2 -2
  13. package/dist/cli-auth-bundle-V7sPQYej.js +1594 -0
  14. package/dist/{client-DEvdnu0z.d.ts → client-1bgxaNQD.d.ts} +5 -5
  15. package/dist/{client-HMGk7nNW.js → client-DC1Q6oJb.js} +11 -11
  16. package/dist/collaboration/index.d.ts +1 -1
  17. package/dist/collaboration/index.js +1 -1
  18. package/dist/{collaboration-BTGTf3We.js → collaboration-DPukGUcF.js} +1 -1
  19. package/dist/{core-DvYE_89H.js → core-0iCiDt_5.js} +5 -5
  20. package/dist/core.d.ts +6 -6
  21. package/dist/core.js +5 -5
  22. package/dist/{direct-http2-B0ra_xhU.js → direct-http2-C0H7zN9h.js} +1 -1
  23. package/dist/{errors-ZmDrrk4f.js → errors-BUPIDjn4.js} +1 -1
  24. package/dist/{sha2-BUPMvGTk.js → harness-DkCl2wJv.js} +417 -1
  25. package/dist/{index-C3GQDkDm.d.ts → index-vcweImuL.d.ts} +6 -6
  26. package/dist/index.d.ts +11 -11
  27. package/dist/index.js +11 -11
  28. package/dist/intelligence/index.js +2 -2
  29. package/dist/interactive-control.d.ts +1 -1
  30. package/dist/interactive-control.js +1 -1
  31. package/dist/{interactive-controller-Bf8yrdzR.d.ts → interactive-controller-B16SZKZt.d.ts} +3 -3
  32. package/dist/{interactive-controller-BkfV4Cs_.js → interactive-controller-kZk52Eff.js} +19 -21
  33. package/dist/lib/prepared-evidence.js +1 -1
  34. package/dist/lib/prepared-process.js +1 -1
  35. package/dist/{lines-BqZOl_io.js → lines-BnAWHGX3.js} +1 -1
  36. package/dist/{lines-CA1IbRzE.d.ts → lines-BxCEZUkf.d.ts} +1 -1
  37. package/dist/lines.d.ts +1 -1
  38. package/dist/lines.js +1 -1
  39. package/dist/{local-cli-auth-DzovETOu.js → local-cli-auth-CJuKPr1j.js} +1 -1
  40. package/dist/{mcp-local-BcRLN_Ic.js → mcp-local-C88efQL3.js} +1 -1
  41. package/dist/{prepared-evidence-CuUh_mz6.js → prepared-evidence-DC-M4WEF.js} +1 -1
  42. package/dist/{preview-DQs0Zh9L.d.ts → preview-QcwZWgzk.d.ts} +3 -3
  43. package/dist/{profile-schema-CT3hB1mG.js → profile-schema-1WmjXjE9.js} +23 -12
  44. package/dist/{public-templates-COGktcNu.d.ts → public-templates-GNIKn_wg.d.ts} +2 -2
  45. package/dist/public-templates.d.ts +1 -1
  46. package/dist/public-templates.js +1 -1
  47. package/dist/{raw-evidence-archive-CqarcYcp.js → raw-evidence-archive-Bc-OdA_Q.js} +1 -1
  48. package/dist/runtime.d.ts +5 -5
  49. package/dist/runtime.js +5 -5
  50. package/dist/{sandbox-BAhF5QaX.js → sandbox-Qn9ScVvS.js} +46 -48
  51. package/dist/{secp256k1-CZWrpqxW.js → secp256k1-BGtA1PsN.js} +1 -1
  52. package/dist/select-seat-command.d.ts +1 -1
  53. package/dist/select-seat-command.js +1 -1
  54. package/dist/session-gateway/index.js +3 -3
  55. package/dist/tangle/index.d.ts +1 -1
  56. package/dist/tangle/index.js +1 -1
  57. package/dist/{tangle-CwfZovBM.js → tangle-DOwUAne4.js} +4 -4
  58. package/dist/{terminal-stream-types-DwXQzUbH.d.ts → terminal-stream-types-BM5J4lt0.d.ts} +155 -769
  59. package/dist/{types-BF8se4_x.d.ts → types-MYaFNkH5.d.ts} +7 -7
  60. package/package.json +8 -8
  61. package/dist/cli-auth-bundle-KtV88h1f.js +0 -2597
  62. package/dist/harness-BD_OISom.js +0 -201
  63. package/dist/harness-DWL2MM4q.js +0 -418
  64. /package/dist/{abort-signal-jU-SEjLT.js → abort-signal-CDxyloxz.js} +0 -0
  65. /package/dist/{cli-auth-bundle-MskLEgtA.d.ts → cli-auth-bundle-CFZx0muA.d.ts} +0 -0
  66. /package/dist/{index-Dqcr9p97.d.ts → index-DnZdhFs2.d.ts} +0 -0
  67. /package/dist/{index-Dslyq85a.d.ts → index-rbeL2Rct.d.ts} +0 -0
  68. /package/dist/{keep-alive-fetch-C2DX2_rG.js → keep-alive-fetch-BbSFbRCd.js} +0 -0
  69. /package/dist/{prepared-process-LjBfQnZ5.js → prepared-process-BQUSksTH.js} +0 -0
  70. /package/dist/{preview-operations-BvgwYaoL.js → preview-operations-D2fXB_dc.js} +0 -0
  71. /package/dist/{response-rewrap-MBztoTLx.js → response-rewrap-CpNkboDX.js} +0 -0
  72. /package/dist/{retry-after-header-BZbs5rig.js → retry-after-header-DUdCC0KJ.js} +0 -0
  73. /package/dist/{sidecar-proxy-error-Dty4zmN7.js → sidecar-proxy-error-5DpLmHeN.js} +0 -0
  74. /package/dist/{sse-parser-CJ52bhG3.js → sse-parser-CKkE9zWy.js} +0 -0
  75. /package/dist/{utils-vaFoyyiO.js → utils-CoawKwX_.js} +0 -0
@@ -1,7 +1,7 @@
1
- import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-C3GQDkDm.js";
2
- import { Co as BackendType, Di as CodeResultPart, Ei as CodeExecutionResult, Ti as CodeExecutionOptions, Va as CodeLanguage, ba as BackendConfig, bn as SandboxFleetParent, xt as SessionListOptions, yt as SessionInfo } from "../types-BF8se4_x.js";
3
- import { t as Sandbox } from "../client-DEvdnu0z.js";
4
- import { u as PreviewAuthorizer } from "../preview-DQs0Zh9L.js";
1
+ import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-vcweImuL.js";
2
+ import { Co as BackendType, Di as CodeResultPart, Ei as CodeExecutionResult, Ti as CodeExecutionOptions, Va as CodeLanguage, ba as BackendConfig, bn as SandboxFleetParent, xt as SessionListOptions, yt as SessionInfo } from "../types-MYaFNkH5.js";
3
+ import { t as Sandbox } from "../client-1bgxaNQD.js";
4
+ import { u as PreviewAuthorizer } from "../preview-QcwZWgzk.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";
@@ -1,8 +1,8 @@
1
- import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-BcRLN_Ic.js";
2
- import { E as assertCurrentBackendType } from "../interactive-controller-BkfV4Cs_.js";
3
- import { t as SandboxInstance } from "../sandbox-BAhF5QaX.js";
4
- import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-ZmDrrk4f.js";
5
- import { t as Sandbox } from "../client-HMGk7nNW.js";
1
+ import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-C88efQL3.js";
2
+ import { t as SandboxInstance } from "../sandbox-Qn9ScVvS.js";
3
+ import { E as assertCurrentBackendType } from "../interactive-controller-kZk52Eff.js";
4
+ import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-BUPIDjn4.js";
5
+ import { t as Sandbox } from "../client-DC1Q6oJb.js";
6
6
  import { z } from "zod";
7
7
  //#region src/agent/instances.ts
8
8
  const managers = /* @__PURE__ */ new WeakMap();
@@ -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-DQs0Zh9L.js";
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-QcwZWgzk.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 };
@@ -1,5 +1,5 @@
1
- import { n as agentProfileSchema } from "../profile-schema-CT3hB1mG.js";
2
- import { a as listAgentPreviews, c as resolveSelfSandbox, i as getAgentPreview, n as assertPreviewId, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "../preview-operations-BvgwYaoL.js";
1
+ import { r as agentProfileSchema } from "../profile-schema-1WmjXjE9.js";
2
+ import { a as listAgentPreviews, c as resolveSelfSandbox, i as getAgentPreview, n as assertPreviewId, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "../preview-operations-D2fXB_dc.js";
3
3
  //#region src/agent/preview-policy.ts
4
4
  /** Channel-neutral preview tool selection from a host-authored profile. */
5
5
  const PREVIEW_TOOLS = [
@@ -66,7 +66,7 @@ async function servePreviewMcp(request, config) {
66
66
  if (typeof config.authorize !== "function") throw new Error("Preview MCP requires a host authorization callback");
67
67
  const tools = config.tools ?? PREVIEW_TOOLS;
68
68
  if (!tools.length || tools.some((tool) => !PREVIEW_TOOLS.includes(tool))) throw new Error("Preview MCP requires an explicit nonempty preview-only tool grant");
69
- const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-BcRLN_Ic.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
69
+ const [{ createMcpServer }, { WebStandardStreamableHTTPServerTransport }] = await Promise.all([import("../mcp-local-C88efQL3.js").then((n) => n.n), import("@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js")]);
70
70
  const handle = await createMcpServer(config.box, {
71
71
  name: "tangle-previews",
72
72
  sessionId: config.sessionId,
@@ -1,5 +1,5 @@
1
- import { M as InteractionRequest } from "./terminal-stream-types-DwXQzUbH.js";
2
- import { Ji as AgentRunStatus, Ki as AgentApprovalRequirement, Yi as AgentToolInvocation, da as SandboxEvent, qi as AgentQuestionRequest, ta as DurablePlanSnapshot } from "./types-BF8se4_x.js";
1
+ import { U as InteractionRequest } from "./terminal-stream-types-BM5J4lt0.js";
2
+ import { Ji as AgentRunStatus, Ki as AgentApprovalRequirement, Yi as AgentToolInvocation, da as SandboxEvent, qi as AgentQuestionRequest, ta as DurablePlanSnapshot } from "./types-MYaFNkH5.js";
3
3
 
4
4
  //#region src/agent-run-outcome.d.ts
5
5
  interface AgentRunOutcome {
@@ -1,4 +1,4 @@
1
- import { t as rewrapResponse } from "./response-rewrap-MBztoTLx.js";
1
+ import { t as rewrapResponse } from "./response-rewrap-CpNkboDX.js";
2
2
  //#region src/lib/api-request.mjs
3
3
  function withRequestContextHeaders(response, path, method, body = response.body) {
4
4
  const headers = new Headers(response.headers);
@@ -1,3 +1,3 @@
1
- import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema, t as CliAuthReference } from "../cli-auth-bundle-MskLEgtA.js";
2
- import { _ as ReadTokenPayload, a as issueCollaborationToken, c as issueSessionScopedToken, d as AnyTokenPayload, f as BatchScopedTokenPayload, g as ProjectScopedTokenPayload, h as IssueCollaborationTokenOptions, i as issueBatchScopedToken, l as unsafeDecodeToken, m as CollaborationTokenPayload, n as getTokenTTL, o as issueProjectScopedToken, p as CollaborationAccess, r as isTokenExpiringSoon, s as issueReadToken, t as ProductTokenIssuer, u as verifyToken, v as SessionScopedTokenPayload, y as TokenScope } from "../index-Dslyq85a.js";
1
+ import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema, t as CliAuthReference } from "../cli-auth-bundle-CFZx0muA.js";
2
+ import { _ as ReadTokenPayload, a as issueCollaborationToken, c as issueSessionScopedToken, d as AnyTokenPayload, f as BatchScopedTokenPayload, g as ProjectScopedTokenPayload, h as IssueCollaborationTokenOptions, i as issueBatchScopedToken, l as unsafeDecodeToken, m as CollaborationTokenPayload, n as getTokenTTL, o as issueProjectScopedToken, p as CollaborationAccess, r as isTokenExpiringSoon, s as issueReadToken, t as ProductTokenIssuer, u as verifyToken, v as SessionScopedTokenPayload, y as TokenScope } from "../index-rbeL2Rct.js";
3
3
  export { AnyTokenPayload, BatchScopedTokenPayload, CliAuthReference, CollaborationAccess, CollaborationTokenPayload, IssueCollaborationTokenOptions, ProductTokenIssuer, ProjectScopedTokenPayload, ReadTokenPayload, SessionScopedTokenPayload, TokenScope, assertCliAuthReferenceSupported, cliAuthReferenceSchema, getTokenTTL, isTokenExpiringSoon, issueBatchScopedToken, issueCollaborationToken, issueProjectScopedToken, issueReadToken, issueSessionScopedToken, materializeCliAuthBundle, unsafeDecodeToken, verifyToken };
@@ -1,4 +1,4 @@
1
- import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-KtV88h1f.js";
1
+ import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-V7sPQYej.js";
2
2
  //#region src/auth/tokens.ts
3
3
  const textEncoder = new TextEncoder();
4
4
  const textDecoder = new TextDecoder();