@agent-vm/agent-portal-sdk 0.0.114 → 0.0.116
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/contract-fixtures/portable-contracts/artifacts/artifact-read-result-authority-field-rejected.fixture.json +21 -0
- package/contract-fixtures/portable-contracts/artifacts/artifact-read-result-default-truncated.fixture.json +35 -0
- package/contract-fixtures/portable-contracts/artifacts/artifact-reference-path-rejected.fixture.json +17 -0
- package/contract-fixtures/portable-contracts/artifacts/artifact-reference-valid.fixture.json +24 -0
- package/contract-fixtures/portable-contracts/bounds/artifact-read-maximum-bytes.fixture.json +29 -0
- package/contract-fixtures/portable-contracts/bounds/artifact-read-over-maximum-bytes.fixture.json +19 -0
- package/contract-fixtures/portable-contracts/bounds/json-object-over-maximum-entries.fixture.json +1013 -0
- package/contract-fixtures/portable-contracts/bounds/list-request-maximum-limit.fixture.json +30 -0
- package/contract-fixtures/portable-contracts/bounds/list-request-over-maximum-limit.fixture.json +22 -0
- package/contract-fixtures/portable-contracts/bounds/progress-maximum-percent.fixture.json +22 -0
- package/contract-fixtures/portable-contracts/bounds/progress-minimum-percent.fixture.json +22 -0
- package/contract-fixtures/portable-contracts/bounds/progress-over-maximum-percent.fixture.json +16 -0
- package/contract-fixtures/portable-contracts/bounds/unsafe-integer.fixture.json +11 -0
- package/contract-fixtures/portable-contracts/canonical-json/nested-key-order-and-negative-zero.fixture.json +24 -0
- package/contract-fixtures/portable-contracts/coverage/gateway-trusted-invocation-context.fixture.json +53 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-environment-close-request.fixture.json +29 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-environment-close-result.fixture.json +31 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-environment-open-request.fixture.json +17 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-environment-open-result.fixture.json +33 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-environment-status-request.fixture.json +29 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-environment-status-result.fixture.json +33 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-exec-cancel-request.fixture.json +25 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-exec-cancel-result.fixture.json +27 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-exec-start-request.fixture.json +51 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-exec-start-result.fixture.json +31 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-exec-wait-request.fixture.json +27 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-exec-wait-result.fixture.json +37 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-list-request.fixture.json +33 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-list-result.fixture.json +21 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-mkdir-request.fixture.json +31 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-mkdir-result.fixture.json +23 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-read-request.fixture.json +35 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-read-result.fixture.json +37 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-remove-request.fixture.json +31 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-remove-result.fixture.json +23 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-rename-request.fixture.json +33 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-rename-result.fixture.json +23 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-stat-request.fixture.json +29 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-stat-result.fixture.json +21 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-write-request.fixture.json +43 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-fs-write-result.fixture.json +27 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-operation-identity.fixture.json +21 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-cancel-request.fixture.json +27 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-cancel-result.fixture.json +27 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-logs-request.fixture.json +37 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-logs-result.fixture.json +35 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-start-request.fixture.json +35 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-start-result.fixture.json +39 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-status-request.fixture.json +27 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-status-result.fixture.json +37 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-wait-request.fixture.json +29 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-process-wait-result.fixture.json +37 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-retained-result-lookup-request.fixture.json +25 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-stream-close-request.fixture.json +29 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-stream-close-result.fixture.json +31 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-stream-read-request.fixture.json +33 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-stream-read-result.fixture.json +47 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-stream-write-request.fixture.json +45 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-stream-write-result.fixture.json +37 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-terminal-attach-request.fixture.json +33 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-terminal-attach-result.fixture.json +53 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-terminal-resize-request.fixture.json +35 -0
- package/contract-fixtures/portable-contracts/coverage/sandbox-terminal-resize-result.fixture.json +37 -0
- package/contract-fixtures/portable-contracts/defaults/describe-request-defaults.fixture.json +44 -0
- package/contract-fixtures/portable-contracts/defaults/list-request-default-limit.fixture.json +29 -0
- package/contract-fixtures/portable-contracts/defaults/search-request-defaults.fixture.json +33 -0
- package/contract-fixtures/portable-contracts/discovery/describe-result.fixture.json +18 -0
- package/contract-fixtures/portable-contracts/discovery/list-result.fixture.json +18 -0
- package/contract-fixtures/portable-contracts/discovery/search-result.fixture.json +18 -0
- package/contract-fixtures/portable-contracts/gateway/attachment-duplicate-agent.fixture.json +21 -0
- package/contract-fixtures/portable-contracts/gateway/attachment-valid.fixture.json +32 -0
- package/contract-fixtures/portable-contracts/gateway/managed-agent-projection-hermes-valid.fixture.json +28 -0
- package/contract-fixtures/portable-contracts/gateway/managed-agent-projection-old-authority-rejected.fixture.json +20 -0
- package/contract-fixtures/portable-contracts/gateway/managed-agent-projection-openclaw-valid.fixture.json +28 -0
- package/contract-fixtures/portable-contracts/gateway/managed-agent-projection-self-root-rejected.fixture.json +20 -0
- package/contract-fixtures/portable-contracts/gateway/managed-agent-projection-work-root-rejected.fixture.json +20 -0
- package/contract-fixtures/portable-contracts/operations/cancellation-pending.fixture.json +18 -0
- package/contract-fixtures/portable-contracts/operations/retained-ambiguous.fixture.json +28 -0
- package/contract-fixtures/portable-contracts/outcomes/ambiguous.fixture.json +40 -0
- package/contract-fixtures/portable-contracts/outcomes/call-result-aggregate-status-invalid.fixture.json +35 -0
- package/contract-fixtures/portable-contracts/outcomes/call-result-aggregate-status-valid.fixture.json +54 -0
- package/contract-fixtures/portable-contracts/outcomes/cancelled-proven.fixture.json +40 -0
- package/contract-fixtures/portable-contracts/outcomes/completed-failed.fixture.json +42 -0
- package/contract-fixtures/portable-contracts/outcomes/completed-succeeded.fixture.json +40 -0
- package/contract-fixtures/portable-contracts/outcomes/invalid-ambiguous-retry-class.fixture.json +25 -0
- package/contract-fixtures/portable-contracts/outcomes/invalid-error-completed-succeeded.fixture.json +26 -0
- package/contract-fixtures/portable-contracts/outcomes/invalid-error-result-with-value.fixture.json +19 -0
- package/contract-fixtures/portable-contracts/outcomes/invalid-not-dispatched-certainty.fixture.json +25 -0
- package/contract-fixtures/portable-contracts/outcomes/invalid-ok-completed-failed.fixture.json +23 -0
- package/contract-fixtures/portable-contracts/outcomes/invalid-ok-result-with-error.fixture.json +19 -0
- package/contract-fixtures/portable-contracts/outcomes/invalid-replaced-missing-prior-side-effects.fixture.json +25 -0
- package/contract-fixtures/portable-contracts/outcomes/missing-operation-identity-outcome.fixture.json +26 -0
- package/contract-fixtures/portable-contracts/outcomes/not-dispatched.fixture.json +40 -0
- package/contract-fixtures/portable-contracts/outcomes/replaced-proven.fixture.json +42 -0
- package/contract-fixtures/portable-contracts/outcomes/timed-out-proven.fixture.json +40 -0
- package/contract-fixtures/portable-contracts/requests/call-request-canonical.fixture.json +42 -0
- package/contract-fixtures/portable-contracts/requests/call-request-duplicate-id.fixture.json +26 -0
- package/contract-fixtures/portable-contracts/requests/call-request-reserved-id.fixture.json +20 -0
- package/contract-fixtures/portable-contracts/requests/call-request-unknown-field.fixture.json +21 -0
- package/contract-fixtures/portable-contracts/sandbox/exec-start-duplicate-environment-name.fixture.json +32 -0
- package/contract-fixtures/portable-contracts/sandbox/fs-stat-parent-path.fixture.json +26 -0
- package/contract-fixtures/portable-contracts/sandbox/stream-write-byte-length.fixture.json +21 -0
- package/dist/adapter-boundary/index.d.ts +2 -41
- package/dist/adapter-boundary/index.js +1 -28
- package/dist/adapter-boundary-BIagsTUH.js +29 -0
- package/dist/adapter-boundary-BIagsTUH.js.map +1 -0
- package/dist/approval-surface/index.d.ts +2 -48
- package/dist/approval-surface/index.js +2 -22
- package/dist/approval-surface-en5VAY5h.js +20 -0
- package/dist/approval-surface-en5VAY5h.js.map +1 -0
- package/dist/{artifact-reference-schema-XiJ280uV.js → artifact-reference-schema-CiEjxYPd.js} +4 -3
- package/dist/artifact-reference-schema-CiEjxYPd.js.map +1 -0
- package/dist/artifact-surface/index.d.ts +2 -49
- package/dist/artifact-surface/index.js +3 -27
- package/dist/artifact-surface-BstQxq6b.js +65 -0
- package/dist/artifact-surface-BstQxq6b.js.map +1 -0
- package/dist/capability-description-surface/index.d.ts +2 -142
- package/dist/capability-description-surface/index.js +2 -1
- package/dist/capability-description-surface-BdzknTKT.js +2 -0
- package/dist/{capability-descriptor-schema-wgtHF0Ic.js → capability-descriptor-schema-zRnfGjBc.js} +2 -2
- package/dist/{capability-descriptor-schema-wgtHF0Ic.js.map → capability-descriptor-schema-zRnfGjBc.js.map} +1 -1
- package/dist/cli/tool-portal.d.ts +1 -0
- package/dist/cli/tool-portal.js +207 -0
- package/dist/cli/tool-portal.js.map +1 -0
- package/dist/contracts/index.d.ts +2 -0
- package/dist/contracts/index.js +2 -0
- package/dist/contracts-RgGW0RX2.js +611 -0
- package/dist/contracts-RgGW0RX2.js.map +1 -0
- package/dist/gateway-runtime-client/index.d.ts +385 -0
- package/dist/gateway-runtime-client/index.d.ts.map +1 -0
- package/dist/gateway-runtime-client/index.js +1439 -0
- package/dist/gateway-runtime-client/index.js.map +1 -0
- package/dist/gateway-runtime-local-exec/gateway-runtime-local-exec-helper.d.ts +1 -0
- package/dist/gateway-runtime-local-exec/gateway-runtime-local-exec-helper.js +125 -0
- package/dist/gateway-runtime-local-exec/gateway-runtime-local-exec-helper.js.map +1 -0
- package/dist/gateway-runtime-local-exec/index.d.ts +54 -0
- package/dist/gateway-runtime-local-exec/index.d.ts.map +1 -0
- package/dist/gateway-runtime-local-exec/index.js +2 -0
- package/dist/gateway-runtime-local-exec-transport-B1hy2A3Q.js +427 -0
- package/dist/gateway-runtime-local-exec-transport-B1hy2A3Q.js.map +1 -0
- package/dist/index-B5hgm1KH.d.ts +84 -0
- package/dist/index-B5hgm1KH.d.ts.map +1 -0
- package/dist/index-BWE2_BcN.d.ts +64 -0
- package/dist/index-BWE2_BcN.d.ts.map +1 -0
- package/dist/index-BmH68K78.d.ts +41 -0
- package/dist/index-BmH68K78.d.ts.map +1 -0
- package/dist/index-ByAhyVbI.d.ts +142 -0
- package/dist/index-ByAhyVbI.d.ts.map +1 -0
- package/dist/index-C-NPMMvc.d.ts +2396 -0
- package/dist/index-C-NPMMvc.d.ts.map +1 -0
- package/dist/index-DKBSYuxW.d.ts +239 -0
- package/dist/index-DKBSYuxW.d.ts.map +1 -0
- package/dist/{index-DJiaGYF_.d.ts → index-Dj4galCJ.d.ts} +1 -1
- package/dist/{index-DJiaGYF_.d.ts.map → index-Dj4galCJ.d.ts.map} +1 -1
- package/dist/index-Dxoz-ORl.d.ts +229 -0
- package/dist/index-Dxoz-ORl.d.ts.map +1 -0
- package/dist/index-v8suC0qe.d.ts +69 -0
- package/dist/index-v8suC0qe.d.ts.map +1 -0
- package/dist/index-yeFGRMdv.d.ts +152 -0
- package/dist/index-yeFGRMdv.d.ts.map +1 -0
- package/dist/index.d.ts +12 -10
- package/dist/index.js +16 -12
- package/dist/{json-value-schema-Bj42URkc.d.ts → json-value-schema-M87sjwWL.d.ts} +1 -1
- package/dist/{json-value-schema-Bj42URkc.d.ts.map → json-value-schema-M87sjwWL.d.ts.map} +1 -1
- package/dist/{json-value-schema-D-3hfAyL.js → json-value-schema-hdPkabRZ.js} +12 -2
- package/dist/json-value-schema-hdPkabRZ.js.map +1 -0
- package/dist/node-tool-portal-mcp-transport-Cl2VKbLY.js +156 -0
- package/dist/node-tool-portal-mcp-transport-Cl2VKbLY.js.map +1 -0
- package/dist/portable-contracts/index.d.ts +2 -0
- package/dist/portable-contracts/index.js +3 -0
- package/dist/portable-contracts-Bca33zVa.js +326 -0
- package/dist/portable-contracts-Bca33zVa.js.map +1 -0
- package/dist/portable-refinement-authoring-ZSmR-amG.js +196 -0
- package/dist/portable-refinement-authoring-ZSmR-amG.js.map +1 -0
- package/dist/portal-call-request-schema-Cp6CMGs9.js +41 -0
- package/dist/portal-call-request-schema-Cp6CMGs9.js.map +1 -0
- package/dist/portal-call-result-schema-ByxHRCEN.js +158 -0
- package/dist/portal-call-result-schema-ByxHRCEN.js.map +1 -0
- package/dist/{portal-call-result-schema-BGEEv_aO.d.ts → portal-call-result-schema-wSCaz3mC.d.ts} +413 -199
- package/dist/portal-call-result-schema-wSCaz3mC.d.ts.map +1 -0
- package/dist/portal-call-surface/index.d.ts +3 -153
- package/dist/portal-call-surface/index.js +5 -69
- package/dist/portal-call-surface-DjZVquFt.js +83 -0
- package/dist/portal-call-surface-DjZVquFt.js.map +1 -0
- package/dist/{portal-error-schema-D58onG2t.js → portal-error-schema-CQHgoFq4.js} +12 -2
- package/dist/portal-error-schema-CQHgoFq4.js.map +1 -0
- package/dist/portal-event-surface/index.d.ts +2 -229
- package/dist/portal-event-surface/index.js +2 -50
- package/dist/portal-event-surface-CdScrgoN.js +51 -0
- package/dist/portal-event-surface-CdScrgoN.js.map +1 -0
- package/dist/testing/index.d.ts +2 -3
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +10 -1
- package/dist/testing/index.js.map +1 -1
- package/dist/tool-portal-mcp-client/index.d.ts +2 -0
- package/dist/tool-portal-mcp-client/index.js +2 -0
- package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts +17 -0
- package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts.map +1 -0
- package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.js +2 -0
- package/dist/tool-portal-mcp-client-DwJF-48Y.js +90 -0
- package/dist/tool-portal-mcp-client-DwJF-48Y.js.map +1 -0
- package/package.json +32 -2
- package/portable-contract-schema-manifest.json +7960 -0
- package/dist/adapter-boundary/index.d.ts.map +0 -1
- package/dist/adapter-boundary/index.js.map +0 -1
- package/dist/approval-surface/index.d.ts.map +0 -1
- package/dist/approval-surface/index.js.map +0 -1
- package/dist/artifact-reference-schema-XiJ280uV.js.map +0 -1
- package/dist/artifact-surface/index.d.ts.map +0 -1
- package/dist/artifact-surface/index.js.map +0 -1
- package/dist/capability-description-surface/index.d.ts.map +0 -1
- package/dist/json-value-schema-D-3hfAyL.js.map +0 -1
- package/dist/portal-call-result-schema-BGEEv_aO.d.ts.map +0 -1
- package/dist/portal-call-result-schema-BIqFTFK8.js +0 -102
- package/dist/portal-call-result-schema-BIqFTFK8.js.map +0 -1
- package/dist/portal-call-surface/index.d.ts.map +0 -1
- package/dist/portal-call-surface/index.js.map +0 -1
- package/dist/portal-error-schema-D58onG2t.js.map +0 -1
- package/dist/portal-event-surface/index.d.ts.map +0 -1
- package/dist/portal-event-surface/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts-RgGW0RX2.js","names":[],"sources":["../src/contracts/contract-foundations.ts","../src/contracts/operation-contracts.ts","../src/contracts/sandbox-environment-contracts.ts","../src/contracts/sandbox-execution-contracts.ts","../src/contracts/sandbox-filesystem-contracts.ts","../src/contracts/sandbox-process-contracts.ts","../src/contracts/sandbox-stream-contracts.ts","../src/contracts/sandbox-terminal-contracts.ts","../src/contracts/trusted-context-contracts.ts","../src/contracts/index.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { withPortableSuperRefinement } from '../portable-contracts/portable-refinement-authoring.js';\n\nexport const PORTABLE_MAXIMUM_SAFE_INTEGER = Number.MAX_SAFE_INTEGER;\nexport const SANDBOX_MAXIMUM_ENVIRONMENT_VARIABLES = 100;\nexport const SANDBOX_MAXIMUM_IDENTIFIER_CHARACTERS = 256;\nexport const SANDBOX_MAXIMUM_PATH_CHARACTERS = 1_024;\nexport const SANDBOX_MAXIMUM_TEXT_CHARACTERS = 64 * 1_024;\nexport const SANDBOX_MAXIMUM_BINARY_BYTES = 16 * 1_024 * 1_024;\nexport const SANDBOX_MAXIMUM_LIST_ITEMS = 1_000;\nexport const SANDBOX_MAXIMUM_OPERATION_MILLISECONDS = 60 * 60 * 1_000;\n\nexport const BoundedOpaqueIdentifierSchema = z\n\t.string()\n\t.min(1)\n\t.max(SANDBOX_MAXIMUM_IDENTIFIER_CHARACTERS);\nexport const PositiveSafeIntegerSchema = z\n\t.number()\n\t.int()\n\t.positive()\n\t.max(PORTABLE_MAXIMUM_SAFE_INTEGER);\nexport const NonnegativeSafeIntegerSchema = z\n\t.number()\n\t.int()\n\t.nonnegative()\n\t.max(PORTABLE_MAXIMUM_SAFE_INTEGER);\nexport const BoundedOperationMillisecondsSchema = PositiveSafeIntegerSchema.max(\n\tSANDBOX_MAXIMUM_OPERATION_MILLISECONDS,\n);\nexport const BoundedByteCountSchema = PositiveSafeIntegerSchema.max(SANDBOX_MAXIMUM_BINARY_BYTES);\nexport const BoundedTextSchema = z.string().max(SANDBOX_MAXIMUM_TEXT_CHARACTERS);\nexport const SandboxShellCommandSchema = z\n\t.string()\n\t.min(1)\n\t.max(SANDBOX_MAXIMUM_TEXT_CHARACTERS)\n\t// oxlint-disable-next-line no-control-regex -- The wire contract must reject embedded NUL bytes.\n\t.regex(/^[^\\0]+$/u);\nexport const SandboxGuestAbsolutePathSchema = z\n\t.string()\n\t.min(1)\n\t.max(SANDBOX_MAXIMUM_PATH_CHARACTERS)\n\t.startsWith('/')\n\t// oxlint-disable-next-line no-control-regex -- Guest paths cannot contain embedded NUL bytes.\n\t.regex(/^[^\\0]+$/u);\nexport const SandboxGuestPathSchema = z\n\t.string()\n\t.min(1)\n\t.max(SANDBOX_MAXIMUM_PATH_CHARACTERS)\n\t// oxlint-disable-next-line no-control-regex -- Guest paths cannot contain embedded NUL bytes.\n\t.regex(/^[^\\0]+$/u);\nexport const SandboxEnvironmentVariableNameSchema = z\n\t.string()\n\t.min(1)\n\t.max(SANDBOX_MAXIMUM_IDENTIFIER_CHARACTERS)\n\t.regex(/^[A-Za-z_][A-Za-z0-9_]*$/u);\nexport const SandboxEnvironmentVariableValueSchema = z\n\t.string()\n\t.max(SANDBOX_MAXIMUM_TEXT_CHARACTERS)\n\t// oxlint-disable-next-line no-control-regex -- Environment values cannot contain embedded NUL bytes.\n\t.regex(/^[^\\0]*$/u);\n\nconst canonicalBase64Pattern = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/u;\n\nexport const CanonicalBase64Schema = z\n\t.string()\n\t.max(Math.ceil(SANDBOX_MAXIMUM_BINARY_BYTES / 3) * 4)\n\t.regex(canonicalBase64Pattern);\nexport const Sha256DigestSchema = z.string().regex(/^sha256:[0-9a-f]{64}$/u);\n\nexport const SandboxWorkRelativePathSchema = withPortableSuperRefinement({\n\trefinement: (requestedPath, context) => {\n\t\tif (\n\t\t\trequestedPath.length === 0 ||\n\t\t\trequestedPath.includes('\\0') ||\n\t\t\trequestedPath.startsWith('/') ||\n\t\t\trequestedPath.endsWith('/') ||\n\t\t\trequestedPath\n\t\t\t\t.split('/')\n\t\t\t\t.some((segment) => segment === '' || segment === '.' || segment === '..')\n\t\t) {\n\t\t\tcontext.addIssue({\n\t\t\t\tcode: 'custom',\n\t\t\t\tmessage: 'Sandbox path must remain relative to the server-selected work root.',\n\t\t\t});\n\t\t}\n\t},\n\trefinementIdentity: 'sandbox.path.work-relative',\n\tschema: z.string().max(SANDBOX_MAXIMUM_PATH_CHARACTERS),\n});\n\nexport const SandboxHandleKindSchema = z.enum(['environment', 'process', 'stream', 'terminal']);\nexport const SandboxStreamChannelSchema = z.enum(['stdin', 'stdout', 'stderr', 'pty']);\n\nexport const SandboxBoundHandleSchema = z\n\t.object({\n\t\thandleId: BoundedOpaqueIdentifierSchema,\n\t\tkind: SandboxHandleKindSchema,\n\t\towningGeneration: BoundedOpaqueIdentifierSchema,\n\t})\n\t.strict();\n\n// oxlint-disable-next-line explicit-function-return-type -- Preserve the literal handle kind in the returned Zod object schema.\nexport function createSandboxBoundHandleSchema<\n\tTHandleKind extends z.infer<typeof SandboxHandleKindSchema>,\n>(kind: THandleKind) {\n\treturn SandboxBoundHandleSchema.extend({ kind: z.literal(kind) }).strict();\n}\n\nexport const SandboxEnvironmentHandleSchema = createSandboxBoundHandleSchema('environment');\nexport const SandboxProcessHandleSchema = createSandboxBoundHandleSchema('process');\nexport const SandboxStreamHandleSchema = createSandboxBoundHandleSchema('stream')\n\t.extend({ channel: SandboxStreamChannelSchema })\n\t.strict();\nexport const SandboxTerminalHandleSchema = createSandboxBoundHandleSchema('terminal');\n\nexport const SandboxEnvironmentVariableSchema = z\n\t.object({\n\t\tname: SandboxEnvironmentVariableNameSchema,\n\t\tvalue: SandboxEnvironmentVariableValueSchema,\n\t})\n\t.strict()\n\t.readonly();\n\nexport const SandboxDirectShellStartRequestSchema = withPortableSuperRefinement({\n\trefinement: (request, context) => {\n\t\tconst environmentVariableNames =\n\t\t\trequest.environmentVariables?.map((environmentVariable) => environmentVariable.name) ?? [];\n\t\tif (new Set(environmentVariableNames).size !== environmentVariableNames.length) {\n\t\t\tcontext.addIssue({\n\t\t\t\tcode: 'custom',\n\t\t\t\tmessage: 'Direct Sandbox environment contains a duplicate variable name.',\n\t\t\t});\n\t\t}\n\t},\n\trefinementIdentity: 'sandbox.environment-variable.unique-names',\n\tschema: z\n\t\t.object({\n\t\t\tcommand: SandboxShellCommandSchema,\n\t\t\tcwd: SandboxGuestAbsolutePathSchema.optional(),\n\t\t\tenvironment: SandboxEnvironmentHandleSchema,\n\t\t\tenvironmentVariables: z\n\t\t\t\t.array(SandboxEnvironmentVariableSchema)\n\t\t\t\t.max(SANDBOX_MAXIMUM_ENVIRONMENT_VARIABLES)\n\t\t\t\t.readonly()\n\t\t\t\t.optional(),\n\t\t})\n\t\t.strict(),\n});\n\nfunction decodedCanonicalBase64ByteLength(contentBase64: string): number {\n\tif (contentBase64.length === 0) return 0;\n\tconst paddingCharacters = contentBase64.endsWith('==') ? 2 : contentBase64.endsWith('=') ? 1 : 0;\n\treturn (contentBase64.length / 4) * 3 - paddingCharacters;\n}\n\nexport const SandboxBinaryChunkSchema = withPortableSuperRefinement({\n\trefinement: (chunk, context) => {\n\t\tif (chunk.byteLength !== decodedCanonicalBase64ByteLength(chunk.contentBase64)) {\n\t\t\tcontext.addIssue({\n\t\t\t\tcode: 'custom',\n\t\t\t\tmessage: 'Binary chunk byte length does not match decoded canonical base64 content.',\n\t\t\t\tpath: ['byteLength'],\n\t\t\t});\n\t\t}\n\t},\n\trefinementIdentity: 'sandbox.binary-chunk.byte-length',\n\tschema: z\n\t\t.object({\n\t\t\tbyteLength: NonnegativeSafeIntegerSchema.max(SANDBOX_MAXIMUM_BINARY_BYTES),\n\t\t\tcontentBase64: CanonicalBase64Schema,\n\t\t\tencoding: z.literal('base64'),\n\t\t})\n\t\t.strict(),\n});\n\nexport type SandboxBoundHandle = z.infer<typeof SandboxBoundHandleSchema>;\nexport type SandboxDirectShellStartRequest = z.infer<typeof SandboxDirectShellStartRequestSchema>;\nexport type SandboxEnvironmentVariable = z.infer<typeof SandboxEnvironmentVariableSchema>;\nexport type SandboxEnvironmentHandle = z.infer<typeof SandboxEnvironmentHandleSchema>;\nexport type SandboxProcessHandle = z.infer<typeof SandboxProcessHandleSchema>;\nexport type SandboxStreamHandle = z.infer<typeof SandboxStreamHandleSchema>;\nexport type SandboxTerminalHandle = z.infer<typeof SandboxTerminalHandleSchema>;\n","import { z } from 'zod';\n\nimport { BoundedOpaqueIdentifierSchema } from './contract-foundations.js';\n\nexport const SandboxOperationIdentitySchema = z\n\t.object({\n\t\toperationId: BoundedOpaqueIdentifierSchema,\n\t\towningGeneration: BoundedOpaqueIdentifierSchema,\n\t})\n\t.strict();\n\nconst SandboxCompletedSucceededOutcomeSchema = z\n\t.object({\n\t\tcertainty: z.literal('proven'),\n\t\tcompletion: z.literal('succeeded'),\n\t\tkind: z.literal('completed'),\n\t\tretryClass: z.literal('forbidden'),\n\t})\n\t.strict();\n\nconst SandboxCompletedFailedOutcomeSchema = z\n\t.object({\n\t\tcertainty: z.literal('proven'),\n\t\tcompletion: z.literal('failed'),\n\t\tkind: z.literal('completed'),\n\t\tretryClass: z.enum(['forbidden', 'policy-gated']),\n\t})\n\t.strict();\n\nconst SandboxNotDispatchedOutcomeSchema = z\n\t.object({\n\t\tcertainty: z.literal('proven'),\n\t\tkind: z.literal('not-dispatched'),\n\t\tretryClass: z.literal('safe-before-dispatch'),\n\t})\n\t.strict();\n\nexport const SandboxProvenTerminationOutcomeSchema = z.discriminatedUnion('kind', [\n\tz\n\t\t.object({\n\t\t\tcertainty: z.literal('proven-terminated'),\n\t\t\tkind: z.literal('cancelled-proven'),\n\t\t\tretryClass: z.literal('manual-only'),\n\t\t})\n\t\t.strict(),\n\tz\n\t\t.object({\n\t\t\tcertainty: z.literal('proven-terminated'),\n\t\t\tkind: z.literal('timed-out-proven'),\n\t\t\tretryClass: z.literal('manual-only'),\n\t\t})\n\t\t.strict(),\n\tz\n\t\t.object({\n\t\t\tcertainty: z.literal('proven-terminated'),\n\t\t\tkind: z.literal('replaced-proven'),\n\t\t\tpriorSideEffects: z.literal('possible'),\n\t\t\tretryClass: z.literal('manual-only'),\n\t\t})\n\t\t.strict(),\n]);\n\nexport const SandboxAmbiguousOutcomeSchema = z\n\t.object({\n\t\tcertainty: z.literal('side-effects-and-termination-unknown'),\n\t\tkind: z.literal('ambiguous'),\n\t\tretryClass: z.literal('forbidden'),\n\t})\n\t.strict();\n\nexport const SandboxTerminalOutcomeSchema = z.union([\n\tSandboxNotDispatchedOutcomeSchema,\n\tSandboxCompletedSucceededOutcomeSchema,\n\tSandboxCompletedFailedOutcomeSchema,\n\tSandboxProvenTerminationOutcomeSchema,\n\tSandboxAmbiguousOutcomeSchema,\n]);\n\nexport const SandboxOperationControlResultSchema = z.discriminatedUnion('kind', [\n\tz.object({ kind: z.literal('running'), operation: SandboxOperationIdentitySchema }).strict(),\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('cancel-request-accepted'),\n\t\t\toperation: SandboxOperationIdentitySchema,\n\t\t})\n\t\t.strict(),\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('cancellation-pending'),\n\t\t\toperation: SandboxOperationIdentitySchema,\n\t\t})\n\t\t.strict(),\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('termination-proven'),\n\t\t\toperation: SandboxOperationIdentitySchema,\n\t\t\toutcome: SandboxProvenTerminationOutcomeSchema,\n\t\t})\n\t\t.strict(),\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('already-terminal'),\n\t\t\toperation: SandboxOperationIdentitySchema,\n\t\t\toutcome: SandboxTerminalOutcomeSchema,\n\t\t})\n\t\t.strict(),\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('ambiguous'),\n\t\t\toperation: SandboxOperationIdentitySchema,\n\t\t\toutcome: SandboxAmbiguousOutcomeSchema,\n\t\t})\n\t\t.strict(),\n]);\n\nexport const SandboxRetainedResultLookupRequestSchema = z\n\t.object({ operation: SandboxOperationIdentitySchema })\n\t.strict();\n\nexport const SandboxRetainedResultLookupResultSchema = z.discriminatedUnion('kind', [\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('retained'),\n\t\t\toperation: SandboxOperationIdentitySchema,\n\t\t\toutcome: SandboxTerminalOutcomeSchema,\n\t\t})\n\t\t.strict(),\n\tz.object({ kind: z.literal('pending'), operation: SandboxOperationIdentitySchema }).strict(),\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('unavailable'),\n\t\t\treason: z.literal('not-retained-or-not-authorized'),\n\t\t})\n\t\t.strict(),\n]);\n\nexport type SandboxOperationIdentity = z.infer<typeof SandboxOperationIdentitySchema>;\nexport type SandboxOperationControlResult = z.infer<typeof SandboxOperationControlResultSchema>;\nexport type SandboxRetainedResultLookupRequest = z.infer<\n\ttypeof SandboxRetainedResultLookupRequestSchema\n>;\nexport type SandboxRetainedResultLookupResult = z.infer<\n\ttypeof SandboxRetainedResultLookupResultSchema\n>;\nexport type SandboxTerminalOutcome = z.infer<typeof SandboxTerminalOutcomeSchema>;\n","import { z } from 'zod';\n\nimport {\n\tSandboxEnvironmentHandleSchema,\n\tSandboxWorkRelativePathSchema,\n} from './contract-foundations.js';\n\n// Omission denotes the server-selected /work root; a present value is a strict child path.\nconst SandboxEnvironmentLogicalCwdSchema = SandboxWorkRelativePathSchema.optional();\n\nexport const SandboxEnvironmentOpenRequestSchema = z\n\t.object({ logicalCwd: SandboxEnvironmentLogicalCwdSchema })\n\t.strict();\n\nexport const SandboxEnvironmentOpenResultSchema = z\n\t.object({\n\t\tenvironment: SandboxEnvironmentHandleSchema,\n\t\tkind: z.literal('opened'),\n\t\tlogicalCwd: SandboxEnvironmentLogicalCwdSchema,\n\t})\n\t.strict();\n\nexport const SandboxEnvironmentHandleRequestSchema = z\n\t.object({ environment: SandboxEnvironmentHandleSchema })\n\t.strict();\n\nexport const SandboxEnvironmentCloseResultSchema = z.discriminatedUnion('kind', [\n\tz.object({ environment: SandboxEnvironmentHandleSchema, kind: z.literal('closed') }).strict(),\n\tz\n\t\t.object({ environment: SandboxEnvironmentHandleSchema, kind: z.literal('already-closed') })\n\t\t.strict(),\n]);\n\nexport const SandboxEnvironmentStatusResultSchema = z.discriminatedUnion('kind', [\n\tz\n\t\t.object({\n\t\t\tenvironment: SandboxEnvironmentHandleSchema,\n\t\t\tkind: z.literal('active'),\n\t\t\tlogicalCwd: SandboxEnvironmentLogicalCwdSchema,\n\t\t})\n\t\t.strict(),\n\tz.object({ environment: SandboxEnvironmentHandleSchema, kind: z.literal('closed') }).strict(),\n\tz.object({ environment: SandboxEnvironmentHandleSchema, kind: z.literal('replaced') }).strict(),\n]);\n\nexport type SandboxEnvironmentOpenRequest = z.infer<typeof SandboxEnvironmentOpenRequestSchema>;\nexport type SandboxEnvironmentOpenResult = z.infer<typeof SandboxEnvironmentOpenResultSchema>;\nexport type SandboxEnvironmentCloseRequest = z.infer<typeof SandboxEnvironmentHandleRequestSchema>;\nexport type SandboxEnvironmentCloseResult = z.infer<typeof SandboxEnvironmentCloseResultSchema>;\nexport type SandboxEnvironmentStatusRequest = z.infer<typeof SandboxEnvironmentHandleRequestSchema>;\nexport type SandboxEnvironmentStatusResult = z.infer<typeof SandboxEnvironmentStatusResultSchema>;\n","import { z } from 'zod';\n\nimport {\n\tBoundedOperationMillisecondsSchema,\n\tNonnegativeSafeIntegerSchema,\n\tPositiveSafeIntegerSchema,\n\tSandboxDirectShellStartRequestSchema,\n\tSandboxStreamHandleSchema,\n\tSandboxTerminalHandleSchema,\n} from './contract-foundations.js';\nimport {\n\tSandboxOperationControlResultSchema,\n\tSandboxOperationIdentitySchema,\n\tSandboxTerminalOutcomeSchema,\n} from './operation-contracts.js';\n\nexport const SandboxExecStartModeSchema = z.discriminatedUnion('kind', [\n\tz.object({ kind: z.literal('direct') }).strict(),\n\tz\n\t\t.object({\n\t\t\tattachTimeoutMs: BoundedOperationMillisecondsSchema,\n\t\t\tkind: z.literal('attachment-reserved'),\n\t\t\tterminal: z.boolean(),\n\t\t})\n\t\t.strict(),\n]);\n\nexport const SandboxExecStartRequestSchema = SandboxDirectShellStartRequestSchema.extend({\n\tmode: SandboxExecStartModeSchema,\n\ttimeoutMs: BoundedOperationMillisecondsSchema,\n}).strict();\n\nconst SandboxExecDirectStartedResultSchema = z\n\t.object({\n\t\tkind: z.literal('started'),\n\t\tmode: z.literal('direct'),\n\t\toperation: SandboxOperationIdentitySchema,\n\t\tstreams: z.array(SandboxStreamHandleSchema).max(3),\n\t})\n\t.strict();\n\nconst SandboxExecAttachmentReservedResultSchema = z\n\t.object({\n\t\tkind: z.literal('started'),\n\t\tmode: z.literal('attachment-reserved'),\n\t\toperation: SandboxOperationIdentitySchema,\n\t\tterminal: SandboxTerminalHandleSchema,\n\t})\n\t.strict();\n\nexport const SandboxExecStartResultSchema = z.union([\n\tSandboxExecDirectStartedResultSchema,\n\tSandboxExecAttachmentReservedResultSchema,\n]);\n\nexport const SandboxExecWaitRequestSchema = z\n\t.object({\n\t\toperation: SandboxOperationIdentitySchema,\n\t\ttimeoutMs: BoundedOperationMillisecondsSchema,\n\t})\n\t.strict();\n\nexport const SandboxExecWaitResultSchema = z\n\t.object({\n\t\texitCode: NonnegativeSafeIntegerSchema.max(255).optional(),\n\t\toperation: SandboxOperationIdentitySchema,\n\t\toutcome: SandboxTerminalOutcomeSchema,\n\t})\n\t.strict();\n\nexport const SandboxExecCancelRequestSchema = z\n\t.object({ operation: SandboxOperationIdentitySchema })\n\t.strict();\n\nexport const SandboxExecCancelResultSchema = SandboxOperationControlResultSchema;\n\nexport const SandboxTerminalSizeSchema = z\n\t.object({\n\t\tcolumns: PositiveSafeIntegerSchema.max(1_000),\n\t\trows: PositiveSafeIntegerSchema.max(1_000),\n\t})\n\t.strict();\n\nexport type SandboxExecStartRequest = z.infer<typeof SandboxExecStartRequestSchema>;\nexport type SandboxExecStartResult = z.infer<typeof SandboxExecStartResultSchema>;\nexport type SandboxExecWaitRequest = z.infer<typeof SandboxExecWaitRequestSchema>;\nexport type SandboxExecWaitResult = z.infer<typeof SandboxExecWaitResultSchema>;\nexport type SandboxExecCancelRequest = z.infer<typeof SandboxExecCancelRequestSchema>;\nexport type SandboxExecCancelResult = z.infer<typeof SandboxExecCancelResultSchema>;\n","import { z } from 'zod';\n\nimport {\n\tBoundedByteCountSchema,\n\tBoundedOpaqueIdentifierSchema,\n\tNonnegativeSafeIntegerSchema,\n\tPositiveSafeIntegerSchema,\n\tSandboxBinaryChunkSchema,\n\tSandboxEnvironmentHandleSchema,\n\tSandboxGuestPathSchema,\n\tSha256DigestSchema,\n} from './contract-foundations.js';\n\nconst SandboxFilesystemPathRequestSchema = z\n\t.object({\n\t\tenvironment: SandboxEnvironmentHandleSchema,\n\t\tpath: SandboxGuestPathSchema,\n\t})\n\t.strict();\n\nexport const SandboxFsStatRequestSchema = SandboxFilesystemPathRequestSchema;\n\nexport const SandboxFilesystemEntrySchema = z\n\t.object({\n\t\tbyteLength: NonnegativeSafeIntegerSchema.optional(),\n\t\tkind: z.enum(['file', 'directory', 'symlink']),\n\t\tpath: SandboxGuestPathSchema,\n\t})\n\t.strict();\n\nexport const SandboxFsStatResultSchema = z.discriminatedUnion('kind', [\n\tz.object({ entry: SandboxFilesystemEntrySchema, kind: z.literal('stat') }).strict(),\n\tz.object({ kind: z.literal('not-found'), path: SandboxGuestPathSchema }).strict(),\n]);\n\nexport const SandboxFsListRequestSchema = SandboxFilesystemPathRequestSchema.extend({\n\tcursor: BoundedOpaqueIdentifierSchema.optional(),\n\tmaxDepth: PositiveSafeIntegerSchema.max(32),\n\tmaxEntries: PositiveSafeIntegerSchema.max(1_000),\n}).strict();\n\nexport const SandboxFsListResultSchema = z\n\t.object({\n\t\tentries: z.array(SandboxFilesystemEntrySchema).max(1_000),\n\t\tkind: z.literal('listed'),\n\t\tnextCursor: BoundedOpaqueIdentifierSchema.optional(),\n\t})\n\t.strict();\n\nexport const SandboxFsReadRequestSchema = SandboxFilesystemPathRequestSchema.extend({\n\tmaxBytes: BoundedByteCountSchema,\n\toffsetBytes: NonnegativeSafeIntegerSchema,\n}).strict();\n\nexport const SandboxFsReadResultSchema = z\n\t.object({\n\t\tchunk: SandboxBinaryChunkSchema,\n\t\teof: z.boolean(),\n\t\tkind: z.literal('read'),\n\t\tnextOffsetBytes: NonnegativeSafeIntegerSchema,\n\t\tpath: SandboxGuestPathSchema,\n\t})\n\t.strict();\n\nexport const SandboxFsWriteRequestSchema = SandboxFilesystemPathRequestSchema.extend({\n\tatomic: z.boolean(),\n\tcontent: SandboxBinaryChunkSchema,\n\toffsetBytes: NonnegativeSafeIntegerSchema.optional(),\n}).strict();\n\nexport const SandboxFsWriteResultSchema = z\n\t.object({\n\t\tbytesWritten: NonnegativeSafeIntegerSchema,\n\t\tcontentDigest: Sha256DigestSchema,\n\t\tkind: z.literal('written'),\n\t\tpath: SandboxGuestPathSchema,\n\t})\n\t.strict();\n\nexport const SandboxFsMkdirRequestSchema = SandboxFilesystemPathRequestSchema.extend({\n\trecursive: z.boolean(),\n}).strict();\n\nexport const SandboxFsMkdirResultSchema = z\n\t.object({\n\t\tcreated: z.boolean(),\n\t\tkind: z.literal('directory-ready'),\n\t\tpath: SandboxGuestPathSchema,\n\t})\n\t.strict();\n\nexport const SandboxFsRenameRequestSchema = z\n\t.object({\n\t\tdestinationPath: SandboxGuestPathSchema,\n\t\tenvironment: SandboxEnvironmentHandleSchema,\n\t\treplace: z.boolean(),\n\t\tsourcePath: SandboxGuestPathSchema,\n\t})\n\t.strict();\n\nexport const SandboxFsRenameResultSchema = z\n\t.object({\n\t\tdestinationPath: SandboxGuestPathSchema,\n\t\tkind: z.literal('renamed'),\n\t\tsourcePath: SandboxGuestPathSchema,\n\t})\n\t.strict();\n\nexport const SandboxFsRemoveRequestSchema = SandboxFilesystemPathRequestSchema.extend({\n\trecursive: z.boolean(),\n}).strict();\n\nexport const SandboxFsRemoveResultSchema = z\n\t.object({ kind: z.literal('removed'), path: SandboxGuestPathSchema, removed: z.boolean() })\n\t.strict();\n\nexport type SandboxFsStatRequest = z.infer<typeof SandboxFsStatRequestSchema>;\nexport type SandboxFsStatResult = z.infer<typeof SandboxFsStatResultSchema>;\nexport type SandboxFsListRequest = z.infer<typeof SandboxFsListRequestSchema>;\nexport type SandboxFsListResult = z.infer<typeof SandboxFsListResultSchema>;\nexport type SandboxFsReadRequest = z.infer<typeof SandboxFsReadRequestSchema>;\nexport type SandboxFsReadResult = z.infer<typeof SandboxFsReadResultSchema>;\nexport type SandboxFsWriteRequest = z.infer<typeof SandboxFsWriteRequestSchema>;\nexport type SandboxFsWriteResult = z.infer<typeof SandboxFsWriteResultSchema>;\nexport type SandboxFsMkdirRequest = z.infer<typeof SandboxFsMkdirRequestSchema>;\nexport type SandboxFsMkdirResult = z.infer<typeof SandboxFsMkdirResultSchema>;\nexport type SandboxFsRenameRequest = z.infer<typeof SandboxFsRenameRequestSchema>;\nexport type SandboxFsRenameResult = z.infer<typeof SandboxFsRenameResultSchema>;\nexport type SandboxFsRemoveRequest = z.infer<typeof SandboxFsRemoveRequestSchema>;\nexport type SandboxFsRemoveResult = z.infer<typeof SandboxFsRemoveResultSchema>;\n","import { z } from 'zod';\n\nimport {\n\tBoundedByteCountSchema,\n\tBoundedOpaqueIdentifierSchema,\n\tBoundedOperationMillisecondsSchema,\n\tNonnegativeSafeIntegerSchema,\n\tSandboxBinaryChunkSchema,\n\tSandboxDirectShellStartRequestSchema,\n\tSandboxProcessHandleSchema,\n\tSandboxStreamChannelSchema,\n\tSandboxStreamHandleSchema,\n} from './contract-foundations.js';\nimport {\n\tSandboxOperationControlResultSchema,\n\tSandboxOperationIdentitySchema,\n\tSandboxTerminalOutcomeSchema,\n} from './operation-contracts.js';\n\nexport const SandboxProcessStartRequestSchema = SandboxDirectShellStartRequestSchema.extend({\n\tmaxRuntimeMs: BoundedOperationMillisecondsSchema,\n\tretainOutputBytes: BoundedByteCountSchema,\n}).strict();\n\nexport const SandboxProcessStartResultSchema = z\n\t.object({\n\t\tkind: z.literal('started'),\n\t\toperation: SandboxOperationIdentitySchema,\n\t\tprocess: SandboxProcessHandleSchema,\n\t\tstreams: z.array(SandboxStreamHandleSchema).max(3),\n\t})\n\t.strict();\n\nexport const SandboxProcessHandleRequestSchema = z\n\t.object({ process: SandboxProcessHandleSchema })\n\t.strict();\n\nexport const SandboxProcessStatusResultSchema = z.discriminatedUnion('kind', [\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('running'),\n\t\t\toperation: SandboxOperationIdentitySchema,\n\t\t\tprocess: SandboxProcessHandleSchema,\n\t\t})\n\t\t.strict(),\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('terminal'),\n\t\t\toperation: SandboxOperationIdentitySchema,\n\t\t\toutcome: SandboxTerminalOutcomeSchema,\n\t\t\tprocess: SandboxProcessHandleSchema,\n\t\t})\n\t\t.strict(),\n]);\n\nexport const SandboxProcessWaitRequestSchema = SandboxProcessHandleRequestSchema.extend({\n\ttimeoutMs: BoundedOperationMillisecondsSchema,\n}).strict();\n\nexport const SandboxProcessWaitResultSchema = SandboxProcessStatusResultSchema;\n\nexport const SandboxProcessLogsRequestSchema = SandboxProcessHandleRequestSchema.extend({\n\tchannels: z.array(SandboxStreamChannelSchema).min(1).max(4),\n\tcursor: BoundedOpaqueIdentifierSchema.optional(),\n\tmaxBytes: BoundedByteCountSchema,\n}).strict();\n\nexport const SandboxProcessLogChunkSchema = z\n\t.object({\n\t\tchannel: SandboxStreamChannelSchema,\n\t\tchunk: SandboxBinaryChunkSchema,\n\t\tsequence: NonnegativeSafeIntegerSchema,\n\t})\n\t.strict();\n\nexport const SandboxProcessLogsResultSchema = z\n\t.object({\n\t\tchunks: z.array(SandboxProcessLogChunkSchema).max(1_000),\n\t\tkind: z.literal('logs'),\n\t\tnextCursor: BoundedOpaqueIdentifierSchema.optional(),\n\t\tprocess: SandboxProcessHandleSchema,\n\t\ttruncated: z.boolean(),\n\t})\n\t.strict();\n\nexport const SandboxProcessCancelRequestSchema = SandboxProcessHandleRequestSchema;\nexport const SandboxProcessCancelResultSchema = SandboxOperationControlResultSchema;\n\nexport type SandboxProcessStartRequest = z.infer<typeof SandboxProcessStartRequestSchema>;\nexport type SandboxProcessStartResult = z.infer<typeof SandboxProcessStartResultSchema>;\nexport type SandboxProcessStatusRequest = z.infer<typeof SandboxProcessHandleRequestSchema>;\nexport type SandboxProcessStatusResult = z.infer<typeof SandboxProcessStatusResultSchema>;\nexport type SandboxProcessWaitRequest = z.infer<typeof SandboxProcessWaitRequestSchema>;\nexport type SandboxProcessWaitResult = z.infer<typeof SandboxProcessWaitResultSchema>;\nexport type SandboxProcessLogsRequest = z.infer<typeof SandboxProcessLogsRequestSchema>;\nexport type SandboxProcessLogsResult = z.infer<typeof SandboxProcessLogsResultSchema>;\nexport type SandboxProcessCancelRequest = z.infer<typeof SandboxProcessCancelRequestSchema>;\nexport type SandboxProcessCancelResult = z.infer<typeof SandboxProcessCancelResultSchema>;\n","import { z } from 'zod';\n\nimport {\n\tBoundedByteCountSchema,\n\tBoundedOpaqueIdentifierSchema,\n\tNonnegativeSafeIntegerSchema,\n\tSandboxBinaryChunkSchema,\n\tSandboxStreamHandleSchema,\n\tSha256DigestSchema,\n} from './contract-foundations.js';\n\nexport const SandboxStreamReadRequestSchema = z\n\t.object({\n\t\tcursor: BoundedOpaqueIdentifierSchema.optional(),\n\t\tmaxBytes: BoundedByteCountSchema,\n\t\tstream: SandboxStreamHandleSchema,\n\t})\n\t.strict();\n\nexport const SandboxStreamReadResultSchema = z\n\t.object({\n\t\tchunk: SandboxBinaryChunkSchema,\n\t\teof: z.boolean(),\n\t\tkind: z.literal('read'),\n\t\tnextCursor: BoundedOpaqueIdentifierSchema.optional(),\n\t\tsequence: NonnegativeSafeIntegerSchema,\n\t\tstream: SandboxStreamHandleSchema,\n\t})\n\t.strict();\n\nexport const SandboxStreamWriteRequestSchema = z\n\t.object({\n\t\tcontent: SandboxBinaryChunkSchema,\n\t\tcontentDigest: Sha256DigestSchema,\n\t\tsequence: NonnegativeSafeIntegerSchema,\n\t\tstream: SandboxStreamHandleSchema,\n\t})\n\t.strict();\n\nexport const SandboxStreamWriteResultSchema = z.discriminatedUnion('kind', [\n\tz\n\t\t.object({\n\t\t\tbytesWritten: NonnegativeSafeIntegerSchema,\n\t\t\tkind: z.literal('written'),\n\t\t\tsequence: NonnegativeSafeIntegerSchema,\n\t\t\tstream: SandboxStreamHandleSchema,\n\t\t})\n\t\t.strict(),\n\tz\n\t\t.object({\n\t\t\tkind: z.literal('already-written'),\n\t\t\tsequence: NonnegativeSafeIntegerSchema,\n\t\t\tstream: SandboxStreamHandleSchema,\n\t\t})\n\t\t.strict(),\n]);\n\nexport const SandboxStreamCloseRequestSchema = z\n\t.object({ stream: SandboxStreamHandleSchema })\n\t.strict();\n\nexport const SandboxStreamCloseResultSchema = z.discriminatedUnion('kind', [\n\tz.object({ kind: z.literal('closed'), stream: SandboxStreamHandleSchema }).strict(),\n\tz.object({ kind: z.literal('already-closed'), stream: SandboxStreamHandleSchema }).strict(),\n]);\n\nexport type SandboxStreamReadRequest = z.infer<typeof SandboxStreamReadRequestSchema>;\nexport type SandboxStreamReadResult = z.infer<typeof SandboxStreamReadResultSchema>;\nexport type SandboxStreamWriteRequest = z.infer<typeof SandboxStreamWriteRequestSchema>;\nexport type SandboxStreamWriteResult = z.infer<typeof SandboxStreamWriteResultSchema>;\nexport type SandboxStreamCloseRequest = z.infer<typeof SandboxStreamCloseRequestSchema>;\nexport type SandboxStreamCloseResult = z.infer<typeof SandboxStreamCloseResultSchema>;\n","import { z } from 'zod';\n\nimport { SandboxStreamHandleSchema, SandboxTerminalHandleSchema } from './contract-foundations.js';\nimport { SandboxOperationIdentitySchema } from './operation-contracts.js';\nimport { SandboxTerminalSizeSchema } from './sandbox-execution-contracts.js';\n\nexport const SandboxTerminalAttachRequestSchema = z\n\t.object({\n\t\toperation: SandboxOperationIdentitySchema,\n\t\tsize: SandboxTerminalSizeSchema,\n\t})\n\t.strict();\n\nexport const SandboxTerminalAttachResultSchema = z\n\t.object({\n\t\tinput: SandboxStreamHandleSchema,\n\t\tkind: z.literal('attached'),\n\t\toutput: SandboxStreamHandleSchema,\n\t\tterminal: SandboxTerminalHandleSchema,\n\t})\n\t.strict();\n\nexport const SandboxTerminalResizeRequestSchema = z\n\t.object({\n\t\tsize: SandboxTerminalSizeSchema,\n\t\tterminal: SandboxTerminalHandleSchema,\n\t})\n\t.strict();\n\nexport const SandboxTerminalResizeResultSchema = z\n\t.object({\n\t\tkind: z.literal('resized'),\n\t\tsize: SandboxTerminalSizeSchema,\n\t\tterminal: SandboxTerminalHandleSchema,\n\t})\n\t.strict();\n\nexport type SandboxTerminalAttachRequest = z.infer<typeof SandboxTerminalAttachRequestSchema>;\nexport type SandboxTerminalAttachResult = z.infer<typeof SandboxTerminalAttachResultSchema>;\nexport type SandboxTerminalResizeRequest = z.infer<typeof SandboxTerminalResizeRequestSchema>;\nexport type SandboxTerminalResizeResult = z.infer<typeof SandboxTerminalResizeResultSchema>;\n","import { z } from 'zod';\n\nimport { withPortableSuperRefinement } from '../portable-contracts/portable-refinement-authoring.js';\nimport {\n\tBoundedOpaqueIdentifierSchema,\n\tPositiveSafeIntegerSchema,\n} from './contract-foundations.js';\n\nexport const GatewayRuntimeFrameworkKindSchema = z.enum(['openclaw', 'hermes']);\nexport const GatewayRuntimeManagedPluginClientKindSchema = z.enum([\n\t'openclaw-managed-plugin',\n\t'hermes-managed-plugin',\n]);\nexport const GatewayRuntimeFrameworkIdentitySchema = z\n\t.discriminatedUnion('kind', [\n\t\tz\n\t\t\t.object({\n\t\t\t\tagentId: BoundedOpaqueIdentifierSchema,\n\t\t\t\tkind: z.literal('openclaw'),\n\t\t\t})\n\t\t\t.strict(),\n\t\tz\n\t\t\t.object({\n\t\t\t\tkind: z.literal('hermes'),\n\t\t\t\tprofileName: BoundedOpaqueIdentifierSchema,\n\t\t\t})\n\t\t\t.strict(),\n\t])\n\t.readonly();\nexport const GatewayRuntimeProjectionCohortDigestSchema = z\n\t.string()\n\t.regex(/^projection-cohort:[a-f0-9]{64}$/u);\n\nexport const ManagedAgentProjectionSchema = z\n\t.object({\n\t\tagentId: BoundedOpaqueIdentifierSchema,\n\t\tframeworkIdentity: GatewayRuntimeFrameworkIdentitySchema,\n\t\tprofileAssignmentRevision: BoundedOpaqueIdentifierSchema,\n\t\ttoolPortalProfileId: BoundedOpaqueIdentifierSchema,\n\t})\n\t.strict()\n\t.readonly();\n\nexport const GatewayRuntimeAttachmentMetadataSchema = withPortableSuperRefinement({\n\trefinement: (metadata, context) => {\n\t\tif (new Set(metadata.configuredAgentIds).size !== metadata.configuredAgentIds.length) {\n\t\t\tcontext.addIssue({\n\t\t\t\tcode: 'custom',\n\t\t\t\tmessage: 'Gateway attachment metadata contains a duplicate configured agent id.',\n\t\t\t\tpath: ['configuredAgentIds'],\n\t\t\t});\n\t\t}\n\t},\n\trefinementIdentity: 'gateway.attachment.unique-agent-ids',\n\tschema: z\n\t\t.object({\n\t\t\tattachmentGeneration: PositiveSafeIntegerSchema,\n\t\t\tclientKind: GatewayRuntimeManagedPluginClientKindSchema,\n\t\t\tconfiguredAgentIds: z.array(BoundedOpaqueIdentifierSchema).min(1).max(128),\n\t\t\tframeworkEpoch: BoundedOpaqueIdentifierSchema,\n\t\t\tgatewayEpoch: BoundedOpaqueIdentifierSchema,\n\t\t\tprotocolVersion: PositiveSafeIntegerSchema,\n\t\t\tprojectionCohortDigest: GatewayRuntimeProjectionCohortDigestSchema,\n\t\t\truntimeEpoch: BoundedOpaqueIdentifierSchema,\n\t\t\tschemaVersion: PositiveSafeIntegerSchema,\n\t\t})\n\t\t.strict(),\n});\n\nexport const GatewayStablePrincipalDigestSchema = z.string().regex(/^[a-f0-9]{64}$/u);\n\nexport const GatewayRuntimeTrustedInvocationPrincipalSchema = z\n\t.object({\n\t\tagentId: BoundedOpaqueIdentifierSchema,\n\t\tframeworkIdentity: GatewayRuntimeFrameworkIdentitySchema,\n\t\tprofileAssignmentRevision: BoundedOpaqueIdentifierSchema,\n\t\ttoolPortalProfileId: BoundedOpaqueIdentifierSchema,\n\t})\n\t.strict();\n\nexport const GatewayRuntimeTrustedInvocationRequesterSchema = z\n\t.object({\n\t\tauthenticatedSubjectId: BoundedOpaqueIdentifierSchema,\n\t})\n\t.strict();\n\nexport const GatewayRuntimeTrustedInvocationCorrelationSchema = z\n\t.object({\n\t\trunId: BoundedOpaqueIdentifierSchema.optional(),\n\t\tsessionId: BoundedOpaqueIdentifierSchema.optional(),\n\t\tsessionKey: BoundedOpaqueIdentifierSchema.optional(),\n\t\ttoolCallId: BoundedOpaqueIdentifierSchema.optional(),\n\t})\n\t.strict();\n\nexport const GatewayRuntimeTrustedInvocationContextSchema = z\n\t.object({\n\t\tcorrelation: GatewayRuntimeTrustedInvocationCorrelationSchema.optional(),\n\t\tprincipal: GatewayRuntimeTrustedInvocationPrincipalSchema,\n\t\trequester: GatewayRuntimeTrustedInvocationRequesterSchema.optional(),\n\t})\n\t.strict();\n\nexport type GatewayRuntimeAttachmentMetadata = z.infer<\n\ttypeof GatewayRuntimeAttachmentMetadataSchema\n>;\nexport type GatewayRuntimeFrameworkIdentity = z.infer<typeof GatewayRuntimeFrameworkIdentitySchema>;\nexport type GatewayRuntimeFrameworkKind = z.infer<typeof GatewayRuntimeFrameworkKindSchema>;\nexport type GatewayRuntimeManagedPluginClientKind = z.infer<\n\ttypeof GatewayRuntimeManagedPluginClientKindSchema\n>;\nexport type ManagedAgentProjection = z.infer<typeof ManagedAgentProjectionSchema>;\nexport type GatewayRuntimeTrustedInvocationCorrelation = z.infer<\n\ttypeof GatewayRuntimeTrustedInvocationCorrelationSchema\n>;\nexport type GatewayRuntimeTrustedInvocationContext = z.infer<\n\ttypeof GatewayRuntimeTrustedInvocationContextSchema\n>;\nexport type GatewayStablePrincipalDigest = z.infer<typeof GatewayStablePrincipalDigestSchema>;\nexport type GatewayRuntimeTrustedInvocationPrincipal = z.infer<\n\ttypeof GatewayRuntimeTrustedInvocationPrincipalSchema\n>;\nexport type GatewayRuntimeTrustedInvocationRequester = z.infer<\n\ttypeof GatewayRuntimeTrustedInvocationRequesterSchema\n>;\n","import type { z } from 'zod';\n\nimport {\n\tSandboxRetainedResultLookupRequestSchema,\n\tSandboxRetainedResultLookupResultSchema,\n} from './operation-contracts.js';\nimport {\n\tSandboxEnvironmentCloseResultSchema,\n\tSandboxEnvironmentHandleRequestSchema,\n\tSandboxEnvironmentOpenRequestSchema,\n\tSandboxEnvironmentOpenResultSchema,\n\tSandboxEnvironmentStatusResultSchema,\n} from './sandbox-environment-contracts.js';\nimport {\n\tSandboxExecCancelRequestSchema,\n\tSandboxExecCancelResultSchema,\n\tSandboxExecStartRequestSchema,\n\tSandboxExecStartResultSchema,\n\tSandboxExecWaitRequestSchema,\n\tSandboxExecWaitResultSchema,\n} from './sandbox-execution-contracts.js';\nimport {\n\tSandboxFsListRequestSchema,\n\tSandboxFsListResultSchema,\n\tSandboxFsMkdirRequestSchema,\n\tSandboxFsMkdirResultSchema,\n\tSandboxFsReadRequestSchema,\n\tSandboxFsReadResultSchema,\n\tSandboxFsRemoveRequestSchema,\n\tSandboxFsRemoveResultSchema,\n\tSandboxFsRenameRequestSchema,\n\tSandboxFsRenameResultSchema,\n\tSandboxFsStatRequestSchema,\n\tSandboxFsStatResultSchema,\n\tSandboxFsWriteRequestSchema,\n\tSandboxFsWriteResultSchema,\n} from './sandbox-filesystem-contracts.js';\nimport {\n\tSandboxProcessCancelRequestSchema,\n\tSandboxProcessCancelResultSchema,\n\tSandboxProcessHandleRequestSchema,\n\tSandboxProcessLogsRequestSchema,\n\tSandboxProcessLogsResultSchema,\n\tSandboxProcessStartRequestSchema,\n\tSandboxProcessStartResultSchema,\n\tSandboxProcessStatusResultSchema,\n\tSandboxProcessWaitRequestSchema,\n\tSandboxProcessWaitResultSchema,\n} from './sandbox-process-contracts.js';\nimport {\n\tSandboxStreamCloseRequestSchema,\n\tSandboxStreamCloseResultSchema,\n\tSandboxStreamReadRequestSchema,\n\tSandboxStreamReadResultSchema,\n\tSandboxStreamWriteRequestSchema,\n\tSandboxStreamWriteResultSchema,\n} from './sandbox-stream-contracts.js';\nimport {\n\tSandboxTerminalAttachRequestSchema,\n\tSandboxTerminalAttachResultSchema,\n\tSandboxTerminalResizeRequestSchema,\n\tSandboxTerminalResizeResultSchema,\n} from './sandbox-terminal-contracts.js';\n\ninterface SandboxMethodContract {\n\treadonly request: z.ZodType;\n\treadonly result: z.ZodType;\n}\n\nexport const SANDBOX_METHOD_CONTRACTS = {\n\t'sandbox.environment.close': {\n\t\trequest: SandboxEnvironmentHandleRequestSchema,\n\t\tresult: SandboxEnvironmentCloseResultSchema,\n\t},\n\t'sandbox.environment.open': {\n\t\trequest: SandboxEnvironmentOpenRequestSchema,\n\t\tresult: SandboxEnvironmentOpenResultSchema,\n\t},\n\t'sandbox.environment.status': {\n\t\trequest: SandboxEnvironmentHandleRequestSchema,\n\t\tresult: SandboxEnvironmentStatusResultSchema,\n\t},\n\t'sandbox.exec.cancel': {\n\t\trequest: SandboxExecCancelRequestSchema,\n\t\tresult: SandboxExecCancelResultSchema,\n\t},\n\t'sandbox.exec.start': {\n\t\trequest: SandboxExecStartRequestSchema,\n\t\tresult: SandboxExecStartResultSchema,\n\t},\n\t'sandbox.exec.wait': {\n\t\trequest: SandboxExecWaitRequestSchema,\n\t\tresult: SandboxExecWaitResultSchema,\n\t},\n\t'sandbox.retained-result.lookup': {\n\t\trequest: SandboxRetainedResultLookupRequestSchema,\n\t\tresult: SandboxRetainedResultLookupResultSchema,\n\t},\n\t'sandbox.fs.list': { request: SandboxFsListRequestSchema, result: SandboxFsListResultSchema },\n\t'sandbox.fs.mkdir': {\n\t\trequest: SandboxFsMkdirRequestSchema,\n\t\tresult: SandboxFsMkdirResultSchema,\n\t},\n\t'sandbox.fs.read': { request: SandboxFsReadRequestSchema, result: SandboxFsReadResultSchema },\n\t'sandbox.fs.remove': {\n\t\trequest: SandboxFsRemoveRequestSchema,\n\t\tresult: SandboxFsRemoveResultSchema,\n\t},\n\t'sandbox.fs.rename': {\n\t\trequest: SandboxFsRenameRequestSchema,\n\t\tresult: SandboxFsRenameResultSchema,\n\t},\n\t'sandbox.fs.stat': { request: SandboxFsStatRequestSchema, result: SandboxFsStatResultSchema },\n\t'sandbox.fs.write': {\n\t\trequest: SandboxFsWriteRequestSchema,\n\t\tresult: SandboxFsWriteResultSchema,\n\t},\n\t'sandbox.process.cancel': {\n\t\trequest: SandboxProcessCancelRequestSchema,\n\t\tresult: SandboxProcessCancelResultSchema,\n\t},\n\t'sandbox.process.logs': {\n\t\trequest: SandboxProcessLogsRequestSchema,\n\t\tresult: SandboxProcessLogsResultSchema,\n\t},\n\t'sandbox.process.start': {\n\t\trequest: SandboxProcessStartRequestSchema,\n\t\tresult: SandboxProcessStartResultSchema,\n\t},\n\t'sandbox.process.status': {\n\t\trequest: SandboxProcessHandleRequestSchema,\n\t\tresult: SandboxProcessStatusResultSchema,\n\t},\n\t'sandbox.process.wait': {\n\t\trequest: SandboxProcessWaitRequestSchema,\n\t\tresult: SandboxProcessWaitResultSchema,\n\t},\n\t'sandbox.stream.close': {\n\t\trequest: SandboxStreamCloseRequestSchema,\n\t\tresult: SandboxStreamCloseResultSchema,\n\t},\n\t'sandbox.stream.read': {\n\t\trequest: SandboxStreamReadRequestSchema,\n\t\tresult: SandboxStreamReadResultSchema,\n\t},\n\t'sandbox.stream.write': {\n\t\trequest: SandboxStreamWriteRequestSchema,\n\t\tresult: SandboxStreamWriteResultSchema,\n\t},\n\t'sandbox.terminal.attach': {\n\t\trequest: SandboxTerminalAttachRequestSchema,\n\t\tresult: SandboxTerminalAttachResultSchema,\n\t},\n\t'sandbox.terminal.resize': {\n\t\trequest: SandboxTerminalResizeRequestSchema,\n\t\tresult: SandboxTerminalResizeResultSchema,\n\t},\n} as const satisfies Readonly<Record<string, SandboxMethodContract>>;\n\nexport * from './contract-foundations.js';\nexport * from './operation-contracts.js';\nexport * from './sandbox-environment-contracts.js';\nexport * from './sandbox-execution-contracts.js';\nexport * from './sandbox-filesystem-contracts.js';\nexport * from './sandbox-process-contracts.js';\nexport * from './sandbox-stream-contracts.js';\nexport * from './sandbox-terminal-contracts.js';\nexport * from './trusted-context-contracts.js';\n"],"mappings":";;;AAIA,MAAa,gCAAgC,OAAO;AACpD,MAAa,wCAAwC;AACrD,MAAa,wCAAwC;AACrD,MAAa,kCAAkC;AAC/C,MAAa,kCAAkC,KAAK;AACpD,MAAa,+BAA+B,KAAK,OAAQ;AACzD,MAAa,6BAA6B;AAC1C,MAAa,yCAAyC,OAAU;AAEhE,MAAa,gCAAgC,EAC3C,QAAQ,CACR,IAAI,EAAE,CACN,IAAA,IAA0C;AAC5C,MAAa,4BAA4B,EACvC,QAAQ,CACR,KAAK,CACL,UAAU,CACV,IAAI,8BAA8B;AACpC,MAAa,+BAA+B,EAC1C,QAAQ,CACR,KAAK,CACL,aAAa,CACb,IAAI,8BAA8B;AACpC,MAAa,qCAAqC,0BAA0B,IAC3E,uCACA;AACD,MAAa,yBAAyB,0BAA0B,IAAI,6BAA6B;AACjG,MAAa,oBAAoB,EAAE,QAAQ,CAAC,IAAI,gCAAgC;AAChF,MAAa,4BAA4B,EACvC,QAAQ,CACR,IAAI,EAAE,CACN,IAAI,gCAAgC,CAEpC,MAAM,YAAY;AACpB,MAAa,iCAAiC,EAC5C,QAAQ,CACR,IAAI,EAAE,CACN,IAAI,gCAAgC,CACpC,WAAW,IAAI,CAEf,MAAM,YAAY;AACpB,MAAa,yBAAyB,EACpC,QAAQ,CACR,IAAI,EAAE,CACN,IAAI,gCAAgC,CAEpC,MAAM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EACR;CACD,2BAA2B;EAC1B,SAAS;EACT,QAAQ;EACR;CACD"}
|
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
import { c as PortalArtifactReadRequest, u as PortalArtifactReadResult } from "../index-B5hgm1KH.js";
|
|
2
|
+
import { $ as SandboxProcessStartRequest, $t as SandboxEnvironmentCloseRequest, C as SandboxTerminalAttachRequest, Ct as SandboxFsRemoveRequest, D as SandboxTerminalResizeRequest, Dt as SandboxFsRenameRequest, F as SandboxStreamReadRequest, Ft as SandboxFsWriteRequest, G as SandboxProcessCancelResult, Jt as SandboxExecWaitRequest, Kt as SandboxExecStartResult, L as SandboxStreamReadResult, Lt as SandboxFsWriteResult, N as SandboxStreamCloseResult, Nt as SandboxFsStatResult, T as SandboxTerminalAttachResult, Tt as SandboxFsRemoveResult, U as SandboxProcessCancelRequest, V as SandboxStreamWriteResult, Vt as SandboxExecCancelResult, Wt as SandboxExecStartRequest, Xt as SandboxExecWaitResult, Y as SandboxProcessLogsRequest, Z as SandboxProcessLogsResult, _ as GatewayRuntimeTrustedInvocationRequester, _t as SandboxFsMkdirResult, an as SandboxEnvironmentOpenResult, c as GatewayRuntimeManagedPluginClientKind, cn as SandboxEnvironmentStatusResult, ct as SandboxProcessWaitResult, d as GatewayRuntimeTrustedInvocationContext, dt as SandboxFsListRequest, en as SandboxEnvironmentCloseResult, f as GatewayRuntimeTrustedInvocationContextSchema, g as GatewayRuntimeTrustedInvocationPrincipalSchema, gn as SandboxRetainedResultLookupRequest, h as GatewayRuntimeTrustedInvocationPrincipal, ht as SandboxFsMkdirRequest, it as SandboxProcessStatusResult, j as SandboxStreamCloseRequest, jt as SandboxFsStatRequest, k as SandboxTerminalResizeResult, kt as SandboxFsRenameResult, m as GatewayRuntimeTrustedInvocationCorrelationSchema, n as GatewayRuntimeAttachmentMetadata$1, ot as SandboxProcessWaitRequest, p as GatewayRuntimeTrustedInvocationCorrelation, pt as SandboxFsListResult, rn as SandboxEnvironmentOpenRequest, rt as SandboxProcessStatusRequest, sn as SandboxEnvironmentStatusRequest, tt as SandboxProcessStartResult, v as GatewayRuntimeTrustedInvocationRequesterSchema, vn as SandboxRetainedResultLookupResult, xt as SandboxFsReadResult, yt as SandboxFsReadRequest, z as SandboxStreamWriteRequest, zt as SandboxExecCancelRequest } from "../index-C-NPMMvc.js";
|
|
3
|
+
import { S as PortalCallRequest, _ as PortalSearchResult, c as PortalDescribeResult, i as PortalCallResult, p as PortalListResult } from "../portal-call-result-schema-wSCaz3mC.js";
|
|
4
|
+
import { i as PortalSearchRequest, m as PortalDescribeRequest, s as PortalListRequest } from "../index-yeFGRMdv.js";
|
|
5
|
+
import { z } from "zod/v4";
|
|
6
|
+
|
|
7
|
+
//#region src/gateway-runtime-client/gateway-runtime-trace-context.d.ts
|
|
8
|
+
declare const GATEWAY_RUNTIME_TRACEPARENT_MAX_LENGTH = 512;
|
|
9
|
+
declare const GATEWAY_RUNTIME_TRACESTATE_MAX_LENGTH = 512;
|
|
10
|
+
declare const GATEWAY_RUNTIME_TRACESTATE_MAX_MEMBERS = 32;
|
|
11
|
+
declare const GatewayRuntimeTraceContextSchema: z.ZodObject<{
|
|
12
|
+
traceparent: z.ZodString;
|
|
13
|
+
tracestate: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strict>;
|
|
15
|
+
type GatewayRuntimeTraceContext = z.infer<typeof GatewayRuntimeTraceContextSchema>;
|
|
16
|
+
/** Read current invocation metadata; the client validates every returned value before transport. */
|
|
17
|
+
type GatewayRuntimeTraceContextProvider = () => unknown;
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/gateway-runtime-client/gateway-runtime-sandbox-operations.d.ts
|
|
20
|
+
interface GatewayRuntimeTrustedRequestOptions {
|
|
21
|
+
readonly signal?: AbortSignal;
|
|
22
|
+
readonly traceContext?: GatewayRuntimeTraceContext;
|
|
23
|
+
readonly trustedContext: GatewayRuntimeTrustedInvocationContext;
|
|
24
|
+
}
|
|
25
|
+
interface GatewayRuntimeSandboxRequestClient {
|
|
26
|
+
readonly request: (method: string, params: unknown, options: {
|
|
27
|
+
readonly signal?: AbortSignal;
|
|
28
|
+
readonly traceContext?: GatewayRuntimeTraceContext;
|
|
29
|
+
}) => Promise<unknown>;
|
|
30
|
+
}
|
|
31
|
+
declare class GatewayRuntimeSandboxEnvironmentOperations {
|
|
32
|
+
#private;
|
|
33
|
+
constructor(client: GatewayRuntimeSandboxRequestClient);
|
|
34
|
+
open(request: SandboxEnvironmentOpenRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxEnvironmentOpenResult>;
|
|
35
|
+
close(request: SandboxEnvironmentCloseRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxEnvironmentCloseResult>;
|
|
36
|
+
status(request: SandboxEnvironmentStatusRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxEnvironmentStatusResult>;
|
|
37
|
+
}
|
|
38
|
+
declare class GatewayRuntimeSandboxExecutionOperations {
|
|
39
|
+
#private;
|
|
40
|
+
constructor(client: GatewayRuntimeSandboxRequestClient);
|
|
41
|
+
start(request: SandboxExecStartRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxExecStartResult>;
|
|
42
|
+
wait(request: SandboxExecWaitRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxExecWaitResult>;
|
|
43
|
+
cancel(request: SandboxExecCancelRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxExecCancelResult>;
|
|
44
|
+
}
|
|
45
|
+
declare class GatewayRuntimeSandboxRetainedResultOperations {
|
|
46
|
+
#private;
|
|
47
|
+
constructor(client: GatewayRuntimeSandboxRequestClient);
|
|
48
|
+
lookup(request: SandboxRetainedResultLookupRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxRetainedResultLookupResult>;
|
|
49
|
+
}
|
|
50
|
+
declare class GatewayRuntimeSandboxFilesystemOperations {
|
|
51
|
+
#private;
|
|
52
|
+
constructor(client: GatewayRuntimeSandboxRequestClient);
|
|
53
|
+
stat(request: SandboxFsStatRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxFsStatResult>;
|
|
54
|
+
list(request: SandboxFsListRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxFsListResult>;
|
|
55
|
+
read(request: SandboxFsReadRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxFsReadResult>;
|
|
56
|
+
write(request: SandboxFsWriteRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxFsWriteResult>;
|
|
57
|
+
mkdir(request: SandboxFsMkdirRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxFsMkdirResult>;
|
|
58
|
+
rename(request: SandboxFsRenameRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxFsRenameResult>;
|
|
59
|
+
remove(request: SandboxFsRemoveRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxFsRemoveResult>;
|
|
60
|
+
}
|
|
61
|
+
declare class GatewayRuntimeSandboxProcessOperations {
|
|
62
|
+
#private;
|
|
63
|
+
constructor(client: GatewayRuntimeSandboxRequestClient);
|
|
64
|
+
start(request: SandboxProcessStartRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxProcessStartResult>;
|
|
65
|
+
status(request: SandboxProcessStatusRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxProcessStatusResult>;
|
|
66
|
+
wait(request: SandboxProcessWaitRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxProcessWaitResult>;
|
|
67
|
+
logs(request: SandboxProcessLogsRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxProcessLogsResult>;
|
|
68
|
+
cancel(request: SandboxProcessCancelRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxProcessCancelResult>;
|
|
69
|
+
}
|
|
70
|
+
declare class GatewayRuntimeSandboxStreamOperations {
|
|
71
|
+
#private;
|
|
72
|
+
constructor(client: GatewayRuntimeSandboxRequestClient);
|
|
73
|
+
read(request: SandboxStreamReadRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxStreamReadResult>;
|
|
74
|
+
write(request: SandboxStreamWriteRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxStreamWriteResult>;
|
|
75
|
+
close(request: SandboxStreamCloseRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxStreamCloseResult>;
|
|
76
|
+
}
|
|
77
|
+
declare class GatewayRuntimeSandboxTerminalOperations {
|
|
78
|
+
#private;
|
|
79
|
+
constructor(client: GatewayRuntimeSandboxRequestClient);
|
|
80
|
+
attach(request: SandboxTerminalAttachRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxTerminalAttachResult>;
|
|
81
|
+
resize(request: SandboxTerminalResizeRequest, options: GatewayRuntimeTrustedRequestOptions): Promise<SandboxTerminalResizeResult>;
|
|
82
|
+
}
|
|
83
|
+
declare class GatewayRuntimeSandboxOperations {
|
|
84
|
+
readonly environment: GatewayRuntimeSandboxEnvironmentOperations;
|
|
85
|
+
readonly execution: GatewayRuntimeSandboxExecutionOperations;
|
|
86
|
+
readonly filesystem: GatewayRuntimeSandboxFilesystemOperations;
|
|
87
|
+
readonly process: GatewayRuntimeSandboxProcessOperations;
|
|
88
|
+
readonly retainedResults: GatewayRuntimeSandboxRetainedResultOperations;
|
|
89
|
+
readonly stream: GatewayRuntimeSandboxStreamOperations;
|
|
90
|
+
readonly terminal: GatewayRuntimeSandboxTerminalOperations;
|
|
91
|
+
constructor(client: GatewayRuntimeSandboxRequestClient);
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
//#region src/gateway-runtime-client/gateway-runtime-startup-retry.d.ts
|
|
95
|
+
interface GatewayRuntimeStartupRetryPolicy {
|
|
96
|
+
readonly deadlineMs: number;
|
|
97
|
+
readonly intervalMs: number;
|
|
98
|
+
readonly maxAttempts: number;
|
|
99
|
+
}
|
|
100
|
+
declare const DEFAULT_GATEWAY_RUNTIME_STARTUP_RETRY_POLICY: Readonly<{
|
|
101
|
+
deadlineMs: 5000;
|
|
102
|
+
intervalMs: 100;
|
|
103
|
+
maxAttempts: 50;
|
|
104
|
+
}>;
|
|
105
|
+
interface GatewayRuntimeStartupRetryScheduler {
|
|
106
|
+
readonly now: () => number;
|
|
107
|
+
readonly wait: (delayMs: number, signal: AbortSignal) => Promise<void>;
|
|
108
|
+
}
|
|
109
|
+
type GatewayRuntimeStartupUnavailableKind = 'socket-absent' | 'socket-refused';
|
|
110
|
+
/** A pre-handshake socket publication race that is safe to retry within the startup budget. */
|
|
111
|
+
declare class GatewayRuntimeStartupUnavailableError extends Error {
|
|
112
|
+
readonly code = "startup-unavailable";
|
|
113
|
+
readonly kind: GatewayRuntimeStartupUnavailableKind;
|
|
114
|
+
constructor(kind: GatewayRuntimeStartupUnavailableKind, options?: ErrorOptions);
|
|
115
|
+
}
|
|
116
|
+
//#endregion
|
|
117
|
+
//#region src/gateway-runtime-client/gateway-runtime-protocol.d.ts
|
|
118
|
+
type GatewayRuntimeProtocolErrorCode = 'BUFFER_LIMIT_EXCEEDED' | 'CONTENT_LENGTH_OVERFLOW' | 'CONTENT_TOO_LARGE' | 'DUPLICATE_CONTENT_LENGTH' | 'FRAME_LIMIT_EXCEEDED' | 'HEADER_TOO_LARGE' | 'INCOMPLETE_FRAME_BODY' | 'INCOMPLETE_FRAME_HEADER' | 'INVALID_JSON' | 'INVALID_JSON_RPC_ENVELOPE' | 'INVALID_UTF8' | 'JSON_RPC_BATCH_UNSUPPORTED' | 'MALFORMED_HEADER' | 'MISSING_HEADER_DELIMITER' | 'NEGATIVE_CONTENT_LENGTH' | 'NON_DECIMAL_CONTENT_LENGTH' | 'UNKNOWN_HEADER' | 'UNKNOWN_JSON_RPC_FIELD' | 'UNSAFE_CONTENT_LENGTH' | 'UNSUPPORTED_JSON_RPC_VERSION';
|
|
119
|
+
interface GatewayRuntimeFrameLimits {
|
|
120
|
+
readonly maxBufferedBytes: number;
|
|
121
|
+
readonly maxContentBytes: number;
|
|
122
|
+
readonly maxFramesPerChunk: number;
|
|
123
|
+
readonly maxHeaderBytes: number;
|
|
124
|
+
}
|
|
125
|
+
declare const DEFAULT_GATEWAY_RUNTIME_FRAME_LIMITS: Readonly<{
|
|
126
|
+
maxBufferedBytes: 1056768;
|
|
127
|
+
maxContentBytes: 1048576;
|
|
128
|
+
maxFramesPerChunk: 32;
|
|
129
|
+
maxHeaderBytes: 8192;
|
|
130
|
+
}>;
|
|
131
|
+
type GatewayRuntimeFrameLimitOverrides = Partial<GatewayRuntimeFrameLimits>;
|
|
132
|
+
type GatewayRuntimeJsonRpcMessage = Readonly<Record<string, unknown>> & {
|
|
133
|
+
readonly jsonrpc: '2.0';
|
|
134
|
+
};
|
|
135
|
+
declare class GatewayRuntimeProtocolError extends Error {
|
|
136
|
+
readonly code: GatewayRuntimeProtocolErrorCode;
|
|
137
|
+
constructor(code: GatewayRuntimeProtocolErrorCode, message: string);
|
|
138
|
+
}
|
|
139
|
+
declare class GatewayRuntimeFrameDecoder {
|
|
140
|
+
#private;
|
|
141
|
+
constructor(limitOverrides?: GatewayRuntimeFrameLimitOverrides);
|
|
142
|
+
get bufferedByteLength(): number;
|
|
143
|
+
push(chunk: Uint8Array): readonly GatewayRuntimeJsonRpcMessage[];
|
|
144
|
+
finish(): void;
|
|
145
|
+
}
|
|
146
|
+
declare function encodeGatewayRuntimeFrame(message: unknown, limitOverrides?: GatewayRuntimeFrameLimitOverrides): Uint8Array;
|
|
147
|
+
//#endregion
|
|
148
|
+
//#region src/gateway-runtime-client/node-gateway-runtime-transport.d.ts
|
|
149
|
+
type NodeGatewayRuntimeTransportErrorCode = 'connection-closed' | 'connection-failed' | 'pending-request-limit-exceeded' | 'protocol-failed' | 'request-aborted' | 'request-id-exhausted' | 'request-write-failed' | 'unexpected-message';
|
|
150
|
+
declare const GATEWAY_RUNTIME_REQUEST_CANCEL_NOTIFICATION_METHOD = "notifications/cancelled";
|
|
151
|
+
declare class NodeGatewayRuntimeTransportError extends Error {
|
|
152
|
+
readonly code: NodeGatewayRuntimeTransportErrorCode;
|
|
153
|
+
constructor(code: NodeGatewayRuntimeTransportErrorCode, message: string, options?: ErrorOptions);
|
|
154
|
+
}
|
|
155
|
+
declare class GatewayRuntimeRemoteError extends Error {
|
|
156
|
+
readonly code: string;
|
|
157
|
+
readonly data: unknown;
|
|
158
|
+
constructor(code: string, message: string, data?: unknown);
|
|
159
|
+
}
|
|
160
|
+
interface NodeGatewayRuntimeTransportOptions {
|
|
161
|
+
readonly frameLimits?: GatewayRuntimeFrameLimitOverrides;
|
|
162
|
+
readonly maxPendingRequests?: number;
|
|
163
|
+
}
|
|
164
|
+
declare function createNodeGatewayRuntimeTransportFactory(options?: NodeGatewayRuntimeTransportOptions): GatewayRuntimeTransportFactory;
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region src/gateway-runtime-client/gateway-runtime-flow-control.d.ts
|
|
167
|
+
interface GatewayRuntimeRetainedByteMeasurements {
|
|
168
|
+
readonly kernelSendBufferedBytes: number;
|
|
169
|
+
readonly nodeWritableBufferedBytes: number;
|
|
170
|
+
readonly parserBufferedBytes: number;
|
|
171
|
+
readonly sourceOwnedApplicationChunkBytes: number;
|
|
172
|
+
}
|
|
173
|
+
interface GatewayRuntimeRetainedByteLimits {
|
|
174
|
+
readonly maxKernelSendBufferedBytes: number;
|
|
175
|
+
readonly maxNodeWritableBufferedBytes: number;
|
|
176
|
+
readonly maxParserBufferedBytes: number;
|
|
177
|
+
readonly maxSourceOwnedApplicationChunkBytes: number;
|
|
178
|
+
}
|
|
179
|
+
type GatewayRuntimeChunkSenderPhase = 'idle' | 'reading-source' | 'writing-chunk' | 'waiting-for-drain' | 'disconnected';
|
|
180
|
+
interface GatewayRuntimeChunkSenderState {
|
|
181
|
+
readonly currentRetainedBytes: GatewayRuntimeRetainedByteMeasurements;
|
|
182
|
+
readonly highWaterRetainedBytes: GatewayRuntimeRetainedByteMeasurements;
|
|
183
|
+
readonly ownedApplicationChunkCount: 0 | 1;
|
|
184
|
+
readonly phase: GatewayRuntimeChunkSenderPhase;
|
|
185
|
+
readonly retainedByteLimits: GatewayRuntimeRetainedByteLimits;
|
|
186
|
+
}
|
|
187
|
+
type GatewayRuntimeChunkSenderEvent = {
|
|
188
|
+
readonly kind: 'disconnected';
|
|
189
|
+
} | {
|
|
190
|
+
readonly kind: 'drain';
|
|
191
|
+
} | {
|
|
192
|
+
readonly kernelSendBufferedBytes: number;
|
|
193
|
+
readonly kind: 'retained-bytes-observed';
|
|
194
|
+
readonly nodeWritableBufferedBytes: number;
|
|
195
|
+
readonly parserBufferedBytes: number;
|
|
196
|
+
} | {
|
|
197
|
+
readonly chunk: Uint8Array;
|
|
198
|
+
readonly kind: 'source-chunk-read';
|
|
199
|
+
} | {
|
|
200
|
+
readonly kind: 'start';
|
|
201
|
+
} | {
|
|
202
|
+
readonly kind: 'write-result';
|
|
203
|
+
readonly writableWithoutDrain: boolean;
|
|
204
|
+
};
|
|
205
|
+
type GatewayRuntimeChunkSenderEffect = {
|
|
206
|
+
readonly chunk: Uint8Array;
|
|
207
|
+
readonly kind: 'encode-and-write';
|
|
208
|
+
} | {
|
|
209
|
+
readonly kind: 'read-source';
|
|
210
|
+
};
|
|
211
|
+
interface GatewayRuntimeChunkSenderTransition {
|
|
212
|
+
readonly effects: readonly GatewayRuntimeChunkSenderEffect[];
|
|
213
|
+
readonly state: GatewayRuntimeChunkSenderState;
|
|
214
|
+
}
|
|
215
|
+
declare function createGatewayRuntimeChunkSenderState(retainedByteLimits: GatewayRuntimeRetainedByteLimits): GatewayRuntimeChunkSenderState;
|
|
216
|
+
declare function reduceGatewayRuntimeChunkSenderState(state: GatewayRuntimeChunkSenderState, event: GatewayRuntimeChunkSenderEvent): GatewayRuntimeChunkSenderTransition;
|
|
217
|
+
type GatewayRuntimeClientReadPhase = 'flowing' | 'downstream-paused' | 'discard-draining' | 'completed';
|
|
218
|
+
type GatewayRuntimeStreamTerminalOutcome = string;
|
|
219
|
+
type GatewayRuntimeClientFrame = {
|
|
220
|
+
readonly chunk: Uint8Array;
|
|
221
|
+
readonly kind: 'stream-data';
|
|
222
|
+
readonly streamId: string;
|
|
223
|
+
} | {
|
|
224
|
+
readonly kind: 'authoritative-stream-terminal';
|
|
225
|
+
readonly outcome: GatewayRuntimeStreamTerminalOutcome;
|
|
226
|
+
readonly streamId: string;
|
|
227
|
+
} | {
|
|
228
|
+
readonly kind: 'control';
|
|
229
|
+
readonly method: string;
|
|
230
|
+
};
|
|
231
|
+
interface GatewayRuntimeClientReadState {
|
|
232
|
+
readonly pauseDeadlineMilliseconds: number;
|
|
233
|
+
readonly phase: GatewayRuntimeClientReadPhase;
|
|
234
|
+
readonly streamId: string;
|
|
235
|
+
}
|
|
236
|
+
type GatewayRuntimeClientReadEvent = {
|
|
237
|
+
readonly kind: 'attachment-retired';
|
|
238
|
+
} | {
|
|
239
|
+
readonly kind: 'downstream-pressure';
|
|
240
|
+
} | {
|
|
241
|
+
readonly kind: 'downstream-resumed';
|
|
242
|
+
} | {
|
|
243
|
+
readonly frame: GatewayRuntimeClientFrame;
|
|
244
|
+
readonly kind: 'frame-received';
|
|
245
|
+
} | {
|
|
246
|
+
readonly kind: 'local-cancel';
|
|
247
|
+
} | {
|
|
248
|
+
readonly kind: 'local-close';
|
|
249
|
+
} | {
|
|
250
|
+
readonly kind: 'pause-deadline-expired';
|
|
251
|
+
};
|
|
252
|
+
type GatewayRuntimeClientReadEffect = {
|
|
253
|
+
readonly kind: 'cancel-pause-deadline';
|
|
254
|
+
} | {
|
|
255
|
+
readonly kind: 'complete-stream';
|
|
256
|
+
readonly outcome: GatewayRuntimeStreamTerminalOutcome;
|
|
257
|
+
readonly streamId: string;
|
|
258
|
+
} | {
|
|
259
|
+
readonly kind: 'discard-stream-data';
|
|
260
|
+
readonly streamId: string;
|
|
261
|
+
} | {
|
|
262
|
+
readonly frame: GatewayRuntimeClientFrame;
|
|
263
|
+
readonly kind: 'forward-frame';
|
|
264
|
+
} | {
|
|
265
|
+
readonly kind: 'pause-socket-read';
|
|
266
|
+
} | {
|
|
267
|
+
readonly kind: 'resume-socket-read';
|
|
268
|
+
} | {
|
|
269
|
+
readonly afterMilliseconds: number;
|
|
270
|
+
readonly kind: 'schedule-pause-deadline';
|
|
271
|
+
};
|
|
272
|
+
interface GatewayRuntimeClientReadTransition {
|
|
273
|
+
readonly effects: readonly GatewayRuntimeClientReadEffect[];
|
|
274
|
+
readonly state: GatewayRuntimeClientReadState;
|
|
275
|
+
}
|
|
276
|
+
declare function createGatewayRuntimeClientReadState(options: {
|
|
277
|
+
readonly pauseDeadlineMilliseconds: number;
|
|
278
|
+
readonly streamId: string;
|
|
279
|
+
}): GatewayRuntimeClientReadState;
|
|
280
|
+
declare function reduceGatewayRuntimeClientReadState(state: GatewayRuntimeClientReadState, event: GatewayRuntimeClientReadEvent): GatewayRuntimeClientReadTransition;
|
|
281
|
+
//#endregion
|
|
282
|
+
//#region src/gateway-runtime-client/gateway-runtime-socket-read-flow.d.ts
|
|
283
|
+
interface GatewayRuntimeReadableSocketControl {
|
|
284
|
+
readonly pause: () => unknown;
|
|
285
|
+
readonly resume: () => unknown;
|
|
286
|
+
}
|
|
287
|
+
interface GatewayRuntimePauseDeadlineScheduler {
|
|
288
|
+
readonly schedule: (options: {
|
|
289
|
+
readonly afterMilliseconds: number;
|
|
290
|
+
readonly onDeadline: () => void;
|
|
291
|
+
}) => {
|
|
292
|
+
readonly cancel: () => void;
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
interface GatewayRuntimeCompletedStreamEvidence {
|
|
296
|
+
readonly outcome: GatewayRuntimeStreamTerminalOutcome;
|
|
297
|
+
readonly streamId: string;
|
|
298
|
+
}
|
|
299
|
+
interface GatewayRuntimeSocketReadFlowOptions {
|
|
300
|
+
readonly deadlineScheduler?: GatewayRuntimePauseDeadlineScheduler;
|
|
301
|
+
readonly forwardFrame: (frame: GatewayRuntimeClientFrame) => void;
|
|
302
|
+
readonly onStreamCompleted: (evidence: GatewayRuntimeCompletedStreamEvidence) => void;
|
|
303
|
+
readonly pauseDeadlineMilliseconds: number;
|
|
304
|
+
readonly socket: GatewayRuntimeReadableSocketControl;
|
|
305
|
+
}
|
|
306
|
+
/** Apply bounded per-stream discard state to one globally paused UDS reader. */
|
|
307
|
+
declare class GatewayRuntimeSocketReadFlow {
|
|
308
|
+
#private;
|
|
309
|
+
constructor(options: GatewayRuntimeSocketReadFlowOptions);
|
|
310
|
+
applyDownstreamPressure(streamId: string): void;
|
|
311
|
+
resumeDownstream(streamId: string): void;
|
|
312
|
+
cancelStream(streamId: string): void;
|
|
313
|
+
closeStream(streamId: string): void;
|
|
314
|
+
retireAttachment(streamId: string): void;
|
|
315
|
+
receiveFrame(frame: GatewayRuntimeClientFrame): void;
|
|
316
|
+
}
|
|
317
|
+
//#endregion
|
|
318
|
+
//#region src/gateway-runtime-client/index.d.ts
|
|
319
|
+
declare const DEFAULT_GATEWAY_RUNTIME_SOCKET_PATH = "/run/agent-vm/gateway-runtime/managed-plugin.sock";
|
|
320
|
+
type GatewayRuntimeAttachmentMetadata = Readonly<Omit<GatewayRuntimeAttachmentMetadata$1, 'configuredAgentIds'> & {
|
|
321
|
+
readonly configuredAgentIds: readonly string[];
|
|
322
|
+
}>;
|
|
323
|
+
type GatewayRuntimeClientTrustedInvocationContext = GatewayRuntimeTrustedInvocationContext;
|
|
324
|
+
interface GatewayRuntimeRequestOptions {
|
|
325
|
+
readonly signal?: AbortSignal;
|
|
326
|
+
readonly traceContext?: GatewayRuntimeTraceContext;
|
|
327
|
+
}
|
|
328
|
+
interface GatewayRuntimeConnectOptions {
|
|
329
|
+
readonly signal?: AbortSignal;
|
|
330
|
+
}
|
|
331
|
+
type GatewayRuntimePortalRequestOptions = GatewayRuntimeTrustedRequestOptions;
|
|
332
|
+
interface GatewayRuntimeConnection {
|
|
333
|
+
readonly close: () => Promise<void>;
|
|
334
|
+
readonly handshake: (handshake: GatewayRuntimeAttachmentMetadata, options?: GatewayRuntimeRequestOptions) => Promise<void>;
|
|
335
|
+
readonly request: (method: string, params: unknown, options?: {
|
|
336
|
+
readonly signal?: AbortSignal;
|
|
337
|
+
}) => Promise<unknown>;
|
|
338
|
+
}
|
|
339
|
+
interface GatewayRuntimeTransportFactory {
|
|
340
|
+
readonly connect: (options: {
|
|
341
|
+
readonly signal: AbortSignal;
|
|
342
|
+
readonly socketPath: string;
|
|
343
|
+
}) => Promise<GatewayRuntimeConnection>;
|
|
344
|
+
}
|
|
345
|
+
interface GatewayRuntimeClientOptions {
|
|
346
|
+
readonly attachment: GatewayRuntimeAttachmentMetadata;
|
|
347
|
+
readonly socketPath?: string;
|
|
348
|
+
readonly startupRetryPolicy?: Partial<GatewayRuntimeStartupRetryPolicy>;
|
|
349
|
+
readonly startupRetryScheduler?: GatewayRuntimeStartupRetryScheduler;
|
|
350
|
+
readonly traceContextProvider?: GatewayRuntimeTraceContextProvider;
|
|
351
|
+
readonly transportFactory?: GatewayRuntimeTransportFactory;
|
|
352
|
+
}
|
|
353
|
+
type GatewayRuntimeClientErrorCode = 'already-connected' | 'handshake-required' | 'invalid-attachment' | 'invalid-request-metadata' | 'invalid-startup-retry-policy' | 'public-authority-injection' | 'startup-aborted' | 'startup-retry-exhausted';
|
|
354
|
+
declare class GatewayRuntimeClientError extends Error {
|
|
355
|
+
readonly code: GatewayRuntimeClientErrorCode;
|
|
356
|
+
constructor(code: GatewayRuntimeClientErrorCode, message: string, options?: ErrorOptions);
|
|
357
|
+
}
|
|
358
|
+
declare class GatewayRuntimePortalOperations {
|
|
359
|
+
#private;
|
|
360
|
+
constructor(client: GatewayRuntimeClient);
|
|
361
|
+
list(request: PortalListRequest, options: GatewayRuntimePortalRequestOptions): Promise<PortalListResult>;
|
|
362
|
+
search(request: PortalSearchRequest, options: GatewayRuntimePortalRequestOptions): Promise<PortalSearchResult>;
|
|
363
|
+
describe(request: PortalDescribeRequest, options: GatewayRuntimePortalRequestOptions): Promise<PortalDescribeResult>;
|
|
364
|
+
call(request: PortalCallRequest, options: GatewayRuntimePortalRequestOptions): Promise<PortalCallResult>;
|
|
365
|
+
}
|
|
366
|
+
declare class GatewayRuntimeArtifactOperations {
|
|
367
|
+
#private;
|
|
368
|
+
constructor(client: GatewayRuntimeClient);
|
|
369
|
+
read(request: PortalArtifactReadRequest, options: GatewayRuntimePortalRequestOptions): Promise<PortalArtifactReadResult>;
|
|
370
|
+
}
|
|
371
|
+
/** Rich private-UDS client for one current managed-framework attachment. */
|
|
372
|
+
declare class GatewayRuntimeClient {
|
|
373
|
+
#private;
|
|
374
|
+
readonly artifacts: GatewayRuntimeArtifactOperations;
|
|
375
|
+
readonly portal: GatewayRuntimePortalOperations;
|
|
376
|
+
readonly sandbox: GatewayRuntimeSandboxOperations;
|
|
377
|
+
constructor(options: GatewayRuntimeClientOptions);
|
|
378
|
+
connect(options?: GatewayRuntimeConnectOptions): Promise<void>;
|
|
379
|
+
disconnect(): Promise<void>;
|
|
380
|
+
reconnect(options?: GatewayRuntimeConnectOptions): Promise<void>;
|
|
381
|
+
request(method: string, params: unknown, options?: GatewayRuntimeRequestOptions): Promise<unknown>;
|
|
382
|
+
}
|
|
383
|
+
//#endregion
|
|
384
|
+
export { DEFAULT_GATEWAY_RUNTIME_FRAME_LIMITS, DEFAULT_GATEWAY_RUNTIME_SOCKET_PATH, DEFAULT_GATEWAY_RUNTIME_STARTUP_RETRY_POLICY, GATEWAY_RUNTIME_REQUEST_CANCEL_NOTIFICATION_METHOD, GATEWAY_RUNTIME_TRACEPARENT_MAX_LENGTH, GATEWAY_RUNTIME_TRACESTATE_MAX_LENGTH, GATEWAY_RUNTIME_TRACESTATE_MAX_MEMBERS, GatewayRuntimeAttachmentMetadata, GatewayRuntimeChunkSenderEffect, GatewayRuntimeChunkSenderEvent, GatewayRuntimeChunkSenderPhase, GatewayRuntimeChunkSenderState, GatewayRuntimeChunkSenderTransition, GatewayRuntimeClient, GatewayRuntimeClientError, GatewayRuntimeClientErrorCode, GatewayRuntimeClientFrame, GatewayRuntimeClientOptions, GatewayRuntimeClientReadEffect, GatewayRuntimeClientReadEvent, GatewayRuntimeClientReadPhase, GatewayRuntimeClientReadState, GatewayRuntimeClientReadTransition, GatewayRuntimeClientTrustedInvocationContext, type GatewayRuntimeCompletedStreamEvidence, GatewayRuntimeConnectOptions, GatewayRuntimeConnection, GatewayRuntimeFrameDecoder, GatewayRuntimeFrameLimitOverrides, GatewayRuntimeFrameLimits, GatewayRuntimeJsonRpcMessage, type GatewayRuntimeManagedPluginClientKind, type GatewayRuntimePauseDeadlineScheduler, GatewayRuntimePortalRequestOptions, GatewayRuntimeProtocolError, GatewayRuntimeProtocolErrorCode, type GatewayRuntimeReadableSocketControl, GatewayRuntimeRemoteError, GatewayRuntimeRequestOptions, GatewayRuntimeRetainedByteLimits, GatewayRuntimeRetainedByteMeasurements, GatewayRuntimeSandboxEnvironmentOperations, GatewayRuntimeSandboxExecutionOperations, GatewayRuntimeSandboxFilesystemOperations, GatewayRuntimeSandboxOperations, GatewayRuntimeSandboxProcessOperations, GatewayRuntimeSandboxRetainedResultOperations, GatewayRuntimeSandboxStreamOperations, GatewayRuntimeSandboxTerminalOperations, GatewayRuntimeSocketReadFlow, type GatewayRuntimeSocketReadFlowOptions, type GatewayRuntimeStartupRetryPolicy, type GatewayRuntimeStartupRetryScheduler, GatewayRuntimeStartupUnavailableError, GatewayRuntimeStreamTerminalOutcome, type GatewayRuntimeTraceContext, type GatewayRuntimeTraceContextProvider, GatewayRuntimeTraceContextSchema, GatewayRuntimeTransportFactory, type GatewayRuntimeTrustedInvocationContext, GatewayRuntimeTrustedInvocationContextSchema, type GatewayRuntimeTrustedInvocationCorrelation, GatewayRuntimeTrustedInvocationCorrelationSchema, type GatewayRuntimeTrustedInvocationPrincipal, GatewayRuntimeTrustedInvocationPrincipalSchema, type GatewayRuntimeTrustedInvocationRequester, GatewayRuntimeTrustedInvocationRequesterSchema, type GatewayRuntimeTrustedRequestOptions, NodeGatewayRuntimeTransportError, createGatewayRuntimeChunkSenderState, createGatewayRuntimeClientReadState, createNodeGatewayRuntimeTransportFactory, encodeGatewayRuntimeFrame, reduceGatewayRuntimeChunkSenderState, reduceGatewayRuntimeClientReadState };
|
|
385
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/gateway-runtime-client/gateway-runtime-trace-context.ts","../../src/gateway-runtime-client/gateway-runtime-sandbox-operations.ts","../../src/gateway-runtime-client/gateway-runtime-startup-retry.ts","../../src/gateway-runtime-client/gateway-runtime-protocol.ts","../../src/gateway-runtime-client/node-gateway-runtime-transport.ts","../../src/gateway-runtime-client/gateway-runtime-flow-control.ts","../../src/gateway-runtime-client/gateway-runtime-socket-read-flow.ts","../../src/gateway-runtime-client/index.ts"],"mappings":";;;;;;;cAEa,sCAAA;AAAA,cACA,qCAAA;AAAA,cACA,sCAAA;AAAA,cAsEA,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;KAOjC,0BAAA,GAA6B,CAAA,CAAE,KAAA,QAAa,gCAAA;;KAG5C,kCAAA;;;UCiBK,mCAAA;EAAA,SACP,MAAA,GAAS,WAAA;EAAA,SACT,YAAA,GAAe,0BAAA;EAAA,SACf,cAAA,EAAgB,sCAAA;AAAA;AAAA,UAGhB,kCAAA;EAAA,SACA,OAAA,GACR,MAAA,UACA,MAAA,WACA,OAAA;IAAA,SACU,MAAA,GAAS,WAAA;IAAA,SACT,YAAA,GAAe,0BAAA;EAAA,MAErB,OAAA;AAAA;AAAA,cAoCO,0CAAA;EAAA;cAGA,MAAA,EAAQ,kCAAA;EAId,IAAA,CACL,OAAA,EAAS,6BAAA,EACT,OAAA,EAAS,mCAAA,GACP,OAAA,CAAQ,4BAAA;EAWL,KAAA,CACL,OAAA,EAAS,8BAAA,EACT,OAAA,EAAS,mCAAA,GACP,OAAA,CAAQ,6BAAA;EAWL,MAAA,CACL,OAAA,EAAS,+BAAA,EACT,OAAA,EAAS,mCAAA,GACP,OAAA,CAAQ,8BAAA;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