@ai-matrx/vault 0.1.5 → 0.1.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.6
4
+ ### Unreleased
5
+
6
+ - Host-held lock: `host.lock` (`VaultLock`: `locked`, `subscribe`, `unlock`, optional `lock` and
7
+ `unlockLabel`). While locked the vault shows only "Vault locked" with Unlock, and every port call
8
+ (areas included) is refused at call time (`guardPort`, `VaultLockedError`). "Lock" joins the
9
+ vault menu when the host can lock on demand.
10
+ - Host clipboard custody: `host.clipboard` (`VaultClipboard.copy(text, { secret })`). Every copy goes
11
+ through it; secrets (passwords, codes, keys, revealable fields) carry `secret: true` so the host
12
+ can clear them later; a website or a visible username carries `secret: false`.
13
+ - `host.revealSeconds`: how long a shown value stays shown (default 20 s).
14
+ - Without these the web app and extension behave exactly as before.
15
+
16
+ ### Consumer action
17
+
18
+ - None for the web app and extension. The desktop app passes `lock`, `clipboard` and `revealSeconds`.
19
+
3
20
  ## 0.1.5
4
21
  ### Unreleased
5
22
 
@@ -56,3 +73,4 @@ extension's vault side panel and the desktop's vault import.
56
73
  - Vite hosts: `optimizeDeps.exclude: ["@ai-matrx/vault"]` (keeps the import workers' URLs).
57
74
  - Delete the host's own vault screens and client once adopted (no twins).
58
75
 
76
+
package/README.md CHANGED
@@ -26,7 +26,7 @@ const host = {
26
26
  sort, item, edit/new, the open panel.
27
27
  - **Extension**: pass `page`, `fill`, `capture`, `fillSetup`, `newPasswordFields` (types in
28
28
  `extension/host.ts`) and start at `view=page`.
29
- - **Desktop**: pass `nativeProvider` and `nativeImport`.
29
+ - **Desktop**: pass `nativeProvider` and `nativeImport`; a host that holds its own lock and clipboard passes `lock` (locked screen, every port call refused while locked), `clipboard` (copies go through it; `secret: true` = the host clears it later) and `revealSeconds`.
30
30
  - **Styling**: Tailwind utilities on the design-system tokens — add `@source "…/node_modules/@ai-matrx/vault/dist"` to the host stylesheet.
31
31
  - **Workers**: the import parsers run in module workers at `dist/io/*.worker.js` (`new Worker(new URL(…, import.meta.url))`). A Vite host excludes the package from dependency pre-bundling (`optimizeDeps.exclude: ["@ai-matrx/vault"]`) so the URLs stay intact.
32
32