@agentshouse/mdruntime 0.1.0-c112fd663ab59 → 0.1.0-c11a2e8d6df41
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/README.md +21 -19
- package/dist/acceptance.d.ts +0 -3
- package/dist/acceptance.d.ts.map +1 -1
- package/dist/acceptance.js +72 -158
- package/dist/act-lanes.d.ts +30 -0
- package/dist/act-lanes.d.ts.map +1 -0
- package/dist/act-lanes.js +225 -0
- package/dist/actions.d.ts +8 -2
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +174 -75
- package/dist/adapter.d.ts +145 -68
- package/dist/adapter.d.ts.map +1 -1
- package/dist/attached-model.d.ts +0 -1
- package/dist/attached-model.d.ts.map +1 -1
- package/dist/attached-model.js +2 -7
- package/dist/authored.d.ts +88 -0
- package/dist/authored.d.ts.map +1 -0
- package/dist/authored.js +347 -0
- package/dist/binary.d.ts +6 -2
- package/dist/binary.d.ts.map +1 -1
- package/dist/binary.js +10 -3
- package/dist/bootstrap.d.ts +1 -1
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +6 -19
- package/dist/chain.d.ts +1 -1
- package/dist/chain.d.ts.map +1 -1
- package/dist/chain.js +5 -2
- package/dist/change-set.d.ts +4 -0
- package/dist/change-set.d.ts.map +1 -1
- package/dist/change-set.js +6 -0
- package/dist/change.d.ts +6 -2
- package/dist/change.d.ts.map +1 -1
- package/dist/change.js +3 -0
- package/dist/chat-types.d.ts +0 -2
- package/dist/chat-types.d.ts.map +1 -1
- package/dist/chat-types.js +2 -4
- package/dist/client.d.ts +22 -23
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +51 -66
- package/dist/collection.d.ts +27 -4
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +34 -10
- package/dist/column.d.ts +5 -0
- package/dist/column.d.ts.map +1 -0
- package/dist/column.js +9 -0
- package/dist/compile.d.ts +4 -1
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +87 -43
- package/dist/connection.d.ts +1 -1
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +36 -27
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -1
- package/dist/conversation-live.d.ts +28 -15
- package/dist/conversation-live.d.ts.map +1 -1
- package/dist/conversation-live.js +25 -14
- package/dist/conversation-row.d.ts +8 -1
- package/dist/conversation-row.d.ts.map +1 -1
- package/dist/conversation-row.js +20 -7
- package/dist/conversation.d.ts +46 -16
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +334 -239
- package/dist/declaration.d.ts +10 -0
- package/dist/declaration.d.ts.map +1 -0
- package/dist/declaration.js +24 -0
- package/dist/discovery.d.ts +3 -1
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +47 -47
- package/dist/download.d.ts +6 -0
- package/dist/download.d.ts.map +1 -0
- package/dist/download.js +42 -0
- package/dist/durability.d.ts +5 -0
- package/dist/durability.d.ts.map +1 -1
- package/dist/durability.js +7 -0
- package/dist/entry.d.ts +16 -1
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +75 -30
- package/dist/expectation.d.ts +25 -14
- package/dist/expectation.d.ts.map +1 -1
- package/dist/expectation.js +51 -20
- package/dist/failure.d.ts +2 -0
- package/dist/failure.d.ts.map +1 -1
- package/dist/failure.js +6 -1
- package/dist/figures.d.ts.map +1 -1
- package/dist/figures.js +4 -2
- package/dist/file.d.ts +1 -1
- package/dist/file.d.ts.map +1 -1
- package/dist/file.js +3 -2
- package/dist/host.d.ts +24 -4
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +108 -32
- package/dist/house-query.d.ts +24 -0
- package/dist/house-query.d.ts.map +1 -0
- package/dist/house-query.js +82 -0
- package/dist/index.d.ts +23 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +16 -8
- package/dist/install.d.ts +10 -6
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +89 -108
- package/dist/lifecycle.d.ts +2 -2
- package/dist/lifecycle.d.ts.map +1 -1
- package/dist/lifecycle.js +74 -54
- package/dist/listing.d.ts +29 -22
- package/dist/listing.d.ts.map +1 -1
- package/dist/listing.js +71 -79
- package/dist/live.d.ts +19 -3
- package/dist/live.d.ts.map +1 -1
- package/dist/live.js +94 -36
- package/dist/loaded.d.ts +7 -0
- package/dist/loaded.d.ts.map +1 -0
- package/dist/loaded.js +46 -0
- package/dist/locks.d.ts +2 -4
- package/dist/locks.d.ts.map +1 -1
- package/dist/locks.js +10 -38
- package/dist/lost.d.ts.map +1 -1
- package/dist/lost.js +11 -23
- package/dist/media.d.ts +19 -3
- package/dist/media.d.ts.map +1 -1
- package/dist/media.js +167 -33
- package/dist/memory.d.ts +10 -4
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +98 -37
- package/dist/messages.d.ts +17 -6
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +34 -27
- package/dist/modal.d.ts +2 -0
- package/dist/modal.d.ts.map +1 -0
- package/dist/modal.js +11 -0
- package/dist/model.d.ts +4 -3
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +6 -5
- package/dist/models.d.ts +4 -8
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +94 -138
- package/dist/name.d.ts +0 -1
- package/dist/name.d.ts.map +1 -1
- package/dist/name.js +3 -7
- package/dist/observation.d.ts +29 -12
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +206 -69
- package/dist/online.d.ts +7 -0
- package/dist/online.d.ts.map +1 -0
- package/dist/online.js +29 -0
- package/dist/opened.d.ts +1 -1
- package/dist/opened.d.ts.map +1 -1
- package/dist/opened.js +2 -2
- package/dist/opening.d.ts.map +1 -1
- package/dist/opening.js +21 -12
- package/dist/outcome.d.ts +24 -4
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +33 -3
- package/dist/overlay.d.ts +9 -5
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +37 -24
- package/dist/page-metadata.d.ts +8 -0
- package/dist/page-metadata.d.ts.map +1 -0
- package/dist/page-metadata.js +19 -0
- package/dist/parts.d.ts +5 -59
- package/dist/parts.d.ts.map +1 -1
- package/dist/parts.js +32 -122
- package/dist/preparation.d.ts +33 -7
- package/dist/preparation.d.ts.map +1 -1
- package/dist/preparation.js +207 -96
- package/dist/presence.d.ts +58 -0
- package/dist/presence.d.ts.map +1 -0
- package/dist/presence.js +231 -0
- package/dist/queries.d.ts +2 -2
- package/dist/queries.d.ts.map +1 -1
- package/dist/queries.js +136 -78
- package/dist/query.d.ts +2 -2
- package/dist/questions.d.ts +1 -5
- package/dist/questions.d.ts.map +1 -1
- package/dist/questions.js +3 -8
- package/dist/queue.d.ts +40 -0
- package/dist/queue.d.ts.map +1 -0
- package/dist/queue.js +480 -0
- package/dist/reach.d.ts +15 -6
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +182 -38
- package/dist/react.d.ts +11 -5
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +28 -5
- package/dist/readiness.d.ts +20 -4
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +17 -10
- package/dist/reads.d.ts +4 -2
- package/dist/reads.d.ts.map +1 -1
- package/dist/reads.js +9 -4
- package/dist/recovery.d.ts +4 -1
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +31 -8
- package/dist/reference-forms.d.ts +4 -0
- package/dist/reference-forms.d.ts.map +1 -0
- package/dist/reference-forms.js +74 -0
- package/dist/refresh.d.ts +1 -1
- package/dist/refresh.js +6 -6
- package/dist/refusal.d.ts.map +1 -1
- package/dist/refusal.js +2 -4
- package/dist/replica.d.ts +5 -11
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +16 -18
- package/dist/retried.d.ts +30 -0
- package/dist/retried.d.ts.map +1 -0
- package/dist/retried.js +72 -0
- package/dist/room-draft.d.ts +30 -5
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +275 -65
- package/dist/room-drafts.d.ts.map +1 -1
- package/dist/room-drafts.js +11 -6
- package/dist/room-list.d.ts +10 -0
- package/dist/room-list.d.ts.map +1 -0
- package/dist/room-list.js +45 -0
- package/dist/rows.d.ts +11 -2
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +27 -14
- 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 +13 -19
- package/dist/runtime.d.ts.map +1 -1
- package/dist/save.d.ts +43 -90
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +314 -223
- package/dist/saves.d.ts +6 -42
- package/dist/saves.d.ts.map +1 -1
- package/dist/saves.js +176 -718
- package/dist/seed.d.ts.map +1 -1
- package/dist/seed.js +4 -4
- package/dist/shown.d.ts +9 -5
- package/dist/shown.d.ts.map +1 -1
- package/dist/shown.js +93 -57
- package/dist/socket/lanes.d.ts +12 -4
- package/dist/socket/lanes.d.ts.map +1 -1
- package/dist/socket/lanes.js +34 -8
- 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/socket.d.ts +4 -6
- package/dist/socket.d.ts.map +1 -1
- package/dist/socket.js +4 -14
- package/dist/source.d.ts +7 -7
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +15 -2
- package/dist/store/installs.d.ts +2 -2
- package/dist/store/installs.d.ts.map +1 -1
- package/dist/store/installs.js +10 -4
- package/dist/store/readiness.d.ts +5 -4
- package/dist/store/readiness.d.ts.map +1 -1
- package/dist/store/readiness.js +28 -12
- package/dist/store/records.d.ts +24 -7
- package/dist/store/records.d.ts.map +1 -1
- package/dist/store/records.js +67 -24
- package/dist/store/rooms-shown.d.ts +8 -0
- package/dist/store/rooms-shown.d.ts.map +1 -0
- package/dist/store/rooms-shown.js +13 -0
- package/dist/store.d.ts +25 -15
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +50 -18
- package/dist/stored.d.ts +39 -14
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +217 -59
- package/dist/surface.d.ts +14 -8
- package/dist/surface.d.ts.map +1 -1
- package/dist/surface.js +65 -34
- package/dist/sync.d.ts +4 -2
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +127 -102
- package/dist/tables.d.ts +28 -56
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +95 -329
- package/dist/tallies.d.ts.map +1 -1
- package/dist/tallies.js +1 -2
- package/dist/validation.d.ts +2 -0
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +51 -11
- package/dist/wire.d.ts +71 -12
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +30 -14
- package/package.json +4 -3
- package/dist/attempt.d.ts +0 -16
- package/dist/attempt.d.ts.map +0 -1
- package/dist/attempt.js +0 -70
- package/dist/job.d.ts +0 -33
- package/dist/job.d.ts.map +0 -1
- package/dist/job.js +0 -54
- package/dist/log.d.ts +0 -6
- package/dist/log.d.ts.map +0 -1
- package/dist/log.js +0 -14
- package/dist/socket/rooms.d.ts +0 -44
- package/dist/socket/rooms.d.ts.map +0 -1
- package/dist/socket/rooms.js +0 -90
- package/dist/store/fences.d.ts +0 -16
- package/dist/store/fences.d.ts.map +0 -1
- package/dist/store/fences.js +0 -26
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { uncaught } from './failure.js';
|
|
2
|
+
export const ROOM_LIST_TOPIC = 'room-list';
|
|
3
|
+
async function kept(runtime, next) {
|
|
4
|
+
const local = await runtime.store.open();
|
|
5
|
+
const { roomList } = await local.facts(['roomList']);
|
|
6
|
+
const listed = next(roomList);
|
|
7
|
+
if (listed === null || JSON.stringify(listed) === JSON.stringify(roomList))
|
|
8
|
+
return;
|
|
9
|
+
await local.fact('roomList', listed);
|
|
10
|
+
runtime.store.tell(ROOM_LIST_TOPIC, listed);
|
|
11
|
+
}
|
|
12
|
+
function changed(held, change) {
|
|
13
|
+
const named = new Map(change.rooms.map((room) => [room.room_ref, room]));
|
|
14
|
+
const left = new Set(change.left);
|
|
15
|
+
const known = new Set(held.rooms.map((room) => room.room_ref));
|
|
16
|
+
return {
|
|
17
|
+
rooms: [
|
|
18
|
+
...held.rooms.flatMap((room) => left.has(room.room_ref) ? [] : [named.get(room.room_ref) ?? room]),
|
|
19
|
+
...change.rooms.filter((room) => !known.has(room.room_ref)),
|
|
20
|
+
],
|
|
21
|
+
spaces: change.spaces,
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export function roomsListed(runtime, list) {
|
|
25
|
+
if (list === undefined)
|
|
26
|
+
return Promise.resolve();
|
|
27
|
+
return kept(runtime, () => list).catch(uncaught);
|
|
28
|
+
}
|
|
29
|
+
export function roomListChanged(runtime, change) {
|
|
30
|
+
if (change === undefined)
|
|
31
|
+
return Promise.resolve();
|
|
32
|
+
return kept(runtime, (held) => (held === null ? null : changed(held, change))).catch(uncaught);
|
|
33
|
+
}
|
|
34
|
+
export function watchRoomList(runtime, deliver) {
|
|
35
|
+
const { store } = runtime;
|
|
36
|
+
const watcher = store.watch(ROOM_LIST_TOPIC, deliver);
|
|
37
|
+
void store
|
|
38
|
+
.open()
|
|
39
|
+
.then((local) => local.facts(['roomList']))
|
|
40
|
+
.then(({ roomList }) => {
|
|
41
|
+
if (watcher.held())
|
|
42
|
+
deliver(roomList);
|
|
43
|
+
}, uncaught);
|
|
44
|
+
return watcher.stop;
|
|
45
|
+
}
|
package/dist/rows.d.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { type HeldValue } from '@agentshouse/mdmodel';
|
|
1
|
+
import { type Definition, type HeldValue } from '@agentshouse/mdmodel';
|
|
2
2
|
import type { SavedFacts } from './adapter.js';
|
|
3
3
|
import { type Composition } from './collection.js';
|
|
4
|
+
import type { PlanReach } from './query.js';
|
|
4
5
|
type LinkKind = 'field' | 'link';
|
|
5
6
|
type HeldLink = {
|
|
6
7
|
readonly kind: LinkKind;
|
|
7
8
|
readonly keys: string;
|
|
8
9
|
readonly places: string;
|
|
10
|
+
readonly handle: string | null;
|
|
9
11
|
readonly target: string;
|
|
10
12
|
readonly field: string;
|
|
11
13
|
};
|
|
12
14
|
export type Described = {
|
|
13
15
|
readonly type: string | null;
|
|
14
16
|
readonly declared: string | null;
|
|
15
|
-
readonly queried: boolean;
|
|
16
17
|
readonly folder: string;
|
|
17
18
|
readonly fields: string | null;
|
|
18
19
|
readonly links: string | null;
|
|
@@ -22,18 +23,26 @@ export type Held = {
|
|
|
22
23
|
readonly fields: Readonly<Record<string, unknown>> | null;
|
|
23
24
|
readonly links: readonly string[];
|
|
24
25
|
};
|
|
26
|
+
export type Sought = {
|
|
27
|
+
readonly type: string;
|
|
28
|
+
readonly field: string;
|
|
29
|
+
readonly value: string;
|
|
30
|
+
};
|
|
25
31
|
export type Derived = {
|
|
26
32
|
readonly values: readonly HeldValue[];
|
|
27
33
|
readonly links: readonly HeldLink[];
|
|
34
|
+
readonly unique: readonly Sought[];
|
|
28
35
|
};
|
|
29
36
|
export declare function documentKey(room: string, path: string): string;
|
|
30
37
|
export declare function roomOfKey(key: string): string;
|
|
38
|
+
export declare function roomsOfReach(reach: PlanReach): ReadonlySet<string>;
|
|
31
39
|
export declare function pathOfKey(key: string): string;
|
|
32
40
|
export declare function markdownPath(path: string): boolean;
|
|
33
41
|
export declare function folderOf(path: string): string;
|
|
34
42
|
export declare function writtenFacts(path: string, content: string, composition: Composition): SavedFacts | null;
|
|
35
43
|
export declare function described(path: string, content: string | null, facts: SavedFacts | null): Described;
|
|
36
44
|
export declare function heldOf(path: string, content: string | null, facts: SavedFacts | null): Held;
|
|
45
|
+
export declare function uniqueValues(type: string, fields: Readonly<Record<string, unknown>>, definition: Definition | undefined): Sought[];
|
|
37
46
|
export declare function derived(path: string, held: Held, composition: Composition): Derived;
|
|
38
47
|
export {};
|
|
39
48
|
//# sourceMappingURL=rows.d.ts.map
|
package/dist/rows.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rows.d.ts","sourceRoot":"","sources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AAG,IAAI,CAK3F;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EACzC,UAAU,EAAE,UAAU,GAAG,SAAS,GACjC,MAAM,EAAE,CAMV;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,WAAW,GAAG,OAAO,CAiBnF"}
|
package/dist/rows.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { byCodePoint, documentFacts, indexed, parse } from '@agentshouse/mdmodel';
|
|
2
|
-
import { governing } from './collection.js';
|
|
3
|
-
import { definitionOf } from './model.js';
|
|
1
|
+
import { byCodePoint, documentFacts, fieldKey, indexed, parse, } from '@agentshouse/mdmodel';
|
|
2
|
+
import { definitionsAt, governing } from './collection.js';
|
|
4
3
|
function keyOf(...parts) {
|
|
5
4
|
return `${parts.join('\u0000')}\u0000`;
|
|
6
5
|
}
|
|
@@ -10,11 +9,15 @@ export function documentKey(room, path) {
|
|
|
10
9
|
export function roomOfKey(key) {
|
|
11
10
|
return key.split('\u0000')[1];
|
|
12
11
|
}
|
|
12
|
+
export function roomsOfReach(reach) {
|
|
13
|
+
return new Set([...reach.rooms, ...reach.documents.map(roomOfKey)]);
|
|
14
|
+
}
|
|
13
15
|
export function pathOfKey(key) {
|
|
14
16
|
return key.split('\u0000')[2];
|
|
15
17
|
}
|
|
18
|
+
const MARKDOWN = /\.md$/iu;
|
|
16
19
|
export function markdownPath(path) {
|
|
17
|
-
return
|
|
20
|
+
return MARKDOWN.test(path);
|
|
18
21
|
}
|
|
19
22
|
export function folderOf(path) {
|
|
20
23
|
return path.slice(0, Math.max(path.lastIndexOf('/'), 0));
|
|
@@ -29,7 +32,7 @@ function fieldsText(fields) {
|
|
|
29
32
|
}
|
|
30
33
|
export function writtenFacts(path, content, composition) {
|
|
31
34
|
const model = governing(composition, path);
|
|
32
|
-
const facts = documentFacts(path, parse(content, path), {
|
|
35
|
+
const facts = documentFacts(path, parse(content, path, definitionsAt(composition, path)), {
|
|
33
36
|
types: model.status === 'unavailable' ? {} : model.types,
|
|
34
37
|
});
|
|
35
38
|
return facts === null
|
|
@@ -39,17 +42,14 @@ export function writtenFacts(path, content, composition) {
|
|
|
39
42
|
export function described(path, content, facts) {
|
|
40
43
|
const folder = folderOf(path);
|
|
41
44
|
const unread = { type: null, fields: null, links: null, folder };
|
|
42
|
-
if (content === null)
|
|
43
|
-
return { ...unread, declared: null
|
|
44
|
-
if (facts === null)
|
|
45
|
-
return { ...unread, declared: null, queried: !markdownPath(path) };
|
|
45
|
+
if (content === null || facts === null)
|
|
46
|
+
return { ...unread, declared: null };
|
|
46
47
|
const links = JSON.stringify(facts.links);
|
|
47
48
|
if (!markdownPath(path))
|
|
48
|
-
return { ...unread, declared: facts.type,
|
|
49
|
+
return { ...unread, declared: facts.type, links };
|
|
49
50
|
return {
|
|
50
51
|
type: facts.type,
|
|
51
52
|
declared: facts.type,
|
|
52
|
-
queried: true,
|
|
53
53
|
folder,
|
|
54
54
|
fields: fieldsText(facts.fields),
|
|
55
55
|
links,
|
|
@@ -62,17 +62,30 @@ export function heldOf(path, content, facts) {
|
|
|
62
62
|
? { type: facts.type, fields: facts.fields, links: facts.links }
|
|
63
63
|
: { type: null, fields: null, links: facts.links };
|
|
64
64
|
}
|
|
65
|
+
export function uniqueValues(type, fields, definition) {
|
|
66
|
+
if (definition === undefined)
|
|
67
|
+
return [];
|
|
68
|
+
return (definition.unique ?? []).flatMap((field) => {
|
|
69
|
+
const { key, unique } = fieldKey(definition, fields, field);
|
|
70
|
+
return unique ? [{ type, field, value: key }] : [];
|
|
71
|
+
});
|
|
72
|
+
}
|
|
65
73
|
export function derived(path, held, composition) {
|
|
66
74
|
const stored = held.links.map((target) => ({
|
|
67
75
|
kind: 'link',
|
|
68
76
|
keys: '',
|
|
69
77
|
places: '',
|
|
78
|
+
handle: null,
|
|
70
79
|
target,
|
|
71
80
|
field: '',
|
|
72
81
|
}));
|
|
73
82
|
if (held.type === null || held.fields === null)
|
|
74
|
-
return { values: [], links: stored };
|
|
75
|
-
const definition =
|
|
83
|
+
return { values: [], links: stored, unique: [] };
|
|
84
|
+
const definition = definitionsAt(composition, path)(held.type);
|
|
76
85
|
const { values, links: fields } = indexed(path, held.fields, definition);
|
|
77
|
-
return {
|
|
86
|
+
return {
|
|
87
|
+
values,
|
|
88
|
+
links: [...fields, ...stored],
|
|
89
|
+
unique: uniqueValues(held.type, held.fields, definition),
|
|
90
|
+
};
|
|
78
91
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"running.d.ts","sourceRoot":"","sources":["../src/running.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE,KAAK,OAAO,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAU/C,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,MAAM,EAAE,CAE3E"}
|
package/dist/running.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const NOUNS = {
|
|
2
|
+
subagent: ['sub-agent', 'sub-agents'],
|
|
3
|
+
shell: ['command', 'commands'],
|
|
4
|
+
task: ['task', 'tasks'],
|
|
5
|
+
monitor: ['monitor', 'monitors'],
|
|
6
|
+
schedule: ['schedule', 'schedules'],
|
|
7
|
+
};
|
|
8
|
+
export function runningWords(running) {
|
|
9
|
+
return running.map(({ kind, count }) => `${count} ${NOUNS[kind][count === 1 ? 0 : 1]}`);
|
|
10
|
+
}
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,43 +1,37 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { ChangeSet } from './change-set.js';
|
|
3
|
-
import type { ChangeBatch } from './change.js';
|
|
1
|
+
import type { Discovery, RoomDeclaration, TypedPath } from './adapter.js';
|
|
4
2
|
import type { RuntimeShell } from './durability.js';
|
|
5
3
|
import type { LiveConversations } from './conversation-live.js';
|
|
4
|
+
import type { WriteRule } from './declaration.js';
|
|
6
5
|
import type { FiguresRead } from './figures.js';
|
|
7
|
-
import type { Withheld } from './install.js';
|
|
8
6
|
import type { LiveQueries } from './live.js';
|
|
9
|
-
import type { Log } from './log.js';
|
|
10
7
|
import type { ModelState } from './model.js';
|
|
8
|
+
import type { Presence } from './presence.js';
|
|
11
9
|
import type { ReadAnswers } from './reads.js';
|
|
12
10
|
import type { Recovery } from './recovery.js';
|
|
13
|
-
import type {
|
|
14
|
-
import type { RuntimeSocket
|
|
15
|
-
import type {
|
|
16
|
-
import type { Settling } from './saves.js';
|
|
17
|
-
import type { HeldCover, RuntimeStore, Store, Work } from './store.js';
|
|
11
|
+
import type { Retries } from './retried.js';
|
|
12
|
+
import type { RuntimeSocket } from './socket.js';
|
|
13
|
+
import type { HeldCover, Store } from './store.js';
|
|
18
14
|
import type { schemaTypes } from './attached-model.js';
|
|
19
15
|
export type Runtime = {
|
|
20
16
|
readonly store: Store;
|
|
21
17
|
readonly socket: RuntimeSocket;
|
|
22
|
-
readonly
|
|
18
|
+
readonly presence: Presence;
|
|
23
19
|
readonly recovery: Recovery;
|
|
20
|
+
readonly retries: Retries;
|
|
24
21
|
readonly shell: RuntimeShell;
|
|
25
22
|
readonly localSaves: boolean;
|
|
26
23
|
readonly roomTypes: Parameters<typeof schemaTypes>[1];
|
|
27
24
|
readonly builtIn: ModelState;
|
|
28
25
|
readonly typedPaths: readonly TypedPath[];
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
26
|
+
readonly renamedActions: ReadonlyMap<string, string>;
|
|
27
|
+
readonly rewrittenInputs: ReadonlyMap<string, (input: unknown) => unknown>;
|
|
28
|
+
readonly writeRule: (declaration: RoomDeclaration) => WriteRule;
|
|
31
29
|
readonly build: string;
|
|
32
30
|
readonly conversations: LiveConversations;
|
|
33
31
|
readonly liveQueries: LiveQueries<HeldCover>;
|
|
34
32
|
readonly figures: FiguresRead;
|
|
35
33
|
readonly lastAnswers: ReadAnswers;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
submitLater(locator: string): void;
|
|
39
|
-
unpair(local: RuntimeStore): Promise<void>;
|
|
40
|
-
advanced(room: DiscoveredRoom, local: RuntimeStore, authorized: Authorization): Promise<Withheld | null>;
|
|
41
|
-
withhold(withheld: Withheld, room: DiscoveredRoom, local: RuntimeStore, progress: CycleProgress): Promise<void>;
|
|
34
|
+
readonly discover: () => Promise<void>;
|
|
35
|
+
readonly adopt: (unstored: Discovery) => Promise<void>;
|
|
42
36
|
};
|
|
43
37
|
//# sourceMappingURL=runtime.d.ts.map
|
package/dist/runtime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../src/runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,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,WAAW,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACxD,CAAC"}
|
package/dist/save.d.ts
CHANGED
|
@@ -1,107 +1,60 @@
|
|
|
1
1
|
import { type Validation } from '@agentshouse/mdmodel';
|
|
2
|
-
import type {
|
|
3
|
-
import { type
|
|
2
|
+
import type { ProviderLimit } from './adapter.js';
|
|
3
|
+
import { type ChangeBatch, type WrittenBy } from './change.js';
|
|
4
4
|
import { type Composition } from './collection.js';
|
|
5
|
+
import type { WriteRule } from './declaration.js';
|
|
5
6
|
import { type Layer } from './overlay.js';
|
|
6
|
-
import type { VisibleLayer } from './replica.js';
|
|
7
|
-
import type
|
|
7
|
+
import type { ReplicaRecord, VisibleLayer } from './replica.js';
|
|
8
|
+
import { type ChangedPart, type RoomDraftRecord, type SavedDraft } from './room-draft.js';
|
|
8
9
|
export type SaveRefusal = {
|
|
9
10
|
code: string;
|
|
10
11
|
retryable: boolean;
|
|
12
|
+
message?: string;
|
|
11
13
|
file?: string;
|
|
12
14
|
location?: string;
|
|
15
|
+
line?: number;
|
|
13
16
|
referrers?: readonly string[];
|
|
14
17
|
parts?: readonly ChangedPart[];
|
|
15
18
|
};
|
|
16
|
-
export type
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
authoredPaths?: readonly string[];
|
|
23
|
-
providerLimits: readonly ProviderLimit[];
|
|
24
|
-
pathRule: PathRule;
|
|
25
|
-
visible: VisibleLayer;
|
|
26
|
-
folders: ReadonlySet<string>;
|
|
27
|
-
handle: string;
|
|
28
|
-
changes: readonly Change[];
|
|
29
|
-
bases: readonly Precondition[];
|
|
30
|
-
queued?: ReadonlySet<string>;
|
|
31
|
-
writtenBy?: WrittenBy;
|
|
32
|
-
unmodeled: boolean;
|
|
33
|
-
validate: Validator;
|
|
19
|
+
export type SaveAsk = {
|
|
20
|
+
readonly saved: readonly SavedDraft[];
|
|
21
|
+
readonly consumed: ReadonlySet<string>;
|
|
22
|
+
readonly writtenBy?: WrittenBy;
|
|
23
|
+
readonly local: boolean;
|
|
24
|
+
readonly providerLimits: readonly ProviderLimit[];
|
|
34
25
|
};
|
|
35
|
-
export type
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
26
|
+
export type SavingRoom = {
|
|
27
|
+
readonly record: ReplicaRecord;
|
|
28
|
+
readonly rule: WriteRule;
|
|
29
|
+
readonly composition: Composition;
|
|
30
|
+
readonly queue: readonly ChangeBatch[];
|
|
31
|
+
readonly changeable: ReadonlySet<string>;
|
|
32
|
+
readonly saved: ReadonlyMap<string, readonly SavedDraft[]>;
|
|
33
|
+
readonly replay: (queue: readonly ChangeBatch[]) => Generator<number, VisibleLayer, void>;
|
|
34
|
+
readonly folders: ReadonlySet<string>;
|
|
35
|
+
readonly modelled: boolean;
|
|
36
|
+
readonly drafts: ReadonlyMap<string, RoomDraftRecord>;
|
|
37
|
+
readonly validate: Validator;
|
|
39
38
|
};
|
|
40
|
-
export type
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
export declare function rewriting(batch: ChangeBatch, locator: string): boolean;
|
|
47
|
-
export declare function effectiveIn(batch: ChangeBatch, locator: string, visible: VisibleLayer): Generator<number, ChangeBatch, void>;
|
|
48
|
-
export declare function queuedDocuments(queue: readonly ChangeBatch[]): ReadonlySet<string>;
|
|
49
|
-
export type Requeued = {
|
|
50
|
-
kind: 'requeued';
|
|
51
|
-
queue: readonly ChangeBatch[];
|
|
52
|
-
changes: readonly Change[];
|
|
53
|
-
queued: ReadonlySet<string>;
|
|
54
|
-
withdrawn: ReadonlyMap<string, ChangeBatch | null>;
|
|
55
|
-
owners: ReadonlySet<string>;
|
|
56
|
-
} | {
|
|
57
|
-
kind: 'refused';
|
|
58
|
-
refusal: SaveRefusal;
|
|
39
|
+
export type PlannedRoom = {
|
|
40
|
+
readonly locator: string;
|
|
41
|
+
readonly queue: readonly ChangeBatch[];
|
|
42
|
+
readonly saved: ReadonlyMap<string, readonly SavedDraft[]>;
|
|
43
|
+
readonly consumed: readonly string[];
|
|
44
|
+
readonly carried: readonly RoomDraftRecord[];
|
|
59
45
|
};
|
|
60
|
-
export type
|
|
61
|
-
kind: '
|
|
62
|
-
|
|
63
|
-
queue: readonly ChangeBatch[];
|
|
46
|
+
export type SavePlan = {
|
|
47
|
+
readonly kind: 'refused';
|
|
48
|
+
readonly refusal: SaveRefusal;
|
|
64
49
|
} | {
|
|
65
|
-
kind: '
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
type VisibleOver = (queue: readonly ChangeBatch[]) => Generator<number, VisibleLayer, void>;
|
|
69
|
-
export declare function requeuing(queue: readonly ChangeBatch[], changes: readonly Change[], visible: VisibleLayer, changeable: (batch: ChangeBatch) => boolean, state: VisibleOver): Generator<number, Requeued, void>;
|
|
70
|
-
export declare function joined(queue: readonly ChangeBatch[], owner: ChangeBatch, extra: ChangeBatch): Joining;
|
|
71
|
-
export declare function limiting(queue: readonly ChangeBatch[], batch: ChangeBatch, limits: readonly ProviderLimit[], state: VisibleOver): Generator<number, SaveRefusal | null, void>;
|
|
72
|
-
export declare const MOVE_DOCUMENTS = "move-documents";
|
|
73
|
-
export type MoveSide = {
|
|
74
|
-
room: string;
|
|
75
|
-
handle: string;
|
|
76
|
-
baseRoomVersion: string;
|
|
77
|
-
composition: Composition;
|
|
78
|
-
operations: OperationScopes;
|
|
79
|
-
providerOwnedPaths: readonly string[];
|
|
80
|
-
authoredPaths?: readonly string[];
|
|
81
|
-
visible: VisibleLayer;
|
|
82
|
-
folders: ReadonlySet<string>;
|
|
83
|
-
queued: ReadonlySet<string>;
|
|
84
|
-
unmodeled: boolean;
|
|
85
|
-
validate: Validator;
|
|
50
|
+
readonly kind: 'planned';
|
|
51
|
+
readonly identifier: string;
|
|
52
|
+
readonly rooms: readonly PlannedRoom[];
|
|
86
53
|
};
|
|
87
|
-
export type
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}[];
|
|
94
|
-
providerLimits: readonly ProviderLimit[];
|
|
95
|
-
pathRule: PathRule;
|
|
96
|
-
local: boolean;
|
|
97
|
-
writtenBy?: WrittenBy;
|
|
98
|
-
};
|
|
99
|
-
export type MoveResult = {
|
|
100
|
-
kind: 'moved';
|
|
101
|
-
leaving: ChangeBatch;
|
|
102
|
-
arriving: ChangeBatch;
|
|
103
|
-
} | Refusing;
|
|
104
|
-
export declare function buildMove(input: MoveInput): Promise<MoveResult>;
|
|
105
|
-
export declare function buildBatch(input: SaveInput): Promise<BatchResult>;
|
|
106
|
-
export {};
|
|
54
|
+
export type Validator = (resulting: Layer, touched: readonly string[]) => Promise<Validation>;
|
|
55
|
+
export declare function providerRewritten(batch: ChangeBatch, visible: VisibleLayer): Generator<number, ChangeBatch, void>;
|
|
56
|
+
export declare function rewriting(batch: ChangeBatch, locator: string): boolean;
|
|
57
|
+
export declare function effectiveIn(batch: ChangeBatch, locator: string, visible: VisibleLayer): Generator<number, ChangeBatch, void>;
|
|
58
|
+
export declare function destination(locator: string, saved: readonly SavedDraft[]): string | null;
|
|
59
|
+
export declare function planSave(ask: SaveAsk, room: SavingRoom, into?: SavingRoom): Promise<SavePlan>;
|
|
107
60
|
//# sourceMappingURL=save.d.ts.map
|
package/dist/save.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save.d.ts","sourceRoot":"","sources":["../src/save.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"save.d.ts","sourceRoot":"","sources":["../src/save.ts"],"names":[],"mappings":"AACA,OAAO,EAqBL,KAAK,UAAU,EAChB,MAAM,sBAAsB,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