@powerhousedao/reactor-browser 6.2.3-dev.32 → 6.2.3-dev.33
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/{attachment-service-CF8LWxyM.d.ts → attachment-service-But1Xljo.d.ts} +2 -2
- package/dist/{attachment-service-CF8LWxyM.d.ts.map → attachment-service-But1Xljo.d.ts.map} +1 -1
- package/dist/{document-operations-D16LsXDs.js → document-operations-CywUL1pk.js} +11 -4
- package/dist/document-operations-CywUL1pk.js.map +1 -0
- package/dist/{global-yMvtFjK6.d.ts → global-fql2bmb0.d.ts} +2 -2
- package/dist/{global-yMvtFjK6.d.ts.map → global-fql2bmb0.d.ts.map} +1 -1
- package/dist/{index-UsPtg1Z3.d.ts → index-BABMK8cO.d.ts} +2 -2
- package/dist/{index-UsPtg1Z3.d.ts.map → index-BABMK8cO.d.ts.map} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/{inspector-proxy-B2qjCMEv.d.ts → inspector-proxy-DCowaeeH.d.ts} +3 -1
- package/dist/{inspector-proxy-B2qjCMEv.d.ts.map → inspector-proxy-DCowaeeH.d.ts.map} +1 -1
- package/dist/src/graphql-client/entry.d.ts +2 -2
- package/dist/src/graphql-client/entry.js +1 -1
- package/dist/src/renown/index.d.ts +1 -1
- package/dist/src/rpc/index.d.ts +14 -3
- package/dist/src/rpc/index.d.ts.map +1 -1
- package/dist/src/rpc/index.js +41 -5
- package/dist/src/rpc/index.js.map +1 -1
- package/package.json +9 -9
- package/dist/document-operations-D16LsXDs.js.map +0 -1
|
@@ -250,6 +250,8 @@ interface IInspectorProxy {
|
|
|
250
250
|
resumeQueue(): Promise<void>;
|
|
251
251
|
getProcessors(): Promise<unknown>;
|
|
252
252
|
retryProcessor(processorId: string): Promise<void>;
|
|
253
|
+
getCatchUpStatus(): Promise<unknown>;
|
|
254
|
+
sweepCatchUp(): Promise<unknown>;
|
|
253
255
|
validateDocument(documentId: string, branch?: string): Promise<unknown>;
|
|
254
256
|
rebuildKeyframes(documentId: string, branch?: string): Promise<unknown>;
|
|
255
257
|
rebuildSnapshots(documentId: string, branch?: string): Promise<unknown>;
|
|
@@ -259,4 +261,4 @@ declare function createInspectorProxy(router: MessageRouter): IInspectorProxy;
|
|
|
259
261
|
//#endregion
|
|
260
262
|
export { RpcMessage as C, WorkerMigrationState as E, RpcLiveUnsub as S, WorkerInspectorInfo as T, RPC_PROTOCOL_VERSION as _, MessageRouter as a, RpcLiveEvent as b, RpcCorrelator as c, ClientMessage as d, CorrelationId as f, OwnerMessage as g, OpKind as h, createWorkerAdminClient as i, RpcPoster as l, MethodCallMessage as m, createInspectorProxy as n, IRpcTransport as o, ErrorInfo as p, IWorkerAdminClient as r, createPortTransport as s, IInspectorProxy as t, RpcRequestOptions as u, ReactorIdentity as v, VersionFingerprint as w, RpcLiveSubscribe as x, RpcDbOp as y };
|
|
261
263
|
export {};
|
|
262
|
-
//# sourceMappingURL=inspector-proxy-
|
|
264
|
+
//# sourceMappingURL=inspector-proxy-DCowaeeH.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inspector-proxy-
|
|
1
|
+
{"version":3,"file":"inspector-proxy-DCowaeeH.d.ts","names":[],"sources":["../src/rpc/protocol.ts","../src/rpc/rpc-correlator.ts","../src/rpc/transport.ts","../src/rpc/message-router.ts","../src/rpc/admin-client.ts","../src/rpc/inspector-proxy.ts"],"mappings":";KAAY;KAEA;EACV;EACA;EACA;EACA,QAAQ;;KAGE;EACV;EACA,IAAI;EACJ;EACA;EACA;;KAGU;EAAgB;EAAU,IAAI;EAAe;;KAE7C;EAAa;EAAU,IAAI;EAAe,OAAO;;;KAGjD;EAAgB;EAAc,IAAI;EAAe,OAAO;;;KAGxD;EACV;EACA,IAAI;EACJ,OAAO;;KAGG;EAAa;EAAY,UAAU;;KAEnC;EACV;EACA,IAAI;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YAAY;;;;;;cAQJ;mBACM;mBACA;UACT;UACA;EAER,YAAY;EAQZ,OAAO,WAAW;EASlB;EAMA,KAAK,SAAS;;EAQd,GAAG,UAAU,WACX,MAAM,GACN,UAAU,SAAS,QAAQ;IAAgB,GAAG;;EAchD,QACE,QAAQ,IAAI,kBAAkB,eAC9B,UAAU,oBACT;EAIH,UAAU;;;;UCnEK;EACf,QAAQ,QAAQ;EAChB,WAAW;EACX,gBAAgB;EAChB,WAAW;EACX,qBAAqB;EACrB,mBAAmB;;;iBAIL,wBACd,QAAQ,gBACP;;;UCdc;EACf,iBAAiB;EACjB,cAAc;EACd,eAAe;EACf,iBAAiB;EACjB,eAAe,sBAAsB;EACrC,oBAAoB;EACpB,gBAAgB;EAChB,iBAAiB,oBAAoB,kBAAkB;EACvD,iBAAiB,oBAAoB,kBAAkB;EACvD,iBAAiB,oBAAoB,kBAAkB;EACvD,eAAe,aAAa,qBAAqB;;iBAGnC,qBAAqB,QAAQ,gBAAgB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ct as IOperationCache, lt as OperationsCacheEntry, rt as IReactorBrowserClient } from "../../global-
|
|
2
|
-
import { $ as useSwitchboardClient, A as useGetDocument, B as StaticPackageManager, Bt as isOperationCache, D as useDocumentCache, E as useDocument, F as DocumentChangesSubscriptionOptions, G as stampAction, H as resolveDocumentModelModule, I as isAuthRefusalClose, J as MutateDocumentWithOperationsVariables, K as MutateDocumentWithOperationsDocument, L as makeAuthConnectionParams, Lt as DocumentCache, M as useGetDocuments, N as ConnectionParams, O as useDocumentSafe, P as DocumentChangesEventPayload, Q as ensurePHEventHandlers, R as startDocumentChangesSubscription, Rt as IDLE_OPERATIONS_ENTRY, T as setDocumentCache, U as prepareSignedActions, V as packageFromDocumentModels, Vt as readPromiseState, W as signStampedAction, X as GraphQLReactorProvider, Y as ReactorOperationFieldsFragmentDoc, Z as GraphQLReactorProviderProps, _t as phDocumentFromMutation, a as DocumentOperationsState, at as SubgraphSdkFactory, b as useReactorClient, c as useDocumentModelModuleById, ct as describeGraphQLDocument, d as UseDispatchResult, dt as ambientRenownTokenProvider, et as GraphQLReactorClient, f as useDispatch, ft as makeAuthMiddleware, gt as phDocumentFromGetDocument, h as setReactorClient, ht as RevisionsListSelection, i as DocumentOperationsResult, it as GraphQLRequestOptions, j as useGetDocumentAsync, k as useDocuments, l as useDocumentModelModules, lt as subgraphUrlFromGraphqlUrl, mt as GetDocumentQueryResult, nt as isGraphQLReactorClient, o as UseDocumentOperationsOptions, ot as SubgraphSdkRegistry, pt as GetDocumentQueryFields, q as MutateDocumentWithOperationsResult, r as useAttachmentService, rt as viewFilterInputFromViewFilter, s as useDocumentOperations, st as TypedGraphQLDocument, tt as GraphQLReactorClientOptions, u as DispatchFn, ut as BearerTokenProvider, vt as revisionMapFromRevisionsList, z as subscriptionsUrlFromGraphqlUrl, zt as addPromiseState } from "../../attachment-service-
|
|
1
|
+
import { ct as IOperationCache, lt as OperationsCacheEntry, rt as IReactorBrowserClient } from "../../global-fql2bmb0.js";
|
|
2
|
+
import { $ as useSwitchboardClient, A as useGetDocument, B as StaticPackageManager, Bt as isOperationCache, D as useDocumentCache, E as useDocument, F as DocumentChangesSubscriptionOptions, G as stampAction, H as resolveDocumentModelModule, I as isAuthRefusalClose, J as MutateDocumentWithOperationsVariables, K as MutateDocumentWithOperationsDocument, L as makeAuthConnectionParams, Lt as DocumentCache, M as useGetDocuments, N as ConnectionParams, O as useDocumentSafe, P as DocumentChangesEventPayload, Q as ensurePHEventHandlers, R as startDocumentChangesSubscription, Rt as IDLE_OPERATIONS_ENTRY, T as setDocumentCache, U as prepareSignedActions, V as packageFromDocumentModels, Vt as readPromiseState, W as signStampedAction, X as GraphQLReactorProvider, Y as ReactorOperationFieldsFragmentDoc, Z as GraphQLReactorProviderProps, _t as phDocumentFromMutation, a as DocumentOperationsState, at as SubgraphSdkFactory, b as useReactorClient, c as useDocumentModelModuleById, ct as describeGraphQLDocument, d as UseDispatchResult, dt as ambientRenownTokenProvider, et as GraphQLReactorClient, f as useDispatch, ft as makeAuthMiddleware, gt as phDocumentFromGetDocument, h as setReactorClient, ht as RevisionsListSelection, i as DocumentOperationsResult, it as GraphQLRequestOptions, j as useGetDocumentAsync, k as useDocuments, l as useDocumentModelModules, lt as subgraphUrlFromGraphqlUrl, mt as GetDocumentQueryResult, nt as isGraphQLReactorClient, o as UseDocumentOperationsOptions, ot as SubgraphSdkRegistry, pt as GetDocumentQueryFields, q as MutateDocumentWithOperationsResult, r as useAttachmentService, rt as viewFilterInputFromViewFilter, s as useDocumentOperations, st as TypedGraphQLDocument, tt as GraphQLReactorClientOptions, u as DispatchFn, ut as BearerTokenProvider, vt as revisionMapFromRevisionsList, z as subscriptionsUrlFromGraphqlUrl, zt as addPromiseState } from "../../attachment-service-But1Xljo.js";
|
|
3
3
|
import { k as SdkFunctionWrapper } from "../../types-B7-_l_wE.js";
|
|
4
4
|
export { BearerTokenProvider, ConnectionParams, type DispatchFn, DocumentCache, DocumentChangesEventPayload, DocumentChangesSubscriptionOptions, type DocumentOperationsResult, type DocumentOperationsState, GetDocumentQueryFields, GetDocumentQueryResult, GraphQLReactorClient, GraphQLReactorClientOptions, GraphQLReactorProvider, GraphQLReactorProviderProps, GraphQLRequestOptions, IDLE_OPERATIONS_ENTRY, type IOperationCache, type IReactorBrowserClient, MutateDocumentWithOperationsDocument, MutateDocumentWithOperationsResult, MutateDocumentWithOperationsVariables, type OperationsCacheEntry, ReactorOperationFieldsFragmentDoc, RevisionsListSelection, type SdkFunctionWrapper, StaticPackageManager, SubgraphSdkFactory, SubgraphSdkRegistry, TypedGraphQLDocument, type UseDispatchResult, type UseDocumentOperationsOptions, addPromiseState, ambientRenownTokenProvider, describeGraphQLDocument, ensurePHEventHandlers, isAuthRefusalClose, isGraphQLReactorClient, isOperationCache, makeAuthConnectionParams, makeAuthMiddleware, packageFromDocumentModels, phDocumentFromGetDocument, phDocumentFromMutation, prepareSignedActions, readPromiseState, resolveDocumentModelModule, revisionMapFromRevisionsList, setDocumentCache, setReactorClient, signStampedAction, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, useAttachmentService, useDispatch, useDocument, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOperations, useDocumentSafe, useDocuments, useGetDocument, useGetDocumentAsync, useGetDocuments, useReactorClient, useSwitchboardClient, viewFilterInputFromViewFilter };
|
|
5
5
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as useDocumentCache, c as useGetDocument, d as DocumentCache, f as IDLE_OPERATIONS_ENTRY, h as readPromiseState, i as useDocument, l as useGetDocumentAsync, m as isOperationCache, o as useDocumentSafe, p as addPromiseState, r as setDocumentCache, s as useDocuments, t as useDispatch, u as useGetDocuments } from "../../dispatch-BOQgTK9B.js";
|
|
2
2
|
import { B as makeAuthMiddleware, n as useDocumentModelModules, t as useDocumentModelModuleById, z as ambientRenownTokenProvider } from "../../document-model-modules-Cv9KSduJ.js";
|
|
3
|
-
import { $r as isAuthRefusalClose, J as useAttachmentService, Qr as viewFilterInputFromViewFilter, Xr as GraphQLReactorClient, Zr as isGraphQLReactorClient, ai as subgraphUrlFromGraphqlUrl, ci as resolveDocumentModelModule, di as stampAction, ei as makeAuthConnectionParams, fi as MutateDocumentWithOperationsDocument, gi as revisionMapFromRevisionsList, hi as phDocumentFromMutation, i as useSwitchboardClient, ii as describeGraphQLDocument, k as useReactorClient, li as prepareSignedActions, mi as phDocumentFromGetDocument, n as GraphQLReactorProvider, ni as subscriptionsUrlFromGraphqlUrl, oi as StaticPackageManager, pi as ReactorOperationFieldsFragmentDoc, r as ensurePHEventHandlers, ri as SubgraphSdkRegistry, si as packageFromDocumentModels, t as useDocumentOperations, ti as startDocumentChangesSubscription, ui as signStampedAction, w as setReactorClient } from "../../document-operations-
|
|
3
|
+
import { $r as isAuthRefusalClose, J as useAttachmentService, Qr as viewFilterInputFromViewFilter, Xr as GraphQLReactorClient, Zr as isGraphQLReactorClient, ai as subgraphUrlFromGraphqlUrl, ci as resolveDocumentModelModule, di as stampAction, ei as makeAuthConnectionParams, fi as MutateDocumentWithOperationsDocument, gi as revisionMapFromRevisionsList, hi as phDocumentFromMutation, i as useSwitchboardClient, ii as describeGraphQLDocument, k as useReactorClient, li as prepareSignedActions, mi as phDocumentFromGetDocument, n as GraphQLReactorProvider, ni as subscriptionsUrlFromGraphqlUrl, oi as StaticPackageManager, pi as ReactorOperationFieldsFragmentDoc, r as ensurePHEventHandlers, ri as SubgraphSdkRegistry, si as packageFromDocumentModels, t as useDocumentOperations, ti as startDocumentChangesSubscription, ui as signStampedAction, w as setReactorClient } from "../../document-operations-CywUL1pk.js";
|
|
4
4
|
export { DocumentCache, GraphQLReactorClient, GraphQLReactorProvider, IDLE_OPERATIONS_ENTRY, MutateDocumentWithOperationsDocument, ReactorOperationFieldsFragmentDoc, StaticPackageManager, SubgraphSdkRegistry, addPromiseState, ambientRenownTokenProvider, describeGraphQLDocument, ensurePHEventHandlers, isAuthRefusalClose, isGraphQLReactorClient, isOperationCache, makeAuthConnectionParams, makeAuthMiddleware, packageFromDocumentModels, phDocumentFromGetDocument, phDocumentFromMutation, prepareSignedActions, readPromiseState, resolveDocumentModelModule, revisionMapFromRevisionsList, setDocumentCache, setReactorClient, signStampedAction, stampAction, startDocumentChangesSubscription, subgraphUrlFromGraphqlUrl, subscriptionsUrlFromGraphqlUrl, useAttachmentService, useDispatch, useDocument, useDocumentCache, useDocumentModelModuleById, useDocumentModelModules, useDocumentOperations, useDocumentSafe, useDocuments, useGetDocument, useGetDocumentAsync, useGetDocuments, useReactorClient, useSwitchboardClient, viewFilterInputFromViewFilter };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as RENOWN_RETURN_URL_STRIPPED_PARAMS, B as UserIcon, C as CREDENTIAL_SCHEMA_EIP712_TYPE, D as ISSUER_TYPE, E as DOMAIN_TYPE, F as ChevronDownIcon, G as RenownLoginButtonProps, H as RenownUserButtonMenuItem, I as CopyIcon, K as RenownAuthButton, L as DisconnectIcon, M as VERIFIABLE_CREDENTIAL_EIP712_TYPE, N as initConnectCrypto, O as RENOWN_CHAIN_ID, P as initRenownCrypto, Q as useRenown, R as RenownLogo, S as useRenownInitialUser, T as CREDENTIAL_TYPES, U as RenownUserButtonProps, V as RenownUserButton, W as RenownLoginButton, _ as RENOWN_INITIAL_UNKNOWN, a as RenownWalletProviderProps, at as RenownAuthResolution, b as RenownInitialUserProviderProps, c as Renown, ct as useRenownAuthAsync, d as useRenownInit, f as RenownSessionCookieOptions, g as RENOWN_INITIAL_ANONYMOUS, h as useRenownSessionSynced, i as RenownWalletProvider, it as RenownAuthAsync, j as RENOWN_URL, k as RENOWN_NETWORK_ID, l as RenownProps, m as useRenownSessionCookie, n as RenownLoginMethod, nt as openRenown, o as RenownProvider, ot as RenownAuthStatus, p as RenownSessionCookieState, q as RenownAuthButtonProps, r as useRenownLoginMethods, rt as RenownAuth, s as RenownProviderProps, st as useRenownAuth, t as useRenownWalletAdapter, u as RenownInitOptions, v as RenownInitialAuth, w as CREDENTIAL_SUBJECT_TYPE, x as useRenownInitialAuth, y as RenownInitialUserProvider, z as SpinnerIcon } from "../../index-
|
|
1
|
+
import { A as RENOWN_RETURN_URL_STRIPPED_PARAMS, B as UserIcon, C as CREDENTIAL_SCHEMA_EIP712_TYPE, D as ISSUER_TYPE, E as DOMAIN_TYPE, F as ChevronDownIcon, G as RenownLoginButtonProps, H as RenownUserButtonMenuItem, I as CopyIcon, K as RenownAuthButton, L as DisconnectIcon, M as VERIFIABLE_CREDENTIAL_EIP712_TYPE, N as initConnectCrypto, O as RENOWN_CHAIN_ID, P as initRenownCrypto, Q as useRenown, R as RenownLogo, S as useRenownInitialUser, T as CREDENTIAL_TYPES, U as RenownUserButtonProps, V as RenownUserButton, W as RenownLoginButton, _ as RENOWN_INITIAL_UNKNOWN, a as RenownWalletProviderProps, at as RenownAuthResolution, b as RenownInitialUserProviderProps, c as Renown, ct as useRenownAuthAsync, d as useRenownInit, f as RenownSessionCookieOptions, g as RENOWN_INITIAL_ANONYMOUS, h as useRenownSessionSynced, i as RenownWalletProvider, it as RenownAuthAsync, j as RENOWN_URL, k as RENOWN_NETWORK_ID, l as RenownProps, m as useRenownSessionCookie, n as RenownLoginMethod, nt as openRenown, o as RenownProvider, ot as RenownAuthStatus, p as RenownSessionCookieState, q as RenownAuthButtonProps, r as useRenownLoginMethods, rt as RenownAuth, s as RenownProviderProps, st as useRenownAuth, t as useRenownWalletAdapter, u as RenownInitOptions, v as RenownInitialAuth, w as CREDENTIAL_SUBJECT_TYPE, x as useRenownInitialAuth, y as RenownInitialUserProvider, z as SpinnerIcon } from "../../index-BABMK8cO.js";
|
|
2
2
|
export { CREDENTIAL_SCHEMA_EIP712_TYPE, CREDENTIAL_SUBJECT_TYPE, CREDENTIAL_TYPES, ChevronDownIcon, CopyIcon, DOMAIN_TYPE, DisconnectIcon, ISSUER_TYPE, RENOWN_CHAIN_ID, RENOWN_INITIAL_ANONYMOUS, RENOWN_INITIAL_UNKNOWN, RENOWN_NETWORK_ID, RENOWN_RETURN_URL_STRIPPED_PARAMS, RENOWN_URL, Renown, type RenownAuth, type RenownAuthAsync, RenownAuthButton, type RenownAuthButtonProps, type RenownAuthResolution, type RenownAuthStatus, type RenownInitOptions, type RenownInitialAuth, RenownInitialUserProvider, type RenownInitialUserProviderProps, RenownLoginButton, type RenownLoginButtonProps, type RenownLoginMethod, RenownLogo, type RenownProps, RenownProvider, type RenownProviderProps, type RenownSessionCookieOptions, type RenownSessionCookieState, RenownUserButton, type RenownUserButtonMenuItem, type RenownUserButtonProps, RenownWalletProvider, type RenownWalletProviderProps, SpinnerIcon, UserIcon, VERIFIABLE_CREDENTIAL_EIP712_TYPE, initConnectCrypto, initRenownCrypto, openRenown, useRenown, useRenownAuth, useRenownAuthAsync, useRenownInit, useRenownInitialAuth, useRenownInitialUser, useRenownLoginMethods, useRenownSessionCookie, useRenownSessionSynced, useRenownWalletAdapter };
|
|
3
3
|
export {};
|
package/dist/src/rpc/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as PGliteWithLive } from "../../index-rtDmzViP.js";
|
|
2
|
-
import { C as RpcMessage, E as WorkerMigrationState, S as RpcLiveUnsub, T as WorkerInspectorInfo, _ as RPC_PROTOCOL_VERSION, a as MessageRouter, b as RpcLiveEvent, c as RpcCorrelator, d as ClientMessage, f as CorrelationId, g as OwnerMessage, h as OpKind, i as createWorkerAdminClient, l as RpcPoster, m as MethodCallMessage, n as createInspectorProxy, o as IRpcTransport, p as ErrorInfo, r as IWorkerAdminClient, s as createPortTransport, t as IInspectorProxy, u as RpcRequestOptions, v as ReactorIdentity, w as VersionFingerprint, x as RpcLiveSubscribe, y as RpcDbOp } from "../../inspector-proxy-
|
|
3
|
-
import { ChannelConfig, DriveCollectionId, IDocumentModelLoader, IDocumentModelRegistry, IEventBus, IReactorClient, ISyncManager, Remote, RemoteFilter, RemoteOptions, ShutdownStatus, SyncStatus, SyncStatusChangeCallback, Unsubscribe } from "@powerhousedao/reactor";
|
|
4
|
-
import { DocumentModelModule } from "@powerhousedao/shared/document-model";
|
|
2
|
+
import { C as RpcMessage, E as WorkerMigrationState, S as RpcLiveUnsub, T as WorkerInspectorInfo, _ as RPC_PROTOCOL_VERSION, a as MessageRouter, b as RpcLiveEvent, c as RpcCorrelator, d as ClientMessage, f as CorrelationId, g as OwnerMessage, h as OpKind, i as createWorkerAdminClient, l as RpcPoster, m as MethodCallMessage, n as createInspectorProxy, o as IRpcTransport, p as ErrorInfo, r as IWorkerAdminClient, s as createPortTransport, t as IInspectorProxy, u as RpcRequestOptions, v as ReactorIdentity, w as VersionFingerprint, x as RpcLiveSubscribe, y as RpcDbOp } from "../../inspector-proxy-DCowaeeH.js";
|
|
3
|
+
import { ChannelConfig, DriveCollectionId, IDocumentModelLoader, IDocumentModelRegistry, IEventBus, IPeerAgreement, IReactorClient, ISyncManager, Remote, RemoteFilter, RemoteOptions, ShutdownStatus, SyncHold, SyncStatus, SyncStatusChangeCallback, Unsubscribe } from "@powerhousedao/reactor";
|
|
4
|
+
import { DocumentModelModule, PeerManifest } from "@powerhousedao/shared/document-model";
|
|
5
5
|
//#region src/rpc/client-proxy.d.ts
|
|
6
6
|
type ReactorClientProxyOptions = {
|
|
7
7
|
onReload?: (reason: string, workerGen?: string) => void;
|
|
@@ -147,6 +147,7 @@ export declare class ReactorHost {
|
|
|
147
147
|
private readonly disposers;
|
|
148
148
|
private readonly clients;
|
|
149
149
|
private clientPromise;
|
|
150
|
+
private buildFailure;
|
|
150
151
|
private baseline;
|
|
151
152
|
private readonly ownerId;
|
|
152
153
|
private readonly bootedAtMs;
|
|
@@ -183,6 +184,7 @@ export declare class SyncManagerProxy implements ISyncManager {
|
|
|
183
184
|
private readonly syncStatuses;
|
|
184
185
|
private readonly syncStatusListeners;
|
|
185
186
|
private remotes;
|
|
187
|
+
private basis;
|
|
186
188
|
private seedPromise;
|
|
187
189
|
constructor(router: MessageRouter, busProxy: IEventBus);
|
|
188
190
|
startup(): Promise<void>;
|
|
@@ -190,6 +192,15 @@ export declare class SyncManagerProxy implements ISyncManager {
|
|
|
190
192
|
getByName(name: string): Remote;
|
|
191
193
|
getById(id: string): Remote;
|
|
192
194
|
add(name: string, collectionId: DriveCollectionId, channelConfig: ChannelConfig, filter?: RemoteFilter, options?: RemoteOptions): Promise<Remote>;
|
|
195
|
+
setPeerManifest(id: string, manifest: PeerManifest | null): Promise<void>;
|
|
196
|
+
/** Fetched once; the worker's flags do not change at runtime. */
|
|
197
|
+
localManifest(): PeerManifest;
|
|
198
|
+
listHolds(filter?: {
|
|
199
|
+
remoteName?: string;
|
|
200
|
+
documentId?: string;
|
|
201
|
+
}): Promise<SyncHold[]>;
|
|
202
|
+
agreement(): IPeerAgreement;
|
|
203
|
+
private agreementBasis;
|
|
193
204
|
bindRemote(id: string, boundAddress: string): Promise<void>;
|
|
194
205
|
triggerPull(name: string): void;
|
|
195
206
|
remove(name: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/rpc/client-proxy.ts","../../../src/rpc/op-channel.ts","../../../src/rpc/host-reply.ts","../../../src/rpc/listeners.ts","../../../src/rpc/subscription.ts","../../../src/rpc/live-query-proxy.ts","../../../src/rpc/relational-db-proxy.ts","../../../src/rpc/event-bus-proxy.ts","../../../src/rpc/forwarded-events.ts","../../../src/rpc/connect-reactor.ts","../../../src/rpc/host-server.ts","../../../src/rpc/reactor-host.ts","../../../src/rpc/sync-manager-proxy.ts","../../../src/rpc/worker-package-loader.ts","../../../src/rpc/error-info.ts"],"mappings":";;;;;KAgCY;EACV,YAAY,gBAAgB;;EAE5B,WAAW;;wBAGG,yBACd,QAAQ,eACR,UAAS,4BACR;;;qBCtCU;wBAEG,OAAO,SAAS,mBAAmB;UAIlC;EACf,KAAK,gBAAgB,mBAAmB;EACxC,SAAS,gBAAgB,mBAAmB;;wBAG9B,UACd,QAAQ,eACR,MAAM,QACN,qBACC;;;UCbc;EACf,GAAG,IAAI,eAAe;EACtB,IAAI,IAAI,eAAe;EACvB,WAAW,SAAS,eAAe;EACnC,IACE,IAAI,eACJ,YAAY,kBACZ,SAAS,6BACR;;wBAKW,cAAc,WAAW,gBAAgB;;;qBClB5C,eAAe,GAAG;mBACZ;EAEjB,IAAI,KAAK,GAAG,QAAQ,GAAG;EAmBvB,KAAK,KAAK,MAAM,GAAG;EAUnB,WAAW,GAAG;;qBASH,UAAU;mBACJ;EAEjB,IAAI,QAAQ,GAAG;EAIf,QAAQ,GAAG;;;;qBC7CA;mBACM;EAEjB,IAAI,IAAI,eAAe;EAIvB,IAAI,IAAI;EAIR,OAAO,IAAI;EAIX,IAAI,IAAI;EAQR;;UAQe,yBAAyB;EACxC,UAAU,KAAK,KAAK,OAAO,IAAI,kBAAkB;;UAGlC,iBACf,KACA,WAAW,mBACX,aAAa;EAEb;EACA,WAAW;EACX,SAAS;EACT,UA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;EAKlB,kBAAkB,mBAAmB;EAOrC,gBAAgB,gBAAgB;EAOhC,kBAAkB,OAAO;MAOrB;UAII;UAgCM;UAUN;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/rpc/client-proxy.ts","../../../src/rpc/op-channel.ts","../../../src/rpc/host-reply.ts","../../../src/rpc/listeners.ts","../../../src/rpc/subscription.ts","../../../src/rpc/live-query-proxy.ts","../../../src/rpc/relational-db-proxy.ts","../../../src/rpc/event-bus-proxy.ts","../../../src/rpc/forwarded-events.ts","../../../src/rpc/connect-reactor.ts","../../../src/rpc/host-server.ts","../../../src/rpc/reactor-host.ts","../../../src/rpc/sync-manager-proxy.ts","../../../src/rpc/worker-package-loader.ts","../../../src/rpc/error-info.ts"],"mappings":";;;;;KAgCY;EACV,YAAY,gBAAgB;;EAE5B,WAAW;;wBAGG,yBACd,QAAQ,eACR,UAAS,4BACR;;;qBCtCU;wBAEG,OAAO,SAAS,mBAAmB;UAIlC;EACf,KAAK,gBAAgB,mBAAmB;EACxC,SAAS,gBAAgB,mBAAmB;;wBAG9B,UACd,QAAQ,eACR,MAAM,QACN,qBACC;;;UCbc;EACf,GAAG,IAAI,eAAe;EACtB,IAAI,IAAI,eAAe;EACvB,WAAW,SAAS,eAAe;EACnC,IACE,IAAI,eACJ,YAAY,kBACZ,SAAS,6BACR;;wBAKW,cAAc,WAAW,gBAAgB;;;qBClB5C,eAAe,GAAG;mBACZ;EAEjB,IAAI,KAAK,GAAG,QAAQ,GAAG;EAmBvB,KAAK,KAAK,MAAM,GAAG;EAUnB,WAAW,GAAG;;qBASH,UAAU;mBACJ;EAEjB,IAAI,QAAQ,GAAG;EAIf,QAAQ,GAAG;;;;qBC7CA;mBACM;EAEjB,IAAI,IAAI,eAAe;EAIvB,IAAI,IAAI;EAIR,OAAO,IAAI;EAIX,IAAI,IAAI;EAQR;;UAQe,yBAAyB;EACxC,UAAU,KAAK,KAAK,OAAO,IAAI,kBAAkB;;UAGlC,iBACf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1
1
|
import { t as RegistryClient } from "../../client-BiJAJ9dW.js";
|
|
2
|
-
import { DriveCollectionId, ReactorEventTypes, SyncEventTypes } from "@powerhousedao/reactor";
|
|
2
|
+
import { DriveCollectionId, ReactorEventTypes, SyncEventTypes, createPeerAgreement } from "@powerhousedao/reactor";
|
|
3
3
|
import { normalizeDocumentModelVersion } from "@powerhousedao/shared/document-model";
|
|
4
4
|
import { rewritePackageSource } from "@powerhousedao/shared/connect";
|
|
5
5
|
//#region src/rpc/listeners.ts
|
|
@@ -319,6 +319,8 @@ function createInspectorProxy(router) {
|
|
|
319
319
|
resumeQueue: () => ops.callVoid("queue.resume"),
|
|
320
320
|
getProcessors: () => ops.call("processors.getAll"),
|
|
321
321
|
retryProcessor: (processorId) => ops.callVoid("processors.retry", [processorId]),
|
|
322
|
+
getCatchUpStatus: () => ops.call("catchUp.status"),
|
|
323
|
+
sweepCatchUp: () => ops.call("catchUp.sweepNow"),
|
|
322
324
|
validateDocument: (documentId, branch) => ops.call("integrity.validate", [documentId, branch]),
|
|
323
325
|
rebuildKeyframes: (documentId, branch) => ops.call("integrity.rebuildKeyframes", [documentId, branch]),
|
|
324
326
|
rebuildSnapshots: (documentId, branch) => ops.call("integrity.rebuildSnapshots", [documentId, branch]),
|
|
@@ -471,7 +473,8 @@ function rehydrateMeta(wire) {
|
|
|
471
473
|
collectionId: DriveCollectionId.forDrive(wire.collectionId.driveId, wire.collectionId.branch),
|
|
472
474
|
channelConfig: wire.channelConfig,
|
|
473
475
|
filter: wire.filter,
|
|
474
|
-
options: wire.options
|
|
476
|
+
options: wire.options,
|
|
477
|
+
peer: wire.peer
|
|
475
478
|
};
|
|
476
479
|
}
|
|
477
480
|
function channelUrl(meta) {
|
|
@@ -485,6 +488,7 @@ var SyncManagerProxy = class {
|
|
|
485
488
|
syncStatuses = /* @__PURE__ */ new Map();
|
|
486
489
|
syncStatusListeners = new Listeners();
|
|
487
490
|
remotes = [];
|
|
491
|
+
basis;
|
|
488
492
|
seedPromise = null;
|
|
489
493
|
constructor(router, busProxy) {
|
|
490
494
|
this.ops = opChannel(router, "sync-op");
|
|
@@ -538,6 +542,24 @@ var SyncManagerProxy = class {
|
|
|
538
542
|
await this.refreshRemotes();
|
|
539
543
|
return this.getByName(name);
|
|
540
544
|
}
|
|
545
|
+
async setPeerManifest(id, manifest) {
|
|
546
|
+
await this.callSyncOp("setPeerManifest", [id, manifest]);
|
|
547
|
+
await this.refreshRemotes();
|
|
548
|
+
}
|
|
549
|
+
/** Fetched once; the worker's flags do not change at runtime. */
|
|
550
|
+
localManifest() {
|
|
551
|
+
return this.agreementBasis().local;
|
|
552
|
+
}
|
|
553
|
+
async listHolds(filter) {
|
|
554
|
+
return await this.callSyncOp("listHolds", [filter]);
|
|
555
|
+
}
|
|
556
|
+
agreement() {
|
|
557
|
+
return createPeerAgreement(this.agreementBasis(), this.remotes.map((remote) => remote.meta));
|
|
558
|
+
}
|
|
559
|
+
agreementBasis() {
|
|
560
|
+
if (!this.basis) throw new Error("Peer agreement has not been fetched from the worker yet");
|
|
561
|
+
return this.basis;
|
|
562
|
+
}
|
|
541
563
|
async bindRemote(id, boundAddress) {
|
|
542
564
|
await this.callSyncOp("bindRemote", [id, boundAddress]);
|
|
543
565
|
await this.refreshRemotes();
|
|
@@ -592,6 +614,8 @@ var SyncManagerProxy = class {
|
|
|
592
614
|
},
|
|
593
615
|
notePoll: () => {},
|
|
594
616
|
lastHolderPollUtcMs: () => void 0,
|
|
617
|
+
setLocalManifest: () => {},
|
|
618
|
+
onPeerManifest: () => () => {},
|
|
595
619
|
config: { url }
|
|
596
620
|
};
|
|
597
621
|
}
|
|
@@ -611,6 +635,9 @@ var SyncManagerProxy = class {
|
|
|
611
635
|
this.notifyConnection();
|
|
612
636
|
}
|
|
613
637
|
ensureSeeded() {
|
|
638
|
+
if (!this.basis) this.callSyncOp("peerAgreementBasis", []).then((basis) => {
|
|
639
|
+
this.basis = basis;
|
|
640
|
+
}).catch(() => {});
|
|
614
641
|
if (!this.seedPromise) {
|
|
615
642
|
const pending = this.refreshRemotes();
|
|
616
643
|
this.seedPromise = pending;
|
|
@@ -845,6 +872,7 @@ var ReactorHost = class {
|
|
|
845
872
|
disposers = /* @__PURE__ */ new Set();
|
|
846
873
|
clients = /* @__PURE__ */ new Set();
|
|
847
874
|
clientPromise = null;
|
|
875
|
+
buildFailure = null;
|
|
848
876
|
baseline = null;
|
|
849
877
|
ownerId;
|
|
850
878
|
bootedAtMs;
|
|
@@ -1011,14 +1039,22 @@ var ReactorHost = class {
|
|
|
1011
1039
|
if (!build) return Promise.reject(/* @__PURE__ */ new Error("ReactorHost has no client or builder"));
|
|
1012
1040
|
const pending = build(construct);
|
|
1013
1041
|
this.clientPromise = pending;
|
|
1014
|
-
|
|
1015
|
-
|
|
1042
|
+
this.buildFailure = null;
|
|
1043
|
+
pending.catch((error) => {
|
|
1044
|
+
if (this.clientPromise === pending) {
|
|
1045
|
+
this.clientPromise = null;
|
|
1046
|
+
this.buildFailure = { error };
|
|
1047
|
+
}
|
|
1016
1048
|
});
|
|
1017
1049
|
}
|
|
1018
1050
|
return this.clientPromise;
|
|
1019
1051
|
}
|
|
1020
1052
|
async awaitClientReady() {
|
|
1021
|
-
if (this.clientPromise)
|
|
1053
|
+
if (this.clientPromise) {
|
|
1054
|
+
await this.clientPromise;
|
|
1055
|
+
return;
|
|
1056
|
+
}
|
|
1057
|
+
if (this.buildFailure) throw this.buildFailure.error;
|
|
1022
1058
|
}
|
|
1023
1059
|
requireHandler(handler, message, reply, label) {
|
|
1024
1060
|
if (handler) return true;
|