Commit db687ab
committed
feat(extension): v0.0.2 — activation summary, healthcheck webview, self-test, reset
Five quality-of-life features that close the silent-failure UX hole
surfaced during v0.0.1 install (users had no clear signal when hooks
or auth quietly failed during activation):
1. ActivationReport + per-step failure surfacing (extension)
- extension/src/activation-report.ts: small class that tracks
ok/fail per step (binary, mcp, hooks, auth, setup). At the end
of activate(), shows a single info notification on full success
("AXME Code ready: ✓ MCP ✓ Hooks ✓ Auth (cursor_sdk) ✓ KB (33
dec, 6 mems)") OR a warning with [Show output] button when
anything failed.
- extension.ts: every step now wrapped in runStep() helper that
records to the report AND surfaces a per-step warning toast on
failure. Previously hooks/auth/setup errors landed only in the
output channel with no user-visible signal.
2. AXME: Show Status → webview (extension)
- extension/src/status-webview.ts: structured healthcheck panel
with rows for extension version, binary, MCP server boot probe
(spawns serve + initialize handshake), hooks file (parses
~/.cursor/hooks.json, counts axme entries per kind), auth mode,
KB stats per workspace, last audit timestamp. Each row has a
✓/⚠/✗ status icon. Refresh button on the panel.
- commands.ts: axme.showStatus now opens the webview instead of
dumping to output channel. Old text-dump is preserved as
axme.showStatusText command for power users.
3. axme-code self-test CLI subcommand (core)
- src/self-test.ts: probes four runtime contracts —
• atomicWrite to a temp .axme-code/ path
• Cursor + Claude hook adapter parse (verifies Shell→Bash
normalization) and deny emit shapes (Cursor: exit 2 + flat
JSON; Claude: exit 0 + hookSpecificOutput)
• MCP server boot via stdio initialize handshake (5s timeout)
- cli.ts: 'self-test' case routes to runSelfTest(). Exits 0 on
pass, 1 on any failure. Designed for CI scripts and for users
debugging an install from terminal.
- Smoke-tested: bundled .vsix binary passes 6/6 checks
(storage write, parse Cursor, deny Cursor, parse Claude, deny
Claude, MCP boot).
4. AXME: Reset command (extension)
- extension/src/reset.ts: confirm-dialog command that clears
~/.cursor/hooks.json axme entries + ~/.config/axme-code/auth.yaml.
Optional flag to also wipe ~/.config/axme-code/cursor.yaml
(Cursor SDK key). Per-project .axme-code/ storage is NEVER
touched — that's the user's curated knowledge.
- commands.ts + package.json contribute axme.reset.
5. Misc package.json polish
- extension version bump 0.0.1 → 0.0.2.
- New commands surfaced in command palette: axme.showStatusText,
axme.reauthAuditor, axme.reset.
What this does NOT include (deferred to v0.0.3):
- VS Code branch with cooperative axme_safety_check tool
- @cursor/sdk bundled into per-platform .vsix
- vscode-test framework + headless e2e
- Welcome view / walkthrough
Verified locally: bundled binary self-test 6/6 pass. tsc clean. .vsix
builds at 519 KB.
#!axme pr=none repo=AxmeAI/axme-code1 parent 589b53d commit db687ab
8 files changed
Lines changed: 925 additions & 41 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
83 | 98 | | |
84 | 99 | | |
85 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
70 | 80 | | |
71 | 81 | | |
72 | 82 | | |
| |||
116 | 126 | | |
117 | 127 | | |
118 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
119 | 133 | | |
120 | 134 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
14 | 21 | | |
15 | 22 | | |
16 | 23 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 24 | + | |
20 | 25 | | |
21 | 26 | | |
22 | 27 | | |
| |||
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
28 | | - | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
37 | 75 | | |
38 | 76 | | |
39 | 77 | | |
40 | | - | |
| 78 | + | |
41 | 79 | | |
42 | 80 | | |
43 | 81 | | |
44 | 82 | | |
45 | 83 | | |
46 | 84 | | |
47 | | - | |
| 85 | + | |
48 | 86 | | |
49 | 87 | | |
50 | 88 | | |
| |||
55 | 93 | | |
56 | 94 | | |
57 | 95 | | |
58 | | - | |
59 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
60 | 110 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
67 | 114 | | |
68 | 115 | | |
69 | | - | |
70 | 116 | | |
71 | 117 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
83 | 122 | | |
84 | 123 | | |
85 | 124 | | |
86 | 125 | | |
87 | 126 | | |
88 | 127 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
94 | 132 | | |
95 | 133 | | |
| 134 | + | |
96 | 135 | | |
97 | 136 | | |
98 | 137 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
104 | 142 | | |
105 | | - | |
106 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
107 | 160 | | |
108 | 161 | | |
109 | 162 | | |
110 | | - | |
111 | 163 | | |
112 | 164 | | |
113 | 165 | | |
114 | 166 | | |
115 | 167 | | |
116 | 168 | | |
117 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
118 | 173 | | |
119 | 174 | | |
120 | 175 | | |
| |||
0 commit comments