@hasna/accounts 0.1.6 → 0.1.7
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 +20 -0
- package/dist/cli.js +35075 -27
- package/dist/index.js +46 -16
- package/dist/lib/agents.d.ts +37 -0
- package/dist/lib/agents.d.ts.map +1 -0
- package/dist/lib/apply.d.ts.map +1 -1
- package/dist/lib/claude-auth.d.ts +9 -1
- package/dist/lib/claude-auth.d.ts.map +1 -1
- package/dist/mcp.js +47 -17
- package/dist/storage.d.ts +74 -0
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +4336 -0
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -115,6 +115,7 @@ Implementation details: [docs/IMPLEMENT.md](docs/IMPLEMENT.md).
|
|
|
115
115
|
| `accounts hook install` | Install `claude()` wrapper — see [docs/hook.md](docs/hook.md). |
|
|
116
116
|
| `accounts hook uninstall` | Remove hook script. |
|
|
117
117
|
| `accounts hook path` | Print hook script path. |
|
|
118
|
+
| `accounts agents` | List Claude agent sessions across **all** profiles (`claude agents` only shows the current account). `--background`, `--profile <name>`, `--json`. |
|
|
118
119
|
| `accounts detect <name>` | Re-detect email from config dir. |
|
|
119
120
|
| `accounts doctor` | Check registry and dirs (exits 1 on errors). |
|
|
120
121
|
|
|
@@ -193,6 +194,25 @@ then invokes the real `claude` binary. Full behavior and footguns: [docs/hook.md
|
|
|
193
194
|
|
|
194
195
|
Overrides: `ACCOUNTS_HOME`, `ACCOUNTS_STORE_PATH`.
|
|
195
196
|
|
|
197
|
+
The native storage API is available from `@hasna/accounts/storage`. It exposes
|
|
198
|
+
the local registry paths, snapshot helpers, and optional S3 registry sync for
|
|
199
|
+
internal cross-machine use:
|
|
200
|
+
|
|
201
|
+
```ts
|
|
202
|
+
import { getAccountsStorageStatus, storagePush } from "@hasna/accounts/storage";
|
|
203
|
+
|
|
204
|
+
console.log(getAccountsStorageStatus().local.storePath);
|
|
205
|
+
await storagePush();
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
Remote sync uses service-owned S3 env names and only syncs the accounts registry
|
|
209
|
+
JSON by default; auth snapshots stay local.
|
|
210
|
+
|
|
211
|
+
- `HASNA_ACCOUNTS_STORAGE_MODE=local|remote|hybrid`
|
|
212
|
+
- `HASNA_ACCOUNTS_S3_BUCKET=hasna-xyz-opensource-accounts-prod`
|
|
213
|
+
- `HASNA_ACCOUNTS_S3_PREFIX=accounts/`
|
|
214
|
+
- `HASNA_ACCOUNTS_AWS_REGION=us-east-1`
|
|
215
|
+
|
|
196
216
|
## Supported tools
|
|
197
217
|
|
|
198
218
|
| Tool | id | Env var | Default dir |
|