logicsrc/packages/cli/src
Anthony Ettinger c01e7bcd04 pwa: read vault values in the browser with a pasted identity key
The web app listed vaults but could never show a value: decryption needs the
member's X25519 secret key, which only lives in identity.json on the machine
that ran `logicsrc login`.

Each vault now has a page (/teams/:slug/vaults/:id, linked from the
dashboard) listing its secret names. Paste the identity key (or the whole
identity.json) and public/vault.js decrypts in the browser with the same
libsodium calls as the CLI: crypto_box_seal_open for the grant, then
crypto_secretbox_open_easy per value. Nothing is sent to the server.

- The pasted key is checked against the public key the server has on file
  before use, so a key from another machine is named, not a generic failure.
- Show / Copy per value, Download .env, Forget key. The key is kept in
  sessionStorage unless "remember on this device" is ticked.
- A member with no identity yet can create one in the browser. That
  registers only the public half, and is offered only when no key is
  registered, since replacing one would orphan every grant sealed to it.
- libsodium is served from node_modules at /vendor (no CDN), like simplewebauthn.
- Vault pages are no-store and the service worker no longer caches no-store pages.
- CLI: `logicsrc teams key` prints the secret key to stdout alone (pipe to
  pbcopy) and warns when the server holds a different public key. The page
  also gives a jq one-liner for CLIs released before this command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 09:46:44 +00:00
..
config.test.ts fix(cli): block config prototype pollution (#54) 2026-06-13 22:52:20 -07:00
config.ts fix(credentials): one vault per user, in the config dir (#119) 2026-07-31 22:53:17 -07:00
context.ts Add the LogicSRC OpenContext specification (#132) 2026-08-09 11:46:11 -07:00
creds.ts vault + teams: filter secrets by category, export to CSV, simpler help (#195) 2026-09-23 21:08:08 -07:00
fixtures.ts Scaffold LogicSRC and CommandBoard plugins 2026-06-06 11:24:02 +00:00
fleet.test.ts OpenFleet reference implementation: @logicsrc/openfleet, logicsrc fleet, and Claude Code hooks (#185) 2026-09-13 10:58:55 +00:00
fleet.ts OpenFleet reference implementation: @logicsrc/openfleet, logicsrc fleet, and Claude Code hooks (#185) 2026-09-13 10:58:55 +00:00
format.ts vault + teams: filter secrets by category, export to CSV, simpler help (#195) 2026-09-23 21:08:08 -07:00
index.test.ts Add feed discovery plugin 2026-06-09 09:34:31 +00:00
index.ts pwa: read vault values in the browser with a pasted identity key 2026-10-04 09:46:44 +00:00
install-npm.test.ts Ship OpenFleet contracts and the OpenWall draft proposal (#177) 2026-09-13 00:57:45 -07:00
mcp.ts logicsrc CLI 0.2.0: every LogicSRC tool is a word after logicsrc (#157) 2026-09-12 11:16:40 -07:00
numeric-options.test.ts fix(cli): validate positive numeric options (#49) 2026-06-13 22:55:18 -07:00
numeric-options.ts fix(cli): validate positive numeric options (#49) 2026-06-13 22:55:18 -07:00
ontology.ts feat(openontology): Phase 2 + Phase 3 — storage, REST/SSE, MCP, RDF/SHACL, adapters, TUI, explorer (#101) 2026-07-28 05:10:33 -07:00
openmcp.ts logicsrc CLI 0.2.0: every LogicSRC tool is a word after logicsrc (#157) 2026-09-12 11:16:40 -07:00
openspec-dev.ts logicsrc CLI 0.2.0: every LogicSRC tool is a word after logicsrc (#157) 2026-09-12 11:16:40 -07:00
openspec.ts Implement OpenSpec artifacts and SDK contracts 2026-06-06 16:44:58 +00:00
prd.ts Add Tech Stack and Monetization sections to OpenPRD (0.3) (#144) 2026-09-06 16:50:11 -07:00
registry.ts Add AgentBBS connector plugin (#131) 2026-08-04 18:43:31 -07:00
rotate.ts feat(credentials): re-key team vaults, and reach sh1pt's vault as a provider (#117) 2026-07-30 18:41:03 -07:00
secrets-link.test.ts feat(credentials): link directories to team secrets (#129) 2026-08-04 17:17:04 -07:00
secrets-link.ts feat(credentials): link directories to team secrets (#129) 2026-08-04 17:17:04 -07:00
ssh.test.ts Add SSH keys and config to credential sharing (#139) 2026-08-13 17:03:00 -07:00
ssh.ts Add SSH keys and config to credential sharing (#139) 2026-08-13 17:03:00 -07:00
teams.test.ts fix(cli): vault names join with "--", not "/" — the server rejects slashes (#112) 2026-07-30 13:32:07 -07:00
teams.ts pwa: read vault values in the browser with a pasted identity key 2026-10-04 09:46:44 +00:00
umbrella.test.ts logicsrc CLI 0.2.0: every LogicSRC tool is a word after logicsrc (#157) 2026-09-12 11:16:40 -07:00
update.test.ts fix(cli): make logicsrc update actually check for updates 2026-07-29 06:15:28 +00:00
update.ts fix(credentials): one vault per user, in the config dir (#119) 2026-07-31 22:53:17 -07:00
vault-tui-run.ts Add logicsrc teams tui, a browser for team vaults (#146) 2026-09-08 08:07:17 -07:00
vault-tui.test.ts Add logicsrc teams tui, a browser for team vaults (#146) 2026-09-08 08:07:17 -07:00
vault-tui.ts Add logicsrc teams tui, a browser for team vaults (#146) 2026-09-08 08:07:17 -07:00