windows-exe-decompiler-mcp-server 0.1.0 → 0.1.3

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 (134) hide show
  1. package/CLAUDE_INSTALLATION.md +129 -0
  2. package/CODEX_INSTALLATION.md +25 -1
  3. package/COPILOT_INSTALLATION.md +29 -1
  4. package/LICENSE +21 -21
  5. package/README.md +232 -110
  6. package/dist/analysis-provenance.d.ts +50 -2
  7. package/dist/analysis-provenance.js +1 -0
  8. package/dist/analysis-task-runner.js +92 -0
  9. package/dist/config.d.ts +35 -16
  10. package/dist/config.js +37 -3
  11. package/dist/database.js +115 -115
  12. package/dist/decompiler-worker.d.ts +10 -5
  13. package/dist/decompiler-worker.js +240 -58
  14. package/dist/dynamic-trace.d.ts +6 -0
  15. package/dist/dynamic-trace.js +52 -1
  16. package/dist/ghidra-config.js +17 -1
  17. package/dist/index.js +38 -8
  18. package/dist/pe-runtime-functions.d.ts +90 -0
  19. package/dist/pe-runtime-functions.js +452 -0
  20. package/dist/prompts/module-reconstruction-review.d.ts +5 -0
  21. package/dist/prompts/module-reconstruction-review.js +65 -0
  22. package/dist/runtime-correlation.d.ts +5 -0
  23. package/dist/runtime-correlation.js +179 -2
  24. package/dist/sample-workspace.d.ts +28 -0
  25. package/dist/sample-workspace.js +186 -0
  26. package/dist/semantic-name-suggestion-artifacts.d.ts +56 -0
  27. package/dist/semantic-name-suggestion-artifacts.js +87 -0
  28. package/dist/server.js +1 -1
  29. package/dist/setup-guidance.d.ts +73 -0
  30. package/dist/setup-guidance.js +211 -0
  31. package/dist/tools/artifact-read.d.ts +10 -10
  32. package/dist/tools/artifacts-diff.d.ts +8 -8
  33. package/dist/tools/artifacts-list.d.ts +16 -16
  34. package/dist/tools/attack-map.d.ts +8 -8
  35. package/dist/tools/binary-role-profile.d.ts +1197 -0
  36. package/dist/tools/binary-role-profile.js +575 -0
  37. package/dist/tools/code-function-explain-apply.d.ts +12 -12
  38. package/dist/tools/code-function-explain-prepare.d.ts +12 -12
  39. package/dist/tools/code-function-explain-review.d.ts +58 -58
  40. package/dist/tools/code-function-rename-apply.d.ts +12 -12
  41. package/dist/tools/code-function-rename-prepare.d.ts +14 -14
  42. package/dist/tools/code-function-rename-review.d.ts +66 -66
  43. package/dist/tools/code-functions-define.d.ts +337 -0
  44. package/dist/tools/code-functions-define.js +337 -0
  45. package/dist/tools/code-functions-list.js +1 -1
  46. package/dist/tools/code-functions-rank.js +1 -1
  47. package/dist/tools/code-functions-reconstruct.d.ts +368 -58
  48. package/dist/tools/code-functions-reconstruct.js +130 -10
  49. package/dist/tools/code-functions-smart-recover.d.ts +352 -0
  50. package/dist/tools/code-functions-smart-recover.js +190 -0
  51. package/dist/tools/code-module-review-apply.d.ts +233 -0
  52. package/dist/tools/code-module-review-apply.js +209 -0
  53. package/dist/tools/code-module-review-prepare.d.ts +756 -0
  54. package/dist/tools/code-module-review-prepare.js +343 -0
  55. package/dist/tools/code-module-review.d.ts +474 -0
  56. package/dist/tools/code-module-review.js +566 -0
  57. package/dist/tools/code-reconstruct-export.d.ts +193 -21
  58. package/dist/tools/code-reconstruct-export.js +578 -21
  59. package/dist/tools/code-reconstruct-plan.d.ts +20 -20
  60. package/dist/tools/com-role-profile.d.ts +353 -0
  61. package/dist/tools/com-role-profile.js +186 -0
  62. package/dist/tools/dll-export-profile.d.ts +625 -0
  63. package/dist/tools/dll-export-profile.js +230 -0
  64. package/dist/tools/dotnet-metadata-extract.d.ts +122 -122
  65. package/dist/tools/dotnet-reconstruct-export.d.ts +49 -49
  66. package/dist/tools/dotnet-types-list.d.ts +66 -66
  67. package/dist/tools/dynamic-dependencies.d.ts +144 -8
  68. package/dist/tools/dynamic-dependencies.js +20 -1
  69. package/dist/tools/dynamic-memory-import.js +105 -2
  70. package/dist/tools/ghidra-analyze.d.ts +20 -0
  71. package/dist/tools/ghidra-analyze.js +10 -2
  72. package/dist/tools/ghidra-health.d.ts +177 -0
  73. package/dist/tools/ghidra-health.js +28 -0
  74. package/dist/tools/ioc-export.d.ts +8 -8
  75. package/dist/tools/packer-detect.d.ts +14 -14
  76. package/dist/tools/packer-detect.js +6 -9
  77. package/dist/tools/pe-exports-extract.d.ts +8 -8
  78. package/dist/tools/pe-exports-extract.js +6 -9
  79. package/dist/tools/pe-fingerprint.d.ts +36 -36
  80. package/dist/tools/pe-imports-extract.d.ts +8 -8
  81. package/dist/tools/pe-imports-extract.js +6 -9
  82. package/dist/tools/pe-pdata-extract.d.ts +448 -0
  83. package/dist/tools/pe-pdata-extract.js +219 -0
  84. package/dist/tools/pe-symbols-recover.d.ts +227 -0
  85. package/dist/tools/pe-symbols-recover.js +316 -0
  86. package/dist/tools/report-generate.d.ts +15 -1
  87. package/dist/tools/report-generate.js +139 -16
  88. package/dist/tools/report-summarize.d.ts +2242 -8
  89. package/dist/tools/report-summarize.js +246 -10
  90. package/dist/tools/runtime-detect.d.ts +8 -8
  91. package/dist/tools/runtime-detect.js +2 -12
  92. package/dist/tools/rust-binary-analyze.d.ts +2047 -0
  93. package/dist/tools/rust-binary-analyze.js +443 -0
  94. package/dist/tools/sample-profile-get.d.ts +135 -16
  95. package/dist/tools/sample-profile-get.js +35 -32
  96. package/dist/tools/sandbox-execute.d.ts +10 -10
  97. package/dist/tools/strings-extract.d.ts +8 -8
  98. package/dist/tools/strings-extract.js +2 -12
  99. package/dist/tools/strings-floss-decode.d.ts +8 -8
  100. package/dist/tools/system-health.d.ts +172 -36
  101. package/dist/tools/system-health.js +14 -0
  102. package/dist/tools/system-setup-guide.d.ts +179 -0
  103. package/dist/tools/system-setup-guide.js +62 -0
  104. package/dist/tools/tool-help.d.ts +16 -16
  105. package/dist/tools/tool-help.js +172 -0
  106. package/dist/tools/yara-scan.d.ts +8 -8
  107. package/dist/types.d.ts +2 -0
  108. package/dist/workflows/function-explanation-review.d.ts +3034 -76
  109. package/dist/workflows/function-explanation-review.js +172 -42
  110. package/dist/workflows/function-index-recover.d.ts +333 -0
  111. package/dist/workflows/function-index-recover.js +291 -0
  112. package/dist/workflows/module-reconstruction-review.d.ts +3537 -0
  113. package/dist/workflows/module-reconstruction-review.js +354 -0
  114. package/dist/workflows/reconstruct.d.ts +2182 -223
  115. package/dist/workflows/reconstruct.js +575 -32
  116. package/dist/workflows/semantic-name-review.d.ts +1436 -85
  117. package/dist/workflows/semantic-name-review.js +150 -58
  118. package/dist/workflows/triage.d.ts +8 -8
  119. package/ghidra_scripts/DecompileFunction.java +487 -487
  120. package/ghidra_scripts/ExtractCFG.java +256 -256
  121. package/ghidra_scripts/ExtractFunctions.java +442 -442
  122. package/ghidra_scripts/README.md +112 -112
  123. package/ghidra_scripts/SearchFunctionReferences.java +380 -380
  124. package/helpers/DotNetMetadataProbe/DotNetMetadataProbe.csproj +9 -9
  125. package/helpers/DotNetMetadataProbe/Program.cs +566 -566
  126. package/install-to-claude.ps1 +432 -0
  127. package/install-to-codex.ps1 +256 -178
  128. package/install-to-copilot.ps1 +389 -303
  129. package/package.json +4 -2
  130. package/requirements.txt +9 -9
  131. package/workers/requirements-dynamic.txt +11 -11
  132. package/workers/requirements.txt +8 -8
  133. package/workers/speakeasy_compat.py +175 -175
  134. package/workers/static_worker.py +3474 -3474
@@ -7,8 +7,9 @@ import type { ToolArgs, ToolDefinition, WorkerResult } from '../types.js';
7
7
  import type { WorkspaceManager } from '../workspace-manager.js';
8
8
  import type { DatabaseManager } from '../database.js';
9
9
  import type { CacheManager } from '../cache-manager.js';
10
+ import type { JobQueue } from '../job-queue.js';
10
11
  import type { MCPServer } from '../server.js';
11
- export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
12
+ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
12
13
  sample_id: z.ZodString;
13
14
  address: z.ZodOptional<z.ZodString>;
14
15
  symbol: z.ZodOptional<z.ZodString>;
@@ -21,6 +22,10 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
21
22
  evidence_session_tag: z.ZodOptional<z.ZodString>;
22
23
  semantic_scope: z.ZodDefault<z.ZodEnum<["all", "latest", "session"]>>;
23
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>;
24
29
  persist_artifact: z.ZodDefault<z.ZodBoolean>;
25
30
  auto_apply: z.ZodDefault<z.ZodBoolean>;
26
31
  temperature: z.ZodDefault<z.ZodNumber>;
@@ -35,6 +40,8 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
35
40
  export_path: z.ZodDefault<z.ZodEnum<["auto", "native", "dotnet"]>>;
36
41
  export_topk: z.ZodDefault<z.ZodNumber>;
37
42
  export_name: z.ZodOptional<z.ZodString>;
43
+ include_preflight: z.ZodDefault<z.ZodBoolean>;
44
+ auto_recover_function_index: z.ZodDefault<z.ZodBoolean>;
38
45
  include_plan: z.ZodDefault<z.ZodBoolean>;
39
46
  include_obfuscation_fallback: z.ZodDefault<z.ZodBoolean>;
40
47
  fallback_on_error: z.ZodDefault<z.ZodBoolean>;
@@ -48,7 +55,6 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
48
55
  }, "strip", z.ZodTypeAny, {
49
56
  sample_id: string;
50
57
  evidence_scope: "all" | "latest" | "session";
51
- temperature: number;
52
58
  topk: number;
53
59
  semantic_scope: "all" | "latest" | "session";
54
60
  validate_build: boolean;
@@ -57,13 +63,16 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
57
63
  run_timeout_ms: number;
58
64
  reuse_cached: boolean;
59
65
  include_obfuscation_fallback: boolean;
66
+ persist_artifact: boolean;
67
+ include_preflight: boolean;
68
+ auto_recover_function_index: boolean;
60
69
  include_plan: boolean;
61
70
  fallback_on_error: boolean;
62
71
  allow_partial: boolean;
72
+ temperature: number;
63
73
  analysis_goal: string;
64
74
  include_resolved: boolean;
65
75
  max_functions: number;
66
- persist_artifact: boolean;
67
76
  auto_apply: boolean;
68
77
  max_tokens: number;
69
78
  include_context: "none" | "thisServer" | "allServers";
@@ -80,6 +89,10 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
80
89
  semantic_session_tag?: string | undefined;
81
90
  export_name?: string | undefined;
82
91
  compiler_path?: string | undefined;
92
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
93
+ compare_evidence_session_tag?: string | undefined;
94
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
95
+ compare_semantic_session_tag?: string | undefined;
83
96
  model_hint?: string | undefined;
84
97
  system_prompt?: string | undefined;
85
98
  }, {
@@ -88,7 +101,6 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
88
101
  address?: string | undefined;
89
102
  session_tag?: string | undefined;
90
103
  evidence_scope?: "all" | "latest" | "session" | undefined;
91
- temperature?: number | undefined;
92
104
  topk?: number | undefined;
93
105
  evidence_session_tag?: string | undefined;
94
106
  semantic_scope?: "all" | "latest" | "session" | undefined;
@@ -101,13 +113,20 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
101
113
  run_timeout_ms?: number | undefined;
102
114
  reuse_cached?: boolean | undefined;
103
115
  include_obfuscation_fallback?: boolean | undefined;
116
+ persist_artifact?: boolean | undefined;
117
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
118
+ compare_evidence_session_tag?: string | undefined;
119
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
120
+ compare_semantic_session_tag?: string | undefined;
121
+ include_preflight?: boolean | undefined;
122
+ auto_recover_function_index?: boolean | undefined;
104
123
  include_plan?: boolean | undefined;
105
124
  fallback_on_error?: boolean | undefined;
106
125
  allow_partial?: boolean | undefined;
126
+ temperature?: number | undefined;
107
127
  analysis_goal?: string | undefined;
108
128
  include_resolved?: boolean | undefined;
109
129
  max_functions?: number | undefined;
110
- persist_artifact?: boolean | undefined;
111
130
  auto_apply?: boolean | undefined;
112
131
  max_tokens?: number | undefined;
113
132
  include_context?: "none" | "thisServer" | "allServers" | undefined;
@@ -122,7 +141,6 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
122
141
  }>, {
123
142
  sample_id: string;
124
143
  evidence_scope: "all" | "latest" | "session";
125
- temperature: number;
126
144
  topk: number;
127
145
  semantic_scope: "all" | "latest" | "session";
128
146
  validate_build: boolean;
@@ -131,13 +149,16 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
131
149
  run_timeout_ms: number;
132
150
  reuse_cached: boolean;
133
151
  include_obfuscation_fallback: boolean;
152
+ persist_artifact: boolean;
153
+ include_preflight: boolean;
154
+ auto_recover_function_index: boolean;
134
155
  include_plan: boolean;
135
156
  fallback_on_error: boolean;
136
157
  allow_partial: boolean;
158
+ temperature: number;
137
159
  analysis_goal: string;
138
160
  include_resolved: boolean;
139
161
  max_functions: number;
140
- persist_artifact: boolean;
141
162
  auto_apply: boolean;
142
163
  max_tokens: number;
143
164
  include_context: "none" | "thisServer" | "allServers";
@@ -154,6 +175,10 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
154
175
  semantic_session_tag?: string | undefined;
155
176
  export_name?: string | undefined;
156
177
  compiler_path?: string | undefined;
178
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
179
+ compare_evidence_session_tag?: string | undefined;
180
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
181
+ compare_semantic_session_tag?: string | undefined;
157
182
  model_hint?: string | undefined;
158
183
  system_prompt?: string | undefined;
159
184
  }, {
@@ -162,7 +187,6 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
162
187
  address?: string | undefined;
163
188
  session_tag?: string | undefined;
164
189
  evidence_scope?: "all" | "latest" | "session" | undefined;
165
- temperature?: number | undefined;
166
190
  topk?: number | undefined;
167
191
  evidence_session_tag?: string | undefined;
168
192
  semantic_scope?: "all" | "latest" | "session" | undefined;
@@ -175,13 +199,20 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
175
199
  run_timeout_ms?: number | undefined;
176
200
  reuse_cached?: boolean | undefined;
177
201
  include_obfuscation_fallback?: boolean | undefined;
202
+ persist_artifact?: boolean | undefined;
203
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
204
+ compare_evidence_session_tag?: string | undefined;
205
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
206
+ compare_semantic_session_tag?: string | undefined;
207
+ include_preflight?: boolean | undefined;
208
+ auto_recover_function_index?: boolean | undefined;
178
209
  include_plan?: boolean | undefined;
179
210
  fallback_on_error?: boolean | undefined;
180
211
  allow_partial?: boolean | undefined;
212
+ temperature?: number | undefined;
181
213
  analysis_goal?: string | undefined;
182
214
  include_resolved?: boolean | undefined;
183
215
  max_functions?: number | undefined;
184
- persist_artifact?: boolean | undefined;
185
216
  auto_apply?: boolean | undefined;
186
217
  max_tokens?: number | undefined;
187
218
  include_context?: "none" | "thisServer" | "allServers" | undefined;
@@ -196,7 +227,6 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
196
227
  }>, {
197
228
  sample_id: string;
198
229
  evidence_scope: "all" | "latest" | "session";
199
- temperature: number;
200
230
  topk: number;
201
231
  semantic_scope: "all" | "latest" | "session";
202
232
  validate_build: boolean;
@@ -205,13 +235,16 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
205
235
  run_timeout_ms: number;
206
236
  reuse_cached: boolean;
207
237
  include_obfuscation_fallback: boolean;
238
+ persist_artifact: boolean;
239
+ include_preflight: boolean;
240
+ auto_recover_function_index: boolean;
208
241
  include_plan: boolean;
209
242
  fallback_on_error: boolean;
210
243
  allow_partial: boolean;
244
+ temperature: number;
211
245
  analysis_goal: string;
212
246
  include_resolved: boolean;
213
247
  max_functions: number;
214
- persist_artifact: boolean;
215
248
  auto_apply: boolean;
216
249
  max_tokens: number;
217
250
  include_context: "none" | "thisServer" | "allServers";
@@ -228,6 +261,10 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
228
261
  semantic_session_tag?: string | undefined;
229
262
  export_name?: string | undefined;
230
263
  compiler_path?: string | undefined;
264
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
265
+ compare_evidence_session_tag?: string | undefined;
266
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
267
+ compare_semantic_session_tag?: string | undefined;
231
268
  model_hint?: string | undefined;
232
269
  system_prompt?: string | undefined;
233
270
  }, {
@@ -236,7 +273,92 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
236
273
  address?: string | undefined;
237
274
  session_tag?: string | undefined;
238
275
  evidence_scope?: "all" | "latest" | "session" | 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
+ persist_artifact?: boolean | undefined;
289
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
290
+ compare_evidence_session_tag?: string | undefined;
291
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
292
+ compare_semantic_session_tag?: string | undefined;
293
+ include_preflight?: boolean | undefined;
294
+ auto_recover_function_index?: boolean | undefined;
295
+ include_plan?: boolean | undefined;
296
+ fallback_on_error?: boolean | undefined;
297
+ allow_partial?: boolean | undefined;
239
298
  temperature?: number | undefined;
299
+ analysis_goal?: string | undefined;
300
+ include_resolved?: boolean | undefined;
301
+ max_functions?: number | undefined;
302
+ auto_apply?: boolean | undefined;
303
+ max_tokens?: number | undefined;
304
+ include_context?: "none" | "thisServer" | "allServers" | undefined;
305
+ model_hint?: string | undefined;
306
+ cost_priority?: number | undefined;
307
+ speed_priority?: number | undefined;
308
+ intelligence_priority?: number | undefined;
309
+ system_prompt?: string | undefined;
310
+ rerun_export?: boolean | undefined;
311
+ export_path?: "dotnet" | "native" | "auto" | undefined;
312
+ export_topk?: number | undefined;
313
+ }>, {
314
+ sample_id: string;
315
+ evidence_scope: "all" | "latest" | "session";
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
+ persist_artifact: boolean;
325
+ include_preflight: boolean;
326
+ auto_recover_function_index: boolean;
327
+ include_plan: boolean;
328
+ fallback_on_error: boolean;
329
+ allow_partial: boolean;
330
+ temperature: number;
331
+ analysis_goal: string;
332
+ include_resolved: boolean;
333
+ max_functions: number;
334
+ auto_apply: boolean;
335
+ max_tokens: number;
336
+ include_context: "none" | "thisServer" | "allServers";
337
+ cost_priority: number;
338
+ speed_priority: number;
339
+ intelligence_priority: number;
340
+ rerun_export: boolean;
341
+ export_path: "dotnet" | "native" | "auto";
342
+ export_topk: number;
343
+ symbol?: string | undefined;
344
+ address?: string | undefined;
345
+ session_tag?: string | undefined;
346
+ evidence_session_tag?: string | undefined;
347
+ semantic_session_tag?: string | undefined;
348
+ export_name?: string | undefined;
349
+ compiler_path?: string | undefined;
350
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
351
+ compare_evidence_session_tag?: string | undefined;
352
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
353
+ compare_semantic_session_tag?: string | undefined;
354
+ model_hint?: string | undefined;
355
+ system_prompt?: string | undefined;
356
+ }, {
357
+ sample_id: string;
358
+ symbol?: string | undefined;
359
+ address?: string | undefined;
360
+ session_tag?: string | undefined;
361
+ evidence_scope?: "all" | "latest" | "session" | undefined;
240
362
  topk?: number | undefined;
241
363
  evidence_session_tag?: string | undefined;
242
364
  semantic_scope?: "all" | "latest" | "session" | undefined;
@@ -249,13 +371,106 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
249
371
  run_timeout_ms?: number | undefined;
250
372
  reuse_cached?: boolean | undefined;
251
373
  include_obfuscation_fallback?: boolean | undefined;
374
+ persist_artifact?: boolean | undefined;
375
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
376
+ compare_evidence_session_tag?: string | undefined;
377
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
378
+ compare_semantic_session_tag?: string | undefined;
379
+ include_preflight?: boolean | undefined;
380
+ auto_recover_function_index?: boolean | undefined;
252
381
  include_plan?: boolean | undefined;
253
382
  fallback_on_error?: boolean | undefined;
254
383
  allow_partial?: boolean | undefined;
384
+ temperature?: number | undefined;
255
385
  analysis_goal?: string | undefined;
256
386
  include_resolved?: boolean | undefined;
257
387
  max_functions?: number | undefined;
388
+ auto_apply?: boolean | undefined;
389
+ max_tokens?: number | undefined;
390
+ include_context?: "none" | "thisServer" | "allServers" | undefined;
391
+ model_hint?: string | undefined;
392
+ cost_priority?: number | undefined;
393
+ speed_priority?: number | undefined;
394
+ intelligence_priority?: number | undefined;
395
+ system_prompt?: string | undefined;
396
+ rerun_export?: boolean | undefined;
397
+ export_path?: "dotnet" | "native" | "auto" | undefined;
398
+ export_topk?: number | undefined;
399
+ }>, {
400
+ sample_id: string;
401
+ evidence_scope: "all" | "latest" | "session";
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
+ persist_artifact: boolean;
411
+ include_preflight: boolean;
412
+ auto_recover_function_index: boolean;
413
+ include_plan: boolean;
414
+ fallback_on_error: boolean;
415
+ allow_partial: boolean;
416
+ temperature: number;
417
+ analysis_goal: string;
418
+ include_resolved: boolean;
419
+ max_functions: number;
420
+ auto_apply: boolean;
421
+ max_tokens: number;
422
+ include_context: "none" | "thisServer" | "allServers";
423
+ cost_priority: number;
424
+ speed_priority: number;
425
+ intelligence_priority: number;
426
+ rerun_export: boolean;
427
+ export_path: "dotnet" | "native" | "auto";
428
+ export_topk: number;
429
+ symbol?: string | undefined;
430
+ address?: string | undefined;
431
+ session_tag?: string | undefined;
432
+ evidence_session_tag?: string | undefined;
433
+ semantic_session_tag?: string | undefined;
434
+ export_name?: string | undefined;
435
+ compiler_path?: string | undefined;
436
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
437
+ compare_evidence_session_tag?: string | undefined;
438
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
439
+ compare_semantic_session_tag?: string | undefined;
440
+ model_hint?: string | undefined;
441
+ system_prompt?: string | undefined;
442
+ }, {
443
+ sample_id: string;
444
+ symbol?: string | undefined;
445
+ address?: string | undefined;
446
+ session_tag?: string | undefined;
447
+ evidence_scope?: "all" | "latest" | "session" | 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;
258
460
  persist_artifact?: boolean | undefined;
461
+ compare_evidence_scope?: "all" | "latest" | "session" | undefined;
462
+ compare_evidence_session_tag?: string | undefined;
463
+ compare_semantic_scope?: "all" | "latest" | "session" | undefined;
464
+ compare_semantic_session_tag?: string | undefined;
465
+ include_preflight?: boolean | undefined;
466
+ auto_recover_function_index?: boolean | undefined;
467
+ include_plan?: boolean | undefined;
468
+ fallback_on_error?: boolean | undefined;
469
+ allow_partial?: boolean | undefined;
470
+ temperature?: number | undefined;
471
+ analysis_goal?: string | undefined;
472
+ include_resolved?: boolean | undefined;
473
+ max_functions?: number | undefined;
259
474
  auto_apply?: boolean | undefined;
260
475
  max_tokens?: number | undefined;
261
476
  include_context?: "none" | "thisServer" | "allServers" | undefined;
@@ -270,7 +485,25 @@ export declare const functionExplanationReviewWorkflowInputSchema: z.ZodEffects<
270
485
  }>;
271
486
  export declare const functionExplanationReviewWorkflowOutputSchema: z.ZodObject<{
272
487
  ok: z.ZodBoolean;
273
- data: z.ZodOptional<z.ZodObject<{
488
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
489
+ job_id: z.ZodString;
490
+ status: z.ZodLiteral<"queued">;
491
+ tool: z.ZodLiteral<"workflow.function_explanation_review">;
492
+ sample_id: z.ZodString;
493
+ progress: z.ZodNumber;
494
+ }, "strip", z.ZodTypeAny, {
495
+ status: "queued";
496
+ sample_id: string;
497
+ tool: "workflow.function_explanation_review";
498
+ progress: number;
499
+ job_id: string;
500
+ }, {
501
+ status: "queued";
502
+ sample_id: string;
503
+ tool: "workflow.function_explanation_review";
504
+ progress: number;
505
+ job_id: string;
506
+ }>, z.ZodObject<{
274
507
  sample_id: z.ZodString;
275
508
  review: z.ZodObject<{
276
509
  review_status: z.ZodString;
@@ -292,11 +525,11 @@ export declare const functionExplanationReviewWorkflowOutputSchema: z.ZodObject<
292
525
  prepared_count: z.ZodNumber;
293
526
  artifact_id: z.ZodNullable<z.ZodString>;
294
527
  }, "strip", z.ZodTypeAny, {
295
- artifact_id: string | null;
296
528
  prepared_count: number;
297
- }, {
298
529
  artifact_id: string | null;
530
+ }, {
299
531
  prepared_count: number;
532
+ artifact_id: string | null;
300
533
  }>;
301
534
  sampling: z.ZodObject<{
302
535
  attempted: z.ZodBoolean;
@@ -304,13 +537,13 @@ export declare const functionExplanationReviewWorkflowOutputSchema: z.ZodObject<
304
537
  stop_reason: z.ZodNullable<z.ZodString>;
305
538
  parsed_explanation_count: z.ZodNumber;
306
539
  }, "strip", z.ZodTypeAny, {
307
- model: string | null;
308
540
  attempted: boolean;
541
+ model: string | null;
309
542
  stop_reason: string | null;
310
543
  parsed_explanation_count: number;
311
544
  }, {
312
- model: string | null;
313
545
  attempted: boolean;
546
+ model: string | null;
314
547
  stop_reason: string | null;
315
548
  parsed_explanation_count: number;
316
549
  }>;
@@ -320,15 +553,15 @@ export declare const functionExplanationReviewWorkflowOutputSchema: z.ZodObject<
320
553
  rejected_count: z.ZodNumber;
321
554
  artifact_id: z.ZodNullable<z.ZodString>;
322
555
  }, "strip", z.ZodTypeAny, {
323
- artifact_id: string | null;
324
556
  attempted: boolean;
325
557
  accepted_count: number;
326
558
  rejected_count: number;
327
- }, {
328
559
  artifact_id: string | null;
560
+ }, {
329
561
  attempted: boolean;
330
562
  accepted_count: number;
331
563
  rejected_count: number;
564
+ artifact_id: string | null;
332
565
  }>;
333
566
  confidence_policy: z.ZodObject<{
334
567
  calibrated: z.ZodBoolean;
@@ -344,28 +577,28 @@ export declare const functionExplanationReviewWorkflowOutputSchema: z.ZodObject<
344
577
  explanation_scores_are_heuristic: boolean;
345
578
  }>;
346
579
  }, "strip", z.ZodTypeAny, {
347
- sampling: {
348
- model: string | null;
349
- attempted: boolean;
350
- stop_reason: string | null;
351
- parsed_explanation_count: number;
352
- };
353
580
  client: {
354
581
  name: string | null;
355
582
  version: string | null;
356
583
  sampling_available: boolean;
357
584
  };
585
+ sampling: {
586
+ attempted: boolean;
587
+ model: string | null;
588
+ stop_reason: string | null;
589
+ parsed_explanation_count: number;
590
+ };
358
591
  prompt_name: string;
359
592
  review_status: string;
360
593
  prepare: {
361
- artifact_id: string | null;
362
594
  prepared_count: number;
595
+ artifact_id: string | null;
363
596
  };
364
597
  apply: {
365
- artifact_id: string | null;
366
598
  attempted: boolean;
367
599
  accepted_count: number;
368
600
  rejected_count: number;
601
+ artifact_id: string | null;
369
602
  };
370
603
  confidence_policy: {
371
604
  calibrated: boolean;
@@ -373,28 +606,28 @@ export declare const functionExplanationReviewWorkflowOutputSchema: z.ZodObject<
373
606
  explanation_scores_are_heuristic: boolean;
374
607
  };
375
608
  }, {
376
- sampling: {
377
- model: string | null;
378
- attempted: boolean;
379
- stop_reason: string | null;
380
- parsed_explanation_count: number;
381
- };
382
609
  client: {
383
610
  name: string | null;
384
611
  version: string | null;
385
612
  sampling_available: boolean;
386
613
  };
614
+ sampling: {
615
+ attempted: boolean;
616
+ model: string | null;
617
+ stop_reason: string | null;
618
+ parsed_explanation_count: number;
619
+ };
387
620
  prompt_name: string;
388
621
  review_status: string;
389
622
  prepare: {
390
- artifact_id: string | null;
391
623
  prepared_count: number;
624
+ artifact_id: string | null;
392
625
  };
393
626
  apply: {
394
- artifact_id: string | null;
395
627
  attempted: boolean;
396
628
  accepted_count: number;
397
629
  rejected_count: number;
630
+ artifact_id: string | null;
398
631
  };
399
632
  confidence_policy: {
400
633
  calibrated: boolean;
@@ -411,26 +644,1775 @@ export declare const functionExplanationReviewWorkflowOutputSchema: z.ZodObject<
411
644
  manifest_path: z.ZodNullable<z.ZodString>;
412
645
  build_validation_status: z.ZodNullable<z.ZodString>;
413
646
  harness_validation_status: z.ZodNullable<z.ZodString>;
647
+ preflight: z.ZodNullable<z.ZodObject<{
648
+ binary_profile: z.ZodNullable<z.ZodObject<{
649
+ sample_id: z.ZodString;
650
+ original_filename: z.ZodNullable<z.ZodString>;
651
+ binary_role: z.ZodString;
652
+ role_confidence: z.ZodNumber;
653
+ runtime_hint: z.ZodObject<{
654
+ is_dotnet: z.ZodNullable<z.ZodBoolean>;
655
+ dotnet_version: z.ZodNullable<z.ZodString>;
656
+ target_framework: z.ZodNullable<z.ZodString>;
657
+ primary_runtime: z.ZodNullable<z.ZodString>;
658
+ }, "strip", z.ZodTypeAny, {
659
+ is_dotnet: boolean | null;
660
+ dotnet_version: string | null;
661
+ target_framework: string | null;
662
+ primary_runtime: string | null;
663
+ }, {
664
+ is_dotnet: boolean | null;
665
+ dotnet_version: string | null;
666
+ target_framework: string | null;
667
+ primary_runtime: string | null;
668
+ }>;
669
+ export_surface: z.ZodObject<{
670
+ total_exports: z.ZodNumber;
671
+ total_forwarders: z.ZodNumber;
672
+ notable_exports: z.ZodArray<z.ZodString, "many">;
673
+ com_related_exports: z.ZodArray<z.ZodString, "many">;
674
+ service_related_exports: z.ZodArray<z.ZodString, "many">;
675
+ plugin_related_exports: z.ZodArray<z.ZodString, "many">;
676
+ forwarded_exports: z.ZodArray<z.ZodString, "many">;
677
+ }, "strip", z.ZodTypeAny, {
678
+ total_exports: number;
679
+ total_forwarders: number;
680
+ notable_exports: string[];
681
+ com_related_exports: string[];
682
+ service_related_exports: string[];
683
+ plugin_related_exports: string[];
684
+ forwarded_exports: string[];
685
+ }, {
686
+ total_exports: number;
687
+ total_forwarders: number;
688
+ notable_exports: string[];
689
+ com_related_exports: string[];
690
+ service_related_exports: string[];
691
+ plugin_related_exports: string[];
692
+ forwarded_exports: string[];
693
+ }>;
694
+ import_surface: z.ZodObject<{
695
+ dll_count: z.ZodNumber;
696
+ notable_dlls: z.ZodArray<z.ZodString, "many">;
697
+ com_related_imports: z.ZodArray<z.ZodString, "many">;
698
+ service_related_imports: z.ZodArray<z.ZodString, "many">;
699
+ network_related_imports: z.ZodArray<z.ZodString, "many">;
700
+ process_related_imports: z.ZodArray<z.ZodString, "many">;
701
+ }, "strip", z.ZodTypeAny, {
702
+ dll_count: number;
703
+ notable_dlls: string[];
704
+ com_related_imports: string[];
705
+ service_related_imports: string[];
706
+ network_related_imports: string[];
707
+ process_related_imports: string[];
708
+ }, {
709
+ dll_count: number;
710
+ notable_dlls: string[];
711
+ com_related_imports: string[];
712
+ service_related_imports: string[];
713
+ network_related_imports: string[];
714
+ process_related_imports: string[];
715
+ }>;
716
+ packed: z.ZodBoolean;
717
+ packing_confidence: z.ZodNumber;
718
+ indicators: z.ZodObject<{
719
+ com_server: z.ZodObject<{
720
+ likely: z.ZodBoolean;
721
+ confidence: z.ZodNumber;
722
+ evidence: z.ZodArray<z.ZodString, "many">;
723
+ }, "strip", z.ZodTypeAny, {
724
+ confidence: number;
725
+ evidence: string[];
726
+ likely: boolean;
727
+ }, {
728
+ confidence: number;
729
+ evidence: string[];
730
+ likely: boolean;
731
+ }>;
732
+ service_binary: z.ZodObject<{
733
+ likely: z.ZodBoolean;
734
+ confidence: z.ZodNumber;
735
+ evidence: z.ZodArray<z.ZodString, "many">;
736
+ }, "strip", z.ZodTypeAny, {
737
+ confidence: number;
738
+ evidence: string[];
739
+ likely: boolean;
740
+ }, {
741
+ confidence: number;
742
+ evidence: string[];
743
+ likely: boolean;
744
+ }>;
745
+ plugin_binary: z.ZodObject<{
746
+ likely: z.ZodBoolean;
747
+ confidence: z.ZodNumber;
748
+ evidence: z.ZodArray<z.ZodString, "many">;
749
+ }, "strip", z.ZodTypeAny, {
750
+ confidence: number;
751
+ evidence: string[];
752
+ likely: boolean;
753
+ }, {
754
+ confidence: number;
755
+ evidence: string[];
756
+ likely: boolean;
757
+ }>;
758
+ driver_binary: z.ZodObject<{
759
+ likely: z.ZodBoolean;
760
+ confidence: z.ZodNumber;
761
+ evidence: z.ZodArray<z.ZodString, "many">;
762
+ }, "strip", z.ZodTypeAny, {
763
+ confidence: number;
764
+ evidence: string[];
765
+ likely: boolean;
766
+ }, {
767
+ confidence: number;
768
+ evidence: string[];
769
+ likely: boolean;
770
+ }>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ com_server: {
773
+ confidence: number;
774
+ evidence: string[];
775
+ likely: boolean;
776
+ };
777
+ service_binary: {
778
+ confidence: number;
779
+ evidence: string[];
780
+ likely: boolean;
781
+ };
782
+ plugin_binary: {
783
+ confidence: number;
784
+ evidence: string[];
785
+ likely: boolean;
786
+ };
787
+ driver_binary: {
788
+ confidence: number;
789
+ evidence: string[];
790
+ likely: boolean;
791
+ };
792
+ }, {
793
+ com_server: {
794
+ confidence: number;
795
+ evidence: string[];
796
+ likely: boolean;
797
+ };
798
+ service_binary: {
799
+ confidence: number;
800
+ evidence: string[];
801
+ likely: boolean;
802
+ };
803
+ plugin_binary: {
804
+ confidence: number;
805
+ evidence: string[];
806
+ likely: boolean;
807
+ };
808
+ driver_binary: {
809
+ confidence: number;
810
+ evidence: string[];
811
+ likely: boolean;
812
+ };
813
+ }>;
814
+ export_dispatch_profile: z.ZodObject<{
815
+ command_like_exports: z.ZodArray<z.ZodString, "many">;
816
+ callback_like_exports: z.ZodArray<z.ZodString, "many">;
817
+ registration_exports: z.ZodArray<z.ZodString, "many">;
818
+ ordinal_only_exports: z.ZodNumber;
819
+ likely_dispatch_model: z.ZodString;
820
+ confidence: z.ZodNumber;
821
+ }, "strip", z.ZodTypeAny, {
822
+ confidence: number;
823
+ command_like_exports: string[];
824
+ callback_like_exports: string[];
825
+ registration_exports: string[];
826
+ ordinal_only_exports: number;
827
+ likely_dispatch_model: string;
828
+ }, {
829
+ confidence: number;
830
+ command_like_exports: string[];
831
+ callback_like_exports: string[];
832
+ registration_exports: string[];
833
+ ordinal_only_exports: number;
834
+ likely_dispatch_model: string;
835
+ }>;
836
+ lifecycle_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
837
+ com_profile: z.ZodObject<{
838
+ clsid_strings: z.ZodArray<z.ZodString, "many">;
839
+ progid_strings: z.ZodArray<z.ZodString, "many">;
840
+ interface_hints: z.ZodArray<z.ZodString, "many">;
841
+ registration_strings: z.ZodArray<z.ZodString, "many">;
842
+ class_factory_exports: z.ZodArray<z.ZodString, "many">;
843
+ class_factory_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
844
+ confidence: z.ZodNumber;
845
+ }, "strip", z.ZodTypeAny, {
846
+ confidence: number;
847
+ clsid_strings: string[];
848
+ progid_strings: string[];
849
+ interface_hints: string[];
850
+ registration_strings: string[];
851
+ class_factory_exports: string[];
852
+ class_factory_surface: string[];
853
+ }, {
854
+ confidence: number;
855
+ clsid_strings: string[];
856
+ progid_strings: string[];
857
+ interface_hints: string[];
858
+ registration_strings: string[];
859
+ class_factory_exports: string[];
860
+ class_factory_surface?: string[] | undefined;
861
+ }>;
862
+ host_interaction_profile: z.ZodObject<{
863
+ likely_hosted: z.ZodBoolean;
864
+ host_hints: z.ZodArray<z.ZodString, "many">;
865
+ callback_exports: z.ZodArray<z.ZodString, "many">;
866
+ callback_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
867
+ callback_strings: z.ZodArray<z.ZodString, "many">;
868
+ service_hooks: z.ZodArray<z.ZodString, "many">;
869
+ confidence: z.ZodNumber;
870
+ }, "strip", z.ZodTypeAny, {
871
+ confidence: number;
872
+ callback_surface: string[];
873
+ likely_hosted: boolean;
874
+ host_hints: string[];
875
+ callback_exports: string[];
876
+ callback_strings: string[];
877
+ service_hooks: string[];
878
+ }, {
879
+ confidence: number;
880
+ likely_hosted: boolean;
881
+ host_hints: string[];
882
+ callback_exports: string[];
883
+ callback_strings: string[];
884
+ service_hooks: string[];
885
+ callback_surface?: string[] | undefined;
886
+ }>;
887
+ analysis_priorities: z.ZodArray<z.ZodString, "many">;
888
+ strings_considered: z.ZodNumber;
889
+ }, "strip", z.ZodTypeAny, {
890
+ sample_id: string;
891
+ indicators: {
892
+ com_server: {
893
+ confidence: number;
894
+ evidence: string[];
895
+ likely: boolean;
896
+ };
897
+ service_binary: {
898
+ confidence: number;
899
+ evidence: string[];
900
+ likely: boolean;
901
+ };
902
+ plugin_binary: {
903
+ confidence: number;
904
+ evidence: string[];
905
+ likely: boolean;
906
+ };
907
+ driver_binary: {
908
+ confidence: number;
909
+ evidence: string[];
910
+ likely: boolean;
911
+ };
912
+ };
913
+ export_surface: {
914
+ total_exports: number;
915
+ total_forwarders: number;
916
+ notable_exports: string[];
917
+ com_related_exports: string[];
918
+ service_related_exports: string[];
919
+ plugin_related_exports: string[];
920
+ forwarded_exports: string[];
921
+ };
922
+ packed: boolean;
923
+ binary_role: string;
924
+ original_filename: string | null;
925
+ packing_confidence: number;
926
+ analysis_priorities: string[];
927
+ role_confidence: number;
928
+ runtime_hint: {
929
+ is_dotnet: boolean | null;
930
+ dotnet_version: string | null;
931
+ target_framework: string | null;
932
+ primary_runtime: string | null;
933
+ };
934
+ import_surface: {
935
+ dll_count: number;
936
+ notable_dlls: string[];
937
+ com_related_imports: string[];
938
+ service_related_imports: string[];
939
+ network_related_imports: string[];
940
+ process_related_imports: string[];
941
+ };
942
+ export_dispatch_profile: {
943
+ confidence: number;
944
+ command_like_exports: string[];
945
+ callback_like_exports: string[];
946
+ registration_exports: string[];
947
+ ordinal_only_exports: number;
948
+ likely_dispatch_model: string;
949
+ };
950
+ lifecycle_surface: string[];
951
+ com_profile: {
952
+ confidence: number;
953
+ clsid_strings: string[];
954
+ progid_strings: string[];
955
+ interface_hints: string[];
956
+ registration_strings: string[];
957
+ class_factory_exports: string[];
958
+ class_factory_surface: string[];
959
+ };
960
+ host_interaction_profile: {
961
+ confidence: number;
962
+ callback_surface: string[];
963
+ likely_hosted: boolean;
964
+ host_hints: string[];
965
+ callback_exports: string[];
966
+ callback_strings: string[];
967
+ service_hooks: string[];
968
+ };
969
+ strings_considered: number;
970
+ }, {
971
+ sample_id: string;
972
+ indicators: {
973
+ com_server: {
974
+ confidence: number;
975
+ evidence: string[];
976
+ likely: boolean;
977
+ };
978
+ service_binary: {
979
+ confidence: number;
980
+ evidence: string[];
981
+ likely: boolean;
982
+ };
983
+ plugin_binary: {
984
+ confidence: number;
985
+ evidence: string[];
986
+ likely: boolean;
987
+ };
988
+ driver_binary: {
989
+ confidence: number;
990
+ evidence: string[];
991
+ likely: boolean;
992
+ };
993
+ };
994
+ export_surface: {
995
+ total_exports: number;
996
+ total_forwarders: number;
997
+ notable_exports: string[];
998
+ com_related_exports: string[];
999
+ service_related_exports: string[];
1000
+ plugin_related_exports: string[];
1001
+ forwarded_exports: string[];
1002
+ };
1003
+ packed: boolean;
1004
+ binary_role: string;
1005
+ original_filename: string | null;
1006
+ packing_confidence: number;
1007
+ analysis_priorities: string[];
1008
+ role_confidence: number;
1009
+ runtime_hint: {
1010
+ is_dotnet: boolean | null;
1011
+ dotnet_version: string | null;
1012
+ target_framework: string | null;
1013
+ primary_runtime: string | null;
1014
+ };
1015
+ import_surface: {
1016
+ dll_count: number;
1017
+ notable_dlls: string[];
1018
+ com_related_imports: string[];
1019
+ service_related_imports: string[];
1020
+ network_related_imports: string[];
1021
+ process_related_imports: string[];
1022
+ };
1023
+ export_dispatch_profile: {
1024
+ confidence: number;
1025
+ command_like_exports: string[];
1026
+ callback_like_exports: string[];
1027
+ registration_exports: string[];
1028
+ ordinal_only_exports: number;
1029
+ likely_dispatch_model: string;
1030
+ };
1031
+ com_profile: {
1032
+ confidence: number;
1033
+ clsid_strings: string[];
1034
+ progid_strings: string[];
1035
+ interface_hints: string[];
1036
+ registration_strings: string[];
1037
+ class_factory_exports: string[];
1038
+ class_factory_surface?: string[] | undefined;
1039
+ };
1040
+ host_interaction_profile: {
1041
+ confidence: number;
1042
+ likely_hosted: boolean;
1043
+ host_hints: string[];
1044
+ callback_exports: string[];
1045
+ callback_strings: string[];
1046
+ service_hooks: string[];
1047
+ callback_surface?: string[] | undefined;
1048
+ };
1049
+ strings_considered: number;
1050
+ lifecycle_surface?: string[] | undefined;
1051
+ }>>;
1052
+ rust_profile: z.ZodNullable<z.ZodAny>;
1053
+ function_index_recovery: z.ZodNullable<z.ZodAny>;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ binary_profile: {
1056
+ sample_id: string;
1057
+ indicators: {
1058
+ com_server: {
1059
+ confidence: number;
1060
+ evidence: string[];
1061
+ likely: boolean;
1062
+ };
1063
+ service_binary: {
1064
+ confidence: number;
1065
+ evidence: string[];
1066
+ likely: boolean;
1067
+ };
1068
+ plugin_binary: {
1069
+ confidence: number;
1070
+ evidence: string[];
1071
+ likely: boolean;
1072
+ };
1073
+ driver_binary: {
1074
+ confidence: number;
1075
+ evidence: string[];
1076
+ likely: boolean;
1077
+ };
1078
+ };
1079
+ export_surface: {
1080
+ total_exports: number;
1081
+ total_forwarders: number;
1082
+ notable_exports: string[];
1083
+ com_related_exports: string[];
1084
+ service_related_exports: string[];
1085
+ plugin_related_exports: string[];
1086
+ forwarded_exports: string[];
1087
+ };
1088
+ packed: boolean;
1089
+ binary_role: string;
1090
+ original_filename: string | null;
1091
+ packing_confidence: number;
1092
+ analysis_priorities: string[];
1093
+ role_confidence: number;
1094
+ runtime_hint: {
1095
+ is_dotnet: boolean | null;
1096
+ dotnet_version: string | null;
1097
+ target_framework: string | null;
1098
+ primary_runtime: string | null;
1099
+ };
1100
+ import_surface: {
1101
+ dll_count: number;
1102
+ notable_dlls: string[];
1103
+ com_related_imports: string[];
1104
+ service_related_imports: string[];
1105
+ network_related_imports: string[];
1106
+ process_related_imports: string[];
1107
+ };
1108
+ export_dispatch_profile: {
1109
+ confidence: number;
1110
+ command_like_exports: string[];
1111
+ callback_like_exports: string[];
1112
+ registration_exports: string[];
1113
+ ordinal_only_exports: number;
1114
+ likely_dispatch_model: string;
1115
+ };
1116
+ lifecycle_surface: string[];
1117
+ com_profile: {
1118
+ confidence: number;
1119
+ clsid_strings: string[];
1120
+ progid_strings: string[];
1121
+ interface_hints: string[];
1122
+ registration_strings: string[];
1123
+ class_factory_exports: string[];
1124
+ class_factory_surface: string[];
1125
+ };
1126
+ host_interaction_profile: {
1127
+ confidence: number;
1128
+ callback_surface: string[];
1129
+ likely_hosted: boolean;
1130
+ host_hints: string[];
1131
+ callback_exports: string[];
1132
+ callback_strings: string[];
1133
+ service_hooks: string[];
1134
+ };
1135
+ strings_considered: number;
1136
+ } | null;
1137
+ rust_profile?: any;
1138
+ function_index_recovery?: any;
1139
+ }, {
1140
+ binary_profile: {
1141
+ sample_id: string;
1142
+ indicators: {
1143
+ com_server: {
1144
+ confidence: number;
1145
+ evidence: string[];
1146
+ likely: boolean;
1147
+ };
1148
+ service_binary: {
1149
+ confidence: number;
1150
+ evidence: string[];
1151
+ likely: boolean;
1152
+ };
1153
+ plugin_binary: {
1154
+ confidence: number;
1155
+ evidence: string[];
1156
+ likely: boolean;
1157
+ };
1158
+ driver_binary: {
1159
+ confidence: number;
1160
+ evidence: string[];
1161
+ likely: boolean;
1162
+ };
1163
+ };
1164
+ export_surface: {
1165
+ total_exports: number;
1166
+ total_forwarders: number;
1167
+ notable_exports: string[];
1168
+ com_related_exports: string[];
1169
+ service_related_exports: string[];
1170
+ plugin_related_exports: string[];
1171
+ forwarded_exports: string[];
1172
+ };
1173
+ packed: boolean;
1174
+ binary_role: string;
1175
+ original_filename: string | null;
1176
+ packing_confidence: number;
1177
+ analysis_priorities: string[];
1178
+ role_confidence: number;
1179
+ runtime_hint: {
1180
+ is_dotnet: boolean | null;
1181
+ dotnet_version: string | null;
1182
+ target_framework: string | null;
1183
+ primary_runtime: string | null;
1184
+ };
1185
+ import_surface: {
1186
+ dll_count: number;
1187
+ notable_dlls: string[];
1188
+ com_related_imports: string[];
1189
+ service_related_imports: string[];
1190
+ network_related_imports: string[];
1191
+ process_related_imports: string[];
1192
+ };
1193
+ export_dispatch_profile: {
1194
+ confidence: number;
1195
+ command_like_exports: string[];
1196
+ callback_like_exports: string[];
1197
+ registration_exports: string[];
1198
+ ordinal_only_exports: number;
1199
+ likely_dispatch_model: string;
1200
+ };
1201
+ com_profile: {
1202
+ confidence: number;
1203
+ clsid_strings: string[];
1204
+ progid_strings: string[];
1205
+ interface_hints: string[];
1206
+ registration_strings: string[];
1207
+ class_factory_exports: string[];
1208
+ class_factory_surface?: string[] | undefined;
1209
+ };
1210
+ host_interaction_profile: {
1211
+ confidence: number;
1212
+ likely_hosted: boolean;
1213
+ host_hints: string[];
1214
+ callback_exports: string[];
1215
+ callback_strings: string[];
1216
+ service_hooks: string[];
1217
+ callback_surface?: string[] | undefined;
1218
+ };
1219
+ strings_considered: number;
1220
+ lifecycle_surface?: string[] | undefined;
1221
+ } | null;
1222
+ rust_profile?: any;
1223
+ function_index_recovery?: any;
1224
+ }>>;
1225
+ provenance: z.ZodNullable<z.ZodObject<{
1226
+ runtime: z.ZodObject<{
1227
+ scope: z.ZodEnum<["all", "latest", "session"]>;
1228
+ session_selector: z.ZodNullable<z.ZodString>;
1229
+ artifact_count: z.ZodNumber;
1230
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
1231
+ session_tags: z.ZodArray<z.ZodString, "many">;
1232
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
1233
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
1234
+ scope_note: z.ZodString;
1235
+ }, "strip", z.ZodTypeAny, {
1236
+ artifact_count: number;
1237
+ scope_note: string;
1238
+ artifact_ids: string[];
1239
+ session_selector: string | null;
1240
+ session_tags: string[];
1241
+ scope: "all" | "latest" | "session";
1242
+ earliest_artifact_at: string | null;
1243
+ latest_artifact_at: string | null;
1244
+ }, {
1245
+ artifact_count: number;
1246
+ scope_note: string;
1247
+ artifact_ids: string[];
1248
+ session_selector: string | null;
1249
+ session_tags: string[];
1250
+ scope: "all" | "latest" | "session";
1251
+ earliest_artifact_at: string | null;
1252
+ latest_artifact_at: string | null;
1253
+ }>;
1254
+ semantic_names: z.ZodOptional<z.ZodObject<{
1255
+ scope: z.ZodEnum<["all", "latest", "session"]>;
1256
+ session_selector: z.ZodNullable<z.ZodString>;
1257
+ artifact_count: z.ZodNumber;
1258
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
1259
+ session_tags: z.ZodArray<z.ZodString, "many">;
1260
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
1261
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
1262
+ scope_note: z.ZodString;
1263
+ }, "strip", z.ZodTypeAny, {
1264
+ artifact_count: number;
1265
+ scope_note: string;
1266
+ artifact_ids: string[];
1267
+ session_selector: string | null;
1268
+ session_tags: string[];
1269
+ scope: "all" | "latest" | "session";
1270
+ earliest_artifact_at: string | null;
1271
+ latest_artifact_at: string | null;
1272
+ }, {
1273
+ artifact_count: number;
1274
+ scope_note: string;
1275
+ artifact_ids: string[];
1276
+ session_selector: string | null;
1277
+ session_tags: string[];
1278
+ scope: "all" | "latest" | "session";
1279
+ earliest_artifact_at: string | null;
1280
+ latest_artifact_at: string | null;
1281
+ }>>;
1282
+ semantic_explanations: z.ZodOptional<z.ZodObject<{
1283
+ scope: z.ZodEnum<["all", "latest", "session"]>;
1284
+ session_selector: z.ZodNullable<z.ZodString>;
1285
+ artifact_count: z.ZodNumber;
1286
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
1287
+ session_tags: z.ZodArray<z.ZodString, "many">;
1288
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
1289
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
1290
+ scope_note: z.ZodString;
1291
+ }, "strip", z.ZodTypeAny, {
1292
+ artifact_count: number;
1293
+ scope_note: string;
1294
+ artifact_ids: string[];
1295
+ session_selector: string | null;
1296
+ session_tags: string[];
1297
+ scope: "all" | "latest" | "session";
1298
+ earliest_artifact_at: string | null;
1299
+ latest_artifact_at: string | null;
1300
+ }, {
1301
+ artifact_count: number;
1302
+ scope_note: string;
1303
+ artifact_ids: string[];
1304
+ session_selector: string | null;
1305
+ session_tags: string[];
1306
+ scope: "all" | "latest" | "session";
1307
+ earliest_artifact_at: string | null;
1308
+ latest_artifact_at: string | null;
1309
+ }>>;
1310
+ semantic_module_reviews: z.ZodOptional<z.ZodObject<{
1311
+ scope: z.ZodEnum<["all", "latest", "session"]>;
1312
+ session_selector: z.ZodNullable<z.ZodString>;
1313
+ artifact_count: z.ZodNumber;
1314
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
1315
+ session_tags: z.ZodArray<z.ZodString, "many">;
1316
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
1317
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
1318
+ scope_note: z.ZodString;
1319
+ }, "strip", z.ZodTypeAny, {
1320
+ artifact_count: number;
1321
+ scope_note: string;
1322
+ artifact_ids: string[];
1323
+ session_selector: string | null;
1324
+ session_tags: string[];
1325
+ scope: "all" | "latest" | "session";
1326
+ earliest_artifact_at: string | null;
1327
+ latest_artifact_at: string | null;
1328
+ }, {
1329
+ artifact_count: number;
1330
+ scope_note: string;
1331
+ artifact_ids: string[];
1332
+ session_selector: string | null;
1333
+ session_tags: string[];
1334
+ scope: "all" | "latest" | "session";
1335
+ earliest_artifact_at: string | null;
1336
+ latest_artifact_at: string | null;
1337
+ }>>;
1338
+ }, "strip", z.ZodTypeAny, {
1339
+ runtime: {
1340
+ artifact_count: number;
1341
+ scope_note: string;
1342
+ artifact_ids: string[];
1343
+ session_selector: string | null;
1344
+ session_tags: string[];
1345
+ scope: "all" | "latest" | "session";
1346
+ earliest_artifact_at: string | null;
1347
+ latest_artifact_at: string | null;
1348
+ };
1349
+ semantic_module_reviews?: {
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
+ } | undefined;
1359
+ semantic_names?: {
1360
+ artifact_count: number;
1361
+ scope_note: string;
1362
+ artifact_ids: string[];
1363
+ session_selector: string | null;
1364
+ session_tags: string[];
1365
+ scope: "all" | "latest" | "session";
1366
+ earliest_artifact_at: string | null;
1367
+ latest_artifact_at: string | null;
1368
+ } | undefined;
1369
+ semantic_explanations?: {
1370
+ artifact_count: number;
1371
+ scope_note: string;
1372
+ artifact_ids: string[];
1373
+ session_selector: string | null;
1374
+ session_tags: string[];
1375
+ scope: "all" | "latest" | "session";
1376
+ earliest_artifact_at: string | null;
1377
+ latest_artifact_at: string | null;
1378
+ } | undefined;
1379
+ }, {
1380
+ runtime: {
1381
+ artifact_count: number;
1382
+ scope_note: string;
1383
+ artifact_ids: string[];
1384
+ session_selector: string | null;
1385
+ session_tags: string[];
1386
+ scope: "all" | "latest" | "session";
1387
+ earliest_artifact_at: string | null;
1388
+ latest_artifact_at: string | null;
1389
+ };
1390
+ semantic_module_reviews?: {
1391
+ artifact_count: number;
1392
+ scope_note: string;
1393
+ artifact_ids: string[];
1394
+ session_selector: string | null;
1395
+ session_tags: string[];
1396
+ scope: "all" | "latest" | "session";
1397
+ earliest_artifact_at: string | null;
1398
+ latest_artifact_at: string | null;
1399
+ } | undefined;
1400
+ semantic_names?: {
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
+ } | undefined;
1410
+ semantic_explanations?: {
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
+ }>>;
1421
+ selection_diffs: z.ZodNullable<z.ZodObject<{
1422
+ runtime: z.ZodOptional<z.ZodObject<{
1423
+ label: z.ZodEnum<["runtime", "semantic_names", "semantic_explanations"]>;
1424
+ current: z.ZodObject<{
1425
+ scope: z.ZodEnum<["all", "latest", "session"]>;
1426
+ session_selector: z.ZodNullable<z.ZodString>;
1427
+ artifact_count: z.ZodNumber;
1428
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
1429
+ session_tags: z.ZodArray<z.ZodString, "many">;
1430
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
1431
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
1432
+ scope_note: z.ZodString;
1433
+ }, "strip", z.ZodTypeAny, {
1434
+ artifact_count: number;
1435
+ scope_note: string;
1436
+ artifact_ids: string[];
1437
+ session_selector: string | null;
1438
+ session_tags: string[];
1439
+ scope: "all" | "latest" | "session";
1440
+ earliest_artifact_at: string | null;
1441
+ latest_artifact_at: string | null;
1442
+ }, {
1443
+ artifact_count: number;
1444
+ scope_note: string;
1445
+ artifact_ids: string[];
1446
+ session_selector: string | null;
1447
+ session_tags: string[];
1448
+ scope: "all" | "latest" | "session";
1449
+ earliest_artifact_at: string | null;
1450
+ latest_artifact_at: string | null;
1451
+ }>;
1452
+ baseline: z.ZodObject<{
1453
+ scope: z.ZodEnum<["all", "latest", "session"]>;
1454
+ session_selector: z.ZodNullable<z.ZodString>;
1455
+ artifact_count: z.ZodNumber;
1456
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
1457
+ session_tags: z.ZodArray<z.ZodString, "many">;
1458
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
1459
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
1460
+ scope_note: z.ZodString;
1461
+ }, "strip", z.ZodTypeAny, {
1462
+ artifact_count: number;
1463
+ scope_note: string;
1464
+ artifact_ids: string[];
1465
+ session_selector: string | null;
1466
+ session_tags: string[];
1467
+ scope: "all" | "latest" | "session";
1468
+ earliest_artifact_at: string | null;
1469
+ latest_artifact_at: string | null;
1470
+ }, {
1471
+ artifact_count: number;
1472
+ scope_note: string;
1473
+ artifact_ids: string[];
1474
+ session_selector: string | null;
1475
+ session_tags: string[];
1476
+ scope: "all" | "latest" | "session";
1477
+ earliest_artifact_at: string | null;
1478
+ latest_artifact_at: string | null;
1479
+ }>;
1480
+ added_artifact_ids: z.ZodArray<z.ZodString, "many">;
1481
+ removed_artifact_ids: z.ZodArray<z.ZodString, "many">;
1482
+ added_session_tags: z.ZodArray<z.ZodString, "many">;
1483
+ removed_session_tags: z.ZodArray<z.ZodString, "many">;
1484
+ artifact_count_delta: z.ZodNumber;
1485
+ summary: z.ZodString;
1486
+ }, "strip", z.ZodTypeAny, {
1487
+ summary: string;
1488
+ baseline: {
1489
+ artifact_count: number;
1490
+ scope_note: string;
1491
+ artifact_ids: string[];
1492
+ session_selector: string | null;
1493
+ session_tags: string[];
1494
+ scope: "all" | "latest" | "session";
1495
+ earliest_artifact_at: string | null;
1496
+ latest_artifact_at: string | null;
1497
+ };
1498
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1499
+ current: {
1500
+ artifact_count: number;
1501
+ scope_note: string;
1502
+ artifact_ids: string[];
1503
+ session_selector: string | null;
1504
+ session_tags: string[];
1505
+ scope: "all" | "latest" | "session";
1506
+ earliest_artifact_at: string | null;
1507
+ latest_artifact_at: string | null;
1508
+ };
1509
+ added_artifact_ids: string[];
1510
+ removed_artifact_ids: string[];
1511
+ added_session_tags: string[];
1512
+ removed_session_tags: string[];
1513
+ artifact_count_delta: number;
1514
+ }, {
1515
+ summary: string;
1516
+ baseline: {
1517
+ artifact_count: number;
1518
+ scope_note: string;
1519
+ artifact_ids: string[];
1520
+ session_selector: string | null;
1521
+ session_tags: string[];
1522
+ scope: "all" | "latest" | "session";
1523
+ earliest_artifact_at: string | null;
1524
+ latest_artifact_at: string | null;
1525
+ };
1526
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1527
+ current: {
1528
+ artifact_count: number;
1529
+ scope_note: string;
1530
+ artifact_ids: string[];
1531
+ session_selector: string | null;
1532
+ session_tags: string[];
1533
+ scope: "all" | "latest" | "session";
1534
+ earliest_artifact_at: string | null;
1535
+ latest_artifact_at: string | null;
1536
+ };
1537
+ added_artifact_ids: string[];
1538
+ removed_artifact_ids: string[];
1539
+ added_session_tags: string[];
1540
+ removed_session_tags: string[];
1541
+ artifact_count_delta: number;
1542
+ }>>;
1543
+ semantic_names: z.ZodOptional<z.ZodObject<{
1544
+ label: z.ZodEnum<["runtime", "semantic_names", "semantic_explanations"]>;
1545
+ current: z.ZodObject<{
1546
+ scope: z.ZodEnum<["all", "latest", "session"]>;
1547
+ session_selector: z.ZodNullable<z.ZodString>;
1548
+ artifact_count: z.ZodNumber;
1549
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
1550
+ session_tags: z.ZodArray<z.ZodString, "many">;
1551
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
1552
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
1553
+ scope_note: z.ZodString;
1554
+ }, "strip", z.ZodTypeAny, {
1555
+ artifact_count: number;
1556
+ scope_note: string;
1557
+ artifact_ids: string[];
1558
+ session_selector: string | null;
1559
+ session_tags: string[];
1560
+ scope: "all" | "latest" | "session";
1561
+ earliest_artifact_at: string | null;
1562
+ latest_artifact_at: string | null;
1563
+ }, {
1564
+ artifact_count: number;
1565
+ scope_note: string;
1566
+ artifact_ids: string[];
1567
+ session_selector: string | null;
1568
+ session_tags: string[];
1569
+ scope: "all" | "latest" | "session";
1570
+ earliest_artifact_at: string | null;
1571
+ latest_artifact_at: string | null;
1572
+ }>;
1573
+ baseline: z.ZodObject<{
1574
+ scope: z.ZodEnum<["all", "latest", "session"]>;
1575
+ session_selector: z.ZodNullable<z.ZodString>;
1576
+ artifact_count: z.ZodNumber;
1577
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
1578
+ session_tags: z.ZodArray<z.ZodString, "many">;
1579
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
1580
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
1581
+ scope_note: z.ZodString;
1582
+ }, "strip", z.ZodTypeAny, {
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
+ artifact_count: number;
1593
+ scope_note: string;
1594
+ artifact_ids: string[];
1595
+ session_selector: string | null;
1596
+ session_tags: string[];
1597
+ scope: "all" | "latest" | "session";
1598
+ earliest_artifact_at: string | null;
1599
+ latest_artifact_at: string | null;
1600
+ }>;
1601
+ added_artifact_ids: z.ZodArray<z.ZodString, "many">;
1602
+ removed_artifact_ids: z.ZodArray<z.ZodString, "many">;
1603
+ added_session_tags: z.ZodArray<z.ZodString, "many">;
1604
+ removed_session_tags: z.ZodArray<z.ZodString, "many">;
1605
+ artifact_count_delta: z.ZodNumber;
1606
+ summary: z.ZodString;
1607
+ }, "strip", z.ZodTypeAny, {
1608
+ summary: string;
1609
+ baseline: {
1610
+ artifact_count: number;
1611
+ scope_note: string;
1612
+ artifact_ids: string[];
1613
+ session_selector: string | null;
1614
+ session_tags: string[];
1615
+ scope: "all" | "latest" | "session";
1616
+ earliest_artifact_at: string | null;
1617
+ latest_artifact_at: string | null;
1618
+ };
1619
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1620
+ current: {
1621
+ artifact_count: number;
1622
+ scope_note: string;
1623
+ artifact_ids: string[];
1624
+ session_selector: string | null;
1625
+ session_tags: string[];
1626
+ scope: "all" | "latest" | "session";
1627
+ earliest_artifact_at: string | null;
1628
+ latest_artifact_at: string | null;
1629
+ };
1630
+ added_artifact_ids: string[];
1631
+ removed_artifact_ids: string[];
1632
+ added_session_tags: string[];
1633
+ removed_session_tags: string[];
1634
+ artifact_count_delta: number;
1635
+ }, {
1636
+ summary: string;
1637
+ baseline: {
1638
+ artifact_count: number;
1639
+ scope_note: string;
1640
+ artifact_ids: string[];
1641
+ session_selector: string | null;
1642
+ session_tags: string[];
1643
+ scope: "all" | "latest" | "session";
1644
+ earliest_artifact_at: string | null;
1645
+ latest_artifact_at: string | null;
1646
+ };
1647
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1648
+ current: {
1649
+ artifact_count: number;
1650
+ scope_note: string;
1651
+ artifact_ids: string[];
1652
+ session_selector: string | null;
1653
+ session_tags: string[];
1654
+ scope: "all" | "latest" | "session";
1655
+ earliest_artifact_at: string | null;
1656
+ latest_artifact_at: string | null;
1657
+ };
1658
+ added_artifact_ids: string[];
1659
+ removed_artifact_ids: string[];
1660
+ added_session_tags: string[];
1661
+ removed_session_tags: string[];
1662
+ artifact_count_delta: number;
1663
+ }>>;
1664
+ semantic_explanations: z.ZodOptional<z.ZodObject<{
1665
+ label: z.ZodEnum<["runtime", "semantic_names", "semantic_explanations"]>;
1666
+ current: z.ZodObject<{
1667
+ scope: z.ZodEnum<["all", "latest", "session"]>;
1668
+ session_selector: z.ZodNullable<z.ZodString>;
1669
+ artifact_count: z.ZodNumber;
1670
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
1671
+ session_tags: z.ZodArray<z.ZodString, "many">;
1672
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
1673
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
1674
+ scope_note: z.ZodString;
1675
+ }, "strip", z.ZodTypeAny, {
1676
+ artifact_count: number;
1677
+ scope_note: string;
1678
+ artifact_ids: string[];
1679
+ session_selector: string | null;
1680
+ session_tags: string[];
1681
+ scope: "all" | "latest" | "session";
1682
+ earliest_artifact_at: string | null;
1683
+ latest_artifact_at: string | null;
1684
+ }, {
1685
+ artifact_count: number;
1686
+ scope_note: string;
1687
+ artifact_ids: string[];
1688
+ session_selector: string | null;
1689
+ session_tags: string[];
1690
+ scope: "all" | "latest" | "session";
1691
+ earliest_artifact_at: string | null;
1692
+ latest_artifact_at: string | null;
1693
+ }>;
1694
+ baseline: z.ZodObject<{
1695
+ scope: z.ZodEnum<["all", "latest", "session"]>;
1696
+ session_selector: z.ZodNullable<z.ZodString>;
1697
+ artifact_count: z.ZodNumber;
1698
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
1699
+ session_tags: z.ZodArray<z.ZodString, "many">;
1700
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
1701
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
1702
+ scope_note: z.ZodString;
1703
+ }, "strip", z.ZodTypeAny, {
1704
+ artifact_count: number;
1705
+ scope_note: string;
1706
+ artifact_ids: string[];
1707
+ session_selector: string | null;
1708
+ session_tags: string[];
1709
+ scope: "all" | "latest" | "session";
1710
+ earliest_artifact_at: string | null;
1711
+ latest_artifact_at: string | null;
1712
+ }, {
1713
+ artifact_count: number;
1714
+ scope_note: string;
1715
+ artifact_ids: string[];
1716
+ session_selector: string | null;
1717
+ session_tags: string[];
1718
+ scope: "all" | "latest" | "session";
1719
+ earliest_artifact_at: string | null;
1720
+ latest_artifact_at: string | null;
1721
+ }>;
1722
+ added_artifact_ids: z.ZodArray<z.ZodString, "many">;
1723
+ removed_artifact_ids: z.ZodArray<z.ZodString, "many">;
1724
+ added_session_tags: z.ZodArray<z.ZodString, "many">;
1725
+ removed_session_tags: z.ZodArray<z.ZodString, "many">;
1726
+ artifact_count_delta: z.ZodNumber;
1727
+ summary: z.ZodString;
1728
+ }, "strip", z.ZodTypeAny, {
1729
+ summary: string;
1730
+ baseline: {
1731
+ artifact_count: number;
1732
+ scope_note: string;
1733
+ artifact_ids: string[];
1734
+ session_selector: string | null;
1735
+ session_tags: string[];
1736
+ scope: "all" | "latest" | "session";
1737
+ earliest_artifact_at: string | null;
1738
+ latest_artifact_at: string | null;
1739
+ };
1740
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1741
+ current: {
1742
+ artifact_count: number;
1743
+ scope_note: string;
1744
+ artifact_ids: string[];
1745
+ session_selector: string | null;
1746
+ session_tags: string[];
1747
+ scope: "all" | "latest" | "session";
1748
+ earliest_artifact_at: string | null;
1749
+ latest_artifact_at: string | null;
1750
+ };
1751
+ added_artifact_ids: string[];
1752
+ removed_artifact_ids: string[];
1753
+ added_session_tags: string[];
1754
+ removed_session_tags: string[];
1755
+ artifact_count_delta: number;
1756
+ }, {
1757
+ summary: string;
1758
+ baseline: {
1759
+ artifact_count: number;
1760
+ scope_note: string;
1761
+ artifact_ids: string[];
1762
+ session_selector: string | null;
1763
+ session_tags: string[];
1764
+ scope: "all" | "latest" | "session";
1765
+ earliest_artifact_at: string | null;
1766
+ latest_artifact_at: string | null;
1767
+ };
1768
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1769
+ current: {
1770
+ artifact_count: number;
1771
+ scope_note: string;
1772
+ artifact_ids: string[];
1773
+ session_selector: string | null;
1774
+ session_tags: string[];
1775
+ scope: "all" | "latest" | "session";
1776
+ earliest_artifact_at: string | null;
1777
+ latest_artifact_at: string | null;
1778
+ };
1779
+ added_artifact_ids: string[];
1780
+ removed_artifact_ids: string[];
1781
+ added_session_tags: string[];
1782
+ removed_session_tags: string[];
1783
+ artifact_count_delta: number;
1784
+ }>>;
1785
+ }, "strip", z.ZodTypeAny, {
1786
+ runtime?: {
1787
+ summary: string;
1788
+ baseline: {
1789
+ artifact_count: number;
1790
+ scope_note: string;
1791
+ artifact_ids: string[];
1792
+ session_selector: string | null;
1793
+ session_tags: string[];
1794
+ scope: "all" | "latest" | "session";
1795
+ earliest_artifact_at: string | null;
1796
+ latest_artifact_at: string | null;
1797
+ };
1798
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1799
+ current: {
1800
+ artifact_count: number;
1801
+ scope_note: string;
1802
+ artifact_ids: string[];
1803
+ session_selector: string | null;
1804
+ session_tags: string[];
1805
+ scope: "all" | "latest" | "session";
1806
+ earliest_artifact_at: string | null;
1807
+ latest_artifact_at: string | null;
1808
+ };
1809
+ added_artifact_ids: string[];
1810
+ removed_artifact_ids: string[];
1811
+ added_session_tags: string[];
1812
+ removed_session_tags: string[];
1813
+ artifact_count_delta: number;
1814
+ } | undefined;
1815
+ semantic_names?: {
1816
+ summary: string;
1817
+ baseline: {
1818
+ artifact_count: number;
1819
+ scope_note: string;
1820
+ artifact_ids: string[];
1821
+ session_selector: string | null;
1822
+ session_tags: string[];
1823
+ scope: "all" | "latest" | "session";
1824
+ earliest_artifact_at: string | null;
1825
+ latest_artifact_at: string | null;
1826
+ };
1827
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1828
+ current: {
1829
+ artifact_count: number;
1830
+ scope_note: string;
1831
+ artifact_ids: string[];
1832
+ session_selector: string | null;
1833
+ session_tags: string[];
1834
+ scope: "all" | "latest" | "session";
1835
+ earliest_artifact_at: string | null;
1836
+ latest_artifact_at: string | null;
1837
+ };
1838
+ added_artifact_ids: string[];
1839
+ removed_artifact_ids: string[];
1840
+ added_session_tags: string[];
1841
+ removed_session_tags: string[];
1842
+ artifact_count_delta: number;
1843
+ } | undefined;
1844
+ semantic_explanations?: {
1845
+ summary: string;
1846
+ baseline: {
1847
+ artifact_count: number;
1848
+ scope_note: string;
1849
+ artifact_ids: string[];
1850
+ session_selector: string | null;
1851
+ session_tags: string[];
1852
+ scope: "all" | "latest" | "session";
1853
+ earliest_artifact_at: string | null;
1854
+ latest_artifact_at: string | null;
1855
+ };
1856
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1857
+ current: {
1858
+ artifact_count: number;
1859
+ scope_note: string;
1860
+ artifact_ids: string[];
1861
+ session_selector: string | null;
1862
+ session_tags: string[];
1863
+ scope: "all" | "latest" | "session";
1864
+ earliest_artifact_at: string | null;
1865
+ latest_artifact_at: string | null;
1866
+ };
1867
+ added_artifact_ids: string[];
1868
+ removed_artifact_ids: string[];
1869
+ added_session_tags: string[];
1870
+ removed_session_tags: string[];
1871
+ artifact_count_delta: number;
1872
+ } | undefined;
1873
+ }, {
1874
+ runtime?: {
1875
+ summary: string;
1876
+ baseline: {
1877
+ artifact_count: number;
1878
+ scope_note: string;
1879
+ artifact_ids: string[];
1880
+ session_selector: string | null;
1881
+ session_tags: string[];
1882
+ scope: "all" | "latest" | "session";
1883
+ earliest_artifact_at: string | null;
1884
+ latest_artifact_at: string | null;
1885
+ };
1886
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1887
+ current: {
1888
+ artifact_count: number;
1889
+ scope_note: string;
1890
+ artifact_ids: string[];
1891
+ session_selector: string | null;
1892
+ session_tags: string[];
1893
+ scope: "all" | "latest" | "session";
1894
+ earliest_artifact_at: string | null;
1895
+ latest_artifact_at: string | null;
1896
+ };
1897
+ added_artifact_ids: string[];
1898
+ removed_artifact_ids: string[];
1899
+ added_session_tags: string[];
1900
+ removed_session_tags: string[];
1901
+ artifact_count_delta: number;
1902
+ } | undefined;
1903
+ semantic_names?: {
1904
+ summary: string;
1905
+ baseline: {
1906
+ artifact_count: number;
1907
+ scope_note: string;
1908
+ artifact_ids: string[];
1909
+ session_selector: string | null;
1910
+ session_tags: string[];
1911
+ scope: "all" | "latest" | "session";
1912
+ earliest_artifact_at: string | null;
1913
+ latest_artifact_at: string | null;
1914
+ };
1915
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1916
+ current: {
1917
+ artifact_count: number;
1918
+ scope_note: string;
1919
+ artifact_ids: string[];
1920
+ session_selector: string | null;
1921
+ session_tags: string[];
1922
+ scope: "all" | "latest" | "session";
1923
+ earliest_artifact_at: string | null;
1924
+ latest_artifact_at: string | null;
1925
+ };
1926
+ added_artifact_ids: string[];
1927
+ removed_artifact_ids: string[];
1928
+ added_session_tags: string[];
1929
+ removed_session_tags: string[];
1930
+ artifact_count_delta: number;
1931
+ } | undefined;
1932
+ semantic_explanations?: {
1933
+ summary: string;
1934
+ baseline: {
1935
+ artifact_count: number;
1936
+ scope_note: string;
1937
+ artifact_ids: string[];
1938
+ session_selector: string | null;
1939
+ session_tags: string[];
1940
+ scope: "all" | "latest" | "session";
1941
+ earliest_artifact_at: string | null;
1942
+ latest_artifact_at: string | null;
1943
+ };
1944
+ label: "runtime" | "semantic_names" | "semantic_explanations";
1945
+ current: {
1946
+ artifact_count: number;
1947
+ scope_note: string;
1948
+ artifact_ids: string[];
1949
+ session_selector: string | null;
1950
+ session_tags: string[];
1951
+ scope: "all" | "latest" | "session";
1952
+ earliest_artifact_at: string | null;
1953
+ latest_artifact_at: string | null;
1954
+ };
1955
+ added_artifact_ids: string[];
1956
+ removed_artifact_ids: string[];
1957
+ added_session_tags: string[];
1958
+ removed_session_tags: string[];
1959
+ artifact_count_delta: number;
1960
+ } | undefined;
1961
+ }>>;
414
1962
  notes: z.ZodArray<z.ZodString, "many">;
415
1963
  }, "strip", z.ZodTypeAny, {
416
1964
  status: "failed" | "completed" | "skipped";
417
1965
  notes: string[];
1966
+ provenance: {
1967
+ runtime: {
1968
+ artifact_count: number;
1969
+ scope_note: string;
1970
+ artifact_ids: string[];
1971
+ session_selector: string | null;
1972
+ session_tags: string[];
1973
+ scope: "all" | "latest" | "session";
1974
+ earliest_artifact_at: string | null;
1975
+ latest_artifact_at: string | null;
1976
+ };
1977
+ semantic_module_reviews?: {
1978
+ artifact_count: number;
1979
+ scope_note: string;
1980
+ artifact_ids: string[];
1981
+ session_selector: string | null;
1982
+ session_tags: string[];
1983
+ scope: "all" | "latest" | "session";
1984
+ earliest_artifact_at: string | null;
1985
+ latest_artifact_at: string | null;
1986
+ } | undefined;
1987
+ semantic_names?: {
1988
+ artifact_count: number;
1989
+ scope_note: string;
1990
+ artifact_ids: string[];
1991
+ session_selector: string | null;
1992
+ session_tags: string[];
1993
+ scope: "all" | "latest" | "session";
1994
+ earliest_artifact_at: string | null;
1995
+ latest_artifact_at: string | null;
1996
+ } | undefined;
1997
+ semantic_explanations?: {
1998
+ artifact_count: number;
1999
+ scope_note: string;
2000
+ artifact_ids: string[];
2001
+ session_selector: string | null;
2002
+ session_tags: string[];
2003
+ scope: "all" | "latest" | "session";
2004
+ earliest_artifact_at: string | null;
2005
+ latest_artifact_at: string | null;
2006
+ } | undefined;
2007
+ } | null;
418
2008
  attempted: boolean;
419
2009
  export_root: string | null;
420
2010
  manifest_path: string | null;
421
2011
  build_validation_status: string | null;
422
2012
  harness_validation_status: string | null;
423
2013
  selected_path: "dotnet" | "native" | null;
2014
+ selection_diffs: {
2015
+ runtime?: {
2016
+ summary: string;
2017
+ baseline: {
2018
+ artifact_count: number;
2019
+ scope_note: string;
2020
+ artifact_ids: string[];
2021
+ session_selector: string | null;
2022
+ session_tags: string[];
2023
+ scope: "all" | "latest" | "session";
2024
+ earliest_artifact_at: string | null;
2025
+ latest_artifact_at: string | null;
2026
+ };
2027
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2028
+ current: {
2029
+ artifact_count: number;
2030
+ scope_note: string;
2031
+ artifact_ids: string[];
2032
+ session_selector: string | null;
2033
+ session_tags: string[];
2034
+ scope: "all" | "latest" | "session";
2035
+ earliest_artifact_at: string | null;
2036
+ latest_artifact_at: string | null;
2037
+ };
2038
+ added_artifact_ids: string[];
2039
+ removed_artifact_ids: string[];
2040
+ added_session_tags: string[];
2041
+ removed_session_tags: string[];
2042
+ artifact_count_delta: number;
2043
+ } | undefined;
2044
+ semantic_names?: {
2045
+ summary: string;
2046
+ baseline: {
2047
+ artifact_count: number;
2048
+ scope_note: string;
2049
+ artifact_ids: string[];
2050
+ session_selector: string | null;
2051
+ session_tags: string[];
2052
+ scope: "all" | "latest" | "session";
2053
+ earliest_artifact_at: string | null;
2054
+ latest_artifact_at: string | null;
2055
+ };
2056
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2057
+ current: {
2058
+ artifact_count: number;
2059
+ scope_note: string;
2060
+ artifact_ids: string[];
2061
+ session_selector: string | null;
2062
+ session_tags: string[];
2063
+ scope: "all" | "latest" | "session";
2064
+ earliest_artifact_at: string | null;
2065
+ latest_artifact_at: string | null;
2066
+ };
2067
+ added_artifact_ids: string[];
2068
+ removed_artifact_ids: string[];
2069
+ added_session_tags: string[];
2070
+ removed_session_tags: string[];
2071
+ artifact_count_delta: number;
2072
+ } | undefined;
2073
+ semantic_explanations?: {
2074
+ summary: string;
2075
+ baseline: {
2076
+ artifact_count: number;
2077
+ scope_note: string;
2078
+ artifact_ids: string[];
2079
+ session_selector: string | null;
2080
+ session_tags: string[];
2081
+ scope: "all" | "latest" | "session";
2082
+ earliest_artifact_at: string | null;
2083
+ latest_artifact_at: string | null;
2084
+ };
2085
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2086
+ current: {
2087
+ artifact_count: number;
2088
+ scope_note: string;
2089
+ artifact_ids: string[];
2090
+ session_selector: string | null;
2091
+ session_tags: string[];
2092
+ scope: "all" | "latest" | "session";
2093
+ earliest_artifact_at: string | null;
2094
+ latest_artifact_at: string | null;
2095
+ };
2096
+ added_artifact_ids: string[];
2097
+ removed_artifact_ids: string[];
2098
+ added_session_tags: string[];
2099
+ removed_session_tags: string[];
2100
+ artifact_count_delta: number;
2101
+ } | undefined;
2102
+ } | null;
2103
+ preflight: {
2104
+ binary_profile: {
2105
+ sample_id: string;
2106
+ indicators: {
2107
+ com_server: {
2108
+ confidence: number;
2109
+ evidence: string[];
2110
+ likely: boolean;
2111
+ };
2112
+ service_binary: {
2113
+ confidence: number;
2114
+ evidence: string[];
2115
+ likely: boolean;
2116
+ };
2117
+ plugin_binary: {
2118
+ confidence: number;
2119
+ evidence: string[];
2120
+ likely: boolean;
2121
+ };
2122
+ driver_binary: {
2123
+ confidence: number;
2124
+ evidence: string[];
2125
+ likely: boolean;
2126
+ };
2127
+ };
2128
+ export_surface: {
2129
+ total_exports: number;
2130
+ total_forwarders: number;
2131
+ notable_exports: string[];
2132
+ com_related_exports: string[];
2133
+ service_related_exports: string[];
2134
+ plugin_related_exports: string[];
2135
+ forwarded_exports: string[];
2136
+ };
2137
+ packed: boolean;
2138
+ binary_role: string;
2139
+ original_filename: string | null;
2140
+ packing_confidence: number;
2141
+ analysis_priorities: string[];
2142
+ role_confidence: number;
2143
+ runtime_hint: {
2144
+ is_dotnet: boolean | null;
2145
+ dotnet_version: string | null;
2146
+ target_framework: string | null;
2147
+ primary_runtime: string | null;
2148
+ };
2149
+ import_surface: {
2150
+ dll_count: number;
2151
+ notable_dlls: string[];
2152
+ com_related_imports: string[];
2153
+ service_related_imports: string[];
2154
+ network_related_imports: string[];
2155
+ process_related_imports: string[];
2156
+ };
2157
+ export_dispatch_profile: {
2158
+ confidence: number;
2159
+ command_like_exports: string[];
2160
+ callback_like_exports: string[];
2161
+ registration_exports: string[];
2162
+ ordinal_only_exports: number;
2163
+ likely_dispatch_model: string;
2164
+ };
2165
+ lifecycle_surface: string[];
2166
+ com_profile: {
2167
+ confidence: number;
2168
+ clsid_strings: string[];
2169
+ progid_strings: string[];
2170
+ interface_hints: string[];
2171
+ registration_strings: string[];
2172
+ class_factory_exports: string[];
2173
+ class_factory_surface: string[];
2174
+ };
2175
+ host_interaction_profile: {
2176
+ confidence: number;
2177
+ callback_surface: string[];
2178
+ likely_hosted: boolean;
2179
+ host_hints: string[];
2180
+ callback_exports: string[];
2181
+ callback_strings: string[];
2182
+ service_hooks: string[];
2183
+ };
2184
+ strings_considered: number;
2185
+ } | null;
2186
+ rust_profile?: any;
2187
+ function_index_recovery?: any;
2188
+ } | null;
424
2189
  export_tool: string | null;
425
2190
  }, {
426
2191
  status: "failed" | "completed" | "skipped";
427
2192
  notes: string[];
2193
+ provenance: {
2194
+ runtime: {
2195
+ artifact_count: number;
2196
+ scope_note: string;
2197
+ artifact_ids: string[];
2198
+ session_selector: string | null;
2199
+ session_tags: string[];
2200
+ scope: "all" | "latest" | "session";
2201
+ earliest_artifact_at: string | null;
2202
+ latest_artifact_at: string | null;
2203
+ };
2204
+ semantic_module_reviews?: {
2205
+ artifact_count: number;
2206
+ scope_note: string;
2207
+ artifact_ids: string[];
2208
+ session_selector: string | null;
2209
+ session_tags: string[];
2210
+ scope: "all" | "latest" | "session";
2211
+ earliest_artifact_at: string | null;
2212
+ latest_artifact_at: string | null;
2213
+ } | undefined;
2214
+ semantic_names?: {
2215
+ artifact_count: number;
2216
+ scope_note: string;
2217
+ artifact_ids: string[];
2218
+ session_selector: string | null;
2219
+ session_tags: string[];
2220
+ scope: "all" | "latest" | "session";
2221
+ earliest_artifact_at: string | null;
2222
+ latest_artifact_at: string | null;
2223
+ } | undefined;
2224
+ semantic_explanations?: {
2225
+ artifact_count: number;
2226
+ scope_note: string;
2227
+ artifact_ids: string[];
2228
+ session_selector: string | null;
2229
+ session_tags: string[];
2230
+ scope: "all" | "latest" | "session";
2231
+ earliest_artifact_at: string | null;
2232
+ latest_artifact_at: string | null;
2233
+ } | undefined;
2234
+ } | null;
428
2235
  attempted: boolean;
429
2236
  export_root: string | null;
430
2237
  manifest_path: string | null;
431
2238
  build_validation_status: string | null;
432
2239
  harness_validation_status: string | null;
433
2240
  selected_path: "dotnet" | "native" | null;
2241
+ selection_diffs: {
2242
+ runtime?: {
2243
+ summary: string;
2244
+ baseline: {
2245
+ artifact_count: number;
2246
+ scope_note: string;
2247
+ artifact_ids: string[];
2248
+ session_selector: string | null;
2249
+ session_tags: string[];
2250
+ scope: "all" | "latest" | "session";
2251
+ earliest_artifact_at: string | null;
2252
+ latest_artifact_at: string | null;
2253
+ };
2254
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2255
+ current: {
2256
+ artifact_count: number;
2257
+ scope_note: string;
2258
+ artifact_ids: string[];
2259
+ session_selector: string | null;
2260
+ session_tags: string[];
2261
+ scope: "all" | "latest" | "session";
2262
+ earliest_artifact_at: string | null;
2263
+ latest_artifact_at: string | null;
2264
+ };
2265
+ added_artifact_ids: string[];
2266
+ removed_artifact_ids: string[];
2267
+ added_session_tags: string[];
2268
+ removed_session_tags: string[];
2269
+ artifact_count_delta: number;
2270
+ } | undefined;
2271
+ semantic_names?: {
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_explanations?: {
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
+ } | null;
2330
+ preflight: {
2331
+ binary_profile: {
2332
+ sample_id: string;
2333
+ indicators: {
2334
+ com_server: {
2335
+ confidence: number;
2336
+ evidence: string[];
2337
+ likely: boolean;
2338
+ };
2339
+ service_binary: {
2340
+ confidence: number;
2341
+ evidence: string[];
2342
+ likely: boolean;
2343
+ };
2344
+ plugin_binary: {
2345
+ confidence: number;
2346
+ evidence: string[];
2347
+ likely: boolean;
2348
+ };
2349
+ driver_binary: {
2350
+ confidence: number;
2351
+ evidence: string[];
2352
+ likely: boolean;
2353
+ };
2354
+ };
2355
+ export_surface: {
2356
+ total_exports: number;
2357
+ total_forwarders: number;
2358
+ notable_exports: string[];
2359
+ com_related_exports: string[];
2360
+ service_related_exports: string[];
2361
+ plugin_related_exports: string[];
2362
+ forwarded_exports: string[];
2363
+ };
2364
+ packed: boolean;
2365
+ binary_role: string;
2366
+ original_filename: string | null;
2367
+ packing_confidence: number;
2368
+ analysis_priorities: string[];
2369
+ role_confidence: number;
2370
+ runtime_hint: {
2371
+ is_dotnet: boolean | null;
2372
+ dotnet_version: string | null;
2373
+ target_framework: string | null;
2374
+ primary_runtime: string | null;
2375
+ };
2376
+ import_surface: {
2377
+ dll_count: number;
2378
+ notable_dlls: string[];
2379
+ com_related_imports: string[];
2380
+ service_related_imports: string[];
2381
+ network_related_imports: string[];
2382
+ process_related_imports: string[];
2383
+ };
2384
+ export_dispatch_profile: {
2385
+ confidence: number;
2386
+ command_like_exports: string[];
2387
+ callback_like_exports: string[];
2388
+ registration_exports: string[];
2389
+ ordinal_only_exports: number;
2390
+ likely_dispatch_model: string;
2391
+ };
2392
+ com_profile: {
2393
+ confidence: number;
2394
+ clsid_strings: string[];
2395
+ progid_strings: string[];
2396
+ interface_hints: string[];
2397
+ registration_strings: string[];
2398
+ class_factory_exports: string[];
2399
+ class_factory_surface?: string[] | undefined;
2400
+ };
2401
+ host_interaction_profile: {
2402
+ confidence: number;
2403
+ likely_hosted: boolean;
2404
+ host_hints: string[];
2405
+ callback_exports: string[];
2406
+ callback_strings: string[];
2407
+ service_hooks: string[];
2408
+ callback_surface?: string[] | undefined;
2409
+ };
2410
+ strings_considered: number;
2411
+ lifecycle_surface?: string[] | undefined;
2412
+ } | null;
2413
+ rust_profile?: any;
2414
+ function_index_recovery?: any;
2415
+ } | null;
434
2416
  export_tool: string | null;
435
2417
  }>;
436
2418
  next_steps: z.ZodArray<z.ZodString, "many">;
@@ -439,38 +2421,255 @@ export declare const functionExplanationReviewWorkflowOutputSchema: z.ZodObject<
439
2421
  export: {
440
2422
  status: "failed" | "completed" | "skipped";
441
2423
  notes: string[];
2424
+ provenance: {
2425
+ runtime: {
2426
+ artifact_count: number;
2427
+ scope_note: string;
2428
+ artifact_ids: string[];
2429
+ session_selector: string | null;
2430
+ session_tags: string[];
2431
+ scope: "all" | "latest" | "session";
2432
+ earliest_artifact_at: string | null;
2433
+ latest_artifact_at: string | null;
2434
+ };
2435
+ semantic_module_reviews?: {
2436
+ artifact_count: number;
2437
+ scope_note: string;
2438
+ artifact_ids: string[];
2439
+ session_selector: string | null;
2440
+ session_tags: string[];
2441
+ scope: "all" | "latest" | "session";
2442
+ earliest_artifact_at: string | null;
2443
+ latest_artifact_at: string | null;
2444
+ } | undefined;
2445
+ semantic_names?: {
2446
+ artifact_count: number;
2447
+ scope_note: string;
2448
+ artifact_ids: string[];
2449
+ session_selector: string | null;
2450
+ session_tags: string[];
2451
+ scope: "all" | "latest" | "session";
2452
+ earliest_artifact_at: string | null;
2453
+ latest_artifact_at: string | null;
2454
+ } | undefined;
2455
+ semantic_explanations?: {
2456
+ artifact_count: number;
2457
+ scope_note: string;
2458
+ artifact_ids: string[];
2459
+ session_selector: string | null;
2460
+ session_tags: string[];
2461
+ scope: "all" | "latest" | "session";
2462
+ earliest_artifact_at: string | null;
2463
+ latest_artifact_at: string | null;
2464
+ } | undefined;
2465
+ } | null;
442
2466
  attempted: boolean;
443
2467
  export_root: string | null;
444
2468
  manifest_path: string | null;
445
2469
  build_validation_status: string | null;
446
2470
  harness_validation_status: string | null;
447
2471
  selected_path: "dotnet" | "native" | null;
2472
+ selection_diffs: {
2473
+ runtime?: {
2474
+ summary: string;
2475
+ baseline: {
2476
+ artifact_count: number;
2477
+ scope_note: string;
2478
+ artifact_ids: string[];
2479
+ session_selector: string | null;
2480
+ session_tags: string[];
2481
+ scope: "all" | "latest" | "session";
2482
+ earliest_artifact_at: string | null;
2483
+ latest_artifact_at: string | null;
2484
+ };
2485
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2486
+ current: {
2487
+ artifact_count: number;
2488
+ scope_note: string;
2489
+ artifact_ids: string[];
2490
+ session_selector: string | null;
2491
+ session_tags: string[];
2492
+ scope: "all" | "latest" | "session";
2493
+ earliest_artifact_at: string | null;
2494
+ latest_artifact_at: string | null;
2495
+ };
2496
+ added_artifact_ids: string[];
2497
+ removed_artifact_ids: string[];
2498
+ added_session_tags: string[];
2499
+ removed_session_tags: string[];
2500
+ artifact_count_delta: number;
2501
+ } | undefined;
2502
+ semantic_names?: {
2503
+ summary: string;
2504
+ baseline: {
2505
+ artifact_count: number;
2506
+ scope_note: string;
2507
+ artifact_ids: string[];
2508
+ session_selector: string | null;
2509
+ session_tags: string[];
2510
+ scope: "all" | "latest" | "session";
2511
+ earliest_artifact_at: string | null;
2512
+ latest_artifact_at: string | null;
2513
+ };
2514
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2515
+ current: {
2516
+ artifact_count: number;
2517
+ scope_note: string;
2518
+ artifact_ids: string[];
2519
+ session_selector: string | null;
2520
+ session_tags: string[];
2521
+ scope: "all" | "latest" | "session";
2522
+ earliest_artifact_at: string | null;
2523
+ latest_artifact_at: string | null;
2524
+ };
2525
+ added_artifact_ids: string[];
2526
+ removed_artifact_ids: string[];
2527
+ added_session_tags: string[];
2528
+ removed_session_tags: string[];
2529
+ artifact_count_delta: number;
2530
+ } | undefined;
2531
+ semantic_explanations?: {
2532
+ summary: string;
2533
+ baseline: {
2534
+ artifact_count: number;
2535
+ scope_note: string;
2536
+ artifact_ids: string[];
2537
+ session_selector: string | null;
2538
+ session_tags: string[];
2539
+ scope: "all" | "latest" | "session";
2540
+ earliest_artifact_at: string | null;
2541
+ latest_artifact_at: string | null;
2542
+ };
2543
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2544
+ current: {
2545
+ artifact_count: number;
2546
+ scope_note: string;
2547
+ artifact_ids: string[];
2548
+ session_selector: string | null;
2549
+ session_tags: string[];
2550
+ scope: "all" | "latest" | "session";
2551
+ earliest_artifact_at: string | null;
2552
+ latest_artifact_at: string | null;
2553
+ };
2554
+ added_artifact_ids: string[];
2555
+ removed_artifact_ids: string[];
2556
+ added_session_tags: string[];
2557
+ removed_session_tags: string[];
2558
+ artifact_count_delta: number;
2559
+ } | undefined;
2560
+ } | null;
2561
+ preflight: {
2562
+ binary_profile: {
2563
+ sample_id: string;
2564
+ indicators: {
2565
+ com_server: {
2566
+ confidence: number;
2567
+ evidence: string[];
2568
+ likely: boolean;
2569
+ };
2570
+ service_binary: {
2571
+ confidence: number;
2572
+ evidence: string[];
2573
+ likely: boolean;
2574
+ };
2575
+ plugin_binary: {
2576
+ confidence: number;
2577
+ evidence: string[];
2578
+ likely: boolean;
2579
+ };
2580
+ driver_binary: {
2581
+ confidence: number;
2582
+ evidence: string[];
2583
+ likely: boolean;
2584
+ };
2585
+ };
2586
+ export_surface: {
2587
+ total_exports: number;
2588
+ total_forwarders: number;
2589
+ notable_exports: string[];
2590
+ com_related_exports: string[];
2591
+ service_related_exports: string[];
2592
+ plugin_related_exports: string[];
2593
+ forwarded_exports: string[];
2594
+ };
2595
+ packed: boolean;
2596
+ binary_role: string;
2597
+ original_filename: string | null;
2598
+ packing_confidence: number;
2599
+ analysis_priorities: string[];
2600
+ role_confidence: number;
2601
+ runtime_hint: {
2602
+ is_dotnet: boolean | null;
2603
+ dotnet_version: string | null;
2604
+ target_framework: string | null;
2605
+ primary_runtime: string | null;
2606
+ };
2607
+ import_surface: {
2608
+ dll_count: number;
2609
+ notable_dlls: string[];
2610
+ com_related_imports: string[];
2611
+ service_related_imports: string[];
2612
+ network_related_imports: string[];
2613
+ process_related_imports: string[];
2614
+ };
2615
+ export_dispatch_profile: {
2616
+ confidence: number;
2617
+ command_like_exports: string[];
2618
+ callback_like_exports: string[];
2619
+ registration_exports: string[];
2620
+ ordinal_only_exports: number;
2621
+ likely_dispatch_model: string;
2622
+ };
2623
+ lifecycle_surface: string[];
2624
+ com_profile: {
2625
+ confidence: number;
2626
+ clsid_strings: string[];
2627
+ progid_strings: string[];
2628
+ interface_hints: string[];
2629
+ registration_strings: string[];
2630
+ class_factory_exports: string[];
2631
+ class_factory_surface: string[];
2632
+ };
2633
+ host_interaction_profile: {
2634
+ confidence: number;
2635
+ callback_surface: string[];
2636
+ likely_hosted: boolean;
2637
+ host_hints: string[];
2638
+ callback_exports: string[];
2639
+ callback_strings: string[];
2640
+ service_hooks: string[];
2641
+ };
2642
+ strings_considered: number;
2643
+ } | null;
2644
+ rust_profile?: any;
2645
+ function_index_recovery?: any;
2646
+ } | null;
448
2647
  export_tool: string | null;
449
2648
  };
450
2649
  next_steps: string[];
451
2650
  review: {
452
- sampling: {
453
- model: string | null;
454
- attempted: boolean;
455
- stop_reason: string | null;
456
- parsed_explanation_count: number;
457
- };
458
2651
  client: {
459
2652
  name: string | null;
460
2653
  version: string | null;
461
2654
  sampling_available: boolean;
462
2655
  };
2656
+ sampling: {
2657
+ attempted: boolean;
2658
+ model: string | null;
2659
+ stop_reason: string | null;
2660
+ parsed_explanation_count: number;
2661
+ };
463
2662
  prompt_name: string;
464
2663
  review_status: string;
465
2664
  prepare: {
466
- artifact_id: string | null;
467
2665
  prepared_count: number;
2666
+ artifact_id: string | null;
468
2667
  };
469
2668
  apply: {
470
- artifact_id: string | null;
471
2669
  attempted: boolean;
472
2670
  accepted_count: number;
473
2671
  rejected_count: number;
2672
+ artifact_id: string | null;
474
2673
  };
475
2674
  confidence_policy: {
476
2675
  calibrated: boolean;
@@ -483,38 +2682,255 @@ export declare const functionExplanationReviewWorkflowOutputSchema: z.ZodObject<
483
2682
  export: {
484
2683
  status: "failed" | "completed" | "skipped";
485
2684
  notes: string[];
2685
+ provenance: {
2686
+ runtime: {
2687
+ artifact_count: number;
2688
+ scope_note: string;
2689
+ artifact_ids: string[];
2690
+ session_selector: string | null;
2691
+ session_tags: string[];
2692
+ scope: "all" | "latest" | "session";
2693
+ earliest_artifact_at: string | null;
2694
+ latest_artifact_at: string | null;
2695
+ };
2696
+ semantic_module_reviews?: {
2697
+ artifact_count: number;
2698
+ scope_note: string;
2699
+ artifact_ids: string[];
2700
+ session_selector: string | null;
2701
+ session_tags: string[];
2702
+ scope: "all" | "latest" | "session";
2703
+ earliest_artifact_at: string | null;
2704
+ latest_artifact_at: string | null;
2705
+ } | undefined;
2706
+ semantic_names?: {
2707
+ artifact_count: number;
2708
+ scope_note: string;
2709
+ artifact_ids: string[];
2710
+ session_selector: string | null;
2711
+ session_tags: string[];
2712
+ scope: "all" | "latest" | "session";
2713
+ earliest_artifact_at: string | null;
2714
+ latest_artifact_at: string | null;
2715
+ } | undefined;
2716
+ semantic_explanations?: {
2717
+ artifact_count: number;
2718
+ scope_note: string;
2719
+ artifact_ids: string[];
2720
+ session_selector: string | null;
2721
+ session_tags: string[];
2722
+ scope: "all" | "latest" | "session";
2723
+ earliest_artifact_at: string | null;
2724
+ latest_artifact_at: string | null;
2725
+ } | undefined;
2726
+ } | null;
486
2727
  attempted: boolean;
487
2728
  export_root: string | null;
488
2729
  manifest_path: string | null;
489
2730
  build_validation_status: string | null;
490
2731
  harness_validation_status: string | null;
491
2732
  selected_path: "dotnet" | "native" | null;
2733
+ selection_diffs: {
2734
+ runtime?: {
2735
+ summary: string;
2736
+ baseline: {
2737
+ artifact_count: number;
2738
+ scope_note: string;
2739
+ artifact_ids: string[];
2740
+ session_selector: string | null;
2741
+ session_tags: string[];
2742
+ scope: "all" | "latest" | "session";
2743
+ earliest_artifact_at: string | null;
2744
+ latest_artifact_at: string | null;
2745
+ };
2746
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2747
+ current: {
2748
+ artifact_count: number;
2749
+ scope_note: string;
2750
+ artifact_ids: string[];
2751
+ session_selector: string | null;
2752
+ session_tags: string[];
2753
+ scope: "all" | "latest" | "session";
2754
+ earliest_artifact_at: string | null;
2755
+ latest_artifact_at: string | null;
2756
+ };
2757
+ added_artifact_ids: string[];
2758
+ removed_artifact_ids: string[];
2759
+ added_session_tags: string[];
2760
+ removed_session_tags: string[];
2761
+ artifact_count_delta: number;
2762
+ } | undefined;
2763
+ semantic_names?: {
2764
+ summary: string;
2765
+ baseline: {
2766
+ artifact_count: number;
2767
+ scope_note: string;
2768
+ artifact_ids: string[];
2769
+ session_selector: string | null;
2770
+ session_tags: string[];
2771
+ scope: "all" | "latest" | "session";
2772
+ earliest_artifact_at: string | null;
2773
+ latest_artifact_at: string | null;
2774
+ };
2775
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2776
+ current: {
2777
+ artifact_count: number;
2778
+ scope_note: string;
2779
+ artifact_ids: string[];
2780
+ session_selector: string | null;
2781
+ session_tags: string[];
2782
+ scope: "all" | "latest" | "session";
2783
+ earliest_artifact_at: string | null;
2784
+ latest_artifact_at: string | null;
2785
+ };
2786
+ added_artifact_ids: string[];
2787
+ removed_artifact_ids: string[];
2788
+ added_session_tags: string[];
2789
+ removed_session_tags: string[];
2790
+ artifact_count_delta: number;
2791
+ } | undefined;
2792
+ semantic_explanations?: {
2793
+ summary: string;
2794
+ baseline: {
2795
+ artifact_count: number;
2796
+ scope_note: string;
2797
+ artifact_ids: string[];
2798
+ session_selector: string | null;
2799
+ session_tags: string[];
2800
+ scope: "all" | "latest" | "session";
2801
+ earliest_artifact_at: string | null;
2802
+ latest_artifact_at: string | null;
2803
+ };
2804
+ label: "runtime" | "semantic_names" | "semantic_explanations";
2805
+ current: {
2806
+ artifact_count: number;
2807
+ scope_note: string;
2808
+ artifact_ids: string[];
2809
+ session_selector: string | null;
2810
+ session_tags: string[];
2811
+ scope: "all" | "latest" | "session";
2812
+ earliest_artifact_at: string | null;
2813
+ latest_artifact_at: string | null;
2814
+ };
2815
+ added_artifact_ids: string[];
2816
+ removed_artifact_ids: string[];
2817
+ added_session_tags: string[];
2818
+ removed_session_tags: string[];
2819
+ artifact_count_delta: number;
2820
+ } | undefined;
2821
+ } | null;
2822
+ preflight: {
2823
+ binary_profile: {
2824
+ sample_id: string;
2825
+ indicators: {
2826
+ com_server: {
2827
+ confidence: number;
2828
+ evidence: string[];
2829
+ likely: boolean;
2830
+ };
2831
+ service_binary: {
2832
+ confidence: number;
2833
+ evidence: string[];
2834
+ likely: boolean;
2835
+ };
2836
+ plugin_binary: {
2837
+ confidence: number;
2838
+ evidence: string[];
2839
+ likely: boolean;
2840
+ };
2841
+ driver_binary: {
2842
+ confidence: number;
2843
+ evidence: string[];
2844
+ likely: boolean;
2845
+ };
2846
+ };
2847
+ export_surface: {
2848
+ total_exports: number;
2849
+ total_forwarders: number;
2850
+ notable_exports: string[];
2851
+ com_related_exports: string[];
2852
+ service_related_exports: string[];
2853
+ plugin_related_exports: string[];
2854
+ forwarded_exports: string[];
2855
+ };
2856
+ packed: boolean;
2857
+ binary_role: string;
2858
+ original_filename: string | null;
2859
+ packing_confidence: number;
2860
+ analysis_priorities: string[];
2861
+ role_confidence: number;
2862
+ runtime_hint: {
2863
+ is_dotnet: boolean | null;
2864
+ dotnet_version: string | null;
2865
+ target_framework: string | null;
2866
+ primary_runtime: string | null;
2867
+ };
2868
+ import_surface: {
2869
+ dll_count: number;
2870
+ notable_dlls: string[];
2871
+ com_related_imports: string[];
2872
+ service_related_imports: string[];
2873
+ network_related_imports: string[];
2874
+ process_related_imports: string[];
2875
+ };
2876
+ export_dispatch_profile: {
2877
+ confidence: number;
2878
+ command_like_exports: string[];
2879
+ callback_like_exports: string[];
2880
+ registration_exports: string[];
2881
+ ordinal_only_exports: number;
2882
+ likely_dispatch_model: string;
2883
+ };
2884
+ com_profile: {
2885
+ confidence: number;
2886
+ clsid_strings: string[];
2887
+ progid_strings: string[];
2888
+ interface_hints: string[];
2889
+ registration_strings: string[];
2890
+ class_factory_exports: string[];
2891
+ class_factory_surface?: string[] | undefined;
2892
+ };
2893
+ host_interaction_profile: {
2894
+ confidence: number;
2895
+ likely_hosted: boolean;
2896
+ host_hints: string[];
2897
+ callback_exports: string[];
2898
+ callback_strings: string[];
2899
+ service_hooks: string[];
2900
+ callback_surface?: string[] | undefined;
2901
+ };
2902
+ strings_considered: number;
2903
+ lifecycle_surface?: string[] | undefined;
2904
+ } | null;
2905
+ rust_profile?: any;
2906
+ function_index_recovery?: any;
2907
+ } | null;
492
2908
  export_tool: string | null;
493
2909
  };
494
2910
  next_steps: string[];
495
2911
  review: {
496
- sampling: {
497
- model: string | null;
498
- attempted: boolean;
499
- stop_reason: string | null;
500
- parsed_explanation_count: number;
501
- };
502
2912
  client: {
503
2913
  name: string | null;
504
2914
  version: string | null;
505
2915
  sampling_available: boolean;
506
2916
  };
2917
+ sampling: {
2918
+ attempted: boolean;
2919
+ model: string | null;
2920
+ stop_reason: string | null;
2921
+ parsed_explanation_count: number;
2922
+ };
507
2923
  prompt_name: string;
508
2924
  review_status: string;
509
2925
  prepare: {
510
- artifact_id: string | null;
511
2926
  prepared_count: number;
2927
+ artifact_id: string | null;
512
2928
  };
513
2929
  apply: {
514
- artifact_id: string | null;
515
2930
  attempted: boolean;
516
2931
  accepted_count: number;
517
2932
  rejected_count: number;
2933
+ artifact_id: string | null;
518
2934
  };
519
2935
  confidence_policy: {
520
2936
  calibrated: boolean;
@@ -522,9 +2938,65 @@ export declare const functionExplanationReviewWorkflowOutputSchema: z.ZodObject<
522
2938
  explanation_scores_are_heuristic: boolean;
523
2939
  };
524
2940
  };
525
- }>>;
2941
+ }>]>>;
526
2942
  warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
527
2943
  errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2944
+ setup_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2945
+ id: z.ZodString;
2946
+ required: z.ZodBoolean;
2947
+ kind: z.ZodEnum<["pip_install", "set_env", "provide_path", "verify_install"]>;
2948
+ title: z.ZodString;
2949
+ summary: z.ZodString;
2950
+ command: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2951
+ env_var: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2952
+ value_hint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2953
+ examples: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2954
+ applies_to: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2955
+ }, "strip", z.ZodTypeAny, {
2956
+ id: string;
2957
+ summary: string;
2958
+ kind: "pip_install" | "set_env" | "provide_path" | "verify_install";
2959
+ title: string;
2960
+ required: boolean;
2961
+ examples: string[];
2962
+ applies_to: string[];
2963
+ command?: string | null | undefined;
2964
+ env_var?: string | null | undefined;
2965
+ value_hint?: string | null | undefined;
2966
+ }, {
2967
+ id: string;
2968
+ summary: string;
2969
+ kind: "pip_install" | "set_env" | "provide_path" | "verify_install";
2970
+ title: string;
2971
+ required: boolean;
2972
+ command?: string | null | undefined;
2973
+ env_var?: string | null | undefined;
2974
+ value_hint?: string | null | undefined;
2975
+ examples?: string[] | undefined;
2976
+ applies_to?: string[] | undefined;
2977
+ }>, "many">>;
2978
+ required_user_inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2979
+ key: z.ZodString;
2980
+ label: z.ZodString;
2981
+ summary: z.ZodString;
2982
+ required: z.ZodBoolean;
2983
+ env_vars: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2984
+ examples: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2985
+ }, "strip", z.ZodTypeAny, {
2986
+ summary: string;
2987
+ label: string;
2988
+ required: boolean;
2989
+ examples: string[];
2990
+ key: string;
2991
+ env_vars: string[];
2992
+ }, {
2993
+ summary: string;
2994
+ label: string;
2995
+ required: boolean;
2996
+ key: string;
2997
+ examples?: string[] | undefined;
2998
+ env_vars?: string[] | undefined;
2999
+ }>, "many">>;
528
3000
  artifacts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
529
3001
  metrics: z.ZodOptional<z.ZodObject<{
530
3002
  elapsed_ms: z.ZodNumber;
@@ -538,47 +3010,266 @@ export declare const functionExplanationReviewWorkflowOutputSchema: z.ZodObject<
538
3010
  }>>;
539
3011
  }, "strip", z.ZodTypeAny, {
540
3012
  ok: boolean;
541
- metrics?: {
542
- elapsed_ms: number;
543
- tool: string;
544
- } | undefined;
545
3013
  data?: {
3014
+ status: "queued";
3015
+ sample_id: string;
3016
+ tool: "workflow.function_explanation_review";
3017
+ progress: number;
3018
+ job_id: string;
3019
+ } | {
546
3020
  sample_id: string;
547
3021
  export: {
548
3022
  status: "failed" | "completed" | "skipped";
549
3023
  notes: string[];
3024
+ provenance: {
3025
+ runtime: {
3026
+ artifact_count: number;
3027
+ scope_note: string;
3028
+ artifact_ids: string[];
3029
+ session_selector: string | null;
3030
+ session_tags: string[];
3031
+ scope: "all" | "latest" | "session";
3032
+ earliest_artifact_at: string | null;
3033
+ latest_artifact_at: string | null;
3034
+ };
3035
+ semantic_module_reviews?: {
3036
+ artifact_count: number;
3037
+ scope_note: string;
3038
+ artifact_ids: string[];
3039
+ session_selector: string | null;
3040
+ session_tags: string[];
3041
+ scope: "all" | "latest" | "session";
3042
+ earliest_artifact_at: string | null;
3043
+ latest_artifact_at: string | null;
3044
+ } | undefined;
3045
+ semantic_names?: {
3046
+ artifact_count: number;
3047
+ scope_note: string;
3048
+ artifact_ids: string[];
3049
+ session_selector: string | null;
3050
+ session_tags: string[];
3051
+ scope: "all" | "latest" | "session";
3052
+ earliest_artifact_at: string | null;
3053
+ latest_artifact_at: string | null;
3054
+ } | undefined;
3055
+ semantic_explanations?: {
3056
+ artifact_count: number;
3057
+ scope_note: string;
3058
+ artifact_ids: string[];
3059
+ session_selector: string | null;
3060
+ session_tags: string[];
3061
+ scope: "all" | "latest" | "session";
3062
+ earliest_artifact_at: string | null;
3063
+ latest_artifact_at: string | null;
3064
+ } | undefined;
3065
+ } | null;
550
3066
  attempted: boolean;
551
3067
  export_root: string | null;
552
3068
  manifest_path: string | null;
553
3069
  build_validation_status: string | null;
554
3070
  harness_validation_status: string | null;
555
3071
  selected_path: "dotnet" | "native" | null;
3072
+ selection_diffs: {
3073
+ runtime?: {
3074
+ summary: string;
3075
+ baseline: {
3076
+ artifact_count: number;
3077
+ scope_note: string;
3078
+ artifact_ids: string[];
3079
+ session_selector: string | null;
3080
+ session_tags: string[];
3081
+ scope: "all" | "latest" | "session";
3082
+ earliest_artifact_at: string | null;
3083
+ latest_artifact_at: string | null;
3084
+ };
3085
+ label: "runtime" | "semantic_names" | "semantic_explanations";
3086
+ current: {
3087
+ artifact_count: number;
3088
+ scope_note: string;
3089
+ artifact_ids: string[];
3090
+ session_selector: string | null;
3091
+ session_tags: string[];
3092
+ scope: "all" | "latest" | "session";
3093
+ earliest_artifact_at: string | null;
3094
+ latest_artifact_at: string | null;
3095
+ };
3096
+ added_artifact_ids: string[];
3097
+ removed_artifact_ids: string[];
3098
+ added_session_tags: string[];
3099
+ removed_session_tags: string[];
3100
+ artifact_count_delta: number;
3101
+ } | undefined;
3102
+ semantic_names?: {
3103
+ summary: string;
3104
+ baseline: {
3105
+ artifact_count: number;
3106
+ scope_note: string;
3107
+ artifact_ids: string[];
3108
+ session_selector: string | null;
3109
+ session_tags: string[];
3110
+ scope: "all" | "latest" | "session";
3111
+ earliest_artifact_at: string | null;
3112
+ latest_artifact_at: string | null;
3113
+ };
3114
+ label: "runtime" | "semantic_names" | "semantic_explanations";
3115
+ current: {
3116
+ artifact_count: number;
3117
+ scope_note: string;
3118
+ artifact_ids: string[];
3119
+ session_selector: string | null;
3120
+ session_tags: string[];
3121
+ scope: "all" | "latest" | "session";
3122
+ earliest_artifact_at: string | null;
3123
+ latest_artifact_at: string | null;
3124
+ };
3125
+ added_artifact_ids: string[];
3126
+ removed_artifact_ids: string[];
3127
+ added_session_tags: string[];
3128
+ removed_session_tags: string[];
3129
+ artifact_count_delta: number;
3130
+ } | undefined;
3131
+ semantic_explanations?: {
3132
+ summary: string;
3133
+ baseline: {
3134
+ artifact_count: number;
3135
+ scope_note: string;
3136
+ artifact_ids: string[];
3137
+ session_selector: string | null;
3138
+ session_tags: string[];
3139
+ scope: "all" | "latest" | "session";
3140
+ earliest_artifact_at: string | null;
3141
+ latest_artifact_at: string | null;
3142
+ };
3143
+ label: "runtime" | "semantic_names" | "semantic_explanations";
3144
+ current: {
3145
+ artifact_count: number;
3146
+ scope_note: string;
3147
+ artifact_ids: string[];
3148
+ session_selector: string | null;
3149
+ session_tags: string[];
3150
+ scope: "all" | "latest" | "session";
3151
+ earliest_artifact_at: string | null;
3152
+ latest_artifact_at: string | null;
3153
+ };
3154
+ added_artifact_ids: string[];
3155
+ removed_artifact_ids: string[];
3156
+ added_session_tags: string[];
3157
+ removed_session_tags: string[];
3158
+ artifact_count_delta: number;
3159
+ } | undefined;
3160
+ } | null;
3161
+ preflight: {
3162
+ binary_profile: {
3163
+ sample_id: string;
3164
+ indicators: {
3165
+ com_server: {
3166
+ confidence: number;
3167
+ evidence: string[];
3168
+ likely: boolean;
3169
+ };
3170
+ service_binary: {
3171
+ confidence: number;
3172
+ evidence: string[];
3173
+ likely: boolean;
3174
+ };
3175
+ plugin_binary: {
3176
+ confidence: number;
3177
+ evidence: string[];
3178
+ likely: boolean;
3179
+ };
3180
+ driver_binary: {
3181
+ confidence: number;
3182
+ evidence: string[];
3183
+ likely: boolean;
3184
+ };
3185
+ };
3186
+ export_surface: {
3187
+ total_exports: number;
3188
+ total_forwarders: number;
3189
+ notable_exports: string[];
3190
+ com_related_exports: string[];
3191
+ service_related_exports: string[];
3192
+ plugin_related_exports: string[];
3193
+ forwarded_exports: string[];
3194
+ };
3195
+ packed: boolean;
3196
+ binary_role: string;
3197
+ original_filename: string | null;
3198
+ packing_confidence: number;
3199
+ analysis_priorities: string[];
3200
+ role_confidence: number;
3201
+ runtime_hint: {
3202
+ is_dotnet: boolean | null;
3203
+ dotnet_version: string | null;
3204
+ target_framework: string | null;
3205
+ primary_runtime: string | null;
3206
+ };
3207
+ import_surface: {
3208
+ dll_count: number;
3209
+ notable_dlls: string[];
3210
+ com_related_imports: string[];
3211
+ service_related_imports: string[];
3212
+ network_related_imports: string[];
3213
+ process_related_imports: string[];
3214
+ };
3215
+ export_dispatch_profile: {
3216
+ confidence: number;
3217
+ command_like_exports: string[];
3218
+ callback_like_exports: string[];
3219
+ registration_exports: string[];
3220
+ ordinal_only_exports: number;
3221
+ likely_dispatch_model: string;
3222
+ };
3223
+ lifecycle_surface: string[];
3224
+ com_profile: {
3225
+ confidence: number;
3226
+ clsid_strings: string[];
3227
+ progid_strings: string[];
3228
+ interface_hints: string[];
3229
+ registration_strings: string[];
3230
+ class_factory_exports: string[];
3231
+ class_factory_surface: string[];
3232
+ };
3233
+ host_interaction_profile: {
3234
+ confidence: number;
3235
+ callback_surface: string[];
3236
+ likely_hosted: boolean;
3237
+ host_hints: string[];
3238
+ callback_exports: string[];
3239
+ callback_strings: string[];
3240
+ service_hooks: string[];
3241
+ };
3242
+ strings_considered: number;
3243
+ } | null;
3244
+ rust_profile?: any;
3245
+ function_index_recovery?: any;
3246
+ } | null;
556
3247
  export_tool: string | null;
557
3248
  };
558
3249
  next_steps: string[];
559
3250
  review: {
560
- sampling: {
561
- model: string | null;
562
- attempted: boolean;
563
- stop_reason: string | null;
564
- parsed_explanation_count: number;
565
- };
566
3251
  client: {
567
3252
  name: string | null;
568
3253
  version: string | null;
569
3254
  sampling_available: boolean;
570
3255
  };
3256
+ sampling: {
3257
+ attempted: boolean;
3258
+ model: string | null;
3259
+ stop_reason: string | null;
3260
+ parsed_explanation_count: number;
3261
+ };
571
3262
  prompt_name: string;
572
3263
  review_status: string;
573
3264
  prepare: {
574
- artifact_id: string | null;
575
3265
  prepared_count: number;
3266
+ artifact_id: string | null;
576
3267
  };
577
3268
  apply: {
578
- artifact_id: string | null;
579
3269
  attempted: boolean;
580
3270
  accepted_count: number;
581
3271
  rejected_count: number;
3272
+ artifact_id: string | null;
582
3273
  };
583
3274
  confidence_policy: {
584
3275
  calibrated: boolean;
@@ -587,52 +3278,295 @@ export declare const functionExplanationReviewWorkflowOutputSchema: z.ZodObject<
587
3278
  };
588
3279
  };
589
3280
  } | undefined;
3281
+ metrics?: {
3282
+ elapsed_ms: number;
3283
+ tool: string;
3284
+ } | undefined;
590
3285
  warnings?: string[] | undefined;
591
3286
  errors?: string[] | undefined;
592
3287
  artifacts?: any[] | undefined;
3288
+ setup_actions?: {
3289
+ id: string;
3290
+ summary: string;
3291
+ kind: "pip_install" | "set_env" | "provide_path" | "verify_install";
3292
+ title: string;
3293
+ required: boolean;
3294
+ examples: string[];
3295
+ applies_to: string[];
3296
+ command?: string | null | undefined;
3297
+ env_var?: string | null | undefined;
3298
+ value_hint?: string | null | undefined;
3299
+ }[] | undefined;
3300
+ required_user_inputs?: {
3301
+ summary: string;
3302
+ label: string;
3303
+ required: boolean;
3304
+ examples: string[];
3305
+ key: string;
3306
+ env_vars: string[];
3307
+ }[] | undefined;
593
3308
  }, {
594
3309
  ok: boolean;
595
- metrics?: {
596
- elapsed_ms: number;
597
- tool: string;
598
- } | undefined;
599
3310
  data?: {
3311
+ status: "queued";
3312
+ sample_id: string;
3313
+ tool: "workflow.function_explanation_review";
3314
+ progress: number;
3315
+ job_id: string;
3316
+ } | {
600
3317
  sample_id: string;
601
3318
  export: {
602
3319
  status: "failed" | "completed" | "skipped";
603
3320
  notes: string[];
3321
+ provenance: {
3322
+ runtime: {
3323
+ artifact_count: number;
3324
+ scope_note: string;
3325
+ artifact_ids: string[];
3326
+ session_selector: string | null;
3327
+ session_tags: string[];
3328
+ scope: "all" | "latest" | "session";
3329
+ earliest_artifact_at: string | null;
3330
+ latest_artifact_at: string | null;
3331
+ };
3332
+ semantic_module_reviews?: {
3333
+ artifact_count: number;
3334
+ scope_note: string;
3335
+ artifact_ids: string[];
3336
+ session_selector: string | null;
3337
+ session_tags: string[];
3338
+ scope: "all" | "latest" | "session";
3339
+ earliest_artifact_at: string | null;
3340
+ latest_artifact_at: string | null;
3341
+ } | undefined;
3342
+ semantic_names?: {
3343
+ artifact_count: number;
3344
+ scope_note: string;
3345
+ artifact_ids: string[];
3346
+ session_selector: string | null;
3347
+ session_tags: string[];
3348
+ scope: "all" | "latest" | "session";
3349
+ earliest_artifact_at: string | null;
3350
+ latest_artifact_at: string | null;
3351
+ } | undefined;
3352
+ semantic_explanations?: {
3353
+ artifact_count: number;
3354
+ scope_note: string;
3355
+ artifact_ids: string[];
3356
+ session_selector: string | null;
3357
+ session_tags: string[];
3358
+ scope: "all" | "latest" | "session";
3359
+ earliest_artifact_at: string | null;
3360
+ latest_artifact_at: string | null;
3361
+ } | undefined;
3362
+ } | null;
604
3363
  attempted: boolean;
605
3364
  export_root: string | null;
606
3365
  manifest_path: string | null;
607
3366
  build_validation_status: string | null;
608
3367
  harness_validation_status: string | null;
609
3368
  selected_path: "dotnet" | "native" | null;
3369
+ selection_diffs: {
3370
+ runtime?: {
3371
+ summary: string;
3372
+ baseline: {
3373
+ artifact_count: number;
3374
+ scope_note: string;
3375
+ artifact_ids: string[];
3376
+ session_selector: string | null;
3377
+ session_tags: string[];
3378
+ scope: "all" | "latest" | "session";
3379
+ earliest_artifact_at: string | null;
3380
+ latest_artifact_at: string | null;
3381
+ };
3382
+ label: "runtime" | "semantic_names" | "semantic_explanations";
3383
+ current: {
3384
+ artifact_count: number;
3385
+ scope_note: string;
3386
+ artifact_ids: string[];
3387
+ session_selector: string | null;
3388
+ session_tags: string[];
3389
+ scope: "all" | "latest" | "session";
3390
+ earliest_artifact_at: string | null;
3391
+ latest_artifact_at: string | null;
3392
+ };
3393
+ added_artifact_ids: string[];
3394
+ removed_artifact_ids: string[];
3395
+ added_session_tags: string[];
3396
+ removed_session_tags: string[];
3397
+ artifact_count_delta: number;
3398
+ } | undefined;
3399
+ semantic_names?: {
3400
+ summary: string;
3401
+ baseline: {
3402
+ artifact_count: number;
3403
+ scope_note: string;
3404
+ artifact_ids: string[];
3405
+ session_selector: string | null;
3406
+ session_tags: string[];
3407
+ scope: "all" | "latest" | "session";
3408
+ earliest_artifact_at: string | null;
3409
+ latest_artifact_at: string | null;
3410
+ };
3411
+ label: "runtime" | "semantic_names" | "semantic_explanations";
3412
+ current: {
3413
+ artifact_count: number;
3414
+ scope_note: string;
3415
+ artifact_ids: string[];
3416
+ session_selector: string | null;
3417
+ session_tags: string[];
3418
+ scope: "all" | "latest" | "session";
3419
+ earliest_artifact_at: string | null;
3420
+ latest_artifact_at: string | null;
3421
+ };
3422
+ added_artifact_ids: string[];
3423
+ removed_artifact_ids: string[];
3424
+ added_session_tags: string[];
3425
+ removed_session_tags: string[];
3426
+ artifact_count_delta: number;
3427
+ } | undefined;
3428
+ semantic_explanations?: {
3429
+ summary: string;
3430
+ baseline: {
3431
+ artifact_count: number;
3432
+ scope_note: string;
3433
+ artifact_ids: string[];
3434
+ session_selector: string | null;
3435
+ session_tags: string[];
3436
+ scope: "all" | "latest" | "session";
3437
+ earliest_artifact_at: string | null;
3438
+ latest_artifact_at: string | null;
3439
+ };
3440
+ label: "runtime" | "semantic_names" | "semantic_explanations";
3441
+ current: {
3442
+ artifact_count: number;
3443
+ scope_note: string;
3444
+ artifact_ids: string[];
3445
+ session_selector: string | null;
3446
+ session_tags: string[];
3447
+ scope: "all" | "latest" | "session";
3448
+ earliest_artifact_at: string | null;
3449
+ latest_artifact_at: string | null;
3450
+ };
3451
+ added_artifact_ids: string[];
3452
+ removed_artifact_ids: string[];
3453
+ added_session_tags: string[];
3454
+ removed_session_tags: string[];
3455
+ artifact_count_delta: number;
3456
+ } | undefined;
3457
+ } | null;
3458
+ preflight: {
3459
+ binary_profile: {
3460
+ sample_id: string;
3461
+ indicators: {
3462
+ com_server: {
3463
+ confidence: number;
3464
+ evidence: string[];
3465
+ likely: boolean;
3466
+ };
3467
+ service_binary: {
3468
+ confidence: number;
3469
+ evidence: string[];
3470
+ likely: boolean;
3471
+ };
3472
+ plugin_binary: {
3473
+ confidence: number;
3474
+ evidence: string[];
3475
+ likely: boolean;
3476
+ };
3477
+ driver_binary: {
3478
+ confidence: number;
3479
+ evidence: string[];
3480
+ likely: boolean;
3481
+ };
3482
+ };
3483
+ export_surface: {
3484
+ total_exports: number;
3485
+ total_forwarders: number;
3486
+ notable_exports: string[];
3487
+ com_related_exports: string[];
3488
+ service_related_exports: string[];
3489
+ plugin_related_exports: string[];
3490
+ forwarded_exports: string[];
3491
+ };
3492
+ packed: boolean;
3493
+ binary_role: string;
3494
+ original_filename: string | null;
3495
+ packing_confidence: number;
3496
+ analysis_priorities: string[];
3497
+ role_confidence: number;
3498
+ runtime_hint: {
3499
+ is_dotnet: boolean | null;
3500
+ dotnet_version: string | null;
3501
+ target_framework: string | null;
3502
+ primary_runtime: string | null;
3503
+ };
3504
+ import_surface: {
3505
+ dll_count: number;
3506
+ notable_dlls: string[];
3507
+ com_related_imports: string[];
3508
+ service_related_imports: string[];
3509
+ network_related_imports: string[];
3510
+ process_related_imports: string[];
3511
+ };
3512
+ export_dispatch_profile: {
3513
+ confidence: number;
3514
+ command_like_exports: string[];
3515
+ callback_like_exports: string[];
3516
+ registration_exports: string[];
3517
+ ordinal_only_exports: number;
3518
+ likely_dispatch_model: string;
3519
+ };
3520
+ com_profile: {
3521
+ confidence: number;
3522
+ clsid_strings: string[];
3523
+ progid_strings: string[];
3524
+ interface_hints: string[];
3525
+ registration_strings: string[];
3526
+ class_factory_exports: string[];
3527
+ class_factory_surface?: string[] | undefined;
3528
+ };
3529
+ host_interaction_profile: {
3530
+ confidence: number;
3531
+ likely_hosted: boolean;
3532
+ host_hints: string[];
3533
+ callback_exports: string[];
3534
+ callback_strings: string[];
3535
+ service_hooks: string[];
3536
+ callback_surface?: string[] | undefined;
3537
+ };
3538
+ strings_considered: number;
3539
+ lifecycle_surface?: string[] | undefined;
3540
+ } | null;
3541
+ rust_profile?: any;
3542
+ function_index_recovery?: any;
3543
+ } | null;
610
3544
  export_tool: string | null;
611
3545
  };
612
3546
  next_steps: string[];
613
3547
  review: {
614
- sampling: {
615
- model: string | null;
616
- attempted: boolean;
617
- stop_reason: string | null;
618
- parsed_explanation_count: number;
619
- };
620
3548
  client: {
621
3549
  name: string | null;
622
3550
  version: string | null;
623
3551
  sampling_available: boolean;
624
3552
  };
3553
+ sampling: {
3554
+ attempted: boolean;
3555
+ model: string | null;
3556
+ stop_reason: string | null;
3557
+ parsed_explanation_count: number;
3558
+ };
625
3559
  prompt_name: string;
626
3560
  review_status: string;
627
3561
  prepare: {
628
- artifact_id: string | null;
629
3562
  prepared_count: number;
3563
+ artifact_id: string | null;
630
3564
  };
631
3565
  apply: {
632
- artifact_id: string | null;
633
3566
  attempted: boolean;
634
3567
  accepted_count: number;
635
3568
  rejected_count: number;
3569
+ artifact_id: string | null;
636
3570
  };
637
3571
  confidence_policy: {
638
3572
  calibrated: boolean;
@@ -641,15 +3575,39 @@ export declare const functionExplanationReviewWorkflowOutputSchema: z.ZodObject<
641
3575
  };
642
3576
  };
643
3577
  } | undefined;
3578
+ metrics?: {
3579
+ elapsed_ms: number;
3580
+ tool: string;
3581
+ } | undefined;
644
3582
  warnings?: string[] | undefined;
645
3583
  errors?: string[] | undefined;
646
3584
  artifacts?: any[] | undefined;
3585
+ setup_actions?: {
3586
+ id: string;
3587
+ summary: string;
3588
+ kind: "pip_install" | "set_env" | "provide_path" | "verify_install";
3589
+ title: string;
3590
+ required: boolean;
3591
+ command?: string | null | undefined;
3592
+ env_var?: string | null | undefined;
3593
+ value_hint?: string | null | undefined;
3594
+ examples?: string[] | undefined;
3595
+ applies_to?: string[] | undefined;
3596
+ }[] | undefined;
3597
+ required_user_inputs?: {
3598
+ summary: string;
3599
+ label: string;
3600
+ required: boolean;
3601
+ key: string;
3602
+ examples?: string[] | undefined;
3603
+ env_vars?: string[] | undefined;
3604
+ }[] | undefined;
647
3605
  }>;
648
3606
  export declare const functionExplanationReviewWorkflowToolDefinition: ToolDefinition;
649
3607
  interface FunctionExplanationReviewWorkflowDependencies {
650
3608
  explainReviewHandler?: (args: ToolArgs) => Promise<WorkerResult>;
651
3609
  reconstructWorkflowHandler?: (args: ToolArgs) => Promise<WorkerResult>;
652
3610
  }
653
- export declare function createFunctionExplanationReviewWorkflowHandler(workspaceManager: WorkspaceManager, database: DatabaseManager, cacheManager: CacheManager, mcpServer?: MCPServer, dependencies?: FunctionExplanationReviewWorkflowDependencies): (args: ToolArgs) => Promise<WorkerResult>;
3611
+ export declare function createFunctionExplanationReviewWorkflowHandler(workspaceManager: WorkspaceManager, database: DatabaseManager, cacheManager: CacheManager, mcpServer?: MCPServer, dependencies?: FunctionExplanationReviewWorkflowDependencies, jobQueue?: JobQueue): (args: ToolArgs) => Promise<WorkerResult>;
654
3612
  export {};
655
3613
  //# sourceMappingURL=function-explanation-review.d.ts.map