@estiva-app/interop 0.42.0 → 0.44.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 CHANGED
@@ -6,6 +6,63 @@ how a declaration is read, is a MAJOR — in `0.x`, a MINOR — even when no
6
6
  TypeScript signature moved. A consumer upgrading must be able to tell whether
7
7
  manifests already published still mean what they meant.
8
8
 
9
+ ## 0.44.0 — 2026-10-02
10
+
11
+ **Manifests: one new optional field, `fileNoun`, read only beside `aspect`; and
12
+ the bare file reads its opener's `name`** (PRO-24). A manifest already
13
+ published means what it meant for every kind it owns. What changes is how the
14
+ manifest a bare file *opens in* is read. Needs protocol 0.24.0 and conversation
15
+ 0.1.0, unchanged.
16
+
17
+ - **A bare file is named by the app that opens it.** Its `appName` was always
18
+ "File", while its `openUrl` came from the conversation app's manifest. So
19
+ Ship labelled a Peek topic "File", and its hand-off had to name the app
20
+ itself for the top card (ship#226). It now
21
+ takes `appName` from that same manifest ("Peek"), and stays "File" only when
22
+ no app can open it. A comment (`kind:1111`) takes the opener's name the same
23
+ way.
24
+ - **`fileNoun`: what a generic app calls a file nobody owns.** Lower case and
25
+ singular, next to `aspect`; Peek's will be "topic". It resolves onto the bare
26
+ file's `ForeignObject.noun`, and is absent when the opener declares none or
27
+ declares something that is not a non-empty string. A comment does not take
28
+ it. This is the opener's word, not the protocol's (Miky, 2026-10-02): another
29
+ company's conversation app may call these threads.
30
+ - **A comment's noun is "comment"**, declared on the built-in `kind:1111`
31
+ projection: NIP-22's word and SPEC §6.4's, not any one app's (Miky,
32
+ 2026-10-02).
33
+ - **A noun is a short word or it is nothing.** Every `noun`, an owner's
34
+ included, and a bare file's `fileNoun` and opener `name` must be at most 32
35
+ letters, digits, spaces, hyphens or apostrophes. Anything else is read as
36
+ "this app does not say". A consumer drops the noun into its own copy, and the
37
+ opener is whichever manifest declares the aspect newest. The name and noun
38
+ are as unverified as the link already was (PRO-25 tracks a trusted opener).
39
+ - Nothing else of the opener applies. The bare file's address is still
40
+ `spec:6.7`, and its slots, fold rule and actions are still this runtime's,
41
+ so a `projections["30840"]` in the opener's manifest is ignored, as any
42
+ claimant's is.
43
+
44
+ ## 0.43.0 — 2026-09-30
45
+
46
+ **Manifests: nothing new to declare, and nothing read differently** (FOL-50). A
47
+ manifest already published means what it meant. Needs protocol 0.24.0 and
48
+ conversation 0.1.0, unchanged.
49
+
50
+ - **`resolveParents(references, query, cache?)`: the parent of each file in a
51
+ set, and nothing else.** The roots, grouped by author and kind, and the
52
+ changes only of a kind a list declares `movedBy` for, one filter per file
53
+ with the object reader's limit so an old move is never paged out behind
54
+ newer edits — one POST per ~120 files once the manifests are cached.
55
+ `resolveForeignObjects` answers the same question on the way to a whole
56
+ object and reads every comment and child besides: for the 110 issues Peek's
57
+ Folder dots name on production that was 20 POSTs and 1 MB, against 1 POST and
58
+ ~500 KB here (the roots carry the descriptions, and a relay cannot be asked
59
+ for one field of a change).
60
+ - Folded by `parentRefOf`, the rule behind `ForeignObject.parentRef`, and
61
+ answered only for a kind its app draws — checked against
62
+ `resolveForeignObjects` on those 110 issues with no disagreement. A parent's
63
+ address, `null` at the top, no key when nothing can be told (not an address,
64
+ no manifest, a root the reader cannot see).
65
+
9
66
  ## 0.42.0 — 2026-09-30
10
67
 
11
68
  **Manifests: nothing new to declare; a `movedBy` move now writes one more tag
package/README.md CHANGED
@@ -93,6 +93,19 @@ lists children its app folds — their changes, so a moved or archived child is
93
93
  not drawn under its old parent (MAN-7). Event references (`nevent`) are not addresses
94
94
  and come back `null`; resolve those with `resolveForeignEvent`.
95
95
 
96
+ Need only where each file sits? Ask for that alone — the roots, and the moves
97
+ where a kind can be moved, without anybody's comments or children:
98
+
99
+ ```ts
100
+ import { resolveParents } from '@estiva-app/interop'
101
+
102
+ const parents = await resolveParents(addresses, query, cache)
103
+ // { [address]: parent address | null } — null at the top, no key when nothing can be told
104
+ ```
105
+
106
+ Folded by the same rule as `ForeignObject.parentRef`, so a moved issue is under
107
+ the project it was moved to here as everywhere else.
108
+
96
109
  ### A `body` says which content model it is in — read it, do not guess
97
110
 
98
111
  `body` is the one slot that carries structure, and it arrives in one of two
@@ -467,7 +480,7 @@ in the workspace** — a chat app draws each file's conversation, a writing app
467
480
  each file's document (RFC 0.5 §10.7). Its manifest says so with one field:
468
481
 
469
482
  ```jsonc
470
- { "name": "Peek", "aspect": "conversation", "projections": {} }
483
+ { "name": "Peek", "aspect": "conversation", "fileNoun": "topic", "projections": {} }
471
484
  ```
472
485
 
473
486
  What a consumer does with it today: a **bare file** (`kind:30840`, SPEC §6.7)
@@ -477,6 +490,12 @@ template for `naddr` on the same `kind:31990`, and every consumer's card for a
477
490
  topic becomes a link into your app — with no change on their side. `ASPECTS`
478
491
  is exported and holds the two values.
479
492
 
493
+ The bare file is then named after your app too: its `appName` is your `name`,
494
+ and its `noun` is your `fileNoun` — what your people call a file nobody owns,
495
+ lower case and singular. Leave `fileNoun` out and the file has no noun, and a
496
+ consumer falls back to your app's name. Nothing else in your manifest applies to
497
+ a bare file; its slots, fold rule and actions are the runtime's.
498
+
480
499
  The same is true of a **comment** (`kind:1111`): every app writes one and none
481
500
  owns it, so the built-in manifest draws it — the author as its title, the text
482
501
  as its body, with the `message` widget — and it opens by your `nevent`
package/dist/index.d.ts CHANGED
@@ -24,7 +24,7 @@
24
24
  * of every app that installed it, which is the objection that rules out
25
25
  * iframes.
26
26
  */
27
- export { resolveManifest, resolveActingManifest, resolveForeignObject, resolveForeignObjects, resolveForeignEvent, resolveFolderProject, resolveFolderContents, listFolders, topLevelFolders, ARCHIVED_FIELD, isArchived, archiveImpact, type Archive, type ArchiveImpact, type ArchiveReadOptions, KIND_FOLDER_STATE, KIND_CHANNEL_METADATA, KIND_BARE_FILE, MOVED_TO_TAG, BARE_FILE_MANIFEST_ADDRESS, ASPECTS, type Aspect, commentKindsOf, conversationCountsOf, conversationsOf, type ConversationMessage, threadsOf, type Threads, CONVERSATION_LIMIT, buildActionEvent, buildActionEvents, type ActionEventArgs, pickWidget, widgetChainProblem, actionProblems, folderOf, MIN_ACTION_DESCRIPTION, CLOSED_WIDGETS, contentFormatOf, BODY_SLOT, CONTENT_FORMAT_TAG, BLOCK_DOCUMENT_FORMAT, type ContentFormat, peopleViaRelay, createProjectionCache, createPeopleCache, MANIFEST_TTL_MS, PROFILE_HIT_TTL_MS, PROFILE_MISS_TTL_MS, type PeopleCache, type PeopleCacheOptions, type ProjectionCache, type ResolvedManifest, type QueryFn, type PeopleFn, type People, type ForeignObject, type FolderProject, type FolderContents, type FolderSummary, type ResolvedSlot, type ResolvedAction, type ActionFormField, type ProseFormat, type ManifestAction, type ActionEffect, ACTION_EFFECTS, type UnsignedActionEvent, } from './projection.js';
27
+ export { resolveManifest, resolveActingManifest, resolveForeignObject, resolveForeignObjects, resolveParents, resolveForeignEvent, resolveFolderProject, resolveFolderContents, listFolders, topLevelFolders, ARCHIVED_FIELD, isArchived, archiveImpact, type Archive, type ArchiveImpact, type ArchiveReadOptions, KIND_FOLDER_STATE, KIND_CHANNEL_METADATA, KIND_BARE_FILE, MOVED_TO_TAG, BARE_FILE_MANIFEST_ADDRESS, ASPECTS, type Aspect, commentKindsOf, conversationCountsOf, conversationsOf, type ConversationMessage, threadsOf, type Threads, CONVERSATION_LIMIT, buildActionEvent, buildActionEvents, type ActionEventArgs, pickWidget, widgetChainProblem, actionProblems, folderOf, MIN_ACTION_DESCRIPTION, CLOSED_WIDGETS, contentFormatOf, BODY_SLOT, CONTENT_FORMAT_TAG, BLOCK_DOCUMENT_FORMAT, type ContentFormat, peopleViaRelay, createProjectionCache, createPeopleCache, MANIFEST_TTL_MS, PROFILE_HIT_TTL_MS, PROFILE_MISS_TTL_MS, type PeopleCache, type PeopleCacheOptions, type ProjectionCache, type ResolvedManifest, type QueryFn, type PeopleFn, type People, type ForeignObject, type FolderProject, type FolderContents, type FolderSummary, type ResolvedSlot, type ResolvedAction, type ActionFormField, type ProseFormat, type ManifestAction, type ActionEffect, ACTION_EFFECTS, type UnsignedActionEvent, } from './projection.js';
28
28
  /**
29
29
  * SPEC §6.7's nesting, drawn from one team listing: roots, children,
30
30
  * breadcrumbs and move targets, with cycles cut. No requests.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,WAAW,EACX,eAAe,EACf,cAAc,EACd,UAAU,EACV,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,0BAA0B,EAC1B,OAAO,EACP,KAAK,MAAM,EACX,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,KAAK,mBAAmB,EACxB,SAAS,EACT,KAAK,OAAO,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,KAAK,eAAe,EACpB,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,QAAQ,EACR,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,SAAS,EACT,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,aAAa,EAClB,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,cAAc,EACd,KAAK,mBAAmB,GACzB,MAAM,iBAAiB,CAAA;AAExB;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,MAAM,cAAc,CAAA;AAErE;;;;GAIG;AACH,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,WAAW,GACjB,MAAM,cAAc,CAAA;AAErB;;;;;;;GAOG;AACH,OAAO,EACL,OAAO,EACP,SAAS,EACT,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,cAAc,EACd,KAAK,UAAU,EACf,KAAK,gBAAgB,GACtB,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,WAAW,EACX,eAAe,EACf,cAAc,EACd,UAAU,EACV,aAAa,EACb,KAAK,OAAO,EACZ,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,0BAA0B,EAC1B,OAAO,EACP,KAAK,MAAM,EACX,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,KAAK,mBAAmB,EACxB,SAAS,EACT,KAAK,OAAO,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,KAAK,eAAe,EACpB,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,QAAQ,EACR,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,SAAS,EACT,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,aAAa,EAClB,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,QAAQ,EACb,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,cAAc,EACd,KAAK,mBAAmB,GACzB,MAAM,iBAAiB,CAAA;AAExB;;;GAGG;AACH,OAAO,EAAE,SAAS,EAAE,KAAK,QAAQ,EAAE,KAAK,OAAO,EAAE,MAAM,cAAc,CAAA;AAErE;;;;GAIG;AACH,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,WAAW,GACjB,MAAM,cAAc,CAAA;AAErB;;;;;;;GAOG;AACH,OAAO,EACL,OAAO,EACP,SAAS,EACT,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,cAAc,EACd,KAAK,UAAU,EACf,KAAK,gBAAgB,GACtB,MAAM,gBAAgB,CAAA"}
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@
24
24
  * of every app that installed it, which is the objection that rules out
25
25
  * iframes.
26
26
  */
27
- export { resolveManifest, resolveActingManifest, resolveForeignObject, resolveForeignObjects, resolveForeignEvent, resolveFolderProject, resolveFolderContents, listFolders, topLevelFolders, ARCHIVED_FIELD, isArchived, archiveImpact, KIND_FOLDER_STATE, KIND_CHANNEL_METADATA, KIND_BARE_FILE, MOVED_TO_TAG, BARE_FILE_MANIFEST_ADDRESS, ASPECTS, commentKindsOf, conversationCountsOf, conversationsOf, threadsOf, CONVERSATION_LIMIT, buildActionEvent, buildActionEvents, pickWidget, widgetChainProblem, actionProblems, folderOf, MIN_ACTION_DESCRIPTION, CLOSED_WIDGETS, contentFormatOf, BODY_SLOT, CONTENT_FORMAT_TAG, BLOCK_DOCUMENT_FORMAT, peopleViaRelay, createProjectionCache, createPeopleCache, MANIFEST_TTL_MS, PROFILE_HIT_TTL_MS, PROFILE_MISS_TTL_MS, ACTION_EFFECTS, } from './projection.js';
27
+ export { resolveManifest, resolveActingManifest, resolveForeignObject, resolveForeignObjects, resolveParents, resolveForeignEvent, resolveFolderProject, resolveFolderContents, listFolders, topLevelFolders, ARCHIVED_FIELD, isArchived, archiveImpact, KIND_FOLDER_STATE, KIND_CHANNEL_METADATA, KIND_BARE_FILE, MOVED_TO_TAG, BARE_FILE_MANIFEST_ADDRESS, ASPECTS, commentKindsOf, conversationCountsOf, conversationsOf, threadsOf, CONVERSATION_LIMIT, buildActionEvent, buildActionEvents, pickWidget, widgetChainProblem, actionProblems, folderOf, MIN_ACTION_DESCRIPTION, CLOSED_WIDGETS, contentFormatOf, BODY_SLOT, CONTENT_FORMAT_TAG, BLOCK_DOCUMENT_FORMAT, peopleViaRelay, createProjectionCache, createPeopleCache, MANIFEST_TTL_MS, PROFILE_HIT_TTL_MS, PROFILE_MISS_TTL_MS, ACTION_EFFECTS, } from './projection.js';
28
28
  /**
29
29
  * SPEC §6.7's nesting, drawn from one team listing: roots, children,
30
30
  * breadcrumbs and move targets, with cycles cut. No requests.
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,WAAW,EACX,eAAe,EACf,cAAc,EACd,UAAU,EACV,aAAa,EAIb,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,0BAA0B,EAC1B,OAAO,EAEP,cAAc,EACd,oBAAoB,EACpB,eAAe,EAEf,SAAS,EAET,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EAEjB,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,QAAQ,EACR,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,SAAS,EACT,kBAAkB,EAClB,qBAAqB,EAErB,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EAkBnB,cAAc,GAEf,MAAM,iBAAiB,CAAA;AAExB;;;GAGG;AACH,OAAO,EAAE,SAAS,EAA+B,MAAM,cAAc,CAAA;AAErE;;;;GAIG;AACH,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,iBAAiB,GAIlB,MAAM,cAAc,CAAA;AAErB;;;;;;;GAOG;AACH,OAAO,EACL,OAAO,EACP,SAAS,EACT,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,cAAc,GAGf,MAAM,gBAAgB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,WAAW,EACX,eAAe,EACf,cAAc,EACd,UAAU,EACV,aAAa,EAIb,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,YAAY,EACZ,0BAA0B,EAC1B,OAAO,EAEP,cAAc,EACd,oBAAoB,EACpB,eAAe,EAEf,SAAS,EAET,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EAEjB,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,QAAQ,EACR,sBAAsB,EACtB,cAAc,EACd,eAAe,EACf,SAAS,EACT,kBAAkB,EAClB,qBAAqB,EAErB,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EAkBnB,cAAc,GAEf,MAAM,iBAAiB,CAAA;AAExB;;;GAGG;AACH,OAAO,EAAE,SAAS,EAA+B,MAAM,cAAc,CAAA;AAErE;;;;GAIG;AACH,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,iBAAiB,GAIlB,MAAM,cAAc,CAAA;AAErB;;;;;;;GAOG;AACH,OAAO,EACL,OAAO,EACP,SAAS,EACT,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,cAAc,GAGf,MAAM,gBAAgB,CAAA"}
@@ -632,6 +632,17 @@ interface Manifest {
632
632
  * where a link to it should land. Nothing else consults it yet.
633
633
  */
634
634
  aspect?: string;
635
+ /**
636
+ * What this app calls a file nobody owns when it opens one, lower case and
637
+ * singular: Peek's is "topic" (PRO-24). Read only beside `aspect`, from the
638
+ * same manifest a bare file's link comes from, and resolved onto that bare
639
+ * file's {@link ForeignObject.noun}.
640
+ *
641
+ * The opener's word and not the protocol's, Miky's call on 2026-10-02: a
642
+ * company running its own conversation app calls these whatever its people
643
+ * call them, and the specification never has to pick.
644
+ */
645
+ fileNoun?: string;
635
646
  }
636
647
  /**
637
648
  * The aspects a generic app may declare — RFC 0.5 §10.2's three parts of a
@@ -743,10 +754,11 @@ export interface ResolvedManifest {
743
754
  * folds the way an issue's `project` field does — a root tag seeds the value,
744
755
  * a change event overrides it.
745
756
  *
746
- * `name` is what a consumer prints where it would print the owning app's
747
- * name. "File" rather than "Bare file", because that word is for the
748
- * specification and a person looking at a card next to a Ship issue is better
749
- * served by the plain noun.
757
+ * What a person reads on it comes from that app too (PRO-24). Its `appName` is
758
+ * the opener's name, because that is where its link goes — "Open in File" told
759
+ * nobody anything. Its `noun` is the opener's `fileNoun`, so Peek's topic says
760
+ * "topic". `name` below is "File" only for the file nothing can open, where a
761
+ * consumer has no app to print.
750
762
  */
751
763
  export declare const KIND_BARE_FILE = 30840;
752
764
  /**
@@ -1186,8 +1198,8 @@ export interface ForeignObject {
1186
1198
  * issue", a confirm's "Delete this project?". Without it Peek called a Ship
1187
1199
  * issue a topic, because the only way to know better was to check the kind
1188
1200
  * number, which is the check a manifest exists to replace. Absent when the
1189
- * owner declares none, and for the bare file, whose manifest lives here: a
1190
- * consumer says its own word for a file nobody owns.
1201
+ * owner declares none. A bare file's is the `fileNoun` of the app that
1202
+ * opens it (PRO-24), and absent when that app declares none.
1191
1203
  */
1192
1204
  noun?: string;
1193
1205
  /** Named single slots: title, subtitle, status. */
@@ -1350,6 +1362,34 @@ export declare function resolveForeignObjects(references: readonly string[], que
1350
1362
  lookupPeople?: PeopleFn,
1351
1363
  /** See {@link ProjectionCache}. Omitting it still reads each app's manifest once per call. */
1352
1364
  cache?: ProjectionCache, options?: ArchiveReadOptions): Promise<Record<string, ForeignObject | null>>;
1365
+ /**
1366
+ * The parent each file sits under, and nothing else — FOL-50.
1367
+ *
1368
+ * {@link resolveForeignObjects} answers this on the way to a whole object, and
1369
+ * for a caller that needs only the parent that is the wrong price: it reads
1370
+ * every object's comments and children too. Peek's Folder dots place an
1371
+ * issue's talk by its project, and on production on 2026-09-30 the 110 issues
1372
+ * the dots name cost 20 POSTs and a megabyte that way. This asks for the roots,
1373
+ * and for the changes only of a kind whose app declares a `movedBy` — a filter
1374
+ * per 100 roots and one per movable file, so a POST per ~120 files: one for the
1375
+ * set the dots held on production.
1376
+ *
1377
+ * Folded by the rule the card and the listing use (`parentRefOf`), so a moved
1378
+ * issue is under the project it was moved to here as everywhere else, and a
1379
+ * file is answered only when its app draws its kind — as it is by the object
1380
+ * readers.
1381
+ *
1382
+ * Keyed by the reference as given: the parent's address, or `null` for a file
1383
+ * at the top. **Absent** when there is nothing to tell — not an address, no
1384
+ * manifest, or a root this reader cannot see — because "at the top" and
1385
+ * "unknown" are different sentences.
1386
+ *
1387
+ * **A failed read rejects the whole call**, as {@link resolveForeignObjects}
1388
+ * does.
1389
+ */
1390
+ export declare function resolveParents(references: readonly string[], query: QueryFn,
1391
+ /** See {@link ProjectionCache}. Omitting it still reads each app's manifest once per call. */
1392
+ cache?: ProjectionCache): Promise<Record<string, string | null>>;
1353
1393
  /** What {@link resolveForeignObject} and {@link resolveForeignObjects} may read beyond the file itself. */
1354
1394
  export interface ArchiveReadOptions {
1355
1395
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../src/projection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAiF,KAAK,cAAc,EAAqB,MAAM,sBAAsB,CAAA;AAC5J,OAAO,EAAgB,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEnF,OAAO,EAEL,qBAAqB,EAItB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAU5E,+EAA+E;AAC/E,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,OAAO,CAAC,WAAW,EAAE,CAAC,CAAA;AAEpF,oDAAoD;AACpD,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,EAAE,EAAE,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAE5C;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;AAE7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D1E;AAqCD,yFAAyF;AACzF,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACxC;;;;;OAKG;IACH,YAAY,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,EAAE,CAAA;KAAE,EAAE,CAAA;CACvF;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,aAAa,CACjC,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,OAAO,EACd,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,eAAe,CAAA;CAAO,GACnE,OAAO,CAAC,aAAa,CAAC,CAoDxB;AA6LD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO;AACd,wEAAwE;AACxE,YAAY,CAAC,EAAE,QAAQ;AACvB,6EAA6E;AAC7E,KAAK,CAAC,EAAE,eAAe,EACvB,OAAO,GAAE;IACP;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CACrB,GACL,OAAO,CAAC,cAAc,CAAC,CAiOzB"}
@@ -441,9 +441,23 @@ function proseFormatOf(declared) {
441
441
  * while a menu draws. Anything else reads as "this app does not say" (§7.9).
442
442
  */
443
443
  function nounOf(projection) {
444
- const noun = typeof projection.noun === 'string' ? projection.noun.trim() : '';
444
+ const noun = wordOf(projection.noun);
445
445
  return noun ? { noun } : {};
446
446
  }
447
+ const WORD_MAX = 32;
448
+ /**
449
+ * A manifest's word, trimmed — or undefined unless it is a short name: at most
450
+ * {@link WORD_MAX} letters, digits, spaces, hyphens and apostrophes.
451
+ *
452
+ * A consumer drops a noun into its own sentences ("Delete this issue?"), and a
453
+ * bare file's noun and name come from whichever manifest declares the aspect
454
+ * newest (PRO-24 review). Capped, a hostile manifest can put a wrong word
455
+ * there, but not a sentence of its own that reads as the consumer's.
456
+ */
457
+ function wordOf(value) {
458
+ const word = typeof value === 'string' ? value.trim() : '';
459
+ return word.length <= WORD_MAX && /^[\p{L}\p{N}][\p{L}\p{N}\p{M} '’-]*$/u.test(word) ? word : undefined;
460
+ }
447
461
  /**
448
462
  * The aspects a generic app may declare — RFC 0.5 §10.2's three parts of a
449
463
  * file, minus `properties`, which is what a *type* adds and so what a
@@ -731,10 +745,11 @@ function webTemplate(event, entity) {
731
745
  * folds the way an issue's `project` field does — a root tag seeds the value,
732
746
  * a change event overrides it.
733
747
  *
734
- * `name` is what a consumer prints where it would print the owning app's
735
- * name. "File" rather than "Bare file", because that word is for the
736
- * specification and a person looking at a card next to a Ship issue is better
737
- * served by the plain noun.
748
+ * What a person reads on it comes from that app too (PRO-24). Its `appName` is
749
+ * the opener's name, because that is where its link goes — "Open in File" told
750
+ * nobody anything. Its `noun` is the opener's `fileNoun`, so Peek's topic says
751
+ * "topic". `name` below is "File" only for the file nothing can open, where a
752
+ * consumer has no app to print.
738
753
  */
739
754
  export const KIND_BARE_FILE = 30840;
740
755
  /**
@@ -807,9 +822,14 @@ const BARE_FILE_MANIFEST = {
807
822
  null, and a pasted thread link stayed a plain link. Drawn the way Peek
808
823
  draws a `kind:9` — the author as the title, the text as the body — so a
809
824
  consumer that already has a `message` widget draws a comment with it.
825
+
826
+ Its noun is the protocol's own word, unlike a bare file's (PRO-24, Miky
827
+ 2026-10-02): NIP-22 and SPEC §6.4 already call it a comment, so there is
828
+ no app whose word it would be.
810
829
  */
811
830
  [String(KIND_COMMENT)]: {
812
831
  widget: ['message', 'card'],
832
+ noun: 'comment',
813
833
  slots: {
814
834
  title: { field: 'pubkey', as: 'pubkey' },
815
835
  body: { field: 'content' },
@@ -907,6 +927,30 @@ const BARE_FILE_MANIFEST = {
907
927
  function bareFileManifest() {
908
928
  return { manifest: BARE_FILE_MANIFEST, address: BARE_FILE_MANIFEST_ADDRESS, viaRecommendation: false };
909
929
  }
930
+ /**
931
+ * The built-in manifest, named by the app that opens it — PRO-24.
932
+ *
933
+ * Only the name and the bare file's noun are the opener's. The address stays
934
+ * the specification's, and every rule — fold, slots, actions — stays this
935
+ * runtime's, so a published manifest still cannot change how a bare file
936
+ * behaves; it can only say what it is called where it opens. A comment takes
937
+ * the name (it opens in the same app) and not the noun, which is the file's.
938
+ */
939
+ function bareFileOpenedBy(opener, template) {
940
+ const name = wordOf(opener.name) ?? BARE_FILE_MANIFEST.name;
941
+ const fileNoun = wordOf(opener.fileNoun);
942
+ const projections = BARE_FILE_MANIFEST.projections;
943
+ const bare = String(KIND_BARE_FILE);
944
+ return {
945
+ ...bareFileManifest(),
946
+ manifest: {
947
+ ...BARE_FILE_MANIFEST,
948
+ name,
949
+ ...(fileNoun ? { projections: { ...projections, [bare]: { ...projections[bare], noun: fileNoun } } } : {}),
950
+ },
951
+ webTemplate: template,
952
+ };
953
+ }
910
954
  /**
911
955
  * How many handler events a sweep of the relay asks for.
912
956
  *
@@ -1085,9 +1129,7 @@ export async function resolveManifest(pointer, query, cache) {
1085
1129
  // is the one that can show a thread in it (FOL-38).
1086
1130
  if (pointer.kind === KIND_BARE_FILE || pointer.kind === KIND_COMMENT) {
1087
1131
  const opener = await resolveAspectApp('conversation', query, cache, pointer.kind === KIND_COMMENT ? 'nevent' : 'naddr');
1088
- return opener?.webTemplate
1089
- ? { ...bareFileManifest(), webTemplate: opener.webTemplate }
1090
- : bareFileManifest();
1132
+ return opener?.webTemplate ? bareFileOpenedBy(opener.manifest, opener.webTemplate) : bareFileManifest();
1091
1133
  }
1092
1134
  return throughCache(cache, `${pointer.kind}:${pointer.pubkey}`, () => resolveManifestUncached(pointer, query));
1093
1135
  }
@@ -2111,6 +2153,104 @@ cache, options = {}) {
2111
2153
  }
2112
2154
  return results;
2113
2155
  }
2156
+ /**
2157
+ * The parent each file sits under, and nothing else — FOL-50.
2158
+ *
2159
+ * {@link resolveForeignObjects} answers this on the way to a whole object, and
2160
+ * for a caller that needs only the parent that is the wrong price: it reads
2161
+ * every object's comments and children too. Peek's Folder dots place an
2162
+ * issue's talk by its project, and on production on 2026-09-30 the 110 issues
2163
+ * the dots name cost 20 POSTs and a megabyte that way. This asks for the roots,
2164
+ * and for the changes only of a kind whose app declares a `movedBy` — a filter
2165
+ * per 100 roots and one per movable file, so a POST per ~120 files: one for the
2166
+ * set the dots held on production.
2167
+ *
2168
+ * Folded by the rule the card and the listing use (`parentRefOf`), so a moved
2169
+ * issue is under the project it was moved to here as everywhere else, and a
2170
+ * file is answered only when its app draws its kind — as it is by the object
2171
+ * readers.
2172
+ *
2173
+ * Keyed by the reference as given: the parent's address, or `null` for a file
2174
+ * at the top. **Absent** when there is nothing to tell — not an address, no
2175
+ * manifest, or a root this reader cannot see — because "at the top" and
2176
+ * "unknown" are different sentences.
2177
+ *
2178
+ * **A failed read rejects the whole call**, as {@link resolveForeignObjects}
2179
+ * does.
2180
+ */
2181
+ export async function resolveParents(references, query,
2182
+ /** See {@link ProjectionCache}. Omitting it still reads each app's manifest once per call. */
2183
+ cache) {
2184
+ const results = {};
2185
+ const asked = [];
2186
+ for (const reference of new Set(references)) {
2187
+ const pointer = addressPointerOf(reference);
2188
+ if (pointer)
2189
+ asked.push({ reference, pointer });
2190
+ }
2191
+ if (asked.length === 0)
2192
+ return results;
2193
+ const byApp = new Map();
2194
+ for (const { pointer } of asked)
2195
+ byApp.set(manifestKeyOf(pointer), pointer);
2196
+ const manifests = new Map();
2197
+ await Promise.all([...byApp].map(async ([key, pointer]) => {
2198
+ const resolved = await resolveManifest(pointer, query, cache);
2199
+ if (resolved)
2200
+ manifests.set(key, resolved.manifest);
2201
+ }));
2202
+ // The roots by author and kind, the one filter shape that names many; the
2203
+ // moves by the app's change shape, only where the kind can be moved at all.
2204
+ const roots = new Map();
2205
+ const moves = new Map();
2206
+ for (const { pointer } of asked) {
2207
+ const manifest = manifests.get(manifestKeyOf(pointer));
2208
+ if (!manifest?.projections?.[String(pointer.kind)])
2209
+ continue;
2210
+ const group = `${pointer.kind}:${pointer.pubkey}`;
2211
+ const held = roots.get(group) ?? { kind: pointer.kind, pubkey: pointer.pubkey, identifiers: new Set() };
2212
+ held.identifiers.add(pointer.identifier);
2213
+ roots.set(group, held);
2214
+ if (!manifest.records || !movedByOf(manifest, pointer.kind))
2215
+ continue;
2216
+ const shape = `${manifest.records.changeKind}:${manifest.records.targetTag}`;
2217
+ const movable = moves.get(shape) ?? { rule: manifest.records, addresses: new Set() };
2218
+ movable.addresses.add(pointerToAddress(pointer));
2219
+ moves.set(shape, movable);
2220
+ }
2221
+ const filters = [];
2222
+ for (const { kind, pubkey, identifiers } of roots.values()) {
2223
+ const all = [...identifiers];
2224
+ for (let start = 0; start < all.length; start += PARENT_ROOT_GROUP) {
2225
+ const group = all.slice(start, start + PARENT_ROOT_GROUP);
2226
+ filters.push({ kinds: [kind], authors: [pubkey], '#d': group, limit: group.length });
2227
+ }
2228
+ }
2229
+ // One filter per file, with the object reader's own limit: a group sharing a
2230
+ // page could push an old move out of it behind newer statuses and edits, and
2231
+ // this would then disagree with `parentRef`.
2232
+ for (const { rule, addresses } of moves.values()) {
2233
+ for (const address of addresses)
2234
+ filters.push({ kinds: [rule.changeKind], [`#${rule.targetTag}`]: [address], limit: 500 });
2235
+ }
2236
+ if (filters.length === 0)
2237
+ return results;
2238
+ const events = await queryChunked(filters, query);
2239
+ for (const { reference, pointer } of asked) {
2240
+ const manifest = manifests.get(manifestKeyOf(pointer));
2241
+ if (!manifest?.projections?.[String(pointer.kind)])
2242
+ continue;
2243
+ const root = events
2244
+ .filter((e) => e.kind === pointer.kind && e.pubkey === pointer.pubkey && tagValue(e, 'd') === pointer.identifier)
2245
+ .sort(byOrder)
2246
+ .at(-1);
2247
+ if (!root)
2248
+ continue;
2249
+ const folded = foldOf(events, pointerToAddress(pointer), manifest);
2250
+ results[reference] = parentRefOf(manifest, pointer.kind, root, folded) ?? null;
2251
+ }
2252
+ return results;
2253
+ }
2114
2254
  /**
2115
2255
  * Mark each object that is hidden with an archived parent — FOL-46.
2116
2256
  *
@@ -2157,6 +2297,12 @@ function relatedRuleOf(manifest, address) {
2157
2297
  * archive change inside the page.
2158
2298
  */
2159
2299
  const ARCHIVE_READ_GROUP = 25;
2300
+ /**
2301
+ * Identifiers per root filter in {@link resolveParents}. A root read answers
2302
+ * one event per identifier, so it needs no room kept for a page — only a `#d`
2303
+ * list short enough for a relay to take.
2304
+ */
2305
+ const PARENT_ROOT_GROUP = 100;
2160
2306
  /**
2161
2307
  * The filters asking for every change naming these addresses, once per distinct
2162
2308
  * change shape among `rules` — SPEC's alone unless an app writes its own.