@getverbal/cli 0.1.0 → 0.4.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 (79) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +34 -18
  3. package/dist/cli.js +19246 -56
  4. package/package.json +15 -8
  5. package/dist/auth/browser-auth.d.ts +0 -6
  6. package/dist/auth/browser-auth.d.ts.map +0 -1
  7. package/dist/auth/browser-auth.js +0 -202
  8. package/dist/auth/browser-auth.js.map +0 -1
  9. package/dist/auth/credentials.d.ts +0 -6
  10. package/dist/auth/credentials.d.ts.map +0 -1
  11. package/dist/auth/credentials.js +0 -78
  12. package/dist/auth/credentials.js.map +0 -1
  13. package/dist/cli.d.ts +0 -3
  14. package/dist/cli.d.ts.map +0 -1
  15. package/dist/cli.js.map +0 -1
  16. package/dist/commands/init.d.ts +0 -2
  17. package/dist/commands/init.d.ts.map +0 -1
  18. package/dist/commands/init.js +0 -188
  19. package/dist/commands/init.js.map +0 -1
  20. package/dist/commands/logout.d.ts +0 -2
  21. package/dist/commands/logout.d.ts.map +0 -1
  22. package/dist/commands/logout.js +0 -17
  23. package/dist/commands/logout.js.map +0 -1
  24. package/dist/commands/status.d.ts +0 -2
  25. package/dist/commands/status.d.ts.map +0 -1
  26. package/dist/commands/status.js +0 -43
  27. package/dist/commands/status.js.map +0 -1
  28. package/dist/commands/uninstall.d.ts +0 -2
  29. package/dist/commands/uninstall.d.ts.map +0 -1
  30. package/dist/commands/uninstall.js +0 -43
  31. package/dist/commands/uninstall.js.map +0 -1
  32. package/dist/configure/claude-code.d.ts +0 -7
  33. package/dist/configure/claude-code.d.ts.map +0 -1
  34. package/dist/configure/claude-code.js +0 -11
  35. package/dist/configure/claude-code.js.map +0 -1
  36. package/dist/configure/claude-desktop.d.ts +0 -8
  37. package/dist/configure/claude-desktop.d.ts.map +0 -1
  38. package/dist/configure/claude-desktop.js +0 -28
  39. package/dist/configure/claude-desktop.js.map +0 -1
  40. package/dist/configure/codex.d.ts +0 -7
  41. package/dist/configure/codex.d.ts.map +0 -1
  42. package/dist/configure/codex.js +0 -12
  43. package/dist/configure/codex.js.map +0 -1
  44. package/dist/configure/cursor.d.ts +0 -7
  45. package/dist/configure/cursor.d.ts.map +0 -1
  46. package/dist/configure/cursor.js +0 -12
  47. package/dist/configure/cursor.js.map +0 -1
  48. package/dist/configure/index.d.ts +0 -30
  49. package/dist/configure/index.d.ts.map +0 -1
  50. package/dist/configure/index.js +0 -149
  51. package/dist/configure/index.js.map +0 -1
  52. package/dist/detect/claude-code.d.ts +0 -3
  53. package/dist/detect/claude-code.d.ts.map +0 -1
  54. package/dist/detect/claude-code.js +0 -82
  55. package/dist/detect/claude-code.js.map +0 -1
  56. package/dist/detect/claude-desktop.d.ts +0 -3
  57. package/dist/detect/claude-desktop.d.ts.map +0 -1
  58. package/dist/detect/claude-desktop.js +0 -89
  59. package/dist/detect/claude-desktop.js.map +0 -1
  60. package/dist/detect/codex.d.ts +0 -3
  61. package/dist/detect/codex.d.ts.map +0 -1
  62. package/dist/detect/codex.js +0 -64
  63. package/dist/detect/codex.js.map +0 -1
  64. package/dist/detect/cursor.d.ts +0 -3
  65. package/dist/detect/cursor.d.ts.map +0 -1
  66. package/dist/detect/cursor.js +0 -81
  67. package/dist/detect/cursor.js.map +0 -1
  68. package/dist/detect/index.d.ts +0 -3
  69. package/dist/detect/index.d.ts.map +0 -1
  70. package/dist/detect/index.js +0 -28
  71. package/dist/detect/index.js.map +0 -1
  72. package/dist/types.d.ts +0 -18
  73. package/dist/types.d.ts.map +0 -1
  74. package/dist/types.js +0 -2
  75. package/dist/types.js.map +0 -1
  76. package/dist/verify.d.ts +0 -7
  77. package/dist/verify.d.ts.map +0 -1
  78. package/dist/verify.js +0 -40
  79. package/dist/verify.js.map +0 -1
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Verbal Inc.
3
+ Copyright (c) 2026 Verbal Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,35 +1,51 @@
1
- # getverbal
1
+ # @getverbal/cli
2
2
 
3
- Set up Verbal AI spend tracking in one command.
3
+ AI spend tracker. One command sets up usage tracking across Claude Code, Claude Desktop, Cursor, and Codex.
4
4
 
5
- ## Quick Start
5
+ ## Install
6
6
 
7
- ```sh
8
- npx getverbal init
7
+ ```bash
8
+ npx @getverbal/cli init
9
9
  ```
10
10
 
11
- That's it. Verbal auto-detects your AI tools, authenticates via browser, and configures the MCP server for usage tracking.
11
+ This authenticates you, detects your installed AI tools, configures MCP tracking for each one, and verifies the connection.
12
12
 
13
- ## What It Does
13
+ ## What gets tracked
14
14
 
15
- `getverbal init` scans your machine for supported AI tools — Claude Code, Claude Desktop, Cursor, and Codex — then authenticates your Verbal account via browser and injects the Verbal MCP server configuration into each detected tool. After setup, every LLM call is tracked automatically.
15
+ - Token counts (input, output, cache read/write)
16
+ - Cost (auto-calculated from model pricing)
17
+ - Model and provider
18
+ - Prompt content (with automatic PII/secret redaction)
19
+
20
+ Set `VERBAL_CAPTURE_MODE=usage` in your MCP config to track only tokens and cost without prompt content.
16
21
 
17
22
  ## Commands
18
23
 
19
- | Command | Description |
20
- |-------------|--------------------------------------------------------|
21
- | `init` | Authenticate and configure all detected AI tools |
22
- | `status` | Show current configuration and connection status |
23
- | `logout` | Remove stored credentials |
24
- | `uninstall` | Remove Verbal from all AI tools and delete credentials |
24
+ | Command | Description |
25
+ |---------|-------------|
26
+ | `getverbal init` | Authenticate and configure all detected AI tools |
27
+ | `getverbal status` | Show current configuration and connection status |
28
+ | `getverbal dashboard` | Open your Verbal dashboard in the browser |
29
+ | `getverbal import` | Bulk import from Claude/ChatGPT exports or local history |
30
+ | `getverbal update` | Update to the latest version |
31
+ | `getverbal logout` | Remove stored credentials |
32
+ | `getverbal uninstall` | Remove Verbal from all tools and delete credentials |
33
+
34
+ ## Enhanced tracking (Claude Code)
35
+
36
+ Install hooks for richer data using provider-reported token counts:
37
+
38
+ ```bash
39
+ getverbal hooks install --claude
40
+ ```
25
41
 
26
- ## Requirements
42
+ ## Dashboard
27
43
 
28
- - Node.js >= 18
44
+ View your spend at [getverbal.ai/dashboard](https://www.getverbal.ai/dashboard).
29
45
 
30
- ## More Info
46
+ ## Docs
31
47
 
32
- [https://getverbal.ai](https://getverbal.ai)
48
+ Full documentation at [getverbal.ai/docs](https://www.getverbal.ai/docs).
33
49
 
34
50
  ## License
35
51