@eyeauras/insight-cli 0.2.0 → 0.2.2

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 (387) hide show
  1. package/.cli-package-build.json +1 -1
  2. package/README.md +25 -0
  3. package/SKILL.md +38 -54
  4. package/dist/src/binary.d.ts +3 -0
  5. package/dist/src/binary.js +74 -0
  6. package/dist/src/capture.d.ts +3 -0
  7. package/dist/src/capture.js +220 -0
  8. package/dist/src/cli.js +57 -12
  9. package/dist/src/contexts.d.ts +5 -0
  10. package/dist/src/contexts.js +42 -16
  11. package/dist/src/debugger-caller.d.ts +17 -0
  12. package/dist/src/debugger-caller.js +129 -0
  13. package/dist/src/debugger-launch.d.ts +2 -0
  14. package/dist/src/debugger-launch.js +17 -0
  15. package/dist/src/debugger-results.d.ts +1 -0
  16. package/dist/src/debugger-results.js +8 -0
  17. package/dist/src/debugger-supervisor.js +56 -13
  18. package/dist/src/debugger.js +16 -7
  19. package/dist/src/die.d.ts +12 -0
  20. package/dist/src/die.js +127 -0
  21. package/dist/src/dnspy-runtime.d.ts +8 -0
  22. package/dist/src/dnspy-runtime.js +46 -0
  23. package/dist/src/dnspy.d.ts +22 -0
  24. package/dist/src/dnspy.js +160 -0
  25. package/dist/src/dotnet-diagnostics.d.ts +13 -0
  26. package/dist/src/dotnet-diagnostics.js +101 -0
  27. package/dist/src/frida-worker.d.ts +1 -0
  28. package/dist/src/frida-worker.js +125 -0
  29. package/dist/src/frida.d.ts +16 -0
  30. package/dist/src/frida.js +125 -0
  31. package/dist/src/ghidra-debugger-runtime.d.ts +7 -0
  32. package/dist/src/ghidra-debugger-runtime.js +31 -0
  33. package/dist/src/ghidra-processes.d.ts +6 -0
  34. package/dist/src/ghidra-processes.js +121 -0
  35. package/dist/src/ghidra.js +6 -6
  36. package/dist/src/ilspy.d.ts +7 -0
  37. package/dist/src/ilspy.js +122 -0
  38. package/dist/src/lldb.d.ts +10 -0
  39. package/dist/src/lldb.js +99 -0
  40. package/dist/src/llvm.d.ts +6 -0
  41. package/dist/src/llvm.js +133 -0
  42. package/dist/src/managed-heap.d.ts +4 -0
  43. package/dist/src/managed-heap.js +73 -0
  44. package/dist/src/managed-metadata.d.ts +11 -0
  45. package/dist/src/managed-metadata.js +66 -0
  46. package/dist/src/mitmproxy.d.ts +55 -0
  47. package/dist/src/mitmproxy.js +172 -0
  48. package/dist/src/native-inputs.d.ts +3 -2
  49. package/dist/src/native-inputs.js +9 -4
  50. package/dist/src/package-version.d.ts +1 -0
  51. package/dist/src/package-version.js +3 -0
  52. package/dist/src/procmon-config.d.ts +2 -0
  53. package/dist/src/procmon-config.js +15 -0
  54. package/dist/src/procmon-events.d.ts +13 -0
  55. package/dist/src/procmon-events.js +82 -0
  56. package/dist/src/procmon.d.ts +4 -0
  57. package/dist/src/procmon.js +107 -0
  58. package/dist/src/research.d.ts +11 -2
  59. package/dist/src/research.js +5 -3
  60. package/dist/src/runtime-catalog.d.ts +5 -10
  61. package/dist/src/runtime-catalog.js +4 -5
  62. package/dist/src/runtime-manager.d.ts +27 -3
  63. package/dist/src/runtime-manager.js +100 -159
  64. package/dist/src/runtime-selection.js +21 -4
  65. package/dist/src/server.d.ts +13 -0
  66. package/dist/src/server.js +21 -45
  67. package/dist/src/sevenzip.d.ts +15 -0
  68. package/dist/src/sevenzip.js +119 -0
  69. package/dist/src/strace.d.ts +10 -0
  70. package/dist/src/strace.js +71 -0
  71. package/dist/src/text-window.d.ts +11 -0
  72. package/dist/src/text-window.js +6 -0
  73. package/dist/src/tool-runtime/archives.d.ts +10 -0
  74. package/dist/src/{runtime-archives.js → tool-runtime/archives.js} +91 -24
  75. package/dist/src/tool-runtime/catalog.d.ts +3 -0
  76. package/dist/src/tool-runtime/catalog.js +13 -0
  77. package/dist/src/tool-runtime/commands.d.ts +9 -0
  78. package/dist/src/tool-runtime/commands.js +39 -0
  79. package/dist/src/tool-runtime/deadline.d.ts +11 -0
  80. package/dist/src/tool-runtime/deadline.js +32 -0
  81. package/dist/src/tool-runtime/definition.d.ts +73 -0
  82. package/dist/src/tool-runtime/definition.js +49 -0
  83. package/dist/src/tool-runtime/dotnet.d.ts +4 -0
  84. package/dist/src/tool-runtime/dotnet.js +22 -0
  85. package/dist/src/tool-runtime/identity.d.ts +6 -0
  86. package/dist/src/tool-runtime/identity.js +50 -0
  87. package/dist/src/tool-runtime/installer.d.ts +101 -0
  88. package/dist/src/tool-runtime/installer.js +180 -0
  89. package/dist/src/tool-runtime/java-arguments.d.ts +6 -0
  90. package/dist/src/tool-runtime/java-arguments.js +44 -0
  91. package/dist/src/tool-runtime/launch-worker.d.ts +1 -0
  92. package/dist/src/tool-runtime/launch-worker.js +58 -0
  93. package/dist/src/tool-runtime/run.d.ts +51 -0
  94. package/dist/src/tool-runtime/run.js +159 -0
  95. package/dist/src/tool-runtime/store.d.ts +15 -0
  96. package/dist/src/tool-runtime/store.js +219 -0
  97. package/dist/src/tool-runtime/supervisor.d.ts +57 -0
  98. package/dist/src/tool-runtime/supervisor.js +269 -0
  99. package/dist/src/tool-runtime/windows-job.d.ts +22 -0
  100. package/dist/src/tool-runtime/windows-job.js +43 -0
  101. package/dist/src/toolbox.d.ts +84 -0
  102. package/dist/src/toolbox.js +35 -0
  103. package/dist/src/tshark.d.ts +23 -0
  104. package/dist/src/tshark.js +174 -0
  105. package/dist/src/windbg.d.ts +14 -0
  106. package/dist/src/windbg.js +119 -0
  107. package/dist/src/workspace.d.ts +1 -0
  108. package/dist/src/workspace.js +6 -0
  109. package/package.json +5 -4
  110. package/references/agent-execution.md +36 -0
  111. package/references/agent-setup.md +61 -0
  112. package/references/artifacts.md +5 -0
  113. package/references/debugger.md +22 -0
  114. package/references/ilspy.md +33 -0
  115. package/references/managed-runtime.md +53 -7
  116. package/references/native/InsightPythonWheels.java +283 -2
  117. package/references/native/InsightTraceState.java +28 -13
  118. package/references/native-workflows.md +10 -0
  119. package/references/setup.md +2 -1
  120. package/runtime/managed/insight-heap/Azure.Core.dll +0 -0
  121. package/runtime/managed/insight-heap/Azure.Identity.dll +0 -0
  122. package/runtime/managed/insight-heap/Insight.Heap.csproj +1 -0
  123. package/runtime/managed/insight-heap/Insight.Heap.deps.json +391 -0
  124. package/runtime/managed/insight-heap/Insight.Heap.dll +0 -0
  125. package/runtime/managed/insight-heap/Insight.Heap.runtimeconfig.json +13 -0
  126. package/runtime/managed/insight-heap/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
  127. package/runtime/managed/insight-heap/Microsoft.Diagnostics.NETCore.Client.dll +0 -0
  128. package/runtime/managed/insight-heap/Microsoft.Diagnostics.Runtime.dll +0 -0
  129. package/runtime/managed/insight-heap/Microsoft.Extensions.Configuration.Abstractions.dll +0 -0
  130. package/runtime/managed/insight-heap/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
  131. package/runtime/managed/insight-heap/Microsoft.Extensions.Diagnostics.Abstractions.dll +0 -0
  132. package/runtime/managed/insight-heap/Microsoft.Extensions.FileProviders.Abstractions.dll +0 -0
  133. package/runtime/managed/insight-heap/Microsoft.Extensions.Hosting.Abstractions.dll +0 -0
  134. package/runtime/managed/insight-heap/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
  135. package/runtime/managed/insight-heap/Microsoft.Extensions.Options.dll +0 -0
  136. package/runtime/managed/insight-heap/Microsoft.Extensions.Primitives.dll +0 -0
  137. package/runtime/managed/insight-heap/Microsoft.Identity.Client.Extensions.Msal.dll +0 -0
  138. package/runtime/managed/insight-heap/Microsoft.Identity.Client.dll +0 -0
  139. package/runtime/managed/insight-heap/Microsoft.IdentityModel.Abstractions.dll +0 -0
  140. package/runtime/managed/insight-heap/Microsoft.Security.AntiSSRF.dll +0 -0
  141. package/runtime/managed/insight-heap/NuGet.Config +1 -0
  142. package/runtime/managed/insight-heap/Program.cs +20 -0
  143. package/runtime/managed/insight-heap/README.md +16 -0
  144. package/runtime/managed/insight-heap/System.ClientModel.dll +0 -0
  145. package/runtime/managed/insight-heap/System.Memory.Data.dll +0 -0
  146. package/runtime/managed/insight-heap/System.Security.Cryptography.ProtectedData.dll +0 -0
  147. package/runtime/managed/insight-heap/dependencies.json +436 -0
  148. package/runtime/managed/insight-heap/notices/Azure.Core-LICENSE.txt +21 -0
  149. package/runtime/managed/insight-heap/notices/Azure.Identity-LICENSE.txt +21 -0
  150. package/runtime/managed/insight-heap/notices/Microsoft.Bcl.AsyncInterfaces-LICENSE.txt +23 -0
  151. package/runtime/managed/insight-heap/notices/Microsoft.Bcl.AsyncInterfaces-THIRD-PARTY-NOTICES.TXT +1418 -0
  152. package/runtime/managed/insight-heap/notices/Microsoft.Diagnostics.NETCore.Client-LICENSE.txt +23 -0
  153. package/runtime/managed/insight-heap/notices/Microsoft.Diagnostics.Runtime-LICENSE.txt +23 -0
  154. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Configuration.Abstractions-LICENSE.txt +23 -0
  155. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Configuration.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
  156. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.DependencyInjection.Abstractions-LICENSE.txt +23 -0
  157. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.DependencyInjection.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
  158. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Diagnostics.Abstractions-LICENSE.txt +23 -0
  159. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Diagnostics.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
  160. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.FileProviders.Abstractions-LICENSE.txt +23 -0
  161. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.FileProviders.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
  162. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Hosting.Abstractions-LICENSE.txt +23 -0
  163. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Hosting.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
  164. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Logging.Abstractions-LICENSE.txt +23 -0
  165. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Logging.Abstractions-THIRD-PARTY-NOTICES.TXT +1418 -0
  166. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Options-LICENSE.txt +23 -0
  167. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Options-THIRD-PARTY-NOTICES.TXT +1418 -0
  168. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Primitives-LICENSE.txt +23 -0
  169. package/runtime/managed/insight-heap/notices/Microsoft.Extensions.Primitives-THIRD-PARTY-NOTICES.TXT +1418 -0
  170. package/runtime/managed/insight-heap/notices/Microsoft.Identity.Client-LICENSE.txt +21 -0
  171. package/runtime/managed/insight-heap/notices/Microsoft.Identity.Client.Extensions.Msal-LICENSE.txt +21 -0
  172. package/runtime/managed/insight-heap/notices/Microsoft.IdentityModel.Abstractions-LICENSE.txt +21 -0
  173. package/runtime/managed/insight-heap/notices/Microsoft.Security.AntiSSRF-LICENSE.txt +21 -0
  174. package/runtime/managed/insight-heap/notices/System.ClientModel-LICENSE.txt +21 -0
  175. package/runtime/managed/insight-heap/notices/System.Memory.Data-LICENSE.txt +23 -0
  176. package/runtime/managed/insight-heap/notices/System.Memory.Data-THIRD-PARTY-NOTICES.TXT +1418 -0
  177. package/runtime/managed/insight-heap/notices/System.Security.Cryptography.ProtectedData-LICENSE.TXT +23 -0
  178. package/runtime/managed/insight-heap/notices/System.Security.Cryptography.ProtectedData-THIRD-PARTY-NOTICES.TXT +309 -0
  179. package/runtime/managed/insight-heap/packages.lock.json +165 -0
  180. package/runtime/managed/insight-heap/provenance.json +146 -0
  181. package/runtime/managed/insight-heap/runtimes/win/lib/netstandard2.0/System.Security.Cryptography.ProtectedData.dll +0 -0
  182. package/runtime/managed/insight-managed/Insight.Managed.csproj +4 -0
  183. package/runtime/managed/insight-managed/Insight.Managed.deps.json +41 -0
  184. package/runtime/managed/insight-managed/Insight.Managed.dll +0 -0
  185. package/runtime/managed/insight-managed/Insight.Managed.runtimeconfig.json +13 -0
  186. package/runtime/managed/insight-managed/LICENSE.dnlib.txt +20 -0
  187. package/runtime/managed/insight-managed/NuGet.Config +1 -0
  188. package/runtime/managed/insight-managed/Program.cs +31 -0
  189. package/runtime/managed/insight-managed/README.md +16 -0
  190. package/runtime/managed/insight-managed/dnlib.dll +0 -0
  191. package/runtime/managed/insight-managed/packages.lock.json +13 -0
  192. package/runtime/managed/insight-managed/provenance.json +40 -0
  193. package/runtime/native/binary/README.md +22 -0
  194. package/runtime/native/binary/dependencies.json +166 -0
  195. package/runtime/native/binary/helper.cpp +44 -0
  196. package/runtime/native/binary/insight-binary-darwin-arm64 +0 -0
  197. package/runtime/native/binary/notices/Catch2-3.12.0--Catch2-3.12.0__LICENSE.txt +23 -0
  198. package/runtime/native/binary/notices/LIEF-LICENSE.txt +202 -0
  199. package/runtime/native/binary/notices/LIEF-attribution.txt +37 -0
  200. package/runtime/native/binary/notices/Melkor_ELF_Fuzzer-ac2495b--elf_fuzzer-master__LICENSE.txt +674 -0
  201. package/runtime/native/binary/notices/expected-1.3.1--expected-1.3.1__COPYING +121 -0
  202. package/runtime/native/binary/notices/frozen-61dce5a--frozen-61dce5ae18ca59931e27675c468e64118aba8744__AUTHORS +3 -0
  203. package/runtime/native/binary/notices/frozen-61dce5a--frozen-61dce5ae18ca59931e27675c468e64118aba8744__LICENSE +202 -0
  204. package/runtime/native/binary/notices/json-LICENSE.MIT +21 -0
  205. package/runtime/native/binary/notices/mbedtls-4.0.0.r0.gec4044008d--LICENSE +553 -0
  206. package/runtime/native/binary/notices/mbedtls-4.0.0.r0.gec4044008d--framework__LICENSE +553 -0
  207. package/runtime/native/binary/notices/mbedtls-4.0.0.r0.gec4044008d--tf-psa-crypto__LICENSE +552 -0
  208. package/runtime/native/binary/notices/mbedtls-4.0.0.r0.gec4044008d--tf-psa-crypto__framework__LICENSE +553 -0
  209. package/runtime/native/binary/notices/nanobind-2.13.0.r18.g4db9ed3f--LICENSE +26 -0
  210. package/runtime/native/binary/notices/nanobind-2.13.0.r18.g4db9ed3f--ext__robin_map__LICENSE +21 -0
  211. package/runtime/native/binary/notices/span-LICENSE_1_0.txt +23 -0
  212. package/runtime/native/binary/notices/span-attribution.txt +11 -0
  213. package/runtime/native/binary/notices/spdlog-1.17.0--spdlog-1.17.0__LICENSE +25 -0
  214. package/runtime/native/binary/notices/utfcpp-4.0.9--utfcpp-4.0.9__LICENSE +23 -0
  215. package/runtime/native/binary/provenance.json +48 -0
  216. package/runtime/native/child-deadline-linux-x64 +0 -0
  217. package/runtime/native/child-deadline-linux.c +24 -0
  218. package/runtime/native/child-deadline-linux.provenance.json +17 -0
  219. package/runtime/native/deadline-alarm-darwin-universal.dylib +0 -0
  220. package/runtime/native/deadline-alarm.c +33 -0
  221. package/runtime/native/deadline-alarm.provenance.json +22 -0
  222. package/runtime/native/deadline-exec-darwin-arm64 +0 -0
  223. package/runtime/native/deadline-exec.c +24 -0
  224. package/runtime/native/deadline-exec.provenance.json +17 -0
  225. package/runtime/native/dnspy-extension/Bridge.cs +58 -0
  226. package/runtime/native/dnspy-extension/Insight.DnSpy.csproj +13 -0
  227. package/runtime/native/dnspy-extension/Insight.DnSpy.x.dll +0 -0
  228. package/runtime/native/dnspy-extension/NuGet.Config +1 -0
  229. package/runtime/native/dnspy-extension/UNICODE-LOADER.md +26 -0
  230. package/runtime/native/dnspy-extension/packages.lock.json +6 -0
  231. package/runtime/native/dnspy-extension/provenance.json +27 -0
  232. package/runtime/native/dnspy-extension/upstream-public-build.snk +0 -0
  233. package/runtime/native/dnspy-extension/vendor-files.json +4341 -0
  234. package/runtime/native/file-version.ps1 +7 -0
  235. package/runtime/native/insight-registry-win-x64.dll +0 -0
  236. package/runtime/native/mitmproxy/bridge.py +180 -0
  237. package/runtime/native/mitmproxy/notices.json +476 -0
  238. package/runtime/native/sources/detours-LICENSE.md +23 -0
  239. package/runtime/native/sources/detours-e4bfd6b.tar.gz +0 -0
  240. package/runtime/native/sources/detours-provenance.json +10 -0
  241. package/runtime/native/tshark-layout.json +2247 -0
  242. package/runtime/native/windows-job/DirectoryAlias.cs +24 -0
  243. package/runtime/native/windows-job/Insight.WindowsJob.csproj +1 -0
  244. package/runtime/native/windows-job/Insight.WindowsJob.dll +0 -0
  245. package/runtime/native/windows-job/NuGet.Config +1 -0
  246. package/runtime/native/windows-job/OwnedJob.cs +79 -0
  247. package/runtime/native/windows-job/RegistryRedirect.cs +45 -0
  248. package/runtime/native/windows-job/packages.lock.json +21 -0
  249. package/runtime/native/windows-job/provenance.json +16 -0
  250. package/runtime/native/windows-job/windows-job.ps1 +8 -0
  251. package/runtime/native/windows-registry.c +21 -0
  252. package/runtime/native/windows-registry.def +3 -0
  253. package/runtime/native/windows-registry.provenance.json +14 -0
  254. package/runtime/notices/diagnostics-10.0.750501.txt +23 -0
  255. package/runtime/tool-catalog.json +290 -0
  256. package/runtime/toolbox.json +1401 -0
  257. package/skill-bundle/insight-artifacts/SKILL.md +30 -0
  258. package/skill-bundle/insight-artifacts/references/agent-execution.md +36 -0
  259. package/skill-bundle/insight-artifacts/references/artifacts.md +52 -0
  260. package/skill-bundle/insight-binary/SKILL.md +46 -0
  261. package/skill-bundle/insight-binary/references/agent-execution.md +36 -0
  262. package/skill-bundle/insight-capture/SKILL.md +56 -0
  263. package/skill-bundle/insight-capture/references/agent-execution.md +36 -0
  264. package/skill-bundle/insight-cli/SKILL.md +42 -0
  265. package/skill-bundle/insight-cli/references/agent-execution.md +36 -0
  266. package/skill-bundle/insight-cli/references/agent-setup.md +61 -0
  267. package/skill-bundle/insight-die/SKILL.md +49 -0
  268. package/skill-bundle/insight-die/references/agent-execution.md +36 -0
  269. package/skill-bundle/insight-dnspy/SKILL.md +65 -0
  270. package/skill-bundle/insight-dnspy/references/agent-execution.md +36 -0
  271. package/skill-bundle/insight-dotnet-dump/SKILL.md +46 -0
  272. package/skill-bundle/insight-dotnet-dump/references/agent-execution.md +36 -0
  273. package/skill-bundle/insight-dotnet-stack/SKILL.md +39 -0
  274. package/skill-bundle/insight-dotnet-stack/references/agent-execution.md +36 -0
  275. package/skill-bundle/insight-dotnet-trace/SKILL.md +45 -0
  276. package/skill-bundle/insight-dotnet-trace/references/agent-execution.md +36 -0
  277. package/skill-bundle/insight-frida/SKILL.md +67 -0
  278. package/skill-bundle/insight-frida/references/agent-execution.md +36 -0
  279. package/skill-bundle/insight-ghidra/SKILL.md +91 -0
  280. package/skill-bundle/insight-ghidra/references/administration.md +34 -0
  281. package/skill-bundle/insight-ghidra/references/agent-execution.md +36 -0
  282. package/skill-bundle/insight-ghidra/references/archive.md +32 -0
  283. package/skill-bundle/insight-ghidra/references/artifacts.md +52 -0
  284. package/skill-bundle/insight-ghidra/references/debugger.md +62 -0
  285. package/skill-bundle/insight-ghidra/references/extensions-and-sync.md +124 -0
  286. package/skill-bundle/insight-ghidra/references/managed-runtime.md +162 -0
  287. package/skill-bundle/insight-ghidra/references/native-workflows.md +122 -0
  288. package/skill-bundle/insight-ghidra/references/query-semantics.md +96 -0
  289. package/skill-bundle/insight-ghidra/references/recovery.md +53 -0
  290. package/skill-bundle/insight-ghidra/references/research.md +101 -0
  291. package/skill-bundle/insight-ghidra/references/setup.md +50 -0
  292. package/skill-bundle/insight-ilspy/SKILL.md +45 -0
  293. package/skill-bundle/insight-ilspy/references/agent-execution.md +36 -0
  294. package/skill-bundle/insight-ilspy/references/ilspy.md +33 -0
  295. package/skill-bundle/insight-interop/SKILL.md +54 -0
  296. package/skill-bundle/insight-interop/references/agent-execution.md +36 -0
  297. package/skill-bundle/insight-lldb/SKILL.md +54 -0
  298. package/skill-bundle/insight-lldb/references/agent-execution.md +36 -0
  299. package/skill-bundle/insight-llvm/SKILL.md +56 -0
  300. package/skill-bundle/insight-llvm/references/agent-execution.md +36 -0
  301. package/skill-bundle/insight-managed-heap/SKILL.md +43 -0
  302. package/skill-bundle/insight-managed-heap/references/agent-execution.md +36 -0
  303. package/skill-bundle/insight-managed-metadata/SKILL.md +52 -0
  304. package/skill-bundle/insight-managed-metadata/references/agent-execution.md +36 -0
  305. package/skill-bundle/insight-mitmproxy/SKILL.md +62 -0
  306. package/skill-bundle/insight-mitmproxy/references/agent-execution.md +36 -0
  307. package/skill-bundle/insight-overview/SKILL.md +79 -0
  308. package/skill-bundle/insight-overview/references/agent-execution.md +36 -0
  309. package/skill-bundle/insight-procmon/SKILL.md +49 -0
  310. package/skill-bundle/insight-procmon/references/agent-execution.md +36 -0
  311. package/skill-bundle/insight-re/SKILL.md +121 -0
  312. package/skill-bundle/insight-re/references/agent-execution.md +36 -0
  313. package/skill-bundle/insight-re/references/artifacts.md +52 -0
  314. package/skill-bundle/insight-re/references/recovery.md +53 -0
  315. package/skill-bundle/insight-sevenzip/SKILL.md +42 -0
  316. package/skill-bundle/insight-sevenzip/references/agent-execution.md +36 -0
  317. package/skill-bundle/insight-strace/SKILL.md +46 -0
  318. package/skill-bundle/insight-strace/references/agent-execution.md +36 -0
  319. package/skill-bundle/insight-tshark/SKILL.md +49 -0
  320. package/skill-bundle/insight-tshark/references/agent-execution.md +36 -0
  321. package/skill-bundle/insight-windbg/SKILL.md +46 -0
  322. package/skill-bundle/insight-windbg/references/agent-execution.md +36 -0
  323. package/skill-bundle/manifest.json +32 -0
  324. package/skills/insight-artifacts/SKILL.md +30 -0
  325. package/skills/insight-artifacts/references/agent-execution.md +36 -0
  326. package/skills/insight-artifacts/references/artifacts.md +52 -0
  327. package/skills/insight-binary/SKILL.md +46 -0
  328. package/skills/insight-binary/references/agent-execution.md +36 -0
  329. package/skills/insight-capture/SKILL.md +56 -0
  330. package/skills/insight-capture/references/agent-execution.md +36 -0
  331. package/skills/insight-die/SKILL.md +49 -0
  332. package/skills/insight-die/references/agent-execution.md +36 -0
  333. package/skills/insight-dnspy/SKILL.md +65 -0
  334. package/skills/insight-dnspy/references/agent-execution.md +36 -0
  335. package/skills/insight-dotnet-dump/SKILL.md +46 -0
  336. package/skills/insight-dotnet-dump/references/agent-execution.md +36 -0
  337. package/skills/insight-dotnet-stack/SKILL.md +39 -0
  338. package/skills/insight-dotnet-stack/references/agent-execution.md +36 -0
  339. package/skills/insight-dotnet-trace/SKILL.md +45 -0
  340. package/skills/insight-dotnet-trace/references/agent-execution.md +36 -0
  341. package/skills/insight-frida/SKILL.md +67 -0
  342. package/skills/insight-frida/references/agent-execution.md +36 -0
  343. package/skills/insight-ghidra/SKILL.md +91 -0
  344. package/skills/insight-ghidra/references/administration.md +34 -0
  345. package/skills/insight-ghidra/references/agent-execution.md +36 -0
  346. package/skills/insight-ghidra/references/archive.md +32 -0
  347. package/skills/insight-ghidra/references/artifacts.md +52 -0
  348. package/skills/insight-ghidra/references/debugger.md +62 -0
  349. package/skills/insight-ghidra/references/extensions-and-sync.md +124 -0
  350. package/skills/insight-ghidra/references/managed-runtime.md +162 -0
  351. package/skills/insight-ghidra/references/native-workflows.md +122 -0
  352. package/skills/insight-ghidra/references/query-semantics.md +96 -0
  353. package/skills/insight-ghidra/references/recovery.md +53 -0
  354. package/skills/insight-ghidra/references/research.md +101 -0
  355. package/skills/insight-ghidra/references/setup.md +50 -0
  356. package/skills/insight-ilspy/SKILL.md +45 -0
  357. package/skills/insight-ilspy/references/agent-execution.md +36 -0
  358. package/skills/insight-ilspy/references/ilspy.md +33 -0
  359. package/skills/insight-interop/SKILL.md +54 -0
  360. package/skills/insight-interop/references/agent-execution.md +36 -0
  361. package/skills/insight-lldb/SKILL.md +54 -0
  362. package/skills/insight-lldb/references/agent-execution.md +36 -0
  363. package/skills/insight-llvm/SKILL.md +56 -0
  364. package/skills/insight-llvm/references/agent-execution.md +36 -0
  365. package/skills/insight-managed-heap/SKILL.md +43 -0
  366. package/skills/insight-managed-heap/references/agent-execution.md +36 -0
  367. package/skills/insight-managed-metadata/SKILL.md +52 -0
  368. package/skills/insight-managed-metadata/references/agent-execution.md +36 -0
  369. package/skills/insight-mitmproxy/SKILL.md +62 -0
  370. package/skills/insight-mitmproxy/references/agent-execution.md +36 -0
  371. package/skills/insight-overview/SKILL.md +79 -0
  372. package/skills/insight-overview/references/agent-execution.md +36 -0
  373. package/skills/insight-procmon/SKILL.md +49 -0
  374. package/skills/insight-procmon/references/agent-execution.md +36 -0
  375. package/skills/insight-re/SKILL.md +22 -9
  376. package/skills/insight-re/references/agent-execution.md +36 -0
  377. package/skills/insight-re/references/artifacts.md +52 -0
  378. package/skills/insight-re/references/recovery.md +53 -0
  379. package/skills/insight-sevenzip/SKILL.md +42 -0
  380. package/skills/insight-sevenzip/references/agent-execution.md +36 -0
  381. package/skills/insight-strace/SKILL.md +46 -0
  382. package/skills/insight-strace/references/agent-execution.md +36 -0
  383. package/skills/insight-tshark/SKILL.md +49 -0
  384. package/skills/insight-tshark/references/agent-execution.md +36 -0
  385. package/skills/insight-windbg/SKILL.md +46 -0
  386. package/skills/insight-windbg/references/agent-execution.md +36 -0
  387. package/dist/src/runtime-archives.d.ts +0 -5
@@ -0,0 +1,36 @@
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.
@@ -0,0 +1,67 @@
1
+ ---
2
+ name: insight-frida
3
+ description: Observe native call arguments/results or inspect runtime modules and exports in an explicitly selected authorized process with bounded Frida scripts. Use insight-cli frida to corroborate static findings with actual execution on macOS ARM64.
4
+ ---
5
+
6
+ # Insight Frida 0.2.2
7
+
8
+ If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
+ with the agent host's normal permission escalation, then use that route for later authorized
10
+ CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
+ retried through that route. Keep HOME, profile and owner state; see
12
+ [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
+ request/status recovery, never blind retry.
14
+
15
+ Follow existing project RE and evidence conventions. Frida instruments a running process;
16
+ choose an explicitly authorized PID. This facade owns the collector, while the target stays
17
+ with its original owner. Stopping the collector never signals that target.
18
+
19
+ 1. `insight-cli frida status --json` checks readiness. `frida install` obtains our pinned
20
+ Frida Node 17.24.0 bundle from GitHub Releases, including its NAPI-v8 binding, JavaScript
21
+ dependencies and full notices. It uses the CLI's Node runtime; Python is unnecessary.
22
+ Managed delivery requires macOS 14+ ARM64. `download`, `install --archive FILE --offline`,
23
+ `doctor` and `uninstall` use the shared lifecycle. An external compatible Node bundle can
24
+ be selected with `install --executable /path/to/frida/build/src/frida.js`; adjacent binding
25
+ and resolved runtime dependency families are fingerprinted and never deleted.
26
+ 2. `frida modules --pid PID --json` establishes runtime module names and load addresses.
27
+ `frida exports --pid PID --module NAME --json` narrows to one module. `--limit`/`--offset`
28
+ page records. Runtime pointers differ from static addresses under ASLR; establish module
29
+ and image correspondence before combining findings from Ghidra/LLVM with live evidence.
30
+ 3. Write a focused ordinary JavaScript file using the [Frida JavaScript API](https://frida.re/docs/javascript-api/).
31
+ For a known integer-valued exported function, an observation hook can be:
32
+
33
+ ```javascript
34
+ const at = Process.mainModule.getExportByName('quote_total');
35
+ Interceptor.attach(at, {
36
+ onEnter(args) { this.count = args[0].toInt32(); },
37
+ onLeave(value) { send({count: this.count, result: value.toInt32()}); }
38
+ });
39
+ ```
40
+
41
+ Match argument types, calling convention and module to the actual program. This example
42
+ is not a generic signature for every function. `frida observe --pid PID --script FILE
43
+ --duration-seconds 2 --output research/calls.json --json` captures the source bytes, loads
44
+ it, collects messages, requests unload and detaches. The output records the source hash,
45
+ runtime version, original PID/birth, native diagnostics and cleanup acknowledgment.
46
+ 4. Inspect `complete`, `state`, script errors and cleanup fields. Script errors or early
47
+ target detach produce partial evidence. No observed call does not prove absence. Ordinary
48
+ `send`/console/error messages and optional binary payloads are retained. `--limit`/`--offset`
49
+ page event messages; `--output` saves the full bounded envelope to a new ordinary file and
50
+ creates parents. Use `artifacts save` for a checkpoint when useful.
51
+ Both the response and saved envelope include `summary`: total protocol events and counts
52
+ of script send/error/log messages. A send message is not universally a call. Derive call
53
+ counts from the retained payload type selected by your hook; do not count runtime,
54
+ loaded or completed receipts as calls or estimate counts by reading a long event list.
55
+ 5. The observation window is 1–120 seconds; collector execution has a separate finite deadline
56
+ that survives owner loss. Native SDK helpers have their own inherited deadlines; status
57
+ remains `native_children_pending` and uninstall is blocked until they exit. Native output is bounded to 4 MiB and 10000 messages. Arbitrary
58
+ script patches or application side effects are not automatically rolled back by unload.
59
+ Avoid unnecessarily broad hooks and large payloads. `tools processes --tool frida --all`
60
+ shows owned collector history. A recovered live macOS PID may be unverified: wait for the
61
+ deadline and inspect retained evidence instead of replaying an injection blindly.
62
+
63
+ The pinned backend has a known attach failure on a bare C process without CoreFoundation;
64
+ our native probe reproduces it explicitly. A process already loading CoreFoundation worked.
65
+ Report the failure and choose a suitable debugger/fixture; do not silently load frameworks
66
+ into an unrelated process. macOS authorization/hardened targets can also prevent attach.
67
+ An imported PE is not a runnable local macOS process. Generated help owns exact syntax.
@@ -0,0 +1,36 @@
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.
@@ -0,0 +1,91 @@
1
+ ---
2
+ name: insight-ghidra
3
+ description: Inspect or edit native binaries with Ghidra through insight-cli; use isolated contexts, multi-agent merge/refresh, server, GUI or debugger workflows. Choose this for static native behavior and references, not C# recovery from managed IL.
4
+ ---
5
+
6
+ # Insight Ghidra 0.2.2
7
+
8
+ If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
+ with the agent host's normal permission escalation, then use that route for later authorized
10
+ CLI calls too. An explicit **no command was sent** denial is known undispatched and can be
11
+ retried through that route. Keep HOME, profile and owner state; see
12
+ [host execution permissions](references/agent-execution.md). A lost mutation reply needs
13
+ request/status recovery, never blind retry.
14
+
15
+ Ghidra operations can exceed the host execution tool's first wait. If it returns a running
16
+ session/cell ID, await that same execution with the host's wait/poll facility until terminal
17
+ status and read its stdout/stderr. An empty first chunk is not a lost CLI response. Do not
18
+ start another open or repeat a CPU mutation while the original command is still running.
19
+
20
+ Use `ghidra status` to inspect runtime readiness; `ghidra install` delivers the pinned runtime.
21
+ For static managed C#/IL research, locate `insight-cli skill insight-ilspy`.
22
+ For owned process inventory use `tools processes`; `stop` saves Ghidra contexts, while
23
+ `kill` explicitly interrupts verified owned work and preserves its journals.
24
+ For archives, external launchers, server lifecycle or removal, read [managed runtime](references/managed-runtime.md).
25
+
26
+ This skill and its executable helper are one npm package. Run `insight-cli skill insight-ghidra` to locate
27
+ these installed resources. Use generated `--help` for syntax; read the references as needed.
28
+ Follow applicable project RE rules for tools, source of truth, evidence layout and format;
29
+ this package's walkthroughs fill gaps rather than replacing those conventions.
30
+
31
+ For coordinating a reverse-engineering investigation with ordinary files, external tools
32
+ and multiple agents, locate the RE workflow with `insight-cli skill insight-re`. When a retained checkpoint is useful, save
33
+ a completed project file or folder with
34
+ `insight-cli artifacts save <path>`; [save semantics](references/artifacts.md) describe the
35
+ ordinary saved copy and its receipt. Neither operation requires a Ghidra installation.
36
+
37
+ 1. Select the configured runtime profile. Ordinary work uses a managed local server; an external
38
+ server is optional. See [setup](references/setup.md). Factory permissions authorize changes.
39
+ 2. Open the input with `ghidra open <input> --session new --json`. Retain the returned session and target.
40
+ Another agent chooses `new` independently; one session can open several inputs.
41
+ 3. Pass both `--session` and `--target` on research calls. Follow strings to xrefs and their
42
+ function addresses, then inspect/decompile. Decompilation defaults to a 16000-character
43
+ window; page with `--limit-chars`/`--offset-chars` and retain `textSha256`. Native
44
+ truncation remains explicit even at the end of the observed text. See [research](references/research.md).
45
+ 4. Rename functions or set/clear comments through ordinary commands. An `applied` result means
46
+ verified saved private work. Other sessions keep their own views; local edits remain unpublished in the default manual mode.
47
+ 5. By default, publish explicitly with `ghidra merge`; receive safe shared changes with `ghidra refresh`.
48
+ Resolve overlapping names/comments against an explicitly observed shared value. A conflict
49
+ prevents the whole selected merge and retains local work.
50
+ 6. Continue with `ghidra open --session <id> --target <id>`. For uncertain outcomes inspect
51
+ `sessions status <id> --target <id>` and [recovery](references/recovery.md). Supplying a stable
52
+ optional `--request-id` lets a repeated changing intent retrieve its outcome without rerunning.
53
+ 7. Finish by closing each context you own with scoped `ghidra close`, preserving private work.
54
+ If this profile's local server belongs exclusively to your investigation and all its contexts
55
+ are closed, use `ghidra server stop`, then verify `ghidra status` has no remaining processes.
56
+ `ipc-server stop` stops the CLI owner; it does **not** stop Ghidra's local server. Stop that
57
+ owner last when needed. For a shared profile/server, leave server shutdown to its coordinator;
58
+ an individual worker closes only its own contexts and never kills unrelated processes.
59
+
60
+ The facade exposes the pinned static research/editing catalog, merge/refresh, project/server/GUI
61
+ controls, debugger, archive exchange and supported recovery. Preserve private work
62
+ and journals while an outcome is unresolved. The CLI supplies the investigation tools; agents
63
+ choose research goals and interpret findings.
64
+ Installing this package does not register this skill in an agent's configuration.
65
+
66
+ For project files, program export/import and configured-server administration, read
67
+ [administration](references/administration.md). These operations preserve separate research views;
68
+ their external effects do not participate in program merge.
69
+
70
+ For owned GUI execution, CPU state, breakpoints and retained traces, read
71
+ [debugger](references/debugger.md). Execution side effects remain separate from program publication.
72
+
73
+ For explicit external documentation exchange and retained submission outcomes, read
74
+ [archive](references/archive.md).
75
+
76
+ For selected native SDK extensions (VT, DB differences, byte/assembly edits, formats, GDT,
77
+ FID/BSim, namespaces and typed IR), read [native workflows](references/native-workflows.md).
78
+
79
+ For managed SDK extension modules, actual language/analyzer/plugin discovery and opt-in
80
+ automatic synchronization, read [extensions and sync](references/extensions-and-sync.md).
81
+
82
+ For authorized macOS local debugging, use `ghidra debugger launch --stop-at-entry`
83
+ with the returned session/target and `--json`; then inspect status, registers and stack
84
+ before resuming. The default launch runs immediately, so a short program may exit before
85
+ an interrupt. Before resuming from entry, map the selected function and set a live breakpoint at the
86
+ returned dynamic address. Resuming a short program without that breakpoint can run it to
87
+ exit before any call is observed. At the breakpoint verify PC, then read arguments/stack
88
+ and step out or over the call to inspect its actual return.
89
+ Repeat mapping and live breakpoint setup for every new launch. A saved breakpoint bookmark
90
+ does not prove placement in that new process; check its `trace_location_count` before resuming.
91
+ Use `new` only when creating a session; subsequent calls take its actual returned ID.
@@ -0,0 +1,34 @@
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.
@@ -0,0 +1,36 @@
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.
@@ -0,0 +1,32 @@
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.
@@ -0,0 +1,52 @@
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 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.
@@ -0,0 +1,62 @@
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 explicit merge/refresh and complex-change conflict rules; 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, use an installed local LLDB and an executable supported by that host. GUI startup
41
+ prepares the Python wheels already supplied with Ghidra in owned storage; it does not install
42
+ packages into system Python. A launcher's optional Python executable and Windows debugger
43
+ directory are Factory profile settings. Native Windows/Linux acceptance remains deferred.
44
+
45
+ Use generated help for exact flags. A retained static breakpoint bookmark may remain after its live trace placement is
46
+ removed; `trace_location_count` distinguishes current placements from that static metadata.
47
+
48
+ For a call observation, set the mapped function breakpoint **before** resuming from entry.
49
+ After the stop, check the PC against that address, then capture arguments and stack before
50
+ stepping. Step-out verifies return to the native caller in the same thread and stack;
51
+ return registers are observed without being modified. A competing stop or unavailable caller
52
+ does not count as a verified return. A requested step whose reply
53
+ or observed completion is unknown remains journaled; do not issue another CPU action to
54
+ try to recover a missing return. Retain its diagnostics and use request/status recovery.
55
+
56
+ For another intentional run, close and reopen the same owned context first: this disconnects
57
+ and retains the previous trace without relaunching it. Then launch with a distinct request ID
58
+ and desired arguments. A connected debugger remains busy even after its subject has exited;
59
+ selecting or reading its old trace is not a request to execute the subject again.
60
+ Map the new process and explicitly set/check its live breakpoints before each resume from
61
+ entry. Old static bookmarks do not establish new trace placements. Reopening restores each
62
+ trace's saved snap/thread, including inactive traces; choose its returned ID with `--trace`.
@@ -0,0 +1,124 @@
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; any returned conflict stops that edit before dispatch. Safe incoming changes from the refresh remain retained. |
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 uses exactly the manual contract: any conflict prevents the whole publication;
111
+ only verified scalar categories combine after divergence; complex divergence retains both
112
+ versions. Use explicit refresh, inspect/resolve scalar conflicts, or transfer complex changes
113
+ onto a current base. A failed automatic workflow does not silently retry after resolution;
114
+ use a new request or explicit merge for the new intention.
115
+
116
+ 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
117
+ retrieves its result or reconciles the original publication; it never replays a check-in or
118
+ uncertain script. The original workflow keeps its original policy even if policy changes later.
119
+ Retrying an earlier manual edit does not retroactively publish it after enabling automatic mode.
120
+ Without a request ID, a call is a new intention, as elsewhere in the facade.
121
+
122
+ The caller ID reserves the complete automatic workflow in the common profile namespace, even
123
+ when incoming conflicts prevent the local command from starting. It cannot be reused by an
124
+ explicit merge, close, export or administration operation. Internal child effects have derived IDs.