@eyeauras/insight-cli 0.8.4 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (609) hide show
  1. package/.cli-package-build.json +1 -1
  2. package/README.md +16 -23
  3. package/SKILL.md +6 -44
  4. package/dist/src/activity-audit.d.ts +33 -46
  5. package/dist/src/activity-audit.js +120 -195
  6. package/dist/src/analysis-default.d.ts +10 -2
  7. package/dist/src/analysis-default.js +62 -47
  8. package/dist/src/analysis-storage.d.ts +13 -13
  9. package/dist/src/analysis-storage.js +127 -258
  10. package/dist/src/artifacts.d.ts +5 -1
  11. package/dist/src/artifacts.js +31 -46
  12. package/dist/src/audit-commands.d.ts +6 -1
  13. package/dist/src/audit-commands.js +9 -2
  14. package/dist/src/audit-retention.d.ts +5 -23
  15. package/dist/src/audit-retention.js +37 -150
  16. package/dist/src/binary.js +4 -13
  17. package/dist/src/budgets.d.ts +2 -2
  18. package/dist/src/budgets.js +7 -9
  19. package/dist/src/capture.js +17 -30
  20. package/dist/src/cli.d.ts +9 -4
  21. package/dist/src/cli.js +288 -473
  22. package/dist/src/code-references.d.ts +2 -13
  23. package/dist/src/code-references.js +7 -99
  24. package/dist/src/context-diagnostics.d.ts +1 -23
  25. package/dist/src/context-diagnostics.js +1 -83
  26. package/dist/src/core/coordinator.d.ts +298 -0
  27. package/dist/src/core/coordinator.js +591 -0
  28. package/dist/src/core/layout.d.ts +51 -0
  29. package/dist/src/core/layout.js +55 -0
  30. package/dist/src/core/legacy-import.d.ts +55 -0
  31. package/dist/src/core/legacy-import.js +193 -0
  32. package/dist/src/cross-results.d.ts +3 -3
  33. package/dist/src/cross-results.js +4 -42
  34. package/dist/src/cross.js +2 -3
  35. package/dist/src/debugger-results.d.ts +1 -6
  36. package/dist/src/debugger-results.js +21 -153
  37. package/dist/src/debugger.d.ts +21 -11
  38. package/dist/src/debugger.js +106 -168
  39. package/dist/src/decode-results.d.ts +2 -1
  40. package/dist/src/decode-results.js +4 -20
  41. package/dist/src/diagnostic-error.d.ts +1 -1
  42. package/dist/src/diagnostic-error.js +4 -23
  43. package/dist/src/die.js +1 -23
  44. package/dist/src/dnspy-runtime.js +5 -12
  45. package/dist/src/dnspy.js +13 -28
  46. package/dist/src/dotnet-diagnostics.js +1 -1
  47. package/dist/src/extensions.d.ts +2 -3
  48. package/dist/src/extensions.js +14 -91
  49. package/dist/src/frida-worker.js +0 -20
  50. package/dist/src/frida.js +3 -26
  51. package/dist/src/function-boundaries.d.ts +2 -2
  52. package/dist/src/function-boundaries.js +9 -61
  53. package/dist/src/function-entries.d.ts +2 -2
  54. package/dist/src/function-entries.js +6 -36
  55. package/dist/src/function-inspection.d.ts +2 -2
  56. package/dist/src/function-inspection.js +17 -33
  57. package/dist/src/function-results.d.ts +1 -3
  58. package/dist/src/function-results.js +2 -13
  59. package/dist/src/hub/admin.d.ts +101 -0
  60. package/dist/src/hub/admin.js +314 -0
  61. package/dist/src/hub/autostart.d.ts +111 -0
  62. package/dist/src/hub/autostart.js +207 -0
  63. package/dist/src/hub/bundle.d.ts +33 -0
  64. package/dist/src/hub/bundle.js +25 -0
  65. package/dist/src/hub/client.d.ts +90 -0
  66. package/dist/src/hub/client.js +256 -0
  67. package/dist/src/hub/commands.d.ts +13 -0
  68. package/dist/src/hub/commands.js +280 -0
  69. package/dist/src/hub/contract.d.ts +87 -0
  70. package/dist/src/hub/contract.js +3 -0
  71. package/dist/src/hub/extensions.d.ts +41 -0
  72. package/dist/src/hub/extensions.js +3 -0
  73. package/dist/src/hub/ghidra.d.ts +70 -0
  74. package/dist/src/hub/ghidra.js +197 -0
  75. package/dist/src/hub/index.d.ts +6 -0
  76. package/dist/src/hub/index.js +7 -0
  77. package/dist/src/{work/store.d.ts → hub/ledger-store.d.ts} +57 -94
  78. package/dist/src/hub/ledger-store.js +919 -0
  79. package/dist/src/hub/ledger.d.ts +4 -0
  80. package/dist/src/hub/ledger.js +173 -0
  81. package/dist/src/hub/lock.d.ts +7 -0
  82. package/dist/src/hub/lock.js +53 -0
  83. package/dist/src/hub/repository.d.ts +45 -0
  84. package/dist/src/hub/repository.js +130 -0
  85. package/dist/src/hub/server.d.ts +86 -0
  86. package/dist/src/hub/server.js +414 -0
  87. package/dist/src/hub/settings.d.ts +36 -0
  88. package/dist/src/hub/settings.js +112 -0
  89. package/dist/src/hub/storage.d.ts +13 -0
  90. package/dist/src/hub/storage.js +46 -0
  91. package/dist/src/hub/store.d.ts +75 -0
  92. package/dist/src/hub/store.js +188 -0
  93. package/dist/src/ilspy.js +1 -1
  94. package/dist/src/internal-timing.d.ts +2 -9
  95. package/dist/src/internal-timing.js +2 -95
  96. package/dist/src/lldb.js +3 -15
  97. package/dist/src/llvm.js +0 -9
  98. package/dist/src/managed-heap.js +3 -7
  99. package/dist/src/managed-metadata.js +2 -5
  100. package/dist/src/memory-inputs.d.ts +1 -4
  101. package/dist/src/memory-inputs.js +10 -40
  102. package/dist/src/mitmproxy.d.ts +35 -4
  103. package/dist/src/mitmproxy.js +59 -40
  104. package/dist/src/model.d.ts +0 -73
  105. package/dist/src/model.js +0 -45
  106. package/dist/src/mutations.d.ts +1 -1
  107. package/dist/src/mutations.js +5 -10
  108. package/dist/src/native/contract.d.ts +130 -0
  109. package/dist/src/native/ghidra.d.ts +58 -0
  110. package/dist/src/native/ghidra.js +77 -0
  111. package/dist/src/native/host.d.ts +71 -0
  112. package/dist/src/native/host.js +265 -0
  113. package/dist/src/native/index.d.ts +13 -0
  114. package/dist/src/native/index.js +19 -0
  115. package/dist/src/native/jvm.d.ts +54 -0
  116. package/dist/src/native/jvm.js +47 -0
  117. package/dist/src/native/worker.d.ts +70 -0
  118. package/dist/src/native/worker.js +240 -0
  119. package/dist/src/native-inputs.d.ts +9 -14
  120. package/dist/src/native-inputs.js +22 -110
  121. package/dist/src/native-merge-patches.d.ts +2 -2
  122. package/dist/src/native-merge-patches.js +14 -14
  123. package/dist/src/persistent-client.js +53 -25
  124. package/dist/src/procmon.js +17 -31
  125. package/dist/src/program-files.d.ts +42 -0
  126. package/dist/src/program-files.js +148 -0
  127. package/dist/src/queries.js +2 -15
  128. package/dist/src/query-policy.d.ts +0 -2
  129. package/dist/src/query-policy.js +1 -14
  130. package/dist/src/research.d.ts +59 -238
  131. package/dist/src/research.js +212 -906
  132. package/dist/src/runtime-identity.d.ts +8 -0
  133. package/dist/src/runtime-identity.js +26 -0
  134. package/dist/src/runtime-manager.d.ts +1 -11
  135. package/dist/src/runtime-manager.js +10 -145
  136. package/dist/src/runtime-selection.d.ts +1 -1
  137. package/dist/src/runtime-selection.js +5 -37
  138. package/dist/src/saved-materials.js +8 -51
  139. package/dist/src/scripts.d.ts +1 -1
  140. package/dist/src/scripts.js +15 -15
  141. package/dist/src/sdk-contracts.js +2 -2
  142. package/dist/src/sdk.js +8 -8
  143. package/dist/src/sevenzip.js +1 -3
  144. package/dist/src/strace.js +0 -3
  145. package/dist/src/string-anchors.d.ts +2 -3
  146. package/dist/src/string-anchors.js +8 -101
  147. package/dist/src/text-window.d.ts +5 -4
  148. package/dist/src/text-window.js +4 -4
  149. package/dist/src/tool-runtime/archives.d.ts +1 -1
  150. package/dist/src/tool-runtime/archives.js +11 -20
  151. package/dist/src/tool-runtime/catalog.js +2 -5
  152. package/dist/src/tool-runtime/commands.js +1 -3
  153. package/dist/src/tool-runtime/deadline.js +2 -7
  154. package/dist/src/tool-runtime/definition.js +1 -31
  155. package/dist/src/tool-runtime/identity.js +6 -87
  156. package/dist/src/tool-runtime/installer.d.ts +2 -6
  157. package/dist/src/tool-runtime/installer.js +14 -76
  158. package/dist/src/tool-runtime/java-arguments.js +4 -10
  159. package/dist/src/tool-runtime/launch-worker.js +2 -8
  160. package/dist/src/tool-runtime/run.d.ts +2 -0
  161. package/dist/src/tool-runtime/run.js +20 -8
  162. package/dist/src/tool-runtime/store.d.ts +3 -3
  163. package/dist/src/tool-runtime/store.js +21 -83
  164. package/dist/src/tool-runtime/supervisor.d.ts +6 -11
  165. package/dist/src/tool-runtime/supervisor.js +155 -214
  166. package/dist/src/tool-runtime/windows-helper.d.ts +5 -0
  167. package/dist/src/tool-runtime/windows-helper.js +13 -0
  168. package/dist/src/tool-runtime/windows-job.d.ts +5 -5
  169. package/dist/src/tool-runtime/windows-job.js +13 -31
  170. package/dist/src/tshark.js +14 -27
  171. package/dist/src/ui-results.d.ts +3 -2
  172. package/dist/src/ui-results.js +16 -53
  173. package/dist/src/ui.d.ts +12 -13
  174. package/dist/src/ui.js +32 -70
  175. package/dist/src/version-tracking.d.ts +25 -39
  176. package/dist/src/version-tracking.js +70 -174
  177. package/dist/src/windbg.d.ts +1 -1
  178. package/dist/src/windbg.js +2 -8
  179. package/dist/src/work/client.d.ts +63 -0
  180. package/dist/src/work/client.js +163 -0
  181. package/dist/src/work/commands.d.ts +3 -1
  182. package/dist/src/work/commands.js +158 -184
  183. package/dist/src/work/dashboard.d.ts +2 -2
  184. package/dist/src/work/dashboard.js +7 -8
  185. package/dist/src/work/legacy.d.ts +8 -0
  186. package/dist/src/work/legacy.js +70 -0
  187. package/dist/src/work/model.d.ts +0 -3
  188. package/dist/src/work/model.js +0 -10
  189. package/dist/src/work/timing.d.ts +3 -3
  190. package/dist/src/work/timing.js +21 -25
  191. package/dist/src/workspace.d.ts +4 -250
  192. package/dist/src/workspace.js +11 -699
  193. package/node_modules/@eyeauras/cli-factory/README.md +6 -0
  194. package/node_modules/@eyeauras/cli-factory/dist/src/cli.d.ts.map +1 -1
  195. package/node_modules/@eyeauras/cli-factory/dist/src/cli.js +76 -28
  196. package/node_modules/@eyeauras/cli-factory/dist/src/cli.js.map +1 -1
  197. package/node_modules/@eyeauras/cli-factory/dist/src/command.d.ts +1 -1
  198. package/node_modules/@eyeauras/cli-factory/dist/src/command.d.ts.map +1 -1
  199. package/node_modules/@eyeauras/cli-factory/dist/src/command.js +1 -0
  200. package/node_modules/@eyeauras/cli-factory/dist/src/command.js.map +1 -1
  201. package/node_modules/@eyeauras/cli-factory/dist/src/errors.d.ts +1 -1
  202. package/node_modules/@eyeauras/cli-factory/dist/src/errors.d.ts.map +1 -1
  203. package/node_modules/@eyeauras/cli-factory/dist/src/errors.js +18 -6
  204. package/node_modules/@eyeauras/cli-factory/dist/src/errors.js.map +1 -1
  205. package/node_modules/@eyeauras/cli-factory/dist/src/file-publication.d.ts +44 -0
  206. package/node_modules/@eyeauras/cli-factory/dist/src/file-publication.d.ts.map +1 -0
  207. package/node_modules/@eyeauras/cli-factory/dist/src/{profile-file.js → file-publication.js} +41 -113
  208. package/node_modules/@eyeauras/cli-factory/dist/src/file-publication.js.map +1 -0
  209. package/node_modules/@eyeauras/cli-factory/dist/src/help.d.ts +5 -0
  210. package/node_modules/@eyeauras/cli-factory/dist/src/help.d.ts.map +1 -0
  211. package/node_modules/@eyeauras/cli-factory/dist/src/help.js +17 -0
  212. package/node_modules/@eyeauras/cli-factory/dist/src/help.js.map +1 -0
  213. package/node_modules/@eyeauras/cli-factory/dist/src/index.d.ts +9 -4
  214. package/node_modules/@eyeauras/cli-factory/dist/src/index.d.ts.map +1 -1
  215. package/node_modules/@eyeauras/cli-factory/dist/src/index.js +5 -2
  216. package/node_modules/@eyeauras/cli-factory/dist/src/index.js.map +1 -1
  217. package/node_modules/@eyeauras/cli-factory/dist/src/json-rpc.d.ts.map +1 -1
  218. package/node_modules/@eyeauras/cli-factory/dist/src/json-rpc.js +11 -18
  219. package/node_modules/@eyeauras/cli-factory/dist/src/json-rpc.js.map +1 -1
  220. package/node_modules/@eyeauras/cli-factory/dist/src/output-write.d.ts +10 -0
  221. package/node_modules/@eyeauras/cli-factory/dist/src/output-write.d.ts.map +1 -0
  222. package/node_modules/@eyeauras/cli-factory/dist/src/output-write.js +69 -0
  223. package/node_modules/@eyeauras/cli-factory/dist/src/output-write.js.map +1 -0
  224. package/node_modules/@eyeauras/cli-factory/dist/src/output.d.ts +3 -1
  225. package/node_modules/@eyeauras/cli-factory/dist/src/output.d.ts.map +1 -1
  226. package/node_modules/@eyeauras/cli-factory/dist/src/output.js +74 -14
  227. package/node_modules/@eyeauras/cli-factory/dist/src/output.js.map +1 -1
  228. package/node_modules/@eyeauras/cli-factory/dist/src/pagination.d.ts +3 -0
  229. package/node_modules/@eyeauras/cli-factory/dist/src/pagination.d.ts.map +1 -0
  230. package/node_modules/@eyeauras/cli-factory/dist/src/pagination.js +9 -0
  231. package/node_modules/@eyeauras/cli-factory/dist/src/pagination.js.map +1 -0
  232. package/node_modules/@eyeauras/cli-factory/dist/src/permissions.d.ts.map +1 -1
  233. package/node_modules/@eyeauras/cli-factory/dist/src/permissions.js +3 -1
  234. package/node_modules/@eyeauras/cli-factory/dist/src/permissions.js.map +1 -1
  235. package/node_modules/@eyeauras/cli-factory/dist/src/stream-result.d.ts +16 -0
  236. package/node_modules/@eyeauras/cli-factory/dist/src/stream-result.d.ts.map +1 -0
  237. package/node_modules/@eyeauras/cli-factory/dist/src/stream-result.js +83 -0
  238. package/node_modules/@eyeauras/cli-factory/dist/src/stream-result.js.map +1 -0
  239. package/node_modules/@eyeauras/cli-factory/dist/src/types.d.ts +5 -0
  240. package/node_modules/@eyeauras/cli-factory/dist/src/types.d.ts.map +1 -1
  241. package/node_modules/@eyeauras/cli-factory/dist/src/view.d.ts +49 -7
  242. package/node_modules/@eyeauras/cli-factory/dist/src/view.d.ts.map +1 -1
  243. package/node_modules/@eyeauras/cli-factory/dist/src/view.js +83 -6
  244. package/node_modules/@eyeauras/cli-factory/dist/src/view.js.map +1 -1
  245. package/node_modules/@eyeauras/cli-factory/package.json +1 -1
  246. package/node_modules/@eyeauras/cli-factory-ipc/dist/cli-host.proto +19 -19
  247. package/node_modules/@eyeauras/cli-factory-ipc/dist/src/build.d.ts +7 -1
  248. package/node_modules/@eyeauras/cli-factory-ipc/dist/src/build.d.ts.map +1 -1
  249. package/node_modules/@eyeauras/cli-factory-ipc/dist/src/build.js +9 -4
  250. package/node_modules/@eyeauras/cli-factory-ipc/dist/src/build.js.map +1 -1
  251. package/node_modules/@eyeauras/cli-factory-ipc/dist/src/host.d.ts.map +1 -1
  252. package/node_modules/@eyeauras/cli-factory-ipc/dist/src/host.js +5 -4
  253. package/node_modules/@eyeauras/cli-factory-ipc/dist/src/host.js.map +1 -1
  254. package/node_modules/@eyeauras/cli-factory-ipc/dist/src/package-build.d.ts +11 -1
  255. package/node_modules/@eyeauras/cli-factory-ipc/dist/src/package-build.d.ts.map +1 -1
  256. package/node_modules/@eyeauras/cli-factory-ipc/dist/src/package-build.js +85 -57
  257. package/node_modules/@eyeauras/cli-factory-ipc/dist/src/package-build.js.map +1 -1
  258. package/node_modules/@eyeauras/cli-factory-ipc/package.json +2 -2
  259. package/package.json +4 -5
  260. package/references/native/InsightAnalyzerOptions.java +10 -0
  261. package/references/native/InsightAnchorScan.java +1 -11
  262. package/references/native/InsightCodeReferences.java +2 -3
  263. package/references/native/InsightCopyType.java +24 -0
  264. package/references/native/InsightFunctionBoundaries.java +0 -1
  265. package/references/native/InsightFunctionDatabases.java +20 -16
  266. package/references/native/InsightHelperCall.java +17 -0
  267. package/references/native/InsightHubServer.java +214 -0
  268. package/references/native/InsightNativeHost.java +112 -0
  269. package/references/native/InsightPlugins.java +0 -1
  270. package/references/native/InsightPythonWheels.java +3 -2
  271. package/references/native/InsightResearchQueries.java +3 -4
  272. package/references/native/InsightResearchView.java +4 -10
  273. package/references/native/InsightSdkFiles.java +7 -15
  274. package/references/native/InsightSdkScript.java +1 -4
  275. package/references/native/InsightSdkTools.java +36 -97
  276. package/references/native/InsightSdkTypes.java +13 -43
  277. package/references/native/InsightStringAnchors.java +1 -3
  278. package/references/native/InsightTraceState.java +13 -96
  279. package/references/native/InsightTraceTools.java +3 -5
  280. package/references/native/InsightVersionTracking.java +0 -6
  281. package/references/native/{HeadlessProgramMergeManager.java → InsightWcMerge.java} +17 -24
  282. package/references/native/InsightWcOps.java +449 -0
  283. package/references/native/InsightWcWorker.java +142 -0
  284. package/references/native/NATIVE-MERGE-NOTICE.txt +4 -8
  285. package/runtime/GhidraMCP-7.0.0.jar +0 -0
  286. package/runtime/managed/insight-heap/README.md +3 -3
  287. package/runtime/managed/insight-managed/README.md +3 -3
  288. package/runtime/native/binary/README.md +5 -4
  289. package/runtime/native/windows/DirectoryAlias.cs +24 -0
  290. package/runtime/native/windows/Insight.Windows.csproj +27 -0
  291. package/runtime/native/windows/Native.cs +36 -0
  292. package/runtime/native/windows/OwnedJob.cs +86 -0
  293. package/runtime/native/windows/Program.cs +50 -0
  294. package/runtime/native/windows/RegistryRedirect.cs +42 -0
  295. package/runtime/native/windows/insight-windows-x64.exe +0 -0
  296. package/runtime/native/windows/packages.lock.json +35 -0
  297. package/runtime/native/windows/provenance.json +17 -0
  298. package/runtime/research-view.provenance.json +6 -7
  299. package/runtime/toolbox.json +33 -114
  300. package/skill-bundle/insight-artifacts/SKILL.md +5 -19
  301. package/skill-bundle/insight-binary/SKILL.md +5 -35
  302. package/skill-bundle/insight-capture/SKILL.md +5 -45
  303. package/skill-bundle/insight-cli/SKILL.md +6 -44
  304. package/skill-bundle/insight-die/SKILL.md +5 -38
  305. package/skill-bundle/insight-dnspy/SKILL.md +5 -54
  306. package/skill-bundle/insight-dotnet-dump/SKILL.md +5 -35
  307. package/skill-bundle/insight-dotnet-stack/SKILL.md +5 -28
  308. package/skill-bundle/insight-dotnet-trace/SKILL.md +5 -34
  309. package/skill-bundle/insight-frida/SKILL.md +5 -56
  310. package/skill-bundle/insight-ghidra/SKILL.md +14 -113
  311. package/skill-bundle/insight-ilspy/SKILL.md +5 -34
  312. package/skill-bundle/insight-interop/SKILL.md +5 -43
  313. package/skill-bundle/insight-lldb/SKILL.md +5 -43
  314. package/skill-bundle/insight-llvm/SKILL.md +5 -45
  315. package/skill-bundle/insight-managed-heap/SKILL.md +5 -32
  316. package/skill-bundle/insight-managed-metadata/SKILL.md +5 -41
  317. package/skill-bundle/insight-mitmproxy/SKILL.md +5 -51
  318. package/skill-bundle/insight-overview/SKILL.md +5 -68
  319. package/skill-bundle/insight-procmon/SKILL.md +5 -38
  320. package/skill-bundle/insight-re/SKILL.md +10 -127
  321. package/skill-bundle/insight-sevenzip/SKILL.md +5 -31
  322. package/skill-bundle/insight-strace/SKILL.md +5 -35
  323. package/skill-bundle/insight-tshark/SKILL.md +5 -38
  324. package/skill-bundle/insight-windbg/SKILL.md +5 -35
  325. package/skill-bundle/manifest.json +1 -1
  326. package/skills/insight-artifacts/SKILL.md +5 -19
  327. package/skills/insight-binary/SKILL.md +5 -35
  328. package/skills/insight-capture/SKILL.md +5 -45
  329. package/skills/insight-die/SKILL.md +5 -38
  330. package/skills/insight-dnspy/SKILL.md +5 -54
  331. package/skills/insight-dotnet-dump/SKILL.md +5 -35
  332. package/skills/insight-dotnet-stack/SKILL.md +5 -28
  333. package/skills/insight-dotnet-trace/SKILL.md +5 -34
  334. package/skills/insight-frida/SKILL.md +5 -56
  335. package/skills/insight-ghidra/SKILL.md +14 -113
  336. package/skills/insight-ilspy/SKILL.md +5 -34
  337. package/skills/insight-interop/SKILL.md +5 -43
  338. package/skills/insight-lldb/SKILL.md +5 -43
  339. package/skills/insight-llvm/SKILL.md +5 -45
  340. package/skills/insight-managed-heap/SKILL.md +5 -32
  341. package/skills/insight-managed-metadata/SKILL.md +5 -41
  342. package/skills/insight-mitmproxy/SKILL.md +5 -51
  343. package/skills/insight-overview/SKILL.md +5 -68
  344. package/skills/insight-procmon/SKILL.md +5 -38
  345. package/skills/insight-re/SKILL.md +10 -127
  346. package/skills/insight-sevenzip/SKILL.md +5 -31
  347. package/skills/insight-strace/SKILL.md +5 -35
  348. package/skills/insight-tshark/SKILL.md +5 -38
  349. package/skills/insight-windbg/SKILL.md +5 -35
  350. package/dist/src/administration-results.d.ts +0 -1
  351. package/dist/src/administration-results.js +0 -84
  352. package/dist/src/administration.d.ts +0 -14
  353. package/dist/src/administration.js +0 -134
  354. package/dist/src/archive-contract.d.ts +0 -6
  355. package/dist/src/archive-contract.js +0 -108
  356. package/dist/src/archive.d.ts +0 -12
  357. package/dist/src/archive.js +0 -116
  358. package/dist/src/comment-effects.d.ts +0 -3
  359. package/dist/src/comment-effects.js +0 -55
  360. package/dist/src/context-credential.d.ts +0 -18
  361. package/dist/src/context-credential.js +0 -44
  362. package/dist/src/contexts.d.ts +0 -387
  363. package/dist/src/contexts.js +0 -2805
  364. package/dist/src/coordinator.d.ts +0 -41
  365. package/dist/src/coordinator.js +0 -160
  366. package/dist/src/cross-peer.d.ts +0 -20
  367. package/dist/src/cross-peer.js +0 -53
  368. package/dist/src/data-effects.d.ts +0 -3
  369. package/dist/src/data-effects.js +0 -103
  370. package/dist/src/debugger-caller.d.ts +0 -17
  371. package/dist/src/debugger-caller.js +0 -129
  372. package/dist/src/debugger-launch.d.ts +0 -2
  373. package/dist/src/debugger-launch.js +0 -17
  374. package/dist/src/debugger-supervisor.js +0 -179
  375. package/dist/src/directory-identity.d.ts +0 -6
  376. package/dist/src/directory-identity.js +0 -45
  377. package/dist/src/documentation-effects.d.ts +0 -5
  378. package/dist/src/documentation-effects.js +0 -56
  379. package/dist/src/function-effects.d.ts +0 -4
  380. package/dist/src/function-effects.js +0 -112
  381. package/dist/src/ghidra-processes.d.ts +0 -6
  382. package/dist/src/ghidra-processes.js +0 -138
  383. package/dist/src/ghidra.d.ts +0 -50
  384. package/dist/src/ghidra.js +0 -468
  385. package/dist/src/initial-model.d.ts +0 -7
  386. package/dist/src/initial-model.js +0 -115
  387. package/dist/src/initial-progress.d.ts +0 -4
  388. package/dist/src/initial-progress.js +0 -74
  389. package/dist/src/inline-script.d.ts +0 -15
  390. package/dist/src/inline-script.js +0 -61
  391. package/dist/src/legacy-migration.d.ts +0 -37
  392. package/dist/src/legacy-migration.js +0 -238
  393. package/dist/src/lifecycle.d.ts +0 -77
  394. package/dist/src/lifecycle.js +0 -315
  395. package/dist/src/merge.d.ts +0 -29
  396. package/dist/src/merge.js +0 -66
  397. package/dist/src/mutation-effects.d.ts +0 -4
  398. package/dist/src/mutation-effects.js +0 -321
  399. package/dist/src/native-queries.d.ts +0 -2
  400. package/dist/src/native-queries.js +0 -24
  401. package/dist/src/native-service.d.ts +0 -40
  402. package/dist/src/native-service.js +0 -406
  403. package/dist/src/projects.d.ts +0 -31
  404. package/dist/src/projects.js +0 -302
  405. package/dist/src/prototype-cli.d.ts +0 -8
  406. package/dist/src/prototype-cli.js +0 -155
  407. package/dist/src/query-results.d.ts +0 -2
  408. package/dist/src/query-results.js +0 -224
  409. package/dist/src/research-view.d.ts +0 -6
  410. package/dist/src/research-view.js +0 -9
  411. package/dist/src/sdk-files.d.ts +0 -29
  412. package/dist/src/sdk-files.js +0 -249
  413. package/dist/src/server.d.ts +0 -102
  414. package/dist/src/server.js +0 -663
  415. package/dist/src/storage-gc.d.ts +0 -23
  416. package/dist/src/storage-gc.js +0 -600
  417. package/dist/src/store.d.ts +0 -33
  418. package/dist/src/store.js +0 -178
  419. package/dist/src/sync-policy.d.ts +0 -22
  420. package/dist/src/sync-policy.js +0 -129
  421. package/dist/src/timed-backend.d.ts +0 -3
  422. package/dist/src/timed-backend.js +0 -24
  423. package/dist/src/timing-report.d.ts +0 -32
  424. package/dist/src/timing-report.js +0 -74
  425. package/dist/src/tool-runtime/native-process-proof.d.ts +0 -2
  426. package/dist/src/tool-runtime/native-process-proof.js +0 -26
  427. package/dist/src/transport.d.ts +0 -60
  428. package/dist/src/transport.js +0 -223
  429. package/dist/src/unresolved-guidance.d.ts +0 -46
  430. package/dist/src/unresolved-guidance.js +0 -55
  431. package/dist/src/work/backup.d.ts +0 -66
  432. package/dist/src/work/backup.js +0 -446
  433. package/dist/src/work/store.js +0 -1107
  434. package/dist/src/worker-lease.d.ts +0 -17
  435. package/dist/src/worker-lease.js +0 -50
  436. package/node_modules/@eyeauras/cli-factory/dist/src/profile-file.d.ts +0 -37
  437. package/node_modules/@eyeauras/cli-factory/dist/src/profile-file.d.ts.map +0 -1
  438. package/node_modules/@eyeauras/cli-factory/dist/src/profile-file.js.map +0 -1
  439. package/references/InsightRepositoryProbe.java +0 -55
  440. package/references/administration.md +0 -34
  441. package/references/agent-execution.md +0 -36
  442. package/references/agent-setup.md +0 -60
  443. package/references/archive.md +0 -32
  444. package/references/artifacts.md +0 -52
  445. package/references/debugger.md +0 -64
  446. package/references/extensions-and-sync.md +0 -125
  447. package/references/ilspy.md +0 -33
  448. package/references/managed-runtime.md +0 -162
  449. package/references/native/InsightArchivePayloads.java +0 -36
  450. package/references/native/InsightBlockTransfer.java +0 -57
  451. package/references/native/InsightGuiMain.java +0 -33
  452. package/references/native/InsightHeadlessMain.java +0 -18
  453. package/references/native/InsightImportProgress.java +0 -60
  454. package/references/native/InsightInitialImport.java +0 -48
  455. package/references/native/InsightInitialJournal.java +0 -57
  456. package/references/native/InsightInitialPublication.java +0 -142
  457. package/references/native/InsightInitialRecovery.java +0 -131
  458. package/references/native/InsightInlineExecutor.java +0 -143
  459. package/references/native/InsightInlineScript.java +0 -14
  460. package/references/native/InsightNativeCheckout.java +0 -487
  461. package/references/native/InsightNativeFingerprint.java +0 -80
  462. package/references/native/InsightNativeMigration.java +0 -155
  463. package/references/native/InsightNativeRead.java +0 -80
  464. package/references/native/InsightNativeReceipt.java +0 -31
  465. package/references/native/InsightNativeService.java +0 -43
  466. package/references/native/InsightNativeView.java +0 -40
  467. package/references/native/InsightOfflineAuthenticator.java +0 -20
  468. package/references/native/InsightOwnedScripts.java +0 -170
  469. package/references/native/InsightProjectFiles.java +0 -92
  470. package/references/native/InsightPublicationRecovery.java +0 -63
  471. package/references/native/InsightServerAdministration.java +0 -82
  472. package/references/native/InsightServerInit.java +0 -62
  473. package/references/native/InsightServerMain.java +0 -43
  474. package/references/native/InsightServerProbe.java +0 -29
  475. package/references/native/InsightSnapshotFields.java +0 -74
  476. package/references/native/InsightSnapshotInspect.java +0 -191
  477. package/references/native/InsightSnapshotPublisher.java +0 -123
  478. package/references/native/InsightStopDebugger.java +0 -20
  479. package/references/native/InsightTraceInspect.java +0 -24
  480. package/references/native/InsightWorkerLease.java +0 -132
  481. package/references/native-workflows.md +0 -124
  482. package/references/persistent-client.mjs +0 -147
  483. package/references/persistent.md +0 -90
  484. package/references/query-semantics.md +0 -109
  485. package/references/recovery.md +0 -235
  486. package/references/research.md +0 -296
  487. package/references/setup.md +0 -135
  488. package/references/sparse-navigation.md +0 -173
  489. package/references/storage.md +0 -139
  490. package/references/work-tracking.md +0 -261
  491. package/runtime/native/file-version.ps1 +0 -7
  492. package/runtime/native/mitmproxy/bridge.py +0 -180
  493. package/runtime/native/windows-job/DirectoryAlias.cs +0 -24
  494. package/runtime/native/windows-job/Insight.WindowsJob.csproj +0 -1
  495. package/runtime/native/windows-job/Insight.WindowsJob.dll +0 -0
  496. package/runtime/native/windows-job/OwnedJob.cs +0 -79
  497. package/runtime/native/windows-job/RegistryRedirect.cs +0 -45
  498. package/runtime/native/windows-job/packages.lock.json +0 -21
  499. package/runtime/native/windows-job/provenance.json +0 -16
  500. package/runtime/native/windows-job/windows-job.ps1 +0 -8
  501. package/skill-bundle/insight-artifacts/references/agent-execution.md +0 -36
  502. package/skill-bundle/insight-artifacts/references/artifacts.md +0 -52
  503. package/skill-bundle/insight-artifacts/references/recovery.md +0 -235
  504. package/skill-bundle/insight-artifacts/references/storage.md +0 -139
  505. package/skill-bundle/insight-binary/references/agent-execution.md +0 -36
  506. package/skill-bundle/insight-capture/references/agent-execution.md +0 -36
  507. package/skill-bundle/insight-cli/references/agent-execution.md +0 -36
  508. package/skill-bundle/insight-cli/references/agent-setup.md +0 -60
  509. package/skill-bundle/insight-cli/references/archive.md +0 -32
  510. package/skill-bundle/insight-cli/references/managed-runtime.md +0 -162
  511. package/skill-bundle/insight-cli/references/persistent-client.mjs +0 -147
  512. package/skill-bundle/insight-cli/references/persistent.md +0 -90
  513. package/skill-bundle/insight-cli/references/recovery.md +0 -235
  514. package/skill-bundle/insight-cli/references/setup.md +0 -135
  515. package/skill-bundle/insight-cli/references/storage.md +0 -139
  516. package/skill-bundle/insight-die/references/agent-execution.md +0 -36
  517. package/skill-bundle/insight-dnspy/references/agent-execution.md +0 -36
  518. package/skill-bundle/insight-dotnet-dump/references/agent-execution.md +0 -36
  519. package/skill-bundle/insight-dotnet-stack/references/agent-execution.md +0 -36
  520. package/skill-bundle/insight-dotnet-trace/references/agent-execution.md +0 -36
  521. package/skill-bundle/insight-frida/references/agent-execution.md +0 -36
  522. package/skill-bundle/insight-ghidra/references/administration.md +0 -34
  523. package/skill-bundle/insight-ghidra/references/agent-execution.md +0 -36
  524. package/skill-bundle/insight-ghidra/references/archive.md +0 -32
  525. package/skill-bundle/insight-ghidra/references/artifacts.md +0 -52
  526. package/skill-bundle/insight-ghidra/references/debugger.md +0 -64
  527. package/skill-bundle/insight-ghidra/references/extensions-and-sync.md +0 -125
  528. package/skill-bundle/insight-ghidra/references/managed-runtime.md +0 -162
  529. package/skill-bundle/insight-ghidra/references/native-workflows.md +0 -124
  530. package/skill-bundle/insight-ghidra/references/persistent-client.mjs +0 -147
  531. package/skill-bundle/insight-ghidra/references/persistent.md +0 -90
  532. package/skill-bundle/insight-ghidra/references/query-semantics.md +0 -109
  533. package/skill-bundle/insight-ghidra/references/recovery.md +0 -235
  534. package/skill-bundle/insight-ghidra/references/research.md +0 -296
  535. package/skill-bundle/insight-ghidra/references/setup.md +0 -135
  536. package/skill-bundle/insight-ghidra/references/sparse-navigation.md +0 -173
  537. package/skill-bundle/insight-ghidra/references/storage.md +0 -139
  538. package/skill-bundle/insight-ilspy/references/agent-execution.md +0 -36
  539. package/skill-bundle/insight-ilspy/references/ilspy.md +0 -33
  540. package/skill-bundle/insight-interop/references/agent-execution.md +0 -36
  541. package/skill-bundle/insight-lldb/references/agent-execution.md +0 -36
  542. package/skill-bundle/insight-llvm/references/agent-execution.md +0 -36
  543. package/skill-bundle/insight-managed-heap/references/agent-execution.md +0 -36
  544. package/skill-bundle/insight-managed-metadata/references/agent-execution.md +0 -36
  545. package/skill-bundle/insight-mitmproxy/references/agent-execution.md +0 -36
  546. package/skill-bundle/insight-overview/references/agent-execution.md +0 -36
  547. package/skill-bundle/insight-procmon/references/agent-execution.md +0 -36
  548. package/skill-bundle/insight-re/references/agent-execution.md +0 -36
  549. package/skill-bundle/insight-re/references/artifacts.md +0 -52
  550. package/skill-bundle/insight-re/references/persistent-client.mjs +0 -147
  551. package/skill-bundle/insight-re/references/persistent.md +0 -90
  552. package/skill-bundle/insight-re/references/recovery.md +0 -235
  553. package/skill-bundle/insight-re/references/storage.md +0 -139
  554. package/skill-bundle/insight-re/references/work-tracking.md +0 -261
  555. package/skill-bundle/insight-sevenzip/references/agent-execution.md +0 -36
  556. package/skill-bundle/insight-strace/references/agent-execution.md +0 -36
  557. package/skill-bundle/insight-tshark/references/agent-execution.md +0 -36
  558. package/skill-bundle/insight-windbg/references/agent-execution.md +0 -36
  559. package/skills/insight-artifacts/references/agent-execution.md +0 -36
  560. package/skills/insight-artifacts/references/artifacts.md +0 -52
  561. package/skills/insight-artifacts/references/recovery.md +0 -235
  562. package/skills/insight-artifacts/references/storage.md +0 -139
  563. package/skills/insight-binary/references/agent-execution.md +0 -36
  564. package/skills/insight-capture/references/agent-execution.md +0 -36
  565. package/skills/insight-die/references/agent-execution.md +0 -36
  566. package/skills/insight-dnspy/references/agent-execution.md +0 -36
  567. package/skills/insight-dotnet-dump/references/agent-execution.md +0 -36
  568. package/skills/insight-dotnet-stack/references/agent-execution.md +0 -36
  569. package/skills/insight-dotnet-trace/references/agent-execution.md +0 -36
  570. package/skills/insight-frida/references/agent-execution.md +0 -36
  571. package/skills/insight-ghidra/references/administration.md +0 -34
  572. package/skills/insight-ghidra/references/agent-execution.md +0 -36
  573. package/skills/insight-ghidra/references/archive.md +0 -32
  574. package/skills/insight-ghidra/references/artifacts.md +0 -52
  575. package/skills/insight-ghidra/references/debugger.md +0 -64
  576. package/skills/insight-ghidra/references/extensions-and-sync.md +0 -125
  577. package/skills/insight-ghidra/references/managed-runtime.md +0 -162
  578. package/skills/insight-ghidra/references/native-workflows.md +0 -124
  579. package/skills/insight-ghidra/references/persistent-client.mjs +0 -147
  580. package/skills/insight-ghidra/references/persistent.md +0 -90
  581. package/skills/insight-ghidra/references/query-semantics.md +0 -109
  582. package/skills/insight-ghidra/references/recovery.md +0 -235
  583. package/skills/insight-ghidra/references/research.md +0 -296
  584. package/skills/insight-ghidra/references/setup.md +0 -135
  585. package/skills/insight-ghidra/references/sparse-navigation.md +0 -173
  586. package/skills/insight-ghidra/references/storage.md +0 -139
  587. package/skills/insight-ilspy/references/agent-execution.md +0 -36
  588. package/skills/insight-ilspy/references/ilspy.md +0 -33
  589. package/skills/insight-interop/references/agent-execution.md +0 -36
  590. package/skills/insight-lldb/references/agent-execution.md +0 -36
  591. package/skills/insight-llvm/references/agent-execution.md +0 -36
  592. package/skills/insight-managed-heap/references/agent-execution.md +0 -36
  593. package/skills/insight-managed-metadata/references/agent-execution.md +0 -36
  594. package/skills/insight-mitmproxy/references/agent-execution.md +0 -36
  595. package/skills/insight-overview/references/agent-execution.md +0 -36
  596. package/skills/insight-procmon/references/agent-execution.md +0 -36
  597. package/skills/insight-re/references/agent-execution.md +0 -36
  598. package/skills/insight-re/references/artifacts.md +0 -52
  599. package/skills/insight-re/references/persistent-client.mjs +0 -147
  600. package/skills/insight-re/references/persistent.md +0 -90
  601. package/skills/insight-re/references/recovery.md +0 -235
  602. package/skills/insight-re/references/storage.md +0 -139
  603. package/skills/insight-re/references/work-tracking.md +0 -261
  604. package/skills/insight-sevenzip/references/agent-execution.md +0 -36
  605. package/skills/insight-strace/references/agent-execution.md +0 -36
  606. package/skills/insight-tshark/references/agent-execution.md +0 -36
  607. package/skills/insight-windbg/references/agent-execution.md +0 -36
  608. /package/dist/src/{debugger-supervisor.d.ts → native/contract.js} +0 -0
  609. /package/runtime/native/{windows-job → windows}/NuGet.Config +0 -0
@@ -1,17 +0,0 @@
1
- /** Must stay well below the worker's hold expiry (three minutes). */
2
- export declare const leaseHeartbeatMs = 60000;
3
- export declare function withWorkerLeases<T>(action: () => Promise<T>): Promise<T>;
4
- export declare function inWorkerLeaseScope(): boolean;
5
- export declare function workerLeaseHeld(key: string): boolean;
6
- /** The worker-side identity of this command's hold, when it has one. */
7
- export declare function workerLeaseHolder(key: string): string | undefined;
8
- /** Keep a worker held for the rest of the current command. Outside a command nothing is retained. */
9
- export declare function holdWorkerLease(key: string, lease: {
10
- renew: () => Promise<unknown>;
11
- release: () => Promise<unknown>;
12
- holder?: string;
13
- }): void;
14
- /** Release this command's hold now (for example before asking the worker to stop). */
15
- export declare function releaseWorkerLease(key: string): Promise<void>;
16
- /** A stopped worker needs no further renewal or release in this command. */
17
- export declare function dropWorkerLease(key: string): void;
@@ -1,50 +0,0 @@
1
- import { AsyncLocalStorage } from 'node:async_hooks';
2
- const scope = new AsyncLocalStorage();
3
- /** Must stay well below the worker's hold expiry (three minutes). */
4
- export const leaseHeartbeatMs = 60000;
5
- export async function withWorkerLeases(action) {
6
- const held = new Map();
7
- try {
8
- return await scope.run(held, action);
9
- }
10
- finally {
11
- for (const lease of held.values())
12
- clearInterval(lease.timer);
13
- await Promise.all([...held.values()].map(lease => lease.release().catch(() => { })));
14
- }
15
- }
16
- export function inWorkerLeaseScope() { return scope.getStore() !== undefined; }
17
- export function workerLeaseHeld(key) { return scope.getStore()?.has(key) === true; }
18
- /** The worker-side identity of this command's hold, when it has one. */
19
- export function workerLeaseHolder(key) { return scope.getStore()?.get(key)?.holder; }
20
- /** Keep a worker held for the rest of the current command. Outside a command nothing is retained. */
21
- export function holdWorkerLease(key, lease) {
22
- const held = scope.getStore();
23
- if (!held)
24
- return;
25
- const previous = held.get(key);
26
- if (previous) {
27
- clearInterval(previous.timer);
28
- void previous.release().catch(() => { });
29
- }
30
- const timer = setInterval(() => { void lease.renew().catch(() => { }); }, leaseHeartbeatMs);
31
- timer.unref();
32
- held.set(key, { ...lease, timer });
33
- }
34
- /** Release this command's hold now (for example before asking the worker to stop). */
35
- export async function releaseWorkerLease(key) {
36
- const held = scope.getStore(), lease = held?.get(key);
37
- if (!lease)
38
- return;
39
- clearInterval(lease.timer);
40
- held.delete(key);
41
- await lease.release().catch(() => { });
42
- }
43
- /** A stopped worker needs no further renewal or release in this command. */
44
- export function dropWorkerLease(key) {
45
- const held = scope.getStore(), lease = held?.get(key);
46
- if (!lease)
47
- return;
48
- clearInterval(lease.timer);
49
- held.delete(key);
50
- }
@@ -1,37 +0,0 @@
1
- import { CliError, type CliErrorOptions } from "./errors.js";
2
- /** A download or saved-file failure; `published` and `cleanupFailed` say what was left behind. */
3
- export declare class ProfileFileError extends CliError {
4
- readonly published: boolean;
5
- readonly cleanupFailed: boolean;
6
- constructor(message: string, published?: boolean, cleanupFailed?: boolean, options?: Pick<CliErrorOptions, "cause" | "next">);
7
- }
8
- export interface PublishedProfileFile {
9
- path: string;
10
- bytes: number;
11
- sha256: string;
12
- }
13
- export interface StagedProfileFile {
14
- path: string;
15
- bytes: number;
16
- prefix: Uint8Array;
17
- }
18
- export interface ProfileFileOptions {
19
- appDataDirectory: string;
20
- name: string;
21
- maxBytes?: number | undefined;
22
- signal?: AbortSignal | undefined;
23
- openResponse: () => Promise<Response>;
24
- inspectResponse: (response: Response) => void | Promise<void>;
25
- validateFile?: ((file: StagedProfileFile) => void | Promise<void>) | undefined;
26
- }
27
- export declare function publishProfileFile(options: ProfileFileOptions): Promise<PublishedProfileFile>;
28
- /** Publish generated text with the same private staging and no-overwrite rules as a download. */
29
- export declare function saveProfileFile(options: {
30
- appDataDirectory: string;
31
- name: string;
32
- content: string;
33
- signal?: AbortSignal | undefined;
34
- }): Promise<PublishedProfileFile>;
35
- /** Local built-ins for files saved by publishProfileFile/saveProfileFile in the selected profile. */
36
- export declare const downloadCommands: import("./types.js").CommandDefinition;
37
- //# sourceMappingURL=profile-file.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"profile-file.d.ts","sourceRoot":"","sources":["../../src/profile-file.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAE7D,kGAAkG;AAClG,qBAAa,gBAAiB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AAE,UAAU,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE;gBAC/E,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;aAC7D;YACD,KAAK,EAAE,iBAAiB;SACzB,CAAC;KACH,CAAC;IACF,OAAO,CAAC,eAAe,EAAE,uBAAuB,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,CACtE,gBAAgB,CAAC,OAAO,CAAC,YAAY,CAAC,gBAAgB,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACrE,OAAO,CAAC,OAAO,EAAE,yBAAyB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,CAC9D,gBAAgB,CAAC,OAAO,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC;CAC3D,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC,CAAC"}
@@ -1,55 +0,0 @@
1
- import ghidra.GhidraApplicationLayout;
2
- import ghidra.framework.Application;
3
- import ghidra.framework.HeadlessGhidraApplicationConfiguration;
4
- import ghidra.framework.client.RepositoryAdapter;
5
- import ghidra.framework.remote.User;
6
- import com.xebyte.headless.GhidraServerManager;
7
- import com.google.gson.Gson;
8
- import java.util.*;
9
- import java.io.PrintStream;
10
-
11
- /** Fixed read-only probe. No write/checkout/terminate operation exists here. */
12
- class InsightRepositoryProbe {
13
- public static void main(String[] args) {
14
- PrintStream output = System.out;
15
- System.setOut(System.err); // Ghidra diagnostics never share the result protocol.
16
- try {
17
- if (args.length != 3 || !Set.of("reader", "publisher").contains(args[2])) throw new IllegalArgumentException();
18
- Application.initializeApplication(new GhidraApplicationLayout(), new HeadlessGhidraApplicationConfiguration());
19
- GhidraServerManager manager = new GhidraServerManager();
20
- manager.connect();
21
- if (manager.server() == null || !manager.server().isConnected()) throw new IllegalStateException();
22
- RepositoryAdapter repository = manager.server().getRepository(args[0]);
23
- repository.connect();
24
- User user = repository.getUser();
25
- if (user == null || !user.getName().equals(System.getenv("GHIDRA_SERVER_USER"))) throw new IllegalStateException();
26
- if (args[2].equals("reader") ? !user.isReadOnly() : !user.hasWritePermission()) throw new SecurityException();
27
- int split = args[1].lastIndexOf('/');
28
- String folder = split == 0 ? "/" : args[1].substring(0, split), name = args[1].substring(split + 1);
29
- var item = repository.getItem(folder, name);
30
- if(item==null){
31
- boolean reserved=repository.fileExists(folder,name);
32
- repository.disconnect();manager.server().disconnect();
33
- output.println(new Gson().toJson(Map.of("state",reserved?"reserved":"absent","repository",args[0],"path",args[1],"permission",user.getPermissionType())));
34
- System.exit(0);
35
- }
36
- var checkouts = repository.getCheckouts(folder, name);
37
- var versions = repository.getVersions(folder, name);
38
- if (item == null || checkouts == null || versions == null || versions.length == 0) throw new IllegalStateException();
39
- List<Map<String,Object>> history = new ArrayList<>();
40
- for (var version : versions) history.add(Map.of("version", version.getVersion(), "comment", version.getComment() == null ? "" : version.getComment()));
41
- List<Long> ids = new ArrayList<>();
42
- for (var checkout : checkouts) ids.add(checkout.getCheckoutId());
43
- var result = new LinkedHashMap<String,Object>();
44
- result.put("repository",repository.getName()); result.put("path",(item.getParentPath().equals("/") ? "/" : item.getParentPath() + "/") + item.getName());
45
- result.put("version",item.getVersion()); result.put("permission",user.getPermissionType());
46
- result.put("checkouts",ids); result.put("checkinActive",repository.isCheckinActive(folder,name)); result.put("versions",history);
47
- repository.disconnect(); manager.server().disconnect();
48
- output.println(new Gson().toJson(result));
49
- System.exit(0);
50
- } catch (Throwable error) {
51
- output.println("{\"error\":\"authoritative_repository_probe_failed\"}");
52
- System.exit(1);
53
- }
54
- }
55
- }
@@ -1,34 +0,0 @@
1
- # Projects, files and server administration
2
-
3
- Research uses root session/target scope. `ghidra projects` manages separate projects inside the
4
- selected profile; these projects do not select or replace an agent's private context. Use an
5
- explicit `--project` for create/open/close/info/files and file operations. Closing releases the
6
- native handle and preserves files; deletion requires Destructive. File listings are paged.
7
- Moves select a source `--path` and an existing `--destination` folder. Existing names are preserved.
8
-
9
- `ghidra program export --session <id> --target <id> --output <file>` saves the selected private
10
- program as GZF without publishing. `ghidra program import --project <name> --input <gzf>
11
- --path /folder/program` adds that saved program to a managed project. Importing files does not
12
- change the immutable target's input identity. Export requires a new output file.
13
-
14
- `ghidra projects archive --project <name> --output <gar>` exports a native Ghidra project archive.
15
- `ghidra projects restore --project <new-name> --input <gar>` restores into a new independent owned
16
- project. Archive entries cannot escape their destination; restoration accepts at most 100,000
17
- entries and 4 GiB of declared uncompressed data. Research contexts and pending work remain separate.
18
-
19
- Changing operations accept `--request-id`. A verified native completion journal can recover a
20
- lost project response without executing that operation again. If no complete journal exists,
21
- changing that project stays blocked; read-only inspection remains available. Partial or different
22
- export output does not prove success and is preserved. Retain receipts for continuation.
23
-
24
- `ghidra server` operates on the configured local or external server. `status` reports connection
25
- state, including a missing runtime before installation; `start/stop` manage the owned local
26
- server (stop requires closed contexts). `connect` enables shared operations; `disconnect` releases the owned local server or the
27
- external connection. Reconnect preserves repositories. Repository/file/history/checkout commands
28
- require the explicit repository and relevant path. Admin actions require actual server authority
29
- alongside Factory permissions. Changing ACLs preserves other users and anonymous access.
30
- Facade reader/publisher authority and canonical publication checkouts remain protected.
31
-
32
- Unknown server administration outcomes are retained without blind replay. Server/file effects
33
- are independent of program merge. Use generated help for flags and Factory profile/secret commands
34
- for connection configuration.
@@ -1,36 +0,0 @@
1
- # Agent host execution permissions
2
-
3
- Keep the user/project host policy and the selected profile. A sandbox can deny writes
4
- to runtime AppData or access to the local IPC endpoint, including during local help.
5
- This is a host execution boundary, not evidence that the tool or its inputs are absent.
6
-
7
- First retry only `insight-cli --help`, `tools list`, `skill`, or the selected application's
8
- read-only `status` using the host's normal permission escalation. In Codex, use the
9
- execution tool's `sandbox_permissions: "require_escalated"` with a scoped explanation
10
- that the installed CLI needs its existing profile storage/local IPC. Automatic approval
11
- review or the user decides that request; do not disable the sandbox or approval policy.
12
-
13
- Do not work around this by changing HOME/AppData/profile paths, creating another host,
14
- deleting owner/endpoint files, killing unrelated processes or claiming a missing runtime.
15
- After the read-only probe succeeds, use the approved execution route for the intended
16
- public CLI commands. An access refusal explicitly stating **no command was sent** is
17
- known not dispatched; it is safe to submit that authorized command through the approved
18
- route. This includes a mutation refused before dispatch. Do not mistake that definite
19
- pre-dispatch refusal for an unknown execution outcome. Downloads still require their explicit
20
- network access.
21
-
22
- A lost mutation response is different from a denied startup probe: inspect retained
23
- request/status/recovery evidence and use its request ID when supported. Never blindly
24
- repeat a publication, script or program run whose outcome is unknown. External-tool
25
- fallback is allowed by project rules, but record that the intended facade was not used
26
- and do not invent a successful checkpoint or native result.
27
-
28
- ## Wait for the original execution
29
-
30
- A tool operation may outlast the host execution tool's initial wait. A returned running
31
- session/cell ID means that command is still in progress, not that the CLI returned no data.
32
- Use the host's session poll/wait facility until terminal exit and consume stdout/stderr
33
- before issuing a dependent command. In Codex, an `exec_command` session is continued with
34
- `write_stdin`; a yielded execution cell uses that host's cell wait. Do not launch a second
35
- open/install or repeat a CPU action just because the first chunk was empty. If the execution
36
- really loses its terminal result, use the CLI's request/status recovery as described above.
@@ -1,60 +0,0 @@
1
- # Connect the toolbox to an agent
2
-
3
- npm installs the CLI and all declared skills. Native tool downloads are separate. A host needs
4
- shell access to `insight-cli`, skill discovery and execution access to the assigned profile.
5
- `insight-cli tools list --json` discovers shipped capabilities without profile configuration,
6
- native runtimes, credentials or IPC. `skill <name>` returns the instructions' ordinary path;
7
- it does not inject them into an agent automatically.
8
-
9
- ## Codex: one project-local bundle
10
-
11
- The package prepares `skill-bundle`, containing an independent folder for every registered
12
- skill. `insight-cli skill --json` returns its `bundlePath`. References stay inside each skill;
13
- link the whole bundle once rather than connecting each tool separately. npm installation
14
- never edits agent settings or project RE instructions.
15
-
16
- With a global npm installation, run from the research project:
17
-
18
- ```sh
19
- mkdir -p .agents/skills
20
- ln -s "$(npm root -g)/@eyeauras/insight-cli/skill-bundle" .agents/skills/insight-toolbox
21
- ```
22
-
23
- `ln` refuses an existing destination: inspect it instead of overwriting another skill or
24
- connection. Local npm installations use the `bundlePath` from their actual CLI receipt.
25
- These machine-local links are not portable files to commit to a shared project. Start a fresh
26
- agent and verify all registered names/descriptions appear. The [official discovery contract](https://learn.chatgpt.com/docs/build-skills)
27
- supports project skills and symlinked directories; our actual host gate must still establish
28
- recursive discovery for this packaged bundle.
29
-
30
- An npm upgrade at the same global prefix replaces the bundle at the same path, including newly
31
- registered tool skills. Check its manifest/version and start a fresh host session after upgrade.
32
- A changed npm prefix needs reconnection. To disconnect, inspect `readlink .agents/skills/insight-toolbox`
33
- and remove only that owned symlink with `unlink .agents/skills/insight-toolbox`; preserve other
34
- entries and the package. No copied skills, per-tool installer or second agent configuration
35
- store is maintained. Other hosts may register this ordinary bundle through their own mechanism;
36
- Codex is the first concrete supported-host gate.
37
-
38
- ## Execution access
39
-
40
- A skill link does not grant filesystem or IPC permissions. Run
41
- `insight-cli --profile <name> storage show --json` through the selected executable to inspect
42
- the assigned profile. Its `appData` is the profile directory, not the whole application control root.
43
- Allow that directory and the shared metadata in its parent: `profiles.json` for profile discovery
44
- and `.analysis-storage-default.json` for installation defaults. Permit parent traversal and the
45
- metadata's owned lock/temporary entries when configuration writes need them; keep unrelated
46
- profile directories outside the grant. Also allow the effective analysis `directory`, which may be elsewhere after
47
- storage configuration, migration or installation-default selection. Follow the
48
- [storage workflow](storage.md) for retained compatibility paths. Also allow the CLI's `.runtime`
49
- directory and exact local IPC endpoint. On macOS the application root is
50
- `~/Library/Application Support/insight-cli`; its Unix socket is `.runtime/host.sock`.
51
- Keep unrelated profiles outside the write scope and pass the assigned `--profile` explicitly.
52
- Do not grant broad external network access merely to reach a local socket.
53
-
54
- An inaccessible profile means readiness is unknown. Inspect access failures; stopping a shared
55
- owner does not grant access to it. A successful metadata call or filesystem grant alone does not
56
- show that research commands will work.
57
-
58
- The project bundle is a symlink. A plain `find` does not follow it and can misleadingly
59
- show no files. Use the host skill inventory, a named `.../<skill>/SKILL.md` path, or
60
- `insight-cli skill <name>` to check availability; `find -L` follows the link if needed.
@@ -1,32 +0,0 @@
1
- # Exchange private documentation with an archive
2
-
3
- Archive exchange is disabled until the selected Factory profile has an explicit `archiveUrl`.
4
- Use HTTPS for a remote service; local HTTP is supported for local services. URLs cannot contain
5
- credentials, query parameters or fragments. An optional bearer token is stored with
6
- `auth login --role archive --password-stdin`; it is a Factory secret and is never passed to
7
- Ghidra or the debuggee. `auth logout` clears this token as well as external server credentials.
8
-
9
- Use `ghidra archive ingest-function --address <entry>` or `ingest-program`, with the usual
10
- `--session` and `--target`. Both export the selected private view. `--version-label` supplies
11
- the archive version; its default is `unknown`. Internal project directories are not used as
12
- version labels. Bulk selection skips default function names unless `--include-default-named`
13
- is set; `--limit` bounds visited functions. Zero selects all, subject to the documented bound.
14
- `--dry-run` validates payloads and returns would-be counts without a network request.
15
-
16
- The service contract is `POST <archiveUrl>/v1/doc_archive/upsert` with JSON and an optional
17
- `Authorization: Bearer ...` header. The payload matches the pinned GhidraMCP builder: binary
18
- name, explicit version, function address, run/tool identity, name/prototype, calling convention,
19
- flags, matching hash/shape metadata, tags, named locals and instruction comments when present.
20
- The binary name is the logical target name. Each successful JSON response must contain a
21
- boolean `created` and a nonnegative integer `conflicts_enqueued`. Redirects are refused.
22
-
23
- Results retain created, updated, conflict, skipped and error counts. Archive conflict counts
24
- describe the external service's decisions; they do not resolve program merge conflicts.
25
- Use an optional stable `--request-id` when a response might be lost. A repeated ID returns
26
- the saved successful result or the retained uncertain outcome, without sending again.
27
- Each outbound payload identity and the source snapshot are retained before dispatch. Unknown
28
- external outcomes stay observable and do not block unrelated private research. A new request ID
29
- expresses another explicit submission; the facade does not assume the service can deduplicate it.
30
-
31
- Archive requests do not publish the program or alter another session. Developing or deploying
32
- the external archive service is outside this package; acceptance uses an owned contract fixture.
@@ -1,52 +0,0 @@
1
- # Save ordinary research materials
2
-
3
- `insight-cli artifacts save <path> --json` saves a file or a settled directory tree in
4
- the selected profile's [analysis storage](storage.md), which defaults to AppData. It needs Factory Update permission and does not require
5
- Ghidra, Java, authentication, target/session selectors or evidence metadata. Relative input
6
- paths resolve against the caller's working directory. Use `--help` for generated syntax.
7
-
8
- Save existing project files in their existing format; no `notes.md`, `finding.md` or
9
- `research/` layout is required. The saved copy is a checkpoint and does not replace the
10
- project's canonical evidence location or its source-of-truth rules.
11
-
12
- Write notes and useful external-tool outputs as ordinary files while investigating. When
13
- the selected files are no longer being edited, save one file, a completed worker subfolder
14
- or the relevant project folder. For a project without a prescribed layout, for example:
15
-
16
- ```sh
17
- insight-cli artifacts save ./research --json
18
- ```
19
-
20
- The receipt has `state: "saved"`, `path`, `kind` (`file` or `directory`), `files`, `bytes`
21
- and `sha256`. `path` points to an ordinary browsable copy with the source basename and
22
- relative layout. Empty files and empty directories are retained. File count counts regular
23
- files; byte count counts their contents. A file's SHA-256 hashes its bytes; a directory's
24
- SHA-256 hashes its canonical manifest of relative paths, kinds, file lengths and hashes.
25
- The manifest is stored beside the content, outside the returned directory.
26
-
27
- Before claiming a verified checkpoint, read the expected files at the returned `path` using
28
- ordinary file tools. Preserve that path verbatim in the handoff, alongside the receipt;
29
- profile and snapshot identifiers must not be reconstructed from memory. If access is denied,
30
- retain the actual receipt and state that readback remains unverified.
31
-
32
- The service copies and syncs data before publishing the completed snapshot. Failure does
33
- not return a successful receipt or expose a partial completed snapshot. Source edits made
34
- after a successful save do not change the copy. Treat saved copies as retained snapshots;
35
- edit the original research folder and save a new copy for another checkpoint. Each call
36
- creates a new saved copy, including a repeated call after a lost response.
37
-
38
- Keep a directory stable for the save: detected concurrent edits are rejected. Copying
39
- several files is not an atomic filesystem snapshot of a directory that other agents keep
40
- changing. Symbolic links and special files are rejected rather than followed or silently
41
- omitted. Select the actual intended regular file/directory. Do not save a directory that
42
- contains the destination materials store. Traversal supports at most 100,000 entries and
43
- 128 levels to bound inventory memory and recursion. Disk/permission failures return nonzero.
44
-
45
- The saved bytes establish what was retained. Commands, tool versions and interpretations
46
- written in a note remain the author's statements, not execution attestations. No upload,
47
- tool execution or Ghidra publication is performed by saving materials.
48
-
49
- Profile deletion/configuration invalidation is blocked while retained materials exist,
50
- as with retained research work. Close tool contexts normally; preserve snapshots separately
51
- if retiring a profile. There is no automatic registration, cleanup policy, graph database
52
- or additional read API: read the receipt's path with normal file tools.
@@ -1,64 +0,0 @@
1
- # Debug an input in its private context
2
-
3
- Use the same `--session` and `--target` as static research. `debugger launch-offers` lists
4
- available launchers and starts the owned GUI services when needed. `debugger launch` executes a
5
- verified copy of the selected immutable input in an owned run directory. It accepts `--offer`,
6
- `--args`, `--cwd`, a bounded launch timeout and the optional request ID. A second live process
7
- uses another session; it does not replace this context's current process.
8
-
9
- For local macOS `lldb`, `--stop-at-entry` launches stopped before normal program startup.
10
- The response verifies a live `STOPPED` target and reports `stoppedAtEntry: true`. This is
11
- useful for short programs: inspect/map/set breakpoints, then explicitly resume. Without the
12
- flag, the existing immediate-run behavior is unchanged. Other offers reject this flag before
13
- a CPU intent is reserved. An unknown stopped launch still requires ordinary request recovery.
14
-
15
- Read `debugger status`, `modules`, `registers`, `stack-trace` and `traces`. Address conversion
16
- uses `static-to-dynamic` and `dynamic-to-static`; memory and breakpoint commands take dynamic
17
- addresses. Lists are paged. Read results identify the logical context and current trace, and
18
- report whether the trace is connected or retained after disconnection. `--trace` selects a
19
- saved trace within this context; IDs from another context are rejected.
20
-
21
- Changing commands include interrupt, resume, step into/over/out and breakpoint set/remove.
22
- Their optional request ID retrieves the recorded result without executing again. A genuinely
23
- unknown CPU action remains uncertain; a later program counter alone does not prove how many
24
- instructions executed. Read-only observation remains available for uncertain debugger actions.
25
- Program merge does not roll back execution, debugger I/O or other process side effects.
26
-
27
- Trace databases are checkpointed separately from the private program and verified by independent
28
- packed-database readback before acknowledgment. Reopening after process replacement restores
29
- saved trace data as disconnected. It does not restart the debuggee or reconstruct CPU execution.
30
- Ordinary static program edits remain private and retain the usual merge/refresh behavior.
31
- Static breakpoint bookmarks created by debugger actions also count as pending program changes.
32
- They follow native merge/refresh and its conflict handling; CPU execution does not
33
- wait for publication, and publishing a program never resumes another session's process.
34
-
35
- On macOS, launch enforces the selected working directory, including paths with spaces and
36
- quotes. A GUI backend crash ends the owned live debuggee through its debugger controller.
37
- Verified trace data retained before a lost action response is adopted on disconnected continuation,
38
- unless a later observation already saved a newer view. The CPU action itself remains uncertain.
39
-
40
- On macOS 15+ ARM64, GUI uses the private LLDB/Python dependency described in
41
- [managed runtime](managed-runtime.md#managed-debugger-dependency). Other macOS routes use a
42
- compatible local LLDB and Python; select an executable supported by that host. GUI startup
43
- prepares the Python wheels already supplied with Ghidra in owned storage; it does not install
44
- packages into system Python. System-backend Python overrides and the Windows debugger
45
- directory are Factory profile settings.
46
-
47
- Use generated help for exact flags. A retained static breakpoint bookmark may remain after its live trace placement is
48
- removed; `trace_location_count` distinguishes current placements from that static metadata.
49
-
50
- For a call observation, set the mapped function breakpoint **before** resuming from entry.
51
- After the stop, check the PC against that address, then capture arguments and stack before
52
- stepping. Step-out verifies return to the native caller in the same thread and stack;
53
- return registers are observed without being modified. A competing stop or unavailable caller
54
- does not count as a verified return. A requested step whose reply
55
- or observed completion is unknown remains journaled; do not issue another CPU action to
56
- try to recover a missing return. Retain its diagnostics and use request/status recovery.
57
-
58
- For another intentional run, close and reopen the same owned context first: this disconnects
59
- and retains the previous trace without relaunching it. Then launch with a distinct request ID
60
- and desired arguments. A connected debugger remains busy even after its subject has exited;
61
- selecting or reading its old trace is not a request to execute the subject again.
62
- Map the new process and explicitly set/check its live breakpoints before each resume from
63
- entry. Old static bookmarks do not establish new trace placements. Reopening restores each
64
- trace's saved snap/thread, including inactive traces; choose its returned ID with `--trace`.
@@ -1,125 +0,0 @@
1
- # Managed extensions and synchronization
2
-
3
- `insight-cli` keeps targets/sessions above tools. Both features below belong to the Ghidra
4
- context/runtime selected by the existing profile; they introduce no new agent/session objects.
5
- The Factory API uses the same command paths and options as these CLI examples.
6
-
7
- ## Consume a ready-built SDK extension
8
-
9
- Use an unpacked standard Ghidra 12.1.2 extension module, with `Module.manifest` and
10
- `extension.properties` at its root. Directory basename and property `name` must agree.
11
- The module can contain compiled `lib/*.jar`, `data/languages` (including compiled Sleigh `.sla`,
12
- `.ldefs`, `.pspec`, `.cspec`) and `ghidra_scripts`. Build the extension with its own upstream
13
- SDK build before consumption. ZIP acquisition/extraction, dependency resolution, building a
14
- third-party extension and publishing extensions are outside this local management contract.
15
-
16
- ```sh
17
- insight-cli ghidra extensions inspect --directory ./MyExtension --json
18
- insight-cli ghidra extensions install --directory ./MyExtension --sha256 <content-sha256> --json
19
- insight-cli ghidra extensions list --json
20
- ```
21
-
22
- Inspect computes the content identity without executing extension code. Install requires the
23
- `Destructive` permission, consumes all regular files into profile storage and verifies the
24
- copy. It never edits the installed SDK or depends on the original directory after consumption.
25
- The identity covers sorted relative paths, SHA256 and size for every file; it is not a ZIP hash.
26
- Symlinks/special files, hidden/traversing paths and incompatible version metadata reject.
27
- Limits: 32 modules/profile, 8192 files and 256 MiB/module, 16 path components.
28
- A name stays pinned to one content identity; different builds use different module names or profiles.
29
-
30
- ```sh
31
- insight-cli ghidra extensions disable --name MyExtension --json
32
- insight-cli ghidra extensions enable --name MyExtension --json
33
- ```
34
-
35
- Stop the Factory IPC owner after changing the enabled set, then run the next ordinary command.
36
- A running owner refuses changed runtime configuration. Immutable module copies remain retained
37
- when disabled, so saved contexts can resume with their original language/type dependencies after
38
- re-enabling. Existing private work and unknown request/publication journals are preserved.
39
- Disabling the language required by a saved program does not convert that program to another language.
40
- Enablement/install are desired-state/content operations; repeating the same input is idempotent.
41
- No automatic extension updates or network/package-manager installation occur.
42
-
43
- Discover what the installed SDK actually provides:
44
-
45
- ```sh
46
- insight-cli ghidra extensions capabilities --kind languages --filter MyProcessor --json
47
- insight-cli ghidra extensions capabilities --kind analyzers --filter MyExtension --json
48
- insight-cli ghidra extensions capabilities --kind plugins --filter MyExtension --json
49
- ```
50
-
51
- These paged inventories return actual native IDs (and compiler IDs for languages); `managed`
52
- on analyzer/plugin classes identifies consumed modules. Select a language/compiler using
53
- `ghidra open --language <id> --compiler-spec <id>`. Use `analysis configure-analyzer --name <name>
54
- --enabled true` and `analysis reanalyze` in an explicit context. Program writes remain complex
55
- private changes and follow the existing saved-state verification/merge rules.
56
- Extension scripts have explicit inventory IDs such as `extension:MyExtension/Example.java`;
57
- run that ID through `scripts run`, never guess a process-global search path.
58
-
59
- For a GUI plugin, use `ghidra plugins set --plugin <class-id> --enabled true|false` with
60
- `--session` and `--target`. `plugins list` returns enabled managed plugins in that owned GUI tool.
61
- Only classes from enabled managed modules can be toggled. Enablement is read back immediately;
62
- its lifetime is the current GUI tool, rather than a promise to resurrect it after a crash.
63
- Plugin constructors/disposal may change program state: the operation saves a private snapshot
64
- and conservatively records a complex change. An uncertain effect is never replayed; close the
65
- owned context when its live effect cannot be established. Configuration dialogs, arbitrary
66
- plugin-specific option schemas, native libraries with platform installers and hot class unloading
67
- are not promised by this module contract; the explicit script API remains available.
68
-
69
- Extension code runs with the OS privileges of the owned JVM. Digest pinning establishes which
70
- code runs, not a security sandbox or a guarantee of third-party compatibility. Workers, GUI,
71
- inspection and publication helpers use the same verified enabled set. The storage-only local
72
- Ghidra Server continues to use the pinned base SDK and does not run managed analysis plugins.
73
-
74
- ## Optional synchronization for one context
75
-
76
- The default remains explicit `merge` and `refresh`. Reads keep the private view. Configure an
77
- existing `(session, target, ghidra)` context explicitly:
78
-
79
- ```sh
80
- insight-cli ghidra sync-policy get --session s_a --target t_exe --json
81
- insight-cli ghidra sync-policy set --session s_a --target t_exe \
82
- --publish after-edit --refresh before-edit --json
83
- ```
84
-
85
- | Setting | Behavior |
86
- | --- | --- |
87
- | `--publish manual` | Local edits and saves do not publish automatically. |
88
- | `--publish after-edit` | After a supported program edit has a verified saved acknowledgment, merge all pending work in that context. Also publishes pending work on explicit `ghidra save`. |
89
- | `--publish after-save` | Ordinary edits stay private; explicit scoped `ghidra save` merges all pending work after saving. |
90
- | `--refresh manual` | No automatic incoming update. |
91
- | `--refresh before-edit` | Refresh before a program-edit command. A native conflict receives no incoming changes, retains the original checkout and base, and stops the edit before dispatch. A successful refresh remains saved if the later edit fails. |
92
-
93
- Supported program-edit commands include ordinary names/comments, types, bytes/assembly,
94
- analysis and scripts. Policy excludes control commands (`open`, `close`, `merge`, `refresh`,
95
- policy/discard), cross-target transfer, GUI/debugger, archive/project/server operations, file
96
- exports, library databases and Version Tracking. Session-wide `save-all` saves privately;
97
- use scoped `save` for automatic publication. Read-only queries never trigger refresh/publication.
98
- Automatic refresh/publication also requires the current Factory `Update` permission, including
99
- when the edit itself is gated by `Destructive`. Revocation prevents starting those automatic
100
- effects; retrieval of a completed workflow does not repeat them. No background timers, watchers
101
- or automatic semantic conflict resolution are introduced.
102
-
103
- A successful automatic edit includes its normal local result plus `automatic.refresh` and/or
104
- `automatic.publication`, final `pendingChanges` and `sharedState`. After a publication conflict,
105
- the command fails with `state: conflict`, `localApplied: true` and the retained `local` result.
106
- Nothing from that merge is published. An incoming conflict reports `phase: refresh` and
107
- `localApplied: false`; the requested edit was not started. Lost local replies may report
108
- `localOutcome: unknown`; they do not falsely assert that the local effect failed.
109
-
110
- Automatic merge follows the manual native workflow. Ghidra Update combines local and incoming
111
- analysis using checkout ancestry and native change sets, including structural edits. A native
112
- conflict prevents publication and retains the original checkout and base. Inspect scoped status
113
- and the native conflict details before choosing a deliberate resolution. A failed automatic
114
- workflow does not silently retry after resolution; use a new request or explicit merge for the
115
- new intention.
116
-
117
- Policy survives owner replacement. Optional request IDs (up to 128 characters) bind the local edit, incoming refresh and publication workflow. Repeating the same ID/input
118
- retrieves its result or reconciles the original publication; it never replays a check-in or
119
- uncertain script. The original workflow keeps its original policy even if policy changes later.
120
- Retrying an earlier manual edit does not retroactively publish it after enabling automatic mode.
121
- Without a request ID, a call is a new intention, as elsewhere in the facade.
122
-
123
- The caller ID reserves the complete automatic workflow in the common profile namespace, even
124
- when incoming conflicts prevent the local command from starting. It cannot be reused by an
125
- explicit merge, close, export or administration operation. Internal child effects have derived IDs.