@tangle-network/sandbox 1.0.146 → 1.0.147
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-uTC8fZDn.d.ts → agent-run-outcome-YZOY61uG.d.ts} +2 -2
- package/dist/auth/index.js +2 -2
- package/dist/{browser-interactive-control-controller-l4Yqgoug.js → browser-interactive-control-controller-CRCRI6x5.js} +15 -15
- package/dist/{browser-interactive-control-controller-CLxkpYNV.d.ts → browser-interactive-control-controller-DdtXzO5r.d.ts} +1 -1
- package/dist/cli-auth-bundle-i9Gg9P_C.js +2 -0
- package/dist/{cli-auth-bundle-CCi5yJ_D-5w0ql9ee.js → cli-auth-bundle-juH6LDo9-D1SaRyqA.js} +89 -27
- package/dist/{client-D9gvWAUR.js → client-COtiO9sl.js} +5 -5
- package/dist/{client-BzNqxL8v.d.ts → client-CXoRiPqY.d.ts} +35 -5
- package/dist/{core-BZp0z9Y9.js → core-j2Z95g2R.js} +4 -4
- package/dist/core.d.ts +6 -6
- package/dist/core.js +3 -3
- package/dist/{harness-Cgp9jduT.js → harness-BhAJqO2u.js} +6 -7
- package/dist/{index-BkL4InBJ.d.ts → index-Vn_rYk5C.d.ts} +5 -5
- package/dist/index.d.ts +9 -9
- package/dist/index.js +7 -7
- package/dist/interactive-control.d.ts +1 -1
- package/dist/interactive-control.js +1 -1
- package/dist/{interactive-controller-OfunwCqc.d.ts → interactive-controller-gJULGNKn.d.ts} +3 -3
- package/dist/{interactive-controller-CTKFnVTy.js → interactive-controller-vW55gCE7.js} +5 -4
- package/dist/{lines-QmDOwLnM.d.ts → lines-9g9dTW5t.d.ts} +1 -1
- package/dist/lines.d.ts +1 -1
- package/dist/{local-cli-auth-BKPsZonH.js → local-cli-auth-CjyRzRmz.js} +1 -1
- package/dist/{preview-BSIiT_Dk.d.ts → preview-D-uzBtP0.d.ts} +3 -3
- package/dist/{profile-schema-nys6Qejd.js → profile-schema-Y5Xl8aOt.js} +8 -8
- package/dist/{public-templates-CYws5jq5.d.ts → public-templates-DAp2vpqB.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-Jbfqj2qv.js → sandbox-CDa23zXk.js} +33 -162
- 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-WUsoz1QJ.js → tangle-BLujQYVN.js} +1 -1
- package/dist/{terminal-stream-types-8-sAl2J0.d.ts → terminal-stream-types-5kBchrj3.d.ts} +22 -17
- package/dist/{types-_cK3Fibu.d.ts → types-CeTsbEjb.d.ts} +30 -11
- package/package.json +4 -4
- package/dist/cli-auth-bundle-CUi_Sbeh.js +0 -2
package/dist/agent/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-
|
|
2
|
-
import { Bt as SandboxFleetParent, Ha as CodeExecutionResult, Ua as CodeLanguage, Ur as CodeExecutionOptions, Wa as CodeResultPart, ga as BackendConfig, ia as SessionListOptions, na as SessionInfo, wo as BackendType } from "../types-
|
|
3
|
-
import { t as Sandbox } from "../client-
|
|
4
|
-
import { u as PreviewAuthorizer } from "../preview-
|
|
1
|
+
import { I as SandboxTaskSession, O as SandboxInstance, R as SandboxSession } from "../index-Vn_rYk5C.js";
|
|
2
|
+
import { Bt as SandboxFleetParent, Ha as CodeExecutionResult, Ua as CodeLanguage, Ur as CodeExecutionOptions, Wa as CodeResultPart, ga as BackendConfig, ia as SessionListOptions, na as SessionInfo, wo as BackendType } from "../types-CeTsbEjb.js";
|
|
3
|
+
import { t as Sandbox } from "../client-CXoRiPqY.js";
|
|
4
|
+
import { u as PreviewAuthorizer } from "../preview-D-uzBtP0.js";
|
|
5
5
|
import * as _$_modelcontextprotocol_sdk_server_index_js0 from "@modelcontextprotocol/sdk/server/index.js";
|
|
6
6
|
import { JSONSchema } from "zod/v4/core";
|
|
7
7
|
import { ToolSet } from "ai";
|
package/dist/agent/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as TOOL_SPECS, i as ALL_TOOL_SPECS, o as serializeToolResult, r as bindToolSpecs, t as createMcpServer } from "../mcp-local-tBlLJqTb.js";
|
|
2
|
-
import { k as assertCurrentBackendType } from "../interactive-controller-
|
|
3
|
-
import { t as SandboxInstance } from "../sandbox-
|
|
2
|
+
import { k as assertCurrentBackendType } from "../interactive-controller-vW55gCE7.js";
|
|
3
|
+
import { t as SandboxInstance } from "../sandbox-CDa23zXk.js";
|
|
4
4
|
import { C as StateError, E as ValidationError, g as NotFoundError } from "../errors-BfR-fBvN.js";
|
|
5
|
-
import { t as Sandbox } from "../client-
|
|
5
|
+
import { t as Sandbox } from "../client-COtiO9sl.js";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/agent/instances.ts
|
|
8
8
|
const managers = /* @__PURE__ */ new WeakMap();
|
package/dist/agent/preview.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-
|
|
1
|
+
import { _ as publishAgentPreview, a as previewOperationTool, c as AgentPreviewOptions, d as PreviewExecutionContext, f as PublishAgentPreviewOptions, g as listAgentPreviews, h as getAgentPreview, i as PreviewTool, l as PreviewAuthorizationRequest, m as ensureAgentPreview, n as PREVIEW_MCP_ALIAS, o as previewToolsForProfile, p as assertPreviewId, r as PREVIEW_TOOLS, s as AgentPreviewError, t as servePreviewMcp, u as PreviewAuthorizer, v as removeAgentPreview, y as resolveSelfSandbox } from "../preview-D-uzBtP0.js";
|
|
2
2
|
export { AgentPreviewError, AgentPreviewOptions, PREVIEW_MCP_ALIAS, PREVIEW_TOOLS, PreviewAuthorizationRequest, PreviewAuthorizer, PreviewExecutionContext, PreviewTool, PublishAgentPreviewOptions, assertPreviewId, ensureAgentPreview, getAgentPreview, listAgentPreviews, previewOperationTool, previewToolsForProfile, publishAgentPreview, removeAgentPreview, resolveSelfSandbox, servePreviewMcp };
|
package/dist/agent/preview.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as agentProfileSchema } from "../profile-schema-
|
|
1
|
+
import { r as agentProfileSchema } from "../profile-schema-Y5Xl8aOt.js";
|
|
2
2
|
import { a as listAgentPreviews, c as resolveSelfSandbox, i as getAgentPreview, n as assertPreviewId, o as publishAgentPreview, r as ensureAgentPreview, s as removeAgentPreview, t as AgentPreviewError } from "../preview-operations-BvgwYaoL.js";
|
|
3
3
|
//#region src/agent/preview-policy.ts
|
|
4
4
|
/** Channel-neutral preview tool selection from a host-authored profile. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as InteractionRequest } from "./terminal-stream-types-
|
|
2
|
-
import { Di as SandboxEvent, _i as DurablePlanSnapshot, ci as AgentApprovalRequirement, di as AgentToolInvocation, li as AgentQuestionRequest, ui as AgentRunStatus } from "./types-
|
|
1
|
+
import { V as InteractionRequest } from "./terminal-stream-types-5kBchrj3.js";
|
|
2
|
+
import { Di as SandboxEvent, _i as DurablePlanSnapshot, ci as AgentApprovalRequirement, di as AgentToolInvocation, li as AgentQuestionRequest, ui as AgentRunStatus } from "./types-CeTsbEjb.js";
|
|
3
3
|
|
|
4
4
|
//#region src/agent-run-outcome.d.ts
|
|
5
5
|
interface AgentRunOutcome {
|
package/dist/auth/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-
|
|
2
|
-
import "../cli-auth-bundle-
|
|
1
|
+
import { i as materializeCliAuthBundle, n as assertCliAuthReferenceSupported, r as cliAuthReferenceSchema } from "../cli-auth-bundle-juH6LDo9-D1SaRyqA.js";
|
|
2
|
+
import "../cli-auth-bundle-i9Gg9P_C.js";
|
|
3
3
|
//#region src/auth/tokens.ts
|
|
4
4
|
const textEncoder = new TextEncoder();
|
|
5
5
|
const textDecoder = new TextDecoder();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as boundedIdentifierSchema, D as isBoundedEventContentJson, E as boundedStringSchema, S as boundedEventContentStringSchema, T as boundedJsonSchema, _ as CONTRACT_MAX_ARRAY_LENGTH, b as boundedEventContentJsonSchema, g as sha256DigestSchema, h as omitTopLevelDigest, m as looksLikeCredential, n as REASONING_EFFORTS, o as canonicalCandidateDigest, p as isWellFormedUnicode, s as canonicalCandidateJson, t as harnessTypeSchema, u as isCanonicalJsonValue, w as boundedJsonRecordSchema, x as boundedEventContentRecordSchema, y as CONTRACT_MAX_STRING_LENGTH } from "./harness-
|
|
1
|
+
import { C as boundedIdentifierSchema, D as isBoundedEventContentJson, E as boundedStringSchema, S as boundedEventContentStringSchema, T as boundedJsonSchema, _ as CONTRACT_MAX_ARRAY_LENGTH, b as boundedEventContentJsonSchema, g as sha256DigestSchema, h as omitTopLevelDigest, m as looksLikeCredential, n as REASONING_EFFORTS, o as canonicalCandidateDigest, p as isWellFormedUnicode, s as canonicalCandidateJson, t as harnessTypeSchema, u as isCanonicalJsonValue, w as boundedJsonRecordSchema, x as boundedEventContentRecordSchema, y as CONTRACT_MAX_STRING_LENGTH } from "./harness-BhAJqO2u.js";
|
|
2
2
|
import { t as awaitWithAbort } from "./abort-signal-CDxyloxz.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
4
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.11/node_modules/@tangle-network/agent-interface/dist/native-session-event.js
|
|
5
5
|
/**
|
|
6
6
|
* Private adapter observation of a provider conversation or resume identity.
|
|
7
7
|
* The adapter must obtain this ID from its bound provider process or API.
|
|
@@ -16,7 +16,7 @@ const NativeSessionObservedEventSchema = z.object({
|
|
|
16
16
|
nativeSessionId: z.string().min(1).max(512).regex(/^\S+$/u)
|
|
17
17
|
}).strict();
|
|
18
18
|
//#endregion
|
|
19
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
19
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.11/node_modules/@tangle-network/agent-interface/dist/environment-observation.js
|
|
20
20
|
const ObservationProvenanceSchema = z.strictObject({
|
|
21
21
|
origin: z.enum([
|
|
22
22
|
"measured",
|
|
@@ -208,7 +208,7 @@ z.strictObject({
|
|
|
208
208
|
accountUsage: AccountUsageSchema.optional()
|
|
209
209
|
});
|
|
210
210
|
//#endregion
|
|
211
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
211
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.11/node_modules/@tangle-network/agent-interface/dist/interaction-fields.js
|
|
212
212
|
/**
|
|
213
213
|
* Field names whose own-key form collides with object internals. A record
|
|
214
214
|
* parser drops a raw `__proto__` key through the legacy prototype setter before
|
|
@@ -389,7 +389,7 @@ z.strictObject({
|
|
|
389
389
|
});
|
|
390
390
|
});
|
|
391
391
|
//#endregion
|
|
392
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
392
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.11/node_modules/@tangle-network/agent-interface/dist/interaction-data.js
|
|
393
393
|
const InteractionSecretReferenceSchema = z.strictObject({
|
|
394
394
|
kind: z.literal("secret_handle"),
|
|
395
395
|
handleId: boundedIdentifierSchema,
|
|
@@ -434,7 +434,7 @@ const InteractionResolutionSchema = z.discriminatedUnion("outcome", [
|
|
|
434
434
|
})
|
|
435
435
|
]);
|
|
436
436
|
//#endregion
|
|
437
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
437
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.11/node_modules/@tangle-network/agent-interface/dist/interaction-permissions.js
|
|
438
438
|
const InteractionKind = {
|
|
439
439
|
/** Agent asks the user to answer/choose. Answer = the chosen field values. */
|
|
440
440
|
Question: "question",
|
|
@@ -461,7 +461,7 @@ const PermissionGrantSchema = z.enum([
|
|
|
461
461
|
"deny"
|
|
462
462
|
]);
|
|
463
463
|
//#endregion
|
|
464
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
464
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.11/node_modules/@tangle-network/agent-interface/dist/interaction-answer-validation.js
|
|
465
465
|
/**
|
|
466
466
|
* Validate an accepted answer against its spec. Used by the broker before a
|
|
467
467
|
* response reaches the adapter, so malformed answers are rejected centrally.
|
|
@@ -566,7 +566,7 @@ function validateInteractionAnswer(spec, data) {
|
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
568
|
//#endregion
|
|
569
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
569
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.11/node_modules/@tangle-network/agent-interface/dist/interaction-resolution-validation.js
|
|
570
570
|
/**
|
|
571
571
|
* A declined or cancelled resolution submits no answer, so any secret-typed
|
|
572
572
|
* field it carries can only be leakage into a transport that retains it.
|
|
@@ -604,7 +604,7 @@ function validateResolutionForRequest(request, resolution) {
|
|
|
604
604
|
return errors;
|
|
605
605
|
}
|
|
606
606
|
//#endregion
|
|
607
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
607
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.11/node_modules/@tangle-network/agent-interface/dist/interaction-envelope.js
|
|
608
608
|
const interactionOutcomeValues = [
|
|
609
609
|
"accepted",
|
|
610
610
|
"declined",
|
|
@@ -808,7 +808,7 @@ const InteractionAcknowledgementSchema = z.strictObject({
|
|
|
808
808
|
});
|
|
809
809
|
});
|
|
810
810
|
//#endregion
|
|
811
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
811
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.11/node_modules/@tangle-network/agent-interface/dist/plan.js
|
|
812
812
|
/**
|
|
813
813
|
* Credential-free provider correlation committed with the plan. This union is
|
|
814
814
|
* deliberately closed: adding plan support for another harness requires an
|
|
@@ -873,7 +873,7 @@ const AgentExecutionOutcomeSchema = z.discriminatedUnion("type", [z.object({ typ
|
|
|
873
873
|
plan: DurablePlanSchema
|
|
874
874
|
}).strict()]);
|
|
875
875
|
//#endregion
|
|
876
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
876
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.11/node_modules/@tangle-network/agent-interface/dist/runtime-control.js
|
|
877
877
|
const stableIdSchema = boundedIdentifierSchema;
|
|
878
878
|
const AgentExactRunControlRefSchema = z.strictObject({
|
|
879
879
|
runId: stableIdSchema,
|
|
@@ -1204,7 +1204,7 @@ z.strictObject({
|
|
|
1204
1204
|
event: CanonicalStreamEventSchema
|
|
1205
1205
|
});
|
|
1206
1206
|
//#endregion
|
|
1207
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1207
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.11/node_modules/@tangle-network/agent-interface/dist/agent-workspace-source-snapshot.js
|
|
1208
1208
|
const controlCharacterPattern = /[\u0000-\u001f\u007f]/;
|
|
1209
1209
|
/** Shared public identifier used by workspace lifecycle contracts. */
|
|
1210
1210
|
const agentWorkspacePublicIdentifierSchema = z.string().min(1).max(500).refine((value) => value.trim().length > 0 && isWellFormedUnicode(value) && !controlCharacterPattern.test(value) && !looksLikeCredential(value), "public workspace identity cannot carry credential-like material");
|
|
@@ -1215,7 +1215,7 @@ const agentWorkspaceSourceSnapshotPolicySchema = z.strictObject({
|
|
|
1215
1215
|
digest: sha256DigestSchema
|
|
1216
1216
|
});
|
|
1217
1217
|
//#endregion
|
|
1218
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1218
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.11/node_modules/@tangle-network/agent-interface/dist/agent-profile-materialization.js
|
|
1219
1219
|
/**
|
|
1220
1220
|
* The canonical AgentProfile leaves that can affect one execution.
|
|
1221
1221
|
*
|
|
@@ -1279,7 +1279,7 @@ const AGENT_PROFILE_MATERIALIZATION_AXES = [
|
|
|
1279
1279
|
value: (profile) => profile.model?.[property]
|
|
1280
1280
|
}))];
|
|
1281
1281
|
//#endregion
|
|
1282
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1282
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.11/node_modules/@tangle-network/agent-interface/dist/agent-execution-preparation-receipt.js
|
|
1283
1283
|
const nonBlankStringSchema = z.string().refine((value) => value.trim().length > 0, "value cannot be blank");
|
|
1284
1284
|
const publicMechanismIdentifierSchema = z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._:/-]{0,199}$/, "mechanism must be a public identifier, not launch arguments").refine((value) => !looksLikeCredential(value), "mechanism cannot carry credential-like material");
|
|
1285
1285
|
const publicLifecycleIdentifierSchema = z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._~:/+-]{0,499}$/, "lifecycle identity must be a public identifier").refine((value) => !looksLikeCredential(value), "lifecycle identity cannot carry credential-like material");
|
|
@@ -1456,7 +1456,7 @@ function sameAgentExactRun(left, right) {
|
|
|
1456
1456
|
return left.runId === right.runId && left.provider === right.provider && left.environmentId === right.environmentId && left.sessionId === right.sessionId && left.executionId === right.executionId && left.requestDigest === right.requestDigest;
|
|
1457
1457
|
}
|
|
1458
1458
|
//#endregion
|
|
1459
|
-
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.
|
|
1459
|
+
//#region ../../../node_modules/.pnpm/@tangle-network+agent-interface@5.10.11/node_modules/@tangle-network/agent-interface/dist/environment-interactive-control.js
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Durable identity of one coding-agent TUI.
|
|
1462
1462
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AgentInteractiveSessionStatus, C as AgentInteractiveSessionAttach, E as AgentInteractiveSessionControlClaimRequest, T as AgentInteractiveSessionControlClaimAcknowledgement, i as TerminalStreamHandlers, k as AgentInteractiveSessionRef, w as AgentInteractiveSessionControlClaim } from "./terminal-stream-types-
|
|
1
|
+
import { A as AgentInteractiveSessionStatus, C as AgentInteractiveSessionAttach, E as AgentInteractiveSessionControlClaimRequest, T as AgentInteractiveSessionControlClaimAcknowledgement, i as TerminalStreamHandlers, k as AgentInteractiveSessionRef, w as AgentInteractiveSessionControlClaim } from "./terminal-stream-types-5kBchrj3.js";
|
|
2
2
|
|
|
3
3
|
//#region src/interactive-types.d.ts
|
|
4
4
|
/** Cancellation for an interactive SDK request. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as agentProfileJsonSchema, r as agentProfileSchema } from "./profile-schema-
|
|
1
|
+
import { n as agentProfileJsonSchema, r as agentProfileSchema } from "./profile-schema-Y5Xl8aOt.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import "@tangle-network/agent-interface/harness-capabilities";
|
|
4
|
-
//#region ../../../packages/cli-agent-registry/dist/harness-contracts-
|
|
4
|
+
//#region ../../../packages/cli-agent-registry/dist/harness-contracts-BqO5mPZN.mjs
|
|
5
5
|
/** The CLI version infra/nix ships for each registered harness. */
|
|
6
6
|
const HARNESS_CLI_VERSIONS = {
|
|
7
7
|
"claude-code": "2.1.311",
|
|
@@ -15,7 +15,8 @@ const HARNESS_CLI_VERSIONS = {
|
|
|
15
15
|
prime: "0.10.1",
|
|
16
16
|
hermes: "0.22.4",
|
|
17
17
|
openclaw: "2026.10.8",
|
|
18
|
-
acp: "claude-agent-acp 0.97.0; codex-acp 0.16.0; gemini-cli 0.65.0"
|
|
18
|
+
acp: "claude-agent-acp 0.97.0; codex-acp 0.16.0; gemini-cli 0.65.0",
|
|
19
|
+
grok: "0.1.220"
|
|
19
20
|
};
|
|
20
21
|
const CLAUDE_PROJECTS = {
|
|
21
22
|
root: ".claude/projects",
|
|
@@ -475,6 +476,62 @@ var factory_droids_default = {
|
|
|
475
476
|
killResume: { kind: "required" }
|
|
476
477
|
}
|
|
477
478
|
};
|
|
479
|
+
var grok_default = {
|
|
480
|
+
session: {
|
|
481
|
+
kind: "native",
|
|
482
|
+
processProbe: {
|
|
483
|
+
versionCommand: "grok --version",
|
|
484
|
+
kill: ["-x", "grok"]
|
|
485
|
+
},
|
|
486
|
+
contract: {
|
|
487
|
+
version: 1,
|
|
488
|
+
stores: [{
|
|
489
|
+
root: ".grok/sessions",
|
|
490
|
+
files: ["*/{id}/updates.jsonl"],
|
|
491
|
+
write: "jsonl-append",
|
|
492
|
+
shared: false,
|
|
493
|
+
format: "grok.acp-session-dir"
|
|
494
|
+
}],
|
|
495
|
+
identity: {
|
|
496
|
+
kind: "first-event",
|
|
497
|
+
event: "sessionId",
|
|
498
|
+
deadlineMs: 6e4
|
|
499
|
+
},
|
|
500
|
+
resume: {
|
|
501
|
+
kind: "args",
|
|
502
|
+
args: ["-r", "{id}"]
|
|
503
|
+
},
|
|
504
|
+
forbiddenArgs: [],
|
|
505
|
+
storeEnv: { GROK_HOME: ".grok" },
|
|
506
|
+
evidence: {
|
|
507
|
+
servedModel: "session-record",
|
|
508
|
+
usage: "session-total",
|
|
509
|
+
endingError: "none"
|
|
510
|
+
},
|
|
511
|
+
cliVersion: HARNESS_CLI_VERSIONS.grok
|
|
512
|
+
},
|
|
513
|
+
defect: null
|
|
514
|
+
},
|
|
515
|
+
config: {
|
|
516
|
+
kind: "model",
|
|
517
|
+
providerRequiresModel: true,
|
|
518
|
+
keySources: ["api-key", "api-key-env"],
|
|
519
|
+
baseUrl: "caller-or-managed",
|
|
520
|
+
modelWire: "openai-compat",
|
|
521
|
+
envVars: {
|
|
522
|
+
apiKey: "XAI_API_KEY",
|
|
523
|
+
model: "GROK_MODEL"
|
|
524
|
+
}
|
|
525
|
+
},
|
|
526
|
+
lifecycle: {
|
|
527
|
+
runtime: void 0,
|
|
528
|
+
coldCreate: { kind: "required" },
|
|
529
|
+
warmClaim: { kind: "required" },
|
|
530
|
+
parkResume: { kind: "required" },
|
|
531
|
+
branchChild: { kind: "required" },
|
|
532
|
+
killResume: { kind: "required" }
|
|
533
|
+
}
|
|
534
|
+
};
|
|
478
535
|
var hermes_default = {
|
|
479
536
|
session: {
|
|
480
537
|
kind: "native",
|
|
@@ -863,6 +920,7 @@ const HARNESSES = {
|
|
|
863
920
|
},
|
|
864
921
|
"kimi-code": kimi_code_default,
|
|
865
922
|
"factory-droids": factory_droids_default,
|
|
923
|
+
grok: grok_default,
|
|
866
924
|
amp: amp_default,
|
|
867
925
|
prime: {
|
|
868
926
|
session: {
|
|
@@ -933,16 +991,7 @@ const HARNESSES = {
|
|
|
933
991
|
};
|
|
934
992
|
//#endregion
|
|
935
993
|
//#region ../../../packages/cli-agent-registry/dist/native-session-contracts.mjs
|
|
936
|
-
/**
|
|
937
|
-
* The native session projection of the per-harness declarations in harness-contracts/. Each entry is
|
|
938
|
-
* proven by a conformance receipt (tests/harness/receipts) for
|
|
939
|
-
* its pinned CLI version. There is no pending list.
|
|
940
|
-
*
|
|
941
|
-
* CLI versions are the pins in infra/nix (agent-clis.json and flake.nix),
|
|
942
|
-
* generated into harness-cli-versions.ts by the bump. The registry test
|
|
943
|
-
* tests/harness-session-contract.test.ts fails when a pin, a contract or an
|
|
944
|
-
* adapter's source moves without a new receipt.
|
|
945
|
-
*/
|
|
994
|
+
/** Native session contracts. A receipt proves each pin. There is no pending list. */
|
|
946
995
|
const NATIVE_SESSION_CONTRACTS = {
|
|
947
996
|
"claude-code": HARNESSES["claude-code"].session.contract,
|
|
948
997
|
codex: HARNESSES["codex"].session.contract,
|
|
@@ -954,21 +1003,13 @@ const NATIVE_SESSION_CONTRACTS = {
|
|
|
954
1003
|
prime: HARNESSES["prime"].session.contract,
|
|
955
1004
|
hermes: HARNESSES["hermes"].session.contract,
|
|
956
1005
|
openclaw: HARNESSES["openclaw"].session.contract,
|
|
957
|
-
acp: HARNESSES["acp"].session.contract
|
|
1006
|
+
acp: HARNESSES["acp"].session.contract,
|
|
1007
|
+
grok: HARNESSES["grok"].session.contract
|
|
958
1008
|
};
|
|
959
1009
|
HARNESSES["nanoclaw"].session.defect.reason, HARNESSES["cursor"].session.defect.reason;
|
|
960
1010
|
//#endregion
|
|
961
|
-
//#region ../../../packages/cli-agent-registry/dist/backend-types-
|
|
962
|
-
/**
|
|
963
|
-
* This distribution's backend vocabulary, declared positively. The shared
|
|
964
|
-
* Interface vocabulary also contains historical and differently hosted harnesses;
|
|
965
|
-
* knowing one upstream must not require installing it here or make this module
|
|
966
|
-
* throw at import time. Keep old wire identities readable when retiring execution.
|
|
967
|
-
*
|
|
968
|
-
* Gemini is not a direct Sandbox backend; it is available only through a backing
|
|
969
|
-
* transport. Adding it upstream never implicitly makes it dispatchable here.
|
|
970
|
-
* The spec/adapter composition must still prove every backend it actually enables.
|
|
971
|
-
*/
|
|
1011
|
+
//#region ../../../packages/cli-agent-registry/dist/backend-types-CNo_Zj_K.mjs
|
|
1012
|
+
/** This distribution's backend vocabulary. Gemini is only a backing transport, not a direct backend. */
|
|
972
1013
|
const BACKEND_TYPE = {
|
|
973
1014
|
OPENCODE: "opencode",
|
|
974
1015
|
CLAUDE_CODE: "claude-code",
|
|
@@ -983,6 +1024,7 @@ const BACKEND_TYPE = {
|
|
|
983
1024
|
NANOCLAW: "nanoclaw",
|
|
984
1025
|
ACP: "acp",
|
|
985
1026
|
CURSOR: "cursor",
|
|
1027
|
+
GROK: "grok",
|
|
986
1028
|
CLI_BASE: "cli-base"
|
|
987
1029
|
};
|
|
988
1030
|
/** Stable declaration order; registry tests check the shipped spec composition. */
|
|
@@ -991,7 +1033,7 @@ const backendTypeSchema = z.enum(ALL_BACKEND_TYPES);
|
|
|
991
1033
|
z.string().regex(/^[A-Za-z0-9_.:@-]{1,256}$/);
|
|
992
1034
|
new Set(ALL_BACKEND_TYPES);
|
|
993
1035
|
//#endregion
|
|
994
|
-
//#region ../../../packages/cli-agent-registry/dist/specs-
|
|
1036
|
+
//#region ../../../packages/cli-agent-registry/dist/specs-CdPJo8ih.mjs
|
|
995
1037
|
z.globalRegistry.add(agentProfileSchema, {
|
|
996
1038
|
id: "AgentProfile",
|
|
997
1039
|
...agentProfileJsonSchema
|
|
@@ -1326,6 +1368,26 @@ const CLI_AGENT_SPECS = [
|
|
|
1326
1368
|
cliAuthHome: { kind: "inherit-home" },
|
|
1327
1369
|
hasCliAuth: true
|
|
1328
1370
|
},
|
|
1371
|
+
{
|
|
1372
|
+
name: BACKEND_TYPE.GROK,
|
|
1373
|
+
nativeSession: NATIVE_SESSION_CONTRACTS.grok,
|
|
1374
|
+
messageStorageDir: ".grok-sessions",
|
|
1375
|
+
displayName: "Grok",
|
|
1376
|
+
description: "Grok Build CLI. Headless grok -p against a caller base URL.",
|
|
1377
|
+
envVars: HARNESSES.grok.config.envVars,
|
|
1378
|
+
capabilities: {
|
|
1379
|
+
...BASE_CAPABILITIES,
|
|
1380
|
+
reasoning: false,
|
|
1381
|
+
contextWindow: 128e3,
|
|
1382
|
+
mcp: false,
|
|
1383
|
+
sessions: true,
|
|
1384
|
+
configurable: false,
|
|
1385
|
+
interactions: [],
|
|
1386
|
+
imageInput: false
|
|
1387
|
+
},
|
|
1388
|
+
cliAuthHome: { kind: "inherit-home" },
|
|
1389
|
+
hasCliAuth: false
|
|
1390
|
+
},
|
|
1329
1391
|
{
|
|
1330
1392
|
name: BACKEND_TYPE.PI,
|
|
1331
1393
|
nativeSession: NATIVE_SESSION_CONTRACTS.pi,
|
|
@@ -1509,7 +1571,7 @@ function getSpec(name) {
|
|
|
1509
1571
|
return CLI_AGENT_SPECS.find((spec) => spec.name === name);
|
|
1510
1572
|
}
|
|
1511
1573
|
//#endregion
|
|
1512
|
-
//#region ../../../packages/cli-agent-registry/dist/cli-auth-bundle-
|
|
1574
|
+
//#region ../../../packages/cli-agent-registry/dist/cli-auth-bundle-juH6LDo9.mjs
|
|
1513
1575
|
const cliAuthReferenceSchema = z.strictObject({
|
|
1514
1576
|
account: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9@._+-]{0,127}$/),
|
|
1515
1577
|
secretEnv: z.string().regex(/^[A-Za-z_][A-Za-z0-9_]{0,63}$/),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as encodePromptForWire, D as isBrowserRuntime, F as withoutCreateOnlyModelFields, O as applyRequestedModel, P as withProfileHarness, U as backendTypeSchema, j as normalizeRuntimeBackendConfig, k as assertCurrentBackendType, o as requestInteractiveSessionToken } from "./interactive-controller-
|
|
2
|
-
import { r as agentProfileSchema } from "./profile-schema-
|
|
3
|
-
import { A as normalizeStartupDiagnostics, B as generateIdempotencyKey, D as isRetryableProfileFileMaterializeFailure, E as validateDeferredProfileFileMounts, F as normalizeSandboxShape, H as isRateLimitCreateError, M as normalizeConnection, N as normalizeEgressPolicyFields, O as normalizeCaptureProof, P as normalizeProxySecretReceipt, R as DEPLOY_WINDOW_RETRY_MS, T as splitInlineProfileSkills, U as isRetryableCreateError, V as isDeployWindowCreateError, W as waitForCreateRetry, j as parseStopPhase, k as normalizeSandboxCreateReceipt, n as createSandboxInstanceFromResponse, o as exportTraceBundle, w as splitInlineProfileFileMounts, z as createRetryDelayMs } from "./sandbox-
|
|
1
|
+
import { C as encodePromptForWire, D as isBrowserRuntime, F as withoutCreateOnlyModelFields, O as applyRequestedModel, P as withProfileHarness, U as backendTypeSchema, j as normalizeRuntimeBackendConfig, k as assertCurrentBackendType, o as requestInteractiveSessionToken } from "./interactive-controller-vW55gCE7.js";
|
|
2
|
+
import { r as agentProfileSchema } from "./profile-schema-Y5Xl8aOt.js";
|
|
3
|
+
import { A as normalizeStartupDiagnostics, B as generateIdempotencyKey, D as isRetryableProfileFileMaterializeFailure, E as validateDeferredProfileFileMounts, F as normalizeSandboxShape, H as isRateLimitCreateError, M as normalizeConnection, N as normalizeEgressPolicyFields, O as normalizeCaptureProof, P as normalizeProxySecretReceipt, R as DEPLOY_WINDOW_RETRY_MS, T as splitInlineProfileSkills, U as isRetryableCreateError, V as isDeployWindowCreateError, W as waitForCreateRetry, j as parseStopPhase, k as normalizeSandboxCreateReceipt, n as createSandboxInstanceFromResponse, o as exportTraceBundle, w as splitInlineProfileFileMounts, z as createRetryDelayMs } from "./sandbox-CDa23zXk.js";
|
|
4
4
|
import { D as isInsideReservedDir, E as ValidationError, S as ServerError, T as TimeoutError, _ as PartialFailureError, a as AuthError, g as NotFoundError, h as NetworkError, i as readResponseJson, n as parseErrorResponse, r as parseResponseError, x as SandboxError } from "./errors-BfR-fBvN.js";
|
|
5
5
|
import { n as combineAbortSignals } from "./abort-signal-CDxyloxz.js";
|
|
6
6
|
import { t as fetchSandboxApi } from "./api-request-DNrodWdz.js";
|
|
@@ -1211,11 +1211,11 @@ function isLocalSandboxEndpoint(baseUrl) {
|
|
|
1211
1211
|
}
|
|
1212
1212
|
}
|
|
1213
1213
|
async function resolveLocalCliAuthFiles(backendType) {
|
|
1214
|
-
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-
|
|
1214
|
+
const { discoverLocalCliAuthFiles } = await import("./local-cli-auth-CjyRzRmz.js");
|
|
1215
1215
|
return discoverLocalCliAuthFiles(backendType);
|
|
1216
1216
|
}
|
|
1217
1217
|
async function loadLocalCliAuthExpectation(backendType) {
|
|
1218
|
-
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-
|
|
1218
|
+
const { describeLocalCliAuthExpectation: describe } = await import("./local-cli-auth-CjyRzRmz.js");
|
|
1219
1219
|
return describe(backendType);
|
|
1220
1220
|
}
|
|
1221
1221
|
/**
|