@agentshouse/mdruntime 0.1.0-c8c4b020a3ec7 → 0.1.0-c99e5271060cd

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.
Files changed (97) hide show
  1. package/AGENTS.md +94 -33
  2. package/README.md +10 -10
  3. package/dist/adapter.d.ts +92 -46
  4. package/dist/adapter.d.ts.map +1 -1
  5. package/dist/adapter.js +1 -9
  6. package/dist/attached-model.d.ts +11 -0
  7. package/dist/attached-model.d.ts.map +1 -0
  8. package/dist/attached-model.js +47 -0
  9. package/dist/bootstrap.d.ts +20 -6
  10. package/dist/bootstrap.d.ts.map +1 -1
  11. package/dist/bootstrap.js +89 -35
  12. package/dist/change-set.d.ts.map +1 -1
  13. package/dist/change-set.js +13 -7
  14. package/dist/change.d.ts +4 -0
  15. package/dist/change.d.ts.map +1 -1
  16. package/dist/client.d.ts +8 -5
  17. package/dist/client.d.ts.map +1 -1
  18. package/dist/client.js +57 -24
  19. package/dist/collection.d.ts +6 -11
  20. package/dist/collection.d.ts.map +1 -1
  21. package/dist/collection.js +56 -19
  22. package/dist/connection.d.ts +20 -16
  23. package/dist/connection.d.ts.map +1 -1
  24. package/dist/connection.js +699 -578
  25. package/dist/conversation.d.ts +23 -11
  26. package/dist/conversation.d.ts.map +1 -1
  27. package/dist/conversation.js +252 -106
  28. package/dist/failure.d.ts +13 -0
  29. package/dist/failure.d.ts.map +1 -0
  30. package/dist/failure.js +19 -0
  31. package/dist/host.d.ts +8 -1
  32. package/dist/host.d.ts.map +1 -1
  33. package/dist/host.js +38 -38
  34. package/dist/identity.d.ts +1 -0
  35. package/dist/identity.d.ts.map +1 -1
  36. package/dist/identity.js +7 -1
  37. package/dist/index.d.ts +5 -4
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/memory.d.ts +12 -5
  40. package/dist/memory.d.ts.map +1 -1
  41. package/dist/memory.js +108 -36
  42. package/dist/model.d.ts +13 -12
  43. package/dist/model.d.ts.map +1 -1
  44. package/dist/model.js +6 -3
  45. package/dist/observation.d.ts +2 -0
  46. package/dist/observation.d.ts.map +1 -1
  47. package/dist/observation.js +24 -14
  48. package/dist/open.d.ts +2 -0
  49. package/dist/open.d.ts.map +1 -0
  50. package/dist/open.js +1 -0
  51. package/dist/outcome.d.ts +22 -3
  52. package/dist/outcome.d.ts.map +1 -1
  53. package/dist/outcome.js +35 -1
  54. package/dist/overlay.d.ts +1 -1
  55. package/dist/overlay.d.ts.map +1 -1
  56. package/dist/overlay.js +19 -15
  57. package/dist/paths.d.ts +0 -1
  58. package/dist/paths.d.ts.map +1 -1
  59. package/dist/paths.js +0 -16
  60. package/dist/query.d.ts +10 -3
  61. package/dist/query.d.ts.map +1 -1
  62. package/dist/query.js +78 -36
  63. package/dist/reach.d.ts +40 -0
  64. package/dist/reach.d.ts.map +1 -0
  65. package/dist/reach.js +272 -0
  66. package/dist/react.d.ts +40 -0
  67. package/dist/react.d.ts.map +1 -0
  68. package/dist/react.js +64 -0
  69. package/dist/read-side.d.ts +4 -0
  70. package/dist/read-side.d.ts.map +1 -1
  71. package/dist/read-side.js +116 -54
  72. package/dist/refresh.d.ts +12 -1
  73. package/dist/refresh.d.ts.map +1 -1
  74. package/dist/refresh.js +35 -22
  75. package/dist/replica.d.ts +6 -6
  76. package/dist/replica.d.ts.map +1 -1
  77. package/dist/replica.js +53 -39
  78. package/dist/room-draft.d.ts +11 -8
  79. package/dist/room-draft.d.ts.map +1 -1
  80. package/dist/room-draft.js +19 -26
  81. package/dist/rows.d.ts +4 -1
  82. package/dist/rows.d.ts.map +1 -1
  83. package/dist/rows.js +82 -39
  84. package/dist/save.d.ts +4 -3
  85. package/dist/save.d.ts.map +1 -1
  86. package/dist/save.js +127 -68
  87. package/dist/search.d.ts +3 -2
  88. package/dist/search.d.ts.map +1 -1
  89. package/dist/status.d.ts +2 -1
  90. package/dist/status.d.ts.map +1 -1
  91. package/dist/store.d.ts +25 -2
  92. package/dist/store.d.ts.map +1 -1
  93. package/dist/store.js +206 -90
  94. package/dist/wire.d.ts +55 -19
  95. package/dist/wire.d.ts.map +1 -1
  96. package/dist/wire.js +62 -61
  97. package/package.json +14 -2
package/AGENTS.md CHANGED
@@ -10,7 +10,16 @@ App code reaches the MD Runtime through the remote client. The surfaces are
10
10
  Rooms, Query, Search, Observe, Types, Room Draft, Save, History, Call, Reached, Log,
11
11
  the reported persistence answer, reauthorization, conversation, the chat draft,
12
12
  and Presentation State. Sync Status, the Service Mode, the storage-loss
13
- statement and the deployment facts are observations only.
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.
14
23
 
15
24
  Every `observe` resolves, once its first value has arrived, to a handle:
16
25
  `current()` is the latest complete value, `subscribe(listener)` hears each later
@@ -18,15 +27,18 @@ value whole and returns its unsubscribe, and `close()` ends the observation.
18
27
  Closing the port ends every handle and rejects every pending call and
19
28
  observation; a client that reconnects observes again.
20
29
 
21
- Each conversation a Provider card names is held complete in the browser.
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`.
22
35
  Observe one with `observe('conversation', id, { limit })`: the view
23
36
  holds its latest `limit` messages, or all of them, oldest first, its chat
24
37
  draft, and what the Provider streams for it whether or not anything views it:
25
- the growing text and plan of the running turn, the open questions, the process
26
- state, the CLI's commands and options, and the latest `workingNote`. These live
27
- only in memory: the turn's accepted message replaces its growing text and plan,
28
- a working note is never part of a message, and none of them is stored or
29
- 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.
30
42
  `chatDraft.write` and `chatDraft.discard` keep what the App Creator composes;
31
43
  sending it is a Provider Action that needs the Provider reachable and is never
32
44
  queued.
@@ -39,21 +51,42 @@ open one through the Provider Action that serves it.
39
51
 
40
52
  Rooms, Query, Search, Observe, Types, Room Draft, Save, and Reached never
41
53
  touch the network.
42
- History and Call go to the Provider through the Adapter. A Call result whose
54
+ History and Call go to the Provider through the Adapter. Call takes the Action names
55
+ the Adapter declares; any other name answers `undeclared` without reaching the
56
+ Provider. A Call result whose
43
57
  effect the Provider places in a Room carries `at`, that Room and Room Version;
44
58
  `reached(room, roomVersion)` answers whether the Room's confirmed state has
45
59
  reached it, and the MD Runtime keeps refreshing that Room until it has;
46
60
  `reached(room, roomVersion, path)` answers whether the held confirmed copy of
47
61
  that document was written at a later Room Version. Each History revision
48
- names its author, `{ kind: 'user', id }` or `{ kind: 'site', id, name }`. Every
62
+ names its author, `{ kind: 'user', id }` or `{ kind: 'site', id, name }`.
63
+ History of a Path no current document holds answers the removed document's
64
+ revisions with `deleted: true`, newest first; that revision is what a link to
65
+ the Path opens. Every
49
66
  member of the
50
67
  client is asynchronous. Results are detached snapshots. Nothing in this
51
68
  surface returns the authorization, performs a request the App's code
52
69
  composes, or exposes the browser store.
53
70
 
71
+ Every refusal and failure carries `code` and `retryable`: each Call and History answer
72
+ other than its result, a refused Save or Room Draft write, a returned Room Draft's
73
+ reason, a Room's refusal and the Connection Refusal, and every error a member rejects
74
+ with, beside its message. A Provider refusal carries the Provider's own `retryable`.
75
+ Every code and every value the API answers is open: handle one you do not know by its
76
+ `code` and `retryable`.
77
+
54
78
  Read the deployment facts with `observe('deployment-facts')`. Interpret the
55
79
  opaque value using the host's contract.
56
80
 
81
+ `observe('member')` answers who uses the App: the User the Provider signed in,
82
+ `{ kind: 'user', id, name }` in the shape of a change's `author`, so a Document
83
+ whose `change.author.id` equals its `id` is that User's own. It is `null` until
84
+ the Provider first names one, and where it names none, such as a Site. The
85
+ MD Runtime keeps it with the Local Replicas, so it answers offline once known,
86
+ and every port hears the next member the Provider names; signing out answers
87
+ `null`, then ends the observation with the authorization. It is the only way App code learns who
88
+ uses it.
89
+
57
90
  The in-memory Adapter at `@agentshouse/mdruntime/memory` is for tests and
58
91
  ships in no bundle.
59
92
 
@@ -67,22 +100,28 @@ data:
67
100
  - **Filter.** `rooms` names Room locators and defaults to every Room. `types`
68
101
  names MD Types, and `any` names untyped Markdown Documents. `pathPrefix` is a
69
102
  directory: `notes` keeps `notes/a.md` and not `notes2/a.md`.
70
- - **Fields.** `where` names frontmatter fields, ANDs them, and nests `$and` and
71
- `$or`. A bare value is equality; the operators are `$eq`, `$ne`, `$in`, `$nin`,
72
- `$gt`, `$gte`, `$lt`, `$lte`, `$all`, `$size` and `$exists`. Equality on a list
73
- asks whether it contains the value. Missing, null and empty differ:
103
+ - **Fields.** Every frontmatter value is named by JSON Pointer: `/status`,
104
+ `/shipping/city`, `~1` for a `/` and `~0` for a `~` in a key. A segment that
105
+ meets a list applies to every item and a number names one item. `where` names
106
+ pointers, ANDs them, and nests `$and` and `$or`; a pointer through a list holds
107
+ when any item satisfies it. A bare value is equality; the operators are `$eq`,
108
+ `$ne`, `$in`, `$nin`, `$gt`, `$gte`, `$lt`, `$lte`, `$all`, `$size` and
109
+ `$exists`. Equality on a list asks whether it contains the value. Missing, null and empty differ:
74
110
  `$exists: false` keeps a missing field, `null` an explicit null, `''` empty
75
111
  text and `$size: 0` an empty list. A date compares in calendar order and never
76
112
  with a date-time. A reference compares by the Room Path it resolves to.
77
- Untyped frontmatter is plain values. There is no text containment or regular
113
+ Untyped frontmatter, and a value under `oneOf` or a conditional, is plain
114
+ values. There is no text containment or regular
78
115
  expression.
79
116
  - **Relations.** `hop: { field, types, where, pathPrefix }` keeps Documents whose
80
- reference `field` points to a matching Document of the same Room.
81
- `backlinks: { field, types, where, pathPrefix }` keeps Documents that a
117
+ reference at pointer `field`, at any depth, points to a matching Document of the
118
+ same Room. `backlinks: { field, types, where, pathPrefix }` keeps Documents that a
82
119
  matching Document of the same Room references. Each keeps a Document once.
83
120
  - **Parts.** A Document query must `select`: `'all'`, or `fields`, `sections`,
84
- `preamble`, `markdown`, `backlinks` and `change`, where `fields` and `sections`
85
- are `'all'` or a list of names. Room and Path always return; a Markdown
121
+ `preamble`, `markdown`, `backlinks` and `change`, where `fields` is `'all'` or a
122
+ list of pointers and `sections` `'all'` or a list of names. Selected pointers
123
+ return the frontmatter holding only them, nested as written. A backlink names
124
+ the referring Path, MD Type and the pointer it came from as `field`. Room and Path always return; a Markdown
86
125
  Document also returns its MD Type. A non-Markdown Document or binary link
87
126
  target returns only Room and Path. An unselected part is absent. Select only
88
127
  what a screen shows: a list that selects the Markdown hears every edit of it.
@@ -91,17 +130,17 @@ data:
91
130
  or `null` for a write the Provider made itself, and `time` is the Provider's
92
131
  ISO 8601 change time. It is `null` where the Provider delivered no time, as at
93
132
  a Site. An unsent edit or move keeps it, an unsent creation has none, and a
94
- saved write takes the Provider's own once it is Accepted and refreshed. A
133
+ saved write takes the Provider's own once it is Accepted. A
95
134
  Room's last change is its Document with the latest `time`.
96
135
  - **Order and groups.** `orderBy` sorts by `room`, `path`, `type` or `{ field }`
97
136
  with TanStack DB's own options, and ties end with Room, then Path. `groupBy` by
98
137
  `room`, `type` or `{ field }` answers `{ groups: [{ key, count }] }`, counted
99
- over every match and ordered by `count` or a key. `limit` bounds the Documents
100
- or the groups.
138
+ over every match and ordered by `count` or a key. A sort or group takes only a
139
+ pointer that holds one value. `limit` bounds the Documents or the groups.
101
140
  - **Results and errors.** A result carries no Room Version: read freshness from
102
- Rooms and Sync Status. An invalid query fails with `invalid-query`,
103
- `unknown-type`, `unknown-field` or `wrong-kind`, naming where, and never
104
- answers an empty result in its place.
141
+ Rooms and Sync Status. An invalid query fails with the `code`
142
+ `invalid-query`, `unknown-type`, `unknown-field` or `wrong-kind`, naming where,
143
+ and never answers an empty result in its place.
105
144
 
106
145
  ## Local Search rules
107
146
 
@@ -111,7 +150,7 @@ search.
111
150
 
112
151
  - **What is found.** A Document by its field values, its sections' headings and
113
152
  text, its preamble and its Path; a message by its text. Frontmatter keys, Room
114
- Drafts, chat drafts and growing text are never found. There are no phrases,
153
+ Drafts, chat drafts and a running turn's parts are never found. There are no phrases,
115
154
  word forms, typo tolerance or prefix matching.
116
155
  - **Narrowing.** `documents` is a Local Query filter: `rooms`, `types`, `where`,
117
156
  `pathPrefix`, `hop` and `backlinks`. `conversations` names conversations. Both
@@ -139,9 +178,9 @@ the current Room Draft; read it and write again.
139
178
 
140
179
  Save takes one Room and the Room Drafts of it to save, each with its revision,
141
180
  validates locally, and on success appends one Change Batch to that Room's
142
- queue and removes those Room Drafts. It is refused as `stale`, as
181
+ queue and removes those Room Drafts. It is refused with the `code` `stale`,
143
182
  `changed-underneath` naming each part whose base no longer matches the visible
144
- state, or by a local validation rule, and then creates nothing and leaves every
183
+ state, or a local validation rule, and then creates nothing and leaves every
145
184
  Room Draft in place. A directory move or removal is a move or removal part on
146
185
  each Document and binary link target beneath it, saved together.
147
186
 
@@ -161,6 +200,13 @@ it names; the MD Runtime retries the same Change Batch identity and payload and
161
200
  never infers an outcome from transport uncertainty. The MD Runtime never
162
201
  combines, reorders, or rebases.
163
202
 
203
+ On a Site, every Save stays in the visitor's browser. Write grants and
204
+ revisions do not refuse it, and its Pending Change shows in every query and
205
+ across reloads until the browser's storage is cleared. It is never sent:
206
+ `observe('queue', room)` shows it `local`, and Sync Status never waits on it.
207
+ Once the Room changes so that it no longer applies, it leaves the queue and
208
+ returns no Room Draft.
209
+
164
210
  `observe('service-mode')` answers the Provider's Service
165
211
  Mode, `open` or `write-halted`. While writes are halted, Save still succeeds,
166
212
  its Change Batch waits unsent, and the queue is submitted in order once the
@@ -194,13 +240,28 @@ an App's override respected. What an App Creator's agent adds carries none
194
240
  of these promises by itself. Reading, querying and searching never wait for
195
241
  the network. Data lives only in the App Creator's browser and with the Provider.
196
242
 
197
- ## App code imports only the client entry and never constructs a Runtime
243
+ ## App code takes the client its host hands it and never constructs a Runtime
244
+
245
+ App code takes the client its host hands it: in House,
246
+ `houseBridge().runtime` from `@agentshouse/app-bridge` resolves to the
247
+ client House built into the page. It never constructs a Runtime or a client.
248
+ It imports only types from `@agentshouse/mdruntime/client`, does not call
249
+ `connectMdRuntime` or `serveMdRuntime`, and does not import the package main,
250
+ the host entry, or the Adapter package. Hosts and tests use those entries; the
251
+ served App does not.
198
252
 
199
- App code imports only `@agentshouse/mdruntime/client` and calls
200
- `connectMdRuntime` on the port the host hands it. It never constructs a
201
- Runtime. It does not import the package main, the host entry, or the Adapter
202
- package, and it does not call `serveMdRuntime`. Hosts
203
- and tests use those entries; the served App does not.
253
+ A React App may observe and save through `@agentshouse/mdruntime/react`, which
254
+ names React as a peer dependency. `useObserve(client, topic, ...input)` takes
255
+ the arguments of `observe` and returns `{ state: 'loading' }` until the topic's
256
+ first value arrives, then `{ state: 'ready', value }`, re-rendering on each
257
+ change; a `null` client observes nothing and stays loading. `useSave(client)` returns `busy`, the last `outcome` or `failure`, and
258
+ `save(room, roomDrafts)`, which writes each Path's parts onto the Room Draft
259
+ already there, keeping the bases its parts have, or onto a new one, and saves
260
+ them together. A refused Save leaves the Room Drafts for the App to save again
261
+ or discard; a failure is recorded and rejects. `saveRoomDrafts(client, room,
262
+ roomDrafts)` is that save outside a component. A react-admin or Refine App
263
+ reads and writes its Rooms through the data providers of
264
+ `@agentshouse/mdruntime-families`.
204
265
 
205
266
  ## What an agent must never do
206
267
 
package/README.md CHANGED
@@ -12,22 +12,22 @@ npm install @agentshouse/mdruntime
12
12
 
13
13
  ## Entries
14
14
 
15
- | Entry | For |
16
- | ------------------------------- | -------------------------------------------------- |
17
- | `@agentshouse/mdruntime/client` | App code: `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 |
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 imports only the client entry and connects on the port its host hands
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 { connectMdRuntime } from '@agentshouse/mdruntime/client';
28
+ import { houseBridge } from '@agentshouse/app-bridge';
29
29
 
30
- const runtime = connectMdRuntime(port);
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
  ```
package/dist/adapter.d.ts CHANGED
@@ -1,15 +1,13 @@
1
- import type { ModelIdentity, ModelResult } from './model.js';
1
+ import type { ModelResult } from './model.js';
2
+ import type { Open } from './open.js';
2
3
  import type { ChangeBatch } from './change.js';
3
4
  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
5
  export type MdModelIdentity = {
7
6
  identity: string;
8
7
  version: string;
9
8
  };
10
9
  export type TypedSelection = {
11
10
  roots: readonly string[];
12
- attachedModel: ModelIdentity | null;
13
11
  };
14
12
  export type OperationScopes = {
15
13
  read: readonly string[];
@@ -19,15 +17,15 @@ export type OperationScopes = {
19
17
  };
20
18
  export type ReplicaAdmission = {
21
19
  selection: string;
22
- admission: 'admitted' | 'unavailable';
20
+ admission: Open<'admitted' | 'unavailable'>;
23
21
  };
24
22
  export type DiscoveredRoom = {
25
23
  name: string;
26
24
  locator: string;
25
+ handle: string;
27
26
  roomVersion: string;
28
27
  operations: OperationScopes;
29
28
  replica: ReplicaAdmission;
30
- attachedModel: ModelIdentity | null;
31
29
  typedSelection?: TypedSelection;
32
30
  providerOwnedPaths: readonly string[];
33
31
  };
@@ -35,13 +33,21 @@ export type Capability = {
35
33
  name: string;
36
34
  limits?: readonly ProviderLimit[];
37
35
  actions?: readonly ActionDeclaration[];
38
- conversationCards?: ConversationCards;
36
+ conversationAgents?: ConversationAgents;
39
37
  };
40
- export type ConversationCards = {
38
+ export type ConversationAgents = {
41
39
  locator: string;
42
40
  type: string;
43
41
  identity: string;
42
+ name: string;
43
+ };
44
+ export type ListedConversation = {
45
+ conversation: string;
44
46
  agent: string;
47
+ name: string;
48
+ created: string;
49
+ finished: string | null;
50
+ outcome: string | null;
45
51
  };
46
52
  export type ConversationAction = 'conversation.create' | 'conversation.send' | 'conversation.answer' | 'conversation.interrupt' | 'conversation.kill' | 'conversation.cancel' | 'conversation.delete' | 'conversation.history';
47
53
  export type ConversationMessage = {
@@ -67,15 +73,37 @@ export type ConversationHistoryPage = {
67
73
  export type ConversationHistories = {
68
74
  histories: readonly ConversationHistoryPage[];
69
75
  };
70
- export type WorkingNote = {
71
- noteId: string;
72
- text: string;
76
+ export type TurnContext = {
77
+ used: number;
78
+ window: number;
73
79
  };
74
- export type PlanStep = {
75
- label: string;
76
- priority?: string;
80
+ export type TurnOperation = {
81
+ op: 'begin';
82
+ at: string;
83
+ } | {
84
+ op: 'start';
85
+ index: number;
86
+ part: unknown;
87
+ } | {
88
+ op: 'append';
89
+ index: number;
90
+ text: string;
91
+ } | {
92
+ op: 'status';
93
+ index: number;
77
94
  status: string;
78
- };
95
+ result: unknown;
96
+ } | {
97
+ op: 'count';
98
+ index: number;
99
+ count: number;
100
+ } | {
101
+ op: 'plan';
102
+ index: number;
103
+ entries: readonly unknown[];
104
+ } | ({
105
+ op: 'context';
106
+ } & TurnContext);
79
107
  export type ProcessCommand = {
80
108
  [field: string]: unknown;
81
109
  name: string;
@@ -113,19 +141,10 @@ export type SessionOption = (SessionOptionNaming & {
113
141
  currentValue: boolean;
114
142
  });
115
143
  export type ConversationEvent = {
116
- kind: 'growing-text';
144
+ kind: 'turn';
117
145
  conversation: string;
118
146
  turn: string;
119
- text: string;
120
- } | {
121
- kind: 'plan';
122
- conversation: string;
123
- turn: string;
124
- plan: readonly PlanStep[];
125
- } | {
126
- kind: 'working-note';
127
- conversation: string;
128
- note: WorkingNote | null;
147
+ operation: TurnOperation;
129
148
  } | {
130
149
  kind: 'questions';
131
150
  conversation: string;
@@ -149,6 +168,15 @@ export type ConversationEvent = {
149
168
  } | {
150
169
  kind: 'gap';
151
170
  conversation: string;
171
+ } | {
172
+ kind: 'list';
173
+ entries: readonly ListedConversation[];
174
+ } | {
175
+ kind: 'listed';
176
+ entry: ListedConversation;
177
+ } | {
178
+ kind: 'unlisted';
179
+ conversation: string;
152
180
  };
153
181
  export type ConversationStream = {
154
182
  replicate(conversations: readonly string[]): void;
@@ -176,12 +204,11 @@ export type Retention = {
176
204
  };
177
205
  export type Discovery = {
178
206
  kind: 'discovery';
179
- supportedVersions: readonly number[];
180
- mdModel: MdModelIdentity;
181
207
  rooms: readonly DiscoveredRoom[];
182
208
  capabilities: readonly Capability[];
183
209
  providerLimits: readonly ProviderLimit[];
184
210
  retention: Retention;
211
+ member?: Member;
185
212
  };
186
213
  export type TransportUncertainty = {
187
214
  kind: 'transport-uncertainty';
@@ -196,11 +223,12 @@ export type RevokedAuthorization = {
196
223
  export type ProviderRefusal = {
197
224
  code: string;
198
225
  fields: Readonly<Record<string, unknown>>;
226
+ retryable: boolean;
199
227
  };
200
228
  export type ScopedRefusal = ProviderRefusal & {
201
229
  kind: 'scoped-refusal';
202
230
  locator: string;
203
- scope: 'content' | 'sync' | 'model' | 'operation' | 'undisclosed';
231
+ scope: Open<'content' | 'sync' | 'model' | 'operation' | 'undisclosed'>;
204
232
  };
205
233
  export type AdapterFailure = TransportUncertainty | RoomNotReadable | RevokedAuthorization | ScopedRefusal;
206
234
  export type ContractUnavailable = ProviderRefusal & {
@@ -217,6 +245,9 @@ export type ChangeAuthor = {
217
245
  id: string;
218
246
  name: string;
219
247
  };
248
+ export type Member = Extract<ChangeAuthor, {
249
+ kind: 'user';
250
+ }>;
220
251
  export type HeadChange = {
221
252
  author: ChangeAuthor | null;
222
253
  time: string;
@@ -233,9 +264,14 @@ export type BootstrapRequest = {
233
264
  selection: string;
234
265
  pageToken?: PageToken;
235
266
  };
267
+ export type RoomModels = {
268
+ collection?: ModelResult;
269
+ selection?: ModelResult;
270
+ };
236
271
  export type BootstrapPage = {
237
272
  kind: 'bootstrap';
238
273
  roomVersion: string;
274
+ models?: RoomModels;
239
275
  documents: Readonly<Record<string, string>>;
240
276
  revisions: Readonly<Record<string, string>>;
241
277
  changes: Readonly<Record<string, HeadChange>>;
@@ -248,12 +284,12 @@ export type RefreshRequest = {
248
284
  locator: string;
249
285
  selection: string;
250
286
  fromRoomVersion: string;
251
- minPosition?: string;
252
287
  pageToken?: PageToken;
253
288
  };
254
289
  export type RefreshPage = {
255
290
  kind: 'net-advancement';
256
291
  roomVersion: string;
292
+ models?: RoomModels;
257
293
  documents: Readonly<Record<string, string>>;
258
294
  revisions: Readonly<Record<string, string>>;
259
295
  changes: Readonly<Record<string, HeadChange>>;
@@ -276,7 +312,7 @@ export type RetryableRefusal = ProviderRefusal & {
276
312
  kind: 'retryable-refusal';
277
313
  reset?: string;
278
314
  };
279
- export type ServiceMode = 'open' | 'write-halted';
315
+ export type ServiceMode = Open<'open' | 'write-halted'>;
280
316
  export type ServiceModeSignal = {
281
317
  observe(notify: (mode: ServiceMode) => void): () => void;
282
318
  };
@@ -285,7 +321,9 @@ export type MutationResult = {
285
321
  roomVersion: string;
286
322
  documents: Readonly<Record<string, string>>;
287
323
  revisions: Readonly<Record<string, string>>;
324
+ changes: Readonly<Record<string, HeadChange>>;
288
325
  removals: readonly string[];
326
+ attachments?: readonly RoomAttachment[];
289
327
  author?: string;
290
328
  time?: string;
291
329
  } | (ProviderRefusal & {
@@ -323,6 +361,7 @@ export type HistoryResult = {
323
361
  kind: 'history';
324
362
  revisions: readonly HistoryRevision[];
325
363
  pageToken?: PageToken;
364
+ deleted?: true;
326
365
  } | {
327
366
  kind: 'revision';
328
367
  content: string;
@@ -344,27 +383,33 @@ export type ActionResult = {
344
383
  } | (ProviderRefusal & {
345
384
  kind: 'rejected';
346
385
  }) | AdapterFailure;
347
- export type ModelRequest = {
386
+ export type HeldRoom = {
348
387
  locator: string;
349
- attached: 'collection';
350
- model: ModelIdentity | null;
351
- } | {
352
- locator: string;
353
- attached: 'typed-selection';
354
- roots: readonly string[];
355
- model: ModelIdentity | null;
388
+ roomVersion: string;
389
+ documents: Readonly<Record<string, string>>;
390
+ revisions: Readonly<Record<string, string>>;
391
+ attachments: readonly RoomAttachment[];
356
392
  };
357
- export type RoomVersionNotification = {
393
+ export type RoomStreamEvent = {
394
+ kind: 'opened';
395
+ } | {
396
+ kind: 'closed';
397
+ revoked: boolean;
398
+ } | {
399
+ kind: 'opening';
400
+ expired: readonly string[];
401
+ } | {
402
+ kind: 'room-version';
358
403
  locator: string;
359
404
  roomVersion: string;
360
- modelChanged?: true;
361
405
  };
362
- export type SelectedRooms = {
363
- select(locators: readonly string[]): void;
364
- observe(notify: (notification: RoomVersionNotification) => void): () => void;
406
+ export type RoomStream = {
407
+ hold(rooms: readonly HeldRoom[]): void;
408
+ reopen(): void;
409
+ observe(notify: (event: RoomStreamEvent) => void): () => void;
365
410
  };
366
411
  export type Adapter = {
367
- model(authorization: Authorization, request: ModelRequest): Promise<ModelResult>;
412
+ readonly localSaves?: true;
368
413
  authorize(): Promise<Authorization>;
369
414
  discover(authorization: Authorization): Promise<DiscoverResult>;
370
415
  bootstrap(authorization: Authorization, request: BootstrapRequest): Promise<BootstrapResult>;
@@ -373,7 +418,8 @@ export type Adapter = {
373
418
  history(authorization: Authorization, request: HistoryRequest): Promise<HistoryResult>;
374
419
  action(authorization: Authorization, request: ActionRequest): Promise<ActionResult>;
375
420
  reached(locator: string, roomVersion: string, target: string): boolean;
376
- roomVersions?: SelectedRooms;
421
+ follows(locator: string, roomVersion: string, next: string): boolean;
422
+ roomStream?: RoomStream;
377
423
  conversations?: ConversationStream;
378
424
  serviceMode?: ServiceModeSignal;
379
425
  };
@@ -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;IA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C3B,SAAS,IAAI,OAAO,CAAC,aAAa,CAAC,CAAC;IACpC,QAAQ,CAAC,aAAa,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAChE,SAAS,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
@@ -1,9 +1 @@
1
- export const ROOM_CONTRACT_VERSION = 1;
2
- export const VERSION_1_CAPABILITIES = [
3
- 'stable-file-ids',
4
- 'ranked-provider-search',
5
- 'room-version-notifications',
6
- 'room-history',
7
- 'provider-actions',
8
- 'move-reference-rewrites',
9
- ];
1
+ export {};
@@ -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"}