@agentshouse/mdruntime 0.1.0-cc7671cc3f267 → 0.1.0-cc848d4e7543e
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/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +10 -2
- package/dist/adapter.d.ts +27 -7
- package/dist/adapter.d.ts.map +1 -1
- package/dist/binary.d.ts +4 -0
- package/dist/binary.d.ts.map +1 -1
- package/dist/binary.js +9 -2
- package/dist/chat-types.js +2 -2
- package/dist/client.d.ts +5 -4
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +5 -6
- package/dist/connection.d.ts +1 -1
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +3 -3
- package/dist/conversation-live.d.ts +2 -3
- package/dist/conversation-live.d.ts.map +1 -1
- package/dist/conversation-live.js +2 -2
- package/dist/conversation.d.ts +2 -3
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +29 -17
- package/dist/declaration.js +1 -1
- package/dist/discovery.d.ts +1 -1
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +21 -3
- package/dist/entry.d.ts +9 -0
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +45 -27
- package/dist/host.d.ts +6 -3
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +23 -6
- package/dist/house-query.d.ts +7 -10
- package/dist/house-query.d.ts.map +1 -1
- package/dist/house-query.js +20 -7
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/lifecycle.d.ts +1 -1
- package/dist/lifecycle.d.ts.map +1 -1
- package/dist/lifecycle.js +21 -13
- package/dist/locks.d.ts.map +1 -1
- package/dist/locks.js +2 -0
- package/dist/media.d.ts +5 -6
- package/dist/media.d.ts.map +1 -1
- package/dist/media.js +77 -21
- package/dist/messages.d.ts +6 -1
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +10 -1
- package/dist/name.d.ts +0 -1
- package/dist/name.d.ts.map +1 -1
- package/dist/name.js +3 -7
- package/dist/opening.d.ts.map +1 -1
- package/dist/opening.js +18 -2
- package/dist/outcome.d.ts +11 -3
- package/dist/outcome.d.ts.map +1 -1
- package/dist/parts.d.ts +3 -1
- package/dist/parts.d.ts.map +1 -1
- package/dist/parts.js +30 -7
- package/dist/preparation.d.ts +10 -5
- package/dist/preparation.d.ts.map +1 -1
- package/dist/preparation.js +78 -48
- package/dist/queries.d.ts.map +1 -1
- package/dist/queries.js +3 -1
- package/dist/questions.d.ts.map +1 -1
- package/dist/questions.js +2 -1
- package/dist/reach.d.ts +9 -9
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +42 -18
- package/dist/readiness.d.ts +14 -4
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +16 -7
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +5 -2
- package/dist/room-drafts.d.ts.map +1 -1
- package/dist/room-drafts.js +6 -4
- package/dist/running.d.ts +5 -0
- package/dist/running.d.ts.map +1 -0
- package/dist/running.js +10 -0
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.d.ts.map +1 -1
- package/dist/saves.d.ts.map +1 -1
- package/dist/saves.js +22 -2
- package/dist/shown.d.ts.map +1 -1
- package/dist/shown.js +17 -4
- package/dist/socket/session.d.ts +4 -1
- package/dist/socket/session.d.ts.map +1 -1
- package/dist/socket/session.js +3 -0
- package/dist/store/records.d.ts +4 -1
- package/dist/store/records.d.ts.map +1 -1
- package/dist/store/records.js +2 -0
- package/dist/store.d.ts +2 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +4 -1
- package/dist/stored.d.ts +8 -1
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +108 -23
- package/dist/surface.d.ts +2 -2
- package/dist/surface.d.ts.map +1 -1
- package/dist/surface.js +5 -4
- package/dist/sync.d.ts +2 -1
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +25 -17
- package/dist/wire.d.ts +4 -0
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +5 -5
- package/package.json +3 -3
package/dist/conversation.js
CHANGED
|
@@ -25,7 +25,6 @@ export function unheldView(conversation) {
|
|
|
25
25
|
options: [],
|
|
26
26
|
starting: null,
|
|
27
27
|
state: null,
|
|
28
|
-
link: null,
|
|
29
28
|
deliveryWaiting: [],
|
|
30
29
|
deliveryUnknown: [],
|
|
31
30
|
chatDraft: null,
|
|
@@ -228,7 +227,6 @@ function viewOf(alive, conversation, held, frame, { draft, ended, dismissed, pin
|
|
|
228
227
|
options: structuredClone(facts.options),
|
|
229
228
|
starting: facts.starting,
|
|
230
229
|
state: sessionOf(facts, held, ended),
|
|
231
|
-
link: facts.link === null ? null : { ...facts.link },
|
|
232
230
|
deliveryWaiting: [...facts.deliveryWaiting],
|
|
233
231
|
deliveryUnknown: [...facts.deliveryUnknown],
|
|
234
232
|
chatDraft: draft === null || unwritten(draft) ? null : { text: draft.text, revision: draft.revision },
|
|
@@ -236,18 +234,23 @@ function viewOf(alive, conversation, held, frame, { draft, ended, dismissed, pin
|
|
|
236
234
|
pins: [...pins],
|
|
237
235
|
};
|
|
238
236
|
}
|
|
239
|
-
function
|
|
237
|
+
function standing(facts, saved, ended) {
|
|
240
238
|
if (facts.state !== null)
|
|
241
239
|
return structuredClone(facts.state);
|
|
240
|
+
if (saved === null)
|
|
241
|
+
return null;
|
|
242
|
+
const down = facts.process?.running === false;
|
|
243
|
+
return structuredClone(standingState(saved.state, saved.at, down ? saved.at : ended));
|
|
244
|
+
}
|
|
245
|
+
function sessionOf(facts, held, ended) {
|
|
242
246
|
const saved = [...held]
|
|
243
247
|
.reverse()
|
|
244
248
|
.map(({ message }) => record(message))
|
|
245
249
|
.find(({ content }) => isTurn(content));
|
|
246
250
|
const at = saved === undefined ? null : text(saved, 'accepted_at');
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
return structuredClone(standingState(saved.content.state, at, down ? at : ended));
|
|
251
|
+
return standing(facts, saved === undefined || !isTurn(saved.content) || at === null
|
|
252
|
+
? null
|
|
253
|
+
: { state: saved.content.state, at }, ended);
|
|
251
254
|
}
|
|
252
255
|
function emit(alive, conversation) {
|
|
253
256
|
if (alive.deps.closed())
|
|
@@ -297,13 +300,14 @@ function stateOf(alive, conversation) {
|
|
|
297
300
|
return facts.turn === null ? 'idle' : 'working';
|
|
298
301
|
}
|
|
299
302
|
function rowOf(alive, conversation) {
|
|
300
|
-
const { turn, questions } = alive.liveOf(conversation);
|
|
303
|
+
const { turn, questions, deliveryWaiting } = alive.liveOf(conversation);
|
|
301
304
|
return {
|
|
302
305
|
state: stateOf(alive, conversation),
|
|
303
306
|
started: turn?.started ?? null,
|
|
304
307
|
line: turn === null ? null : runningLine(turn.parts),
|
|
305
308
|
question: openQuestion(questions),
|
|
306
309
|
asked: questionAsked(questions),
|
|
310
|
+
deliveryWaiting: [...deliveryWaiting],
|
|
307
311
|
};
|
|
308
312
|
}
|
|
309
313
|
async function entries(alive) {
|
|
@@ -331,6 +335,7 @@ async function entries(alive) {
|
|
|
331
335
|
subject: entry.subject,
|
|
332
336
|
...rowOf(alive, entry.conversation),
|
|
333
337
|
...heldFacts(rows.get(entry.conversation), entry),
|
|
338
|
+
jobs: standing(alive.liveOf(entry.conversation), rows.get(entry.conversation)?.saved ?? null, entry.processEnded)?.running ?? [],
|
|
334
339
|
};
|
|
335
340
|
});
|
|
336
341
|
}
|
|
@@ -356,7 +361,9 @@ function upserted(kept, set, key) {
|
|
|
356
361
|
function listChanged(alive, change) {
|
|
357
362
|
void alive.deps
|
|
358
363
|
.durably(async (local) => {
|
|
359
|
-
const { conversationList, agentList, conversationCursor } = await local.facts();
|
|
364
|
+
const { conversationList, agentList, conversationCursor, readUntil } = await local.facts();
|
|
365
|
+
if (readUntil === null)
|
|
366
|
+
await local.fact('readUntil', new Date().toISOString());
|
|
360
367
|
const held = upserted(change.replacing ? [] : (conversationList ?? []), change.set, (entry) => entry.conversation);
|
|
361
368
|
for (const entry of change.set)
|
|
362
369
|
alive.created(entry.conversation);
|
|
@@ -390,7 +397,7 @@ function listChanged(alive, change) {
|
|
|
390
397
|
const list = listing.conversations;
|
|
391
398
|
endedAnew(alive, list);
|
|
392
399
|
if (change.cursor !== undefined) {
|
|
393
|
-
alive.held.set({ listKnown: true, openingListed: true });
|
|
400
|
+
alive.held.set({ listKnown: true, listHeld: true, openingListed: true });
|
|
394
401
|
settleBehind(alive, list);
|
|
395
402
|
openingEnded(alive);
|
|
396
403
|
alive.deps.settled();
|
|
@@ -517,11 +524,18 @@ function emitAgents(alive) {
|
|
|
517
524
|
}
|
|
518
525
|
});
|
|
519
526
|
}
|
|
527
|
+
function ran({ state, process }) {
|
|
528
|
+
return JSON.stringify([state?.running ?? null, process?.running ?? null]);
|
|
529
|
+
}
|
|
520
530
|
function setLive(alive, conversation, next) {
|
|
531
|
+
const was = ran(alive.liveOf(conversation));
|
|
521
532
|
const before = rowOf(alive, conversation);
|
|
522
533
|
alive.holdLive(conversation, next);
|
|
523
534
|
const after = rowOf(alive, conversation);
|
|
524
|
-
if (after.state !== before.state ||
|
|
535
|
+
if (after.state !== before.state ||
|
|
536
|
+
after.started !== before.started ||
|
|
537
|
+
ran(alive.liveOf(conversation)) !== was ||
|
|
538
|
+
after.deliveryWaiting.join() !== before.deliveryWaiting.join())
|
|
525
539
|
emitList(alive);
|
|
526
540
|
else if (after.line !== before.line ||
|
|
527
541
|
after.question !== before.question ||
|
|
@@ -552,7 +566,6 @@ function openingEnded(alive) {
|
|
|
552
566
|
options: facts.has('options') ? QUIET.options : held.options,
|
|
553
567
|
starting: facts.has('starting') ? QUIET.starting : held.starting,
|
|
554
568
|
state: facts.has('state') ? QUIET.state : held.state,
|
|
555
|
-
link: facts.has('link') ? QUIET.link : held.link,
|
|
556
569
|
deliveryWaiting: facts.has('deliveryWaiting') ? QUIET.deliveryWaiting : held.deliveryWaiting,
|
|
557
570
|
deliveryUnknown: facts.has('deliveryUnknown') ? QUIET.deliveryUnknown : held.deliveryUnknown,
|
|
558
571
|
});
|
|
@@ -784,10 +797,6 @@ function heard(alive, event) {
|
|
|
784
797
|
live(alive, conversation, { state: structuredClone(event.state) });
|
|
785
798
|
return;
|
|
786
799
|
}
|
|
787
|
-
if (event.kind === 'link') {
|
|
788
|
-
live(alive, conversation, { link: { connected: event.connected } });
|
|
789
|
-
return;
|
|
790
|
-
}
|
|
791
800
|
if (event.kind === 'deliveries') {
|
|
792
801
|
live(alive, conversation, {
|
|
793
802
|
deliveryWaiting: [...event.waiting],
|
|
@@ -1090,7 +1099,10 @@ export function chatDraftSurface(alive) {
|
|
|
1090
1099
|
}
|
|
1091
1100
|
export async function conversationsOpened(alive, local) {
|
|
1092
1101
|
const { conversationList, agentList, conversationCursor } = await local.facts();
|
|
1093
|
-
if (conversationList === null || agentList === null
|
|
1102
|
+
if (conversationList === null || agentList === null)
|
|
1103
|
+
return;
|
|
1104
|
+
alive.held.set({ listHeld: true });
|
|
1105
|
+
if (alive.known())
|
|
1094
1106
|
return;
|
|
1095
1107
|
alive.deps.stream()?.hold(conversationCursor);
|
|
1096
1108
|
conversationsLearned(alive);
|
package/dist/declaration.js
CHANGED
|
@@ -8,7 +8,7 @@ export function sameDeclaration(left, right) {
|
|
|
8
8
|
}
|
|
9
9
|
export function writeRule({ operations, providerOwnedPaths, authoredPaths, }, pathRule, local) {
|
|
10
10
|
return (path, needs) => {
|
|
11
|
-
const normalized = normalize(path);
|
|
11
|
+
const normalized = normalize(path.normalize('NFC'));
|
|
12
12
|
if (normalized === null || normalized === '')
|
|
13
13
|
return { code: 'room-root', path };
|
|
14
14
|
if (covered(providerOwnedPaths, normalized) || !authoredAt(authoredPaths, normalized)) {
|
package/dist/discovery.d.ts
CHANGED
|
@@ -8,5 +8,5 @@ export declare function applyDiscovery(runtime: Runtime, found: readonly Discove
|
|
|
8
8
|
export declare const DISCOVERY = "discovery";
|
|
9
9
|
export declare function signIn(runtime: Runtime, local: RuntimeStore, signedIn: Member | null): Promise<void>;
|
|
10
10
|
export declare function zoned(runtime: Runtime, local: RuntimeStore, zone: string | null): Promise<void>;
|
|
11
|
-
export declare function discoverRooms(runtime: Runtime,
|
|
11
|
+
export declare function discoverRooms(runtime: Runtime, progress: CycleProgress, live: Live, found: Discovery | null): Promise<readonly DiscoveredRoom[] | null>;
|
|
12
12
|
//# sourceMappingURL=discovery.d.ts.map
|
package/dist/discovery.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../src/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,SAAS,EACT,cAAc,EACd,MAAM,EAEP,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAkB/C,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,cAAc,EAAE,GAAG,MAAM,GAAG,IAAI,CAsB1E;AAED,wBAAsB,cAAc,CAClC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,SAAS,cAAc,EAAE,EAChC,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,GACvB,OAAO,CAAC,SAAS,cAAc,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../src/discovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,SAAS,EACT,cAAc,EACd,MAAM,EAEP,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAkB/C,wBAAgB,SAAS,CAAC,MAAM,EAAE,SAAS,cAAc,EAAE,GAAG,MAAM,GAAG,IAAI,CAsB1E;AAED,wBAAsB,cAAc,CAClC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,SAAS,cAAc,EAAE,EAChC,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,SAAS,MAAM,EAAE,GACvB,OAAO,CAAC,SAAS,cAAc,EAAE,CAAC,CAgDpC;AAUD,eAAO,MAAM,SAAS,cAAc,CAAC;AAErC,wBAAsB,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,iBAI1F;AAED,wBAAsB,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,iBAIrF;AAED,wBAAsB,aAAa,CACjC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,SAAS,GAAG,IAAI,GACtB,OAAO,CAAC,SAAS,cAAc,EAAE,GAAG,IAAI,CAAC,CA2E3C"}
|
package/dist/discovery.js
CHANGED
|
@@ -37,6 +37,12 @@ export function malformed(listed) {
|
|
|
37
37
|
}
|
|
38
38
|
export async function applyDiscovery(runtime, found, started, left) {
|
|
39
39
|
const { store, socket, presence } = runtime;
|
|
40
|
+
if (found.length === 0 && !store.needed()) {
|
|
41
|
+
const listed = presence.list([], { whole: left === undefined, live: socket.isOpen() });
|
|
42
|
+
socket.session.set({ roomsListed: true });
|
|
43
|
+
emitRooms(runtime);
|
|
44
|
+
return listed;
|
|
45
|
+
}
|
|
40
46
|
const lockedBefore = await lockedRooms(runtime);
|
|
41
47
|
const local = await store.open();
|
|
42
48
|
const fenced = new Set(await local.fences());
|
|
@@ -90,8 +96,8 @@ export async function zoned(runtime, local, zone) {
|
|
|
90
96
|
await local.fact('timeZone', zone);
|
|
91
97
|
emitTimeZone(runtime, zone);
|
|
92
98
|
}
|
|
93
|
-
export async function discoverRooms(runtime,
|
|
94
|
-
const { socket } = runtime;
|
|
99
|
+
export async function discoverRooms(runtime, progress, live, found) {
|
|
100
|
+
const { store, socket } = runtime;
|
|
95
101
|
const { session } = socket;
|
|
96
102
|
const { closed, authorization } = session.now();
|
|
97
103
|
if (closed || authorization === undefined) {
|
|
@@ -114,7 +120,8 @@ export async function discoverRooms(runtime, local, progress, live, found) {
|
|
|
114
120
|
if (result.kind === 'discovery')
|
|
115
121
|
runtime.retries.succeeded('connection', DISCOVERY);
|
|
116
122
|
if (result.kind === 'transport-uncertainty') {
|
|
117
|
-
|
|
123
|
+
if (store.needed())
|
|
124
|
+
await cachedModels(runtime, await store.open());
|
|
118
125
|
progress.reachable = false;
|
|
119
126
|
progress.complete = false;
|
|
120
127
|
socket.notifyReady();
|
|
@@ -144,12 +151,23 @@ export async function discoverRooms(runtime, local, progress, live, found) {
|
|
|
144
151
|
session.set({ refusal: null });
|
|
145
152
|
emitRefusal(runtime);
|
|
146
153
|
}
|
|
154
|
+
const queriesOnly = result.queriesOnly ?? [];
|
|
155
|
+
if (!store.needed() && result.rooms.length === 0) {
|
|
156
|
+
session.set({ queriesOnly, unstored: result });
|
|
157
|
+
socket.notifyReady();
|
|
158
|
+
return applyDiscovery(runtime, result.rooms, started);
|
|
159
|
+
}
|
|
160
|
+
const local = await store.open();
|
|
147
161
|
const held = await local.facts();
|
|
148
162
|
if (JSON.stringify(result.providerLimits) !== JSON.stringify(held.providerLimits) ||
|
|
149
163
|
JSON.stringify(result.capabilities) !== JSON.stringify(held.capabilities)) {
|
|
150
164
|
await local.fact('providerLimits', result.providerLimits);
|
|
151
165
|
await local.fact('capabilities', result.capabilities);
|
|
152
166
|
}
|
|
167
|
+
if (JSON.stringify(queriesOnly) !== JSON.stringify(held.queriesOnly)) {
|
|
168
|
+
await local.fact('queriesOnly', queriesOnly);
|
|
169
|
+
}
|
|
170
|
+
session.set({ queriesOnly, unstored: null });
|
|
153
171
|
socket.notifyReady();
|
|
154
172
|
await signIn(runtime, local, result.member ?? null);
|
|
155
173
|
await zoned(runtime, local, result.timeZone ?? null);
|
package/dist/entry.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { type VerifiedModel } from '@agentshouse/mdmodel';
|
|
2
2
|
import type { BinaryFile, HeadChange } from './adapter.js';
|
|
3
3
|
import { type QueryRows } from './query.js';
|
|
4
|
+
import { type ValuedEntry } from './stored.js';
|
|
4
5
|
import type { Connection } from './tables.js';
|
|
5
6
|
export { QueryError } from '@agentshouse/mdmodel';
|
|
7
|
+
export { documentKey, pathOfKey } from './rows.js';
|
|
8
|
+
export type { ValuedEntry } from './stored.js';
|
|
6
9
|
export type EntryRoom = {
|
|
7
10
|
locator: string;
|
|
8
11
|
schema: string | null;
|
|
@@ -21,5 +24,11 @@ export declare function entryRefusal(template: unknown): string | null;
|
|
|
21
24
|
export type EntryScope = {
|
|
22
25
|
results(queries: Readonly<Record<string, unknown>>): Promise<Record<string, QueryRows>>;
|
|
23
26
|
};
|
|
27
|
+
export type CountedRoom = {
|
|
28
|
+
locator: string;
|
|
29
|
+
schema: string | null;
|
|
30
|
+
documents: readonly ValuedEntry[];
|
|
31
|
+
};
|
|
24
32
|
export declare function entryScope(rooms: readonly EntryRoom[], roomTypes: VerifiedModel, connection: Connection): EntryScope;
|
|
33
|
+
export declare function countScope(room: CountedRoom, roomTypes: VerifiedModel, connection: Connection): EntryScope;
|
|
25
34
|
//# sourceMappingURL=entry.d.ts.map
|
package/dist/entry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry.d.ts","sourceRoot":"","sources":["../src/entry.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,sBAAsB,CA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MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAE9D,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AA0D7E,wBAAgB,UAAU,CAAC,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAE3E;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,MAAM,EAAE,CAMpE;AAyCD,wBAAgB,YAAY,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAQ7D;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;CACzF,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,EAAE,SAAS,WAAW,EAAE,CAAC;CACnC,CAAC;AAgDF,wBAAgB,UAAU,CACxB,KAAK,EAAE,SAAS,SAAS,EAAE,EAC3B,SAAS,EAAE,aAAa,EACxB,UAAU,EAAE,UAAU,GACrB,UAAU,CAwCZ;AAED,wBAAgB,UAAU,CACxB,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,aAAa,EACxB,UAAU,EAAE,UAAU,GACrB,UAAU,CAaZ"}
|
package/dist/entry.js
CHANGED
|
@@ -3,8 +3,9 @@ import { attachedModel } from './attached-model.js';
|
|
|
3
3
|
import { answerQuery } from './compile.js';
|
|
4
4
|
import { planWithin } from './query.js';
|
|
5
5
|
import { writtenFacts } from './rows.js';
|
|
6
|
-
import { entered, REPLICA_TABLES } from './stored.js';
|
|
6
|
+
import { entered, enteredValues, REPLICA_TABLES, } from './stored.js';
|
|
7
7
|
export { QueryError } from '@agentshouse/mdmodel';
|
|
8
|
+
export { documentKey, pathOfKey } from './rows.js';
|
|
8
9
|
const PARAMETER = '$param';
|
|
9
10
|
const KIND = 'as';
|
|
10
11
|
const INTEGER = /^-?(?:0|[1-9][0-9]*)$/u;
|
|
@@ -117,7 +118,7 @@ export function entryRefusal(template) {
|
|
|
117
118
|
throw error;
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
|
-
|
|
121
|
+
function scope(rooms, roomTypes, connection) {
|
|
121
122
|
for (const table of REPLICA_TABLES)
|
|
122
123
|
connection.run(table);
|
|
123
124
|
const held = [];
|
|
@@ -132,31 +133,7 @@ export function entryScope(rooms, roomTypes, connection) {
|
|
|
132
133
|
types: model.status === 'unavailable' ? [] : Object.values(model.types),
|
|
133
134
|
});
|
|
134
135
|
const composition = { model, selection: null, typedPaths: [] };
|
|
135
|
-
|
|
136
|
-
revision: room.revisions?.[path] ?? null,
|
|
137
|
-
fileId: room.fileIds?.[path] ?? null,
|
|
138
|
-
created: room.created?.[path] ?? null,
|
|
139
|
-
change: room.changes?.[path] ?? null,
|
|
140
|
-
written: null,
|
|
141
|
-
});
|
|
142
|
-
const entries = [
|
|
143
|
-
...Object.entries(room.documents).map(([path, content]) => ({
|
|
144
|
-
path,
|
|
145
|
-
content,
|
|
146
|
-
facts: writtenFacts(path, content, composition),
|
|
147
|
-
binary: null,
|
|
148
|
-
...heads(path),
|
|
149
|
-
})),
|
|
150
|
-
...Object.entries(room.binaryFiles ?? {}).map(([path, binary]) => ({
|
|
151
|
-
path,
|
|
152
|
-
content: null,
|
|
153
|
-
facts: null,
|
|
154
|
-
binary: { state: 'accepted', ...binary },
|
|
155
|
-
...heads(path),
|
|
156
|
-
})),
|
|
157
|
-
];
|
|
158
|
-
const key = entered(connection, room.locator, composition, entries.sort((left, right) => (left.path < right.path ? -1 : 1)));
|
|
159
|
-
return { locator: room.locator, key, composition };
|
|
136
|
+
return { locator: room.locator, key: room.enter(composition), composition };
|
|
160
137
|
});
|
|
161
138
|
const planned = { listed: true, rooms: held };
|
|
162
139
|
return {
|
|
@@ -170,3 +147,44 @@ export function entryScope(rooms, roomTypes, connection) {
|
|
|
170
147
|
},
|
|
171
148
|
};
|
|
172
149
|
}
|
|
150
|
+
export function entryScope(rooms, roomTypes, connection) {
|
|
151
|
+
return scope(rooms.map((room) => ({
|
|
152
|
+
locator: room.locator,
|
|
153
|
+
schema: room.schema,
|
|
154
|
+
enter(composition) {
|
|
155
|
+
const heads = (path) => ({
|
|
156
|
+
revision: room.revisions?.[path] ?? null,
|
|
157
|
+
fileId: room.fileIds?.[path] ?? null,
|
|
158
|
+
created: room.created?.[path] ?? null,
|
|
159
|
+
change: room.changes?.[path] ?? null,
|
|
160
|
+
written: null,
|
|
161
|
+
});
|
|
162
|
+
const entries = [
|
|
163
|
+
...Object.entries(room.documents).map(([path, content]) => ({
|
|
164
|
+
path,
|
|
165
|
+
content,
|
|
166
|
+
facts: writtenFacts(path, content, composition),
|
|
167
|
+
binary: null,
|
|
168
|
+
...heads(path),
|
|
169
|
+
})),
|
|
170
|
+
...Object.entries(room.binaryFiles ?? {}).map(([path, binary]) => ({
|
|
171
|
+
path,
|
|
172
|
+
content: null,
|
|
173
|
+
facts: null,
|
|
174
|
+
binary: { state: 'accepted', ...binary },
|
|
175
|
+
...heads(path),
|
|
176
|
+
})),
|
|
177
|
+
];
|
|
178
|
+
return entered(connection, room.locator, composition, entries.sort((left, right) => (left.path < right.path ? -1 : 1)));
|
|
179
|
+
},
|
|
180
|
+
})), roomTypes, connection);
|
|
181
|
+
}
|
|
182
|
+
export function countScope(room, roomTypes, connection) {
|
|
183
|
+
return scope([
|
|
184
|
+
{
|
|
185
|
+
locator: room.locator,
|
|
186
|
+
schema: room.schema,
|
|
187
|
+
enter: (composition) => enteredValues(connection, room.locator, composition, room.documents),
|
|
188
|
+
},
|
|
189
|
+
], roomTypes, connection);
|
|
190
|
+
}
|
package/dist/host.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type MdRuntimeOptions } from './connection.js';
|
|
2
2
|
import type { PortReach } from './reach.js';
|
|
3
|
-
import type { CodeAvailability, Persistence, Readiness } from './readiness.js';
|
|
3
|
+
import type { CodeAvailability, FirstTier, Persistence, Readiness } from './readiness.js';
|
|
4
4
|
import type { EntrySeed } from './seed.js';
|
|
5
5
|
import { type CallResult } from './outcome.js';
|
|
6
6
|
import { type RuntimePort } from './wire.js';
|
|
@@ -19,10 +19,12 @@ export type AttachOptions = {
|
|
|
19
19
|
readonly reach?: PortReach;
|
|
20
20
|
readonly admission?: ActionAdmission;
|
|
21
21
|
readonly code?: CodeAvailability;
|
|
22
|
+
readonly first?: FirstTier;
|
|
22
23
|
};
|
|
23
24
|
export type AttachedPort = {
|
|
24
25
|
detach(): void;
|
|
25
26
|
narrow(reach: PortReach): void;
|
|
27
|
+
code(code: CodeAvailability): void;
|
|
26
28
|
readiness(deliver: (readiness: Readiness) => void): () => void;
|
|
27
29
|
answered(queries: readonly unknown[], done: () => void): void;
|
|
28
30
|
};
|
|
@@ -36,8 +38,9 @@ export type MdRuntimeHost = {
|
|
|
36
38
|
};
|
|
37
39
|
export declare function serveMdRuntime(options: MdRuntimeHostOptions): MdRuntimeHost;
|
|
38
40
|
export { entrySeedOf, type EntrySeed } from './seed.js';
|
|
39
|
-
export type {
|
|
40
|
-
export type {
|
|
41
|
+
export type { QueriedRoom } from './adapter.js';
|
|
42
|
+
export type { PortReach, ReachedDocument } from './reach.js';
|
|
43
|
+
export type { CodeAvailability, FirstTier, Persistence, Space } from './readiness.js';
|
|
41
44
|
export { createRecovery, retryDelay, type Attempt, type Attempted, type AttemptOptions, type Recovery, type RecoveryOptions, } from './recovery.js';
|
|
42
45
|
export { replaces } from './observation.js';
|
|
43
46
|
export { undeclared } from './outcome.js';
|
package/dist/host.d.ts.map
CH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,YAAY,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7D,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACtF,OAAO,EACL,cAAc,EACd,UAAU,EACV,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,QAAQ,EACb,KAAK,eAAe,GACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EACL,UAAU,EACV,WAAW,EACX,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,WAAW,GACjB,MAAM,WAAW,CAAC"}
|
package/dist/host.js
CHANGED
|
@@ -6,6 +6,16 @@ import { observed } from './observation.js';
|
|
|
6
6
|
import { answeredResult } from './outcome.js';
|
|
7
7
|
import { AUTHORIZATION_ENDED, WIRE, wireRequest, } from './wire.js';
|
|
8
8
|
const NARROWED = new Set(['within', 'whole']);
|
|
9
|
+
const UNWAITED_MEMBERS = new Set(['call', 'queryHouse']);
|
|
10
|
+
const UNWAITED_TOPICS = new Set([
|
|
11
|
+
'deployment-facts',
|
|
12
|
+
'room-drafts',
|
|
13
|
+
'sync-status',
|
|
14
|
+
'connection-refusal',
|
|
15
|
+
'storage-loss',
|
|
16
|
+
'service-mode',
|
|
17
|
+
'authority-changes',
|
|
18
|
+
]);
|
|
9
19
|
function answered(md, app, writtenBy, member, input) {
|
|
10
20
|
switch (member) {
|
|
11
21
|
case 'rooms':
|
|
@@ -15,7 +25,7 @@ function answered(md, app, writtenBy, member, input) {
|
|
|
15
25
|
case 'search':
|
|
16
26
|
return md.search(input[0]);
|
|
17
27
|
case 'queryHouse':
|
|
18
|
-
return md.queryHouse(input[0]);
|
|
28
|
+
return md.queryHouse(input[0], input[1]);
|
|
19
29
|
case 'types':
|
|
20
30
|
return md.types(input[0]);
|
|
21
31
|
case 'save':
|
|
@@ -153,9 +163,9 @@ export function serveMdRuntime(options) {
|
|
|
153
163
|
function attach(port, options) {
|
|
154
164
|
if (!authorized)
|
|
155
165
|
throw new Error(AUTHORIZATION_ENDED);
|
|
156
|
-
const { app, release, reach, admission, code = 'stored' } = options;
|
|
166
|
+
const { app, release, reach, admission, code = 'stored', first = null } = options;
|
|
157
167
|
const writtenBy = release === undefined ? undefined : { app, release };
|
|
158
|
-
const view = runtime.within(reach ?? null, { target: app, code });
|
|
168
|
+
const view = runtime.within(reach ?? null, { target: app, code, first, inboxed: null });
|
|
159
169
|
const observations = new Map();
|
|
160
170
|
const followed = new Set();
|
|
161
171
|
const answeredKeys = new Set();
|
|
@@ -181,6 +191,7 @@ export function serveMdRuntime(options) {
|
|
|
181
191
|
observations.clear();
|
|
182
192
|
for (const end of [...followed])
|
|
183
193
|
end();
|
|
194
|
+
view.close();
|
|
184
195
|
attachments.delete(detach);
|
|
185
196
|
};
|
|
186
197
|
const observe = (id, topic, input) => {
|
|
@@ -236,10 +247,12 @@ export function serveMdRuntime(options) {
|
|
|
236
247
|
return;
|
|
237
248
|
}
|
|
238
249
|
try {
|
|
239
|
-
if (message.kind
|
|
250
|
+
if (message.kind === 'observe') {
|
|
251
|
+
if (!UNWAITED_TOPICS.has(message.topic))
|
|
252
|
+
await opened();
|
|
253
|
+
}
|
|
254
|
+
else if (!UNWAITED_MEMBERS.has(message.member))
|
|
240
255
|
await md.loaded();
|
|
241
|
-
else if (message.topic !== 'room-drafts')
|
|
242
|
-
await opened();
|
|
243
256
|
if (message.kind === 'observe') {
|
|
244
257
|
if (serving)
|
|
245
258
|
observe(message.id, message.topic, message.input);
|
|
@@ -272,6 +285,10 @@ export function serveMdRuntime(options) {
|
|
|
272
285
|
if (serving)
|
|
273
286
|
view.narrow(next);
|
|
274
287
|
},
|
|
288
|
+
code(next) {
|
|
289
|
+
if (serving)
|
|
290
|
+
view.code(next);
|
|
291
|
+
},
|
|
275
292
|
answered(queries, done) {
|
|
276
293
|
const keys = queries.map(queryKey);
|
|
277
294
|
if (keys.every((key) => answeredKeys.has(key)))
|
package/dist/house-query.d.ts
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { type DocumentQuery } from '@agentshouse/mdmodel';
|
|
2
|
-
import type { ProviderRefusal } from './adapter.js';
|
|
1
|
+
import { type DocumentQuery, type GroupQuery } from '@agentshouse/mdmodel';
|
|
2
|
+
import type { HouseQueryGroups, HouseQueryRows, ProviderRefusal } from './adapter.js';
|
|
3
3
|
import { type Failure, type Offline } from './outcome.js';
|
|
4
|
-
import type { QueryDocument } from './query.js';
|
|
5
4
|
import { type PortReach } from './reach.js';
|
|
6
5
|
import type { Runtime } from './runtime.js';
|
|
7
|
-
export type HouseQuery = DocumentQuery & {
|
|
6
|
+
export type HouseQuery = (DocumentQuery | GroupQuery) & {
|
|
8
7
|
rooms: readonly [string];
|
|
9
8
|
};
|
|
10
|
-
export type
|
|
11
|
-
|
|
12
|
-
documents: readonly QueryDocument[];
|
|
13
|
-
next?: string;
|
|
9
|
+
export type HouseQueryOptions = {
|
|
10
|
+
readonly fresh?: boolean;
|
|
14
11
|
};
|
|
15
|
-
export type HouseQueryResult = HouseQueryRows | Offline | (ProviderRefusal & {
|
|
12
|
+
export type HouseQueryResult = HouseQueryRows | HouseQueryGroups | Offline | (ProviderRefusal & {
|
|
16
13
|
kind: 'rejected';
|
|
17
14
|
}) | (ProviderRefusal & {
|
|
18
15
|
kind: 'undeclared';
|
|
19
16
|
}) | Failure;
|
|
20
|
-
export declare function queriedHouse(runtime: Runtime, input: unknown, reach: PortReach | null): Promise<HouseQueryResult>;
|
|
17
|
+
export declare function queriedHouse(runtime: Runtime, input: unknown, reach: PortReach | null, options: unknown): Promise<HouseQueryResult>;
|
|
21
18
|
//# sourceMappingURL=house-query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"house-query.d.ts","sourceRoot":"","sources":["../src/house-query.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"house-query.d.ts","sourceRoot":"","sources":["../src/house-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClG,OAAO,KAAK,EAEV,gBAAgB,EAChB,cAAc,EACd,eAAe,EAChB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAA2C,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,cAAc,CAAC;AAEnG,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,MAAM,MAAM,UAAU,GAAG,CAAC,aAAa,GAAG,UAAU,CAAC,GAAG;IAAE,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;CAAE,CAAC;AAErF,MAAM,MAAM,iBAAiB,GAAG;IAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE7D,MAAM,MAAM,gBAAgB,GACxB,cAAc,GACd,gBAAgB,GAChB,OAAO,GACP,CAAC,eAAe,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,GACxC,CAAC,eAAe,GAAG;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC,GAC1C,OAAO,CAAC;AA8BZ,wBAAsB,YAAY,CAChC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,SAAS,GAAG,IAAI,EACvB,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,gBAAgB,CAAC,CAiB3B"}
|
package/dist/house-query.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { invalid, plain } from '@agentshouse/mdmodel';
|
|
1
|
+
import { invalid, known, plain } from '@agentshouse/mdmodel';
|
|
2
2
|
import { listedOrHeld } from './listing.js';
|
|
3
3
|
import { failure, OFFLINE, UNCERTAIN, undeclared } from './outcome.js';
|
|
4
4
|
import { askedOnline, offline } from './online.js';
|
|
@@ -9,25 +9,36 @@ const HELD_ON_DEVICE = {
|
|
|
9
9
|
fields: {},
|
|
10
10
|
retryable: false,
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function freshOf(options) {
|
|
13
|
+
if (options === undefined)
|
|
14
|
+
return false;
|
|
15
|
+
if (!plain(options))
|
|
16
|
+
invalid('options', 'expects { fresh }');
|
|
17
|
+
known(options, ['fresh'], 'options');
|
|
18
|
+
const { fresh = false } = options;
|
|
19
|
+
if (typeof fresh !== 'boolean')
|
|
20
|
+
invalid('fresh', 'expects true or false');
|
|
21
|
+
return fresh;
|
|
22
|
+
}
|
|
23
|
+
function houseQueryOf(input, options) {
|
|
13
24
|
if (!plain(input))
|
|
14
25
|
invalid('query', 'expects a query object');
|
|
15
26
|
const { rooms, ...query } = input;
|
|
16
27
|
if (!Array.isArray(rooms) || rooms.length !== 1 || typeof rooms[0] !== 'string')
|
|
17
28
|
invalid('rooms', 'names the one Room House answers');
|
|
18
|
-
return { room: rooms[0], query };
|
|
29
|
+
return { room: rooms[0], query, fresh: freshOf(options) };
|
|
19
30
|
}
|
|
20
31
|
async function heldHere(runtime, reach, room) {
|
|
21
32
|
return holds(reach, room) && listedOrHeld(runtime, await runtime.store.rooms([room]), room);
|
|
22
33
|
}
|
|
23
|
-
export async function queriedHouse(runtime, input, reach) {
|
|
34
|
+
export async function queriedHouse(runtime, input, reach, options) {
|
|
24
35
|
const { socket } = runtime;
|
|
25
|
-
const asked = houseQueryOf(input);
|
|
36
|
+
const asked = houseQueryOf(input, options);
|
|
26
37
|
await socket.ready;
|
|
27
38
|
const query = socket.queryHouse();
|
|
28
39
|
if (query === undefined)
|
|
29
40
|
return undeclared('queryHouse');
|
|
30
|
-
if (!queriedOnly(reach, asked.room)) {
|
|
41
|
+
if (!queriedOnly(reach, socket.session.now().queriesOnly, asked.room)) {
|
|
31
42
|
return (await heldHere(runtime, reach, asked.room))
|
|
32
43
|
? HELD_ON_DEVICE
|
|
33
44
|
: failure({ kind: 'room-not-readable', locator: asked.room });
|
|
@@ -37,5 +48,7 @@ export async function queriedHouse(runtime, input, reach) {
|
|
|
37
48
|
const answer = await askedOnline(runtime, (authorization) => query(authorization, asked));
|
|
38
49
|
if (answer === null)
|
|
39
50
|
return UNCERTAIN;
|
|
40
|
-
return answer.kind === 'rows' || answer.kind === '
|
|
51
|
+
return answer.kind === 'rows' || answer.kind === 'groups' || answer.kind === 'rejected'
|
|
52
|
+
? answer
|
|
53
|
+
: failure(answer);
|
|
41
54
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { AcceptedMessage, AcceptedRoom, ActionDeclaration, ActionRequest, ActionResult, Adapter, AdapterFailure, AttachRequest, AttachResult, AuthorityChange, Authorization, BinaryFile, BinaryLinkResult, BinaryRequest, BinaryResult, BootstrapPage, BootstrapRequest, BootstrapResult, Capability, ChangeAuthor, ContractUnavailable, ConversationAction, ConversationEvent, ConversationHistories, ConversationHistoryPage, ConversationHistoryRequest, ConversationMessage, ConversationStream, DiscoverResult, DiscoveredRoom, Discovery, SavedFacts, HistoryAuthor, HistoryRequest, HistoryResult, HistoryRetention, HistoryRevision, BootstrapPart, NotReady, HeldRoom, KeyedRequest, AgentEnvironment, ListedAgent, ListedConversation, ListedOwner, ListedSpaceRef, RoomList, RoomListEntry, SpaceListEntry, MdModelIdentity, Member, MutationRequest, MutationResult, PageToken, ProviderLimit, ProviderRefusal, RefreshPage, RefreshRequest, RefreshResult, Retention, RetryableRefusal, RevokedAuthorization, RoomChange, RoomModels, RoomNotReadable, RoomStream, RoomStreamEvent, RoomVersionAt, HouseQueryAnswer, HouseQueryAsk, SearchAnswer, SearchAsk, ServiceMode, ServiceModeSignal, TransportUncertainty, TurnOperation, TypedPath, TypedSelection, } from './adapter.js';
|
|
1
|
+
export type { AcceptedMessage, AcceptedRoom, ActionDeclaration, ActionRequest, ActionResult, Adapter, AdapterFailure, AttachRequest, AttachResult, AuthorityChange, Authorization, BinaryCopy, BinaryFile, BinaryLinkResult, BinaryRequest, BinaryResult, BootstrapPage, BootstrapRequest, BootstrapResult, Capability, ChangeAuthor, ContractUnavailable, ConversationAction, ConversationEvent, ConversationHistories, ConversationHistoryPage, ConversationHistoryRequest, ConversationMessage, ConversationStream, DiscoverResult, DiscoveredRoom, Discovery, SavedFacts, HistoryAuthor, HistoryRequest, HistoryResult, HistoryRetention, HistoryRevision, BootstrapPart, NotReady, HeldRoom, KeyedRequest, AgentEnvironment, ListedAgent, ListedConversation, ListedOwner, ListedSpaceRef, RoomList, RoomListEntry, SpaceListEntry, MdModelIdentity, Member, MutationRequest, MutationResult, PageToken, ProviderLimit, ProviderRefusal, RefreshPage, RefreshRequest, RefreshResult, Retention, RetryableRefusal, RevokedAuthorization, RoomChange, RoomModels, RoomNotReadable, RoomStream, RoomStreamEvent, RoomVersionAt, HouseQueryAnswer, HouseQueryAsk, HouseQueryGroups, HouseQueryRows, SearchAnswer, SearchAsk, ServiceMode, ServiceModeSignal, TransportUncertainty, TurnOperation, TypedPath, TypedSelection, } from './adapter.js';
|
|
2
2
|
export type { Change, ChangeBatch, Precondition, RoomMove, WrittenBy } from './change.js';
|
|
3
3
|
export { heldFacts } from './conversation-row.js';
|
|
4
4
|
export type { ConversationAsk, ConversationHeld, ConversationLast, ConversationStart, } from './conversation-row.js';
|
|
@@ -15,7 +15,7 @@ export type { Observation } from './observation.js';
|
|
|
15
15
|
export type { DayFigures, Figures, FiguresResult, RoomFigures } from './figures.js';
|
|
16
16
|
export type { HeldApp, Holdings, RoomDocuments } from './holdings.js';
|
|
17
17
|
export type { PresentationSurface, RoomDraftSurface } from './room-drafts.js';
|
|
18
|
-
export type { AttachAnswer, BinaryAnswer, BinaryLinkAnswer, CallResult, ConversationAttachAnswer, DownloadAnswer, Failure, HistoryAnswer, Offline, QueueEntry, Resolution, Submission, } from './outcome.js';
|
|
18
|
+
export type { AttachAnswer, BinaryAnswer, BinaryLinkAnswer, CallResult, ShownAnswer, ConversationAttachAnswer, DownloadAnswer, Failure, HistoryAnswer, Offline, QueueEntry, Resolution, Submission, } from './outcome.js';
|
|
19
19
|
export { blobOf, declaredType } from './outcome.js';
|
|
20
20
|
export type { BinaryFileRecord } from './binary.js';
|
|
21
21
|
export type { RuntimeError } from './failure.js';
|
|
@@ -23,15 +23,17 @@ export { refusalError } from './failure.js';
|
|
|
23
23
|
export type { ChangedPart, FieldValue, Marks, ReturnReason, RoomDraft, RoomDraftCreation, RoomDraftParts, RoomDraftWrite, TextParts, } from './room-draft.js';
|
|
24
24
|
export type { SaveRefusal } from './save.js';
|
|
25
25
|
export type { SearchFound, SearchHit, SearchRequest, SearchResult } from './search.js';
|
|
26
|
-
export type { HouseQuery,
|
|
26
|
+
export type { HouseQuery, HouseQueryOptions, HouseQueryResult } from './house-query.js';
|
|
27
27
|
export { keptFile, keptLines } from './chat-types.js';
|
|
28
28
|
export { FIGURES_DAY_MS } from './figures.js';
|
|
29
29
|
export { departure } from './change.js';
|
|
30
30
|
export { definitionsIn, selected } from './collection.js';
|
|
31
31
|
export { lineEnded, partsAfter, partsChanges } from './room-draft.js';
|
|
32
|
-
export { cutName, nameFrom
|
|
33
|
-
export { HISTORY_CONVERSATIONS } from './conversation.js';
|
|
32
|
+
export { cutName, nameFrom } from './name.js';
|
|
33
|
+
export { HISTORY_CONVERSATIONS, newChat } from './conversation.js';
|
|
34
34
|
export { contextFigure } from './context.js';
|
|
35
|
+
export { runningWords } from './running.js';
|
|
36
|
+
export { turnLine, WORKING } from './parts.js';
|
|
35
37
|
export { changeBatchIdentity } from './identity.js';
|
|
36
38
|
export { paced, ROW_WEIGHT, stepped } from './turn.js';
|
|
37
39
|
export { authoredAt, covered } from './paths.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,eAAe,EACf,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,SAAS,EACT,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,QAAQ,EACR,aAAa,EACb,cAAc,EACd,eAAe,EACf,MAAM,EACN,eAAe,EACf,cAAc,EACd,SAAS,EACT,aAAa,EACb,eAAe,EACf,WAAW,EACX,cAAc,EACd,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,eAAe,EACf,UAAU,EACV,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,SAAS,EACT,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC1F,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,YAAY,EACV,eAAe,EACf,gBAAgB,EA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,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,YAAY,EACV,WAAW,EACX,UAAU,EACV,KAAK,EACL,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,SAAS,GACV,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,YAAY,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACvF,YAAY,EAAE,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,eAAe,EACf,aAAa,EACb,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,SAAS,EACT,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,QAAQ,EACR,aAAa,EACb,cAAc,EACd,eAAe,EACf,MAAM,EACN,eAAe,EACf,cAAc,EACd,SAAS,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