@estiva-app/interop 0.30.1 → 0.32.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 +45 -0
- package/README.md +46 -0
- package/dist/folders.d.ts +130 -0
- package/dist/folders.d.ts.map +1 -0
- package/dist/folders.js +128 -0
- package/dist/folders.js.map +1 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/projection.d.ts +41 -0
- package/dist/projection.d.ts.map +1 -1
- package/dist/projection.js +192 -38
- package/dist/projection.js.map +1 -1
- package/package.json +3 -3
- package/src/folders.ts +167 -0
- package/src/index.ts +17 -0
- package/src/projection.ts +228 -40
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,51 @@ 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.32.0 — 2026-09-24
|
|
10
|
+
|
|
11
|
+
**Manifests: nothing.** No declaration is read differently. What is new is
|
|
12
|
+
the write side of Folders, which until now each app wrote for itself.
|
|
13
|
+
|
|
14
|
+
- **Folder write planners** (FOL-4): `planCreateFolder`, `planRenameFolder`,
|
|
15
|
+
`planPlaceFile`, `planUnlistFile` and `planMoveFile`. Each returns unsigned
|
|
16
|
+
events in publish order and does no signing, no I/O and no clock or id
|
|
17
|
+
generation; each app keeps its own signing and publishing (ADR 0002 §10 —
|
|
18
|
+
Ship is the second app to write these).
|
|
19
|
+
- create = `[9007, 1852 add + name]`, so a Folder has state from birth;
|
|
20
|
+
- rename = `[9002, 1852 add + name]`, the command only when it has state;
|
|
21
|
+
- place / unlist = `[1852 add]` / `[1852 remove]` only when it has state;
|
|
22
|
+
- move = `[add to target, remove from source]`, add first.
|
|
23
|
+
- **`hasState` is always the caller's**, from a read. A `kind:1852` against a
|
|
24
|
+
Folder with no `kind:30890` emits state listing only what the command named,
|
|
25
|
+
and everything filed in it by `h` stops being listed (peek#192). So **a move
|
|
26
|
+
into or out of a stateless Folder is refused** — `{ ok: false, reason:
|
|
27
|
+
'source-has-no-state' | 'target-has-no-state' }` — where Peek's own move
|
|
28
|
+
sent both commands regardless.
|
|
29
|
+
- **Peer dependency: `@estiva-app/protocol >= 0.23.0`**, for
|
|
30
|
+
`buildFolderCommand`. Nothing else in this package needed it raised.
|
|
31
|
+
|
|
32
|
+
## 0.31.0 — 2026-09-23
|
|
33
|
+
|
|
34
|
+
**Manifests: nothing.** No declaration is read differently. What is new is a
|
|
35
|
+
way to read many objects at once.
|
|
36
|
+
|
|
37
|
+
- **`resolveForeignObjects(references, query, lookupPeople?, cache?)`** (PER-10).
|
|
38
|
+
The objects `resolveForeignObject` returns, keyed by reference, for one POST
|
|
39
|
+
(chunked at `MAX_FILTERS_PER_QUERY`) and one people lookup instead of a
|
|
40
|
+
request and a lookup each. Each object's filters are exactly the single
|
|
41
|
+
form's, so each keeps its own limits. Peek's Screener resolved every followed
|
|
42
|
+
file on its own each minute: 144 of an idle Desk's 194 requests in five
|
|
43
|
+
minutes. A reference that is not an address is `null`; a failed read rejects
|
|
44
|
+
the whole call.
|
|
45
|
+
- **An object's events are deduplicated before it is assembled**, in both forms.
|
|
46
|
+
The relay concatenates what each filter matched, so an event two of one
|
|
47
|
+
object's filters matched — a `kind:9` carrying both a Topic's `h` and its `a`
|
|
48
|
+
— came back twice and would be listed twice. Not seen on production; in a
|
|
49
|
+
pooled answer it is the ordinary case (a comment that names two files).
|
|
50
|
+
- **A root is matched on its author as well as its kind and `d`.** The filter
|
|
51
|
+
already asked for that author, so a single resolve is unchanged; in a pooled
|
|
52
|
+
answer two apps' objects may share a kind and a `d`.
|
|
53
|
+
|
|
9
54
|
## 0.30.1 — 2026-09-23
|
|
10
55
|
|
|
11
56
|
**Manifests: nothing.** No declaration is read differently. What changed is
|
package/README.md
CHANGED
|
@@ -70,6 +70,26 @@ politeness, it is required: the slot set is closed but it *grows*, and producers
|
|
|
70
70
|
upgrade before consumers do. `title` is always present, so an object you only
|
|
71
71
|
half understand still renders as a named, resolvable thing.
|
|
72
72
|
|
|
73
|
+
### Holding a set? Resolve it as one
|
|
74
|
+
|
|
75
|
+
A list you keep live — followed files, open work — should not resolve its
|
|
76
|
+
entries one at a time. Each resolve is a request, and a relay that meters reads
|
|
77
|
+
per request (the Estiva relay allows 300 a minute, shared by a person's tabs)
|
|
78
|
+
runs out on a refresh of a few dozen.
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
import { resolveForeignObjects, createProjectionCache } from '@estiva-app/interop'
|
|
82
|
+
|
|
83
|
+
const cache = createProjectionCache() // keep it for the session
|
|
84
|
+
const objects = await resolveForeignObjects(addresses, query, undefined, cache)
|
|
85
|
+
// { [address]: ForeignObject | null } — each exactly what resolveForeignObject returns
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Every object keeps its own filters and limits, so a busy one never crowds out
|
|
89
|
+
another's comments; they share the POST. A warm refresh of up to 32 objects is
|
|
90
|
+
one request and a people lookup. Event references (`nevent`) are not addresses
|
|
91
|
+
and come back `null`; resolve those with `resolveForeignEvent`.
|
|
92
|
+
|
|
73
93
|
### A `body` says which content model it is in — read it, do not guess
|
|
74
94
|
|
|
75
95
|
`body` is the one slot that carries structure, and it arrives in one of two
|
|
@@ -480,6 +500,32 @@ channel's `listedIn` is every Folder that lists the project, so an unread
|
|
|
480
500
|
verdict on it has a team to reach. It costs one more request, for the records.
|
|
481
501
|
A channel with state of its own is a Folder, and only states place it.
|
|
482
502
|
|
|
503
|
+
### Changing a folder
|
|
504
|
+
|
|
505
|
+
```ts
|
|
506
|
+
import { planMoveFile } from '@estiva-app/interop'
|
|
507
|
+
|
|
508
|
+
const plan = planMoveFile(me, Date.now(), {
|
|
509
|
+
address,
|
|
510
|
+
from: { id: here.id, hasState: here.hasState }, // from a read, never a guess
|
|
511
|
+
to: { id: there.id, hasState: there.hasState },
|
|
512
|
+
})
|
|
513
|
+
if (!plan.ok) return plan.reason // 'source-has-no-state' | 'target-has-no-state'
|
|
514
|
+
for (const event of plan.events) { // publish in order; stop at the first refusal
|
|
515
|
+
if (!(await publish(await sign(event))).ok) break
|
|
516
|
+
}
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
`planCreateFolder`, `planRenameFolder`, `planPlaceFile`, `planUnlistFile` and
|
|
520
|
+
`planMoveFile` return **unsigned** events in publish order. Signing and
|
|
521
|
+
publishing stay yours.
|
|
522
|
+
|
|
523
|
+
Every one but create takes `hasState`, because the relay computes a folder's
|
|
524
|
+
next state from its current one and a folder with no `kind:30890` has none: a
|
|
525
|
+
`kind:1852` against it emits state listing only what the command named, and
|
|
526
|
+
everything filed in it by `h` stops being listed. So rename, place and unlist
|
|
527
|
+
send no command to such a folder, and a move into or out of one is refused.
|
|
528
|
+
|
|
483
529
|
---
|
|
484
530
|
|
|
485
531
|
## What is not in here, deliberately
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Folder writes, planned — RFC 0.4 §4, FOL-4.
|
|
3
|
+
*
|
|
4
|
+
* Every change to a Folder is one or more events published in order, and which
|
|
5
|
+
* events depends on one fact the relay will not check for you: **whether the
|
|
6
|
+
* Folder has a `kind:30890` yet.** `handle_folder_command` computes the next
|
|
7
|
+
* state from the existing one, and a Folder with no state has none — so any
|
|
8
|
+
* `kind:1852` against it emits state listing only what that command named, and
|
|
9
|
+
* everything filed in the Folder by `h` stops being listed on every surface
|
|
10
|
+
* (peek#192). Nothing fails; the Folder just looks emptied.
|
|
11
|
+
*
|
|
12
|
+
* That is why these are here rather than in each app. Peek learned it once per
|
|
13
|
+
* writer — rename, start a topic, delete a file — and its move never learned it
|
|
14
|
+
* at all. Ship is the second app to write Folder commands (ADR 0002 §10).
|
|
15
|
+
*
|
|
16
|
+
* ## Pure, and the caller says
|
|
17
|
+
*
|
|
18
|
+
* Each planner returns **unsigned** events and does nothing else: each app
|
|
19
|
+
* signs and publishes its own way. `hasState` is always an argument, never
|
|
20
|
+
* looked up, because the caller has just read the Folder and a guess here is
|
|
21
|
+
* silent loss. Nothing here reads the clock or makes an id — a new Folder's
|
|
22
|
+
* uuid is the caller's.
|
|
23
|
+
*
|
|
24
|
+
* ## Publish in order, and stop at the first refusal
|
|
25
|
+
*
|
|
26
|
+
* The array is the publish order and the order is the design: each later event
|
|
27
|
+
* assumes the earlier ones were accepted. What a refusal part-way through
|
|
28
|
+
* *means* — "created but not listed", "added but still in the old one" — is
|
|
29
|
+
* each app's to say, and the index of the refused event is enough to say it.
|
|
30
|
+
*/
|
|
31
|
+
import { type ChannelVisibility, type UnsignedEvent } from '@estiva-app/protocol';
|
|
32
|
+
/** A Folder as a write needs it: which one, and whether the relay holds state for it. */
|
|
33
|
+
export interface FolderRef {
|
|
34
|
+
id: string;
|
|
35
|
+
/** `FolderSummary.hasState` / `FolderContents.hasState`, from a read — never a guess. */
|
|
36
|
+
hasState: boolean;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Create a Folder: `[kind:9007, kind:1852 add + name]`.
|
|
40
|
+
*
|
|
41
|
+
* The channel first, because a Folder *is* one (RFC 0.4 §4.1). Then a command
|
|
42
|
+
* naming it and listing nothing, so the Folder **has state from birth** — a
|
|
43
|
+
* listing that shows only Folders with state would otherwise never show it,
|
|
44
|
+
* and a stateless Folder is indistinguishable from a bare channel. Safe here
|
|
45
|
+
* and nowhere else without `hasState`: the channel was created by the first
|
|
46
|
+
* event, so nothing is filed in it to hide.
|
|
47
|
+
*/
|
|
48
|
+
export declare function planCreateFolder(pubkey: string, createdAtMs: number, args: {
|
|
49
|
+
folder: string;
|
|
50
|
+
name: string;
|
|
51
|
+
visibility?: ChannelVisibility;
|
|
52
|
+
}): UnsignedEvent[];
|
|
53
|
+
/**
|
|
54
|
+
* Rename a Folder: `[kind:9002, kind:1852 add + name if it has state]`.
|
|
55
|
+
*
|
|
56
|
+
* **A Folder's name has two homes** and the state's shadows the channel's, so
|
|
57
|
+
* writing only the channel leaves the old name wherever the state is read. The
|
|
58
|
+
* command is `add` with no addresses — the contents are kept and only the name
|
|
59
|
+
* changes; `set` would empty it and there is no `rename` op. With no state
|
|
60
|
+
* there is only the channel to rename, and a command would empty the Folder.
|
|
61
|
+
*/
|
|
62
|
+
export declare function planRenameFolder(pubkey: string, createdAtMs: number, args: {
|
|
63
|
+
folder: string;
|
|
64
|
+
name: string;
|
|
65
|
+
hasState: boolean;
|
|
66
|
+
}): UnsignedEvent[];
|
|
67
|
+
/**
|
|
68
|
+
* List a file that was just published into a Folder: `[kind:1852 add]` if the
|
|
69
|
+
* Folder has state, otherwise nothing.
|
|
70
|
+
*
|
|
71
|
+
* A Folder read by containment lists the file the moment its `h` is stored. A
|
|
72
|
+
* Folder with state lists only what its state names, so it needs the `add`.
|
|
73
|
+
* Publish the file first: a refused `add` then leaves a file that exists and
|
|
74
|
+
* is reachable, rather than a listing that points at nothing.
|
|
75
|
+
*/
|
|
76
|
+
export declare function planPlaceFile(pubkey: string, createdAtMs: number, args: {
|
|
77
|
+
folder: string;
|
|
78
|
+
address: string;
|
|
79
|
+
hasState: boolean;
|
|
80
|
+
}): UnsignedEvent[];
|
|
81
|
+
/**
|
|
82
|
+
* Unlist a file that was just deleted from a Folder: `[kind:1852 remove]` if
|
|
83
|
+
* the Folder has state, otherwise nothing.
|
|
84
|
+
*
|
|
85
|
+
* {@link planPlaceFile} in reverse. A Folder with state lists what it names,
|
|
86
|
+
* deleted or not, so the row would stay pointing at nothing; a Folder read by
|
|
87
|
+
* containment stops listing the file once the relay hides it. Delete first: a
|
|
88
|
+
* refused `remove` then leaves a stale row, where the other order would unlist
|
|
89
|
+
* a file the relay kept.
|
|
90
|
+
*/
|
|
91
|
+
export declare function planUnlistFile(pubkey: string, createdAtMs: number, args: {
|
|
92
|
+
folder: string;
|
|
93
|
+
address: string;
|
|
94
|
+
hasState: boolean;
|
|
95
|
+
}): UnsignedEvent[];
|
|
96
|
+
/**
|
|
97
|
+
* Why a move was refused. The source is checked first: no choice of target
|
|
98
|
+
* fixes it, so a consumer can stop offering Move for that file at all.
|
|
99
|
+
*/
|
|
100
|
+
export type MoveRefusal = 'source-has-no-state' | 'target-has-no-state';
|
|
101
|
+
export type MovePlan = {
|
|
102
|
+
ok: true;
|
|
103
|
+
events: UnsignedEvent[];
|
|
104
|
+
} | {
|
|
105
|
+
ok: false;
|
|
106
|
+
reason: MoveRefusal;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Move a file between Folders: `[kind:1852 add to target, kind:1852 remove from source]`.
|
|
110
|
+
*
|
|
111
|
+
* **Add first.** There is no atomic move — state is per Folder — so something
|
|
112
|
+
* can fail between the two. After the add, a failure leaves the file in both
|
|
113
|
+
* Folders: visible, obviously wrong, fixed by moving again. Removing first and
|
|
114
|
+
* failing would leave it in neither, which looks like a file that never was.
|
|
115
|
+
*
|
|
116
|
+
* **Refused unless both Folders have state.** An `add` to a Folder with none
|
|
117
|
+
* emits state listing only the moved file, and everything already filed in it
|
|
118
|
+
* disappears; a `remove` from one emits state listing nothing, and the whole
|
|
119
|
+
* source disappears. Writing a complete state first is not offered here: what
|
|
120
|
+
* a stateless Folder holds is whatever its `h` implies to *this* reader, and a
|
|
121
|
+
* planner that enumerated it would be deciding on everyone's behalf.
|
|
122
|
+
*
|
|
123
|
+
* A move to the same Folder plans nothing.
|
|
124
|
+
*/
|
|
125
|
+
export declare function planMoveFile(pubkey: string, createdAtMs: number, args: {
|
|
126
|
+
address: string;
|
|
127
|
+
from: FolderRef;
|
|
128
|
+
to: FolderRef;
|
|
129
|
+
}): MovePlan;
|
|
130
|
+
//# sourceMappingURL=folders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../src/folders.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;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E,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,aAAa,EAAE,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,WAAW,CAAA;CAAE,CAAA;AAEjG;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,IAAI,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,SAAS,CAAC;IAAC,EAAE,EAAE,SAAS,CAAA;CAAE,GACxD,QAAQ,CAWV"}
|
package/dist/folders.js
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Folder writes, planned — RFC 0.4 §4, FOL-4.
|
|
3
|
+
*
|
|
4
|
+
* Every change to a Folder is one or more events published in order, and which
|
|
5
|
+
* events depends on one fact the relay will not check for you: **whether the
|
|
6
|
+
* Folder has a `kind:30890` yet.** `handle_folder_command` computes the next
|
|
7
|
+
* state from the existing one, and a Folder with no state has none — so any
|
|
8
|
+
* `kind:1852` against it emits state listing only what that command named, and
|
|
9
|
+
* everything filed in the Folder by `h` stops being listed on every surface
|
|
10
|
+
* (peek#192). Nothing fails; the Folder just looks emptied.
|
|
11
|
+
*
|
|
12
|
+
* That is why these are here rather than in each app. Peek learned it once per
|
|
13
|
+
* writer — rename, start a topic, delete a file — and its move never learned it
|
|
14
|
+
* at all. Ship is the second app to write Folder commands (ADR 0002 §10).
|
|
15
|
+
*
|
|
16
|
+
* ## Pure, and the caller says
|
|
17
|
+
*
|
|
18
|
+
* Each planner returns **unsigned** events and does nothing else: each app
|
|
19
|
+
* signs and publishes its own way. `hasState` is always an argument, never
|
|
20
|
+
* looked up, because the caller has just read the Folder and a guess here is
|
|
21
|
+
* silent loss. Nothing here reads the clock or makes an id — a new Folder's
|
|
22
|
+
* uuid is the caller's.
|
|
23
|
+
*
|
|
24
|
+
* ## Publish in order, and stop at the first refusal
|
|
25
|
+
*
|
|
26
|
+
* The array is the publish order and the order is the design: each later event
|
|
27
|
+
* assumes the earlier ones were accepted. What a refusal part-way through
|
|
28
|
+
* *means* — "created but not listed", "added but still in the old one" — is
|
|
29
|
+
* each app's to say, and the index of the refused event is enough to say it.
|
|
30
|
+
*/
|
|
31
|
+
import { buildCreateChannel, buildEditChannelMetadata, buildFolderCommand, } from '@estiva-app/protocol';
|
|
32
|
+
/**
|
|
33
|
+
* Create a Folder: `[kind:9007, kind:1852 add + name]`.
|
|
34
|
+
*
|
|
35
|
+
* The channel first, because a Folder *is* one (RFC 0.4 §4.1). Then a command
|
|
36
|
+
* naming it and listing nothing, so the Folder **has state from birth** — a
|
|
37
|
+
* listing that shows only Folders with state would otherwise never show it,
|
|
38
|
+
* and a stateless Folder is indistinguishable from a bare channel. Safe here
|
|
39
|
+
* and nowhere else without `hasState`: the channel was created by the first
|
|
40
|
+
* event, so nothing is filed in it to hide.
|
|
41
|
+
*/
|
|
42
|
+
export function planCreateFolder(pubkey, createdAtMs, args) {
|
|
43
|
+
return [
|
|
44
|
+
buildCreateChannel(pubkey, createdAtMs, {
|
|
45
|
+
channelUuid: args.folder,
|
|
46
|
+
name: args.name,
|
|
47
|
+
...(args.visibility ? { visibility: args.visibility } : {}),
|
|
48
|
+
}),
|
|
49
|
+
buildFolderCommand(pubkey, createdAtMs, { folder: args.folder, op: 'add', name: args.name }),
|
|
50
|
+
];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Rename a Folder: `[kind:9002, kind:1852 add + name if it has state]`.
|
|
54
|
+
*
|
|
55
|
+
* **A Folder's name has two homes** and the state's shadows the channel's, so
|
|
56
|
+
* writing only the channel leaves the old name wherever the state is read. The
|
|
57
|
+
* command is `add` with no addresses — the contents are kept and only the name
|
|
58
|
+
* changes; `set` would empty it and there is no `rename` op. With no state
|
|
59
|
+
* there is only the channel to rename, and a command would empty the Folder.
|
|
60
|
+
*/
|
|
61
|
+
export function planRenameFolder(pubkey, createdAtMs, args) {
|
|
62
|
+
const rename = buildEditChannelMetadata(pubkey, createdAtMs, { channelUuid: args.folder, name: args.name });
|
|
63
|
+
if (!args.hasState)
|
|
64
|
+
return [rename];
|
|
65
|
+
return [rename, buildFolderCommand(pubkey, createdAtMs, { folder: args.folder, op: 'add', name: args.name })];
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* List a file that was just published into a Folder: `[kind:1852 add]` if the
|
|
69
|
+
* Folder has state, otherwise nothing.
|
|
70
|
+
*
|
|
71
|
+
* A Folder read by containment lists the file the moment its `h` is stored. A
|
|
72
|
+
* Folder with state lists only what its state names, so it needs the `add`.
|
|
73
|
+
* Publish the file first: a refused `add` then leaves a file that exists and
|
|
74
|
+
* is reachable, rather than a listing that points at nothing.
|
|
75
|
+
*/
|
|
76
|
+
export function planPlaceFile(pubkey, createdAtMs, args) {
|
|
77
|
+
if (!args.hasState)
|
|
78
|
+
return [];
|
|
79
|
+
return [buildFolderCommand(pubkey, createdAtMs, { folder: args.folder, op: 'add', addresses: [args.address] })];
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Unlist a file that was just deleted from a Folder: `[kind:1852 remove]` if
|
|
83
|
+
* the Folder has state, otherwise nothing.
|
|
84
|
+
*
|
|
85
|
+
* {@link planPlaceFile} in reverse. A Folder with state lists what it names,
|
|
86
|
+
* deleted or not, so the row would stay pointing at nothing; a Folder read by
|
|
87
|
+
* containment stops listing the file once the relay hides it. Delete first: a
|
|
88
|
+
* refused `remove` then leaves a stale row, where the other order would unlist
|
|
89
|
+
* a file the relay kept.
|
|
90
|
+
*/
|
|
91
|
+
export function planUnlistFile(pubkey, createdAtMs, args) {
|
|
92
|
+
if (!args.hasState)
|
|
93
|
+
return [];
|
|
94
|
+
return [buildFolderCommand(pubkey, createdAtMs, { folder: args.folder, op: 'remove', addresses: [args.address] })];
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Move a file between Folders: `[kind:1852 add to target, kind:1852 remove from source]`.
|
|
98
|
+
*
|
|
99
|
+
* **Add first.** There is no atomic move — state is per Folder — so something
|
|
100
|
+
* can fail between the two. After the add, a failure leaves the file in both
|
|
101
|
+
* Folders: visible, obviously wrong, fixed by moving again. Removing first and
|
|
102
|
+
* failing would leave it in neither, which looks like a file that never was.
|
|
103
|
+
*
|
|
104
|
+
* **Refused unless both Folders have state.** An `add` to a Folder with none
|
|
105
|
+
* emits state listing only the moved file, and everything already filed in it
|
|
106
|
+
* disappears; a `remove` from one emits state listing nothing, and the whole
|
|
107
|
+
* source disappears. Writing a complete state first is not offered here: what
|
|
108
|
+
* a stateless Folder holds is whatever its `h` implies to *this* reader, and a
|
|
109
|
+
* planner that enumerated it would be deciding on everyone's behalf.
|
|
110
|
+
*
|
|
111
|
+
* A move to the same Folder plans nothing.
|
|
112
|
+
*/
|
|
113
|
+
export function planMoveFile(pubkey, createdAtMs, args) {
|
|
114
|
+
if (args.from.id === args.to.id)
|
|
115
|
+
return { ok: true, events: [] };
|
|
116
|
+
if (!args.from.hasState)
|
|
117
|
+
return { ok: false, reason: 'source-has-no-state' };
|
|
118
|
+
if (!args.to.hasState)
|
|
119
|
+
return { ok: false, reason: 'target-has-no-state' };
|
|
120
|
+
return {
|
|
121
|
+
ok: true,
|
|
122
|
+
events: [
|
|
123
|
+
buildFolderCommand(pubkey, createdAtMs, { folder: args.to.id, op: 'add', addresses: [args.address] }),
|
|
124
|
+
buildFolderCommand(pubkey, createdAtMs, { folder: args.from.id, op: 'remove', addresses: [args.address] }),
|
|
125
|
+
],
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
//# sourceMappingURL=folders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"folders.js","sourceRoot":"","sources":["../src/folders.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,GAGnB,MAAM,sBAAs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YACrG,kBAAkB,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;SAC3G;KACF,CAAA;AACH,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -24,12 +24,18 @@
|
|
|
24
24
|
* of every app that installed it, which is the objection that rules out
|
|
25
25
|
* iframes.
|
|
26
26
|
*/
|
|
27
|
-
export { resolveManifest, resolveForeignObject, resolveForeignEvent, resolveFolderProject, resolveFolderContents, listFolders, KIND_FOLDER_STATE, KIND_CHANNEL_METADATA, KIND_BARE_FILE, BARE_FILE_MANIFEST_ADDRESS, ASPECTS, type Aspect, commentKindsOf, conversationCountsOf, conversationsOf, type ConversationMessage, CONVERSATION_LIMIT, commentDecorationsOf, REACTION_HORIZON, type CommentDecoration, type CommentDecorations, type CommentReaction, type CommentResolution, buildActionEvent, 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 ManifestAction, type ActionEffect, ACTION_EFFECTS, type UnsignedActionEvent, } from './projection.js';
|
|
27
|
+
export { resolveManifest, resolveForeignObject, resolveForeignObjects, resolveForeignEvent, resolveFolderProject, resolveFolderContents, listFolders, KIND_FOLDER_STATE, KIND_CHANNEL_METADATA, KIND_BARE_FILE, BARE_FILE_MANIFEST_ADDRESS, ASPECTS, type Aspect, commentKindsOf, conversationCountsOf, conversationsOf, type ConversationMessage, CONVERSATION_LIMIT, commentDecorationsOf, REACTION_HORIZON, type CommentDecoration, type CommentDecorations, type CommentReaction, type CommentResolution, buildActionEvent, 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 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.
|
|
31
31
|
*/
|
|
32
32
|
export { nestingOf, type Nestable, type Nesting } from './nesting.js';
|
|
33
|
+
/**
|
|
34
|
+
* Folder writes as unsigned events in publish order — create, rename, place,
|
|
35
|
+
* unlist, move. Each takes `hasState` from the caller, because a `kind:1852`
|
|
36
|
+
* against a Folder with no state empties it. No signing, no requests.
|
|
37
|
+
*/
|
|
38
|
+
export { planCreateFolder, planRenameFolder, planPlaceFile, planUnlistFile, planMoveFile, type FolderRef, type MovePlan, type MoveRefusal, } from './folders.js';
|
|
33
39
|
/**
|
|
34
40
|
* RFC 0.5 §7's URL grammar — how an object is named in an address bar, and how
|
|
35
41
|
* a pasted link is matched back to one.
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;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.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,0BAA0B,EAC1B,OAAO,EACP,KAAK,MAAM,EACX,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,KAAK,mBAAmB,EACxB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,gBAAgB,EAChB,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,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,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,12 +24,18 @@
|
|
|
24
24
|
* of every app that installed it, which is the objection that rules out
|
|
25
25
|
* iframes.
|
|
26
26
|
*/
|
|
27
|
-
export { resolveManifest, resolveForeignObject, resolveForeignEvent, resolveFolderProject, resolveFolderContents, listFolders, KIND_FOLDER_STATE, KIND_CHANNEL_METADATA, KIND_BARE_FILE, BARE_FILE_MANIFEST_ADDRESS, ASPECTS, commentKindsOf, conversationCountsOf, conversationsOf, CONVERSATION_LIMIT, commentDecorationsOf, REACTION_HORIZON, buildActionEvent, 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, resolveForeignObject, resolveForeignObjects, resolveForeignEvent, resolveFolderProject, resolveFolderContents, listFolders, KIND_FOLDER_STATE, KIND_CHANNEL_METADATA, KIND_BARE_FILE, BARE_FILE_MANIFEST_ADDRESS, ASPECTS, commentKindsOf, conversationCountsOf, conversationsOf, CONVERSATION_LIMIT, commentDecorationsOf, REACTION_HORIZON, buildActionEvent, 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.
|
|
31
31
|
*/
|
|
32
32
|
export { nestingOf } from './nesting.js';
|
|
33
|
+
/**
|
|
34
|
+
* Folder writes as unsigned events in publish order — create, rename, place,
|
|
35
|
+
* unlist, move. Each takes `hasState` from the caller, because a `kind:1852`
|
|
36
|
+
* against a Folder with no state empties it. No signing, no requests.
|
|
37
|
+
*/
|
|
38
|
+
export { planCreateFolder, planRenameFolder, planPlaceFile, planUnlistFile, planMoveFile, } from './folders.js';
|
|
33
39
|
/**
|
|
34
40
|
* RFC 0.5 §7's URL grammar — how an object is named in an address bar, and how
|
|
35
41
|
* a pasted link is matched back to one.
|
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,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,0BAA0B,EAC1B,OAAO,EAEP,cAAc,EACd,oBAAoB,EACpB,eAAe,EAEf,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAKhB,gBAAgB,EAChB,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,EAiBnB,cAAc,GAEf,MAAM,iBAAiB,CAAA;AAExB;;;GAGG;AACH,OAAO,EAAE,SAAS,EAA+B,MAAM,cAAc,CAAA;AAErE;;;;;;;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,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,cAAc,EACd,0BAA0B,EAC1B,OAAO,EAEP,cAAc,EACd,oBAAoB,EACpB,eAAe,EAEf,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAKhB,gBAAgB,EAChB,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,EAiBnB,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,GAIb,MAAM,cAAc,CAAA;AAErB;;;;;;;GAOG;AACH,OAAO,EACL,OAAO,EACP,SAAS,EACT,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,cAAc,GAGf,MAAM,gBAAgB,CAAA"}
|
package/dist/projection.d.ts
CHANGED
|
@@ -1165,6 +1165,47 @@ depth?: number,
|
|
|
1165
1165
|
* omitting it is exactly the old behaviour.
|
|
1166
1166
|
*/
|
|
1167
1167
|
cache?: ProjectionCache): Promise<ForeignObject | null>;
|
|
1168
|
+
/**
|
|
1169
|
+
* Many addressed objects in one round trip — PER-10.
|
|
1170
|
+
*
|
|
1171
|
+
* {@link resolveForeignObject} costs one request per object once the manifest
|
|
1172
|
+
* is cached, and a consumer holding a set re-reads the whole set on every
|
|
1173
|
+
* refresh: Peek's Screener asked once per followed file, every minute, and an
|
|
1174
|
+
* idle Desk spent 144 of 194 requests in five minutes on exactly that, against
|
|
1175
|
+
* a relay that meters 300 a minute per person across every tab. This reads the
|
|
1176
|
+
* same objects with the same filters, **all of them in one POST** — chunked at
|
|
1177
|
+
* `MAX_FILTERS_PER_QUERY` the way {@link conversationsOf} is, since each object
|
|
1178
|
+
* asks up to four filters — then one people lookup for the whole set.
|
|
1179
|
+
*
|
|
1180
|
+
* So a refresh is `ceil(filters / 128)` requests and a people lookup, where it
|
|
1181
|
+
* was one request per object and a lookup each: two for any set of up to 32
|
|
1182
|
+
* objects, whatever their number.
|
|
1183
|
+
*
|
|
1184
|
+
* ## Same filters, same objects
|
|
1185
|
+
*
|
|
1186
|
+
* Each object's filters are exactly the ones {@link resolveForeignObject}
|
|
1187
|
+
* sends, so each keeps its own `limit` — one busy file cannot starve another's
|
|
1188
|
+
* comments, which is why this is not one filter naming every address. The
|
|
1189
|
+
* answers come back pooled, and every object is picked back out of the pool on
|
|
1190
|
+
* its filters' own criteria, the rule `childrenFrom` already follows for the
|
|
1191
|
+
* children that share a request with their parent. The result is keyed by the
|
|
1192
|
+
* reference as given, and each object is what `resolveForeignObject` returns
|
|
1193
|
+
* for it.
|
|
1194
|
+
*
|
|
1195
|
+
* A reference that is not an address, or whose app has no manifest or no
|
|
1196
|
+
* projection for its kind, is `null` — as it is from the single form. An event
|
|
1197
|
+
* reference (`nevent`, a bare id) is not an address and is `null` here; that
|
|
1198
|
+
* is {@link resolveForeignEvent}'s.
|
|
1199
|
+
*
|
|
1200
|
+
* **A failed read rejects the whole call**, as the single form throws. There is
|
|
1201
|
+
* no partial answer to give: the objects arrive pooled, so a chunk that failed
|
|
1202
|
+
* could have held any of them.
|
|
1203
|
+
*/
|
|
1204
|
+
export declare function resolveForeignObjects(references: readonly string[], query: QueryFn,
|
|
1205
|
+
/** Defaults to asking the relay. The browser passes a cached lookup. */
|
|
1206
|
+
lookupPeople?: PeopleFn,
|
|
1207
|
+
/** See {@link ProjectionCache}. Omitting it still reads each app's manifest once per call. */
|
|
1208
|
+
cache?: ProjectionCache): Promise<Record<string, ForeignObject | null>>;
|
|
1168
1209
|
/**
|
|
1169
1210
|
* A Folder's project and the tickets in motion in it.
|
|
1170
1211
|
*
|
package/dist/projection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../src/projection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAA0G,KAAK,cAAc,EAAqB,MAAM,sBAAsB,CAAA;AACrL,OAAO,EAAyB,KAAK,KAAK,EAAE,KAAK,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAGxG,+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,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