@agentshouse/mdruntime 0.1.0-alpha.9 → 0.1.0-c30ed2b8e04d5
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/AGENTS.md +217 -0
- package/README.md +43 -0
- package/dist/adapter.d.ts +184 -34
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +1 -10
- package/dist/attached-model.d.ts +11 -0
- package/dist/attached-model.d.ts.map +1 -0
- package/dist/attached-model.js +34 -0
- package/dist/attachment.d.ts +3 -0
- package/dist/attachment.d.ts.map +1 -0
- package/dist/attachment.js +8 -0
- package/dist/bootstrap.d.ts +7 -9
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +29 -28
- package/dist/change-set.d.ts +33 -0
- package/dist/change-set.d.ts.map +1 -0
- package/dist/change-set.js +83 -0
- package/dist/change.d.ts +9 -0
- package/dist/change.d.ts.map +1 -1
- package/dist/change.js +6 -5
- package/dist/client.d.ts +38 -32
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +114 -183
- package/dist/collection.d.ts +13 -16
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +45 -88
- package/dist/connection.d.ts +47 -44
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +1542 -1158
- package/dist/conversation.d.ts +44 -22
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +540 -328
- package/dist/durability.js +6 -6
- package/dist/file.d.ts +2 -2
- package/dist/file.d.ts.map +1 -1
- package/dist/file.js +48 -71
- package/dist/host.d.ts +12 -2
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +97 -119
- package/dist/identity.d.ts +1 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +10 -9
- package/dist/index.d.ts +12 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/log.js +5 -6
- package/dist/memory.d.ts +15 -7
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +255 -220
- package/dist/model.d.ts +10 -29
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +18 -21
- package/dist/observation.d.ts +27 -0
- package/dist/observation.d.ts.map +1 -0
- package/dist/observation.js +95 -0
- package/dist/outcome.d.ts +10 -29
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +1 -23
- package/dist/overlay.d.ts +9 -2
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +187 -43
- package/dist/paths.d.ts +0 -1
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +12 -19
- package/dist/query.d.ts +215 -10
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +421 -15
- package/dist/reach.d.ts +40 -0
- package/dist/reach.d.ts.map +1 -0
- package/dist/reach.js +277 -0
- package/dist/read-side.d.ts +18 -0
- package/dist/read-side.d.ts.map +1 -0
- package/dist/read-side.js +377 -0
- package/dist/refresh.d.ts +5 -5
- package/dist/refresh.d.ts.map +1 -1
- package/dist/refresh.js +49 -30
- package/dist/replica.d.ts +25 -5
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +227 -38
- package/dist/room-draft.d.ts +127 -0
- package/dist/room-draft.d.ts.map +1 -0
- package/dist/room-draft.js +329 -0
- package/dist/rows.d.ts +41 -0
- package/dist/rows.d.ts.map +1 -0
- package/dist/rows.js +100 -0
- package/dist/save.d.ts +6 -4
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +262 -350
- package/dist/search.d.ts +61 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +125 -0
- package/dist/status.d.ts +4 -6
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +9 -13
- package/dist/store.d.ts +59 -32
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +338 -134
- package/dist/transfer.d.ts +5 -0
- package/dist/transfer.d.ts.map +1 -1
- package/dist/transfer.js +1 -5
- package/dist/wire.d.ts +51 -16
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +77 -108
- package/package.json +6 -12
- package/dist/adapter.js.map +0 -1
- package/dist/bootstrap.js.map +0 -1
- package/dist/change.js.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/collection.js.map +0 -1
- package/dist/connection.js.map +0 -1
- package/dist/conversation.js.map +0 -1
- package/dist/durability.js.map +0 -1
- package/dist/file.js.map +0 -1
- package/dist/host.js.map +0 -1
- package/dist/identity.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/log.js.map +0 -1
- package/dist/memory.js.map +0 -1
- package/dist/model.js.map +0 -1
- package/dist/outcome.js.map +0 -1
- package/dist/overlay.js.map +0 -1
- package/dist/paths.js.map +0 -1
- package/dist/query.js.map +0 -1
- package/dist/refresh.js.map +0 -1
- package/dist/replica.js.map +0 -1
- package/dist/save.js.map +0 -1
- package/dist/status.js.map +0 -1
- package/dist/store.js.map +0 -1
- package/dist/transfer.js.map +0 -1
- package/dist/wire.js.map +0 -1
package/AGENTS.md
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# Instructions for the App Creator's agent
|
|
2
|
+
|
|
3
|
+
These instructions address an agent in an environment with Git. Obtain the
|
|
4
|
+
App Repository, change it, build, and push. They are documentation, not
|
|
5
|
+
enforcement.
|
|
6
|
+
|
|
7
|
+
## The MD Runtime API
|
|
8
|
+
|
|
9
|
+
App code reaches the MD Runtime through the remote client. The surfaces are
|
|
10
|
+
Rooms, Query, Search, Observe, Types, Room Draft, Save, History, Call, Reached, Log,
|
|
11
|
+
the reported persistence answer, reauthorization, conversation, the chat draft,
|
|
12
|
+
and Presentation State. Sync Status, the Service Mode, the storage-loss
|
|
13
|
+
statement and the deployment facts are observations only.
|
|
14
|
+
|
|
15
|
+
The host attaches each port with its reach, and every member and observation
|
|
16
|
+
answers within it: a Room outside it answers as one the replica does not hold, a
|
|
17
|
+
Room reached for single Documents shows only those Documents, the Types of the
|
|
18
|
+
models that govern them and no attachments, and without conversations the
|
|
19
|
+
conversation members, the chat draft and the conversation observation hold none.
|
|
20
|
+
A change of the reach reaches every open observation as its new value, a query
|
|
21
|
+
keeping every unchanged Document the same object.
|
|
22
|
+
|
|
23
|
+
Every `observe` resolves, once its first value has arrived, to a handle:
|
|
24
|
+
`current()` is the latest complete value, `subscribe(listener)` hears each later
|
|
25
|
+
value whole and returns its unsubscribe, and `close()` ends the observation.
|
|
26
|
+
Closing the port ends every handle and rejects every pending call and
|
|
27
|
+
observation; a client that reconnects observes again.
|
|
28
|
+
|
|
29
|
+
Each conversation a Provider card names is held complete in the browser.
|
|
30
|
+
Observe one with `observe('conversation', id, { limit })`: the view
|
|
31
|
+
holds its latest `limit` messages, or all of them, oldest first, its chat
|
|
32
|
+
draft, and what the Provider streams for it whether or not anything views it:
|
|
33
|
+
the running `turn` with its message parts and its context in use and window, the
|
|
34
|
+
open questions, the process state, and the CLI's commands and options. These live
|
|
35
|
+
only in memory: the message accepted under the turn's id replaces the running turn,
|
|
36
|
+
and none of them is stored or searchable.
|
|
37
|
+
`chatDraft.write` and `chatDraft.discard` keep what the App Creator composes;
|
|
38
|
+
sending it is a Provider Action that needs the Provider reachable and is never
|
|
39
|
+
queued.
|
|
40
|
+
|
|
41
|
+
Each Room in Rooms lists its `attachments`, the files the Provider holds for it
|
|
42
|
+
that its Documents link by the Provider's reference, ordered by `reference`,
|
|
43
|
+
each with `name`, `byteLength`, `mediaType` and the Provider's own entry as
|
|
44
|
+
`entry`. They are as the Provider last declared them and hold no bytes;
|
|
45
|
+
open one through the Provider Action that serves it.
|
|
46
|
+
|
|
47
|
+
Rooms, Query, Search, Observe, Types, Room Draft, Save, and Reached never
|
|
48
|
+
touch the network.
|
|
49
|
+
History and Call go to the Provider through the Adapter. A Call result whose
|
|
50
|
+
effect the Provider places in a Room carries `at`, that Room and Room Version;
|
|
51
|
+
`reached(room, roomVersion)` answers whether the Room's confirmed state has
|
|
52
|
+
reached it, and the MD Runtime keeps refreshing that Room until it has;
|
|
53
|
+
`reached(room, roomVersion, path)` answers whether the held confirmed copy of
|
|
54
|
+
that document was written at a later Room Version. Each History revision
|
|
55
|
+
names its author, `{ kind: 'user', id }` or `{ kind: 'site', id, name }`. Every
|
|
56
|
+
member of the
|
|
57
|
+
client is asynchronous. Results are detached snapshots. Nothing in this
|
|
58
|
+
surface returns the authorization, performs a request the App's code
|
|
59
|
+
composes, or exposes the browser store.
|
|
60
|
+
|
|
61
|
+
Read the deployment facts with `observe('deployment-facts')`. Interpret the
|
|
62
|
+
opaque value using the host's contract.
|
|
63
|
+
|
|
64
|
+
The in-memory Adapter at `@agentshouse/mdruntime/memory` is for tests and
|
|
65
|
+
ships in no bundle.
|
|
66
|
+
|
|
67
|
+
## Local Query rules
|
|
68
|
+
|
|
69
|
+
`query(q)` answers once from local state; `observe('query', q)` holds the whole
|
|
70
|
+
result and hears it again only when it changes, keeping every unchanged Document
|
|
71
|
+
the same object, so a component can tell what changed by identity. A query is
|
|
72
|
+
data:
|
|
73
|
+
|
|
74
|
+
- **Filter.** `rooms` names Room locators and defaults to every Room. `types`
|
|
75
|
+
names MD Types, and `any` names untyped Markdown Documents. `pathPrefix` is a
|
|
76
|
+
directory: `notes` keeps `notes/a.md` and not `notes2/a.md`.
|
|
77
|
+
- **Fields.** `where` names frontmatter fields, ANDs them, and nests `$and` and
|
|
78
|
+
`$or`. A bare value is equality; the operators are `$eq`, `$ne`, `$in`, `$nin`,
|
|
79
|
+
`$gt`, `$gte`, `$lt`, `$lte`, `$all`, `$size` and `$exists`. Equality on a list
|
|
80
|
+
asks whether it contains the value. Missing, null and empty differ:
|
|
81
|
+
`$exists: false` keeps a missing field, `null` an explicit null, `''` empty
|
|
82
|
+
text and `$size: 0` an empty list. A date compares in calendar order and never
|
|
83
|
+
with a date-time. A reference compares by the Room Path it resolves to.
|
|
84
|
+
Untyped frontmatter is plain values. There is no text containment or regular
|
|
85
|
+
expression.
|
|
86
|
+
- **Relations.** `hop: { field, types, where, pathPrefix }` keeps Documents whose
|
|
87
|
+
reference `field` points to a matching Document of the same Room.
|
|
88
|
+
`backlinks: { field, types, where, pathPrefix }` keeps Documents that a
|
|
89
|
+
matching Document of the same Room references. Each keeps a Document once.
|
|
90
|
+
- **Parts.** A Document query must `select`: `'all'`, or `fields`, `sections`,
|
|
91
|
+
`preamble`, `markdown`, `backlinks` and `change`, where `fields` and `sections`
|
|
92
|
+
are `'all'` or a list of names. Room and Path always return; a Markdown
|
|
93
|
+
Document also returns its MD Type. A non-Markdown Document or binary link
|
|
94
|
+
target returns only Room and Path. An unselected part is absent. Select only
|
|
95
|
+
what a screen shows: a list that selects the Markdown hears every edit of it.
|
|
96
|
+
- **Change.** `change` is `{ author, time }` of the Document's head revision as
|
|
97
|
+
the Provider last delivered it: `author` is `{ kind: 'user' | 'site', id, name }`
|
|
98
|
+
or `null` for a write the Provider made itself, and `time` is the Provider's
|
|
99
|
+
ISO 8601 change time. It is `null` where the Provider delivered no time, as at
|
|
100
|
+
a Site. An unsent edit or move keeps it, an unsent creation has none, and a
|
|
101
|
+
saved write takes the Provider's own once it is Accepted and refreshed. A
|
|
102
|
+
Room's last change is its Document with the latest `time`.
|
|
103
|
+
- **Order and groups.** `orderBy` sorts by `room`, `path`, `type` or `{ field }`
|
|
104
|
+
with TanStack DB's own options, and ties end with Room, then Path. `groupBy` by
|
|
105
|
+
`room`, `type` or `{ field }` answers `{ groups: [{ key, count }] }`, counted
|
|
106
|
+
over every match and ordered by `count` or a key. `limit` bounds the Documents
|
|
107
|
+
or the groups.
|
|
108
|
+
- **Results and errors.** A result carries no Room Version: read freshness from
|
|
109
|
+
Rooms and Sync Status. An invalid query fails with `invalid-query`,
|
|
110
|
+
`unknown-type`, `unknown-field` or `wrong-kind`, naming where, and never
|
|
111
|
+
answers an empty result in its place.
|
|
112
|
+
|
|
113
|
+
## Local Search rules
|
|
114
|
+
|
|
115
|
+
`search({ text, documents, conversations, limit })` answers once, by words, from
|
|
116
|
+
local state, with MiniSearch at its default configuration. There is no observed
|
|
117
|
+
search.
|
|
118
|
+
|
|
119
|
+
- **What is found.** A Document by its field values, its sections' headings and
|
|
120
|
+
text, its preamble and its Path; a message by its text. Frontmatter keys, Room
|
|
121
|
+
Drafts, chat drafts and a running turn's parts are never found. There are no phrases,
|
|
122
|
+
word forms, typo tolerance or prefix matching.
|
|
123
|
+
- **Narrowing.** `documents` is a Local Query filter: `rooms`, `types`, `where`,
|
|
124
|
+
`pathPrefix`, `hop` and `backlinks`. `conversations` names conversations. Both
|
|
125
|
+
apply before `limit`, which bounds each list; without it every hit returns.
|
|
126
|
+
- **Results.** `{ documents, messages }`, each ranked by `score`, which compares
|
|
127
|
+
hits of one list of one search. A Document hit names its `room`, `path` and
|
|
128
|
+
`type`, a message hit its `conversation` and `identity`, and `matches` maps each
|
|
129
|
+
matched word to the parts it matched in: `fields`, `sections`, `preamble` or
|
|
130
|
+
`path`, or `text`. A hit carries no position; mark the words in the text you
|
|
131
|
+
show. An invalid filter fails with its Local Query error.
|
|
132
|
+
|
|
133
|
+
## Room Draft, Save, and outcome rules
|
|
134
|
+
|
|
135
|
+
The MD Runtime owns one Room Draft per Room and Path, shared by every App and
|
|
136
|
+
tab. It is durable: it survives reload and navigation. A Room that Discovery
|
|
137
|
+
stops listing takes its Room Drafts and its queue with it.
|
|
138
|
+
Write a Room Draft with `roomDraft.write(room, path, revision, parts)`, naming
|
|
139
|
+
the revision you read, or `null` when there was none, and every part it should
|
|
140
|
+
now change: fields, sections and the preamble, or the whole Markdown, a
|
|
141
|
+
creation, a move, or a removal. A part new to the Room Draft names its base,
|
|
142
|
+
the value you showed when it was opened; the MD Runtime keeps a part's first
|
|
143
|
+
base. A binary link target has a Room Draft too, for a move or a removal, with
|
|
144
|
+
`null` as its base. A write or a discard from an older revision is refused as `stale` with
|
|
145
|
+
the current Room Draft; read it and write again.
|
|
146
|
+
|
|
147
|
+
Save takes one Room and the Room Drafts of it to save, each with its revision,
|
|
148
|
+
validates locally, and on success appends one Change Batch to that Room's
|
|
149
|
+
queue and removes those Room Drafts. It is refused as `stale`, as
|
|
150
|
+
`changed-underneath` naming each part whose base no longer matches the visible
|
|
151
|
+
state, or by a local validation rule, and then creates nothing and leaves every
|
|
152
|
+
Room Draft in place. A directory move or removal is a move or removal part on
|
|
153
|
+
each Document and binary link target beneath it, saved together.
|
|
154
|
+
|
|
155
|
+
Outcomes follow the Provider's answer. An Accepted Change Batch stays in the
|
|
156
|
+
queue, drawn over the confirmed layer, until the confirmed layer reaches the
|
|
157
|
+
Room Version it was accepted at, and then leaves it. Conflicted and Rejected, an expired operation, and a change that no
|
|
158
|
+
longer applies over the Room each leave the queue and return as Room Drafts on
|
|
159
|
+
the Documents they changed, marked with why: the Provider's structured refusal
|
|
160
|
+
code and fields as returned, not known to have applied, or withdrawn locally.
|
|
161
|
+
The rest of the queue keeps synchronizing, and Sync Status requires attention
|
|
162
|
+
until each returned Room Draft is saved again or discarded. A Change Batch
|
|
163
|
+
keeps no outcome once it leaves the queue; `observe('queue', room)` shows each
|
|
164
|
+
Pending one, and a returned Room Draft says why it returned. Transport
|
|
165
|
+
failure and Provider unavailability keep work Pending and do not infer a
|
|
166
|
+
rejection. A refusal the Provider marks retryable stays Pending until the reset
|
|
167
|
+
it names; the MD Runtime retries the same Change Batch identity and payload and
|
|
168
|
+
never infers an outcome from transport uncertainty. The MD Runtime never
|
|
169
|
+
combines, reorders, or rebases.
|
|
170
|
+
|
|
171
|
+
`observe('service-mode')` answers the Provider's Service
|
|
172
|
+
Mode, `open` or `write-halted`. While writes are halted, Save still succeeds,
|
|
173
|
+
its Change Batch waits unsent, and the queue is submitted in order once the
|
|
174
|
+
Provider reopens writes. An Action is never held: a write the Provider refuses
|
|
175
|
+
for the halt returns that refusal to its caller. Show the Provider as read-only
|
|
176
|
+
instead of retrying.
|
|
177
|
+
|
|
178
|
+
## The neutrality rule
|
|
179
|
+
|
|
180
|
+
No module outside an Adapter package imports, names, or special-cases a
|
|
181
|
+
Provider. MD UI and every App reach data only through the client entry.
|
|
182
|
+
|
|
183
|
+
## Content-safety rules
|
|
184
|
+
|
|
185
|
+
The Provider authorization belongs to the Runtime host and is never readable
|
|
186
|
+
by the App's code. The App's code reaches the network only at the external
|
|
187
|
+
origins its manifest declares, empty by default, and the Provider enforces
|
|
188
|
+
that set. Every request to the Provider itself goes through the MD Runtime.
|
|
189
|
+
Rendered Markdown never executes scripts, renders raw HTML only for the
|
|
190
|
+
details and summary elements, and loads images and other resources only from
|
|
191
|
+
origins the Provider's policy allows.
|
|
192
|
+
|
|
193
|
+
## Launch promises MD UI keeps
|
|
194
|
+
|
|
195
|
+
MD UI uses semantic HTML, is fully operable from a keyboard with visible
|
|
196
|
+
focus and labelled controls, and lays out from a 360 pixel wide viewport to
|
|
197
|
+
a desktop. Its strings are English only, dates and numbers follow the
|
|
198
|
+
browser locale, and content is never translated. Light and dark themes come
|
|
199
|
+
from CSS custom properties with the browser's preference as the default and
|
|
200
|
+
an App's override respected. What an App Creator's agent adds carries none
|
|
201
|
+
of these promises by itself. Reading, querying and searching never wait for
|
|
202
|
+
the network. Data lives only in the App Creator's browser and with the Provider.
|
|
203
|
+
|
|
204
|
+
## App code takes the client its host hands it and never constructs a Runtime
|
|
205
|
+
|
|
206
|
+
App code takes the client its host hands it: in House,
|
|
207
|
+
`connectHouseBridge().runtime` from `@agentshouse/app-bridge` resolves to the
|
|
208
|
+
client House built into the page. It never constructs a Runtime or a client.
|
|
209
|
+
It imports only types from `@agentshouse/mdruntime/client`, does not call
|
|
210
|
+
`connectMdRuntime` or `serveMdRuntime`, and does not import the package main,
|
|
211
|
+
the host entry, or the Adapter package. Hosts and tests use those entries; the
|
|
212
|
+
served App does not.
|
|
213
|
+
|
|
214
|
+
## What an agent must never do
|
|
215
|
+
|
|
216
|
+
An agent must never read the authorization, load code from a Room, call the
|
|
217
|
+
Provider directly, or rebase a refused Change Batch.
|
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# `@agentshouse/mdruntime`
|
|
2
|
+
|
|
3
|
+
The headless core of MD App: local Rooms of typed Markdown Documents with
|
|
4
|
+
query, search, observation, Room Drafts, and queued saves that synchronize
|
|
5
|
+
with a Provider through an Adapter.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install @agentshouse/mdruntime
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Entries
|
|
14
|
+
|
|
15
|
+
| Entry | For |
|
|
16
|
+
| ------------------------------- | -------------------------------------------------- |
|
|
17
|
+
| `@agentshouse/mdruntime/client` | The host's client: `connectMdRuntime(port)` |
|
|
18
|
+
| `@agentshouse/mdruntime/host` | The host that serves a Runtime: `serveMdRuntime` |
|
|
19
|
+
| `@agentshouse/mdruntime` | Shared types |
|
|
20
|
+
| `@agentshouse/mdruntime/memory` | Tests: `createMemoryAdapter`, an in-memory Adapter |
|
|
21
|
+
|
|
22
|
+
## Usage
|
|
23
|
+
|
|
24
|
+
App code takes the client its host hands it; in House the App bridge hands it:
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { connectHouseBridge } from '@agentshouse/app-bridge';
|
|
28
|
+
|
|
29
|
+
const runtime = await connectHouseBridge().runtime;
|
|
30
|
+
const rooms = await runtime.rooms();
|
|
31
|
+
const notes = await runtime.query({ types: ['note'], select: 'all', limit: 20 });
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
`observe('storage-loss')` reports `null` or the stable code
|
|
35
|
+
`storage-loss` when unsynchronized Room Drafts and Pending Changes were lost.
|
|
36
|
+
The host supplies the user-facing wording.
|
|
37
|
+
|
|
38
|
+
The rules an App's agent follows, including Local Query, Local Search, Room
|
|
39
|
+
Draft and Save, are in [`AGENTS.md`](AGENTS.md).
|
|
40
|
+
|
|
41
|
+
## License
|
|
42
|
+
|
|
43
|
+
MIT
|
package/dist/adapter.d.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ModelResult } from './model.js';
|
|
2
2
|
import type { ChangeBatch } from './change.js';
|
|
3
3
|
export type Authorization = object;
|
|
4
|
-
export declare const ROOM_CONTRACT_VERSION = 1;
|
|
5
|
-
export declare const VERSION_1_CAPABILITIES: readonly ['stable-file-ids', 'ranked-provider-search', 'room-version-notifications', 'room-history', 'provider-actions'];
|
|
6
4
|
export type MdModelIdentity = {
|
|
7
5
|
identity: string;
|
|
8
6
|
version: string;
|
|
9
7
|
};
|
|
10
8
|
export type TypedSelection = {
|
|
11
9
|
roots: readonly string[];
|
|
12
|
-
attachedModel: ModelIdentity | null;
|
|
13
10
|
};
|
|
14
11
|
export type OperationScopes = {
|
|
15
12
|
read: readonly string[];
|
|
@@ -22,13 +19,11 @@ export type ReplicaAdmission = {
|
|
|
22
19
|
admission: 'admitted' | 'unavailable';
|
|
23
20
|
};
|
|
24
21
|
export type DiscoveredRoom = {
|
|
25
|
-
collectionRoot: string;
|
|
26
22
|
name: string;
|
|
27
23
|
locator: string;
|
|
28
24
|
roomVersion: string;
|
|
29
25
|
operations: OperationScopes;
|
|
30
26
|
replica: ReplicaAdmission;
|
|
31
|
-
attachedModel: ModelIdentity | null;
|
|
32
27
|
typedSelection?: TypedSelection;
|
|
33
28
|
providerOwnedPaths: readonly string[];
|
|
34
29
|
};
|
|
@@ -46,25 +41,123 @@ export type ConversationCards = {
|
|
|
46
41
|
};
|
|
47
42
|
export type ConversationAction = 'conversation.create' | 'conversation.send' | 'conversation.answer' | 'conversation.interrupt' | 'conversation.kill' | 'conversation.cancel' | 'conversation.delete' | 'conversation.history';
|
|
48
43
|
export type ConversationMessage = {
|
|
44
|
+
identity: string;
|
|
49
45
|
turn: string;
|
|
46
|
+
text: string;
|
|
50
47
|
message: unknown;
|
|
51
48
|
};
|
|
49
|
+
export type AcceptedMessage = ConversationMessage & {
|
|
50
|
+
position: string;
|
|
51
|
+
};
|
|
52
|
+
export type ConversationHistoryRequest = {
|
|
53
|
+
conversations: readonly {
|
|
54
|
+
conversation: string;
|
|
55
|
+
after?: string;
|
|
56
|
+
}[];
|
|
57
|
+
};
|
|
58
|
+
export type ConversationHistoryPage = {
|
|
59
|
+
conversation: string;
|
|
60
|
+
messages: readonly AcceptedMessage[];
|
|
61
|
+
next?: string;
|
|
62
|
+
};
|
|
63
|
+
export type ConversationHistories = {
|
|
64
|
+
histories: readonly ConversationHistoryPage[];
|
|
65
|
+
};
|
|
66
|
+
export type TurnContext = {
|
|
67
|
+
used: number;
|
|
68
|
+
window: number;
|
|
69
|
+
};
|
|
70
|
+
export type TurnOperation = {
|
|
71
|
+
op: 'start';
|
|
72
|
+
index: number;
|
|
73
|
+
part: unknown;
|
|
74
|
+
} | {
|
|
75
|
+
op: 'append';
|
|
76
|
+
index: number;
|
|
77
|
+
text: string;
|
|
78
|
+
} | {
|
|
79
|
+
op: 'status';
|
|
80
|
+
index: number;
|
|
81
|
+
status: string;
|
|
82
|
+
result: unknown;
|
|
83
|
+
} | {
|
|
84
|
+
op: 'count';
|
|
85
|
+
index: number;
|
|
86
|
+
count: number;
|
|
87
|
+
} | {
|
|
88
|
+
op: 'plan';
|
|
89
|
+
index: number;
|
|
90
|
+
entries: readonly unknown[];
|
|
91
|
+
} | ({
|
|
92
|
+
op: 'context';
|
|
93
|
+
} & TurnContext);
|
|
94
|
+
export type ProcessCommand = {
|
|
95
|
+
[field: string]: unknown;
|
|
96
|
+
name: string;
|
|
97
|
+
description: string;
|
|
98
|
+
input?: {
|
|
99
|
+
[field: string]: unknown;
|
|
100
|
+
hint: string;
|
|
101
|
+
} | null;
|
|
102
|
+
};
|
|
103
|
+
type SelectValue = {
|
|
104
|
+
[field: string]: unknown;
|
|
105
|
+
value: string;
|
|
106
|
+
name: string;
|
|
107
|
+
description?: string | null;
|
|
108
|
+
};
|
|
109
|
+
type SelectGroup = {
|
|
110
|
+
[field: string]: unknown;
|
|
111
|
+
group: string;
|
|
112
|
+
name: string;
|
|
113
|
+
options: readonly SelectValue[];
|
|
114
|
+
};
|
|
115
|
+
type SessionOptionNaming = {
|
|
116
|
+
[field: string]: unknown;
|
|
117
|
+
id: string;
|
|
118
|
+
name: string;
|
|
119
|
+
description?: string | null;
|
|
120
|
+
category?: string | null;
|
|
121
|
+
};
|
|
122
|
+
export type SessionOption = (SessionOptionNaming & {
|
|
123
|
+
type: 'select';
|
|
124
|
+
currentValue: string;
|
|
125
|
+
options: readonly SelectValue[] | readonly SelectGroup[];
|
|
126
|
+
}) | (SessionOptionNaming & {
|
|
127
|
+
type: 'boolean';
|
|
128
|
+
currentValue: boolean;
|
|
129
|
+
});
|
|
52
130
|
export type ConversationEvent = {
|
|
53
|
-
kind: '
|
|
131
|
+
kind: 'turn';
|
|
54
132
|
conversation: string;
|
|
55
133
|
turn: string;
|
|
56
|
-
|
|
134
|
+
operation: TurnOperation;
|
|
135
|
+
} | {
|
|
136
|
+
kind: 'questions';
|
|
137
|
+
conversation: string;
|
|
138
|
+
questions: readonly unknown[];
|
|
139
|
+
} | {
|
|
140
|
+
kind: 'process';
|
|
141
|
+
conversation: string;
|
|
142
|
+
running: boolean;
|
|
143
|
+
} | {
|
|
144
|
+
kind: 'commands';
|
|
145
|
+
conversation: string;
|
|
146
|
+
commands: readonly ProcessCommand[];
|
|
147
|
+
} | {
|
|
148
|
+
kind: 'options';
|
|
149
|
+
conversation: string;
|
|
150
|
+
options: readonly SessionOption[];
|
|
57
151
|
} | {
|
|
58
152
|
kind: 'accepted-message';
|
|
59
153
|
conversation: string;
|
|
60
|
-
message:
|
|
154
|
+
message: AcceptedMessage;
|
|
61
155
|
} | {
|
|
62
|
-
kind: '
|
|
156
|
+
kind: 'gap';
|
|
63
157
|
conversation: string;
|
|
64
|
-
summary: unknown;
|
|
65
158
|
};
|
|
66
|
-
export type
|
|
67
|
-
|
|
159
|
+
export type ConversationStream = {
|
|
160
|
+
replicate(conversations: readonly string[]): void;
|
|
68
161
|
observe(notify: (event: ConversationEvent) => void): () => void;
|
|
69
162
|
};
|
|
70
163
|
export type ActionDeclaration = {
|
|
@@ -89,8 +182,6 @@ export type Retention = {
|
|
|
89
182
|
};
|
|
90
183
|
export type Discovery = {
|
|
91
184
|
kind: 'discovery';
|
|
92
|
-
supportedVersions: readonly number[];
|
|
93
|
-
mdModel: MdModelIdentity;
|
|
94
185
|
rooms: readonly DiscoveredRoom[];
|
|
95
186
|
capabilities: readonly Capability[];
|
|
96
187
|
providerLimits: readonly ProviderLimit[];
|
|
@@ -121,17 +212,44 @@ export type ContractUnavailable = ProviderRefusal & {
|
|
|
121
212
|
};
|
|
122
213
|
export type DiscoverResult = Discovery | TransportUncertainty | RevokedAuthorization | ContractUnavailable;
|
|
123
214
|
export type PageToken = string;
|
|
215
|
+
export type ChangeAuthor = {
|
|
216
|
+
kind: 'user';
|
|
217
|
+
id: string;
|
|
218
|
+
name: string;
|
|
219
|
+
} | {
|
|
220
|
+
kind: 'site';
|
|
221
|
+
id: string;
|
|
222
|
+
name: string;
|
|
223
|
+
};
|
|
224
|
+
export type HeadChange = {
|
|
225
|
+
author: ChangeAuthor | null;
|
|
226
|
+
time: string;
|
|
227
|
+
};
|
|
228
|
+
export type RoomAttachment = {
|
|
229
|
+
reference: string;
|
|
230
|
+
name: string;
|
|
231
|
+
byteLength: number;
|
|
232
|
+
mediaType: string | null;
|
|
233
|
+
entry: unknown;
|
|
234
|
+
};
|
|
124
235
|
export type BootstrapRequest = {
|
|
125
236
|
locator: string;
|
|
126
237
|
selection: string;
|
|
127
238
|
pageToken?: PageToken;
|
|
128
239
|
};
|
|
240
|
+
export type RoomModels = {
|
|
241
|
+
collection?: ModelResult;
|
|
242
|
+
selection?: ModelResult;
|
|
243
|
+
};
|
|
129
244
|
export type BootstrapPage = {
|
|
130
245
|
kind: 'bootstrap';
|
|
131
246
|
roomVersion: string;
|
|
247
|
+
models?: RoomModels;
|
|
132
248
|
documents: Readonly<Record<string, string>>;
|
|
133
249
|
revisions: Readonly<Record<string, string>>;
|
|
250
|
+
changes: Readonly<Record<string, HeadChange>>;
|
|
134
251
|
binaryTargets: readonly string[];
|
|
252
|
+
attachments?: readonly RoomAttachment[];
|
|
135
253
|
pageToken?: PageToken;
|
|
136
254
|
};
|
|
137
255
|
export type BootstrapResult = BootstrapPage | AdapterFailure;
|
|
@@ -144,31 +262,40 @@ export type RefreshRequest = {
|
|
|
144
262
|
export type RefreshPage = {
|
|
145
263
|
kind: 'net-advancement';
|
|
146
264
|
roomVersion: string;
|
|
265
|
+
models?: RoomModels;
|
|
147
266
|
documents: Readonly<Record<string, string>>;
|
|
148
267
|
revisions: Readonly<Record<string, string>>;
|
|
268
|
+
changes: Readonly<Record<string, HeadChange>>;
|
|
149
269
|
binaryTargets: readonly string[];
|
|
150
270
|
removals: readonly string[];
|
|
271
|
+
attachments?: readonly RoomAttachment[];
|
|
151
272
|
pageToken?: PageToken;
|
|
152
273
|
};
|
|
153
274
|
export type RefreshResult = {
|
|
154
275
|
kind: 'still-current';
|
|
155
276
|
} | RefreshPage | {
|
|
156
277
|
kind: 'beyond-horizon';
|
|
157
|
-
} | AdapterFailure;
|
|
278
|
+
} | RetryableRefusal | AdapterFailure;
|
|
158
279
|
export type MutationRequest = {
|
|
159
280
|
locator: string;
|
|
160
281
|
changeBatch: ChangeBatch;
|
|
282
|
+
upload?: unknown;
|
|
161
283
|
};
|
|
162
284
|
export type RetryableRefusal = ProviderRefusal & {
|
|
163
285
|
kind: 'retryable-refusal';
|
|
164
286
|
reset?: string;
|
|
165
287
|
};
|
|
288
|
+
export type ServiceMode = 'open' | 'write-halted';
|
|
289
|
+
export type ServiceModeSignal = {
|
|
290
|
+
observe(notify: (mode: ServiceMode) => void): () => void;
|
|
291
|
+
};
|
|
166
292
|
export type MutationResult = {
|
|
167
293
|
kind: 'accepted';
|
|
168
294
|
roomVersion: string;
|
|
169
295
|
documents: Readonly<Record<string, string>>;
|
|
170
296
|
revisions: Readonly<Record<string, string>>;
|
|
171
297
|
removals: readonly string[];
|
|
298
|
+
attachments?: readonly RoomAttachment[];
|
|
172
299
|
author?: string;
|
|
173
300
|
time?: string;
|
|
174
301
|
} | (ProviderRefusal & {
|
|
@@ -179,11 +306,21 @@ export type MutationResult = {
|
|
|
179
306
|
kind: 'rejected';
|
|
180
307
|
affected: Readonly<Record<string, string>>;
|
|
181
308
|
}) | RetryableRefusal | {
|
|
309
|
+
kind: 'write-halted';
|
|
310
|
+
} | {
|
|
182
311
|
kind: 'expired';
|
|
183
312
|
} | AdapterFailure;
|
|
313
|
+
export type HistoryAuthor = {
|
|
314
|
+
kind: 'user';
|
|
315
|
+
id: string;
|
|
316
|
+
} | {
|
|
317
|
+
kind: 'site';
|
|
318
|
+
id: string;
|
|
319
|
+
name: string;
|
|
320
|
+
};
|
|
184
321
|
export type HistoryRevision = {
|
|
185
322
|
revision: string;
|
|
186
|
-
author:
|
|
323
|
+
author: HistoryAuthor;
|
|
187
324
|
time: string;
|
|
188
325
|
};
|
|
189
326
|
export type HistoryRequest = {
|
|
@@ -206,41 +343,54 @@ export type ActionRequest = {
|
|
|
206
343
|
name: string;
|
|
207
344
|
input: unknown;
|
|
208
345
|
};
|
|
346
|
+
export type RoomVersionAt = {
|
|
347
|
+
locator: string;
|
|
348
|
+
roomVersion: string;
|
|
349
|
+
};
|
|
209
350
|
export type ActionResult = {
|
|
210
351
|
kind: 'action';
|
|
211
352
|
result: unknown;
|
|
353
|
+
at?: RoomVersionAt;
|
|
212
354
|
} | (ProviderRefusal & {
|
|
213
355
|
kind: 'rejected';
|
|
214
356
|
}) | AdapterFailure;
|
|
215
|
-
export type
|
|
216
|
-
locator: string;
|
|
217
|
-
attached: 'collection';
|
|
218
|
-
collectionRoot: string;
|
|
219
|
-
model: ModelIdentity | null;
|
|
220
|
-
} | {
|
|
357
|
+
export type HeldRoom = {
|
|
221
358
|
locator: string;
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
359
|
+
roomVersion: string;
|
|
360
|
+
documents: Readonly<Record<string, string>>;
|
|
361
|
+
revisions: Readonly<Record<string, string>>;
|
|
362
|
+
attachments: readonly RoomAttachment[];
|
|
225
363
|
};
|
|
226
|
-
export type
|
|
364
|
+
export type RoomStreamEvent = {
|
|
365
|
+
kind: 'opened';
|
|
366
|
+
} | {
|
|
367
|
+
kind: 'closed';
|
|
368
|
+
revoked: boolean;
|
|
369
|
+
} | {
|
|
370
|
+
kind: 'opening';
|
|
371
|
+
expired: readonly string[];
|
|
372
|
+
} | {
|
|
373
|
+
kind: 'room-version';
|
|
227
374
|
locator: string;
|
|
228
375
|
roomVersion: string;
|
|
229
376
|
};
|
|
230
|
-
export type
|
|
231
|
-
|
|
232
|
-
observe(notify: (
|
|
377
|
+
export type RoomStream = {
|
|
378
|
+
hold(rooms: readonly HeldRoom[]): void;
|
|
379
|
+
observe(notify: (event: RoomStreamEvent) => void): () => void;
|
|
233
380
|
};
|
|
234
381
|
export type Adapter = {
|
|
235
|
-
model(authorization: Authorization, request: ModelRequest): Promise<ModelResult>;
|
|
236
382
|
authorize(): Promise<Authorization>;
|
|
237
383
|
discover(authorization: Authorization): Promise<DiscoverResult>;
|
|
238
384
|
bootstrap(authorization: Authorization, request: BootstrapRequest): Promise<BootstrapResult>;
|
|
239
385
|
refresh(authorization: Authorization, request: RefreshRequest): Promise<RefreshResult>;
|
|
240
|
-
mutate(authorization: Authorization, request: MutationRequest): Promise<MutationResult>;
|
|
386
|
+
mutate(authorization: Authorization, request: MutationRequest, keep: (upload: unknown) => Promise<void>): Promise<MutationResult>;
|
|
241
387
|
history(authorization: Authorization, request: HistoryRequest): Promise<HistoryResult>;
|
|
242
388
|
action(authorization: Authorization, request: ActionRequest): Promise<ActionResult>;
|
|
243
|
-
|
|
244
|
-
|
|
389
|
+
reached(locator: string, roomVersion: string, target: string): boolean;
|
|
390
|
+
follows(locator: string, roomVersion: string, next: string): boolean;
|
|
391
|
+
roomStream?: RoomStream;
|
|
392
|
+
conversations?: ConversationStream;
|
|
393
|
+
serviceMode?: ServiceModeSignal;
|
|
245
394
|
};
|
|
395
|
+
export {};
|
|
246
396
|
//# sourceMappingURL=adapter.d.ts.map
|
package/dist/adapter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"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AAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACrE,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACjC,CAAC"}
|
package/dist/adapter.js
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ModelResult, type ModelState } from './model.js';
|
|
2
|
+
export type AttachedModel = {
|
|
3
|
+
state: ModelState;
|
|
4
|
+
refused: {
|
|
5
|
+
identity: string;
|
|
6
|
+
rule: string;
|
|
7
|
+
location?: string;
|
|
8
|
+
} | null;
|
|
9
|
+
};
|
|
10
|
+
export declare function attachedModel(answer: ModelResult, previous: ModelState): AttachedModel;
|
|
11
|
+
//# sourceMappingURL=attached-model.d.ts.map
|