@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,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"caseId": "missing-operation-identity-outcome",
|
|
3
|
+
"schemaId": "portal.call.item-result",
|
|
4
|
+
"tags": ["missing-identity", "missing-outcome", "outcome", "rejected"],
|
|
5
|
+
"input": {
|
|
6
|
+
"artifacts": [
|
|
7
|
+
{
|
|
8
|
+
"byteLength": 7,
|
|
9
|
+
"expiresAt": "2026-07-13T20:00:00.000Z",
|
|
10
|
+
"fingerprint": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
11
|
+
"id": "artifact-1",
|
|
12
|
+
"mediaType": "text/plain"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"id": "call-1",
|
|
16
|
+
"status": "ok",
|
|
17
|
+
"value": {
|
|
18
|
+
"issue": 123
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"expectation": {
|
|
22
|
+
"kind": "rejected",
|
|
23
|
+
"errorCodes": ["portal.result.outcome-algebra"],
|
|
24
|
+
"refinementIdentities": ["portal.request-id.not-reserved", "portal.result.outcome-algebra"]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"caseId": "not-dispatched",
|
|
3
|
+
"schemaId": "portal.call.item-result",
|
|
4
|
+
"tags": ["accepted", "outcome", "result-discriminant"],
|
|
5
|
+
"input": {
|
|
6
|
+
"error": {
|
|
7
|
+
"code": "capability_denied",
|
|
8
|
+
"message": "Protected work was not dispatched."
|
|
9
|
+
},
|
|
10
|
+
"id": "call-1",
|
|
11
|
+
"operationId": "operation-1",
|
|
12
|
+
"owningGeneration": "gateway-generation-1",
|
|
13
|
+
"outcome": {
|
|
14
|
+
"certainty": "proven",
|
|
15
|
+
"kind": "not-dispatched",
|
|
16
|
+
"retryClass": "safe-before-dispatch"
|
|
17
|
+
},
|
|
18
|
+
"status": "error"
|
|
19
|
+
},
|
|
20
|
+
"expectation": {
|
|
21
|
+
"kind": "accepted",
|
|
22
|
+
"normalized": {
|
|
23
|
+
"error": {
|
|
24
|
+
"code": "capability_denied",
|
|
25
|
+
"message": "Protected work was not dispatched."
|
|
26
|
+
},
|
|
27
|
+
"id": "call-1",
|
|
28
|
+
"operationId": "operation-1",
|
|
29
|
+
"outcome": {
|
|
30
|
+
"certainty": "proven",
|
|
31
|
+
"kind": "not-dispatched",
|
|
32
|
+
"retryClass": "safe-before-dispatch"
|
|
33
|
+
},
|
|
34
|
+
"owningGeneration": "gateway-generation-1",
|
|
35
|
+
"status": "error"
|
|
36
|
+
},
|
|
37
|
+
"canonicalJson": "{\"error\":{\"code\":\"capability_denied\",\"message\":\"Protected work was not dispatched.\"},\"id\":\"call-1\",\"operationId\":\"operation-1\",\"outcome\":{\"certainty\":\"proven\",\"kind\":\"not-dispatched\",\"retryClass\":\"safe-before-dispatch\"},\"owningGeneration\":\"gateway-generation-1\",\"status\":\"error\"}",
|
|
38
|
+
"refinementIdentities": ["portal.request-id.not-reserved", "portal.result.outcome-algebra"]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"caseId": "replaced-proven",
|
|
3
|
+
"schemaId": "portal.call.item-result",
|
|
4
|
+
"tags": ["accepted", "outcome", "replacement"],
|
|
5
|
+
"input": {
|
|
6
|
+
"error": {
|
|
7
|
+
"code": "execution_failed",
|
|
8
|
+
"message": "The owning generation was replaced."
|
|
9
|
+
},
|
|
10
|
+
"id": "call-1",
|
|
11
|
+
"operationId": "operation-1",
|
|
12
|
+
"owningGeneration": "tool-vm-generation-1",
|
|
13
|
+
"outcome": {
|
|
14
|
+
"certainty": "proven-terminated",
|
|
15
|
+
"kind": "replaced-proven",
|
|
16
|
+
"priorSideEffects": "possible",
|
|
17
|
+
"retryClass": "manual-only"
|
|
18
|
+
},
|
|
19
|
+
"status": "error"
|
|
20
|
+
},
|
|
21
|
+
"expectation": {
|
|
22
|
+
"kind": "accepted",
|
|
23
|
+
"normalized": {
|
|
24
|
+
"error": {
|
|
25
|
+
"code": "execution_failed",
|
|
26
|
+
"message": "The owning generation was replaced."
|
|
27
|
+
},
|
|
28
|
+
"id": "call-1",
|
|
29
|
+
"operationId": "operation-1",
|
|
30
|
+
"outcome": {
|
|
31
|
+
"certainty": "proven-terminated",
|
|
32
|
+
"kind": "replaced-proven",
|
|
33
|
+
"priorSideEffects": "possible",
|
|
34
|
+
"retryClass": "manual-only"
|
|
35
|
+
},
|
|
36
|
+
"owningGeneration": "tool-vm-generation-1",
|
|
37
|
+
"status": "error"
|
|
38
|
+
},
|
|
39
|
+
"canonicalJson": "{\"error\":{\"code\":\"execution_failed\",\"message\":\"The owning generation was replaced.\"},\"id\":\"call-1\",\"operationId\":\"operation-1\",\"outcome\":{\"certainty\":\"proven-terminated\",\"kind\":\"replaced-proven\",\"priorSideEffects\":\"possible\",\"retryClass\":\"manual-only\"},\"owningGeneration\":\"tool-vm-generation-1\",\"status\":\"error\"}",
|
|
40
|
+
"refinementIdentities": ["portal.request-id.not-reserved", "portal.result.outcome-algebra"]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"caseId": "timed-out-proven",
|
|
3
|
+
"schemaId": "portal.call.item-result",
|
|
4
|
+
"tags": ["accepted", "outcome", "timeout"],
|
|
5
|
+
"input": {
|
|
6
|
+
"error": {
|
|
7
|
+
"code": "timeout",
|
|
8
|
+
"message": "Execution timed out and termination was proven."
|
|
9
|
+
},
|
|
10
|
+
"id": "call-1",
|
|
11
|
+
"operationId": "operation-1",
|
|
12
|
+
"owningGeneration": "tool-vm-generation-1",
|
|
13
|
+
"outcome": {
|
|
14
|
+
"certainty": "proven-terminated",
|
|
15
|
+
"kind": "timed-out-proven",
|
|
16
|
+
"retryClass": "manual-only"
|
|
17
|
+
},
|
|
18
|
+
"status": "error"
|
|
19
|
+
},
|
|
20
|
+
"expectation": {
|
|
21
|
+
"kind": "accepted",
|
|
22
|
+
"normalized": {
|
|
23
|
+
"error": {
|
|
24
|
+
"code": "timeout",
|
|
25
|
+
"message": "Execution timed out and termination was proven."
|
|
26
|
+
},
|
|
27
|
+
"id": "call-1",
|
|
28
|
+
"operationId": "operation-1",
|
|
29
|
+
"outcome": {
|
|
30
|
+
"certainty": "proven-terminated",
|
|
31
|
+
"kind": "timed-out-proven",
|
|
32
|
+
"retryClass": "manual-only"
|
|
33
|
+
},
|
|
34
|
+
"owningGeneration": "tool-vm-generation-1",
|
|
35
|
+
"status": "error"
|
|
36
|
+
},
|
|
37
|
+
"canonicalJson": "{\"error\":{\"code\":\"timeout\",\"message\":\"Execution timed out and termination was proven.\"},\"id\":\"call-1\",\"operationId\":\"operation-1\",\"outcome\":{\"certainty\":\"proven-terminated\",\"kind\":\"timed-out-proven\",\"retryClass\":\"manual-only\"},\"owningGeneration\":\"tool-vm-generation-1\",\"status\":\"error\"}",
|
|
38
|
+
"refinementIdentities": ["portal.request-id.not-reserved", "portal.result.outcome-algebra"]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"caseId": "call-request-canonical",
|
|
3
|
+
"schemaId": "portal.call.request",
|
|
4
|
+
"tags": ["accepted", "canonical-json", "request"],
|
|
5
|
+
"input": {
|
|
6
|
+
"requestId": "request-1",
|
|
7
|
+
"calls": [
|
|
8
|
+
{
|
|
9
|
+
"name": "get_issue",
|
|
10
|
+
"namespace": "github",
|
|
11
|
+
"id": "call-1",
|
|
12
|
+
"arguments": {
|
|
13
|
+
"z": "last",
|
|
14
|
+
"a": 1
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"expectation": {
|
|
20
|
+
"kind": "accepted",
|
|
21
|
+
"normalized": {
|
|
22
|
+
"calls": [
|
|
23
|
+
{
|
|
24
|
+
"arguments": {
|
|
25
|
+
"a": 1,
|
|
26
|
+
"z": "last"
|
|
27
|
+
},
|
|
28
|
+
"id": "call-1",
|
|
29
|
+
"name": "get_issue",
|
|
30
|
+
"namespace": "github"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"requestId": "request-1"
|
|
34
|
+
},
|
|
35
|
+
"canonicalJson": "{\"calls\":[{\"arguments\":{\"a\":1,\"z\":\"last\"},\"id\":\"call-1\",\"name\":\"get_issue\",\"namespace\":\"github\"}],\"requestId\":\"request-1\"}",
|
|
36
|
+
"refinementIdentities": [
|
|
37
|
+
"portal.batch.unique-item-ids",
|
|
38
|
+
"portal.json.canonical",
|
|
39
|
+
"portal.request-id.not-reserved"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"caseId": "call-request-duplicate-id",
|
|
3
|
+
"schemaId": "portal.call.request",
|
|
4
|
+
"tags": ["duplicate-id", "rejected", "request"],
|
|
5
|
+
"input": {
|
|
6
|
+
"calls": [
|
|
7
|
+
{
|
|
8
|
+
"arguments": {},
|
|
9
|
+
"id": "duplicate",
|
|
10
|
+
"name": "get_issue",
|
|
11
|
+
"namespace": "github"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"arguments": {},
|
|
15
|
+
"id": "duplicate",
|
|
16
|
+
"name": "get_issue",
|
|
17
|
+
"namespace": "github"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"expectation": {
|
|
22
|
+
"kind": "rejected",
|
|
23
|
+
"errorCodes": ["portal.batch.unique-item-ids"],
|
|
24
|
+
"refinementIdentities": ["portal.batch.unique-item-ids", "portal.request-id.not-reserved"]
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"caseId": "call-request-reserved-id",
|
|
3
|
+
"schemaId": "portal.call.request",
|
|
4
|
+
"tags": ["rejected", "request", "reserved-id"],
|
|
5
|
+
"input": {
|
|
6
|
+
"calls": [
|
|
7
|
+
{
|
|
8
|
+
"arguments": {},
|
|
9
|
+
"id": "__proto__",
|
|
10
|
+
"name": "get_issue",
|
|
11
|
+
"namespace": "github"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"expectation": {
|
|
16
|
+
"kind": "rejected",
|
|
17
|
+
"errorCodes": ["portal.request-id.not-reserved"],
|
|
18
|
+
"refinementIdentities": ["portal.batch.unique-item-ids", "portal.request-id.not-reserved"]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"caseId": "call-request-unknown-field",
|
|
3
|
+
"schemaId": "portal.call.request",
|
|
4
|
+
"tags": ["rejected", "request", "unknown-field"],
|
|
5
|
+
"input": {
|
|
6
|
+
"calls": [
|
|
7
|
+
{
|
|
8
|
+
"arguments": {},
|
|
9
|
+
"backendKind": "controller_rpc",
|
|
10
|
+
"id": "call-1",
|
|
11
|
+
"name": "get_issue",
|
|
12
|
+
"namespace": "github"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"expectation": {
|
|
17
|
+
"kind": "rejected",
|
|
18
|
+
"errorCodes": ["portable.object.unknown-field"],
|
|
19
|
+
"refinementIdentities": ["portal.batch.unique-item-ids", "portal.request-id.not-reserved"]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"caseId": "sandbox-exec-start-duplicate-environment-name",
|
|
3
|
+
"schemaId": "sandbox.exec.start.request",
|
|
4
|
+
"tags": ["environment", "rejected"],
|
|
5
|
+
"input": {
|
|
6
|
+
"command": "printf '%s' \"$MODE\"",
|
|
7
|
+
"environment": {
|
|
8
|
+
"handleId": "environment-a",
|
|
9
|
+
"kind": "environment",
|
|
10
|
+
"owningGeneration": "generation-a"
|
|
11
|
+
},
|
|
12
|
+
"environmentVariables": [
|
|
13
|
+
{
|
|
14
|
+
"name": "MODE",
|
|
15
|
+
"value": "alpha"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "MODE",
|
|
19
|
+
"value": "beta"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"mode": {
|
|
23
|
+
"kind": "direct"
|
|
24
|
+
},
|
|
25
|
+
"timeoutMs": 1000
|
|
26
|
+
},
|
|
27
|
+
"expectation": {
|
|
28
|
+
"kind": "rejected",
|
|
29
|
+
"errorCodes": ["sandbox.environment-variable.duplicate-name"],
|
|
30
|
+
"refinementIdentities": ["sandbox.environment-variable.unique-names"]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"caseId": "sandbox-fs-stat-parent-path",
|
|
3
|
+
"schemaId": "sandbox.fs.stat.request",
|
|
4
|
+
"tags": ["accepted", "path"],
|
|
5
|
+
"input": {
|
|
6
|
+
"environment": {
|
|
7
|
+
"handleId": "environment-a",
|
|
8
|
+
"kind": "environment",
|
|
9
|
+
"owningGeneration": "generation-a"
|
|
10
|
+
},
|
|
11
|
+
"path": "../workspace/memory/notes.md"
|
|
12
|
+
},
|
|
13
|
+
"expectation": {
|
|
14
|
+
"kind": "accepted",
|
|
15
|
+
"normalized": {
|
|
16
|
+
"environment": {
|
|
17
|
+
"handleId": "environment-a",
|
|
18
|
+
"kind": "environment",
|
|
19
|
+
"owningGeneration": "generation-a"
|
|
20
|
+
},
|
|
21
|
+
"path": "../workspace/memory/notes.md"
|
|
22
|
+
},
|
|
23
|
+
"canonicalJson": "{\"environment\":{\"handleId\":\"environment-a\",\"kind\":\"environment\",\"owningGeneration\":\"generation-a\"},\"path\":\"../workspace/memory/notes.md\"}",
|
|
24
|
+
"refinementIdentities": []
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"caseId": "sandbox-stream-write-byte-length-mismatch",
|
|
3
|
+
"schemaId": "sandbox.stream.write.request",
|
|
4
|
+
"tags": ["byte-bound", "rejected", "stream"],
|
|
5
|
+
"input": {
|
|
6
|
+
"content": { "byteLength": 4, "contentBase64": "aGVsbG8=", "encoding": "base64" },
|
|
7
|
+
"contentDigest": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
8
|
+
"sequence": 0,
|
|
9
|
+
"stream": {
|
|
10
|
+
"channel": "stdin",
|
|
11
|
+
"handleId": "stream-a",
|
|
12
|
+
"kind": "stream",
|
|
13
|
+
"owningGeneration": "generation-a"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"expectation": {
|
|
17
|
+
"kind": "rejected",
|
|
18
|
+
"errorCodes": ["sandbox.binary-chunk.byte-length-mismatch"],
|
|
19
|
+
"refinementIdentities": ["sandbox.binary-chunk.byte-length"]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,41 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/adapter-boundary/models/portal-adapter-envelope-schema.d.ts
|
|
4
|
-
declare const TrustedAgentScopeSchema: z.ZodObject<{
|
|
5
|
-
agentId: z.ZodString;
|
|
6
|
-
profileId: z.ZodString;
|
|
7
|
-
source: z.ZodEnum<{
|
|
8
|
-
"mcp-portal": "mcp-portal";
|
|
9
|
-
"tool-portal": "tool-portal";
|
|
10
|
-
"openclaw-plugin": "openclaw-plugin";
|
|
11
|
-
controller: "controller";
|
|
12
|
-
}>;
|
|
13
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
14
|
-
}, z.core.$strict>;
|
|
15
|
-
type TrustedAgentScope = z.infer<typeof TrustedAgentScopeSchema>;
|
|
16
|
-
declare const PortalAdapterEnvelopeSchema: z.ZodObject<{
|
|
17
|
-
adapter: z.ZodEnum<{
|
|
18
|
-
"tool-portal": "tool-portal";
|
|
19
|
-
"openclaw-plugin": "openclaw-plugin";
|
|
20
|
-
"mcp-provider": "mcp-provider";
|
|
21
|
-
cli: "cli";
|
|
22
|
-
sdk: "sdk";
|
|
23
|
-
"http-api": "http-api";
|
|
24
|
-
}>;
|
|
25
|
-
auditCorrelationId: z.ZodOptional<z.ZodString>;
|
|
26
|
-
trustedScope: z.ZodObject<{
|
|
27
|
-
agentId: z.ZodString;
|
|
28
|
-
profileId: z.ZodString;
|
|
29
|
-
source: z.ZodEnum<{
|
|
30
|
-
"mcp-portal": "mcp-portal";
|
|
31
|
-
"tool-portal": "tool-portal";
|
|
32
|
-
"openclaw-plugin": "openclaw-plugin";
|
|
33
|
-
controller: "controller";
|
|
34
|
-
}>;
|
|
35
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
36
|
-
}, z.core.$strict>;
|
|
37
|
-
}, z.core.$strict>;
|
|
38
|
-
type PortalAdapterEnvelope = z.infer<typeof PortalAdapterEnvelopeSchema>;
|
|
39
|
-
//#endregion
|
|
40
|
-
export { PortalAdapterEnvelope, PortalAdapterEnvelopeSchema, TrustedAgentScope, TrustedAgentScopeSchema };
|
|
41
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { i as TrustedAgentScopeSchema, n as PortalAdapterEnvelopeSchema, r as TrustedAgentScope, t as PortalAdapterEnvelope } from "../index-BmH68K78.js";
|
|
2
|
+
export { PortalAdapterEnvelope, PortalAdapterEnvelopeSchema, TrustedAgentScope, TrustedAgentScopeSchema };
|
|
@@ -1,29 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region src/adapter-boundary/models/portal-adapter-envelope-schema.ts
|
|
3
|
-
const TrustedAgentScopeSchema = z.object({
|
|
4
|
-
agentId: z.string().min(1),
|
|
5
|
-
profileId: z.string().min(1),
|
|
6
|
-
source: z.enum([
|
|
7
|
-
"mcp-portal",
|
|
8
|
-
"tool-portal",
|
|
9
|
-
"openclaw-plugin",
|
|
10
|
-
"controller"
|
|
11
|
-
]),
|
|
12
|
-
userId: z.string().min(1).optional()
|
|
13
|
-
}).strict();
|
|
14
|
-
const PortalAdapterEnvelopeSchema = z.object({
|
|
15
|
-
adapter: z.enum([
|
|
16
|
-
"mcp-provider",
|
|
17
|
-
"tool-portal",
|
|
18
|
-
"openclaw-plugin",
|
|
19
|
-
"cli",
|
|
20
|
-
"sdk",
|
|
21
|
-
"http-api"
|
|
22
|
-
]),
|
|
23
|
-
auditCorrelationId: z.string().min(1).optional(),
|
|
24
|
-
trustedScope: TrustedAgentScopeSchema
|
|
25
|
-
}).strict();
|
|
26
|
-
//#endregion
|
|
1
|
+
import { n as TrustedAgentScopeSchema, t as PortalAdapterEnvelopeSchema } from "../adapter-boundary-BIagsTUH.js";
|
|
27
2
|
export { PortalAdapterEnvelopeSchema, TrustedAgentScopeSchema };
|
|
28
|
-
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/adapter-boundary/models/portal-adapter-envelope-schema.ts
|
|
3
|
+
const TrustedAgentScopeSchema = z.object({
|
|
4
|
+
agentId: z.string().min(1),
|
|
5
|
+
profileId: z.string().min(1),
|
|
6
|
+
source: z.enum([
|
|
7
|
+
"mcp-portal",
|
|
8
|
+
"tool-portal",
|
|
9
|
+
"openclaw-plugin",
|
|
10
|
+
"controller"
|
|
11
|
+
]),
|
|
12
|
+
userId: z.string().min(1).optional()
|
|
13
|
+
}).strict();
|
|
14
|
+
const PortalAdapterEnvelopeSchema = z.object({
|
|
15
|
+
adapter: z.enum([
|
|
16
|
+
"mcp-provider",
|
|
17
|
+
"tool-portal",
|
|
18
|
+
"openclaw-plugin",
|
|
19
|
+
"cli",
|
|
20
|
+
"sdk",
|
|
21
|
+
"http-api"
|
|
22
|
+
]),
|
|
23
|
+
auditCorrelationId: z.string().min(1).optional(),
|
|
24
|
+
trustedScope: TrustedAgentScopeSchema
|
|
25
|
+
}).strict();
|
|
26
|
+
//#endregion
|
|
27
|
+
export { TrustedAgentScopeSchema as n, PortalAdapterEnvelopeSchema as t };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=adapter-boundary-BIagsTUH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter-boundary-BIagsTUH.js","names":[],"sources":["../src/adapter-boundary/models/portal-adapter-envelope-schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nexport const TrustedAgentScopeSchema = z\n\t.object({\n\t\tagentId: z.string().min(1),\n\t\tprofileId: z.string().min(1),\n\t\tsource: z.enum(['mcp-portal', 'tool-portal', 'openclaw-plugin', 'controller']),\n\t\tuserId: z.string().min(1).optional(),\n\t})\n\t.strict();\n\nexport type TrustedAgentScope = z.infer<typeof TrustedAgentScopeSchema>;\n\nexport const PortalAdapterEnvelopeSchema = z\n\t.object({\n\t\tadapter: z.enum(['mcp-provider', 'tool-portal', 'openclaw-plugin', 'cli', 'sdk', 'http-api']),\n\t\tauditCorrelationId: z.string().min(1).optional(),\n\t\ttrustedScope: TrustedAgentScopeSchema,\n\t})\n\t.strict();\n\nexport type PortalAdapterEnvelope = z.infer<typeof PortalAdapterEnvelopeSchema>;\n"],"mappings":";;AAEA,MAAa,0BAA0B,EACrC,OAAO;CACP,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC1B,WAAW,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC5B,QAAQ,EAAE,KAAK;EAAC;EAAc;EAAe;EAAmB;EAAa,CAAC;CAC9E,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,UAAU;CACpC,CAAC,CACD,QAAQ;AAIV,MAAa,8BAA8B,EACzC,OAAO;CACP,SAAS,EAAE,KAAK;EAAC;EAAgB;EAAe;EAAmB;EAAO;EAAO;EAAW,CAAC;CAC7F,oBAAoB,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,UAAU;CAChD,cAAc;CACd,CAAC,CACD,QAAQ"}
|
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/approval-surface/models/approval-decision-reference-schema.d.ts
|
|
4
|
-
declare const ApprovalDecisionReferenceSchema: z.ZodObject<{
|
|
5
|
-
approvalId: z.ZodString;
|
|
6
|
-
callId: z.ZodString;
|
|
7
|
-
expiresAt: z.ZodString;
|
|
8
|
-
status: z.ZodEnum<{
|
|
9
|
-
approved: "approved";
|
|
10
|
-
denied: "denied";
|
|
11
|
-
expired: "expired";
|
|
12
|
-
}>;
|
|
13
|
-
}, z.core.$strict>;
|
|
14
|
-
type ApprovalDecisionReference = z.infer<typeof ApprovalDecisionReferenceSchema>;
|
|
15
|
-
declare const ApprovalRequiredResultSchema: z.ZodObject<{
|
|
16
|
-
error: z.ZodObject<{
|
|
17
|
-
message: z.ZodString;
|
|
18
|
-
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
-
safeDiagnostic: z.ZodOptional<z.ZodObject<{
|
|
20
|
-
code: z.ZodEnum<{
|
|
21
|
-
provider_unavailable: "provider_unavailable";
|
|
22
|
-
capability_denied: "capability_denied";
|
|
23
|
-
approval_required: "approval_required";
|
|
24
|
-
validation_failed: "validation_failed";
|
|
25
|
-
execution_failed: "execution_failed";
|
|
26
|
-
output_truncated: "output_truncated";
|
|
27
|
-
timeout: "timeout";
|
|
28
|
-
cancelled: "cancelled";
|
|
29
|
-
artifact_unavailable: "artifact_unavailable";
|
|
30
|
-
}>;
|
|
31
|
-
level: z.ZodEnum<{
|
|
32
|
-
error: "error";
|
|
33
|
-
debug: "debug";
|
|
34
|
-
info: "info";
|
|
35
|
-
warn: "warn";
|
|
36
|
-
}>;
|
|
37
|
-
safeMessage: z.ZodString;
|
|
38
|
-
safeParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
39
|
-
}, z.core.$strict>>;
|
|
40
|
-
code: z.ZodLiteral<"approval_required">;
|
|
41
|
-
}, z.core.$strict>;
|
|
42
|
-
id: z.ZodString;
|
|
43
|
-
status: z.ZodLiteral<"error">;
|
|
44
|
-
}, z.core.$strict>;
|
|
45
|
-
type ApprovalRequiredResult = z.infer<typeof ApprovalRequiredResultSchema>;
|
|
46
|
-
//#endregion
|
|
47
|
-
export { ApprovalDecisionReference, ApprovalDecisionReferenceSchema, ApprovalRequiredResult, ApprovalRequiredResultSchema };
|
|
48
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { a as ApprovalRequiredResult, i as ApprovalDecisionReferenceSchema, n as ApprovalChallengeReferenceSchema, o as ApprovalRequiredResultSchema, r as ApprovalDecisionReference, t as ApprovalChallengeReference } from "../index-BWE2_BcN.js";
|
|
2
|
+
export { ApprovalChallengeReference, ApprovalChallengeReferenceSchema, ApprovalDecisionReference, ApprovalDecisionReferenceSchema, ApprovalRequiredResult, ApprovalRequiredResultSchema };
|
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
//#region src/approval-surface/models/approval-decision-reference-schema.ts
|
|
4
|
-
const ApprovalDecisionReferenceSchema = z.object({
|
|
5
|
-
approvalId: z.string().min(1),
|
|
6
|
-
callId: ItemIdSchema,
|
|
7
|
-
expiresAt: z.string().datetime(),
|
|
8
|
-
status: z.enum([
|
|
9
|
-
"approved",
|
|
10
|
-
"denied",
|
|
11
|
-
"expired"
|
|
12
|
-
])
|
|
13
|
-
}).strict();
|
|
14
|
-
const ApprovalRequiredResultSchema = z.object({
|
|
15
|
-
error: PortalErrorSchema.extend({ code: z.literal("approval_required") }),
|
|
16
|
-
id: ItemIdSchema,
|
|
17
|
-
status: z.literal("error")
|
|
18
|
-
}).strict();
|
|
19
|
-
//#endregion
|
|
20
|
-
export { ApprovalDecisionReferenceSchema, ApprovalRequiredResultSchema };
|
|
21
|
-
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import { n as ApprovalDecisionReferenceSchema, r as ApprovalRequiredResultSchema, t as ApprovalChallengeReferenceSchema } from "../approval-surface-en5VAY5h.js";
|
|
2
|
+
export { ApprovalChallengeReferenceSchema, ApprovalDecisionReferenceSchema, ApprovalRequiredResultSchema };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { a as ItemIdSchema } from "./portal-error-schema-CQHgoFq4.js";
|
|
2
|
+
import { n as PortalApprovalRequiredCallItemResultSchema, t as PortalApprovalChallengeSchema } from "./portal-call-result-schema-ByxHRCEN.js";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
//#region src/approval-surface/models/approval-decision-reference-schema.ts
|
|
5
|
+
const ApprovalDecisionReferenceSchema = z.object({
|
|
6
|
+
approvalId: z.string().min(1),
|
|
7
|
+
callId: ItemIdSchema,
|
|
8
|
+
expiresAt: z.string().datetime(),
|
|
9
|
+
status: z.enum([
|
|
10
|
+
"approved",
|
|
11
|
+
"denied",
|
|
12
|
+
"expired"
|
|
13
|
+
])
|
|
14
|
+
}).strict();
|
|
15
|
+
const ApprovalRequiredResultSchema = PortalApprovalRequiredCallItemResultSchema;
|
|
16
|
+
const ApprovalChallengeReferenceSchema = PortalApprovalChallengeSchema;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { ApprovalDecisionReferenceSchema as n, ApprovalRequiredResultSchema as r, ApprovalChallengeReferenceSchema as t };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=approval-surface-en5VAY5h.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approval-surface-en5VAY5h.js","names":[],"sources":["../src/approval-surface/models/approval-decision-reference-schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { ItemIdSchema } from '../../contract-primitives/models/request-id-schema.js';\nimport {\n\tPortalApprovalChallengeSchema,\n\tPortalApprovalRequiredCallItemResultSchema,\n} from '../../portal-call-surface/models/portal-call-result-schema.js';\n\nexport const ApprovalDecisionReferenceSchema = z\n\t.object({\n\t\tapprovalId: z.string().min(1),\n\t\tcallId: ItemIdSchema,\n\t\texpiresAt: z.string().datetime(),\n\t\tstatus: z.enum(['approved', 'denied', 'expired']),\n\t})\n\t.strict();\n\nexport type ApprovalDecisionReference = z.infer<typeof ApprovalDecisionReferenceSchema>;\n\nexport const ApprovalRequiredResultSchema = PortalApprovalRequiredCallItemResultSchema;\n\nexport const ApprovalChallengeReferenceSchema = PortalApprovalChallengeSchema;\n\nexport type ApprovalRequiredResult = z.infer<typeof ApprovalRequiredResultSchema>;\nexport type ApprovalChallengeReference = z.infer<typeof ApprovalChallengeReferenceSchema>;\n"],"mappings":";;;;AAQA,MAAa,kCAAkC,EAC7C,OAAO;CACP,YAAY,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC7B,QAAQ;CACR,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,QAAQ,EAAE,KAAK;EAAC;EAAY;EAAU;EAAU,CAAC;CACjD,CAAC,CACD,QAAQ;AAIV,MAAa,+BAA+B;AAE5C,MAAa,mCAAmC"}
|
package/dist/{artifact-reference-schema-XiJ280uV.js → artifact-reference-schema-CiEjxYPd.js}
RENAMED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/artifact-surface/models/artifact-reference-schema.ts
|
|
3
3
|
const ArtifactReferenceSchema = z.object({
|
|
4
|
-
byteLength: z.number().int().nonnegative()
|
|
5
|
-
expiresAt: z.string().datetime()
|
|
4
|
+
byteLength: z.number().int().nonnegative(),
|
|
5
|
+
expiresAt: z.string().datetime(),
|
|
6
|
+
fingerprint: z.string().regex(/^sha256:[0-9a-f]{64}$/u),
|
|
6
7
|
id: z.string().min(1),
|
|
7
8
|
mediaType: z.string().optional()
|
|
8
9
|
}).strict();
|
|
9
10
|
//#endregion
|
|
10
11
|
export { ArtifactReferenceSchema as t };
|
|
11
12
|
|
|
12
|
-
//# sourceMappingURL=artifact-reference-schema-
|
|
13
|
+
//# sourceMappingURL=artifact-reference-schema-CiEjxYPd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifact-reference-schema-CiEjxYPd.js","names":[],"sources":["../src/artifact-surface/models/artifact-reference-schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nexport const ArtifactReferenceSchema = z\n\t.object({\n\t\tbyteLength: z.number().int().nonnegative(),\n\t\texpiresAt: z.string().datetime(),\n\t\tfingerprint: z.string().regex(/^sha256:[0-9a-f]{64}$/u),\n\t\tid: z.string().min(1),\n\t\tmediaType: z.string().optional(),\n\t})\n\t.strict();\n\nexport type ArtifactReference = z.infer<typeof ArtifactReferenceSchema>;\n"],"mappings":";;AAEA,MAAa,0BAA0B,EACrC,OAAO;CACP,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,aAAa;CAC1C,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,aAAa,EAAE,QAAQ,CAAC,MAAM,yBAAyB;CACvD,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE;CACrB,WAAW,EAAE,QAAQ,CAAC,UAAU;CAChC,CAAC,CACD,QAAQ"}
|
|
@@ -1,49 +1,2 @@
|
|
|
1
|
-
import { l as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/artifact-surface/models/artifact-reference-schema.d.ts
|
|
5
|
-
declare const ArtifactReferenceSchema: z.ZodObject<{
|
|
6
|
-
byteLength: z.ZodOptional<z.ZodNumber>;
|
|
7
|
-
expiresAt: z.ZodOptional<z.ZodString>;
|
|
8
|
-
id: z.ZodString;
|
|
9
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, z.core.$strict>;
|
|
11
|
-
type ArtifactReference = z.infer<typeof ArtifactReferenceSchema>;
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/artifact-surface/models/portal-artifact-contract-schema.d.ts
|
|
14
|
-
declare const PortalArtifactRecordSchema: z.ZodObject<{
|
|
15
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
16
|
-
reference: z.ZodObject<{
|
|
17
|
-
byteLength: z.ZodOptional<z.ZodNumber>;
|
|
18
|
-
expiresAt: z.ZodOptional<z.ZodString>;
|
|
19
|
-
id: z.ZodString;
|
|
20
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
21
|
-
}, z.core.$strict>;
|
|
22
|
-
redactionProfile: z.ZodString;
|
|
23
|
-
}, z.core.$strict>;
|
|
24
|
-
type PortalArtifactRecord = z.infer<typeof PortalArtifactRecordSchema>;
|
|
25
|
-
declare const PortalArtifactReadRequestSchema: z.ZodObject<{
|
|
26
|
-
artifactId: z.ZodString;
|
|
27
|
-
maxBytes: z.ZodNumber;
|
|
28
|
-
}, z.core.$strict>;
|
|
29
|
-
type PortalArtifactReadRequest = z.infer<typeof PortalArtifactReadRequestSchema>;
|
|
30
|
-
declare const PortalArtifactReadResultSchema: z.ZodObject<{
|
|
31
|
-
contentBase64: z.ZodString;
|
|
32
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
33
|
-
reference: z.ZodObject<{
|
|
34
|
-
byteLength: z.ZodOptional<z.ZodNumber>;
|
|
35
|
-
expiresAt: z.ZodOptional<z.ZodString>;
|
|
36
|
-
id: z.ZodString;
|
|
37
|
-
mediaType: z.ZodOptional<z.ZodString>;
|
|
38
|
-
}, z.core.$strict>;
|
|
39
|
-
truncated: z.ZodDefault<z.ZodBoolean>;
|
|
40
|
-
}, z.core.$strict>;
|
|
41
|
-
type PortalArtifactReadResult = z.infer<typeof PortalArtifactReadResultSchema>;
|
|
42
|
-
declare const PortalArtifactRedactorSchema: z.ZodObject<{
|
|
43
|
-
maxModelVisibleBytes: z.ZodNumber;
|
|
44
|
-
profile: z.ZodString;
|
|
45
|
-
}, z.core.$strict>;
|
|
46
|
-
type PortalArtifactRedactor = z.infer<typeof PortalArtifactRedactorSchema>;
|
|
47
|
-
//#endregion
|
|
48
|
-
export { ArtifactReference, ArtifactReferenceSchema, PortalArtifactReadRequest, PortalArtifactReadRequestSchema, PortalArtifactReadResult, PortalArtifactReadResultSchema, PortalArtifactRecord, PortalArtifactRecordSchema, PortalArtifactRedactor, PortalArtifactRedactorSchema };
|
|
49
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
import { a as PortalArtifactReadResourceRequestSchema, c as PortalArtifactReadRequest, d as PortalArtifactReadResultSchema, f as PortalArtifactRecord, h as PortalArtifactRedactorSchema, i as PortalArtifactReadResourceRequest, l as PortalArtifactReadRequestSchema, m as PortalArtifactRedactor, n as ArtifactReferenceSchema, o as createPortalArtifactReadResourceRequest, p as PortalArtifactRecordSchema, r as PORTAL_ARTIFACT_READ_REQUEST_META_KEY, s as parsePortalArtifactReadResourceRequest, t as ArtifactReference, u as PortalArtifactReadResult } from "../index-B5hgm1KH.js";
|
|
2
|
+
export { ArtifactReference, ArtifactReferenceSchema, PORTAL_ARTIFACT_READ_REQUEST_META_KEY, PortalArtifactReadRequest, PortalArtifactReadRequestSchema, PortalArtifactReadResourceRequest, PortalArtifactReadResourceRequestSchema, PortalArtifactReadResult, PortalArtifactReadResultSchema, PortalArtifactRecord, PortalArtifactRecordSchema, PortalArtifactRedactor, PortalArtifactRedactorSchema, createPortalArtifactReadResourceRequest, parsePortalArtifactReadResourceRequest };
|