@agentshouse/mdruntime 0.1.0-cd50a4607cb7d → 0.1.0-cd76160689224
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 +118 -115
- package/dist/acquisition.d.ts +14 -0
- package/dist/acquisition.d.ts.map +1 -0
- package/dist/acquisition.js +24 -0
- package/dist/adapter.d.ts +25 -7
- package/dist/adapter.d.ts.map +1 -1
- package/dist/bootstrap.d.ts +2 -1
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +4 -0
- package/dist/change-set.d.ts.map +1 -1
- package/dist/change-set.js +2 -1
- package/dist/chat/kit.d.ts +2 -1
- package/dist/chat/kit.d.ts.map +1 -1
- package/dist/chat/kit.js +3 -3
- package/dist/chat/list.d.ts +2 -1
- package/dist/chat/list.d.ts.map +1 -1
- package/dist/chat/list.js +4 -3
- package/dist/chat/messages.d.ts +1 -0
- package/dist/chat/messages.d.ts.map +1 -1
- package/dist/chat/messages.js +4 -0
- package/dist/chat/provider.d.ts +1 -1
- package/dist/chat/provider.d.ts.map +1 -1
- package/dist/chat/provider.js +26 -17
- package/dist/chat/ready.d.ts +1 -0
- package/dist/chat/ready.d.ts.map +1 -1
- package/dist/chat/ready.js +2 -2
- package/dist/client.d.ts +7 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +12 -2
- package/dist/connection.d.ts +18 -3
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +696 -79
- package/dist/conversation.d.ts +3 -0
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +115 -17
- package/dist/durability.d.ts +7 -1
- package/dist/durability.d.ts.map +1 -1
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +1 -1
- package/dist/host.d.ts +15 -2
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +83 -8
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/memory.d.ts +8 -2
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +26 -6
- package/dist/model.d.ts +3 -2
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +1 -1
- package/dist/outcome.d.ts +8 -2
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +3 -0
- package/dist/overlay.d.ts +1 -0
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +27 -3
- package/dist/query.d.ts +8 -1
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +8 -2
- package/dist/reach.d.ts +6 -3
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +17 -2
- package/dist/react.d.ts +4 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +6 -4
- package/dist/read-side.d.ts.map +1 -1
- package/dist/read-side.js +3 -0
- package/dist/readiness.d.ts +53 -0
- package/dist/readiness.d.ts.map +1 -0
- package/dist/readiness.js +33 -0
- package/dist/reads.d.ts +11 -0
- package/dist/reads.d.ts.map +1 -0
- package/dist/reads.js +98 -0
- package/dist/refresh.d.ts +4 -4
- package/dist/refresh.d.ts.map +1 -1
- package/dist/refresh.js +6 -0
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +11 -2
- package/dist/room-draft.d.ts +13 -1
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +2 -2
- package/dist/rows.d.ts +2 -1
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +3 -1
- package/dist/search.d.ts +14 -6
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +33 -12
- package/dist/seed.d.ts +16 -0
- package/dist/seed.d.ts.map +1 -0
- package/dist/seed.js +61 -0
- package/dist/store.d.ts +19 -3
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +59 -14
- package/dist/wire.d.ts +140 -32
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +49 -31
- package/package.json +2 -2
package/dist/conversation.d.ts
CHANGED
|
@@ -86,8 +86,10 @@ export type ConversationStore = {
|
|
|
86
86
|
catchUp(progress: CycleProgress): Promise<void>;
|
|
87
87
|
resend(progress: CycleProgress): Promise<void>;
|
|
88
88
|
current(): boolean;
|
|
89
|
+
known(): boolean;
|
|
89
90
|
reconnected(): void;
|
|
90
91
|
reopened(): void;
|
|
92
|
+
lost(): void;
|
|
91
93
|
watch(conversation: string, options: ConversationOptions, deliver: (view: ConversationView) => void): () => void;
|
|
92
94
|
watchList(deliver: (entries: readonly ConversationEntry[]) => void): () => void;
|
|
93
95
|
watchAgents(deliver: (agents: readonly ConversationAgent[]) => void): () => void;
|
|
@@ -99,5 +101,6 @@ export type ConversationStore = {
|
|
|
99
101
|
};
|
|
100
102
|
export declare function unheldView(conversation: string): ConversationView;
|
|
101
103
|
export declare const SESSION_STARTED = "Session started";
|
|
104
|
+
export declare function newChat(agent: string): string;
|
|
102
105
|
export declare function createConversationStore(deps: ConversationDependencies): ConversationStore;
|
|
103
106
|
//# sourceMappingURL=conversation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../src/conversation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EAEjB,mBAAmB,EACnB,kBAAkB,EAElB,cAAc,EACd,aAAa,EACb,WAAW,EAEZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAyB,KAAK,SAAS,EAAsB,MAAM,iBAAiB,CAAC;AAE5F,OAAO,EAAgB,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAE7D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAW,KAAK,UAAU,EAAE,KAAK,OAAO,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EA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SESSION_STARTED = 'Session started';
|
|
26
|
+
const NEW_CHAT = 'new:';
|
|
27
|
+
export function newChat(agent) {
|
|
28
|
+
return `${NEW_CHAT}${agent}`;
|
|
29
|
+
}
|
|
30
|
+
function creationOf(input) {
|
|
31
|
+
if (typeof input !== 'object' || input === null)
|
|
32
|
+
return null;
|
|
33
|
+
const { agent_id: agent, operation_id: operation } = input;
|
|
34
|
+
return typeof agent === 'string' && typeof operation === 'string' ? { agent, operation } : null;
|
|
35
|
+
}
|
|
26
36
|
function startedTurn(turn, operation) {
|
|
27
37
|
if (operation.op === 'begin')
|
|
28
38
|
return { turn, started: operation.at, parts: [], context: null };
|
|
@@ -146,14 +156,14 @@ function historyPages(result) {
|
|
|
146
156
|
}
|
|
147
157
|
return pages;
|
|
148
158
|
}
|
|
149
|
-
function
|
|
159
|
+
function answered(result, field) {
|
|
150
160
|
if (result.kind !== 'action')
|
|
151
161
|
return null;
|
|
152
162
|
const answer = result.result;
|
|
153
163
|
if (typeof answer !== 'object' || answer === null)
|
|
154
164
|
return null;
|
|
155
|
-
const
|
|
156
|
-
return typeof
|
|
165
|
+
const value = answer[field];
|
|
166
|
+
return typeof value === 'string' ? value : null;
|
|
157
167
|
}
|
|
158
168
|
function limitOf(options) {
|
|
159
169
|
const { limit } = options;
|
|
@@ -169,7 +179,13 @@ function unwritten(draft) {
|
|
|
169
179
|
return draft.text === '' && draft.files.length === 0;
|
|
170
180
|
}
|
|
171
181
|
function pending(draft) {
|
|
172
|
-
return
|
|
182
|
+
return {
|
|
183
|
+
...(draft.submitted === undefined ? {} : { submitted: draft.submitted }),
|
|
184
|
+
...(draft.moves === undefined ? {} : { moves: draft.moves }),
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
function empty(draft) {
|
|
188
|
+
return unwritten(draft) && draft.submitted === undefined && draft.moves === undefined;
|
|
173
189
|
}
|
|
174
190
|
function withSubmitted(draft, submitted) {
|
|
175
191
|
const { submitted: _held, ...unsent } = draft;
|
|
@@ -190,10 +206,12 @@ export function createConversationStore(deps) {
|
|
|
190
206
|
const drafts = new Map();
|
|
191
207
|
const sending = new Map();
|
|
192
208
|
const behind = new Set();
|
|
209
|
+
const catching = new Map();
|
|
193
210
|
const gaps = new Map();
|
|
194
211
|
const lives = new Map();
|
|
195
212
|
const views = new Map();
|
|
196
213
|
const listing = new Map();
|
|
214
|
+
const creations = new Set();
|
|
197
215
|
const listWatchers = new Set();
|
|
198
216
|
let listKnown = false;
|
|
199
217
|
const agentWatchers = new Set();
|
|
@@ -332,6 +350,12 @@ export function createConversationStore(deps) {
|
|
|
332
350
|
if (named)
|
|
333
351
|
emitList();
|
|
334
352
|
emitAgents();
|
|
353
|
+
const ended = [...drafts.keys()].filter(retiredChat);
|
|
354
|
+
if (ended.length > 0)
|
|
355
|
+
await remove(ended);
|
|
356
|
+
}
|
|
357
|
+
function retiredChat(conversation) {
|
|
358
|
+
return (conversation.startsWith(NEW_CHAT) && retiredAgents.has(conversation.slice(NEW_CHAT.length)));
|
|
335
359
|
}
|
|
336
360
|
function agentsReady() {
|
|
337
361
|
agentsRead ??= readAgents().catch(() => {
|
|
@@ -419,7 +443,7 @@ export function createConversationStore(deps) {
|
|
|
419
443
|
deps.publish(conversationChangeSet(changesOf(conversation, [message]), [conversation]));
|
|
420
444
|
});
|
|
421
445
|
}
|
|
422
|
-
async function readHistories(conversations) {
|
|
446
|
+
async function readHistories(conversations, ended) {
|
|
423
447
|
const generations = new Map(conversations.map((one) => [one, gaps.get(one) ?? 0]));
|
|
424
448
|
let asking = conversations.map((conversation) => ({
|
|
425
449
|
conversation,
|
|
@@ -445,10 +469,33 @@ export function createConversationStore(deps) {
|
|
|
445
469
|
following.push({ conversation: page.conversation, after: page.next });
|
|
446
470
|
}
|
|
447
471
|
}
|
|
472
|
+
for (const { conversation } of asking) {
|
|
473
|
+
if (!following.some((next) => next.conversation === conversation))
|
|
474
|
+
ended(conversation);
|
|
475
|
+
}
|
|
448
476
|
asking = following;
|
|
449
477
|
}
|
|
450
478
|
return null;
|
|
451
479
|
}
|
|
480
|
+
function caughtUp(conversations) {
|
|
481
|
+
const ends = new Map();
|
|
482
|
+
for (const conversation of conversations) {
|
|
483
|
+
const held = new Promise((end) => ends.set(conversation, end));
|
|
484
|
+
catching.set(conversation, held);
|
|
485
|
+
void held.then(() => {
|
|
486
|
+
if (catching.get(conversation) === held)
|
|
487
|
+
catching.delete(conversation);
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
const ended = (conversation) => ends.get(conversation)?.();
|
|
491
|
+
const read = readHistories(conversations, ended);
|
|
492
|
+
const endAll = () => {
|
|
493
|
+
for (const conversation of conversations)
|
|
494
|
+
ended(conversation);
|
|
495
|
+
};
|
|
496
|
+
read.then(endAll, endAll);
|
|
497
|
+
return read;
|
|
498
|
+
}
|
|
452
499
|
function keepPage(conversation, arriving, from, next, generation) {
|
|
453
500
|
return deps.durably(async (local) => {
|
|
454
501
|
if (!replicated.has(conversation))
|
|
@@ -516,12 +563,12 @@ export function createConversationStore(deps) {
|
|
|
516
563
|
emit(conversation);
|
|
517
564
|
}
|
|
518
565
|
async function kept(local, conversation, following) {
|
|
519
|
-
if (following === null || (
|
|
566
|
+
if (following === null || empty(following)) {
|
|
520
567
|
await local.dropChatDraft(conversation);
|
|
521
568
|
drafts.delete(conversation);
|
|
522
569
|
}
|
|
523
570
|
else {
|
|
524
|
-
await local.
|
|
571
|
+
await local.keepChatDrafts([following]);
|
|
525
572
|
drafts.set(conversation, following);
|
|
526
573
|
}
|
|
527
574
|
}
|
|
@@ -534,6 +581,29 @@ export function createConversationStore(deps) {
|
|
|
534
581
|
await kept(local, conversation, withSubmitted(held, left));
|
|
535
582
|
return true;
|
|
536
583
|
}
|
|
584
|
+
function moved(agent, operation, to) {
|
|
585
|
+
const from = newChat(agent);
|
|
586
|
+
return deps.durably(async (local) => {
|
|
587
|
+
const held = drafts.get(from);
|
|
588
|
+
const earlier = (held?.moves ?? []).filter((one) => !deps.expired(one));
|
|
589
|
+
if (earlier.includes(operation))
|
|
590
|
+
return;
|
|
591
|
+
const blank = {
|
|
592
|
+
conversation: from,
|
|
593
|
+
text: '',
|
|
594
|
+
files: [],
|
|
595
|
+
revision: chatDraftRevision(),
|
|
596
|
+
};
|
|
597
|
+
const { moves: _answered, ...unsent } = held ?? blank;
|
|
598
|
+
const taken = drafts.has(to) || empty(unsent) ? [] : [{ ...unsent, conversation: to }];
|
|
599
|
+
const left = { ...(taken.length === 0 ? unsent : blank), moves: [...earlier, operation] };
|
|
600
|
+
await local.keepChatDrafts([left, ...taken]);
|
|
601
|
+
drafts.set(from, left);
|
|
602
|
+
for (const one of taken)
|
|
603
|
+
drafts.set(to, one);
|
|
604
|
+
deps.publish(conversationChangeSet([], [from, to]));
|
|
605
|
+
});
|
|
606
|
+
}
|
|
537
607
|
function withDraft(conversation, next) {
|
|
538
608
|
return deps.durably(async (local) => {
|
|
539
609
|
const following = await next(drafts.get(conversation), local);
|
|
@@ -592,7 +662,7 @@ export function createConversationStore(deps) {
|
|
|
592
662
|
deps.unanswered();
|
|
593
663
|
return result;
|
|
594
664
|
}
|
|
595
|
-
const turn =
|
|
665
|
+
const turn = answered(result, 'turn');
|
|
596
666
|
await withDraft(conversation, async (current, local) => {
|
|
597
667
|
const held = current?.submitted?.find((one) => one.operation === submission.operation);
|
|
598
668
|
if (current === undefined || held === undefined || held.turn !== null)
|
|
@@ -624,8 +694,17 @@ export function createConversationStore(deps) {
|
|
|
624
694
|
const limit = limitOf(options);
|
|
625
695
|
return deps.durably(async (local) => structuredClone(viewOf(conversation, await local.messageWindow(conversation, limit))));
|
|
626
696
|
},
|
|
627
|
-
create(input) {
|
|
628
|
-
|
|
697
|
+
async create(input) {
|
|
698
|
+
const result = await deps.call('conversation.create', input);
|
|
699
|
+
const conversation = answered(result, 'conversation');
|
|
700
|
+
if (conversation === null)
|
|
701
|
+
return result;
|
|
702
|
+
if (!listing.has(conversation))
|
|
703
|
+
creations.add(conversation);
|
|
704
|
+
const creation = creationOf(input);
|
|
705
|
+
if (creation !== null)
|
|
706
|
+
await moved(creation.agent, creation.operation, conversation);
|
|
707
|
+
return result;
|
|
629
708
|
},
|
|
630
709
|
async send(conversation, operation = changeBatchIdentity(), draft) {
|
|
631
710
|
if (deps.online()) {
|
|
@@ -674,7 +753,7 @@ export function createConversationStore(deps) {
|
|
|
674
753
|
text: draft.text,
|
|
675
754
|
files: [...draft.files],
|
|
676
755
|
revision,
|
|
677
|
-
...(current
|
|
756
|
+
...(current === undefined ? {} : pending(current)),
|
|
678
757
|
}));
|
|
679
758
|
},
|
|
680
759
|
discard(conversation) {
|
|
@@ -713,7 +792,9 @@ export function createConversationStore(deps) {
|
|
|
713
792
|
const named = new Set(listing.keys());
|
|
714
793
|
const leaving = [
|
|
715
794
|
...new Set([...replicated, ...stored, ...reads.keys(), ...drafts.keys()]),
|
|
716
|
-
].filter((conversation) => !named.has(conversation)
|
|
795
|
+
].filter((conversation) => !named.has(conversation) &&
|
|
796
|
+
!creations.has(conversation) &&
|
|
797
|
+
(!conversation.startsWith(NEW_CHAT) || retiredChat(conversation)));
|
|
717
798
|
for (const conversation of named) {
|
|
718
799
|
if (!replicated.has(conversation))
|
|
719
800
|
behind.add(conversation);
|
|
@@ -724,12 +805,20 @@ export function createConversationStore(deps) {
|
|
|
724
805
|
await remove(leaving);
|
|
725
806
|
},
|
|
726
807
|
async catchUp(progress) {
|
|
727
|
-
const
|
|
728
|
-
|
|
729
|
-
|
|
808
|
+
const owed = (conversation) => behind.has(conversation) && replicated.has(conversation);
|
|
809
|
+
const read = async (conversations) => {
|
|
810
|
+
if (conversations.length === 0 || deps.closed())
|
|
811
|
+
return;
|
|
812
|
+
const failed = await caughtUp(conversations);
|
|
730
813
|
if (failed?.kind === 'transport-uncertainty')
|
|
731
814
|
progress.reachable = false;
|
|
732
|
-
}
|
|
815
|
+
};
|
|
816
|
+
const asking = [...behind].filter(owed).sort();
|
|
817
|
+
const awaited = asking.filter((conversation) => catching.has(conversation));
|
|
818
|
+
await Promise.all([
|
|
819
|
+
read(asking.filter((conversation) => !catching.has(conversation))),
|
|
820
|
+
Promise.all(awaited.map((conversation) => catching.get(conversation))).then(() => read(awaited.filter((conversation) => owed(conversation) && !catching.has(conversation)))),
|
|
821
|
+
]);
|
|
733
822
|
if (behind.size > 0)
|
|
734
823
|
progress.complete = false;
|
|
735
824
|
},
|
|
@@ -761,6 +850,9 @@ export function createConversationStore(deps) {
|
|
|
761
850
|
current() {
|
|
762
851
|
return behind.size === 0;
|
|
763
852
|
},
|
|
853
|
+
known() {
|
|
854
|
+
return listKnown;
|
|
855
|
+
},
|
|
764
856
|
reconnected() {
|
|
765
857
|
for (const conversation of replicated)
|
|
766
858
|
gap(conversation);
|
|
@@ -768,6 +860,9 @@ export function createConversationStore(deps) {
|
|
|
768
860
|
reopened() {
|
|
769
861
|
sending.clear();
|
|
770
862
|
},
|
|
863
|
+
lost() {
|
|
864
|
+
catching.clear();
|
|
865
|
+
},
|
|
771
866
|
watch(conversation, options, deliver) {
|
|
772
867
|
const limit = limitOf(options);
|
|
773
868
|
const key = JSON.stringify([conversation, limit ?? null]);
|
|
@@ -835,12 +930,15 @@ export function createConversationStore(deps) {
|
|
|
835
930
|
if (event.kind === 'list' || event.kind === 'listed' || event.kind === 'unlisted') {
|
|
836
931
|
if (event.kind === 'list') {
|
|
837
932
|
listing.clear();
|
|
838
|
-
for (const entry of event.entries)
|
|
933
|
+
for (const entry of event.entries) {
|
|
839
934
|
listing.set(entry.conversation, { ...entry });
|
|
935
|
+
creations.delete(entry.conversation);
|
|
936
|
+
}
|
|
840
937
|
listKnown = true;
|
|
841
938
|
}
|
|
842
939
|
else if (event.kind === 'listed') {
|
|
843
940
|
listing.set(event.entry.conversation, { ...event.entry });
|
|
941
|
+
creations.delete(event.entry.conversation);
|
|
844
942
|
}
|
|
845
943
|
else {
|
|
846
944
|
listing.delete(event.conversation);
|
package/dist/durability.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
import type { Persistence } from './readiness.js';
|
|
2
|
+
export type StorageEstimate = {
|
|
3
|
+
readonly usage: number;
|
|
4
|
+
readonly quota: number;
|
|
5
|
+
};
|
|
1
6
|
export type RuntimeShell = {
|
|
2
|
-
|
|
7
|
+
persistence: Persistence;
|
|
3
8
|
generation: string | null;
|
|
4
9
|
keepGeneration(value: string): void | Promise<void>;
|
|
5
10
|
dropGeneration(): void | Promise<void>;
|
|
11
|
+
estimate?(): Promise<StorageEstimate | null>;
|
|
6
12
|
};
|
|
7
13
|
export declare function detectStorageLoss(stored: string | null, reported: string | null): string | null;
|
|
8
14
|
export declare function nextGeneration(stored: string | null, reported: string | null): string;
|
package/dist/durability.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"durability.d.ts","sourceRoot":"","sources":["../src/durability.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"durability.d.ts","sourceRoot":"","sources":["../src/durability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,MAAM,MAAM,eAAe,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjF,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,cAAc,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,QAAQ,CAAC,IAAI,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAAC;CAC9C,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG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|
|
1
|
+
{"version":3,"file":"entry.d.ts","sourceRoot":"","sources":["../src/entry.ts"],"names":[],"mappings":"AAGA,OAAO,EAML,KAAK,SAAS,EAEf,MAAM,YAAY,CAAC;AAIpB,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC7C,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;AAkCD,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,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,GAAG,UAAU,CAsDlE"}
|
package/dist/entry.js
CHANGED
|
@@ -131,7 +131,7 @@ export function entryScope(rooms) {
|
|
|
131
131
|
locator: room.locator,
|
|
132
132
|
path,
|
|
133
133
|
before: [],
|
|
134
|
-
after: rowsOf(room.locator, path, passingFrontmatter(collection, path) ?? null, composition, null, null),
|
|
134
|
+
after: rowsOf(room.locator, path, passingFrontmatter(collection, path) ?? null, composition, null, null, null),
|
|
135
135
|
}));
|
|
136
136
|
});
|
|
137
137
|
readSide.apply({
|
package/dist/host.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { type MdRuntimeOptions } from './connection.js';
|
|
2
|
+
import type { RuntimeDemand } from './acquisition.js';
|
|
2
3
|
import type { PortReach } from './reach.js';
|
|
4
|
+
import type { CapacityCause, CodeAvailability, Persistence, Readiness, SearchObligation } from './readiness.js';
|
|
5
|
+
import type { EntrySeed } from './seed.js';
|
|
3
6
|
import { type RuntimePort } from './wire.js';
|
|
4
7
|
export type MdRuntimeHostOptions = MdRuntimeOptions & {
|
|
5
8
|
deploymentFacts?: unknown;
|
|
@@ -7,16 +10,26 @@ export type MdRuntimeHostOptions = MdRuntimeOptions & {
|
|
|
7
10
|
export type AttachedPort = {
|
|
8
11
|
detach(): void;
|
|
9
12
|
narrow(reach: PortReach): void;
|
|
13
|
+
readiness(deliver: (readiness: Readiness) => void): () => void;
|
|
14
|
+
answered(queries: readonly unknown[], done: () => void): void;
|
|
15
|
+
code(code: CodeAvailability, capacity: CapacityCause | null): void;
|
|
16
|
+
search(search: SearchObligation): void;
|
|
10
17
|
};
|
|
11
18
|
export type MdRuntimeHost = {
|
|
12
|
-
attach(port: RuntimePort, app: string, release?: string, reach?: PortReach): AttachedPort;
|
|
19
|
+
attach(port: RuntimePort, app: string, release?: string, reach?: PortReach, code?: CodeAvailability, search?: SearchObligation): AttachedPort;
|
|
20
|
+
acquire(demand: RuntimeDemand): void;
|
|
21
|
+
seed(entry: EntrySeed): void;
|
|
22
|
+
persisted(answer: Persistence): void;
|
|
13
23
|
endAuthorization(holder?: string): Promise<void>;
|
|
14
24
|
lose(locators: readonly string[]): Promise<void>;
|
|
15
25
|
stop(): Promise<void>;
|
|
16
26
|
};
|
|
17
27
|
export declare function serveMdRuntime(options: MdRuntimeHostOptions): MdRuntimeHost;
|
|
28
|
+
export type { RuntimeDemand } from './acquisition.js';
|
|
29
|
+
export { entrySeedOf, type EntrySeed } from './seed.js';
|
|
18
30
|
export type { PortReach, ReachedDocument } from './reach.js';
|
|
31
|
+
export type { CapacityCause, CodeAvailability, Persistence, SearchObligation, } from './readiness.js';
|
|
19
32
|
export { createRecovery, retryDelay, type Attempt, type Attempted, type AttemptOptions, type Recovery, type RecoveryOptions, } from './recovery.js';
|
|
20
|
-
export { AUTHORED_SCHEMA, authoredBinding, authoredBy, authoredHolder, bindAuthored, STORE_SCHEMA, } from './store.js';
|
|
33
|
+
export { AUTHORED_SCHEMA, authoredBinding, authoredBy, authoredHolder, bindAuthored, openDatabase, STORE_SCHEMA, } from './store.js';
|
|
21
34
|
export type { RuntimePort } from './wire.js';
|
|
22
35
|
//# sourceMappingURL=host.d.ts.map
|
package/dist/host.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,gBAAgB,EAGtB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,KAAK,EACV,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,gBAAgB,EACjB,MAAM,gBAAgB,CAAC;AAExB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAG3C,OAAO,EAGL,KAAK,WAAW,EAOjB,MAAM,WAAW,CAAC;AAInB,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,GAAG;IAAE,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,C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WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AACxD,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7D,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,WAAW,EACX,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AACxB,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,EACL,eAAe,EACf,eAAe,EACf,UAAU,EACV,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,YAAY,GACb,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC"}
|
package/dist/host.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { composeRuntime, } from './connection.js';
|
|
2
|
+
import { queryKey } from './query.js';
|
|
2
3
|
import { described } from './failure.js';
|
|
3
4
|
import { removeRuntimeStore } from './store.js';
|
|
4
|
-
import { AUTHORIZATION_ENDED, request,
|
|
5
|
+
import { AUTHORIZATION_ENDED, request, WIRE, } from './wire.js';
|
|
5
6
|
const NARROWED = new Set(['within', 'whole']);
|
|
6
7
|
function answered(md, app, writtenBy, member, input) {
|
|
7
8
|
switch (member) {
|
|
@@ -19,6 +20,8 @@ function answered(md, app, writtenBy, member, input) {
|
|
|
19
20
|
return md.history(input[0], input[1], input[2]);
|
|
20
21
|
case 'binaryFile.read':
|
|
21
22
|
return md.binaryFile.read(input[0], input[1], input[2]);
|
|
23
|
+
case 'binaryFile.link':
|
|
24
|
+
return md.binaryFile.link(input[0], input[1], input[2]);
|
|
22
25
|
case 'binaryFile.readReference':
|
|
23
26
|
return md.binaryFile.readReference(input[0]);
|
|
24
27
|
case 'call':
|
|
@@ -29,6 +32,8 @@ function answered(md, app, writtenBy, member, input) {
|
|
|
29
32
|
return md.log();
|
|
30
33
|
case 'persistence':
|
|
31
34
|
return md.persistence();
|
|
35
|
+
case 'retry':
|
|
36
|
+
return md.retry();
|
|
32
37
|
case 'reauthorize':
|
|
33
38
|
return md.reauthorize();
|
|
34
39
|
case 'roomDraft.list':
|
|
@@ -67,6 +72,14 @@ function answered(md, app, writtenBy, member, input) {
|
|
|
67
72
|
return md.chatDraft.discard(input[0]);
|
|
68
73
|
}
|
|
69
74
|
}
|
|
75
|
+
function answeredResult(value) {
|
|
76
|
+
return typeof value === 'object' && value !== null && !('pending' in value);
|
|
77
|
+
}
|
|
78
|
+
function answeredMessage(value) {
|
|
79
|
+
if (typeof value !== 'object' || value === null)
|
|
80
|
+
return false;
|
|
81
|
+
return !('result' in value) || answeredResult(value.result);
|
|
82
|
+
}
|
|
70
83
|
export function serveMdRuntime(options) {
|
|
71
84
|
const deploymentFacts = structuredClone(options.deploymentFacts);
|
|
72
85
|
const closing = new AbortController();
|
|
@@ -84,13 +97,25 @@ export function serveMdRuntime(options) {
|
|
|
84
97
|
deliver(structuredClone(deploymentFacts));
|
|
85
98
|
return () => { };
|
|
86
99
|
};
|
|
87
|
-
function attach(port, app, release, reach) {
|
|
100
|
+
function attach(port, app, release, reach, code = 'stored', search = 'unused') {
|
|
88
101
|
if (!authorized)
|
|
89
102
|
throw new Error(AUTHORIZATION_ENDED);
|
|
90
103
|
const writtenBy = release === undefined ? undefined : { app, release };
|
|
91
|
-
|
|
104
|
+
let facts = { target: app, code, capacity: null, search };
|
|
105
|
+
const view = runtime.within(reach ?? null, facts);
|
|
92
106
|
const observations = new Map();
|
|
107
|
+
const followed = new Set();
|
|
108
|
+
const answeredKeys = new Set();
|
|
109
|
+
let awaited = null;
|
|
93
110
|
let serving = true;
|
|
111
|
+
const answeredQuery = (query) => {
|
|
112
|
+
answeredKeys.add(queryKey(query));
|
|
113
|
+
if (awaited === null || !awaited.keys.every((key) => answeredKeys.has(key)))
|
|
114
|
+
return;
|
|
115
|
+
const { done } = awaited;
|
|
116
|
+
awaited = null;
|
|
117
|
+
done();
|
|
118
|
+
};
|
|
94
119
|
const send = (message) => {
|
|
95
120
|
port.postMessage(message);
|
|
96
121
|
};
|
|
@@ -101,6 +126,8 @@ export function serveMdRuntime(options) {
|
|
|
101
126
|
for (const end of observations.values())
|
|
102
127
|
end();
|
|
103
128
|
observations.clear();
|
|
129
|
+
for (const end of [...followed])
|
|
130
|
+
end();
|
|
104
131
|
attachments.delete(detach);
|
|
105
132
|
};
|
|
106
133
|
const observe = (id, topic, input) => {
|
|
@@ -110,10 +137,12 @@ export function serveMdRuntime(options) {
|
|
|
110
137
|
return;
|
|
111
138
|
send(resolved ? { kind: 'event', id, value } : { kind: 'result', id, value });
|
|
112
139
|
resolved = true;
|
|
140
|
+
if (topic === 'query' && answeredMessage(value))
|
|
141
|
+
answeredQuery(input[0]);
|
|
113
142
|
};
|
|
114
143
|
observations.set(id, topic === 'deployment-facts'
|
|
115
144
|
? watchFacts(deliver)
|
|
116
|
-
: (NARROWED.has(
|
|
145
|
+
: (NARROWED.has(WIRE.topics[topic]) ? view : runtime).watch(topic, topic === 'presentation' ? [app] : input, deliver));
|
|
117
146
|
};
|
|
118
147
|
const serve = async (message) => {
|
|
119
148
|
if (message.kind === 'hello')
|
|
@@ -131,9 +160,12 @@ export function serveMdRuntime(options) {
|
|
|
131
160
|
observe(message.id, message.topic, message.input);
|
|
132
161
|
return;
|
|
133
162
|
}
|
|
134
|
-
const value = await answered(NARROWED.has(
|
|
135
|
-
if (serving)
|
|
136
|
-
|
|
163
|
+
const value = await answered(NARROWED.has(WIRE.members[message.member].reach) ? view.md : md, app, writtenBy, message.member, message.input);
|
|
164
|
+
if (!serving)
|
|
165
|
+
return;
|
|
166
|
+
send({ kind: 'result', id: message.id, value });
|
|
167
|
+
if (message.member === 'query' && answeredResult(value))
|
|
168
|
+
answeredQuery(message.input[0]);
|
|
137
169
|
}
|
|
138
170
|
catch (error) {
|
|
139
171
|
if (serving)
|
|
@@ -157,10 +189,52 @@ export function serveMdRuntime(options) {
|
|
|
157
189
|
if (serving)
|
|
158
190
|
view.narrow(next);
|
|
159
191
|
},
|
|
192
|
+
code(next, capacity) {
|
|
193
|
+
if (!serving)
|
|
194
|
+
return;
|
|
195
|
+
facts = { ...facts, code: next, capacity };
|
|
196
|
+
view.facts(facts);
|
|
197
|
+
},
|
|
198
|
+
search(next) {
|
|
199
|
+
if (!serving)
|
|
200
|
+
return;
|
|
201
|
+
facts = { ...facts, search: next };
|
|
202
|
+
view.facts(facts);
|
|
203
|
+
},
|
|
204
|
+
answered(queries, done) {
|
|
205
|
+
const keys = queries.map(queryKey);
|
|
206
|
+
if (keys.every((key) => answeredKeys.has(key)))
|
|
207
|
+
done();
|
|
208
|
+
else
|
|
209
|
+
awaited = { keys, done };
|
|
210
|
+
},
|
|
211
|
+
readiness(deliver) {
|
|
212
|
+
if (!serving)
|
|
213
|
+
return () => { };
|
|
214
|
+
const stop = view.watch('readiness', [], (value) => {
|
|
215
|
+
if (serving)
|
|
216
|
+
deliver(value);
|
|
217
|
+
});
|
|
218
|
+
const end = () => {
|
|
219
|
+
followed.delete(end);
|
|
220
|
+
stop();
|
|
221
|
+
};
|
|
222
|
+
followed.add(end);
|
|
223
|
+
return end;
|
|
224
|
+
},
|
|
160
225
|
};
|
|
161
226
|
}
|
|
162
227
|
return {
|
|
163
228
|
attach,
|
|
229
|
+
acquire(demand) {
|
|
230
|
+
runtime.acquire(demand);
|
|
231
|
+
},
|
|
232
|
+
seed(entry) {
|
|
233
|
+
runtime.seed(entry);
|
|
234
|
+
},
|
|
235
|
+
persisted(answer) {
|
|
236
|
+
runtime.persisted(answer);
|
|
237
|
+
},
|
|
164
238
|
async endAuthorization(holder) {
|
|
165
239
|
authorized = false;
|
|
166
240
|
for (const [detach, send] of [...attachments]) {
|
|
@@ -179,5 +253,6 @@ export function serveMdRuntime(options) {
|
|
|
179
253
|
},
|
|
180
254
|
};
|
|
181
255
|
}
|
|
256
|
+
export { entrySeedOf } from './seed.js';
|
|
182
257
|
export { createRecovery, retryDelay, } from './recovery.js';
|
|
183
|
-
export { AUTHORED_SCHEMA, authoredBinding, authoredBy, authoredHolder, bindAuthored, STORE_SCHEMA, } from './store.js';
|
|
258
|
+
export { AUTHORED_SCHEMA, authoredBinding, authoredBy, authoredHolder, bindAuthored, openDatabase, STORE_SCHEMA, } from './store.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
export type { AcceptedMessage, ActionDeclaration, ActionRequest, ActionResult, Adapter, AdapterFailure, Authorization, BinaryFile, BinaryRequest, BinaryResult, ReferrerScope, BootstrapPage, BootstrapRequest, BootstrapResult, Capability, ChangeAuthor, ContractUnavailable, ConversationAction, ConversationAgents, ConversationEvent, ConversationHistories, ConversationHistoryPage, ConversationHistoryRequest, ConversationMessage, ConversationStream, DiscoverResult, DiscoveredRoom, Discovery, HistoryAuthor, HistoryRequest, HistoryResult, HistoryRetention, HistoryRevision, HeldContent, HeldRoom, KeptReceipt, ListedConversation, MdModelIdentity, Member, MutationRequest, MutationResult, PageToken, ProviderLimit, ProviderRefusal, RefreshPage, RefreshRequest, RefreshResult, Retention, RetryableRefusal, RevokedAuthorization, RoomModels, RoomNotReadable, RoomStream, RoomStreamEvent, RoomVersionAt, ServiceMode, ServiceModeSignal, StreamReceipts, TransportUncertainty, TurnContext, TurnOperation, TypedSelection, } from './adapter.js';
|
|
1
|
+
export type { AcquiredDemand, AcceptedMessage, ActionDeclaration, ActionRequest, ActionResult, Adapter, AdapterFailure, Authorization, BinaryFile, BinaryLinkResult, BinaryRequest, BinaryResult, ReferrerScope, BootstrapPage, BootstrapRequest, BootstrapResult, Capability, ChangeAuthor, ContractUnavailable, ConversationAction, ConversationAgents, ConversationEvent, ConversationHistories, ConversationHistoryPage, ConversationHistoryRequest, ConversationMessage, ConversationStream, DiscoverResult, DiscoveredRoom, Discovery, HistoryAuthor, HistoryRequest, HistoryResult, HistoryRetention, HistoryRevision, HeldContent, HeldRoom, KeptReceipt, ListedConversation, MdModelIdentity, Member, MutationRequest, MutationResult, PageToken, ProviderLimit, ProviderRefusal, RefreshPage, RefreshRequest, RefreshResult, Retention, RetryableRefusal, RevokedAuthorization, RoomModels, RoomNotReadable, RoomStream, RoomStreamEvent, RoomVersionAt, ServiceMode, ServiceModeSignal, StreamReceipts, TransportUncertainty, TurnContext, TurnOperation, TypedSelection, } from './adapter.js';
|
|
2
2
|
export type { Change, ChangeBatch, Precondition, WrittenBy } from './change.js';
|
|
3
3
|
export type { ChatDraft, ChatDraftSurface, ConversationAgent, ConversationEntry, ConversationOptions, ConversationState, ConversationSurface, ConversationView, RunningTurn, } from './conversation.js';
|
|
4
4
|
export type { ChatDraftFile, FileDeclaration } from './file.js';
|
|
5
5
|
export type { AppRoom, AppTypedSelection, BinaryFileSurface, ConnectionRefusal, ConnectionRefusalCode, HistoryQuery, MdRuntime, MdRuntimeOptions, PresentationSurface, RoomDraftSurface, RoomSchemas, SavedRoomDraft, SaveResult, } from './connection.js';
|
|
6
6
|
export type { Observation } from './observation.js';
|
|
7
|
-
export type { BinaryAnswer, CallResult, Failure, HistoryAnswer, Offline, QueueEntry, Submission, } from './outcome.js';
|
|
7
|
+
export type { BinaryAnswer, BinaryLinkAnswer, CallResult, Failure, HistoryAnswer, Offline, QueueEntry, Submission, } from './outcome.js';
|
|
8
8
|
export type { BinaryFileRecord, BinaryReference } from './binary.js';
|
|
9
9
|
export type { RuntimeError } from './failure.js';
|
|
10
|
-
export type { ChangedPart, FieldValue, ReturnReason, RoomDraft, RoomDraftCreation, RoomDraftParts, RoomDraftWrite, } from './room-draft.js';
|
|
10
|
+
export type { ChangedPart, FieldValue, ReturnReason, RoomDraft, RoomDraftCreation, RoomDraftParts, RoomDraftWrite, TextParts, } from './room-draft.js';
|
|
11
11
|
export type { SaveRefusal } from './save.js';
|
|
12
|
-
export type { DocumentHit, DocumentPart, MessageHit, PendingConversation, SearchCoverage, SearchHits, SearchPending, SearchRequest, SearchResult, } from './search.js';
|
|
12
|
+
export type { DocumentHit, DocumentPart, MessageHit, PendingConversation, SearchCoverage, SearchHits, SearchPending, SearchRequest, SearchResult, SearchUndeclared, } from './search.js';
|
|
13
13
|
export { departure } from './change.js';
|
|
14
|
+
export { partsAfter } from './room-draft.js';
|
|
14
15
|
export { SESSION_STARTED } from './conversation.js';
|
|
15
16
|
export { changeBatchIdentity } from './identity.js';
|
|
16
17
|
export { attempts, identities, intentOf, type Answered, type Attempt, type Attempts, type Identities, } from './attempt.js';
|
|
17
18
|
export { expectedList, expecting, type ExpectedOf, type Expecting } from './expectation.js';
|
|
18
|
-
export type { RuntimeShell } from './durability.js';
|
|
19
|
+
export type { RuntimeShell, StorageEstimate } from './durability.js';
|
|
20
|
+
export type { CapacityCause, CodeAvailability, ConnectionAvailability, ConversationCoverage, Durability, HouseOutcome, Persistence, Readiness, ReadinessStatus, RefusedRoom, RoomCoverage, RoomPreparation, SearchObligation, TargetCoverage, } from './readiness.js';
|
|
19
21
|
export type { AttentionEntry, SyncStatus } from './status.js';
|
|
20
22
|
export type { Awaits, Backlink, CoveredRoom, Direction, DocumentQuery, DocumentResult, Filter, GroupQuery, GroupResult, Key, LocalQuery, OrderOptions, PendingResult, PendingRoom, Predicate, QueryCoverage, QueryDocument, QueryGroup, QueryResult, QueryRows, Related, Select, Value, Where, } from './query.js';
|
|
21
23
|
export type { MdType, ModelIdentity, ModelSnapshot, ModelState, ModelResult, TypesResult, ValidationReceipt, } from './model.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,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,OAAO,EACP,cAAc,EACd,aAAa,EACb,UAAU,EACV,aAAa,EACb,YAAY,EACZ,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,YAAY,EACZ,mBAAmB,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CAAC;AACtB,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACrE,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,YAAY,EACV,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,cAAc,EACd,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,OAAO,EACP,cAAc,EACd,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,SAAS,EACT,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,QAAQ,EACR,WAAW,EACX,kBAAkB,EAClB,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,eAAe,EACf,UAAU,EACV,eAAe,EACf,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAChF,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,E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