@tangle-network/sandbox 1.0.231 → 1.0.233
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/README.md +22 -1
- package/dist/agent/index.d.ts +4 -4
- package/dist/agent/index.js +5 -5
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +2 -2
- package/dist/agent-execution-preparation-BJChICex.js +18 -0
- package/dist/agent-execution-preparation-receipt-BIFxqyr5.js +250 -0
- package/dist/{agent-run-outcome-DMaHbXAk.d.ts → agent-run-outcome-B0nURFpG.d.ts} +3 -2
- package/dist/{api-request-_SFFNVqY.js → api-request-dyabkosT.js} +34 -9
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +2 -2
- package/dist/{browser-interactive-control-controller-BiP6TJFP.js → browser-interactive-control-controller-BM2p1dBp.js} +16 -252
- package/dist/{browser-interactive-control-controller-qv26Bpfx.d.ts → browser-interactive-control-controller-CcUjQEfa.d.ts} +1 -1
- package/dist/{chunked-upload-BjkxykZD.js → chunked-upload-BlvgxPWx.js} +4 -5
- package/dist/{chunked-upload-file-B2KFimpz.js → chunked-upload-file-DOeLpMO0.js} +2 -2
- package/dist/cli-auth-bundle-BLAtE6Dc.js +2 -0
- package/dist/{client-OlxlnLwV.js → client-BS-PR_-j.js} +38 -47
- package/dist/{client-DvvRMxKx.d.ts → client-DlTDphmI.d.ts} +38 -32
- package/dist/collaboration/index.d.ts +1 -1
- package/dist/collaboration/index.js +1 -1
- package/dist/{collaboration-DZ8ptALs.js → collaboration-Dz20mN9a.js} +20 -27
- package/dist/core-CUZyz-U8.js +161 -0
- package/dist/core.d.ts +6 -6
- package/dist/core.js +6 -5
- package/dist/{direct-http2-DU2SK2Wo.js → direct-http2-Bgb2lHte.js} +1 -1
- package/dist/{errors-A-bhwwsE.js → error-catalog-CAbzw67O.js} +1 -382
- package/dist/errors-nXGKGVFe.js +382 -0
- package/dist/{file-download-UhMKbMbD.js → file-download-BjkrYzy_.js} +1 -1
- package/dist/{index-Cip3q_xe.d.ts → index-DE5n6mot.d.ts} +13 -23
- package/dist/index.d.ts +12 -12
- package/dist/index.js +29 -25
- package/dist/intelligence/index.d.ts +41 -109
- package/dist/intelligence/index.js +60 -73
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-D4gZ4f2I.js → interactive-controller-DDPdZa2H.js} +20 -54
- package/dist/{interactive-controller-P0yy6sGl.d.ts → interactive-controller-sEU_J6Bc.d.ts} +3 -3
- package/dist/lib/prepared-evidence.js +1 -1
- package/dist/lib/prepared-process.js +1 -1
- package/dist/{lines-7VecgiGd.js → lines-CSGBHEjR.js} +1 -1
- package/dist/{lines-DNXdVbGO.d.ts → lines-qvpmwN_2.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{local-cli-auth-CPS9yuTc.js → local-cli-auth-CO0byocv.js} +1 -1
- package/dist/{mcp-local-CIXZFqF4.js → mcp-local-Dz_Sehz0.js} +4 -4
- package/dist/{prepared-evidence-Byty5p51.js → prepared-evidence-ibAysmX8.js} +2 -2
- package/dist/{prepared-process-u1B0b94R.js → prepared-process-DQ_68Ofg.js} +2 -2
- package/dist/{preview-CNfYklE6.d.ts → preview-BC_wLaA2.d.ts} +3 -3
- package/dist/{public-templates-CPvDf8CH.d.ts → public-templates-WuvmbvzY.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/public-templates.js +1 -1
- package/dist/{raw-evidence-archive-BgWqaQcM.js → raw-evidence-archive-Cz4j8VMw.js} +2 -2
- package/dist/{retry-policy-Dh-VezcE.js → retry-policy-oW3_ljoc.js} +2 -24
- package/dist/runtime.d.ts +7 -7
- package/dist/runtime.js +9 -9
- package/dist/{sandbox-Dvk2PYnL.js → sandbox-OyCRplrI.js} +65 -91
- package/dist/{secp256k1-Cbp9tbkX.js → secp256k1-ZiYFbGjz.js} +1 -1
- package/dist/{core-D7czAW25.js → select-seat-B4Y-7vIq.js} +40 -171
- package/dist/select-seat-command.d.ts +9 -3
- package/dist/select-seat-command.js +69 -57
- package/dist/session-gateway/index.js +11 -20
- package/dist/sidecar-proxy-error-DTdbCbUM.js +4 -0
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-DWzUnb1Y.js → tangle-Crxw_6V-.js} +22 -17
- package/dist/{terminal-stream-types-DB8V0hiG.d.ts → terminal-stream-types-eE97lZ-5.d.ts} +0 -1
- package/dist/{types-Cmv31xBh.d.ts → types-Cs5eJzOK.d.ts} +17 -57
- package/package.json +5 -5
- package/dist/cli-auth-bundle-CMJWI99l.js +0 -2
- package/dist/sidecar-proxy-error-DpBLxIof.js +0 -24
- /package/dist/{abort-signal-BbJTt2QJ.js → abort-signal-CRxC2dlT.js} +0 -0
- /package/dist/{cli-auth-bundle-C6DtK7GX-BbbiAn-Z.js → cli-auth-bundle-C6DtK7GX-mBUPER0R.js} +0 -0
- /package/dist/{cli-auth-bundle-Wg3x2hd2.d.ts → cli-auth-bundle-CjSu4D9W.d.ts} +0 -0
- /package/dist/{file-transfer-BSe4ayU9.js → file-transfer-DOSTbUSR.js} +0 -0
- /package/dist/{index-CDtEPygc.d.ts → index-C-_HY5NY.d.ts} +0 -0
- /package/dist/{index-YbAo-so_.d.ts → index-o31uwAkX.d.ts} +0 -0
- /package/dist/{keep-alive-fetch-BIaDMUtu.js → keep-alive-fetch-sGVP8skk.js} +0 -0
- /package/dist/{preview-operations-B3TTvqlm.js → preview-operations-DWL78boI.js} +0 -0
- /package/dist/{retry-after-header-DUdCC0KJ.js → retry-after-header-BZbs5rig.js} +0 -0
- /package/dist/{sse-parser-DOCszo1K.js → sse-parser-BCG3iL9j.js} +0 -0
- /package/dist/{utils-CK-x8vXj.js → utils-BT2q9nkO.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-
|
|
2
|
-
import { $ as PublicBatchRunRequest, At as AgentProfileMcpServer, Bt as BatchEvent, Dt as AgentProfileConfidential, Ft as HarnessType, J as BatchCustody, L as SandboxError, Mt as AgentProfileSeat, Ot as AgentProfileConfigValue, Tt as AgentProfile, Y as BatchResult, c as MintInteractiveSessionTokenOptions, dt as AgentInteractiveSessionRef, et as PublicBatchRunRequestInput, jt as AgentProfileMetadata, kt as AgentProfileFileMount, nt as SandboxSizePreset, rt as AgentRuntimeAttachments, u as ScopedToken } from "./terminal-stream-types-
|
|
3
|
-
import { $ as CreateSandboxFleetOptions, $t as SandboxFleetWorkspaceRestoreResult, A as SandboxIdentity, Bt as SandboxFleetParent, Ci as IntelligenceReportWindow, Di as SandboxEvent, Dn as SandboxResources, Ei as PromptResult, En as SandboxConfig, Et as SandboxFleetCostEstimate, Ft as SandboxFleetMachineRecord, Ga as ExecResult, Gr as ManagedProcessOptions, Gt as SandboxFleetToken, Ht as SandboxFleetPolicy, It as SandboxFleetMachineSpec, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, Kt as SandboxFleetTraceBundle, Lt as SandboxFleetManifest, M as UsageInfo, Ma as GpuLeaseProviderName, Nt as SandboxFleetMachine, On as SandboxShapesInfo, Ot as SandboxFleetDispatchResponse, Pi as TurnBackendConfig, Q as AttachSandboxFleetMachineOptions, Qt as SandboxFleetWorkspaceReconcileResult, Ri as ConversationTurnOptions, St as SandboxFleetAgent, T as SshKeysManager, Ti as PromptOptions, Tn as CreateSandboxOptions, Tt as SandboxFleetArtifactSpec, Wr as ManagedProcessJobs, Wt as SandboxFleetSpend, X as FleetDriveTurnRequest, Xr as HttpClient, Xt as SandboxFleetUsage, Y as FleetDriveTurnOutcome, Yn as DownloadResult, Yr as ManagedProcessSpec, Yt as SandboxFleetTraceOptions, Z as TokenRefreshHandler, Zr as SdkTimingHook, _t as ListSandboxFleetOptions, a as DeleteMatchingSandboxesResult, an as SandboxInfo, bi as IntelligenceReportBudget, bn as TeeAttestationResponse, bt as ReconcileSandboxFleetsOptions, cn as SandboxRunGeneration, ct as FleetDispatchResultBufferOptions, dt as FleetExecDispatchResult, en as SandboxFleetWorkspaceSnapshotResult, et as CreateSandboxFleetTokenOptions, fi as CreateIntelligenceReportOptions, ft as FleetMachineId, ga as BackendConfig, gt as FleetRunOptions, ht as FleetRunEvent, i as DeleteMatchingSandboxesOptions, it as FleetAgentResult, j as SubscriptionInfo, jn as SandboxShapePreset, jt as SandboxFleetInfo, kt as SandboxFleetDriverCapability, lt as FleetDispatchStreamOptions, mt as FleetPromptDispatchResult, nt as FleetAgentId, ot as FleetDispatchCancelResult, pt as FleetPromptDispatchOptions, qn as DownloadOptions, r as DeleteMatchingSandboxesFilter, si as BatchRunOptions, st as FleetDispatchResultBuffer, tn as ListSandboxOptions, tt as CreateSandboxFleetWithCoordinatorOptions, ut as FleetExecDispatchOptions, vt as ReapExpiredSandboxFleetsOptions, w as SecretsManager, wa as SecretBindingOptions, wi as PromptInputPart, wn as CreateRequestOptions, wr as SandboxEnvironment, wt as SandboxFleetArtifact, xi as IntelligenceReportCompareTo, xt as ReconcileSandboxFleetsResult, yi as IntelligenceReport, yn as TeeAttestationReport, yr as ExecOptions, yt as ReapExpiredSandboxFleetsResult, zi as ConversationTurnResult, zt as SandboxFleetOperationsSummary } from "./types-
|
|
4
|
-
import { t as LinesClient } from "./lines-
|
|
5
|
-
import { a as PublicTemplatesClient } from "./public-templates-
|
|
1
|
+
import { A as TraceExportResult, H as MaterializeProfileFileMountsOptions, O as SandboxInstance, U as MaterializeProfileFileMountsResult, W as ProfileFileMountBox, j as TraceExportSink } from "./index-DE5n6mot.js";
|
|
2
|
+
import { $ as PublicBatchRunRequest, At as AgentProfileMcpServer, Bt as BatchEvent, Dt as AgentProfileConfidential, Ft as HarnessType, J as BatchCustody, L as SandboxError, Mt as AgentProfileSeat, Ot as AgentProfileConfigValue, Tt as AgentProfile, Y as BatchResult, c as MintInteractiveSessionTokenOptions, dt as AgentInteractiveSessionRef, et as PublicBatchRunRequestInput, jt as AgentProfileMetadata, kt as AgentProfileFileMount, nt as SandboxSizePreset, rt as AgentRuntimeAttachments, u as ScopedToken } from "./terminal-stream-types-eE97lZ-5.js";
|
|
3
|
+
import { $ as CreateSandboxFleetOptions, $t as SandboxFleetWorkspaceRestoreResult, A as SandboxIdentity, Bt as SandboxFleetParent, Ci as IntelligenceReportWindow, Di as SandboxEvent, Dn as SandboxResources, Ei as PromptResult, En as SandboxConfig, Et as SandboxFleetCostEstimate, Ft as SandboxFleetMachineRecord, Ga as ExecResult, Gr as ManagedProcessOptions, Gt as SandboxFleetToken, Ht as SandboxFleetPolicy, It as SandboxFleetMachineSpec, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, Kt as SandboxFleetTraceBundle, Lt as SandboxFleetManifest, M as UsageInfo, Ma as GpuLeaseProviderName, Nt as SandboxFleetMachine, On as SandboxShapesInfo, Ot as SandboxFleetDispatchResponse, Pi as TurnBackendConfig, Q as AttachSandboxFleetMachineOptions, Qt as SandboxFleetWorkspaceReconcileResult, Ri as ConversationTurnOptions, St as SandboxFleetAgent, T as SshKeysManager, Ti as PromptOptions, Tn as CreateSandboxOptions, Tt as SandboxFleetArtifactSpec, Wr as ManagedProcessJobs, Wt as SandboxFleetSpend, X as FleetDriveTurnRequest, Xr as HttpClient, Xt as SandboxFleetUsage, Y as FleetDriveTurnOutcome, Yn as DownloadResult, Yr as ManagedProcessSpec, Yt as SandboxFleetTraceOptions, Z as TokenRefreshHandler, Zr as SdkTimingHook, _t as ListSandboxFleetOptions, a as DeleteMatchingSandboxesResult, an as SandboxInfo, bi as IntelligenceReportBudget, bn as TeeAttestationResponse, bt as ReconcileSandboxFleetsOptions, cn as SandboxRunGeneration, ct as FleetDispatchResultBufferOptions, dt as FleetExecDispatchResult, en as SandboxFleetWorkspaceSnapshotResult, et as CreateSandboxFleetTokenOptions, fi as CreateIntelligenceReportOptions, ft as FleetMachineId, ga as BackendConfig, gt as FleetRunOptions, ht as FleetRunEvent, i as DeleteMatchingSandboxesOptions, it as FleetAgentResult, j as SubscriptionInfo, jn as SandboxShapePreset, jt as SandboxFleetInfo, kt as SandboxFleetDriverCapability, lt as FleetDispatchStreamOptions, mt as FleetPromptDispatchResult, nt as FleetAgentId, ot as FleetDispatchCancelResult, pt as FleetPromptDispatchOptions, qn as DownloadOptions, r as DeleteMatchingSandboxesFilter, si as BatchRunOptions, st as FleetDispatchResultBuffer, tn as ListSandboxOptions, tt as CreateSandboxFleetWithCoordinatorOptions, ut as FleetExecDispatchOptions, vt as ReapExpiredSandboxFleetsOptions, w as SecretsManager, wa as SecretBindingOptions, wi as PromptInputPart, wn as CreateRequestOptions, wr as SandboxEnvironment, wt as SandboxFleetArtifact, xi as IntelligenceReportCompareTo, xt as ReconcileSandboxFleetsResult, yi as IntelligenceReport, yn as TeeAttestationReport, yr as ExecOptions, yt as ReapExpiredSandboxFleetsResult, zi as ConversationTurnResult, zt as SandboxFleetOperationsSummary } from "./types-Cs5eJzOK.js";
|
|
4
|
+
import { t as LinesClient } from "./lines-qvpmwN_2.js";
|
|
5
|
+
import { a as PublicTemplatesClient } from "./public-templates-WuvmbvzY.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/backend-registry.d.ts
|
|
@@ -94,7 +94,8 @@ declare class SandboxTransport {
|
|
|
94
94
|
#private;
|
|
95
95
|
protected readonly baseUrl: string;
|
|
96
96
|
protected readonly platformUrl: string | undefined;
|
|
97
|
-
|
|
97
|
+
/** This client's default deadline: `SandboxConfig.timeoutMs`, else `SDK_TIMEOUTS.default`. */
|
|
98
|
+
readonly timeoutMs: number;
|
|
98
99
|
protected readonly trustLocalCliAuth: boolean;
|
|
99
100
|
/** Receives the SDK's timing spans; see `SandboxConfig.onTiming`. */
|
|
100
101
|
readonly onTiming: SdkTimingHook | undefined;
|
|
@@ -505,7 +506,7 @@ interface FleetClientHost<TFleets> {
|
|
|
505
506
|
create(options?: CreateSandboxOptions): Promise<SandboxInstance>;
|
|
506
507
|
list(options?: ListSandboxOptions): Promise<SandboxInstance[]>;
|
|
507
508
|
get(id: string): Promise<SandboxInstance | null>;
|
|
508
|
-
fetch
|
|
509
|
+
fetch: HttpClient["fetch"];
|
|
509
510
|
/** Fetch from the Platform API (agent-profile catalog, keys) with the same key. */
|
|
510
511
|
platformFetch(path: string, options?: RequestInit): Promise<Response>;
|
|
511
512
|
/** A host with the same settings that authenticates with `apiKey`. */
|
|
@@ -1054,9 +1055,9 @@ interface SeatOwnerReply {
|
|
|
1054
1055
|
readonly body: unknown;
|
|
1055
1056
|
}
|
|
1056
1057
|
/** Carries one request to the account owner; it makes no seat choice. */
|
|
1057
|
-
type SeatOwnerTransport = (request:
|
|
1058
|
+
type SeatOwnerTransport<Request = SeatSelectionRequest> = (request: Request, signal?: AbortSignal) => Promise<SeatOwnerReply>;
|
|
1058
1059
|
/** The authenticated Sandbox gateway to the hosted account owner. */
|
|
1059
|
-
declare function gatewaySeatTransport(client: Pick<Sandbox, "fetch">): SeatOwnerTransport
|
|
1060
|
+
declare function gatewaySeatTransport<Request = SeatSelectionRequest>(client: Pick<Sandbox, "fetch">): SeatOwnerTransport<Request>;
|
|
1060
1061
|
interface CreateSelectSeatOptions<TBackend extends {
|
|
1061
1062
|
backend: "provider";
|
|
1062
1063
|
provider: unknown;
|
|
@@ -1097,27 +1098,7 @@ declare function createSelectSeat<TBackend extends {
|
|
|
1097
1098
|
declare const ISOLATED_CREATION_ATTESTATION_VERSION: 1;
|
|
1098
1099
|
//#endregion
|
|
1099
1100
|
//#region src/image.d.ts
|
|
1100
|
-
/**
|
|
1101
|
-
* Image Builder for Sandbox SDK
|
|
1102
|
-
*
|
|
1103
|
-
* Provides a chainable API for building custom container images.
|
|
1104
|
-
*
|
|
1105
|
-
* @example Basic usage
|
|
1106
|
-
* ```typescript
|
|
1107
|
-
* import { Image, Sandbox } from "@tangle-network/sandbox";
|
|
1108
|
-
*
|
|
1109
|
-
* const client = new Sandbox({ apiKey: "sk_sandbox_...", baseUrl: "https://your-sandbox-api.example.com" });
|
|
1110
|
-
*
|
|
1111
|
-
* const image = await Image.create()
|
|
1112
|
-
* .python("3.11")
|
|
1113
|
-
* .addPackages(["numpy", "pandas"])
|
|
1114
|
-
* .addCommands(["apt-get update && apt-get install -y ffmpeg"])
|
|
1115
|
-
* .withSecrets(["HF_TOKEN"])
|
|
1116
|
-
* .build({ client });
|
|
1117
|
-
*
|
|
1118
|
-
* const box = await client.create({ environment: image.id });
|
|
1119
|
-
* ```
|
|
1120
|
-
*/
|
|
1101
|
+
/** Container image specs and builds, with progress read through shared SSE. */
|
|
1121
1102
|
/**
|
|
1122
1103
|
* Build result for an image.
|
|
1123
1104
|
*/
|
|
@@ -1161,7 +1142,9 @@ interface ImageBuildClientConfig {
|
|
|
1161
1142
|
apiKey: string;
|
|
1162
1143
|
}
|
|
1163
1144
|
interface ImageBuildFetchClient {
|
|
1164
|
-
fetch: (path: string, options?: RequestInit
|
|
1145
|
+
fetch: (path: string, options?: RequestInit, fetchOptions?: {
|
|
1146
|
+
timeoutMs?: number;
|
|
1147
|
+
}) => Promise<Response>;
|
|
1165
1148
|
}
|
|
1166
1149
|
type ImageBuildClient = ImageBuildClientConfig | ImageBuildFetchClient;
|
|
1167
1150
|
/**
|
|
@@ -1477,6 +1460,25 @@ declare function isToolBearingEvent(event: SandboxEvent): boolean;
|
|
|
1477
1460
|
*/
|
|
1478
1461
|
declare function collectAgentFinalMessageText(events: SandboxEvent[]): string | undefined;
|
|
1479
1462
|
//#endregion
|
|
1463
|
+
//#region src/lib/api-request.d.mts
|
|
1464
|
+
/** Default deadlines in ms; see README "Timeouts and retries" for operation mapping. */
|
|
1465
|
+
declare const SDK_TIMEOUTS: Readonly<{
|
|
1466
|
+
default: number;
|
|
1467
|
+
margin: number;
|
|
1468
|
+
create: number;
|
|
1469
|
+
gpuCreate: number;
|
|
1470
|
+
runCode: number;
|
|
1471
|
+
fleetDispatch: number;
|
|
1472
|
+
deleteMatching: number;
|
|
1473
|
+
deleteMatchingUntilRemoved: number;
|
|
1474
|
+
snapshot: number;
|
|
1475
|
+
workspaceImage: number;
|
|
1476
|
+
operationWait: number;
|
|
1477
|
+
previewReady: number;
|
|
1478
|
+
interactiveToken: number;
|
|
1479
|
+
terminalConnect: number;
|
|
1480
|
+
}>;
|
|
1481
|
+
//#endregion
|
|
1480
1482
|
//#region src/lib/file-download.d.ts
|
|
1481
1483
|
/**
|
|
1482
1484
|
* The transport a caller wires this module to. The optional `headers`
|
|
@@ -5903,6 +5905,7 @@ interface RouterSearchConfig {
|
|
|
5903
5905
|
body_template: Record<string, unknown>;
|
|
5904
5906
|
};
|
|
5905
5907
|
}
|
|
5908
|
+
/** The Router's search config. Timeout: `SDK_TIMEOUTS.default`. */
|
|
5906
5909
|
declare function fetchTangleRouterSearchConfig(options?: RouterSearchConfigOptions): Promise<RouterSearchConfig>;
|
|
5907
5910
|
declare function buildTangleRouterSearchProfile(config: RouterSearchConfig, options?: {
|
|
5908
5911
|
name?: string;
|
|
@@ -6269,6 +6272,7 @@ declare class SandboxFleet {
|
|
|
6269
6272
|
collectArtifacts(artifacts: readonly SandboxFleetArtifactSpec[]): Promise<SandboxFleetArtifact[]>;
|
|
6270
6273
|
exec(machineId: FleetMachineId, command: string, options?: ExecOptions): Promise<ExecResult>;
|
|
6271
6274
|
dispatchExec(command: string, options?: FleetExecDispatchOptions): Promise<FleetExecDispatchResult[]>;
|
|
6275
|
+
/** Timeout: the larger of `timeoutMs` and `SDK_TIMEOUTS.fleetDispatch`, plus `SDK_TIMEOUTS.margin`. */
|
|
6272
6276
|
dispatchExecDetailed(command: string, options?: FleetExecDispatchOptions): Promise<SandboxFleetDispatchResponse<FleetExecDispatchResult>>;
|
|
6273
6277
|
/**
|
|
6274
6278
|
* Run one prompt on one machine's default agent through the API's fleet
|
|
@@ -6278,6 +6282,8 @@ declare class SandboxFleet {
|
|
|
6278
6282
|
prompt(machineId: FleetMachineId, message: string | PromptInputPart[], options?: PromptOptions): Promise<PromptResult>;
|
|
6279
6283
|
dispatchPrompt(message: string | PromptInputPart[], options?: FleetPromptDispatchOptions): Promise<FleetPromptDispatchResult[]>;
|
|
6280
6284
|
dispatchPromptDetailed(message: string | PromptInputPart[], options?: FleetPromptDispatchOptions): Promise<SandboxFleetDispatchResponse<FleetPromptDispatchResult>>;
|
|
6285
|
+
/** The API runs a dispatch to its `timeoutMs` (10 min by default), and the request waits for it. */
|
|
6286
|
+
private dispatch;
|
|
6281
6287
|
/**
|
|
6282
6288
|
* Run one turn on each selected agent, all at once, and yield each agent's
|
|
6283
6289
|
* start and result as they happen. Every turn goes through the same
|
|
@@ -6523,4 +6529,4 @@ declare class Sandbox extends SandboxBatch implements HttpClient, ScopedTokenHtt
|
|
|
6523
6529
|
constructor(config: SandboxConfig);
|
|
6524
6530
|
}
|
|
6525
6531
|
//#endregion
|
|
6526
|
-
export {
|
|
6532
|
+
export { getSandboxEventText as $, Team as $t, buildTangleRouterResponsesWebSearchRequest as A, sandboxFailureKind as At, validateProfileForCreate as B, requestedPublicProfileDigest as Bt, RunTangleRouterEvalMatrixInSandboxOptions as C, HostedInstance as Ct, RouterSearchConfigOptions as D, InstanceStart as Dt, RouterSearchConfig as E, InstanceRestartingError as Et, SANDBOX_SIZE_PRESETS as F, generateAttestationNonce as Ft, ManageSandboxesToolOptions as G, BuildProgressEvent as Gt, MANAGE_SANDBOXES_TOOL_NAME as H, TeeAttestationHeartbeatOptions as Ht, resolveSandboxResources as I, BatchResultAccumulator as It, downloadFile as J, ParseSSEStreamOptions as Jt, createManageSandboxesTool as K, ImageSpec as Kt, sandboxResourcesForSize as L, createBatchResultAccumulator as Lt, buildTangleRouterSearchProfile as M, ConfidentialTeeType as Mt, fetchTangleRouterSearchConfig as N, CreateConfidentialSandboxOptions as Nt, TangleSearchProvider as O, InstancesClient as Ot, DEFAULT_SANDBOX_SIZE as P, createConfidentialSandbox as Pt, collectAgentResponseText as Q, InviteTeamMemberOptions as Qt, materializeProfileFileMounts as R, validateBatchRunRequest as Rt, RouterImportedRunResponse as S, EnsureInstanceOptions as St, runTangleRouterEvalMatrixInSandbox as T, InstanceRecord as Tt, ManageSandboxesInput as U, TeeAttestationHeartbeatSample as Ut, MANAGE_SANDBOXES_PARAMETERS as V, TeeAttestationHeartbeat as Vt, ManageSandboxesTool as W, startTeeAttestationHeartbeat as Wt, applySandboxEventText as X, parseSSEStream as Xt, SDK_TIMEOUTS as Y, ParsedSSEEvent as Yt, collectAgentFinalMessageText as Z, CreateTeamOptions as Zt, RouterEvalMatrixPayload as _, SeatSelectionError as _t, SessionBroadcastEvent as a, BackendRegistryInteractionKind as an, ImageBuildOptions as at, RouterEvalMatrixScenario as b, gatewaySeatTransport as bt, RunPlacement as c, backendRegistryEntrySchema as cn, generateDockerfile as ct, RunWaitOptions as d, isBackendRegistryInteractionKind as dn, SandboxResolvedSeat as dt, TeamInvitation as en, isToolBearingEvent as et, RunsClient as f, parseBackendRegistryResponse as fn, SandboxSeatCredentials as ft, RouterEvalMatrixHarness as g, SeatResolutionObservation as gt, RouterEvalMatrixCaseResult as h, SeatOwnerTransport as ht, terminalUpgradeHeadersSupported as i, BackendRegistryEntry as in, ImageBuildFetchClient as it, buildTangleRouterSearchBackend as j, ConfidentialSandboxResult as jt, buildTangleRouterEvalMatrixRequest as k, SandboxFailureKind as kt, RunPlacementRecord as l, backendRegistryInteractionKindSchema as ln, ISOLATED_CREATION_ATTESTATION_VERSION as lt, RouterEvalMatrixAgentProfile as m, SeatOwnerReply as mt, SandboxFleetClient as n, IntelligenceClient as nn, ImageBuildClient as nt, SessionBroadcastResult as o, BackendRegistryResponse as on, ImageBuildResult as ot, RunsHttpClient as p, parseBackendRegistryResponseBody as pn, SandboxSeatSelectionInput as pt, manageSandboxesInputSchema as q, DEFAULT_MAX_EXECUTION_TTL_MS as qt, SandboxFleet as r, BackendRegistryCapabilities as rn, ImageBuildClientConfig as rt, RunOptions as s, backendRegistryCapabilitiesSchema as sn, ImageBuilder as st, Sandbox as t, TeamMember as tn, Image as tt, RunRecord as u, backendRegistryResponseSchema as un, CreateSelectSeatOptions as ut, RouterEvalMatrixSandboxBox as v, SeatSelectionRequest as vt, RunTangleRouterEvalMatrixInSandboxResult as w, InstanceProfile as wt, RouterEvalMatrixSuiteResponse as x, ManagedProcessClient as xt, RouterEvalMatrixSandboxClient as y, createSelectSeat as yt, ProfileCreateVerdict as z, normalizeRuntimeBackendConfig as zt };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-o31uwAkX.js";
|
|
2
2
|
export { CollaborationBootstrapRequest, CollaborationBootstrapResponse, CollaborationClient, CollaborationClientConfig, CollaborationDocumentAdapter, CollaborationDocumentChange, CollaborationDocumentRef, CollaborationFileBridge, CollaborationFileBridgeOptions, CollaborationFileEvent, CollaborationPermissions, CollaborationTokenRefreshRequest, CollaborationTokenRefreshResponse, CollaborationTransportConfig, SaveCollaborationSnapshotRequest, SaveCollaborationSnapshotResponse, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-
|
|
1
|
+
import { a as CollaborationClient, i as parseCollaborationDocumentId, n as buildCollaborationDocumentId, r as normalizeCollaborationPath, t as CollaborationFileBridge } from "../collaboration-Dz20mN9a.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { E as TimeoutError, g as NetworkError, r as parseErrorResponse } from "./errors-
|
|
1
|
+
import { E as TimeoutError, g as NetworkError, r as parseErrorResponse } from "./errors-nXGKGVFe.js";
|
|
2
|
+
import { i as fetchSandboxApi } from "./api-request-dyabkosT.js";
|
|
2
3
|
//#region src/collaboration/client.ts
|
|
3
|
-
const DEFAULT_TIMEOUT_MS = 3e4;
|
|
4
4
|
function normalizeBaseUrl(url) {
|
|
5
5
|
return url.replace(/\/+$/, "");
|
|
6
6
|
}
|
|
@@ -11,7 +11,7 @@ var CollaborationClient = class {
|
|
|
11
11
|
#headers;
|
|
12
12
|
constructor(config) {
|
|
13
13
|
this.baseUrl = normalizeBaseUrl(config.baseUrl);
|
|
14
|
-
this.timeoutMs = config.timeoutMs
|
|
14
|
+
this.timeoutMs = config.timeoutMs;
|
|
15
15
|
this.fetchImpl = config.fetch ?? globalThis.fetch.bind(globalThis);
|
|
16
16
|
this.#headers = config.headers;
|
|
17
17
|
}
|
|
@@ -34,31 +34,24 @@ var CollaborationClient = class {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
async requestJson(path, init) {
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
return response.json();
|
|
55
|
-
} catch (error) {
|
|
56
|
-
if (error instanceof Error && error.name === "AbortError") throw new TimeoutError(`Request timed out after ${this.timeoutMs}ms`, { timeoutMs: this.timeoutMs });
|
|
57
|
-
if (error instanceof Error && "code" in error) throw error;
|
|
58
|
-
throw new NetworkError(`Failed to connect to collaboration API: ${error instanceof Error ? error.message : String(error)}`, { cause: error instanceof Error ? error : void 0 });
|
|
59
|
-
} finally {
|
|
60
|
-
clearTimeout(timeoutId);
|
|
37
|
+
const response = await fetchSandboxApi({
|
|
38
|
+
baseUrl: this.baseUrl,
|
|
39
|
+
timeoutMs: this.timeoutMs,
|
|
40
|
+
fetchImpl: this.fetchImpl,
|
|
41
|
+
timeoutError: (ms) => new TimeoutError(`Request timed out after ${ms}ms`, { timeoutMs: ms }),
|
|
42
|
+
networkError: (error) => new NetworkError(`Failed to connect to collaboration API: ${error instanceof Error ? error.message : String(error)}`, { cause: error instanceof Error ? error : void 0 })
|
|
43
|
+
}, path, {
|
|
44
|
+
...init,
|
|
45
|
+
headers: await this.resolveHeaders()
|
|
46
|
+
});
|
|
47
|
+
if (!response.ok) {
|
|
48
|
+
const body = await response.text();
|
|
49
|
+
throw parseErrorResponse(response.status, body, {
|
|
50
|
+
method: init.method,
|
|
51
|
+
path
|
|
52
|
+
}, response.headers);
|
|
61
53
|
}
|
|
54
|
+
return response.json();
|
|
62
55
|
}
|
|
63
56
|
async resolveHeaders() {
|
|
64
57
|
if (typeof this.#headers === "function") return this.#headers();
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
//#region src/failure-kind.ts
|
|
2
|
+
const LOST_CODES = new Set(["BACKING_CONTAINER_MISSING", "SANDBOX_NOT_FOUND"]);
|
|
3
|
+
const CAPACITY_CODES = new Set([
|
|
4
|
+
"CAPACITY_EXHAUSTED",
|
|
5
|
+
"HOST_PRESSURE",
|
|
6
|
+
"PROVISIONING_PAUSED"
|
|
7
|
+
]);
|
|
8
|
+
const BUDGET_CODES = new Set(["KEY_BUDGET_EXHAUSTED", "QUOTA_EXCEEDED"]);
|
|
9
|
+
const CAPACITY_MESSAGE = /admits no further box|host has no available slot|host capacity reservation failed|no available hosts with capacity/i;
|
|
10
|
+
function chain(error) {
|
|
11
|
+
const causes = [];
|
|
12
|
+
let current = error;
|
|
13
|
+
for (let depth = 0; depth < 8 && current && typeof current === "object"; depth += 1) {
|
|
14
|
+
if (causes.includes(current)) break;
|
|
15
|
+
causes.push(current);
|
|
16
|
+
current = current.cause;
|
|
17
|
+
}
|
|
18
|
+
return causes;
|
|
19
|
+
}
|
|
20
|
+
function sandboxFailureKind(error) {
|
|
21
|
+
for (const cause of chain(error)) {
|
|
22
|
+
const code = String(cause.code ?? "").toUpperCase();
|
|
23
|
+
if (LOST_CODES.has(code)) return "lost";
|
|
24
|
+
if (BUDGET_CODES.has(code) || code.endsWith("_QUOTA_EXCEEDED")) return "budget";
|
|
25
|
+
if (CAPACITY_CODES.has(code)) return "capacity";
|
|
26
|
+
if (typeof cause.message === "string" && CAPACITY_MESSAGE.test(cause.message)) return "capacity";
|
|
27
|
+
}
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region src/line-application.ts
|
|
32
|
+
/** Bounded callback request bytes after canonicalization, including JSON framing. */
|
|
33
|
+
const LINE_APPLICATION_REQUEST_MAX_BYTES = 96 * 1024;
|
|
34
|
+
/** Fits the Lines reply splitter and the callback transport's 64 KiB read bound. */
|
|
35
|
+
const LINE_APPLICATION_REPLY_MAX_CHARS = 12e3;
|
|
36
|
+
function record(value) {
|
|
37
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) throw new TypeError("Expected a line application object");
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
function text(value, max) {
|
|
41
|
+
if (typeof value !== "string" || !value.trim() || value.includes("\0") || value.length > max) throw new TypeError("Invalid line application text");
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
function id(value) {
|
|
45
|
+
const result = text(value, 256);
|
|
46
|
+
if (!/^[A-Za-z0-9][A-Za-z0-9_.:@-]*$/.test(result)) throw new TypeError("Invalid line application identity");
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
49
|
+
function subjectId(value) {
|
|
50
|
+
if (typeof value !== "string" || !/^[A-Za-z0-9][A-Za-z0-9:._-]{0,127}$/.test(value)) throw new TypeError("Invalid line application subject");
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
function revision(value) {
|
|
54
|
+
const result = text(value, 64);
|
|
55
|
+
if (!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(result) || !Number.isFinite(Date.parse(result)) || new Date(result).toISOString() !== result) throw new TypeError("Invalid line member revision");
|
|
56
|
+
return result;
|
|
57
|
+
}
|
|
58
|
+
function deadline(value) {
|
|
59
|
+
const result = text(value, 64);
|
|
60
|
+
if (!/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/.test(result) || !Number.isFinite(Date.parse(result)) || new Date(result).toISOString() !== result) throw new TypeError("Invalid line dispatch deadline");
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
63
|
+
function binding(value) {
|
|
64
|
+
const result = text(value, 1024);
|
|
65
|
+
if (!/^[\x21-\x7e]+$/.test(result)) throw new TypeError("Invalid line application binding");
|
|
66
|
+
return result;
|
|
67
|
+
}
|
|
68
|
+
/** Canonicalize only defined fields. Unknown provider payloads and credentials stay out. */
|
|
69
|
+
function parseLineApplicationRequest(value) {
|
|
70
|
+
const input = record(value);
|
|
71
|
+
if (input.version !== 1) throw new TypeError("Unknown line application version");
|
|
72
|
+
const sender = record(input.sender);
|
|
73
|
+
const transport = input.transport;
|
|
74
|
+
if (transport !== "imessage" && transport !== "sms" && transport !== "whatsapp" && transport !== "email") throw new TypeError("Unknown line transport");
|
|
75
|
+
const receivedAt = text(input.receivedAt, 64);
|
|
76
|
+
if (!Number.isFinite(Date.parse(receivedAt))) throw new TypeError("Invalid line message time");
|
|
77
|
+
const hasSubject = input.subjectId !== void 0;
|
|
78
|
+
const hasRevision = input.memberRevision !== void 0;
|
|
79
|
+
if (hasSubject !== hasRevision) throw new TypeError("Incomplete line member authority");
|
|
80
|
+
const hasFence = input.dispatchFence !== void 0;
|
|
81
|
+
const hasDeadline = input.dispatchDeadline !== void 0;
|
|
82
|
+
if (hasFence !== hasDeadline || hasSubject && !hasFence && input.acceptedExecutionId === void 0) throw new TypeError("Incomplete line dispatch authority");
|
|
83
|
+
const result = {
|
|
84
|
+
version: 1,
|
|
85
|
+
binding: binding(input.binding),
|
|
86
|
+
messageId: id(input.messageId),
|
|
87
|
+
lineId: id(input.lineId),
|
|
88
|
+
attachmentId: id(input.attachmentId),
|
|
89
|
+
memberId: id(input.memberId),
|
|
90
|
+
lineThreadId: id(input.lineThreadId),
|
|
91
|
+
ownerUserId: id(input.ownerUserId),
|
|
92
|
+
...hasSubject ? { subjectId: subjectId(input.subjectId) } : {},
|
|
93
|
+
...hasRevision ? { memberRevision: revision(input.memberRevision) } : {},
|
|
94
|
+
...hasFence ? { dispatchFence: id(input.dispatchFence) } : {},
|
|
95
|
+
...hasDeadline ? { dispatchDeadline: deadline(input.dispatchDeadline) } : {},
|
|
96
|
+
sender: {
|
|
97
|
+
address: text(sender.address, 320),
|
|
98
|
+
role: id(sender.role)
|
|
99
|
+
},
|
|
100
|
+
transport,
|
|
101
|
+
receivedAt,
|
|
102
|
+
...input.acceptedExecutionId === void 0 ? {} : { acceptedExecutionId: id(input.acceptedExecutionId) },
|
|
103
|
+
text: text(input.text, 64 * 1024)
|
|
104
|
+
};
|
|
105
|
+
if (new TextEncoder().encode(JSON.stringify(result)).byteLength > 98304) throw new TypeError("Line application request exceeds the byte limit");
|
|
106
|
+
return result;
|
|
107
|
+
}
|
|
108
|
+
/** A raw agent response is not this receipt. Applications report only settled output. */
|
|
109
|
+
function parseLineApplicationResult(value, request) {
|
|
110
|
+
const result = record(value);
|
|
111
|
+
if (result.version !== 1 || result.binding !== request.binding || result.messageId !== request.messageId || result.attachmentId !== request.attachmentId) throw new TypeError("Line application result identity mismatch");
|
|
112
|
+
if (request.acceptedExecutionId !== void 0 && result.executionId !== request.acceptedExecutionId) throw new TypeError("Accepted application execution changed");
|
|
113
|
+
const identity = {
|
|
114
|
+
version: 1,
|
|
115
|
+
binding: request.binding,
|
|
116
|
+
messageId: request.messageId,
|
|
117
|
+
attachmentId: request.attachmentId
|
|
118
|
+
};
|
|
119
|
+
switch (result.state) {
|
|
120
|
+
case "pending":
|
|
121
|
+
if (typeof result.admitted !== "boolean") throw new TypeError("Admission is not established");
|
|
122
|
+
if (result.admitted) return {
|
|
123
|
+
...identity,
|
|
124
|
+
state: "pending",
|
|
125
|
+
admitted: true,
|
|
126
|
+
executionId: id(result.executionId)
|
|
127
|
+
};
|
|
128
|
+
if (result.executionId !== void 0) throw new TypeError("Unadmitted result cannot name an execution");
|
|
129
|
+
return {
|
|
130
|
+
...identity,
|
|
131
|
+
state: "pending",
|
|
132
|
+
admitted: false
|
|
133
|
+
};
|
|
134
|
+
case "completed": return {
|
|
135
|
+
...identity,
|
|
136
|
+
state: "completed",
|
|
137
|
+
executionId: id(result.executionId),
|
|
138
|
+
text: text(result.text, LINE_APPLICATION_REPLY_MAX_CHARS)
|
|
139
|
+
};
|
|
140
|
+
case "failed": {
|
|
141
|
+
const code = text(result.code, 80);
|
|
142
|
+
if (!/^[a-z][a-z0-9_:.-]*$/.test(code)) throw new TypeError("Invalid failure code");
|
|
143
|
+
return {
|
|
144
|
+
...identity,
|
|
145
|
+
state: "failed",
|
|
146
|
+
code,
|
|
147
|
+
...result.executionId === void 0 ? {} : { executionId: id(result.executionId) }
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
default: throw new TypeError("Unknown line application state");
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/core.ts
|
|
155
|
+
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
|
156
|
+
* Version 1 refuses unconfirmed isolated receipts before materializing any
|
|
157
|
+
* profile/files and suppresses ambient CLI credential discovery. Callers must
|
|
158
|
+
* still inspect the host receipt and their own customer/workspace binding. */
|
|
159
|
+
const ISOLATED_CREATION_ATTESTATION_VERSION = 1;
|
|
160
|
+
//#endregion
|
|
161
|
+
export { parseLineApplicationResult as a, parseLineApplicationRequest as i, LINE_APPLICATION_REPLY_MAX_CHARS as n, sandboxFailureKind as o, LINE_APPLICATION_REQUEST_MAX_BYTES as r, ISOLATED_CREATION_ATTESTATION_VERSION as t };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-
|
|
2
|
-
import { B as ServerError, C as CapabilityError, D as FileWriteConflictError, F as QuotaError, G as ValidationError, L as SandboxError, M as NotFoundError, N as PartialFailureError, P as ProfileFileMountPathError, R as SandboxErrorJson, V as StateError, W as TimeoutError, b as parseErrorResponse, j as NetworkError, x as AuthError, z as SandboxFailureDetail } from "./terminal-stream-types-
|
|
3
|
-
import { En as SandboxConfig, Ga as ExecResult, Gr as ManagedProcessOptions, H as PreviewLinkInfo, Ia as WorkspaceImagePublishInput, In as NetworkConfig, Ja as SandboxEnvRecoveryView, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, La as WorkspaceImagePublishResult, Ri as ConversationTurnOptions, Tn as CreateSandboxOptions, U as PreviewLinkManager, W as PreviewLinkWaitOptions, Wr as ManagedProcessJobs, Yr as ManagedProcessSpec, an as SandboxInfo, kn as SandboxStatus, oa as SessionMessageAdmission, qa as SandboxEnvRecovery, qr as ManagedProcessState, wi as PromptInputPart, yr as ExecOptions, zi as ConversationTurnResult } from "./types-
|
|
4
|
-
import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-
|
|
5
|
-
import { Ct as
|
|
6
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
1
|
+
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-DE5n6mot.js";
|
|
2
|
+
import { B as ServerError, C as CapabilityError, D as FileWriteConflictError, F as QuotaError, G as ValidationError, L as SandboxError, M as NotFoundError, N as PartialFailureError, P as ProfileFileMountPathError, R as SandboxErrorJson, V as StateError, W as TimeoutError, b as parseErrorResponse, j as NetworkError, x as AuthError, z as SandboxFailureDetail } from "./terminal-stream-types-eE97lZ-5.js";
|
|
3
|
+
import { En as SandboxConfig, Ga as ExecResult, Gr as ManagedProcessOptions, H as PreviewLinkInfo, Ia as WorkspaceImagePublishInput, In as NetworkConfig, Ja as SandboxEnvRecoveryView, Jr as ManagedProcessRecord, Kr as ManagedProcessResumeOptions, La as WorkspaceImagePublishResult, Ri as ConversationTurnOptions, Tn as CreateSandboxOptions, U as PreviewLinkManager, W as PreviewLinkWaitOptions, Wr as ManagedProcessJobs, Yr as ManagedProcessSpec, an as SandboxInfo, kn as SandboxStatus, oa as SessionMessageAdmission, qa as SandboxEnvRecovery, qr as ManagedProcessState, wi as PromptInputPart, yr as ExecOptions, zi as ConversationTurnResult } from "./types-Cs5eJzOK.js";
|
|
4
|
+
import { D as LineReplyCode, E as LineReminderPreferences, F as LineSenderVerification, G as LineApplicationRequest, H as LINE_APPLICATION_REPLY_MAX_CHARS, I as LineSenderVerificationStart, J as LineApplicationView, K as LineApplicationResult, N as LineSendInput, O as LineReplyCodeInput, P as LineSendReceipt, T as LineProvider, U as LINE_APPLICATION_REQUEST_MAX_BYTES, W as LineApplication, X as parseLineApplicationResult, Y as parseLineApplicationRequest, _ as LineInstanceCreate, a as Line, b as LineMemberInstance, d as LineAttachment, f as LineAttachmentReauthorization, g as LineInstanceAttachOptions, h as LineImage, i as profileChannelReference, l as LineApplicationAttachOptions, o as LineAgentRolePolicy, p as LineExecutionKey, q as LineApplicationState, r as lineInstanceKey, t as LinesClient, w as LineNumberInventory, y as LineMember } from "./lines-qvpmwN_2.js";
|
|
5
|
+
import { At as sandboxFailureKind, Ct as HostedInstance, Et as InstanceRestartingError, Ot as InstancesClient, St as EnsureInstanceOptions, Tt as InstanceRecord, _t as SeatSelectionError, an as BackendRegistryInteractionKind, bt as gatewaySeatTransport, cn as backendRegistryEntrySchema, dn as isBackendRegistryInteractionKind, dt as SandboxResolvedSeat, fn as parseBackendRegistryResponse, ft as SandboxSeatCredentials, gt as SeatResolutionObservation, ht as SeatOwnerTransport, in as BackendRegistryEntry, kt as SandboxFailureKind, ln as backendRegistryInteractionKindSchema, lt as ISOLATED_CREATION_ATTESTATION_VERSION, mt as SeatOwnerReply, on as BackendRegistryResponse, pn as parseBackendRegistryResponseBody, pt as SandboxSeatSelectionInput, rn as BackendRegistryCapabilities, sn as backendRegistryCapabilitiesSchema, t as Sandbox, un as backendRegistryResponseSchema, ut as CreateSelectSeatOptions, vt as SeatSelectionRequest, wt as InstanceProfile, xt as ManagedProcessClient, yt as createSelectSeat } from "./client-DlTDphmI.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-WuvmbvzY.js";
|
|
7
7
|
export { AuthError, BackendRegistryCapabilities, BackendRegistryEntry, BackendRegistryInteractionKind, BackendRegistryResponse, CapabilityError, ConversationTurnOptions, ConversationTurnResult, CreateSandboxOptions, CreateSelectSeatOptions, EnsureInstanceOptions, ExecOptions, ExecResult, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceProfile, InstanceRecord, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, Line, LineAgentRolePolicy, LineApplication, LineApplicationAttachOptions, LineApplicationRequest, LineApplicationResult, LineApplicationState, LineApplicationView, LineAttachment, LineAttachmentReauthorization, LineExecutionKey, LineImage, LineInstanceAttachOptions, LineInstanceCreate, LineMember, LineMemberInstance, LineNumberInventory, LineProvider, LineReminderPreferences, LineReplyCode, LineReplyCodeInput, LineSendInput, LineSendReceipt, LineSenderVerification, LineSenderVerificationStart, LinesClient, ManagedProcessClient, ManagedProcessJobs, ManagedProcessOptions, ManagedProcessRecord, ManagedProcessResumeOptions, ManagedProcessSpec, ManagedProcessState, NetworkConfig, NetworkError, NotFoundError, PartialFailureError, PreviewLinkInfo, PreviewLinkManager, PreviewLinkWaitOptions, ProfileFileDeliveryReport, ProfileFileMountPathError, PromptInputPart, PublicTemplatePublishArtifact, PublicTemplatePublishError, PublicTemplatePublishJob, PublicTemplatePublishRequestOptions, PublicTemplatesClient, QuotaError, Sandbox, SandboxConfig, SandboxEnvRecovery, SandboxEnvRecoveryView, SandboxError, SandboxErrorJson, SandboxFailureDetail, SandboxFailureKind, SandboxInfo, SandboxInstance, SandboxResolvedSeat, SandboxSeatCredentials, SandboxSeatSelectionInput, SandboxStatus, SeatOwnerReply, SeatOwnerTransport, SeatResolutionObservation, SeatSelectionError, SeatSelectionRequest, ServerError, SessionMessageAdmission, StateError, TimeoutError, ValidationError, WorkspaceImagePublishInput, WorkspaceImagePublishRequestOptions, WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
|
package/dist/core.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
2
|
-
import { C as ServerError, D as ValidationError, E as TimeoutError, S as SandboxError, _ as NotFoundError, b as QuotaError, g as NetworkError, l as CapabilityError, p as FileWriteConflictError, r as parseErrorResponse, s as AuthError, v as PartialFailureError, w as StateError, y as ProfileFileMountPathError } from "./errors-
|
|
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-
|
|
4
|
-
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-
|
|
1
|
+
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-OyCRplrI.js";
|
|
2
|
+
import { C as ServerError, D as ValidationError, E as TimeoutError, S as SandboxError, _ as NotFoundError, b as QuotaError, g as NetworkError, l as CapabilityError, p as FileWriteConflictError, r as parseErrorResponse, s as AuthError, v as PartialFailureError, w as StateError, y as ProfileFileMountPathError } from "./errors-nXGKGVFe.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-BS-PR_-j.js";
|
|
4
|
+
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-CSGBHEjR.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
|
-
import { a as
|
|
6
|
+
import { a as parseLineApplicationResult, i as parseLineApplicationRequest, n as LINE_APPLICATION_REPLY_MAX_CHARS, o as sandboxFailureKind, r as LINE_APPLICATION_REQUEST_MAX_BYTES, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-CUZyz-U8.js";
|
|
7
|
+
import { a as gatewaySeatTransport, i as createSelectSeat, r as SeatSelectionError } from "./select-seat-B4Y-7vIq.js";
|
|
7
8
|
export { AuthError, CapabilityError, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, LinesClient, ManagedProcessClient, NetworkError, NotFoundError, PartialFailureError, ProfileFileMountPathError, PublicTemplatePublishError, PublicTemplatesClient, QuotaError, Sandbox, SandboxError, SandboxInstance, SeatSelectionError, ServerError, StateError, TimeoutError, ValidationError, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseErrorResponse, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference, sandboxFailureKind };
|