a24z 1.0.19 → 1.0.21
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.
- package/README.md +10 -75
- package/dist/index.js +150 -9
- package/dist/index.js.map +572 -1
- package/package.json +4 -4
- package/dist/file.js +0 -12
- package/dist/hook-handler/hook-handler.d.ts +0 -1
- package/dist/hook-handler/hook-handler.d.ts.map +0 -1
- package/dist/hook-handler/index.d.ts +0 -2
- package/dist/hook-handler/index.d.ts.map +0 -1
- package/dist/hook-handler/index.js +0 -16
- package/dist/hook-handler/package.json +0 -3
- package/dist/hook-handler.d.ts +0 -2
- package/dist/hook-handler.d.ts.map +0 -1
- package/dist/http-transport.d.ts +0 -8
- package/dist/http-transport.d.ts.map +0 -1
- package/dist/http-transport.js +0 -33
- package/dist/http-transport.js.map +0 -1
- package/dist/logger.d.ts +0 -19
- package/dist/logger.d.ts.map +0 -1
- package/dist/logger.js +0 -53
- package/dist/logger.js.map +0 -1
- package/dist/worker-pipeline.js +0 -38
- package/dist/worker.js +0 -54
- package/dist/worker1.js +0 -171
package/README.md
CHANGED
|
@@ -18,24 +18,25 @@ npm install -g a24z
|
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
20
|
# Install hooks and configure Claude Code
|
|
21
|
-
a24z
|
|
21
|
+
a24z login && a24z install claude-code
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
**That's it!** Your Claude Code tools are now being monitored. View your dashboard at [a24z.ai](https://app.a24z.ai).
|
|
25
25
|
|
|
26
26
|
## ✨ Features
|
|
27
27
|
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
28
|
+
- **One-Command Installation**: Get up and running with just `a24z install claude-code`
|
|
29
|
+
- **Supports multiple CLIs**: Currently Supports Claude Code, Gemini CLI, and Codex
|
|
30
|
+
- **Real-time Dashboard**: Live monitoring of all tool executions
|
|
31
|
+
- **Performance Analytics**: Success rates, execution times, and trends
|
|
32
|
+
- **Tool Insights**: Per-tool performance analysis and optimization suggestions
|
|
33
|
+
- **Secure**: Enterprise-grade authentication and data protection
|
|
34
|
+
- **Zero Configuration**: Works out of the box with sensible defaults
|
|
35
|
+
- **Robust Hook System**: Supports all hook types
|
|
35
36
|
|
|
36
37
|
## 📋 Commands
|
|
37
38
|
|
|
38
|
-
### `a24z install
|
|
39
|
+
### `a24z install <tool>`
|
|
39
40
|
|
|
40
41
|
Installs A24Z observability hooks for Claude Code.
|
|
41
42
|
|
|
@@ -119,18 +120,6 @@ a24z configures direct CLI integration with Claude Code's native hook system:
|
|
|
119
120
|
```json
|
|
120
121
|
{
|
|
121
122
|
"hooks": {
|
|
122
|
-
"PreToolUse": [{
|
|
123
|
-
"matcher": "*",
|
|
124
|
-
"hooks": [{ "type": "command", "command": "a24z hook claude-code" }]
|
|
125
|
-
}],
|
|
126
|
-
"PostToolUse": [{
|
|
127
|
-
"matcher": "*",
|
|
128
|
-
"hooks": [{ "type": "command", "command": "a24z hook claude-code" }]
|
|
129
|
-
}],
|
|
130
|
-
"UserPromptSubmit": [{
|
|
131
|
-
"matcher": "*",
|
|
132
|
-
"hooks": [{ "type": "command", "command": "a24z hook claude-code" }]
|
|
133
|
-
}],
|
|
134
123
|
"SessionStart": [{
|
|
135
124
|
"matcher": "*",
|
|
136
125
|
"hooks": [{ "type": "command", "command": "a24z hook claude-code" }]
|
|
@@ -138,22 +127,6 @@ a24z configures direct CLI integration with Claude Code's native hook system:
|
|
|
138
127
|
"SessionEnd": [{
|
|
139
128
|
"matcher": "*",
|
|
140
129
|
"hooks": [{ "type": "command", "command": "a24z hook claude-code" }]
|
|
141
|
-
}],
|
|
142
|
-
"SubagentStop": [{
|
|
143
|
-
"matcher": "*",
|
|
144
|
-
"hooks": [{ "type": "command", "command": "a24z hook claude-code" }]
|
|
145
|
-
}],
|
|
146
|
-
"Notification": [{
|
|
147
|
-
"matcher": "*",
|
|
148
|
-
"hooks": [{ "type": "command", "command": "a24z hook claude-code" }]
|
|
149
|
-
}],
|
|
150
|
-
"Stop": [{
|
|
151
|
-
"matcher": "*",
|
|
152
|
-
"hooks": [{ "type": "command", "command": "a24z hook claude-code" }]
|
|
153
|
-
}],
|
|
154
|
-
"PreCompact": [{
|
|
155
|
-
"matcher": "*",
|
|
156
|
-
"hooks": [{ "type": "command", "command": "a24z hook claude-code" }]
|
|
157
130
|
}]
|
|
158
131
|
}
|
|
159
132
|
}
|
|
@@ -187,44 +160,6 @@ a24z status
|
|
|
187
160
|
a24z uninstall gemini-cli
|
|
188
161
|
```
|
|
189
162
|
|
|
190
|
-
### Environment Variables
|
|
191
|
-
|
|
192
|
-
The CLI supports environment-based configuration for development and production environments:
|
|
193
|
-
|
|
194
|
-
#### Available Environment Variables
|
|
195
|
-
|
|
196
|
-
- **`NODE_ENV`**: Set to `development` or `production` (default: `production`)
|
|
197
|
-
- Development mode uses `http://localhost:4000` for API and `http://localhost:3000` for Auth
|
|
198
|
-
- Production mode uses `https://api.a24z.ai` and `https://app.a24z.ai`
|
|
199
|
-
|
|
200
|
-
- **`A24Z_API_URL`**: Override the API endpoint (e.g., `http://localhost:4000`)
|
|
201
|
-
- **`A24Z_AUTH_URL`**: Override the Auth endpoint (e.g., `http://localhost:3000`)
|
|
202
|
-
- **`WORKOS_CLIENT_ID`**: Override the WorkOS client ID for authentication
|
|
203
|
-
|
|
204
|
-
#### Usage Examples
|
|
205
|
-
|
|
206
|
-
```bash
|
|
207
|
-
# Use development environment
|
|
208
|
-
NODE_ENV=development a24z install claude-code
|
|
209
|
-
|
|
210
|
-
# Use custom endpoints
|
|
211
|
-
A24Z_API_URL=http://staging-api.a24z.ai a24z install claude-code
|
|
212
|
-
|
|
213
|
-
# Combine multiple overrides
|
|
214
|
-
NODE_ENV=development A24Z_API_URL=http://localhost:5000 a24z login
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
**Note**: Environment variables only apply to new installations. Existing configurations are preserved in `~/.a24z/settings.json`.
|
|
218
|
-
|
|
219
|
-
### Installation with Custom URLs
|
|
220
|
-
|
|
221
|
-
You can also specify custom URLs during installation using command-line flags:
|
|
222
|
-
|
|
223
|
-
```bash
|
|
224
|
-
# Install with custom endpoints
|
|
225
|
-
a24z install claude-code --api-url https://custom-api.example.com --auth-url https://custom-auth.example.com
|
|
226
|
-
```
|
|
227
|
-
|
|
228
163
|
### File Locations
|
|
229
164
|
|
|
230
165
|
- **A24Z Config**: `~/.a24z/settings.json` (main configuration)
|