aquaman-proxy 0.5.1 → 0.7.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 (74) hide show
  1. package/README.md +21 -13
  2. package/dist/cli/index.js +254 -110
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/core/audit/index.d.ts +5 -0
  5. package/dist/core/audit/index.d.ts.map +1 -0
  6. package/dist/core/audit/index.js +5 -0
  7. package/dist/core/audit/index.js.map +1 -0
  8. package/dist/core/audit/logger.d.ts +53 -0
  9. package/dist/core/audit/logger.d.ts.map +1 -0
  10. package/dist/core/audit/logger.js +262 -0
  11. package/dist/core/audit/logger.js.map +1 -0
  12. package/dist/core/credentials/backends/keepassxc.d.ts +45 -0
  13. package/dist/core/credentials/backends/keepassxc.d.ts.map +1 -0
  14. package/dist/core/credentials/backends/keepassxc.js +229 -0
  15. package/dist/core/credentials/backends/keepassxc.js.map +1 -0
  16. package/dist/core/credentials/backends/onepassword.d.ts +38 -0
  17. package/dist/core/credentials/backends/onepassword.d.ts.map +1 -0
  18. package/dist/core/credentials/backends/onepassword.js +218 -0
  19. package/dist/core/credentials/backends/onepassword.js.map +1 -0
  20. package/dist/core/credentials/backends/vault.d.ts +56 -0
  21. package/dist/core/credentials/backends/vault.d.ts.map +1 -0
  22. package/dist/core/credentials/backends/vault.js +206 -0
  23. package/dist/core/credentials/backends/vault.js.map +1 -0
  24. package/dist/core/credentials/index.d.ts +8 -0
  25. package/dist/core/credentials/index.d.ts.map +1 -0
  26. package/dist/core/credentials/index.js +8 -0
  27. package/dist/core/credentials/index.js.map +1 -0
  28. package/dist/core/credentials/store.d.ts +102 -0
  29. package/dist/core/credentials/store.d.ts.map +1 -0
  30. package/dist/core/credentials/store.js +289 -0
  31. package/dist/core/credentials/store.js.map +1 -0
  32. package/dist/core/index.d.ts +14 -0
  33. package/dist/core/index.d.ts.map +1 -0
  34. package/dist/core/index.js +18 -0
  35. package/dist/core/index.js.map +1 -0
  36. package/dist/core/types.d.ts +81 -0
  37. package/dist/core/types.d.ts.map +1 -0
  38. package/dist/core/types.js +11 -0
  39. package/dist/core/types.js.map +1 -0
  40. package/dist/core/utils/config.d.ts +19 -0
  41. package/dist/core/utils/config.d.ts.map +1 -0
  42. package/dist/core/utils/config.js +136 -0
  43. package/dist/core/utils/config.js.map +1 -0
  44. package/dist/core/utils/hash.d.ts +27 -0
  45. package/dist/core/utils/hash.d.ts.map +1 -0
  46. package/dist/core/utils/hash.js +348 -0
  47. package/dist/core/utils/hash.js.map +1 -0
  48. package/dist/core/utils/index.d.ts +6 -0
  49. package/dist/core/utils/index.d.ts.map +1 -0
  50. package/dist/core/utils/index.js +6 -0
  51. package/dist/core/utils/index.js.map +1 -0
  52. package/dist/daemon.d.ts +4 -19
  53. package/dist/daemon.d.ts.map +1 -1
  54. package/dist/daemon.js +34 -96
  55. package/dist/daemon.js.map +1 -1
  56. package/dist/index.d.ts +2 -1
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +2 -0
  59. package/dist/index.js.map +1 -1
  60. package/dist/migration/openclaw-migrator.d.ts +27 -1
  61. package/dist/migration/openclaw-migrator.d.ts.map +1 -1
  62. package/dist/migration/openclaw-migrator.js +94 -0
  63. package/dist/migration/openclaw-migrator.js.map +1 -1
  64. package/dist/oauth-token-cache.d.ts +1 -1
  65. package/dist/oauth-token-cache.d.ts.map +1 -1
  66. package/dist/openclaw/env-writer.d.ts +7 -7
  67. package/dist/openclaw/env-writer.d.ts.map +1 -1
  68. package/dist/openclaw/env-writer.js +8 -13
  69. package/dist/openclaw/env-writer.js.map +1 -1
  70. package/dist/openclaw/integration.d.ts +5 -3
  71. package/dist/openclaw/integration.d.ts.map +1 -1
  72. package/dist/openclaw/integration.js +7 -14
  73. package/dist/openclaw/integration.js.map +1 -1
  74. package/package.json +7 -3
package/README.md CHANGED
@@ -8,15 +8,16 @@ Credential isolation proxy and CLI for [aquaman](https://github.com/tech4242/aqu
8
8
  Agent / OpenClaw Gateway Aquaman Proxy
9
9
  ┌──────────────────────┐ ┌──────────────────────┐
10
10
  │ │ │ │
11
- │ ANTHROPIC_BASE_URL │──request────>│ Keychain / 1Pass / │
12
- │ = localhost:8081 Vault / Encrypted │
13
- │<─response────│
14
- │ fetch() interceptor │──channel────>│ + Auth injected: │
15
- │ redirects channel │ traffic │ header / url-path │
11
+ │ ANTHROPIC_BASE_URL │══ Unix ════>│ Keychain / 1Pass / │
12
+ │ = aquaman.local │ Domain │ Vault / Encrypted │
13
+ │<═ Socket ═══│
14
+ │ fetch() interceptor │══ (UDS) ══=>│ + Auth injected: │
15
+ │ redirects channel │ │ header / url-path │
16
16
  │ API traffic │ │ basic / oauth │
17
17
  │ │ │ │
18
- │ No credentials. │ │ │
19
- Nothing to steal. │ │
18
+ │ No credentials. │ ~/.aquaman/ │ │
19
+ No open ports. proxy.sock │ │
20
+ │ Nothing to steal. │ (chmod 600) │ │
20
21
  └──────────────────────┘ └───┬──────────┬───────┘
21
22
  │ │
22
23
  │ ▼
@@ -28,26 +29,33 @@ Agent / OpenClaw Gateway Aquaman Proxy
28
29
  slack.com/api ...
29
30
  ```
30
31
 
31
- This package is the right side. A reverse proxy that intercepts API requests and injects credentials from secure backends. 23 builtin services, four auth modes.
32
+ This package is the right side. A reverse proxy that listens on a Unix domain socket (`~/.aquaman/proxy.sock`) and injects credentials from secure backends. No TCP port, no network exposure. 23 builtin services, four auth modes.
32
33
 
33
34
  ## Quick Start
34
35
 
35
36
  With OpenClaw:
36
37
 
37
38
  ```bash
38
- npm install -g aquaman-proxy # 1. Install
39
- aquaman setup # 2. Store keys, install plugin, configure OpenClaw
40
- aquaman migrate openclaw --auto # 3. Move existing channel creds to secure store
41
- openclaw # 4. Proxy starts automatically via plugin
39
+ npm install -g aquaman-proxy # install the proxy CLI
40
+ aquaman setup # stores keys, installs plugin, configures OpenClaw
41
+ openclaw # proxy starts automatically via plugin
42
42
  ```
43
43
 
44
+ > `aquaman setup` auto-detects your credential backend. macOS defaults to Keychain,
45
+ > Linux defaults to encrypted file. Override with `--backend`:
46
+ > `aquaman setup --backend keepassxc`
47
+ > Options: `keychain`, `encrypted-file`, `keepassxc`, `1password`, `vault`
48
+
49
+ Existing plaintext credentials are migrated automatically during setup.
50
+ Run again anytime to migrate new credentials: `aquaman migrate openclaw --auto`
51
+
44
52
  Standalone:
45
53
 
46
54
  ```bash
47
55
  npm install -g aquaman-proxy
48
56
  aquaman init
49
57
  aquaman credentials add anthropic api_key
50
- aquaman daemon
58
+ aquaman daemon # listens on ~/.aquaman/proxy.sock
51
59
  ```
52
60
 
53
61
  Troubleshooting: `aquaman doctor`