@kehto/paja 0.16.0 → 0.16.1
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 +19 -6
- package/dist/browser-host.js +2313 -2019
- package/dist/browser-host.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -183,8 +183,10 @@ node scripts/build-paja-pages.mjs
|
|
|
183
183
|
```
|
|
184
184
|
|
|
185
185
|
When `PAJA_UPLOAD_SERVERS` is set, the runtime enables the Blossom upload rail
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
and also makes those servers explicit NAP-RESOURCE fallbacks. It is not needed
|
|
187
|
+
for read-side discovery: resources learned through OUTBOX use their event hints
|
|
188
|
+
and hinted-author/publisher server lists first, then the active shell user's
|
|
189
|
+
published list.
|
|
188
190
|
|
|
189
191
|
## Installed intent handlers and delivery
|
|
190
192
|
|
|
@@ -313,9 +315,19 @@ bytes.
|
|
|
313
315
|
`data:` remains locally decoded. `blossom:` is a separate, content-addressed
|
|
314
316
|
boundary and is advertised because each request may provide server locations
|
|
315
317
|
without a host default. Paja accepts only public-looking HTTPS origin hints,
|
|
316
|
-
discards invalid/private literals, deduplicates them
|
|
317
|
-
|
|
318
|
-
|
|
318
|
+
discards invalid/private literals, and deduplicates them. For a canonical URL
|
|
319
|
+
previously returned to the same napplet window by `outbox.getEvent`,
|
|
320
|
+
`outbox.query`, or `outbox.subscribe`, Paja retains bounded event context
|
|
321
|
+
without prefetching bytes. Resolution tries request and
|
|
322
|
+
event-local server hints first, then lazily queries hinted authors' and the
|
|
323
|
+
event publisher's newest BUD-03 kind `10063` lists through the verified
|
|
324
|
+
NIP-65-aware OUTBOX router, then queries the active shell user's BUD-03 list
|
|
325
|
+
through that same router, then uses host-configured runtime-pointer and
|
|
326
|
+
upload-runtime fallbacks. The user-list
|
|
327
|
+
lookup works independently of upload mode; an upload runtime may reuse the same
|
|
328
|
+
servers when present. ROM-specific event and publisher locations retain
|
|
329
|
+
priority over the user/runtime fallbacks. The combined list is capped at eight
|
|
330
|
+
candidates. The only accepted identifier is `blossom:sha256:<hex>`;
|
|
319
331
|
Paja refuses redirects, verifies the requested SHA-256, and permits plain-HTTP
|
|
320
332
|
transport only for configured loopback development defaults. Browser-only Paja
|
|
321
333
|
cannot pin DNS results, so production runtimes must add the draft's DNS-time
|
|
@@ -323,7 +335,8 @@ private-address checks. This behavior targets draft
|
|
|
323
335
|
[NAP-RESOURCE at `9511232`](https://github.com/napplet/naps/blob/9511232f69313aa7953d110e35d32cc28d506f66/naps/NAP-RESOURCE.md), with the merged package implementation
|
|
324
336
|
[`napplet/web#206@19e0029b`](https://github.com/napplet/web/pull/206) released as
|
|
325
337
|
`@napplet/core`/`@napplet/nap` 0.32.0, `@napplet/shim` 0.30.0, and
|
|
326
|
-
`@napplet/sdk` 0.28.0.
|
|
338
|
+
`@napplet/sdk` 0.28.0. Publisher discovery follows
|
|
339
|
+
[Blossom BUD-03 at `b5bd280`](https://github.com/hzrd149/blossom/blob/b5bd2801d1763aa635fc8fea7a76597e0eb18990/buds/03.md).
|
|
327
340
|
|
|
328
341
|
Full package docs: [`docs/packages/paja.md`](../../docs/packages/paja.md).
|
|
329
342
|
Getting started: [`docs/how-tos/paja-getting-started.md`](../../docs/how-tos/paja-getting-started.md).
|