@powerhousedao/reactor-api 6.2.3-dev.13 → 6.2.3-dev.15
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/index.d.mts +16 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +113 -15
- package/dist/index.mjs.map +1 -1
- package/dist/{utils-Cm6WbGyq.mjs → pieces-DKOEzTAY.mjs} +68 -5
- package/dist/pieces-DKOEzTAY.mjs.map +1 -0
- package/dist/src/packages/vite-loader.d.mts +6 -1
- package/dist/src/packages/vite-loader.d.mts.map +1 -1
- package/dist/src/packages/vite-loader.mjs +62 -3
- package/dist/src/packages/vite-loader.mjs.map +1 -1
- package/dist/{types-DcYyNcHJ.d.mts → types-DhxdSn22.d.mts} +24 -2
- package/dist/types-DhxdSn22.d.mts.map +1 -0
- package/package.json +14 -14
- package/dist/types-DcYyNcHJ.d.mts.map +0 -1
- package/dist/utils-Cm6WbGyq.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
-
import {
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e248ee6d-acc2-582e-963f-3c79e960dbd8")}catch(e){}}();
|
|
3
|
+
import { C as AuthEvaluationUnsupportedError, E as MalformedStoredOperationError, S as createAuthorizationService, T as ForbiddenError, _ as BaseSubgraph, a as piecesFromListModule, b as AuthorizationPolicy, c as buildGraphqlOperation, d as debounce, f as extractUpgradeManifests, g as loadSubgraphs, h as loadProcessors, i as pieceListLocation, l as buildGraphqlOperations, m as loadDocumentModels, o as buildGraphQlDocument, r as PIECE_SOURCE_LIST, s as buildGraphQlDriveDocument, u as isSubgraphClass, v as CanonicalDocumentIdResolutionError, w as AuthenticationRequiredError, x as AuthorizedDocumentHandle, y as createCanonicalDocumentIdResolver } from "./pieces-DKOEzTAY.mjs";
|
|
4
4
|
import { AnalyticsQueryEngine } from "@powerhousedao/analytics-engine-core";
|
|
5
5
|
import { AnalyticsModel, AnalyticsResolvers, typedefs } from "@powerhousedao/analytics-engine-graphql";
|
|
6
6
|
import { gql } from "graphql-tag";
|
|
7
7
|
import { GraphQLError, Kind, parse, print } from "graphql";
|
|
8
8
|
import { AuthEnforcementDisabledError, DEFAULT_DRIVE_CONTAINER_TYPES, DriveCollectionId, ModelReadGate, PropagationMode as PropagationMode$1, SyncScopeGate, consolidateSyncOperations, createReactorHostModuleBase, driveIdFromUrl, envelopesToSyncOperations, parseDriveUrl, readDecisionModel, syncOperationErrorType } from "@powerhousedao/reactor";
|
|
9
9
|
import { ConsoleLogger, childLogger, documentModelDocumentModelModule } from "document-model";
|
|
10
|
-
import path, { join } from "node:path";
|
|
10
|
+
import path, { isAbsolute, join } from "node:path";
|
|
11
11
|
import { match } from "path-to-regexp";
|
|
12
12
|
import posix from "node:path/posix";
|
|
13
13
|
import { Readable } from "node:stream";
|
|
14
|
-
import fs, { readFileSync, watchFile } from "node:fs";
|
|
14
|
+
import fs, { existsSync, readFileSync, watchFile } from "node:fs";
|
|
15
15
|
import { pipeline } from "node:stream/promises";
|
|
16
16
|
import { createHmac, randomBytes, timingSafeEqual } from "node:crypto";
|
|
17
|
+
import { pathToFileURL } from "node:url";
|
|
17
18
|
import { buildSubgraphSchema } from "@apollo/subgraph";
|
|
18
19
|
import { typeDefs } from "@powerhousedao/document-engineering/graphql";
|
|
19
20
|
import { camelCase, kebabCase, pascalCase } from "change-case";
|
|
@@ -3965,7 +3966,8 @@ async function collectHeldSyncOperations(syncOps, gate, subject, signal) {
|
|
|
3965
3966
|
* client ordinal the switchboard has successfully applied, so the client
|
|
3966
3967
|
* can trim its own outbox)
|
|
3967
3968
|
*/
|
|
3968
|
-
function pollSyncEnvelopes(syncManager, args, forbiddenIds = /* @__PURE__ */ new Set(), heldOpIds = /* @__PURE__ */ new Set()) {
|
|
3969
|
+
function pollSyncEnvelopes(syncManager, args, forbiddenIds = /* @__PURE__ */ new Set(), heldOpIds = /* @__PURE__ */ new Set(), gatedOpIds) {
|
|
3970
|
+
const isHeld = (syncOp) => heldOpIds.has(syncOp.id) || gatedOpIds !== void 0 && !gatedOpIds.has(syncOp.id);
|
|
3969
3971
|
let remote;
|
|
3970
3972
|
try {
|
|
3971
3973
|
remote = syncManager.getById(args.channelId);
|
|
@@ -3973,7 +3975,7 @@ function pollSyncEnvelopes(syncManager, args, forbiddenIds = /* @__PURE__ */ new
|
|
|
3973
3975
|
throw new GraphQLError(`Channel not found: ${error instanceof Error ? error.message : "Unknown error"}`);
|
|
3974
3976
|
}
|
|
3975
3977
|
remote.channel.notePoll();
|
|
3976
|
-
const deadLetters = remote.channel.deadLetter.items.filter((syncOp) => !forbiddenIds.has(syncOp.documentId) && !
|
|
3978
|
+
const deadLetters = remote.channel.deadLetter.items.filter((syncOp) => !forbiddenIds.has(syncOp.documentId) && !isHeld(syncOp)).map((syncOp) => ({
|
|
3977
3979
|
documentId: syncOp.documentId,
|
|
3978
3980
|
error: syncOp.error?.message ?? "Unknown error",
|
|
3979
3981
|
errorType: syncOperationErrorType(syncOp.error),
|
|
@@ -4022,7 +4024,7 @@ function pollSyncEnvelopes(syncManager, args, forbiddenIds = /* @__PURE__ */ new
|
|
|
4022
4024
|
hasMore = true;
|
|
4023
4025
|
break;
|
|
4024
4026
|
}
|
|
4025
|
-
if (
|
|
4027
|
+
if (isHeld(syncOp)) continue;
|
|
4026
4028
|
syncOp.deliveredCount ??= 0;
|
|
4027
4029
|
syncOp.emittedCount ??= 0;
|
|
4028
4030
|
while (syncOp.deliveredCount < syncOp.emittedCount && syncOp.operations[syncOp.deliveredCount].context.ordinal <= args.outboxLatest) syncOp.deliveredCount += 1;
|
|
@@ -6026,8 +6028,10 @@ var ReactorSubgraph = class extends BaseSubgraph {
|
|
|
6026
6028
|
if (await this.authorizationService.canRead(driveId, void 0)) await this.#collectForbiddenDocuments(remote.channel.outbox.items, forbiddenIds, ctx);
|
|
6027
6029
|
await this.#collectForbiddenDocuments(remote.channel.deadLetter.items, forbiddenIds, ctx);
|
|
6028
6030
|
}
|
|
6029
|
-
const
|
|
6030
|
-
const
|
|
6031
|
+
const gate = this.syncServingGate;
|
|
6032
|
+
const gated = gate ? [...remote.channel.outbox.items, ...remote.channel.deadLetter.items] : void 0;
|
|
6033
|
+
const heldOpIds = gate && gated ? await collectHeldSyncOperations(gated, gate, this.viewSubject(ctx)) : /* @__PURE__ */ new Set();
|
|
6034
|
+
const { envelopes, ackOrdinal, deadLetters, hasMore } = pollSyncEnvelopes(this.syncManager, args, forbiddenIds, heldOpIds, gated && new Set(gated.map((syncOp) => syncOp.id)));
|
|
6031
6035
|
return {
|
|
6032
6036
|
envelopes,
|
|
6033
6037
|
ackOrdinal,
|
|
@@ -6368,10 +6372,10 @@ const ADMIN_USERS = getAdminUsers();
|
|
|
6368
6372
|
//#endregion
|
|
6369
6373
|
//#region src/graphql/system/version.ts
|
|
6370
6374
|
function getVersion() {
|
|
6371
|
-
return "6.2.3-dev.
|
|
6375
|
+
return "6.2.3-dev.15";
|
|
6372
6376
|
}
|
|
6373
6377
|
function getGitHash() {
|
|
6374
|
-
return "
|
|
6378
|
+
return "33ef9b1d874d9bdd1c2a331b21dd653134abd90a";
|
|
6375
6379
|
}
|
|
6376
6380
|
function getGitUrl() {
|
|
6377
6381
|
return buildTreeUrl(getGitHash());
|
|
@@ -6425,6 +6429,8 @@ var HttpPackageLoader = class {
|
|
|
6425
6429
|
registryUrl;
|
|
6426
6430
|
logger = childLogger(["reactor-api", "http-loader"]);
|
|
6427
6431
|
name = "HttpPackageLoader";
|
|
6432
|
+
/** Said once: the reason is the loader's, not any one package's. */
|
|
6433
|
+
reportedNoPieces = false;
|
|
6428
6434
|
documentModelLoader;
|
|
6429
6435
|
constructor(options) {
|
|
6430
6436
|
this.registryUrl = options.registryUrl.endsWith("/") ? options.registryUrl : `${options.registryUrl}/`;
|
|
@@ -6498,6 +6504,13 @@ var HttpPackageLoader = class {
|
|
|
6498
6504
|
this.logger.verbose(`No processor factory found in ${packageName}`);
|
|
6499
6505
|
return null;
|
|
6500
6506
|
}
|
|
6507
|
+
loadPieces(packageSpec) {
|
|
6508
|
+
if (!this.reportedNoPieces) {
|
|
6509
|
+
this.reportedNoPieces = true;
|
|
6510
|
+
this.logger.info("Pieces are not served over HTTP, so @pkg and every other package loaded from the registry contributes none", packageSpec);
|
|
6511
|
+
}
|
|
6512
|
+
return Promise.resolve([]);
|
|
6513
|
+
}
|
|
6501
6514
|
/**
|
|
6502
6515
|
* Load document models from multiple packages.
|
|
6503
6516
|
* Continues loading even if some packages fail.
|
|
@@ -6597,6 +6610,7 @@ var HttpDocumentModelLoader = class {
|
|
|
6597
6610
|
var ImportPackageLoader = class {
|
|
6598
6611
|
logger = childLogger(["reactor-api", "import-loader"]);
|
|
6599
6612
|
name = "ImportPackageLoader";
|
|
6613
|
+
reportedUnbuilt = /* @__PURE__ */ new Set();
|
|
6600
6614
|
async loadDocumentModels(identifier) {
|
|
6601
6615
|
this.logger.verbose(`Loading document models from package: ${identifier}`);
|
|
6602
6616
|
const pkgModule = await loadDocumentModels(identifier);
|
|
@@ -6639,6 +6653,30 @@ var ImportPackageLoader = class {
|
|
|
6639
6653
|
this.logger.verbose(` ➜ No Processor Factory found: ${identifier}`);
|
|
6640
6654
|
return null;
|
|
6641
6655
|
}
|
|
6656
|
+
async loadPieces(identifier) {
|
|
6657
|
+
this.logger.verbose(`Loading pieces from package: ${identifier}`);
|
|
6658
|
+
const { root, listPath } = pieceListLocation(identifier);
|
|
6659
|
+
if (!existsSync(listPath)) {
|
|
6660
|
+
this.reportUnbuilt(identifier, root, listPath);
|
|
6661
|
+
return [];
|
|
6662
|
+
}
|
|
6663
|
+
const pieces = piecesFromListModule(await import(
|
|
6664
|
+
/* @vite-ignore */
|
|
6665
|
+
pathToFileURL(listPath).href
|
|
6666
|
+
), {
|
|
6667
|
+
root,
|
|
6668
|
+
identifier,
|
|
6669
|
+
logger: this.logger
|
|
6670
|
+
});
|
|
6671
|
+
this.logger.verbose(` ➜ Loaded ${pieces.length} Pieces from: ${identifier}`);
|
|
6672
|
+
return pieces;
|
|
6673
|
+
}
|
|
6674
|
+
reportUnbuilt(identifier, root, listPath) {
|
|
6675
|
+
if (!isAbsolute(identifier) || this.reportedUnbuilt.has(identifier)) return;
|
|
6676
|
+
if (!existsSync(join(root, PIECE_SOURCE_LIST))) return;
|
|
6677
|
+
this.reportedUnbuilt.add(identifier);
|
|
6678
|
+
this.logger.warn("@pkg declares pieces but @list was never built; run `ph build`", identifier, listPath);
|
|
6679
|
+
}
|
|
6642
6680
|
};
|
|
6643
6681
|
//#endregion
|
|
6644
6682
|
//#region src/packages/package-manager.ts
|
|
@@ -6654,10 +6692,12 @@ var ImportPackageLoader = class {
|
|
|
6654
6692
|
* either bare (`'pkg'`) or as a subpath (`'pkg/subgraphs'`), since loaders
|
|
6655
6693
|
* import sub-entries like `${pkg}/subgraphs` / `${pkg}/document-models`.
|
|
6656
6694
|
*/
|
|
6657
|
-
function isExpectedLoaderMiss(error, pkg) {
|
|
6695
|
+
function isExpectedLoaderMiss(error, pkg, subPath) {
|
|
6658
6696
|
if (!(error instanceof Error)) return false;
|
|
6659
6697
|
const code = error.code;
|
|
6660
6698
|
if (code === "ERR_UNSUPPORTED_DIR_IMPORT") return true;
|
|
6699
|
+
if (code === "ERR_PACKAGE_PATH_NOT_EXPORTED" && subPath !== void 0 && error.message.includes(`'./${subPath}'`)) return true;
|
|
6700
|
+
if (subPath !== void 0 && new RegExp(`^Failed to fetch \\S*/${subPath}/index\\.mjs: 404$`).test(error.message)) return true;
|
|
6661
6701
|
if (error.message.startsWith("Invalid package name:")) return true;
|
|
6662
6702
|
if (code === "ERR_MODULE_NOT_FOUND") return error.message.includes(`'${pkg}'`) || error.message.includes(`"${pkg}"`) || error.message.includes(`'${pkg}/`) || error.message.includes(`"${pkg}/`);
|
|
6663
6703
|
return false;
|
|
@@ -6679,6 +6719,7 @@ var PackageManager = class {
|
|
|
6679
6719
|
upgradeManifestsMap = /* @__PURE__ */ new Map();
|
|
6680
6720
|
subgraphsMap = /* @__PURE__ */ new Map();
|
|
6681
6721
|
processorMap = /* @__PURE__ */ new Map();
|
|
6722
|
+
piecesMap = /* @__PURE__ */ new Map();
|
|
6682
6723
|
configWatcher;
|
|
6683
6724
|
debouncedUpdateCallbacks = /* @__PURE__ */ new Map();
|
|
6684
6725
|
eventEmitter = new EventEmitter();
|
|
@@ -6697,10 +6738,12 @@ var PackageManager = class {
|
|
|
6697
6738
|
const upgradeManifestsMap = await this.loadUpgradeManifests(packages);
|
|
6698
6739
|
const subgraphsMap = await this.loadSubgraphs(packages);
|
|
6699
6740
|
const processorsMap = await this.loadProcessors(packages);
|
|
6741
|
+
const piecesMap = await this.loadPieces(packages);
|
|
6700
6742
|
this.upgradeManifestsMap = upgradeManifestsMap;
|
|
6701
6743
|
this.updatePackagesMap(documentModelsMap);
|
|
6702
6744
|
this.updateSubgraphsMap(subgraphsMap);
|
|
6703
6745
|
this.updateProcessorsMap(processorsMap);
|
|
6746
|
+
this.updatePiecesMap(piecesMap);
|
|
6704
6747
|
try {
|
|
6705
6748
|
this.subscribePackages(packages);
|
|
6706
6749
|
} catch (error) {
|
|
@@ -6710,7 +6753,8 @@ var PackageManager = class {
|
|
|
6710
6753
|
documentModels: getUniqueDocumentModels(...Array.from(documentModelsMap.values())),
|
|
6711
6754
|
upgradeManifests: this.getUniqueUpgradeManifests(),
|
|
6712
6755
|
subgraphs: subgraphsMap,
|
|
6713
|
-
processors: processorsMap
|
|
6756
|
+
processors: processorsMap,
|
|
6757
|
+
pieces: piecesMap
|
|
6714
6758
|
};
|
|
6715
6759
|
}
|
|
6716
6760
|
async loadDocumentModels(packages) {
|
|
@@ -6810,9 +6854,34 @@ var PackageManager = class {
|
|
|
6810
6854
|
}
|
|
6811
6855
|
return processorsMap;
|
|
6812
6856
|
}
|
|
6857
|
+
async loadPieces(packages) {
|
|
6858
|
+
this.logger.debug(`Loading pieces from packages: ${packages.join(", ")}`);
|
|
6859
|
+
const piecesMap = /* @__PURE__ */ new Map();
|
|
6860
|
+
for (const pkg of packages) {
|
|
6861
|
+
const allPieces = [];
|
|
6862
|
+
const failures = [];
|
|
6863
|
+
let succeeded = false;
|
|
6864
|
+
for (const loader of this.loaders) try {
|
|
6865
|
+
allPieces.push(...await loader.loadPieces(pkg));
|
|
6866
|
+
succeeded = true;
|
|
6867
|
+
break;
|
|
6868
|
+
} catch (error) {
|
|
6869
|
+
failures.push({
|
|
6870
|
+
loader: loader.name,
|
|
6871
|
+
error
|
|
6872
|
+
});
|
|
6873
|
+
this.logger.debug(`[${loader.name}] Failed to load pieces from package ${pkg}`, error);
|
|
6874
|
+
}
|
|
6875
|
+
this.maybeWarnAllLoadersFailed("pieces", pkg, succeeded, failures);
|
|
6876
|
+
if (allPieces.length > 0) this.logger.info("Loaded @count piece(s) from package @pkg: @pieces", allPieces.length, pkg, allPieces.map((piece) => piece.name).join(", "));
|
|
6877
|
+
piecesMap.set(pkg, allPieces);
|
|
6878
|
+
}
|
|
6879
|
+
return piecesMap;
|
|
6880
|
+
}
|
|
6813
6881
|
maybeWarnAllLoadersFailed(kind, pkg, succeeded, failures) {
|
|
6814
6882
|
if (succeeded || failures.length === 0) return;
|
|
6815
|
-
const
|
|
6883
|
+
const subPath = kind === "document models" ? "document-models" : kind;
|
|
6884
|
+
const realFailures = failures.filter(({ error }) => !isExpectedLoaderMiss(error, pkg, subPath));
|
|
6816
6885
|
if (realFailures.length === 0) return;
|
|
6817
6886
|
const details = realFailures.map(({ loader, error }) => {
|
|
6818
6887
|
return ` [${loader}] ${error instanceof Error ? error.message : String(error)}`;
|
|
@@ -6852,6 +6921,15 @@ var PackageManager = class {
|
|
|
6852
6921
|
else processorsMap.set(pkg, pkgProcessors);
|
|
6853
6922
|
this.updateProcessorsMap(processorsMap);
|
|
6854
6923
|
}
|
|
6924
|
+
async updatePiecesForPackage(pkg) {
|
|
6925
|
+
this.logger.debug(`Updating pieces for package: ${pkg}`);
|
|
6926
|
+
const pieces = await this.loadPieces([pkg]);
|
|
6927
|
+
const piecesMap = new Map(this.piecesMap);
|
|
6928
|
+
const pkgPieces = pieces.get(pkg) ?? [];
|
|
6929
|
+
if (pkgPieces.length === 0) piecesMap.delete(pkg);
|
|
6930
|
+
else piecesMap.set(pkg, pkgPieces);
|
|
6931
|
+
this.updatePiecesMap(piecesMap);
|
|
6932
|
+
}
|
|
6855
6933
|
/** Debounced per key so repeated subscribePackages calls reuse one timer. */
|
|
6856
6934
|
getDebouncedUpdateCallback(key, update) {
|
|
6857
6935
|
if (!this.debouncedUpdateCallbacks.has(key)) {
|
|
@@ -6870,10 +6948,12 @@ var PackageManager = class {
|
|
|
6870
6948
|
const onDocumentModels = this.getDebouncedUpdateCallback(`${pkg}:document-models`, () => this.updateDocumentModelsForPackage(pkg));
|
|
6871
6949
|
const onSubgraphs = this.getDebouncedUpdateCallback(`${pkg}:subgraphs`, () => this.updateSubgraphsForPackage(pkg));
|
|
6872
6950
|
const onProcessors = this.getDebouncedUpdateCallback(`${pkg}:processors`, () => this.updateProcessorsForPackage(pkg));
|
|
6951
|
+
const onPieces = this.getDebouncedUpdateCallback(`${pkg}:pieces`, () => this.updatePiecesForPackage(pkg));
|
|
6873
6952
|
for (const loader of this.loaders) {
|
|
6874
6953
|
if (loader.onDocumentModelsChange) unsubs.push(loader.onDocumentModelsChange(pkg, onDocumentModels));
|
|
6875
6954
|
if (loader.onSubgraphsChange) unsubs.push(loader.onSubgraphsChange(pkg, onSubgraphs));
|
|
6876
6955
|
if (loader.onProcessorsChange) unsubs.push(loader.onProcessorsChange(pkg, onProcessors));
|
|
6956
|
+
if (loader.onPiecesChange) unsubs.push(loader.onPiecesChange(pkg, onPieces));
|
|
6877
6957
|
}
|
|
6878
6958
|
}
|
|
6879
6959
|
return () => {
|
|
@@ -6921,6 +7001,19 @@ var PackageManager = class {
|
|
|
6921
7001
|
this.processorMap = processorsMap;
|
|
6922
7002
|
this.eventEmitter.emit("processorsChange", processorsMap);
|
|
6923
7003
|
}
|
|
7004
|
+
updatePiecesMap(piecesMap) {
|
|
7005
|
+
const oldPackages = Array.from(this.piecesMap.keys());
|
|
7006
|
+
const newPackages = Array.from(piecesMap.keys());
|
|
7007
|
+
oldPackages.filter((pkg) => !newPackages.includes(pkg)).forEach((pkg) => {
|
|
7008
|
+
this.logger.info("Removed pieces from: @pkg", pkg);
|
|
7009
|
+
});
|
|
7010
|
+
this.piecesMap = piecesMap;
|
|
7011
|
+
this.eventEmitter.emit("piecesChange", piecesMap);
|
|
7012
|
+
}
|
|
7013
|
+
/** The pieces every loaded package ships, keyed by the package. */
|
|
7014
|
+
getPieces() {
|
|
7015
|
+
return new Map(this.piecesMap);
|
|
7016
|
+
}
|
|
6924
7017
|
/**
|
|
6925
7018
|
* Remove `pkg` from all package maps and emit the change events, tearing
|
|
6926
7019
|
* down everything the package registered (subgraphs, processors, document
|
|
@@ -6939,9 +7032,11 @@ var PackageManager = class {
|
|
|
6939
7032
|
this.upgradeManifestsMap = dropKey(this.upgradeManifestsMap);
|
|
6940
7033
|
this.subgraphsMap = dropKey(this.subgraphsMap);
|
|
6941
7034
|
this.processorMap = dropKey(this.processorMap);
|
|
7035
|
+
this.piecesMap = dropKey(this.piecesMap);
|
|
6942
7036
|
this.updatePackagesMap(this.docModelsMap);
|
|
6943
7037
|
this.updateSubgraphsMap(this.subgraphsMap);
|
|
6944
7038
|
this.updateProcessorsMap(this.processorMap);
|
|
7039
|
+
this.updatePiecesMap(this.piecesMap);
|
|
6945
7040
|
}
|
|
6946
7041
|
onDocumentModelsChange(handler) {
|
|
6947
7042
|
this.eventEmitter.on("documentModelsChange", handler);
|
|
@@ -6952,6 +7047,9 @@ var PackageManager = class {
|
|
|
6952
7047
|
onProcessorsChange(handler) {
|
|
6953
7048
|
this.eventEmitter.on("processorsChange", handler);
|
|
6954
7049
|
}
|
|
7050
|
+
onPiecesChange(handler) {
|
|
7051
|
+
this.eventEmitter.on("piecesChange", handler);
|
|
7052
|
+
}
|
|
6955
7053
|
};
|
|
6956
7054
|
//#endregion
|
|
6957
7055
|
//#region src/config.ts
|
|
@@ -8583,4 +8681,4 @@ var PackageManagementService = class {
|
|
|
8583
8681
|
export { ADMIN_USERS, ActionCandidateInputSchema, ActionContextInputSchema, ActionInputSchema, AddRelationshipDocument, AnalyticsSubgraph, AttachmentAccessService, AuthDecision, AuthDecisionSchema, AuthEvaluationUnsupportedError, AuthService, AuthSubgraph, AuthenticationRequiredError, AuthorizationPolicy, AuthorizedDocumentHandle, BaseSubgraph, CORE_PACKAGE_NAME, CanonicalDocumentIdResolutionError, ChannelMetaInputSchema, CreateDocumentDocument, CreateEmptyDocumentDocument, DeleteDocumentDocument, DeleteDocumentsDocument, DocumentChangeType, DocumentChangeTypeSchema, DocumentChangesDocument, DocumentOperationsFilterInputSchema, DocumentPermissionService, DocumentRelationshipFieldsFragmentDoc, EvaluateActionsDocument, FindDocumentsDocument, ForbiddenError, GetDocumentDocument, GetDocumentIncomingRelationshipEdgesDocument, GetDocumentIncomingRelationshipsDocument, GetDocumentModelsDocument, GetDocumentOperationsDocument, GetDocumentOutgoingRelationshipEdgesDocument, GetDocumentOutgoingRelationshipsDocument, GetDocumentWithOperationsDocument, GetJobStatusDocument, GraphQLManager, HttpDocumentModelLoader, HttpPackageLoader, HttpRouteService, ImportPackageLoader, InMemoryPackageStorage, InvalidNamespaceError, JobChangesDocument, MalformedStoredOperationError, MemoryWebhookStore, MoveRelationshipDocument, MutateDocumentAsyncDocument, MutateDocumentDocument, OperationContextInputSchema, OperationInputSchema, OperationWithContextInputSchema, OperationsFilterInputSchema, PACKAGE_ROUTE_SEGMENT, PGLITE_UTC_PARSERS, PackageManagementService, PackageManager, PackagesSubgraph, PagingInputSchema, PhDocumentFieldsFragmentDoc, PollSyncEnvelopesDocument, PropagationMode, PropagationModeSchema, PushSyncEnvelopesDocument, ReactorSignerAppInputSchema, ReactorSignerInputSchema, ReactorSignerUserInputSchema, ReactorSubgraph, RelationalWebhookStore, RemoteCursorInputSchema, RemoteFilterInputSchema, RemoveRelationshipDocument, RenameDocumentDocument, SearchFilterInputSchema, SetPreferredEditorDocument, SyncEnvelopeInputSchema, SyncEnvelopeType, SyncEnvelopeTypeSchema, SystemSubgraph, TouchChannelDocument, TouchChannelInputSchema, UpdateRelationshipDocument, ViewFilterInputSchema, WEBHOOK_SEGMENT, WS_AUTH_CLOSE_REASONS, WS_CLOSE_REASON_AUTHENTICATION_REQUIRED, WS_CLOSE_REASON_BEARER_REJECTED, WebhookService, assertAuthRequiredForDocumentPermissions, assertCredentialVerifierForSource, assertHostMountPath, assertRequireAuthenticatedCallerAllowed, assertSkipCredentialVerificationAllowed, buildGraphQlDocument, buildGraphQlDriveDocument, buildGraphqlOperation, buildGraphqlOperations, buildSubgraphSchemaModule, createAuthFetchMiddleware, createCanonicalDocumentIdResolver, createGatewayAdapter, createHttpAdapter, createMergedSchema, createReactorGraphQLClient, createRenownCredentialVerifier, createSchema, createWsAuthHandlers, decodeExplorerUrlState, definedNonNullAnySchema, driveIdFromUrl, extractSubgraphsFromModule, generateDocumentModelSchema, getAuthContext, getDbClient, getDocumentModelSchemaName, getDocumentModelTypeDefs, getExplorerPrefix, getGitHash, getGitUrl, getSdk, getUniqueDocumentModels, getUniqueUpgradeManifests, getVersion, initAnalyticsStoreSql, initializeAndStartAPI, isDefinedNonNullAny, isExpectedLoaderMiss, isSubgraphClass, namespacePath, namespaceSegments, newWebhookToken, parseDriveUrl, parseWebhookBody, redactHeaders, renderGraphqlPlayground, resolvePackageName, resolveRenownConfig, verifyWebhook };
|
|
8584
8682
|
|
|
8585
8683
|
//# sourceMappingURL=index.mjs.map
|
|
8586
|
-
//# debugId=
|
|
8684
|
+
//# debugId=e248ee6d-acc2-582e-963f-3c79e960dbd8
|