@agentshouse/mdruntime 0.1.0-cf6041a06849c → 0.1.0-cf96c797c5fa8
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 +135 -48
- package/README.md +20 -10
- package/dist/adapter.d.ts +49 -14
- package/dist/adapter.d.ts.map +1 -1
- package/dist/attached-model.d.ts.map +1 -1
- package/dist/attached-model.js +15 -2
- package/dist/attempt.d.ts +16 -0
- package/dist/attempt.d.ts.map +1 -0
- package/dist/attempt.js +57 -0
- package/dist/binary.d.ts +23 -0
- package/dist/binary.d.ts.map +1 -0
- package/dist/binary.js +8 -0
- package/dist/bootstrap.d.ts +17 -5
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +89 -38
- package/dist/change-set.d.ts.map +1 -1
- package/dist/change-set.js +19 -12
- package/dist/change.d.ts +15 -0
- package/dist/change.d.ts.map +1 -1
- package/dist/change.js +26 -1
- package/dist/chat/acts.d.ts +34 -0
- package/dist/chat/acts.d.ts.map +1 -0
- package/dist/chat/acts.js +36 -0
- package/dist/chat/context.d.ts +3 -0
- package/dist/chat/context.d.ts.map +1 -0
- package/dist/chat/context.js +10 -0
- package/dist/chat/input.d.ts +9 -0
- package/dist/chat/input.d.ts.map +1 -0
- package/dist/chat/input.js +99 -0
- package/dist/chat/kit.d.ts +60 -0
- package/dist/chat/kit.d.ts.map +1 -0
- package/dist/chat/kit.js +123 -0
- package/dist/chat/lasting.d.ts +6 -0
- package/dist/chat/lasting.d.ts.map +1 -0
- package/dist/chat/lasting.js +19 -0
- package/dist/chat/list.d.ts +20 -0
- package/dist/chat/list.d.ts.map +1 -0
- package/dist/chat/list.js +59 -0
- package/dist/chat/markdown.d.ts +19 -0
- package/dist/chat/markdown.d.ts.map +1 -0
- package/dist/chat/markdown.js +187 -0
- package/dist/chat/message.d.ts +6 -0
- package/dist/chat/message.d.ts.map +1 -0
- package/dist/chat/message.js +192 -0
- package/dist/chat/messages.d.ts +21 -0
- package/dist/chat/messages.d.ts.map +1 -0
- package/dist/chat/messages.js +151 -0
- package/dist/chat/name.d.ts +6 -0
- package/dist/chat/name.d.ts.map +1 -0
- package/dist/chat/name.js +37 -0
- package/dist/chat/opened.d.ts +11 -0
- package/dist/chat/opened.d.ts.map +1 -0
- package/dist/chat/opened.js +17 -0
- package/dist/chat/overlay.d.ts +31 -0
- package/dist/chat/overlay.d.ts.map +1 -0
- package/dist/chat/overlay.js +97 -0
- package/dist/chat/parts.d.ts +57 -0
- package/dist/chat/parts.d.ts.map +1 -0
- package/dist/chat/parts.js +119 -0
- package/dist/chat/process.d.ts +20 -0
- package/dist/chat/process.d.ts.map +1 -0
- package/dist/chat/process.js +32 -0
- package/dist/chat/provider.d.ts +63 -0
- package/dist/chat/provider.d.ts.map +1 -0
- package/dist/chat/provider.js +645 -0
- package/dist/chat/question.d.ts +9 -0
- package/dist/chat/question.d.ts.map +1 -0
- package/dist/chat/question.js +80 -0
- package/dist/chat/questions.d.ts +31 -0
- package/dist/chat/questions.d.ts.map +1 -0
- package/dist/chat/questions.js +111 -0
- package/dist/chat/read.d.ts +5 -0
- package/dist/chat/read.d.ts.map +1 -0
- package/dist/chat/read.js +13 -0
- package/dist/chat/ready.d.ts +33 -0
- package/dist/chat/ready.d.ts.map +1 -0
- package/dist/chat/ready.js +91 -0
- package/dist/chat/style.d.ts +4 -0
- package/dist/chat/style.d.ts.map +1 -0
- package/dist/chat/style.js +302 -0
- package/dist/chat.d.ts +14 -0
- package/dist/chat.d.ts.map +1 -0
- package/dist/chat.js +8 -0
- package/dist/client.d.ts +14 -5
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +65 -15
- package/dist/collection.d.ts +6 -11
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +56 -19
- package/dist/connection.d.ts +22 -9
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +472 -142
- package/dist/conversation.d.ts +11 -3
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +47 -7
- package/dist/expectation.d.ts +21 -0
- package/dist/expectation.d.ts.map +1 -0
- package/dist/expectation.js +70 -0
- package/dist/failure.d.ts +13 -0
- package/dist/failure.d.ts.map +1 -0
- package/dist/failure.js +19 -0
- package/dist/host.d.ts +1 -0
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +9 -8
- package/dist/identity.d.ts +3 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +13 -1
- package/dist/index.d.ts +9 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/memory.d.ts +4 -3
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +61 -20
- package/dist/model.d.ts +10 -2
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +2 -0
- package/dist/open.d.ts +2 -0
- package/dist/open.d.ts.map +1 -0
- package/dist/open.js +1 -0
- package/dist/outcome.d.ts +28 -3
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +41 -1
- package/dist/overlay.d.ts +14 -3
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +75 -37
- 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 +5 -1
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +52 -19
- package/dist/reach.d.ts +2 -0
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +44 -35
- package/dist/react.d.ts +26 -16
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +10 -8
- package/dist/read-side.d.ts.map +1 -1
- package/dist/read-side.js +111 -48
- package/dist/refresh.d.ts +10 -0
- package/dist/refresh.d.ts.map +1 -1
- package/dist/refresh.js +42 -38
- package/dist/replica.d.ts +8 -5
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +76 -56
- package/dist/room-draft.d.ts +26 -9
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +132 -23
- package/dist/rows.d.ts +7 -2
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +87 -39
- package/dist/save.d.ts +28 -1
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +429 -75
- package/dist/search.d.ts +3 -2
- package/dist/search.d.ts.map +1 -1
- package/dist/status.d.ts +2 -2
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +0 -8
- package/dist/store.d.ts +34 -9
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +273 -164
- package/dist/wire.d.ts +7 -3
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +15 -2
- package/package.json +17 -9
- package/dist/attachment.d.ts +0 -3
- package/dist/attachment.d.ts.map +0 -1
- package/dist/attachment.js +0 -8
package/AGENTS.md
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
# Instructions for the App Creator's agent
|
|
2
2
|
|
|
3
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.
|
|
4
|
+
App Repository, change it, build, and push. They are documentation, not enforcement.
|
|
6
5
|
|
|
7
6
|
## The MD Runtime API
|
|
8
7
|
|
|
9
8
|
App code reaches the MD Runtime through the remote client. The surfaces are
|
|
10
|
-
Rooms, Query, Search, Observe, Types, Room Draft, Save, History,
|
|
9
|
+
Rooms, Query, Search, Observe, Types, Room Draft, Save, History, the binary file
|
|
10
|
+
reads, 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
|
|
13
|
+
statement, the deployment facts and the signed-in member are observations only.
|
|
14
14
|
|
|
15
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
|
-
|
|
18
|
-
|
|
19
|
-
conversation members, the chat draft and the
|
|
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.
|
|
20
21
|
A change of the reach reaches every open observation as its new value, a query
|
|
21
22
|
keeping every unchanged Document the same object.
|
|
22
23
|
|
|
@@ -26,6 +27,8 @@ value whole and returns its unsubscribe, and `close()` ends the observation.
|
|
|
26
27
|
Closing the port ends every handle and rejects every pending call and
|
|
27
28
|
observation; a client that reconnects observes again.
|
|
28
29
|
|
|
30
|
+
`observe('agents')` answers every Agent a new conversation can go to, each
|
|
31
|
+
`{ identity, name }`, whether or not it has a conversation yet.
|
|
29
32
|
Each conversation the Provider's conversation list names is held complete in the
|
|
30
33
|
browser. `conversation.list()` and `observe('conversations')` answer each with its
|
|
31
34
|
Agent's identity and name, its name, created and finished times, last outcome and live
|
|
@@ -42,29 +45,67 @@ and none of them is stored or searchable.
|
|
|
42
45
|
sending it is a Provider Action that needs the Provider reachable and is never
|
|
43
46
|
queued.
|
|
44
47
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
A binary file at a Path of a Room is a binary Path entry. Query lists it by
|
|
49
|
+
`path` with its `binaryFile` record and never its bytes: `{ state: 'accepted',
|
|
50
|
+
revision, path, fileRef, byteLength, mediaType, sha256 }`, or, from a Save until
|
|
51
|
+
the Provider accepts it, `{ state: 'pending', localId, path, byteLength,
|
|
52
|
+
mediaType, sha256 }` with no revision. Write one with a Room Draft whose only part
|
|
53
|
+
is `file: { blob }`, a `Blob` whose `type` is its media type; Save keeps the bytes
|
|
54
|
+
in its Pending Change, works offline, and the record turns accepted with the
|
|
55
|
+
Provider's revision once the Pending Change is accepted. Move or remove an
|
|
56
|
+
accepted one as a Document. Move or remove a pending one the same way, before or
|
|
57
|
+
after Save: the Room Draft or its queued Pending Change carries the bytes to the
|
|
58
|
+
new Path or drops them, and once that Pending Change has gone to the Provider
|
|
59
|
+
Save refuses it as `unknown-revision` until it is accepted. Read the bytes with
|
|
60
|
+
`binaryFile.read(room, path)`: a pending record answers its saved bytes, and
|
|
61
|
+
every read of an accepted one asks the Provider again and keeps nothing. Pass a
|
|
62
|
+
History revision as `binaryFile.read(room, path, revision)` to open that
|
|
63
|
+
revision, a removed file's last one included. Text, a Record attachment or a conversation
|
|
64
|
+
message may name a file directly by its `fileRef`; read that file with
|
|
65
|
+
`binaryFile.readReference({ fileRef, referrer })`, where the referrer is the
|
|
66
|
+
`referrer` the Provider gave beside the reference, or `{ room, path }` of the
|
|
67
|
+
document whose text names it. Both answer `{ kind: 'binary', blob }` or a
|
|
68
|
+
refusal or failure. History of a binary Path lists each revision's
|
|
69
|
+
`binaryFile` metadata without bytes.
|
|
50
70
|
|
|
51
71
|
Rooms, Query, Search, Observe, Types, Room Draft, Save, and Reached never
|
|
52
72
|
touch the network.
|
|
53
|
-
History and Call go to the Provider through the Adapter.
|
|
73
|
+
History, the binary file reads and Call go to the Provider through the Adapter. Call takes the Action names
|
|
74
|
+
the Adapter declares; any other name answers `undeclared` without reaching the
|
|
75
|
+
Provider. A Call result whose
|
|
54
76
|
effect the Provider places in a Room carries `at`, that Room and Room Version;
|
|
55
77
|
`reached(room, roomVersion)` answers whether the Room's confirmed state has
|
|
56
78
|
reached it, and the MD Runtime keeps refreshing that Room until it has;
|
|
57
79
|
`reached(room, roomVersion, path)` answers whether the held confirmed copy of
|
|
58
80
|
that document was written at a later Room Version. Each History revision
|
|
59
|
-
names its author, `{ kind: 'user', id }` or `{ kind: 'site', id, name }`.
|
|
81
|
+
names its author, `{ kind: 'user', id }` or `{ kind: 'site', id, name }`.
|
|
82
|
+
History of a Path no current document holds answers the removed document's
|
|
83
|
+
revisions with `deleted: true`, newest first; that revision is what a link to
|
|
84
|
+
the Path opens. Every
|
|
60
85
|
member of the
|
|
61
86
|
client is asynchronous. Results are detached snapshots. Nothing in this
|
|
62
87
|
surface returns the authorization, performs a request the App's code
|
|
63
88
|
composes, or exposes the browser store.
|
|
64
89
|
|
|
90
|
+
Every refusal and failure carries `code` and `retryable`: each Call and History answer
|
|
91
|
+
other than its result, a refused Save or Room Draft write, a returned Room Draft's
|
|
92
|
+
reason, a Room's refusal and the Connection Refusal, and every error a member rejects
|
|
93
|
+
with, beside its message. A Provider refusal carries the Provider's own `retryable`.
|
|
94
|
+
Every code and every value the API answers is open: handle one you do not know by its
|
|
95
|
+
`code` and `retryable`.
|
|
96
|
+
|
|
65
97
|
Read the deployment facts with `observe('deployment-facts')`. Interpret the
|
|
66
98
|
opaque value using the host's contract.
|
|
67
99
|
|
|
100
|
+
`observe('member')` answers who uses the App: the User the Provider signed in,
|
|
101
|
+
`{ kind: 'user', id, name }` in the shape of a change's `author`, so a Document
|
|
102
|
+
whose `change.author.id` equals its `id` is that User's own. It is `null` until
|
|
103
|
+
the Provider first names one, and where it names none, such as a Site. The
|
|
104
|
+
MD Runtime keeps it with the Local Replicas, so it answers offline once known,
|
|
105
|
+
and every port hears the next member the Provider names; signing out answers
|
|
106
|
+
`null`, then ends the observation with the authorization. It is the only way App code learns who
|
|
107
|
+
uses it.
|
|
108
|
+
|
|
68
109
|
The in-memory Adapter at `@agentshouse/mdruntime/memory` is for tests and
|
|
69
110
|
ships in no bundle.
|
|
70
111
|
|
|
@@ -78,41 +119,48 @@ data:
|
|
|
78
119
|
- **Filter.** `rooms` names Room locators and defaults to every Room. `types`
|
|
79
120
|
names MD Types, and `any` names untyped Markdown Documents. `pathPrefix` is a
|
|
80
121
|
directory: `notes` keeps `notes/a.md` and not `notes2/a.md`.
|
|
81
|
-
- **Fields.**
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
122
|
+
- **Fields.** Every frontmatter value is named by JSON Pointer: `/status`,
|
|
123
|
+
`/shipping/city`, `~1` for a `/` and `~0` for a `~` in a key. A segment that
|
|
124
|
+
meets a list applies to every item and a number names one item. `where` names
|
|
125
|
+
pointers, ANDs them, and nests `$and` and `$or`; a pointer through a list holds
|
|
126
|
+
when any item satisfies it. A bare value is equality; the operators are `$eq`,
|
|
127
|
+
`$ne`, `$in`, `$nin`, `$gt`, `$gte`, `$lt`, `$lte`, `$all`, `$size` and
|
|
128
|
+
`$exists`. Equality on a list asks whether it contains the value. Missing, null and empty differ:
|
|
85
129
|
`$exists: false` keeps a missing field, `null` an explicit null, `''` empty
|
|
86
130
|
text and `$size: 0` an empty list. A date compares in calendar order and never
|
|
87
131
|
with a date-time. A reference compares by the Room Path it resolves to.
|
|
88
|
-
Untyped frontmatter
|
|
132
|
+
Untyped frontmatter, and a value under `oneOf` or a conditional, is plain
|
|
133
|
+
values. There is no text containment or regular
|
|
89
134
|
expression.
|
|
90
135
|
- **Relations.** `hop: { field, types, where, pathPrefix }` keeps Documents whose
|
|
91
|
-
reference `field
|
|
92
|
-
`backlinks: { field, types, where, pathPrefix }` keeps Documents that a
|
|
136
|
+
reference at pointer `field`, at any depth, points to a matching Document of the
|
|
137
|
+
same Room. `backlinks: { field, types, where, pathPrefix }` keeps Documents that a
|
|
93
138
|
matching Document of the same Room references. Each keeps a Document once.
|
|
94
139
|
- **Parts.** A Document query must `select`: `'all'`, or `fields`, `sections`,
|
|
95
|
-
`preamble`, `markdown`, `backlinks` and `change`, where `fields`
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
140
|
+
`preamble`, `markdown`, `backlinks` and `change`, where `fields` is `'all'` or a
|
|
141
|
+
list of pointers and `sections` `'all'` or a list of names. Selected pointers
|
|
142
|
+
return the frontmatter holding only them, nested as written. A backlink names
|
|
143
|
+
the referring Path, MD Type and the pointer it came from as `field`. Room and Path always return; a Markdown
|
|
144
|
+
Document also returns its MD Type. A non-Markdown Document returns only Room
|
|
145
|
+
and Path, and a binary Path entry Room, Path and its `binaryFile` record,
|
|
146
|
+
whatever is selected. An unselected part is absent. Select only
|
|
99
147
|
what a screen shows: a list that selects the Markdown hears every edit of it.
|
|
100
148
|
- **Change.** `change` is `{ author, time }` of the Document's head revision as
|
|
101
149
|
the Provider last delivered it: `author` is `{ kind: 'user' | 'site', id, name }`
|
|
102
150
|
or `null` for a write the Provider made itself, and `time` is the Provider's
|
|
103
151
|
ISO 8601 change time. It is `null` where the Provider delivered no time, as at
|
|
104
152
|
a Site. An unsent edit or move keeps it, an unsent creation has none, and a
|
|
105
|
-
saved write takes the Provider's own once it is Accepted
|
|
153
|
+
saved write takes the Provider's own once it is Accepted. A
|
|
106
154
|
Room's last change is its Document with the latest `time`.
|
|
107
155
|
- **Order and groups.** `orderBy` sorts by `room`, `path`, `type` or `{ field }`
|
|
108
156
|
with TanStack DB's own options, and ties end with Room, then Path. `groupBy` by
|
|
109
157
|
`room`, `type` or `{ field }` answers `{ groups: [{ key, count }] }`, counted
|
|
110
|
-
over every match and ordered by `count` or a key.
|
|
111
|
-
or the groups.
|
|
158
|
+
over every match and ordered by `count` or a key. A sort or group takes only a
|
|
159
|
+
pointer that holds one value. `limit` bounds the Documents or the groups.
|
|
112
160
|
- **Results and errors.** A result carries no Room Version: read freshness from
|
|
113
|
-
Rooms and Sync Status. An invalid query fails with `
|
|
114
|
-
`unknown-type`, `unknown-field` or `wrong-kind`, naming where,
|
|
115
|
-
answers an empty result in its place.
|
|
161
|
+
Rooms and Sync Status. An invalid query fails with the `code`
|
|
162
|
+
`invalid-query`, `unknown-type`, `unknown-field` or `wrong-kind`, naming where,
|
|
163
|
+
and never answers an empty result in its place.
|
|
116
164
|
|
|
117
165
|
## Local Search rules
|
|
118
166
|
|
|
@@ -150,9 +198,9 @@ the current Room Draft; read it and write again.
|
|
|
150
198
|
|
|
151
199
|
Save takes one Room and the Room Drafts of it to save, each with its revision,
|
|
152
200
|
validates locally, and on success appends one Change Batch to that Room's
|
|
153
|
-
queue and removes those Room Drafts. It is refused
|
|
201
|
+
queue and removes those Room Drafts. It is refused with the `code` `stale`,
|
|
154
202
|
`changed-underneath` naming each part whose base no longer matches the visible
|
|
155
|
-
state, or
|
|
203
|
+
state, or a local validation rule, and then creates nothing and leaves every
|
|
156
204
|
Room Draft in place. A directory move or removal is a move or removal part on
|
|
157
205
|
each Document and binary link target beneath it, saved together.
|
|
158
206
|
|
|
@@ -172,6 +220,13 @@ it names; the MD Runtime retries the same Change Batch identity and payload and
|
|
|
172
220
|
never infers an outcome from transport uncertainty. The MD Runtime never
|
|
173
221
|
combines, reorders, or rebases.
|
|
174
222
|
|
|
223
|
+
On a Site, every Save stays in the visitor's browser. Write grants and
|
|
224
|
+
revisions do not refuse it, and its Pending Change shows in every query and
|
|
225
|
+
across reloads until the browser's storage is cleared. It is never sent:
|
|
226
|
+
`observe('queue', room)` shows it `local`, and Sync Status never waits on it.
|
|
227
|
+
Once the Room changes so that it no longer applies, it leaves the queue and
|
|
228
|
+
returns no Room Draft.
|
|
229
|
+
|
|
175
230
|
`observe('service-mode')` answers the Provider's Service
|
|
176
231
|
Mode, `open` or `write-halted`. While writes are halted, Save still succeeds,
|
|
177
232
|
its Change Batch waits unsent, and the queue is submitted in order once the
|
|
@@ -207,23 +262,55 @@ the network. Data lives only in the App Creator's browser and with the Provider.
|
|
|
207
262
|
|
|
208
263
|
## App code takes the client its host hands it and never constructs a Runtime
|
|
209
264
|
|
|
210
|
-
App code takes the client its host hands it: in House,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
`
|
|
215
|
-
|
|
216
|
-
served App does not.
|
|
265
|
+
App code takes the client its host hands it: in House, `houseBridge().runtime`
|
|
266
|
+
from `@agentshouse/app-bridge` resolves to the client House built into the page.
|
|
267
|
+
It never constructs a Runtime or a client. It imports only types from
|
|
268
|
+
`@agentshouse/mdruntime/client`, does not call `connectMdRuntime` or
|
|
269
|
+
`serveMdRuntime`, and does not import the package main, the host entry, or the
|
|
270
|
+
Adapter package. Hosts and tests use those entries; the served App does not.
|
|
217
271
|
|
|
218
272
|
A React App may observe and save through `@agentshouse/mdruntime/react`, which
|
|
219
273
|
names React as a peer dependency. `useObserve(client, topic, ...input)` takes
|
|
220
|
-
the arguments of `observe` and returns the topic's
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
`
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
or discard; a failure is
|
|
274
|
+
the arguments of `observe` and returns `{ state: 'loading' }` until the topic's
|
|
275
|
+
first value arrives, then `{ state: 'ready', value }`, re-rendering on each
|
|
276
|
+
change; a `null` client observes nothing and stays loading. `useSave(client)`
|
|
277
|
+
returns `busy`, the last `outcome` or `failure`, and `save(room, roomDrafts)`,
|
|
278
|
+
which writes each Path's parts onto the Room Draft already there, keeping the
|
|
279
|
+
bases its parts have, or onto a new one, and saves them together. A refused
|
|
280
|
+
Save leaves the Room Drafts for the App to save again or discard; a failure is
|
|
281
|
+
recorded and rejects. `saveRoomDrafts(client, room, roomDrafts)` is that save
|
|
282
|
+
outside a component. A react-admin or Refine App reads and writes its Rooms
|
|
283
|
+
through the data providers of `@agentshouse/mdruntime-families`.
|
|
284
|
+
|
|
285
|
+
## The Chat
|
|
286
|
+
|
|
287
|
+
`@agentshouse/mdruntime/chat` holds the Chat, one data layer for every App.
|
|
288
|
+
Its required peers are React, React DOM and `@assistant-ui/react`: add React as
|
|
289
|
+
a dependency, also in an App not written in React.
|
|
290
|
+
|
|
291
|
+
Place the ready chat with `<Chat client={runtime} conversation={id}
|
|
292
|
+
agent={agent} width="1/3" showChats />`: `conversation` opens one, `null` for a
|
|
293
|
+
new chat, `agent` is the Agent a new chat goes to, `onOpen` hears each one it
|
|
294
|
+
opens, and `width` is `full` (the place you give it), or `3/4`, `1/2` or `1/3`
|
|
295
|
+
of the window docked at its right edge, whole on a narrow window. `showChats`
|
|
296
|
+
adds its conversation list; or draw your own inside a `ChatProvider` around a
|
|
297
|
+
`<Chat />` with no `client`. It carries its own styles; theme it with CSS custom
|
|
298
|
+
properties on it or an ancestor: `--chat-background`, `--chat-surface`,
|
|
299
|
+
`--chat-text`, `--chat-text-muted`, `--chat-accent`, `--chat-line`,
|
|
300
|
+
`--chat-attention`, `--chat-danger`, `--chat-font`, `--chat-font-mono`,
|
|
301
|
+
`--chat-font-size`, `--chat-radius` and `--chat-density` (a factor for spacing);
|
|
302
|
+
an unset one keeps House's light or dark look. `mountChat(element, { client })`
|
|
303
|
+
places it outside React and returns `update(props)` and `unmount()`.
|
|
304
|
+
|
|
305
|
+
Mix `ChatMessageList` (`components` takes your `UserMessage` and
|
|
306
|
+
`AssistantMessage`), `ChatInput` and `ChatQuestionCard` with your own design
|
|
307
|
+
inside a `ChatProvider`, or compose assistant-ui's primitives there; `useChat()`
|
|
308
|
+
gives `send`, the conversations, the Agents, questions to `answer`, `options`
|
|
309
|
+
to `choose`, `commands`, the queue to `edit` or `unqueue`, `stop`, `kill` and
|
|
310
|
+
outcomes; never replace its messages, sending or store. A secret question is
|
|
311
|
+
never answered here; typed answers live in Presentation State's `typed` key:
|
|
312
|
+
keep it, and change Presentation State only inside `inTurn(client, work)` from
|
|
313
|
+
`@agentshouse/mdruntime/client`. `Markdown` draws Markdown safely.
|
|
227
314
|
|
|
228
315
|
## What an agent must never do
|
|
229
316
|
|
package/README.md
CHANGED
|
@@ -12,22 +12,23 @@ npm install @agentshouse/mdruntime
|
|
|
12
12
|
|
|
13
13
|
## Entries
|
|
14
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
|
-
| `@agentshouse/mdruntime/react` | React
|
|
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` |
|
|
22
|
+
| `@agentshouse/mdruntime/chat` | The Chat: `Chat`, `mountChat`, its parts and `ChatProvider` |
|
|
22
23
|
|
|
23
24
|
## Usage
|
|
24
25
|
|
|
25
26
|
App code takes the client its host hands it; in House the App bridge hands it:
|
|
26
27
|
|
|
27
28
|
```ts
|
|
28
|
-
import {
|
|
29
|
+
import { houseBridge } from '@agentshouse/app-bridge';
|
|
29
30
|
|
|
30
|
-
const runtime = await
|
|
31
|
+
const runtime = await houseBridge().runtime;
|
|
31
32
|
const rooms = await runtime.rooms();
|
|
32
33
|
const notes = await runtime.query({ types: ['note'], select: 'all', limit: 20 });
|
|
33
34
|
```
|
|
@@ -36,8 +37,17 @@ const notes = await runtime.query({ types: ['note'], select: 'all', limit: 20 })
|
|
|
36
37
|
`storage-loss` when unsynchronized Room Drafts and Pending Changes were lost.
|
|
37
38
|
The host supplies the user-facing wording.
|
|
38
39
|
|
|
40
|
+
Place the ready chat, themed by CSS custom properties, docked at a third of the
|
|
41
|
+
window; outside React, `mountChat(element, { client: runtime })` places the same:
|
|
42
|
+
|
|
43
|
+
```tsx
|
|
44
|
+
import { Chat } from '@agentshouse/mdruntime/chat';
|
|
45
|
+
|
|
46
|
+
<Chat client={runtime} width="1/3" showChats style={{ '--chat-accent': '#2a6cf0' }} />;
|
|
47
|
+
```
|
|
48
|
+
|
|
39
49
|
The rules an App's agent follows, including Local Query, Local Search, Room
|
|
40
|
-
Draft and
|
|
50
|
+
Draft, Save and the Chat, are in [`AGENTS.md`](AGENTS.md).
|
|
41
51
|
|
|
42
52
|
## License
|
|
43
53
|
|
package/dist/adapter.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
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
5
|
export type MdModelIdentity = {
|
|
@@ -16,11 +17,12 @@ export type OperationScopes = {
|
|
|
16
17
|
};
|
|
17
18
|
export type ReplicaAdmission = {
|
|
18
19
|
selection: string;
|
|
19
|
-
admission: 'admitted' | 'unavailable'
|
|
20
|
+
admission: Open<'admitted' | 'unavailable'>;
|
|
20
21
|
};
|
|
21
22
|
export type DiscoveredRoom = {
|
|
22
23
|
name: string;
|
|
23
24
|
locator: string;
|
|
25
|
+
handle: string;
|
|
24
26
|
roomVersion: string;
|
|
25
27
|
operations: OperationScopes;
|
|
26
28
|
replica: ReplicaAdmission;
|
|
@@ -38,6 +40,7 @@ export type ConversationAgents = {
|
|
|
38
40
|
type: string;
|
|
39
41
|
identity: string;
|
|
40
42
|
name: string;
|
|
43
|
+
retired?: string;
|
|
41
44
|
};
|
|
42
45
|
export type ListedConversation = {
|
|
43
46
|
conversation: string;
|
|
@@ -206,6 +209,7 @@ export type Discovery = {
|
|
|
206
209
|
capabilities: readonly Capability[];
|
|
207
210
|
providerLimits: readonly ProviderLimit[];
|
|
208
211
|
retention: Retention;
|
|
212
|
+
member?: Member;
|
|
209
213
|
};
|
|
210
214
|
export type TransportUncertainty = {
|
|
211
215
|
kind: 'transport-uncertainty';
|
|
@@ -220,11 +224,12 @@ export type RevokedAuthorization = {
|
|
|
220
224
|
export type ProviderRefusal = {
|
|
221
225
|
code: string;
|
|
222
226
|
fields: Readonly<Record<string, unknown>>;
|
|
227
|
+
retryable: boolean;
|
|
223
228
|
};
|
|
224
229
|
export type ScopedRefusal = ProviderRefusal & {
|
|
225
230
|
kind: 'scoped-refusal';
|
|
226
231
|
locator: string;
|
|
227
|
-
scope: 'content' | 'sync' | 'model' | 'operation' | 'undisclosed'
|
|
232
|
+
scope: Open<'content' | 'sync' | 'model' | 'operation' | 'undisclosed'>;
|
|
228
233
|
};
|
|
229
234
|
export type AdapterFailure = TransportUncertainty | RoomNotReadable | RevokedAuthorization | ScopedRefusal;
|
|
230
235
|
export type ContractUnavailable = ProviderRefusal & {
|
|
@@ -241,16 +246,18 @@ export type ChangeAuthor = {
|
|
|
241
246
|
id: string;
|
|
242
247
|
name: string;
|
|
243
248
|
};
|
|
249
|
+
export type Member = Extract<ChangeAuthor, {
|
|
250
|
+
kind: 'user';
|
|
251
|
+
}>;
|
|
244
252
|
export type HeadChange = {
|
|
245
253
|
author: ChangeAuthor | null;
|
|
246
254
|
time: string;
|
|
247
255
|
};
|
|
248
|
-
export type
|
|
249
|
-
|
|
250
|
-
name: string;
|
|
256
|
+
export type BinaryFile = {
|
|
257
|
+
fileRef: string;
|
|
251
258
|
byteLength: number;
|
|
252
|
-
mediaType: string
|
|
253
|
-
|
|
259
|
+
mediaType: string;
|
|
260
|
+
sha256: string;
|
|
254
261
|
};
|
|
255
262
|
export type BootstrapRequest = {
|
|
256
263
|
locator: string;
|
|
@@ -268,8 +275,7 @@ export type BootstrapPage = {
|
|
|
268
275
|
documents: Readonly<Record<string, string>>;
|
|
269
276
|
revisions: Readonly<Record<string, string>>;
|
|
270
277
|
changes: Readonly<Record<string, HeadChange>>;
|
|
271
|
-
|
|
272
|
-
attachments?: readonly RoomAttachment[];
|
|
278
|
+
binaryFiles: Readonly<Record<string, BinaryFile>>;
|
|
273
279
|
pageToken?: PageToken;
|
|
274
280
|
};
|
|
275
281
|
export type BootstrapResult = BootstrapPage | AdapterFailure;
|
|
@@ -286,9 +292,8 @@ export type RefreshPage = {
|
|
|
286
292
|
documents: Readonly<Record<string, string>>;
|
|
287
293
|
revisions: Readonly<Record<string, string>>;
|
|
288
294
|
changes: Readonly<Record<string, HeadChange>>;
|
|
289
|
-
|
|
295
|
+
binaryFiles: Readonly<Record<string, BinaryFile>>;
|
|
290
296
|
removals: readonly string[];
|
|
291
|
-
attachments?: readonly RoomAttachment[];
|
|
292
297
|
pageToken?: PageToken;
|
|
293
298
|
};
|
|
294
299
|
export type RefreshResult = {
|
|
@@ -305,7 +310,7 @@ export type RetryableRefusal = ProviderRefusal & {
|
|
|
305
310
|
kind: 'retryable-refusal';
|
|
306
311
|
reset?: string;
|
|
307
312
|
};
|
|
308
|
-
export type ServiceMode = 'open' | 'write-halted'
|
|
313
|
+
export type ServiceMode = Open<'open' | 'write-halted'>;
|
|
309
314
|
export type ServiceModeSignal = {
|
|
310
315
|
observe(notify: (mode: ServiceMode) => void): () => void;
|
|
311
316
|
};
|
|
@@ -314,8 +319,9 @@ export type MutationResult = {
|
|
|
314
319
|
roomVersion: string;
|
|
315
320
|
documents: Readonly<Record<string, string>>;
|
|
316
321
|
revisions: Readonly<Record<string, string>>;
|
|
322
|
+
changes: Readonly<Record<string, HeadChange>>;
|
|
317
323
|
removals: readonly string[];
|
|
318
|
-
|
|
324
|
+
binaryFiles?: Readonly<Record<string, BinaryFile>>;
|
|
319
325
|
author?: string;
|
|
320
326
|
time?: string;
|
|
321
327
|
} | (ProviderRefusal & {
|
|
@@ -342,6 +348,7 @@ export type HistoryRevision = {
|
|
|
342
348
|
revision: string;
|
|
343
349
|
author: HistoryAuthor;
|
|
344
350
|
time: string;
|
|
351
|
+
binaryFile?: BinaryFile;
|
|
345
352
|
};
|
|
346
353
|
export type HistoryRequest = {
|
|
347
354
|
locator: string;
|
|
@@ -353,12 +360,37 @@ export type HistoryResult = {
|
|
|
353
360
|
kind: 'history';
|
|
354
361
|
revisions: readonly HistoryRevision[];
|
|
355
362
|
pageToken?: PageToken;
|
|
363
|
+
deleted?: true;
|
|
356
364
|
} | {
|
|
357
365
|
kind: 'revision';
|
|
358
366
|
content: string;
|
|
359
367
|
} | {
|
|
360
368
|
kind: 'no-history';
|
|
361
369
|
} | AdapterFailure;
|
|
370
|
+
export type BinaryRequest = {
|
|
371
|
+
kind: 'path';
|
|
372
|
+
locator: string;
|
|
373
|
+
path: string;
|
|
374
|
+
revision: string;
|
|
375
|
+
fileRef?: string;
|
|
376
|
+
} | {
|
|
377
|
+
kind: 'reference';
|
|
378
|
+
fileRef: string;
|
|
379
|
+
referrer: unknown;
|
|
380
|
+
};
|
|
381
|
+
export type ReferrerScope = {
|
|
382
|
+
kind: 'room';
|
|
383
|
+
locator: string;
|
|
384
|
+
path?: string;
|
|
385
|
+
} | {
|
|
386
|
+
kind: 'conversations';
|
|
387
|
+
};
|
|
388
|
+
export type BinaryResult = {
|
|
389
|
+
kind: 'binary';
|
|
390
|
+
blob: Blob;
|
|
391
|
+
} | (ProviderRefusal & {
|
|
392
|
+
kind: 'rejected';
|
|
393
|
+
}) | AdapterFailure;
|
|
362
394
|
export type ActionRequest = {
|
|
363
395
|
name: string;
|
|
364
396
|
input: unknown;
|
|
@@ -379,7 +411,6 @@ export type HeldRoom = {
|
|
|
379
411
|
roomVersion: string;
|
|
380
412
|
documents: Readonly<Record<string, string>>;
|
|
381
413
|
revisions: Readonly<Record<string, string>>;
|
|
382
|
-
attachments: readonly RoomAttachment[];
|
|
383
414
|
};
|
|
384
415
|
export type RoomStreamEvent = {
|
|
385
416
|
kind: 'opened';
|
|
@@ -396,15 +427,19 @@ export type RoomStreamEvent = {
|
|
|
396
427
|
};
|
|
397
428
|
export type RoomStream = {
|
|
398
429
|
hold(rooms: readonly HeldRoom[]): void;
|
|
430
|
+
reopen(): void;
|
|
399
431
|
observe(notify: (event: RoomStreamEvent) => void): () => void;
|
|
400
432
|
};
|
|
401
433
|
export type Adapter = {
|
|
434
|
+
readonly localSaves?: true;
|
|
402
435
|
authorize(): Promise<Authorization>;
|
|
403
436
|
discover(authorization: Authorization): Promise<DiscoverResult>;
|
|
404
437
|
bootstrap(authorization: Authorization, request: BootstrapRequest): Promise<BootstrapResult>;
|
|
405
438
|
refresh(authorization: Authorization, request: RefreshRequest): Promise<RefreshResult>;
|
|
406
439
|
mutate(authorization: Authorization, request: MutationRequest, keep: (upload: unknown) => Promise<void>): Promise<MutationResult>;
|
|
407
440
|
history(authorization: Authorization, request: HistoryRequest): Promise<HistoryResult>;
|
|
441
|
+
binary(authorization: Authorization, request: BinaryRequest): Promise<BinaryResult>;
|
|
442
|
+
referrerScope(referrer: unknown): ReferrerScope | null;
|
|
408
443
|
action(authorization: Authorization, request: ActionRequest): Promise<ActionResult>;
|
|
409
444
|
reached(locator: string, roomVersion: string, target: string): boolean;
|
|
410
445
|
follows(locator: string, roomVersion: string, next: string): boolean;
|
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,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC,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;CAC1B,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,OAAO,EAAE,gBAAgB,CAAC;IAC1B,cAAc,CAAC,EAAE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AE,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"}
|
|
@@ -1 +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,
|
|
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"}
|
package/dist/attached-model.js
CHANGED
|
@@ -9,12 +9,25 @@ export function attachedModel(answer, previous) {
|
|
|
9
9
|
if (previous.status !== 'unavailable' &&
|
|
10
10
|
sameModel(previous.snapshot, answer.snapshot) &&
|
|
11
11
|
previous.snapshot.schema !== answer.snapshot.schema) {
|
|
12
|
-
return {
|
|
12
|
+
return {
|
|
13
|
+
state: {
|
|
14
|
+
status: 'unavailable',
|
|
15
|
+
reason: 'invalid',
|
|
16
|
+
schema: answer.snapshot.schema,
|
|
17
|
+
revision: answer.snapshot.revision,
|
|
18
|
+
},
|
|
19
|
+
refused: null,
|
|
20
|
+
};
|
|
13
21
|
}
|
|
14
22
|
const verified = answer.snapshot.schema === null ? EMPTY_SCHEMA : verify(answer.snapshot.schema);
|
|
15
23
|
if (verified.verdict === 'refuse') {
|
|
16
24
|
return {
|
|
17
|
-
state: {
|
|
25
|
+
state: {
|
|
26
|
+
status: 'unavailable',
|
|
27
|
+
reason: 'invalid',
|
|
28
|
+
schema: answer.snapshot.schema,
|
|
29
|
+
revision: answer.snapshot.revision,
|
|
30
|
+
},
|
|
18
31
|
refused: {
|
|
19
32
|
identity: answer.snapshot.identity,
|
|
20
33
|
rule: verified.rule,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type Answered = 'accepted' | 'refused' | 'unanswered' | 'offline';
|
|
2
|
+
export type Identities = {
|
|
3
|
+
of(intent: string): string;
|
|
4
|
+
settle(answered: Answered): void;
|
|
5
|
+
};
|
|
6
|
+
export declare function identities(mint?: () => string): Identities;
|
|
7
|
+
export declare function intentOf(name: string, about: unknown): string;
|
|
8
|
+
export type Attempt = {
|
|
9
|
+
identity(intent: string): string;
|
|
10
|
+
settle(answered: Answered, drop: (act: number) => void): void;
|
|
11
|
+
};
|
|
12
|
+
export type Attempts = {
|
|
13
|
+
begin(act: number): Attempt;
|
|
14
|
+
};
|
|
15
|
+
export declare function attempts(mint?: () => string): Attempts;
|
|
16
|
+
//# sourceMappingURL=attempt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"attempt.d.ts","sourceRoot":"","sources":["../src/attempt.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAAC;AAEzE,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;CAClC,CAAC;AAEF,wBAAgB,UAAU,CAAC,IAAI,GAAE,MAAM,MAAoC,GAAG,UAAU,CAmBvF;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAE7D;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAAC;CAC/D,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC7B,CAAC;AAEF,wBAAgB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,MAAM,GAAG,QAAQ,CAyBtD"}
|