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,6 +7,7 @@ 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
12
  export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
12
13
  sample_id: z.ZodString;
@@ -41,6 +42,8 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
41
42
  export_path: z.ZodDefault<z.ZodEnum<["auto", "native", "dotnet"]>>;
42
43
  export_topk: z.ZodDefault<z.ZodNumber>;
43
44
  export_name: z.ZodOptional<z.ZodString>;
45
+ include_preflight: z.ZodDefault<z.ZodBoolean>;
46
+ auto_recover_function_index: z.ZodDefault<z.ZodBoolean>;
44
47
  include_plan: z.ZodDefault<z.ZodBoolean>;
45
48
  include_obfuscation_fallback: z.ZodDefault<z.ZodBoolean>;
46
49
  fallback_on_error: z.ZodDefault<z.ZodBoolean>;
@@ -54,7 +57,6 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
54
57
  }, "strip", z.ZodTypeAny, {
55
58
  sample_id: string;
56
59
  evidence_scope: "all" | "latest" | "session";
57
- temperature: number;
58
60
  topk: number;
59
61
  semantic_scope: "all" | "latest" | "session";
60
62
  validate_build: boolean;
@@ -63,13 +65,16 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
63
65
  run_timeout_ms: number;
64
66
  reuse_cached: boolean;
65
67
  include_obfuscation_fallback: boolean;
68
+ persist_artifact: boolean;
69
+ include_preflight: boolean;
70
+ auto_recover_function_index: boolean;
66
71
  include_plan: boolean;
67
72
  fallback_on_error: boolean;
68
73
  allow_partial: boolean;
74
+ temperature: number;
69
75
  analysis_goal: string;
70
76
  include_resolved: boolean;
71
77
  max_functions: number;
72
- persist_artifact: boolean;
73
78
  auto_include_resolved_on_empty: boolean;
74
79
  auto_apply: boolean;
75
80
  rerun_reconstruct: boolean;
@@ -100,7 +105,6 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
100
105
  address?: string | undefined;
101
106
  session_tag?: string | undefined;
102
107
  evidence_scope?: "all" | "latest" | "session" | undefined;
103
- temperature?: number | undefined;
104
108
  topk?: number | undefined;
105
109
  evidence_session_tag?: string | undefined;
106
110
  semantic_scope?: "all" | "latest" | "session" | undefined;
@@ -113,17 +117,20 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
113
117
  run_timeout_ms?: number | undefined;
114
118
  reuse_cached?: boolean | undefined;
115
119
  include_obfuscation_fallback?: boolean | undefined;
120
+ persist_artifact?: boolean | undefined;
116
121
  compare_evidence_scope?: "all" | "latest" | "session" | undefined;
117
122
  compare_evidence_session_tag?: string | undefined;
118
123
  compare_semantic_scope?: "all" | "latest" | "session" | undefined;
119
124
  compare_semantic_session_tag?: string | undefined;
125
+ include_preflight?: boolean | undefined;
126
+ auto_recover_function_index?: boolean | undefined;
120
127
  include_plan?: boolean | undefined;
121
128
  fallback_on_error?: boolean | undefined;
122
129
  allow_partial?: boolean | undefined;
130
+ temperature?: number | undefined;
123
131
  analysis_goal?: string | undefined;
124
132
  include_resolved?: boolean | undefined;
125
133
  max_functions?: number | undefined;
126
- persist_artifact?: boolean | undefined;
127
134
  auto_include_resolved_on_empty?: boolean | undefined;
128
135
  auto_apply?: boolean | undefined;
129
136
  rerun_reconstruct?: boolean | undefined;
@@ -140,7 +147,6 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
140
147
  }>, {
141
148
  sample_id: string;
142
149
  evidence_scope: "all" | "latest" | "session";
143
- temperature: number;
144
150
  topk: number;
145
151
  semantic_scope: "all" | "latest" | "session";
146
152
  validate_build: boolean;
@@ -149,13 +155,16 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
149
155
  run_timeout_ms: number;
150
156
  reuse_cached: boolean;
151
157
  include_obfuscation_fallback: boolean;
158
+ persist_artifact: boolean;
159
+ include_preflight: boolean;
160
+ auto_recover_function_index: boolean;
152
161
  include_plan: boolean;
153
162
  fallback_on_error: boolean;
154
163
  allow_partial: boolean;
164
+ temperature: number;
155
165
  analysis_goal: string;
156
166
  include_resolved: boolean;
157
167
  max_functions: number;
158
- persist_artifact: boolean;
159
168
  auto_include_resolved_on_empty: boolean;
160
169
  auto_apply: boolean;
161
170
  rerun_reconstruct: boolean;
@@ -186,7 +195,6 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
186
195
  address?: string | undefined;
187
196
  session_tag?: string | undefined;
188
197
  evidence_scope?: "all" | "latest" | "session" | undefined;
189
- temperature?: number | undefined;
190
198
  topk?: number | undefined;
191
199
  evidence_session_tag?: string | undefined;
192
200
  semantic_scope?: "all" | "latest" | "session" | undefined;
@@ -199,17 +207,20 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
199
207
  run_timeout_ms?: number | undefined;
200
208
  reuse_cached?: boolean | undefined;
201
209
  include_obfuscation_fallback?: boolean | undefined;
210
+ persist_artifact?: boolean | undefined;
202
211
  compare_evidence_scope?: "all" | "latest" | "session" | undefined;
203
212
  compare_evidence_session_tag?: string | undefined;
204
213
  compare_semantic_scope?: "all" | "latest" | "session" | undefined;
205
214
  compare_semantic_session_tag?: string | undefined;
215
+ include_preflight?: boolean | undefined;
216
+ auto_recover_function_index?: boolean | undefined;
206
217
  include_plan?: boolean | undefined;
207
218
  fallback_on_error?: boolean | undefined;
208
219
  allow_partial?: boolean | undefined;
220
+ temperature?: number | undefined;
209
221
  analysis_goal?: string | undefined;
210
222
  include_resolved?: boolean | undefined;
211
223
  max_functions?: number | undefined;
212
- persist_artifact?: boolean | undefined;
213
224
  auto_include_resolved_on_empty?: boolean | undefined;
214
225
  auto_apply?: boolean | undefined;
215
226
  rerun_reconstruct?: boolean | undefined;
@@ -226,7 +237,6 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
226
237
  }>, {
227
238
  sample_id: string;
228
239
  evidence_scope: "all" | "latest" | "session";
229
- temperature: number;
230
240
  topk: number;
231
241
  semantic_scope: "all" | "latest" | "session";
232
242
  validate_build: boolean;
@@ -235,13 +245,16 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
235
245
  run_timeout_ms: number;
236
246
  reuse_cached: boolean;
237
247
  include_obfuscation_fallback: boolean;
248
+ persist_artifact: boolean;
249
+ include_preflight: boolean;
250
+ auto_recover_function_index: boolean;
238
251
  include_plan: boolean;
239
252
  fallback_on_error: boolean;
240
253
  allow_partial: boolean;
254
+ temperature: number;
241
255
  analysis_goal: string;
242
256
  include_resolved: boolean;
243
257
  max_functions: number;
244
- persist_artifact: boolean;
245
258
  auto_include_resolved_on_empty: boolean;
246
259
  auto_apply: boolean;
247
260
  rerun_reconstruct: boolean;
@@ -272,7 +285,6 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
272
285
  address?: string | undefined;
273
286
  session_tag?: string | undefined;
274
287
  evidence_scope?: "all" | "latest" | "session" | undefined;
275
- temperature?: number | undefined;
276
288
  topk?: number | undefined;
277
289
  evidence_session_tag?: string | undefined;
278
290
  semantic_scope?: "all" | "latest" | "session" | undefined;
@@ -285,17 +297,20 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
285
297
  run_timeout_ms?: number | undefined;
286
298
  reuse_cached?: boolean | undefined;
287
299
  include_obfuscation_fallback?: boolean | undefined;
300
+ persist_artifact?: boolean | undefined;
288
301
  compare_evidence_scope?: "all" | "latest" | "session" | undefined;
289
302
  compare_evidence_session_tag?: string | undefined;
290
303
  compare_semantic_scope?: "all" | "latest" | "session" | undefined;
291
304
  compare_semantic_session_tag?: string | undefined;
305
+ include_preflight?: boolean | undefined;
306
+ auto_recover_function_index?: boolean | undefined;
292
307
  include_plan?: boolean | undefined;
293
308
  fallback_on_error?: boolean | undefined;
294
309
  allow_partial?: boolean | undefined;
310
+ temperature?: number | undefined;
295
311
  analysis_goal?: string | undefined;
296
312
  include_resolved?: boolean | undefined;
297
313
  max_functions?: number | undefined;
298
- persist_artifact?: boolean | undefined;
299
314
  auto_include_resolved_on_empty?: boolean | undefined;
300
315
  auto_apply?: boolean | undefined;
301
316
  rerun_reconstruct?: boolean | undefined;
@@ -312,7 +327,6 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
312
327
  }>, {
313
328
  sample_id: string;
314
329
  evidence_scope: "all" | "latest" | "session";
315
- temperature: number;
316
330
  topk: number;
317
331
  semantic_scope: "all" | "latest" | "session";
318
332
  validate_build: boolean;
@@ -321,13 +335,16 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
321
335
  run_timeout_ms: number;
322
336
  reuse_cached: boolean;
323
337
  include_obfuscation_fallback: boolean;
338
+ persist_artifact: boolean;
339
+ include_preflight: boolean;
340
+ auto_recover_function_index: boolean;
324
341
  include_plan: boolean;
325
342
  fallback_on_error: boolean;
326
343
  allow_partial: boolean;
344
+ temperature: number;
327
345
  analysis_goal: string;
328
346
  include_resolved: boolean;
329
347
  max_functions: number;
330
- persist_artifact: boolean;
331
348
  auto_include_resolved_on_empty: boolean;
332
349
  auto_apply: boolean;
333
350
  rerun_reconstruct: boolean;
@@ -358,7 +375,6 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
358
375
  address?: string | undefined;
359
376
  session_tag?: string | undefined;
360
377
  evidence_scope?: "all" | "latest" | "session" | undefined;
361
- temperature?: number | undefined;
362
378
  topk?: number | undefined;
363
379
  evidence_session_tag?: string | undefined;
364
380
  semantic_scope?: "all" | "latest" | "session" | undefined;
@@ -371,17 +387,20 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
371
387
  run_timeout_ms?: number | undefined;
372
388
  reuse_cached?: boolean | undefined;
373
389
  include_obfuscation_fallback?: boolean | undefined;
390
+ persist_artifact?: boolean | undefined;
374
391
  compare_evidence_scope?: "all" | "latest" | "session" | undefined;
375
392
  compare_evidence_session_tag?: string | undefined;
376
393
  compare_semantic_scope?: "all" | "latest" | "session" | undefined;
377
394
  compare_semantic_session_tag?: string | undefined;
395
+ include_preflight?: boolean | undefined;
396
+ auto_recover_function_index?: boolean | undefined;
378
397
  include_plan?: boolean | undefined;
379
398
  fallback_on_error?: boolean | undefined;
380
399
  allow_partial?: boolean | undefined;
400
+ temperature?: number | undefined;
381
401
  analysis_goal?: string | undefined;
382
402
  include_resolved?: boolean | undefined;
383
403
  max_functions?: number | undefined;
384
- persist_artifact?: boolean | undefined;
385
404
  auto_include_resolved_on_empty?: boolean | undefined;
386
405
  auto_apply?: boolean | undefined;
387
406
  rerun_reconstruct?: boolean | undefined;
@@ -398,7 +417,6 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
398
417
  }>, {
399
418
  sample_id: string;
400
419
  evidence_scope: "all" | "latest" | "session";
401
- temperature: number;
402
420
  topk: number;
403
421
  semantic_scope: "all" | "latest" | "session";
404
422
  validate_build: boolean;
@@ -407,13 +425,16 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
407
425
  run_timeout_ms: number;
408
426
  reuse_cached: boolean;
409
427
  include_obfuscation_fallback: boolean;
428
+ persist_artifact: boolean;
429
+ include_preflight: boolean;
430
+ auto_recover_function_index: boolean;
410
431
  include_plan: boolean;
411
432
  fallback_on_error: boolean;
412
433
  allow_partial: boolean;
434
+ temperature: number;
413
435
  analysis_goal: string;
414
436
  include_resolved: boolean;
415
437
  max_functions: number;
416
- persist_artifact: boolean;
417
438
  auto_include_resolved_on_empty: boolean;
418
439
  auto_apply: boolean;
419
440
  rerun_reconstruct: boolean;
@@ -444,7 +465,6 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
444
465
  address?: string | undefined;
445
466
  session_tag?: string | undefined;
446
467
  evidence_scope?: "all" | "latest" | "session" | undefined;
447
- temperature?: number | undefined;
448
468
  topk?: number | undefined;
449
469
  evidence_session_tag?: string | undefined;
450
470
  semantic_scope?: "all" | "latest" | "session" | undefined;
@@ -457,17 +477,20 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
457
477
  run_timeout_ms?: number | undefined;
458
478
  reuse_cached?: boolean | undefined;
459
479
  include_obfuscation_fallback?: boolean | undefined;
480
+ persist_artifact?: boolean | undefined;
460
481
  compare_evidence_scope?: "all" | "latest" | "session" | undefined;
461
482
  compare_evidence_session_tag?: string | undefined;
462
483
  compare_semantic_scope?: "all" | "latest" | "session" | undefined;
463
484
  compare_semantic_session_tag?: string | undefined;
485
+ include_preflight?: boolean | undefined;
486
+ auto_recover_function_index?: boolean | undefined;
464
487
  include_plan?: boolean | undefined;
465
488
  fallback_on_error?: boolean | undefined;
466
489
  allow_partial?: boolean | undefined;
490
+ temperature?: number | undefined;
467
491
  analysis_goal?: string | undefined;
468
492
  include_resolved?: boolean | undefined;
469
493
  max_functions?: number | undefined;
470
- persist_artifact?: boolean | undefined;
471
494
  auto_include_resolved_on_empty?: boolean | undefined;
472
495
  auto_apply?: boolean | undefined;
473
496
  rerun_reconstruct?: boolean | undefined;
@@ -484,7 +507,25 @@ export declare const semanticNameReviewWorkflowInputSchema: z.ZodEffects<z.ZodEf
484
507
  }>;
485
508
  export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
486
509
  ok: z.ZodBoolean;
487
- data: z.ZodOptional<z.ZodObject<{
510
+ data: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
511
+ job_id: z.ZodString;
512
+ status: z.ZodLiteral<"queued">;
513
+ tool: z.ZodLiteral<"workflow.semantic_name_review">;
514
+ sample_id: z.ZodString;
515
+ progress: z.ZodNumber;
516
+ }, "strip", z.ZodTypeAny, {
517
+ status: "queued";
518
+ sample_id: string;
519
+ tool: "workflow.semantic_name_review";
520
+ progress: number;
521
+ job_id: string;
522
+ }, {
523
+ status: "queued";
524
+ sample_id: string;
525
+ tool: "workflow.semantic_name_review";
526
+ progress: number;
527
+ job_id: string;
528
+ }>, z.ZodObject<{
488
529
  sample_id: z.ZodString;
489
530
  review: z.ZodObject<{
490
531
  review_status: z.ZodString;
@@ -508,15 +549,15 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
508
549
  include_resolved: z.ZodBoolean;
509
550
  artifact_id: z.ZodNullable<z.ZodString>;
510
551
  }, "strip", z.ZodTypeAny, {
511
- artifact_id: string | null;
512
552
  unresolved_count: number;
513
553
  include_resolved: boolean;
514
554
  prepared_count: number;
515
- }, {
516
555
  artifact_id: string | null;
556
+ }, {
517
557
  unresolved_count: number;
518
558
  include_resolved: boolean;
519
559
  prepared_count: number;
560
+ artifact_id: string | null;
520
561
  }>;
521
562
  sampling: z.ZodObject<{
522
563
  attempted: z.ZodBoolean;
@@ -524,13 +565,13 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
524
565
  stop_reason: z.ZodNullable<z.ZodString>;
525
566
  parsed_suggestion_count: z.ZodNumber;
526
567
  }, "strip", z.ZodTypeAny, {
527
- model: string | null;
528
568
  attempted: boolean;
569
+ model: string | null;
529
570
  stop_reason: string | null;
530
571
  parsed_suggestion_count: number;
531
572
  }, {
532
- model: string | null;
533
573
  attempted: boolean;
574
+ model: string | null;
534
575
  stop_reason: string | null;
535
576
  parsed_suggestion_count: number;
536
577
  }>;
@@ -540,15 +581,15 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
540
581
  rejected_count: z.ZodNumber;
541
582
  artifact_id: z.ZodNullable<z.ZodString>;
542
583
  }, "strip", z.ZodTypeAny, {
543
- artifact_id: string | null;
544
584
  attempted: boolean;
545
585
  accepted_count: number;
546
586
  rejected_count: number;
547
- }, {
548
587
  artifact_id: string | null;
588
+ }, {
549
589
  attempted: boolean;
550
590
  accepted_count: number;
551
591
  rejected_count: number;
592
+ artifact_id: string | null;
552
593
  }>;
553
594
  confidence_policy: z.ZodObject<{
554
595
  calibrated: z.ZodBoolean;
@@ -608,12 +649,6 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
608
649
  llm_or_hybrid_count: number;
609
650
  }>;
610
651
  }, "strip", z.ZodTypeAny, {
611
- sampling: {
612
- model: string | null;
613
- attempted: boolean;
614
- stop_reason: string | null;
615
- parsed_suggestion_count: number;
616
- };
617
652
  reconstruct: {
618
653
  functions: {
619
654
  function: string;
@@ -630,19 +665,25 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
630
665
  version: string | null;
631
666
  sampling_available: boolean;
632
667
  };
668
+ sampling: {
669
+ attempted: boolean;
670
+ model: string | null;
671
+ stop_reason: string | null;
672
+ parsed_suggestion_count: number;
673
+ };
633
674
  prompt_name: string;
634
675
  review_status: string;
635
676
  prepare: {
636
- artifact_id: string | null;
637
677
  unresolved_count: number;
638
678
  include_resolved: boolean;
639
679
  prepared_count: number;
680
+ artifact_id: string | null;
640
681
  };
641
682
  apply: {
642
- artifact_id: string | null;
643
683
  attempted: boolean;
644
684
  accepted_count: number;
645
685
  rejected_count: number;
686
+ artifact_id: string | null;
646
687
  };
647
688
  confidence_policy: {
648
689
  calibrated: boolean;
@@ -651,12 +692,6 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
651
692
  llm_acceptance_threshold: number;
652
693
  };
653
694
  }, {
654
- sampling: {
655
- model: string | null;
656
- attempted: boolean;
657
- stop_reason: string | null;
658
- parsed_suggestion_count: number;
659
- };
660
695
  reconstruct: {
661
696
  functions: {
662
697
  function: string;
@@ -673,19 +708,25 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
673
708
  version: string | null;
674
709
  sampling_available: boolean;
675
710
  };
711
+ sampling: {
712
+ attempted: boolean;
713
+ model: string | null;
714
+ stop_reason: string | null;
715
+ parsed_suggestion_count: number;
716
+ };
676
717
  prompt_name: string;
677
718
  review_status: string;
678
719
  prepare: {
679
- artifact_id: string | null;
680
720
  unresolved_count: number;
681
721
  include_resolved: boolean;
682
722
  prepared_count: number;
723
+ artifact_id: string | null;
683
724
  };
684
725
  apply: {
685
- artifact_id: string | null;
686
726
  attempted: boolean;
687
727
  accepted_count: number;
688
728
  rejected_count: number;
729
+ artifact_id: string | null;
689
730
  };
690
731
  confidence_policy: {
691
732
  calibrated: boolean;
@@ -703,6 +744,584 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
703
744
  manifest_path: z.ZodNullable<z.ZodString>;
704
745
  build_validation_status: z.ZodNullable<z.ZodString>;
705
746
  harness_validation_status: z.ZodNullable<z.ZodString>;
747
+ preflight: z.ZodNullable<z.ZodObject<{
748
+ binary_profile: z.ZodNullable<z.ZodObject<{
749
+ sample_id: z.ZodString;
750
+ original_filename: z.ZodNullable<z.ZodString>;
751
+ binary_role: z.ZodString;
752
+ role_confidence: z.ZodNumber;
753
+ runtime_hint: z.ZodObject<{
754
+ is_dotnet: z.ZodNullable<z.ZodBoolean>;
755
+ dotnet_version: z.ZodNullable<z.ZodString>;
756
+ target_framework: z.ZodNullable<z.ZodString>;
757
+ primary_runtime: z.ZodNullable<z.ZodString>;
758
+ }, "strip", z.ZodTypeAny, {
759
+ is_dotnet: boolean | null;
760
+ dotnet_version: string | null;
761
+ target_framework: string | null;
762
+ primary_runtime: string | null;
763
+ }, {
764
+ is_dotnet: boolean | null;
765
+ dotnet_version: string | null;
766
+ target_framework: string | null;
767
+ primary_runtime: string | null;
768
+ }>;
769
+ export_surface: z.ZodObject<{
770
+ total_exports: z.ZodNumber;
771
+ total_forwarders: z.ZodNumber;
772
+ notable_exports: z.ZodArray<z.ZodString, "many">;
773
+ com_related_exports: z.ZodArray<z.ZodString, "many">;
774
+ service_related_exports: z.ZodArray<z.ZodString, "many">;
775
+ plugin_related_exports: z.ZodArray<z.ZodString, "many">;
776
+ forwarded_exports: z.ZodArray<z.ZodString, "many">;
777
+ }, "strip", z.ZodTypeAny, {
778
+ total_exports: number;
779
+ total_forwarders: number;
780
+ notable_exports: string[];
781
+ com_related_exports: string[];
782
+ service_related_exports: string[];
783
+ plugin_related_exports: string[];
784
+ forwarded_exports: string[];
785
+ }, {
786
+ total_exports: number;
787
+ total_forwarders: number;
788
+ notable_exports: string[];
789
+ com_related_exports: string[];
790
+ service_related_exports: string[];
791
+ plugin_related_exports: string[];
792
+ forwarded_exports: string[];
793
+ }>;
794
+ import_surface: z.ZodObject<{
795
+ dll_count: z.ZodNumber;
796
+ notable_dlls: z.ZodArray<z.ZodString, "many">;
797
+ com_related_imports: z.ZodArray<z.ZodString, "many">;
798
+ service_related_imports: z.ZodArray<z.ZodString, "many">;
799
+ network_related_imports: z.ZodArray<z.ZodString, "many">;
800
+ process_related_imports: z.ZodArray<z.ZodString, "many">;
801
+ }, "strip", z.ZodTypeAny, {
802
+ dll_count: number;
803
+ notable_dlls: string[];
804
+ com_related_imports: string[];
805
+ service_related_imports: string[];
806
+ network_related_imports: string[];
807
+ process_related_imports: string[];
808
+ }, {
809
+ dll_count: number;
810
+ notable_dlls: string[];
811
+ com_related_imports: string[];
812
+ service_related_imports: string[];
813
+ network_related_imports: string[];
814
+ process_related_imports: string[];
815
+ }>;
816
+ packed: z.ZodBoolean;
817
+ packing_confidence: z.ZodNumber;
818
+ indicators: z.ZodObject<{
819
+ com_server: z.ZodObject<{
820
+ likely: z.ZodBoolean;
821
+ confidence: z.ZodNumber;
822
+ evidence: z.ZodArray<z.ZodString, "many">;
823
+ }, "strip", z.ZodTypeAny, {
824
+ confidence: number;
825
+ evidence: string[];
826
+ likely: boolean;
827
+ }, {
828
+ confidence: number;
829
+ evidence: string[];
830
+ likely: boolean;
831
+ }>;
832
+ service_binary: z.ZodObject<{
833
+ likely: z.ZodBoolean;
834
+ confidence: z.ZodNumber;
835
+ evidence: z.ZodArray<z.ZodString, "many">;
836
+ }, "strip", z.ZodTypeAny, {
837
+ confidence: number;
838
+ evidence: string[];
839
+ likely: boolean;
840
+ }, {
841
+ confidence: number;
842
+ evidence: string[];
843
+ likely: boolean;
844
+ }>;
845
+ plugin_binary: z.ZodObject<{
846
+ likely: z.ZodBoolean;
847
+ confidence: z.ZodNumber;
848
+ evidence: z.ZodArray<z.ZodString, "many">;
849
+ }, "strip", z.ZodTypeAny, {
850
+ confidence: number;
851
+ evidence: string[];
852
+ likely: boolean;
853
+ }, {
854
+ confidence: number;
855
+ evidence: string[];
856
+ likely: boolean;
857
+ }>;
858
+ driver_binary: z.ZodObject<{
859
+ likely: z.ZodBoolean;
860
+ confidence: z.ZodNumber;
861
+ evidence: z.ZodArray<z.ZodString, "many">;
862
+ }, "strip", z.ZodTypeAny, {
863
+ confidence: number;
864
+ evidence: string[];
865
+ likely: boolean;
866
+ }, {
867
+ confidence: number;
868
+ evidence: string[];
869
+ likely: boolean;
870
+ }>;
871
+ }, "strip", z.ZodTypeAny, {
872
+ com_server: {
873
+ confidence: number;
874
+ evidence: string[];
875
+ likely: boolean;
876
+ };
877
+ service_binary: {
878
+ confidence: number;
879
+ evidence: string[];
880
+ likely: boolean;
881
+ };
882
+ plugin_binary: {
883
+ confidence: number;
884
+ evidence: string[];
885
+ likely: boolean;
886
+ };
887
+ driver_binary: {
888
+ confidence: number;
889
+ evidence: string[];
890
+ likely: boolean;
891
+ };
892
+ }, {
893
+ com_server: {
894
+ confidence: number;
895
+ evidence: string[];
896
+ likely: boolean;
897
+ };
898
+ service_binary: {
899
+ confidence: number;
900
+ evidence: string[];
901
+ likely: boolean;
902
+ };
903
+ plugin_binary: {
904
+ confidence: number;
905
+ evidence: string[];
906
+ likely: boolean;
907
+ };
908
+ driver_binary: {
909
+ confidence: number;
910
+ evidence: string[];
911
+ likely: boolean;
912
+ };
913
+ }>;
914
+ export_dispatch_profile: z.ZodObject<{
915
+ command_like_exports: z.ZodArray<z.ZodString, "many">;
916
+ callback_like_exports: z.ZodArray<z.ZodString, "many">;
917
+ registration_exports: z.ZodArray<z.ZodString, "many">;
918
+ ordinal_only_exports: z.ZodNumber;
919
+ likely_dispatch_model: z.ZodString;
920
+ confidence: z.ZodNumber;
921
+ }, "strip", z.ZodTypeAny, {
922
+ confidence: number;
923
+ command_like_exports: string[];
924
+ callback_like_exports: string[];
925
+ registration_exports: string[];
926
+ ordinal_only_exports: number;
927
+ likely_dispatch_model: string;
928
+ }, {
929
+ confidence: number;
930
+ command_like_exports: string[];
931
+ callback_like_exports: string[];
932
+ registration_exports: string[];
933
+ ordinal_only_exports: number;
934
+ likely_dispatch_model: string;
935
+ }>;
936
+ lifecycle_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
937
+ com_profile: z.ZodObject<{
938
+ clsid_strings: z.ZodArray<z.ZodString, "many">;
939
+ progid_strings: z.ZodArray<z.ZodString, "many">;
940
+ interface_hints: z.ZodArray<z.ZodString, "many">;
941
+ registration_strings: z.ZodArray<z.ZodString, "many">;
942
+ class_factory_exports: z.ZodArray<z.ZodString, "many">;
943
+ class_factory_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
944
+ confidence: z.ZodNumber;
945
+ }, "strip", z.ZodTypeAny, {
946
+ confidence: number;
947
+ clsid_strings: string[];
948
+ progid_strings: string[];
949
+ interface_hints: string[];
950
+ registration_strings: string[];
951
+ class_factory_exports: string[];
952
+ class_factory_surface: string[];
953
+ }, {
954
+ confidence: number;
955
+ clsid_strings: string[];
956
+ progid_strings: string[];
957
+ interface_hints: string[];
958
+ registration_strings: string[];
959
+ class_factory_exports: string[];
960
+ class_factory_surface?: string[] | undefined;
961
+ }>;
962
+ host_interaction_profile: z.ZodObject<{
963
+ likely_hosted: z.ZodBoolean;
964
+ host_hints: z.ZodArray<z.ZodString, "many">;
965
+ callback_exports: z.ZodArray<z.ZodString, "many">;
966
+ callback_surface: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
967
+ callback_strings: z.ZodArray<z.ZodString, "many">;
968
+ service_hooks: z.ZodArray<z.ZodString, "many">;
969
+ confidence: z.ZodNumber;
970
+ }, "strip", z.ZodTypeAny, {
971
+ confidence: number;
972
+ callback_surface: string[];
973
+ likely_hosted: boolean;
974
+ host_hints: string[];
975
+ callback_exports: string[];
976
+ callback_strings: string[];
977
+ service_hooks: string[];
978
+ }, {
979
+ confidence: number;
980
+ likely_hosted: boolean;
981
+ host_hints: string[];
982
+ callback_exports: string[];
983
+ callback_strings: string[];
984
+ service_hooks: string[];
985
+ callback_surface?: string[] | undefined;
986
+ }>;
987
+ analysis_priorities: z.ZodArray<z.ZodString, "many">;
988
+ strings_considered: z.ZodNumber;
989
+ }, "strip", z.ZodTypeAny, {
990
+ sample_id: string;
991
+ indicators: {
992
+ com_server: {
993
+ confidence: number;
994
+ evidence: string[];
995
+ likely: boolean;
996
+ };
997
+ service_binary: {
998
+ confidence: number;
999
+ evidence: string[];
1000
+ likely: boolean;
1001
+ };
1002
+ plugin_binary: {
1003
+ confidence: number;
1004
+ evidence: string[];
1005
+ likely: boolean;
1006
+ };
1007
+ driver_binary: {
1008
+ confidence: number;
1009
+ evidence: string[];
1010
+ likely: boolean;
1011
+ };
1012
+ };
1013
+ export_surface: {
1014
+ total_exports: number;
1015
+ total_forwarders: number;
1016
+ notable_exports: string[];
1017
+ com_related_exports: string[];
1018
+ service_related_exports: string[];
1019
+ plugin_related_exports: string[];
1020
+ forwarded_exports: string[];
1021
+ };
1022
+ packed: boolean;
1023
+ binary_role: string;
1024
+ original_filename: string | null;
1025
+ packing_confidence: number;
1026
+ analysis_priorities: string[];
1027
+ role_confidence: number;
1028
+ runtime_hint: {
1029
+ is_dotnet: boolean | null;
1030
+ dotnet_version: string | null;
1031
+ target_framework: string | null;
1032
+ primary_runtime: string | null;
1033
+ };
1034
+ import_surface: {
1035
+ dll_count: number;
1036
+ notable_dlls: string[];
1037
+ com_related_imports: string[];
1038
+ service_related_imports: string[];
1039
+ network_related_imports: string[];
1040
+ process_related_imports: string[];
1041
+ };
1042
+ export_dispatch_profile: {
1043
+ confidence: number;
1044
+ command_like_exports: string[];
1045
+ callback_like_exports: string[];
1046
+ registration_exports: string[];
1047
+ ordinal_only_exports: number;
1048
+ likely_dispatch_model: string;
1049
+ };
1050
+ lifecycle_surface: string[];
1051
+ com_profile: {
1052
+ confidence: number;
1053
+ clsid_strings: string[];
1054
+ progid_strings: string[];
1055
+ interface_hints: string[];
1056
+ registration_strings: string[];
1057
+ class_factory_exports: string[];
1058
+ class_factory_surface: string[];
1059
+ };
1060
+ host_interaction_profile: {
1061
+ confidence: number;
1062
+ callback_surface: string[];
1063
+ likely_hosted: boolean;
1064
+ host_hints: string[];
1065
+ callback_exports: string[];
1066
+ callback_strings: string[];
1067
+ service_hooks: string[];
1068
+ };
1069
+ strings_considered: number;
1070
+ }, {
1071
+ sample_id: string;
1072
+ indicators: {
1073
+ com_server: {
1074
+ confidence: number;
1075
+ evidence: string[];
1076
+ likely: boolean;
1077
+ };
1078
+ service_binary: {
1079
+ confidence: number;
1080
+ evidence: string[];
1081
+ likely: boolean;
1082
+ };
1083
+ plugin_binary: {
1084
+ confidence: number;
1085
+ evidence: string[];
1086
+ likely: boolean;
1087
+ };
1088
+ driver_binary: {
1089
+ confidence: number;
1090
+ evidence: string[];
1091
+ likely: boolean;
1092
+ };
1093
+ };
1094
+ export_surface: {
1095
+ total_exports: number;
1096
+ total_forwarders: number;
1097
+ notable_exports: string[];
1098
+ com_related_exports: string[];
1099
+ service_related_exports: string[];
1100
+ plugin_related_exports: string[];
1101
+ forwarded_exports: string[];
1102
+ };
1103
+ packed: boolean;
1104
+ binary_role: string;
1105
+ original_filename: string | null;
1106
+ packing_confidence: number;
1107
+ analysis_priorities: string[];
1108
+ role_confidence: number;
1109
+ runtime_hint: {
1110
+ is_dotnet: boolean | null;
1111
+ dotnet_version: string | null;
1112
+ target_framework: string | null;
1113
+ primary_runtime: string | null;
1114
+ };
1115
+ import_surface: {
1116
+ dll_count: number;
1117
+ notable_dlls: string[];
1118
+ com_related_imports: string[];
1119
+ service_related_imports: string[];
1120
+ network_related_imports: string[];
1121
+ process_related_imports: string[];
1122
+ };
1123
+ export_dispatch_profile: {
1124
+ confidence: number;
1125
+ command_like_exports: string[];
1126
+ callback_like_exports: string[];
1127
+ registration_exports: string[];
1128
+ ordinal_only_exports: number;
1129
+ likely_dispatch_model: string;
1130
+ };
1131
+ com_profile: {
1132
+ confidence: number;
1133
+ clsid_strings: string[];
1134
+ progid_strings: string[];
1135
+ interface_hints: string[];
1136
+ registration_strings: string[];
1137
+ class_factory_exports: string[];
1138
+ class_factory_surface?: string[] | undefined;
1139
+ };
1140
+ host_interaction_profile: {
1141
+ confidence: number;
1142
+ likely_hosted: boolean;
1143
+ host_hints: string[];
1144
+ callback_exports: string[];
1145
+ callback_strings: string[];
1146
+ service_hooks: string[];
1147
+ callback_surface?: string[] | undefined;
1148
+ };
1149
+ strings_considered: number;
1150
+ lifecycle_surface?: string[] | undefined;
1151
+ }>>;
1152
+ rust_profile: z.ZodNullable<z.ZodAny>;
1153
+ function_index_recovery: z.ZodNullable<z.ZodAny>;
1154
+ }, "strip", z.ZodTypeAny, {
1155
+ binary_profile: {
1156
+ sample_id: string;
1157
+ indicators: {
1158
+ com_server: {
1159
+ confidence: number;
1160
+ evidence: string[];
1161
+ likely: boolean;
1162
+ };
1163
+ service_binary: {
1164
+ confidence: number;
1165
+ evidence: string[];
1166
+ likely: boolean;
1167
+ };
1168
+ plugin_binary: {
1169
+ confidence: number;
1170
+ evidence: string[];
1171
+ likely: boolean;
1172
+ };
1173
+ driver_binary: {
1174
+ confidence: number;
1175
+ evidence: string[];
1176
+ likely: boolean;
1177
+ };
1178
+ };
1179
+ export_surface: {
1180
+ total_exports: number;
1181
+ total_forwarders: number;
1182
+ notable_exports: string[];
1183
+ com_related_exports: string[];
1184
+ service_related_exports: string[];
1185
+ plugin_related_exports: string[];
1186
+ forwarded_exports: string[];
1187
+ };
1188
+ packed: boolean;
1189
+ binary_role: string;
1190
+ original_filename: string | null;
1191
+ packing_confidence: number;
1192
+ analysis_priorities: string[];
1193
+ role_confidence: number;
1194
+ runtime_hint: {
1195
+ is_dotnet: boolean | null;
1196
+ dotnet_version: string | null;
1197
+ target_framework: string | null;
1198
+ primary_runtime: string | null;
1199
+ };
1200
+ import_surface: {
1201
+ dll_count: number;
1202
+ notable_dlls: string[];
1203
+ com_related_imports: string[];
1204
+ service_related_imports: string[];
1205
+ network_related_imports: string[];
1206
+ process_related_imports: string[];
1207
+ };
1208
+ export_dispatch_profile: {
1209
+ confidence: number;
1210
+ command_like_exports: string[];
1211
+ callback_like_exports: string[];
1212
+ registration_exports: string[];
1213
+ ordinal_only_exports: number;
1214
+ likely_dispatch_model: string;
1215
+ };
1216
+ lifecycle_surface: string[];
1217
+ com_profile: {
1218
+ confidence: number;
1219
+ clsid_strings: string[];
1220
+ progid_strings: string[];
1221
+ interface_hints: string[];
1222
+ registration_strings: string[];
1223
+ class_factory_exports: string[];
1224
+ class_factory_surface: string[];
1225
+ };
1226
+ host_interaction_profile: {
1227
+ confidence: number;
1228
+ callback_surface: string[];
1229
+ likely_hosted: boolean;
1230
+ host_hints: string[];
1231
+ callback_exports: string[];
1232
+ callback_strings: string[];
1233
+ service_hooks: string[];
1234
+ };
1235
+ strings_considered: number;
1236
+ } | null;
1237
+ rust_profile?: any;
1238
+ function_index_recovery?: any;
1239
+ }, {
1240
+ binary_profile: {
1241
+ sample_id: string;
1242
+ indicators: {
1243
+ com_server: {
1244
+ confidence: number;
1245
+ evidence: string[];
1246
+ likely: boolean;
1247
+ };
1248
+ service_binary: {
1249
+ confidence: number;
1250
+ evidence: string[];
1251
+ likely: boolean;
1252
+ };
1253
+ plugin_binary: {
1254
+ confidence: number;
1255
+ evidence: string[];
1256
+ likely: boolean;
1257
+ };
1258
+ driver_binary: {
1259
+ confidence: number;
1260
+ evidence: string[];
1261
+ likely: boolean;
1262
+ };
1263
+ };
1264
+ export_surface: {
1265
+ total_exports: number;
1266
+ total_forwarders: number;
1267
+ notable_exports: string[];
1268
+ com_related_exports: string[];
1269
+ service_related_exports: string[];
1270
+ plugin_related_exports: string[];
1271
+ forwarded_exports: string[];
1272
+ };
1273
+ packed: boolean;
1274
+ binary_role: string;
1275
+ original_filename: string | null;
1276
+ packing_confidence: number;
1277
+ analysis_priorities: string[];
1278
+ role_confidence: number;
1279
+ runtime_hint: {
1280
+ is_dotnet: boolean | null;
1281
+ dotnet_version: string | null;
1282
+ target_framework: string | null;
1283
+ primary_runtime: string | null;
1284
+ };
1285
+ import_surface: {
1286
+ dll_count: number;
1287
+ notable_dlls: string[];
1288
+ com_related_imports: string[];
1289
+ service_related_imports: string[];
1290
+ network_related_imports: string[];
1291
+ process_related_imports: string[];
1292
+ };
1293
+ export_dispatch_profile: {
1294
+ confidence: number;
1295
+ command_like_exports: string[];
1296
+ callback_like_exports: string[];
1297
+ registration_exports: string[];
1298
+ ordinal_only_exports: number;
1299
+ likely_dispatch_model: string;
1300
+ };
1301
+ com_profile: {
1302
+ confidence: number;
1303
+ clsid_strings: string[];
1304
+ progid_strings: string[];
1305
+ interface_hints: string[];
1306
+ registration_strings: string[];
1307
+ class_factory_exports: string[];
1308
+ class_factory_surface?: string[] | undefined;
1309
+ };
1310
+ host_interaction_profile: {
1311
+ confidence: number;
1312
+ likely_hosted: boolean;
1313
+ host_hints: string[];
1314
+ callback_exports: string[];
1315
+ callback_strings: string[];
1316
+ service_hooks: string[];
1317
+ callback_surface?: string[] | undefined;
1318
+ };
1319
+ strings_considered: number;
1320
+ lifecycle_surface?: string[] | undefined;
1321
+ } | null;
1322
+ rust_profile?: any;
1323
+ function_index_recovery?: any;
1324
+ }>>;
706
1325
  provenance: z.ZodNullable<z.ZodObject<{
707
1326
  runtime: z.ZodObject<{
708
1327
  scope: z.ZodEnum<["all", "latest", "session"]>;
@@ -788,6 +1407,34 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
788
1407
  earliest_artifact_at: string | null;
789
1408
  latest_artifact_at: string | null;
790
1409
  }>>;
1410
+ semantic_module_reviews: z.ZodOptional<z.ZodObject<{
1411
+ scope: z.ZodEnum<["all", "latest", "session"]>;
1412
+ session_selector: z.ZodNullable<z.ZodString>;
1413
+ artifact_count: z.ZodNumber;
1414
+ artifact_ids: z.ZodArray<z.ZodString, "many">;
1415
+ session_tags: z.ZodArray<z.ZodString, "many">;
1416
+ earliest_artifact_at: z.ZodNullable<z.ZodString>;
1417
+ latest_artifact_at: z.ZodNullable<z.ZodString>;
1418
+ scope_note: z.ZodString;
1419
+ }, "strip", z.ZodTypeAny, {
1420
+ artifact_count: number;
1421
+ scope_note: string;
1422
+ artifact_ids: string[];
1423
+ session_selector: string | null;
1424
+ session_tags: string[];
1425
+ scope: "all" | "latest" | "session";
1426
+ earliest_artifact_at: string | null;
1427
+ latest_artifact_at: string | null;
1428
+ }, {
1429
+ artifact_count: number;
1430
+ scope_note: string;
1431
+ artifact_ids: string[];
1432
+ session_selector: string | null;
1433
+ session_tags: string[];
1434
+ scope: "all" | "latest" | "session";
1435
+ earliest_artifact_at: string | null;
1436
+ latest_artifact_at: string | null;
1437
+ }>>;
791
1438
  }, "strip", z.ZodTypeAny, {
792
1439
  runtime: {
793
1440
  artifact_count: number;
@@ -799,6 +1446,16 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
799
1446
  earliest_artifact_at: string | null;
800
1447
  latest_artifact_at: string | null;
801
1448
  };
1449
+ semantic_module_reviews?: {
1450
+ artifact_count: number;
1451
+ scope_note: string;
1452
+ artifact_ids: string[];
1453
+ session_selector: string | null;
1454
+ session_tags: string[];
1455
+ scope: "all" | "latest" | "session";
1456
+ earliest_artifact_at: string | null;
1457
+ latest_artifact_at: string | null;
1458
+ } | undefined;
802
1459
  semantic_names?: {
803
1460
  artifact_count: number;
804
1461
  scope_note: string;
@@ -830,6 +1487,16 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
830
1487
  earliest_artifact_at: string | null;
831
1488
  latest_artifact_at: string | null;
832
1489
  };
1490
+ semantic_module_reviews?: {
1491
+ artifact_count: number;
1492
+ scope_note: string;
1493
+ artifact_ids: string[];
1494
+ session_selector: string | null;
1495
+ session_tags: string[];
1496
+ scope: "all" | "latest" | "session";
1497
+ earliest_artifact_at: string | null;
1498
+ latest_artifact_at: string | null;
1499
+ } | undefined;
833
1500
  semantic_names?: {
834
1501
  artifact_count: number;
835
1502
  scope_note: string;
@@ -1407,6 +2074,16 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
1407
2074
  earliest_artifact_at: string | null;
1408
2075
  latest_artifact_at: string | null;
1409
2076
  };
2077
+ semantic_module_reviews?: {
2078
+ artifact_count: number;
2079
+ scope_note: string;
2080
+ artifact_ids: string[];
2081
+ session_selector: string | null;
2082
+ session_tags: string[];
2083
+ scope: "all" | "latest" | "session";
2084
+ earliest_artifact_at: string | null;
2085
+ latest_artifact_at: string | null;
2086
+ } | undefined;
1410
2087
  semantic_names?: {
1411
2088
  artifact_count: number;
1412
2089
  scope_note: string;
@@ -1523,6 +2200,92 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
1523
2200
  artifact_count_delta: number;
1524
2201
  } | undefined;
1525
2202
  } | null;
2203
+ preflight: {
2204
+ binary_profile: {
2205
+ sample_id: string;
2206
+ indicators: {
2207
+ com_server: {
2208
+ confidence: number;
2209
+ evidence: string[];
2210
+ likely: boolean;
2211
+ };
2212
+ service_binary: {
2213
+ confidence: number;
2214
+ evidence: string[];
2215
+ likely: boolean;
2216
+ };
2217
+ plugin_binary: {
2218
+ confidence: number;
2219
+ evidence: string[];
2220
+ likely: boolean;
2221
+ };
2222
+ driver_binary: {
2223
+ confidence: number;
2224
+ evidence: string[];
2225
+ likely: boolean;
2226
+ };
2227
+ };
2228
+ export_surface: {
2229
+ total_exports: number;
2230
+ total_forwarders: number;
2231
+ notable_exports: string[];
2232
+ com_related_exports: string[];
2233
+ service_related_exports: string[];
2234
+ plugin_related_exports: string[];
2235
+ forwarded_exports: string[];
2236
+ };
2237
+ packed: boolean;
2238
+ binary_role: string;
2239
+ original_filename: string | null;
2240
+ packing_confidence: number;
2241
+ analysis_priorities: string[];
2242
+ role_confidence: number;
2243
+ runtime_hint: {
2244
+ is_dotnet: boolean | null;
2245
+ dotnet_version: string | null;
2246
+ target_framework: string | null;
2247
+ primary_runtime: string | null;
2248
+ };
2249
+ import_surface: {
2250
+ dll_count: number;
2251
+ notable_dlls: string[];
2252
+ com_related_imports: string[];
2253
+ service_related_imports: string[];
2254
+ network_related_imports: string[];
2255
+ process_related_imports: string[];
2256
+ };
2257
+ export_dispatch_profile: {
2258
+ confidence: number;
2259
+ command_like_exports: string[];
2260
+ callback_like_exports: string[];
2261
+ registration_exports: string[];
2262
+ ordinal_only_exports: number;
2263
+ likely_dispatch_model: string;
2264
+ };
2265
+ lifecycle_surface: string[];
2266
+ com_profile: {
2267
+ confidence: number;
2268
+ clsid_strings: string[];
2269
+ progid_strings: string[];
2270
+ interface_hints: string[];
2271
+ registration_strings: string[];
2272
+ class_factory_exports: string[];
2273
+ class_factory_surface: string[];
2274
+ };
2275
+ host_interaction_profile: {
2276
+ confidence: number;
2277
+ callback_surface: string[];
2278
+ likely_hosted: boolean;
2279
+ host_hints: string[];
2280
+ callback_exports: string[];
2281
+ callback_strings: string[];
2282
+ service_hooks: string[];
2283
+ };
2284
+ strings_considered: number;
2285
+ } | null;
2286
+ rust_profile?: any;
2287
+ function_index_recovery?: any;
2288
+ } | null;
1526
2289
  export_tool: string | null;
1527
2290
  }, {
1528
2291
  status: "failed" | "completed" | "skipped";
@@ -1538,6 +2301,16 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
1538
2301
  earliest_artifact_at: string | null;
1539
2302
  latest_artifact_at: string | null;
1540
2303
  };
2304
+ semantic_module_reviews?: {
2305
+ artifact_count: number;
2306
+ scope_note: string;
2307
+ artifact_ids: string[];
2308
+ session_selector: string | null;
2309
+ session_tags: string[];
2310
+ scope: "all" | "latest" | "session";
2311
+ earliest_artifact_at: string | null;
2312
+ latest_artifact_at: string | null;
2313
+ } | undefined;
1541
2314
  semantic_names?: {
1542
2315
  artifact_count: number;
1543
2316
  scope_note: string;
@@ -1654,6 +2427,92 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
1654
2427
  artifact_count_delta: number;
1655
2428
  } | undefined;
1656
2429
  } | null;
2430
+ preflight: {
2431
+ binary_profile: {
2432
+ sample_id: string;
2433
+ indicators: {
2434
+ com_server: {
2435
+ confidence: number;
2436
+ evidence: string[];
2437
+ likely: boolean;
2438
+ };
2439
+ service_binary: {
2440
+ confidence: number;
2441
+ evidence: string[];
2442
+ likely: boolean;
2443
+ };
2444
+ plugin_binary: {
2445
+ confidence: number;
2446
+ evidence: string[];
2447
+ likely: boolean;
2448
+ };
2449
+ driver_binary: {
2450
+ confidence: number;
2451
+ evidence: string[];
2452
+ likely: boolean;
2453
+ };
2454
+ };
2455
+ export_surface: {
2456
+ total_exports: number;
2457
+ total_forwarders: number;
2458
+ notable_exports: string[];
2459
+ com_related_exports: string[];
2460
+ service_related_exports: string[];
2461
+ plugin_related_exports: string[];
2462
+ forwarded_exports: string[];
2463
+ };
2464
+ packed: boolean;
2465
+ binary_role: string;
2466
+ original_filename: string | null;
2467
+ packing_confidence: number;
2468
+ analysis_priorities: string[];
2469
+ role_confidence: number;
2470
+ runtime_hint: {
2471
+ is_dotnet: boolean | null;
2472
+ dotnet_version: string | null;
2473
+ target_framework: string | null;
2474
+ primary_runtime: string | null;
2475
+ };
2476
+ import_surface: {
2477
+ dll_count: number;
2478
+ notable_dlls: string[];
2479
+ com_related_imports: string[];
2480
+ service_related_imports: string[];
2481
+ network_related_imports: string[];
2482
+ process_related_imports: string[];
2483
+ };
2484
+ export_dispatch_profile: {
2485
+ confidence: number;
2486
+ command_like_exports: string[];
2487
+ callback_like_exports: string[];
2488
+ registration_exports: string[];
2489
+ ordinal_only_exports: number;
2490
+ likely_dispatch_model: string;
2491
+ };
2492
+ com_profile: {
2493
+ confidence: number;
2494
+ clsid_strings: string[];
2495
+ progid_strings: string[];
2496
+ interface_hints: string[];
2497
+ registration_strings: string[];
2498
+ class_factory_exports: string[];
2499
+ class_factory_surface?: string[] | undefined;
2500
+ };
2501
+ host_interaction_profile: {
2502
+ confidence: number;
2503
+ likely_hosted: boolean;
2504
+ host_hints: string[];
2505
+ callback_exports: string[];
2506
+ callback_strings: string[];
2507
+ service_hooks: string[];
2508
+ callback_surface?: string[] | undefined;
2509
+ };
2510
+ strings_considered: number;
2511
+ lifecycle_surface?: string[] | undefined;
2512
+ } | null;
2513
+ rust_profile?: any;
2514
+ function_index_recovery?: any;
2515
+ } | null;
1657
2516
  export_tool: string | null;
1658
2517
  }>;
1659
2518
  next_steps: z.ZodArray<z.ZodString, "many">;
@@ -1673,6 +2532,16 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
1673
2532
  earliest_artifact_at: string | null;
1674
2533
  latest_artifact_at: string | null;
1675
2534
  };
2535
+ semantic_module_reviews?: {
2536
+ artifact_count: number;
2537
+ scope_note: string;
2538
+ artifact_ids: string[];
2539
+ session_selector: string | null;
2540
+ session_tags: string[];
2541
+ scope: "all" | "latest" | "session";
2542
+ earliest_artifact_at: string | null;
2543
+ latest_artifact_at: string | null;
2544
+ } | undefined;
1676
2545
  semantic_names?: {
1677
2546
  artifact_count: number;
1678
2547
  scope_note: string;
@@ -1789,16 +2658,96 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
1789
2658
  artifact_count_delta: number;
1790
2659
  } | undefined;
1791
2660
  } | null;
2661
+ preflight: {
2662
+ binary_profile: {
2663
+ sample_id: string;
2664
+ indicators: {
2665
+ com_server: {
2666
+ confidence: number;
2667
+ evidence: string[];
2668
+ likely: boolean;
2669
+ };
2670
+ service_binary: {
2671
+ confidence: number;
2672
+ evidence: string[];
2673
+ likely: boolean;
2674
+ };
2675
+ plugin_binary: {
2676
+ confidence: number;
2677
+ evidence: string[];
2678
+ likely: boolean;
2679
+ };
2680
+ driver_binary: {
2681
+ confidence: number;
2682
+ evidence: string[];
2683
+ likely: boolean;
2684
+ };
2685
+ };
2686
+ export_surface: {
2687
+ total_exports: number;
2688
+ total_forwarders: number;
2689
+ notable_exports: string[];
2690
+ com_related_exports: string[];
2691
+ service_related_exports: string[];
2692
+ plugin_related_exports: string[];
2693
+ forwarded_exports: string[];
2694
+ };
2695
+ packed: boolean;
2696
+ binary_role: string;
2697
+ original_filename: string | null;
2698
+ packing_confidence: number;
2699
+ analysis_priorities: string[];
2700
+ role_confidence: number;
2701
+ runtime_hint: {
2702
+ is_dotnet: boolean | null;
2703
+ dotnet_version: string | null;
2704
+ target_framework: string | null;
2705
+ primary_runtime: string | null;
2706
+ };
2707
+ import_surface: {
2708
+ dll_count: number;
2709
+ notable_dlls: string[];
2710
+ com_related_imports: string[];
2711
+ service_related_imports: string[];
2712
+ network_related_imports: string[];
2713
+ process_related_imports: string[];
2714
+ };
2715
+ export_dispatch_profile: {
2716
+ confidence: number;
2717
+ command_like_exports: string[];
2718
+ callback_like_exports: string[];
2719
+ registration_exports: string[];
2720
+ ordinal_only_exports: number;
2721
+ likely_dispatch_model: string;
2722
+ };
2723
+ lifecycle_surface: string[];
2724
+ com_profile: {
2725
+ confidence: number;
2726
+ clsid_strings: string[];
2727
+ progid_strings: string[];
2728
+ interface_hints: string[];
2729
+ registration_strings: string[];
2730
+ class_factory_exports: string[];
2731
+ class_factory_surface: string[];
2732
+ };
2733
+ host_interaction_profile: {
2734
+ confidence: number;
2735
+ callback_surface: string[];
2736
+ likely_hosted: boolean;
2737
+ host_hints: string[];
2738
+ callback_exports: string[];
2739
+ callback_strings: string[];
2740
+ service_hooks: string[];
2741
+ };
2742
+ strings_considered: number;
2743
+ } | null;
2744
+ rust_profile?: any;
2745
+ function_index_recovery?: any;
2746
+ } | null;
1792
2747
  export_tool: string | null;
1793
2748
  };
1794
2749
  next_steps: string[];
1795
2750
  review: {
1796
- sampling: {
1797
- model: string | null;
1798
- attempted: boolean;
1799
- stop_reason: string | null;
1800
- parsed_suggestion_count: number;
1801
- };
1802
2751
  reconstruct: {
1803
2752
  functions: {
1804
2753
  function: string;
@@ -1815,19 +2764,25 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
1815
2764
  version: string | null;
1816
2765
  sampling_available: boolean;
1817
2766
  };
2767
+ sampling: {
2768
+ attempted: boolean;
2769
+ model: string | null;
2770
+ stop_reason: string | null;
2771
+ parsed_suggestion_count: number;
2772
+ };
1818
2773
  prompt_name: string;
1819
2774
  review_status: string;
1820
2775
  prepare: {
1821
- artifact_id: string | null;
1822
2776
  unresolved_count: number;
1823
2777
  include_resolved: boolean;
1824
2778
  prepared_count: number;
2779
+ artifact_id: string | null;
1825
2780
  };
1826
2781
  apply: {
1827
- artifact_id: string | null;
1828
2782
  attempted: boolean;
1829
2783
  accepted_count: number;
1830
2784
  rejected_count: number;
2785
+ artifact_id: string | null;
1831
2786
  };
1832
2787
  confidence_policy: {
1833
2788
  calibrated: boolean;
@@ -1852,6 +2807,16 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
1852
2807
  earliest_artifact_at: string | null;
1853
2808
  latest_artifact_at: string | null;
1854
2809
  };
2810
+ semantic_module_reviews?: {
2811
+ artifact_count: number;
2812
+ scope_note: string;
2813
+ artifact_ids: string[];
2814
+ session_selector: string | null;
2815
+ session_tags: string[];
2816
+ scope: "all" | "latest" | "session";
2817
+ earliest_artifact_at: string | null;
2818
+ latest_artifact_at: string | null;
2819
+ } | undefined;
1855
2820
  semantic_names?: {
1856
2821
  artifact_count: number;
1857
2822
  scope_note: string;
@@ -1968,16 +2933,96 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
1968
2933
  artifact_count_delta: number;
1969
2934
  } | undefined;
1970
2935
  } | null;
2936
+ preflight: {
2937
+ binary_profile: {
2938
+ sample_id: string;
2939
+ indicators: {
2940
+ com_server: {
2941
+ confidence: number;
2942
+ evidence: string[];
2943
+ likely: boolean;
2944
+ };
2945
+ service_binary: {
2946
+ confidence: number;
2947
+ evidence: string[];
2948
+ likely: boolean;
2949
+ };
2950
+ plugin_binary: {
2951
+ confidence: number;
2952
+ evidence: string[];
2953
+ likely: boolean;
2954
+ };
2955
+ driver_binary: {
2956
+ confidence: number;
2957
+ evidence: string[];
2958
+ likely: boolean;
2959
+ };
2960
+ };
2961
+ export_surface: {
2962
+ total_exports: number;
2963
+ total_forwarders: number;
2964
+ notable_exports: string[];
2965
+ com_related_exports: string[];
2966
+ service_related_exports: string[];
2967
+ plugin_related_exports: string[];
2968
+ forwarded_exports: string[];
2969
+ };
2970
+ packed: boolean;
2971
+ binary_role: string;
2972
+ original_filename: string | null;
2973
+ packing_confidence: number;
2974
+ analysis_priorities: string[];
2975
+ role_confidence: number;
2976
+ runtime_hint: {
2977
+ is_dotnet: boolean | null;
2978
+ dotnet_version: string | null;
2979
+ target_framework: string | null;
2980
+ primary_runtime: string | null;
2981
+ };
2982
+ import_surface: {
2983
+ dll_count: number;
2984
+ notable_dlls: string[];
2985
+ com_related_imports: string[];
2986
+ service_related_imports: string[];
2987
+ network_related_imports: string[];
2988
+ process_related_imports: string[];
2989
+ };
2990
+ export_dispatch_profile: {
2991
+ confidence: number;
2992
+ command_like_exports: string[];
2993
+ callback_like_exports: string[];
2994
+ registration_exports: string[];
2995
+ ordinal_only_exports: number;
2996
+ likely_dispatch_model: string;
2997
+ };
2998
+ com_profile: {
2999
+ confidence: number;
3000
+ clsid_strings: string[];
3001
+ progid_strings: string[];
3002
+ interface_hints: string[];
3003
+ registration_strings: string[];
3004
+ class_factory_exports: string[];
3005
+ class_factory_surface?: string[] | undefined;
3006
+ };
3007
+ host_interaction_profile: {
3008
+ confidence: number;
3009
+ likely_hosted: boolean;
3010
+ host_hints: string[];
3011
+ callback_exports: string[];
3012
+ callback_strings: string[];
3013
+ service_hooks: string[];
3014
+ callback_surface?: string[] | undefined;
3015
+ };
3016
+ strings_considered: number;
3017
+ lifecycle_surface?: string[] | undefined;
3018
+ } | null;
3019
+ rust_profile?: any;
3020
+ function_index_recovery?: any;
3021
+ } | null;
1971
3022
  export_tool: string | null;
1972
3023
  };
1973
3024
  next_steps: string[];
1974
3025
  review: {
1975
- sampling: {
1976
- model: string | null;
1977
- attempted: boolean;
1978
- stop_reason: string | null;
1979
- parsed_suggestion_count: number;
1980
- };
1981
3026
  reconstruct: {
1982
3027
  functions: {
1983
3028
  function: string;
@@ -1994,19 +3039,25 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
1994
3039
  version: string | null;
1995
3040
  sampling_available: boolean;
1996
3041
  };
3042
+ sampling: {
3043
+ attempted: boolean;
3044
+ model: string | null;
3045
+ stop_reason: string | null;
3046
+ parsed_suggestion_count: number;
3047
+ };
1997
3048
  prompt_name: string;
1998
3049
  review_status: string;
1999
3050
  prepare: {
2000
- artifact_id: string | null;
2001
3051
  unresolved_count: number;
2002
3052
  include_resolved: boolean;
2003
3053
  prepared_count: number;
3054
+ artifact_id: string | null;
2004
3055
  };
2005
3056
  apply: {
2006
- artifact_id: string | null;
2007
3057
  attempted: boolean;
2008
3058
  accepted_count: number;
2009
3059
  rejected_count: number;
3060
+ artifact_id: string | null;
2010
3061
  };
2011
3062
  confidence_policy: {
2012
3063
  calibrated: boolean;
@@ -2015,9 +3066,65 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
2015
3066
  llm_acceptance_threshold: number;
2016
3067
  };
2017
3068
  };
2018
- }>>;
3069
+ }>]>>;
2019
3070
  warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2020
3071
  errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3072
+ setup_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3073
+ id: z.ZodString;
3074
+ required: z.ZodBoolean;
3075
+ kind: z.ZodEnum<["pip_install", "set_env", "provide_path", "verify_install"]>;
3076
+ title: z.ZodString;
3077
+ summary: z.ZodString;
3078
+ command: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3079
+ env_var: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3080
+ value_hint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3081
+ examples: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3082
+ applies_to: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3083
+ }, "strip", z.ZodTypeAny, {
3084
+ id: string;
3085
+ summary: string;
3086
+ kind: "pip_install" | "set_env" | "provide_path" | "verify_install";
3087
+ title: string;
3088
+ required: boolean;
3089
+ examples: string[];
3090
+ applies_to: string[];
3091
+ command?: string | null | undefined;
3092
+ env_var?: string | null | undefined;
3093
+ value_hint?: string | null | undefined;
3094
+ }, {
3095
+ id: string;
3096
+ summary: string;
3097
+ kind: "pip_install" | "set_env" | "provide_path" | "verify_install";
3098
+ title: string;
3099
+ required: boolean;
3100
+ command?: string | null | undefined;
3101
+ env_var?: string | null | undefined;
3102
+ value_hint?: string | null | undefined;
3103
+ examples?: string[] | undefined;
3104
+ applies_to?: string[] | undefined;
3105
+ }>, "many">>;
3106
+ required_user_inputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3107
+ key: z.ZodString;
3108
+ label: z.ZodString;
3109
+ summary: z.ZodString;
3110
+ required: z.ZodBoolean;
3111
+ env_vars: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3112
+ examples: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3113
+ }, "strip", z.ZodTypeAny, {
3114
+ summary: string;
3115
+ label: string;
3116
+ required: boolean;
3117
+ examples: string[];
3118
+ key: string;
3119
+ env_vars: string[];
3120
+ }, {
3121
+ summary: string;
3122
+ label: string;
3123
+ required: boolean;
3124
+ key: string;
3125
+ examples?: string[] | undefined;
3126
+ env_vars?: string[] | undefined;
3127
+ }>, "many">>;
2021
3128
  artifacts: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
2022
3129
  metrics: z.ZodOptional<z.ZodObject<{
2023
3130
  elapsed_ms: z.ZodNumber;
@@ -2031,11 +3138,13 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
2031
3138
  }>>;
2032
3139
  }, "strip", z.ZodTypeAny, {
2033
3140
  ok: boolean;
2034
- metrics?: {
2035
- elapsed_ms: number;
2036
- tool: string;
2037
- } | undefined;
2038
3141
  data?: {
3142
+ status: "queued";
3143
+ sample_id: string;
3144
+ tool: "workflow.semantic_name_review";
3145
+ progress: number;
3146
+ job_id: string;
3147
+ } | {
2039
3148
  sample_id: string;
2040
3149
  export: {
2041
3150
  status: "failed" | "completed" | "skipped";
@@ -2051,6 +3160,16 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
2051
3160
  earliest_artifact_at: string | null;
2052
3161
  latest_artifact_at: string | null;
2053
3162
  };
3163
+ semantic_module_reviews?: {
3164
+ artifact_count: number;
3165
+ scope_note: string;
3166
+ artifact_ids: string[];
3167
+ session_selector: string | null;
3168
+ session_tags: string[];
3169
+ scope: "all" | "latest" | "session";
3170
+ earliest_artifact_at: string | null;
3171
+ latest_artifact_at: string | null;
3172
+ } | undefined;
2054
3173
  semantic_names?: {
2055
3174
  artifact_count: number;
2056
3175
  scope_note: string;
@@ -2167,16 +3286,96 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
2167
3286
  artifact_count_delta: number;
2168
3287
  } | undefined;
2169
3288
  } | null;
3289
+ preflight: {
3290
+ binary_profile: {
3291
+ sample_id: string;
3292
+ indicators: {
3293
+ com_server: {
3294
+ confidence: number;
3295
+ evidence: string[];
3296
+ likely: boolean;
3297
+ };
3298
+ service_binary: {
3299
+ confidence: number;
3300
+ evidence: string[];
3301
+ likely: boolean;
3302
+ };
3303
+ plugin_binary: {
3304
+ confidence: number;
3305
+ evidence: string[];
3306
+ likely: boolean;
3307
+ };
3308
+ driver_binary: {
3309
+ confidence: number;
3310
+ evidence: string[];
3311
+ likely: boolean;
3312
+ };
3313
+ };
3314
+ export_surface: {
3315
+ total_exports: number;
3316
+ total_forwarders: number;
3317
+ notable_exports: string[];
3318
+ com_related_exports: string[];
3319
+ service_related_exports: string[];
3320
+ plugin_related_exports: string[];
3321
+ forwarded_exports: string[];
3322
+ };
3323
+ packed: boolean;
3324
+ binary_role: string;
3325
+ original_filename: string | null;
3326
+ packing_confidence: number;
3327
+ analysis_priorities: string[];
3328
+ role_confidence: number;
3329
+ runtime_hint: {
3330
+ is_dotnet: boolean | null;
3331
+ dotnet_version: string | null;
3332
+ target_framework: string | null;
3333
+ primary_runtime: string | null;
3334
+ };
3335
+ import_surface: {
3336
+ dll_count: number;
3337
+ notable_dlls: string[];
3338
+ com_related_imports: string[];
3339
+ service_related_imports: string[];
3340
+ network_related_imports: string[];
3341
+ process_related_imports: string[];
3342
+ };
3343
+ export_dispatch_profile: {
3344
+ confidence: number;
3345
+ command_like_exports: string[];
3346
+ callback_like_exports: string[];
3347
+ registration_exports: string[];
3348
+ ordinal_only_exports: number;
3349
+ likely_dispatch_model: string;
3350
+ };
3351
+ lifecycle_surface: string[];
3352
+ com_profile: {
3353
+ confidence: number;
3354
+ clsid_strings: string[];
3355
+ progid_strings: string[];
3356
+ interface_hints: string[];
3357
+ registration_strings: string[];
3358
+ class_factory_exports: string[];
3359
+ class_factory_surface: string[];
3360
+ };
3361
+ host_interaction_profile: {
3362
+ confidence: number;
3363
+ callback_surface: string[];
3364
+ likely_hosted: boolean;
3365
+ host_hints: string[];
3366
+ callback_exports: string[];
3367
+ callback_strings: string[];
3368
+ service_hooks: string[];
3369
+ };
3370
+ strings_considered: number;
3371
+ } | null;
3372
+ rust_profile?: any;
3373
+ function_index_recovery?: any;
3374
+ } | null;
2170
3375
  export_tool: string | null;
2171
3376
  };
2172
3377
  next_steps: string[];
2173
3378
  review: {
2174
- sampling: {
2175
- model: string | null;
2176
- attempted: boolean;
2177
- stop_reason: string | null;
2178
- parsed_suggestion_count: number;
2179
- };
2180
3379
  reconstruct: {
2181
3380
  functions: {
2182
3381
  function: string;
@@ -2193,19 +3392,25 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
2193
3392
  version: string | null;
2194
3393
  sampling_available: boolean;
2195
3394
  };
3395
+ sampling: {
3396
+ attempted: boolean;
3397
+ model: string | null;
3398
+ stop_reason: string | null;
3399
+ parsed_suggestion_count: number;
3400
+ };
2196
3401
  prompt_name: string;
2197
3402
  review_status: string;
2198
3403
  prepare: {
2199
- artifact_id: string | null;
2200
3404
  unresolved_count: number;
2201
3405
  include_resolved: boolean;
2202
3406
  prepared_count: number;
3407
+ artifact_id: string | null;
2203
3408
  };
2204
3409
  apply: {
2205
- artifact_id: string | null;
2206
3410
  attempted: boolean;
2207
3411
  accepted_count: number;
2208
3412
  rejected_count: number;
3413
+ artifact_id: string | null;
2209
3414
  };
2210
3415
  confidence_policy: {
2211
3416
  calibrated: boolean;
@@ -2215,16 +3420,42 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
2215
3420
  };
2216
3421
  };
2217
3422
  } | undefined;
3423
+ metrics?: {
3424
+ elapsed_ms: number;
3425
+ tool: string;
3426
+ } | undefined;
2218
3427
  warnings?: string[] | undefined;
2219
3428
  errors?: string[] | undefined;
2220
3429
  artifacts?: any[] | undefined;
3430
+ setup_actions?: {
3431
+ id: string;
3432
+ summary: string;
3433
+ kind: "pip_install" | "set_env" | "provide_path" | "verify_install";
3434
+ title: string;
3435
+ required: boolean;
3436
+ examples: string[];
3437
+ applies_to: string[];
3438
+ command?: string | null | undefined;
3439
+ env_var?: string | null | undefined;
3440
+ value_hint?: string | null | undefined;
3441
+ }[] | undefined;
3442
+ required_user_inputs?: {
3443
+ summary: string;
3444
+ label: string;
3445
+ required: boolean;
3446
+ examples: string[];
3447
+ key: string;
3448
+ env_vars: string[];
3449
+ }[] | undefined;
2221
3450
  }, {
2222
3451
  ok: boolean;
2223
- metrics?: {
2224
- elapsed_ms: number;
2225
- tool: string;
2226
- } | undefined;
2227
3452
  data?: {
3453
+ status: "queued";
3454
+ sample_id: string;
3455
+ tool: "workflow.semantic_name_review";
3456
+ progress: number;
3457
+ job_id: string;
3458
+ } | {
2228
3459
  sample_id: string;
2229
3460
  export: {
2230
3461
  status: "failed" | "completed" | "skipped";
@@ -2240,6 +3471,16 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
2240
3471
  earliest_artifact_at: string | null;
2241
3472
  latest_artifact_at: string | null;
2242
3473
  };
3474
+ semantic_module_reviews?: {
3475
+ artifact_count: number;
3476
+ scope_note: string;
3477
+ artifact_ids: string[];
3478
+ session_selector: string | null;
3479
+ session_tags: string[];
3480
+ scope: "all" | "latest" | "session";
3481
+ earliest_artifact_at: string | null;
3482
+ latest_artifact_at: string | null;
3483
+ } | undefined;
2243
3484
  semantic_names?: {
2244
3485
  artifact_count: number;
2245
3486
  scope_note: string;
@@ -2356,16 +3597,96 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
2356
3597
  artifact_count_delta: number;
2357
3598
  } | undefined;
2358
3599
  } | null;
3600
+ preflight: {
3601
+ binary_profile: {
3602
+ sample_id: string;
3603
+ indicators: {
3604
+ com_server: {
3605
+ confidence: number;
3606
+ evidence: string[];
3607
+ likely: boolean;
3608
+ };
3609
+ service_binary: {
3610
+ confidence: number;
3611
+ evidence: string[];
3612
+ likely: boolean;
3613
+ };
3614
+ plugin_binary: {
3615
+ confidence: number;
3616
+ evidence: string[];
3617
+ likely: boolean;
3618
+ };
3619
+ driver_binary: {
3620
+ confidence: number;
3621
+ evidence: string[];
3622
+ likely: boolean;
3623
+ };
3624
+ };
3625
+ export_surface: {
3626
+ total_exports: number;
3627
+ total_forwarders: number;
3628
+ notable_exports: string[];
3629
+ com_related_exports: string[];
3630
+ service_related_exports: string[];
3631
+ plugin_related_exports: string[];
3632
+ forwarded_exports: string[];
3633
+ };
3634
+ packed: boolean;
3635
+ binary_role: string;
3636
+ original_filename: string | null;
3637
+ packing_confidence: number;
3638
+ analysis_priorities: string[];
3639
+ role_confidence: number;
3640
+ runtime_hint: {
3641
+ is_dotnet: boolean | null;
3642
+ dotnet_version: string | null;
3643
+ target_framework: string | null;
3644
+ primary_runtime: string | null;
3645
+ };
3646
+ import_surface: {
3647
+ dll_count: number;
3648
+ notable_dlls: string[];
3649
+ com_related_imports: string[];
3650
+ service_related_imports: string[];
3651
+ network_related_imports: string[];
3652
+ process_related_imports: string[];
3653
+ };
3654
+ export_dispatch_profile: {
3655
+ confidence: number;
3656
+ command_like_exports: string[];
3657
+ callback_like_exports: string[];
3658
+ registration_exports: string[];
3659
+ ordinal_only_exports: number;
3660
+ likely_dispatch_model: string;
3661
+ };
3662
+ com_profile: {
3663
+ confidence: number;
3664
+ clsid_strings: string[];
3665
+ progid_strings: string[];
3666
+ interface_hints: string[];
3667
+ registration_strings: string[];
3668
+ class_factory_exports: string[];
3669
+ class_factory_surface?: string[] | undefined;
3670
+ };
3671
+ host_interaction_profile: {
3672
+ confidence: number;
3673
+ likely_hosted: boolean;
3674
+ host_hints: string[];
3675
+ callback_exports: string[];
3676
+ callback_strings: string[];
3677
+ service_hooks: string[];
3678
+ callback_surface?: string[] | undefined;
3679
+ };
3680
+ strings_considered: number;
3681
+ lifecycle_surface?: string[] | undefined;
3682
+ } | null;
3683
+ rust_profile?: any;
3684
+ function_index_recovery?: any;
3685
+ } | null;
2359
3686
  export_tool: string | null;
2360
3687
  };
2361
3688
  next_steps: string[];
2362
3689
  review: {
2363
- sampling: {
2364
- model: string | null;
2365
- attempted: boolean;
2366
- stop_reason: string | null;
2367
- parsed_suggestion_count: number;
2368
- };
2369
3690
  reconstruct: {
2370
3691
  functions: {
2371
3692
  function: string;
@@ -2382,19 +3703,25 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
2382
3703
  version: string | null;
2383
3704
  sampling_available: boolean;
2384
3705
  };
3706
+ sampling: {
3707
+ attempted: boolean;
3708
+ model: string | null;
3709
+ stop_reason: string | null;
3710
+ parsed_suggestion_count: number;
3711
+ };
2385
3712
  prompt_name: string;
2386
3713
  review_status: string;
2387
3714
  prepare: {
2388
- artifact_id: string | null;
2389
3715
  unresolved_count: number;
2390
3716
  include_resolved: boolean;
2391
3717
  prepared_count: number;
3718
+ artifact_id: string | null;
2392
3719
  };
2393
3720
  apply: {
2394
- artifact_id: string | null;
2395
3721
  attempted: boolean;
2396
3722
  accepted_count: number;
2397
3723
  rejected_count: number;
3724
+ artifact_id: string | null;
2398
3725
  };
2399
3726
  confidence_policy: {
2400
3727
  calibrated: boolean;
@@ -2404,15 +3731,39 @@ export declare const semanticNameReviewWorkflowOutputSchema: z.ZodObject<{
2404
3731
  };
2405
3732
  };
2406
3733
  } | undefined;
3734
+ metrics?: {
3735
+ elapsed_ms: number;
3736
+ tool: string;
3737
+ } | undefined;
2407
3738
  warnings?: string[] | undefined;
2408
3739
  errors?: string[] | undefined;
2409
3740
  artifacts?: any[] | undefined;
3741
+ setup_actions?: {
3742
+ id: string;
3743
+ summary: string;
3744
+ kind: "pip_install" | "set_env" | "provide_path" | "verify_install";
3745
+ title: string;
3746
+ required: boolean;
3747
+ command?: string | null | undefined;
3748
+ env_var?: string | null | undefined;
3749
+ value_hint?: string | null | undefined;
3750
+ examples?: string[] | undefined;
3751
+ applies_to?: string[] | undefined;
3752
+ }[] | undefined;
3753
+ required_user_inputs?: {
3754
+ summary: string;
3755
+ label: string;
3756
+ required: boolean;
3757
+ key: string;
3758
+ examples?: string[] | undefined;
3759
+ env_vars?: string[] | undefined;
3760
+ }[] | undefined;
2410
3761
  }>;
2411
3762
  export declare const semanticNameReviewWorkflowToolDefinition: ToolDefinition;
2412
3763
  interface SemanticNameReviewWorkflowDependencies {
2413
3764
  renameReviewHandler?: (args: ToolArgs) => Promise<WorkerResult>;
2414
3765
  reconstructWorkflowHandler?: (args: ToolArgs) => Promise<WorkerResult>;
2415
3766
  }
2416
- export declare function createSemanticNameReviewWorkflowHandler(workspaceManager: WorkspaceManager, database: DatabaseManager, cacheManager: CacheManager, mcpServer?: MCPServer, dependencies?: SemanticNameReviewWorkflowDependencies): (args: ToolArgs) => Promise<WorkerResult>;
3767
+ export declare function createSemanticNameReviewWorkflowHandler(workspaceManager: WorkspaceManager, database: DatabaseManager, cacheManager: CacheManager, mcpServer?: MCPServer, dependencies?: SemanticNameReviewWorkflowDependencies, jobQueue?: JobQueue): (args: ToolArgs) => Promise<WorkerResult>;
2417
3768
  export {};
2418
3769
  //# sourceMappingURL=semantic-name-review.d.ts.map