@tangle-network/sandbox 0.60.16 → 0.60.17-develop.20261006075143.f71065e
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 +21 -0
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/agent/preview.d.ts +1 -1
- package/dist/{client-CbOQtx9b.d.ts → client-6u7a1HMx.d.ts} +105 -2
- package/dist/{client-CT9Td-BV.js → client-BtsaKP2y.js} +93 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/gpu-lease/index.d.ts +503 -0
- package/dist/gpu-lease/index.js +410 -0
- package/dist/index.d.ts +12 -12
- package/dist/index.js +2 -2
- package/dist/intelligence/index.d.ts +75 -1
- package/dist/intelligence/index.js +71 -20
- package/dist/{preview-T96_mF5c.d.ts → preview-BXglWD2M.d.ts} +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -134,6 +134,26 @@ With `{ until: "removed" }`, a destroyed sandbox counts as confirmed only when i
|
|
|
134
134
|
If the removal wait runs out, the sandbox reports `removal: "pending"` and `confirmed: false`, and `result.complete` is `false`.
|
|
135
135
|
That sandbox is already gone for every read, so a later call does not list it again.
|
|
136
136
|
|
|
137
|
+
## Run a profile without choosing where
|
|
138
|
+
|
|
139
|
+
`client.run()` runs an AgentProfile on a prompt in the environment its needs require. It returns when the run settles.
|
|
140
|
+
|
|
141
|
+
```typescript
|
|
142
|
+
const result = await client.run({
|
|
143
|
+
profile: { name: "support", prompt: { systemPrompt: "Answer billing questions." } },
|
|
144
|
+
prompt: "Which plan includes priority support?",
|
|
145
|
+
// placement: "auto" (default) | "inference" | "worker" | "sandbox"
|
|
146
|
+
});
|
|
147
|
+
console.log(result.placement?.chosen, result.placement?.reason, result.text, result.costUsd);
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
`auto` chooses among three placements:
|
|
151
|
+
- one Router call, when nothing needs a tool, a file or a session;
|
|
152
|
+
- Tangle's sandbox-free agent loop, when the only tools are Hub `connections`, owner `objects` or `http` reads;
|
|
153
|
+
- a sandbox, when the profile needs a harness, files, a shell or MCP servers.
|
|
154
|
+
|
|
155
|
+
A run that cannot be honoured is refused before anything is spent. `client.runs.create()`, `get()` and `wait()` start a run and follow it separately. Runs are served by Platform at `platformUrl`.
|
|
156
|
+
|
|
137
157
|
## Create a sandbox
|
|
138
158
|
|
|
139
159
|
Omit `environment` to use the server's default image. No image choice is
|
|
@@ -855,6 +875,7 @@ The root entrypoint exports the primary client, instance, session, fleet, image,
|
|
|
855
875
|
| Coordinated environments | `SandboxFleetClient`, `SandboxFleet` |
|
|
856
876
|
| Reusable images | `Image`, `ImageBuilder` |
|
|
857
877
|
| Phone and messaging lines | `client.lines`, `box.lines` |
|
|
878
|
+
| Run a profile where its needs require | `client.run()`, `client.runs` |
|
|
858
879
|
| Failures | `SandboxError` and its specific subclasses |
|
|
859
880
|
|
|
860
881
|
The main client provides `create`, `list`, `get`, `usage`, `subscription`, and `health`.
|
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as SandboxSession, h as SandboxTaskSession, r as SandboxInstance } from "../sandbox-DalvAflZ.js";
|
|
2
2
|
import { D as CodeExecutionResult, E as CodeExecutionOptions, Ji as SessionListOptions, Ki as SessionInfo, Kr as SandboxFleetParent, O as CodeLanguage, d as BackendConfig, io as BackendType, k as CodeResultPart } from "../types-CdT-paBK.js";
|
|
3
|
-
import { i as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
3
|
+
import { i as Sandbox } from "../client-6u7a1HMx.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-BXglWD2M.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/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-DY1CnWBn.js";
|
|
2
2
|
import { k as assertCurrentBackendType } from "../interactive-controller-5_ixpFnR.js";
|
|
3
3
|
import { c as NotFoundError, g as ValidationError, m as StateError } from "../errors-D1JIX7Jm.js";
|
|
4
|
-
import { n as Sandbox } from "../client-
|
|
4
|
+
import { n as Sandbox } from "../client-BtsaKP2y.js";
|
|
5
5
|
import { t as SandboxInstance } from "../sandbox-D3VcDY8b.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/agent/instances.ts
|
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-BXglWD2M.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 { $a as BatchEvent, $n as PublicTemplateInfo, Ar as SandboxFleetArtifact,
|
|
|
3
3
|
import { l as ScopedToken, s as MintInteractiveSessionTokenOptions } from "./terminal-stream-B6bUr0hj.js";
|
|
4
4
|
import { I as LinesClient } from "./lines-BTZTbYDz.js";
|
|
5
5
|
import { f as SandboxError } from "./errors-DS32ViPj.js";
|
|
6
|
-
import { AgentInteractiveSessionRef } from "@tangle-network/agent-interface";
|
|
6
|
+
import { AgentInteractiveSessionRef, AgentProfile } from "@tangle-network/agent-interface";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
|
|
9
9
|
//#region src/backend-registry.d.ts
|
|
@@ -537,6 +537,89 @@ declare class InstancesClient {
|
|
|
537
537
|
private write;
|
|
538
538
|
}
|
|
539
539
|
//#endregion
|
|
540
|
+
//#region src/runs.d.ts
|
|
541
|
+
/** Where a run executes. */
|
|
542
|
+
type RunPlacement = "auto" | "inference" | "worker" | "sandbox";
|
|
543
|
+
interface RunOptions {
|
|
544
|
+
/** The agent: an inline AgentProfile, or a built-in or catalog profile id. */
|
|
545
|
+
profile: AgentProfile | string;
|
|
546
|
+
/** What to do in this run. */
|
|
547
|
+
prompt: string;
|
|
548
|
+
/** Default `auto`. */
|
|
549
|
+
placement?: RunPlacement;
|
|
550
|
+
/** A Router model id, when the profile names none. */
|
|
551
|
+
model?: string;
|
|
552
|
+
/** Hub providers the run may use, by name (`slack`, `github`, …). */
|
|
553
|
+
connections?: string[];
|
|
554
|
+
/** Owner-object prefixes and mode the run may use (worker only). */
|
|
555
|
+
objects?: {
|
|
556
|
+
prefixes: string[];
|
|
557
|
+
mode: "read" | "readwrite";
|
|
558
|
+
};
|
|
559
|
+
/** Public HTTPS hosts the run may GET (worker only). */
|
|
560
|
+
http?: {
|
|
561
|
+
hosts: string[];
|
|
562
|
+
};
|
|
563
|
+
/** The run's own wall-clock budget, a duration (`"5m"`) or milliseconds. */
|
|
564
|
+
timeout?: string | number;
|
|
565
|
+
/** Spend cap for the run, in USD. */
|
|
566
|
+
maxCostUsd?: number;
|
|
567
|
+
}
|
|
568
|
+
interface RunWaitOptions {
|
|
569
|
+
/** How long to wait for the run to settle. Default 10 minutes. */
|
|
570
|
+
timeoutMs?: number;
|
|
571
|
+
/** Poll interval. Default 1 second. */
|
|
572
|
+
pollIntervalMs?: number;
|
|
573
|
+
signal?: AbortSignal;
|
|
574
|
+
}
|
|
575
|
+
/** Where the run went and why, as Platform recorded it. */
|
|
576
|
+
interface RunPlacementRecord {
|
|
577
|
+
chosen: Exclude<RunPlacement, "auto">;
|
|
578
|
+
policy: string;
|
|
579
|
+
reason: string;
|
|
580
|
+
rejected: Array<{
|
|
581
|
+
placement: Exclude<RunPlacement, "auto">;
|
|
582
|
+
reason: string;
|
|
583
|
+
}>;
|
|
584
|
+
}
|
|
585
|
+
interface RunRecord {
|
|
586
|
+
id: string;
|
|
587
|
+
/** `queued`, `running`, `waiting`, `succeeded`, `failed` or `cancelled`. */
|
|
588
|
+
status: string;
|
|
589
|
+
placement: RunPlacementRecord | null;
|
|
590
|
+
text: string | null;
|
|
591
|
+
model: string | null;
|
|
592
|
+
usage: {
|
|
593
|
+
inputTokens?: number;
|
|
594
|
+
outputTokens?: number;
|
|
595
|
+
} | null;
|
|
596
|
+
/** What the run cost. `null` when Platform has no measured cost. */
|
|
597
|
+
costUsd: number | null;
|
|
598
|
+
error: string | null;
|
|
599
|
+
createdAt: string;
|
|
600
|
+
startedAt: string | null;
|
|
601
|
+
completedAt: string | null;
|
|
602
|
+
}
|
|
603
|
+
interface RunsHttpClient {
|
|
604
|
+
platformFetch(path: string, options?: RequestInit): Promise<Response>;
|
|
605
|
+
}
|
|
606
|
+
/** `client.runs`: start a run, read it, wait for it. */
|
|
607
|
+
declare class RunsClient {
|
|
608
|
+
private readonly http;
|
|
609
|
+
constructor(http: RunsHttpClient);
|
|
610
|
+
/** Start a run. Returns at once with its id; it executes on Platform. */
|
|
611
|
+
create(options: RunOptions): Promise<{
|
|
612
|
+
id: string;
|
|
613
|
+
status: string;
|
|
614
|
+
}>;
|
|
615
|
+
/** Read a run: its status, placement, answer, cost and error. */
|
|
616
|
+
get(id: string): Promise<RunRecord>;
|
|
617
|
+
/** Poll a run until it settles. */
|
|
618
|
+
wait(id: string, options?: RunWaitOptions): Promise<RunRecord>;
|
|
619
|
+
/** Start a run and wait for it to settle. */
|
|
620
|
+
run(options: RunOptions, wait?: RunWaitOptions): Promise<RunRecord>;
|
|
621
|
+
}
|
|
622
|
+
//#endregion
|
|
540
623
|
//#region src/scoped-token.d.ts
|
|
541
624
|
interface ScopedTokenHttpClient {
|
|
542
625
|
fetch(path: string, options?: RequestInit, fetchOptions?: {
|
|
@@ -575,6 +658,7 @@ declare class Sandbox implements HttpClient, ScopedTokenHttpClient {
|
|
|
575
658
|
private _instances;
|
|
576
659
|
private _intelligence;
|
|
577
660
|
private _lines;
|
|
661
|
+
private _runs;
|
|
578
662
|
constructor(config: SandboxConfig);
|
|
579
663
|
/**
|
|
580
664
|
* Fleet operations for agent-managed groups of sandboxes.
|
|
@@ -596,6 +680,25 @@ declare class Sandbox implements HttpClient, ScopedTokenHttpClient {
|
|
|
596
680
|
* sandbox with `sandbox.lines.attach()`.
|
|
597
681
|
*/
|
|
598
682
|
get lines(): LinesClient;
|
|
683
|
+
/**
|
|
684
|
+
* Runs: run an AgentProfile on a prompt in the environment its needs
|
|
685
|
+
* require — one inference call, Tangle's sandbox-free agent loop, or a
|
|
686
|
+
* sandbox. `placement: "auto"` (the default) chooses and records why.
|
|
687
|
+
*/
|
|
688
|
+
get runs(): RunsClient;
|
|
689
|
+
/**
|
|
690
|
+
* Run an AgentProfile on a prompt and wait for the result.
|
|
691
|
+
*
|
|
692
|
+
* @example
|
|
693
|
+
* ```ts
|
|
694
|
+
* const result = await client.run({
|
|
695
|
+
* profile: { name: "support", prompt: { systemPrompt: "Answer billing questions." } },
|
|
696
|
+
* prompt: "Which plan am I on?",
|
|
697
|
+
* });
|
|
698
|
+
* console.log(result.placement?.chosen, result.text, result.costUsd);
|
|
699
|
+
* ```
|
|
700
|
+
*/
|
|
701
|
+
run(options: RunOptions, wait?: RunWaitOptions): Promise<RunRecord>;
|
|
599
702
|
get intelligence(): IntelligenceClient;
|
|
600
703
|
getApiKey(): string;
|
|
601
704
|
/** A client with this one's settings that authenticates with `apiKey`. */
|
|
@@ -1138,4 +1241,4 @@ declare class TeamsClient {
|
|
|
1138
1241
|
deleteTemplate(teamId: string, templateId: string): Promise<void>;
|
|
1139
1242
|
}
|
|
1140
1243
|
//#endregion
|
|
1141
|
-
export {
|
|
1244
|
+
export { BackendRegistryInteractionKind as A, SandboxFleet as C, parseSSEStream as D, ParsedSSEEvent as E, backendRegistryResponseSchema as F, isBackendRegistryInteractionKind as I, parseBackendRegistryResponse as L, backendRegistryCapabilitiesSchema as M, backendRegistryEntrySchema as N, BackendRegistryCapabilities as O, backendRegistryInteractionKindSchema as P, parseBackendRegistryResponseBody as R, InstancesClient as S, ParseSSEStreamOptions as T, HostedInstance as _, Team as a, InstanceRestartingError as b, SessionBroadcastEvent as c, RunPlacement as d, RunPlacementRecord as f, EnsureInstanceOptions as g, RunsClient as h, Sandbox as i, BackendRegistryResponse as j, BackendRegistryEntry as k, SessionBroadcastResult as l, RunWaitOptions as m, IntelligenceClient as n, TeamInvitation as o, RunRecord as p, InviteTeamMemberOptions as r, TeamMember as s, CreateTeamOptions as t, RunOptions as u, InstanceProfile as v, SandboxFleetClient as w, InstanceStart as x, InstanceRecord as y };
|
|
@@ -3096,6 +3096,73 @@ async function read(response) {
|
|
|
3096
3096
|
return { instance: parsed.instance };
|
|
3097
3097
|
}
|
|
3098
3098
|
//#endregion
|
|
3099
|
+
//#region src/runs.ts
|
|
3100
|
+
const SETTLED = new Set([
|
|
3101
|
+
"succeeded",
|
|
3102
|
+
"failed",
|
|
3103
|
+
"cancelled"
|
|
3104
|
+
]);
|
|
3105
|
+
async function platformData(response) {
|
|
3106
|
+
const body = await response.text();
|
|
3107
|
+
if (!response.ok) throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
3108
|
+
const parsed = JSON.parse(body);
|
|
3109
|
+
if (parsed.success !== true || parsed.data === void 0) throw parseErrorResponse(502, body, void 0, response.headers);
|
|
3110
|
+
return parsed.data;
|
|
3111
|
+
}
|
|
3112
|
+
function abortableDelay(ms, signal) {
|
|
3113
|
+
return new Promise((resolve, reject) => {
|
|
3114
|
+
if (signal?.aborted) {
|
|
3115
|
+
reject(signal.reason);
|
|
3116
|
+
return;
|
|
3117
|
+
}
|
|
3118
|
+
const timer = setTimeout(() => {
|
|
3119
|
+
signal?.removeEventListener("abort", onAbort);
|
|
3120
|
+
resolve();
|
|
3121
|
+
}, ms);
|
|
3122
|
+
const onAbort = () => {
|
|
3123
|
+
clearTimeout(timer);
|
|
3124
|
+
reject(signal?.reason);
|
|
3125
|
+
};
|
|
3126
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
3127
|
+
});
|
|
3128
|
+
}
|
|
3129
|
+
/** `client.runs`: start a run, read it, wait for it. */
|
|
3130
|
+
var RunsClient = class {
|
|
3131
|
+
constructor(http) {
|
|
3132
|
+
this.http = http;
|
|
3133
|
+
}
|
|
3134
|
+
/** Start a run. Returns at once with its id; it executes on Platform. */
|
|
3135
|
+
async create(options) {
|
|
3136
|
+
if (!options.prompt) throw new ValidationError("prompt is required", { prompt: "required" });
|
|
3137
|
+
return platformData(await this.http.platformFetch("/v1/runs", {
|
|
3138
|
+
method: "POST",
|
|
3139
|
+
headers: { "Content-Type": "application/json" },
|
|
3140
|
+
body: JSON.stringify(options)
|
|
3141
|
+
}));
|
|
3142
|
+
}
|
|
3143
|
+
/** Read a run: its status, placement, answer, cost and error. */
|
|
3144
|
+
async get(id) {
|
|
3145
|
+
return platformData(await this.http.platformFetch(`/v1/runs/${encodeURIComponent(id)}`));
|
|
3146
|
+
}
|
|
3147
|
+
/** Poll a run until it settles. */
|
|
3148
|
+
async wait(id, options = {}) {
|
|
3149
|
+
const timeoutMs = options.timeoutMs ?? 10 * 6e4;
|
|
3150
|
+
const deadline = Date.now() + timeoutMs;
|
|
3151
|
+
const interval = options.pollIntervalMs ?? 1e3;
|
|
3152
|
+
for (;;) {
|
|
3153
|
+
const record = await this.get(id);
|
|
3154
|
+
if (SETTLED.has(record.status)) return record;
|
|
3155
|
+
if (Date.now() + interval > deadline) throw new TimeoutError(timeoutMs, `run ${id} did not settle within ${timeoutMs}ms (last status ${record.status})`);
|
|
3156
|
+
await abortableDelay(interval, options.signal);
|
|
3157
|
+
}
|
|
3158
|
+
}
|
|
3159
|
+
/** Start a run and wait for it to settle. */
|
|
3160
|
+
async run(options, wait = {}) {
|
|
3161
|
+
const { id } = await this.create(options);
|
|
3162
|
+
return this.wait(id, wait);
|
|
3163
|
+
}
|
|
3164
|
+
};
|
|
3165
|
+
//#endregion
|
|
3099
3166
|
//#region src/session-events.ts
|
|
3100
3167
|
async function broadcastSessionEvent(client, sessionId, event) {
|
|
3101
3168
|
if (!sessionId.trim()) throw new ValidationError("Session ID is required");
|
|
@@ -3320,6 +3387,7 @@ var Sandbox = class Sandbox {
|
|
|
3320
3387
|
_instances = null;
|
|
3321
3388
|
_intelligence = null;
|
|
3322
3389
|
_lines = null;
|
|
3390
|
+
_runs = null;
|
|
3323
3391
|
constructor(config) {
|
|
3324
3392
|
if (!config.apiKey) throw new AuthError("API key is required");
|
|
3325
3393
|
if (!config.baseUrl) throw new ValidationError("Base URL is required");
|
|
@@ -3359,6 +3427,30 @@ var Sandbox = class Sandbox {
|
|
|
3359
3427
|
if (!this._lines) this._lines = new LinesClient(this);
|
|
3360
3428
|
return this._lines;
|
|
3361
3429
|
}
|
|
3430
|
+
/**
|
|
3431
|
+
* Runs: run an AgentProfile on a prompt in the environment its needs
|
|
3432
|
+
* require — one inference call, Tangle's sandbox-free agent loop, or a
|
|
3433
|
+
* sandbox. `placement: "auto"` (the default) chooses and records why.
|
|
3434
|
+
*/
|
|
3435
|
+
get runs() {
|
|
3436
|
+
if (!this._runs) this._runs = new RunsClient(this);
|
|
3437
|
+
return this._runs;
|
|
3438
|
+
}
|
|
3439
|
+
/**
|
|
3440
|
+
* Run an AgentProfile on a prompt and wait for the result.
|
|
3441
|
+
*
|
|
3442
|
+
* @example
|
|
3443
|
+
* ```ts
|
|
3444
|
+
* const result = await client.run({
|
|
3445
|
+
* profile: { name: "support", prompt: { systemPrompt: "Answer billing questions." } },
|
|
3446
|
+
* prompt: "Which plan am I on?",
|
|
3447
|
+
* });
|
|
3448
|
+
* console.log(result.placement?.chosen, result.text, result.costUsd);
|
|
3449
|
+
* ```
|
|
3450
|
+
*/
|
|
3451
|
+
run(options, wait) {
|
|
3452
|
+
return this.runs.run(options, wait);
|
|
3453
|
+
}
|
|
3362
3454
|
get intelligence() {
|
|
3363
3455
|
if (!this._intelligence) this._intelligence = new IntelligenceClient(this);
|
|
3364
3456
|
return this._intelligence;
|
|
@@ -4527,4 +4619,4 @@ var TeamsClient = class {
|
|
|
4527
4619
|
}
|
|
4528
4620
|
};
|
|
4529
4621
|
//#endregion
|
|
4530
|
-
export {
|
|
4622
|
+
export { parseBackendRegistryResponse as _, InstanceRestartingError as a, SandboxFleetClient as c, validateBatchRunRequest as d, backendRegistryCapabilitiesSchema as f, isBackendRegistryInteractionKind as g, backendRegistryResponseSchema as h, HostedInstance as i, runtimeWorkspaceCwdSchema as l, backendRegistryInteractionKindSchema as m, Sandbox as n, InstancesClient as o, backendRegistryEntrySchema as p, RunsClient as r, SandboxFleet as s, IntelligenceClient as t, createBatchResultAccumulator as u, parseBackendRegistryResponseBody as v };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as WorkspaceImagePublishRequestOptions, i as WorkspaceImagePublishInput, o as WorkspaceImagePublishResult, r as SandboxInstance, s as WorkspaceImages } from "./sandbox-DalvAflZ.js";
|
|
2
2
|
import { An as NetworkConfig, B as CreateSandboxOptions, Ba as ManagedProcessState, Fa as ManagedProcessJobs, Fn as PreviewLinkInfo, Ha as SandboxEnvRecoveryView, Ia as ManagedProcessOptions, In as PreviewLinkManager, Kn as PromptInputPart, La as ManagedProcessRecord, Ln as PreviewLinkWaitOptions, M as ConversationTurnOptions, N as ConversationTurnResult, Pa as ManagedProcessClient, Ra as ManagedProcessResumeOptions, Va as SandboxEnvRecovery, Xi as SessionMessageAdmission, ci as SandboxInfo, vt as ExecOptions, xi as SandboxStatus, yr as SandboxConfig, yt as ExecResult, za as ManagedProcessSpec } from "./types-CdT-paBK.js";
|
|
3
3
|
import { A as LineSenderVerification, B as profileChannelReference, C as LineReplyCodeInput, G as LineApplicationResult, H as LINE_APPLICATION_REQUEST_MAX_BYTES, I as LinesClient, J as parseLineApplicationRequest, K as LineApplicationState, O as LineSendInput, S as LineReplyCode, U as LineApplication, V as LINE_APPLICATION_REPLY_MAX_CHARS, W as LineApplicationRequest, Y as parseLineApplicationResult, a as LineApplicationAttachOptions, b as LineProvider, c as LineAttachmentReauthorization, d as LineInstanceAttachOptions, f as LineInstanceCreate, h as LineMemberInstance, j as LineSenderVerificationStart, k as LineSendReceipt, l as LineExecutionKey, m as LineMember, n as LineAgentRolePolicy, q as LineApplicationView, s as LineAttachment, t as Line, x as LineReminderPreferences, y as LineNumberInventory, z as lineInstanceKey } from "./lines-BTZTbYDz.js";
|
|
4
|
-
import { A as
|
|
4
|
+
import { A as BackendRegistryInteractionKind, F as backendRegistryResponseSchema, I as isBackendRegistryInteractionKind, L as parseBackendRegistryResponse, M as backendRegistryCapabilitiesSchema, N as backendRegistryEntrySchema, O as BackendRegistryCapabilities, P as backendRegistryInteractionKindSchema, R as parseBackendRegistryResponseBody, S as InstancesClient, _ as HostedInstance, b as InstanceRestartingError, g as EnsureInstanceOptions, i as Sandbox, j as BackendRegistryResponse, k as BackendRegistryEntry, v as InstanceProfile, y as InstanceRecord } from "./client-6u7a1HMx.js";
|
|
5
5
|
import { _ as TimeoutError, a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as StateError, h as ServerError, l as PartialFailureError, m as SandboxFailureDetail, n as CapabilityError, p as SandboxErrorJson, s as NetworkError, t as AuthError, u as QuotaError, v as ValidationError } from "./errors-DS32ViPj.js";
|
|
6
6
|
|
|
7
7
|
//#region src/core.d.ts
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as FileWriteConflictError, c as NotFoundError, f as SandboxError, g as ValidationError, h as TimeoutError, l as PartialFailureError, m as StateError, n as CapabilityError, p as ServerError, s as NetworkError, t as AuthError, u as QuotaError } from "./errors-D1JIX7Jm.js";
|
|
2
|
-
import { _ as
|
|
2
|
+
import { _ as parseBackendRegistryResponse, a as InstanceRestartingError, f as backendRegistryCapabilitiesSchema, g as isBackendRegistryInteractionKind, h as backendRegistryResponseSchema, i as HostedInstance, m as backendRegistryInteractionKindSchema, n as Sandbox, o as InstancesClient, p as backendRegistryEntrySchema, v as parseBackendRegistryResponseBody } from "./client-BtsaKP2y.js";
|
|
3
3
|
import { o as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-D3VcDY8b.js";
|
|
4
4
|
import { LinesClient, lineInstanceKey, profileChannelReference } from "./lines.js";
|
|
5
5
|
import { i as parseLineApplicationResult, n as LINE_APPLICATION_REQUEST_MAX_BYTES, r as parseLineApplicationRequest, t as LINE_APPLICATION_REPLY_MAX_CHARS } from "./line-application-C2SuT1zK.js";
|