@claudexor/schema 3.0.4 → 3.1.1
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 +45 -8
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +14 -0
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts +384 -18
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +20 -1
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/budget.d.ts +84 -9
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +46 -0
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +97 -65
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +12 -1
- package/dist/config.js.map +1 -1
- package/dist/control-operation-responses.d.ts +311 -89
- package/dist/control-operation-responses.d.ts.map +1 -1
- package/dist/control-operation-responses.js +33 -3
- package/dist/control-operation-responses.js.map +1 -1
- package/dist/control-run-detail.d.ts +613 -163
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +28 -2
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-retry.d.ts +1 -1
- package/dist/control-run-scope.d.ts +1 -1
- package/dist/control-thread-apply.d.ts +10 -0
- package/dist/control-thread-apply.d.ts.map +1 -1
- package/dist/control.d.ts +791 -232
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +76 -2
- package/dist/control.js.map +1 -1
- package/dist/decision.d.ts +205 -9
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +69 -1
- package/dist/decision.js.map +1 -1
- package/dist/deep-scan.d.ts +27 -0
- package/dist/deep-scan.d.ts.map +1 -0
- package/dist/deep-scan.js +27 -0
- package/dist/deep-scan.js.map +1 -0
- package/dist/delivery.d.ts +13 -0
- package/dist/delivery.d.ts.map +1 -1
- package/dist/delivery.js +15 -0
- package/dist/delivery.js.map +1 -1
- package/dist/effort.d.ts +132 -0
- package/dist/effort.d.ts.map +1 -0
- package/dist/effort.js +167 -0
- package/dist/effort.js.map +1 -0
- package/dist/events.d.ts +59 -4
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +91 -0
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +2 -2
- package/dist/harness.d.ts +209 -28
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +107 -14
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/operation.d.ts +193 -10
- package/dist/operation.d.ts.map +1 -1
- package/dist/operation.js +45 -0
- package/dist/operation.js.map +1 -1
- package/dist/output-schema-dialect.d.ts +22 -0
- package/dist/output-schema-dialect.d.ts.map +1 -0
- package/dist/output-schema-dialect.js +37 -0
- package/dist/output-schema-dialect.js.map +1 -0
- package/dist/output-schema.d.ts +26 -2
- package/dist/output-schema.d.ts.map +1 -1
- package/dist/output-schema.js +313 -16
- package/dist/output-schema.js.map +1 -1
- package/dist/plan.d.ts +2 -2
- package/dist/problem.d.ts +3 -3
- package/dist/project.d.ts +47 -12
- package/dist/project.d.ts.map +1 -1
- package/dist/project.js +32 -0
- package/dist/project.js.map +1 -1
- package/dist/readiness.d.ts +62 -7
- package/dist/readiness.d.ts.map +1 -1
- package/dist/recovery.d.ts +14 -14
- package/dist/review.d.ts +7 -7
- package/dist/route.d.ts +2 -2
- package/dist/setup.d.ts +288 -94
- package/dist/setup.d.ts.map +1 -1
- package/dist/setup.js +90 -6
- package/dist/setup.js.map +1 -1
- package/dist/status-projection.d.ts +79 -4
- package/dist/status-projection.d.ts.map +1 -1
- package/dist/status-projection.js +161 -4
- package/dist/status-projection.js.map +1 -1
- package/dist/task.d.ts +70 -53
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +18 -8
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +795 -32
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +177 -4
- package/dist/telemetry.js.map +1 -1
- package/dist/tool-ref.d.ts +14 -0
- package/dist/tool-ref.d.ts.map +1 -1
- package/dist/tool-ref.js +15 -0
- package/dist/tool-ref.js.map +1 -1
- package/dist/work-report.d.ts +131 -0
- package/dist/work-report.d.ts.map +1 -0
- package/dist/work-report.js +124 -0
- package/dist/work-report.js.map +1 -0
- package/dist/workspace.d.ts +2 -2
- package/generated/AgentCapabilityCatalog.schema.json +39 -8
- package/generated/ControlApplyCheckResponse.schema.json +5 -0
- package/generated/ControlDeliveryResponse.schema.json +14 -0
- package/generated/ControlHarnessListResponse.schema.json +64 -9
- package/generated/ControlHarnessSettingsPatch.schema.json +4 -8
- package/generated/ControlOperationCatalog.schema.json +74 -0
- package/generated/ControlOperationDescriptor.schema.json +74 -0
- package/generated/ControlOperationParameter.schema.json +75 -0
- package/generated/ControlProjectRemoveReceipt.schema.json +58 -0
- package/generated/ControlRunAgainDraft.schema.json +14 -7
- package/generated/ControlRunDetail.schema.json +406 -16
- package/generated/ControlRunListResponse.schema.json +232 -10
- package/generated/ControlRunStartRequest.schema.json +14 -7
- package/generated/ControlRunSummary.schema.json +218 -9
- package/generated/ControlSettingsSnapshot.schema.json +4 -8
- package/generated/ControlSettingsUpdateRequest.schema.json +4 -8
- package/generated/ControlSetupJobCreateRequest.schema.json +2 -1
- package/generated/ControlSetupJobEvent.schema.json +28 -0
- package/generated/ControlSetupJobSnapshot.schema.json +28 -0
- package/generated/ControlThreadApplyResponse.schema.json +14 -0
- package/generated/ControlThreadDetail.schema.json +94 -1
- package/generated/ControlThreadTurnRequest.schema.json +14 -7
- package/generated/DecisionRecord.schema.json +178 -2
- package/generated/GlobalConfig.schema.json +4 -8
- package/generated/HarnessEvent.schema.json +79 -1
- package/generated/HarnessManifest.schema.json +64 -9
- package/generated/HarnessStatusDto.schema.json +64 -9
- package/generated/McpRunHandleResult.schema.json +286 -1
- package/generated/McpRunToolResult.schema.json +171 -1
- package/generated/ProjectConfig.schema.json +26 -0
- package/generated/RoutePoolDegradedPayload.schema.json +79 -0
- package/generated/RunEvent.schema.json +8 -1
- package/generated/RunFailure.schema.json +23 -1
- package/generated/RunTelemetry.schema.json +376 -1
- package/generated/StructuredOutputConformance.schema.json +83 -0
- package/generated/TaskContract.schema.json +13 -1
- package/package.json +2 -2
|
@@ -38,19 +38,70 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
38
38
|
noChanges: z.ZodDefault<z.ZodBoolean>;
|
|
39
39
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
40
40
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
41
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "crash_interrupted"]>>>;
|
|
41
|
+
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "crash_interrupted", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
42
|
+
work_state: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
44
|
+
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
45
|
+
required_inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46
|
+
kind: z.ZodEnum<["file", "context", "credential", "permission", "decision", "external_dependency"]>;
|
|
47
|
+
locator: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
description: z.ZodString;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
51
|
+
description: string;
|
|
52
|
+
locator: string | null;
|
|
53
|
+
}, {
|
|
54
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
55
|
+
description: string;
|
|
56
|
+
locator?: string | null | undefined;
|
|
57
|
+
}>, "many">>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
source: "constrained" | "validated" | "absent";
|
|
60
|
+
state: "completed" | "needs_input" | "incomplete" | "unverified";
|
|
61
|
+
required_inputs?: {
|
|
62
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
63
|
+
description: string;
|
|
64
|
+
locator: string | null;
|
|
65
|
+
}[] | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
source: "constrained" | "validated" | "absent";
|
|
68
|
+
state: "completed" | "needs_input" | "incomplete" | "unverified";
|
|
69
|
+
required_inputs?: {
|
|
70
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
71
|
+
description: string;
|
|
72
|
+
locator?: string | null | undefined;
|
|
73
|
+
}[] | undefined;
|
|
74
|
+
}>>;
|
|
42
75
|
}, "strict", z.ZodTypeAny, {
|
|
43
76
|
review: "not_run" | "approved" | "blocked";
|
|
44
|
-
reason: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | null;
|
|
77
|
+
reason: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null;
|
|
45
78
|
checks: "passed" | "failed" | "not_configured";
|
|
46
79
|
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
47
80
|
noChanges: boolean;
|
|
81
|
+
work_state?: {
|
|
82
|
+
source: "constrained" | "validated" | "absent";
|
|
83
|
+
state: "completed" | "needs_input" | "incomplete" | "unverified";
|
|
84
|
+
required_inputs?: {
|
|
85
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
86
|
+
description: string;
|
|
87
|
+
locator: string | null;
|
|
88
|
+
}[] | undefined;
|
|
89
|
+
} | undefined;
|
|
48
90
|
}, {
|
|
49
91
|
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
50
92
|
review?: "not_run" | "approved" | "blocked" | undefined;
|
|
51
|
-
reason?: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | null | undefined;
|
|
93
|
+
reason?: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null | undefined;
|
|
52
94
|
checks?: "passed" | "failed" | "not_configured" | undefined;
|
|
53
95
|
noChanges?: boolean | undefined;
|
|
96
|
+
work_state?: {
|
|
97
|
+
source: "constrained" | "validated" | "absent";
|
|
98
|
+
state: "completed" | "needs_input" | "incomplete" | "unverified";
|
|
99
|
+
required_inputs?: {
|
|
100
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
101
|
+
description: string;
|
|
102
|
+
locator?: string | null | undefined;
|
|
103
|
+
}[] | undefined;
|
|
104
|
+
} | undefined;
|
|
54
105
|
}>>>;
|
|
55
106
|
applyEligibility: z.ZodNullable<z.ZodObject<{
|
|
56
107
|
eligible: z.ZodBoolean;
|
|
@@ -73,23 +124,91 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
73
124
|
state: z.ZodEnum<["ready", "needs_answers", "unverified"]>;
|
|
74
125
|
questionCount: z.ZodDefault<z.ZodNumber>;
|
|
75
126
|
}, "strict", z.ZodTypeAny, {
|
|
76
|
-
state: "ready" | "
|
|
127
|
+
state: "ready" | "unverified" | "needs_answers";
|
|
77
128
|
questionCount: number;
|
|
78
129
|
}, {
|
|
79
|
-
state: "ready" | "
|
|
130
|
+
state: "ready" | "unverified" | "needs_answers";
|
|
80
131
|
questionCount?: number | undefined;
|
|
81
132
|
}>>>;
|
|
133
|
+
/** Council membership + merge disclosure (QA-023b) so an MCP host can
|
|
134
|
+
* machine-verify a `--council` plan was really N/N and who merged, without
|
|
135
|
+
* reading local artifacts; null for solo/non-plan tools and deferred handles. */
|
|
136
|
+
council: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
137
|
+
requested: z.ZodNumber;
|
|
138
|
+
drafted: z.ZodNumber;
|
|
139
|
+
degraded: z.ZodDefault<z.ZodBoolean>;
|
|
140
|
+
mergedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
141
|
+
members: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
142
|
+
harnessId: z.ZodString;
|
|
143
|
+
role: z.ZodEnum<["primary", "member"]>;
|
|
144
|
+
status: z.ZodEnum<["drafted", "failed", "merged"]>;
|
|
145
|
+
error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
146
|
+
}, "strict", z.ZodTypeAny, {
|
|
147
|
+
status: "failed" | "drafted" | "merged";
|
|
148
|
+
harnessId: string;
|
|
149
|
+
error: string | null;
|
|
150
|
+
role: "primary" | "member";
|
|
151
|
+
}, {
|
|
152
|
+
status: "failed" | "drafted" | "merged";
|
|
153
|
+
harnessId: string;
|
|
154
|
+
role: "primary" | "member";
|
|
155
|
+
error?: string | null | undefined;
|
|
156
|
+
}>, "many">>;
|
|
157
|
+
}, "strict", z.ZodTypeAny, {
|
|
158
|
+
requested: number;
|
|
159
|
+
degraded: boolean;
|
|
160
|
+
drafted: number;
|
|
161
|
+
mergedBy: string | null;
|
|
162
|
+
members: {
|
|
163
|
+
status: "failed" | "drafted" | "merged";
|
|
164
|
+
harnessId: string;
|
|
165
|
+
error: string | null;
|
|
166
|
+
role: "primary" | "member";
|
|
167
|
+
}[];
|
|
168
|
+
}, {
|
|
169
|
+
requested: number;
|
|
170
|
+
drafted: number;
|
|
171
|
+
degraded?: boolean | undefined;
|
|
172
|
+
mergedBy?: string | null | undefined;
|
|
173
|
+
members?: {
|
|
174
|
+
status: "failed" | "drafted" | "merged";
|
|
175
|
+
harnessId: string;
|
|
176
|
+
role: "primary" | "member";
|
|
177
|
+
error?: string | null | undefined;
|
|
178
|
+
}[] | undefined;
|
|
179
|
+
}>>>;
|
|
82
180
|
}, "strip", z.ZodTypeAny, {
|
|
83
181
|
status: string | null;
|
|
84
182
|
summary: string;
|
|
85
183
|
runId: string | null;
|
|
86
184
|
runDir: string | null;
|
|
185
|
+
council: {
|
|
186
|
+
requested: number;
|
|
187
|
+
degraded: boolean;
|
|
188
|
+
drafted: number;
|
|
189
|
+
mergedBy: string | null;
|
|
190
|
+
members: {
|
|
191
|
+
status: "failed" | "drafted" | "merged";
|
|
192
|
+
harnessId: string;
|
|
193
|
+
error: string | null;
|
|
194
|
+
role: "primary" | "member";
|
|
195
|
+
}[];
|
|
196
|
+
} | null;
|
|
87
197
|
outcomeFacts: {
|
|
88
198
|
review: "not_run" | "approved" | "blocked";
|
|
89
|
-
reason: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | null;
|
|
199
|
+
reason: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null;
|
|
90
200
|
checks: "passed" | "failed" | "not_configured";
|
|
91
201
|
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
92
202
|
noChanges: boolean;
|
|
203
|
+
work_state?: {
|
|
204
|
+
source: "constrained" | "validated" | "absent";
|
|
205
|
+
state: "completed" | "needs_input" | "incomplete" | "unverified";
|
|
206
|
+
required_inputs?: {
|
|
207
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
208
|
+
description: string;
|
|
209
|
+
locator: string | null;
|
|
210
|
+
}[] | undefined;
|
|
211
|
+
} | undefined;
|
|
93
212
|
} | null;
|
|
94
213
|
applyEligibility: {
|
|
95
214
|
state: string | null;
|
|
@@ -99,7 +218,7 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
99
218
|
} | null;
|
|
100
219
|
outcomeBanner: string | null;
|
|
101
220
|
planReadiness: {
|
|
102
|
-
state: "ready" | "
|
|
221
|
+
state: "ready" | "unverified" | "needs_answers";
|
|
103
222
|
questionCount: number;
|
|
104
223
|
} | null;
|
|
105
224
|
}, {
|
|
@@ -113,16 +232,37 @@ export declare const McpRunToolResult: z.ZodObject<{
|
|
|
113
232
|
eligible: boolean;
|
|
114
233
|
requiredAction: string | null;
|
|
115
234
|
} | null;
|
|
235
|
+
council?: {
|
|
236
|
+
requested: number;
|
|
237
|
+
drafted: number;
|
|
238
|
+
degraded?: boolean | undefined;
|
|
239
|
+
mergedBy?: string | null | undefined;
|
|
240
|
+
members?: {
|
|
241
|
+
status: "failed" | "drafted" | "merged";
|
|
242
|
+
harnessId: string;
|
|
243
|
+
role: "primary" | "member";
|
|
244
|
+
error?: string | null | undefined;
|
|
245
|
+
}[] | undefined;
|
|
246
|
+
} | null | undefined;
|
|
116
247
|
outcomeFacts?: {
|
|
117
248
|
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
118
249
|
review?: "not_run" | "approved" | "blocked" | undefined;
|
|
119
|
-
reason?: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | null | undefined;
|
|
250
|
+
reason?: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null | undefined;
|
|
120
251
|
checks?: "passed" | "failed" | "not_configured" | undefined;
|
|
121
252
|
noChanges?: boolean | undefined;
|
|
253
|
+
work_state?: {
|
|
254
|
+
source: "constrained" | "validated" | "absent";
|
|
255
|
+
state: "completed" | "needs_input" | "incomplete" | "unverified";
|
|
256
|
+
required_inputs?: {
|
|
257
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
258
|
+
description: string;
|
|
259
|
+
locator?: string | null | undefined;
|
|
260
|
+
}[] | undefined;
|
|
261
|
+
} | undefined;
|
|
122
262
|
} | null | undefined;
|
|
123
263
|
outcomeBanner?: string | null | undefined;
|
|
124
264
|
planReadiness?: {
|
|
125
|
-
state: "ready" | "
|
|
265
|
+
state: "ready" | "unverified" | "needs_answers";
|
|
126
266
|
questionCount?: number | undefined;
|
|
127
267
|
} | null | undefined;
|
|
128
268
|
}>;
|
|
@@ -146,19 +286,70 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
146
286
|
noChanges: z.ZodDefault<z.ZodBoolean>;
|
|
147
287
|
checks: z.ZodDefault<z.ZodEnum<["passed", "failed", "not_configured"]>>;
|
|
148
288
|
review: z.ZodDefault<z.ZodEnum<["approved", "blocked", "not_run"]>>;
|
|
149
|
-
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "crash_interrupted"]>>>;
|
|
289
|
+
reason: z.ZodDefault<z.ZodNullable<z.ZodEnum<["harness_failed", "no_changes", "review_blocked", "checks_failed", "budget_exhausted", "budget_overshoot", "cost_unverifiable", "not_converged", "stuck_no_progress", "wall_clock_exceeded", "user_cancelled", "crash_interrupted", "input_required", "work_incomplete", "context_capacity_exhausted", "work_report_contract"]>>>;
|
|
290
|
+
work_state: z.ZodOptional<z.ZodObject<{
|
|
291
|
+
state: z.ZodEnum<["completed", "needs_input", "incomplete", "unverified"]>;
|
|
292
|
+
source: z.ZodEnum<["constrained", "validated", "absent"]>;
|
|
293
|
+
required_inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
294
|
+
kind: z.ZodEnum<["file", "context", "credential", "permission", "decision", "external_dependency"]>;
|
|
295
|
+
locator: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
296
|
+
description: z.ZodString;
|
|
297
|
+
}, "strip", z.ZodTypeAny, {
|
|
298
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
299
|
+
description: string;
|
|
300
|
+
locator: string | null;
|
|
301
|
+
}, {
|
|
302
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
303
|
+
description: string;
|
|
304
|
+
locator?: string | null | undefined;
|
|
305
|
+
}>, "many">>;
|
|
306
|
+
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
source: "constrained" | "validated" | "absent";
|
|
308
|
+
state: "completed" | "needs_input" | "incomplete" | "unverified";
|
|
309
|
+
required_inputs?: {
|
|
310
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
311
|
+
description: string;
|
|
312
|
+
locator: string | null;
|
|
313
|
+
}[] | undefined;
|
|
314
|
+
}, {
|
|
315
|
+
source: "constrained" | "validated" | "absent";
|
|
316
|
+
state: "completed" | "needs_input" | "incomplete" | "unverified";
|
|
317
|
+
required_inputs?: {
|
|
318
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
319
|
+
description: string;
|
|
320
|
+
locator?: string | null | undefined;
|
|
321
|
+
}[] | undefined;
|
|
322
|
+
}>>;
|
|
150
323
|
}, "strict", z.ZodTypeAny, {
|
|
151
324
|
review: "not_run" | "approved" | "blocked";
|
|
152
|
-
reason: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | null;
|
|
325
|
+
reason: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null;
|
|
153
326
|
checks: "passed" | "failed" | "not_configured";
|
|
154
327
|
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
155
328
|
noChanges: boolean;
|
|
329
|
+
work_state?: {
|
|
330
|
+
source: "constrained" | "validated" | "absent";
|
|
331
|
+
state: "completed" | "needs_input" | "incomplete" | "unverified";
|
|
332
|
+
required_inputs?: {
|
|
333
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
334
|
+
description: string;
|
|
335
|
+
locator: string | null;
|
|
336
|
+
}[] | undefined;
|
|
337
|
+
} | undefined;
|
|
156
338
|
}, {
|
|
157
339
|
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
158
340
|
review?: "not_run" | "approved" | "blocked" | undefined;
|
|
159
|
-
reason?: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | null | undefined;
|
|
341
|
+
reason?: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null | undefined;
|
|
160
342
|
checks?: "passed" | "failed" | "not_configured" | undefined;
|
|
161
343
|
noChanges?: boolean | undefined;
|
|
344
|
+
work_state?: {
|
|
345
|
+
source: "constrained" | "validated" | "absent";
|
|
346
|
+
state: "completed" | "needs_input" | "incomplete" | "unverified";
|
|
347
|
+
required_inputs?: {
|
|
348
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
349
|
+
description: string;
|
|
350
|
+
locator?: string | null | undefined;
|
|
351
|
+
}[] | undefined;
|
|
352
|
+
} | undefined;
|
|
162
353
|
}>>>;
|
|
163
354
|
outcomeBanner: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
164
355
|
applyEligibility: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
@@ -181,23 +372,162 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
181
372
|
state: z.ZodEnum<["ready", "needs_answers", "unverified"]>;
|
|
182
373
|
questionCount: z.ZodDefault<z.ZodNumber>;
|
|
183
374
|
}, "strict", z.ZodTypeAny, {
|
|
184
|
-
state: "ready" | "
|
|
375
|
+
state: "ready" | "unverified" | "needs_answers";
|
|
185
376
|
questionCount: number;
|
|
186
377
|
}, {
|
|
187
|
-
state: "ready" | "
|
|
378
|
+
state: "ready" | "unverified" | "needs_answers";
|
|
188
379
|
questionCount?: number | undefined;
|
|
189
380
|
}>>>;
|
|
381
|
+
/** Council membership + merge disclosure (QA-023b), projected from the same
|
|
382
|
+
* GET /runs/:id detail every read surface shares; null for solo/non-plan runs. */
|
|
383
|
+
council: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
384
|
+
requested: z.ZodNumber;
|
|
385
|
+
drafted: z.ZodNumber;
|
|
386
|
+
degraded: z.ZodDefault<z.ZodBoolean>;
|
|
387
|
+
mergedBy: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
388
|
+
members: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
389
|
+
harnessId: z.ZodString;
|
|
390
|
+
role: z.ZodEnum<["primary", "member"]>;
|
|
391
|
+
status: z.ZodEnum<["drafted", "failed", "merged"]>;
|
|
392
|
+
error: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
393
|
+
}, "strict", z.ZodTypeAny, {
|
|
394
|
+
status: "failed" | "drafted" | "merged";
|
|
395
|
+
harnessId: string;
|
|
396
|
+
error: string | null;
|
|
397
|
+
role: "primary" | "member";
|
|
398
|
+
}, {
|
|
399
|
+
status: "failed" | "drafted" | "merged";
|
|
400
|
+
harnessId: string;
|
|
401
|
+
role: "primary" | "member";
|
|
402
|
+
error?: string | null | undefined;
|
|
403
|
+
}>, "many">>;
|
|
404
|
+
}, "strict", z.ZodTypeAny, {
|
|
405
|
+
requested: number;
|
|
406
|
+
degraded: boolean;
|
|
407
|
+
drafted: number;
|
|
408
|
+
mergedBy: string | null;
|
|
409
|
+
members: {
|
|
410
|
+
status: "failed" | "drafted" | "merged";
|
|
411
|
+
harnessId: string;
|
|
412
|
+
error: string | null;
|
|
413
|
+
role: "primary" | "member";
|
|
414
|
+
}[];
|
|
415
|
+
}, {
|
|
416
|
+
requested: number;
|
|
417
|
+
drafted: number;
|
|
418
|
+
degraded?: boolean | undefined;
|
|
419
|
+
mergedBy?: string | null | undefined;
|
|
420
|
+
members?: {
|
|
421
|
+
status: "failed" | "drafted" | "merged";
|
|
422
|
+
harnessId: string;
|
|
423
|
+
role: "primary" | "member";
|
|
424
|
+
error?: string | null | undefined;
|
|
425
|
+
}[] | undefined;
|
|
426
|
+
}>>>;
|
|
427
|
+
/** Run budget snapshot (QA-023c) carrying BOTH exact billed cash and the
|
|
428
|
+
* separate subscription valuation, so an MCP host learns a native-subscription
|
|
429
|
+
* run's real resource cost (cash $0 + non-null valuation) without reading
|
|
430
|
+
* local artifacts; null when no budget snapshot is available. */
|
|
431
|
+
budget: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
432
|
+
paidBudget: z.ZodDefault<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
433
|
+
kind: z.ZodLiteral<"unlimited">;
|
|
434
|
+
}, "strict", z.ZodTypeAny, {
|
|
435
|
+
kind: "unlimited";
|
|
436
|
+
}, {
|
|
437
|
+
kind: "unlimited";
|
|
438
|
+
}>, z.ZodObject<{
|
|
439
|
+
kind: z.ZodLiteral<"finite">;
|
|
440
|
+
maxUsd: z.ZodNumber;
|
|
441
|
+
}, "strict", z.ZodTypeAny, {
|
|
442
|
+
kind: "finite";
|
|
443
|
+
maxUsd: number;
|
|
444
|
+
}, {
|
|
445
|
+
kind: "finite";
|
|
446
|
+
maxUsd: number;
|
|
447
|
+
}>]>>;
|
|
448
|
+
spendUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
449
|
+
valuationUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
450
|
+
valuationKnowledge: z.ZodDefault<z.ZodEnum<["exact", "estimated", "unknown"]>>;
|
|
451
|
+
remainingUsd: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
452
|
+
estimated: z.ZodDefault<z.ZodBoolean>;
|
|
453
|
+
source: z.ZodDefault<z.ZodEnum<["decision", "events", "settings", "unknown"]>>;
|
|
454
|
+
evidence: z.ZodDefault<z.ZodEnum<["complete", "incomplete", "unavailable"]>>;
|
|
455
|
+
}, "strip", z.ZodTypeAny, {
|
|
456
|
+
source: "unknown" | "decision" | "events" | "settings";
|
|
457
|
+
estimated: boolean;
|
|
458
|
+
paidBudget: {
|
|
459
|
+
kind: "unlimited";
|
|
460
|
+
} | {
|
|
461
|
+
kind: "finite";
|
|
462
|
+
maxUsd: number;
|
|
463
|
+
};
|
|
464
|
+
spendUsd: number | null;
|
|
465
|
+
valuationUsd: number | null;
|
|
466
|
+
valuationKnowledge: "exact" | "unknown" | "estimated";
|
|
467
|
+
remainingUsd: number | null;
|
|
468
|
+
evidence: "unavailable" | "incomplete" | "complete";
|
|
469
|
+
}, {
|
|
470
|
+
source?: "unknown" | "decision" | "events" | "settings" | undefined;
|
|
471
|
+
estimated?: boolean | undefined;
|
|
472
|
+
paidBudget?: {
|
|
473
|
+
kind: "unlimited";
|
|
474
|
+
} | {
|
|
475
|
+
kind: "finite";
|
|
476
|
+
maxUsd: number;
|
|
477
|
+
} | undefined;
|
|
478
|
+
spendUsd?: number | null | undefined;
|
|
479
|
+
valuationUsd?: number | null | undefined;
|
|
480
|
+
valuationKnowledge?: "exact" | "unknown" | "estimated" | undefined;
|
|
481
|
+
remainingUsd?: number | null | undefined;
|
|
482
|
+
evidence?: "unavailable" | "incomplete" | "complete" | undefined;
|
|
483
|
+
}>>>;
|
|
190
484
|
}, "strict", z.ZodTypeAny, {
|
|
191
485
|
status: string | null;
|
|
192
486
|
summary: string;
|
|
487
|
+
budget: {
|
|
488
|
+
source: "unknown" | "decision" | "events" | "settings";
|
|
489
|
+
estimated: boolean;
|
|
490
|
+
paidBudget: {
|
|
491
|
+
kind: "unlimited";
|
|
492
|
+
} | {
|
|
493
|
+
kind: "finite";
|
|
494
|
+
maxUsd: number;
|
|
495
|
+
};
|
|
496
|
+
spendUsd: number | null;
|
|
497
|
+
valuationUsd: number | null;
|
|
498
|
+
valuationKnowledge: "exact" | "unknown" | "estimated";
|
|
499
|
+
remainingUsd: number | null;
|
|
500
|
+
evidence: "unavailable" | "incomplete" | "complete";
|
|
501
|
+
} | null;
|
|
193
502
|
runId: string | null;
|
|
194
503
|
runDir: string | null;
|
|
504
|
+
council: {
|
|
505
|
+
requested: number;
|
|
506
|
+
degraded: boolean;
|
|
507
|
+
drafted: number;
|
|
508
|
+
mergedBy: string | null;
|
|
509
|
+
members: {
|
|
510
|
+
status: "failed" | "drafted" | "merged";
|
|
511
|
+
harnessId: string;
|
|
512
|
+
error: string | null;
|
|
513
|
+
role: "primary" | "member";
|
|
514
|
+
}[];
|
|
515
|
+
} | null;
|
|
195
516
|
outcomeFacts: {
|
|
196
517
|
review: "not_run" | "approved" | "blocked";
|
|
197
|
-
reason: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | null;
|
|
518
|
+
reason: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null;
|
|
198
519
|
checks: "passed" | "failed" | "not_configured";
|
|
199
520
|
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
200
521
|
noChanges: boolean;
|
|
522
|
+
work_state?: {
|
|
523
|
+
source: "constrained" | "validated" | "absent";
|
|
524
|
+
state: "completed" | "needs_input" | "incomplete" | "unverified";
|
|
525
|
+
required_inputs?: {
|
|
526
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
527
|
+
description: string;
|
|
528
|
+
locator: string | null;
|
|
529
|
+
}[] | undefined;
|
|
530
|
+
} | undefined;
|
|
201
531
|
} | null;
|
|
202
532
|
applyEligibility: {
|
|
203
533
|
state: string | null;
|
|
@@ -207,7 +537,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
207
537
|
} | null;
|
|
208
538
|
outcomeBanner: string | null;
|
|
209
539
|
planReadiness: {
|
|
210
|
-
state: "ready" | "
|
|
540
|
+
state: "ready" | "unverified" | "needs_answers";
|
|
211
541
|
questionCount: number;
|
|
212
542
|
} | null;
|
|
213
543
|
decisionStatus: string | null;
|
|
@@ -215,14 +545,50 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
215
545
|
}, {
|
|
216
546
|
summary: string;
|
|
217
547
|
status?: string | null | undefined;
|
|
548
|
+
budget?: {
|
|
549
|
+
source?: "unknown" | "decision" | "events" | "settings" | undefined;
|
|
550
|
+
estimated?: boolean | undefined;
|
|
551
|
+
paidBudget?: {
|
|
552
|
+
kind: "unlimited";
|
|
553
|
+
} | {
|
|
554
|
+
kind: "finite";
|
|
555
|
+
maxUsd: number;
|
|
556
|
+
} | undefined;
|
|
557
|
+
spendUsd?: number | null | undefined;
|
|
558
|
+
valuationUsd?: number | null | undefined;
|
|
559
|
+
valuationKnowledge?: "exact" | "unknown" | "estimated" | undefined;
|
|
560
|
+
remainingUsd?: number | null | undefined;
|
|
561
|
+
evidence?: "unavailable" | "incomplete" | "complete" | undefined;
|
|
562
|
+
} | null | undefined;
|
|
218
563
|
runId?: string | null | undefined;
|
|
219
564
|
runDir?: string | null | undefined;
|
|
565
|
+
council?: {
|
|
566
|
+
requested: number;
|
|
567
|
+
drafted: number;
|
|
568
|
+
degraded?: boolean | undefined;
|
|
569
|
+
mergedBy?: string | null | undefined;
|
|
570
|
+
members?: {
|
|
571
|
+
status: "failed" | "drafted" | "merged";
|
|
572
|
+
harnessId: string;
|
|
573
|
+
role: "primary" | "member";
|
|
574
|
+
error?: string | null | undefined;
|
|
575
|
+
}[] | undefined;
|
|
576
|
+
} | null | undefined;
|
|
220
577
|
outcomeFacts?: {
|
|
221
578
|
lifecycle: "failed" | "cancelled" | "succeeded" | "interrupted";
|
|
222
579
|
review?: "not_run" | "approved" | "blocked" | undefined;
|
|
223
|
-
reason?: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | null | undefined;
|
|
580
|
+
reason?: "harness_failed" | "no_changes" | "review_blocked" | "checks_failed" | "budget_exhausted" | "budget_overshoot" | "cost_unverifiable" | "not_converged" | "stuck_no_progress" | "wall_clock_exceeded" | "user_cancelled" | "crash_interrupted" | "input_required" | "work_incomplete" | "context_capacity_exhausted" | "work_report_contract" | null | undefined;
|
|
224
581
|
checks?: "passed" | "failed" | "not_configured" | undefined;
|
|
225
582
|
noChanges?: boolean | undefined;
|
|
583
|
+
work_state?: {
|
|
584
|
+
source: "constrained" | "validated" | "absent";
|
|
585
|
+
state: "completed" | "needs_input" | "incomplete" | "unverified";
|
|
586
|
+
required_inputs?: {
|
|
587
|
+
kind: "file" | "context" | "decision" | "credential" | "permission" | "external_dependency";
|
|
588
|
+
description: string;
|
|
589
|
+
locator?: string | null | undefined;
|
|
590
|
+
}[] | undefined;
|
|
591
|
+
} | undefined;
|
|
226
592
|
} | null | undefined;
|
|
227
593
|
applyEligibility?: {
|
|
228
594
|
state: string | null;
|
|
@@ -232,7 +598,7 @@ export declare const McpRunHandleResult: z.ZodObject<{
|
|
|
232
598
|
} | null | undefined;
|
|
233
599
|
outcomeBanner?: string | null | undefined;
|
|
234
600
|
planReadiness?: {
|
|
235
|
-
state: "ready" | "
|
|
601
|
+
state: "ready" | "unverified" | "needs_answers";
|
|
236
602
|
questionCount?: number | undefined;
|
|
237
603
|
} | null | undefined;
|
|
238
604
|
decisionStatus?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-eligibility.d.ts","sourceRoot":"","sources":["../src/apply-eligibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"apply-eligibility.d.ts","sourceRoot":"","sources":["../src/apply-eligibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAwB1B,CAAC;AACJ,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqCzB;;qFAEiF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOnB,CAAC;AACnE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsC3B;sFACkF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIlF;;;qEAGiE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ6B,CAAC;AACnG,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { RunOutcomeFacts } from "./decision.js";
|
|
3
|
-
import { PlanReadiness } from "./plan.js";
|
|
3
|
+
import { PlanReadiness, CouncilProjection } from "./plan.js";
|
|
4
|
+
import { ControlBudgetSnapshot } from "./control.js";
|
|
4
5
|
/**
|
|
5
6
|
* ApplyEligibility — the derived "can this run's WorkProduct be applied RIGHT
|
|
6
7
|
* NOW, and if not, what unblocks it" verdict. ONE producer (the delivery
|
|
@@ -61,6 +62,12 @@ export const McpRunToolResult = z
|
|
|
61
62
|
planReadiness: PlanReadiness.nullable()
|
|
62
63
|
.default(null)
|
|
63
64
|
.describe("Derived plan readiness for plan tools (D17); null for non-plan tools."),
|
|
65
|
+
/** Council membership + merge disclosure (QA-023b) so an MCP host can
|
|
66
|
+
* machine-verify a `--council` plan was really N/N and who merged, without
|
|
67
|
+
* reading local artifacts; null for solo/non-plan tools and deferred handles. */
|
|
68
|
+
council: CouncilProjection.nullable()
|
|
69
|
+
.default(null)
|
|
70
|
+
.describe("Council membership + merge disclosure (QA-023b); null for solo/non-plan tools or deferred handles."),
|
|
64
71
|
})
|
|
65
72
|
.describe("Structured MCP tool result for Claudexor run tools.");
|
|
66
73
|
/**
|
|
@@ -108,6 +115,18 @@ export const McpRunHandleResult = z
|
|
|
108
115
|
planReadiness: PlanReadiness.nullable()
|
|
109
116
|
.default(null)
|
|
110
117
|
.describe("Derived plan readiness (plan runs only, D17); null otherwise."),
|
|
118
|
+
/** Council membership + merge disclosure (QA-023b), projected from the same
|
|
119
|
+
* GET /runs/:id detail every read surface shares; null for solo/non-plan runs. */
|
|
120
|
+
council: CouncilProjection.nullable()
|
|
121
|
+
.default(null)
|
|
122
|
+
.describe("Council membership + merge disclosure (QA-023b); null for solo/non-plan runs."),
|
|
123
|
+
/** Run budget snapshot (QA-023c) carrying BOTH exact billed cash and the
|
|
124
|
+
* separate subscription valuation, so an MCP host learns a native-subscription
|
|
125
|
+
* run's real resource cost (cash $0 + non-null valuation) without reading
|
|
126
|
+
* local artifacts; null when no budget snapshot is available. */
|
|
127
|
+
budget: ControlBudgetSnapshot.nullable()
|
|
128
|
+
.default(null)
|
|
129
|
+
.describe("Run budget snapshot (cash + subscription valuation, QA-023c); null when unavailable."),
|
|
111
130
|
})
|
|
112
131
|
.strict()
|
|
113
132
|
.describe("Structured MCP result for Claudexor durable-run read tools (inspect/status/result).");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-eligibility.js","sourceRoot":"","sources":["../src/apply-eligibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"apply-eligibility.js","sourceRoot":"","sources":["../src/apply-eligibility.ts"],"names":[],"mappings":"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"}
|