@agentshouse/mdruntime 0.1.0-c436a939f2119 → 0.1.0-c664116195e6f
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 +91 -41
- package/README.md +11 -11
- package/dist/adapter.d.ts +87 -51
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +1 -9
- package/dist/attached-model.d.ts +11 -0
- package/dist/attached-model.d.ts.map +1 -0
- package/dist/attached-model.js +47 -0
- package/dist/bootstrap.d.ts +20 -6
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +89 -36
- package/dist/change-set.d.ts.map +1 -1
- package/dist/change-set.js +14 -12
- package/dist/change.d.ts +4 -0
- package/dist/change.d.ts.map +1 -1
- package/dist/client.d.ts +7 -10
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +38 -16
- package/dist/collection.d.ts +6 -13
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +56 -29
- package/dist/connection.d.ts +14 -29
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +669 -670
- package/dist/conversation.d.ts +22 -11
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +250 -105
- package/dist/host.d.ts +8 -2
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +38 -57
- package/dist/identity.d.ts +1 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +7 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/memory.d.ts +12 -5
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +92 -32
- package/dist/model.d.ts +11 -11
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +6 -3
- package/dist/observation.d.ts +2 -0
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +24 -14
- package/dist/outcome.d.ts +7 -21
- package/dist/outcome.d.ts.map +1 -1
- package/dist/overlay.d.ts +1 -1
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +19 -15
- package/dist/paths.d.ts +0 -1
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +0 -16
- package/dist/query.d.ts +8 -3
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +75 -36
- package/dist/reach.d.ts +40 -0
- package/dist/reach.d.ts.map +1 -0
- package/dist/reach.js +270 -0
- package/dist/react.d.ts +39 -0
- package/dist/react.d.ts.map +1 -0
- package/dist/react.js +63 -0
- package/dist/read-side.d.ts +4 -0
- package/dist/read-side.d.ts.map +1 -1
- package/dist/read-side.js +116 -54
- package/dist/refresh.d.ts +12 -1
- package/dist/refresh.d.ts.map +1 -1
- package/dist/refresh.js +35 -22
- package/dist/replica.d.ts +6 -6
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +54 -43
- package/dist/room-draft.d.ts +3 -0
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +7 -5
- package/dist/rows.d.ts +4 -1
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +82 -39
- package/dist/save.d.ts +2 -2
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +115 -65
- package/dist/store.d.ts +29 -16
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +212 -118
- package/dist/wire.d.ts +52 -16
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +51 -65
- package/package.json +14 -2
package/AGENTS.md
CHANGED
|
@@ -7,9 +7,19 @@ enforcement.
|
|
|
7
7
|
## The MD Runtime API
|
|
8
8
|
|
|
9
9
|
App code reaches the MD Runtime through the remote client. The surfaces are
|
|
10
|
-
Rooms,
|
|
11
|
-
|
|
12
|
-
|
|
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, the deployment facts and the signed-in member 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,
|
|
17
|
+
Rooms lists only the Rooms reached whole, a Room reached for single Documents
|
|
18
|
+
shows only those Documents and the Types of the models that govern them, and
|
|
19
|
+
without conversations the conversation members, the chat draft and the
|
|
20
|
+
conversation observation hold none.
|
|
21
|
+
A change of the reach reaches every open observation as its new value, a query
|
|
22
|
+
keeping every unchanged Document the same object.
|
|
13
23
|
|
|
14
24
|
Every `observe` resolves, once its first value has arrived, to a handle:
|
|
15
25
|
`current()` is the latest complete value, `subscribe(listener)` hears each later
|
|
@@ -17,29 +27,29 @@ value whole and returns its unsubscribe, and `close()` ends the observation.
|
|
|
17
27
|
Closing the port ends every handle and rejects every pending call and
|
|
18
28
|
observation; a client that reconnects observes again.
|
|
19
29
|
|
|
20
|
-
Each conversation
|
|
30
|
+
Each conversation the Provider's conversation list names is held complete in the
|
|
31
|
+
browser. `conversation.list()` and `observe('conversations')` answer each with its
|
|
32
|
+
Agent's identity and name, its name, created and finished times, last outcome and live
|
|
33
|
+
`state`: `asking` while a question waits, `working` while a turn runs, else `idle`,
|
|
34
|
+
and `started`, when the running turn began, or `null`.
|
|
21
35
|
Observe one with `observe('conversation', id, { limit })`: the view
|
|
22
36
|
holds its latest `limit` messages, or all of them, oldest first, its chat
|
|
23
37
|
draft, and what the Provider streams for it whether or not anything views it:
|
|
24
|
-
the
|
|
25
|
-
state, the CLI's commands and options
|
|
26
|
-
only in memory: the turn's
|
|
27
|
-
|
|
28
|
-
searchable.
|
|
38
|
+
the running `turn` with its message parts and its context in use and window, the
|
|
39
|
+
open questions, the process state, and the CLI's commands and options. These live
|
|
40
|
+
only in memory: the message accepted under the turn's id replaces the running turn,
|
|
41
|
+
and none of them is stored or searchable.
|
|
29
42
|
`chatDraft.write` and `chatDraft.discard` keep what the App Creator composes;
|
|
30
43
|
sending it is a Provider Action that needs the Provider reachable and is never
|
|
31
44
|
queued.
|
|
32
45
|
|
|
33
|
-
Slots answers each Slot the Provider declares, in its order, with its entries
|
|
34
|
-
in order, each a Room and its segment; a Room two Slots list is the same Room.
|
|
35
|
-
|
|
36
46
|
Each Room in Rooms lists its `attachments`, the files the Provider holds for it
|
|
37
47
|
that its Documents link by the Provider's reference, ordered by `reference`,
|
|
38
48
|
each with `name`, `byteLength`, `mediaType` and the Provider's own entry as
|
|
39
49
|
`entry`. They are as the Provider last declared them and hold no bytes;
|
|
40
50
|
open one through the Provider Action that serves it.
|
|
41
51
|
|
|
42
|
-
Rooms,
|
|
52
|
+
Rooms, Query, Search, Observe, Types, Room Draft, Save, and Reached never
|
|
43
53
|
touch the network.
|
|
44
54
|
History and Call go to the Provider through the Adapter. A Call result whose
|
|
45
55
|
effect the Provider places in a Room carries `at`, that Room and Room Version;
|
|
@@ -47,15 +57,26 @@ effect the Provider places in a Room carries `at`, that Room and Room Version;
|
|
|
47
57
|
reached it, and the MD Runtime keeps refreshing that Room until it has;
|
|
48
58
|
`reached(room, roomVersion, path)` answers whether the held confirmed copy of
|
|
49
59
|
that document was written at a later Room Version. Each History revision
|
|
50
|
-
names its author, `{ kind: 'user', id }` or `{ kind: 'site', id, name }`.
|
|
60
|
+
names its author, `{ kind: 'user', id }` or `{ kind: 'site', id, name }`.
|
|
61
|
+
History of a Path no current document holds answers the removed document's
|
|
62
|
+
revisions with `deleted: true`, newest first; that revision is what a link to
|
|
63
|
+
the Path opens. Every
|
|
51
64
|
member of the
|
|
52
65
|
client is asynchronous. Results are detached snapshots. Nothing in this
|
|
53
66
|
surface returns the authorization, performs a request the App's code
|
|
54
67
|
composes, or exposes the browser store.
|
|
55
68
|
|
|
56
|
-
Read deployment facts with `
|
|
57
|
-
|
|
58
|
-
|
|
69
|
+
Read the deployment facts with `observe('deployment-facts')`. Interpret the
|
|
70
|
+
opaque value using the host's contract.
|
|
71
|
+
|
|
72
|
+
`observe('member')` answers who uses the App: the User the Provider signed in,
|
|
73
|
+
`{ kind: 'user', id, name }` in the shape of a change's `author`, so a Document
|
|
74
|
+
whose `change.author.id` equals its `id` is that User's own. It is `null` until
|
|
75
|
+
the Provider first names one, and where it names none, such as a Site. The
|
|
76
|
+
MD Runtime keeps it with the Local Replicas, so it answers offline once known,
|
|
77
|
+
and every port hears the next member the Provider names; signing out answers
|
|
78
|
+
`null`, then ends the observation with the authorization. It is the only way App code learns who
|
|
79
|
+
uses it.
|
|
59
80
|
|
|
60
81
|
The in-memory Adapter at `@agentshouse/mdruntime/memory` is for tests and
|
|
61
82
|
ships in no bundle.
|
|
@@ -70,22 +91,28 @@ data:
|
|
|
70
91
|
- **Filter.** `rooms` names Room locators and defaults to every Room. `types`
|
|
71
92
|
names MD Types, and `any` names untyped Markdown Documents. `pathPrefix` is a
|
|
72
93
|
directory: `notes` keeps `notes/a.md` and not `notes2/a.md`.
|
|
73
|
-
- **Fields.**
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
94
|
+
- **Fields.** Every frontmatter value is named by JSON Pointer: `/status`,
|
|
95
|
+
`/shipping/city`, `~1` for a `/` and `~0` for a `~` in a key. A segment that
|
|
96
|
+
meets a list applies to every item and a number names one item. `where` names
|
|
97
|
+
pointers, ANDs them, and nests `$and` and `$or`; a pointer through a list holds
|
|
98
|
+
when any item satisfies it. A bare value is equality; the operators are `$eq`,
|
|
99
|
+
`$ne`, `$in`, `$nin`, `$gt`, `$gte`, `$lt`, `$lte`, `$all`, `$size` and
|
|
100
|
+
`$exists`. Equality on a list asks whether it contains the value. Missing, null and empty differ:
|
|
77
101
|
`$exists: false` keeps a missing field, `null` an explicit null, `''` empty
|
|
78
102
|
text and `$size: 0` an empty list. A date compares in calendar order and never
|
|
79
103
|
with a date-time. A reference compares by the Room Path it resolves to.
|
|
80
|
-
Untyped frontmatter
|
|
104
|
+
Untyped frontmatter, and a value under `oneOf` or a conditional, is plain
|
|
105
|
+
values. There is no text containment or regular
|
|
81
106
|
expression.
|
|
82
107
|
- **Relations.** `hop: { field, types, where, pathPrefix }` keeps Documents whose
|
|
83
|
-
reference `field
|
|
84
|
-
`backlinks: { field, types, where, pathPrefix }` keeps Documents that a
|
|
108
|
+
reference at pointer `field`, at any depth, points to a matching Document of the
|
|
109
|
+
same Room. `backlinks: { field, types, where, pathPrefix }` keeps Documents that a
|
|
85
110
|
matching Document of the same Room references. Each keeps a Document once.
|
|
86
111
|
- **Parts.** A Document query must `select`: `'all'`, or `fields`, `sections`,
|
|
87
|
-
`preamble`, `markdown`, `backlinks` and `change`, where `fields`
|
|
88
|
-
|
|
112
|
+
`preamble`, `markdown`, `backlinks` and `change`, where `fields` is `'all'` or a
|
|
113
|
+
list of pointers and `sections` `'all'` or a list of names. Selected pointers
|
|
114
|
+
return the frontmatter holding only them, nested as written. A backlink names
|
|
115
|
+
the referring Path, MD Type and the pointer it came from as `field`. Room and Path always return; a Markdown
|
|
89
116
|
Document also returns its MD Type. A non-Markdown Document or binary link
|
|
90
117
|
target returns only Room and Path. An unselected part is absent. Select only
|
|
91
118
|
what a screen shows: a list that selects the Markdown hears every edit of it.
|
|
@@ -94,13 +121,13 @@ data:
|
|
|
94
121
|
or `null` for a write the Provider made itself, and `time` is the Provider's
|
|
95
122
|
ISO 8601 change time. It is `null` where the Provider delivered no time, as at
|
|
96
123
|
a Site. An unsent edit or move keeps it, an unsent creation has none, and a
|
|
97
|
-
saved write takes the Provider's own once it is Accepted
|
|
124
|
+
saved write takes the Provider's own once it is Accepted. A
|
|
98
125
|
Room's last change is its Document with the latest `time`.
|
|
99
126
|
- **Order and groups.** `orderBy` sorts by `room`, `path`, `type` or `{ field }`
|
|
100
127
|
with TanStack DB's own options, and ties end with Room, then Path. `groupBy` by
|
|
101
128
|
`room`, `type` or `{ field }` answers `{ groups: [{ key, count }] }`, counted
|
|
102
|
-
over every match and ordered by `count` or a key.
|
|
103
|
-
or the groups.
|
|
129
|
+
over every match and ordered by `count` or a key. A sort or group takes only a
|
|
130
|
+
pointer that holds one value. `limit` bounds the Documents or the groups.
|
|
104
131
|
- **Results and errors.** A result carries no Room Version: read freshness from
|
|
105
132
|
Rooms and Sync Status. An invalid query fails with `invalid-query`,
|
|
106
133
|
`unknown-type`, `unknown-field` or `wrong-kind`, naming where, and never
|
|
@@ -114,7 +141,7 @@ search.
|
|
|
114
141
|
|
|
115
142
|
- **What is found.** A Document by its field values, its sections' headings and
|
|
116
143
|
text, its preamble and its Path; a message by its text. Frontmatter keys, Room
|
|
117
|
-
Drafts, chat drafts and
|
|
144
|
+
Drafts, chat drafts and a running turn's parts are never found. There are no phrases,
|
|
118
145
|
word forms, typo tolerance or prefix matching.
|
|
119
146
|
- **Narrowing.** `documents` is a Local Query filter: `rooms`, `types`, `where`,
|
|
120
147
|
`pathPrefix`, `hop` and `backlinks`. `conversations` names conversations. Both
|
|
@@ -130,7 +157,7 @@ search.
|
|
|
130
157
|
|
|
131
158
|
The MD Runtime owns one Room Draft per Room and Path, shared by every App and
|
|
132
159
|
tab. It is durable: it survives reload and navigation. A Room that Discovery
|
|
133
|
-
stops listing takes its Room Drafts
|
|
160
|
+
stops listing takes its Room Drafts and its queue with it.
|
|
134
161
|
Write a Room Draft with `roomDraft.write(room, path, revision, parts)`, naming
|
|
135
162
|
the revision you read, or `null` when there was none, and every part it should
|
|
136
163
|
now change: fields, sections and the preamble, or the whole Markdown, a
|
|
@@ -150,20 +177,28 @@ each Document and binary link target beneath it, saved together.
|
|
|
150
177
|
|
|
151
178
|
Outcomes follow the Provider's answer. An Accepted Change Batch stays in the
|
|
152
179
|
queue, drawn over the confirmed layer, until the confirmed layer reaches the
|
|
153
|
-
Room Version it was accepted at, and then leaves it. Conflicted and Rejected, an expired
|
|
180
|
+
Room Version it was accepted at, and then leaves it. Conflicted and Rejected, an expired operation, and a change that no
|
|
154
181
|
longer applies over the Room each leave the queue and return as Room Drafts on
|
|
155
182
|
the Documents they changed, marked with why: the Provider's structured refusal
|
|
156
183
|
code and fields as returned, not known to have applied, or withdrawn locally.
|
|
157
184
|
The rest of the queue keeps synchronizing, and Sync Status requires attention
|
|
158
|
-
until each returned Room Draft is saved again or discarded.
|
|
159
|
-
|
|
185
|
+
until each returned Room Draft is saved again or discarded. A Change Batch
|
|
186
|
+
keeps no outcome once it leaves the queue; `observe('queue', room)` shows each
|
|
187
|
+
Pending one, and a returned Room Draft says why it returned. Transport
|
|
160
188
|
failure and Provider unavailability keep work Pending and do not infer a
|
|
161
189
|
rejection. A refusal the Provider marks retryable stays Pending until the reset
|
|
162
190
|
it names; the MD Runtime retries the same Change Batch identity and payload and
|
|
163
191
|
never infers an outcome from transport uncertainty. The MD Runtime never
|
|
164
192
|
combines, reorders, or rebases.
|
|
165
193
|
|
|
166
|
-
|
|
194
|
+
On a Site, every Save stays in the visitor's browser. Write grants and
|
|
195
|
+
revisions do not refuse it, and its Pending Change shows in every query and
|
|
196
|
+
across reloads until the browser's storage is cleared. It is never sent:
|
|
197
|
+
`observe('queue', room)` shows it `local`, and Sync Status never waits on it.
|
|
198
|
+
Once the Room changes so that it no longer applies, it leaves the queue and
|
|
199
|
+
returns no Room Draft.
|
|
200
|
+
|
|
201
|
+
`observe('service-mode')` answers the Provider's Service
|
|
167
202
|
Mode, `open` or `write-halted`. While writes are halted, Save still succeeds,
|
|
168
203
|
its Change Batch waits unsent, and the queue is submitted in order once the
|
|
169
204
|
Provider reopens writes. An Action is never held: a write the Provider refuses
|
|
@@ -196,13 +231,28 @@ an App's override respected. What an App Creator's agent adds carries none
|
|
|
196
231
|
of these promises by itself. Reading, querying and searching never wait for
|
|
197
232
|
the network. Data lives only in the App Creator's browser and with the Provider.
|
|
198
233
|
|
|
199
|
-
## App code
|
|
234
|
+
## App code takes the client its host hands it and never constructs a Runtime
|
|
235
|
+
|
|
236
|
+
App code takes the client its host hands it: in House,
|
|
237
|
+
`houseBridge().runtime` from `@agentshouse/app-bridge` resolves to the
|
|
238
|
+
client House built into the page. It never constructs a Runtime or a client.
|
|
239
|
+
It imports only types from `@agentshouse/mdruntime/client`, does not call
|
|
240
|
+
`connectMdRuntime` or `serveMdRuntime`, and does not import the package main,
|
|
241
|
+
the host entry, or the Adapter package. Hosts and tests use those entries; the
|
|
242
|
+
served App does not.
|
|
200
243
|
|
|
201
|
-
App
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
and
|
|
244
|
+
A React App may observe and save through `@agentshouse/mdruntime/react`, which
|
|
245
|
+
names React as a peer dependency. `useObserve(client, topic, ...input)` takes
|
|
246
|
+
the arguments of `observe` and returns `{ state: 'loading' }` until the topic's
|
|
247
|
+
first value arrives, then `{ state: 'ready', value }`, re-rendering on each
|
|
248
|
+
change; a `null` client observes nothing and stays loading. `useSave(client)` returns `busy`, the last `outcome` or `failure`, and
|
|
249
|
+
`save(room, roomDrafts)`, which writes each Path's parts onto the Room Draft
|
|
250
|
+
already there, keeping the bases its parts have, or onto a new one, and saves
|
|
251
|
+
them together. A refused Save leaves the Room Drafts for the App to save again
|
|
252
|
+
or discard; a failure is recorded and rejects. `saveRoomDrafts(client, room,
|
|
253
|
+
roomDrafts)` is that save outside a component. A react-admin or Refine App
|
|
254
|
+
reads and writes its Rooms through the data providers of
|
|
255
|
+
`@agentshouse/mdruntime-families`.
|
|
206
256
|
|
|
207
257
|
## What an agent must never do
|
|
208
258
|
|
package/README.md
CHANGED
|
@@ -12,27 +12,27 @@ npm install @agentshouse/mdruntime
|
|
|
12
12
|
|
|
13
13
|
## Entries
|
|
14
14
|
|
|
15
|
-
| Entry | For
|
|
16
|
-
| ------------------------------- |
|
|
17
|
-
| `@agentshouse/mdruntime/client` |
|
|
18
|
-
| `@agentshouse/mdruntime/host` | The host that serves a Runtime: `serveMdRuntime`
|
|
19
|
-
| `@agentshouse/mdruntime` |
|
|
20
|
-
| `@agentshouse/mdruntime/memory` | Tests: `createMemoryAdapter`, an in-memory Adapter
|
|
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
|
+
| `@agentshouse/mdruntime/react` | React over the client: `useObserve`, `useSave`, `saveRoomDrafts` |
|
|
21
22
|
|
|
22
23
|
## Usage
|
|
23
24
|
|
|
24
|
-
App code
|
|
25
|
-
it:
|
|
25
|
+
App code takes the client its host hands it; in House the App bridge hands it:
|
|
26
26
|
|
|
27
27
|
```ts
|
|
28
|
-
import {
|
|
28
|
+
import { houseBridge } from '@agentshouse/app-bridge';
|
|
29
29
|
|
|
30
|
-
const runtime =
|
|
30
|
+
const runtime = await houseBridge().runtime;
|
|
31
31
|
const rooms = await runtime.rooms();
|
|
32
32
|
const notes = await runtime.query({ types: ['note'], select: 'all', limit: 20 });
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
`
|
|
35
|
+
`observe('storage-loss')` reports `null` or the stable code
|
|
36
36
|
`storage-loss` when unsynchronized Room Drafts and Pending Changes were lost.
|
|
37
37
|
The host supplies the user-facing wording.
|
|
38
38
|
|
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', 'move-reference-rewrites'];
|
|
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[];
|
|
@@ -24,25 +21,32 @@ export type ReplicaAdmission = {
|
|
|
24
21
|
export type DiscoveredRoom = {
|
|
25
22
|
name: string;
|
|
26
23
|
locator: string;
|
|
24
|
+
handle: string;
|
|
27
25
|
roomVersion: string;
|
|
28
26
|
operations: OperationScopes;
|
|
29
27
|
replica: ReplicaAdmission;
|
|
30
|
-
attachedModel: ModelIdentity | null;
|
|
31
28
|
typedSelection?: TypedSelection;
|
|
32
|
-
untypedFolders?: readonly string[];
|
|
33
29
|
providerOwnedPaths: readonly string[];
|
|
34
30
|
};
|
|
35
31
|
export type Capability = {
|
|
36
32
|
name: string;
|
|
37
33
|
limits?: readonly ProviderLimit[];
|
|
38
34
|
actions?: readonly ActionDeclaration[];
|
|
39
|
-
|
|
35
|
+
conversationAgents?: ConversationAgents;
|
|
40
36
|
};
|
|
41
|
-
export type
|
|
37
|
+
export type ConversationAgents = {
|
|
42
38
|
locator: string;
|
|
43
39
|
type: string;
|
|
44
40
|
identity: string;
|
|
41
|
+
name: string;
|
|
42
|
+
};
|
|
43
|
+
export type ListedConversation = {
|
|
44
|
+
conversation: string;
|
|
45
45
|
agent: string;
|
|
46
|
+
name: string;
|
|
47
|
+
created: string;
|
|
48
|
+
finished: string | null;
|
|
49
|
+
outcome: string | null;
|
|
46
50
|
};
|
|
47
51
|
export type ConversationAction = 'conversation.create' | 'conversation.send' | 'conversation.answer' | 'conversation.interrupt' | 'conversation.kill' | 'conversation.cancel' | 'conversation.delete' | 'conversation.history';
|
|
48
52
|
export type ConversationMessage = {
|
|
@@ -68,15 +72,37 @@ export type ConversationHistoryPage = {
|
|
|
68
72
|
export type ConversationHistories = {
|
|
69
73
|
histories: readonly ConversationHistoryPage[];
|
|
70
74
|
};
|
|
71
|
-
export type
|
|
72
|
-
|
|
73
|
-
|
|
75
|
+
export type TurnContext = {
|
|
76
|
+
used: number;
|
|
77
|
+
window: number;
|
|
74
78
|
};
|
|
75
|
-
export type
|
|
76
|
-
|
|
77
|
-
|
|
79
|
+
export type TurnOperation = {
|
|
80
|
+
op: 'begin';
|
|
81
|
+
at: string;
|
|
82
|
+
} | {
|
|
83
|
+
op: 'start';
|
|
84
|
+
index: number;
|
|
85
|
+
part: unknown;
|
|
86
|
+
} | {
|
|
87
|
+
op: 'append';
|
|
88
|
+
index: number;
|
|
89
|
+
text: string;
|
|
90
|
+
} | {
|
|
91
|
+
op: 'status';
|
|
92
|
+
index: number;
|
|
78
93
|
status: string;
|
|
79
|
-
|
|
94
|
+
result: unknown;
|
|
95
|
+
} | {
|
|
96
|
+
op: 'count';
|
|
97
|
+
index: number;
|
|
98
|
+
count: number;
|
|
99
|
+
} | {
|
|
100
|
+
op: 'plan';
|
|
101
|
+
index: number;
|
|
102
|
+
entries: readonly unknown[];
|
|
103
|
+
} | ({
|
|
104
|
+
op: 'context';
|
|
105
|
+
} & TurnContext);
|
|
80
106
|
export type ProcessCommand = {
|
|
81
107
|
[field: string]: unknown;
|
|
82
108
|
name: string;
|
|
@@ -114,19 +140,10 @@ export type SessionOption = (SessionOptionNaming & {
|
|
|
114
140
|
currentValue: boolean;
|
|
115
141
|
});
|
|
116
142
|
export type ConversationEvent = {
|
|
117
|
-
kind: '
|
|
143
|
+
kind: 'turn';
|
|
118
144
|
conversation: string;
|
|
119
145
|
turn: string;
|
|
120
|
-
|
|
121
|
-
} | {
|
|
122
|
-
kind: 'plan';
|
|
123
|
-
conversation: string;
|
|
124
|
-
turn: string;
|
|
125
|
-
plan: readonly PlanStep[];
|
|
126
|
-
} | {
|
|
127
|
-
kind: 'working-note';
|
|
128
|
-
conversation: string;
|
|
129
|
-
note: WorkingNote | null;
|
|
146
|
+
operation: TurnOperation;
|
|
130
147
|
} | {
|
|
131
148
|
kind: 'questions';
|
|
132
149
|
conversation: string;
|
|
@@ -150,6 +167,15 @@ export type ConversationEvent = {
|
|
|
150
167
|
} | {
|
|
151
168
|
kind: 'gap';
|
|
152
169
|
conversation: string;
|
|
170
|
+
} | {
|
|
171
|
+
kind: 'list';
|
|
172
|
+
entries: readonly ListedConversation[];
|
|
173
|
+
} | {
|
|
174
|
+
kind: 'listed';
|
|
175
|
+
entry: ListedConversation;
|
|
176
|
+
} | {
|
|
177
|
+
kind: 'unlisted';
|
|
178
|
+
conversation: string;
|
|
153
179
|
};
|
|
154
180
|
export type ConversationStream = {
|
|
155
181
|
replicate(conversations: readonly string[]): void;
|
|
@@ -177,19 +203,11 @@ export type Retention = {
|
|
|
177
203
|
};
|
|
178
204
|
export type Discovery = {
|
|
179
205
|
kind: 'discovery';
|
|
180
|
-
supportedVersions: readonly number[];
|
|
181
|
-
mdModel: MdModelIdentity;
|
|
182
206
|
rooms: readonly DiscoveredRoom[];
|
|
183
|
-
slots?: readonly {
|
|
184
|
-
slot: string;
|
|
185
|
-
entries: readonly {
|
|
186
|
-
locator: string;
|
|
187
|
-
segment: string | null;
|
|
188
|
-
}[];
|
|
189
|
-
}[];
|
|
190
207
|
capabilities: readonly Capability[];
|
|
191
208
|
providerLimits: readonly ProviderLimit[];
|
|
192
209
|
retention: Retention;
|
|
210
|
+
member?: Member;
|
|
193
211
|
};
|
|
194
212
|
export type TransportUncertainty = {
|
|
195
213
|
kind: 'transport-uncertainty';
|
|
@@ -225,6 +243,9 @@ export type ChangeAuthor = {
|
|
|
225
243
|
id: string;
|
|
226
244
|
name: string;
|
|
227
245
|
};
|
|
246
|
+
export type Member = Extract<ChangeAuthor, {
|
|
247
|
+
kind: 'user';
|
|
248
|
+
}>;
|
|
228
249
|
export type HeadChange = {
|
|
229
250
|
author: ChangeAuthor | null;
|
|
230
251
|
time: string;
|
|
@@ -241,9 +262,14 @@ export type BootstrapRequest = {
|
|
|
241
262
|
selection: string;
|
|
242
263
|
pageToken?: PageToken;
|
|
243
264
|
};
|
|
265
|
+
export type RoomModels = {
|
|
266
|
+
collection?: ModelResult;
|
|
267
|
+
selection?: ModelResult;
|
|
268
|
+
};
|
|
244
269
|
export type BootstrapPage = {
|
|
245
270
|
kind: 'bootstrap';
|
|
246
271
|
roomVersion: string;
|
|
272
|
+
models?: RoomModels;
|
|
247
273
|
documents: Readonly<Record<string, string>>;
|
|
248
274
|
revisions: Readonly<Record<string, string>>;
|
|
249
275
|
changes: Readonly<Record<string, HeadChange>>;
|
|
@@ -256,12 +282,12 @@ export type RefreshRequest = {
|
|
|
256
282
|
locator: string;
|
|
257
283
|
selection: string;
|
|
258
284
|
fromRoomVersion: string;
|
|
259
|
-
minPosition?: string;
|
|
260
285
|
pageToken?: PageToken;
|
|
261
286
|
};
|
|
262
287
|
export type RefreshPage = {
|
|
263
288
|
kind: 'net-advancement';
|
|
264
289
|
roomVersion: string;
|
|
290
|
+
models?: RoomModels;
|
|
265
291
|
documents: Readonly<Record<string, string>>;
|
|
266
292
|
revisions: Readonly<Record<string, string>>;
|
|
267
293
|
changes: Readonly<Record<string, HeadChange>>;
|
|
@@ -293,7 +319,9 @@ export type MutationResult = {
|
|
|
293
319
|
roomVersion: string;
|
|
294
320
|
documents: Readonly<Record<string, string>>;
|
|
295
321
|
revisions: Readonly<Record<string, string>>;
|
|
322
|
+
changes: Readonly<Record<string, HeadChange>>;
|
|
296
323
|
removals: readonly string[];
|
|
324
|
+
attachments?: readonly RoomAttachment[];
|
|
297
325
|
author?: string;
|
|
298
326
|
time?: string;
|
|
299
327
|
} | (ProviderRefusal & {
|
|
@@ -331,6 +359,7 @@ export type HistoryResult = {
|
|
|
331
359
|
kind: 'history';
|
|
332
360
|
revisions: readonly HistoryRevision[];
|
|
333
361
|
pageToken?: PageToken;
|
|
362
|
+
deleted?: true;
|
|
334
363
|
} | {
|
|
335
364
|
kind: 'revision';
|
|
336
365
|
content: string;
|
|
@@ -352,27 +381,33 @@ export type ActionResult = {
|
|
|
352
381
|
} | (ProviderRefusal & {
|
|
353
382
|
kind: 'rejected';
|
|
354
383
|
}) | AdapterFailure;
|
|
355
|
-
export type
|
|
384
|
+
export type HeldRoom = {
|
|
356
385
|
locator: string;
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
attached: 'typed-selection';
|
|
362
|
-
roots: readonly string[];
|
|
363
|
-
model: ModelIdentity | null;
|
|
386
|
+
roomVersion: string;
|
|
387
|
+
documents: Readonly<Record<string, string>>;
|
|
388
|
+
revisions: Readonly<Record<string, string>>;
|
|
389
|
+
attachments: readonly RoomAttachment[];
|
|
364
390
|
};
|
|
365
|
-
export type
|
|
391
|
+
export type RoomStreamEvent = {
|
|
392
|
+
kind: 'opened';
|
|
393
|
+
} | {
|
|
394
|
+
kind: 'closed';
|
|
395
|
+
revoked: boolean;
|
|
396
|
+
} | {
|
|
397
|
+
kind: 'opening';
|
|
398
|
+
expired: readonly string[];
|
|
399
|
+
} | {
|
|
400
|
+
kind: 'room-version';
|
|
366
401
|
locator: string;
|
|
367
402
|
roomVersion: string;
|
|
368
|
-
modelChanged?: true;
|
|
369
403
|
};
|
|
370
|
-
export type
|
|
371
|
-
|
|
372
|
-
|
|
404
|
+
export type RoomStream = {
|
|
405
|
+
hold(rooms: readonly HeldRoom[]): void;
|
|
406
|
+
reopen(): void;
|
|
407
|
+
observe(notify: (event: RoomStreamEvent) => void): () => void;
|
|
373
408
|
};
|
|
374
409
|
export type Adapter = {
|
|
375
|
-
|
|
410
|
+
readonly localSaves?: true;
|
|
376
411
|
authorize(): Promise<Authorization>;
|
|
377
412
|
discover(authorization: Authorization): Promise<DiscoverResult>;
|
|
378
413
|
bootstrap(authorization: Authorization, request: BootstrapRequest): Promise<BootstrapResult>;
|
|
@@ -381,7 +416,8 @@ export type Adapter = {
|
|
|
381
416
|
history(authorization: Authorization, request: HistoryRequest): Promise<HistoryResult>;
|
|
382
417
|
action(authorization: Authorization, request: ActionRequest): Promise<ActionResult>;
|
|
383
418
|
reached(locator: string, roomVersion: string, target: string): boolean;
|
|
384
|
-
|
|
419
|
+
follows(locator: string, roomVersion: string, next: string): boolean;
|
|
420
|
+
roomStream?: RoomStream;
|
|
385
421
|
conversations?: ConversationStream;
|
|
386
422
|
serviceMode?: ServiceModeSignal;
|
|
387
423
|
};
|
package/dist/adapter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,eAAO,MAAM,sBAAsB,YACjC,iBAAiB,EACjB,wBAAwB,EACxB,4BAA4B,EAC5B,cAAc,EACd,kBAAkB,EAClB,yBAAyB,CACjB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,aAAa,EAAE,aAAa,GAAG,IAAI,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,UAAU,GAAG,aAAa,CAAA;CAAE,CAAC;AAE5F,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,eAAe,CAAC;IAC5B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,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAC7F,OAAO,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACvF,MAAM,CACJ,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GACvC,OAAO,CAAC,cAAc,CAAC,CAAC;IAC3B,OAAO,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACvF,MAAM,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACpF,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IACvE,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attached-model.d.ts","sourceRoot":"","sources":["../src/attached-model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAI1E,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CACvE,CAAC;AAEF,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,GAAG,aAAa,CA4CtF"}
|