@eyeauras/insight-cli 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/.cli-package-build.json +1 -1
  2. package/SKILL.md +1 -1
  3. package/dist/src/activity-audit.d.ts +7 -0
  4. package/dist/src/activity-audit.js +14 -4
  5. package/dist/src/analysis-storage.d.ts +5 -1
  6. package/dist/src/analysis-storage.js +9 -2
  7. package/dist/src/audit-retention.d.ts +8 -2
  8. package/dist/src/audit-retention.js +68 -7
  9. package/dist/src/cli.js +19 -5
  10. package/dist/src/context-diagnostics.d.ts +1 -1
  11. package/dist/src/context-diagnostics.js +10 -2
  12. package/dist/src/contexts.d.ts +118 -10
  13. package/dist/src/contexts.js +851 -199
  14. package/dist/src/debugger.js +2 -1
  15. package/dist/src/diagnostic-error.js +1 -1
  16. package/dist/src/inline-script.js +3 -4
  17. package/dist/src/lifecycle.d.ts +11 -0
  18. package/dist/src/lifecycle.js +34 -6
  19. package/dist/src/native-inputs.d.ts +6 -0
  20. package/dist/src/native-inputs.js +30 -6
  21. package/dist/src/native-queries.js +1 -6
  22. package/dist/src/native-service.d.ts +40 -0
  23. package/dist/src/native-service.js +406 -0
  24. package/dist/src/research.d.ts +29 -1
  25. package/dist/src/research.js +106 -27
  26. package/dist/src/server.d.ts +38 -1
  27. package/dist/src/server.js +160 -12
  28. package/dist/src/storage-gc.js +1 -1
  29. package/dist/src/sync-policy.js +2 -1
  30. package/dist/src/timed-backend.js +8 -0
  31. package/dist/src/timing-report.d.ts +32 -0
  32. package/dist/src/timing-report.js +74 -0
  33. package/dist/src/tool-runtime/identity.js +86 -1
  34. package/dist/src/tool-runtime/supervisor.js +6 -5
  35. package/dist/src/transport.d.ts +35 -0
  36. package/dist/src/transport.js +77 -7
  37. package/dist/src/unresolved-guidance.d.ts +46 -0
  38. package/dist/src/unresolved-guidance.js +55 -0
  39. package/dist/src/windbg.d.ts +1 -1
  40. package/dist/src/worker-lease.d.ts +17 -0
  41. package/dist/src/worker-lease.js +50 -0
  42. package/dist/src/workspace.d.ts +3 -9
  43. package/dist/src/workspace.js +9 -41
  44. package/package.json +1 -1
  45. package/references/native/InsightHeadlessMain.java +9 -2
  46. package/references/native/InsightNativeCheckout.java +113 -43
  47. package/references/native/InsightNativeFingerprint.java +28 -1
  48. package/references/native/InsightNativeRead.java +32 -9
  49. package/references/native/InsightNativeService.java +43 -0
  50. package/references/native/InsightNativeView.java +17 -6
  51. package/references/native/InsightOwnedScripts.java +170 -0
  52. package/references/native/InsightWorkerLease.java +132 -0
  53. package/references/recovery.md +68 -3
  54. package/references/research.md +38 -4
  55. package/references/setup.md +5 -1
  56. package/skill-bundle/insight-artifacts/SKILL.md +1 -1
  57. package/skill-bundle/insight-artifacts/references/recovery.md +68 -3
  58. package/skill-bundle/insight-binary/SKILL.md +1 -1
  59. package/skill-bundle/insight-capture/SKILL.md +1 -1
  60. package/skill-bundle/insight-cli/SKILL.md +1 -1
  61. package/skill-bundle/insight-cli/references/recovery.md +68 -3
  62. package/skill-bundle/insight-cli/references/setup.md +5 -1
  63. package/skill-bundle/insight-die/SKILL.md +1 -1
  64. package/skill-bundle/insight-dnspy/SKILL.md +1 -1
  65. package/skill-bundle/insight-dotnet-dump/SKILL.md +1 -1
  66. package/skill-bundle/insight-dotnet-stack/SKILL.md +1 -1
  67. package/skill-bundle/insight-dotnet-trace/SKILL.md +1 -1
  68. package/skill-bundle/insight-frida/SKILL.md +1 -1
  69. package/skill-bundle/insight-ghidra/SKILL.md +1 -1
  70. package/skill-bundle/insight-ghidra/references/recovery.md +68 -3
  71. package/skill-bundle/insight-ghidra/references/research.md +38 -4
  72. package/skill-bundle/insight-ghidra/references/setup.md +5 -1
  73. package/skill-bundle/insight-ilspy/SKILL.md +1 -1
  74. package/skill-bundle/insight-interop/SKILL.md +1 -1
  75. package/skill-bundle/insight-lldb/SKILL.md +1 -1
  76. package/skill-bundle/insight-llvm/SKILL.md +1 -1
  77. package/skill-bundle/insight-managed-heap/SKILL.md +1 -1
  78. package/skill-bundle/insight-managed-metadata/SKILL.md +1 -1
  79. package/skill-bundle/insight-mitmproxy/SKILL.md +1 -1
  80. package/skill-bundle/insight-overview/SKILL.md +1 -1
  81. package/skill-bundle/insight-procmon/SKILL.md +1 -1
  82. package/skill-bundle/insight-re/SKILL.md +1 -1
  83. package/skill-bundle/insight-re/references/recovery.md +68 -3
  84. package/skill-bundle/insight-sevenzip/SKILL.md +1 -1
  85. package/skill-bundle/insight-strace/SKILL.md +1 -1
  86. package/skill-bundle/insight-tshark/SKILL.md +1 -1
  87. package/skill-bundle/insight-windbg/SKILL.md +1 -1
  88. package/skill-bundle/manifest.json +1 -1
  89. package/skills/insight-artifacts/SKILL.md +1 -1
  90. package/skills/insight-artifacts/references/recovery.md +68 -3
  91. package/skills/insight-binary/SKILL.md +1 -1
  92. package/skills/insight-capture/SKILL.md +1 -1
  93. package/skills/insight-die/SKILL.md +1 -1
  94. package/skills/insight-dnspy/SKILL.md +1 -1
  95. package/skills/insight-dotnet-dump/SKILL.md +1 -1
  96. package/skills/insight-dotnet-stack/SKILL.md +1 -1
  97. package/skills/insight-dotnet-trace/SKILL.md +1 -1
  98. package/skills/insight-frida/SKILL.md +1 -1
  99. package/skills/insight-ghidra/SKILL.md +1 -1
  100. package/skills/insight-ghidra/references/recovery.md +68 -3
  101. package/skills/insight-ghidra/references/research.md +38 -4
  102. package/skills/insight-ghidra/references/setup.md +5 -1
  103. package/skills/insight-ilspy/SKILL.md +1 -1
  104. package/skills/insight-interop/SKILL.md +1 -1
  105. package/skills/insight-lldb/SKILL.md +1 -1
  106. package/skills/insight-llvm/SKILL.md +1 -1
  107. package/skills/insight-managed-heap/SKILL.md +1 -1
  108. package/skills/insight-managed-metadata/SKILL.md +1 -1
  109. package/skills/insight-mitmproxy/SKILL.md +1 -1
  110. package/skills/insight-overview/SKILL.md +1 -1
  111. package/skills/insight-procmon/SKILL.md +1 -1
  112. package/skills/insight-re/SKILL.md +1 -1
  113. package/skills/insight-re/references/recovery.md +68 -3
  114. package/skills/insight-sevenzip/SKILL.md +1 -1
  115. package/skills/insight-strace/SKILL.md +1 -1
  116. package/skills/insight-tshark/SKILL.md +1 -1
  117. package/skills/insight-windbg/SKILL.md +1 -1
@@ -3,7 +3,7 @@ name: insight-re
3
3
  description: Investigate shipped programs and binary artifacts with insight-cli and other available tools; retain ordinary research files, coordinate independent agents and publish Ghidra annotations. Use for reverse engineering behavior, not ordinary source-repository browsing.
4
4
  ---
5
5
 
6
- # Insight RE 0.7.0
6
+ # Insight RE 0.8.0
7
7
 
8
8
  If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
9
  with the agent host's normal permission escalation, then use that route for later authorized
@@ -15,10 +15,19 @@ recovery. Preserve its project and receipts rather than repeating a mutation wit
15
15
 
16
16
  If native `changes discard` loses its response, retry its original request ID or continue
17
17
  the same session/target. Recovery requires a completed native discard journal and matching
18
- new checkout identity/base and saved buffers, followed by independent server readback.
18
+ new checkout identity/base, which Ghidra reports unmodified.
19
19
  It does not repeat discard. An incomplete journal or mismatched checkout stays unknown;
20
20
  preserve the project and any `.keep` file.
21
21
 
22
+ A Ghidra session that ends abruptly can leave unsaved changes as Ghidra recovery data in the
23
+ working copy. Opening the program would delete them, so `ghidra open` and every native
24
+ operation refuse with `blocked` and name the two ways out. Neither needs Ghidra itself:
25
+ `ghidra changes recover-unsaved --session <id> --target <id>` has Ghidra restore those changes
26
+ and save them into the working copy; `ghidra changes discard-unsaved --session <id> --target <id>`
27
+ (Destructive) has Ghidra delete them. Saved work stays in both cases, nothing is published, and
28
+ repeating either command is safe: with nothing left it reports `absent`. Then run the refused
29
+ command again.
30
+
22
31
  First-import recovery uses the same scoped `ghidra open` or the original request ID/input.
23
32
  Import/analysis writes a private snapshot and completion receipt before any initial publication.
24
33
  If its worker is still running, continuation reports busy; wait and continue the same scope.
@@ -75,6 +84,62 @@ edits stay private. A revision change or live checkout blocks adoption. Only an
75
84
  absent path permits a separately journaled preparation under the current verified runtime,
76
85
  using the original lock and conditional creation. An unknown publication still freezes recovery.
77
86
 
87
+ ## Merge or refresh that was never sent
88
+
89
+ A cancellation (or an unusable native service) can stop a merge or refresh before its native
90
+ Update or check-in ever left the CLI. That is provable, so it is not an unknown outcome: the request
91
+ ends as failed with `reason: not_sent`, a prepared publication intent is withdrawn (stored as a
92
+ refused publication), the lane stays open and local work remains pending. The original
93
+ `--request-id` then keeps reporting that terminal refusal (`coordinator.conflict`) with its `phase`,
94
+ `cause` and memory diagnosis (a suggested next command is given only in the first response); run the
95
+ merge or refresh again with a new request ID. The same applies when the worker pool was busy, blocked or
96
+ full, the worker could not be parked or stopped, or its server could not be reached before the step
97
+ was dispatched. Any other failure while the context was reopened or saved (a lost, failed or
98
+ unusable reply, an unacknowledged save) keeps its own unresolved outcome. A cancellation after a native step was sent keeps the
99
+ unknown-outcome rules below.
100
+
101
+ A native helper can also end before its step reached the server, most often because the machine
102
+ ran out of memory (many concurrent sessions or JVMs). The helper writes its operation journal
103
+ before its Update or check-in call (it may already have read from the server), so a helper that ended without an answer (exit, timeout, cancellation or
104
+ memory exhaustion) is reported as not sent (with `memory: exhausted`, `reason: out_of_memory`, the
105
+ concrete JVM cause such as a too-small paging file in `memoryCause` and the message, and the
106
+ original error as `cause`) when that journal is absent from the journal directory the coordinator
107
+ created and identified before dispatch (a moved or replaced checkout or directory proves nothing)
108
+ and no helper or publisher service that could still write it
109
+ remains: each has proved its exit, or is a publisher service the current owner still tracks as
110
+ serving. A helper that answered keeps its own outcome (refusal, migration, binding or unknown), and
111
+ a helper whose termination could not be proved keeps the outcome unknown. These proofs assume the
112
+ profile's single owner process; process records of any other owner must show their exit.
113
+
114
+ Only the live command, which itself observed its helper end, reports a step as not sent. An outcome
115
+ already recorded as unknown (for example after the owner process itself stopped) is never settled
116
+ from an absent journal: on Windows a machine crash can lose a written journal's directory entry,
117
+ and an Update that ran can leave the checkout unchanged (no incoming change, or a conflict). It
118
+ stays unknown until its own journal, or for a check-in the request marker in the server history,
119
+ establish the result; `insight-cli ghidra open --target <target> --session <session>` reconciles it.
120
+
121
+ Every refusal of a research or lifecycle command caused by an unresolved outcome
122
+ (`coordinator.blocked`) names the reconciling
123
+ command in its message and in `next.reconcile`, lists the owning context's unresolved requests
124
+ (ID, caller request ID, operation, state) and, when another session's publication holds the lane,
125
+ that publication. If a proof is missing, the lane stays frozen as described below; once the cause
126
+ (for example low memory or a busy server) is gone, run the reconciling open again. Never repeat the
127
+ unknown operation itself. While it stays frozen the saved project and its journals are retained.
128
+ A context-local outcome leaves the target free: research continues in a new session
129
+ (`next.continueElsewhere`, `insight-cli ghidra open --target <target> --session new`). An
130
+ unresolved publication or shared model holds the whole target (`targetHeld: true`, no
131
+ `continueElsewhere`): a new session of it waits as well, other targets are unaffected. When the
132
+ reconciling open cannot prove an outcome yet, it says so and when to run it again; replay an
133
+ original request ID to see how a reconciled request ended (`sessions status` lists only requests
134
+ that are still unresolved, so keep that ID). An open that failed while setting up (before any
135
+ reconciliation) is a plain failure; its replay reports that failure without running setup again.
136
+ A request settled as not sent is terminal: run the operation again with a new request ID. A merge or refresh
137
+ recorded as unknown keeps its error code and adds the same guidance to its message and result.
138
+ Commands in guidance name the profile (`--profile <name>`); machine-readable follow-ups (`next`)
139
+ always address the context that owns the outcome, never the refused one. `ghidra abandon` applies
140
+ only to legacy detached program attempts; for a native outcome it refuses with the same
141
+ reconciliation command.
142
+
78
143
  ## Interrupted save or close
79
144
 
80
145
  After restoring profile storage, inspect the selected session and target with
@@ -117,8 +182,8 @@ their exception strings or an unchanged program snapshot. File/Python scripts re
117
182
  existing conservative recovery semantics.
118
183
 
119
184
  An unknown or partial effect retains its request intent, receipts and native project. Open the
120
- same tuple to reconcile supported outcomes. A committed merge is verified against its recorded
121
- server version and complete saved buffers through independent read authority; it is never
185
+ same tuple to reconcile supported outcomes. A committed merge is recognised by its unique request
186
+ marker at the expected version in the repository history, read with read-only authority; it is never
122
187
  checked in again merely because its response was lost. Until verification succeeds, publication
123
188
  for this shared target is blocked across sessions. Saved private work remains retained.
124
189
 
@@ -3,7 +3,7 @@ name: insight-sevenzip
3
3
  description: Inventory, integrity-check and recover files from archives and supported containers with insight-cli 7-Zip, then hand recovered binaries or configuration to the appropriate research tool.
4
4
  ---
5
5
 
6
- # Insight 7-Zip 0.7.0
6
+ # Insight 7-Zip 0.8.0
7
7
 
8
8
  If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
9
  with the agent host's normal permission escalation, then use that route for later authorized
@@ -3,7 +3,7 @@ name: insight-strace
3
3
  description: Observe actual file reads, writes, process creation and network syscalls in an authorized owned native Linux launch using insight-cli strace. Use when static inference needs concrete operating-system interaction evidence.
4
4
  ---
5
5
 
6
- # Insight strace 0.7.0
6
+ # Insight strace 0.8.0
7
7
 
8
8
  If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
9
  with the agent host's normal permission escalation, then use that route for later authorized
@@ -3,7 +3,7 @@ name: insight-tshark
3
3
  description: Inspect an offline PCAP or PCAPNG with insight-cli tshark to identify protocols, HTTP/DNS/TLS fields, packet evidence and reconstructed TCP/UDP streams. Use for captured traffic questions; live acquisition and TLS decryption are separate tasks.
4
4
  ---
5
5
 
6
- # Insight TShark 0.7.0
6
+ # Insight TShark 0.8.0
7
7
 
8
8
  If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
9
  with the agent host's normal permission escalation, then use that route for later authorized
@@ -3,7 +3,7 @@ name: insight-windbg
3
3
  description: Investigate Windows native user-mode minidumps using bounded stacks, threads, registers, modules, memory and disassembly through insight-cli windbg. Use on Windows x64 when a captured runtime state needs native debugger evidence.
4
4
  ---
5
5
 
6
- # Insight WinDbg 0.7.0
6
+ # Insight WinDbg 0.8.0
7
7
 
8
8
  If local help/status reports AppData or IPC access denied, retry that **read-only probe**
9
9
  with the agent host's normal permission escalation, then use that route for later authorized