@agent-vm/controller-execution-contracts 0.0.109
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/LICENSE +21 -0
- package/dist/controller-dispatch-boundary/index.d.ts +119 -0
- package/dist/controller-dispatch-boundary/index.d.ts.map +1 -0
- package/dist/controller-dispatch-boundary/index.js +4 -0
- package/dist/controller-dispatch-intent-schema-dw3ugqpe.js +18 -0
- package/dist/controller-dispatch-intent-schema-dw3ugqpe.js.map +1 -0
- package/dist/controller-dispatch-intent-schema-fqjx2pb2.d.ts +26 -0
- package/dist/controller-dispatch-intent-schema-fqjx2pb2.d.ts.map +1 -0
- package/dist/controller-execution-result-schema-BN0cqzhi.js +18 -0
- package/dist/controller-execution-result-schema-BN0cqzhi.js.map +1 -0
- package/dist/controller-host-action-boundary/index.d.ts +117 -0
- package/dist/controller-host-action-boundary/index.d.ts.map +1 -0
- package/dist/controller-host-action-boundary/index.js +17 -0
- package/dist/controller-host-action-boundary/index.js.map +1 -0
- package/dist/execution-fingerprint-schema-D4J978Oa.js +21 -0
- package/dist/execution-fingerprint-schema-D4J978Oa.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8 -0
- package/dist/managed-vm-exec-request-schema-BkkZ7zYn.d.ts +42 -0
- package/dist/managed-vm-exec-request-schema-BkkZ7zYn.d.ts.map +1 -0
- package/dist/managed-vm-exec-request-schema-oPmsc4H8.js +97 -0
- package/dist/managed-vm-exec-request-schema-oPmsc4H8.js.map +1 -0
- package/dist/testing/index.d.ts +24 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +43 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/tool-vm-runner-boundary/index.d.ts +153 -0
- package/dist/tool-vm-runner-boundary/index.d.ts.map +1 -0
- package/dist/tool-vm-runner-boundary/index.js +13 -0
- package/dist/tool-vm-runner-boundary/index.js.map +1 -0
- package/package.json +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-2026 Shravan Sunder
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { n as ControllerDispatchIntentSchema, r as ControllerTrustedScopeSchema, t as ControllerDispatchIntent } from "../controller-dispatch-intent-schema-fqjx2pb2.js";
|
|
2
|
+
import * as _$_agent_vm_agent_portal_sdk0 from "@agent-vm/agent-portal-sdk";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/controller-dispatch-boundary/models/controller-execution-result-schema.d.ts
|
|
6
|
+
declare const ControllerExecutionResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
|
+
auditCorrelationId: z.ZodString;
|
|
8
|
+
diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
9
|
+
code: z.ZodEnum<{
|
|
10
|
+
approval_required: "approval_required";
|
|
11
|
+
capability_denied: "capability_denied";
|
|
12
|
+
validation_failed: "validation_failed";
|
|
13
|
+
provider_unavailable: "provider_unavailable";
|
|
14
|
+
execution_failed: "execution_failed";
|
|
15
|
+
cancelled: "cancelled";
|
|
16
|
+
timeout: "timeout";
|
|
17
|
+
output_truncated: "output_truncated";
|
|
18
|
+
artifact_unavailable: "artifact_unavailable";
|
|
19
|
+
}>;
|
|
20
|
+
level: z.ZodEnum<{
|
|
21
|
+
error: "error";
|
|
22
|
+
debug: "debug";
|
|
23
|
+
info: "info";
|
|
24
|
+
warn: "warn";
|
|
25
|
+
}>;
|
|
26
|
+
safeMessage: z.ZodString;
|
|
27
|
+
safeParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
28
|
+
}, z.core.$strict>>>;
|
|
29
|
+
status: z.ZodLiteral<"ok">;
|
|
30
|
+
value: z.ZodType<_$_agent_vm_agent_portal_sdk0.JsonValue, unknown, z.core.$ZodTypeInternals<_$_agent_vm_agent_portal_sdk0.JsonValue, unknown>>;
|
|
31
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
32
|
+
auditCorrelationId: z.ZodOptional<z.ZodString>;
|
|
33
|
+
diagnostics: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
34
|
+
code: z.ZodEnum<{
|
|
35
|
+
approval_required: "approval_required";
|
|
36
|
+
capability_denied: "capability_denied";
|
|
37
|
+
validation_failed: "validation_failed";
|
|
38
|
+
provider_unavailable: "provider_unavailable";
|
|
39
|
+
execution_failed: "execution_failed";
|
|
40
|
+
cancelled: "cancelled";
|
|
41
|
+
timeout: "timeout";
|
|
42
|
+
output_truncated: "output_truncated";
|
|
43
|
+
artifact_unavailable: "artifact_unavailable";
|
|
44
|
+
}>;
|
|
45
|
+
level: z.ZodEnum<{
|
|
46
|
+
error: "error";
|
|
47
|
+
debug: "debug";
|
|
48
|
+
info: "info";
|
|
49
|
+
warn: "warn";
|
|
50
|
+
}>;
|
|
51
|
+
safeMessage: z.ZodString;
|
|
52
|
+
safeParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
53
|
+
}, z.core.$strict>>>;
|
|
54
|
+
error: z.ZodObject<{
|
|
55
|
+
code: z.ZodEnum<{
|
|
56
|
+
invalid_request: "invalid_request";
|
|
57
|
+
not_found: "not_found";
|
|
58
|
+
not_authorized: "not_authorized";
|
|
59
|
+
approval_required: "approval_required";
|
|
60
|
+
capability_denied: "capability_denied";
|
|
61
|
+
validation_failed: "validation_failed";
|
|
62
|
+
provider_unavailable: "provider_unavailable";
|
|
63
|
+
execution_failed: "execution_failed";
|
|
64
|
+
cancelled: "cancelled";
|
|
65
|
+
timeout: "timeout";
|
|
66
|
+
}>;
|
|
67
|
+
message: z.ZodString;
|
|
68
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
safeDiagnostic: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
code: z.ZodEnum<{
|
|
71
|
+
approval_required: "approval_required";
|
|
72
|
+
capability_denied: "capability_denied";
|
|
73
|
+
validation_failed: "validation_failed";
|
|
74
|
+
provider_unavailable: "provider_unavailable";
|
|
75
|
+
execution_failed: "execution_failed";
|
|
76
|
+
cancelled: "cancelled";
|
|
77
|
+
timeout: "timeout";
|
|
78
|
+
output_truncated: "output_truncated";
|
|
79
|
+
artifact_unavailable: "artifact_unavailable";
|
|
80
|
+
}>;
|
|
81
|
+
level: z.ZodEnum<{
|
|
82
|
+
error: "error";
|
|
83
|
+
debug: "debug";
|
|
84
|
+
info: "info";
|
|
85
|
+
warn: "warn";
|
|
86
|
+
}>;
|
|
87
|
+
safeMessage: z.ZodString;
|
|
88
|
+
safeParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
89
|
+
}, z.core.$strict>>;
|
|
90
|
+
}, z.core.$strict>;
|
|
91
|
+
status: z.ZodLiteral<"error">;
|
|
92
|
+
}, z.core.$strict>], "status">;
|
|
93
|
+
type ControllerExecutionResult = z.infer<typeof ControllerExecutionResultSchema>;
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/controller-dispatch-boundary/models/execution-fingerprint-schema.d.ts
|
|
96
|
+
declare const ExecutionFingerprintSchema: z.ZodObject<{
|
|
97
|
+
agentId: z.ZodString;
|
|
98
|
+
artifactIntentHash: z.ZodString;
|
|
99
|
+
backendBindingRevision: z.ZodString;
|
|
100
|
+
canonicalArgumentHash: z.ZodString;
|
|
101
|
+
capability: z.ZodObject<{
|
|
102
|
+
namespace: z.ZodString;
|
|
103
|
+
name: z.ZodString;
|
|
104
|
+
}, z.core.$strict>;
|
|
105
|
+
catalogRevision: z.ZodString;
|
|
106
|
+
custodyMode: z.ZodEnum<{
|
|
107
|
+
ephemeral_material: "ephemeral_material";
|
|
108
|
+
controller_durable_state: "controller_durable_state";
|
|
109
|
+
}>;
|
|
110
|
+
egressPolicyHash: z.ZodString;
|
|
111
|
+
executableTemplateRevision: z.ZodString;
|
|
112
|
+
operatorUserId: z.ZodOptional<z.ZodString>;
|
|
113
|
+
outputPolicyHash: z.ZodString;
|
|
114
|
+
policyRevision: z.ZodString;
|
|
115
|
+
}, z.core.$strict>;
|
|
116
|
+
type ExecutionFingerprint = z.infer<typeof ExecutionFingerprintSchema>;
|
|
117
|
+
//#endregion
|
|
118
|
+
export { ControllerDispatchIntent, ControllerDispatchIntentSchema, ControllerExecutionResult, ControllerExecutionResultSchema, ControllerTrustedScopeSchema, ExecutionFingerprint, ExecutionFingerprintSchema };
|
|
119
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/controller-dispatch-boundary/models/controller-execution-result-schema.ts","../../src/controller-dispatch-boundary/models/execution-fingerprint-schema.ts"],"mappings":";;;;;cAOa,+BAAA,EAA+B,CAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAmBhC,yBAAA,GAA4B,CAAA,CAAE,KAAA,QAAa,+BAAA;;;cCvB1C,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;KAiB3B,oBAAA,GAAuB,CAAA,CAAE,KAAA,QAAa,0BAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { n as ControllerTrustedScopeSchema, t as ControllerDispatchIntentSchema } from "../controller-dispatch-intent-schema-dw3ugqpe.js";
|
|
2
|
+
import { t as ControllerExecutionResultSchema } from "../controller-execution-result-schema-BN0cqzhi.js";
|
|
3
|
+
import { t as ExecutionFingerprintSchema } from "../execution-fingerprint-schema-D4J978Oa.js";
|
|
4
|
+
export { ControllerDispatchIntentSchema, ControllerExecutionResultSchema, ControllerTrustedScopeSchema, ExecutionFingerprintSchema };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CapabilityReferenceSchema, JsonObjectSchema } from "@agent-vm/agent-portal-sdk";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/controller-dispatch-boundary/models/controller-dispatch-intent-schema.ts
|
|
4
|
+
const ControllerTrustedScopeSchema = z.object({
|
|
5
|
+
agentId: z.string().min(1),
|
|
6
|
+
profileId: z.string().min(1),
|
|
7
|
+
userId: z.string().min(1).optional()
|
|
8
|
+
}).strict();
|
|
9
|
+
const ControllerDispatchIntentSchema = z.object({
|
|
10
|
+
auditCorrelationId: z.string().min(1),
|
|
11
|
+
canonicalArguments: JsonObjectSchema,
|
|
12
|
+
capability: CapabilityReferenceSchema,
|
|
13
|
+
trustedScope: ControllerTrustedScopeSchema
|
|
14
|
+
}).strict();
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ControllerTrustedScopeSchema as n, ControllerDispatchIntentSchema as t };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=controller-dispatch-intent-schema-dw3ugqpe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller-dispatch-intent-schema-dw3ugqpe.js","names":[],"sources":["../src/controller-dispatch-boundary/models/controller-dispatch-intent-schema.ts"],"sourcesContent":["import { CapabilityReferenceSchema, JsonObjectSchema } from '@agent-vm/agent-portal-sdk';\nimport { z } from 'zod';\n\nexport const ControllerTrustedScopeSchema = z\n\t.object({\n\t\tagentId: z.string().min(1),\n\t\tprofileId: z.string().min(1),\n\t\tuserId: z.string().min(1).optional(),\n\t})\n\t.strict();\n\nexport const ControllerDispatchIntentSchema = z\n\t.object({\n\t\tauditCorrelationId: z.string().min(1),\n\t\tcanonicalArguments: JsonObjectSchema,\n\t\tcapability: CapabilityReferenceSchema,\n\t\ttrustedScope: ControllerTrustedScopeSchema,\n\t})\n\t.strict();\n\nexport type ControllerDispatchIntent = z.infer<typeof ControllerDispatchIntentSchema>;\n"],"mappings":";;;AAGA,MAAa,+BAA+B,EAC1C,OAAO;CACP,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC1B,WAAW,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC5B,QAAQ,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,UAAU;CACpC,CAAC,CACD,QAAQ;AAEV,MAAa,iCAAiC,EAC5C,OAAO;CACP,oBAAoB,EAAE,QAAQ,CAAC,IAAI,EAAE;CACrC,oBAAoB;CACpB,YAAY;CACZ,cAAc;CACd,CAAC,CACD,QAAQ"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as _$_agent_vm_agent_portal_sdk0 from "@agent-vm/agent-portal-sdk";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/controller-dispatch-boundary/models/controller-dispatch-intent-schema.d.ts
|
|
5
|
+
declare const ControllerTrustedScopeSchema: z.ZodObject<{
|
|
6
|
+
agentId: z.ZodString;
|
|
7
|
+
profileId: z.ZodString;
|
|
8
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strict>;
|
|
10
|
+
declare const ControllerDispatchIntentSchema: z.ZodObject<{
|
|
11
|
+
auditCorrelationId: z.ZodString;
|
|
12
|
+
canonicalArguments: z.ZodType<_$_agent_vm_agent_portal_sdk0.JsonObject, unknown, z.core.$ZodTypeInternals<_$_agent_vm_agent_portal_sdk0.JsonObject, unknown>>;
|
|
13
|
+
capability: z.ZodObject<{
|
|
14
|
+
namespace: z.ZodString;
|
|
15
|
+
name: z.ZodString;
|
|
16
|
+
}, z.core.$strict>;
|
|
17
|
+
trustedScope: z.ZodObject<{
|
|
18
|
+
agentId: z.ZodString;
|
|
19
|
+
profileId: z.ZodString;
|
|
20
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
}, z.core.$strict>;
|
|
23
|
+
type ControllerDispatchIntent = z.infer<typeof ControllerDispatchIntentSchema>;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { ControllerDispatchIntentSchema as n, ControllerTrustedScopeSchema as r, ControllerDispatchIntent as t };
|
|
26
|
+
//# sourceMappingURL=controller-dispatch-intent-schema-fqjx2pb2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller-dispatch-intent-schema-fqjx2pb2.d.ts","names":[],"sources":["../src/controller-dispatch-boundary/models/controller-dispatch-intent-schema.ts"],"mappings":";;;;cAGa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAQ5B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;KAS/B,wBAAA,GAA2B,CAAA,CAAE,KAAA,QAAa,8BAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JsonValueSchema, PortalErrorSchema, SafeDiagnosticSchema } from "@agent-vm/agent-portal-sdk";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/controller-dispatch-boundary/models/controller-execution-result-schema.ts
|
|
4
|
+
const ControllerExecutionResultSchema = z.discriminatedUnion("status", [z.object({
|
|
5
|
+
auditCorrelationId: z.string().min(1),
|
|
6
|
+
diagnostics: z.array(SafeDiagnosticSchema).default([]),
|
|
7
|
+
status: z.literal("ok"),
|
|
8
|
+
value: JsonValueSchema
|
|
9
|
+
}).strict(), z.object({
|
|
10
|
+
auditCorrelationId: z.string().min(1).optional(),
|
|
11
|
+
diagnostics: z.array(SafeDiagnosticSchema).default([]),
|
|
12
|
+
error: PortalErrorSchema,
|
|
13
|
+
status: z.literal("error")
|
|
14
|
+
}).strict()]);
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ControllerExecutionResultSchema as t };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=controller-execution-result-schema-BN0cqzhi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"controller-execution-result-schema-BN0cqzhi.js","names":[],"sources":["../src/controller-dispatch-boundary/models/controller-execution-result-schema.ts"],"sourcesContent":["import {\n\tJsonValueSchema,\n\tPortalErrorSchema,\n\tSafeDiagnosticSchema,\n} from '@agent-vm/agent-portal-sdk';\nimport { z } from 'zod';\n\nexport const ControllerExecutionResultSchema = z.discriminatedUnion('status', [\n\tz\n\t\t.object({\n\t\t\tauditCorrelationId: z.string().min(1),\n\t\t\tdiagnostics: z.array(SafeDiagnosticSchema).default([]),\n\t\t\tstatus: z.literal('ok'),\n\t\t\tvalue: JsonValueSchema,\n\t\t})\n\t\t.strict(),\n\tz\n\t\t.object({\n\t\t\tauditCorrelationId: z.string().min(1).optional(),\n\t\t\tdiagnostics: z.array(SafeDiagnosticSchema).default([]),\n\t\t\terror: PortalErrorSchema,\n\t\t\tstatus: z.literal('error'),\n\t\t})\n\t\t.strict(),\n]);\n\nexport type ControllerExecutionResult = z.infer<typeof ControllerExecutionResultSchema>;\n"],"mappings":";;;AAOA,MAAa,kCAAkC,EAAE,mBAAmB,UAAU,CAC7E,EACE,OAAO;CACP,oBAAoB,EAAE,QAAQ,CAAC,IAAI,EAAE;CACrC,aAAa,EAAE,MAAM,qBAAqB,CAAC,QAAQ,EAAE,CAAC;CACtD,QAAQ,EAAE,QAAQ,KAAK;CACvB,OAAO;CACP,CAAC,CACD,QAAQ,EACV,EACE,OAAO;CACP,oBAAoB,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,UAAU;CAChD,aAAa,EAAE,MAAM,qBAAqB,CAAC,QAAQ,EAAE,CAAC;CACtD,OAAO;CACP,QAAQ,EAAE,QAAQ,QAAQ;CAC1B,CAAC,CACD,QAAQ,CACV,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import * as _$_agent_vm_agent_portal_sdk0 from "@agent-vm/agent-portal-sdk";
|
|
2
|
+
import * as _$zod from "zod";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import * as _$zod_v4_core0 from "zod/v4/core";
|
|
5
|
+
|
|
6
|
+
//#region src/controller-host-action-boundary/models/controller-host-action-request-schema.d.ts
|
|
7
|
+
declare const ControllerHostActionRequestSchema: z.ZodObject<{
|
|
8
|
+
canonicalArguments: z.ZodType<_$_agent_vm_agent_portal_sdk0.JsonObject, unknown, z.core.$ZodTypeInternals<_$_agent_vm_agent_portal_sdk0.JsonObject, unknown>>;
|
|
9
|
+
dispatch: z.ZodObject<{
|
|
10
|
+
auditCorrelationId: z.ZodString;
|
|
11
|
+
canonicalArguments: z.ZodType<_$_agent_vm_agent_portal_sdk0.JsonObject, unknown, z.core.$ZodTypeInternals<_$_agent_vm_agent_portal_sdk0.JsonObject, unknown>>;
|
|
12
|
+
capability: z.ZodObject<{
|
|
13
|
+
namespace: z.ZodString;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
trustedScope: z.ZodObject<{
|
|
17
|
+
agentId: z.ZodString;
|
|
18
|
+
profileId: z.ZodString;
|
|
19
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
hostActionName: z.ZodString;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
type ControllerHostActionRequest = z.infer<typeof ControllerHostActionRequestSchema>;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/controller-host-action-boundary/models/controller-host-action-result-schema.d.ts
|
|
27
|
+
declare const ControllerHostActionResultSchema: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
28
|
+
auditCorrelationId: _$zod.ZodString;
|
|
29
|
+
diagnostics: _$zod.ZodDefault<_$zod.ZodArray<_$zod.ZodObject<{
|
|
30
|
+
code: _$zod.ZodEnum<{
|
|
31
|
+
approval_required: "approval_required";
|
|
32
|
+
capability_denied: "capability_denied";
|
|
33
|
+
validation_failed: "validation_failed";
|
|
34
|
+
provider_unavailable: "provider_unavailable";
|
|
35
|
+
execution_failed: "execution_failed";
|
|
36
|
+
cancelled: "cancelled";
|
|
37
|
+
timeout: "timeout";
|
|
38
|
+
output_truncated: "output_truncated";
|
|
39
|
+
artifact_unavailable: "artifact_unavailable";
|
|
40
|
+
}>;
|
|
41
|
+
level: _$zod.ZodEnum<{
|
|
42
|
+
error: "error";
|
|
43
|
+
debug: "debug";
|
|
44
|
+
info: "info";
|
|
45
|
+
warn: "warn";
|
|
46
|
+
}>;
|
|
47
|
+
safeMessage: _$zod.ZodString;
|
|
48
|
+
safeParams: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean]>>>;
|
|
49
|
+
}, _$zod_v4_core0.$strict>>>;
|
|
50
|
+
status: _$zod.ZodLiteral<"ok">;
|
|
51
|
+
value: _$zod.ZodType<_$_agent_vm_agent_portal_sdk0.JsonValue, unknown, _$zod_v4_core0.$ZodTypeInternals<_$_agent_vm_agent_portal_sdk0.JsonValue, unknown>>;
|
|
52
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
53
|
+
auditCorrelationId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
54
|
+
diagnostics: _$zod.ZodDefault<_$zod.ZodArray<_$zod.ZodObject<{
|
|
55
|
+
code: _$zod.ZodEnum<{
|
|
56
|
+
approval_required: "approval_required";
|
|
57
|
+
capability_denied: "capability_denied";
|
|
58
|
+
validation_failed: "validation_failed";
|
|
59
|
+
provider_unavailable: "provider_unavailable";
|
|
60
|
+
execution_failed: "execution_failed";
|
|
61
|
+
cancelled: "cancelled";
|
|
62
|
+
timeout: "timeout";
|
|
63
|
+
output_truncated: "output_truncated";
|
|
64
|
+
artifact_unavailable: "artifact_unavailable";
|
|
65
|
+
}>;
|
|
66
|
+
level: _$zod.ZodEnum<{
|
|
67
|
+
error: "error";
|
|
68
|
+
debug: "debug";
|
|
69
|
+
info: "info";
|
|
70
|
+
warn: "warn";
|
|
71
|
+
}>;
|
|
72
|
+
safeMessage: _$zod.ZodString;
|
|
73
|
+
safeParams: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean]>>>;
|
|
74
|
+
}, _$zod_v4_core0.$strict>>>;
|
|
75
|
+
error: _$zod.ZodObject<{
|
|
76
|
+
code: _$zod.ZodEnum<{
|
|
77
|
+
invalid_request: "invalid_request";
|
|
78
|
+
not_found: "not_found";
|
|
79
|
+
not_authorized: "not_authorized";
|
|
80
|
+
approval_required: "approval_required";
|
|
81
|
+
capability_denied: "capability_denied";
|
|
82
|
+
validation_failed: "validation_failed";
|
|
83
|
+
provider_unavailable: "provider_unavailable";
|
|
84
|
+
execution_failed: "execution_failed";
|
|
85
|
+
cancelled: "cancelled";
|
|
86
|
+
timeout: "timeout";
|
|
87
|
+
}>;
|
|
88
|
+
message: _$zod.ZodString;
|
|
89
|
+
retryable: _$zod.ZodOptional<_$zod.ZodBoolean>;
|
|
90
|
+
safeDiagnostic: _$zod.ZodOptional<_$zod.ZodObject<{
|
|
91
|
+
code: _$zod.ZodEnum<{
|
|
92
|
+
approval_required: "approval_required";
|
|
93
|
+
capability_denied: "capability_denied";
|
|
94
|
+
validation_failed: "validation_failed";
|
|
95
|
+
provider_unavailable: "provider_unavailable";
|
|
96
|
+
execution_failed: "execution_failed";
|
|
97
|
+
cancelled: "cancelled";
|
|
98
|
+
timeout: "timeout";
|
|
99
|
+
output_truncated: "output_truncated";
|
|
100
|
+
artifact_unavailable: "artifact_unavailable";
|
|
101
|
+
}>;
|
|
102
|
+
level: _$zod.ZodEnum<{
|
|
103
|
+
error: "error";
|
|
104
|
+
debug: "debug";
|
|
105
|
+
info: "info";
|
|
106
|
+
warn: "warn";
|
|
107
|
+
}>;
|
|
108
|
+
safeMessage: _$zod.ZodString;
|
|
109
|
+
safeParams: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodNumber, _$zod.ZodBoolean]>>>;
|
|
110
|
+
}, _$zod_v4_core0.$strict>>;
|
|
111
|
+
}, _$zod_v4_core0.$strict>;
|
|
112
|
+
status: _$zod.ZodLiteral<"error">;
|
|
113
|
+
}, _$zod_v4_core0.$strict>], "status">;
|
|
114
|
+
type ControllerHostActionResult = typeof ControllerHostActionResultSchema._output;
|
|
115
|
+
//#endregion
|
|
116
|
+
export { ControllerHostActionRequest, ControllerHostActionRequestSchema, ControllerHostActionResult, ControllerHostActionResultSchema };
|
|
117
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/controller-host-action-boundary/models/controller-host-action-request-schema.ts","../../src/controller-host-action-boundary/models/controller-host-action-result-schema.ts"],"mappings":";;;;;;cAKa,iCAAA,EAAiC,CAAA,CAAA,SAAA;gCAMpC,6BAAA,CAAA,UAAA;;;;;;;;;;;;;;;;KAEE,2BAAA,GAA8B,CAAA,CAAE,KAAA,QAAa,iCAAA;;;cCX5C,gCAAA,QAAgC,qBAAA,QAAA,SAAA;sBAAkC,KAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;wCAAlC,KAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEjC,0BAAA,UAAoC,gCAAA,CAAiC,OAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { t as ControllerDispatchIntentSchema } from "../controller-dispatch-intent-schema-dw3ugqpe.js";
|
|
2
|
+
import { t as ControllerExecutionResultSchema } from "../controller-execution-result-schema-BN0cqzhi.js";
|
|
3
|
+
import { JsonObjectSchema } from "@agent-vm/agent-portal-sdk";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
//#region src/controller-host-action-boundary/models/controller-host-action-request-schema.ts
|
|
6
|
+
const ControllerHostActionRequestSchema = z.object({
|
|
7
|
+
canonicalArguments: JsonObjectSchema,
|
|
8
|
+
dispatch: ControllerDispatchIntentSchema,
|
|
9
|
+
hostActionName: z.string().min(1)
|
|
10
|
+
}).strict();
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/controller-host-action-boundary/models/controller-host-action-result-schema.ts
|
|
13
|
+
const ControllerHostActionResultSchema = ControllerExecutionResultSchema;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ControllerHostActionRequestSchema, ControllerHostActionResultSchema };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/controller-host-action-boundary/models/controller-host-action-request-schema.ts","../../src/controller-host-action-boundary/models/controller-host-action-result-schema.ts"],"sourcesContent":["import { JsonObjectSchema } from '@agent-vm/agent-portal-sdk';\nimport { z } from 'zod';\n\nimport { ControllerDispatchIntentSchema } from '../../controller-dispatch-boundary/models/controller-dispatch-intent-schema.js';\n\nexport const ControllerHostActionRequestSchema = z\n\t.object({\n\t\tcanonicalArguments: JsonObjectSchema,\n\t\tdispatch: ControllerDispatchIntentSchema,\n\t\thostActionName: z.string().min(1),\n\t})\n\t.strict();\n\nexport type ControllerHostActionRequest = z.infer<typeof ControllerHostActionRequestSchema>;\n","import { ControllerExecutionResultSchema } from '../../controller-dispatch-boundary/models/controller-execution-result-schema.js';\n\nexport const ControllerHostActionResultSchema = ControllerExecutionResultSchema;\n\nexport type ControllerHostActionResult = typeof ControllerHostActionResultSchema._output;\n"],"mappings":";;;;;AAKA,MAAa,oCAAoC,EAC/C,OAAO;CACP,oBAAoB;CACpB,UAAU;CACV,gBAAgB,EAAE,QAAQ,CAAC,IAAI,EAAE;CACjC,CAAC,CACD,QAAQ;;;ACTV,MAAa,mCAAmC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CapabilityReferenceSchema } from "@agent-vm/agent-portal-sdk";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/controller-dispatch-boundary/models/execution-fingerprint-schema.ts
|
|
4
|
+
const ExecutionFingerprintSchema = z.object({
|
|
5
|
+
agentId: z.string().min(1),
|
|
6
|
+
artifactIntentHash: z.string().min(1),
|
|
7
|
+
backendBindingRevision: z.string().min(1),
|
|
8
|
+
canonicalArgumentHash: z.string().min(1),
|
|
9
|
+
capability: CapabilityReferenceSchema,
|
|
10
|
+
catalogRevision: z.string().min(1),
|
|
11
|
+
custodyMode: z.enum(["ephemeral_material", "controller_durable_state"]),
|
|
12
|
+
egressPolicyHash: z.string().min(1),
|
|
13
|
+
executableTemplateRevision: z.string().min(1),
|
|
14
|
+
operatorUserId: z.string().min(1).optional(),
|
|
15
|
+
outputPolicyHash: z.string().min(1),
|
|
16
|
+
policyRevision: z.string().min(1)
|
|
17
|
+
}).strict();
|
|
18
|
+
//#endregion
|
|
19
|
+
export { ExecutionFingerprintSchema as t };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=execution-fingerprint-schema-D4J978Oa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-fingerprint-schema-D4J978Oa.js","names":[],"sources":["../src/controller-dispatch-boundary/models/execution-fingerprint-schema.ts"],"sourcesContent":["import { CapabilityReferenceSchema } from '@agent-vm/agent-portal-sdk';\nimport { z } from 'zod';\n\nexport const ExecutionFingerprintSchema = z\n\t.object({\n\t\tagentId: z.string().min(1),\n\t\tartifactIntentHash: z.string().min(1),\n\t\tbackendBindingRevision: z.string().min(1),\n\t\tcanonicalArgumentHash: z.string().min(1),\n\t\tcapability: CapabilityReferenceSchema,\n\t\tcatalogRevision: z.string().min(1),\n\t\tcustodyMode: z.enum(['ephemeral_material', 'controller_durable_state']),\n\t\tegressPolicyHash: z.string().min(1),\n\t\texecutableTemplateRevision: z.string().min(1),\n\t\toperatorUserId: z.string().min(1).optional(),\n\t\toutputPolicyHash: z.string().min(1),\n\t\tpolicyRevision: z.string().min(1),\n\t})\n\t.strict();\n\nexport type ExecutionFingerprint = z.infer<typeof ExecutionFingerprintSchema>;\n"],"mappings":";;;AAGA,MAAa,6BAA6B,EACxC,OAAO;CACP,SAAS,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC1B,oBAAoB,EAAE,QAAQ,CAAC,IAAI,EAAE;CACrC,wBAAwB,EAAE,QAAQ,CAAC,IAAI,EAAE;CACzC,uBAAuB,EAAE,QAAQ,CAAC,IAAI,EAAE;CACxC,YAAY;CACZ,iBAAiB,EAAE,QAAQ,CAAC,IAAI,EAAE;CAClC,aAAa,EAAE,KAAK,CAAC,sBAAsB,2BAA2B,CAAC;CACvE,kBAAkB,EAAE,QAAQ,CAAC,IAAI,EAAE;CACnC,4BAA4B,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC7C,gBAAgB,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,UAAU;CAC5C,kBAAkB,EAAE,QAAQ,CAAC,IAAI,EAAE;CACnC,gBAAgB,EAAE,QAAQ,CAAC,IAAI,EAAE;CACjC,CAAC,CACD,QAAQ"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { n as ControllerDispatchIntentSchema, r as ControllerTrustedScopeSchema, t as ControllerDispatchIntent } from "./controller-dispatch-intent-schema-fqjx2pb2.js";
|
|
2
|
+
import { ControllerExecutionResult, ControllerExecutionResultSchema, ExecutionFingerprint, ExecutionFingerprintSchema } from "./controller-dispatch-boundary/index.js";
|
|
3
|
+
import { ControllerHostActionRequest, ControllerHostActionRequestSchema, ControllerHostActionResult, ControllerHostActionResultSchema } from "./controller-host-action-boundary/index.js";
|
|
4
|
+
import { a as ManagedVmExecRequestSchema, c as ManagedVmTimeoutMaxMs, i as ManagedVmExecRequest, l as ManagedVmTokenMaxLength, n as ManagedVmEnvironmentMaxEntries, o as ManagedVmStdinMaxBytes, r as ManagedVmEnvironmentValueMaxLength, s as ManagedVmStreamMaxBytes, t as ManagedVmArgvMaxItems } from "./managed-vm-exec-request-schema-BkkZ7zYn.js";
|
|
5
|
+
import { ArtifactPolicySchema, CancellationPolicySchema, ControllerExecutionArgvMaxItems, ControllerExecutionArgvTokenMaxLength, ControllerExecutionOutputMaxBytes, ControllerExecutionTimeoutMaxMs, CwdPolicySchema, EgressPolicySchema, EnvironmentPolicySchema, ManagedVmArtifactReadMaxBytes, ManagedVmArtifactReadRequest, ManagedVmArtifactReadRequestSchema, OutputPolicySchema, ValidatedCliInvocation, ValidatedCliInvocationSchema } from "./tool-vm-runner-boundary/index.js";
|
|
6
|
+
export { ArtifactPolicySchema, CancellationPolicySchema, ControllerDispatchIntent, ControllerDispatchIntentSchema, ControllerExecutionArgvMaxItems, ControllerExecutionArgvTokenMaxLength, ControllerExecutionOutputMaxBytes, ControllerExecutionResult, ControllerExecutionResultSchema, ControllerExecutionTimeoutMaxMs, ControllerHostActionRequest, ControllerHostActionRequestSchema, ControllerHostActionResult, ControllerHostActionResultSchema, ControllerTrustedScopeSchema, CwdPolicySchema, EgressPolicySchema, EnvironmentPolicySchema, ExecutionFingerprint, ExecutionFingerprintSchema, ManagedVmArgvMaxItems, ManagedVmArtifactReadMaxBytes, ManagedVmArtifactReadRequest, ManagedVmArtifactReadRequestSchema, ManagedVmEnvironmentMaxEntries, ManagedVmEnvironmentValueMaxLength, ManagedVmExecRequest, ManagedVmExecRequestSchema, ManagedVmStdinMaxBytes, ManagedVmStreamMaxBytes, ManagedVmTimeoutMaxMs, ManagedVmTokenMaxLength, OutputPolicySchema, ValidatedCliInvocation, ValidatedCliInvocationSchema };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { n as ControllerTrustedScopeSchema, t as ControllerDispatchIntentSchema } from "./controller-dispatch-intent-schema-dw3ugqpe.js";
|
|
2
|
+
import { t as ControllerExecutionResultSchema } from "./controller-execution-result-schema-BN0cqzhi.js";
|
|
3
|
+
import { t as ExecutionFingerprintSchema } from "./execution-fingerprint-schema-D4J978Oa.js";
|
|
4
|
+
import "./controller-dispatch-boundary/index.js";
|
|
5
|
+
import { ControllerHostActionRequestSchema, ControllerHostActionResultSchema } from "./controller-host-action-boundary/index.js";
|
|
6
|
+
import { _ as EnvironmentPolicySchema, a as ManagedVmStdinMaxBytes, c as ManagedVmTokenMaxLength, d as ControllerExecutionArgvMaxItems, f as ControllerExecutionArgvTokenMaxLength, g as EgressPolicySchema, h as CwdPolicySchema, i as ManagedVmExecRequestSchema, l as ArtifactPolicySchema, m as ControllerExecutionTimeoutMaxMs, n as ManagedVmEnvironmentMaxEntries, o as ManagedVmStreamMaxBytes, p as ControllerExecutionOutputMaxBytes, r as ManagedVmEnvironmentValueMaxLength, s as ManagedVmTimeoutMaxMs, t as ManagedVmArgvMaxItems, u as CancellationPolicySchema, v as OutputPolicySchema, y as ValidatedCliInvocationSchema } from "./managed-vm-exec-request-schema-oPmsc4H8.js";
|
|
7
|
+
import { ManagedVmArtifactReadMaxBytes, ManagedVmArtifactReadRequestSchema } from "./tool-vm-runner-boundary/index.js";
|
|
8
|
+
export { ArtifactPolicySchema, CancellationPolicySchema, ControllerDispatchIntentSchema, ControllerExecutionArgvMaxItems, ControllerExecutionArgvTokenMaxLength, ControllerExecutionOutputMaxBytes, ControllerExecutionResultSchema, ControllerExecutionTimeoutMaxMs, ControllerHostActionRequestSchema, ControllerHostActionResultSchema, ControllerTrustedScopeSchema, CwdPolicySchema, EgressPolicySchema, EnvironmentPolicySchema, ExecutionFingerprintSchema, ManagedVmArgvMaxItems, ManagedVmArtifactReadMaxBytes, ManagedVmArtifactReadRequestSchema, ManagedVmEnvironmentMaxEntries, ManagedVmEnvironmentValueMaxLength, ManagedVmExecRequestSchema, ManagedVmStdinMaxBytes, ManagedVmStreamMaxBytes, ManagedVmTimeoutMaxMs, ManagedVmTokenMaxLength, OutputPolicySchema, ValidatedCliInvocationSchema };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/tool-vm-runner-boundary/models/managed-vm-exec-request-schema.d.ts
|
|
4
|
+
declare const ManagedVmArgvMaxItems = 100;
|
|
5
|
+
declare const ManagedVmTokenMaxLength = 4096;
|
|
6
|
+
declare const ManagedVmEnvironmentMaxEntries = 100;
|
|
7
|
+
declare const ManagedVmEnvironmentValueMaxLength: number;
|
|
8
|
+
declare const ManagedVmStdinMaxBytes: number;
|
|
9
|
+
declare const ManagedVmStreamMaxBytes: number;
|
|
10
|
+
declare const ManagedVmTimeoutMaxMs: number;
|
|
11
|
+
declare const ManagedVmExecRequestSchema: z.ZodObject<{
|
|
12
|
+
abortSignalId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
argv: z.ZodArray<z.ZodString>;
|
|
14
|
+
cwd: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15
|
+
kind: z.ZodLiteral<"fixed">;
|
|
16
|
+
path: z.ZodString;
|
|
17
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
18
|
+
kind: z.ZodLiteral<"workspace_root">;
|
|
19
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
20
|
+
kind: z.ZodLiteral<"runner_scratch">;
|
|
21
|
+
}, z.core.$strict>], "kind">;
|
|
22
|
+
env: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
23
|
+
executablePath: z.ZodString;
|
|
24
|
+
pty: z.ZodLiteral<false>;
|
|
25
|
+
shellMode: z.ZodLiteral<"none">;
|
|
26
|
+
stderr: z.ZodEnum<{
|
|
27
|
+
stream: "stream";
|
|
28
|
+
discard: "discard";
|
|
29
|
+
}>;
|
|
30
|
+
stderrMaxBytes: z.ZodNumber;
|
|
31
|
+
stdin: z.ZodOptional<z.ZodString>;
|
|
32
|
+
stdout: z.ZodEnum<{
|
|
33
|
+
stream: "stream";
|
|
34
|
+
discard: "discard";
|
|
35
|
+
}>;
|
|
36
|
+
stdoutMaxBytes: z.ZodNumber;
|
|
37
|
+
timeoutMs: z.ZodNumber;
|
|
38
|
+
}, z.core.$strict>;
|
|
39
|
+
type ManagedVmExecRequest = z.infer<typeof ManagedVmExecRequestSchema>;
|
|
40
|
+
//#endregion
|
|
41
|
+
export { ManagedVmExecRequestSchema as a, ManagedVmTimeoutMaxMs as c, ManagedVmExecRequest as i, ManagedVmTokenMaxLength as l, ManagedVmEnvironmentMaxEntries as n, ManagedVmStdinMaxBytes as o, ManagedVmEnvironmentValueMaxLength as r, ManagedVmStreamMaxBytes as s, ManagedVmArgvMaxItems as t };
|
|
42
|
+
//# sourceMappingURL=managed-vm-exec-request-schema-BkkZ7zYn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-vm-exec-request-schema-BkkZ7zYn.d.ts","names":[],"sources":["../src/tool-vm-runner-boundary/models/managed-vm-exec-request-schema.ts"],"mappings":";;;cAIa,qBAAA;AAAA,cACA,uBAAA;AAAA,cACA,8BAAA;AAAA,cACA,kCAAA;AAAA,cACA,sBAAA;AAAA,cACA,uBAAA;AAAA,cACA,qBAAA;AAAA,cAQA,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqB3B,oBAAA,GAAuB,CAAA,CAAE,KAAA,QAAa,0BAAA"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { t as ExecutionFingerprintSchema } from "./execution-fingerprint-schema-D4J978Oa.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/tool-vm-runner-boundary/models/cli-invocation-policy-schema.ts
|
|
4
|
+
const ControllerExecutionArgvMaxItems = 100;
|
|
5
|
+
const ControllerExecutionArgvTokenMaxLength = 4096;
|
|
6
|
+
const ControllerExecutionOutputMaxBytes = 16 * 1024 * 1024;
|
|
7
|
+
const ControllerExecutionTimeoutMaxMs = 480 * 60 * 1e3;
|
|
8
|
+
const ControllerExecutionArgvTokenSchema = z.string().min(1).max(ControllerExecutionArgvTokenMaxLength);
|
|
9
|
+
const CwdPolicySchema = z.discriminatedUnion("kind", [
|
|
10
|
+
z.object({
|
|
11
|
+
kind: z.literal("fixed"),
|
|
12
|
+
path: z.string().startsWith("/")
|
|
13
|
+
}).strict(),
|
|
14
|
+
z.object({ kind: z.literal("workspace_root") }).strict(),
|
|
15
|
+
z.object({ kind: z.literal("runner_scratch") }).strict()
|
|
16
|
+
]);
|
|
17
|
+
const EnvironmentPolicySchema = z.object({
|
|
18
|
+
allowedVariables: z.array(z.string().min(1)).default([]),
|
|
19
|
+
deniedPatterns: z.array(z.string()).default([]),
|
|
20
|
+
mode: z.enum([
|
|
21
|
+
"empty",
|
|
22
|
+
"allowlist",
|
|
23
|
+
"controller_materialized"
|
|
24
|
+
])
|
|
25
|
+
}).strict();
|
|
26
|
+
const EgressPolicySchema = z.object({
|
|
27
|
+
allowedHosts: z.array(z.string().min(1)),
|
|
28
|
+
allowedPorts: z.array(z.number().int().positive().max(65535)).optional(),
|
|
29
|
+
denyEndpointOverrides: z.boolean().default(true)
|
|
30
|
+
}).strict();
|
|
31
|
+
const OutputPolicySchema = z.object({
|
|
32
|
+
modelVisibleStderr: z.enum(["none", "safe_summary"]).default("safe_summary"),
|
|
33
|
+
redactionProfile: z.string().min(1),
|
|
34
|
+
stderrMaxBytes: z.number().int().positive().max(ControllerExecutionOutputMaxBytes),
|
|
35
|
+
stdoutMaxBytes: z.number().int().positive().max(ControllerExecutionOutputMaxBytes),
|
|
36
|
+
truncationMode: z.enum([
|
|
37
|
+
"fail",
|
|
38
|
+
"truncate",
|
|
39
|
+
"artifact"
|
|
40
|
+
]).default("truncate")
|
|
41
|
+
}).strict();
|
|
42
|
+
const ArtifactPolicySchema = z.object({
|
|
43
|
+
maxArtifacts: z.number().int().nonnegative().max(20).default(0),
|
|
44
|
+
maxBytesPerArtifact: z.number().int().positive().max(ControllerExecutionOutputMaxBytes).optional(),
|
|
45
|
+
mode: z.enum([
|
|
46
|
+
"none",
|
|
47
|
+
"controller_written",
|
|
48
|
+
"bounded_stream",
|
|
49
|
+
"vm_file_read"
|
|
50
|
+
]),
|
|
51
|
+
noFollowRequired: z.boolean().default(true)
|
|
52
|
+
}).strict();
|
|
53
|
+
const CancellationPolicySchema = z.object({
|
|
54
|
+
onCancel: z.enum(["abort_process", "close_vm"]),
|
|
55
|
+
timeoutMs: z.number().int().positive().max(ControllerExecutionTimeoutMaxMs)
|
|
56
|
+
}).strict();
|
|
57
|
+
const ValidatedCliInvocationSchema = z.object({
|
|
58
|
+
artifacts: ArtifactPolicySchema,
|
|
59
|
+
argv: z.array(ControllerExecutionArgvTokenSchema).max(100),
|
|
60
|
+
cancellation: CancellationPolicySchema,
|
|
61
|
+
cwd: CwdPolicySchema,
|
|
62
|
+
egress: EgressPolicySchema,
|
|
63
|
+
environment: EnvironmentPolicySchema,
|
|
64
|
+
executablePath: z.string().startsWith("/"),
|
|
65
|
+
fingerprint: ExecutionFingerprintSchema,
|
|
66
|
+
output: OutputPolicySchema
|
|
67
|
+
}).strict();
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/tool-vm-runner-boundary/models/managed-vm-exec-request-schema.ts
|
|
70
|
+
const ManagedVmArgvMaxItems = 100;
|
|
71
|
+
const ManagedVmTokenMaxLength = 4096;
|
|
72
|
+
const ManagedVmEnvironmentMaxEntries = 100;
|
|
73
|
+
const ManagedVmEnvironmentValueMaxLength = 32 * 1024;
|
|
74
|
+
const ManagedVmStdinMaxBytes = 1024 * 1024;
|
|
75
|
+
const ManagedVmStreamMaxBytes = 16 * 1024 * 1024;
|
|
76
|
+
const ManagedVmTimeoutMaxMs = 480 * 60 * 1e3;
|
|
77
|
+
const ManagedVmArgvTokenSchema = z.string().min(1).max(ManagedVmTokenMaxLength);
|
|
78
|
+
const ManagedVmEnvironmentSchema = z.record(z.string().min(1).max(ManagedVmTokenMaxLength), z.string().max(ManagedVmEnvironmentValueMaxLength));
|
|
79
|
+
const ManagedVmExecRequestSchema = z.object({
|
|
80
|
+
abortSignalId: z.string().min(1).optional(),
|
|
81
|
+
argv: z.array(ManagedVmArgvTokenSchema).max(100),
|
|
82
|
+
cwd: CwdPolicySchema,
|
|
83
|
+
env: ManagedVmEnvironmentSchema.refine((environment) => Object.keys(environment).length <= 100, { message: "ManagedVm env exceeds the maximum number of entries." }),
|
|
84
|
+
executablePath: z.string().startsWith("/"),
|
|
85
|
+
pty: z.literal(false),
|
|
86
|
+
shellMode: z.literal("none"),
|
|
87
|
+
stderr: z.enum(["stream", "discard"]),
|
|
88
|
+
stderrMaxBytes: z.number().int().positive().max(ManagedVmStreamMaxBytes),
|
|
89
|
+
stdin: z.string().max(ManagedVmStdinMaxBytes).optional(),
|
|
90
|
+
stdout: z.enum(["stream", "discard"]),
|
|
91
|
+
stdoutMaxBytes: z.number().int().positive().max(ManagedVmStreamMaxBytes),
|
|
92
|
+
timeoutMs: z.number().int().positive().max(ManagedVmTimeoutMaxMs)
|
|
93
|
+
}).strict();
|
|
94
|
+
//#endregion
|
|
95
|
+
export { EnvironmentPolicySchema as _, ManagedVmStdinMaxBytes as a, ManagedVmTokenMaxLength as c, ControllerExecutionArgvMaxItems as d, ControllerExecutionArgvTokenMaxLength as f, EgressPolicySchema as g, CwdPolicySchema as h, ManagedVmExecRequestSchema as i, ArtifactPolicySchema as l, ControllerExecutionTimeoutMaxMs as m, ManagedVmEnvironmentMaxEntries as n, ManagedVmStreamMaxBytes as o, ControllerExecutionOutputMaxBytes as p, ManagedVmEnvironmentValueMaxLength as r, ManagedVmTimeoutMaxMs as s, ManagedVmArgvMaxItems as t, CancellationPolicySchema as u, OutputPolicySchema as v, ValidatedCliInvocationSchema as y };
|
|
96
|
+
|
|
97
|
+
//# sourceMappingURL=managed-vm-exec-request-schema-oPmsc4H8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"managed-vm-exec-request-schema-oPmsc4H8.js","names":[],"sources":["../src/tool-vm-runner-boundary/models/cli-invocation-policy-schema.ts","../src/tool-vm-runner-boundary/models/managed-vm-exec-request-schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { ExecutionFingerprintSchema } from '../../controller-dispatch-boundary/models/execution-fingerprint-schema.js';\n\nexport const ControllerExecutionArgvMaxItems = 100;\nexport const ControllerExecutionArgvTokenMaxLength = 4096;\nexport const ControllerExecutionOutputMaxBytes = 16 * 1024 * 1024;\nexport const ControllerExecutionTimeoutMaxMs = 8 * 60 * 60 * 1000;\n\nconst ControllerExecutionArgvTokenSchema = z\n\t.string()\n\t.min(1)\n\t.max(ControllerExecutionArgvTokenMaxLength);\n\nexport const CwdPolicySchema = z.discriminatedUnion('kind', [\n\tz.object({ kind: z.literal('fixed'), path: z.string().startsWith('/') }).strict(),\n\tz.object({ kind: z.literal('workspace_root') }).strict(),\n\tz.object({ kind: z.literal('runner_scratch') }).strict(),\n]);\n\nexport const EnvironmentPolicySchema = z\n\t.object({\n\t\tallowedVariables: z.array(z.string().min(1)).default([]),\n\t\tdeniedPatterns: z.array(z.string()).default([]),\n\t\tmode: z.enum(['empty', 'allowlist', 'controller_materialized']),\n\t})\n\t.strict();\n\nexport const EgressPolicySchema = z\n\t.object({\n\t\tallowedHosts: z.array(z.string().min(1)),\n\t\tallowedPorts: z.array(z.number().int().positive().max(65_535)).optional(),\n\t\tdenyEndpointOverrides: z.boolean().default(true),\n\t})\n\t.strict();\n\nexport const OutputPolicySchema = z\n\t.object({\n\t\tmodelVisibleStderr: z.enum(['none', 'safe_summary']).default('safe_summary'),\n\t\tredactionProfile: z.string().min(1),\n\t\tstderrMaxBytes: z.number().int().positive().max(ControllerExecutionOutputMaxBytes),\n\t\tstdoutMaxBytes: z.number().int().positive().max(ControllerExecutionOutputMaxBytes),\n\t\ttruncationMode: z.enum(['fail', 'truncate', 'artifact']).default('truncate'),\n\t})\n\t.strict();\n\nexport const ArtifactPolicySchema = z\n\t.object({\n\t\tmaxArtifacts: z.number().int().nonnegative().max(20).default(0),\n\t\tmaxBytesPerArtifact: z\n\t\t\t.number()\n\t\t\t.int()\n\t\t\t.positive()\n\t\t\t.max(ControllerExecutionOutputMaxBytes)\n\t\t\t.optional(),\n\t\tmode: z.enum(['none', 'controller_written', 'bounded_stream', 'vm_file_read']),\n\t\tnoFollowRequired: z.boolean().default(true),\n\t})\n\t.strict();\n\nexport const CancellationPolicySchema = z\n\t.object({\n\t\tonCancel: z.enum(['abort_process', 'close_vm']),\n\t\ttimeoutMs: z.number().int().positive().max(ControllerExecutionTimeoutMaxMs),\n\t})\n\t.strict();\n\nexport const ValidatedCliInvocationSchema = z\n\t.object({\n\t\tartifacts: ArtifactPolicySchema,\n\t\targv: z.array(ControllerExecutionArgvTokenSchema).max(ControllerExecutionArgvMaxItems),\n\t\tcancellation: CancellationPolicySchema,\n\t\tcwd: CwdPolicySchema,\n\t\tegress: EgressPolicySchema,\n\t\tenvironment: EnvironmentPolicySchema,\n\t\texecutablePath: z.string().startsWith('/'),\n\t\tfingerprint: ExecutionFingerprintSchema,\n\t\toutput: OutputPolicySchema,\n\t})\n\t.strict();\n\nexport type ValidatedCliInvocation = z.infer<typeof ValidatedCliInvocationSchema>;\n","import { z } from 'zod';\n\nimport { CwdPolicySchema } from './cli-invocation-policy-schema.js';\n\nexport const ManagedVmArgvMaxItems = 100;\nexport const ManagedVmTokenMaxLength = 4096;\nexport const ManagedVmEnvironmentMaxEntries = 100;\nexport const ManagedVmEnvironmentValueMaxLength = 32 * 1024;\nexport const ManagedVmStdinMaxBytes = 1024 * 1024;\nexport const ManagedVmStreamMaxBytes = 16 * 1024 * 1024;\nexport const ManagedVmTimeoutMaxMs = 8 * 60 * 60 * 1000;\n\nconst ManagedVmArgvTokenSchema = z.string().min(1).max(ManagedVmTokenMaxLength);\nconst ManagedVmEnvironmentSchema = z.record(\n\tz.string().min(1).max(ManagedVmTokenMaxLength),\n\tz.string().max(ManagedVmEnvironmentValueMaxLength),\n);\n\nexport const ManagedVmExecRequestSchema = z\n\t.object({\n\t\tabortSignalId: z.string().min(1).optional(),\n\t\targv: z.array(ManagedVmArgvTokenSchema).max(ManagedVmArgvMaxItems),\n\t\tcwd: CwdPolicySchema,\n\t\tenv: ManagedVmEnvironmentSchema.refine(\n\t\t\t(environment) => Object.keys(environment).length <= ManagedVmEnvironmentMaxEntries,\n\t\t\t{ message: 'ManagedVm env exceeds the maximum number of entries.' },\n\t\t),\n\t\texecutablePath: z.string().startsWith('/'),\n\t\tpty: z.literal(false),\n\t\tshellMode: z.literal('none'),\n\t\tstderr: z.enum(['stream', 'discard']),\n\t\tstderrMaxBytes: z.number().int().positive().max(ManagedVmStreamMaxBytes),\n\t\tstdin: z.string().max(ManagedVmStdinMaxBytes).optional(),\n\t\tstdout: z.enum(['stream', 'discard']),\n\t\tstdoutMaxBytes: z.number().int().positive().max(ManagedVmStreamMaxBytes),\n\t\ttimeoutMs: z.number().int().positive().max(ManagedVmTimeoutMaxMs),\n\t})\n\t.strict();\n\nexport type ManagedVmExecRequest = z.infer<typeof ManagedVmExecRequestSchema>;\n"],"mappings":"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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as ControllerDispatchIntent } from "../controller-dispatch-intent-schema-fqjx2pb2.js";
|
|
2
|
+
import { i as ManagedVmExecRequest } from "../managed-vm-exec-request-schema-BkkZ7zYn.js";
|
|
3
|
+
import { JsonObject } from "@agent-vm/agent-portal-sdk";
|
|
4
|
+
|
|
5
|
+
//#region src/testing/index.d.ts
|
|
6
|
+
interface CreateControllerDispatchIntentFixtureProps {
|
|
7
|
+
readonly agentId?: string;
|
|
8
|
+
readonly arguments?: JsonObject;
|
|
9
|
+
readonly auditCorrelationId?: string;
|
|
10
|
+
readonly name?: string;
|
|
11
|
+
readonly namespace?: string;
|
|
12
|
+
readonly profileId?: string;
|
|
13
|
+
}
|
|
14
|
+
interface CreateManagedVmExecRequestFixtureProps {
|
|
15
|
+
readonly argv?: readonly string[];
|
|
16
|
+
readonly cwdPath?: string;
|
|
17
|
+
readonly executablePath?: string;
|
|
18
|
+
readonly timeoutMs?: number;
|
|
19
|
+
}
|
|
20
|
+
declare function createControllerDispatchIntentFixture(props?: CreateControllerDispatchIntentFixtureProps): ControllerDispatchIntent;
|
|
21
|
+
declare function createManagedVmExecRequestFixture(props?: CreateManagedVmExecRequestFixtureProps): ManagedVmExecRequest;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { CreateControllerDispatchIntentFixtureProps, CreateManagedVmExecRequestFixtureProps, createControllerDispatchIntentFixture, createManagedVmExecRequestFixture };
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/testing/index.ts"],"mappings":";;;;;UAWiB,0CAAA;EAAA,SACP,OAAA;EAAA,SACA,SAAA,GAAY,UAAA;EAAA,SACZ,kBAAA;EAAA,SACA,IAAA;EAAA,SACA,SAAA;EAAA,SACA,SAAA;AAAA;AAAA,UAGO,sCAAA;EAAA,SACP,IAAA;EAAA,SACA,OAAA;EAAA,SACA,cAAA;EAAA,SACA,SAAA;AAAA;AAAA,iBAGM,qCAAA,CACf,KAAA,GAAO,0CAAA,GACL,wBAAA;AAAA,iBAea,iCAAA,CACf,KAAA,GAAO,sCAAA,GACL,oBAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { t as ControllerDispatchIntentSchema } from "../controller-dispatch-intent-schema-dw3ugqpe.js";
|
|
2
|
+
import { i as ManagedVmExecRequestSchema } from "../managed-vm-exec-request-schema-oPmsc4H8.js";
|
|
3
|
+
//#region src/testing/index.ts
|
|
4
|
+
function createControllerDispatchIntentFixture(props = {}) {
|
|
5
|
+
return ControllerDispatchIntentSchema.parse({
|
|
6
|
+
auditCorrelationId: props.auditCorrelationId ?? "audit-1",
|
|
7
|
+
canonicalArguments: props.arguments ?? {},
|
|
8
|
+
capability: {
|
|
9
|
+
name: props.name ?? "get_issue",
|
|
10
|
+
namespace: props.namespace ?? "github"
|
|
11
|
+
},
|
|
12
|
+
trustedScope: {
|
|
13
|
+
agentId: props.agentId ?? "agent-1",
|
|
14
|
+
profileId: props.profileId ?? "code-builder"
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function createManagedVmExecRequestFixture(props = {}) {
|
|
19
|
+
return ManagedVmExecRequestSchema.parse({
|
|
20
|
+
argv: props.argv ?? [
|
|
21
|
+
"issue",
|
|
22
|
+
"view",
|
|
23
|
+
"1"
|
|
24
|
+
],
|
|
25
|
+
cwd: {
|
|
26
|
+
kind: "fixed",
|
|
27
|
+
path: props.cwdPath ?? "/work"
|
|
28
|
+
},
|
|
29
|
+
env: {},
|
|
30
|
+
executablePath: props.executablePath ?? "/usr/local/bin/gh",
|
|
31
|
+
pty: false,
|
|
32
|
+
shellMode: "none",
|
|
33
|
+
stderr: "stream",
|
|
34
|
+
stderrMaxBytes: 1024,
|
|
35
|
+
stdout: "stream",
|
|
36
|
+
stdoutMaxBytes: 1024,
|
|
37
|
+
timeoutMs: props.timeoutMs ?? 3e4
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { createControllerDispatchIntentFixture, createManagedVmExecRequestFixture };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/testing/index.ts"],"sourcesContent":["import type { JsonObject } from '@agent-vm/agent-portal-sdk';\n\nimport {\n\tControllerDispatchIntentSchema,\n\ttype ControllerDispatchIntent,\n} from '../controller-dispatch-boundary/models/controller-dispatch-intent-schema.js';\nimport {\n\tManagedVmExecRequestSchema,\n\ttype ManagedVmExecRequest,\n} from '../tool-vm-runner-boundary/models/managed-vm-exec-request-schema.js';\n\nexport interface CreateControllerDispatchIntentFixtureProps {\n\treadonly agentId?: string;\n\treadonly arguments?: JsonObject;\n\treadonly auditCorrelationId?: string;\n\treadonly name?: string;\n\treadonly namespace?: string;\n\treadonly profileId?: string;\n}\n\nexport interface CreateManagedVmExecRequestFixtureProps {\n\treadonly argv?: readonly string[];\n\treadonly cwdPath?: string;\n\treadonly executablePath?: string;\n\treadonly timeoutMs?: number;\n}\n\nexport function createControllerDispatchIntentFixture(\n\tprops: CreateControllerDispatchIntentFixtureProps = {},\n): ControllerDispatchIntent {\n\treturn ControllerDispatchIntentSchema.parse({\n\t\tauditCorrelationId: props.auditCorrelationId ?? 'audit-1',\n\t\tcanonicalArguments: props.arguments ?? {},\n\t\tcapability: {\n\t\t\tname: props.name ?? 'get_issue',\n\t\t\tnamespace: props.namespace ?? 'github',\n\t\t},\n\t\ttrustedScope: {\n\t\t\tagentId: props.agentId ?? 'agent-1',\n\t\t\tprofileId: props.profileId ?? 'code-builder',\n\t\t},\n\t});\n}\n\nexport function createManagedVmExecRequestFixture(\n\tprops: CreateManagedVmExecRequestFixtureProps = {},\n): ManagedVmExecRequest {\n\treturn ManagedVmExecRequestSchema.parse({\n\t\targv: props.argv ?? ['issue', 'view', '1'],\n\t\tcwd: { kind: 'fixed', path: props.cwdPath ?? '/work' },\n\t\tenv: {},\n\t\texecutablePath: props.executablePath ?? '/usr/local/bin/gh',\n\t\tpty: false,\n\t\tshellMode: 'none',\n\t\tstderr: 'stream',\n\t\tstderrMaxBytes: 1024,\n\t\tstdout: 'stream',\n\t\tstdoutMaxBytes: 1024,\n\t\ttimeoutMs: props.timeoutMs ?? 30_000,\n\t});\n}\n"],"mappings":";;;AA2BA,SAAgB,sCACf,QAAoD,EAAE,EAC3B;CAC3B,OAAO,+BAA+B,MAAM;EAC3C,oBAAoB,MAAM,sBAAsB;EAChD,oBAAoB,MAAM,aAAa,EAAE;EACzC,YAAY;GACX,MAAM,MAAM,QAAQ;GACpB,WAAW,MAAM,aAAa;GAC9B;EACD,cAAc;GACb,SAAS,MAAM,WAAW;GAC1B,WAAW,MAAM,aAAa;GAC9B;EACD,CAAC;;AAGH,SAAgB,kCACf,QAAgD,EAAE,EAC3B;CACvB,OAAO,2BAA2B,MAAM;EACvC,MAAM,MAAM,QAAQ;GAAC;GAAS;GAAQ;GAAI;EAC1C,KAAK;GAAE,MAAM;GAAS,MAAM,MAAM,WAAW;GAAS;EACtD,KAAK,EAAE;EACP,gBAAgB,MAAM,kBAAkB;EACxC,KAAK;EACL,WAAW;EACX,QAAQ;EACR,gBAAgB;EAChB,QAAQ;EACR,gBAAgB;EAChB,WAAW,MAAM,aAAa;EAC9B,CAAC"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { a as ManagedVmExecRequestSchema, c as ManagedVmTimeoutMaxMs, i as ManagedVmExecRequest, l as ManagedVmTokenMaxLength, n as ManagedVmEnvironmentMaxEntries, o as ManagedVmStdinMaxBytes, r as ManagedVmEnvironmentValueMaxLength, s as ManagedVmStreamMaxBytes, t as ManagedVmArgvMaxItems } from "../managed-vm-exec-request-schema-BkkZ7zYn.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/tool-vm-runner-boundary/models/cli-invocation-policy-schema.d.ts
|
|
5
|
+
declare const ControllerExecutionArgvMaxItems = 100;
|
|
6
|
+
declare const ControllerExecutionArgvTokenMaxLength = 4096;
|
|
7
|
+
declare const ControllerExecutionOutputMaxBytes: number;
|
|
8
|
+
declare const ControllerExecutionTimeoutMaxMs: number;
|
|
9
|
+
declare const CwdPolicySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
10
|
+
kind: z.ZodLiteral<"fixed">;
|
|
11
|
+
path: z.ZodString;
|
|
12
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
13
|
+
kind: z.ZodLiteral<"workspace_root">;
|
|
14
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15
|
+
kind: z.ZodLiteral<"runner_scratch">;
|
|
16
|
+
}, z.core.$strict>], "kind">;
|
|
17
|
+
declare const EnvironmentPolicySchema: z.ZodObject<{
|
|
18
|
+
allowedVariables: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
19
|
+
deniedPatterns: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
20
|
+
mode: z.ZodEnum<{
|
|
21
|
+
empty: "empty";
|
|
22
|
+
allowlist: "allowlist";
|
|
23
|
+
controller_materialized: "controller_materialized";
|
|
24
|
+
}>;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
declare const EgressPolicySchema: z.ZodObject<{
|
|
27
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
28
|
+
allowedPorts: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
29
|
+
denyEndpointOverrides: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
+
}, z.core.$strict>;
|
|
31
|
+
declare const OutputPolicySchema: z.ZodObject<{
|
|
32
|
+
modelVisibleStderr: z.ZodDefault<z.ZodEnum<{
|
|
33
|
+
none: "none";
|
|
34
|
+
safe_summary: "safe_summary";
|
|
35
|
+
}>>;
|
|
36
|
+
redactionProfile: z.ZodString;
|
|
37
|
+
stderrMaxBytes: z.ZodNumber;
|
|
38
|
+
stdoutMaxBytes: z.ZodNumber;
|
|
39
|
+
truncationMode: z.ZodDefault<z.ZodEnum<{
|
|
40
|
+
fail: "fail";
|
|
41
|
+
truncate: "truncate";
|
|
42
|
+
artifact: "artifact";
|
|
43
|
+
}>>;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
declare const ArtifactPolicySchema: z.ZodObject<{
|
|
46
|
+
maxArtifacts: z.ZodDefault<z.ZodNumber>;
|
|
47
|
+
maxBytesPerArtifact: z.ZodOptional<z.ZodNumber>;
|
|
48
|
+
mode: z.ZodEnum<{
|
|
49
|
+
none: "none";
|
|
50
|
+
controller_written: "controller_written";
|
|
51
|
+
bounded_stream: "bounded_stream";
|
|
52
|
+
vm_file_read: "vm_file_read";
|
|
53
|
+
}>;
|
|
54
|
+
noFollowRequired: z.ZodDefault<z.ZodBoolean>;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
declare const CancellationPolicySchema: z.ZodObject<{
|
|
57
|
+
onCancel: z.ZodEnum<{
|
|
58
|
+
abort_process: "abort_process";
|
|
59
|
+
close_vm: "close_vm";
|
|
60
|
+
}>;
|
|
61
|
+
timeoutMs: z.ZodNumber;
|
|
62
|
+
}, z.core.$strict>;
|
|
63
|
+
declare const ValidatedCliInvocationSchema: z.ZodObject<{
|
|
64
|
+
artifacts: z.ZodObject<{
|
|
65
|
+
maxArtifacts: z.ZodDefault<z.ZodNumber>;
|
|
66
|
+
maxBytesPerArtifact: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
mode: z.ZodEnum<{
|
|
68
|
+
none: "none";
|
|
69
|
+
controller_written: "controller_written";
|
|
70
|
+
bounded_stream: "bounded_stream";
|
|
71
|
+
vm_file_read: "vm_file_read";
|
|
72
|
+
}>;
|
|
73
|
+
noFollowRequired: z.ZodDefault<z.ZodBoolean>;
|
|
74
|
+
}, z.core.$strict>;
|
|
75
|
+
argv: z.ZodArray<z.ZodString>;
|
|
76
|
+
cancellation: z.ZodObject<{
|
|
77
|
+
onCancel: z.ZodEnum<{
|
|
78
|
+
abort_process: "abort_process";
|
|
79
|
+
close_vm: "close_vm";
|
|
80
|
+
}>;
|
|
81
|
+
timeoutMs: z.ZodNumber;
|
|
82
|
+
}, z.core.$strict>;
|
|
83
|
+
cwd: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
84
|
+
kind: z.ZodLiteral<"fixed">;
|
|
85
|
+
path: z.ZodString;
|
|
86
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
87
|
+
kind: z.ZodLiteral<"workspace_root">;
|
|
88
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
89
|
+
kind: z.ZodLiteral<"runner_scratch">;
|
|
90
|
+
}, z.core.$strict>], "kind">;
|
|
91
|
+
egress: z.ZodObject<{
|
|
92
|
+
allowedHosts: z.ZodArray<z.ZodString>;
|
|
93
|
+
allowedPorts: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
94
|
+
denyEndpointOverrides: z.ZodDefault<z.ZodBoolean>;
|
|
95
|
+
}, z.core.$strict>;
|
|
96
|
+
environment: z.ZodObject<{
|
|
97
|
+
allowedVariables: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
98
|
+
deniedPatterns: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
99
|
+
mode: z.ZodEnum<{
|
|
100
|
+
empty: "empty";
|
|
101
|
+
allowlist: "allowlist";
|
|
102
|
+
controller_materialized: "controller_materialized";
|
|
103
|
+
}>;
|
|
104
|
+
}, z.core.$strict>;
|
|
105
|
+
executablePath: z.ZodString;
|
|
106
|
+
fingerprint: z.ZodObject<{
|
|
107
|
+
agentId: z.ZodString;
|
|
108
|
+
artifactIntentHash: z.ZodString;
|
|
109
|
+
backendBindingRevision: z.ZodString;
|
|
110
|
+
canonicalArgumentHash: z.ZodString;
|
|
111
|
+
capability: z.ZodObject<{
|
|
112
|
+
namespace: z.ZodString;
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
}, z.core.$strict>;
|
|
115
|
+
catalogRevision: z.ZodString;
|
|
116
|
+
custodyMode: z.ZodEnum<{
|
|
117
|
+
ephemeral_material: "ephemeral_material";
|
|
118
|
+
controller_durable_state: "controller_durable_state";
|
|
119
|
+
}>;
|
|
120
|
+
egressPolicyHash: z.ZodString;
|
|
121
|
+
executableTemplateRevision: z.ZodString;
|
|
122
|
+
operatorUserId: z.ZodOptional<z.ZodString>;
|
|
123
|
+
outputPolicyHash: z.ZodString;
|
|
124
|
+
policyRevision: z.ZodString;
|
|
125
|
+
}, z.core.$strict>;
|
|
126
|
+
output: z.ZodObject<{
|
|
127
|
+
modelVisibleStderr: z.ZodDefault<z.ZodEnum<{
|
|
128
|
+
none: "none";
|
|
129
|
+
safe_summary: "safe_summary";
|
|
130
|
+
}>>;
|
|
131
|
+
redactionProfile: z.ZodString;
|
|
132
|
+
stderrMaxBytes: z.ZodNumber;
|
|
133
|
+
stdoutMaxBytes: z.ZodNumber;
|
|
134
|
+
truncationMode: z.ZodDefault<z.ZodEnum<{
|
|
135
|
+
fail: "fail";
|
|
136
|
+
truncate: "truncate";
|
|
137
|
+
artifact: "artifact";
|
|
138
|
+
}>>;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
type ValidatedCliInvocation = z.infer<typeof ValidatedCliInvocationSchema>;
|
|
142
|
+
//#endregion
|
|
143
|
+
//#region src/tool-vm-runner-boundary/models/managed-vm-artifact-read-request-schema.d.ts
|
|
144
|
+
declare const ManagedVmArtifactReadMaxBytes: number;
|
|
145
|
+
declare const ManagedVmArtifactReadRequestSchema: z.ZodObject<{
|
|
146
|
+
artifactId: z.ZodString;
|
|
147
|
+
maxBytes: z.ZodNumber;
|
|
148
|
+
noFollow: z.ZodLiteral<true>;
|
|
149
|
+
}, z.core.$strict>;
|
|
150
|
+
type ManagedVmArtifactReadRequest = z.infer<typeof ManagedVmArtifactReadRequestSchema>;
|
|
151
|
+
//#endregion
|
|
152
|
+
export { ArtifactPolicySchema, CancellationPolicySchema, ControllerExecutionArgvMaxItems, ControllerExecutionArgvTokenMaxLength, ControllerExecutionOutputMaxBytes, ControllerExecutionTimeoutMaxMs, CwdPolicySchema, EgressPolicySchema, EnvironmentPolicySchema, ManagedVmArgvMaxItems, ManagedVmArtifactReadMaxBytes, ManagedVmArtifactReadRequest, ManagedVmArtifactReadRequestSchema, ManagedVmEnvironmentMaxEntries, ManagedVmEnvironmentValueMaxLength, ManagedVmExecRequest, ManagedVmExecRequestSchema, ManagedVmStdinMaxBytes, ManagedVmStreamMaxBytes, ManagedVmTimeoutMaxMs, ManagedVmTokenMaxLength, OutputPolicySchema, ValidatedCliInvocation, ValidatedCliInvocationSchema };
|
|
153
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/tool-vm-runner-boundary/models/cli-invocation-policy-schema.ts","../../src/tool-vm-runner-boundary/models/managed-vm-artifact-read-request-schema.ts"],"mappings":";;;;cAIa,+BAAA;AAAA,cACA,qCAAA;AAAA,cACA,iCAAA;AAAA,cACA,+BAAA;AAAA,cAOA,eAAA,EAAe,CAAA,CAAA,qBAAA,EAAA,CAAA,CAAA,SAAA;;;;;;;;cAMf,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cAQvB,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;cAQlB,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAUlB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;cAcpB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;cAOxB,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAc7B,sBAAA,GAAyB,CAAA,CAAE,KAAA,QAAa,4BAAA;;;cC/EvC,6BAAA;AAAA,cAEA,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;KAQnC,4BAAA,GAA+B,CAAA,CAAE,KAAA,QAAa,kCAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { _ as EnvironmentPolicySchema, a as ManagedVmStdinMaxBytes, c as ManagedVmTokenMaxLength, d as ControllerExecutionArgvMaxItems, f as ControllerExecutionArgvTokenMaxLength, g as EgressPolicySchema, h as CwdPolicySchema, i as ManagedVmExecRequestSchema, l as ArtifactPolicySchema, m as ControllerExecutionTimeoutMaxMs, n as ManagedVmEnvironmentMaxEntries, o as ManagedVmStreamMaxBytes, p as ControllerExecutionOutputMaxBytes, r as ManagedVmEnvironmentValueMaxLength, s as ManagedVmTimeoutMaxMs, t as ManagedVmArgvMaxItems, u as CancellationPolicySchema, v as OutputPolicySchema, y as ValidatedCliInvocationSchema } from "../managed-vm-exec-request-schema-oPmsc4H8.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/tool-vm-runner-boundary/models/managed-vm-artifact-read-request-schema.ts
|
|
4
|
+
const ManagedVmArtifactReadMaxBytes = 16 * 1024 * 1024;
|
|
5
|
+
const ManagedVmArtifactReadRequestSchema = z.object({
|
|
6
|
+
artifactId: z.string().min(1),
|
|
7
|
+
maxBytes: z.number().int().positive().max(ManagedVmArtifactReadMaxBytes),
|
|
8
|
+
noFollow: z.literal(true)
|
|
9
|
+
}).strict();
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ArtifactPolicySchema, CancellationPolicySchema, ControllerExecutionArgvMaxItems, ControllerExecutionArgvTokenMaxLength, ControllerExecutionOutputMaxBytes, ControllerExecutionTimeoutMaxMs, CwdPolicySchema, EgressPolicySchema, EnvironmentPolicySchema, ManagedVmArgvMaxItems, ManagedVmArtifactReadMaxBytes, ManagedVmArtifactReadRequestSchema, ManagedVmEnvironmentMaxEntries, ManagedVmEnvironmentValueMaxLength, ManagedVmExecRequestSchema, ManagedVmStdinMaxBytes, ManagedVmStreamMaxBytes, ManagedVmTimeoutMaxMs, ManagedVmTokenMaxLength, OutputPolicySchema, ValidatedCliInvocationSchema };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/tool-vm-runner-boundary/models/managed-vm-artifact-read-request-schema.ts"],"sourcesContent":["import { z } from 'zod';\n\nexport const ManagedVmArtifactReadMaxBytes = 16 * 1024 * 1024;\n\nexport const ManagedVmArtifactReadRequestSchema = z\n\t.object({\n\t\tartifactId: z.string().min(1),\n\t\tmaxBytes: z.number().int().positive().max(ManagedVmArtifactReadMaxBytes),\n\t\tnoFollow: z.literal(true),\n\t})\n\t.strict();\n\nexport type ManagedVmArtifactReadRequest = z.infer<typeof ManagedVmArtifactReadRequestSchema>;\n"],"mappings":";;;AAEA,MAAa,gCAAgC,KAAK,OAAO;AAEzD,MAAa,qCAAqC,EAChD,OAAO;CACP,YAAY,EAAE,QAAQ,CAAC,IAAI,EAAE;CAC7B,UAAU,EAAE,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,8BAA8B;CACxE,UAAU,EAAE,QAAQ,KAAK;CACzB,CAAC,CACD,QAAQ"}
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agent-vm/controller-execution-contracts",
|
|
3
|
+
"version": "0.0.109",
|
|
4
|
+
"description": "Zod contracts for controller-owned portal execution boundaries.",
|
|
5
|
+
"homepage": "https://github.com/ShravanSunder/agent-vm#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/ShravanSunder/agent-vm/issues"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"author": "Shravan Sunder <ShravanSunder@users.noreply.github.com>",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/ShravanSunder/agent-vm.git",
|
|
14
|
+
"directory": "packages/controller-execution-contracts"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"type": "module",
|
|
20
|
+
"main": "./dist/index.js",
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"import": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./controller-dispatch-boundary": {
|
|
28
|
+
"types": "./dist/controller-dispatch-boundary/index.d.ts",
|
|
29
|
+
"import": "./dist/controller-dispatch-boundary/index.js"
|
|
30
|
+
},
|
|
31
|
+
"./controller-host-action-boundary": {
|
|
32
|
+
"types": "./dist/controller-host-action-boundary/index.d.ts",
|
|
33
|
+
"import": "./dist/controller-host-action-boundary/index.js"
|
|
34
|
+
},
|
|
35
|
+
"./tool-vm-runner-boundary": {
|
|
36
|
+
"types": "./dist/tool-vm-runner-boundary/index.d.ts",
|
|
37
|
+
"import": "./dist/tool-vm-runner-boundary/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./testing": {
|
|
40
|
+
"types": "./dist/testing/index.d.ts",
|
|
41
|
+
"import": "./dist/testing/index.js"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"access": "public"
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"zod": "^4.4.3",
|
|
49
|
+
"@agent-vm/agent-portal-sdk": "0.0.109"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"vitest": "^4.1.5"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "tsdown",
|
|
56
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
57
|
+
"test": "pnpm test:unit",
|
|
58
|
+
"test:unit": "vitest run --root ../../ --config vitest.config.ts --project unit packages/controller-execution-contracts/src"
|
|
59
|
+
}
|
|
60
|
+
}
|