agentrace 0.1.0 → 0.1.2

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 (42) hide show
  1. package/README.md +47 -0
  2. package/dist/index.js +1999 -70
  3. package/package.json +3 -2
  4. package/dist/commands/init.d.ts +0 -8
  5. package/dist/commands/init.js +0 -165
  6. package/dist/commands/login.d.ts +0 -1
  7. package/dist/commands/login.js +0 -40
  8. package/dist/commands/mcp-server.d.ts +0 -1
  9. package/dist/commands/mcp-server.js +0 -480
  10. package/dist/commands/off.d.ts +0 -4
  11. package/dist/commands/off.js +0 -46
  12. package/dist/commands/on.d.ts +0 -5
  13. package/dist/commands/on.js +0 -69
  14. package/dist/commands/send.d.ts +0 -12
  15. package/dist/commands/send.js +0 -232
  16. package/dist/commands/uninstall.d.ts +0 -4
  17. package/dist/commands/uninstall.js +0 -68
  18. package/dist/config/cursor.d.ts +0 -8
  19. package/dist/config/cursor.js +0 -57
  20. package/dist/config/manager.d.ts +0 -18
  21. package/dist/config/manager.js +0 -90
  22. package/dist/config/manager.test.d.ts +0 -1
  23. package/dist/config/manager.test.js +0 -86
  24. package/dist/hooks/installer.d.ts +0 -67
  25. package/dist/hooks/installer.js +0 -430
  26. package/dist/hooks/installer.test.d.ts +0 -1
  27. package/dist/hooks/installer.test.js +0 -166
  28. package/dist/index.d.ts +0 -2
  29. package/dist/mcp/plan-document-client.d.ts +0 -114
  30. package/dist/mcp/plan-document-client.js +0 -92
  31. package/dist/utils/browser.d.ts +0 -6
  32. package/dist/utils/browser.js +0 -40
  33. package/dist/utils/callback-server.d.ts +0 -10
  34. package/dist/utils/callback-server.js +0 -81
  35. package/dist/utils/http.d.ts +0 -28
  36. package/dist/utils/http.js +0 -60
  37. package/dist/utils/proxy.d.ts +0 -11
  38. package/dist/utils/proxy.js +0 -29
  39. package/dist/utils/proxy.test.d.ts +0 -1
  40. package/dist/utils/proxy.test.js +0 -116
  41. package/dist/utils/session-finder.d.ts +0 -10
  42. package/dist/utils/session-finder.js +0 -66
package/README.md CHANGED
@@ -44,6 +44,7 @@ That's it! When you use Claude Code, sessions will be automatically sent to Agen
44
44
  | `agentrace off --local` | Disable hooks for current project |
45
45
  | `agentrace uninstall` | Remove hooks and configuration |
46
46
  | `agentrace uninstall --local` | Remove project-local settings only |
47
+ | `agentrace doctor` | Check configuration and server status |
47
48
 
48
49
  ## Command Details
49
50
 
@@ -113,12 +114,58 @@ npx agentrace uninstall
113
114
  npx agentrace uninstall --local
114
115
  ```
115
116
 
117
+ ### doctor
118
+
119
+ Displays configuration status and checks server connectivity.
120
+
121
+ ```bash
122
+ npx agentrace doctor
123
+ ```
124
+
125
+ **Output example:**
126
+
127
+ ```
128
+ AgenTrace Doctor
129
+
130
+ ================
131
+
132
+ CLI Version: 0.1.0
133
+
134
+ Configuration:
135
+ Global config: /Users/you/.agentrace/config.json
136
+ Status: ✓ Found
137
+
138
+ Local config: /path/to/project/.agentrace/config.json
139
+ Status: ✓ Found
140
+
141
+ Active config: Local (/path/to/project/.agentrace/config.json)
142
+ Server URL: http://localhost:9080
143
+ API Key: agtr_xxx****xxxx
144
+
145
+ Server Status:
146
+ Connection: ✓ Connected
147
+ Server Version: v0.1.0
148
+ ```
149
+
116
150
  ### send
117
151
 
118
152
  This command is automatically called by Claude Code's Stop hook. You normally don't need to run it manually.
119
153
 
120
154
  ## Configuration Files
121
155
 
156
+ ### Config Loading Priority
157
+
158
+ The CLI loads configuration in the following order:
159
+
160
+ 1. **Local config**: Searches from the current directory up to parent directories for `.agentrace/config.json`
161
+ 2. **Global config**: `~/.agentrace/config.json`
162
+
163
+ This means even when you're in a subdirectory of a project, the project's local config will be used.
164
+
165
+ Use `agentrace doctor` to see which config is currently active.
166
+
167
+ ### File Locations
168
+
122
169
  Configuration is stored in the following locations:
123
170
 
124
171
  | File | Location |