@claudexor/schema 1.0.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-capabilities.d.ts +88 -16
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +49 -18
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +22 -6
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/attachment.d.ts +113 -48
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +60 -45
- package/dist/attachment.js.map +1 -1
- package/dist/auth.d.ts +1423 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +317 -0
- package/dist/auth.js.map +1 -0
- package/dist/budget.d.ts +133 -16
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +65 -22
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +449 -115
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +114 -41
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +6 -6
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +31 -7
- package/dist/context.js.map +1 -1
- package/dist/control-operation-responses.d.ts +1172 -0
- package/dist/control-operation-responses.d.ts.map +1 -0
- package/dist/control-operation-responses.js +35 -0
- package/dist/control-operation-responses.js.map +1 -0
- package/dist/control-run-detail.d.ts +443 -242
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +72 -17
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-retry.d.ts +88 -0
- package/dist/control-run-retry.d.ts.map +1 -0
- package/dist/control-run-retry.js +40 -0
- package/dist/control-run-retry.js.map +1 -0
- package/dist/control-run-scope.d.ts +25 -0
- package/dist/control-run-scope.d.ts.map +1 -0
- package/dist/control-run-scope.js +22 -0
- package/dist/control-run-scope.js.map +1 -0
- package/dist/control-secret.d.ts +90 -0
- package/dist/control-secret.d.ts.map +1 -0
- package/dist/control-secret.js +35 -0
- package/dist/control-secret.js.map +1 -0
- package/dist/control-spec.d.ts +592 -0
- package/dist/control-spec.d.ts.map +1 -0
- package/dist/control-spec.js +85 -0
- package/dist/control-spec.js.map +1 -0
- package/dist/control-thread-apply.d.ts +175 -0
- package/dist/control-thread-apply.d.ts.map +1 -0
- package/dist/control-thread-apply.js +31 -0
- package/dist/control-thread-apply.js.map +1 -0
- package/dist/control-trust.d.ts +74 -10
- package/dist/control-trust.d.ts.map +1 -1
- package/dist/control-trust.js +31 -11
- package/dist/control-trust.js.map +1 -1
- package/dist/control.d.ts +1391 -878
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +468 -310
- package/dist/control.js.map +1 -1
- package/dist/decision.d.ts +10 -10
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +62 -15
- package/dist/decision.js.map +1 -1
- package/dist/delivery.d.ts +99 -0
- package/dist/delivery.d.ts.map +1 -0
- package/dist/delivery.js +19 -0
- package/dist/delivery.js.map +1 -0
- package/dist/events.d.ts +25 -2
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +25 -4
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +2 -2
- package/dist/gate.d.ts.map +1 -1
- package/dist/gate.js +25 -5
- package/dist/gate.js.map +1 -1
- package/dist/harness.d.ts +558 -175
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +207 -82
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/operation.d.ts +185 -0
- package/dist/operation.d.ts.map +1 -0
- package/dist/operation.js +50 -0
- package/dist/operation.js.map +1 -0
- package/dist/orchestrate.d.ts +127 -22
- package/dist/orchestrate.d.ts.map +1 -1
- package/dist/orchestrate.js +61 -7
- package/dist/orchestrate.js.map +1 -1
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +4 -1
- package/dist/primitives.js.map +1 -1
- package/dist/problem.d.ts +29 -0
- package/dist/problem.d.ts.map +1 -0
- package/dist/problem.js +17 -0
- package/dist/problem.js.map +1 -0
- package/dist/project.d.ts +97 -0
- package/dist/project.d.ts.map +1 -0
- package/dist/project.js +27 -0
- package/dist/project.js.map +1 -0
- package/dist/quota.d.ts +251 -0
- package/dist/quota.d.ts.map +1 -0
- package/dist/quota.js +46 -0
- package/dist/quota.js.map +1 -0
- package/dist/raw.d.ts +195 -0
- package/dist/raw.d.ts.map +1 -0
- package/dist/raw.js +58 -0
- package/dist/raw.js.map +1 -0
- package/dist/recovery.d.ts +515 -0
- package/dist/recovery.d.ts.map +1 -0
- package/dist/recovery.js +93 -0
- package/dist/recovery.js.map +1 -0
- package/dist/request-requirements.d.ts +36 -0
- package/dist/request-requirements.d.ts.map +1 -0
- package/dist/request-requirements.js +26 -0
- package/dist/request-requirements.js.map +1 -0
- package/dist/review.d.ts +26 -26
- package/dist/review.d.ts.map +1 -1
- package/dist/review.js +50 -10
- package/dist/review.js.map +1 -1
- package/dist/route.d.ts +10 -10
- package/dist/route.d.ts.map +1 -1
- package/dist/route.js +19 -4
- package/dist/route.js.map +1 -1
- package/dist/setup.d.ts +9766 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +450 -0
- package/dist/setup.js.map +1 -0
- package/dist/spec.d.ts +174 -57
- package/dist/spec.d.ts.map +1 -1
- package/dist/spec.js +69 -16
- package/dist/spec.js.map +1 -1
- package/dist/surface-run-controls.d.ts.map +1 -1
- package/dist/surface-run-controls.js +25 -21
- package/dist/surface-run-controls.js.map +1 -1
- package/dist/task.d.ts +1560 -58
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +97 -18
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +233 -60
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +97 -15
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +68 -41
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +45 -11
- package/dist/thread.js.map +1 -1
- package/dist/workproduct.d.ts +3 -3
- package/dist/workproduct.d.ts.map +1 -1
- package/dist/workproduct.js.map +1 -1
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +12 -3
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +53 -11
- package/generated/BudgetLease.schema.json +55 -6
- package/generated/BudgetObservation.schema.json +28 -7
- package/generated/ConformanceReport.schema.json +49 -0
- package/generated/ControlApplyCheckResponse.schema.json +34 -0
- package/generated/ControlArtifactListResponse.schema.json +57 -0
- package/generated/ControlAuthReadinessRefreshRequest.schema.json +38 -0
- package/generated/ControlAuthReadinessRefreshResponse.schema.json +85 -0
- package/generated/ControlDeliveryResponse.schema.json +136 -0
- package/generated/ControlHandshakeRequest.schema.json +26 -0
- package/generated/ControlHandshakeResponse.schema.json +30 -0
- package/generated/ControlHarnessListResponse.schema.json +103 -12
- package/generated/ControlHarnessSettingsPatch.schema.json +0 -12
- package/generated/ControlJournalEvent.schema.json +42 -0
- package/generated/ControlJournalExportReceipt.schema.json +49 -0
- package/generated/ControlJournalInspection.schema.json +149 -0
- package/generated/ControlJournalQuarantineReceipt.schema.json +55 -0
- package/generated/ControlJournalQuarantineRequest.schema.json +24 -0
- package/generated/ControlJournalValidation.schema.json +181 -0
- package/generated/ControlOperationCatalog.schema.json +128 -0
- package/generated/ControlOperationDescriptor.schema.json +110 -0
- package/generated/ControlProblem.schema.json +59 -0
- package/generated/ControlProject.schema.json +42 -0
- package/generated/ControlProjectListResponse.schema.json +54 -0
- package/generated/ControlProjectRegisterRequest.schema.json +19 -0
- package/generated/ControlProjectRelinkRequest.schema.json +19 -0
- package/generated/ControlQueuedRunInfo.schema.json +4 -2
- package/generated/ControlQuotaResponse.schema.json +176 -0
- package/generated/ControlResource.schema.json +59 -0
- package/generated/ControlRunAgainDraft.schema.json +499 -0
- package/generated/ControlRunDetail.schema.json +197 -30
- package/generated/ControlRunListResponse.schema.json +797 -0
- package/generated/ControlRunRetryResponse.schema.json +54 -0
- package/generated/ControlRunStartRequest.schema.json +83 -55
- package/generated/ControlRunStartResponse.schema.json +78 -0
- package/generated/ControlRunSummary.schema.json +140 -20
- package/generated/ControlSecretListResponse.schema.json +8 -14
- package/generated/ControlSecretMutationResponse.schema.json +32 -0
- package/generated/ControlSecretSetRequest.schema.json +27 -0
- package/generated/ControlSettingsSnapshot.schema.json +118 -44
- package/generated/ControlSettingsUpdateRequest.schema.json +110 -40
- package/generated/ControlSetupJob.schema.json +763 -65
- package/generated/ControlSetupJobCreateRequest.schema.json +11 -13
- package/generated/ControlSetupJobEvent.schema.json +861 -5
- package/generated/ControlSetupJobListFilter.schema.json +35 -0
- package/generated/ControlSetupJobListResponse.schema.json +763 -65
- package/generated/ControlSetupJobSnapshot.schema.json +870 -0
- package/generated/ControlSpecAnswersRequest.schema.json +74 -0
- package/generated/ControlSpecQuestionsRequest.schema.json +128 -2
- package/generated/ControlSpecSession.schema.json +249 -0
- package/generated/ControlSpecSessionListResponse.schema.json +261 -0
- package/generated/ControlThread.schema.json +20 -2
- package/generated/ControlThreadApplyResponse.schema.json +139 -0
- package/generated/ControlThreadDetail.schema.json +32 -4
- package/generated/ControlThreadListResponse.schema.json +20 -2
- package/generated/ControlThreadTurnRequest.schema.json +373 -0
- package/generated/ControlThreadTurnResponse.schema.json +73 -0
- package/generated/ControlThreadUpdateRequest.schema.json +1 -1
- package/generated/ControlTrustListResponse.schema.json +6 -0
- package/generated/ControlTrustState.schema.json +6 -0
- package/generated/ControlTrustUpdateRequest.schema.json +65 -3
- package/generated/ControlUploadCreateRequest.schema.json +37 -0
- package/generated/ControlUploadFinalizeRequest.schema.json +17 -0
- package/generated/ControlUploadStatus.schema.json +40 -0
- package/generated/DecisionRecord.schema.json +6 -3
- package/generated/GlobalConfig.schema.json +105 -58
- package/generated/HarnessEvent.schema.json +201 -10
- package/generated/HarnessManifest.schema.json +63 -12
- package/generated/HarnessStatusDto.schema.json +103 -12
- package/generated/OrchestrateContract.schema.json +32 -6
- package/generated/OrchestratePlan.schema.json +20 -0
- package/generated/OrchestratePlanProgress.schema.json +61 -0
- package/generated/PaidBudget.schema.json +42 -0
- package/generated/Project.schema.json +45 -0
- package/generated/ProjectConfig.schema.json +45 -18
- package/generated/RawContextPacket.schema.json +184 -0
- package/generated/RawGitPatchEnvelope.schema.json +70 -0
- package/generated/RunTelemetry.schema.json +80 -0
- package/generated/SecretMetadata.schema.json +4 -7
- package/generated/SpecPack.schema.json +118 -7
- package/generated/TaskContract.schema.json +159 -26
- package/generated/TestCommandInvocation.schema.json +45 -0
- package/generated/Thread.schema.json +62 -6
- package/generated/ThreadTurn.schema.json +24 -11
- package/generated/TrustConfig.schema.json +77 -0
- package/package.json +1 -1
- package/generated/ControlSetupJobConfirmRequest.schema.json +0 -18
- package/generated/ControlSpecFreezeRequest.schema.json +0 -83
package/dist/task.d.ts
CHANGED
|
@@ -13,18 +13,125 @@ export declare const SuccessCriterion: z.ZodObject<{
|
|
|
13
13
|
required?: boolean | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export type SuccessCriterion = z.infer<typeof SuccessCriterion>;
|
|
16
|
+
export declare const TestCommandInvocation: z.ZodObject<{
|
|
17
|
+
program: z.ZodString;
|
|
18
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
19
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
20
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
21
|
+
}, "strict", z.ZodTypeAny, {
|
|
22
|
+
program: string;
|
|
23
|
+
args: string[];
|
|
24
|
+
envAllowlist: string[];
|
|
25
|
+
cwd?: string | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
program: string;
|
|
28
|
+
cwd?: string | undefined;
|
|
29
|
+
args?: string[] | undefined;
|
|
30
|
+
envAllowlist?: string[] | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
export type TestCommandInvocation = z.infer<typeof TestCommandInvocation>;
|
|
33
|
+
export declare const TestCommandGrant: z.ZodObject<{
|
|
34
|
+
projectDigest: z.ZodString;
|
|
35
|
+
configDigest: z.ZodString;
|
|
36
|
+
commandDigest: z.ZodString;
|
|
37
|
+
executablePath: z.ZodString;
|
|
38
|
+
executableDigest: z.ZodString;
|
|
39
|
+
scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
|
|
42
|
+
}, "strict", z.ZodTypeAny, {
|
|
43
|
+
projectDigest: string;
|
|
44
|
+
configDigest: string;
|
|
45
|
+
commandDigest: string;
|
|
46
|
+
executablePath: string;
|
|
47
|
+
executableDigest: string;
|
|
48
|
+
scriptPath: string | null;
|
|
49
|
+
scriptDigest: string | null;
|
|
50
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
51
|
+
}, {
|
|
52
|
+
projectDigest: string;
|
|
53
|
+
configDigest: string;
|
|
54
|
+
commandDigest: string;
|
|
55
|
+
executablePath: string;
|
|
56
|
+
executableDigest: string;
|
|
57
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
58
|
+
scriptPath?: string | null | undefined;
|
|
59
|
+
scriptDigest?: string | null | undefined;
|
|
60
|
+
}>;
|
|
61
|
+
export type TestCommandGrant = z.infer<typeof TestCommandGrant>;
|
|
16
62
|
export declare const TestCommand: z.ZodObject<{
|
|
63
|
+
program: z.ZodString;
|
|
64
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
65
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
66
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
67
|
+
} & {
|
|
17
68
|
id: z.ZodString;
|
|
18
|
-
command: z.ZodString;
|
|
19
69
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
-
|
|
70
|
+
trust_required: z.ZodDefault<z.ZodBoolean>;
|
|
71
|
+
trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
72
|
+
projectDigest: z.ZodString;
|
|
73
|
+
configDigest: z.ZodString;
|
|
74
|
+
commandDigest: z.ZodString;
|
|
75
|
+
executablePath: z.ZodString;
|
|
76
|
+
executableDigest: z.ZodString;
|
|
77
|
+
scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
|
|
80
|
+
}, "strict", z.ZodTypeAny, {
|
|
81
|
+
projectDigest: string;
|
|
82
|
+
configDigest: string;
|
|
83
|
+
commandDigest: string;
|
|
84
|
+
executablePath: string;
|
|
85
|
+
executableDigest: string;
|
|
86
|
+
scriptPath: string | null;
|
|
87
|
+
scriptDigest: string | null;
|
|
88
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
89
|
+
}, {
|
|
90
|
+
projectDigest: string;
|
|
91
|
+
configDigest: string;
|
|
92
|
+
commandDigest: string;
|
|
93
|
+
executablePath: string;
|
|
94
|
+
executableDigest: string;
|
|
95
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
96
|
+
scriptPath?: string | null | undefined;
|
|
97
|
+
scriptDigest?: string | null | undefined;
|
|
98
|
+
}>>>;
|
|
99
|
+
}, "strict", z.ZodTypeAny, {
|
|
21
100
|
id: string;
|
|
22
|
-
command: string;
|
|
23
101
|
required: boolean;
|
|
102
|
+
program: string;
|
|
103
|
+
args: string[];
|
|
104
|
+
envAllowlist: string[];
|
|
105
|
+
trust_required: boolean;
|
|
106
|
+
trust_grant: {
|
|
107
|
+
projectDigest: string;
|
|
108
|
+
configDigest: string;
|
|
109
|
+
commandDigest: string;
|
|
110
|
+
executablePath: string;
|
|
111
|
+
executableDigest: string;
|
|
112
|
+
scriptPath: string | null;
|
|
113
|
+
scriptDigest: string | null;
|
|
114
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
115
|
+
} | null;
|
|
116
|
+
cwd?: string | undefined;
|
|
24
117
|
}, {
|
|
25
118
|
id: string;
|
|
26
|
-
|
|
119
|
+
program: string;
|
|
120
|
+
cwd?: string | undefined;
|
|
27
121
|
required?: boolean | undefined;
|
|
122
|
+
args?: string[] | undefined;
|
|
123
|
+
envAllowlist?: string[] | undefined;
|
|
124
|
+
trust_required?: boolean | undefined;
|
|
125
|
+
trust_grant?: {
|
|
126
|
+
projectDigest: string;
|
|
127
|
+
configDigest: string;
|
|
128
|
+
commandDigest: string;
|
|
129
|
+
executablePath: string;
|
|
130
|
+
executableDigest: string;
|
|
131
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
132
|
+
scriptPath?: string | null | undefined;
|
|
133
|
+
scriptDigest?: string | null | undefined;
|
|
134
|
+
} | null | undefined;
|
|
28
135
|
}>;
|
|
29
136
|
export type TestCommand = z.infer<typeof TestCommand>;
|
|
30
137
|
export declare const ProtectedPathApproval: z.ZodObject<{
|
|
@@ -201,12 +308,12 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
201
308
|
path: z.ZodOptional<z.ZodString>;
|
|
202
309
|
}, "strip", z.ZodTypeAny, {
|
|
203
310
|
path?: string | undefined;
|
|
204
|
-
id?: string | undefined;
|
|
205
311
|
hash?: string | undefined;
|
|
312
|
+
id?: string | undefined;
|
|
206
313
|
}, {
|
|
207
314
|
path?: string | undefined;
|
|
208
|
-
id?: string | undefined;
|
|
209
315
|
hash?: string | undefined;
|
|
316
|
+
id?: string | undefined;
|
|
210
317
|
}>>;
|
|
211
318
|
success_criteria: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
212
319
|
id: z.ZodString;
|
|
@@ -296,29 +403,118 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
296
403
|
}>>;
|
|
297
404
|
tests: z.ZodDefault<z.ZodObject<{
|
|
298
405
|
commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
406
|
+
program: z.ZodString;
|
|
407
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
408
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
409
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
410
|
+
} & {
|
|
299
411
|
id: z.ZodString;
|
|
300
|
-
command: z.ZodString;
|
|
301
412
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
302
|
-
|
|
413
|
+
trust_required: z.ZodDefault<z.ZodBoolean>;
|
|
414
|
+
trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
415
|
+
projectDigest: z.ZodString;
|
|
416
|
+
configDigest: z.ZodString;
|
|
417
|
+
commandDigest: z.ZodString;
|
|
418
|
+
executablePath: z.ZodString;
|
|
419
|
+
executableDigest: z.ZodString;
|
|
420
|
+
scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
421
|
+
scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
422
|
+
accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
|
|
423
|
+
}, "strict", z.ZodTypeAny, {
|
|
424
|
+
projectDigest: string;
|
|
425
|
+
configDigest: string;
|
|
426
|
+
commandDigest: string;
|
|
427
|
+
executablePath: string;
|
|
428
|
+
executableDigest: string;
|
|
429
|
+
scriptPath: string | null;
|
|
430
|
+
scriptDigest: string | null;
|
|
431
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
432
|
+
}, {
|
|
433
|
+
projectDigest: string;
|
|
434
|
+
configDigest: string;
|
|
435
|
+
commandDigest: string;
|
|
436
|
+
executablePath: string;
|
|
437
|
+
executableDigest: string;
|
|
438
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
439
|
+
scriptPath?: string | null | undefined;
|
|
440
|
+
scriptDigest?: string | null | undefined;
|
|
441
|
+
}>>>;
|
|
442
|
+
}, "strict", z.ZodTypeAny, {
|
|
303
443
|
id: string;
|
|
304
|
-
command: string;
|
|
305
444
|
required: boolean;
|
|
445
|
+
program: string;
|
|
446
|
+
args: string[];
|
|
447
|
+
envAllowlist: string[];
|
|
448
|
+
trust_required: boolean;
|
|
449
|
+
trust_grant: {
|
|
450
|
+
projectDigest: string;
|
|
451
|
+
configDigest: string;
|
|
452
|
+
commandDigest: string;
|
|
453
|
+
executablePath: string;
|
|
454
|
+
executableDigest: string;
|
|
455
|
+
scriptPath: string | null;
|
|
456
|
+
scriptDigest: string | null;
|
|
457
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
458
|
+
} | null;
|
|
459
|
+
cwd?: string | undefined;
|
|
306
460
|
}, {
|
|
307
461
|
id: string;
|
|
308
|
-
|
|
462
|
+
program: string;
|
|
463
|
+
cwd?: string | undefined;
|
|
309
464
|
required?: boolean | undefined;
|
|
465
|
+
args?: string[] | undefined;
|
|
466
|
+
envAllowlist?: string[] | undefined;
|
|
467
|
+
trust_required?: boolean | undefined;
|
|
468
|
+
trust_grant?: {
|
|
469
|
+
projectDigest: string;
|
|
470
|
+
configDigest: string;
|
|
471
|
+
commandDigest: string;
|
|
472
|
+
executablePath: string;
|
|
473
|
+
executableDigest: string;
|
|
474
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
475
|
+
scriptPath?: string | null | undefined;
|
|
476
|
+
scriptDigest?: string | null | undefined;
|
|
477
|
+
} | null | undefined;
|
|
310
478
|
}>, "many">>;
|
|
311
479
|
}, "strip", z.ZodTypeAny, {
|
|
312
480
|
commands: {
|
|
313
481
|
id: string;
|
|
314
|
-
command: string;
|
|
315
482
|
required: boolean;
|
|
483
|
+
program: string;
|
|
484
|
+
args: string[];
|
|
485
|
+
envAllowlist: string[];
|
|
486
|
+
trust_required: boolean;
|
|
487
|
+
trust_grant: {
|
|
488
|
+
projectDigest: string;
|
|
489
|
+
configDigest: string;
|
|
490
|
+
commandDigest: string;
|
|
491
|
+
executablePath: string;
|
|
492
|
+
executableDigest: string;
|
|
493
|
+
scriptPath: string | null;
|
|
494
|
+
scriptDigest: string | null;
|
|
495
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
496
|
+
} | null;
|
|
497
|
+
cwd?: string | undefined;
|
|
316
498
|
}[];
|
|
317
499
|
}, {
|
|
318
500
|
commands?: {
|
|
319
501
|
id: string;
|
|
320
|
-
|
|
502
|
+
program: string;
|
|
503
|
+
cwd?: string | undefined;
|
|
321
504
|
required?: boolean | undefined;
|
|
505
|
+
args?: string[] | undefined;
|
|
506
|
+
envAllowlist?: string[] | undefined;
|
|
507
|
+
trust_required?: boolean | undefined;
|
|
508
|
+
trust_grant?: {
|
|
509
|
+
projectDigest: string;
|
|
510
|
+
configDigest: string;
|
|
511
|
+
commandDigest: string;
|
|
512
|
+
executablePath: string;
|
|
513
|
+
executableDigest: string;
|
|
514
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
515
|
+
scriptPath?: string | null | undefined;
|
|
516
|
+
scriptDigest?: string | null | undefined;
|
|
517
|
+
} | null | undefined;
|
|
322
518
|
}[] | undefined;
|
|
323
519
|
}>>;
|
|
324
520
|
access: z.ZodDefault<z.ZodObject<{
|
|
@@ -360,14 +556,39 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
360
556
|
deny?: string[] | undefined;
|
|
361
557
|
}>>;
|
|
362
558
|
budget: z.ZodDefault<z.ZodObject<{
|
|
363
|
-
|
|
364
|
-
|
|
559
|
+
routing_goal: z.ZodDefault<z.ZodEnum<["auto", "quality", "economy"]>>;
|
|
560
|
+
paid_budget: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
561
|
+
kind: z.ZodLiteral<"unlimited">;
|
|
562
|
+
}, "strict", z.ZodTypeAny, {
|
|
563
|
+
kind: "unlimited";
|
|
564
|
+
}, {
|
|
565
|
+
kind: "unlimited";
|
|
566
|
+
}>, z.ZodObject<{
|
|
567
|
+
kind: z.ZodLiteral<"finite">;
|
|
568
|
+
maxUsd: z.ZodNumber;
|
|
569
|
+
}, "strict", z.ZodTypeAny, {
|
|
570
|
+
kind: "finite";
|
|
571
|
+
maxUsd: number;
|
|
572
|
+
}, {
|
|
573
|
+
kind: "finite";
|
|
574
|
+
maxUsd: number;
|
|
575
|
+
}>]>>;
|
|
365
576
|
}, "strip", z.ZodTypeAny, {
|
|
366
|
-
|
|
367
|
-
|
|
577
|
+
routing_goal: "auto" | "quality" | "economy";
|
|
578
|
+
paid_budget: {
|
|
579
|
+
kind: "unlimited";
|
|
580
|
+
} | {
|
|
581
|
+
kind: "finite";
|
|
582
|
+
maxUsd: number;
|
|
583
|
+
};
|
|
368
584
|
}, {
|
|
369
|
-
|
|
370
|
-
|
|
585
|
+
routing_goal?: "auto" | "quality" | "economy" | undefined;
|
|
586
|
+
paid_budget?: {
|
|
587
|
+
kind: "unlimited";
|
|
588
|
+
} | {
|
|
589
|
+
kind: "finite";
|
|
590
|
+
maxUsd: number;
|
|
591
|
+
} | undefined;
|
|
371
592
|
}>>;
|
|
372
593
|
/** Resolved harness-scoped model map for this run (harness id → model id),
|
|
373
594
|
* after scalar→primary expansion. The contract is the SSOT the route spec
|
|
@@ -401,6 +622,18 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
401
622
|
require_no_accepted_needs_human_open?: boolean | undefined;
|
|
402
623
|
}>>;
|
|
403
624
|
}, "strip", z.ZodTypeAny, {
|
|
625
|
+
mode: {
|
|
626
|
+
kind: "ask" | "plan" | "audit" | "agent" | "orchestrate";
|
|
627
|
+
};
|
|
628
|
+
schema_version: 2;
|
|
629
|
+
constraints: {
|
|
630
|
+
protected_paths: string[];
|
|
631
|
+
auto_protected_paths: string[];
|
|
632
|
+
protected_path_approvals: {
|
|
633
|
+
path: string;
|
|
634
|
+
reason?: string | undefined;
|
|
635
|
+
}[];
|
|
636
|
+
};
|
|
404
637
|
access: {
|
|
405
638
|
requested_profile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
406
639
|
effective_profile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
@@ -410,10 +643,6 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
410
643
|
allow: string[];
|
|
411
644
|
deny: string[];
|
|
412
645
|
};
|
|
413
|
-
mode: {
|
|
414
|
-
kind: "ask" | "plan" | "audit" | "agent" | "orchestrate";
|
|
415
|
-
};
|
|
416
|
-
schema_version: 2;
|
|
417
646
|
created_at: string;
|
|
418
647
|
repo: {
|
|
419
648
|
root: string;
|
|
@@ -422,17 +651,6 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
422
651
|
base_sha?: string | undefined;
|
|
423
652
|
};
|
|
424
653
|
task_id: string;
|
|
425
|
-
tests: {
|
|
426
|
-
commands: {
|
|
427
|
-
id: string;
|
|
428
|
-
command: string;
|
|
429
|
-
required: boolean;
|
|
430
|
-
}[];
|
|
431
|
-
};
|
|
432
|
-
budget: {
|
|
433
|
-
max_usd: number | null;
|
|
434
|
-
portfolio: "daily-rich" | "balanced" | "cheapest" | "strongest" | "burn" | "subscription-first" | "api-overflow" | "conserve-claude" | "conserve-codex";
|
|
435
|
-
};
|
|
436
654
|
user_intent: {
|
|
437
655
|
raw: string;
|
|
438
656
|
normalized?: string | undefined;
|
|
@@ -453,12 +671,25 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
453
671
|
}[];
|
|
454
672
|
order: string[];
|
|
455
673
|
} | null;
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
674
|
+
tests: {
|
|
675
|
+
commands: {
|
|
676
|
+
id: string;
|
|
677
|
+
required: boolean;
|
|
678
|
+
program: string;
|
|
679
|
+
args: string[];
|
|
680
|
+
envAllowlist: string[];
|
|
681
|
+
trust_required: boolean;
|
|
682
|
+
trust_grant: {
|
|
683
|
+
projectDigest: string;
|
|
684
|
+
configDigest: string;
|
|
685
|
+
commandDigest: string;
|
|
686
|
+
executablePath: string;
|
|
687
|
+
executableDigest: string;
|
|
688
|
+
scriptPath: string | null;
|
|
689
|
+
scriptDigest: string | null;
|
|
690
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
691
|
+
} | null;
|
|
692
|
+
cwd?: string | undefined;
|
|
462
693
|
}[];
|
|
463
694
|
};
|
|
464
695
|
external_context: {
|
|
@@ -466,6 +697,15 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
466
697
|
web_required: boolean;
|
|
467
698
|
effective_mode: "off" | "auto" | "cached" | "live";
|
|
468
699
|
};
|
|
700
|
+
budget: {
|
|
701
|
+
routing_goal: "auto" | "quality" | "economy";
|
|
702
|
+
paid_budget: {
|
|
703
|
+
kind: "unlimited";
|
|
704
|
+
} | {
|
|
705
|
+
kind: "finite";
|
|
706
|
+
maxUsd: number;
|
|
707
|
+
};
|
|
708
|
+
};
|
|
469
709
|
routing_models: Record<string, string>;
|
|
470
710
|
convergence: {
|
|
471
711
|
require_tests_pass: boolean;
|
|
@@ -477,8 +717,8 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
477
717
|
};
|
|
478
718
|
spec?: {
|
|
479
719
|
path?: string | undefined;
|
|
480
|
-
id?: string | undefined;
|
|
481
720
|
hash?: string | undefined;
|
|
721
|
+
id?: string | undefined;
|
|
482
722
|
} | undefined;
|
|
483
723
|
}, {
|
|
484
724
|
mode: {
|
|
@@ -499,8 +739,16 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
499
739
|
};
|
|
500
740
|
spec?: {
|
|
501
741
|
path?: string | undefined;
|
|
502
|
-
id?: string | undefined;
|
|
503
742
|
hash?: string | undefined;
|
|
743
|
+
id?: string | undefined;
|
|
744
|
+
} | undefined;
|
|
745
|
+
constraints?: {
|
|
746
|
+
protected_paths?: string[] | undefined;
|
|
747
|
+
auto_protected_paths?: string[] | undefined;
|
|
748
|
+
protected_path_approvals?: {
|
|
749
|
+
path: string;
|
|
750
|
+
reason?: string | undefined;
|
|
751
|
+
}[] | undefined;
|
|
504
752
|
} | undefined;
|
|
505
753
|
access?: {
|
|
506
754
|
requested_profile?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
@@ -511,17 +759,6 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
511
759
|
allow?: string[] | undefined;
|
|
512
760
|
deny?: string[] | undefined;
|
|
513
761
|
} | undefined;
|
|
514
|
-
tests?: {
|
|
515
|
-
commands?: {
|
|
516
|
-
id: string;
|
|
517
|
-
command: string;
|
|
518
|
-
required?: boolean | undefined;
|
|
519
|
-
}[] | undefined;
|
|
520
|
-
} | undefined;
|
|
521
|
-
budget?: {
|
|
522
|
-
max_usd?: number | null | undefined;
|
|
523
|
-
portfolio?: "daily-rich" | "balanced" | "cheapest" | "strongest" | "burn" | "subscription-first" | "api-overflow" | "conserve-claude" | "conserve-codex" | undefined;
|
|
524
|
-
} | undefined;
|
|
525
762
|
success_criteria?: {
|
|
526
763
|
id: string;
|
|
527
764
|
text: string;
|
|
@@ -538,12 +775,25 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
538
775
|
}[] | undefined;
|
|
539
776
|
order?: string[] | undefined;
|
|
540
777
|
} | null | undefined;
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
778
|
+
tests?: {
|
|
779
|
+
commands?: {
|
|
780
|
+
id: string;
|
|
781
|
+
program: string;
|
|
782
|
+
cwd?: string | undefined;
|
|
783
|
+
required?: boolean | undefined;
|
|
784
|
+
args?: string[] | undefined;
|
|
785
|
+
envAllowlist?: string[] | undefined;
|
|
786
|
+
trust_required?: boolean | undefined;
|
|
787
|
+
trust_grant?: {
|
|
788
|
+
projectDigest: string;
|
|
789
|
+
configDigest: string;
|
|
790
|
+
commandDigest: string;
|
|
791
|
+
executablePath: string;
|
|
792
|
+
executableDigest: string;
|
|
793
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
794
|
+
scriptPath?: string | null | undefined;
|
|
795
|
+
scriptDigest?: string | null | undefined;
|
|
796
|
+
} | null | undefined;
|
|
547
797
|
}[] | undefined;
|
|
548
798
|
} | undefined;
|
|
549
799
|
external_context?: {
|
|
@@ -551,6 +801,15 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
551
801
|
web_required?: boolean | undefined;
|
|
552
802
|
effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
553
803
|
} | undefined;
|
|
804
|
+
budget?: {
|
|
805
|
+
routing_goal?: "auto" | "quality" | "economy" | undefined;
|
|
806
|
+
paid_budget?: {
|
|
807
|
+
kind: "unlimited";
|
|
808
|
+
} | {
|
|
809
|
+
kind: "finite";
|
|
810
|
+
maxUsd: number;
|
|
811
|
+
} | undefined;
|
|
812
|
+
} | undefined;
|
|
554
813
|
routing_models?: Record<string, string> | undefined;
|
|
555
814
|
convergence?: {
|
|
556
815
|
require_tests_pass?: boolean | undefined;
|
|
@@ -562,4 +821,1247 @@ export declare const TaskContract: z.ZodObject<{
|
|
|
562
821
|
} | undefined;
|
|
563
822
|
}>;
|
|
564
823
|
export type TaskContract = z.infer<typeof TaskContract>;
|
|
824
|
+
/**
|
|
825
|
+
* Decoder for the persisted, frozen task artifact used to authorize delivery.
|
|
826
|
+
* Runtime construction keeps TaskContract defaults for callers building a new
|
|
827
|
+
* contract, but an existing authority must state its gate set explicitly: an
|
|
828
|
+
* omitted/typoed field must never become a trustworthy empty list via defaults.
|
|
829
|
+
*/
|
|
830
|
+
export declare const FrozenTaskContractArtifact: z.ZodPipeline<z.ZodObject<{
|
|
831
|
+
tests: z.ZodObject<{
|
|
832
|
+
commands: z.ZodArray<z.ZodObject<{
|
|
833
|
+
program: z.ZodString;
|
|
834
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
835
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
836
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
837
|
+
} & {
|
|
838
|
+
id: z.ZodString;
|
|
839
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
840
|
+
trust_required: z.ZodDefault<z.ZodBoolean>;
|
|
841
|
+
trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
842
|
+
projectDigest: z.ZodString;
|
|
843
|
+
configDigest: z.ZodString;
|
|
844
|
+
commandDigest: z.ZodString;
|
|
845
|
+
executablePath: z.ZodString;
|
|
846
|
+
executableDigest: z.ZodString;
|
|
847
|
+
scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
848
|
+
scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
849
|
+
accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
|
|
850
|
+
}, "strict", z.ZodTypeAny, {
|
|
851
|
+
projectDigest: string;
|
|
852
|
+
configDigest: string;
|
|
853
|
+
commandDigest: string;
|
|
854
|
+
executablePath: string;
|
|
855
|
+
executableDigest: string;
|
|
856
|
+
scriptPath: string | null;
|
|
857
|
+
scriptDigest: string | null;
|
|
858
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
859
|
+
}, {
|
|
860
|
+
projectDigest: string;
|
|
861
|
+
configDigest: string;
|
|
862
|
+
commandDigest: string;
|
|
863
|
+
executablePath: string;
|
|
864
|
+
executableDigest: string;
|
|
865
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
866
|
+
scriptPath?: string | null | undefined;
|
|
867
|
+
scriptDigest?: string | null | undefined;
|
|
868
|
+
}>>>;
|
|
869
|
+
}, "strict", z.ZodTypeAny, {
|
|
870
|
+
id: string;
|
|
871
|
+
required: boolean;
|
|
872
|
+
program: string;
|
|
873
|
+
args: string[];
|
|
874
|
+
envAllowlist: string[];
|
|
875
|
+
trust_required: boolean;
|
|
876
|
+
trust_grant: {
|
|
877
|
+
projectDigest: string;
|
|
878
|
+
configDigest: string;
|
|
879
|
+
commandDigest: string;
|
|
880
|
+
executablePath: string;
|
|
881
|
+
executableDigest: string;
|
|
882
|
+
scriptPath: string | null;
|
|
883
|
+
scriptDigest: string | null;
|
|
884
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
885
|
+
} | null;
|
|
886
|
+
cwd?: string | undefined;
|
|
887
|
+
}, {
|
|
888
|
+
id: string;
|
|
889
|
+
program: string;
|
|
890
|
+
cwd?: string | undefined;
|
|
891
|
+
required?: boolean | undefined;
|
|
892
|
+
args?: string[] | undefined;
|
|
893
|
+
envAllowlist?: string[] | undefined;
|
|
894
|
+
trust_required?: boolean | undefined;
|
|
895
|
+
trust_grant?: {
|
|
896
|
+
projectDigest: string;
|
|
897
|
+
configDigest: string;
|
|
898
|
+
commandDigest: string;
|
|
899
|
+
executablePath: string;
|
|
900
|
+
executableDigest: string;
|
|
901
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
902
|
+
scriptPath?: string | null | undefined;
|
|
903
|
+
scriptDigest?: string | null | undefined;
|
|
904
|
+
} | null | undefined;
|
|
905
|
+
}>, "many">;
|
|
906
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
907
|
+
commands: z.ZodArray<z.ZodObject<{
|
|
908
|
+
program: z.ZodString;
|
|
909
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
910
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
911
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
912
|
+
} & {
|
|
913
|
+
id: z.ZodString;
|
|
914
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
915
|
+
trust_required: z.ZodDefault<z.ZodBoolean>;
|
|
916
|
+
trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
917
|
+
projectDigest: z.ZodString;
|
|
918
|
+
configDigest: z.ZodString;
|
|
919
|
+
commandDigest: z.ZodString;
|
|
920
|
+
executablePath: z.ZodString;
|
|
921
|
+
executableDigest: z.ZodString;
|
|
922
|
+
scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
923
|
+
scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
924
|
+
accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
|
|
925
|
+
}, "strict", z.ZodTypeAny, {
|
|
926
|
+
projectDigest: string;
|
|
927
|
+
configDigest: string;
|
|
928
|
+
commandDigest: string;
|
|
929
|
+
executablePath: string;
|
|
930
|
+
executableDigest: string;
|
|
931
|
+
scriptPath: string | null;
|
|
932
|
+
scriptDigest: string | null;
|
|
933
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
934
|
+
}, {
|
|
935
|
+
projectDigest: string;
|
|
936
|
+
configDigest: string;
|
|
937
|
+
commandDigest: string;
|
|
938
|
+
executablePath: string;
|
|
939
|
+
executableDigest: string;
|
|
940
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
941
|
+
scriptPath?: string | null | undefined;
|
|
942
|
+
scriptDigest?: string | null | undefined;
|
|
943
|
+
}>>>;
|
|
944
|
+
}, "strict", z.ZodTypeAny, {
|
|
945
|
+
id: string;
|
|
946
|
+
required: boolean;
|
|
947
|
+
program: string;
|
|
948
|
+
args: string[];
|
|
949
|
+
envAllowlist: string[];
|
|
950
|
+
trust_required: boolean;
|
|
951
|
+
trust_grant: {
|
|
952
|
+
projectDigest: string;
|
|
953
|
+
configDigest: string;
|
|
954
|
+
commandDigest: string;
|
|
955
|
+
executablePath: string;
|
|
956
|
+
executableDigest: string;
|
|
957
|
+
scriptPath: string | null;
|
|
958
|
+
scriptDigest: string | null;
|
|
959
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
960
|
+
} | null;
|
|
961
|
+
cwd?: string | undefined;
|
|
962
|
+
}, {
|
|
963
|
+
id: string;
|
|
964
|
+
program: string;
|
|
965
|
+
cwd?: string | undefined;
|
|
966
|
+
required?: boolean | undefined;
|
|
967
|
+
args?: string[] | undefined;
|
|
968
|
+
envAllowlist?: string[] | undefined;
|
|
969
|
+
trust_required?: boolean | undefined;
|
|
970
|
+
trust_grant?: {
|
|
971
|
+
projectDigest: string;
|
|
972
|
+
configDigest: string;
|
|
973
|
+
commandDigest: string;
|
|
974
|
+
executablePath: string;
|
|
975
|
+
executableDigest: string;
|
|
976
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
977
|
+
scriptPath?: string | null | undefined;
|
|
978
|
+
scriptDigest?: string | null | undefined;
|
|
979
|
+
} | null | undefined;
|
|
980
|
+
}>, "many">;
|
|
981
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
982
|
+
commands: z.ZodArray<z.ZodObject<{
|
|
983
|
+
program: z.ZodString;
|
|
984
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
985
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
986
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
987
|
+
} & {
|
|
988
|
+
id: z.ZodString;
|
|
989
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
990
|
+
trust_required: z.ZodDefault<z.ZodBoolean>;
|
|
991
|
+
trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
992
|
+
projectDigest: z.ZodString;
|
|
993
|
+
configDigest: z.ZodString;
|
|
994
|
+
commandDigest: z.ZodString;
|
|
995
|
+
executablePath: z.ZodString;
|
|
996
|
+
executableDigest: z.ZodString;
|
|
997
|
+
scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
998
|
+
scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
999
|
+
accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
|
|
1000
|
+
}, "strict", z.ZodTypeAny, {
|
|
1001
|
+
projectDigest: string;
|
|
1002
|
+
configDigest: string;
|
|
1003
|
+
commandDigest: string;
|
|
1004
|
+
executablePath: string;
|
|
1005
|
+
executableDigest: string;
|
|
1006
|
+
scriptPath: string | null;
|
|
1007
|
+
scriptDigest: string | null;
|
|
1008
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1009
|
+
}, {
|
|
1010
|
+
projectDigest: string;
|
|
1011
|
+
configDigest: string;
|
|
1012
|
+
commandDigest: string;
|
|
1013
|
+
executablePath: string;
|
|
1014
|
+
executableDigest: string;
|
|
1015
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1016
|
+
scriptPath?: string | null | undefined;
|
|
1017
|
+
scriptDigest?: string | null | undefined;
|
|
1018
|
+
}>>>;
|
|
1019
|
+
}, "strict", z.ZodTypeAny, {
|
|
1020
|
+
id: string;
|
|
1021
|
+
required: boolean;
|
|
1022
|
+
program: string;
|
|
1023
|
+
args: string[];
|
|
1024
|
+
envAllowlist: string[];
|
|
1025
|
+
trust_required: boolean;
|
|
1026
|
+
trust_grant: {
|
|
1027
|
+
projectDigest: string;
|
|
1028
|
+
configDigest: string;
|
|
1029
|
+
commandDigest: string;
|
|
1030
|
+
executablePath: string;
|
|
1031
|
+
executableDigest: string;
|
|
1032
|
+
scriptPath: string | null;
|
|
1033
|
+
scriptDigest: string | null;
|
|
1034
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1035
|
+
} | null;
|
|
1036
|
+
cwd?: string | undefined;
|
|
1037
|
+
}, {
|
|
1038
|
+
id: string;
|
|
1039
|
+
program: string;
|
|
1040
|
+
cwd?: string | undefined;
|
|
1041
|
+
required?: boolean | undefined;
|
|
1042
|
+
args?: string[] | undefined;
|
|
1043
|
+
envAllowlist?: string[] | undefined;
|
|
1044
|
+
trust_required?: boolean | undefined;
|
|
1045
|
+
trust_grant?: {
|
|
1046
|
+
projectDigest: string;
|
|
1047
|
+
configDigest: string;
|
|
1048
|
+
commandDigest: string;
|
|
1049
|
+
executablePath: string;
|
|
1050
|
+
executableDigest: string;
|
|
1051
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1052
|
+
scriptPath?: string | null | undefined;
|
|
1053
|
+
scriptDigest?: string | null | undefined;
|
|
1054
|
+
} | null | undefined;
|
|
1055
|
+
}>, "many">;
|
|
1056
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1057
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1058
|
+
tests: z.ZodObject<{
|
|
1059
|
+
commands: z.ZodArray<z.ZodObject<{
|
|
1060
|
+
program: z.ZodString;
|
|
1061
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1062
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1063
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1064
|
+
} & {
|
|
1065
|
+
id: z.ZodString;
|
|
1066
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1067
|
+
trust_required: z.ZodDefault<z.ZodBoolean>;
|
|
1068
|
+
trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1069
|
+
projectDigest: z.ZodString;
|
|
1070
|
+
configDigest: z.ZodString;
|
|
1071
|
+
commandDigest: z.ZodString;
|
|
1072
|
+
executablePath: z.ZodString;
|
|
1073
|
+
executableDigest: z.ZodString;
|
|
1074
|
+
scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1075
|
+
scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1076
|
+
accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
|
|
1077
|
+
}, "strict", z.ZodTypeAny, {
|
|
1078
|
+
projectDigest: string;
|
|
1079
|
+
configDigest: string;
|
|
1080
|
+
commandDigest: string;
|
|
1081
|
+
executablePath: string;
|
|
1082
|
+
executableDigest: string;
|
|
1083
|
+
scriptPath: string | null;
|
|
1084
|
+
scriptDigest: string | null;
|
|
1085
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1086
|
+
}, {
|
|
1087
|
+
projectDigest: string;
|
|
1088
|
+
configDigest: string;
|
|
1089
|
+
commandDigest: string;
|
|
1090
|
+
executablePath: string;
|
|
1091
|
+
executableDigest: string;
|
|
1092
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1093
|
+
scriptPath?: string | null | undefined;
|
|
1094
|
+
scriptDigest?: string | null | undefined;
|
|
1095
|
+
}>>>;
|
|
1096
|
+
}, "strict", z.ZodTypeAny, {
|
|
1097
|
+
id: string;
|
|
1098
|
+
required: boolean;
|
|
1099
|
+
program: string;
|
|
1100
|
+
args: string[];
|
|
1101
|
+
envAllowlist: string[];
|
|
1102
|
+
trust_required: boolean;
|
|
1103
|
+
trust_grant: {
|
|
1104
|
+
projectDigest: string;
|
|
1105
|
+
configDigest: string;
|
|
1106
|
+
commandDigest: string;
|
|
1107
|
+
executablePath: string;
|
|
1108
|
+
executableDigest: string;
|
|
1109
|
+
scriptPath: string | null;
|
|
1110
|
+
scriptDigest: string | null;
|
|
1111
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1112
|
+
} | null;
|
|
1113
|
+
cwd?: string | undefined;
|
|
1114
|
+
}, {
|
|
1115
|
+
id: string;
|
|
1116
|
+
program: string;
|
|
1117
|
+
cwd?: string | undefined;
|
|
1118
|
+
required?: boolean | undefined;
|
|
1119
|
+
args?: string[] | undefined;
|
|
1120
|
+
envAllowlist?: string[] | undefined;
|
|
1121
|
+
trust_required?: boolean | undefined;
|
|
1122
|
+
trust_grant?: {
|
|
1123
|
+
projectDigest: string;
|
|
1124
|
+
configDigest: string;
|
|
1125
|
+
commandDigest: string;
|
|
1126
|
+
executablePath: string;
|
|
1127
|
+
executableDigest: string;
|
|
1128
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1129
|
+
scriptPath?: string | null | undefined;
|
|
1130
|
+
scriptDigest?: string | null | undefined;
|
|
1131
|
+
} | null | undefined;
|
|
1132
|
+
}>, "many">;
|
|
1133
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1134
|
+
commands: z.ZodArray<z.ZodObject<{
|
|
1135
|
+
program: z.ZodString;
|
|
1136
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1137
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1138
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1139
|
+
} & {
|
|
1140
|
+
id: z.ZodString;
|
|
1141
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1142
|
+
trust_required: z.ZodDefault<z.ZodBoolean>;
|
|
1143
|
+
trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1144
|
+
projectDigest: z.ZodString;
|
|
1145
|
+
configDigest: z.ZodString;
|
|
1146
|
+
commandDigest: z.ZodString;
|
|
1147
|
+
executablePath: z.ZodString;
|
|
1148
|
+
executableDigest: z.ZodString;
|
|
1149
|
+
scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1150
|
+
scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1151
|
+
accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
|
|
1152
|
+
}, "strict", z.ZodTypeAny, {
|
|
1153
|
+
projectDigest: string;
|
|
1154
|
+
configDigest: string;
|
|
1155
|
+
commandDigest: string;
|
|
1156
|
+
executablePath: string;
|
|
1157
|
+
executableDigest: string;
|
|
1158
|
+
scriptPath: string | null;
|
|
1159
|
+
scriptDigest: string | null;
|
|
1160
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1161
|
+
}, {
|
|
1162
|
+
projectDigest: string;
|
|
1163
|
+
configDigest: string;
|
|
1164
|
+
commandDigest: string;
|
|
1165
|
+
executablePath: string;
|
|
1166
|
+
executableDigest: string;
|
|
1167
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1168
|
+
scriptPath?: string | null | undefined;
|
|
1169
|
+
scriptDigest?: string | null | undefined;
|
|
1170
|
+
}>>>;
|
|
1171
|
+
}, "strict", z.ZodTypeAny, {
|
|
1172
|
+
id: string;
|
|
1173
|
+
required: boolean;
|
|
1174
|
+
program: string;
|
|
1175
|
+
args: string[];
|
|
1176
|
+
envAllowlist: string[];
|
|
1177
|
+
trust_required: boolean;
|
|
1178
|
+
trust_grant: {
|
|
1179
|
+
projectDigest: string;
|
|
1180
|
+
configDigest: string;
|
|
1181
|
+
commandDigest: string;
|
|
1182
|
+
executablePath: string;
|
|
1183
|
+
executableDigest: string;
|
|
1184
|
+
scriptPath: string | null;
|
|
1185
|
+
scriptDigest: string | null;
|
|
1186
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1187
|
+
} | null;
|
|
1188
|
+
cwd?: string | undefined;
|
|
1189
|
+
}, {
|
|
1190
|
+
id: string;
|
|
1191
|
+
program: string;
|
|
1192
|
+
cwd?: string | undefined;
|
|
1193
|
+
required?: boolean | undefined;
|
|
1194
|
+
args?: string[] | undefined;
|
|
1195
|
+
envAllowlist?: string[] | undefined;
|
|
1196
|
+
trust_required?: boolean | undefined;
|
|
1197
|
+
trust_grant?: {
|
|
1198
|
+
projectDigest: string;
|
|
1199
|
+
configDigest: string;
|
|
1200
|
+
commandDigest: string;
|
|
1201
|
+
executablePath: string;
|
|
1202
|
+
executableDigest: string;
|
|
1203
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1204
|
+
scriptPath?: string | null | undefined;
|
|
1205
|
+
scriptDigest?: string | null | undefined;
|
|
1206
|
+
} | null | undefined;
|
|
1207
|
+
}>, "many">;
|
|
1208
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1209
|
+
commands: z.ZodArray<z.ZodObject<{
|
|
1210
|
+
program: z.ZodString;
|
|
1211
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1212
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1213
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1214
|
+
} & {
|
|
1215
|
+
id: z.ZodString;
|
|
1216
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1217
|
+
trust_required: z.ZodDefault<z.ZodBoolean>;
|
|
1218
|
+
trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1219
|
+
projectDigest: z.ZodString;
|
|
1220
|
+
configDigest: z.ZodString;
|
|
1221
|
+
commandDigest: z.ZodString;
|
|
1222
|
+
executablePath: z.ZodString;
|
|
1223
|
+
executableDigest: z.ZodString;
|
|
1224
|
+
scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1225
|
+
scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1226
|
+
accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
|
|
1227
|
+
}, "strict", z.ZodTypeAny, {
|
|
1228
|
+
projectDigest: string;
|
|
1229
|
+
configDigest: string;
|
|
1230
|
+
commandDigest: string;
|
|
1231
|
+
executablePath: string;
|
|
1232
|
+
executableDigest: string;
|
|
1233
|
+
scriptPath: string | null;
|
|
1234
|
+
scriptDigest: string | null;
|
|
1235
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1236
|
+
}, {
|
|
1237
|
+
projectDigest: string;
|
|
1238
|
+
configDigest: string;
|
|
1239
|
+
commandDigest: string;
|
|
1240
|
+
executablePath: string;
|
|
1241
|
+
executableDigest: string;
|
|
1242
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1243
|
+
scriptPath?: string | null | undefined;
|
|
1244
|
+
scriptDigest?: string | null | undefined;
|
|
1245
|
+
}>>>;
|
|
1246
|
+
}, "strict", z.ZodTypeAny, {
|
|
1247
|
+
id: string;
|
|
1248
|
+
required: boolean;
|
|
1249
|
+
program: string;
|
|
1250
|
+
args: string[];
|
|
1251
|
+
envAllowlist: string[];
|
|
1252
|
+
trust_required: boolean;
|
|
1253
|
+
trust_grant: {
|
|
1254
|
+
projectDigest: string;
|
|
1255
|
+
configDigest: string;
|
|
1256
|
+
commandDigest: string;
|
|
1257
|
+
executablePath: string;
|
|
1258
|
+
executableDigest: string;
|
|
1259
|
+
scriptPath: string | null;
|
|
1260
|
+
scriptDigest: string | null;
|
|
1261
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1262
|
+
} | null;
|
|
1263
|
+
cwd?: string | undefined;
|
|
1264
|
+
}, {
|
|
1265
|
+
id: string;
|
|
1266
|
+
program: string;
|
|
1267
|
+
cwd?: string | undefined;
|
|
1268
|
+
required?: boolean | undefined;
|
|
1269
|
+
args?: string[] | undefined;
|
|
1270
|
+
envAllowlist?: string[] | undefined;
|
|
1271
|
+
trust_required?: boolean | undefined;
|
|
1272
|
+
trust_grant?: {
|
|
1273
|
+
projectDigest: string;
|
|
1274
|
+
configDigest: string;
|
|
1275
|
+
commandDigest: string;
|
|
1276
|
+
executablePath: string;
|
|
1277
|
+
executableDigest: string;
|
|
1278
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1279
|
+
scriptPath?: string | null | undefined;
|
|
1280
|
+
scriptDigest?: string | null | undefined;
|
|
1281
|
+
} | null | undefined;
|
|
1282
|
+
}>, "many">;
|
|
1283
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1284
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1285
|
+
tests: z.ZodObject<{
|
|
1286
|
+
commands: z.ZodArray<z.ZodObject<{
|
|
1287
|
+
program: z.ZodString;
|
|
1288
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1289
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1290
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1291
|
+
} & {
|
|
1292
|
+
id: z.ZodString;
|
|
1293
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1294
|
+
trust_required: z.ZodDefault<z.ZodBoolean>;
|
|
1295
|
+
trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1296
|
+
projectDigest: z.ZodString;
|
|
1297
|
+
configDigest: z.ZodString;
|
|
1298
|
+
commandDigest: z.ZodString;
|
|
1299
|
+
executablePath: z.ZodString;
|
|
1300
|
+
executableDigest: z.ZodString;
|
|
1301
|
+
scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1302
|
+
scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1303
|
+
accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
|
|
1304
|
+
}, "strict", z.ZodTypeAny, {
|
|
1305
|
+
projectDigest: string;
|
|
1306
|
+
configDigest: string;
|
|
1307
|
+
commandDigest: string;
|
|
1308
|
+
executablePath: string;
|
|
1309
|
+
executableDigest: string;
|
|
1310
|
+
scriptPath: string | null;
|
|
1311
|
+
scriptDigest: string | null;
|
|
1312
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1313
|
+
}, {
|
|
1314
|
+
projectDigest: string;
|
|
1315
|
+
configDigest: string;
|
|
1316
|
+
commandDigest: string;
|
|
1317
|
+
executablePath: string;
|
|
1318
|
+
executableDigest: string;
|
|
1319
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1320
|
+
scriptPath?: string | null | undefined;
|
|
1321
|
+
scriptDigest?: string | null | undefined;
|
|
1322
|
+
}>>>;
|
|
1323
|
+
}, "strict", z.ZodTypeAny, {
|
|
1324
|
+
id: string;
|
|
1325
|
+
required: boolean;
|
|
1326
|
+
program: string;
|
|
1327
|
+
args: string[];
|
|
1328
|
+
envAllowlist: string[];
|
|
1329
|
+
trust_required: boolean;
|
|
1330
|
+
trust_grant: {
|
|
1331
|
+
projectDigest: string;
|
|
1332
|
+
configDigest: string;
|
|
1333
|
+
commandDigest: string;
|
|
1334
|
+
executablePath: string;
|
|
1335
|
+
executableDigest: string;
|
|
1336
|
+
scriptPath: string | null;
|
|
1337
|
+
scriptDigest: string | null;
|
|
1338
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1339
|
+
} | null;
|
|
1340
|
+
cwd?: string | undefined;
|
|
1341
|
+
}, {
|
|
1342
|
+
id: string;
|
|
1343
|
+
program: string;
|
|
1344
|
+
cwd?: string | undefined;
|
|
1345
|
+
required?: boolean | undefined;
|
|
1346
|
+
args?: string[] | undefined;
|
|
1347
|
+
envAllowlist?: string[] | undefined;
|
|
1348
|
+
trust_required?: boolean | undefined;
|
|
1349
|
+
trust_grant?: {
|
|
1350
|
+
projectDigest: string;
|
|
1351
|
+
configDigest: string;
|
|
1352
|
+
commandDigest: string;
|
|
1353
|
+
executablePath: string;
|
|
1354
|
+
executableDigest: string;
|
|
1355
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1356
|
+
scriptPath?: string | null | undefined;
|
|
1357
|
+
scriptDigest?: string | null | undefined;
|
|
1358
|
+
} | null | undefined;
|
|
1359
|
+
}>, "many">;
|
|
1360
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1361
|
+
commands: z.ZodArray<z.ZodObject<{
|
|
1362
|
+
program: z.ZodString;
|
|
1363
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1364
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1365
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1366
|
+
} & {
|
|
1367
|
+
id: z.ZodString;
|
|
1368
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1369
|
+
trust_required: z.ZodDefault<z.ZodBoolean>;
|
|
1370
|
+
trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1371
|
+
projectDigest: z.ZodString;
|
|
1372
|
+
configDigest: z.ZodString;
|
|
1373
|
+
commandDigest: z.ZodString;
|
|
1374
|
+
executablePath: z.ZodString;
|
|
1375
|
+
executableDigest: z.ZodString;
|
|
1376
|
+
scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1377
|
+
scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1378
|
+
accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
|
|
1379
|
+
}, "strict", z.ZodTypeAny, {
|
|
1380
|
+
projectDigest: string;
|
|
1381
|
+
configDigest: string;
|
|
1382
|
+
commandDigest: string;
|
|
1383
|
+
executablePath: string;
|
|
1384
|
+
executableDigest: string;
|
|
1385
|
+
scriptPath: string | null;
|
|
1386
|
+
scriptDigest: string | null;
|
|
1387
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1388
|
+
}, {
|
|
1389
|
+
projectDigest: string;
|
|
1390
|
+
configDigest: string;
|
|
1391
|
+
commandDigest: string;
|
|
1392
|
+
executablePath: string;
|
|
1393
|
+
executableDigest: string;
|
|
1394
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1395
|
+
scriptPath?: string | null | undefined;
|
|
1396
|
+
scriptDigest?: string | null | undefined;
|
|
1397
|
+
}>>>;
|
|
1398
|
+
}, "strict", z.ZodTypeAny, {
|
|
1399
|
+
id: string;
|
|
1400
|
+
required: boolean;
|
|
1401
|
+
program: string;
|
|
1402
|
+
args: string[];
|
|
1403
|
+
envAllowlist: string[];
|
|
1404
|
+
trust_required: boolean;
|
|
1405
|
+
trust_grant: {
|
|
1406
|
+
projectDigest: string;
|
|
1407
|
+
configDigest: string;
|
|
1408
|
+
commandDigest: string;
|
|
1409
|
+
executablePath: string;
|
|
1410
|
+
executableDigest: string;
|
|
1411
|
+
scriptPath: string | null;
|
|
1412
|
+
scriptDigest: string | null;
|
|
1413
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1414
|
+
} | null;
|
|
1415
|
+
cwd?: string | undefined;
|
|
1416
|
+
}, {
|
|
1417
|
+
id: string;
|
|
1418
|
+
program: string;
|
|
1419
|
+
cwd?: string | undefined;
|
|
1420
|
+
required?: boolean | undefined;
|
|
1421
|
+
args?: string[] | undefined;
|
|
1422
|
+
envAllowlist?: string[] | undefined;
|
|
1423
|
+
trust_required?: boolean | undefined;
|
|
1424
|
+
trust_grant?: {
|
|
1425
|
+
projectDigest: string;
|
|
1426
|
+
configDigest: string;
|
|
1427
|
+
commandDigest: string;
|
|
1428
|
+
executablePath: string;
|
|
1429
|
+
executableDigest: string;
|
|
1430
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1431
|
+
scriptPath?: string | null | undefined;
|
|
1432
|
+
scriptDigest?: string | null | undefined;
|
|
1433
|
+
} | null | undefined;
|
|
1434
|
+
}>, "many">;
|
|
1435
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1436
|
+
commands: z.ZodArray<z.ZodObject<{
|
|
1437
|
+
program: z.ZodString;
|
|
1438
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1439
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1440
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1441
|
+
} & {
|
|
1442
|
+
id: z.ZodString;
|
|
1443
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1444
|
+
trust_required: z.ZodDefault<z.ZodBoolean>;
|
|
1445
|
+
trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1446
|
+
projectDigest: z.ZodString;
|
|
1447
|
+
configDigest: z.ZodString;
|
|
1448
|
+
commandDigest: z.ZodString;
|
|
1449
|
+
executablePath: z.ZodString;
|
|
1450
|
+
executableDigest: z.ZodString;
|
|
1451
|
+
scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1452
|
+
scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1453
|
+
accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
|
|
1454
|
+
}, "strict", z.ZodTypeAny, {
|
|
1455
|
+
projectDigest: string;
|
|
1456
|
+
configDigest: string;
|
|
1457
|
+
commandDigest: string;
|
|
1458
|
+
executablePath: string;
|
|
1459
|
+
executableDigest: string;
|
|
1460
|
+
scriptPath: string | null;
|
|
1461
|
+
scriptDigest: string | null;
|
|
1462
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1463
|
+
}, {
|
|
1464
|
+
projectDigest: string;
|
|
1465
|
+
configDigest: string;
|
|
1466
|
+
commandDigest: string;
|
|
1467
|
+
executablePath: string;
|
|
1468
|
+
executableDigest: string;
|
|
1469
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1470
|
+
scriptPath?: string | null | undefined;
|
|
1471
|
+
scriptDigest?: string | null | undefined;
|
|
1472
|
+
}>>>;
|
|
1473
|
+
}, "strict", z.ZodTypeAny, {
|
|
1474
|
+
id: string;
|
|
1475
|
+
required: boolean;
|
|
1476
|
+
program: string;
|
|
1477
|
+
args: string[];
|
|
1478
|
+
envAllowlist: string[];
|
|
1479
|
+
trust_required: boolean;
|
|
1480
|
+
trust_grant: {
|
|
1481
|
+
projectDigest: string;
|
|
1482
|
+
configDigest: string;
|
|
1483
|
+
commandDigest: string;
|
|
1484
|
+
executablePath: string;
|
|
1485
|
+
executableDigest: string;
|
|
1486
|
+
scriptPath: string | null;
|
|
1487
|
+
scriptDigest: string | null;
|
|
1488
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1489
|
+
} | null;
|
|
1490
|
+
cwd?: string | undefined;
|
|
1491
|
+
}, {
|
|
1492
|
+
id: string;
|
|
1493
|
+
program: string;
|
|
1494
|
+
cwd?: string | undefined;
|
|
1495
|
+
required?: boolean | undefined;
|
|
1496
|
+
args?: string[] | undefined;
|
|
1497
|
+
envAllowlist?: string[] | undefined;
|
|
1498
|
+
trust_required?: boolean | undefined;
|
|
1499
|
+
trust_grant?: {
|
|
1500
|
+
projectDigest: string;
|
|
1501
|
+
configDigest: string;
|
|
1502
|
+
commandDigest: string;
|
|
1503
|
+
executablePath: string;
|
|
1504
|
+
executableDigest: string;
|
|
1505
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1506
|
+
scriptPath?: string | null | undefined;
|
|
1507
|
+
scriptDigest?: string | null | undefined;
|
|
1508
|
+
} | null | undefined;
|
|
1509
|
+
}>, "many">;
|
|
1510
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1511
|
+
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1512
|
+
schema_version: z.ZodLiteral<2>;
|
|
1513
|
+
task_id: z.ZodString;
|
|
1514
|
+
created_at: z.ZodString;
|
|
1515
|
+
repo: z.ZodObject<{
|
|
1516
|
+
root: z.ZodString;
|
|
1517
|
+
base_ref: z.ZodString;
|
|
1518
|
+
base_sha: z.ZodOptional<z.ZodString>;
|
|
1519
|
+
dirty_policy: z.ZodDefault<z.ZodEnum<["refuse", "snapshot"]>>;
|
|
1520
|
+
}, "strip", z.ZodTypeAny, {
|
|
1521
|
+
root: string;
|
|
1522
|
+
base_ref: string;
|
|
1523
|
+
dirty_policy: "refuse" | "snapshot";
|
|
1524
|
+
base_sha?: string | undefined;
|
|
1525
|
+
}, {
|
|
1526
|
+
root: string;
|
|
1527
|
+
base_ref: string;
|
|
1528
|
+
base_sha?: string | undefined;
|
|
1529
|
+
dirty_policy?: "refuse" | "snapshot" | undefined;
|
|
1530
|
+
}>;
|
|
1531
|
+
mode: z.ZodObject<{
|
|
1532
|
+
kind: z.ZodEnum<["ask", "plan", "audit", "agent", "orchestrate"]>;
|
|
1533
|
+
}, "strip", z.ZodTypeAny, {
|
|
1534
|
+
kind: "ask" | "plan" | "audit" | "agent" | "orchestrate";
|
|
1535
|
+
}, {
|
|
1536
|
+
kind: "ask" | "plan" | "audit" | "agent" | "orchestrate";
|
|
1537
|
+
}>;
|
|
1538
|
+
user_intent: z.ZodObject<{
|
|
1539
|
+
raw: z.ZodString;
|
|
1540
|
+
normalized: z.ZodOptional<z.ZodString>;
|
|
1541
|
+
}, "strip", z.ZodTypeAny, {
|
|
1542
|
+
raw: string;
|
|
1543
|
+
normalized?: string | undefined;
|
|
1544
|
+
}, {
|
|
1545
|
+
raw: string;
|
|
1546
|
+
normalized?: string | undefined;
|
|
1547
|
+
}>;
|
|
1548
|
+
spec: z.ZodOptional<z.ZodObject<{
|
|
1549
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1550
|
+
hash: z.ZodOptional<z.ZodString>;
|
|
1551
|
+
path: z.ZodOptional<z.ZodString>;
|
|
1552
|
+
}, "strip", z.ZodTypeAny, {
|
|
1553
|
+
path?: string | undefined;
|
|
1554
|
+
hash?: string | undefined;
|
|
1555
|
+
id?: string | undefined;
|
|
1556
|
+
}, {
|
|
1557
|
+
path?: string | undefined;
|
|
1558
|
+
hash?: string | undefined;
|
|
1559
|
+
id?: string | undefined;
|
|
1560
|
+
}>>;
|
|
1561
|
+
success_criteria: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1562
|
+
id: z.ZodString;
|
|
1563
|
+
text: z.ZodString;
|
|
1564
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1565
|
+
}, "strip", z.ZodTypeAny, {
|
|
1566
|
+
id: string;
|
|
1567
|
+
text: string;
|
|
1568
|
+
required: boolean;
|
|
1569
|
+
}, {
|
|
1570
|
+
id: string;
|
|
1571
|
+
text: string;
|
|
1572
|
+
required?: boolean | undefined;
|
|
1573
|
+
}>, "many">>;
|
|
1574
|
+
non_goals: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1575
|
+
forbidden_approaches: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1576
|
+
decided_tradeoffs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1577
|
+
/** Spec-derived task graph; null until a frozen SpecPack with tasks is resolved. */
|
|
1578
|
+
task_graph: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1579
|
+
nodes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1580
|
+
id: z.ZodString;
|
|
1581
|
+
title: z.ZodDefault<z.ZodString>;
|
|
1582
|
+
depends_on: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1583
|
+
}, "strip", z.ZodTypeAny, {
|
|
1584
|
+
id: string;
|
|
1585
|
+
title: string;
|
|
1586
|
+
depends_on: string[];
|
|
1587
|
+
}, {
|
|
1588
|
+
id: string;
|
|
1589
|
+
title?: string | undefined;
|
|
1590
|
+
depends_on?: string[] | undefined;
|
|
1591
|
+
}>, "many">>;
|
|
1592
|
+
/** Topological execution order (node ids); empty when there are no tasks. */
|
|
1593
|
+
order: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1594
|
+
}, "strip", z.ZodTypeAny, {
|
|
1595
|
+
nodes: {
|
|
1596
|
+
id: string;
|
|
1597
|
+
title: string;
|
|
1598
|
+
depends_on: string[];
|
|
1599
|
+
}[];
|
|
1600
|
+
order: string[];
|
|
1601
|
+
}, {
|
|
1602
|
+
nodes?: {
|
|
1603
|
+
id: string;
|
|
1604
|
+
title?: string | undefined;
|
|
1605
|
+
depends_on?: string[] | undefined;
|
|
1606
|
+
}[] | undefined;
|
|
1607
|
+
order?: string[] | undefined;
|
|
1608
|
+
}>>>;
|
|
1609
|
+
constraints: z.ZodDefault<z.ZodObject<{
|
|
1610
|
+
/** Globs whose changes escalate risk to a human-approval gate (wired into
|
|
1611
|
+
* classifyRisk/requireHuman). These are spec/config-owned and cannot be
|
|
1612
|
+
* suppressed by per-run protected-path approvals. The other constraint kinds
|
|
1613
|
+
* were unwired and removed. */
|
|
1614
|
+
protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1615
|
+
/** Engine-derived gate/test path protections. Per-run approvals can narrow
|
|
1616
|
+
* only this auto-protected set, never spec/config-owned protected_paths. */
|
|
1617
|
+
auto_protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1618
|
+
/** Per-run typed approvals for protected gate/test path changes. These are
|
|
1619
|
+
* produced by explicit surfaces (CLI/control/IDE), then consumed by policy. */
|
|
1620
|
+
protected_path_approvals: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1621
|
+
/** Glob approved by the operator/user for this run; consumed only by the
|
|
1622
|
+
* auto-protected gate/test path policy, not by built-in critical-path gates. */
|
|
1623
|
+
path: z.ZodString;
|
|
1624
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
1625
|
+
}, "strict", z.ZodTypeAny, {
|
|
1626
|
+
path: string;
|
|
1627
|
+
reason?: string | undefined;
|
|
1628
|
+
}, {
|
|
1629
|
+
path: string;
|
|
1630
|
+
reason?: string | undefined;
|
|
1631
|
+
}>, "many">>;
|
|
1632
|
+
}, "strip", z.ZodTypeAny, {
|
|
1633
|
+
protected_paths: string[];
|
|
1634
|
+
auto_protected_paths: string[];
|
|
1635
|
+
protected_path_approvals: {
|
|
1636
|
+
path: string;
|
|
1637
|
+
reason?: string | undefined;
|
|
1638
|
+
}[];
|
|
1639
|
+
}, {
|
|
1640
|
+
protected_paths?: string[] | undefined;
|
|
1641
|
+
auto_protected_paths?: string[] | undefined;
|
|
1642
|
+
protected_path_approvals?: {
|
|
1643
|
+
path: string;
|
|
1644
|
+
reason?: string | undefined;
|
|
1645
|
+
}[] | undefined;
|
|
1646
|
+
}>>;
|
|
1647
|
+
tests: z.ZodDefault<z.ZodObject<{
|
|
1648
|
+
commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1649
|
+
program: z.ZodString;
|
|
1650
|
+
args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1651
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
1652
|
+
envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1653
|
+
} & {
|
|
1654
|
+
id: z.ZodString;
|
|
1655
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
1656
|
+
trust_required: z.ZodDefault<z.ZodBoolean>;
|
|
1657
|
+
trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
1658
|
+
projectDigest: z.ZodString;
|
|
1659
|
+
configDigest: z.ZodString;
|
|
1660
|
+
commandDigest: z.ZodString;
|
|
1661
|
+
executablePath: z.ZodString;
|
|
1662
|
+
executableDigest: z.ZodString;
|
|
1663
|
+
scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1664
|
+
scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1665
|
+
accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
|
|
1666
|
+
}, "strict", z.ZodTypeAny, {
|
|
1667
|
+
projectDigest: string;
|
|
1668
|
+
configDigest: string;
|
|
1669
|
+
commandDigest: string;
|
|
1670
|
+
executablePath: string;
|
|
1671
|
+
executableDigest: string;
|
|
1672
|
+
scriptPath: string | null;
|
|
1673
|
+
scriptDigest: string | null;
|
|
1674
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1675
|
+
}, {
|
|
1676
|
+
projectDigest: string;
|
|
1677
|
+
configDigest: string;
|
|
1678
|
+
commandDigest: string;
|
|
1679
|
+
executablePath: string;
|
|
1680
|
+
executableDigest: string;
|
|
1681
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1682
|
+
scriptPath?: string | null | undefined;
|
|
1683
|
+
scriptDigest?: string | null | undefined;
|
|
1684
|
+
}>>>;
|
|
1685
|
+
}, "strict", z.ZodTypeAny, {
|
|
1686
|
+
id: string;
|
|
1687
|
+
required: boolean;
|
|
1688
|
+
program: string;
|
|
1689
|
+
args: string[];
|
|
1690
|
+
envAllowlist: string[];
|
|
1691
|
+
trust_required: boolean;
|
|
1692
|
+
trust_grant: {
|
|
1693
|
+
projectDigest: string;
|
|
1694
|
+
configDigest: string;
|
|
1695
|
+
commandDigest: string;
|
|
1696
|
+
executablePath: string;
|
|
1697
|
+
executableDigest: string;
|
|
1698
|
+
scriptPath: string | null;
|
|
1699
|
+
scriptDigest: string | null;
|
|
1700
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1701
|
+
} | null;
|
|
1702
|
+
cwd?: string | undefined;
|
|
1703
|
+
}, {
|
|
1704
|
+
id: string;
|
|
1705
|
+
program: string;
|
|
1706
|
+
cwd?: string | undefined;
|
|
1707
|
+
required?: boolean | undefined;
|
|
1708
|
+
args?: string[] | undefined;
|
|
1709
|
+
envAllowlist?: string[] | undefined;
|
|
1710
|
+
trust_required?: boolean | undefined;
|
|
1711
|
+
trust_grant?: {
|
|
1712
|
+
projectDigest: string;
|
|
1713
|
+
configDigest: string;
|
|
1714
|
+
commandDigest: string;
|
|
1715
|
+
executablePath: string;
|
|
1716
|
+
executableDigest: string;
|
|
1717
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1718
|
+
scriptPath?: string | null | undefined;
|
|
1719
|
+
scriptDigest?: string | null | undefined;
|
|
1720
|
+
} | null | undefined;
|
|
1721
|
+
}>, "many">>;
|
|
1722
|
+
}, "strip", z.ZodTypeAny, {
|
|
1723
|
+
commands: {
|
|
1724
|
+
id: string;
|
|
1725
|
+
required: boolean;
|
|
1726
|
+
program: string;
|
|
1727
|
+
args: string[];
|
|
1728
|
+
envAllowlist: string[];
|
|
1729
|
+
trust_required: boolean;
|
|
1730
|
+
trust_grant: {
|
|
1731
|
+
projectDigest: string;
|
|
1732
|
+
configDigest: string;
|
|
1733
|
+
commandDigest: string;
|
|
1734
|
+
executablePath: string;
|
|
1735
|
+
executableDigest: string;
|
|
1736
|
+
scriptPath: string | null;
|
|
1737
|
+
scriptDigest: string | null;
|
|
1738
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1739
|
+
} | null;
|
|
1740
|
+
cwd?: string | undefined;
|
|
1741
|
+
}[];
|
|
1742
|
+
}, {
|
|
1743
|
+
commands?: {
|
|
1744
|
+
id: string;
|
|
1745
|
+
program: string;
|
|
1746
|
+
cwd?: string | undefined;
|
|
1747
|
+
required?: boolean | undefined;
|
|
1748
|
+
args?: string[] | undefined;
|
|
1749
|
+
envAllowlist?: string[] | undefined;
|
|
1750
|
+
trust_required?: boolean | undefined;
|
|
1751
|
+
trust_grant?: {
|
|
1752
|
+
projectDigest: string;
|
|
1753
|
+
configDigest: string;
|
|
1754
|
+
commandDigest: string;
|
|
1755
|
+
executablePath: string;
|
|
1756
|
+
executableDigest: string;
|
|
1757
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1758
|
+
scriptPath?: string | null | undefined;
|
|
1759
|
+
scriptDigest?: string | null | undefined;
|
|
1760
|
+
} | null | undefined;
|
|
1761
|
+
}[] | undefined;
|
|
1762
|
+
}>>;
|
|
1763
|
+
access: z.ZodDefault<z.ZodObject<{
|
|
1764
|
+
requested_profile: z.ZodDefault<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>;
|
|
1765
|
+
/** Profile actually enforced by the engine (mode/trust clamps applied; never client-supplied). */
|
|
1766
|
+
effective_profile: z.ZodDefault<z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>>;
|
|
1767
|
+
}, "strip", z.ZodTypeAny, {
|
|
1768
|
+
requested_profile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1769
|
+
effective_profile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1770
|
+
}, {
|
|
1771
|
+
requested_profile?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1772
|
+
effective_profile?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1773
|
+
}>>;
|
|
1774
|
+
external_context: z.ZodDefault<z.ZodObject<{
|
|
1775
|
+
policy: z.ZodDefault<z.ZodEnum<["off", "auto", "cached", "live"]>>;
|
|
1776
|
+
web_required: z.ZodDefault<z.ZodBoolean>;
|
|
1777
|
+
/** Mode the selected route actually executes (disclosed upgrades, e.g. claude cached->live). */
|
|
1778
|
+
effective_mode: z.ZodDefault<z.ZodEnum<["off", "auto", "cached", "live"]>>;
|
|
1779
|
+
}, "strip", z.ZodTypeAny, {
|
|
1780
|
+
policy: "off" | "auto" | "cached" | "live";
|
|
1781
|
+
web_required: boolean;
|
|
1782
|
+
effective_mode: "off" | "auto" | "cached" | "live";
|
|
1783
|
+
}, {
|
|
1784
|
+
policy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1785
|
+
web_required?: boolean | undefined;
|
|
1786
|
+
effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1787
|
+
}>>;
|
|
1788
|
+
tool_permission_policy: z.ZodDefault<z.ZodObject<{
|
|
1789
|
+
web: z.ZodDefault<z.ZodEnum<["off", "auto", "cached", "live"]>>;
|
|
1790
|
+
allow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1791
|
+
deny: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1792
|
+
}, "strip", z.ZodTypeAny, {
|
|
1793
|
+
web: "off" | "auto" | "cached" | "live";
|
|
1794
|
+
allow: string[];
|
|
1795
|
+
deny: string[];
|
|
1796
|
+
}, {
|
|
1797
|
+
web?: "off" | "auto" | "cached" | "live" | undefined;
|
|
1798
|
+
allow?: string[] | undefined;
|
|
1799
|
+
deny?: string[] | undefined;
|
|
1800
|
+
}>>;
|
|
1801
|
+
budget: z.ZodDefault<z.ZodObject<{
|
|
1802
|
+
routing_goal: z.ZodDefault<z.ZodEnum<["auto", "quality", "economy"]>>;
|
|
1803
|
+
paid_budget: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
1804
|
+
kind: z.ZodLiteral<"unlimited">;
|
|
1805
|
+
}, "strict", z.ZodTypeAny, {
|
|
1806
|
+
kind: "unlimited";
|
|
1807
|
+
}, {
|
|
1808
|
+
kind: "unlimited";
|
|
1809
|
+
}>, z.ZodObject<{
|
|
1810
|
+
kind: z.ZodLiteral<"finite">;
|
|
1811
|
+
maxUsd: z.ZodNumber;
|
|
1812
|
+
}, "strict", z.ZodTypeAny, {
|
|
1813
|
+
kind: "finite";
|
|
1814
|
+
maxUsd: number;
|
|
1815
|
+
}, {
|
|
1816
|
+
kind: "finite";
|
|
1817
|
+
maxUsd: number;
|
|
1818
|
+
}>]>>;
|
|
1819
|
+
}, "strip", z.ZodTypeAny, {
|
|
1820
|
+
routing_goal: "auto" | "quality" | "economy";
|
|
1821
|
+
paid_budget: {
|
|
1822
|
+
kind: "unlimited";
|
|
1823
|
+
} | {
|
|
1824
|
+
kind: "finite";
|
|
1825
|
+
maxUsd: number;
|
|
1826
|
+
};
|
|
1827
|
+
}, {
|
|
1828
|
+
routing_goal?: "auto" | "quality" | "economy" | undefined;
|
|
1829
|
+
paid_budget?: {
|
|
1830
|
+
kind: "unlimited";
|
|
1831
|
+
} | {
|
|
1832
|
+
kind: "finite";
|
|
1833
|
+
maxUsd: number;
|
|
1834
|
+
} | undefined;
|
|
1835
|
+
}>>;
|
|
1836
|
+
/** Resolved harness-scoped model map for this run (harness id → model id),
|
|
1837
|
+
* after scalar→primary expansion. The contract is the SSOT the route spec
|
|
1838
|
+
* builder reads; empty = every route uses its per-harness settings default. */
|
|
1839
|
+
routing_models: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1840
|
+
convergence: z.ZodDefault<z.ZodObject<{
|
|
1841
|
+
require_tests_pass: z.ZodDefault<z.ZodBoolean>;
|
|
1842
|
+
require_no_accepted_block_open: z.ZodDefault<z.ZodBoolean>;
|
|
1843
|
+
require_no_accepted_fix_first_open: z.ZodDefault<z.ZodBoolean>;
|
|
1844
|
+
require_final_cross_family_clean_review: z.ZodDefault<z.ZodBoolean>;
|
|
1845
|
+
require_final_diff_stable_after_review: z.ZodDefault<z.ZodBoolean>;
|
|
1846
|
+
/**
|
|
1847
|
+
* Block convergence while an accepted NEEDS_HUMAN escalation is still open.
|
|
1848
|
+
* Closes the v0.8 hole where, with cross-family clean review disabled, a run
|
|
1849
|
+
* could converge to success with an open NEEDS_HUMAN finding.
|
|
1850
|
+
*/
|
|
1851
|
+
require_no_accepted_needs_human_open: z.ZodDefault<z.ZodBoolean>;
|
|
1852
|
+
}, "strip", z.ZodTypeAny, {
|
|
1853
|
+
require_tests_pass: boolean;
|
|
1854
|
+
require_no_accepted_block_open: boolean;
|
|
1855
|
+
require_no_accepted_fix_first_open: boolean;
|
|
1856
|
+
require_final_cross_family_clean_review: boolean;
|
|
1857
|
+
require_final_diff_stable_after_review: boolean;
|
|
1858
|
+
require_no_accepted_needs_human_open: boolean;
|
|
1859
|
+
}, {
|
|
1860
|
+
require_tests_pass?: boolean | undefined;
|
|
1861
|
+
require_no_accepted_block_open?: boolean | undefined;
|
|
1862
|
+
require_no_accepted_fix_first_open?: boolean | undefined;
|
|
1863
|
+
require_final_cross_family_clean_review?: boolean | undefined;
|
|
1864
|
+
require_final_diff_stable_after_review?: boolean | undefined;
|
|
1865
|
+
require_no_accepted_needs_human_open?: boolean | undefined;
|
|
1866
|
+
}>>;
|
|
1867
|
+
}, "strip", z.ZodTypeAny, {
|
|
1868
|
+
mode: {
|
|
1869
|
+
kind: "ask" | "plan" | "audit" | "agent" | "orchestrate";
|
|
1870
|
+
};
|
|
1871
|
+
schema_version: 2;
|
|
1872
|
+
constraints: {
|
|
1873
|
+
protected_paths: string[];
|
|
1874
|
+
auto_protected_paths: string[];
|
|
1875
|
+
protected_path_approvals: {
|
|
1876
|
+
path: string;
|
|
1877
|
+
reason?: string | undefined;
|
|
1878
|
+
}[];
|
|
1879
|
+
};
|
|
1880
|
+
access: {
|
|
1881
|
+
requested_profile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1882
|
+
effective_profile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1883
|
+
};
|
|
1884
|
+
tool_permission_policy: {
|
|
1885
|
+
web: "off" | "auto" | "cached" | "live";
|
|
1886
|
+
allow: string[];
|
|
1887
|
+
deny: string[];
|
|
1888
|
+
};
|
|
1889
|
+
created_at: string;
|
|
1890
|
+
repo: {
|
|
1891
|
+
root: string;
|
|
1892
|
+
base_ref: string;
|
|
1893
|
+
dirty_policy: "refuse" | "snapshot";
|
|
1894
|
+
base_sha?: string | undefined;
|
|
1895
|
+
};
|
|
1896
|
+
task_id: string;
|
|
1897
|
+
user_intent: {
|
|
1898
|
+
raw: string;
|
|
1899
|
+
normalized?: string | undefined;
|
|
1900
|
+
};
|
|
1901
|
+
success_criteria: {
|
|
1902
|
+
id: string;
|
|
1903
|
+
text: string;
|
|
1904
|
+
required: boolean;
|
|
1905
|
+
}[];
|
|
1906
|
+
non_goals: string[];
|
|
1907
|
+
forbidden_approaches: string[];
|
|
1908
|
+
decided_tradeoffs: string[];
|
|
1909
|
+
task_graph: {
|
|
1910
|
+
nodes: {
|
|
1911
|
+
id: string;
|
|
1912
|
+
title: string;
|
|
1913
|
+
depends_on: string[];
|
|
1914
|
+
}[];
|
|
1915
|
+
order: string[];
|
|
1916
|
+
} | null;
|
|
1917
|
+
tests: {
|
|
1918
|
+
commands: {
|
|
1919
|
+
id: string;
|
|
1920
|
+
required: boolean;
|
|
1921
|
+
program: string;
|
|
1922
|
+
args: string[];
|
|
1923
|
+
envAllowlist: string[];
|
|
1924
|
+
trust_required: boolean;
|
|
1925
|
+
trust_grant: {
|
|
1926
|
+
projectDigest: string;
|
|
1927
|
+
configDigest: string;
|
|
1928
|
+
commandDigest: string;
|
|
1929
|
+
executablePath: string;
|
|
1930
|
+
executableDigest: string;
|
|
1931
|
+
scriptPath: string | null;
|
|
1932
|
+
scriptDigest: string | null;
|
|
1933
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
1934
|
+
} | null;
|
|
1935
|
+
cwd?: string | undefined;
|
|
1936
|
+
}[];
|
|
1937
|
+
};
|
|
1938
|
+
external_context: {
|
|
1939
|
+
policy: "off" | "auto" | "cached" | "live";
|
|
1940
|
+
web_required: boolean;
|
|
1941
|
+
effective_mode: "off" | "auto" | "cached" | "live";
|
|
1942
|
+
};
|
|
1943
|
+
budget: {
|
|
1944
|
+
routing_goal: "auto" | "quality" | "economy";
|
|
1945
|
+
paid_budget: {
|
|
1946
|
+
kind: "unlimited";
|
|
1947
|
+
} | {
|
|
1948
|
+
kind: "finite";
|
|
1949
|
+
maxUsd: number;
|
|
1950
|
+
};
|
|
1951
|
+
};
|
|
1952
|
+
routing_models: Record<string, string>;
|
|
1953
|
+
convergence: {
|
|
1954
|
+
require_tests_pass: boolean;
|
|
1955
|
+
require_no_accepted_block_open: boolean;
|
|
1956
|
+
require_no_accepted_fix_first_open: boolean;
|
|
1957
|
+
require_final_cross_family_clean_review: boolean;
|
|
1958
|
+
require_final_diff_stable_after_review: boolean;
|
|
1959
|
+
require_no_accepted_needs_human_open: boolean;
|
|
1960
|
+
};
|
|
1961
|
+
spec?: {
|
|
1962
|
+
path?: string | undefined;
|
|
1963
|
+
hash?: string | undefined;
|
|
1964
|
+
id?: string | undefined;
|
|
1965
|
+
} | undefined;
|
|
1966
|
+
}, {
|
|
1967
|
+
mode: {
|
|
1968
|
+
kind: "ask" | "plan" | "audit" | "agent" | "orchestrate";
|
|
1969
|
+
};
|
|
1970
|
+
schema_version: 2;
|
|
1971
|
+
created_at: string;
|
|
1972
|
+
repo: {
|
|
1973
|
+
root: string;
|
|
1974
|
+
base_ref: string;
|
|
1975
|
+
base_sha?: string | undefined;
|
|
1976
|
+
dirty_policy?: "refuse" | "snapshot" | undefined;
|
|
1977
|
+
};
|
|
1978
|
+
task_id: string;
|
|
1979
|
+
user_intent: {
|
|
1980
|
+
raw: string;
|
|
1981
|
+
normalized?: string | undefined;
|
|
1982
|
+
};
|
|
1983
|
+
spec?: {
|
|
1984
|
+
path?: string | undefined;
|
|
1985
|
+
hash?: string | undefined;
|
|
1986
|
+
id?: string | undefined;
|
|
1987
|
+
} | undefined;
|
|
1988
|
+
constraints?: {
|
|
1989
|
+
protected_paths?: string[] | undefined;
|
|
1990
|
+
auto_protected_paths?: string[] | undefined;
|
|
1991
|
+
protected_path_approvals?: {
|
|
1992
|
+
path: string;
|
|
1993
|
+
reason?: string | undefined;
|
|
1994
|
+
}[] | undefined;
|
|
1995
|
+
} | undefined;
|
|
1996
|
+
access?: {
|
|
1997
|
+
requested_profile?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1998
|
+
effective_profile?: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native" | undefined;
|
|
1999
|
+
} | undefined;
|
|
2000
|
+
tool_permission_policy?: {
|
|
2001
|
+
web?: "off" | "auto" | "cached" | "live" | undefined;
|
|
2002
|
+
allow?: string[] | undefined;
|
|
2003
|
+
deny?: string[] | undefined;
|
|
2004
|
+
} | undefined;
|
|
2005
|
+
success_criteria?: {
|
|
2006
|
+
id: string;
|
|
2007
|
+
text: string;
|
|
2008
|
+
required?: boolean | undefined;
|
|
2009
|
+
}[] | undefined;
|
|
2010
|
+
non_goals?: string[] | undefined;
|
|
2011
|
+
forbidden_approaches?: string[] | undefined;
|
|
2012
|
+
decided_tradeoffs?: string[] | undefined;
|
|
2013
|
+
task_graph?: {
|
|
2014
|
+
nodes?: {
|
|
2015
|
+
id: string;
|
|
2016
|
+
title?: string | undefined;
|
|
2017
|
+
depends_on?: string[] | undefined;
|
|
2018
|
+
}[] | undefined;
|
|
2019
|
+
order?: string[] | undefined;
|
|
2020
|
+
} | null | undefined;
|
|
2021
|
+
tests?: {
|
|
2022
|
+
commands?: {
|
|
2023
|
+
id: string;
|
|
2024
|
+
program: string;
|
|
2025
|
+
cwd?: string | undefined;
|
|
2026
|
+
required?: boolean | undefined;
|
|
2027
|
+
args?: string[] | undefined;
|
|
2028
|
+
envAllowlist?: string[] | undefined;
|
|
2029
|
+
trust_required?: boolean | undefined;
|
|
2030
|
+
trust_grant?: {
|
|
2031
|
+
projectDigest: string;
|
|
2032
|
+
configDigest: string;
|
|
2033
|
+
commandDigest: string;
|
|
2034
|
+
executablePath: string;
|
|
2035
|
+
executableDigest: string;
|
|
2036
|
+
accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
|
|
2037
|
+
scriptPath?: string | null | undefined;
|
|
2038
|
+
scriptDigest?: string | null | undefined;
|
|
2039
|
+
} | null | undefined;
|
|
2040
|
+
}[] | undefined;
|
|
2041
|
+
} | undefined;
|
|
2042
|
+
external_context?: {
|
|
2043
|
+
policy?: "off" | "auto" | "cached" | "live" | undefined;
|
|
2044
|
+
web_required?: boolean | undefined;
|
|
2045
|
+
effective_mode?: "off" | "auto" | "cached" | "live" | undefined;
|
|
2046
|
+
} | undefined;
|
|
2047
|
+
budget?: {
|
|
2048
|
+
routing_goal?: "auto" | "quality" | "economy" | undefined;
|
|
2049
|
+
paid_budget?: {
|
|
2050
|
+
kind: "unlimited";
|
|
2051
|
+
} | {
|
|
2052
|
+
kind: "finite";
|
|
2053
|
+
maxUsd: number;
|
|
2054
|
+
} | undefined;
|
|
2055
|
+
} | undefined;
|
|
2056
|
+
routing_models?: Record<string, string> | undefined;
|
|
2057
|
+
convergence?: {
|
|
2058
|
+
require_tests_pass?: boolean | undefined;
|
|
2059
|
+
require_no_accepted_block_open?: boolean | undefined;
|
|
2060
|
+
require_no_accepted_fix_first_open?: boolean | undefined;
|
|
2061
|
+
require_final_cross_family_clean_review?: boolean | undefined;
|
|
2062
|
+
require_final_diff_stable_after_review?: boolean | undefined;
|
|
2063
|
+
require_no_accepted_needs_human_open?: boolean | undefined;
|
|
2064
|
+
} | undefined;
|
|
2065
|
+
}>>;
|
|
2066
|
+
export type FrozenTaskContractArtifact = z.infer<typeof FrozenTaskContractArtifact>;
|
|
565
2067
|
//# sourceMappingURL=task.d.ts.map
|