@tangle-network/sandbox 1.0.119 → 1.0.121
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 +4 -4
- package/dist/agent/index.js +3 -3
- package/dist/agent/preview.d.ts +1 -1
- package/dist/agent/preview.js +1 -1
- package/dist/{agent-run-outcome-dyvNf0Mh.d.ts → agent-run-outcome-BhT2OZoj.d.ts} +2 -2
- package/dist/auth/index.js +1 -1
- package/dist/{browser-interactive-control-controller-B3P192sF.d.ts → browser-interactive-control-controller-BWTn0voc.d.ts} +1 -1
- package/dist/{browser-interactive-control-controller-BvtNDWql.js → browser-interactive-control-controller-CI-G-lan.js} +15 -15
- package/dist/{cli-auth-bundle-BGZQl8pf.js → cli-auth-bundle-CuULmmzk.js} +1 -1
- package/dist/{client-CIkfQ4qA.d.ts → client-DBZiDNP6.d.ts} +5 -5
- package/dist/{client-DvLeWxd6.js → client-DFqifFgH.js} +5 -5
- package/dist/{core-CPmZrgBo.js → core-DodBo96T.js} +3 -3
- package/dist/core.d.ts +6 -6
- package/dist/core.js +3 -3
- package/dist/{harness-BnGz2Wng.js → harness-B63wL8RZ.js} +5 -5
- package/dist/{index-CXiG0djh.d.ts → index-Cc0IxE28.d.ts} +5 -5
- package/dist/index.d.ts +9 -9
- package/dist/index.js +15 -59
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-BQzNEYZu.js → interactive-controller-DGnSVeCk.js} +4 -4
- package/dist/{interactive-controller-GcHiA1pY.d.ts → interactive-controller-DMTo87Kq.d.ts} +3 -3
- package/dist/{lines-CYXFIMB4.d.ts → lines-BYBT4Izj.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-BZMvbmFe.js → local-cli-auth-Cbg8DyY2.js} +1 -1
- package/dist/{preview-jY6-yxpq.d.ts → preview-CD7s4tvh.d.ts} +3 -3
- package/dist/{profile-schema--qCcNrz1.js → profile-schema-BD1nkqBw.js} +19 -22
- package/dist/{public-templates-BBDQNxsI.d.ts → public-templates-BoQ-L5sG.d.ts} +2 -2
- package/dist/public-templates.d.ts +1 -1
- package/dist/runtime.d.ts +5 -5
- package/dist/runtime.js +2 -2
- package/dist/{sandbox-gF473YxX.js → sandbox-CFSzBI2U.js} +140 -33
- 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-TNrvVHbo.js → tangle-JtKIPVjl.js} +1 -1
- package/dist/{terminal-stream-types-DS0FCaXq.d.ts → terminal-stream-types-BV3-VCQn.d.ts} +20 -18
- package/dist/{types-BU6vBUSg.d.ts → types-CuVUB_M1.d.ts} +4367 -4400
- package/package.json +5 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as mergeRuntimeBackendConfig, C as encodePromptForWire, E as canUseNodeHttp2, G as normalizeEffectiveBackend, I as withoutRuntimeSecrets, L as createAgentRunOutcomeTracker, M as requestedPublicProfileDigest, N as requestedSecretProfilePublicDigest, O as applyRequestedModel, R as deriveAgentResultOutcome, S as validateAcceptedDispatchRunRef, T as runtimeFilesystemPath, _ as TRACE_ID_HEADER, a as assertScopedTokenActive, b as resolveTraceId, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as waitForRetryAfter, h as isRetryableCredentialRefusal, i as terminalUpgradeHeadersSupported, j as normalizeRuntimeBackendConfig, k as assertCurrentBackendType, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as isTraceId, w as encodeTextForWire, x as resolveDispatchRunIdentity, y as mintTraceId } from "./interactive-controller-
|
|
2
|
-
import {
|
|
3
|
-
import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-
|
|
4
|
-
import { a as ProxySecretReceiptSchema, o as canonicalAgentProfileValue, r as agentProfileSchema } from "./profile-schema
|
|
1
|
+
import { A as mergeRuntimeBackendConfig, C as encodePromptForWire, E as canUseNodeHttp2, G as normalizeEffectiveBackend, I as withoutRuntimeSecrets, L as createAgentRunOutcomeTracker, M as requestedPublicProfileDigest, N as requestedSecretProfilePublicDigest, O as applyRequestedModel, R as deriveAgentResultOutcome, S as validateAcceptedDispatchRunRef, T as runtimeFilesystemPath, _ as TRACE_ID_HEADER, a as assertScopedTokenActive, b as resolveTraceId, c as SandboxRuntimeApi, d as appendSessionIdQuery, f as callHeaders, g as waitForRetryAfter, h as isRetryableCredentialRefusal, i as terminalUpgradeHeadersSupported, j as normalizeRuntimeBackendConfig, k as assertCurrentBackendType, l as normalizeSessionInfo, m as assertFileWritePreconditions, n as InteractiveSessionController, p as sessionHeaders, r as TerminalStream, s as requestScopedToken, u as sessionMessageRequestBody, v as isTraceId, w as encodeTextForWire, x as resolveDispatchRunIdentity, y as mintTraceId } from "./interactive-controller-DGnSVeCk.js";
|
|
2
|
+
import { D as boundedStringSchema, _ as sha256, g as sha256DigestSchema$1, o as canonicalCandidateDigest$1, s as canonicalCandidateJson$1, u as isCanonicalJsonValue$1, w as boundedIdentifierSchema } from "./harness-B63wL8RZ.js";
|
|
3
|
+
import { A as agentInteractiveSessionStatusMatchesRef, B as PlanContinuationSchema, C as AgentInteractiveSessionStopAcknowledgementSchema, D as agentInteractiveSessionControlClaimMatchesRef, E as agentInteractiveSessionControlClaimIsNewer, F as AgentRunCancellationAcknowledgementSchema, G as InteractionResponseSchema, H as InteractionBindingSchema, I as AgentRunCancellationRequestSchema, L as agentRunCancellationAcknowledgementMatchesRequest, M as agentInteractiveDimensionSchema, N as sameAgentExactRun, O as agentInteractiveSessionPromptAcknowledgementMatchesCommand, P as AgentExactRunControlRefSchema, S as AgentInteractiveSessionStatusSchema, T as agentInteractiveSessionControlClaimAcknowledgementMatchesRequest, U as InteractionRequestSchema, V as InteractionAcknowledgementSchema, W as InteractionResponseCommandSchema, _ as AgentInteractiveSessionControlClaimRequestSchema, b as AgentInteractiveSessionPromptCommandSchema, d as interactiveSessionControlClaimResponseSchema, f as interactiveSessionControlReleaseResponseSchema, g as AgentInteractiveSessionControlClaimAcknowledgementSchema, h as AgentInteractiveSessionAttachSchema, j as agentInteractiveSessionStopAcknowledgementMatchesCommand, l as createInteractiveControlHolderId, m as interactiveSessionStatusResponseSchema, p as interactiveSessionControlValidationResponseSchema, v as AgentInteractiveSessionControlClaimSchema, w as AgentInteractiveSessionStopCommandSchema, x as AgentInteractiveSessionRefSchema, y as AgentInteractiveSessionPromptAcknowledgementSchema } from "./browser-interactive-control-controller-CI-G-lan.js";
|
|
4
|
+
import { a as ProxySecretReceiptSchema, o as canonicalAgentProfileValue, r as agentProfileSchema } from "./profile-schema-BD1nkqBw.js";
|
|
5
5
|
import { C as StateError, E as ValidationError, F as SANDBOX_AGENT_HOME, I as SANDBOX_FILE_API_ABSOLUTE_ROOTS, L as isProfileFileMountOutsideRoots, M as FILE_OPERATION_LIMITS, P as PROFILE_FILE_MOUNT_OUTSIDE_ROOTS_CODE, R as profileFileMountOutsideRootsMessage, S as ServerError, T as TimeoutError, a as AuthError, c as CompliancePlacementError, f as GpuProviderNotConfiguredError, g as NotFoundError, h as NetworkError, i as readResponseJson, j as SANDBOX_PROXY_REQUEST_MAX_BYTES, l as EdgeNotReadyError, m as NON_RETRYABLE_CREATE_QUOTA_REASONS, n as parseErrorResponse, r as parseResponseError, s as CapabilityError, t as TerminalStreamError, v as ProfileFileMountPathError, w as StreamInterruptedError, x as SandboxError, y as QuotaError } from "./errors-ystNl7Ae.js";
|
|
6
6
|
import { n as combineAbortSignals, r as delayUntilAborted, t as awaitWithAbort } from "./abort-signal-JVaAyNMP.js";
|
|
7
7
|
import { t as rewrapResponse } from "./response-rewrap-B75N59JT.js";
|
|
@@ -10,7 +10,7 @@ import { t as SIDECAR_PROXY_ERROR_HEADER } from "./sidecar-proxy-error-DORW8_mD.
|
|
|
10
10
|
import { t as parseSSEStream } from "./sse-parser-BUIKfYAd.js";
|
|
11
11
|
import { s as uploadChunked } from "./chunked-upload-BHRGMfDz.js";
|
|
12
12
|
import { t as runPreparedProcess } from "./prepared-process-GzQXVsX8.js";
|
|
13
|
-
import { a as backendTypeSchema, r as cliAuthReferenceSchema } from "./cli-auth-bundle-
|
|
13
|
+
import { a as backendTypeSchema, r as cliAuthReferenceSchema } from "./cli-auth-bundle-CuULmmzk.js";
|
|
14
14
|
import { n as SandboxLines } from "./lines-DEg0cqSV.js";
|
|
15
15
|
import { z } from "zod";
|
|
16
16
|
import { createHash } from "node:crypto";
|
|
@@ -20,7 +20,7 @@ import "node:fs/promises";
|
|
|
20
20
|
import { readTokenCostUsd, readTokenUsage } from "@tangle-network/agent-core";
|
|
21
21
|
import "@tangle-network/agent-interface/environment-provider";
|
|
22
22
|
import { OTLP_SPAN_KIND, OTLP_STATUS_CODE, msToUnixNano, otlpTraceExport, toOtlpAttributes, toW3CSpanId, toW3CTraceId } from "@tangle-network/agent-trace-contract/otlp";
|
|
23
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
23
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/agent-execution-preparation.js
|
|
24
24
|
/**
|
|
25
25
|
* Canonical RFC 8785/SHA-256 identity for one validated, public AgentProfile.
|
|
26
26
|
* Secret-capable MCP/hook fields are tagged. Other prompt, resource, metadata,
|
|
@@ -31,11 +31,11 @@ import { OTLP_SPAN_KIND, OTLP_STATUS_CODE, msToUnixNano, otlpTraceExport, toOtlp
|
|
|
31
31
|
*/
|
|
32
32
|
function canonicalAgentProfileDigest(profile) {
|
|
33
33
|
const material = canonicalAgentProfileValue(agentProfileSchema.parse(profile));
|
|
34
|
-
if (material === void 0 || !isCanonicalJsonValue(material)) throw new Error("AgentProfile must contain finite, acyclic RFC 8785 JSON values");
|
|
35
|
-
return canonicalCandidateDigest(material);
|
|
34
|
+
if (material === void 0 || !isCanonicalJsonValue$1(material)) throw new Error("AgentProfile must contain finite, acyclic RFC 8785 JSON values");
|
|
35
|
+
return canonicalCandidateDigest$1(material);
|
|
36
36
|
}
|
|
37
37
|
//#endregion
|
|
38
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
38
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/environment-interactive-start.js
|
|
39
39
|
const AgentInteractiveSessionRunCoordinatesSchema = z.strictObject({
|
|
40
40
|
provider: boundedIdentifierSchema,
|
|
41
41
|
environmentId: boundedIdentifierSchema,
|
|
@@ -52,7 +52,7 @@ const AgentInteractiveSessionRunCoordinatesSchema = z.strictObject({
|
|
|
52
52
|
const AgentInteractiveSessionStartSchema = z.strictObject({
|
|
53
53
|
run: AgentExactRunControlRefSchema,
|
|
54
54
|
profile: agentProfileSchema,
|
|
55
|
-
requestedProfileDigest: sha256DigestSchema,
|
|
55
|
+
requestedProfileDigest: sha256DigestSchema$1,
|
|
56
56
|
authMode: z.literal("oauth").optional(),
|
|
57
57
|
initialPrompt: boundedStringSchema.optional(),
|
|
58
58
|
cwd: boundedStringSchema.min(1).optional(),
|
|
@@ -63,7 +63,7 @@ const AgentInteractiveSessionStartSchema = z.strictObject({
|
|
|
63
63
|
function agentInteractiveSessionRequestDigest(coordinates, input) {
|
|
64
64
|
const exactCoordinates = AgentInteractiveSessionRunCoordinatesSchema.parse(coordinates);
|
|
65
65
|
const exactInput = AgentInteractiveSessionStartSchema.omit({ run: true }).parse(input);
|
|
66
|
-
return canonicalCandidateDigest({
|
|
66
|
+
return canonicalCandidateDigest$1({
|
|
67
67
|
kind: "agent-interactive-session-start.v1",
|
|
68
68
|
run: exactCoordinates,
|
|
69
69
|
requestedProfileDigest: exactInput.requestedProfileDigest,
|
|
@@ -112,7 +112,7 @@ function runCoordinates(run) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
//#endregion
|
|
115
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
115
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/environment-terminal.js
|
|
116
116
|
const terminalDimensionSchema = z.number().int().positive().max(1e4);
|
|
117
117
|
/**
|
|
118
118
|
* Provider-neutral handle for one interactive terminal.
|
|
@@ -484,7 +484,7 @@ const PROFILE_IMPORT_PART_BYTES = 512 * 1024;
|
|
|
484
484
|
const MANAGED_PROFILE_TRANSPORT = "managed-profile-reference-v1";
|
|
485
485
|
/** Cache identity follows JSON wire semantics and RFC 8785 key ordering. */
|
|
486
486
|
function profileCacheSha256(profile) {
|
|
487
|
-
return canonicalCandidateDigest(JSON.parse(JSON.stringify(profile))).slice(7);
|
|
487
|
+
return canonicalCandidateDigest$1(JSON.parse(JSON.stringify(profile))).slice(7);
|
|
488
488
|
}
|
|
489
489
|
//#endregion
|
|
490
490
|
//#region ../../../packages/runtime-contracts/dist/direct-read.js
|
|
@@ -759,7 +759,7 @@ async function responseNeedsProfileImport(response) {
|
|
|
759
759
|
}
|
|
760
760
|
/** Upload the public profile only. Runtime grants remain in the turn backend. */
|
|
761
761
|
async function primeManagedProfile(profile, fetchRuntime) {
|
|
762
|
-
const bytes = new TextEncoder().encode(canonicalCandidateJson(profile));
|
|
762
|
+
const bytes = new TextEncoder().encode(canonicalCandidateJson$1(profile));
|
|
763
763
|
const sha256 = profileCacheSha256(profile);
|
|
764
764
|
if (bytes.length > 8388608) throw new ValidationError("Managed profile exceeds the profile import bound");
|
|
765
765
|
const post = async (body) => {
|
|
@@ -3127,6 +3127,118 @@ async function isRefusedBearer(response) {
|
|
|
3127
3127
|
return false;
|
|
3128
3128
|
}
|
|
3129
3129
|
}
|
|
3130
|
+
//#endregion
|
|
3131
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.2/node_modules/@tangle-network/agent-interface/dist/agent-candidate-schema-common.js
|
|
3132
|
+
const sha256Pattern = /^sha256:[a-f0-9]{64}$/;
|
|
3133
|
+
const gitObjectPattern = /^(?:[a-f0-9]{40}|[a-f0-9]{64})$/;
|
|
3134
|
+
const environmentNamePattern = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
3135
|
+
const headerNamePattern = /^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;
|
|
3136
|
+
const mediaTypePattern = /^[a-z0-9][a-z0-9!#$&^_.+-]{0,126}\/[a-z0-9][a-z0-9!#$&^_.+-]{0,126}$/;
|
|
3137
|
+
const githubComponentPattern = /^[A-Za-z0-9][A-Za-z0-9_.-]{0,99}$/;
|
|
3138
|
+
const secretNamePattern = /(?:^|[_-])(?:api[_-]?key|access[_-]?key|private[_-]?key|token|secret|password|credentials?|authorization|cookie|database[_-]?url|dsn|pat)(?:[_-]|$)/i;
|
|
3139
|
+
const obviousSecretValuePattern = /(?:\bsk[-_][-_A-Za-z0-9]{10,}\b|\bgh[pousr]_[A-Za-z0-9]{12,}\b|\bgithub_pat_[A-Za-z0-9_]{12,}\b|\bAKIA[A-Z0-9]{12,}\b|-----BEGIN [A-Z ]*PRIVATE KEY-----|\bBearer\s+\S+)/;
|
|
3140
|
+
const controlCharacterPattern = /[\u0000-\u001f\u007f]/;
|
|
3141
|
+
z.string().regex(sha256Pattern);
|
|
3142
|
+
z.string().regex(gitObjectPattern);
|
|
3143
|
+
const environmentNameSchema = z.string().regex(environmentNamePattern);
|
|
3144
|
+
z.string().regex(headerNamePattern);
|
|
3145
|
+
z.string().regex(mediaTypePattern);
|
|
3146
|
+
function sha256Bytes(value) {
|
|
3147
|
+
const bytes = sha256(value);
|
|
3148
|
+
return `sha256:${Array.from(bytes, (byte) => byte.toString(16).padStart(2, "0")).join("")}`;
|
|
3149
|
+
}
|
|
3150
|
+
/** RFC 8785 serialization used by every candidate-producing package. */
|
|
3151
|
+
function canonicalCandidateJson(value) {
|
|
3152
|
+
if (!isCanonicalJsonValue(value)) throw new Error("candidate document must be finite, acyclic RFC 8785 JSON");
|
|
3153
|
+
return serializeCanonicalCandidate(value);
|
|
3154
|
+
}
|
|
3155
|
+
function canonicalCandidateBytes(value) {
|
|
3156
|
+
return new TextEncoder().encode(canonicalCandidateJson(value));
|
|
3157
|
+
}
|
|
3158
|
+
function canonicalCandidateDigest(value) {
|
|
3159
|
+
return sha256Bytes(canonicalCandidateBytes(value));
|
|
3160
|
+
}
|
|
3161
|
+
function serializeCanonicalCandidate(value) {
|
|
3162
|
+
if (value === null || typeof value === "boolean" || typeof value === "number") return JSON.stringify(value);
|
|
3163
|
+
if (typeof value === "string") return JSON.stringify(value);
|
|
3164
|
+
if (Array.isArray(value)) return `[${value.map(serializeCanonicalCandidate).join(",")}]`;
|
|
3165
|
+
return `{${Object.keys(value).sort().map((key) => `${JSON.stringify(key)}:${serializeCanonicalCandidate(value[key])}`).join(",")}}`;
|
|
3166
|
+
}
|
|
3167
|
+
function isWellFormedUnicode(value) {
|
|
3168
|
+
for (let index = 0; index < value.length; index++) {
|
|
3169
|
+
const code = value.charCodeAt(index);
|
|
3170
|
+
if (code >= 55296 && code <= 56319) {
|
|
3171
|
+
const next = value.charCodeAt(index + 1);
|
|
3172
|
+
if (!(next >= 56320 && next <= 57343)) return false;
|
|
3173
|
+
index++;
|
|
3174
|
+
} else if (code >= 56320 && code <= 57343) return false;
|
|
3175
|
+
}
|
|
3176
|
+
return true;
|
|
3177
|
+
}
|
|
3178
|
+
function isCanonicalJsonValue(value, ancestors = /* @__PURE__ */ new Set()) {
|
|
3179
|
+
if (value === null || typeof value === "boolean") return true;
|
|
3180
|
+
if (typeof value === "string") return isWellFormedUnicode(value);
|
|
3181
|
+
if (typeof value === "number") return Number.isFinite(value);
|
|
3182
|
+
if (typeof value !== "object" || ancestors.has(value)) return false;
|
|
3183
|
+
const prototype = Object.getPrototypeOf(value);
|
|
3184
|
+
if (!Array.isArray(value) && prototype !== Object.prototype && prototype !== null) return false;
|
|
3185
|
+
const nextAncestors = new Set(ancestors).add(value);
|
|
3186
|
+
if (Array.isArray(value)) {
|
|
3187
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
3188
|
+
if (!(index in value)) return false;
|
|
3189
|
+
if (!isCanonicalJsonValue(value[index], nextAncestors)) return false;
|
|
3190
|
+
}
|
|
3191
|
+
return true;
|
|
3192
|
+
}
|
|
3193
|
+
return Object.entries(value).every(([key, entry]) => isWellFormedUnicode(key) && isCanonicalJsonValue(entry, nextAncestors));
|
|
3194
|
+
}
|
|
3195
|
+
function hasCredentialBearingUrl(value) {
|
|
3196
|
+
try {
|
|
3197
|
+
const url = new URL(value);
|
|
3198
|
+
if (url.username !== "" || url.password !== "") return true;
|
|
3199
|
+
return [...url.searchParams.keys()].some((key) => secretNamePattern.test(key));
|
|
3200
|
+
} catch {
|
|
3201
|
+
return false;
|
|
3202
|
+
}
|
|
3203
|
+
}
|
|
3204
|
+
/**
|
|
3205
|
+
* Whether a string holds an obvious credential: a provider key (`sk-`, `gh*_`,
|
|
3206
|
+
* `github_pat_`, `AKIA`), a PEM private key, a bearer token, or a URL with
|
|
3207
|
+
* userinfo or a credential-named query parameter. The agent-eval redaction
|
|
3208
|
+
* core calls it, so candidate validation and trace redaction agree.
|
|
3209
|
+
*/
|
|
3210
|
+
function looksLikeCredential(value) {
|
|
3211
|
+
return obviousSecretValuePattern.test(value) || hasCredentialBearingUrl(value);
|
|
3212
|
+
}
|
|
3213
|
+
function isPublicConfigValue(value) {
|
|
3214
|
+
return !controlCharacterPattern.test(value) && isWellFormedUnicode(value) && !looksLikeCredential(value);
|
|
3215
|
+
}
|
|
3216
|
+
/** Shared public reference owner; resolution belongs to the trusted executor. */
|
|
3217
|
+
const agentCandidateSecretRefSchema = z.strictObject({
|
|
3218
|
+
kind: z.literal("secret-ref"),
|
|
3219
|
+
key: z.string().min(1).max(500).refine((value) => value.trim().length > 0 && isPublicConfigValue(value), "secret reference key must be a public non-credential identity"),
|
|
3220
|
+
format: z.enum(["raw", "bearer"]).optional()
|
|
3221
|
+
});
|
|
3222
|
+
const agentCandidatePublicValueSchema = z.strictObject({
|
|
3223
|
+
kind: z.literal("public"),
|
|
3224
|
+
value: z.string().refine(isPublicConfigValue, "candidate config cannot carry credentials; the evaluator owns model authorization")
|
|
3225
|
+
});
|
|
3226
|
+
const agentCandidateConfigValueSchema = z.discriminatedUnion("kind", [agentCandidatePublicValueSchema, agentCandidateSecretRefSchema]);
|
|
3227
|
+
function configRecordSchema(keySchema) {
|
|
3228
|
+
return z.record(keySchema, agentCandidateConfigValueSchema).superRefine((config, ctx) => {
|
|
3229
|
+
for (const name of Object.keys(config)) if (secretNamePattern.test(name) && config[name]?.kind !== "secret-ref") ctx.addIssue({
|
|
3230
|
+
code: "custom",
|
|
3231
|
+
path: [name],
|
|
3232
|
+
message: "candidate config cannot declare credential-bearing names"
|
|
3233
|
+
});
|
|
3234
|
+
});
|
|
3235
|
+
}
|
|
3236
|
+
configRecordSchema(environmentNameSchema);
|
|
3237
|
+
z.object({
|
|
3238
|
+
kind: z.literal("github"),
|
|
3239
|
+
owner: z.string().regex(githubComponentPattern).refine((value) => value !== "." && value !== ".."),
|
|
3240
|
+
repo: z.string().regex(githubComponentPattern).refine((value) => value !== "." && value !== "..")
|
|
3241
|
+
}).strict();
|
|
3130
3242
|
const CODEX_SYSTEM_PROMPT_FILE = ".codex/system-prompt.md";
|
|
3131
3243
|
const OPENCODE_APPEND_SYSTEM_PROMPT_FILE = ".opencode/agent-system-prompt.md";
|
|
3132
3244
|
const OPENCODE_CONFIG_FILE = "opencode.json";
|
|
@@ -6319,7 +6431,7 @@ var InteractiveSessionHandle = class {
|
|
|
6319
6431
|
options?.signal?.throwIfAborted();
|
|
6320
6432
|
const binding = this.requireBinding();
|
|
6321
6433
|
const exactCommand = AgentInteractiveSessionPromptCommandSchema.parse(command);
|
|
6322
|
-
if (canonicalCandidateDigest(exactCommand.ref) !== canonicalCandidateDigest(binding.ref) || canonicalCandidateDigest(exactCommand.control) !== canonicalCandidateDigest(binding.control)) throw new Error(`Interactive session ${this.sessionId} prompt is bound to a different exact ref`);
|
|
6434
|
+
if (canonicalCandidateDigest$1(exactCommand.ref) !== canonicalCandidateDigest$1(binding.ref) || canonicalCandidateDigest$1(exactCommand.control) !== canonicalCandidateDigest$1(binding.control)) throw new Error(`Interactive session ${this.sessionId} prompt is bound to a different exact ref`);
|
|
6323
6435
|
return (options === void 0 ? this.host._sendInteractivePrompt(this.sessionId, exactCommand) : this.host._sendInteractivePrompt(this.sessionId, exactCommand, options)).then((acknowledgement) => {
|
|
6324
6436
|
const exactAcknowledgement = AgentInteractiveSessionPromptAcknowledgementSchema.parse(acknowledgement);
|
|
6325
6437
|
if (!agentInteractiveSessionPromptAcknowledgementMatchesCommand(exactCommand, exactAcknowledgement)) throw new Error(`Interactive session ${this.sessionId} prompt acknowledgement does not match the command`);
|
|
@@ -6397,8 +6509,8 @@ var InteractiveSessionHandle = class {
|
|
|
6397
6509
|
options?.signal?.throwIfAborted();
|
|
6398
6510
|
const binding = this.requireBinding();
|
|
6399
6511
|
const exactRequest = AgentInteractiveSessionAttachSchema.parse(request);
|
|
6400
|
-
if (!agentInteractiveSessionControlClaimMatchesRef(binding.ref, exactRequest.control) || canonicalCandidateDigest(exactRequest.control) !== canonicalCandidateDigest(binding.control)) throw new Error(`Interactive session ${this.sessionId} terminal attach is bound to a different active control claim`);
|
|
6401
|
-
const requestDigest = canonicalCandidateDigest(exactRequest);
|
|
6512
|
+
if (!agentInteractiveSessionControlClaimMatchesRef(binding.ref, exactRequest.control) || canonicalCandidateDigest$1(exactRequest.control) !== canonicalCandidateDigest$1(binding.control)) throw new Error(`Interactive session ${this.sessionId} terminal attach is bound to a different active control claim`);
|
|
6513
|
+
const requestDigest = canonicalCandidateDigest$1(exactRequest);
|
|
6402
6514
|
if (this.agentTerminalAttachInFlight !== void 0) {
|
|
6403
6515
|
if (this.agentTerminalAttachDigest !== requestDigest) throw new Error(`Interactive session ${this.sessionId} cannot attach with a different terminal request while another attach is in flight`);
|
|
6404
6516
|
return awaitWithAbort(this.agentTerminalAttachInFlight, options?.signal);
|
|
@@ -6451,7 +6563,7 @@ var InteractiveSessionHandle = class {
|
|
|
6451
6563
|
options?.signal?.throwIfAborted();
|
|
6452
6564
|
const ref = this.requireRef();
|
|
6453
6565
|
const exactRequest = AgentInteractiveSessionControlClaimRequestSchema.parse(request);
|
|
6454
|
-
if (canonicalCandidateDigest(exactRequest.ref) !== canonicalCandidateDigest(ref)) throw new Error(`Interactive session ${this.sessionId} control claim is bound to a different exact ref`);
|
|
6566
|
+
if (canonicalCandidateDigest$1(exactRequest.ref) !== canonicalCandidateDigest$1(ref)) throw new Error(`Interactive session ${this.sessionId} control claim is bound to a different exact ref`);
|
|
6455
6567
|
return this.host._claimInteractiveControl(this.sessionId, exactRequest, options).then((acknowledgement) => {
|
|
6456
6568
|
const exactAcknowledgement = AgentInteractiveSessionControlClaimAcknowledgementSchema.parse(acknowledgement);
|
|
6457
6569
|
if (!agentInteractiveSessionControlClaimAcknowledgementMatchesRequest(exactRequest, exactAcknowledgement)) throw new Error(`Interactive session ${this.sessionId} control claim acknowledgement does not match the request`);
|
|
@@ -6466,7 +6578,7 @@ var InteractiveSessionHandle = class {
|
|
|
6466
6578
|
options?.signal?.throwIfAborted();
|
|
6467
6579
|
const binding = this.requireBinding();
|
|
6468
6580
|
const exactCommand = AgentInteractiveSessionStopCommandSchema.parse(command);
|
|
6469
|
-
if (canonicalCandidateDigest(exactCommand.ref) !== canonicalCandidateDigest(binding.ref) || canonicalCandidateDigest(exactCommand.control) !== canonicalCandidateDigest(binding.control)) throw new Error(`Interactive session ${this.sessionId} stop is bound to a different exact ref`);
|
|
6581
|
+
if (canonicalCandidateDigest$1(exactCommand.ref) !== canonicalCandidateDigest$1(binding.ref) || canonicalCandidateDigest$1(exactCommand.control) !== canonicalCandidateDigest$1(binding.control)) throw new Error(`Interactive session ${this.sessionId} stop is bound to a different exact ref`);
|
|
6470
6582
|
return (options === void 0 ? this.host._stopInteractive(this.sessionId, exactCommand) : this.host._stopInteractive(this.sessionId, exactCommand, options)).then((acknowledgement) => {
|
|
6471
6583
|
const exactAcknowledgement = AgentInteractiveSessionStopAcknowledgementSchema.parse(acknowledgement);
|
|
6472
6584
|
if (!agentInteractiveSessionStopAcknowledgementMatchesCommand(exactCommand, exactAcknowledgement)) throw new Error(`Interactive session ${this.sessionId} stop acknowledgement does not match the command`);
|
|
@@ -6478,7 +6590,7 @@ var InteractiveSessionHandle = class {
|
|
|
6478
6590
|
const ref = this.requireRef();
|
|
6479
6591
|
return (options === void 0 ? this.host._stopInteractiveLifecycle(this.sessionId, ref) : this.host._stopInteractiveLifecycle(this.sessionId, ref, options)).then((acknowledgement) => {
|
|
6480
6592
|
const exactAcknowledgement = AgentInteractiveSessionStopAcknowledgementSchema.parse(acknowledgement);
|
|
6481
|
-
if (canonicalCandidateDigest(exactAcknowledgement.ref) !== canonicalCandidateDigest(ref)) throw new Error(`Interactive session ${this.sessionId} lifecycle stop acknowledgement does not match the exact ref`);
|
|
6593
|
+
if (canonicalCandidateDigest$1(exactAcknowledgement.ref) !== canonicalCandidateDigest$1(ref)) throw new Error(`Interactive session ${this.sessionId} lifecycle stop acknowledgement does not match the exact ref`);
|
|
6482
6594
|
if (exactAcknowledgement.status !== "accepted" && exactAcknowledgement.status !== "replayed") throw new Error(`Interactive session ${this.sessionId} lifecycle stop was not confirmed (${exactAcknowledgement.status})`);
|
|
6483
6595
|
if (exactAcknowledgement.effect === "unknown") throw new Error(`Interactive session ${this.sessionId} lifecycle stop returned an unknown outcome`);
|
|
6484
6596
|
return exactAcknowledgement;
|
|
@@ -7536,7 +7648,7 @@ const interactionResolutionDeliveryStateSchema = z.enum([
|
|
|
7536
7648
|
const interactionResolutionAcknowledgementSchema = z.strictObject({
|
|
7537
7649
|
status: z.enum(["accepted", "already_resolved_same"]),
|
|
7538
7650
|
operationId: z.string().min(1),
|
|
7539
|
-
responseDigest: sha256DigestSchema,
|
|
7651
|
+
responseDigest: sha256DigestSchema$1,
|
|
7540
7652
|
interactionId: z.string().min(1),
|
|
7541
7653
|
sessionId: z.string().min(1),
|
|
7542
7654
|
outcome: z.enum([
|
|
@@ -7564,7 +7676,7 @@ const InteractionConflictEnvelopeSchema = z.object({
|
|
|
7564
7676
|
code: z.string().min(1),
|
|
7565
7677
|
message: z.string().min(1),
|
|
7566
7678
|
status: REFUSED_INTERACTION_STATUS,
|
|
7567
|
-
existingResponseDigest: sha256DigestSchema.optional(),
|
|
7679
|
+
existingResponseDigest: sha256DigestSchema$1.optional(),
|
|
7568
7680
|
existingOperationId: z.string().min(1).optional(),
|
|
7569
7681
|
resolvedAt: z.string().min(1).optional()
|
|
7570
7682
|
})
|
|
@@ -7592,7 +7704,7 @@ function bindingsEqual(left, right) {
|
|
|
7592
7704
|
return left.requestDigest === right.requestDigest && left.runId === right.runId && left.provider === right.provider && left.environmentId === right.environmentId && left.sessionId === right.sessionId && left.executionId === right.executionId && left.interactionId === right.interactionId;
|
|
7593
7705
|
}
|
|
7594
7706
|
function assertResolutionMatches(resolution, sessionId, submitted, response, endpoint) {
|
|
7595
|
-
const expectedDigest = canonicalCandidateDigest(submitted);
|
|
7707
|
+
const expectedDigest = canonicalCandidateDigest$1(submitted);
|
|
7596
7708
|
if (resolution.sessionId !== sessionId || resolution.interactionId !== submitted.id || resolution.outcome !== submitted.outcome || resolution.responseDigest !== expectedDigest) throw invalidRuntimeResponse("Sidecar returned a resolution for another interaction response", response, endpoint);
|
|
7597
7709
|
}
|
|
7598
7710
|
/** Parse one interaction response without discarding replay information. */
|
|
@@ -8112,6 +8224,7 @@ var SandboxPromptTransportCapabilities = class extends SandboxSessionAdmissionCa
|
|
|
8112
8224
|
...state.ttlMs !== void 0 ? { ttlMs: state.ttlMs } : {},
|
|
8113
8225
|
...state.options?.detach ? { detach: true } : {},
|
|
8114
8226
|
...state.options?.expectedPublicProfileRequestDigest ? { expectedPublicProfileRequestDigest: state.options.expectedPublicProfileRequestDigest } : {},
|
|
8227
|
+
...state.options?.expectedPublicProfileRevision !== void 0 ? { expectedPublicProfileRevision: state.options.expectedPublicProfileRevision } : {},
|
|
8115
8228
|
...state.options?.expectedSecretProfileReceipt ? { expectedSecretProfileReceipt: state.options.expectedSecretProfileReceipt } : {},
|
|
8116
8229
|
backend: await this.buildRunBackendBody(state.options?.backend, state.internal?.forceFullProfile ?? false, state.options?.model, state.streamSignal, state.options?.expectedPublicProfileRequestDigest !== void 0)
|
|
8117
8230
|
})
|
|
@@ -8280,13 +8393,7 @@ function fromStreamErrorEvent(data) {
|
|
|
8280
8393
|
if (typeof data?.name === "string" && data.name.length > 0) error.name = data.name;
|
|
8281
8394
|
return error;
|
|
8282
8395
|
}
|
|
8283
|
-
/**
|
|
8284
|
-
* Convert a thrown error into an in-band `error` SandboxEvent so a streaming
|
|
8285
|
-
* generator can surface a failure as an event followed by a terminal `done`
|
|
8286
|
-
* instead of throwing mid-iteration (which blanks the stream). Structured
|
|
8287
|
-
* `SandboxError` fields (code/status/origin/endpoint/retryAfterMs) are carried
|
|
8288
|
-
* through so consumers can inspect the failure without re-parsing the message.
|
|
8289
|
-
*/
|
|
8396
|
+
/** Preserve structured errors when a prompt stream reports a caught failure. */
|
|
8290
8397
|
function toStreamErrorEvent(err) {
|
|
8291
8398
|
if (err instanceof StreamInterruptedError) return {
|
|
8292
8399
|
type: "error",
|
|
@@ -8513,7 +8620,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
|
|
|
8513
8620
|
origin: "runtime",
|
|
8514
8621
|
endpoint: `/agents/sessions/${encodeURIComponent(id)}/interactive`
|
|
8515
8622
|
});
|
|
8516
|
-
if (canonicalCandidateDigest(status.ref) !== canonicalCandidateDigest(exactCommand.ref)) throw new ValidationError("Interactive prompt ref or control does not match the session");
|
|
8623
|
+
if (canonicalCandidateDigest$1(status.ref) !== canonicalCandidateDigest$1(exactCommand.ref)) throw new ValidationError("Interactive prompt ref or control does not match the session");
|
|
8517
8624
|
const endpoint = `/agents/sessions/${encodeURIComponent(id)}/interactive/prompt`;
|
|
8518
8625
|
const response = await this.runtimeFetch(endpoint, {
|
|
8519
8626
|
method: "POST",
|
|
@@ -8691,7 +8798,7 @@ var SandboxInteractiveCapabilities = class extends SandboxPromptCapabilities {
|
|
|
8691
8798
|
origin: "runtime"
|
|
8692
8799
|
});
|
|
8693
8800
|
const acknowledgement = parsed.data.data;
|
|
8694
|
-
if (canonicalCandidateDigest(acknowledgement.ref) !== canonicalCandidateDigest(exactRef)) throw new ServerError("Interactive lifecycle stop acknowledgement does not match the exact ref", 502, {
|
|
8801
|
+
if (canonicalCandidateDigest$1(acknowledgement.ref) !== canonicalCandidateDigest$1(exactRef)) throw new ServerError("Interactive lifecycle stop acknowledgement does not match the exact ref", 502, {
|
|
8695
8802
|
endpoint,
|
|
8696
8803
|
origin: "runtime"
|
|
8697
8804
|
});
|
|
@@ -11372,7 +11479,7 @@ var SandboxInteractiveTerminalOperations = class {
|
|
|
11372
11479
|
origin: "runtime",
|
|
11373
11480
|
endpoint: `/agents/sessions/${encodeURIComponent(id)}/interactive`
|
|
11374
11481
|
}, "INTERACTIVE_SESSION_EXITED");
|
|
11375
|
-
if (canonicalCandidateDigest(status.ref) !== canonicalCandidateDigest(exactRef)) throw new ValidationError("Interactive attach ref does not match the current session");
|
|
11482
|
+
if (canonicalCandidateDigest$1(status.ref) !== canonicalCandidateDigest$1(exactRef)) throw new ValidationError("Interactive attach ref does not match the current session");
|
|
11376
11483
|
return exactRef;
|
|
11377
11484
|
}
|
|
11378
11485
|
/**
|
package/dist/tangle/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-
|
|
1
|
+
import { C as JsonResponseParamTypes, E as SandboxIdParamTypes, S as JOB_SANDBOX_DELETE, T as SandboxCreateResponseParamTypes, _ as TANGLE_JOBS_CONTRACT, a as fetchQuote, b as AgentSandboxBlueprintAbi, c as parseQuoteResponse, d as OperatorSession, f as OperatorSessionError, g as TANGLE_CHAIN_ID, h as TangleSandboxClient, i as SignedQuote, l as validateQuote, m as SignMessage, n as QuoteDomain, o as inputsHashOf, p as OperatorSessionToken, r as QuoteError, s as jobQuoteDigest, t as JobQuoteDetails, u as OperatorChallenge, v as TangleSandboxClientConfig, w as SandboxCreateParamTypes, x as JOB_SANDBOX_CREATE, y as ITangleJobsAbi } from "../index-Cc0IxE28.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JobQuoteDetails, JsonResponseParamTypes, OperatorChallenge, OperatorSession, OperatorSessionError, OperatorSessionToken, QuoteDomain, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, SignMessage, SignedQuote, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, TangleSandboxClientConfig, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
package/dist/tangle/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-
|
|
1
|
+
import { _ as SandboxCreateParamTypes, a as parseQuoteResponse, c as OperatorSession, d as TANGLE_JOBS_CONTRACT, f as ITangleJobsAbi, g as JsonResponseParamTypes, h as JOB_SANDBOX_DELETE, i as jobQuoteDigest, l as OperatorSessionError, m as JOB_SANDBOX_CREATE, n as fetchQuote, o as validateQuote, p as AgentSandboxBlueprintAbi, r as inputsHashOf, s as TangleSandboxClient, t as QuoteError, u as TANGLE_CHAIN_ID, v as SandboxCreateResponseParamTypes, y as SandboxIdParamTypes } from "../tangle-JtKIPVjl.js";
|
|
2
2
|
export { AgentSandboxBlueprintAbi, ITangleJobsAbi, JOB_SANDBOX_CREATE, JOB_SANDBOX_DELETE, JsonResponseParamTypes, OperatorSession, OperatorSessionError, QuoteError, SandboxCreateParamTypes, SandboxCreateResponseParamTypes, SandboxIdParamTypes, TANGLE_CHAIN_ID, TANGLE_JOBS_CONTRACT, TangleSandboxClient, fetchQuote, inputsHashOf, jobQuoteDigest, parseQuoteResponse, validateQuote };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createSandboxInstanceFromResponse } from "./sandbox-
|
|
1
|
+
import { n as createSandboxInstanceFromResponse } from "./sandbox-CFSzBI2U.js";
|
|
2
2
|
import { i as readResponseJson } from "./errors-ystNl7Ae.js";
|
|
3
3
|
import { _ as rotlBH, a as anumber, b as rotlSL, d as createXOFer, g as u32, h as toBytes$1, l as createHasher, m as swap32IfBE, n as abytes, o as aoutput, r as aexists, s as clean, t as Hash, v as rotlBL, x as split, y as rotlSH } from "./utils-BXgE8UHJ.js";
|
|
4
4
|
//#region ../../../packages/runtime-contracts/dist/tangle-blueprint-abi.js
|
|
@@ -410,7 +410,7 @@ declare class TerminalStreamError extends Error {
|
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
412
|
//#endregion
|
|
413
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
413
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/plan.d.ts
|
|
414
414
|
/**
|
|
415
415
|
* Typed server-originated continuation. Adapters consume this instead of
|
|
416
416
|
* inferring approval from a free-form user message.
|
|
@@ -446,7 +446,7 @@ declare const PlanContinuationSchema: z.ZodObject<{
|
|
|
446
446
|
}, z.core.$strict>;
|
|
447
447
|
type PlanContinuation = z.infer<typeof PlanContinuationSchema>;
|
|
448
448
|
//#endregion
|
|
449
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
449
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/interaction-data.d.ts
|
|
450
450
|
declare const InteractionSecretReferenceSchema: z.ZodObject<{
|
|
451
451
|
kind: z.ZodLiteral<"secret_handle">;
|
|
452
452
|
handleId: z.ZodString;
|
|
@@ -467,7 +467,7 @@ declare const InteractionResolutionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
467
467
|
}, z.core.$strict>], "outcome">;
|
|
468
468
|
type InteractionResolution = z.infer<typeof InteractionResolutionSchema>;
|
|
469
469
|
//#endregion
|
|
470
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
470
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/proxy-secrets.d.ts
|
|
471
471
|
declare const ProxySecretBindingSchema: z.ZodObject<{
|
|
472
472
|
hosts: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
473
473
|
methods: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
@@ -496,9 +496,8 @@ declare const ProxySecretBindingSchema: z.ZodObject<{
|
|
|
496
496
|
ttlSeconds: z.ZodOptional<z.ZodNumber>;
|
|
497
497
|
}, z.core.$strict>;
|
|
498
498
|
type ProxySecretBinding = z.infer<typeof ProxySecretBindingSchema>;
|
|
499
|
-
/** proxy-installed is
|
|
500
|
-
*
|
|
501
|
-
* credential revocation. Receipts contain metadata only, never secret or placeholder bytes.
|
|
499
|
+
/** proxy-installed is phase-two input, not dispatch authority; installed acknowledges both phases.
|
|
500
|
+
* revoked confirms binding revocation, not upstream revocation. Receipts contain metadata only.
|
|
502
501
|
*/
|
|
503
502
|
declare const ProxySecretReceiptSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
504
503
|
status: z.ZodLiteral<"proxy-installed">;
|
|
@@ -672,13 +671,16 @@ declare const ProxySecretCapabilitiesSchema: z.ZodObject<{
|
|
|
672
671
|
opaque: "opaque";
|
|
673
672
|
}>>;
|
|
674
673
|
enforcement: z.ZodLiteral<"exact">;
|
|
675
|
-
transports: z.ZodTuple<[z.
|
|
674
|
+
transports: z.ZodTuple<[z.ZodEnum<{
|
|
675
|
+
"https:443": "https:443";
|
|
676
|
+
https: "https";
|
|
677
|
+
}>], null>;
|
|
676
678
|
lifecycle: z.ZodLiteral<true>;
|
|
677
679
|
placementReceiptRequired: z.ZodLiteral<true>;
|
|
678
680
|
}, z.core.$strict>;
|
|
679
681
|
type ProxySecretCapabilities = z.infer<typeof ProxySecretCapabilitiesSchema>;
|
|
680
682
|
//#endregion
|
|
681
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
683
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/harness.d.ts
|
|
682
684
|
/**
|
|
683
685
|
* Recognized execution identities, not a deployment's list of installed runners.
|
|
684
686
|
* A profile's authored harness remains part of its canonical identity; execution
|
|
@@ -712,7 +714,7 @@ declare const harnessTypeSchema: z.ZodEnum<{
|
|
|
712
714
|
/** One declaration owns runtime validation and the compile-time vocabulary. */
|
|
713
715
|
type HarnessType = z.infer<typeof harnessTypeSchema>;
|
|
714
716
|
//#endregion
|
|
715
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
717
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/agent-profile.d.ts
|
|
716
718
|
/**
|
|
717
719
|
* Permission policy value for a capability.
|
|
718
720
|
*/
|
|
@@ -1188,11 +1190,11 @@ interface AgentProfileValidationResult {
|
|
|
1188
1190
|
normalizedProfile?: AgentProfile;
|
|
1189
1191
|
}
|
|
1190
1192
|
//#endregion
|
|
1191
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1193
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/agent-candidate.d.ts
|
|
1192
1194
|
/** Full SHA-256 digest with an explicit algorithm prefix. */
|
|
1193
1195
|
type Sha256Digest = `sha256:${string}`;
|
|
1194
1196
|
//#endregion
|
|
1195
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1197
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/interaction-fields.d.ts
|
|
1196
1198
|
declare const InteractionAnswerSpecSchema: z.ZodObject<{
|
|
1197
1199
|
fields: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1198
1200
|
type: z.ZodLiteral<"text">;
|
|
@@ -1246,7 +1248,7 @@ declare const InteractionResponseScopeSchema: z.ZodEnum<{
|
|
|
1246
1248
|
persistent: "persistent";
|
|
1247
1249
|
}>;
|
|
1248
1250
|
//#endregion
|
|
1249
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1251
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/interaction-envelope.d.ts
|
|
1250
1252
|
declare const InteractionSubjectSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1251
1253
|
type: z.ZodLiteral<"tool">;
|
|
1252
1254
|
toolName: z.ZodString;
|
|
@@ -1353,7 +1355,7 @@ declare const InteractionAcknowledgementSchema: z.ZodObject<{
|
|
|
1353
1355
|
}, z.core.$strict>;
|
|
1354
1356
|
type InteractionAcknowledgement = z.infer<typeof InteractionAcknowledgementSchema>;
|
|
1355
1357
|
//#endregion
|
|
1356
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1358
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/runtime-control.d.ts
|
|
1357
1359
|
/** Provider-neutral coordinates sufficient to recreate control of one run. */
|
|
1358
1360
|
interface AgentRunControlRef {
|
|
1359
1361
|
runId: string;
|
|
@@ -1390,7 +1392,7 @@ interface AgentRunCancellationAcknowledgement {
|
|
|
1390
1392
|
existingRequestDigest?: Sha256Digest;
|
|
1391
1393
|
}
|
|
1392
1394
|
//#endregion
|
|
1393
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1395
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/environment-terminal.d.ts
|
|
1394
1396
|
/**
|
|
1395
1397
|
* Provider-neutral handle for one interactive terminal.
|
|
1396
1398
|
*
|
|
@@ -1509,7 +1511,7 @@ interface AgentTerminalSession {
|
|
|
1509
1511
|
}): AsyncIterable<TerminalOutputEvent>;
|
|
1510
1512
|
}
|
|
1511
1513
|
//#endregion
|
|
1512
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1514
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/environment-interactive-control.d.ts
|
|
1513
1515
|
/**
|
|
1514
1516
|
* Durable identity of one coding-agent TUI.
|
|
1515
1517
|
*
|
|
@@ -2230,7 +2232,7 @@ interface AgentInteractiveSessionPromptAcknowledgement {
|
|
|
2230
2232
|
existingRequestDigest?: `sha256:${string}`;
|
|
2231
2233
|
}
|
|
2232
2234
|
//#endregion
|
|
2233
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
2235
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/environment-interactive-start.d.ts
|
|
2234
2236
|
/**
|
|
2235
2237
|
* Start one native coding-agent TUI from caller-owned request material.
|
|
2236
2238
|
*
|
|
@@ -2521,13 +2523,13 @@ declare const AgentInteractiveSessionStartSchema: z.ZodObject<{
|
|
|
2521
2523
|
}, z.core.$strict>;
|
|
2522
2524
|
type AgentInteractiveSessionStart = z.infer<typeof AgentInteractiveSessionStartSchema>;
|
|
2523
2525
|
//#endregion
|
|
2524
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
2526
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/runtime-attachments.d.ts
|
|
2525
2527
|
/** Runtime-owned bindings do not alter the authored AgentProfile or candidate identity. */
|
|
2526
2528
|
interface AgentRuntimeAttachments {
|
|
2527
2529
|
mcp: Record<string, AgentProfileMcpServer>;
|
|
2528
2530
|
}
|
|
2529
2531
|
//#endregion
|
|
2530
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
2532
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.9/node_modules/@tangle-network/agent-interface/dist/sandbox-size.d.ts
|
|
2531
2533
|
/**
|
|
2532
2534
|
* Portable sandbox size vocabulary.
|
|
2533
2535
|
*
|