@claudexor/schema 1.0.0 → 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
|
@@ -0,0 +1,592 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ControlSpecPriorDecision: z.ZodObject<{
|
|
3
|
+
question: z.ZodString;
|
|
4
|
+
answer: z.ZodString;
|
|
5
|
+
}, "strict", z.ZodTypeAny, {
|
|
6
|
+
question: string;
|
|
7
|
+
answer: string;
|
|
8
|
+
}, {
|
|
9
|
+
question: string;
|
|
10
|
+
answer: string;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const ControlSpecQuestionsRequest: z.ZodObject<{
|
|
13
|
+
prompt: z.ZodString;
|
|
14
|
+
scope: z.ZodObject<{
|
|
15
|
+
kind: z.ZodLiteral<"project">;
|
|
16
|
+
root: z.ZodString;
|
|
17
|
+
context: z.ZodDefault<z.ZodEnum<["auto"]>>;
|
|
18
|
+
}, "strict", z.ZodTypeAny, {
|
|
19
|
+
kind: "project";
|
|
20
|
+
root: string;
|
|
21
|
+
context: "auto";
|
|
22
|
+
}, {
|
|
23
|
+
kind: "project";
|
|
24
|
+
root: string;
|
|
25
|
+
context?: "auto" | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
harnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
+
n: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
|
|
30
|
+
paidBudget: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
31
|
+
kind: z.ZodLiteral<"unlimited">;
|
|
32
|
+
}, "strict", z.ZodTypeAny, {
|
|
33
|
+
kind: "unlimited";
|
|
34
|
+
}, {
|
|
35
|
+
kind: "unlimited";
|
|
36
|
+
}>, z.ZodObject<{
|
|
37
|
+
kind: z.ZodLiteral<"finite">;
|
|
38
|
+
maxUsd: z.ZodNumber;
|
|
39
|
+
}, "strict", z.ZodTypeAny, {
|
|
40
|
+
kind: "finite";
|
|
41
|
+
maxUsd: number;
|
|
42
|
+
}, {
|
|
43
|
+
kind: "finite";
|
|
44
|
+
maxUsd: number;
|
|
45
|
+
}>]>>;
|
|
46
|
+
web: z.ZodOptional<z.ZodEnum<["off", "auto", "cached", "live"]>>;
|
|
47
|
+
reviewerModels: z.ZodOptional<z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>, z.ZodString>>;
|
|
48
|
+
reviewerEfforts: z.ZodOptional<z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>, z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>>;
|
|
49
|
+
reviewerPanel: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
50
|
+
harness: z.ZodString;
|
|
51
|
+
model: z.ZodOptional<z.ZodString>;
|
|
52
|
+
effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
|
|
53
|
+
}, "strict", z.ZodTypeAny, {
|
|
54
|
+
harness: string;
|
|
55
|
+
model?: string | undefined;
|
|
56
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
harness: string;
|
|
59
|
+
model?: string | undefined;
|
|
60
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
61
|
+
}>, "many">>;
|
|
62
|
+
priorDecisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
63
|
+
question: z.ZodString;
|
|
64
|
+
answer: z.ZodString;
|
|
65
|
+
}, "strict", z.ZodTypeAny, {
|
|
66
|
+
question: string;
|
|
67
|
+
answer: string;
|
|
68
|
+
}, {
|
|
69
|
+
question: string;
|
|
70
|
+
answer: string;
|
|
71
|
+
}>, "many">>;
|
|
72
|
+
}, "strict", z.ZodTypeAny, {
|
|
73
|
+
prompt: string;
|
|
74
|
+
scope: {
|
|
75
|
+
kind: "project";
|
|
76
|
+
root: string;
|
|
77
|
+
context: "auto";
|
|
78
|
+
};
|
|
79
|
+
web?: "off" | "auto" | "cached" | "live" | undefined;
|
|
80
|
+
harnesses?: string[] | undefined;
|
|
81
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
82
|
+
n?: number | undefined;
|
|
83
|
+
reviewerModels?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", string>> | undefined;
|
|
84
|
+
reviewerEfforts?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", "low" | "medium" | "high" | "xhigh" | "max">> | undefined;
|
|
85
|
+
paidBudget?: {
|
|
86
|
+
kind: "unlimited";
|
|
87
|
+
} | {
|
|
88
|
+
kind: "finite";
|
|
89
|
+
maxUsd: number;
|
|
90
|
+
} | undefined;
|
|
91
|
+
reviewerPanel?: {
|
|
92
|
+
harness: string;
|
|
93
|
+
model?: string | undefined;
|
|
94
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
95
|
+
}[] | undefined;
|
|
96
|
+
priorDecisions?: {
|
|
97
|
+
question: string;
|
|
98
|
+
answer: string;
|
|
99
|
+
}[] | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
prompt: string;
|
|
102
|
+
scope: {
|
|
103
|
+
kind: "project";
|
|
104
|
+
root: string;
|
|
105
|
+
context?: "auto" | undefined;
|
|
106
|
+
};
|
|
107
|
+
web?: "off" | "auto" | "cached" | "live" | undefined;
|
|
108
|
+
harnesses?: string[] | undefined;
|
|
109
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
110
|
+
n?: number | undefined;
|
|
111
|
+
reviewerModels?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", string>> | undefined;
|
|
112
|
+
reviewerEfforts?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", "low" | "medium" | "high" | "xhigh" | "max">> | undefined;
|
|
113
|
+
paidBudget?: {
|
|
114
|
+
kind: "unlimited";
|
|
115
|
+
} | {
|
|
116
|
+
kind: "finite";
|
|
117
|
+
maxUsd: number;
|
|
118
|
+
} | undefined;
|
|
119
|
+
reviewerPanel?: {
|
|
120
|
+
harness: string;
|
|
121
|
+
model?: string | undefined;
|
|
122
|
+
effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
123
|
+
}[] | undefined;
|
|
124
|
+
priorDecisions?: {
|
|
125
|
+
question: string;
|
|
126
|
+
answer: string;
|
|
127
|
+
}[] | undefined;
|
|
128
|
+
}>;
|
|
129
|
+
export type ControlSpecQuestionsRequest = z.infer<typeof ControlSpecQuestionsRequest>;
|
|
130
|
+
export declare const ControlSpecAnswersRequest: z.ZodObject<{
|
|
131
|
+
answers: z.ZodArray<z.ZodObject<{
|
|
132
|
+
question_id: z.ZodString;
|
|
133
|
+
option_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
134
|
+
text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
question_id: string;
|
|
137
|
+
text: string | null;
|
|
138
|
+
option_ids: string[];
|
|
139
|
+
}, {
|
|
140
|
+
question_id: string;
|
|
141
|
+
text?: string | null | undefined;
|
|
142
|
+
option_ids?: string[] | undefined;
|
|
143
|
+
}>, "many">;
|
|
144
|
+
priorDecisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
145
|
+
question: z.ZodString;
|
|
146
|
+
answer: z.ZodString;
|
|
147
|
+
}, "strict", z.ZodTypeAny, {
|
|
148
|
+
question: string;
|
|
149
|
+
answer: string;
|
|
150
|
+
}, {
|
|
151
|
+
question: string;
|
|
152
|
+
answer: string;
|
|
153
|
+
}>, "many">>;
|
|
154
|
+
}, "strict", z.ZodTypeAny, {
|
|
155
|
+
answers: {
|
|
156
|
+
question_id: string;
|
|
157
|
+
text: string | null;
|
|
158
|
+
option_ids: string[];
|
|
159
|
+
}[];
|
|
160
|
+
priorDecisions?: {
|
|
161
|
+
question: string;
|
|
162
|
+
answer: string;
|
|
163
|
+
}[] | undefined;
|
|
164
|
+
}, {
|
|
165
|
+
answers: {
|
|
166
|
+
question_id: string;
|
|
167
|
+
text?: string | null | undefined;
|
|
168
|
+
option_ids?: string[] | undefined;
|
|
169
|
+
}[];
|
|
170
|
+
priorDecisions?: {
|
|
171
|
+
question: string;
|
|
172
|
+
answer: string;
|
|
173
|
+
}[] | undefined;
|
|
174
|
+
}>;
|
|
175
|
+
export type ControlSpecAnswersRequest = z.infer<typeof ControlSpecAnswersRequest>;
|
|
176
|
+
export declare const ControlSpecSessionState: z.ZodEnum<["grounding", "questions", "answered", "freezing", "frozen", "cancelled", "failed", "interrupted_unknown"]>;
|
|
177
|
+
export type ControlSpecSessionState = z.infer<typeof ControlSpecSessionState>;
|
|
178
|
+
export declare const ControlSpecSession: z.ZodObject<{
|
|
179
|
+
sessionId: z.ZodString;
|
|
180
|
+
prompt: z.ZodString;
|
|
181
|
+
scope: z.ZodObject<{
|
|
182
|
+
kind: z.ZodLiteral<"project">;
|
|
183
|
+
root: z.ZodString;
|
|
184
|
+
context: z.ZodEnum<["auto"]>;
|
|
185
|
+
}, "strict", z.ZodTypeAny, {
|
|
186
|
+
kind: "project";
|
|
187
|
+
root: string;
|
|
188
|
+
context: "auto";
|
|
189
|
+
}, {
|
|
190
|
+
kind: "project";
|
|
191
|
+
root: string;
|
|
192
|
+
context: "auto";
|
|
193
|
+
}>;
|
|
194
|
+
state: z.ZodEnum<["grounding", "questions", "answered", "freezing", "frozen", "cancelled", "failed", "interrupted_unknown"]>;
|
|
195
|
+
planRunId: z.ZodNullable<z.ZodString>;
|
|
196
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
197
|
+
id: z.ZodString;
|
|
198
|
+
tier: z.ZodDefault<z.ZodNumber>;
|
|
199
|
+
prompt: z.ZodString;
|
|
200
|
+
kind: z.ZodDefault<z.ZodEnum<["single", "multi", "text"]>>;
|
|
201
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
202
|
+
id: z.ZodString;
|
|
203
|
+
label: z.ZodString;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
id: string;
|
|
206
|
+
label: string;
|
|
207
|
+
}, {
|
|
208
|
+
id: string;
|
|
209
|
+
label: string;
|
|
210
|
+
}>, "many">>;
|
|
211
|
+
allow_text: z.ZodDefault<z.ZodBoolean>;
|
|
212
|
+
rationale: z.ZodOptional<z.ZodString>;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
options: {
|
|
215
|
+
id: string;
|
|
216
|
+
label: string;
|
|
217
|
+
}[];
|
|
218
|
+
kind: "text" | "single" | "multi";
|
|
219
|
+
id: string;
|
|
220
|
+
prompt: string;
|
|
221
|
+
tier: number;
|
|
222
|
+
allow_text: boolean;
|
|
223
|
+
rationale?: string | undefined;
|
|
224
|
+
}, {
|
|
225
|
+
id: string;
|
|
226
|
+
prompt: string;
|
|
227
|
+
options?: {
|
|
228
|
+
id: string;
|
|
229
|
+
label: string;
|
|
230
|
+
}[] | undefined;
|
|
231
|
+
kind?: "text" | "single" | "multi" | undefined;
|
|
232
|
+
tier?: number | undefined;
|
|
233
|
+
allow_text?: boolean | undefined;
|
|
234
|
+
rationale?: string | undefined;
|
|
235
|
+
}>, "many">;
|
|
236
|
+
answers: z.ZodArray<z.ZodObject<{
|
|
237
|
+
question_id: z.ZodString;
|
|
238
|
+
option_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
239
|
+
text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
question_id: string;
|
|
242
|
+
text: string | null;
|
|
243
|
+
option_ids: string[];
|
|
244
|
+
}, {
|
|
245
|
+
question_id: string;
|
|
246
|
+
text?: string | null | undefined;
|
|
247
|
+
option_ids?: string[] | undefined;
|
|
248
|
+
}>, "many">;
|
|
249
|
+
priorDecisions: z.ZodArray<z.ZodObject<{
|
|
250
|
+
question: z.ZodString;
|
|
251
|
+
answer: z.ZodString;
|
|
252
|
+
}, "strict", z.ZodTypeAny, {
|
|
253
|
+
question: string;
|
|
254
|
+
answer: string;
|
|
255
|
+
}, {
|
|
256
|
+
question: string;
|
|
257
|
+
answer: string;
|
|
258
|
+
}>, "many">;
|
|
259
|
+
specId: z.ZodNullable<z.ZodString>;
|
|
260
|
+
specDir: z.ZodNullable<z.ZodString>;
|
|
261
|
+
specPath: z.ZodNullable<z.ZodString>;
|
|
262
|
+
specHash: z.ZodNullable<z.ZodString>;
|
|
263
|
+
error: z.ZodNullable<z.ZodString>;
|
|
264
|
+
createdAt: z.ZodString;
|
|
265
|
+
updatedAt: z.ZodString;
|
|
266
|
+
}, "strict", z.ZodTypeAny, {
|
|
267
|
+
state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
|
|
268
|
+
createdAt: string;
|
|
269
|
+
prompt: string;
|
|
270
|
+
error: string | null;
|
|
271
|
+
questions: {
|
|
272
|
+
options: {
|
|
273
|
+
id: string;
|
|
274
|
+
label: string;
|
|
275
|
+
}[];
|
|
276
|
+
kind: "text" | "single" | "multi";
|
|
277
|
+
id: string;
|
|
278
|
+
prompt: string;
|
|
279
|
+
tier: number;
|
|
280
|
+
allow_text: boolean;
|
|
281
|
+
rationale?: string | undefined;
|
|
282
|
+
}[];
|
|
283
|
+
answers: {
|
|
284
|
+
question_id: string;
|
|
285
|
+
text: string | null;
|
|
286
|
+
option_ids: string[];
|
|
287
|
+
}[];
|
|
288
|
+
planRunId: string | null;
|
|
289
|
+
scope: {
|
|
290
|
+
kind: "project";
|
|
291
|
+
root: string;
|
|
292
|
+
context: "auto";
|
|
293
|
+
};
|
|
294
|
+
specPath: string | null;
|
|
295
|
+
specId: string | null;
|
|
296
|
+
specHash: string | null;
|
|
297
|
+
sessionId: string;
|
|
298
|
+
updatedAt: string;
|
|
299
|
+
priorDecisions: {
|
|
300
|
+
question: string;
|
|
301
|
+
answer: string;
|
|
302
|
+
}[];
|
|
303
|
+
specDir: string | null;
|
|
304
|
+
}, {
|
|
305
|
+
state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
|
|
306
|
+
createdAt: string;
|
|
307
|
+
prompt: string;
|
|
308
|
+
error: string | null;
|
|
309
|
+
questions: {
|
|
310
|
+
id: string;
|
|
311
|
+
prompt: string;
|
|
312
|
+
options?: {
|
|
313
|
+
id: string;
|
|
314
|
+
label: string;
|
|
315
|
+
}[] | undefined;
|
|
316
|
+
kind?: "text" | "single" | "multi" | undefined;
|
|
317
|
+
tier?: number | undefined;
|
|
318
|
+
allow_text?: boolean | undefined;
|
|
319
|
+
rationale?: string | undefined;
|
|
320
|
+
}[];
|
|
321
|
+
answers: {
|
|
322
|
+
question_id: string;
|
|
323
|
+
text?: string | null | undefined;
|
|
324
|
+
option_ids?: string[] | undefined;
|
|
325
|
+
}[];
|
|
326
|
+
planRunId: string | null;
|
|
327
|
+
scope: {
|
|
328
|
+
kind: "project";
|
|
329
|
+
root: string;
|
|
330
|
+
context: "auto";
|
|
331
|
+
};
|
|
332
|
+
specPath: string | null;
|
|
333
|
+
specId: string | null;
|
|
334
|
+
specHash: string | null;
|
|
335
|
+
sessionId: string;
|
|
336
|
+
updatedAt: string;
|
|
337
|
+
priorDecisions: {
|
|
338
|
+
question: string;
|
|
339
|
+
answer: string;
|
|
340
|
+
}[];
|
|
341
|
+
specDir: string | null;
|
|
342
|
+
}>;
|
|
343
|
+
export type ControlSpecSession = z.infer<typeof ControlSpecSession>;
|
|
344
|
+
export declare const ControlSpecSessionListResponse: z.ZodObject<{
|
|
345
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
346
|
+
sessionId: z.ZodString;
|
|
347
|
+
prompt: z.ZodString;
|
|
348
|
+
scope: z.ZodObject<{
|
|
349
|
+
kind: z.ZodLiteral<"project">;
|
|
350
|
+
root: z.ZodString;
|
|
351
|
+
context: z.ZodEnum<["auto"]>;
|
|
352
|
+
}, "strict", z.ZodTypeAny, {
|
|
353
|
+
kind: "project";
|
|
354
|
+
root: string;
|
|
355
|
+
context: "auto";
|
|
356
|
+
}, {
|
|
357
|
+
kind: "project";
|
|
358
|
+
root: string;
|
|
359
|
+
context: "auto";
|
|
360
|
+
}>;
|
|
361
|
+
state: z.ZodEnum<["grounding", "questions", "answered", "freezing", "frozen", "cancelled", "failed", "interrupted_unknown"]>;
|
|
362
|
+
planRunId: z.ZodNullable<z.ZodString>;
|
|
363
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
364
|
+
id: z.ZodString;
|
|
365
|
+
tier: z.ZodDefault<z.ZodNumber>;
|
|
366
|
+
prompt: z.ZodString;
|
|
367
|
+
kind: z.ZodDefault<z.ZodEnum<["single", "multi", "text"]>>;
|
|
368
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
369
|
+
id: z.ZodString;
|
|
370
|
+
label: z.ZodString;
|
|
371
|
+
}, "strip", z.ZodTypeAny, {
|
|
372
|
+
id: string;
|
|
373
|
+
label: string;
|
|
374
|
+
}, {
|
|
375
|
+
id: string;
|
|
376
|
+
label: string;
|
|
377
|
+
}>, "many">>;
|
|
378
|
+
allow_text: z.ZodDefault<z.ZodBoolean>;
|
|
379
|
+
rationale: z.ZodOptional<z.ZodString>;
|
|
380
|
+
}, "strip", z.ZodTypeAny, {
|
|
381
|
+
options: {
|
|
382
|
+
id: string;
|
|
383
|
+
label: string;
|
|
384
|
+
}[];
|
|
385
|
+
kind: "text" | "single" | "multi";
|
|
386
|
+
id: string;
|
|
387
|
+
prompt: string;
|
|
388
|
+
tier: number;
|
|
389
|
+
allow_text: boolean;
|
|
390
|
+
rationale?: string | undefined;
|
|
391
|
+
}, {
|
|
392
|
+
id: string;
|
|
393
|
+
prompt: string;
|
|
394
|
+
options?: {
|
|
395
|
+
id: string;
|
|
396
|
+
label: string;
|
|
397
|
+
}[] | undefined;
|
|
398
|
+
kind?: "text" | "single" | "multi" | undefined;
|
|
399
|
+
tier?: number | undefined;
|
|
400
|
+
allow_text?: boolean | undefined;
|
|
401
|
+
rationale?: string | undefined;
|
|
402
|
+
}>, "many">;
|
|
403
|
+
answers: z.ZodArray<z.ZodObject<{
|
|
404
|
+
question_id: z.ZodString;
|
|
405
|
+
option_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
406
|
+
text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
407
|
+
}, "strip", z.ZodTypeAny, {
|
|
408
|
+
question_id: string;
|
|
409
|
+
text: string | null;
|
|
410
|
+
option_ids: string[];
|
|
411
|
+
}, {
|
|
412
|
+
question_id: string;
|
|
413
|
+
text?: string | null | undefined;
|
|
414
|
+
option_ids?: string[] | undefined;
|
|
415
|
+
}>, "many">;
|
|
416
|
+
priorDecisions: z.ZodArray<z.ZodObject<{
|
|
417
|
+
question: z.ZodString;
|
|
418
|
+
answer: z.ZodString;
|
|
419
|
+
}, "strict", z.ZodTypeAny, {
|
|
420
|
+
question: string;
|
|
421
|
+
answer: string;
|
|
422
|
+
}, {
|
|
423
|
+
question: string;
|
|
424
|
+
answer: string;
|
|
425
|
+
}>, "many">;
|
|
426
|
+
specId: z.ZodNullable<z.ZodString>;
|
|
427
|
+
specDir: z.ZodNullable<z.ZodString>;
|
|
428
|
+
specPath: z.ZodNullable<z.ZodString>;
|
|
429
|
+
specHash: z.ZodNullable<z.ZodString>;
|
|
430
|
+
error: z.ZodNullable<z.ZodString>;
|
|
431
|
+
createdAt: z.ZodString;
|
|
432
|
+
updatedAt: z.ZodString;
|
|
433
|
+
}, "strict", z.ZodTypeAny, {
|
|
434
|
+
state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
|
|
435
|
+
createdAt: string;
|
|
436
|
+
prompt: string;
|
|
437
|
+
error: string | null;
|
|
438
|
+
questions: {
|
|
439
|
+
options: {
|
|
440
|
+
id: string;
|
|
441
|
+
label: string;
|
|
442
|
+
}[];
|
|
443
|
+
kind: "text" | "single" | "multi";
|
|
444
|
+
id: string;
|
|
445
|
+
prompt: string;
|
|
446
|
+
tier: number;
|
|
447
|
+
allow_text: boolean;
|
|
448
|
+
rationale?: string | undefined;
|
|
449
|
+
}[];
|
|
450
|
+
answers: {
|
|
451
|
+
question_id: string;
|
|
452
|
+
text: string | null;
|
|
453
|
+
option_ids: string[];
|
|
454
|
+
}[];
|
|
455
|
+
planRunId: string | null;
|
|
456
|
+
scope: {
|
|
457
|
+
kind: "project";
|
|
458
|
+
root: string;
|
|
459
|
+
context: "auto";
|
|
460
|
+
};
|
|
461
|
+
specPath: string | null;
|
|
462
|
+
specId: string | null;
|
|
463
|
+
specHash: string | null;
|
|
464
|
+
sessionId: string;
|
|
465
|
+
updatedAt: string;
|
|
466
|
+
priorDecisions: {
|
|
467
|
+
question: string;
|
|
468
|
+
answer: string;
|
|
469
|
+
}[];
|
|
470
|
+
specDir: string | null;
|
|
471
|
+
}, {
|
|
472
|
+
state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
|
|
473
|
+
createdAt: string;
|
|
474
|
+
prompt: string;
|
|
475
|
+
error: string | null;
|
|
476
|
+
questions: {
|
|
477
|
+
id: string;
|
|
478
|
+
prompt: string;
|
|
479
|
+
options?: {
|
|
480
|
+
id: string;
|
|
481
|
+
label: string;
|
|
482
|
+
}[] | undefined;
|
|
483
|
+
kind?: "text" | "single" | "multi" | undefined;
|
|
484
|
+
tier?: number | undefined;
|
|
485
|
+
allow_text?: boolean | undefined;
|
|
486
|
+
rationale?: string | undefined;
|
|
487
|
+
}[];
|
|
488
|
+
answers: {
|
|
489
|
+
question_id: string;
|
|
490
|
+
text?: string | null | undefined;
|
|
491
|
+
option_ids?: string[] | undefined;
|
|
492
|
+
}[];
|
|
493
|
+
planRunId: string | null;
|
|
494
|
+
scope: {
|
|
495
|
+
kind: "project";
|
|
496
|
+
root: string;
|
|
497
|
+
context: "auto";
|
|
498
|
+
};
|
|
499
|
+
specPath: string | null;
|
|
500
|
+
specId: string | null;
|
|
501
|
+
specHash: string | null;
|
|
502
|
+
sessionId: string;
|
|
503
|
+
updatedAt: string;
|
|
504
|
+
priorDecisions: {
|
|
505
|
+
question: string;
|
|
506
|
+
answer: string;
|
|
507
|
+
}[];
|
|
508
|
+
specDir: string | null;
|
|
509
|
+
}>, "many">;
|
|
510
|
+
}, "strict", z.ZodTypeAny, {
|
|
511
|
+
sessions: {
|
|
512
|
+
state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
|
|
513
|
+
createdAt: string;
|
|
514
|
+
prompt: string;
|
|
515
|
+
error: string | null;
|
|
516
|
+
questions: {
|
|
517
|
+
options: {
|
|
518
|
+
id: string;
|
|
519
|
+
label: string;
|
|
520
|
+
}[];
|
|
521
|
+
kind: "text" | "single" | "multi";
|
|
522
|
+
id: string;
|
|
523
|
+
prompt: string;
|
|
524
|
+
tier: number;
|
|
525
|
+
allow_text: boolean;
|
|
526
|
+
rationale?: string | undefined;
|
|
527
|
+
}[];
|
|
528
|
+
answers: {
|
|
529
|
+
question_id: string;
|
|
530
|
+
text: string | null;
|
|
531
|
+
option_ids: string[];
|
|
532
|
+
}[];
|
|
533
|
+
planRunId: string | null;
|
|
534
|
+
scope: {
|
|
535
|
+
kind: "project";
|
|
536
|
+
root: string;
|
|
537
|
+
context: "auto";
|
|
538
|
+
};
|
|
539
|
+
specPath: string | null;
|
|
540
|
+
specId: string | null;
|
|
541
|
+
specHash: string | null;
|
|
542
|
+
sessionId: string;
|
|
543
|
+
updatedAt: string;
|
|
544
|
+
priorDecisions: {
|
|
545
|
+
question: string;
|
|
546
|
+
answer: string;
|
|
547
|
+
}[];
|
|
548
|
+
specDir: string | null;
|
|
549
|
+
}[];
|
|
550
|
+
}, {
|
|
551
|
+
sessions: {
|
|
552
|
+
state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
|
|
553
|
+
createdAt: string;
|
|
554
|
+
prompt: string;
|
|
555
|
+
error: string | null;
|
|
556
|
+
questions: {
|
|
557
|
+
id: string;
|
|
558
|
+
prompt: string;
|
|
559
|
+
options?: {
|
|
560
|
+
id: string;
|
|
561
|
+
label: string;
|
|
562
|
+
}[] | undefined;
|
|
563
|
+
kind?: "text" | "single" | "multi" | undefined;
|
|
564
|
+
tier?: number | undefined;
|
|
565
|
+
allow_text?: boolean | undefined;
|
|
566
|
+
rationale?: string | undefined;
|
|
567
|
+
}[];
|
|
568
|
+
answers: {
|
|
569
|
+
question_id: string;
|
|
570
|
+
text?: string | null | undefined;
|
|
571
|
+
option_ids?: string[] | undefined;
|
|
572
|
+
}[];
|
|
573
|
+
planRunId: string | null;
|
|
574
|
+
scope: {
|
|
575
|
+
kind: "project";
|
|
576
|
+
root: string;
|
|
577
|
+
context: "auto";
|
|
578
|
+
};
|
|
579
|
+
specPath: string | null;
|
|
580
|
+
specId: string | null;
|
|
581
|
+
specHash: string | null;
|
|
582
|
+
sessionId: string;
|
|
583
|
+
updatedAt: string;
|
|
584
|
+
priorDecisions: {
|
|
585
|
+
question: string;
|
|
586
|
+
answer: string;
|
|
587
|
+
}[];
|
|
588
|
+
specDir: string | null;
|
|
589
|
+
}[];
|
|
590
|
+
}>;
|
|
591
|
+
export type ControlSpecSessionListResponse = z.infer<typeof ControlSpecSessionListResponse>;
|
|
592
|
+
//# sourceMappingURL=control-spec.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-spec.d.ts","sourceRoot":"","sources":["../src/control-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,wBAAwB;;;;;;;;;EAK1B,CAAC;AAEZ,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B0B,CAAC;AACnE,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEtF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMyB,CAAC;AAChE,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAElF,eAAO,MAAM,uBAAuB,uHASlC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE9E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBsC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEhC,CAAC;AACZ,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { InterviewAnswer, InterviewQuestion } from "./spec.js";
|
|
3
|
+
import { ExternalContextPolicy, NonBlankString, ProviderFamily } from "./primitives.js";
|
|
4
|
+
import { EffortHint } from "./harness.js";
|
|
5
|
+
import { ControlReviewerPanelEntry } from "./control.js";
|
|
6
|
+
import { RunScopeContext } from "./control-run-scope.js";
|
|
7
|
+
import { PaidBudget } from "./budget.js";
|
|
8
|
+
export const ControlSpecPriorDecision = z
|
|
9
|
+
.object({
|
|
10
|
+
question: z.string().describe("Question asked in a prior tier."),
|
|
11
|
+
answer: z.string().describe("The user's answer."),
|
|
12
|
+
})
|
|
13
|
+
.strict();
|
|
14
|
+
export const ControlSpecQuestionsRequest = z
|
|
15
|
+
.object({
|
|
16
|
+
prompt: z.string().min(1).describe("The user's request the interview is clarifying."),
|
|
17
|
+
scope: z
|
|
18
|
+
.object({
|
|
19
|
+
kind: z.literal("project"),
|
|
20
|
+
root: z.string().describe("Absolute path of the project root."),
|
|
21
|
+
context: RunScopeContext.default("auto"),
|
|
22
|
+
})
|
|
23
|
+
.strict()
|
|
24
|
+
.describe("Project the spec is about."),
|
|
25
|
+
harnesses: z
|
|
26
|
+
.array(NonBlankString)
|
|
27
|
+
.optional()
|
|
28
|
+
.describe("Harnesses eligible to generate the questions."),
|
|
29
|
+
n: z.number().int().positive().optional(),
|
|
30
|
+
effort: EffortHint.optional(),
|
|
31
|
+
paidBudget: PaidBudget.optional(),
|
|
32
|
+
web: ExternalContextPolicy.optional(),
|
|
33
|
+
reviewerModels: z.record(ProviderFamily, NonBlankString).optional(),
|
|
34
|
+
reviewerEfforts: z.record(ProviderFamily, EffortHint).optional(),
|
|
35
|
+
reviewerPanel: z.array(ControlReviewerPanelEntry).min(1).optional(),
|
|
36
|
+
priorDecisions: z
|
|
37
|
+
.array(ControlSpecPriorDecision)
|
|
38
|
+
.optional()
|
|
39
|
+
.describe("Prior-tier decisions carried into the next interview tier."),
|
|
40
|
+
})
|
|
41
|
+
.strict()
|
|
42
|
+
.describe("Request to create a durable spec interview session.");
|
|
43
|
+
export const ControlSpecAnswersRequest = z
|
|
44
|
+
.object({
|
|
45
|
+
answers: z.array(InterviewAnswer).describe("Answers for the current interview tier."),
|
|
46
|
+
priorDecisions: z.array(ControlSpecPriorDecision).optional(),
|
|
47
|
+
})
|
|
48
|
+
.strict()
|
|
49
|
+
.describe("Answers recorded against a durable spec session.");
|
|
50
|
+
export const ControlSpecSessionState = z.enum([
|
|
51
|
+
"grounding",
|
|
52
|
+
"questions",
|
|
53
|
+
"answered",
|
|
54
|
+
"freezing",
|
|
55
|
+
"frozen",
|
|
56
|
+
"cancelled",
|
|
57
|
+
"failed",
|
|
58
|
+
"interrupted_unknown",
|
|
59
|
+
]);
|
|
60
|
+
export const ControlSpecSession = z
|
|
61
|
+
.object({
|
|
62
|
+
sessionId: NonBlankString,
|
|
63
|
+
prompt: z.string(),
|
|
64
|
+
scope: z
|
|
65
|
+
.object({ kind: z.literal("project"), root: z.string(), context: RunScopeContext })
|
|
66
|
+
.strict(),
|
|
67
|
+
state: ControlSpecSessionState,
|
|
68
|
+
planRunId: z.string().nullable(),
|
|
69
|
+
questions: z.array(InterviewQuestion),
|
|
70
|
+
answers: z.array(InterviewAnswer),
|
|
71
|
+
priorDecisions: z.array(ControlSpecPriorDecision),
|
|
72
|
+
specId: z.string().nullable(),
|
|
73
|
+
specDir: z.string().nullable(),
|
|
74
|
+
specPath: z.string().nullable(),
|
|
75
|
+
specHash: z.string().nullable(),
|
|
76
|
+
error: z.string().nullable(),
|
|
77
|
+
createdAt: z.string(),
|
|
78
|
+
updatedAt: z.string(),
|
|
79
|
+
})
|
|
80
|
+
.strict()
|
|
81
|
+
.describe("Durable public projection of a spec interview session.");
|
|
82
|
+
export const ControlSpecSessionListResponse = z
|
|
83
|
+
.object({ sessions: z.array(ControlSpecSession) })
|
|
84
|
+
.strict();
|
|
85
|
+
//# sourceMappingURL=control-spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-spec.js","sourceRoot":"","sources":["../src/control-spec.ts"],"names":[],"mappings":"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"}
|