@kehto/shell 0.24.3 → 0.24.4
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 +7 -0
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -27,6 +27,13 @@ source `dc1d24153c759152b6ba31a6ec9bea967798f2df`.
|
|
|
27
27
|
|
|
28
28
|
The primary entry point is `createShellBridge()` — it owns the postMessage listener, the NAP-SHELL `shell.ready` / `shell.init` handshake, manifest verification, and every dispatch back into the runtime engine.
|
|
29
29
|
|
|
30
|
+
ACL persistence uses the browser's `localStorage` key `napplet:acl`. A failed
|
|
31
|
+
write is intentionally reported through `bridge.runtime.aclState.persist()` or
|
|
32
|
+
`clear()` as `false`; the runtime keeps its already-applied live state, while a
|
|
33
|
+
fresh bridge can still load the prior durable policy until the caller retries.
|
|
34
|
+
Only ACL persistence has this result contract: unrelated browser persistence
|
|
35
|
+
adapters retain their documented best-effort behavior.
|
|
36
|
+
|
|
30
37
|
Current draft behaviors this package enforces:
|
|
31
38
|
|
|
32
39
|
- The shell does not inject a host-provided nostr object into napplets — NIP-5D explicitly forbids napplet-visible signing. Napplets call `relay.publish` / `relay.publishEncrypted` and the shell mediates the signing flow internally (NIP-44 default, NIP-04 opt-in for encrypted envelopes).
|
package/dist/index.js
CHANGED
|
@@ -125,10 +125,7 @@ function createCryptoAdapter(shellHooks) {
|
|
|
125
125
|
function createAclPersistence() {
|
|
126
126
|
return {
|
|
127
127
|
persist(data) {
|
|
128
|
-
|
|
129
|
-
localStorage.setItem("napplet:acl", data);
|
|
130
|
-
} catch {
|
|
131
|
-
}
|
|
128
|
+
localStorage.setItem("napplet:acl", data);
|
|
132
129
|
},
|
|
133
130
|
load() {
|
|
134
131
|
try {
|