shraga 0.1.107 → 0.1.109
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 +4 -1
- package/dist/client/assets/{index-BEaOLjDM.js → index-CFvAge7k.js} +112 -112
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/src/client/components/ClaudeAccountSection.tsx +88 -0
- package/src/client/components/ConfigPanel.tsx +3 -0
- package/src/server/boot.ts +38 -3
- package/src/server/claude-login.ts +229 -0
- package/src/server/claude-usage.ts +32 -1
- package/src/server/engine/claude-code.ts +2 -2
package/README.md
CHANGED
|
@@ -197,9 +197,12 @@ with:
|
|
|
197
197
|
- **Per-user subscriptions (optional).** A requester whose email resolves to a contact with a
|
|
198
198
|
`workspace/users/<contactId>/.claude` folder runs on that folder's login; everyone else keeps the default.
|
|
199
199
|
The folder is data-sync ignored and hidden from the workspace UI. Log each user in once:
|
|
200
|
+
**Agent Configuration → Claude subscription** in the web UI (Connect / Replace / Use shared; the owner
|
|
201
|
+
also manages the shared login there, no SSH), or by hand:
|
|
200
202
|
`CLAUDE_CONFIG_DIR=<DATA_DIR>/workspace/users/<contactId>/.claude claude auth login`.
|
|
201
203
|
A folder without a login fails the run with the CLI's 401 — it never falls back to the default account.
|
|
202
|
-
|
|
204
|
+
The **Claude usage** gauge is per viewer: a routed viewer sees their own account's limits (read from
|
|
205
|
+
that folder only, never the keychain), everyone else the default login's. Same trust model as the default login: the agent's Bash can
|
|
203
206
|
read a routed login just as it can read the default one.
|
|
204
207
|
|
|
205
208
|
## Configuration
|