windows-exe-decompiler-mcp-server 0.1.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.
Files changed (190) hide show
  1. package/CODEX_INSTALLATION.md +69 -0
  2. package/COPILOT_INSTALLATION.md +77 -0
  3. package/LICENSE +21 -0
  4. package/README.md +314 -0
  5. package/bin/windows-exe-decompiler-mcp-server.js +3 -0
  6. package/dist/analysis-provenance.d.ts +184 -0
  7. package/dist/analysis-provenance.js +74 -0
  8. package/dist/analysis-task-runner.d.ts +31 -0
  9. package/dist/analysis-task-runner.js +160 -0
  10. package/dist/artifact-inventory.d.ts +23 -0
  11. package/dist/artifact-inventory.js +175 -0
  12. package/dist/cache-manager.d.ts +128 -0
  13. package/dist/cache-manager.js +454 -0
  14. package/dist/confidence-semantics.d.ts +66 -0
  15. package/dist/confidence-semantics.js +122 -0
  16. package/dist/config.d.ts +335 -0
  17. package/dist/config.js +193 -0
  18. package/dist/database.d.ts +227 -0
  19. package/dist/database.js +601 -0
  20. package/dist/decompiler-worker.d.ts +441 -0
  21. package/dist/decompiler-worker.js +1962 -0
  22. package/dist/dynamic-trace.d.ts +95 -0
  23. package/dist/dynamic-trace.js +629 -0
  24. package/dist/env-validator.d.ts +15 -0
  25. package/dist/env-validator.js +249 -0
  26. package/dist/error-handler.d.ts +28 -0
  27. package/dist/error-handler.example.d.ts +22 -0
  28. package/dist/error-handler.example.js +141 -0
  29. package/dist/error-handler.js +139 -0
  30. package/dist/ghidra-analysis-status.d.ts +49 -0
  31. package/dist/ghidra-analysis-status.js +178 -0
  32. package/dist/ghidra-config.d.ts +134 -0
  33. package/dist/ghidra-config.js +464 -0
  34. package/dist/index.d.ts +9 -0
  35. package/dist/index.js +200 -0
  36. package/dist/job-queue.d.ts +169 -0
  37. package/dist/job-queue.js +407 -0
  38. package/dist/logger.d.ts +106 -0
  39. package/dist/logger.js +176 -0
  40. package/dist/policy-guard.d.ts +115 -0
  41. package/dist/policy-guard.js +243 -0
  42. package/dist/process-output.d.ts +15 -0
  43. package/dist/process-output.js +90 -0
  44. package/dist/prompts/function-explanation-review.d.ts +5 -0
  45. package/dist/prompts/function-explanation-review.js +64 -0
  46. package/dist/prompts/semantic-name-review.d.ts +5 -0
  47. package/dist/prompts/semantic-name-review.js +63 -0
  48. package/dist/runtime-correlation.d.ts +34 -0
  49. package/dist/runtime-correlation.js +279 -0
  50. package/dist/runtime-paths.d.ts +3 -0
  51. package/dist/runtime-paths.js +11 -0
  52. package/dist/selection-diff.d.ts +667 -0
  53. package/dist/selection-diff.js +53 -0
  54. package/dist/semantic-name-suggestion-artifacts.d.ts +116 -0
  55. package/dist/semantic-name-suggestion-artifacts.js +314 -0
  56. package/dist/server.d.ts +129 -0
  57. package/dist/server.js +578 -0
  58. package/dist/tools/artifact-read.d.ts +235 -0
  59. package/dist/tools/artifact-read.js +317 -0
  60. package/dist/tools/artifacts-diff.d.ts +728 -0
  61. package/dist/tools/artifacts-diff.js +304 -0
  62. package/dist/tools/artifacts-list.d.ts +515 -0
  63. package/dist/tools/artifacts-list.js +389 -0
  64. package/dist/tools/attack-map.d.ts +290 -0
  65. package/dist/tools/attack-map.js +519 -0
  66. package/dist/tools/cache-observability.d.ts +4 -0
  67. package/dist/tools/cache-observability.js +36 -0
  68. package/dist/tools/code-function-cfg.d.ts +50 -0
  69. package/dist/tools/code-function-cfg.js +102 -0
  70. package/dist/tools/code-function-decompile.d.ts +55 -0
  71. package/dist/tools/code-function-decompile.js +103 -0
  72. package/dist/tools/code-function-disassemble.d.ts +43 -0
  73. package/dist/tools/code-function-disassemble.js +185 -0
  74. package/dist/tools/code-function-explain-apply.d.ts +255 -0
  75. package/dist/tools/code-function-explain-apply.js +225 -0
  76. package/dist/tools/code-function-explain-prepare.d.ts +535 -0
  77. package/dist/tools/code-function-explain-prepare.js +276 -0
  78. package/dist/tools/code-function-explain-review.d.ts +397 -0
  79. package/dist/tools/code-function-explain-review.js +589 -0
  80. package/dist/tools/code-function-rename-apply.d.ts +248 -0
  81. package/dist/tools/code-function-rename-apply.js +220 -0
  82. package/dist/tools/code-function-rename-prepare.d.ts +506 -0
  83. package/dist/tools/code-function-rename-prepare.js +279 -0
  84. package/dist/tools/code-function-rename-review.d.ts +574 -0
  85. package/dist/tools/code-function-rename-review.js +761 -0
  86. package/dist/tools/code-functions-list.d.ts +37 -0
  87. package/dist/tools/code-functions-list.js +91 -0
  88. package/dist/tools/code-functions-rank.d.ts +34 -0
  89. package/dist/tools/code-functions-rank.js +90 -0
  90. package/dist/tools/code-functions-reconstruct.d.ts +2725 -0
  91. package/dist/tools/code-functions-reconstruct.js +2807 -0
  92. package/dist/tools/code-functions-search.d.ts +39 -0
  93. package/dist/tools/code-functions-search.js +90 -0
  94. package/dist/tools/code-reconstruct-export.d.ts +1212 -0
  95. package/dist/tools/code-reconstruct-export.js +4002 -0
  96. package/dist/tools/code-reconstruct-plan.d.ts +274 -0
  97. package/dist/tools/code-reconstruct-plan.js +342 -0
  98. package/dist/tools/dotnet-metadata-extract.d.ts +541 -0
  99. package/dist/tools/dotnet-metadata-extract.js +355 -0
  100. package/dist/tools/dotnet-reconstruct-export.d.ts +567 -0
  101. package/dist/tools/dotnet-reconstruct-export.js +1151 -0
  102. package/dist/tools/dotnet-types-list.d.ts +325 -0
  103. package/dist/tools/dotnet-types-list.js +201 -0
  104. package/dist/tools/dynamic-dependencies.d.ts +115 -0
  105. package/dist/tools/dynamic-dependencies.js +213 -0
  106. package/dist/tools/dynamic-memory-import.d.ts +10 -0
  107. package/dist/tools/dynamic-memory-import.js +567 -0
  108. package/dist/tools/dynamic-trace-import.d.ts +10 -0
  109. package/dist/tools/dynamic-trace-import.js +235 -0
  110. package/dist/tools/entrypoint-fallback-disasm.d.ts +30 -0
  111. package/dist/tools/entrypoint-fallback-disasm.js +89 -0
  112. package/dist/tools/ghidra-analyze.d.ts +88 -0
  113. package/dist/tools/ghidra-analyze.js +208 -0
  114. package/dist/tools/ghidra-health.d.ts +37 -0
  115. package/dist/tools/ghidra-health.js +212 -0
  116. package/dist/tools/ioc-export.d.ts +209 -0
  117. package/dist/tools/ioc-export.js +542 -0
  118. package/dist/tools/packer-detect.d.ts +165 -0
  119. package/dist/tools/packer-detect.js +284 -0
  120. package/dist/tools/pe-exports-extract.d.ts +175 -0
  121. package/dist/tools/pe-exports-extract.js +253 -0
  122. package/dist/tools/pe-fingerprint.d.ts +234 -0
  123. package/dist/tools/pe-fingerprint.js +269 -0
  124. package/dist/tools/pe-imports-extract.d.ts +105 -0
  125. package/dist/tools/pe-imports-extract.js +245 -0
  126. package/dist/tools/report-generate.d.ts +157 -0
  127. package/dist/tools/report-generate.js +457 -0
  128. package/dist/tools/report-summarize.d.ts +2131 -0
  129. package/dist/tools/report-summarize.js +596 -0
  130. package/dist/tools/runtime-detect.d.ts +135 -0
  131. package/dist/tools/runtime-detect.js +247 -0
  132. package/dist/tools/sample-ingest.d.ts +94 -0
  133. package/dist/tools/sample-ingest.js +327 -0
  134. package/dist/tools/sample-profile-get.d.ts +183 -0
  135. package/dist/tools/sample-profile-get.js +121 -0
  136. package/dist/tools/sandbox-execute.d.ts +441 -0
  137. package/dist/tools/sandbox-execute.js +392 -0
  138. package/dist/tools/strings-extract.d.ts +375 -0
  139. package/dist/tools/strings-extract.js +314 -0
  140. package/dist/tools/strings-floss-decode.d.ts +143 -0
  141. package/dist/tools/strings-floss-decode.js +259 -0
  142. package/dist/tools/system-health.d.ts +434 -0
  143. package/dist/tools/system-health.js +446 -0
  144. package/dist/tools/task-cancel.d.ts +21 -0
  145. package/dist/tools/task-cancel.js +70 -0
  146. package/dist/tools/task-status.d.ts +27 -0
  147. package/dist/tools/task-status.js +106 -0
  148. package/dist/tools/task-sweep.d.ts +22 -0
  149. package/dist/tools/task-sweep.js +77 -0
  150. package/dist/tools/tool-help.d.ts +340 -0
  151. package/dist/tools/tool-help.js +261 -0
  152. package/dist/tools/yara-scan.d.ts +554 -0
  153. package/dist/tools/yara-scan.js +313 -0
  154. package/dist/types.d.ts +266 -0
  155. package/dist/types.js +41 -0
  156. package/dist/worker-pool.d.ts +204 -0
  157. package/dist/worker-pool.js +650 -0
  158. package/dist/workflows/deep-static.d.ts +104 -0
  159. package/dist/workflows/deep-static.js +276 -0
  160. package/dist/workflows/function-explanation-review.d.ts +655 -0
  161. package/dist/workflows/function-explanation-review.js +440 -0
  162. package/dist/workflows/reconstruct.d.ts +2053 -0
  163. package/dist/workflows/reconstruct.js +666 -0
  164. package/dist/workflows/semantic-name-review.d.ts +2418 -0
  165. package/dist/workflows/semantic-name-review.js +521 -0
  166. package/dist/workflows/triage.d.ts +659 -0
  167. package/dist/workflows/triage.js +1374 -0
  168. package/dist/workspace-manager.d.ts +150 -0
  169. package/dist/workspace-manager.js +411 -0
  170. package/ghidra_scripts/DecompileFunction.java +487 -0
  171. package/ghidra_scripts/DecompileFunction.py +150 -0
  172. package/ghidra_scripts/ExtractCFG.java +256 -0
  173. package/ghidra_scripts/ExtractCFG.py +233 -0
  174. package/ghidra_scripts/ExtractFunctions.java +442 -0
  175. package/ghidra_scripts/ExtractFunctions.py +101 -0
  176. package/ghidra_scripts/README.md +125 -0
  177. package/ghidra_scripts/SearchFunctionReferences.java +380 -0
  178. package/helpers/DotNetMetadataProbe/DotNetMetadataProbe.csproj +9 -0
  179. package/helpers/DotNetMetadataProbe/Program.cs +566 -0
  180. package/install-to-codex.ps1 +178 -0
  181. package/install-to-copilot.ps1 +303 -0
  182. package/package.json +101 -0
  183. package/requirements.txt +9 -0
  184. package/workers/requirements-dynamic.txt +11 -0
  185. package/workers/requirements.txt +8 -0
  186. package/workers/speakeasy_compat.py +175 -0
  187. package/workers/static_worker.py +5183 -0
  188. package/workers/yara_rules/default.yar +33 -0
  189. package/workers/yara_rules/malware_families.yar +93 -0
  190. package/workers/yara_rules/packers.yar +80 -0
@@ -0,0 +1,2418 @@
1
+ /**
2
+ * workflow.semantic_name_review
3
+ * High-level orchestration for semantic naming review plus optional reconstruct export refresh.
4
+ */
5
+ import { z } from 'zod';
6
+ import type { ToolArgs, ToolDefinition, WorkerResult } from '../types.js';
7
+ import type { WorkspaceManager } from '../workspace-manager.js';
8
+ import type { DatabaseManager } from '../database.js';
9
+ import type { CacheManager } from '../cache-manager.js';
10
+ import type { MCPServer } from '../server.js';
11
+ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
12
+ sample_id: z.ZodString;
13
+ address: z.ZodOptional<z.ZodString>;
14
+ symbol: z.ZodOptional<z.ZodString>;
15
+ topk: z.ZodDefault<z.ZodNumber>;
16
+ max_functions: z.ZodDefault<z.ZodNumber>;
17
+ include_resolved: z.ZodDefault<z.ZodBoolean>;
18
+ auto_include_resolved_on_empty: z.ZodDefault<z.ZodBoolean>;
19
+ analysis_goal: z.ZodDefault<z.ZodString>;
20
+ session_tag: z.ZodOptional<z.ZodString>;
21
+ evidence_scope: z.ZodDefault<z.ZodEnum<["all", "latest", "session"]>>;
22
+ evidence_session_tag: z.ZodOptional<z.ZodString>;
23
+ semantic_scope: z.ZodDefault<z.ZodEnum<["all", "latest", "session"]>>;
24
+ semantic_session_tag: z.ZodOptional<z.ZodString>;
25
+ compare_evidence_scope: z.ZodOptional<z.ZodEnum<["all", "latest", "session"]>>;
26
+ compare_evidence_session_tag: z.ZodOptional<z.ZodString>;
27
+ compare_semantic_scope: z.ZodOptional<z.ZodEnum<["all", "latest", "session"]>>;
28
+ compare_semantic_session_tag: z.ZodOptional<z.ZodString>;
29
+ persist_artifact: z.ZodDefault<z.ZodBoolean>;
30
+ auto_apply: z.ZodDefault<z.ZodBoolean>;
31
+ rerun_reconstruct: z.ZodDefault<z.ZodBoolean>;
32
+ temperature: z.ZodDefault<z.ZodNumber>;
33
+ max_tokens: z.ZodDefault<z.ZodNumber>;
34
+ include_context: z.ZodDefault<z.ZodEnum<["none", "thisServer", "allServers"]>>;
35
+ model_hint: z.ZodOptional<z.ZodString>;
36
+ cost_priority: z.ZodDefault<z.ZodNumber>;
37
+ speed_priority: z.ZodDefault<z.ZodNumber>;
38
+ intelligence_priority: z.ZodDefault<z.ZodNumber>;
39
+ system_prompt: z.ZodOptional<z.ZodString>;
40
+ rerun_export: z.ZodDefault<z.ZodBoolean>;
41
+ export_path: z.ZodDefault<z.ZodEnum<["auto", "native", "dotnet"]>>;
42
+ export_topk: z.ZodDefault<z.ZodNumber>;
43
+ export_name: z.ZodOptional<z.ZodString>;
44
+ include_plan: z.ZodDefault<z.ZodBoolean>;
45
+ include_obfuscation_fallback: z.ZodDefault<z.ZodBoolean>;
46
+ fallback_on_error: z.ZodDefault<z.ZodBoolean>;
47
+ allow_partial: z.ZodDefault<z.ZodBoolean>;
48
+ validate_build: z.ZodDefault<z.ZodBoolean>;
49
+ run_harness: z.ZodDefault<z.ZodBoolean>;
50
+ compiler_path: z.ZodOptional<z.ZodString>;
51
+ build_timeout_ms: z.ZodDefault<z.ZodNumber>;
52
+ run_timeout_ms: z.ZodDefault<z.ZodNumber>;
53
+ reuse_cached: z.ZodDefault<z.ZodBoolean>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ sample_id: string;
56
+ evidence_scope: "all" | "latest" | "session";
57
+ temperature: number;
58
+ topk: number;
59
+ semantic_scope: "all" | "latest" | "session";
60
+ validate_build: boolean;
61
+ run_harness: boolean;
62
+ build_timeout_ms: number;
63
+ run_timeout_ms: number;
64
+ reuse_cached: boolean;
65
+ include_obfuscation_fallback: boolean;
66
+ include_plan: boolean;
67
+ fallback_on_error: boolean;
68
+ allow_partial: boolean;
69
+ analysis_goal: string;
70
+ include_resolved: boolean;
71
+ max_functions: number;
72
+ persist_artifact: boolean;
73
+ auto_include_resolved_on_empty: boolean;
74
+ auto_apply: boolean;
75
+ rerun_reconstruct: boolean;
76
+ max_tokens: number;
77
+ include_context: "none" | "thisServer" | "allServers";
78
+ cost_priority: number;
79
+ speed_priority: number;
80
+ intelligence_priority: number;
81
+ rerun_export: boolean;
82
+ export_path: "dotnet" | "native" | "auto";
83
+ export_topk: number;
84
+ symbol?: string | undefined;
85
+ address?: string | undefined;
86
+ session_tag?: string | undefined;
87
+ evidence_session_tag?: string | undefined;
88
+ semantic_session_tag?: string | undefined;
89
+ export_name?: string | undefined;
90
+ compiler_path?: string | undefined;
91
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
92
+ compare_evidence_session_tag?: string | undefined;
93
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
94
+ compare_semantic_session_tag?: string | undefined;
95
+ model_hint?: string | undefined;
96
+ system_prompt?: string | undefined;
97
+ }, {
98
+ sample_id: string;
99
+ symbol?: string | undefined;
100
+ address?: string | undefined;
101
+ session_tag?: string | undefined;
102
+ evidence_scope?: "all" | "latest" | "session" | undefined;
103
+ temperature?: number | undefined;
104
+ topk?: number | undefined;
105
+ evidence_session_tag?: string | undefined;
106
+ semantic_scope?: "all" | "latest" | "session" | undefined;
107
+ semantic_session_tag?: string | undefined;
108
+ export_name?: string | undefined;
109
+ validate_build?: boolean | undefined;
110
+ run_harness?: boolean | undefined;
111
+ compiler_path?: string | undefined;
112
+ build_timeout_ms?: number | undefined;
113
+ run_timeout_ms?: number | undefined;
114
+ reuse_cached?: boolean | undefined;
115
+ include_obfuscation_fallback?: boolean | undefined;
116
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
117
+ compare_evidence_session_tag?: string | undefined;
118
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
119
+ compare_semantic_session_tag?: string | undefined;
120
+ include_plan?: boolean | undefined;
121
+ fallback_on_error?: boolean | undefined;
122
+ allow_partial?: boolean | undefined;
123
+ analysis_goal?: string | undefined;
124
+ include_resolved?: boolean | undefined;
125
+ max_functions?: number | undefined;
126
+ persist_artifact?: boolean | undefined;
127
+ auto_include_resolved_on_empty?: boolean | undefined;
128
+ auto_apply?: boolean | undefined;
129
+ rerun_reconstruct?: boolean | undefined;
130
+ max_tokens?: number | undefined;
131
+ include_context?: "none" | "thisServer" | "allServers" | undefined;
132
+ model_hint?: string | undefined;
133
+ cost_priority?: number | undefined;
134
+ speed_priority?: number | undefined;
135
+ intelligence_priority?: number | undefined;
136
+ system_prompt?: string | undefined;
137
+ rerun_export?: boolean | undefined;
138
+ export_path?: "dotnet" | "native" | "auto" | undefined;
139
+ export_topk?: number | undefined;
140
+ }>, {
141
+ sample_id: string;
142
+ evidence_scope: "all" | "latest" | "session";
143
+ temperature: number;
144
+ topk: number;
145
+ semantic_scope: "all" | "latest" | "session";
146
+ validate_build: boolean;
147
+ run_harness: boolean;
148
+ build_timeout_ms: number;
149
+ run_timeout_ms: number;
150
+ reuse_cached: boolean;
151
+ include_obfuscation_fallback: boolean;
152
+ include_plan: boolean;
153
+ fallback_on_error: boolean;
154
+ allow_partial: boolean;
155
+ analysis_goal: string;
156
+ include_resolved: boolean;
157
+ max_functions: number;
158
+ persist_artifact: boolean;
159
+ auto_include_resolved_on_empty: boolean;
160
+ auto_apply: boolean;
161
+ rerun_reconstruct: boolean;
162
+ max_tokens: number;
163
+ include_context: "none" | "thisServer" | "allServers";
164
+ cost_priority: number;
165
+ speed_priority: number;
166
+ intelligence_priority: number;
167
+ rerun_export: boolean;
168
+ export_path: "dotnet" | "native" | "auto";
169
+ export_topk: number;
170
+ symbol?: string | undefined;
171
+ address?: string | undefined;
172
+ session_tag?: string | undefined;
173
+ evidence_session_tag?: string | undefined;
174
+ semantic_session_tag?: string | undefined;
175
+ export_name?: string | undefined;
176
+ compiler_path?: string | undefined;
177
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
178
+ compare_evidence_session_tag?: string | undefined;
179
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
180
+ compare_semantic_session_tag?: string | undefined;
181
+ model_hint?: string | undefined;
182
+ system_prompt?: string | undefined;
183
+ }, {
184
+ sample_id: string;
185
+ symbol?: string | undefined;
186
+ address?: string | undefined;
187
+ session_tag?: string | undefined;
188
+ evidence_scope?: "all" | "latest" | "session" | undefined;
189
+ temperature?: number | undefined;
190
+ topk?: number | undefined;
191
+ evidence_session_tag?: string | undefined;
192
+ semantic_scope?: "all" | "latest" | "session" | undefined;
193
+ semantic_session_tag?: string | undefined;
194
+ export_name?: string | undefined;
195
+ validate_build?: boolean | undefined;
196
+ run_harness?: boolean | undefined;
197
+ compiler_path?: string | undefined;
198
+ build_timeout_ms?: number | undefined;
199
+ run_timeout_ms?: number | undefined;
200
+ reuse_cached?: boolean | undefined;
201
+ include_obfuscation_fallback?: boolean | undefined;
202
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
203
+ compare_evidence_session_tag?: string | undefined;
204
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
205
+ compare_semantic_session_tag?: string | undefined;
206
+ include_plan?: boolean | undefined;
207
+ fallback_on_error?: boolean | undefined;
208
+ allow_partial?: boolean | undefined;
209
+ analysis_goal?: string | undefined;
210
+ include_resolved?: boolean | undefined;
211
+ max_functions?: number | undefined;
212
+ persist_artifact?: boolean | undefined;
213
+ auto_include_resolved_on_empty?: boolean | undefined;
214
+ auto_apply?: boolean | undefined;
215
+ rerun_reconstruct?: boolean | undefined;
216
+ max_tokens?: number | undefined;
217
+ include_context?: "none" | "thisServer" | "allServers" | undefined;
218
+ model_hint?: string | undefined;
219
+ cost_priority?: number | undefined;
220
+ speed_priority?: number | undefined;
221
+ intelligence_priority?: number | undefined;
222
+ system_prompt?: string | undefined;
223
+ rerun_export?: boolean | undefined;
224
+ export_path?: "dotnet" | "native" | "auto" | undefined;
225
+ export_topk?: number | undefined;
226
+ }>, {
227
+ sample_id: string;
228
+ evidence_scope: "all" | "latest" | "session";
229
+ temperature: number;
230
+ topk: number;
231
+ semantic_scope: "all" | "latest" | "session";
232
+ validate_build: boolean;
233
+ run_harness: boolean;
234
+ build_timeout_ms: number;
235
+ run_timeout_ms: number;
236
+ reuse_cached: boolean;
237
+ include_obfuscation_fallback: boolean;
238
+ include_plan: boolean;
239
+ fallback_on_error: boolean;
240
+ allow_partial: boolean;
241
+ analysis_goal: string;
242
+ include_resolved: boolean;
243
+ max_functions: number;
244
+ persist_artifact: boolean;
245
+ auto_include_resolved_on_empty: boolean;
246
+ auto_apply: boolean;
247
+ rerun_reconstruct: boolean;
248
+ max_tokens: number;
249
+ include_context: "none" | "thisServer" | "allServers";
250
+ cost_priority: number;
251
+ speed_priority: number;
252
+ intelligence_priority: number;
253
+ rerun_export: boolean;
254
+ export_path: "dotnet" | "native" | "auto";
255
+ export_topk: number;
256
+ symbol?: string | undefined;
257
+ address?: string | undefined;
258
+ session_tag?: string | undefined;
259
+ evidence_session_tag?: string | undefined;
260
+ semantic_session_tag?: string | undefined;
261
+ export_name?: string | undefined;
262
+ compiler_path?: string | undefined;
263
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
264
+ compare_evidence_session_tag?: string | undefined;
265
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
266
+ compare_semantic_session_tag?: string | undefined;
267
+ model_hint?: string | undefined;
268
+ system_prompt?: string | undefined;
269
+ }, {
270
+ sample_id: string;
271
+ symbol?: string | undefined;
272
+ address?: string | undefined;
273
+ session_tag?: string | undefined;
274
+ evidence_scope?: "all" | "latest" | "session" | undefined;
275
+ temperature?: number | undefined;
276
+ topk?: number | undefined;
277
+ evidence_session_tag?: string | undefined;
278
+ semantic_scope?: "all" | "latest" | "session" | undefined;
279
+ semantic_session_tag?: string | undefined;
280
+ export_name?: string | undefined;
281
+ validate_build?: boolean | undefined;
282
+ run_harness?: boolean | undefined;
283
+ compiler_path?: string | undefined;
284
+ build_timeout_ms?: number | undefined;
285
+ run_timeout_ms?: number | undefined;
286
+ reuse_cached?: boolean | undefined;
287
+ include_obfuscation_fallback?: boolean | undefined;
288
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
289
+ compare_evidence_session_tag?: string | undefined;
290
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
291
+ compare_semantic_session_tag?: string | undefined;
292
+ include_plan?: boolean | undefined;
293
+ fallback_on_error?: boolean | undefined;
294
+ allow_partial?: boolean | undefined;
295
+ analysis_goal?: string | undefined;
296
+ include_resolved?: boolean | undefined;
297
+ max_functions?: number | undefined;
298
+ persist_artifact?: boolean | undefined;
299
+ auto_include_resolved_on_empty?: boolean | undefined;
300
+ auto_apply?: boolean | undefined;
301
+ rerun_reconstruct?: boolean | undefined;
302
+ max_tokens?: number | undefined;
303
+ include_context?: "none" | "thisServer" | "allServers" | undefined;
304
+ model_hint?: string | undefined;
305
+ cost_priority?: number | undefined;
306
+ speed_priority?: number | undefined;
307
+ intelligence_priority?: number | undefined;
308
+ system_prompt?: string | undefined;
309
+ rerun_export?: boolean | undefined;
310
+ export_path?: "dotnet" | "native" | "auto" | undefined;
311
+ export_topk?: number | undefined;
312
+ }>, {
313
+ sample_id: string;
314
+ evidence_scope: "all" | "latest" | "session";
315
+ temperature: number;
316
+ topk: number;
317
+ semantic_scope: "all" | "latest" | "session";
318
+ validate_build: boolean;
319
+ run_harness: boolean;
320
+ build_timeout_ms: number;
321
+ run_timeout_ms: number;
322
+ reuse_cached: boolean;
323
+ include_obfuscation_fallback: boolean;
324
+ include_plan: boolean;
325
+ fallback_on_error: boolean;
326
+ allow_partial: boolean;
327
+ analysis_goal: string;
328
+ include_resolved: boolean;
329
+ max_functions: number;
330
+ persist_artifact: boolean;
331
+ auto_include_resolved_on_empty: boolean;
332
+ auto_apply: boolean;
333
+ rerun_reconstruct: boolean;
334
+ max_tokens: number;
335
+ include_context: "none" | "thisServer" | "allServers";
336
+ cost_priority: number;
337
+ speed_priority: number;
338
+ intelligence_priority: number;
339
+ rerun_export: boolean;
340
+ export_path: "dotnet" | "native" | "auto";
341
+ export_topk: number;
342
+ symbol?: string | undefined;
343
+ address?: string | undefined;
344
+ session_tag?: string | undefined;
345
+ evidence_session_tag?: string | undefined;
346
+ semantic_session_tag?: string | undefined;
347
+ export_name?: string | undefined;
348
+ compiler_path?: string | undefined;
349
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
350
+ compare_evidence_session_tag?: string | undefined;
351
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
352
+ compare_semantic_session_tag?: string | undefined;
353
+ model_hint?: string | undefined;
354
+ system_prompt?: string | undefined;
355
+ }, {
356
+ sample_id: string;
357
+ symbol?: string | undefined;
358
+ address?: string | undefined;
359
+ session_tag?: string | undefined;
360
+ evidence_scope?: "all" | "latest" | "session" | undefined;
361
+ temperature?: number | undefined;
362
+ topk?: number | undefined;
363
+ evidence_session_tag?: string | undefined;
364
+ semantic_scope?: "all" | "latest" | "session" | undefined;
365
+ semantic_session_tag?: string | undefined;
366
+ export_name?: string | undefined;
367
+ validate_build?: boolean | undefined;
368
+ run_harness?: boolean | undefined;
369
+ compiler_path?: string | undefined;
370
+ build_timeout_ms?: number | undefined;
371
+ run_timeout_ms?: number | undefined;
372
+ reuse_cached?: boolean | undefined;
373
+ include_obfuscation_fallback?: boolean | undefined;
374
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
375
+ compare_evidence_session_tag?: string | undefined;
376
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
377
+ compare_semantic_session_tag?: string | undefined;
378
+ include_plan?: boolean | undefined;
379
+ fallback_on_error?: boolean | undefined;
380
+ allow_partial?: boolean | undefined;
381
+ analysis_goal?: string | undefined;
382
+ include_resolved?: boolean | undefined;
383
+ max_functions?: number | undefined;
384
+ persist_artifact?: boolean | undefined;
385
+ auto_include_resolved_on_empty?: boolean | undefined;
386
+ auto_apply?: boolean | undefined;
387
+ rerun_reconstruct?: boolean | undefined;
388
+ max_tokens?: number | undefined;
389
+ include_context?: "none" | "thisServer" | "allServers" | undefined;
390
+ model_hint?: string | undefined;
391
+ cost_priority?: number | undefined;
392
+ speed_priority?: number | undefined;
393
+ intelligence_priority?: number | undefined;
394
+ system_prompt?: string | undefined;
395
+ rerun_export?: boolean | undefined;
396
+ export_path?: "dotnet" | "native" | "auto" | undefined;
397
+ export_topk?: number | undefined;
398
+ }>, {
399
+ sample_id: string;
400
+ evidence_scope: "all" | "latest" | "session";
401
+ temperature: number;
402
+ topk: number;
403
+ semantic_scope: "all" | "latest" | "session";
404
+ validate_build: boolean;
405
+ run_harness: boolean;
406
+ build_timeout_ms: number;
407
+ run_timeout_ms: number;
408
+ reuse_cached: boolean;
409
+ include_obfuscation_fallback: boolean;
410
+ include_plan: boolean;
411
+ fallback_on_error: boolean;
412
+ allow_partial: boolean;
413
+ analysis_goal: string;
414
+ include_resolved: boolean;
415
+ max_functions: number;
416
+ persist_artifact: boolean;
417
+ auto_include_resolved_on_empty: boolean;
418
+ auto_apply: boolean;
419
+ rerun_reconstruct: boolean;
420
+ max_tokens: number;
421
+ include_context: "none" | "thisServer" | "allServers";
422
+ cost_priority: number;
423
+ speed_priority: number;
424
+ intelligence_priority: number;
425
+ rerun_export: boolean;
426
+ export_path: "dotnet" | "native" | "auto";
427
+ export_topk: number;
428
+ symbol?: string | undefined;
429
+ address?: string | undefined;
430
+ session_tag?: string | undefined;
431
+ evidence_session_tag?: string | undefined;
432
+ semantic_session_tag?: string | undefined;
433
+ export_name?: string | undefined;
434
+ compiler_path?: string | undefined;
435
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
436
+ compare_evidence_session_tag?: string | undefined;
437
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
438
+ compare_semantic_session_tag?: string | undefined;
439
+ model_hint?: string | undefined;
440
+ system_prompt?: string | undefined;
441
+ }, {
442
+ sample_id: string;
443
+ symbol?: string | undefined;
444
+ address?: string | undefined;
445
+ session_tag?: string | undefined;
446
+ evidence_scope?: "all" | "latest" | "session" | undefined;
447
+ temperature?: number | undefined;
448
+ topk?: number | undefined;
449
+ evidence_session_tag?: string | undefined;
450
+ semantic_scope?: "all" | "latest" | "session" | undefined;
451
+ semantic_session_tag?: string | undefined;
452
+ export_name?: string | undefined;
453
+ validate_build?: boolean | undefined;
454
+ run_harness?: boolean | undefined;
455
+ compiler_path?: string | undefined;
456
+ build_timeout_ms?: number | undefined;
457
+ run_timeout_ms?: number | undefined;
458
+ reuse_cached?: boolean | undefined;
459
+ include_obfuscation_fallback?: boolean | undefined;
460
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
461
+ compare_evidence_session_tag?: string | undefined;
462
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
463
+ compare_semantic_session_tag?: string | undefined;
464
+ include_plan?: boolean | undefined;
465
+ fallback_on_error?: boolean | undefined;
466
+ allow_partial?: boolean | undefined;
467
+ analysis_goal?: string | undefined;
468
+ include_resolved?: boolean | undefined;
469
+ max_functions?: number | undefined;
470
+ persist_artifact?: boolean | undefined;
471
+ auto_include_resolved_on_empty?: boolean | undefined;
472
+ auto_apply?: boolean | undefined;
473
+ rerun_reconstruct?: boolean | undefined;
474
+ max_tokens?: number | undefined;
475
+ include_context?: "none" | "thisServer" | "allServers" | undefined;
476
+ model_hint?: string | undefined;
477
+ cost_priority?: number | undefined;
478
+ speed_priority?: number | undefined;
479
+ intelligence_priority?: number | undefined;
480
+ system_prompt?: string | undefined;
481
+ rerun_export?: boolean | undefined;
482
+ export_path?: "dotnet" | "native" | "auto" | undefined;
483
+ export_topk?: number | undefined;
484
+ }>;
485
+ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
486
+ ok: z.ZodBoolean;
487
+ data: z.ZodOptional<z.ZodObject<{
488
+ sample_id: z.ZodString;
489
+ review: z.ZodObject<{
490
+ review_status: z.ZodString;
491
+ prompt_name: z.ZodString;
492
+ client: z.ZodObject<{
493
+ name: z.ZodNullable<z.ZodString>;
494
+ version: z.ZodNullable<z.ZodString>;
495
+ sampling_available: z.ZodBoolean;
496
+ }, "strip", z.ZodTypeAny, {
497
+ name: string | null;
498
+ version: string | null;
499
+ sampling_available: boolean;
500
+ }, {
501
+ name: string | null;
502
+ version: string | null;
503
+ sampling_available: boolean;
504
+ }>;
505
+ prepare: z.ZodObject<{
506
+ prepared_count: z.ZodNumber;
507
+ unresolved_count: z.ZodNumber;
508
+ include_resolved: z.ZodBoolean;
509
+ artifact_id: z.ZodNullable<z.ZodString>;
510
+ }, "strip", z.ZodTypeAny, {
511
+ artifact_id: string | null;
512
+ unresolved_count: number;
513
+ include_resolved: boolean;
514
+ prepared_count: number;
515
+ }, {
516
+ artifact_id: string | null;
517
+ unresolved_count: number;
518
+ include_resolved: boolean;
519
+ prepared_count: number;
520
+ }>;
521
+ sampling: z.ZodObject<{
522
+ attempted: z.ZodBoolean;
523
+ model: z.ZodNullable<z.ZodString>;
524
+ stop_reason: z.ZodNullable<z.ZodString>;
525
+ parsed_suggestion_count: z.ZodNumber;
526
+ }, "strip", z.ZodTypeAny, {
527
+ model: string | null;
528
+ attempted: boolean;
529
+ stop_reason: string | null;
530
+ parsed_suggestion_count: number;
531
+ }, {
532
+ model: string | null;
533
+ attempted: boolean;
534
+ stop_reason: string | null;
535
+ parsed_suggestion_count: number;
536
+ }>;
537
+ apply: z.ZodObject<{
538
+ attempted: z.ZodBoolean;
539
+ accepted_count: z.ZodNumber;
540
+ rejected_count: z.ZodNumber;
541
+ artifact_id: z.ZodNullable<z.ZodString>;
542
+ }, "strip", z.ZodTypeAny, {
543
+ artifact_id: string | null;
544
+ attempted: boolean;
545
+ accepted_count: number;
546
+ rejected_count: number;
547
+ }, {
548
+ artifact_id: string | null;
549
+ attempted: boolean;
550
+ accepted_count: number;
551
+ rejected_count: number;
552
+ }>;
553
+ confidence_policy: z.ZodObject<{
554
+ calibrated: z.ZodBoolean;
555
+ rule_priority_over_llm: z.ZodBoolean;
556
+ llm_acceptance_threshold: z.ZodNumber;
557
+ meaning: z.ZodString;
558
+ }, "strip", z.ZodTypeAny, {
559
+ calibrated: boolean;
560
+ meaning: string;
561
+ rule_priority_over_llm: boolean;
562
+ llm_acceptance_threshold: number;
563
+ }, {
564
+ calibrated: boolean;
565
+ meaning: string;
566
+ rule_priority_over_llm: boolean;
567
+ llm_acceptance_threshold: number;
568
+ }>;
569
+ reconstruct: z.ZodObject<{
570
+ attempted: z.ZodBoolean;
571
+ reconstructed_count: z.ZodNumber;
572
+ llm_or_hybrid_count: z.ZodNumber;
573
+ functions: z.ZodArray<z.ZodObject<{
574
+ function: z.ZodString;
575
+ address: z.ZodString;
576
+ validated_name: z.ZodNullable<z.ZodString>;
577
+ resolution_source: z.ZodNullable<z.ZodString>;
578
+ }, "strip", z.ZodTypeAny, {
579
+ function: string;
580
+ address: string;
581
+ validated_name: string | null;
582
+ resolution_source: string | null;
583
+ }, {
584
+ function: string;
585
+ address: string;
586
+ validated_name: string | null;
587
+ resolution_source: string | null;
588
+ }>, "many">;
589
+ }, "strip", z.ZodTypeAny, {
590
+ functions: {
591
+ function: string;
592
+ address: string;
593
+ validated_name: string | null;
594
+ resolution_source: string | null;
595
+ }[];
596
+ reconstructed_count: number;
597
+ attempted: boolean;
598
+ llm_or_hybrid_count: number;
599
+ }, {
600
+ functions: {
601
+ function: string;
602
+ address: string;
603
+ validated_name: string | null;
604
+ resolution_source: string | null;
605
+ }[];
606
+ reconstructed_count: number;
607
+ attempted: boolean;
608
+ llm_or_hybrid_count: number;
609
+ }>;
610
+ }, "strip", z.ZodTypeAny, {
611
+ sampling: {
612
+ model: string | null;
613
+ attempted: boolean;
614
+ stop_reason: string | null;
615
+ parsed_suggestion_count: number;
616
+ };
617
+ reconstruct: {
618
+ functions: {
619
+ function: string;
620
+ address: string;
621
+ validated_name: string | null;
622
+ resolution_source: string | null;
623
+ }[];
624
+ reconstructed_count: number;
625
+ attempted: boolean;
626
+ llm_or_hybrid_count: number;
627
+ };
628
+ client: {
629
+ name: string | null;
630
+ version: string | null;
631
+ sampling_available: boolean;
632
+ };
633
+ prompt_name: string;
634
+ review_status: string;
635
+ prepare: {
636
+ artifact_id: string | null;
637
+ unresolved_count: number;
638
+ include_resolved: boolean;
639
+ prepared_count: number;
640
+ };
641
+ apply: {
642
+ artifact_id: string | null;
643
+ attempted: boolean;
644
+ accepted_count: number;
645
+ rejected_count: number;
646
+ };
647
+ confidence_policy: {
648
+ calibrated: boolean;
649
+ meaning: string;
650
+ rule_priority_over_llm: boolean;
651
+ llm_acceptance_threshold: number;
652
+ };
653
+ }, {
654
+ sampling: {
655
+ model: string | null;
656
+ attempted: boolean;
657
+ stop_reason: string | null;
658
+ parsed_suggestion_count: number;
659
+ };
660
+ reconstruct: {
661
+ functions: {
662
+ function: string;
663
+ address: string;
664
+ validated_name: string | null;
665
+ resolution_source: string | null;
666
+ }[];
667
+ reconstructed_count: number;
668
+ attempted: boolean;
669
+ llm_or_hybrid_count: number;
670
+ };
671
+ client: {
672
+ name: string | null;
673
+ version: string | null;
674
+ sampling_available: boolean;
675
+ };
676
+ prompt_name: string;
677
+ review_status: string;
678
+ prepare: {
679
+ artifact_id: string | null;
680
+ unresolved_count: number;
681
+ include_resolved: boolean;
682
+ prepared_count: number;
683
+ };
684
+ apply: {
685
+ artifact_id: string | null;
686
+ attempted: boolean;
687
+ accepted_count: number;
688
+ rejected_count: number;
689
+ };
690
+ confidence_policy: {
691
+ calibrated: boolean;
692
+ meaning: string;
693
+ rule_priority_over_llm: boolean;
694
+ llm_acceptance_threshold: number;
695
+ };
696
+ }>;
697
+ export: z.ZodObject<{
698
+ attempted: z.ZodBoolean;
699
+ status: z.ZodEnum<["completed", "failed", "skipped"]>;
700
+ selected_path: z.ZodNullable<z.ZodEnum<["native", "dotnet"]>>;
701
+ export_tool: z.ZodNullable<z.ZodString>;
702
+ export_root: z.ZodNullable<z.ZodString>;
703
+ manifest_path: z.ZodNullable<z.ZodString>;
704
+ build_validation_status: z.ZodNullable<z.ZodString>;
705
+ harness_validation_status: z.ZodNullable<z.ZodString>;
706
+ provenance: z.ZodNullable<z.ZodObject<{
707
+ runtime: z.ZodObject<{
708
+ scope: z.ZodEnum<["all", "latest", "session"]>;
709
+ session_selector: z.ZodNullable<z.ZodString>;
710
+ artifact_count: z.ZodNumber;
711
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
712
+ session_tags: z.ZodArray<z.ZodString, "many">;
713
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
714
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
715
+ scope_note: z.ZodString;
716
+ }, "strip", z.ZodTypeAny, {
717
+ artifact_count: number;
718
+ scope_note: string;
719
+ artifact_ids: string[];
720
+ session_selector: string | null;
721
+ session_tags: string[];
722
+ scope: "all" | "latest" | "session";
723
+ earliest_artifact_at: string | null;
724
+ latest_artifact_at: string | null;
725
+ }, {
726
+ artifact_count: number;
727
+ scope_note: string;
728
+ artifact_ids: string[];
729
+ session_selector: string | null;
730
+ session_tags: string[];
731
+ scope: "all" | "latest" | "session";
732
+ earliest_artifact_at: string | null;
733
+ latest_artifact_at: string | null;
734
+ }>;
735
+ semantic_names: z.ZodOptional<z.ZodObject<{
736
+ scope: z.ZodEnum<["all", "latest", "session"]>;
737
+ session_selector: z.ZodNullable<z.ZodString>;
738
+ artifact_count: z.ZodNumber;
739
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
740
+ session_tags: z.ZodArray<z.ZodString, "many">;
741
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
742
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
743
+ scope_note: z.ZodString;
744
+ }, "strip", z.ZodTypeAny, {
745
+ artifact_count: number;
746
+ scope_note: string;
747
+ artifact_ids: string[];
748
+ session_selector: string | null;
749
+ session_tags: string[];
750
+ scope: "all" | "latest" | "session";
751
+ earliest_artifact_at: string | null;
752
+ latest_artifact_at: string | null;
753
+ }, {
754
+ artifact_count: number;
755
+ scope_note: string;
756
+ artifact_ids: string[];
757
+ session_selector: string | null;
758
+ session_tags: string[];
759
+ scope: "all" | "latest" | "session";
760
+ earliest_artifact_at: string | null;
761
+ latest_artifact_at: string | null;
762
+ }>>;
763
+ semantic_explanations: z.ZodOptional<z.ZodObject<{
764
+ scope: z.ZodEnum<["all", "latest", "session"]>;
765
+ session_selector: z.ZodNullable<z.ZodString>;
766
+ artifact_count: z.ZodNumber;
767
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
768
+ session_tags: z.ZodArray<z.ZodString, "many">;
769
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
770
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
771
+ scope_note: z.ZodString;
772
+ }, "strip", z.ZodTypeAny, {
773
+ artifact_count: number;
774
+ scope_note: string;
775
+ artifact_ids: string[];
776
+ session_selector: string | null;
777
+ session_tags: string[];
778
+ scope: "all" | "latest" | "session";
779
+ earliest_artifact_at: string | null;
780
+ latest_artifact_at: string | null;
781
+ }, {
782
+ artifact_count: number;
783
+ scope_note: string;
784
+ artifact_ids: string[];
785
+ session_selector: string | null;
786
+ session_tags: string[];
787
+ scope: "all" | "latest" | "session";
788
+ earliest_artifact_at: string | null;
789
+ latest_artifact_at: string | null;
790
+ }>>;
791
+ }, "strip", z.ZodTypeAny, {
792
+ runtime: {
793
+ artifact_count: number;
794
+ scope_note: string;
795
+ artifact_ids: string[];
796
+ session_selector: string | null;
797
+ session_tags: string[];
798
+ scope: "all" | "latest" | "session";
799
+ earliest_artifact_at: string | null;
800
+ latest_artifact_at: string | null;
801
+ };
802
+ semantic_names?: {
803
+ artifact_count: number;
804
+ scope_note: string;
805
+ artifact_ids: string[];
806
+ session_selector: string | null;
807
+ session_tags: string[];
808
+ scope: "all" | "latest" | "session";
809
+ earliest_artifact_at: string | null;
810
+ latest_artifact_at: string | null;
811
+ } | undefined;
812
+ semantic_explanations?: {
813
+ artifact_count: number;
814
+ scope_note: string;
815
+ artifact_ids: string[];
816
+ session_selector: string | null;
817
+ session_tags: string[];
818
+ scope: "all" | "latest" | "session";
819
+ earliest_artifact_at: string | null;
820
+ latest_artifact_at: string | null;
821
+ } | undefined;
822
+ }, {
823
+ runtime: {
824
+ artifact_count: number;
825
+ scope_note: string;
826
+ artifact_ids: string[];
827
+ session_selector: string | null;
828
+ session_tags: string[];
829
+ scope: "all" | "latest" | "session";
830
+ earliest_artifact_at: string | null;
831
+ latest_artifact_at: string | null;
832
+ };
833
+ semantic_names?: {
834
+ artifact_count: number;
835
+ scope_note: string;
836
+ artifact_ids: string[];
837
+ session_selector: string | null;
838
+ session_tags: string[];
839
+ scope: "all" | "latest" | "session";
840
+ earliest_artifact_at: string | null;
841
+ latest_artifact_at: string | null;
842
+ } | undefined;
843
+ semantic_explanations?: {
844
+ artifact_count: number;
845
+ scope_note: string;
846
+ artifact_ids: string[];
847
+ session_selector: string | null;
848
+ session_tags: string[];
849
+ scope: "all" | "latest" | "session";
850
+ earliest_artifact_at: string | null;
851
+ latest_artifact_at: string | null;
852
+ } | undefined;
853
+ }>>;
854
+ selection_diffs: z.ZodNullable<z.ZodObject<{
855
+ runtime: z.ZodOptional<z.ZodObject<{
856
+ label: z.ZodEnum<["runtime", "semantic_names", "semantic_explanations"]>;
857
+ current: z.ZodObject<{
858
+ scope: z.ZodEnum<["all", "latest", "session"]>;
859
+ session_selector: z.ZodNullable<z.ZodString>;
860
+ artifact_count: z.ZodNumber;
861
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
862
+ session_tags: z.ZodArray<z.ZodString, "many">;
863
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
864
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
865
+ scope_note: z.ZodString;
866
+ }, "strip", z.ZodTypeAny, {
867
+ artifact_count: number;
868
+ scope_note: string;
869
+ artifact_ids: string[];
870
+ session_selector: string | null;
871
+ session_tags: string[];
872
+ scope: "all" | "latest" | "session";
873
+ earliest_artifact_at: string | null;
874
+ latest_artifact_at: string | null;
875
+ }, {
876
+ artifact_count: number;
877
+ scope_note: string;
878
+ artifact_ids: string[];
879
+ session_selector: string | null;
880
+ session_tags: string[];
881
+ scope: "all" | "latest" | "session";
882
+ earliest_artifact_at: string | null;
883
+ latest_artifact_at: string | null;
884
+ }>;
885
+ baseline: z.ZodObject<{
886
+ scope: z.ZodEnum<["all", "latest", "session"]>;
887
+ session_selector: z.ZodNullable<z.ZodString>;
888
+ artifact_count: z.ZodNumber;
889
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
890
+ session_tags: z.ZodArray<z.ZodString, "many">;
891
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
892
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
893
+ scope_note: z.ZodString;
894
+ }, "strip", z.ZodTypeAny, {
895
+ artifact_count: number;
896
+ scope_note: string;
897
+ artifact_ids: string[];
898
+ session_selector: string | null;
899
+ session_tags: string[];
900
+ scope: "all" | "latest" | "session";
901
+ earliest_artifact_at: string | null;
902
+ latest_artifact_at: string | null;
903
+ }, {
904
+ artifact_count: number;
905
+ scope_note: string;
906
+ artifact_ids: string[];
907
+ session_selector: string | null;
908
+ session_tags: string[];
909
+ scope: "all" | "latest" | "session";
910
+ earliest_artifact_at: string | null;
911
+ latest_artifact_at: string | null;
912
+ }>;
913
+ added_artifact_ids: z.ZodArray<z.ZodString, "many">;
914
+ removed_artifact_ids: z.ZodArray<z.ZodString, "many">;
915
+ added_session_tags: z.ZodArray<z.ZodString, "many">;
916
+ removed_session_tags: z.ZodArray<z.ZodString, "many">;
917
+ artifact_count_delta: z.ZodNumber;
918
+ summary: z.ZodString;
919
+ }, "strip", z.ZodTypeAny, {
920
+ summary: string;
921
+ baseline: {
922
+ artifact_count: number;
923
+ scope_note: string;
924
+ artifact_ids: string[];
925
+ session_selector: string | null;
926
+ session_tags: string[];
927
+ scope: "all" | "latest" | "session";
928
+ earliest_artifact_at: string | null;
929
+ latest_artifact_at: string | null;
930
+ };
931
+ label: "runtime" | "semantic_names" | "semantic_explanations";
932
+ current: {
933
+ artifact_count: number;
934
+ scope_note: string;
935
+ artifact_ids: string[];
936
+ session_selector: string | null;
937
+ session_tags: string[];
938
+ scope: "all" | "latest" | "session";
939
+ earliest_artifact_at: string | null;
940
+ latest_artifact_at: string | null;
941
+ };
942
+ added_artifact_ids: string[];
943
+ removed_artifact_ids: string[];
944
+ added_session_tags: string[];
945
+ removed_session_tags: string[];
946
+ artifact_count_delta: number;
947
+ }, {
948
+ summary: string;
949
+ baseline: {
950
+ artifact_count: number;
951
+ scope_note: string;
952
+ artifact_ids: string[];
953
+ session_selector: string | null;
954
+ session_tags: string[];
955
+ scope: "all" | "latest" | "session";
956
+ earliest_artifact_at: string | null;
957
+ latest_artifact_at: string | null;
958
+ };
959
+ label: "runtime" | "semantic_names" | "semantic_explanations";
960
+ current: {
961
+ artifact_count: number;
962
+ scope_note: string;
963
+ artifact_ids: string[];
964
+ session_selector: string | null;
965
+ session_tags: string[];
966
+ scope: "all" | "latest" | "session";
967
+ earliest_artifact_at: string | null;
968
+ latest_artifact_at: string | null;
969
+ };
970
+ added_artifact_ids: string[];
971
+ removed_artifact_ids: string[];
972
+ added_session_tags: string[];
973
+ removed_session_tags: string[];
974
+ artifact_count_delta: number;
975
+ }>>;
976
+ semantic_names: z.ZodOptional<z.ZodObject<{
977
+ label: z.ZodEnum<["runtime", "semantic_names", "semantic_explanations"]>;
978
+ current: z.ZodObject<{
979
+ scope: z.ZodEnum<["all", "latest", "session"]>;
980
+ session_selector: z.ZodNullable<z.ZodString>;
981
+ artifact_count: z.ZodNumber;
982
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
983
+ session_tags: z.ZodArray<z.ZodString, "many">;
984
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
985
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
986
+ scope_note: z.ZodString;
987
+ }, "strip", z.ZodTypeAny, {
988
+ artifact_count: number;
989
+ scope_note: string;
990
+ artifact_ids: string[];
991
+ session_selector: string | null;
992
+ session_tags: string[];
993
+ scope: "all" | "latest" | "session";
994
+ earliest_artifact_at: string | null;
995
+ latest_artifact_at: string | null;
996
+ }, {
997
+ artifact_count: number;
998
+ scope_note: string;
999
+ artifact_ids: string[];
1000
+ session_selector: string | null;
1001
+ session_tags: string[];
1002
+ scope: "all" | "latest" | "session";
1003
+ earliest_artifact_at: string | null;
1004
+ latest_artifact_at: string | null;
1005
+ }>;
1006
+ baseline: z.ZodObject<{
1007
+ scope: z.ZodEnum<["all", "latest", "session"]>;
1008
+ session_selector: z.ZodNullable<z.ZodString>;
1009
+ artifact_count: z.ZodNumber;
1010
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
1011
+ session_tags: z.ZodArray<z.ZodString, "many">;
1012
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
1013
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
1014
+ scope_note: z.ZodString;
1015
+ }, "strip", z.ZodTypeAny, {
1016
+ artifact_count: number;
1017
+ scope_note: string;
1018
+ artifact_ids: string[];
1019
+ session_selector: string | null;
1020
+ session_tags: string[];
1021
+ scope: "all" | "latest" | "session";
1022
+ earliest_artifact_at: string | null;
1023
+ latest_artifact_at: string | null;
1024
+ }, {
1025
+ artifact_count: number;
1026
+ scope_note: string;
1027
+ artifact_ids: string[];
1028
+ session_selector: string | null;
1029
+ session_tags: string[];
1030
+ scope: "all" | "latest" | "session";
1031
+ earliest_artifact_at: string | null;
1032
+ latest_artifact_at: string | null;
1033
+ }>;
1034
+ added_artifact_ids: z.ZodArray<z.ZodString, "many">;
1035
+ removed_artifact_ids: z.ZodArray<z.ZodString, "many">;
1036
+ added_session_tags: z.ZodArray<z.ZodString, "many">;
1037
+ removed_session_tags: z.ZodArray<z.ZodString, "many">;
1038
+ artifact_count_delta: z.ZodNumber;
1039
+ summary: z.ZodString;
1040
+ }, "strip", z.ZodTypeAny, {
1041
+ summary: string;
1042
+ baseline: {
1043
+ artifact_count: number;
1044
+ scope_note: string;
1045
+ artifact_ids: string[];
1046
+ session_selector: string | null;
1047
+ session_tags: string[];
1048
+ scope: "all" | "latest" | "session";
1049
+ earliest_artifact_at: string | null;
1050
+ latest_artifact_at: string | null;
1051
+ };
1052
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1053
+ current: {
1054
+ artifact_count: number;
1055
+ scope_note: string;
1056
+ artifact_ids: string[];
1057
+ session_selector: string | null;
1058
+ session_tags: string[];
1059
+ scope: "all" | "latest" | "session";
1060
+ earliest_artifact_at: string | null;
1061
+ latest_artifact_at: string | null;
1062
+ };
1063
+ added_artifact_ids: string[];
1064
+ removed_artifact_ids: string[];
1065
+ added_session_tags: string[];
1066
+ removed_session_tags: string[];
1067
+ artifact_count_delta: number;
1068
+ }, {
1069
+ summary: string;
1070
+ baseline: {
1071
+ artifact_count: number;
1072
+ scope_note: string;
1073
+ artifact_ids: string[];
1074
+ session_selector: string | null;
1075
+ session_tags: string[];
1076
+ scope: "all" | "latest" | "session";
1077
+ earliest_artifact_at: string | null;
1078
+ latest_artifact_at: string | null;
1079
+ };
1080
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1081
+ current: {
1082
+ artifact_count: number;
1083
+ scope_note: string;
1084
+ artifact_ids: string[];
1085
+ session_selector: string | null;
1086
+ session_tags: string[];
1087
+ scope: "all" | "latest" | "session";
1088
+ earliest_artifact_at: string | null;
1089
+ latest_artifact_at: string | null;
1090
+ };
1091
+ added_artifact_ids: string[];
1092
+ removed_artifact_ids: string[];
1093
+ added_session_tags: string[];
1094
+ removed_session_tags: string[];
1095
+ artifact_count_delta: number;
1096
+ }>>;
1097
+ semantic_explanations: z.ZodOptional<z.ZodObject<{
1098
+ label: z.ZodEnum<["runtime", "semantic_names", "semantic_explanations"]>;
1099
+ current: z.ZodObject<{
1100
+ scope: z.ZodEnum<["all", "latest", "session"]>;
1101
+ session_selector: z.ZodNullable<z.ZodString>;
1102
+ artifact_count: z.ZodNumber;
1103
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
1104
+ session_tags: z.ZodArray<z.ZodString, "many">;
1105
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
1106
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
1107
+ scope_note: z.ZodString;
1108
+ }, "strip", z.ZodTypeAny, {
1109
+ artifact_count: number;
1110
+ scope_note: string;
1111
+ artifact_ids: string[];
1112
+ session_selector: string | null;
1113
+ session_tags: string[];
1114
+ scope: "all" | "latest" | "session";
1115
+ earliest_artifact_at: string | null;
1116
+ latest_artifact_at: string | null;
1117
+ }, {
1118
+ artifact_count: number;
1119
+ scope_note: string;
1120
+ artifact_ids: string[];
1121
+ session_selector: string | null;
1122
+ session_tags: string[];
1123
+ scope: "all" | "latest" | "session";
1124
+ earliest_artifact_at: string | null;
1125
+ latest_artifact_at: string | null;
1126
+ }>;
1127
+ baseline: z.ZodObject<{
1128
+ scope: z.ZodEnum<["all", "latest", "session"]>;
1129
+ session_selector: z.ZodNullable<z.ZodString>;
1130
+ artifact_count: z.ZodNumber;
1131
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
1132
+ session_tags: z.ZodArray<z.ZodString, "many">;
1133
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
1134
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
1135
+ scope_note: z.ZodString;
1136
+ }, "strip", z.ZodTypeAny, {
1137
+ artifact_count: number;
1138
+ scope_note: string;
1139
+ artifact_ids: string[];
1140
+ session_selector: string | null;
1141
+ session_tags: string[];
1142
+ scope: "all" | "latest" | "session";
1143
+ earliest_artifact_at: string | null;
1144
+ latest_artifact_at: string | null;
1145
+ }, {
1146
+ artifact_count: number;
1147
+ scope_note: string;
1148
+ artifact_ids: string[];
1149
+ session_selector: string | null;
1150
+ session_tags: string[];
1151
+ scope: "all" | "latest" | "session";
1152
+ earliest_artifact_at: string | null;
1153
+ latest_artifact_at: string | null;
1154
+ }>;
1155
+ added_artifact_ids: z.ZodArray<z.ZodString, "many">;
1156
+ removed_artifact_ids: z.ZodArray<z.ZodString, "many">;
1157
+ added_session_tags: z.ZodArray<z.ZodString, "many">;
1158
+ removed_session_tags: z.ZodArray<z.ZodString, "many">;
1159
+ artifact_count_delta: z.ZodNumber;
1160
+ summary: z.ZodString;
1161
+ }, "strip", z.ZodTypeAny, {
1162
+ summary: string;
1163
+ baseline: {
1164
+ artifact_count: number;
1165
+ scope_note: string;
1166
+ artifact_ids: string[];
1167
+ session_selector: string | null;
1168
+ session_tags: string[];
1169
+ scope: "all" | "latest" | "session";
1170
+ earliest_artifact_at: string | null;
1171
+ latest_artifact_at: string | null;
1172
+ };
1173
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1174
+ current: {
1175
+ artifact_count: number;
1176
+ scope_note: string;
1177
+ artifact_ids: string[];
1178
+ session_selector: string | null;
1179
+ session_tags: string[];
1180
+ scope: "all" | "latest" | "session";
1181
+ earliest_artifact_at: string | null;
1182
+ latest_artifact_at: string | null;
1183
+ };
1184
+ added_artifact_ids: string[];
1185
+ removed_artifact_ids: string[];
1186
+ added_session_tags: string[];
1187
+ removed_session_tags: string[];
1188
+ artifact_count_delta: number;
1189
+ }, {
1190
+ summary: string;
1191
+ baseline: {
1192
+ artifact_count: number;
1193
+ scope_note: string;
1194
+ artifact_ids: string[];
1195
+ session_selector: string | null;
1196
+ session_tags: string[];
1197
+ scope: "all" | "latest" | "session";
1198
+ earliest_artifact_at: string | null;
1199
+ latest_artifact_at: string | null;
1200
+ };
1201
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1202
+ current: {
1203
+ artifact_count: number;
1204
+ scope_note: string;
1205
+ artifact_ids: string[];
1206
+ session_selector: string | null;
1207
+ session_tags: string[];
1208
+ scope: "all" | "latest" | "session";
1209
+ earliest_artifact_at: string | null;
1210
+ latest_artifact_at: string | null;
1211
+ };
1212
+ added_artifact_ids: string[];
1213
+ removed_artifact_ids: string[];
1214
+ added_session_tags: string[];
1215
+ removed_session_tags: string[];
1216
+ artifact_count_delta: number;
1217
+ }>>;
1218
+ }, "strip", z.ZodTypeAny, {
1219
+ runtime?: {
1220
+ summary: string;
1221
+ baseline: {
1222
+ artifact_count: number;
1223
+ scope_note: string;
1224
+ artifact_ids: string[];
1225
+ session_selector: string | null;
1226
+ session_tags: string[];
1227
+ scope: "all" | "latest" | "session";
1228
+ earliest_artifact_at: string | null;
1229
+ latest_artifact_at: string | null;
1230
+ };
1231
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1232
+ current: {
1233
+ artifact_count: number;
1234
+ scope_note: string;
1235
+ artifact_ids: string[];
1236
+ session_selector: string | null;
1237
+ session_tags: string[];
1238
+ scope: "all" | "latest" | "session";
1239
+ earliest_artifact_at: string | null;
1240
+ latest_artifact_at: string | null;
1241
+ };
1242
+ added_artifact_ids: string[];
1243
+ removed_artifact_ids: string[];
1244
+ added_session_tags: string[];
1245
+ removed_session_tags: string[];
1246
+ artifact_count_delta: number;
1247
+ } | undefined;
1248
+ semantic_names?: {
1249
+ summary: string;
1250
+ baseline: {
1251
+ artifact_count: number;
1252
+ scope_note: string;
1253
+ artifact_ids: string[];
1254
+ session_selector: string | null;
1255
+ session_tags: string[];
1256
+ scope: "all" | "latest" | "session";
1257
+ earliest_artifact_at: string | null;
1258
+ latest_artifact_at: string | null;
1259
+ };
1260
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1261
+ current: {
1262
+ artifact_count: number;
1263
+ scope_note: string;
1264
+ artifact_ids: string[];
1265
+ session_selector: string | null;
1266
+ session_tags: string[];
1267
+ scope: "all" | "latest" | "session";
1268
+ earliest_artifact_at: string | null;
1269
+ latest_artifact_at: string | null;
1270
+ };
1271
+ added_artifact_ids: string[];
1272
+ removed_artifact_ids: string[];
1273
+ added_session_tags: string[];
1274
+ removed_session_tags: string[];
1275
+ artifact_count_delta: number;
1276
+ } | undefined;
1277
+ semantic_explanations?: {
1278
+ summary: string;
1279
+ baseline: {
1280
+ artifact_count: number;
1281
+ scope_note: string;
1282
+ artifact_ids: string[];
1283
+ session_selector: string | null;
1284
+ session_tags: string[];
1285
+ scope: "all" | "latest" | "session";
1286
+ earliest_artifact_at: string | null;
1287
+ latest_artifact_at: string | null;
1288
+ };
1289
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1290
+ current: {
1291
+ artifact_count: number;
1292
+ scope_note: string;
1293
+ artifact_ids: string[];
1294
+ session_selector: string | null;
1295
+ session_tags: string[];
1296
+ scope: "all" | "latest" | "session";
1297
+ earliest_artifact_at: string | null;
1298
+ latest_artifact_at: string | null;
1299
+ };
1300
+ added_artifact_ids: string[];
1301
+ removed_artifact_ids: string[];
1302
+ added_session_tags: string[];
1303
+ removed_session_tags: string[];
1304
+ artifact_count_delta: number;
1305
+ } | undefined;
1306
+ }, {
1307
+ runtime?: {
1308
+ summary: string;
1309
+ baseline: {
1310
+ artifact_count: number;
1311
+ scope_note: string;
1312
+ artifact_ids: string[];
1313
+ session_selector: string | null;
1314
+ session_tags: string[];
1315
+ scope: "all" | "latest" | "session";
1316
+ earliest_artifact_at: string | null;
1317
+ latest_artifact_at: string | null;
1318
+ };
1319
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1320
+ current: {
1321
+ artifact_count: number;
1322
+ scope_note: string;
1323
+ artifact_ids: string[];
1324
+ session_selector: string | null;
1325
+ session_tags: string[];
1326
+ scope: "all" | "latest" | "session";
1327
+ earliest_artifact_at: string | null;
1328
+ latest_artifact_at: string | null;
1329
+ };
1330
+ added_artifact_ids: string[];
1331
+ removed_artifact_ids: string[];
1332
+ added_session_tags: string[];
1333
+ removed_session_tags: string[];
1334
+ artifact_count_delta: number;
1335
+ } | undefined;
1336
+ semantic_names?: {
1337
+ summary: string;
1338
+ baseline: {
1339
+ artifact_count: number;
1340
+ scope_note: string;
1341
+ artifact_ids: string[];
1342
+ session_selector: string | null;
1343
+ session_tags: string[];
1344
+ scope: "all" | "latest" | "session";
1345
+ earliest_artifact_at: string | null;
1346
+ latest_artifact_at: string | null;
1347
+ };
1348
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1349
+ current: {
1350
+ artifact_count: number;
1351
+ scope_note: string;
1352
+ artifact_ids: string[];
1353
+ session_selector: string | null;
1354
+ session_tags: string[];
1355
+ scope: "all" | "latest" | "session";
1356
+ earliest_artifact_at: string | null;
1357
+ latest_artifact_at: string | null;
1358
+ };
1359
+ added_artifact_ids: string[];
1360
+ removed_artifact_ids: string[];
1361
+ added_session_tags: string[];
1362
+ removed_session_tags: string[];
1363
+ artifact_count_delta: number;
1364
+ } | undefined;
1365
+ semantic_explanations?: {
1366
+ summary: string;
1367
+ baseline: {
1368
+ artifact_count: number;
1369
+ scope_note: string;
1370
+ artifact_ids: string[];
1371
+ session_selector: string | null;
1372
+ session_tags: string[];
1373
+ scope: "all" | "latest" | "session";
1374
+ earliest_artifact_at: string | null;
1375
+ latest_artifact_at: string | null;
1376
+ };
1377
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1378
+ current: {
1379
+ artifact_count: number;
1380
+ scope_note: string;
1381
+ artifact_ids: string[];
1382
+ session_selector: string | null;
1383
+ session_tags: string[];
1384
+ scope: "all" | "latest" | "session";
1385
+ earliest_artifact_at: string | null;
1386
+ latest_artifact_at: string | null;
1387
+ };
1388
+ added_artifact_ids: string[];
1389
+ removed_artifact_ids: string[];
1390
+ added_session_tags: string[];
1391
+ removed_session_tags: string[];
1392
+ artifact_count_delta: number;
1393
+ } | undefined;
1394
+ }>>;
1395
+ notes: z.ZodArray<z.ZodString, "many">;
1396
+ }, "strip", z.ZodTypeAny, {
1397
+ status: "failed" | "completed" | "skipped";
1398
+ notes: string[];
1399
+ provenance: {
1400
+ runtime: {
1401
+ artifact_count: number;
1402
+ scope_note: string;
1403
+ artifact_ids: string[];
1404
+ session_selector: string | null;
1405
+ session_tags: string[];
1406
+ scope: "all" | "latest" | "session";
1407
+ earliest_artifact_at: string | null;
1408
+ latest_artifact_at: string | null;
1409
+ };
1410
+ semantic_names?: {
1411
+ artifact_count: number;
1412
+ scope_note: string;
1413
+ artifact_ids: string[];
1414
+ session_selector: string | null;
1415
+ session_tags: string[];
1416
+ scope: "all" | "latest" | "session";
1417
+ earliest_artifact_at: string | null;
1418
+ latest_artifact_at: string | null;
1419
+ } | undefined;
1420
+ semantic_explanations?: {
1421
+ artifact_count: number;
1422
+ scope_note: string;
1423
+ artifact_ids: string[];
1424
+ session_selector: string | null;
1425
+ session_tags: string[];
1426
+ scope: "all" | "latest" | "session";
1427
+ earliest_artifact_at: string | null;
1428
+ latest_artifact_at: string | null;
1429
+ } | undefined;
1430
+ } | null;
1431
+ attempted: boolean;
1432
+ export_root: string | null;
1433
+ manifest_path: string | null;
1434
+ build_validation_status: string | null;
1435
+ harness_validation_status: string | null;
1436
+ selected_path: "dotnet" | "native" | null;
1437
+ selection_diffs: {
1438
+ runtime?: {
1439
+ summary: string;
1440
+ baseline: {
1441
+ artifact_count: number;
1442
+ scope_note: string;
1443
+ artifact_ids: string[];
1444
+ session_selector: string | null;
1445
+ session_tags: string[];
1446
+ scope: "all" | "latest" | "session";
1447
+ earliest_artifact_at: string | null;
1448
+ latest_artifact_at: string | null;
1449
+ };
1450
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1451
+ current: {
1452
+ artifact_count: number;
1453
+ scope_note: string;
1454
+ artifact_ids: string[];
1455
+ session_selector: string | null;
1456
+ session_tags: string[];
1457
+ scope: "all" | "latest" | "session";
1458
+ earliest_artifact_at: string | null;
1459
+ latest_artifact_at: string | null;
1460
+ };
1461
+ added_artifact_ids: string[];
1462
+ removed_artifact_ids: string[];
1463
+ added_session_tags: string[];
1464
+ removed_session_tags: string[];
1465
+ artifact_count_delta: number;
1466
+ } | undefined;
1467
+ semantic_names?: {
1468
+ summary: string;
1469
+ baseline: {
1470
+ artifact_count: number;
1471
+ scope_note: string;
1472
+ artifact_ids: string[];
1473
+ session_selector: string | null;
1474
+ session_tags: string[];
1475
+ scope: "all" | "latest" | "session";
1476
+ earliest_artifact_at: string | null;
1477
+ latest_artifact_at: string | null;
1478
+ };
1479
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1480
+ current: {
1481
+ artifact_count: number;
1482
+ scope_note: string;
1483
+ artifact_ids: string[];
1484
+ session_selector: string | null;
1485
+ session_tags: string[];
1486
+ scope: "all" | "latest" | "session";
1487
+ earliest_artifact_at: string | null;
1488
+ latest_artifact_at: string | null;
1489
+ };
1490
+ added_artifact_ids: string[];
1491
+ removed_artifact_ids: string[];
1492
+ added_session_tags: string[];
1493
+ removed_session_tags: string[];
1494
+ artifact_count_delta: number;
1495
+ } | undefined;
1496
+ semantic_explanations?: {
1497
+ summary: string;
1498
+ baseline: {
1499
+ artifact_count: number;
1500
+ scope_note: string;
1501
+ artifact_ids: string[];
1502
+ session_selector: string | null;
1503
+ session_tags: string[];
1504
+ scope: "all" | "latest" | "session";
1505
+ earliest_artifact_at: string | null;
1506
+ latest_artifact_at: string | null;
1507
+ };
1508
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1509
+ current: {
1510
+ artifact_count: number;
1511
+ scope_note: string;
1512
+ artifact_ids: string[];
1513
+ session_selector: string | null;
1514
+ session_tags: string[];
1515
+ scope: "all" | "latest" | "session";
1516
+ earliest_artifact_at: string | null;
1517
+ latest_artifact_at: string | null;
1518
+ };
1519
+ added_artifact_ids: string[];
1520
+ removed_artifact_ids: string[];
1521
+ added_session_tags: string[];
1522
+ removed_session_tags: string[];
1523
+ artifact_count_delta: number;
1524
+ } | undefined;
1525
+ } | null;
1526
+ export_tool: string | null;
1527
+ }, {
1528
+ status: "failed" | "completed" | "skipped";
1529
+ notes: string[];
1530
+ provenance: {
1531
+ runtime: {
1532
+ artifact_count: number;
1533
+ scope_note: string;
1534
+ artifact_ids: string[];
1535
+ session_selector: string | null;
1536
+ session_tags: string[];
1537
+ scope: "all" | "latest" | "session";
1538
+ earliest_artifact_at: string | null;
1539
+ latest_artifact_at: string | null;
1540
+ };
1541
+ semantic_names?: {
1542
+ artifact_count: number;
1543
+ scope_note: string;
1544
+ artifact_ids: string[];
1545
+ session_selector: string | null;
1546
+ session_tags: string[];
1547
+ scope: "all" | "latest" | "session";
1548
+ earliest_artifact_at: string | null;
1549
+ latest_artifact_at: string | null;
1550
+ } | undefined;
1551
+ semantic_explanations?: {
1552
+ artifact_count: number;
1553
+ scope_note: string;
1554
+ artifact_ids: string[];
1555
+ session_selector: string | null;
1556
+ session_tags: string[];
1557
+ scope: "all" | "latest" | "session";
1558
+ earliest_artifact_at: string | null;
1559
+ latest_artifact_at: string | null;
1560
+ } | undefined;
1561
+ } | null;
1562
+ attempted: boolean;
1563
+ export_root: string | null;
1564
+ manifest_path: string | null;
1565
+ build_validation_status: string | null;
1566
+ harness_validation_status: string | null;
1567
+ selected_path: "dotnet" | "native" | null;
1568
+ selection_diffs: {
1569
+ runtime?: {
1570
+ summary: string;
1571
+ baseline: {
1572
+ artifact_count: number;
1573
+ scope_note: string;
1574
+ artifact_ids: string[];
1575
+ session_selector: string | null;
1576
+ session_tags: string[];
1577
+ scope: "all" | "latest" | "session";
1578
+ earliest_artifact_at: string | null;
1579
+ latest_artifact_at: string | null;
1580
+ };
1581
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1582
+ current: {
1583
+ artifact_count: number;
1584
+ scope_note: string;
1585
+ artifact_ids: string[];
1586
+ session_selector: string | null;
1587
+ session_tags: string[];
1588
+ scope: "all" | "latest" | "session";
1589
+ earliest_artifact_at: string | null;
1590
+ latest_artifact_at: string | null;
1591
+ };
1592
+ added_artifact_ids: string[];
1593
+ removed_artifact_ids: string[];
1594
+ added_session_tags: string[];
1595
+ removed_session_tags: string[];
1596
+ artifact_count_delta: number;
1597
+ } | undefined;
1598
+ semantic_names?: {
1599
+ summary: string;
1600
+ baseline: {
1601
+ artifact_count: number;
1602
+ scope_note: string;
1603
+ artifact_ids: string[];
1604
+ session_selector: string | null;
1605
+ session_tags: string[];
1606
+ scope: "all" | "latest" | "session";
1607
+ earliest_artifact_at: string | null;
1608
+ latest_artifact_at: string | null;
1609
+ };
1610
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1611
+ current: {
1612
+ artifact_count: number;
1613
+ scope_note: string;
1614
+ artifact_ids: string[];
1615
+ session_selector: string | null;
1616
+ session_tags: string[];
1617
+ scope: "all" | "latest" | "session";
1618
+ earliest_artifact_at: string | null;
1619
+ latest_artifact_at: string | null;
1620
+ };
1621
+ added_artifact_ids: string[];
1622
+ removed_artifact_ids: string[];
1623
+ added_session_tags: string[];
1624
+ removed_session_tags: string[];
1625
+ artifact_count_delta: number;
1626
+ } | undefined;
1627
+ semantic_explanations?: {
1628
+ summary: string;
1629
+ baseline: {
1630
+ artifact_count: number;
1631
+ scope_note: string;
1632
+ artifact_ids: string[];
1633
+ session_selector: string | null;
1634
+ session_tags: string[];
1635
+ scope: "all" | "latest" | "session";
1636
+ earliest_artifact_at: string | null;
1637
+ latest_artifact_at: string | null;
1638
+ };
1639
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1640
+ current: {
1641
+ artifact_count: number;
1642
+ scope_note: string;
1643
+ artifact_ids: string[];
1644
+ session_selector: string | null;
1645
+ session_tags: string[];
1646
+ scope: "all" | "latest" | "session";
1647
+ earliest_artifact_at: string | null;
1648
+ latest_artifact_at: string | null;
1649
+ };
1650
+ added_artifact_ids: string[];
1651
+ removed_artifact_ids: string[];
1652
+ added_session_tags: string[];
1653
+ removed_session_tags: string[];
1654
+ artifact_count_delta: number;
1655
+ } | undefined;
1656
+ } | null;
1657
+ export_tool: string | null;
1658
+ }>;
1659
+ next_steps: z.ZodArray<z.ZodString, "many">;
1660
+ }, "strip", z.ZodTypeAny, {
1661
+ sample_id: string;
1662
+ export: {
1663
+ status: "failed" | "completed" | "skipped";
1664
+ notes: string[];
1665
+ provenance: {
1666
+ runtime: {
1667
+ artifact_count: number;
1668
+ scope_note: string;
1669
+ artifact_ids: string[];
1670
+ session_selector: string | null;
1671
+ session_tags: string[];
1672
+ scope: "all" | "latest" | "session";
1673
+ earliest_artifact_at: string | null;
1674
+ latest_artifact_at: string | null;
1675
+ };
1676
+ semantic_names?: {
1677
+ artifact_count: number;
1678
+ scope_note: string;
1679
+ artifact_ids: string[];
1680
+ session_selector: string | null;
1681
+ session_tags: string[];
1682
+ scope: "all" | "latest" | "session";
1683
+ earliest_artifact_at: string | null;
1684
+ latest_artifact_at: string | null;
1685
+ } | undefined;
1686
+ semantic_explanations?: {
1687
+ artifact_count: number;
1688
+ scope_note: string;
1689
+ artifact_ids: string[];
1690
+ session_selector: string | null;
1691
+ session_tags: string[];
1692
+ scope: "all" | "latest" | "session";
1693
+ earliest_artifact_at: string | null;
1694
+ latest_artifact_at: string | null;
1695
+ } | undefined;
1696
+ } | null;
1697
+ attempted: boolean;
1698
+ export_root: string | null;
1699
+ manifest_path: string | null;
1700
+ build_validation_status: string | null;
1701
+ harness_validation_status: string | null;
1702
+ selected_path: "dotnet" | "native" | null;
1703
+ selection_diffs: {
1704
+ runtime?: {
1705
+ summary: string;
1706
+ baseline: {
1707
+ artifact_count: number;
1708
+ scope_note: string;
1709
+ artifact_ids: string[];
1710
+ session_selector: string | null;
1711
+ session_tags: string[];
1712
+ scope: "all" | "latest" | "session";
1713
+ earliest_artifact_at: string | null;
1714
+ latest_artifact_at: string | null;
1715
+ };
1716
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1717
+ current: {
1718
+ artifact_count: number;
1719
+ scope_note: string;
1720
+ artifact_ids: string[];
1721
+ session_selector: string | null;
1722
+ session_tags: string[];
1723
+ scope: "all" | "latest" | "session";
1724
+ earliest_artifact_at: string | null;
1725
+ latest_artifact_at: string | null;
1726
+ };
1727
+ added_artifact_ids: string[];
1728
+ removed_artifact_ids: string[];
1729
+ added_session_tags: string[];
1730
+ removed_session_tags: string[];
1731
+ artifact_count_delta: number;
1732
+ } | undefined;
1733
+ semantic_names?: {
1734
+ summary: string;
1735
+ baseline: {
1736
+ artifact_count: number;
1737
+ scope_note: string;
1738
+ artifact_ids: string[];
1739
+ session_selector: string | null;
1740
+ session_tags: string[];
1741
+ scope: "all" | "latest" | "session";
1742
+ earliest_artifact_at: string | null;
1743
+ latest_artifact_at: string | null;
1744
+ };
1745
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1746
+ current: {
1747
+ artifact_count: number;
1748
+ scope_note: string;
1749
+ artifact_ids: string[];
1750
+ session_selector: string | null;
1751
+ session_tags: string[];
1752
+ scope: "all" | "latest" | "session";
1753
+ earliest_artifact_at: string | null;
1754
+ latest_artifact_at: string | null;
1755
+ };
1756
+ added_artifact_ids: string[];
1757
+ removed_artifact_ids: string[];
1758
+ added_session_tags: string[];
1759
+ removed_session_tags: string[];
1760
+ artifact_count_delta: number;
1761
+ } | undefined;
1762
+ semantic_explanations?: {
1763
+ summary: string;
1764
+ baseline: {
1765
+ artifact_count: number;
1766
+ scope_note: string;
1767
+ artifact_ids: string[];
1768
+ session_selector: string | null;
1769
+ session_tags: string[];
1770
+ scope: "all" | "latest" | "session";
1771
+ earliest_artifact_at: string | null;
1772
+ latest_artifact_at: string | null;
1773
+ };
1774
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1775
+ current: {
1776
+ artifact_count: number;
1777
+ scope_note: string;
1778
+ artifact_ids: string[];
1779
+ session_selector: string | null;
1780
+ session_tags: string[];
1781
+ scope: "all" | "latest" | "session";
1782
+ earliest_artifact_at: string | null;
1783
+ latest_artifact_at: string | null;
1784
+ };
1785
+ added_artifact_ids: string[];
1786
+ removed_artifact_ids: string[];
1787
+ added_session_tags: string[];
1788
+ removed_session_tags: string[];
1789
+ artifact_count_delta: number;
1790
+ } | undefined;
1791
+ } | null;
1792
+ export_tool: string | null;
1793
+ };
1794
+ next_steps: string[];
1795
+ review: {
1796
+ sampling: {
1797
+ model: string | null;
1798
+ attempted: boolean;
1799
+ stop_reason: string | null;
1800
+ parsed_suggestion_count: number;
1801
+ };
1802
+ reconstruct: {
1803
+ functions: {
1804
+ function: string;
1805
+ address: string;
1806
+ validated_name: string | null;
1807
+ resolution_source: string | null;
1808
+ }[];
1809
+ reconstructed_count: number;
1810
+ attempted: boolean;
1811
+ llm_or_hybrid_count: number;
1812
+ };
1813
+ client: {
1814
+ name: string | null;
1815
+ version: string | null;
1816
+ sampling_available: boolean;
1817
+ };
1818
+ prompt_name: string;
1819
+ review_status: string;
1820
+ prepare: {
1821
+ artifact_id: string | null;
1822
+ unresolved_count: number;
1823
+ include_resolved: boolean;
1824
+ prepared_count: number;
1825
+ };
1826
+ apply: {
1827
+ artifact_id: string | null;
1828
+ attempted: boolean;
1829
+ accepted_count: number;
1830
+ rejected_count: number;
1831
+ };
1832
+ confidence_policy: {
1833
+ calibrated: boolean;
1834
+ meaning: string;
1835
+ rule_priority_over_llm: boolean;
1836
+ llm_acceptance_threshold: number;
1837
+ };
1838
+ };
1839
+ }, {
1840
+ sample_id: string;
1841
+ export: {
1842
+ status: "failed" | "completed" | "skipped";
1843
+ notes: string[];
1844
+ provenance: {
1845
+ runtime: {
1846
+ artifact_count: number;
1847
+ scope_note: string;
1848
+ artifact_ids: string[];
1849
+ session_selector: string | null;
1850
+ session_tags: string[];
1851
+ scope: "all" | "latest" | "session";
1852
+ earliest_artifact_at: string | null;
1853
+ latest_artifact_at: string | null;
1854
+ };
1855
+ semantic_names?: {
1856
+ artifact_count: number;
1857
+ scope_note: string;
1858
+ artifact_ids: string[];
1859
+ session_selector: string | null;
1860
+ session_tags: string[];
1861
+ scope: "all" | "latest" | "session";
1862
+ earliest_artifact_at: string | null;
1863
+ latest_artifact_at: string | null;
1864
+ } | undefined;
1865
+ semantic_explanations?: {
1866
+ artifact_count: number;
1867
+ scope_note: string;
1868
+ artifact_ids: string[];
1869
+ session_selector: string | null;
1870
+ session_tags: string[];
1871
+ scope: "all" | "latest" | "session";
1872
+ earliest_artifact_at: string | null;
1873
+ latest_artifact_at: string | null;
1874
+ } | undefined;
1875
+ } | null;
1876
+ attempted: boolean;
1877
+ export_root: string | null;
1878
+ manifest_path: string | null;
1879
+ build_validation_status: string | null;
1880
+ harness_validation_status: string | null;
1881
+ selected_path: "dotnet" | "native" | null;
1882
+ selection_diffs: {
1883
+ runtime?: {
1884
+ summary: string;
1885
+ baseline: {
1886
+ artifact_count: number;
1887
+ scope_note: string;
1888
+ artifact_ids: string[];
1889
+ session_selector: string | null;
1890
+ session_tags: string[];
1891
+ scope: "all" | "latest" | "session";
1892
+ earliest_artifact_at: string | null;
1893
+ latest_artifact_at: string | null;
1894
+ };
1895
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1896
+ current: {
1897
+ artifact_count: number;
1898
+ scope_note: string;
1899
+ artifact_ids: string[];
1900
+ session_selector: string | null;
1901
+ session_tags: string[];
1902
+ scope: "all" | "latest" | "session";
1903
+ earliest_artifact_at: string | null;
1904
+ latest_artifact_at: string | null;
1905
+ };
1906
+ added_artifact_ids: string[];
1907
+ removed_artifact_ids: string[];
1908
+ added_session_tags: string[];
1909
+ removed_session_tags: string[];
1910
+ artifact_count_delta: number;
1911
+ } | undefined;
1912
+ semantic_names?: {
1913
+ summary: string;
1914
+ baseline: {
1915
+ artifact_count: number;
1916
+ scope_note: string;
1917
+ artifact_ids: string[];
1918
+ session_selector: string | null;
1919
+ session_tags: string[];
1920
+ scope: "all" | "latest" | "session";
1921
+ earliest_artifact_at: string | null;
1922
+ latest_artifact_at: string | null;
1923
+ };
1924
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1925
+ current: {
1926
+ artifact_count: number;
1927
+ scope_note: string;
1928
+ artifact_ids: string[];
1929
+ session_selector: string | null;
1930
+ session_tags: string[];
1931
+ scope: "all" | "latest" | "session";
1932
+ earliest_artifact_at: string | null;
1933
+ latest_artifact_at: string | null;
1934
+ };
1935
+ added_artifact_ids: string[];
1936
+ removed_artifact_ids: string[];
1937
+ added_session_tags: string[];
1938
+ removed_session_tags: string[];
1939
+ artifact_count_delta: number;
1940
+ } | undefined;
1941
+ semantic_explanations?: {
1942
+ summary: string;
1943
+ baseline: {
1944
+ artifact_count: number;
1945
+ scope_note: string;
1946
+ artifact_ids: string[];
1947
+ session_selector: string | null;
1948
+ session_tags: string[];
1949
+ scope: "all" | "latest" | "session";
1950
+ earliest_artifact_at: string | null;
1951
+ latest_artifact_at: string | null;
1952
+ };
1953
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1954
+ current: {
1955
+ artifact_count: number;
1956
+ scope_note: string;
1957
+ artifact_ids: string[];
1958
+ session_selector: string | null;
1959
+ session_tags: string[];
1960
+ scope: "all" | "latest" | "session";
1961
+ earliest_artifact_at: string | null;
1962
+ latest_artifact_at: string | null;
1963
+ };
1964
+ added_artifact_ids: string[];
1965
+ removed_artifact_ids: string[];
1966
+ added_session_tags: string[];
1967
+ removed_session_tags: string[];
1968
+ artifact_count_delta: number;
1969
+ } | undefined;
1970
+ } | null;
1971
+ export_tool: string | null;
1972
+ };
1973
+ next_steps: string[];
1974
+ review: {
1975
+ sampling: {
1976
+ model: string | null;
1977
+ attempted: boolean;
1978
+ stop_reason: string | null;
1979
+ parsed_suggestion_count: number;
1980
+ };
1981
+ reconstruct: {
1982
+ functions: {
1983
+ function: string;
1984
+ address: string;
1985
+ validated_name: string | null;
1986
+ resolution_source: string | null;
1987
+ }[];
1988
+ reconstructed_count: number;
1989
+ attempted: boolean;
1990
+ llm_or_hybrid_count: number;
1991
+ };
1992
+ client: {
1993
+ name: string | null;
1994
+ version: string | null;
1995
+ sampling_available: boolean;
1996
+ };
1997
+ prompt_name: string;
1998
+ review_status: string;
1999
+ prepare: {
2000
+ artifact_id: string | null;
2001
+ unresolved_count: number;
2002
+ include_resolved: boolean;
2003
+ prepared_count: number;
2004
+ };
2005
+ apply: {
2006
+ artifact_id: string | null;
2007
+ attempted: boolean;
2008
+ accepted_count: number;
2009
+ rejected_count: number;
2010
+ };
2011
+ confidence_policy: {
2012
+ calibrated: boolean;
2013
+ meaning: string;
2014
+ rule_priority_over_llm: boolean;
2015
+ llm_acceptance_threshold: number;
2016
+ };
2017
+ };
2018
+ }>>;
2019
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2020
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2021
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2022
+ metrics: z.ZodOptional<z.ZodObject<{
2023
+ elapsed_ms: z.ZodNumber;
2024
+ tool: z.ZodString;
2025
+ }, "strip", z.ZodTypeAny, {
2026
+ elapsed_ms: number;
2027
+ tool: string;
2028
+ }, {
2029
+ elapsed_ms: number;
2030
+ tool: string;
2031
+ }>>;
2032
+ }, "strip", z.ZodTypeAny, {
2033
+ ok: boolean;
2034
+ metrics?: {
2035
+ elapsed_ms: number;
2036
+ tool: string;
2037
+ } | undefined;
2038
+ data?: {
2039
+ sample_id: string;
2040
+ export: {
2041
+ status: "failed" | "completed" | "skipped";
2042
+ notes: string[];
2043
+ provenance: {
2044
+ runtime: {
2045
+ artifact_count: number;
2046
+ scope_note: string;
2047
+ artifact_ids: string[];
2048
+ session_selector: string | null;
2049
+ session_tags: string[];
2050
+ scope: "all" | "latest" | "session";
2051
+ earliest_artifact_at: string | null;
2052
+ latest_artifact_at: string | null;
2053
+ };
2054
+ semantic_names?: {
2055
+ artifact_count: number;
2056
+ scope_note: string;
2057
+ artifact_ids: string[];
2058
+ session_selector: string | null;
2059
+ session_tags: string[];
2060
+ scope: "all" | "latest" | "session";
2061
+ earliest_artifact_at: string | null;
2062
+ latest_artifact_at: string | null;
2063
+ } | undefined;
2064
+ semantic_explanations?: {
2065
+ artifact_count: number;
2066
+ scope_note: string;
2067
+ artifact_ids: string[];
2068
+ session_selector: string | null;
2069
+ session_tags: string[];
2070
+ scope: "all" | "latest" | "session";
2071
+ earliest_artifact_at: string | null;
2072
+ latest_artifact_at: string | null;
2073
+ } | undefined;
2074
+ } | null;
2075
+ attempted: boolean;
2076
+ export_root: string | null;
2077
+ manifest_path: string | null;
2078
+ build_validation_status: string | null;
2079
+ harness_validation_status: string | null;
2080
+ selected_path: "dotnet" | "native" | null;
2081
+ selection_diffs: {
2082
+ runtime?: {
2083
+ summary: string;
2084
+ baseline: {
2085
+ artifact_count: number;
2086
+ scope_note: string;
2087
+ artifact_ids: string[];
2088
+ session_selector: string | null;
2089
+ session_tags: string[];
2090
+ scope: "all" | "latest" | "session";
2091
+ earliest_artifact_at: string | null;
2092
+ latest_artifact_at: string | null;
2093
+ };
2094
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2095
+ current: {
2096
+ artifact_count: number;
2097
+ scope_note: string;
2098
+ artifact_ids: string[];
2099
+ session_selector: string | null;
2100
+ session_tags: string[];
2101
+ scope: "all" | "latest" | "session";
2102
+ earliest_artifact_at: string | null;
2103
+ latest_artifact_at: string | null;
2104
+ };
2105
+ added_artifact_ids: string[];
2106
+ removed_artifact_ids: string[];
2107
+ added_session_tags: string[];
2108
+ removed_session_tags: string[];
2109
+ artifact_count_delta: number;
2110
+ } | undefined;
2111
+ semantic_names?: {
2112
+ summary: string;
2113
+ baseline: {
2114
+ artifact_count: number;
2115
+ scope_note: string;
2116
+ artifact_ids: string[];
2117
+ session_selector: string | null;
2118
+ session_tags: string[];
2119
+ scope: "all" | "latest" | "session";
2120
+ earliest_artifact_at: string | null;
2121
+ latest_artifact_at: string | null;
2122
+ };
2123
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2124
+ current: {
2125
+ artifact_count: number;
2126
+ scope_note: string;
2127
+ artifact_ids: string[];
2128
+ session_selector: string | null;
2129
+ session_tags: string[];
2130
+ scope: "all" | "latest" | "session";
2131
+ earliest_artifact_at: string | null;
2132
+ latest_artifact_at: string | null;
2133
+ };
2134
+ added_artifact_ids: string[];
2135
+ removed_artifact_ids: string[];
2136
+ added_session_tags: string[];
2137
+ removed_session_tags: string[];
2138
+ artifact_count_delta: number;
2139
+ } | undefined;
2140
+ semantic_explanations?: {
2141
+ summary: string;
2142
+ baseline: {
2143
+ artifact_count: number;
2144
+ scope_note: string;
2145
+ artifact_ids: string[];
2146
+ session_selector: string | null;
2147
+ session_tags: string[];
2148
+ scope: "all" | "latest" | "session";
2149
+ earliest_artifact_at: string | null;
2150
+ latest_artifact_at: string | null;
2151
+ };
2152
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2153
+ current: {
2154
+ artifact_count: number;
2155
+ scope_note: string;
2156
+ artifact_ids: string[];
2157
+ session_selector: string | null;
2158
+ session_tags: string[];
2159
+ scope: "all" | "latest" | "session";
2160
+ earliest_artifact_at: string | null;
2161
+ latest_artifact_at: string | null;
2162
+ };
2163
+ added_artifact_ids: string[];
2164
+ removed_artifact_ids: string[];
2165
+ added_session_tags: string[];
2166
+ removed_session_tags: string[];
2167
+ artifact_count_delta: number;
2168
+ } | undefined;
2169
+ } | null;
2170
+ export_tool: string | null;
2171
+ };
2172
+ next_steps: string[];
2173
+ review: {
2174
+ sampling: {
2175
+ model: string | null;
2176
+ attempted: boolean;
2177
+ stop_reason: string | null;
2178
+ parsed_suggestion_count: number;
2179
+ };
2180
+ reconstruct: {
2181
+ functions: {
2182
+ function: string;
2183
+ address: string;
2184
+ validated_name: string | null;
2185
+ resolution_source: string | null;
2186
+ }[];
2187
+ reconstructed_count: number;
2188
+ attempted: boolean;
2189
+ llm_or_hybrid_count: number;
2190
+ };
2191
+ client: {
2192
+ name: string | null;
2193
+ version: string | null;
2194
+ sampling_available: boolean;
2195
+ };
2196
+ prompt_name: string;
2197
+ review_status: string;
2198
+ prepare: {
2199
+ artifact_id: string | null;
2200
+ unresolved_count: number;
2201
+ include_resolved: boolean;
2202
+ prepared_count: number;
2203
+ };
2204
+ apply: {
2205
+ artifact_id: string | null;
2206
+ attempted: boolean;
2207
+ accepted_count: number;
2208
+ rejected_count: number;
2209
+ };
2210
+ confidence_policy: {
2211
+ calibrated: boolean;
2212
+ meaning: string;
2213
+ rule_priority_over_llm: boolean;
2214
+ llm_acceptance_threshold: number;
2215
+ };
2216
+ };
2217
+ } | undefined;
2218
+ warnings?: string[] | undefined;
2219
+ errors?: string[] | undefined;
2220
+ artifacts?: any[] | undefined;
2221
+ }, {
2222
+ ok: boolean;
2223
+ metrics?: {
2224
+ elapsed_ms: number;
2225
+ tool: string;
2226
+ } | undefined;
2227
+ data?: {
2228
+ sample_id: string;
2229
+ export: {
2230
+ status: "failed" | "completed" | "skipped";
2231
+ notes: string[];
2232
+ provenance: {
2233
+ runtime: {
2234
+ artifact_count: number;
2235
+ scope_note: string;
2236
+ artifact_ids: string[];
2237
+ session_selector: string | null;
2238
+ session_tags: string[];
2239
+ scope: "all" | "latest" | "session";
2240
+ earliest_artifact_at: string | null;
2241
+ latest_artifact_at: string | null;
2242
+ };
2243
+ semantic_names?: {
2244
+ artifact_count: number;
2245
+ scope_note: string;
2246
+ artifact_ids: string[];
2247
+ session_selector: string | null;
2248
+ session_tags: string[];
2249
+ scope: "all" | "latest" | "session";
2250
+ earliest_artifact_at: string | null;
2251
+ latest_artifact_at: string | null;
2252
+ } | undefined;
2253
+ semantic_explanations?: {
2254
+ artifact_count: number;
2255
+ scope_note: string;
2256
+ artifact_ids: string[];
2257
+ session_selector: string | null;
2258
+ session_tags: string[];
2259
+ scope: "all" | "latest" | "session";
2260
+ earliest_artifact_at: string | null;
2261
+ latest_artifact_at: string | null;
2262
+ } | undefined;
2263
+ } | null;
2264
+ attempted: boolean;
2265
+ export_root: string | null;
2266
+ manifest_path: string | null;
2267
+ build_validation_status: string | null;
2268
+ harness_validation_status: string | null;
2269
+ selected_path: "dotnet" | "native" | null;
2270
+ selection_diffs: {
2271
+ runtime?: {
2272
+ summary: string;
2273
+ baseline: {
2274
+ artifact_count: number;
2275
+ scope_note: string;
2276
+ artifact_ids: string[];
2277
+ session_selector: string | null;
2278
+ session_tags: string[];
2279
+ scope: "all" | "latest" | "session";
2280
+ earliest_artifact_at: string | null;
2281
+ latest_artifact_at: string | null;
2282
+ };
2283
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2284
+ current: {
2285
+ artifact_count: number;
2286
+ scope_note: string;
2287
+ artifact_ids: string[];
2288
+ session_selector: string | null;
2289
+ session_tags: string[];
2290
+ scope: "all" | "latest" | "session";
2291
+ earliest_artifact_at: string | null;
2292
+ latest_artifact_at: string | null;
2293
+ };
2294
+ added_artifact_ids: string[];
2295
+ removed_artifact_ids: string[];
2296
+ added_session_tags: string[];
2297
+ removed_session_tags: string[];
2298
+ artifact_count_delta: number;
2299
+ } | undefined;
2300
+ semantic_names?: {
2301
+ summary: string;
2302
+ baseline: {
2303
+ artifact_count: number;
2304
+ scope_note: string;
2305
+ artifact_ids: string[];
2306
+ session_selector: string | null;
2307
+ session_tags: string[];
2308
+ scope: "all" | "latest" | "session";
2309
+ earliest_artifact_at: string | null;
2310
+ latest_artifact_at: string | null;
2311
+ };
2312
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2313
+ current: {
2314
+ artifact_count: number;
2315
+ scope_note: string;
2316
+ artifact_ids: string[];
2317
+ session_selector: string | null;
2318
+ session_tags: string[];
2319
+ scope: "all" | "latest" | "session";
2320
+ earliest_artifact_at: string | null;
2321
+ latest_artifact_at: string | null;
2322
+ };
2323
+ added_artifact_ids: string[];
2324
+ removed_artifact_ids: string[];
2325
+ added_session_tags: string[];
2326
+ removed_session_tags: string[];
2327
+ artifact_count_delta: number;
2328
+ } | undefined;
2329
+ semantic_explanations?: {
2330
+ summary: string;
2331
+ baseline: {
2332
+ artifact_count: number;
2333
+ scope_note: string;
2334
+ artifact_ids: string[];
2335
+ session_selector: string | null;
2336
+ session_tags: string[];
2337
+ scope: "all" | "latest" | "session";
2338
+ earliest_artifact_at: string | null;
2339
+ latest_artifact_at: string | null;
2340
+ };
2341
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2342
+ current: {
2343
+ artifact_count: number;
2344
+ scope_note: string;
2345
+ artifact_ids: string[];
2346
+ session_selector: string | null;
2347
+ session_tags: string[];
2348
+ scope: "all" | "latest" | "session";
2349
+ earliest_artifact_at: string | null;
2350
+ latest_artifact_at: string | null;
2351
+ };
2352
+ added_artifact_ids: string[];
2353
+ removed_artifact_ids: string[];
2354
+ added_session_tags: string[];
2355
+ removed_session_tags: string[];
2356
+ artifact_count_delta: number;
2357
+ } | undefined;
2358
+ } | null;
2359
+ export_tool: string | null;
2360
+ };
2361
+ next_steps: string[];
2362
+ review: {
2363
+ sampling: {
2364
+ model: string | null;
2365
+ attempted: boolean;
2366
+ stop_reason: string | null;
2367
+ parsed_suggestion_count: number;
2368
+ };
2369
+ reconstruct: {
2370
+ functions: {
2371
+ function: string;
2372
+ address: string;
2373
+ validated_name: string | null;
2374
+ resolution_source: string | null;
2375
+ }[];
2376
+ reconstructed_count: number;
2377
+ attempted: boolean;
2378
+ llm_or_hybrid_count: number;
2379
+ };
2380
+ client: {
2381
+ name: string | null;
2382
+ version: string | null;
2383
+ sampling_available: boolean;
2384
+ };
2385
+ prompt_name: string;
2386
+ review_status: string;
2387
+ prepare: {
2388
+ artifact_id: string | null;
2389
+ unresolved_count: number;
2390
+ include_resolved: boolean;
2391
+ prepared_count: number;
2392
+ };
2393
+ apply: {
2394
+ artifact_id: string | null;
2395
+ attempted: boolean;
2396
+ accepted_count: number;
2397
+ rejected_count: number;
2398
+ };
2399
+ confidence_policy: {
2400
+ calibrated: boolean;
2401
+ meaning: string;
2402
+ rule_priority_over_llm: boolean;
2403
+ llm_acceptance_threshold: number;
2404
+ };
2405
+ };
2406
+ } | undefined;
2407
+ warnings?: string[] | undefined;
2408
+ errors?: string[] | undefined;
2409
+ artifacts?: any[] | undefined;
2410
+ }>;
2411
+ export declare const semanticNameReviewWorkflowToolDefinition: ToolDefinition;
2412
+ interface SemanticNameReviewWorkflowDependencies {
2413
+ renameReviewHandler?: (args: ToolArgs) => Promise<WorkerResult>;
2414
+ reconstructWorkflowHandler?: (args: ToolArgs) => Promise<WorkerResult>;
2415
+ }
2416
+ export declare function createSemanticNameReviewWorkflowHandler(workspaceManager: WorkspaceManager, database: DatabaseManager, cacheManager: CacheManager, mcpServer?: MCPServer, dependencies?: SemanticNameReviewWorkflowDependencies): (args: ToolArgs) => Promise<WorkerResult>;
2417
+ export {};
2418
+ //# sourceMappingURL=semantic-name-review.d.ts.map