@estiva-app/interop 0.59.0 → 0.61.0
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 +40 -0
- package/dist/folders.d.ts +4 -2
- package/dist/folders.d.ts.map +1 -1
- package/dist/folders.js +2 -2
- package/dist/folders.js.map +1 -1
- package/dist/projection.d.ts +31 -9
- package/dist/projection.d.ts.map +1 -1
- package/dist/projection.js +24 -27
- package/dist/projection.js.map +1 -1
- package/dist/references.d.ts +3 -2
- package/dist/references.d.ts.map +1 -1
- package/dist/references.js +3 -2
- package/dist/references.js.map +1 -1
- package/package.json +1 -1
- package/src/folders.ts +6 -4
- package/src/projection.ts +56 -38
- package/src/references.ts +3 -2
package/dist/references.d.ts
CHANGED
|
@@ -54,8 +54,9 @@ export interface SearchFileReferencesOptions extends Omit<FileCandidatesOptions,
|
|
|
54
54
|
* it is called now matches what was typed.
|
|
55
55
|
*
|
|
56
56
|
* Roots and renames are asked for separately, so a burst of renames cannot
|
|
57
|
-
* crowd every root out of the answer
|
|
58
|
-
*
|
|
57
|
+
* crowd every root out of the answer. Every typed word matches the start of a
|
|
58
|
+
* word (SPEC §5.2), so a word matches before it is finished; `search_mode` is
|
|
59
|
+
* still sent for a relay from before that rule. A relay that indexes none of these
|
|
59
60
|
* kinds answers nothing, and so does this. A failed read rejects, for
|
|
60
61
|
* `referenceSearch` to answer no hits for a while.
|
|
61
62
|
*/
|
package/dist/references.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"references.d.ts","sourceRoot":"","sources":["../src/references.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAML,KAAK,kBAAkB,EACvB,KAAK,aAAa,EACnB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,OAAO,EACb,MAAM,iBAAiB,CAAA;AAMxB;;;;GAIG;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AC,aAAa,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,EACtD,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,EAAE,KAAK,EAAE,EAAE,EAAE,GAAE,qBAA0B,GACxC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CA+B/B;AAED,MAAM,WAAW,2BAA4B,SAAQ,IAAI,CAAC,qBAAqB,EAAE,IAAI,CAAC;IACpF,2FAA2F;IAC3F,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAWD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,EAAE,KAAU,EAAE,GAAG,OAAO,EAAE,GAAE,2BAAgC,GAC3D,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAqB/B"}
|
package/dist/references.js
CHANGED
|
@@ -111,8 +111,9 @@ const searchedChange = (field, address) => field === 'title' || (field === 'ref'
|
|
|
111
111
|
* it is called now matches what was typed.
|
|
112
112
|
*
|
|
113
113
|
* Roots and renames are asked for separately, so a burst of renames cannot
|
|
114
|
-
* crowd every root out of the answer
|
|
115
|
-
*
|
|
114
|
+
* crowd every root out of the answer. Every typed word matches the start of a
|
|
115
|
+
* word (SPEC §5.2), so a word matches before it is finished; `search_mode` is
|
|
116
|
+
* still sent for a relay from before that rule. A relay that indexes none of these
|
|
116
117
|
* kinds answers nothing, and so does this. A failed read rejects, for
|
|
117
118
|
* `referenceSearch` to answer no hits for a while.
|
|
118
119
|
*/
|
package/dist/references.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"references.js","sourceRoot":"","sources":["../src/references.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EACL,SAAS,EACT,aAAa,EACb,WAAW,EACX,cAAc,EACd,QAAQ,GAGT,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,cAAc,EACd,cAAc,EACd,mBAAm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": "0.
|
|
3
|
+
"version": "0.61.0",
|
|
4
4
|
"description": "Render and act on another app's objects from its published NIP-89 manifest. The owner defines the projection; the consumer decides how it looks.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/src/folders.ts
CHANGED
|
@@ -219,13 +219,15 @@ export function planArchiveFolder(
|
|
|
219
219
|
/**
|
|
220
220
|
* A file as a move needs it. A `ForeignObject` from `resolveFolderContents` is
|
|
221
221
|
* one: `ref` is its identity, `parentRef` the file it is drawn beneath, and
|
|
222
|
-
* `
|
|
222
|
+
* `scopedTo` the `h` of its root — absent for a root placed by `buzz-channel`,
|
|
223
|
+
* which the relay stores globally. Not `folder`, which since LTX-4 also reads
|
|
224
|
+
* `buzz-channel`: that is where writes go, not who can read the root.
|
|
223
225
|
*/
|
|
224
226
|
export interface MovableFile {
|
|
225
227
|
ref: string
|
|
226
228
|
address?: string
|
|
227
229
|
parentRef?: string
|
|
228
|
-
|
|
230
|
+
scopedTo?: string
|
|
229
231
|
}
|
|
230
232
|
|
|
231
233
|
/**
|
|
@@ -334,7 +336,7 @@ export function planMoveFile(
|
|
|
334
336
|
const listed = listing?.find((candidate) => candidate.ref === file.ref || (!!file.address && candidate.address === file.address))
|
|
335
337
|
const set = listing ? [...(listed ? [listed] : []), ...listedBeneath(listing, listed ?? file)] : [file]
|
|
336
338
|
const moving = set.filter((candidate) => candidate.address)
|
|
337
|
-
if (args.to.private && moving.some((candidate) => candidate.
|
|
339
|
+
if (args.to.private && moving.some((candidate) => candidate.scopedTo !== args.to.id)) return { ok: false, reason: 'target-is-private' }
|
|
338
340
|
const moved = [...new Set(moving.map((candidate) => candidate.address!))]
|
|
339
341
|
if (!moved.length) return { ok: true, events: [], moved }
|
|
340
342
|
return {
|
|
@@ -426,7 +428,7 @@ export function planMoveFromFolders(
|
|
|
426
428
|
}
|
|
427
429
|
if (!to.hasState) return { ok: false, reason: 'target-has-no-state' }
|
|
428
430
|
if (moved.size === 0) {
|
|
429
|
-
if (to.private && file.
|
|
431
|
+
if (to.private && file.scopedTo !== to.id) return { ok: false, reason: 'target-is-private' }
|
|
430
432
|
if (!file.address) return { ok: true, removes: [], moved: [] }
|
|
431
433
|
const [add] = planPlaceFile(pubkey, createdAtMs, { folder: to.id, address: file.address, hasState: true })
|
|
432
434
|
return { ok: true, add, removes: [], moved: [file.address] }
|
package/src/projection.ts
CHANGED
|
@@ -1010,13 +1010,17 @@ interface Manifest {
|
|
|
1010
1010
|
* protocol change, and the field that tells a generic app from a specialized
|
|
1011
1011
|
* one that happens to draw a card.
|
|
1012
1012
|
*
|
|
1013
|
-
* A specialized app owns kinds and says nothing here. A generic app
|
|
1014
|
-
*
|
|
1015
|
-
*
|
|
1013
|
+
* A specialized app owns kinds and says nothing here. A generic app declares
|
|
1014
|
+
* the one aspect it renders for everyone else's files: `conversation` (Peek)
|
|
1015
|
+
* or `document` (Leaf, which writes the title, summary and text of any file
|
|
1016
|
+
* whose owner shares them, SPEC §7.8). It may own kinds as well, as Leaf owns
|
|
1017
|
+
* documents: the `k` tags say what it owns, this says what it renders.
|
|
1018
|
+
* See {@link ASPECTS}.
|
|
1016
1019
|
*
|
|
1017
1020
|
* What it is read for today: the bare file (§6.7) has no owner and so no
|
|
1018
1021
|
* `web` template of its own, and the app that renders its conversation is
|
|
1019
|
-
* where a link to it should land. Nothing
|
|
1022
|
+
* where a link to it should land. Nothing in this package consults
|
|
1023
|
+
* `document` yet; Leaf reads its own role.
|
|
1020
1024
|
*/
|
|
1021
1025
|
aspect?: string
|
|
1022
1026
|
/**
|
|
@@ -1214,6 +1218,16 @@ export function folderOf(root: SignedEvent): string | null {
|
|
|
1214
1218
|
return tagValue(root, 'h') ?? tagValue(root, 'buzz-channel') ?? null
|
|
1215
1219
|
}
|
|
1216
1220
|
|
|
1221
|
+
/**
|
|
1222
|
+
* {@link ForeignObject.folder}: `h`, then `buzz-channel` (LTX-4) — where a
|
|
1223
|
+
* change or a comment on the file goes. Not {@link folderOf}'s `d` fallback for
|
|
1224
|
+
* a `kind:39000`: a Folder drawn as a file kept no `folder` before, and
|
|
1225
|
+
* consumers gate "start inside" and membership on it.
|
|
1226
|
+
*/
|
|
1227
|
+
function writeFolderOf(root: SignedEvent): string | undefined {
|
|
1228
|
+
return tagValue(root, 'h') ?? tagValue(root, 'buzz-channel')
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1217
1231
|
/**
|
|
1218
1232
|
* Does the event carry this tag with this value — on **any** of them?
|
|
1219
1233
|
*
|
|
@@ -1422,13 +1436,10 @@ const BARE_FILE_MANIFEST: Manifest = {
|
|
|
1422
1436
|
slots: {
|
|
1423
1437
|
title: { tag: 'title', fold: 'title' },
|
|
1424
1438
|
/*
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
to an older change. Ship's body slot is the same fold, minus the
|
|
1429
|
-
`tag`: a `30840` carries its text in `content`, never in a tag.
|
|
1439
|
+
No `body`: a topic is a conversation and has no text (SPEC §6.7,
|
|
1440
|
+
2026-10-19), so nothing draws one and no document app lists it.
|
|
1441
|
+
why: https://github.com/estiva-app/estiva-docs/blob/main/decisions/a-document-app-writes-what-a-files-app-shares.md
|
|
1430
1442
|
*/
|
|
1431
|
-
body: { fold: 'description', field: 'content' },
|
|
1432
1443
|
// A bare file may hold bare files — a sub-topic under a topic. Children
|
|
1433
1444
|
// of *other* kinds are found the other way round, by their own `a`
|
|
1434
1445
|
// (`parentRefOf` below), which is FOL-4's generic direction; this slot
|
|
@@ -1480,7 +1491,8 @@ const BARE_FILE_MANIFEST: Manifest = {
|
|
|
1480
1491
|
},
|
|
1481
1492
|
/*
|
|
1482
1493
|
The manifest is the only place a consumer learns of any of these actions
|
|
1483
|
-
(FOL-33; `move` from FOL-4
|
|
1494
|
+
(FOL-33; `move` from FOL-4). No `describe`: Leaf 1 added one and LTX took
|
|
1495
|
+
it out again, since a topic has no text (SPEC §6.7). A Peek page offering Rename and Delete on a bare file and
|
|
1484
1496
|
nothing on a Ship issue does so because *this* list says `rename` and
|
|
1485
1497
|
`delete` and Ship's does not — never because the kind is 30840. The rule is
|
|
1486
1498
|
the one FOL-31 set for `comment`: a control is drawn from a declaration.
|
|
@@ -1517,25 +1529,6 @@ const BARE_FILE_MANIFEST: Manifest = {
|
|
|
1517
1529
|
emits: { kind: 1851, field: 'title' },
|
|
1518
1530
|
input: { type: 'string' },
|
|
1519
1531
|
},
|
|
1520
|
-
/*
|
|
1521
|
-
`describe` replaces the file's text with a whole §13.3 block document —
|
|
1522
|
-
a snapshot, last save wins (SPEC §6.7, decided 2026-10-13; live merging
|
|
1523
|
-
between open windows is a later layer). The shape of Ship's
|
|
1524
|
-
`describe-issue`, so a consumer that edits one edits both, and finds it
|
|
1525
|
-
by `emits.field` rather than by this id. Every save is a full copy, so a
|
|
1526
|
-
writer saves on leave, never per keystroke.
|
|
1527
|
-
*/
|
|
1528
|
-
{
|
|
1529
|
-
id: 'describe',
|
|
1530
|
-
label: 'Edit',
|
|
1531
|
-
description:
|
|
1532
|
-
"Replace this file's text with new text. A change event, so anyone in the Folder may, and every app " +
|
|
1533
|
-
'reading the file folds it over the text it was made with; the later save wins.',
|
|
1534
|
-
effect: 'writes',
|
|
1535
|
-
appliesTo: [String(KIND_BARE_FILE)],
|
|
1536
|
-
emits: { kind: 1851, field: 'description' },
|
|
1537
|
-
input: { type: 'string', format: BLOCK_DOCUMENT_FORMAT },
|
|
1538
|
-
},
|
|
1539
1532
|
/*
|
|
1540
1533
|
`summarize` sets the file's one-line summary (SPEC §6.12): plain text, so
|
|
1541
1534
|
its input declares no `format` (§7.3), and a consumer finds it by
|
|
@@ -3233,14 +3226,25 @@ export interface ForeignObject {
|
|
|
3233
3226
|
meta: ResolvedSlot[]
|
|
3234
3227
|
comments: { id: string; author: string; body: string; createdAt: number }[]
|
|
3235
3228
|
/**
|
|
3236
|
-
* The Folder this object lives in
|
|
3229
|
+
* The Folder this object lives in: the root's `h`, or `buzz-channel` on a
|
|
3230
|
+
* record that names its Folder that way, as Ship's projects do
|
|
3231
|
+
* ({@link folderOf}, SPEC §7.3).
|
|
3237
3232
|
*
|
|
3238
|
-
* Needed to *write*: a change event carries
|
|
3239
|
-
* relay rejects the write outright. Reading it off the object
|
|
3240
|
-
* asking the user is the difference between an action that works
|
|
3241
|
-
* with a "Folder id" box in it.
|
|
3233
|
+
* Needed to *write*: a change event carries it as `h` (SPEC §6.10), and
|
|
3234
|
+
* without it the relay rejects the write outright. Reading it off the object
|
|
3235
|
+
* rather than asking the user is the difference between an action that works
|
|
3236
|
+
* and a form with a "Folder id" box in it. Until LTX-4 it read `h` only, so a
|
|
3237
|
+
* Ship project had none and no other app could save or comment on it.
|
|
3242
3238
|
*/
|
|
3243
3239
|
folder?: string
|
|
3240
|
+
/**
|
|
3241
|
+
* The channel that gates who can read the root itself: its `h`, and absent
|
|
3242
|
+
* for a record stored globally (a `buzz-channel` project, whose name anyone
|
|
3243
|
+
* can read). Not where writes go — that is {@link folder}. A move into a
|
|
3244
|
+
* private Folder reads this (`planMoveFile`), because a listing never changes
|
|
3245
|
+
* who can read a file (SPEC §3.1).
|
|
3246
|
+
*/
|
|
3247
|
+
scopedTo?: string
|
|
3244
3248
|
/**
|
|
3245
3249
|
* Where to open this object in the app that owns it, from NIP-89's `web` tag.
|
|
3246
3250
|
*
|
|
@@ -3351,7 +3355,8 @@ function buildObject(args: {
|
|
|
3351
3355
|
listsChildren: listsChildrenOf(projection, manifest),
|
|
3352
3356
|
parentRef: parentRefOf(manifest, pointer.kind, root, folded),
|
|
3353
3357
|
...parentFieldsOf(manifest, pointer.kind),
|
|
3354
|
-
folder:
|
|
3358
|
+
folder: writeFolderOf(root),
|
|
3359
|
+
scopedTo: tagValue(root, 'h'),
|
|
3355
3360
|
// Substituted here rather than in the component: `<bech32>` is a NIP-89
|
|
3356
3361
|
// detail, and the widget's job is to draw a link, not to know the spec.
|
|
3357
3362
|
openUrl: args.webTemplate?.replace('<bech32>', naddr),
|
|
@@ -4716,7 +4721,8 @@ function buildChildObject(args: {
|
|
|
4716
4721
|
// should be able to trust.
|
|
4717
4722
|
parentRef: parentRefOf(manifest, root.kind, root, folded),
|
|
4718
4723
|
...parentFieldsOf(manifest, root.kind),
|
|
4719
|
-
folder:
|
|
4724
|
+
folder: writeFolderOf(root),
|
|
4725
|
+
scopedTo: tagValue(root, 'h'),
|
|
4720
4726
|
/*
|
|
4721
4727
|
`<bech32>` is whichever form this object actually has.
|
|
4722
4728
|
|
|
@@ -5583,8 +5589,14 @@ export interface ActionEventArgs {
|
|
|
5583
5589
|
* it. `kind` is the parent's own, which for one of Ship's replies is `9`.
|
|
5584
5590
|
*
|
|
5585
5591
|
* Refused on any action that is not a comment: nothing else has a parent.
|
|
5592
|
+
*
|
|
5593
|
+
* `place` is the comment's own `block` and `quote` tags, when it is on part
|
|
5594
|
+
* of the file: the reply copies them, so its thread keeps its place once the
|
|
5595
|
+
* comment is deleted (SPEC §13.6, as conversation's `buildReply` does).
|
|
5596
|
+
*
|
|
5597
|
+
* why: https://github.com/estiva-app/estiva-docs/blob/main/decisions/a-reply-on-a-page-keeps-its-threads-place.md
|
|
5586
5598
|
*/
|
|
5587
|
-
replyTo?: { id: string; kind: number; author: string }
|
|
5599
|
+
replyTo?: { id: string; kind: number; author: string; place?: readonly string[][] }
|
|
5588
5600
|
/**
|
|
5589
5601
|
* The format the action's prose value is in, when it is not marker text —
|
|
5590
5602
|
* `'estiva-blocks-1'` for a block document (SPEC §7.3's `format`, MAN-1).
|
|
@@ -5816,6 +5828,12 @@ function buildOneActionEvent(args: ActionEventArgs): UnsignedActionEvent | strin
|
|
|
5816
5828
|
['e', replyTo.id],
|
|
5817
5829
|
['k', String(replyTo.kind)],
|
|
5818
5830
|
['p', replyTo.author],
|
|
5831
|
+
// Only a `kind:1111` has a place (§13.6): a Ship `kind:9` parent's `block` means nothing.
|
|
5832
|
+
// conversation's `placeOf` filter, inline so interop's conversation floor stays where it is.
|
|
5833
|
+
// One of each, the first, as readers read it: a stranger's extra tags are not copied under the replier's key.
|
|
5834
|
+
...(replyTo.kind === KIND_COMMENT
|
|
5835
|
+
? ['block', 'quote'].map((name) => replyTo.place?.find((t) => t[0] === name)).filter((t): t is string[] => !!t).map((t) => [...t])
|
|
5836
|
+
: []),
|
|
5819
5837
|
]
|
|
5820
5838
|
: [
|
|
5821
5839
|
['a', address],
|
package/src/references.ts
CHANGED
|
@@ -153,8 +153,9 @@ const searchedChange = (field: string | undefined, address: string | undefined)
|
|
|
153
153
|
* it is called now matches what was typed.
|
|
154
154
|
*
|
|
155
155
|
* Roots and renames are asked for separately, so a burst of renames cannot
|
|
156
|
-
* crowd every root out of the answer
|
|
157
|
-
*
|
|
156
|
+
* crowd every root out of the answer. Every typed word matches the start of a
|
|
157
|
+
* word (SPEC §5.2), so a word matches before it is finished; `search_mode` is
|
|
158
|
+
* still sent for a relay from before that rule. A relay that indexes none of these
|
|
158
159
|
* kinds answers nothing, and so does this. A failed read rejects, for
|
|
159
160
|
* `referenceSearch` to answer no hits for a while.
|
|
160
161
|
*/
|