@tangle-network/sandbox 0.60.78-develop.20261024232022.369abcd → 0.60.78-develop.20261025012508.ed55877
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/index.d.ts +96 -172
- package/dist/agent/index.js +60 -123
- package/dist/agent/preview.d.ts +1 -1
- package/dist/{agent-run-outcome-D8Riqf7N.d.ts → agent-run-outcome-BWY-vwU8.d.ts} +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/{chunked-upload-file-Ci5dxctW.js → chunked-upload-file-BpfpPCsE.js} +1 -1
- package/dist/{client-DV1SbwZK.d.ts → client-C0rEjjtU.d.ts} +259 -252
- package/dist/{client-CmoTway8.js → client-CUYXXFJB.js} +170 -170
- package/dist/collaboration/index.js +1 -1
- package/dist/{select-seat-BSEdpAMq.js → core-DnrLA0im.js} +9 -2
- package/dist/core.d.ts +6 -14
- package/dist/core.js +4 -11
- package/dist/{direct-http2-B7Uw2o-9.js → direct-http2-6fHIO7eF.js} +1 -1
- package/dist/{index-DpsISCBX.d.ts → index-C1MBHl8J.d.ts} +3 -3
- package/dist/index.d.ts +8 -8
- package/dist/index.js +233 -8
- package/dist/{interactive-controller-BtdROvsm.d.ts → interactive-controller-BhGELtiP.d.ts} +1 -1
- package/dist/{interactive-controller-DLrI-UvT.js → interactive-controller-DoYo8Kq5.js} +1 -1
- package/dist/lib/prepared-process.js +1 -1
- package/dist/{lines-DViw4KHn.d.ts → lines-B5PUWzfB.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/lines.js +1 -1
- package/dist/{local-cli-auth-BO2sfVoW.js → local-cli-auth--crCWGcG.js} +1 -1
- package/dist/{preview-DRZnmu5V.d.ts → preview-DURO4PiP.d.ts} +3 -3
- package/dist/{public-templates-ursM1K2F.d.ts → public-templates-Dpv5n9be.d.ts} +1 -1
- package/dist/public-templates.d.ts +1 -1
- package/dist/runtime.d.ts +3 -3
- package/dist/runtime.js +2 -2
- package/dist/{sandbox-DiigN_DB.js → sandbox-D-AOea4t.js} +8 -8
- package/dist/select-seat-command.d.ts +1 -1
- package/dist/tangle/index.d.ts +1 -1
- package/dist/tangle/index.js +1 -1
- package/dist/{tangle-Ci5No-40.js → tangle-D-h2SpVO.js} +1 -1
- package/dist/{types-D_RvPPTq.d.ts → types-mC2pva3m.d.ts} +64 -30
- package/package.json +2 -2
- /package/dist/{chunked-upload-DC2b4-t5.js → chunked-upload-D1DL0f88.js} +0 -0
- /package/dist/{cli-auth-bundle-BBuXynrM.js → cli-auth-bundle-Ymv99-5G.js} +0 -0
- /package/dist/{collaboration-CPU10E5p.js → collaboration-Tn2ygatK.js} +0 -0
- /package/dist/{keep-alive-fetch-BOEM_9nC.js → keep-alive-fetch-_KZcsAS_.js} +0 -0
- /package/dist/{lines-DBaAhcFv.js → lines-BdF6b46c.js} +0 -0
- /package/dist/{prepared-process-Bj6Ly6R2.js → prepared-process-DNX-AVJ3.js} +0 -0
|
@@ -1,84 +1,13 @@
|
|
|
1
1
|
import { r as backendTypeSchema } from "./backend-types-CLvdSX8V.js";
|
|
2
|
-
import { A as normalizeRuntimeBackendConfig, C as encodePromptForWire, D as assertCurrentBackendType, E as applyRequestedModel, N as withProfileHarness, O as foldModelRoutingFields, P as withoutCreateOnlyModelFields, b as parseSSEStream, o as requestInteractiveSessionToken } from "./interactive-controller-
|
|
2
|
+
import { A as normalizeRuntimeBackendConfig, C as encodePromptForWire, D as assertCurrentBackendType, E as applyRequestedModel, N as withProfileHarness, O as foldModelRoutingFields, P as withoutCreateOnlyModelFields, b as parseSSEStream, o as requestInteractiveSessionToken } from "./interactive-controller-DoYo8Kq5.js";
|
|
3
3
|
import { T as ValidationError, a as AuthError, b as SandboxError, d as GpuProviderNotConfiguredError, g as PartialFailureError, h as NotFoundError, i as readResponseJson, m as NetworkError, n as parseErrorResponse, p as NON_RETRYABLE_CREATE_QUOTA_REASONS, r as parseResponseError, v as QuotaError, w as TimeoutError, x as ServerError } from "./errors-CfQHPcLX.js";
|
|
4
4
|
import { f as combineAbortSignals } from "./browser-interactive-control-controller-k1KkqDGF.js";
|
|
5
|
-
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-
|
|
6
|
-
import { A as normalizeSandboxCreateReceipt, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, I as rewrapResponse, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, T as splitInlineProfileFileMounts, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, o as exportTraceBundle } from "./sandbox-
|
|
7
|
-
import { t as LinesClient } from "./lines-
|
|
5
|
+
import { n as fetchWithKeepAlive } from "./keep-alive-fetch-_KZcsAS_.js";
|
|
6
|
+
import { A as normalizeSandboxCreateReceipt, D as validateDeferredProfileFileMounts, E as splitInlineProfileSkills, F as normalizeSandboxShape, I as rewrapResponse, M as parseStopPhase, N as normalizeConnection, O as isRetryableProfileFileMaterializeFailure, P as normalizeEgressPolicyFields, T as splitInlineProfileFileMounts, j as normalizeStartupDiagnostics, k as normalizeCaptureProof, n as createSandboxInstanceFromResponse, o as exportTraceBundle } from "./sandbox-D-AOea4t.js";
|
|
7
|
+
import { t as LinesClient } from "./lines-BdF6b46c.js";
|
|
8
8
|
import { PublicTemplatesClient } from "./public-templates.js";
|
|
9
9
|
import { z } from "zod";
|
|
10
10
|
import { agentProfileSchema } from "@tangle-network/agent-interface";
|
|
11
|
-
//#region src/backend-registry.ts
|
|
12
|
-
/** Interaction kinds a backend can originate when the caller enables them. */
|
|
13
|
-
const backendRegistryInteractionKindSchema = z.enum([
|
|
14
|
-
"permission",
|
|
15
|
-
"question",
|
|
16
|
-
"plan"
|
|
17
|
-
]);
|
|
18
|
-
/** True when an advertised interaction kind is understood by this SDK. */
|
|
19
|
-
function isBackendRegistryInteractionKind(value) {
|
|
20
|
-
return backendRegistryInteractionKindSchema.safeParse(value).success;
|
|
21
|
-
}
|
|
22
|
-
/** Static capabilities advertised by one registered agent backend. */
|
|
23
|
-
const backendRegistryCapabilitiesSchema = z.object({
|
|
24
|
-
streaming: z.boolean(),
|
|
25
|
-
toolUse: z.boolean(),
|
|
26
|
-
reasoning: z.boolean(),
|
|
27
|
-
multimodal: z.boolean(),
|
|
28
|
-
imageInput: z.boolean(),
|
|
29
|
-
contextWindow: z.number(),
|
|
30
|
-
mcp: z.boolean(),
|
|
31
|
-
runtimeAttachments: z.object({ mcp: z.literal(true) }).optional(),
|
|
32
|
-
sessions: z.boolean(),
|
|
33
|
-
configurable: z.boolean(),
|
|
34
|
-
interactions: z.array(z.string().min(1)).transform((values) => values.filter(isBackendRegistryInteractionKind))
|
|
35
|
-
});
|
|
36
|
-
/** One backend entry returned by the Sandbox API registry. */
|
|
37
|
-
const backendRegistryEntrySchema = z.object({
|
|
38
|
-
type: z.string().min(1),
|
|
39
|
-
name: z.string(),
|
|
40
|
-
description: z.string(),
|
|
41
|
-
capabilities: backendRegistryCapabilitiesSchema,
|
|
42
|
-
/**
|
|
43
|
-
* True when Tangle Router cannot serve the backend, so a create must carry
|
|
44
|
-
* the caller's own credential. Absent from an API that predates the field.
|
|
45
|
-
*/
|
|
46
|
-
callerCredentialOnly: z.boolean().optional()
|
|
47
|
-
});
|
|
48
|
-
/** The exact response returned by authenticated `GET /v1/backends`. */
|
|
49
|
-
const backendRegistryResponseSchema = z.object({
|
|
50
|
-
backends: z.array(backendRegistryEntrySchema),
|
|
51
|
-
timestamp: z.string().datetime()
|
|
52
|
-
});
|
|
53
|
-
function invalidBackendRegistry(message) {
|
|
54
|
-
throw new ServerError(message, 502, {
|
|
55
|
-
origin: "sandbox-api",
|
|
56
|
-
endpoint: "/v1/backends"
|
|
57
|
-
}, "INVALID_BACKEND_REGISTRY");
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Validate required registry fields and ignore fields from newer API versions.
|
|
61
|
-
* Unknown runners remain visible. Unknown interaction kinds remain disabled.
|
|
62
|
-
*/
|
|
63
|
-
function parseBackendRegistryResponse(value) {
|
|
64
|
-
const parsed = backendRegistryResponseSchema.safeParse(value);
|
|
65
|
-
if (!parsed.success) {
|
|
66
|
-
const issue = parsed.error.issues[0];
|
|
67
|
-
invalidBackendRegistry(`Sandbox API returned an invalid /v1/backends response at ${issue?.path.length ? issue.path.join(".") : "response"}: ${issue?.message ?? parsed.error.message}`);
|
|
68
|
-
}
|
|
69
|
-
return parsed.data;
|
|
70
|
-
}
|
|
71
|
-
/** Parse and validate the JSON body returned by `GET /v1/backends`. */
|
|
72
|
-
function parseBackendRegistryResponseBody(body) {
|
|
73
|
-
let value;
|
|
74
|
-
try {
|
|
75
|
-
value = JSON.parse(body);
|
|
76
|
-
} catch {
|
|
77
|
-
invalidBackendRegistry("Sandbox API returned invalid JSON for /v1/backends");
|
|
78
|
-
}
|
|
79
|
-
return parseBackendRegistryResponse(value);
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
11
|
//#region ../../../packages/runtime-contracts/dist/git-policy.js
|
|
83
12
|
const MAX_GIT_AUTH_TOKEN_LENGTH = 4096;
|
|
84
13
|
const MAX_GIT_REPOSITORY_PATH_SEGMENT_LENGTH = 255;
|
|
@@ -870,6 +799,169 @@ function createNormalizedBatchResultAccumulator(request) {
|
|
|
870
799
|
};
|
|
871
800
|
}
|
|
872
801
|
//#endregion
|
|
802
|
+
//#region src/client-intelligence.ts
|
|
803
|
+
/**
|
|
804
|
+
* Client for the Intelligence Reports API.
|
|
805
|
+
*
|
|
806
|
+
* Two analysis modes:
|
|
807
|
+
*
|
|
808
|
+
* - `deterministic` (default): free, rule-based platform analysis over
|
|
809
|
+
* the subject's trace evidence. Returns immediately.
|
|
810
|
+
* - `agentic`: routes to the **Tangle Trace Analyst**, an LLM-driven
|
|
811
|
+
* reasoning loop that reads OTLP-shaped trace evidence and emits
|
|
812
|
+
* findings, evidence references, recommended actions, and a
|
|
813
|
+
* validation plan. Billed against `budget.maxUsd`; the platform
|
|
814
|
+
* never spends past the budget the caller sets.
|
|
815
|
+
*
|
|
816
|
+
* Subjects: `sandbox` or `fleet`. A fleet subject can be narrowed to
|
|
817
|
+
* a single coordinated command via `subject.dispatchId`.
|
|
818
|
+
*/
|
|
819
|
+
var IntelligenceClient = class {
|
|
820
|
+
constructor(client) {
|
|
821
|
+
this.client = client;
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Create an intelligence report over the given subject.
|
|
825
|
+
*
|
|
826
|
+
* Use `mode: "agentic"` to engage the **Tangle Trace Analyst** with a
|
|
827
|
+
* spending budget. The budget is enforced server-side before billing
|
|
828
|
+
* fires — a request whose computed cost exceeds `budget.maxUsd`
|
|
829
|
+
* returns 402 without charging the customer.
|
|
830
|
+
*/
|
|
831
|
+
async createReport(options) {
|
|
832
|
+
const response = await this.client.fetch("/v1/intelligence/reports", {
|
|
833
|
+
method: "POST",
|
|
834
|
+
body: JSON.stringify(options)
|
|
835
|
+
});
|
|
836
|
+
const body = await response.text();
|
|
837
|
+
if (!response.ok) throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
838
|
+
return JSON.parse(body).report;
|
|
839
|
+
}
|
|
840
|
+
async createAgenticReport(options) {
|
|
841
|
+
return this.createReport({
|
|
842
|
+
subject: options.subject,
|
|
843
|
+
mode: "agentic",
|
|
844
|
+
budget: {
|
|
845
|
+
billTo: "customer",
|
|
846
|
+
maxUsd: options.maxUsd
|
|
847
|
+
},
|
|
848
|
+
metadata: options.metadata
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* Estimate the cost of a prospective report without creating one.
|
|
853
|
+
* Verifies subject ownership the same way `createReport` does, so it
|
|
854
|
+
* never becomes an existence oracle for foreign subjects.
|
|
855
|
+
*/
|
|
856
|
+
async estimateReport(options) {
|
|
857
|
+
const response = await this.client.fetch("/v1/intelligence/reports/estimate", {
|
|
858
|
+
method: "POST",
|
|
859
|
+
body: JSON.stringify(options)
|
|
860
|
+
});
|
|
861
|
+
const body = await response.text();
|
|
862
|
+
if (!response.ok) throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
863
|
+
return JSON.parse(body).estimate;
|
|
864
|
+
}
|
|
865
|
+
async getReport(jobId) {
|
|
866
|
+
const response = await this.client.fetch(`/v1/intelligence/reports/${encodeURIComponent(jobId)}`);
|
|
867
|
+
const body = await response.text();
|
|
868
|
+
if (!response.ok) throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
869
|
+
return JSON.parse(body).report;
|
|
870
|
+
}
|
|
871
|
+
async listReports(options = {}) {
|
|
872
|
+
const query = new URLSearchParams();
|
|
873
|
+
if (options.subjectType) query.set("subjectType", options.subjectType);
|
|
874
|
+
if (options.subjectId) query.set("subjectId", options.subjectId);
|
|
875
|
+
if (options.limit !== void 0) query.set("limit", String(options.limit));
|
|
876
|
+
const suffix = query.size > 0 ? `?${query}` : "";
|
|
877
|
+
const response = await this.client.fetch(`/v1/intelligence/reports${suffix}`);
|
|
878
|
+
const body = await response.text();
|
|
879
|
+
if (!response.ok) throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
880
|
+
return JSON.parse(body).reports;
|
|
881
|
+
}
|
|
882
|
+
async waitForReport(jobId, options = {}) {
|
|
883
|
+
const deadline = Date.now() + (options.timeoutMs ?? 6e4);
|
|
884
|
+
const pollMs = options.pollMs ?? 1e3;
|
|
885
|
+
while (true) {
|
|
886
|
+
const report = await this.getReport(jobId);
|
|
887
|
+
if (report.status === "completed" || report.status === "failed") return report;
|
|
888
|
+
if (Date.now() >= deadline) throw new TimeoutError(options.timeoutMs ?? 6e4);
|
|
889
|
+
await new Promise((resolve) => setTimeout(resolve, Math.min(pollMs, Math.max(0, deadline - Date.now()))));
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
};
|
|
893
|
+
//#endregion
|
|
894
|
+
//#region src/backend-registry.ts
|
|
895
|
+
/** Interaction kinds a backend can originate when the caller enables them. */
|
|
896
|
+
const backendRegistryInteractionKindSchema = z.enum([
|
|
897
|
+
"permission",
|
|
898
|
+
"question",
|
|
899
|
+
"plan"
|
|
900
|
+
]);
|
|
901
|
+
/** True when an advertised interaction kind is understood by this SDK. */
|
|
902
|
+
function isBackendRegistryInteractionKind(value) {
|
|
903
|
+
return backendRegistryInteractionKindSchema.safeParse(value).success;
|
|
904
|
+
}
|
|
905
|
+
/** Static capabilities advertised by one registered agent backend. */
|
|
906
|
+
const backendRegistryCapabilitiesSchema = z.object({
|
|
907
|
+
streaming: z.boolean(),
|
|
908
|
+
toolUse: z.boolean(),
|
|
909
|
+
reasoning: z.boolean(),
|
|
910
|
+
multimodal: z.boolean(),
|
|
911
|
+
imageInput: z.boolean(),
|
|
912
|
+
contextWindow: z.number(),
|
|
913
|
+
mcp: z.boolean(),
|
|
914
|
+
runtimeAttachments: z.object({ mcp: z.literal(true) }).optional(),
|
|
915
|
+
sessions: z.boolean(),
|
|
916
|
+
configurable: z.boolean(),
|
|
917
|
+
interactions: z.array(z.string().min(1)).transform((values) => values.filter(isBackendRegistryInteractionKind))
|
|
918
|
+
});
|
|
919
|
+
/** One backend entry returned by the Sandbox API registry. */
|
|
920
|
+
const backendRegistryEntrySchema = z.object({
|
|
921
|
+
type: z.string().min(1),
|
|
922
|
+
name: z.string(),
|
|
923
|
+
description: z.string(),
|
|
924
|
+
capabilities: backendRegistryCapabilitiesSchema,
|
|
925
|
+
/**
|
|
926
|
+
* True when Tangle Router cannot serve the backend, so a create must carry
|
|
927
|
+
* the caller's own credential. Absent from an API that predates the field.
|
|
928
|
+
*/
|
|
929
|
+
callerCredentialOnly: z.boolean().optional()
|
|
930
|
+
});
|
|
931
|
+
/** The exact response returned by authenticated `GET /v1/backends`. */
|
|
932
|
+
const backendRegistryResponseSchema = z.object({
|
|
933
|
+
backends: z.array(backendRegistryEntrySchema),
|
|
934
|
+
timestamp: z.string().datetime()
|
|
935
|
+
});
|
|
936
|
+
function invalidBackendRegistry(message) {
|
|
937
|
+
throw new ServerError(message, 502, {
|
|
938
|
+
origin: "sandbox-api",
|
|
939
|
+
endpoint: "/v1/backends"
|
|
940
|
+
}, "INVALID_BACKEND_REGISTRY");
|
|
941
|
+
}
|
|
942
|
+
/**
|
|
943
|
+
* Validate required registry fields and ignore fields from newer API versions.
|
|
944
|
+
* Unknown runners remain visible. Unknown interaction kinds remain disabled.
|
|
945
|
+
*/
|
|
946
|
+
function parseBackendRegistryResponse(value) {
|
|
947
|
+
const parsed = backendRegistryResponseSchema.safeParse(value);
|
|
948
|
+
if (!parsed.success) {
|
|
949
|
+
const issue = parsed.error.issues[0];
|
|
950
|
+
invalidBackendRegistry(`Sandbox API returned an invalid /v1/backends response at ${issue?.path.length ? issue.path.join(".") : "response"}: ${issue?.message ?? parsed.error.message}`);
|
|
951
|
+
}
|
|
952
|
+
return parsed.data;
|
|
953
|
+
}
|
|
954
|
+
/** Parse and validate the JSON body returned by `GET /v1/backends`. */
|
|
955
|
+
function parseBackendRegistryResponseBody(body) {
|
|
956
|
+
let value;
|
|
957
|
+
try {
|
|
958
|
+
value = JSON.parse(body);
|
|
959
|
+
} catch {
|
|
960
|
+
invalidBackendRegistry("Sandbox API returned invalid JSON for /v1/backends");
|
|
961
|
+
}
|
|
962
|
+
return parseBackendRegistryResponse(value);
|
|
963
|
+
}
|
|
964
|
+
//#endregion
|
|
873
965
|
//#region ../../../packages/runtime-contracts/dist/batch-events.js
|
|
874
966
|
const countSchema = z.number().int().nonnegative();
|
|
875
967
|
const durationSchema = z.number().nonnegative();
|
|
@@ -1222,11 +1314,11 @@ function isLocalSandboxEndpoint(baseUrl) {
|
|
|
1222
1314
|
}
|
|
1223
1315
|
}
|
|
1224
1316
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
1225
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth
|
|
1317
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth--crCWGcG.js");
|
|
1226
1318
|
return discoverLocalCliAuthFiles(backendType);
|
|
1227
1319
|
}
|
|
1228
1320
|
async function loadLocalCliAuthExpectation(backendType) {
|
|
1229
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth
|
|
1321
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth--crCWGcG.js");
|
|
1230
1322
|
return describe(backendType);
|
|
1231
1323
|
}
|
|
1232
1324
|
/**
|
|
@@ -2253,98 +2345,6 @@ var SandboxBatch = class extends SandboxCreation {
|
|
|
2253
2345
|
}
|
|
2254
2346
|
};
|
|
2255
2347
|
//#endregion
|
|
2256
|
-
//#region src/client-intelligence.ts
|
|
2257
|
-
/**
|
|
2258
|
-
* Client for the Intelligence Reports API.
|
|
2259
|
-
*
|
|
2260
|
-
* Two analysis modes:
|
|
2261
|
-
*
|
|
2262
|
-
* - `deterministic` (default): free, rule-based platform analysis over
|
|
2263
|
-
* the subject's trace evidence. Returns immediately.
|
|
2264
|
-
* - `agentic`: routes to the **Tangle Trace Analyst**, an LLM-driven
|
|
2265
|
-
* reasoning loop that reads OTLP-shaped trace evidence and emits
|
|
2266
|
-
* findings, evidence references, recommended actions, and a
|
|
2267
|
-
* validation plan. Billed against `budget.maxUsd`; the platform
|
|
2268
|
-
* never spends past the budget the caller sets.
|
|
2269
|
-
*
|
|
2270
|
-
* Subjects: `sandbox` or `fleet`. A fleet subject can be narrowed to
|
|
2271
|
-
* a single coordinated command via `subject.dispatchId`.
|
|
2272
|
-
*/
|
|
2273
|
-
var IntelligenceClient = class {
|
|
2274
|
-
constructor(client) {
|
|
2275
|
-
this.client = client;
|
|
2276
|
-
}
|
|
2277
|
-
/**
|
|
2278
|
-
* Create an intelligence report over the given subject.
|
|
2279
|
-
*
|
|
2280
|
-
* Use `mode: "agentic"` to engage the **Tangle Trace Analyst** with a
|
|
2281
|
-
* spending budget. The budget is enforced server-side before billing
|
|
2282
|
-
* fires — a request whose computed cost exceeds `budget.maxUsd`
|
|
2283
|
-
* returns 402 without charging the customer.
|
|
2284
|
-
*/
|
|
2285
|
-
async createReport(options) {
|
|
2286
|
-
const response = await this.client.fetch("/v1/intelligence/reports", {
|
|
2287
|
-
method: "POST",
|
|
2288
|
-
body: JSON.stringify(options)
|
|
2289
|
-
});
|
|
2290
|
-
const body = await response.text();
|
|
2291
|
-
if (!response.ok) throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
2292
|
-
return JSON.parse(body).report;
|
|
2293
|
-
}
|
|
2294
|
-
async createAgenticReport(options) {
|
|
2295
|
-
return this.createReport({
|
|
2296
|
-
subject: options.subject,
|
|
2297
|
-
mode: "agentic",
|
|
2298
|
-
budget: {
|
|
2299
|
-
billTo: "customer",
|
|
2300
|
-
maxUsd: options.maxUsd
|
|
2301
|
-
},
|
|
2302
|
-
metadata: options.metadata
|
|
2303
|
-
});
|
|
2304
|
-
}
|
|
2305
|
-
/**
|
|
2306
|
-
* Estimate the cost of a prospective report without creating one.
|
|
2307
|
-
* Verifies subject ownership the same way `createReport` does, so it
|
|
2308
|
-
* never becomes an existence oracle for foreign subjects.
|
|
2309
|
-
*/
|
|
2310
|
-
async estimateReport(options) {
|
|
2311
|
-
const response = await this.client.fetch("/v1/intelligence/reports/estimate", {
|
|
2312
|
-
method: "POST",
|
|
2313
|
-
body: JSON.stringify(options)
|
|
2314
|
-
});
|
|
2315
|
-
const body = await response.text();
|
|
2316
|
-
if (!response.ok) throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
2317
|
-
return JSON.parse(body).estimate;
|
|
2318
|
-
}
|
|
2319
|
-
async getReport(jobId) {
|
|
2320
|
-
const response = await this.client.fetch(`/v1/intelligence/reports/${encodeURIComponent(jobId)}`);
|
|
2321
|
-
const body = await response.text();
|
|
2322
|
-
if (!response.ok) throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
2323
|
-
return JSON.parse(body).report;
|
|
2324
|
-
}
|
|
2325
|
-
async listReports(options = {}) {
|
|
2326
|
-
const query = new URLSearchParams();
|
|
2327
|
-
if (options.subjectType) query.set("subjectType", options.subjectType);
|
|
2328
|
-
if (options.subjectId) query.set("subjectId", options.subjectId);
|
|
2329
|
-
if (options.limit !== void 0) query.set("limit", String(options.limit));
|
|
2330
|
-
const suffix = query.size > 0 ? `?${query}` : "";
|
|
2331
|
-
const response = await this.client.fetch(`/v1/intelligence/reports${suffix}`);
|
|
2332
|
-
const body = await response.text();
|
|
2333
|
-
if (!response.ok) throw parseErrorResponse(response.status, body, void 0, response.headers);
|
|
2334
|
-
return JSON.parse(body).reports;
|
|
2335
|
-
}
|
|
2336
|
-
async waitForReport(jobId, options = {}) {
|
|
2337
|
-
const deadline = Date.now() + (options.timeoutMs ?? 6e4);
|
|
2338
|
-
const pollMs = options.pollMs ?? 1e3;
|
|
2339
|
-
while (true) {
|
|
2340
|
-
const report = await this.getReport(jobId);
|
|
2341
|
-
if (report.status === "completed" || report.status === "failed") return report;
|
|
2342
|
-
if (Date.now() >= deadline) throw new TimeoutError(options.timeoutMs ?? 6e4);
|
|
2343
|
-
await new Promise((resolve) => setTimeout(resolve, Math.min(pollMs, Math.max(0, deadline - Date.now()))));
|
|
2344
|
-
}
|
|
2345
|
-
}
|
|
2346
|
-
};
|
|
2347
|
-
//#endregion
|
|
2348
2348
|
//#region src/client-secrets.ts
|
|
2349
2349
|
var SecretsManagerImpl = class {
|
|
2350
2350
|
constructor(client) {
|
|
@@ -4756,4 +4756,4 @@ var Sandbox = class Sandbox extends SandboxBatch {
|
|
|
4756
4756
|
}
|
|
4757
4757
|
};
|
|
4758
4758
|
//#endregion
|
|
4759
|
-
export {
|
|
4759
|
+
export { createBatchResultAccumulator as _, InstancesClient as a, runtimeWorkspaceCwdSchema as c, backendRegistryInteractionKindSchema as d, backendRegistryResponseSchema as f, IntelligenceClient as g, parseBackendRegistryResponseBody as h, InstanceRestartingError as i, backendRegistryCapabilitiesSchema as l, parseBackendRegistryResponse as m, RunsClient as n, SandboxFleetClient as o, isBackendRegistryInteractionKind as p, HostedInstance as r, SandboxFleet as s, Sandbox as t, backendRegistryEntrySchema as u, validateBatchRunRequest as v };
|
|
@@ -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-Tn2ygatK.js";
|
|
2
2
|
export { CollaborationClient, CollaborationFileBridge, buildCollaborationDocumentId, normalizeCollaborationPath, parseCollaborationDocumentId };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { T as ValidationError, b as SandboxError, s as CapabilityError } from "./errors-CfQHPcLX.js";
|
|
2
2
|
import { d as awaitWithAbort } from "./browser-interactive-control-controller-k1KkqDGF.js";
|
|
3
|
-
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-
|
|
3
|
+
import { r as cliAuthReferenceSchema } from "./cli-auth-bundle-Ymv99-5G.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { agentProfileSchema, canonicalAgentProfileDigest } from "@tangle-network/agent-interface";
|
|
6
6
|
//#region src/line-application.ts
|
|
@@ -328,4 +328,11 @@ function createSelectSeat(options) {
|
|
|
328
328
|
};
|
|
329
329
|
}
|
|
330
330
|
//#endregion
|
|
331
|
-
|
|
331
|
+
//#region src/core.ts
|
|
332
|
+
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
|
333
|
+
* Version 1 refuses unconfirmed isolated receipts before materializing any
|
|
334
|
+
* profile/files and suppresses ambient CLI credential discovery. Callers must
|
|
335
|
+
* still inspect the host receipt and their own customer/workspace binding. */
|
|
336
|
+
const ISOLATED_CREATION_ATTESTATION_VERSION = 1;
|
|
337
|
+
//#endregion
|
|
338
|
+
export { LINE_APPLICATION_REPLY_MAX_CHARS as a, parseLineApplicationResult as c, gatewaySeatTransport as i, SeatSelectionError as n, LINE_APPLICATION_REQUEST_MAX_BYTES as o, createSelectSeat as r, parseLineApplicationRequest as s, ISOLATED_CREATION_ATTESTATION_VERSION as t };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
|
-
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-
|
|
1
|
+
import { B as WorkspaceImages, O as SandboxInstance, V as ProfileFileDeliveryReport, z as WorkspaceImagePublishRequestOptions } from "./index-C1MBHl8J.js";
|
|
2
2
|
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, z as StateError } from "./terminal-stream-types-BTqOP3Zi.js";
|
|
3
|
-
import { Ai as ManagedProcessRecord, Ba as WorkspaceImagePublishInput, Ct as SessionMessageAdmission, H as PreviewLinkInfo, Ja as SandboxEnvRecoveryView, Mi as ManagedProcessSpec, Ni as ManagedProcessState, Oi as ManagedProcessJobs, U as PreviewLinkManager, Va as WorkspaceImagePublishResult, W as PreviewLinkWaitOptions, _r as NetworkConfig, ar as CreateSandboxOptions, ei as ExecOptions, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, la as PromptInputPart, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecovery, ti as ExecResult, tt as ConversationTurnOptions, zn as SandboxInfo } 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 {
|
|
6
|
-
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-
|
|
7
|
-
|
|
8
|
-
//#region src/core.d.ts
|
|
9
|
-
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
|
10
|
-
* Version 1 refuses unconfirmed isolated receipts before materializing any
|
|
11
|
-
* profile/files and suppresses ambient CLI credential discovery. Callers must
|
|
12
|
-
* still inspect the host receipt and their own customer/workspace binding. */
|
|
13
|
-
declare const ISOLATED_CREATION_ATTESTATION_VERSION: 1;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { AuthError, type BackendRegistryCapabilities, type BackendRegistryEntry, type BackendRegistryInteractionKind, type BackendRegistryResponse, CapabilityError, type ConversationTurnOptions, type ConversationTurnResult, type CreateSandboxOptions, type CreateSelectSeatOptions, type EnsureInstanceOptions, type ExecOptions, type ExecResult, FileWriteConflictError, HostedInstance, ISOLATED_CREATION_ATTESTATION_VERSION, type InstanceProfile, type InstanceRecord, InstanceRestartingError, InstancesClient, LINE_APPLICATION_REPLY_MAX_CHARS, LINE_APPLICATION_REQUEST_MAX_BYTES, type Line, type LineAgentRolePolicy, type LineApplication, type LineApplicationAttachOptions, type LineApplicationRequest, type LineApplicationResult, type LineApplicationState, type LineApplicationView, type LineAttachment, type LineAttachmentReauthorization, type LineExecutionKey, type LineImage, type LineInstanceAttachOptions, type LineInstanceCreate, type LineMember, type LineMemberInstance, type LineNumberInventory, type LineProvider, type LineReminderPreferences, type LineReplyCode, type LineReplyCodeInput, type LineSendInput, type LineSendReceipt, type LineSenderVerification, type LineSenderVerificationStart, LinesClient, ManagedProcessClient, type ManagedProcessJobs, type ManagedProcessOptions, type ManagedProcessRecord, type ManagedProcessResumeOptions, type ManagedProcessSpec, type ManagedProcessState, type NetworkConfig, NetworkError, NotFoundError, PartialFailureError, type PreviewLinkInfo, type PreviewLinkManager, type PreviewLinkWaitOptions, type ProfileFileDeliveryReport, ProfileFileMountPathError, type PromptInputPart, type PublicTemplatePublishArtifact, PublicTemplatePublishError, type PublicTemplatePublishJob, type PublicTemplatePublishRequestOptions, PublicTemplatesClient, QuotaError, Sandbox, type SandboxConfig, type SandboxEnvRecovery, type SandboxEnvRecoveryView, SandboxError, type SandboxErrorJson, type SandboxFailureDetail, type SandboxInfo, SandboxInstance, type SandboxResolvedSeat, type SandboxSeatCredentials, type SandboxSeatSelectionInput, type SandboxStatus, type SeatOwnerReply, type SeatOwnerTransport, type SeatResolutionObservation, SeatSelectionError, type SeatSelectionRequest, ServerError, type SessionMessageAdmission, StateError, TimeoutError, ValidationError, type WorkspaceImagePublishInput, type WorkspaceImagePublishRequestOptions, type WorkspaceImagePublishResult, WorkspaceImages, backendRegistryCapabilitiesSchema, backendRegistryEntrySchema, backendRegistryInteractionKindSchema, backendRegistryResponseSchema, createSelectSeat, gatewaySeatTransport, isBackendRegistryInteractionKind, lineInstanceKey, parseBackendRegistryResponse, parseBackendRegistryResponseBody, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference };
|
|
3
|
+
import { Ai as ManagedProcessRecord, Ba as WorkspaceImagePublishInput, Ct as SessionMessageAdmission, H as PreviewLinkInfo, Ja as SandboxEnvRecoveryView, Mi as ManagedProcessSpec, Ni as ManagedProcessState, Oi as ManagedProcessJobs, U as PreviewLinkManager, Va as WorkspaceImagePublishResult, W as PreviewLinkWaitOptions, _r as NetworkConfig, ar as CreateSandboxOptions, ei as ExecOptions, ji as ManagedProcessResumeOptions, ki as ManagedProcessOptions, la as PromptInputPart, lr as SandboxStatus, nt as ConversationTurnResult, or as SandboxConfig, qa as SandboxEnvRecovery, ti as ExecResult, tt as ConversationTurnOptions, zn as SandboxInfo } from "./types-mC2pva3m.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-B5PUWzfB.js";
|
|
5
|
+
import { At as SeatOwnerTransport, Bt as InstanceRecord, Cn as isBackendRegistryInteractionKind, Dt as SandboxSeatCredentials, Et as SandboxResolvedSeat, Ft as gatewaySeatTransport, It as ManagedProcessClient, Lt as EnsureInstanceOptions, Mt as SeatSelectionError, Nt as SeatSelectionRequest, Ot as SandboxSeatSelectionInput, Pt as createSelectSeat, Rt as HostedInstance, Sn as backendRegistryResponseSchema, Tn as parseBackendRegistryResponseBody, Tt as CreateSelectSeatOptions, Ut as InstancesClient, Vt as InstanceRestartingError, _n as BackendRegistryInteractionKind, bn as backendRegistryEntrySchema, gn as BackendRegistryEntry, hn as BackendRegistryCapabilities, jt as SeatResolutionObservation, kt as SeatOwnerReply, t as Sandbox, vn as BackendRegistryResponse, wn as parseBackendRegistryResponse, wt as ISOLATED_CREATION_ATTESTATION_VERSION, xn as backendRegistryInteractionKindSchema, yn as backendRegistryCapabilitiesSchema, zt as InstanceProfile } from "./client-C0rEjjtU.js";
|
|
6
|
+
import { a as PublicTemplatesClient, i as PublicTemplatePublishRequestOptions, n as PublicTemplatePublishError, r as PublicTemplatePublishJob, t as PublicTemplatePublishArtifact } from "./public-templates-Dpv5n9be.js";
|
|
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, 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, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference };
|
package/dist/core.js
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { S as StateError, T as ValidationError, _ as ProfileFileMountPathError, a as AuthError, b as SandboxError, g as PartialFailureError, h as NotFoundError, m as NetworkError, s as CapabilityError, u as FileWriteConflictError, v as QuotaError, w as TimeoutError, x as ServerError } from "./errors-CfQHPcLX.js";
|
|
2
|
-
import {
|
|
3
|
-
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-
|
|
4
|
-
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-
|
|
2
|
+
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-CUYXXFJB.js";
|
|
3
|
+
import { r as WorkspaceImages, t as SandboxInstance, x as ManagedProcessClient } from "./sandbox-D-AOea4t.js";
|
|
4
|
+
import { i as profileChannelReference, r as lineInstanceKey, t as LinesClient } from "./lines-BdF6b46c.js";
|
|
5
5
|
import { PublicTemplatePublishError, PublicTemplatesClient } from "./public-templates.js";
|
|
6
|
-
import { a as
|
|
7
|
-
//#region src/core.ts
|
|
8
|
-
/** Local SDK protocol support only, not a deployed-host readiness assertion.
|
|
9
|
-
* Version 1 refuses unconfirmed isolated receipts before materializing any
|
|
10
|
-
* profile/files and suppresses ambient CLI credential discovery. Callers must
|
|
11
|
-
* still inspect the host receipt and their own customer/workspace binding. */
|
|
12
|
-
const ISOLATED_CREATION_ATTESTATION_VERSION = 1;
|
|
13
|
-
//#endregion
|
|
6
|
+
import { a as LINE_APPLICATION_REPLY_MAX_CHARS, c as parseLineApplicationResult, i as gatewaySeatTransport, n as SeatSelectionError, o as LINE_APPLICATION_REQUEST_MAX_BYTES, r as createSelectSeat, s as parseLineApplicationRequest, t as ISOLATED_CREATION_ATTESTATION_VERSION } from "./core-DnrLA0im.js";
|
|
14
7
|
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, parseLineApplicationRequest, parseLineApplicationResult, profileChannelReference };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { F as SandboxError, G as SandboxCreateReceipt, g as TerminalReadyInfo, i as TerminalStreamHandlers, l as MintScopedTokenOptions, o as TerminalStreamReconnectAuthority, u as ScopedToken } from "./terminal-stream-types-BTqOP3Zi.js";
|
|
2
|
-
import { $a as RawEvidenceBoxDirectoryExport, $i as DurablePlanDecisionOptions, $r as SearchOptions, Ba as WorkspaceImagePublishInput, Bi as ForkLookupOptions, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ca as BackendManager, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ei as CodeExecutionResult, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, Fi as JsonValue, G as GitBranch, Ha as CodeLanguage, Hi as RolloutOptions, In as SSHCommandDescriptor, J as GitStatus, Ja as SandboxEnvRecoveryView, K as GitCommit, Li as BranchOptions, Ln as SSHCredentials, Lr as FileSystem, N as WaitForOptions, Pi as HttpClient, Q as CommitTaskSessionOptions, Qi as DurablePlan, Qn as TeeAttestationOptions, Qr as SearchMatch, Ri as ForkCounts, Rn as SandboxConnection, S as StopOptions, St as SessionMessage, Ti as CodeExecutionOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ui as RolloutStartResult, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Va as WorkspaceImagePublishResult, Vi as Rollout, Wi as WaitForRolloutOptions, Wn as SandboxTerminalAttachOptions, Xn as StartupDiagnostics, Xr as WriteManyFile, Yn as SandboxTerminals, Yr as WriteFileOptions, Zr as WriteManyOptions, _ as SnapshotInfo, _a as SandboxTraceOptions, aa as IntelligenceReportBudget, ar as CreateSandboxOptions, at as DispatchPromptOptions, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as IntelligenceReportWindow, ct as ListMessagesOptions, d as SandboxOperationKind, da as PromptResult, dr as SandboxShape, dt as SendSessionMessageRequest, ea as DurablePlanDecisionResult, ei as ExecOptions, eo as RawEvidenceBoxExportOptions, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fa as SandboxEvent, fi as DriverInfo, ft as SentSessionMessage, gr as EgressManager, ht as SessionExecutionInfo, ia as IntelligenceReport, it as CreateTaskSessionOptions, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, la as PromptInputPart, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, ma as SandboxTraceBundle, mi as GpuLease, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, no as RawEvidenceExportOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, oa as IntelligenceReportCompareTo,
|
|
2
|
+
import { $a as RawEvidenceBoxDirectoryExport, $i as DurablePlanDecisionOptions, $r as SearchOptions, Ba as WorkspaceImagePublishInput, Bi as ForkLookupOptions, Bn as SandboxPortBinding, C as WorkspaceOperationLookup, Ca as BackendManager, Ct as SessionMessageAdmission, D as ProvisionResult, Dt as TaskSessionCommitResult, E as ProvisionEvent, Ei as CodeExecutionResult, En as SandboxFleetTraceBundle, Et as TaskSessionChanges, Fi as JsonValue, G as GitBranch, Ha as CodeLanguage, Hi as RolloutOptions, In as SSHCommandDescriptor, J as GitStatus, Ja as SandboxEnvRecoveryView, K as GitCommit, Li as BranchOptions, Ln as SSHCredentials, Lr as FileSystem, N as WaitForOptions, Pi as HttpClient, Q as CommitTaskSessionOptions, Qi as DurablePlan, Qn as TeeAttestationOptions, Qr as SearchMatch, Ri as ForkCounts, Rn as SandboxConnection, S as StopOptions, St as SessionMessage, Ti as CodeExecutionOptions, Tt as SessionResultOptions, U as PreviewLinkManager, Ui as RolloutStartResult, Un as SandboxRuntimeHealth, Ur as FileWriteResult, Va as WorkspaceImagePublishResult, Vi as Rollout, Wi as WaitForRolloutOptions, Wn as SandboxTerminalAttachOptions, Xn as StartupDiagnostics, Xr as WriteManyFile, Yn as SandboxTerminals, Yr as WriteFileOptions, Zr as WriteManyOptions, _ as SnapshotInfo, _a as SandboxTraceOptions, aa as IntelligenceReportBudget, ar as CreateSandboxOptions, at as DispatchPromptOptions, bt as SessionInterruptOptions, c as SandboxDeleteOptions, ca as IntelligenceReportWindow, ct as ListMessagesOptions, d as SandboxOperationKind, da as PromptResult, dr as SandboxShape, dt as SendSessionMessageRequest, ea as DurablePlanDecisionResult, ei as ExecOptions, eo as RawEvidenceBoxExportOptions, er as TeeAttestationResponse, et as CompletedTurnResult, f as SandboxOperationState, fa as SandboxEvent, fi as DriverInfo, ft as SentSessionMessage, gr as EgressManager, ht as SessionExecutionInfo, ia as IntelligenceReport, it as CreateTaskSessionOptions, jt as TurnDriveResult, k as ResumeOptions, kt as TaskSessionInfo, la as PromptInputPart, lr as SandboxStatus, lt as PublicProfileConflict, m as SnapshotDeleteAcknowledgement, ma as SandboxTraceBundle, mi as GpuLease, mr as SandboxRuntimeCapabilities, mt as SessionEventStreamOptions, no as RawEvidenceExportOptions, nr as TeePublicKeyResponse, nt as ConversationTurnResult, o as RestoreSnapshotOptions, oa as IntelligenceReportCompareTo, ot as DispatchedSession, pr as SandboxResourceUsage, q as GitDiff, qa as SandboxEnvRecovery, ra as EventStreamOptions, rr as TerminalStream, rt as CreateSessionOptions, s as SandboxDeleteAcknowledgement, so as InteractionResolutionAcknowledgement, st as DriveTurnOptions, ti as ExecResult, to as RawEvidenceDirectoryExport, tt as ConversationTurnOptions, u as SandboxOperationInfo, ua as PromptOptions, ut as SendSessionMessageOptions, v as SnapshotOptions, vr as NetworkManager, vt as SessionForkOptions, x as SnapshotResult, xa as BackendConfig, xt as SessionListOptions, y as SnapshotProvenance, ya as TurnBackendConfig, yi as GpuLeaseManager, yt as SessionInfo, z as ProcessManager, zi as ForkIdempotency, zn as SandboxInfo } from "./types-mC2pva3m.js";
|
|
3
3
|
import { t as CliAuthReference } from "./cli-auth-bundle-DKp1d5dJ.js";
|
|
4
|
-
import { n as SandboxLines } from "./lines-
|
|
4
|
+
import { n as SandboxLines } from "./lines-B5PUWzfB.js";
|
|
5
5
|
import { f as InteractiveAttachOptions, g as InteractiveSessionStatus, h as InteractiveRequestOptions, m as InteractiveControlClaimOptions, p as InteractiveControlClaimAcknowledgement } from "./browser-interactive-control-controller-DmuOTpD1.js";
|
|
6
|
-
import { r as InteractiveAttachRequest } from "./interactive-controller-
|
|
6
|
+
import { r as InteractiveAttachRequest } from "./interactive-controller-BhGELtiP.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import * as Agent from "@tangle-network/agent-interface";
|
|
9
9
|
import { AgentInteractiveSessionAttach, AgentInteractiveSessionControlClaim, AgentInteractiveSessionControlClaimRequest, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStopAcknowledgement, AgentInteractiveSessionStopCommand, AgentInteractiveTerminalSession, AgentInteractiveTerminalSession as AgentInteractiveTerminalSession$1, AgentProfile, AgentProfileFileMount, AgentRunCancellationAcknowledgement, AgentRunCancellationRequest, InteractionAcknowledgement, InteractionData, InteractionRequest, InteractionResponseCommand, TerminalOutputEvent, TerminalReplayWindow, agentInteractiveSessionPromptRequestDigest } from "@tangle-network/agent-interface";
|