@eyeauras/insight-cli 0.2.4 → 0.3.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 (91) hide show
  1. package/.cli-package-build.json +1 -1
  2. package/SKILL.md +4 -1
  3. package/dist/src/analysis-storage.d.ts +165 -0
  4. package/dist/src/analysis-storage.js +562 -0
  5. package/dist/src/cli.js +24 -6
  6. package/dist/src/contexts.js +8 -8
  7. package/dist/src/ghidra-processes.js +5 -4
  8. package/dist/src/initial-model.js +2 -1
  9. package/dist/src/native-inputs.js +2 -2
  10. package/dist/src/runtime-manager.js +6 -5
  11. package/dist/src/runtime-selection.d.ts +2 -2
  12. package/dist/src/runtime-selection.js +13 -6
  13. package/dist/src/saved-materials.js +2 -1
  14. package/dist/src/tool-runtime/installer.js +7 -6
  15. package/dist/src/tool-runtime/launch-worker.js +3 -1
  16. package/package.json +2 -2
  17. package/references/artifacts.md +1 -1
  18. package/references/managed-runtime.md +1 -1
  19. package/references/setup.md +4 -0
  20. package/references/storage.md +99 -0
  21. package/runtime/toolbox.json +10 -4
  22. package/skill-bundle/insight-artifacts/SKILL.md +1 -1
  23. package/skill-bundle/insight-artifacts/references/artifacts.md +1 -1
  24. package/skill-bundle/insight-artifacts/references/recovery.md +79 -0
  25. package/skill-bundle/insight-artifacts/references/storage.md +99 -0
  26. package/skill-bundle/insight-binary/SKILL.md +1 -1
  27. package/skill-bundle/insight-capture/SKILL.md +1 -1
  28. package/skill-bundle/insight-cli/SKILL.md +4 -1
  29. package/skill-bundle/insight-cli/references/recovery.md +79 -0
  30. package/skill-bundle/insight-cli/references/storage.md +99 -0
  31. package/skill-bundle/insight-die/SKILL.md +1 -1
  32. package/skill-bundle/insight-dnspy/SKILL.md +1 -1
  33. package/skill-bundle/insight-dotnet-dump/SKILL.md +1 -1
  34. package/skill-bundle/insight-dotnet-stack/SKILL.md +1 -1
  35. package/skill-bundle/insight-dotnet-trace/SKILL.md +1 -1
  36. package/skill-bundle/insight-frida/SKILL.md +1 -1
  37. package/skill-bundle/insight-ghidra/SKILL.md +1 -1
  38. package/skill-bundle/insight-ghidra/references/artifacts.md +1 -1
  39. package/skill-bundle/insight-ghidra/references/managed-runtime.md +1 -1
  40. package/skill-bundle/insight-ghidra/references/setup.md +4 -0
  41. package/skill-bundle/insight-ghidra/references/storage.md +99 -0
  42. package/skill-bundle/insight-ilspy/SKILL.md +1 -1
  43. package/skill-bundle/insight-interop/SKILL.md +1 -1
  44. package/skill-bundle/insight-lldb/SKILL.md +1 -1
  45. package/skill-bundle/insight-llvm/SKILL.md +1 -1
  46. package/skill-bundle/insight-managed-heap/SKILL.md +1 -1
  47. package/skill-bundle/insight-managed-metadata/SKILL.md +1 -1
  48. package/skill-bundle/insight-mitmproxy/SKILL.md +1 -1
  49. package/skill-bundle/insight-overview/SKILL.md +1 -1
  50. package/skill-bundle/insight-procmon/SKILL.md +1 -1
  51. package/skill-bundle/insight-re/SKILL.md +1 -1
  52. package/skill-bundle/insight-re/references/artifacts.md +1 -1
  53. package/skill-bundle/insight-re/references/storage.md +99 -0
  54. package/skill-bundle/insight-sevenzip/SKILL.md +1 -1
  55. package/skill-bundle/insight-strace/SKILL.md +1 -1
  56. package/skill-bundle/insight-tshark/SKILL.md +1 -1
  57. package/skill-bundle/insight-windbg/SKILL.md +1 -1
  58. package/skill-bundle/manifest.json +1 -1
  59. package/skills/insight-artifacts/SKILL.md +1 -1
  60. package/skills/insight-artifacts/references/artifacts.md +1 -1
  61. package/skills/insight-artifacts/references/recovery.md +79 -0
  62. package/skills/insight-artifacts/references/storage.md +99 -0
  63. package/skills/insight-binary/SKILL.md +1 -1
  64. package/skills/insight-capture/SKILL.md +1 -1
  65. package/skills/insight-die/SKILL.md +1 -1
  66. package/skills/insight-dnspy/SKILL.md +1 -1
  67. package/skills/insight-dotnet-dump/SKILL.md +1 -1
  68. package/skills/insight-dotnet-stack/SKILL.md +1 -1
  69. package/skills/insight-dotnet-trace/SKILL.md +1 -1
  70. package/skills/insight-frida/SKILL.md +1 -1
  71. package/skills/insight-ghidra/SKILL.md +1 -1
  72. package/skills/insight-ghidra/references/artifacts.md +1 -1
  73. package/skills/insight-ghidra/references/managed-runtime.md +1 -1
  74. package/skills/insight-ghidra/references/setup.md +4 -0
  75. package/skills/insight-ghidra/references/storage.md +99 -0
  76. package/skills/insight-ilspy/SKILL.md +1 -1
  77. package/skills/insight-interop/SKILL.md +1 -1
  78. package/skills/insight-lldb/SKILL.md +1 -1
  79. package/skills/insight-llvm/SKILL.md +1 -1
  80. package/skills/insight-managed-heap/SKILL.md +1 -1
  81. package/skills/insight-managed-metadata/SKILL.md +1 -1
  82. package/skills/insight-mitmproxy/SKILL.md +1 -1
  83. package/skills/insight-overview/SKILL.md +1 -1
  84. package/skills/insight-procmon/SKILL.md +1 -1
  85. package/skills/insight-re/SKILL.md +1 -1
  86. package/skills/insight-re/references/artifacts.md +1 -1
  87. package/skills/insight-re/references/storage.md +99 -0
  88. package/skills/insight-sevenzip/SKILL.md +1 -1
  89. package/skills/insight-strace/SKILL.md +1 -1
  90. package/skills/insight-tshark/SKILL.md +1 -1
  91. package/skills/insight-windbg/SKILL.md +1 -1
@@ -1 +1 @@
1
- {"version":1,"artifact":"b72f26afe4c42a03e655b5b3d77836ce57aa13daa1da1178cd870d2e77810d38"}
1
+ {"version":1,"artifact":"b532b16f2d45f978bd4d6f4993f0438e4d3f65bf42de0df49ec99ab2d63d717d"}
package/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: insight-cli
3
3
  description: Choose and prepare reverse-engineering capabilities from the insight-cli toolbox for binary, managed-code and runtime investigations. Use to discover the appropriate tool or its packaged skill before installing native runtimes.
4
4
  ---
5
5
 
6
- # insight-cli 0.2.4
6
+ # insight-cli 0.3.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
@@ -36,6 +36,9 @@ multi-agent guidance; `skill insight-ghidra`, `skill insight-ilspy` and
36
36
  installing npm binaries does not register them in an agent host. See
37
37
  [agent connection](references/agent-setup.md) for current setup and access requirements.
38
38
 
39
+ Inspect `storage show --json` before relocating a profile. Use the supported
40
+ [storage workflow](references/storage.md), preserving unknown operations and native folders.
41
+
39
42
  Use generated help as the syntax authority. Catalog metadata describes shipped capabilities;
40
43
  profile runtime readiness comes from the selected tool's `status`. Unavailable profile/IPC
41
44
  access means execution readiness is unknown. Preserve work and diagnose access before trying
@@ -0,0 +1,165 @@
1
+ import { type CommandContext, type CommandDefinition, type ProfileStoreContract } from '@eyeauras/cli-factory';
2
+ export declare const analysisTrees: string[];
3
+ export declare function analysisDirectory(c: Pick<CommandContext, 'profile' | 'appArguments'>): string;
4
+ /** Factory remains the only owner of profiles, settings, keyring and IPC admission. */
5
+ export declare class AnalysisStorage {
6
+ private readonly storeOverride;
7
+ private readonly release;
8
+ private readonly checkpoint?;
9
+ private active;
10
+ private changing;
11
+ constructor(storeOverride: ProfileStoreContract | undefined, release: (c: CommandContext) => Promise<void>, checkpoint?: ((phase: string) => Promise<void>) | undefined);
12
+ private control;
13
+ private store;
14
+ private binding;
15
+ private journal;
16
+ private save;
17
+ private validate;
18
+ wrap(entry: CommandDefinition): CommandDefinition;
19
+ busy(directory: string): boolean;
20
+ private exclusive;
21
+ private preflight;
22
+ show(c: CommandContext): Promise<{
23
+ profile: string;
24
+ directory: string;
25
+ configuration: string;
26
+ defaultDirectory: string;
27
+ availability: string;
28
+ usage: unknown;
29
+ trees: string[];
30
+ appData: string;
31
+ included: string[];
32
+ excluded: string[];
33
+ migration: {
34
+ id: string;
35
+ state: "verified" | "copying" | "activating" | "committed" | "rolling_back" | "rolled_back" | "cleaning" | "cleaned";
36
+ source: string;
37
+ destination: string;
38
+ manifest: string;
39
+ bytes: number;
40
+ files: number;
41
+ retainedSource: string;
42
+ retainedSourceBytes: number;
43
+ progress: unknown;
44
+ } | null;
45
+ }>;
46
+ migrate(c: CommandContext, directory: unknown, dryRun?: boolean, emptyOnly?: boolean): Promise<{
47
+ profile: string;
48
+ directory: string;
49
+ configuration: string;
50
+ defaultDirectory: string;
51
+ availability: string;
52
+ usage: unknown;
53
+ trees: string[];
54
+ appData: string;
55
+ included: string[];
56
+ excluded: string[];
57
+ migration: {
58
+ id: string;
59
+ state: "verified" | "copying" | "activating" | "committed" | "rolling_back" | "rolled_back" | "cleaning" | "cleaned";
60
+ source: string;
61
+ destination: string;
62
+ manifest: string;
63
+ bytes: number;
64
+ files: number;
65
+ retainedSource: string;
66
+ retainedSourceBytes: number;
67
+ progress: unknown;
68
+ } | null;
69
+ } | {
70
+ state: "rolled_back";
71
+ id: string;
72
+ directory: string;
73
+ destinationRetained: string;
74
+ } | {
75
+ state: "cleaned";
76
+ id: string;
77
+ compatibilityPathsRetained: boolean;
78
+ } | {
79
+ state: "committed" | "rolled_back" | "cleaned";
80
+ id: string;
81
+ directory: string;
82
+ manifest: string;
83
+ sourceRetained: boolean;
84
+ rollback: string;
85
+ cleanup: string;
86
+ } | {
87
+ source: string;
88
+ destination: string;
89
+ destinationAnchor: string;
90
+ destinationIdentity: string;
91
+ bytes: number;
92
+ entries: number;
93
+ availableBytes: string;
94
+ requiredBytes: string;
95
+ trees: string[];
96
+ sourceRetained: boolean;
97
+ compatibilityPathsRetained: boolean;
98
+ state: string;
99
+ }>;
100
+ private checkCopy;
101
+ private continue;
102
+ resume(c: CommandContext): Promise<{
103
+ profile: string;
104
+ directory: string;
105
+ configuration: string;
106
+ defaultDirectory: string;
107
+ availability: string;
108
+ usage: unknown;
109
+ trees: string[];
110
+ appData: string;
111
+ included: string[];
112
+ excluded: string[];
113
+ migration: {
114
+ id: string;
115
+ state: "verified" | "copying" | "activating" | "committed" | "rolling_back" | "rolled_back" | "cleaning" | "cleaned";
116
+ source: string;
117
+ destination: string;
118
+ manifest: string;
119
+ bytes: number;
120
+ files: number;
121
+ retainedSource: string;
122
+ retainedSourceBytes: number;
123
+ progress: unknown;
124
+ } | null;
125
+ } | {
126
+ state: "rolled_back";
127
+ id: string;
128
+ directory: string;
129
+ destinationRetained: string;
130
+ } | {
131
+ state: "cleaned";
132
+ id: string;
133
+ compatibilityPathsRetained: boolean;
134
+ } | {
135
+ state: "committed" | "rolled_back" | "cleaned";
136
+ id: string;
137
+ directory: string;
138
+ manifest: string;
139
+ sourceRetained: boolean;
140
+ rollback: string;
141
+ cleanup: string;
142
+ }>;
143
+ rollback(c: CommandContext): Promise<{
144
+ state: "rolled_back";
145
+ id: string;
146
+ directory: string;
147
+ destinationRetained: string;
148
+ } | {
149
+ state: "rolled_back";
150
+ id: string;
151
+ }>;
152
+ private restore;
153
+ cleanup(c: CommandContext): Promise<{
154
+ state: "cleaned";
155
+ id: string;
156
+ compatibilityPathsRetained: boolean;
157
+ } | {
158
+ state: "cleaned";
159
+ id: string;
160
+ }>;
161
+ private finishCleanup;
162
+ private checkRetained;
163
+ private checkBackup;
164
+ commands(): CommandDefinition;
165
+ }