@tangle-network/sandbox 0.60.78-develop.20261022130634.e0beb70 → 0.60.78-develop.20261022135157.7c7d4e9

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 (29) hide show
  1. package/dist/agent/index.d.ts +4 -4
  2. package/dist/agent/index.js +2 -2
  3. package/dist/agent/preview.d.ts +1 -1
  4. package/dist/{agent-run-outcome-BSQJEeQO.d.ts → agent-run-outcome-UqVoiafo.d.ts} +1 -1
  5. package/dist/auth/index.js +1 -1
  6. package/dist/{cli-auth-bundle-hoD3-9Xr.js → cli-auth-bundle-DiO80j-k.js} +22 -6
  7. package/dist/{client-ZUAg3t1p.d.ts → client-Bzklblzg.d.ts} +10 -24
  8. package/dist/{client-BwffEbHl.js → client-CAa6I_92.js} +3 -3
  9. package/dist/core.d.ts +5 -5
  10. package/dist/core.js +2 -2
  11. package/dist/{index-D7VkrwXt.d.ts → index-iYdJi4O8.d.ts} +7 -3
  12. package/dist/index.d.ts +8 -8
  13. package/dist/index.js +42 -25
  14. package/dist/intelligence/index.d.ts +12 -12
  15. package/dist/{interactive-controller-BcMoYAot.d.ts → interactive-controller-CG-ikeYf.d.ts} +1 -1
  16. package/dist/{lines-CNyn-3BG.d.ts → lines-CEX65fBF.d.ts} +1 -1
  17. package/dist/lines.d.ts +1 -1
  18. package/dist/{local-cli-auth-BphtVcki.js → local-cli-auth-DAukxS-v.js} +1 -1
  19. package/dist/openai/index.d.ts +3 -3
  20. package/dist/{preview-CjgZkVue.d.ts → preview-Cjg3Lsls.d.ts} +3 -3
  21. package/dist/{public-templates-C2ZWpukc.d.ts → public-templates-CXn4aQsN.d.ts} +1 -1
  22. package/dist/public-templates.d.ts +1 -1
  23. package/dist/runtime.d.ts +3 -3
  24. package/dist/{sandbox-dxjJMlUt.js → sandbox-CICD7KcJ.js} +219 -222
  25. package/dist/tangle/index.d.ts +1 -1
  26. package/dist/tangle/index.js +1 -1
  27. package/dist/{tangle-DXYPV6rH.js → tangle-DA1aBXXG.js} +1 -1
  28. package/dist/{types-rqzp5pEX.d.ts → types-CxfH95D5.d.ts} +49 -31
  29. package/package.json +4 -4
@@ -144,7 +144,7 @@ interface RunSpanWindow {
144
144
  * `additionalProperties` on the wire — the row carries more columns than the
145
145
  * documented core, so the type is open.
146
146
  */
147
- interface Run {
147
+ interface IntelligenceRun {
148
148
  id: string;
149
149
  tenantId: string;
150
150
  runDir: string | null;
@@ -159,7 +159,7 @@ interface Run {
159
159
  }
160
160
  /** A page of eval-runs. Offset is legacy; follow `nextCursor` to paginate. */
161
161
  interface RunList {
162
- items: Run[];
162
+ items: IntelligenceRun[];
163
163
  limit: number;
164
164
  offset: number;
165
165
  nextCursor: string | null;
@@ -234,14 +234,14 @@ interface RunSessionList {
234
234
  /** Pass as `cursor` for the next page; null on the last page. */
235
235
  nextCursor: string | null;
236
236
  }
237
- /** Query params for {@link IntelligenceClient.listRunSessionFiles}. */
237
+ /** Query params for {@link IntelligenceTraceClient.listRunSessionFiles}. */
238
238
  interface ListRunSessionFilesParams {
239
239
  /** Files per page, clamped server-side to `[1, 5000]` (default 1000). */
240
240
  limit?: number;
241
241
  /** Opaque cursor from the prior page's `nextCursor`. */
242
242
  cursor?: string;
243
243
  }
244
- /** Query params for {@link IntelligenceClient.listTraces}. */
244
+ /** Query params for {@link IntelligenceTraceClient.listTraces}. */
245
245
  interface ListTracesParams {
246
246
  /** Page size, clamped server-side to `[1, 200]` (default 50). */
247
247
  limit?: number;
@@ -260,14 +260,14 @@ interface ListTracesParams {
260
260
  /** Opaque cursor from the prior response's `nextCursor`. */
261
261
  cursor?: string;
262
262
  }
263
- /** Query params for {@link IntelligenceClient.getTraceSpans}. */
263
+ /** Query params for {@link IntelligenceTraceClient.getTraceSpans}. */
264
264
  interface GetTraceSpansParams {
265
265
  /** Page size, clamped server-side to `INTELLIGENCE_TRACE_SPAN_LIMIT`. */
266
266
  limit?: number;
267
267
  /** Opaque cursor over `(start_unix_nano, span id)` from the prior page. */
268
268
  cursor?: string;
269
269
  }
270
- /** Query params for {@link IntelligenceClient.listRuns}. */
270
+ /** Query params for {@link IntelligenceTraceClient.listRuns}. */
271
271
  interface ListRunsParams {
272
272
  limit?: number;
273
273
  /** Legacy offset pagination; ignored once `cursor` is supplied. */
@@ -282,7 +282,7 @@ interface ListRunsParams {
282
282
  label?: string;
283
283
  cursor?: string;
284
284
  }
285
- /** Query params for {@link IntelligenceClient.listSessions}. */
285
+ /** Query params for {@link IntelligenceTraceClient.listSessions}. */
286
286
  interface ListSessionsParams {
287
287
  limit?: number;
288
288
  from?: string;
@@ -293,7 +293,7 @@ interface ListSessionsParams {
293
293
  userId?: string;
294
294
  cursor?: string;
295
295
  }
296
- /** Query params for {@link IntelligenceClient.getSessionTraces}. */
296
+ /** Query params for {@link IntelligenceTraceClient.getSessionTraces}. */
297
297
  interface GetSessionTracesParams {
298
298
  limit?: number;
299
299
  cursor?: string;
@@ -302,7 +302,7 @@ interface GetSessionTracesParams {
302
302
  * Browser-safe typed client for the Tangle Intelligence trace-read surface.
303
303
  * Construct via {@link createIntelligenceClient}.
304
304
  */
305
- interface IntelligenceClient {
305
+ interface IntelligenceTraceClient {
306
306
  /** List tenant-wide trace summaries (one row per trace), newest first. */
307
307
  listTraces(params?: ListTracesParams): Promise<TraceSummaryList>;
308
308
  /** List one trace's spans, keyset-paginated. */
@@ -317,7 +317,7 @@ interface IntelligenceClient {
317
317
  /** List the tenant's eval-runs, newest first. */
318
318
  listRuns(params?: ListRunsParams): Promise<RunList>;
319
319
  /** Fetch a single eval-run. */
320
- getRun(runId: string): Promise<Run>;
320
+ getRun(runId: string): Promise<IntelligenceRun>;
321
321
  /** List the spans pivoted to this run (by `run_id`), bounded window. */
322
322
  getRunTraces(runId: string): Promise<RunSpanWindow>;
323
323
  /**
@@ -361,6 +361,6 @@ interface IntelligenceClient {
361
361
  * @param config.apiKey Customer key (`sk-tan-*`) — Bearer auth, resolved to a tenant.
362
362
  * @param config.baseUrl Intelligence-api host; defaults to {@link DEFAULT_INTELLIGENCE_BASE_URL}.
363
363
  */
364
- declare function createIntelligenceClient(config: IntelligenceClientConfig): IntelligenceClient;
364
+ declare function createIntelligenceClient(config: IntelligenceClientConfig): IntelligenceTraceClient;
365
365
  //#endregion
366
- export { DEFAULT_INTELLIGENCE_BASE_URL, GetSessionTracesParams, GetTraceSpansParams, IntelligenceClient, IntelligenceClientConfig, ListRunSessionFilesParams, ListRunsParams, ListSessionsParams, ListTracesParams, NanoString, Run, RunList, RunSessionFile, RunSessionList, RunSessionSeal, RunSpanWindow, SerializedSpan, SessionSummary, SessionSummaryList, SpanPage, TraceStatus, TraceSummary, TraceSummaryList, createIntelligenceClient };
366
+ export { DEFAULT_INTELLIGENCE_BASE_URL, GetSessionTracesParams, GetTraceSpansParams, type IntelligenceTraceClient as IntelligenceClient, IntelligenceTraceClient, IntelligenceClientConfig, IntelligenceRun, type IntelligenceRun as Run, ListRunSessionFilesParams, ListRunsParams, ListSessionsParams, ListTracesParams, NanoString, RunList, RunSessionFile, RunSessionList, RunSessionSeal, RunSpanWindow, SerializedSpan, SessionSummary, SessionSummaryList, SpanPage, TraceStatus, TraceSummary, TraceSummaryList, createIntelligenceClient };
@@ -1,5 +1,5 @@
1
1
  import { o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-ClZCArRg.js";
2
- import { rr as TerminalStream } from "./types-rqzp5pEX.js";
2
+ import { rr as TerminalStream } from "./types-CxfH95D5.js";
3
3
  import { a as InteractiveSessionControlController, c as InteractiveSessionIdentity, f as InteractiveAttachOptions, h as InteractiveRequestOptions, n as BrowserInteractiveSessionControlControllerOptions, o as InteractiveSessionControlControllerOptions, s as InteractiveSessionControlTransport } from "./browser-interactive-control-controller-CvObO_Kf.js";
4
4
  import { AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
5
5
 
@@ -1,4 +1,4 @@
1
- import { Sa as BackendConfig, ar as CreateSandboxOptions } from "./types-rqzp5pEX.js";
1
+ import { ar as CreateSandboxOptions, xa as BackendConfig } from "./types-CxfH95D5.js";
2
2
 
3
3
  //#region src/line-application.d.ts
4
4
  /** Bounded callback request bytes after canonicalization, including JSON framing. */
package/dist/lines.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, I as LineSenderVerificationStart, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, V as LinesHttpClient, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-CNyn-3BG.js";
1
+ import { A as LineRespondAgent, B as LineVoiceOptions, C as LineMessage, D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, I as LineSenderVerificationStart, L as LineThread, M as LineRole, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, R as LineTransport, S as LineMemberSpec, T as LineProvider, V as LinesHttpClient, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, c as LineAllowanceSubject, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, j as LineRespondView, k as LineReplyGate, l as LineApplicationAttachOptions, m as LineFromConnectionInput, n as SandboxLines, o as LineAgentRolePolicy, p as LineExecutionKey, r as lineInstanceKey, s as LineAllowance, t as LinesClient, u as LineAttachOptions, v as LineLimits, w as LineNumberInventory, x as LineMemberPatch, y as LineMember, z as LineVoice } from "./lines-CEX65fBF.js";
2
2
  export { Line, LineAgentRolePolicy, LineAllowance, LineAllowanceSubject, LineApplicationAttachOptions, LineAttachOptions, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineFromConnectionInput, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineLimits, LineMember, LineMemberInstance, LineMemberPatch, LineMemberSpec, LineMessage, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineReplyGate, LineRespondAgent, LineRespondView, LineRole, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LineThread, LineTransport, LineVoice, LineVoiceOptions, LinesClient, LinesHttpClient, SandboxLines, lineInstanceKey, profileChannelReference };
@@ -1,4 +1,4 @@
1
- import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-hoD3-9Xr.js";
1
+ import { t as AUTH_BUNDLE_PATHS } from "./cli-auth-bundle-DiO80j-k.js";
2
2
  import { existsSync, readFileSync } from "node:fs";
3
3
  import { join } from "node:path";
4
4
  import { homedir } from "node:os";
@@ -525,7 +525,7 @@ interface ToolOutput {
525
525
  * terminal frame; the iterator itself does not classify frames.
526
526
  */
527
527
  declare function runEvents(threadId: string | undefined, runId: string, source: RunEventSource): AsyncIterable<TangleSSEEvent>;
528
- interface RunOptions {
528
+ interface OpenAIRunOptions {
529
529
  id: string;
530
530
  threadId?: string;
531
531
  partnerId: string;
@@ -554,7 +554,7 @@ declare class Run {
554
554
  private startPromise;
555
555
  private pendingCalls;
556
556
  private cancelRequested;
557
- constructor(opts: RunOptions);
557
+ constructor(opts: OpenAIRunOptions);
558
558
  get status(): RunStatus;
559
559
  /**
560
560
  * Subscribe to typed events. May only be consumed once per Run.
@@ -676,4 +676,4 @@ declare function outcomeToFinishReason(outcome: string, hasToolCall: boolean): O
676
676
  */
677
677
  declare function openaiMessagesToSandboxInput(messages: ChatCompletionMessageParam[], tools: ChatCompletionTool[] | undefined, model: string): SandboxRunInput;
678
678
  //#endregion
679
- export { type ActionRateLimitOptions, type AfterHookOutcome, type AuditEvent, type AuditLogOptions, type BeforeHookOutcome, type BufferedToolCall, type CostCapOptions, type DestructiveActionGuardOptions, type EgressPolicyOptions, EmbeddingValidationError, HookChain, type HookSurface, InMemoryResponseStore, type MultimodalPart, type NormalizedEmbeddingInput, type NormalizedEmbeddingRequest, type OpenAIFinishReason, type OpenAITerminal, type PriorToolCall, type PriorToolResult, type PriorTurn, type RedactionRegion, type ResponseStore, ResponsesValidationError, Run, type RunEvent, type RunEventSource, type RunOptions, type RunStatus, type SandboxRunInput, type SandboxToolSpec, type ScreenshotRedactionOptions, type TangleRouterResponsesWebSearchOptions, type TangleSSEEvent, type ToolCallContext, type ToolOutput, type ToolResult, type TranslatorContext, actionRateLimitHook, assembleResponseOutput, auditLogHook, buildResponseShell, classifyOpenAITerminal, classifyOpenAITerminalEvents, costCapHook, createTranslatorContext, destructiveActionGuardHook, egressPolicyHook, normalizeResponsesWebSearchForTangleRouter, openaiMessagesToSandboxInput, outcomeToFinishReason, resolvePreviousResponseId, runEvents, sandboxEventToChatChunk, sandboxEventToCompletionChunk, sandboxEventToResponsesEvent, screenshotRedactionHook, usageFromEvents, validateEmbeddingRequest, validateResponsesRequest };
679
+ export { type ActionRateLimitOptions, type AfterHookOutcome, type AuditEvent, type AuditLogOptions, type BeforeHookOutcome, type BufferedToolCall, type CostCapOptions, type DestructiveActionGuardOptions, type EgressPolicyOptions, EmbeddingValidationError, HookChain, type HookSurface, InMemoryResponseStore, type MultimodalPart, type NormalizedEmbeddingInput, type NormalizedEmbeddingRequest, type OpenAIFinishReason, type OpenAITerminal, type PriorToolCall, type PriorToolResult, type PriorTurn, type RedactionRegion, type ResponseStore, ResponsesValidationError, Run, type RunEvent, type RunEventSource, type OpenAIRunOptions as RunOptions, type RunStatus, type SandboxRunInput, type SandboxToolSpec, type ScreenshotRedactionOptions, type TangleRouterResponsesWebSearchOptions, type TangleSSEEvent, type ToolCallContext, type ToolOutput, type ToolResult, type TranslatorContext, actionRateLimitHook, assembleResponseOutput, auditLogHook, buildResponseShell, classifyOpenAITerminal, classifyOpenAITerminalEvents, costCapHook, createTranslatorContext, destructiveActionGuardHook, egressPolicyHook, normalizeResponsesWebSearchForTangleRouter, openaiMessagesToSandboxInput, outcomeToFinishReason, resolvePreviousResponseId, runEvents, sandboxEventToChatChunk, sandboxEventToCompletionChunk, sandboxEventToResponsesEvent, screenshotRedactionHook, usageFromEvents, validateEmbeddingRequest, validateResponsesRequest };
@@ -1,6 +1,6 @@
1
- import { O as SandboxInstance } from "./index-D7VkrwXt.js";
2
- import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-rqzp5pEX.js";
3
- import { t as Sandbox } from "./client-ZUAg3t1p.js";
1
+ import { O as SandboxInstance } from "./index-iYdJi4O8.js";
2
+ import { F as EnsureDevServerOptions, H as PreviewLinkInfo } from "./types-CxfH95D5.js";
3
+ import { t as Sandbox } from "./client-Bzklblzg.js";
4
4
 
5
5
  //#region src/agent/preview-operations.d.ts
6
6
  type AgentPreviewOptions = Pick<EnsureDevServerOptions, "sessionId" | "cwd"> & {
@@ -1,5 +1,5 @@
1
1
  import { F as SandboxError } from "./terminal-stream-types-ClZCArRg.js";
2
- import { Pi as HttpClient, ai as PublishPublicTemplateVersionOptions, ii as PublishPublicTemplateOptions, ni as PublicTemplateInfo, ri as PublicTemplateVersionInfo } from "./types-rqzp5pEX.js";
2
+ import { Pi as HttpClient, ai as PublishPublicTemplateVersionOptions, ii as PublishPublicTemplateOptions, ni as PublicTemplateInfo, ri as PublicTemplateVersionInfo } from "./types-CxfH95D5.js";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/public-templates.d.ts
@@ -1,2 +1,2 @@
1
- import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-C2ZWpukc.js";
1
+ import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-CXn4aQsN.js";
2
2
  export { PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient };
package/dist/runtime.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { A as NotFoundError, F as SandboxError, H as TimeoutError, I as SandboxErrorJson, L as SandboxFailureDetail, M as ProfileFileMountPathError, N as QuotaError, R as ServerError, S as CapabilityError, T as FileWriteConflictError, U as ValidationError, b as AuthError, j as PartialFailureError, k as NetworkError, u as ScopedToken, z as StateError } from "./terminal-stream-types-ClZCArRg.js";
2
- import { Bn as SandboxPortBinding, Br as FileTreeResult, Ct as SessionMessageAdmission, Dt as TaskSessionCommitResult, Er as ChunkedUploadResult, Et as TaskSessionChanges, Gn as SandboxTerminalCreateOptions, Hr as FileUsageResult, Ir as FileRenameResult, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Kn as SandboxTerminalInfo, Kr as RenameOptions, Mr as FileReadBatchOptions, Nr as FileReadBatchResult, Q as CommitTaskSessionOptions, St as SessionMessage, Tr as ChunkedUploadOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Vr as FileUsageOptions, Yr as WriteFileOptions, ct as ListMessagesOptions, dt as SendSessionMessageRequest, ft as SentSessionMessage, gt as SessionExecutionStatus, ht as SessionExecutionInfo, it as CreateTaskSessionOptions, kt as TaskSessionInfo, mt as SessionEventStreamOptions, pa as SandboxEvent, qn as SandboxTerminalManager, rr as TerminalStream, rt as CreateSessionOptions, ut as SendSessionMessageOptions, yt as SessionInfo, zr as FileTreeOptions } from "./types-rqzp5pEX.js";
2
+ import { Bn as SandboxPortBinding, Br as FileTreeResult, Ct as SessionMessageAdmission, Dt as TaskSessionCommitResult, Er as ChunkedUploadResult, Et as TaskSessionChanges, Gn as SandboxTerminalCreateOptions, Hr as FileUsageResult, Ir as FileRenameResult, Jn as SandboxTerminalRequestOptions, Jr as UploadProgress, Kn as SandboxTerminalInfo, Kr as RenameOptions, Mr as FileReadBatchOptions, Nr as FileReadBatchResult, Q as CommitTaskSessionOptions, St as SessionMessage, Tr as ChunkedUploadOptions, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Vr as FileUsageOptions, Yr as WriteFileOptions, ct as ListMessagesOptions, dt as SendSessionMessageRequest, fa as SandboxEvent, ft as SentSessionMessage, gt as SessionExecutionStatus, ht as SessionExecutionInfo, it as CreateTaskSessionOptions, kt as TaskSessionInfo, mt as SessionEventStreamOptions, qn as SandboxTerminalManager, rr as TerminalStream, rt as CreateSessionOptions, ut as SendSessionMessageOptions, yt as SessionInfo, zr as FileTreeOptions } from "./types-CxfH95D5.js";
3
3
  import { c as InteractiveSessionIdentity, l as InteractiveSessionNotRunningError, r as browserInteractiveControlHolderId } from "./browser-interactive-control-controller-CvObO_Kf.js";
4
- import { t as BrowserInteractiveSessionController } from "./interactive-controller-BcMoYAot.js";
5
- import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-BSQJEeQO.js";
4
+ import { t as BrowserInteractiveSessionController } from "./interactive-controller-CG-ikeYf.js";
5
+ import { a as deriveAgentRunOutcome, i as deriveAgentResultOutcome, n as AgentRunOutcomeTracker, o as projectAgentTerminalRecord, r as createAgentRunOutcomeTracker, t as AgentRunOutcome } from "./agent-run-outcome-UqVoiafo.js";
6
6
 
7
7
  //#region src/lib/chunked-upload.d.ts
8
8
  /** The transport a caller wires this module to — {@link SandboxInstance.runtimeFetch}