a24z 1.0.17 → 1.0.19
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 +58 -1
- package/dist/file.js +12 -0
- package/dist/hook-handler/hook-handler.d.ts +1 -0
- package/dist/hook-handler/hook-handler.d.ts.map +1 -0
- package/dist/hook-handler/index.d.ts +2 -0
- package/dist/hook-handler/index.d.ts.map +1 -0
- package/dist/hook-handler/index.js +16 -0
- package/dist/hook-handler/package.json +3 -0
- package/dist/hook-handler.d.ts +2 -0
- package/dist/hook-handler.d.ts.map +1 -0
- package/dist/http-transport.d.ts +8 -0
- package/dist/http-transport.d.ts.map +1 -0
- package/dist/http-transport.js +33 -0
- package/dist/http-transport.js.map +1 -0
- package/dist/index.js +4 -18
- package/dist/index.js.map +1 -1
- package/dist/logger.d.ts +19 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +53 -0
- package/dist/logger.js.map +1 -0
- package/dist/worker-pipeline.js +38 -0
- package/dist/worker.js +54 -0
- package/dist/worker1.js +171 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -170,10 +170,67 @@ Data is sent to the a24z platform where it's processed to provide:
|
|
|
170
170
|
|
|
171
171
|
## 🔧 Configuration
|
|
172
172
|
|
|
173
|
+
### Multiple Tools Support
|
|
174
|
+
|
|
175
|
+
The CLI now supports installing and managing multiple AI coding tools simultaneously. You can install multiple tools and they will all be configured to send telemetry data:
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
# Install multiple tools
|
|
179
|
+
a24z install claude-code
|
|
180
|
+
a24z install gemini-cli
|
|
181
|
+
a24z install codex
|
|
182
|
+
|
|
183
|
+
# Check status to see all installed tools
|
|
184
|
+
a24z status
|
|
185
|
+
|
|
186
|
+
# Uninstall a specific tool (others remain active)
|
|
187
|
+
a24z uninstall gemini-cli
|
|
188
|
+
```
|
|
189
|
+
|
|
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
|
+
|
|
173
228
|
### File Locations
|
|
174
229
|
|
|
175
|
-
- **Config**: `~/.
|
|
230
|
+
- **A24Z Config**: `~/.a24z/settings.json` (main configuration)
|
|
176
231
|
- **Claude Settings**: `~/.claude/settings.json`
|
|
232
|
+
- **Gemini Settings**: `~/.gemini/settings.json`
|
|
233
|
+
- **Codex Config**: `~/.codex/config.toml`
|
|
177
234
|
|
|
178
235
|
## 🔗 Links
|
|
179
236
|
|
package/dist/file.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const pino = require('./pino')
|
|
4
|
+
const { once } = require('events')
|
|
5
|
+
|
|
6
|
+
module.exports = async function (opts = {}) {
|
|
7
|
+
const destOpts = Object.assign({}, opts, { dest: opts.destination || 1, sync: false })
|
|
8
|
+
delete destOpts.destination
|
|
9
|
+
const destination = pino.destination(destOpts)
|
|
10
|
+
await once(destination, 'ready')
|
|
11
|
+
return destination
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"","sourceRoot":"","sources":["file:///Users/brandonin/Projects/a24z-observability/apps/a24z-cli/src/hook-handler.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"","sourceRoot":"","sources":["file:///Users/brandonin/Projects/a24z-observability/apps/a24z-cli/src/index.ts"],"names":[],"mappings":""}
|