@powerhousedao/shared 6.2.3-dev.57 → 6.2.3-dev.59
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/clis/args/{help-DS1NlcJQ.mjs → help-BfAqpYvC.mjs} +29 -2
- package/dist/clis/args/help-BfAqpYvC.mjs.map +1 -0
- package/dist/clis/args/{help-DVPTARGn.d.mts → help-KuqI-EEG.d.mts} +16 -3
- package/dist/clis/args/help-KuqI-EEG.d.mts.map +1 -0
- package/dist/clis/args/help.d.mts +1 -1
- package/dist/clis/args/help.mjs +1 -1
- package/dist/clis/args/index.d.mts +1 -1
- package/dist/clis/args/index.mjs +1 -1
- package/dist/clis/args/run-CYp5t1xU.mjs +28 -0
- package/dist/clis/args/run-CYp5t1xU.mjs.map +1 -0
- package/dist/clis/args/run.d.mts +18 -0
- package/dist/clis/args/run.d.mts.map +1 -0
- package/dist/clis/args/run.mjs +2 -0
- package/dist/clis/build-pieces.d.mts +1 -1
- package/dist/clis/command-names.d.mts +1 -1
- package/dist/clis/command-names.mjs +1 -0
- package/dist/clis/command-names.mjs.map +1 -1
- package/dist/clis/constants.d.mts +1 -1
- package/dist/clis/feature-flags.d.mts +17 -0
- package/dist/clis/feature-flags.d.mts.map +1 -0
- package/dist/clis/feature-flags.mjs +21 -0
- package/dist/clis/feature-flags.mjs.map +1 -0
- package/dist/clis/index.d.mts +27 -3
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +51 -1
- package/dist/clis/index.mjs.map +1 -1
- package/dist/clis/{types-BZBiwi6I.d.mts → types-CvKkAvq4.d.mts} +12 -1
- package/dist/clis/{types-BZBiwi6I.d.mts.map → types-CvKkAvq4.d.mts.map} +1 -1
- package/dist/{config-loader-DpeoExZO.js → config-loader-DBJolZd0.js} +9 -1
- package/dist/{config-loader-DpeoExZO.js.map → config-loader-DBJolZd0.js.map} +1 -1
- package/dist/connect/config-loader.d.ts +7 -1
- package/dist/connect/config-loader.d.ts.map +1 -1
- package/dist/connect/config-loader.js +1 -1
- package/dist/connect/index.d.ts +1 -1
- package/dist/connect/index.js +1 -1
- package/dist/document-drive/index.d.ts +3 -3
- package/dist/document-model/errors.d.ts +1 -1
- package/dist/document-model/index.d.ts +1 -1
- package/dist/{index-C3fD6cad.d.ts → index-Bv7Q0YM4.d.ts} +2 -2
- package/dist/{index-C3fD6cad.d.ts.map → index-Bv7Q0YM4.d.ts.map} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/processors/index.d.ts +1 -1
- package/dist/registry/index.d.ts +2 -2
- package/dist/registry/manifest-slim.d.ts +2 -2
- package/dist/{types-DDH6v2BE.d.ts → types-BUqiKtkv.d.ts} +13 -2
- package/dist/{types-DDH6v2BE.d.ts.map → types-BUqiKtkv.d.ts.map} +1 -1
- package/dist/{types-CywupGpk.d.ts → types-CfJnFDjg.d.ts} +2 -2
- package/dist/{types-CywupGpk.d.ts.map → types-CfJnFDjg.d.ts.map} +1 -1
- package/package.json +5 -1
- package/dist/clis/args/help-DS1NlcJQ.mjs.map +0 -1
- package/dist/clis/args/help-DVPTARGn.d.mts.map +0 -1
|
@@ -417,7 +417,18 @@ type PHConnectPwa = {
|
|
|
417
417
|
/** Extra SPA-fallback denylist patterns, unioned with the built-in list. */
|
|
418
418
|
navigateFallbackDenylist?: PHConnectPwaUrlPattern[];
|
|
419
419
|
};
|
|
420
|
+
/** One entry of the host.js composition, projected into the served config as
|
|
421
|
+
* DATA (module specifier + validated config) — the browser pipeline resolves
|
|
422
|
+
* and runs them (rewire R3). Verb filtering happens at the runner. */
|
|
423
|
+
type PHConnectCompositionEntry = {
|
|
424
|
+
module: string;
|
|
425
|
+
config?: Record<string, unknown>;
|
|
426
|
+
};
|
|
420
427
|
type PHConnectRuntimeConfig = {
|
|
428
|
+
/** The plugin composition this Connect boots with (rewire R3): present
|
|
429
|
+
* only when the host file declares runner.plugins — absent means the
|
|
430
|
+
* classic defaults. */
|
|
431
|
+
composition?: PHConnectCompositionEntry[];
|
|
421
432
|
branding?: PHConnectBranding;
|
|
422
433
|
app?: PHConnectApp;
|
|
423
434
|
ai?: PHConnectAi;
|
|
@@ -552,4 +563,4 @@ type Manifest = z.infer<typeof ManifestSchema>;
|
|
|
552
563
|
//#endregion
|
|
553
564
|
export { PH_GLOBAL_PROJECT_NAME as A, SERVICE_ACTIONS as B, LEGACY_LINT_FORMAT_DEPENDENCIES as C, PEER_EXTERNAL_DEPENDENCIES as D, MINIMUM_NODE_VERSION as E, PROJECT_PORT_BAND_STUDIO as F, externalDependencies as G, VERSIONED_DEV_DEPENDENCIES as H, PROJECT_PORT_BAND_SWITCHBOARD as I, packageScripts as J, externalDevDependencies as K, PROJECT_PORT_BAND_VETRA_CONNECT as L, POWERHOUSE_CONFIG_FILE as M, POWERHOUSE_GLOBAL_DIR as N, PH_BIN as O, PROJECT_PORT_BAND_SIZE as P, REACTOR_API_PACKAGE as R, HOME_DIR as S, LOG_LEVELS as T, VERSIONED_PEER_DEPENDENCIES as U, VERSIONED_DEPENDENCIES as V, defaultManifest as W, DEFAULT_VETRA_DRIVE_ID as _, DEFAULT_CONFIG as a, GRAPHQL_PACKAGE as b, DEFAULT_CONNECT_STUDIO_PORT as c, DEFAULT_EXPIRY_SECONDS as d, DEFAULT_REGISTRY_URL as f, DEFAULT_VETRA_CONNECT_PORT as g, DEFAULT_TIMEOUT as h, BOILERPLATE_DEPENDENCY_OVERRIDES as i, PIECES_FRAMEWORK_PACKAGE as j, PH_GLOBAL_DIR_NAME as k, DEFAULT_DRIVE_ICON as l, DEFAULT_SWITCHBOARD_PORT as m, ANALYTICS_ENGINE_CORE_PACKAGE as n, DEFAULT_CONNECT_OUTDIR as o, DEFAULT_RENOWN_URL as p, packageJsonExports as q, BOILERPLATE_ALLOWED_BUILDS as r, DEFAULT_CONNECT_PREVIEW_PORT as s, Manifest as t, DEFAULT_EXPIRY_DAYS as u, DRIVES_PRESERVE_STRATEGIES as v, LEGACY_LINT_FORMAT_FILES as w, GRAPHQL_TAG_PACKAGE as x, FEATURE_DEPENDENCIES as y, SECONDS_IN_DAY as z };
|
|
554
565
|
export {};
|
|
555
|
-
//# sourceMappingURL=types-
|
|
566
|
+
//# sourceMappingURL=types-CvKkAvq4.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-CvKkAvq4.d.mts","names":[],"sources":["../../clis/constants.ts","../../clis/types.ts","../../document-model/schemas.ts","../../document-model/types.ts"],"mappings":";;;;;;;cAKa;cAQA;cACA;cACA;cAEA;cAKA;cAQA;cAEA;cAEA;cAEA;cAEA;cAEA;cAEA;cAEA;cAqBA;cACA;cACA;cACA;;;;;;;;;;;;cAaA;cAGA;cAEA;cACA;cACA;cACA;cAEA;cAEA;cAEA;cAGA;cAOA;cACA;cAEA;cACA;cACA;cAQA;;aACU;aAAa;;;aACT;aAAY;;;aAC5B;aAAa;;;aACP;aAAa;;;aACrB;aAAY;;;cAKR;;aAET;aACA;aACA;;;aAKA;aACA;aACA;;;cAWS;cAUA;cAiBA;WACC;WACN;WACI;;cAGC;cAeA;WACX;aACE;aACA;aACA;;WAEF;aACE;aACA;;WAEF;aACE;aACA;aACA;;WAEF;aACE;aACA;aACA;;WAEF;aACE;aACA;aACA;;WAEF;aACE;aACA;aACA;;WAEF;aACE;aACA;;WAEF;aACE;aACA;aACA;;WAKF;aACE;aACA;;WAEF;aACE;aACA;;WAEF;WACA;;cAGW;WACX;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WAEA;;cAIW;cAIA;cAcA;cAwBA;WACX;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;cAGW,iBAAiB;cAuBjB,gBAAgB;;;KC5VjB,iCAAiC;KACjC,wBAAwB;KACxB,mBAAmB;KACnB,WAAW;KAOX;KAGA;EACV;EACA;EACA,WAAW;EACX;;KAGU;EACV;EACA;;KAGU;EACV;EACA;EACA;;KAGU;;EAEV;;EAEA;EACA;EACA;;EAEA;;KAGU,wBACR,8BACA;KAEQ;EACV;EACA;EACA;;KAGU;EACV,SAAS;EACT,QAAQ;;KAGE;EACV;EACA,gBAAgB;EAChB,mBAAmB;EACnB,WAAW;;KAGD;EACV;EACA;EACA;EAGA;EAKA;;KAGU;;EAEV;;KAGU;EACV;;EAEA;;KAGU;;EAEV;;EAEA;;KAGU;;EAEV;;EAEA;;EAEA;;KAGU;EACV,UAAU;EACV,QAAQ;;KAGE;EACV;EACA;EACA;;EAEA;;EAEA;;EAEA,WAAW;;KAGD;;EAEV;;EAEA;;EAEA;;KAGU;;EAEV;;EAEA;;EAEA;;EAEA;;KAGU;EACV;EACA;;EAEA;;;;KAKU;;EAEV;;EAEA;;EAEA;;EAEA;;KAGU;EACV,eAAe;;EAEf;;EAEA;;;;;;;;;;KAWU;EAEN;EAAgB;;KAEV;;KAQA;EACV,YAAY;EACZ,SAAS;EACT;EACA;IACE;;;IAGA;IACA;MAAe;MAAqB;;IACpC;MACE;MACA,UAAU;;;;KAKJ;EACV;EACA;EACA;EACA;;;;;;;;;KAUU;;EAEV,QAAQ;;EAER,QAAQ;EACR;;;KAIU;EACV;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ;;EAER,gBAAgB;;EAEhB;IACE;;;;;EASF;;;;;;;;;;;;KAaU;EACV,WAAW;;EAEX;;EAEA;;EAEA;;EAEA,iBAAiB;;EAEjB,2BAA2B;;;;;KAMjB;EACV;EACA,SAAS;;KAGC;;;;EAIV,cAAc;EACd,WAAW;EACX,MAAM;EACN,KAAK;EACL,WAAW;EACX,SAAS;EACT,SAAS;EACT,SAAS;EACT,YAAY;EACZ,WAAW;EACX,UAAU;EACV,MAAM;;;KAII;;;EAGV;;EAEA;;EAEA;;KAGU;EAEV,UAAU;EACV;EACA;EACA;EACA;EACA;EACA;EAGA;EACA;EACA;IACE;IACA;MAIM;MACA;;IAEN;MACE;MACA;MACA;;;EAGJ;IACE;IACA;IACA,SAAS;;EAEX;IACE;MACE;;IAEF;;EAEF;IACE;IACA;IACA;IACA;;EAEF,WAAW;EACX;IACE;IACA;IACA;;EAIF;IACE;;EAEF;EACA,UAAU;;;;cC+dC,gBAAc,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoBzB,EAAA,KAAA;;;KC40BU,WAAW,EAAE,aAAa"}
|
|
@@ -144,6 +144,14 @@ var ConfigLoader = class {
|
|
|
144
144
|
return this.cache;
|
|
145
145
|
}
|
|
146
146
|
/**
|
|
147
|
+
* Replace the cached config — used by the plugin pipeline (rewire R3) to
|
|
148
|
+
* install the composition-transformed config so every later getCached()
|
|
149
|
+
* reader sees it. Call only during boot, before the app graph imports.
|
|
150
|
+
*/
|
|
151
|
+
prime(config) {
|
|
152
|
+
this.cache = config;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
147
155
|
* Returns the cached config synchronously. Throws if `read()` has not
|
|
148
156
|
* resolved yet — matches Connect's `getRuntimeConfig()` shape.
|
|
149
157
|
*/
|
|
@@ -170,4 +178,4 @@ var ConfigLoader = class {
|
|
|
170
178
|
//#endregion
|
|
171
179
|
export { DEFAULT_CONNECT_CONFIG as a, workflowsSettingConflict as i, deepMerge as n, buildRuntimeConfig as o, resolveSourceConnect as r, ConfigLoader as t };
|
|
172
180
|
|
|
173
|
-
//# sourceMappingURL=config-loader-
|
|
181
|
+
//# sourceMappingURL=config-loader-DBJolZd0.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-loader-DpeoExZO.js","names":[],"sources":["../connect/runtime-config.ts","../connect/config-loader.ts"],"sourcesContent":["import type {\n PHConnectRuntimeConfig,\n PowerhouseConfig,\n PowerhousePackage,\n} from \"../clis/types.js\";\n\nexport type RuntimePowerhouseConfig = {\n schemaVersion: 2;\n packages: PowerhousePackage[];\n packageRegistryUrl?: string;\n localPackage: { name: string; version: string } | null;\n connect: PHConnectRuntimeConfig;\n};\n\n/** Defaults for every field Connect reads at runtime, merged into the\n * `connect.*` block at boot; also the dist emitter's and the scaffold's base. */\nexport const DEFAULT_CONNECT_CONFIG: PHConnectRuntimeConfig = {\n branding: {\n appName: \"Powerhouse Connect\",\n homeBackground: null,\n },\n app: {\n logLevel: \"info\",\n basePath: \"/\",\n offline: true,\n studioMode: false,\n },\n ai: {\n assistantEnabled: false,\n },\n packages: {\n externalEnabled: true,\n liveReload: false,\n },\n drives: {\n allowAddDrive: true,\n defaultDrives: [],\n sections: {\n remote: { enabled: true, allowAdd: true, allowDelete: true },\n local: { enabled: true, allowAdd: true, allowDelete: true },\n },\n },\n renown: {\n url: \"https://www.renown.id\",\n networkId: \"eip155\",\n chainId: 1,\n },\n sentry: {\n // `dsn: null` is the disabled-Sentry state — the SPA never loads the\n // Sentry SDK chunk. Override via `ph connect config --sentry-dsn ...`\n // or by including `connect.sentry.dsn` in PH_CONNECT_CONFIG_JSON.\n dsn: null,\n env: \"dev\",\n tracing: false,\n },\n openPanel: {\n // An empty `clientId` keeps OpenPanel disabled. Enable it per deploy by\n // including `connect.openPanel.clientId` in PH_CONNECT_CONFIG_JSON.\n // `apiUrl` has no default: unset means OpenPanel's hosted API.\n clientId: \"\",\n trackUiEvents: true,\n trackOperations: true,\n },\n instance: {\n namespace: null,\n reactorWorker: false,\n multiReactor: false,\n },\n reactor: {\n featureFlags: {\n documentDecisions: false,\n authEnforcement: false,\n authGroups: false,\n authConditions: false,\n },\n createSignaturePolicy: \"v2-required\",\n unsupportedStoredDocuments: \"refuse\",\n },\n};\n\nexport function buildRuntimeConfig(\n source: Pick<PowerhouseConfig, \"packages\" | \"connect\" | \"packageRegistryUrl\">,\n projectInfo: { name: string; version: string } | null,\n): RuntimePowerhouseConfig {\n const result: RuntimePowerhouseConfig = {\n schemaVersion: 2,\n packages: source.packages ?? [],\n localPackage: projectInfo,\n connect: source.connect ?? {},\n };\n if (\n typeof source.packageRegistryUrl === \"string\" &&\n source.packageRegistryUrl !== \"\"\n ) {\n result.packageRegistryUrl = source.packageRegistryUrl;\n }\n return result;\n}\n","// Environment-neutral config loader. Wraps a `ConfigAdapter` (the IO layer)\n// with in-process caching and deep-merge-with-defaults reads.\n//\n// No validation. The loader trusts that whatever bytes the adapter returns\n// can be merged into the default Connect config; missing or partial fields\n// fall back to DEFAULT_CONNECT_CONFIG, so the SPA always sees a complete\n// `connect.*` block.\n//\n// Top-level fields outside `connect.*` (e.g. `studio.port` in the source\n// powerhouse.config.json) pass through untouched on both read and write.\n// They're not Connect's concern, but a write-back round-trip preserves\n// them so editing tools don't accidentally drop them.\n\nimport { isPlainObject } from \"remeda\";\nimport type {\n PHConnectRuntimeConfig,\n PowerhouseConfig,\n} from \"../clis/types.js\";\nimport { DEFAULT_CONNECT_CONFIG } from \"./runtime-config.js\";\n\n/** Recursive Partial. Arrays are leaves — `write({ packages: [...] })`\n * replaces the array, it doesn't merge. */\nexport type DeepPartial<T> =\n T extends Array<infer U>\n ? Array<U>\n : T extends object\n ? { [K in keyof T]?: DeepPartial<T[K]> }\n : T;\n\n/**\n * Shape returned by `ConfigLoader.read()`. The loader is Connect-scoped:\n * it guarantees `connect` is present and fully populated from\n * DEFAULT_CONNECT_CONFIG, but lets any other top-level fields pass\n * through unchanged so source-config-only fields (studio, reactor, auth,\n * documentModelsDir, etc.) survive a read+write round-trip.\n */\nexport type ConfigShape = Record<string, unknown> & {\n connect: PHConnectRuntimeConfig;\n};\n\n/**\n * Abstract IO layer for `powerhouse.config.json`.\n *\n * Implementations decide where bytes come from and go to. The shipped\n * adapter is `JsonConfigAdapter` (reads via fetch in the browser, fs in\n * Node; writes via fs in Node, throws in the browser). Future adapters\n * (remote-JSON, GraphQL) plug in without changing the loader or any\n * consumer.\n */\nexport interface ConfigAdapter {\n /** Read raw JSON-parsed payload from the backing store. */\n read(): Promise<unknown>;\n /** Persist a fully-formed config. */\n write(next: ConfigShape): Promise<void>;\n /** Human-readable description used in errors and logs. */\n readonly source: string;\n}\n\n/**\n * Deep-merge `patch` into `base`. Object fields recurse; arrays and\n * primitives replace. `undefined` in patch leaves the base value\n * untouched (no unset). `null` in patch overwrites with null.\n *\n * Exported for unit tests; consumers use ConfigLoader.write() which\n * applies this internally.\n */\nexport function deepMerge<T>(base: T, patch: DeepPartial<T>): T {\n if (!isPlainObject(base) || !isPlainObject(patch)) {\n return patch as T;\n }\n const result: Record<string, unknown> = { ...base };\n for (const [key, patchValue] of Object.entries(patch)) {\n if (patchValue === undefined) continue;\n const baseValue = result[key];\n if (isPlainObject(baseValue) && isPlainObject(patchValue)) {\n result[key] = deepMerge(\n baseValue,\n patchValue as DeepPartial<typeof baseValue>,\n );\n } else {\n result[key] = patchValue;\n }\n }\n return result as T;\n}\n\n/**\n * The effective `connect.*` block of a source `powerhouse.config.json`:\n * defaults < project-wide settings Connect follows < `connect.*`. So\n * `connect.app.workflowsEnabled` falls back to `workflows.enabled`, and\n * wins when set.\n */\nexport function resolveSourceConnect(\n source: Pick<PowerhouseConfig, \"connect\" | \"workflows\">,\n defaults: PHConnectRuntimeConfig = DEFAULT_CONNECT_CONFIG,\n): PHConnectRuntimeConfig {\n const projectWide = deepMerge(defaults, {\n app: { workflowsEnabled: source.workflows?.enabled },\n });\n return deepMerge(projectWide, source.connect ?? {});\n}\n\n// Projects scaffolded before workflows.enabled reached Connect carry an explicit\n// `false` from the old defaults, which then keeps Workflow Studio off\nexport function workflowsSettingConflict(\n source: Pick<PowerhouseConfig, \"connect\" | \"workflows\">,\n): string | undefined {\n if (source.workflows?.enabled !== true) return undefined;\n if (source.connect?.app?.workflowsEnabled !== false) return undefined;\n return 'powerhouse.config.json sets workflows.enabled but also connect.app.workflowsEnabled: false, so Workflow Studio stays off in Connect. Remove \"workflowsEnabled\" from connect.app to follow workflows.enabled.';\n}\n\n/**\n * Pluggable loader on top of a `ConfigAdapter`.\n *\n * Responsibilities:\n * - merge-with-defaults on read (so consumers never see a partial connect block)\n * - in-process caching (call `invalidate()` to force re-read)\n * - deep-merge for partial writes; writes the merged whole back through the adapter\n *\n * The cache is module-instance scoped — every `new ConfigLoader(...)` has\n * its own cache. The browser SPA constructs the loader once at boot; the\n * CLI typically constructs a fresh loader per command.\n */\nexport class ConfigLoader {\n private cache: ConfigShape | undefined;\n\n constructor(\n private readonly adapter: ConfigAdapter,\n private readonly defaults: PHConnectRuntimeConfig = DEFAULT_CONNECT_CONFIG,\n ) {}\n\n /** Returns the config with the default connect block merged in.\n * Cached after the first successful call. */\n async read(): Promise<ConfigShape> {\n if (this.cache) return this.cache;\n const raw = await this.adapter.read();\n const obj = isPlainObject(raw) ? raw : {};\n const connectRaw = isPlainObject(obj.connect) ? obj.connect : {};\n this.cache = {\n ...obj,\n connect: deepMerge(\n this.defaults,\n connectRaw as DeepPartial<PHConnectRuntimeConfig>,\n ),\n };\n return this.cache;\n }\n\n /**\n * Returns the cached config synchronously. Throws if `read()` has not\n * resolved yet — matches Connect's `getRuntimeConfig()` shape.\n */\n getCached(): ConfigShape {\n if (!this.cache) {\n throw new Error(\n `ConfigLoader (${this.adapter.source}): cache empty; call read() first.`,\n );\n }\n return this.cache;\n }\n\n /** Drop the in-memory cache. Next `read()` re-fetches from the adapter. */\n invalidate(): void {\n this.cache = undefined;\n }\n\n /**\n * Deep-merge `patch` into the current config and persist via the adapter.\n * Returns the new full config (also updates the cache). Arrays in `patch`\n * replace — they do NOT append.\n */\n async write(patch: DeepPartial<ConfigShape>): Promise<ConfigShape> {\n const current = await this.read();\n const next = deepMerge(current, patch);\n await this.adapter.write(next);\n this.cache = next;\n return next;\n }\n}\n"],"mappings":";;;;AAgBA,MAAa,yBAAiD;CAC5D,UAAU;EACR,SAAS;EACT,gBAAgB;CAClB;CACA,KAAK;EACH,UAAU;EACV,UAAU;EACV,SAAS;EACT,YAAY;CACd;CACA,IAAI,EACF,kBAAkB,MACpB;CACA,UAAU;EACR,iBAAiB;EACjB,YAAY;CACd;CACA,QAAQ;EACN,eAAe;EACf,eAAe,CAAC;EAChB,UAAU;GACR,QAAQ;IAAE,SAAS;IAAM,UAAU;IAAM,aAAa;GAAK;GAC3D,OAAO;IAAE,SAAS;IAAM,UAAU;IAAM,aAAa;GAAK;EAC5D;CACF;CACA,QAAQ;EACN,KAAK;EACL,WAAW;EACX,SAAS;CACX;CACA,QAAQ;EAIN,KAAK;EACL,KAAK;EACL,SAAS;CACX;CACA,WAAW;EAIT,UAAU;EACV,eAAe;EACf,iBAAiB;CACnB;CACA,UAAU;EACR,WAAW;EACX,eAAe;EACf,cAAc;CAChB;CACA,SAAS;EACP,cAAc;GACZ,mBAAmB;GACnB,iBAAiB;GACjB,YAAY;GACZ,gBAAgB;EAClB;EACA,uBAAuB;EACvB,4BAA4B;CAC9B;AACF;AAEA,SAAgB,mBACd,QACA,aACyB;CACzB,MAAM,SAAkC;EACtC,eAAe;EACf,UAAU,OAAO,YAAY,CAAC;EAC9B,cAAc;EACd,SAAS,OAAO,WAAW,CAAC;CAC9B;CACA,IACE,OAAO,OAAO,uBAAuB,YACrC,OAAO,uBAAuB,IAE9B,OAAO,qBAAqB,OAAO;CAErC,OAAO;AACT;;;;;;;;;;;AC/BA,SAAgB,UAAa,MAAS,OAA0B;CAC9D,IAAI,CAAC,cAAc,IAAI,KAAK,CAAC,cAAc,KAAK,GAC9C,OAAO;CAET,MAAM,SAAkC,EAAE,GAAG,KAAK;CAClD,KAAK,MAAM,CAAC,KAAK,eAAe,OAAO,QAAQ,KAAK,GAAG;EACrD,IAAI,eAAe,KAAA,GAAW;EAC9B,MAAM,YAAY,OAAO;EACzB,IAAI,cAAc,SAAS,KAAK,cAAc,UAAU,GACtD,OAAO,OAAO,UACZ,WACA,UACF;OAEA,OAAO,OAAO;CAElB;CACA,OAAO;AACT;;;;;;;AAQA,SAAgB,qBACd,QACA,WAAmC,wBACX;CAIxB,OAAO,UAHa,UAAU,UAAU,EACtC,KAAK,EAAE,kBAAkB,OAAO,WAAW,QAAQ,EACrD,CAC2B,GAAG,OAAO,WAAW,CAAC,CAAC;AACpD;AAIA,SAAgB,yBACd,QACoB;CACpB,IAAI,OAAO,WAAW,YAAY,MAAM,OAAO,KAAA;CAC/C,IAAI,OAAO,SAAS,KAAK,qBAAqB,OAAO,OAAO,KAAA;CAC5D,OAAO;AACT;;;;;;;;;;;;;AAcA,IAAa,eAAb,MAA0B;CAIL;CACA;CAJnB;CAEA,YACE,SACA,WAAoD,wBACpD;EAFiB,KAAA,UAAA;EACA,KAAA,WAAA;CAChB;;;CAIH,MAAM,OAA6B;EACjC,IAAI,KAAK,OAAO,OAAO,KAAK;EAC5B,MAAM,MAAM,MAAM,KAAK,QAAQ,KAAK;EACpC,MAAM,MAAM,cAAc,GAAG,IAAI,MAAM,CAAC;EACxC,MAAM,aAAa,cAAc,IAAI,OAAO,IAAI,IAAI,UAAU,CAAC;EAC/D,KAAK,QAAQ;GACX,GAAG;GACH,SAAS,UACP,KAAK,UACL,UACF;EACF;EACA,OAAO,KAAK;CACd;;;;;CAMA,YAAyB;EACvB,IAAI,CAAC,KAAK,OACR,MAAM,IAAI,MACR,iBAAiB,KAAK,QAAQ,OAAO,mCACvC;EAEF,OAAO,KAAK;CACd;;CAGA,aAAmB;EACjB,KAAK,QAAQ,KAAA;CACf;;;;;;CAOA,MAAM,MAAM,OAAuD;EAEjE,MAAM,OAAO,UAAU,MADD,KAAK,KAAK,GACA,KAAK;EACrC,MAAM,KAAK,QAAQ,MAAM,IAAI;EAC7B,KAAK,QAAQ;EACb,OAAO;CACT;AACF"}
|
|
1
|
+
{"version":3,"file":"config-loader-DBJolZd0.js","names":[],"sources":["../connect/runtime-config.ts","../connect/config-loader.ts"],"sourcesContent":["import type {\n PHConnectRuntimeConfig,\n PowerhouseConfig,\n PowerhousePackage,\n} from \"../clis/types.js\";\n\nexport type RuntimePowerhouseConfig = {\n schemaVersion: 2;\n packages: PowerhousePackage[];\n packageRegistryUrl?: string;\n localPackage: { name: string; version: string } | null;\n connect: PHConnectRuntimeConfig;\n};\n\n/** Defaults for every field Connect reads at runtime, merged into the\n * `connect.*` block at boot; also the dist emitter's and the scaffold's base. */\nexport const DEFAULT_CONNECT_CONFIG: PHConnectRuntimeConfig = {\n branding: {\n appName: \"Powerhouse Connect\",\n homeBackground: null,\n },\n app: {\n logLevel: \"info\",\n basePath: \"/\",\n offline: true,\n studioMode: false,\n },\n ai: {\n assistantEnabled: false,\n },\n packages: {\n externalEnabled: true,\n liveReload: false,\n },\n drives: {\n allowAddDrive: true,\n defaultDrives: [],\n sections: {\n remote: { enabled: true, allowAdd: true, allowDelete: true },\n local: { enabled: true, allowAdd: true, allowDelete: true },\n },\n },\n renown: {\n url: \"https://www.renown.id\",\n networkId: \"eip155\",\n chainId: 1,\n },\n sentry: {\n // `dsn: null` is the disabled-Sentry state — the SPA never loads the\n // Sentry SDK chunk. Override via `ph connect config --sentry-dsn ...`\n // or by including `connect.sentry.dsn` in PH_CONNECT_CONFIG_JSON.\n dsn: null,\n env: \"dev\",\n tracing: false,\n },\n openPanel: {\n // An empty `clientId` keeps OpenPanel disabled. Enable it per deploy by\n // including `connect.openPanel.clientId` in PH_CONNECT_CONFIG_JSON.\n // `apiUrl` has no default: unset means OpenPanel's hosted API.\n clientId: \"\",\n trackUiEvents: true,\n trackOperations: true,\n },\n instance: {\n namespace: null,\n reactorWorker: false,\n multiReactor: false,\n },\n reactor: {\n featureFlags: {\n documentDecisions: false,\n authEnforcement: false,\n authGroups: false,\n authConditions: false,\n },\n createSignaturePolicy: \"v2-required\",\n unsupportedStoredDocuments: \"refuse\",\n },\n};\n\nexport function buildRuntimeConfig(\n source: Pick<PowerhouseConfig, \"packages\" | \"connect\" | \"packageRegistryUrl\">,\n projectInfo: { name: string; version: string } | null,\n): RuntimePowerhouseConfig {\n const result: RuntimePowerhouseConfig = {\n schemaVersion: 2,\n packages: source.packages ?? [],\n localPackage: projectInfo,\n connect: source.connect ?? {},\n };\n if (\n typeof source.packageRegistryUrl === \"string\" &&\n source.packageRegistryUrl !== \"\"\n ) {\n result.packageRegistryUrl = source.packageRegistryUrl;\n }\n return result;\n}\n","// Environment-neutral config loader. Wraps a `ConfigAdapter` (the IO layer)\n// with in-process caching and deep-merge-with-defaults reads.\n//\n// No validation. The loader trusts that whatever bytes the adapter returns\n// can be merged into the default Connect config; missing or partial fields\n// fall back to DEFAULT_CONNECT_CONFIG, so the SPA always sees a complete\n// `connect.*` block.\n//\n// Top-level fields outside `connect.*` (e.g. `studio.port` in the source\n// powerhouse.config.json) pass through untouched on both read and write.\n// They're not Connect's concern, but a write-back round-trip preserves\n// them so editing tools don't accidentally drop them.\n\nimport { isPlainObject } from \"remeda\";\nimport type {\n PHConnectRuntimeConfig,\n PowerhouseConfig,\n} from \"../clis/types.js\";\nimport { DEFAULT_CONNECT_CONFIG } from \"./runtime-config.js\";\n\n/** Recursive Partial. Arrays are leaves — `write({ packages: [...] })`\n * replaces the array, it doesn't merge. */\nexport type DeepPartial<T> =\n T extends Array<infer U>\n ? Array<U>\n : T extends object\n ? { [K in keyof T]?: DeepPartial<T[K]> }\n : T;\n\n/**\n * Shape returned by `ConfigLoader.read()`. The loader is Connect-scoped:\n * it guarantees `connect` is present and fully populated from\n * DEFAULT_CONNECT_CONFIG, but lets any other top-level fields pass\n * through unchanged so source-config-only fields (studio, reactor, auth,\n * documentModelsDir, etc.) survive a read+write round-trip.\n */\nexport type ConfigShape = Record<string, unknown> & {\n connect: PHConnectRuntimeConfig;\n};\n\n/**\n * Abstract IO layer for `powerhouse.config.json`.\n *\n * Implementations decide where bytes come from and go to. The shipped\n * adapter is `JsonConfigAdapter` (reads via fetch in the browser, fs in\n * Node; writes via fs in Node, throws in the browser). Future adapters\n * (remote-JSON, GraphQL) plug in without changing the loader or any\n * consumer.\n */\nexport interface ConfigAdapter {\n /** Read raw JSON-parsed payload from the backing store. */\n read(): Promise<unknown>;\n /** Persist a fully-formed config. */\n write(next: ConfigShape): Promise<void>;\n /** Human-readable description used in errors and logs. */\n readonly source: string;\n}\n\n/**\n * Deep-merge `patch` into `base`. Object fields recurse; arrays and\n * primitives replace. `undefined` in patch leaves the base value\n * untouched (no unset). `null` in patch overwrites with null.\n *\n * Exported for unit tests; consumers use ConfigLoader.write() which\n * applies this internally.\n */\nexport function deepMerge<T>(base: T, patch: DeepPartial<T>): T {\n if (!isPlainObject(base) || !isPlainObject(patch)) {\n return patch as T;\n }\n const result: Record<string, unknown> = { ...base };\n for (const [key, patchValue] of Object.entries(patch)) {\n if (patchValue === undefined) continue;\n const baseValue = result[key];\n if (isPlainObject(baseValue) && isPlainObject(patchValue)) {\n result[key] = deepMerge(\n baseValue,\n patchValue as DeepPartial<typeof baseValue>,\n );\n } else {\n result[key] = patchValue;\n }\n }\n return result as T;\n}\n\n/**\n * The effective `connect.*` block of a source `powerhouse.config.json`:\n * defaults < project-wide settings Connect follows < `connect.*`. So\n * `connect.app.workflowsEnabled` falls back to `workflows.enabled`, and\n * wins when set.\n */\nexport function resolveSourceConnect(\n source: Pick<PowerhouseConfig, \"connect\" | \"workflows\">,\n defaults: PHConnectRuntimeConfig = DEFAULT_CONNECT_CONFIG,\n): PHConnectRuntimeConfig {\n const projectWide = deepMerge(defaults, {\n app: { workflowsEnabled: source.workflows?.enabled },\n });\n return deepMerge(projectWide, source.connect ?? {});\n}\n\n// Projects scaffolded before workflows.enabled reached Connect carry an explicit\n// `false` from the old defaults, which then keeps Workflow Studio off\nexport function workflowsSettingConflict(\n source: Pick<PowerhouseConfig, \"connect\" | \"workflows\">,\n): string | undefined {\n if (source.workflows?.enabled !== true) return undefined;\n if (source.connect?.app?.workflowsEnabled !== false) return undefined;\n return 'powerhouse.config.json sets workflows.enabled but also connect.app.workflowsEnabled: false, so Workflow Studio stays off in Connect. Remove \"workflowsEnabled\" from connect.app to follow workflows.enabled.';\n}\n\n/**\n * Pluggable loader on top of a `ConfigAdapter`.\n *\n * Responsibilities:\n * - merge-with-defaults on read (so consumers never see a partial connect block)\n * - in-process caching (call `invalidate()` to force re-read)\n * - deep-merge for partial writes; writes the merged whole back through the adapter\n *\n * The cache is module-instance scoped — every `new ConfigLoader(...)` has\n * its own cache. The browser SPA constructs the loader once at boot; the\n * CLI typically constructs a fresh loader per command.\n */\nexport class ConfigLoader {\n private cache: ConfigShape | undefined;\n\n constructor(\n private readonly adapter: ConfigAdapter,\n private readonly defaults: PHConnectRuntimeConfig = DEFAULT_CONNECT_CONFIG,\n ) {}\n\n /** Returns the config with the default connect block merged in.\n * Cached after the first successful call. */\n async read(): Promise<ConfigShape> {\n if (this.cache) return this.cache;\n const raw = await this.adapter.read();\n const obj = isPlainObject(raw) ? raw : {};\n const connectRaw = isPlainObject(obj.connect) ? obj.connect : {};\n this.cache = {\n ...obj,\n connect: deepMerge(\n this.defaults,\n connectRaw as DeepPartial<PHConnectRuntimeConfig>,\n ),\n };\n return this.cache;\n }\n\n /**\n * Replace the cached config — used by the plugin pipeline (rewire R3) to\n * install the composition-transformed config so every later getCached()\n * reader sees it. Call only during boot, before the app graph imports.\n */\n prime(config: ConfigShape): void {\n this.cache = config;\n }\n\n /**\n * Returns the cached config synchronously. Throws if `read()` has not\n * resolved yet — matches Connect's `getRuntimeConfig()` shape.\n */\n getCached(): ConfigShape {\n if (!this.cache) {\n throw new Error(\n `ConfigLoader (${this.adapter.source}): cache empty; call read() first.`,\n );\n }\n return this.cache;\n }\n\n /** Drop the in-memory cache. Next `read()` re-fetches from the adapter. */\n invalidate(): void {\n this.cache = undefined;\n }\n\n /**\n * Deep-merge `patch` into the current config and persist via the adapter.\n * Returns the new full config (also updates the cache). Arrays in `patch`\n * replace — they do NOT append.\n */\n async write(patch: DeepPartial<ConfigShape>): Promise<ConfigShape> {\n const current = await this.read();\n const next = deepMerge(current, patch);\n await this.adapter.write(next);\n this.cache = next;\n return next;\n }\n}\n"],"mappings":";;;;AAgBA,MAAa,yBAAiD;CAC5D,UAAU;EACR,SAAS;EACT,gBAAgB;CAClB;CACA,KAAK;EACH,UAAU;EACV,UAAU;EACV,SAAS;EACT,YAAY;CACd;CACA,IAAI,EACF,kBAAkB,MACpB;CACA,UAAU;EACR,iBAAiB;EACjB,YAAY;CACd;CACA,QAAQ;EACN,eAAe;EACf,eAAe,CAAC;EAChB,UAAU;GACR,QAAQ;IAAE,SAAS;IAAM,UAAU;IAAM,aAAa;GAAK;GAC3D,OAAO;IAAE,SAAS;IAAM,UAAU;IAAM,aAAa;GAAK;EAC5D;CACF;CACA,QAAQ;EACN,KAAK;EACL,WAAW;EACX,SAAS;CACX;CACA,QAAQ;EAIN,KAAK;EACL,KAAK;EACL,SAAS;CACX;CACA,WAAW;EAIT,UAAU;EACV,eAAe;EACf,iBAAiB;CACnB;CACA,UAAU;EACR,WAAW;EACX,eAAe;EACf,cAAc;CAChB;CACA,SAAS;EACP,cAAc;GACZ,mBAAmB;GACnB,iBAAiB;GACjB,YAAY;GACZ,gBAAgB;EAClB;EACA,uBAAuB;EACvB,4BAA4B;CAC9B;AACF;AAEA,SAAgB,mBACd,QACA,aACyB;CACzB,MAAM,SAAkC;EACtC,eAAe;EACf,UAAU,OAAO,YAAY,CAAC;EAC9B,cAAc;EACd,SAAS,OAAO,WAAW,CAAC;CAC9B;CACA,IACE,OAAO,OAAO,uBAAuB,YACrC,OAAO,uBAAuB,IAE9B,OAAO,qBAAqB,OAAO;CAErC,OAAO;AACT;;;;;;;;;;;AC/BA,SAAgB,UAAa,MAAS,OAA0B;CAC9D,IAAI,CAAC,cAAc,IAAI,KAAK,CAAC,cAAc,KAAK,GAC9C,OAAO;CAET,MAAM,SAAkC,EAAE,GAAG,KAAK;CAClD,KAAK,MAAM,CAAC,KAAK,eAAe,OAAO,QAAQ,KAAK,GAAG;EACrD,IAAI,eAAe,KAAA,GAAW;EAC9B,MAAM,YAAY,OAAO;EACzB,IAAI,cAAc,SAAS,KAAK,cAAc,UAAU,GACtD,OAAO,OAAO,UACZ,WACA,UACF;OAEA,OAAO,OAAO;CAElB;CACA,OAAO;AACT;;;;;;;AAQA,SAAgB,qBACd,QACA,WAAmC,wBACX;CAIxB,OAAO,UAHa,UAAU,UAAU,EACtC,KAAK,EAAE,kBAAkB,OAAO,WAAW,QAAQ,EACrD,CAC2B,GAAG,OAAO,WAAW,CAAC,CAAC;AACpD;AAIA,SAAgB,yBACd,QACoB;CACpB,IAAI,OAAO,WAAW,YAAY,MAAM,OAAO,KAAA;CAC/C,IAAI,OAAO,SAAS,KAAK,qBAAqB,OAAO,OAAO,KAAA;CAC5D,OAAO;AACT;;;;;;;;;;;;;AAcA,IAAa,eAAb,MAA0B;CAIL;CACA;CAJnB;CAEA,YACE,SACA,WAAoD,wBACpD;EAFiB,KAAA,UAAA;EACA,KAAA,WAAA;CAChB;;;CAIH,MAAM,OAA6B;EACjC,IAAI,KAAK,OAAO,OAAO,KAAK;EAC5B,MAAM,MAAM,MAAM,KAAK,QAAQ,KAAK;EACpC,MAAM,MAAM,cAAc,GAAG,IAAI,MAAM,CAAC;EACxC,MAAM,aAAa,cAAc,IAAI,OAAO,IAAI,IAAI,UAAU,CAAC;EAC/D,KAAK,QAAQ;GACX,GAAG;GACH,SAAS,UACP,KAAK,UACL,UACF;EACF;EACA,OAAO,KAAK;CACd;;;;;;CAOA,MAAM,QAA2B;EAC/B,KAAK,QAAQ;CACf;;;;;CAMA,YAAyB;EACvB,IAAI,CAAC,KAAK,OACR,MAAM,IAAI,MACR,iBAAiB,KAAK,QAAQ,OAAO,mCACvC;EAEF,OAAO,KAAK;CACd;;CAGA,aAAmB;EACjB,KAAK,QAAQ,KAAA;CACf;;;;;;CAOA,MAAM,MAAM,OAAuD;EAEjE,MAAM,OAAO,UAAU,MADD,KAAK,KAAK,GACA,KAAK;EACrC,MAAM,KAAK,QAAQ,MAAM,IAAI;EAC7B,KAAK,QAAQ;EACb,OAAO;CACT;AACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as PowerhouseConfig, k as PHConnectRuntimeConfig } from "../types-BUqiKtkv.js";
|
|
2
2
|
//#region connect/config-loader.d.ts
|
|
3
3
|
/** Recursive Partial. Arrays are leaves — `write({ packages: [...] })`
|
|
4
4
|
* replaces the array, it doesn't merge. */
|
|
@@ -67,6 +67,12 @@ export declare class ConfigLoader {
|
|
|
67
67
|
/** Returns the config with the default connect block merged in.
|
|
68
68
|
* Cached after the first successful call. */
|
|
69
69
|
read(): Promise<ConfigShape>;
|
|
70
|
+
/**
|
|
71
|
+
* Replace the cached config — used by the plugin pipeline (rewire R3) to
|
|
72
|
+
* install the composition-transformed config so every later getCached()
|
|
73
|
+
* reader sees it. Call only during boot, before the app graph imports.
|
|
74
|
+
*/
|
|
75
|
+
prime(config: ConfigShape): void;
|
|
70
76
|
/**
|
|
71
77
|
* Returns the cached config synchronously. Throws if `read()` has not
|
|
72
78
|
* resolved yet — matches Connect's `getRuntimeConfig()` shape.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-loader.d.ts","names":[],"sources":["../../connect/config-loader.ts"],"mappings":";;;;YAsBY,YAAY,KACtB,UAAU,YAAY,KAClB,MAAM,KACN,sBACK,WAAW,KAAK,YAAY,EAAE,SACjC;;;;;;;;YASI,cAAc;EACxB,SAAS;;;;;;;;;;;iBAYM;;EAEf,QAAQ;;EAER,MAAM,MAAM,cAAc;;WAEjB;;;;;;;;;;wBAWK,UAAU,GAAG,MAAM,GAAG,OAAO,YAAY,KAAK;;;;;;;wBA0B9C,qBACd,QAAQ,KAAK,4CACb,WAAU,yBACT;wBASa,yBACd,QAAQ,KAAK;;;;;;;;;;;;;qBAmBF;mBAIQ;mBACA;UAJX;EAER,YACmB,SAAS,eACT,WAAU;;;EAKvB,QAAQ,QAAQ;;;;;
|
|
1
|
+
{"version":3,"file":"config-loader.d.ts","names":[],"sources":["../../connect/config-loader.ts"],"mappings":";;;;YAsBY,YAAY,KACtB,UAAU,YAAY,KAClB,MAAM,KACN,sBACK,WAAW,KAAK,YAAY,EAAE,SACjC;;;;;;;;YASI,cAAc;EACxB,SAAS;;;;;;;;;;;iBAYM;;EAEf,QAAQ;;EAER,MAAM,MAAM,cAAc;;WAEjB;;;;;;;;;;wBAWK,UAAU,GAAG,MAAM,GAAG,OAAO,YAAY,KAAK;;;;;;;wBA0B9C,qBACd,QAAQ,KAAK,4CACb,WAAU,yBACT;wBASa,yBACd,QAAQ,KAAK;;;;;;;;;;;;;qBAmBF;mBAIQ;mBACA;UAJX;EAER,YACmB,SAAS,eACT,WAAU;;;EAKvB,QAAQ,QAAQ;;;;;;EAoBtB,MAAM,QAAQ;;;;;EAQd,aAAa;;EAUb;;;;;;EASM,MAAM,OAAO,YAAY,eAAe,QAAQ"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as workflowsSettingConflict, n as deepMerge, r as resolveSourceConnect, t as ConfigLoader } from "../config-loader-
|
|
1
|
+
import { i as workflowsSettingConflict, n as deepMerge, r as resolveSourceConnect, t as ConfigLoader } from "../config-loader-DBJolZd0.js";
|
|
2
2
|
export { ConfigLoader, deepMerge, resolveSourceConnect, workflowsSettingConflict };
|
package/dist/connect/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as PHConnectPwaRuntimeCaching, R as PowerhouseConfig, S as PHConnectPwaManifest, b as PHConnectPwaFileHandler, k as PHConnectRuntimeConfig, v as PHConnectPwa, w as PHConnectPwaUrlPattern, x as PHConnectPwaIcon, y as PHConnectPwaCacheStrategy, z as PowerhousePackage } from "../types-BUqiKtkv.js";
|
|
2
2
|
import { ConfigAdapter, ConfigLoader, ConfigShape, DeepPartial, deepMerge, resolveSourceConnect, workflowsSettingConflict } from "./config-loader.js";
|
|
3
3
|
import { JsonConfigAdapter, JsonConfigAdapterOptions } from "./json-adapter.js";
|
|
4
4
|
import { z } from "zod";
|
package/dist/connect/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as DEFAULT_CONNECT_CONFIG, i as workflowsSettingConflict, n as deepMerge, o as buildRuntimeConfig, r as resolveSourceConnect, t as ConfigLoader } from "../config-loader-
|
|
1
|
+
import { a as DEFAULT_CONNECT_CONFIG, i as workflowsSettingConflict, n as deepMerge, o as buildRuntimeConfig, r as resolveSourceConnect, t as ConfigLoader } from "../config-loader-DBJolZd0.js";
|
|
2
2
|
import { JsonConfigAdapter } from "./json-adapter.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { satisfies, validRange } from "semver";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as LegacySynchronizationUnit, A as TriggerData, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, J as DriveDocumentModelModule, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, S as RemoveListenerInput, T as SetDriveIconInput, X as DocumentDriveDocument, Y as DocumentDriveAction, Z as LegacyAddFileAction, _ as ListenerInput, _t as SetDriveNameAction, a as CopyNodeInput, at as DocumentDriveNodeOperations, b as PullResponderTriggerData, c as DocumentDriveLocalState, ct as UpdateNodeAction, d as FolderNode, dt as DocumentDriveDriveAction, et as AddFileAction, f as Listener, ft as DocumentDriveDriveOperations, g as ListenerFilterInput, gt as SetDriveIconAction, h as ListenerFilter, ht as SetAvailableOfflineAction, i as AddTriggerInput, it as DocumentDriveNodeAction, j as TriggerInput, k as Trigger, l as DocumentDrivePHState$1, lt as AddListenerAction, m as ListenerCallInfoInput, mt as RemoveTriggerAction, n as AddFolderInput, nt as CopyNodeAction, o as DeleteNodeInput, ot as MoveNodeAction, p as ListenerCallInfo, pt as RemoveListenerAction, q as DocumentDrivePHState, r as AddListenerInput, rt as DeleteNodeAction, s as DocumentDriveGlobalState, st as UpdateFileAction, t as AddFileInput, tt as AddFolderAction, u as FileNode, ut as AddTriggerAction, v as MoveNodeInput, vt as SetSharingTypeAction, w as SetAvailableOfflineInput, x as PullResponderTriggerDataInput, y as Node } from "../types-
|
|
3
|
-
import { a as GenerateNodesCopyIdGenerator, i as DriveInput, o as GenerateNodesCopySrc, s as SharingType } from "../index-
|
|
1
|
+
import { An as LoadFromInput, Dn as IsDocumentOfType, Ht as DocumentModelGlobalState, In as Maybe, Om as PHBaseState, On as IsStateOfType, Xr as Reducer, ct as AssertIsDocumentOfType, gi as SaveToFileHandle, lt as AssertIsStateOfType, vt as CreateDocument, xt as CreateState } from "../types-BUqiKtkv.js";
|
|
2
|
+
import { $ as LegacySynchronizationUnit, A as TriggerData, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, J as DriveDocumentModelModule, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, S as RemoveListenerInput, T as SetDriveIconInput, X as DocumentDriveDocument, Y as DocumentDriveAction, Z as LegacyAddFileAction, _ as ListenerInput, _t as SetDriveNameAction, a as CopyNodeInput, at as DocumentDriveNodeOperations, b as PullResponderTriggerData, c as DocumentDriveLocalState, ct as UpdateNodeAction, d as FolderNode, dt as DocumentDriveDriveAction, et as AddFileAction, f as Listener, ft as DocumentDriveDriveOperations, g as ListenerFilterInput, gt as SetDriveIconAction, h as ListenerFilter, ht as SetAvailableOfflineAction, i as AddTriggerInput, it as DocumentDriveNodeAction, j as TriggerInput, k as Trigger, l as DocumentDrivePHState$1, lt as AddListenerAction, m as ListenerCallInfoInput, mt as RemoveTriggerAction, n as AddFolderInput, nt as CopyNodeAction, o as DeleteNodeInput, ot as MoveNodeAction, p as ListenerCallInfo, pt as RemoveListenerAction, q as DocumentDrivePHState, r as AddListenerInput, rt as DeleteNodeAction, s as DocumentDriveGlobalState, st as UpdateFileAction, t as AddFileInput, tt as AddFolderAction, u as FileNode, ut as AddTriggerAction, v as MoveNodeInput, vt as SetSharingTypeAction, w as SetAvailableOfflineInput, x as PullResponderTriggerDataInput, y as Node } from "../types-CfJnFDjg.js";
|
|
3
|
+
import { a as GenerateNodesCopyIdGenerator, i as DriveInput, o as GenerateNodesCopySrc, s as SharingType } from "../index-Bv7Q0YM4.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region document-drive/constants.d.ts
|
|
6
6
|
export declare const driveDocumentFileExtension = "phdd";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _u as
|
|
1
|
+
import { _u as InvalidAuthVersionError, cu as AuthAlreadyInitializedError, du as DowngradeNotSupportedError, fu as FileSystemError, gu as InvalidActionInputZodError, hu as InvalidActionInputError, lu as AuthInitializerNotCreatorError, mu as HashMismatchError, pu as GrantNotFoundError, su as AuthActionNotAllowedError, uu as AuthPolicyNotPreservedError, vu as UnsupportedDocumentModelVersionError } from "../types-BUqiKtkv.js";
|
|
2
2
|
export { AuthActionNotAllowedError, AuthAlreadyInitializedError, AuthInitializerNotCreatorError, AuthPolicyNotPreservedError, DowngradeNotSupportedError, FileSystemError, GrantNotFoundError, HashMismatchError, InvalidActionInputError, InvalidActionInputZodError, InvalidAuthVersionError, UnsupportedDocumentModelVersionError };
|
|
3
3
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as AddOperationErrorInput, $c as PurgeMarkerOperation, $d as moveGrant, $f as reorderModuleOperations, $i as SetOperationErrorTemplateInput, $l as UpgradeManifest, $m as protocolVersionsFor, $n as MutationMoveOperationArgs, $o as assertOperationExampleIdUnique, $p as isNoopOperation, $r as RemoveRelationshipActionInput, $s as ReorderOperationErrorsInputSchema, $t as DocumentModelOperationExampleAction, $u as AuthAdministrationLockoutError, Aa as UndoAction, Ac as UndoActionInputSchema, Ad as MAX_SUPPORTED_AUTH_VERSION, Af as addOperationError, Ai as SetModelDescriptionInput, Al as createVerificationSigner, Am as Principal, An as MakeEmpty, Ap as verifyOperationSignature, Ar as MutationUpdateStateExampleArgs, As as DeleteStateExampleInputSchema, At as DeleteOperationErrorAction, Au as AUTH_DENIED_BY_GRANT_REASON, Ba as UpdateStateExampleInput, Bc as documentModelOperationErrorReducer, Bd as applyAuthAction, Bf as deleteOperationError, Bi as SetModuleNameInput, Bl as createZip, Bm as defaultDocumentState, Bn as Mutation, Bp as baseReducerVersion, Br as PieceModule, Bs as OperationSpecificationSchema, Bt as DocumentModelDocumentModelModule, Bu as bytesToBase64Url, Ca as SigningParameters, Cc as SetOperationTemplateInputSchema, Cd as AuthRequest, Cf as actionContext, Ci as SetAuthorNameAction, Cl as peerSupports, Cm as Condition, Cn as ISigner, Cp as setOperationTemplate, Cr as MutationSetOperationReducerArgs, Cs as ConfigEntrySchema, Ct as DeleteChildDocumentInput, Cu as DocumentModelHeaderSchema, Da as StateReducer, Dc as Set_NameSchema, Dd as InitializeAuthAction, Df as addChangeLogItem, Di as SetInitialStateAction, Dl as createPresignedHeader, Dm as PHBaseState, Dn as IsStateOfType, Dp as updateChangeLogItem, Dr as MutationUndoArgs, Ds as DeleteOperationErrorInputSchema, Dt as DeleteModuleAction, Du as assertIsDocumentModelState, Ea as State, Ec as SetStateSchemaInputSchema, Ed as ConditionContext, Ef as actions, Ei as SetAuthorWebsiteInput, El as createCopyHeader, Em as PHAuthState, En as IsDocumentOfType, Ep as undo, Er as MutationSetStateSchemaArgs, Es as DeleteModuleInputSchema, Et as DeleteDocumentActionInput, Eu as assertIsDocumentModelDocument, Fa as UpdateOperationExampleAction, Fc as UpdateStateExampleInputSchema, Fd as RemoveGrantActionInput, Ff as buildSignedAction, Fi as SetModelNameAction, Fl as BulkArchiveEntry, Fm as createGlobalState, Fn as Maybe, Fp as PHDocumentMeta, Fr as OperationsByScope, Fs as ManifestSchema, Ft as DeleteStateExampleAction, Fu as ab2hex, G as ActionVerificationHandler, Gc as documentModelStateSchemaReducer, Gd as assertAuthPreservedOnDuplicate, Gf as noop, Gi as SetOperationDescriptionInput, Gl as isDocumentZip, Gm as DocumentIdParams, Gn as MutationAddOperationExampleArgs, Gp as filterDuplicatedOperations, Gr as Query, Gs as PublisherSchema, Gt as DocumentModelLib, Gu as HASH_ALGORITHM_SHA256, H as ActionErrorCallback, Ha as UpgradeDocumentActionInput, Hc as documentModelOperationReducer, Hd as applyMoveGrantAction, Hf as deleteStateExample, Hi as SetNameActionInput, Hl as documentModelSaveToFileHandle, Hm as defaultLocalState, Hn as MutationAddModuleArgs, Hp as checkOperationsIntegrity, Hr as Publisher, Hs as PieceModulesSchema, Ht as DocumentModelHeaderAction, Hu as hashBrowser, Ia as UpdateOperationExampleInput, Ic as definedNonNullAnySchema, Id as RemoveGrantActionInputSchema, If as createAction, Ii as SetModelNameInput, Il as baseLoadFromInput, Im as createLocalState, In as MinimalBackupData, Ip as addUndo, Ir as PartialRecord, Is as ModuleSchema, It as DeleteStateExampleInput, Iu as base58Decode, J as AddChangeLogItemInput, Jc as createReducer, Jd as evaluate, Jf as operationFromOperation, Ji as SetOperationErrorDescriptionAction, Jl as writeFileBrowser, Jm as SIGNATURE_PROTOCOL_V2, Jn as MutationDeleteModuleArgs, Jo as OPERATION_NAME_PATTERN, Jp as garbageCollectV2, Jr as RedoActionInput, Js as RedoActionSchema, Jt as DocumentModelModuleAction, Ju as HASH_ENCODING_HEX, K as Actions, Kc as documentModelVersioningReducer, Kd as assertAuthScopeActionAllowed, Kf as operationExampleCreators, Ki as SetOperationErrorCodeAction, Kl as parseBulkArchive, Km as ProtocolVersions, Kn as MutationAddStateExampleArgs, Kp as garbageCollect, Kr as Redo, Ks as PwaConfigSchema, Kt as DocumentModelLocalState, Ku as HASH_ALGORITHM_SHA512, La as UpdateRelationshipAction, Lc as isDefinedNonNullAny, Ld as SetGrantAction, Lf as deleteChangeLogItem, Li as SetModuleDescriptionAction, Ll as baseLoadFromInputVersioned, Lm as createState, Ln as ModuleSpecification, Lp as appendWithoutApplying, Lr as PartialState, Ls as MoveOperationInputSchema, Lt as DocumentAction, Lu as base64UrlToBytes, Ma as UndoRedoAction, Mc as UndoSchema, Md as MoveGrantActionInput, Mf as addStateExample, Mi as SetModelExtensionInput, Ml as sign, Mm as createAuthState, Mn as MakeOptional, Mp as IntegrityIssueType, Mr as OperationErrorSpecification, Ms as DocumentModelGlobalStateSchema, Mt as DeleteOperationExampleAction, Mu as AUTH_VERSION_UNSUPPORTED_REASON, Na as UpdateChangeLogItemAction, Nc as UpdateChangeLogItemInputSchema, Nd as MoveGrantActionInputSchema, Nf as baseActions, Ni as SetModelIdAction, Nl as validateHeader, Nm as createBaseState, Nn as Manifest, Np as PHDocument, Nr as OperationIndex, Ns as DocumentModelInputSchema, Nt as DeleteOperationExampleInput, Nu as DOCUMENT_DELETED_REASON, Oa as SubgraphModule, Oc as Set_PreferredEditorSchema, Od as InitializeAuthActionInput, Of as addModule, Oi as SetInitialStateInput, Ol as createSignedHeader, Om as PHDocumentState, On as LoadFromFile, Op as updateOperationExample, Or as MutationUpdateChangeLogItemInputArgs, Os as DeleteOperationExampleInputSchema, Ot as DeleteModuleInput, Ou as isDocumentModelDocument, Pa as UpdateChangeLogItemInput, Pc as UpdateOperationExampleInputSchema, Pd as RemoveGrantAction, Pf as buildOperationSignature, Pi as SetModelIdInput, Pl as verify, Pm as createDocumentState, Pn as MappedOperation, Pp as PHDocumentHeader, Pr as OperationSpecification, Ps as DocumentSpecificationSchema, Pt as DeleteOperationInput, Pu as isDenied, Q as AddOperationErrorAction, Qc as PURGE_DOCUMENT, Qd as mentionedGroupIds, Qf as reorderChangeLogItems, Qi as SetOperationErrorTemplateAction, Ql as replayDocumentVersioned, Qm as isSignaturePolicy, Qn as MutationDeleteStateExampleArgs, Qo as assertOperationErrorIdUnique, Qp as isDocumentAction, Qr as RemoveRelationshipAction, Qs as ReorderModulesInputSchema, Qt as DocumentModelOperationErrorOperations, Qu as documentModelInitialLocalState, Ra as UpdateRelationshipActionInput, Rc as documentModelHeaderReducer, Rd as SetGrantActionInput, Rf as deleteModule, Ri as SetModuleDescriptionInput, Rl as baseSaveToFileHandle, Rm as defaultAuthState, Rn as MoveOperationAction, Rp as attachBranch, Rr as PhAiToolAnnotations, Rs as OperationErrorSchema, Rt as DocumentModelAction, Ru as buildOperationSignatureMessage, Sa as SignatureVerificationHandler, Sc as SetOperationScopeInputSchema, Sd as AuthRefusal, Sf as ActionContext, Si as ScopeState, Sl as mergePeerCapabilities, Sm as Capability, Sn as ISignalResult, Sp as setOperationScope, Sr as MutationSetOperationNameArgs, Ss as CodeExampleSchema, St as DeleteChangeLogItemInput, Su as BaseDocumentStateSchema, Ta as SkipHeaderOperations, Tc as SetPreferredEditorActionSchema, Td as AuthVerb, Tf as actionSigner, Ti as SetAuthorWebsiteAction, Tl as selectProtocolVersions, Tm as Operand, Tn as InputMaybe, Tp as setStateSchema, Tr as MutationSetOperationTemplateArgs, Ts as DeleteChangeLogItemInputSchema, Tt as DeleteDocumentAction, Tu as DocumentModelSchema, U as ActionSignatureContext, Ua as User, Uc as documentModelReducer, Ud as applyRemoveGrantAction, Uf as documentModelActions, Ui as SetNameOperation, Ul as fetchFileBrowser, Um as defaultPHState, Un as MutationAddOperationArgs, Up as diffOperations, Ur as PurgeDocumentAction, Us as PowerhouseModuleSchema, Ut as DocumentModelHeaderOperations, Uu as hex2ab, Va as UpgradeDocumentAction, Vc as documentModelOperationExampleReducer, Vd as applyInitializeAuthAction, Vf as deleteOperationExample, Vi as SetNameAction, Vl as documentModelLoadFromInput, Vm as defaultGlobalState, Vn as MutationAddChangeLogItemInputArgs, Vp as checkCleanedOperationsIntegrity, Vr as PowerhouseModule, Vs as PieceModuleSchema, Vt as DocumentModelGlobalState, Vu as getUnixTimestamp, W as ActionSigningHandler, Wa as ValidationError, Wc as documentModelStateReducer, Wd as applySetGrantAction, Wf as moveOperation, Wi as SetOperationDescriptionAction, Wl as getFileBrowser, Wm as DEFAULT_SIGNATURE_POLICY, Wn as MutationAddOperationErrorArgs, Wp as filterDocumentOperationsResultingState, Wr as PurgeDocumentActionInput, Ws as PowerhouseModulesSchema, Wt as DocumentModelInput, Wu as HASH_ALGORITHM_SHA1, X as AddModuleInput, Xc as replayOperations, Xd as isAuthAction, Xf as redo, Xi as SetOperationErrorNameAction, Xl as VersionedReducers, Xm as deriveDocumentId, Xn as MutationDeleteOperationErrorArgs, Xo as ReservedOperationName, Xp as groupOperationsByScope, Xr as ReducerOptions, Xs as ReorderChangeLogItemsInputSchema, Xt as DocumentModelOperationAction, Xu as documentModelGlobalState, Y as AddModuleAction, Yc as processUndoRedo, Yd as initializeAuth, Yf as operationWithContext, Yi as SetOperationErrorDescriptionInput, Yl as zipEntries, Ym as SignaturePolicy, Yn as MutationDeleteOperationArgs, Yo as RESERVED_OPERATION_NAMES, Yp as getDocumentLastModified, Yr as Reducer, Ys as RedoSchema, Yt as DocumentModelModuleOperations, Yu as documentModelFileExtension, Z as AddOperationAction, Zc as updateDocument, Zd as isDocumentCreator, Zf as releaseNewVersion, Zi as SetOperationErrorNameInput, Zl as VersionedReplayConfig, Zm as isDerivedDocumentId, Zn as MutationDeleteOperationExampleArgs, Zo as assertModuleIdUnique, Zp as hashDocumentStateForScope, Zr as ReleaseNewVersionAction, Zs as ReorderModuleOperationsInputSchema, Zt as DocumentModelOperationErrorAction, Zu as documentModelInitialGlobalState, _a as Signal, _c as SetOperationErrorNameInputSchema, _d as referencedGroupIds, _f as isV2ActionHash, _h as PHDocumentSignatureInfo, _i as SchemaNOOPAction, _l as isOlderManifest, _m as sortOperations, _n as IAction, _p as setOperationErrorName, _r as MutationSetOperationDescriptionArgs, _s as AddOperationErrorInputSchema, _t as CreateDocument, _u as UnsupportedDocumentModelVersionError, aa as SetOperationSchemaInput, ac as SetInitialStateInputSchema, ad as MAX_CAPABILITY_OPERATIONS, af as TransportSigner, ah as OperationContext, ai as ReorderModulesInput, al as FeatureCapability, am as nextSkipNumber, an as DocumentModelUtils, ap as setAuthorWebsite, ar as MutationReorderOperationExamplesArgs, as as getAllOperationNames, at as AddStateExampleAction, au as withProtocolVersions, ba as SignalResults, bc as SetOperationReducerInputSchema, bd as AuthDecision, bf as v2TupleProblem, bh as deserializeSignature, bi as SchemaSetPreferredEditorAction, bl as localSupports, bm as withSignaturePolicy, bn as IOperation, bp as setOperationReducer, br as MutationSetOperationErrorNameArgs, bs as AddStateExampleInputSchema, bt as CreateState, bu as groupMembershipActionTypes, ca as SetOperationTemplateAction, cc as SetModelIdInputSchema, cd as assertAuthAdministrationRetained, cf as ActionSignerIdentity, ch as operationOutcome, ci as ReorderOperationExamplesAction, cl as PEER_CAPABILITIES, cm as precedes, cn as DocumentOperationsIgnoreMap, cp as setModelExtension, cr as MutationSetAuthorWebsiteArgs, cs as validateInitialState, ct as AssertIsStateOfType, cu as AuthInitializerNotCreatorError, da as SetPreferredEditorActionInput, dc as SetModuleNameInputSchema, dd as assertValidInitialGrants, df as DOCUMENT_SCOPE_ACTION_TYPES, dh as setPreferredEditorOperation, di as ReorderStateExamplesInput, dl as PeerCapabilityFlags, dm as removeExistingOperations, dn as EditorDispatch, dp as setModuleDescription, dr as MutationSetModelExtensionArgs, ds as validateModules, dt as ConfigEntry, du as FileSystemError, ea as SetOperationNameAction, ec as ReorderOperationExamplesInputSchema, ed as AuthAdministrationMissingError, ef as removeGrant, eh as requestedSignaturePolicy, ei as ReorderChangeLogItemsAction, el as isPurgeMarker, em as isUndo, en as DocumentModelOperationExampleOperations, ep as reorderModules, er as MutationRedoArgs, es as assertOperationIdUnique, et as AddOperationExampleAction, eu as UpgradeReducer, fa as SetPreferredEditorOperation, fc as SetNameActionInputSchema, fd as evaluateCondition, ff as actionPreimageV2, fh as undoOperation, fi as ReplayDocumentOptions, fl as PeerManifest, fm as replayDocument, fn as EditorModule, fp as setModuleName, fr as MutationSetModelIdArgs, fs as validateOperationName, ft as ConfigEntryType, fu as GrantNotFoundError, ga as Set_PreferredEditor, gc as SetOperationErrorDescriptionInputSchema, gd as isPlainValue, gf as hashActionV2, gh as HashConfig, gi as Scalars, gl as holdReason, gm as sortMappedOperations, gn as GetDocumentOptions, gp as setOperationErrorDescription, gr as MutationSetNameArgs, gs as AddModuleInputSchema, gt as CreateChildDocumentSignal, gu as InvalidAuthVersionError, ha as Set_Name, hc as SetOperationErrorCodeInputSchema, hd as grantProblem, hf as canonicalJson, hh as AppActionSigner, hi as SaveToFileHandle, hl as coversLocal, hm as skipHeaderOperations, hn as FileInput, hp as setOperationErrorCode, hr as MutationSetModuleNameArgs, hs as AddChangeLogItemInputSchema, ht as CreateChildDocumentInput, hu as InvalidActionInputZodError, ia as SetOperationSchemaAction, ic as SetAuthorWebsiteInputSchema, id as MAX_AUTH_GRANTS, if as TransportActionContext, ih as Operation, ii as ReorderModulesAction, il as DOCUMENT_PURGE_PROTOCOL, im as merge, in as DocumentModelStateOperations, ip as setAuthorName, ir as MutationReorderOperationErrorsArgs, is as findOperationOrThrow, it as AddRelationshipActionInput, iu as computeUpgradeTransitions, ja as UndoActionInput, jc as UndoActionSchema, jd as MoveGrantAction, jf as addOperationExample, ji as SetModelExtensionAction, jl as hasDerivedDocumentId, jm as backfillAuthState, jn as MakeMaybe, jp as IntegrityIssueSubType, jr as NOOPAction, js as DocumentActionSchema, jt as DeleteOperationErrorInput, ju as AUTH_NO_GRANT_REASON, ka as Undo, kc as StateSchema, kd as InitializeAuthActionInputSchema, kf as addOperation, ki as SetModelDescriptionAction, kl as createSignedHeaderForSigner, km as PHGroupState, kn as LoadFromInput, kp as updateStateExample, kr as MutationUpdateOperationExampleArgs, ks as DeleteOperationInputSchema, kt as DeleteOperationAction, ku as isDocumentModelState, la as SetOperationTemplateInput, lc as SetModelNameInputSchema, ld as assertValidGrant, lf as ActionSigningTarget, lh as redoOperation, li as ReorderOperationExamplesInput, ll as PEER_MANIFEST_FORMAT, lm as prepareOperations, ln as DocumentSpecification, lp as setModelId, lr as MutationSetInitialStateArgs, ls as validateModule, lt as Author, lu as AuthPolicyNotPreservedError, ma as SetStateSchemaInput, mc as SetOperationDescriptionInputSchema, md as evaluateGrants, mf as actionSigningTarget, mh as ActionSigner, mi as SaveToFile, ml as Supports, mm as reshuffleByTimestampAndIndex, mn as Exact, mp as setOperationDescription, mr as MutationSetModuleDescriptionArgs, ms as validateStateSchemaName, mt as CopyChildDocumentSignal, mu as InvalidActionInputError, na as SetOperationReducerAction, nc as ScopeStateSchema, nd as GroupPrincipalNotAllowedError, nf as setGrant, nh as v2RequiredProtocolVersions, ni as ReorderModuleOperationsAction, nl as purgeMarkerOperation, nm as mapSkippedOperations, nn as DocumentModelPHState, np as reorderOperationExamples, nr as MutationReorderModuleOperationsArgs, ns as findOperationErrorOrThrow, nt as AddOperationInput, nu as applyDeleteDocumentAction, oa as SetOperationScopeAction, oc as SetModelDescriptionInputSchema, od as MAX_CONDITION_DEPTH, of as toTransportAction, oh as OperationOutcome, oi as ReorderOperationErrorsAction, ol as HoldReason, om as operationsAreEqual, on as DocumentModelVersioningAction, op as setInitialState, or as MutationReorderStateExamplesArgs, os as isReservedOperationName, ot as AddStateExampleInput, ou as AuthActionNotAllowedError, pa as SetStateSchemaAction, pc as SetNameActionSchema, pd as evaluateGrantStack, pf as actionSignerIdentity, ph as undoOperationV2, pi as RevisionsFilter, pl as ProtocolCapability, pm as reshuffleByTimestamp, pn as EditorProps, pp as setName, pr as MutationSetModelNameArgs, ps as validateOperations, pt as CopyChildDocumentInput, pu as HashMismatchError, q as AddChangeLogItemAction, qc as baseReducer, qd as decide, qf as operationFromAction, qi as SetOperationErrorCodeInput, ql as readFileBrowser, qm as SIGNATURE_PROTOCOL, qn as MutationDeleteChangeLogItemInputArgs, qp as garbageCollectDocumentOperations, qr as RedoAction, qs as RedoActionInputSchema, qt as DocumentModelModule, qu as HASH_ENCODING_BASE64, ra as SetOperationReducerInput, rc as SetAuthorNameInputSchema, rd as InvalidGrantError, rf as TransportAction, rh as DocumentOperations, ri as ReorderModuleOperationsInput, rl as purgedProtocolVersions, rm as mapSkippedOperationsV2, rn as DocumentModelStateAction, rp as reorderStateExamples, rr as MutationReorderModulesArgs, rs as findOperationExampleOrThrow, rt as AddRelationshipAction, ru as applyUpgradeDocumentAction, sa as SetOperationScopeInput, sc as SetModelExtensionInputSchema, sd as MAX_CONDITION_NODES, sf as ACTION_SIGNATURE_V2_PREFIX, sh as OperationWithContext, si as ReorderOperationErrorsInput, sl as MARKER_REFUSAL_FEATURE, sm as parseResultingState, sn as DocumentModelVersioningOperations, sp as setModelDescription, sr as MutationSetAuthorNameArgs, ss as isValidOperationNameFormat, st as AssertIsDocumentOfType, su as AuthAlreadyInitializedError, ta as SetOperationNameInput, tc as ReorderStateExamplesInputSchema, td as GrantSchema, tf as resolveSnapshotAuth, th as signaturePolicyOf, ti as ReorderChangeLogItemsInput, tl as purgeDocumentAction, tm as isUndoRedo, tn as DocumentModelOperationOperations, tp as reorderOperationErrors, tr as MutationReorderChangeLogItemsInputArgs, ts as findModuleOrThrow, tt as AddOperationExampleInput, tu as UpgradeTransition, ua as SetPreferredEditorAction, uc as SetModuleDescriptionInputSchema, ud as assertValidGrantUpsert, uf as CanonicalJsonError, uh as setNameOperation, ui as ReorderStateExamplesAction, ul as PeerCapability, um as readOnly, un as ENSInfo, up as setModelName, ur as MutationSetModelDescriptionArgs, us as validateModuleOperation, ut as CodeExample, uu as DowngradeNotSupportedError, va as SignalDispatch, vc as SetOperationErrorTemplateInputSchema, vd as AUTH_ACTION_TYPES, vf as signActionV2, vh as Signature, vi as SchemaRedoAction, vl as legacySupports, vm as split, vn as ID, vp as setOperationErrorTemplate, vr as MutationSetOperationErrorCodeArgs, vs as AddOperationExampleInputSchema, vt as CreateDocumentAction, vu as documentModelDocumentType, wa as SkipHeaderOperationIndex, wc as SetPreferredEditorActionInputSchema, wd as AuthSubject, wf as actionFromAction, wi as SetAuthorNameInput, wl as readPeerManifest, wm as Grant, wn as Incremental, wp as setPreferredEditor, wr as MutationSetOperationSchemaArgs, ws as ConfigEntryTypeSchema, wt as DeleteChildDocumentSignal, wu as DocumentModelPHStateSchema, xa as SignalType, xc as SetOperationSchemaInputSchema, xd as AuthEvaluation, xf as Action, xh as serializeSignature, xi as SchemaUndoAction, xl as manifestRevision, xm as AuthGroups, xn as ISignal, xp as setOperationSchema, xr as MutationSetOperationErrorTemplateArgs, xs as AuthorSchema, xt as DeleteChangeLogItemAction, xu as BaseDocumentHeaderSchema, ya as SignalResult, yc as SetOperationNameInputSchema, yd as AuthAction, yf as targetDocumentId, yh as UserActionSigner, yi as SchemaSetNameAction, yl as localPeerManifest, ym as updateHeaderRevision, yn as IDocument, yp as setOperationName, yr as MutationSetOperationErrorDescriptionArgs, ys as AddOperationInputSchema, yt as CreateDocumentActionInput, yu as groupDocumentType, za as UpdateStateExampleAction, zc as documentModelModuleReducer, zd as SetGrantActionInputSchema, zf as deleteOperation, zi as SetModuleNameAction, zl as createMinimalZip, zm as defaultBaseState, zn as MoveOperationInput, zp as baseCreateDocument, zr as PhAiToolDescriptor, zs as OperationScopeSchema, zt as DocumentModelDocument, zu as buildOperationSignatureParams } from "../types-DDH6v2BE.js";
|
|
1
|
+
import { $ as AddOperationErrorAction, $c as PURGE_DOCUMENT, $d as mentionedGroupIds, $f as reorderChangeLogItems, $i as SetOperationErrorTemplateAction, $l as replayDocumentVersioned, $m as isSignaturePolicy, $n as MutationDeleteStateExampleArgs, $o as assertOperationErrorIdUnique, $p as isDocumentAction, $r as RemoveRelationshipAction, $s as ReorderModulesInputSchema, $t as DocumentModelOperationErrorOperations, $u as documentModelInitialLocalState, Aa as Undo, Ac as StateSchema, Ad as InitializeAuthActionInputSchema, Af as addOperation, Ai as SetModelDescriptionAction, Al as createSignedHeaderForSigner, Am as PHGroupState, An as LoadFromInput, Ap as updateStateExample, Ar as MutationUpdateOperationExampleArgs, As as DeleteOperationInputSchema, At as DeleteOperationAction, Au as isDocumentModelState, Ba as UpdateStateExampleAction, Bc as documentModelModuleReducer, Bd as SetGrantActionInputSchema, Bf as deleteOperation, Bi as SetModuleNameAction, Bl as createMinimalZip, Bm as defaultBaseState, Bn as MoveOperationInput, Bp as baseCreateDocument, Br as PhAiToolDescriptor, Bs as OperationScopeSchema, Bt as DocumentModelDocument, Bu as buildOperationSignatureParams, Ca as SignatureVerificationHandler, Cc as SetOperationScopeInputSchema, Cd as AuthRefusal, Cf as ActionContext, Ci as ScopeState, Cl as mergePeerCapabilities, Cm as Capability, Cn as ISignalResult, Cp as setOperationScope, Cr as MutationSetOperationNameArgs, Cs as CodeExampleSchema, Ct as DeleteChangeLogItemInput, Cu as BaseDocumentStateSchema, Da as State, Dc as SetStateSchemaInputSchema, Dd as ConditionContext, Df as actions, Di as SetAuthorWebsiteInput, Dl as createCopyHeader, Dm as PHAuthState, Dn as IsDocumentOfType, Dp as undo, Dr as MutationSetStateSchemaArgs, Ds as DeleteModuleInputSchema, Dt as DeleteDocumentActionInput, Du as assertIsDocumentModelDocument, Ea as SkipHeaderOperations, Ec as SetPreferredEditorActionSchema, Ed as AuthVerb, Ef as actionSigner, Ei as SetAuthorWebsiteAction, El as selectProtocolVersions, Em as Operand, En as InputMaybe, Ep as setStateSchema, Er as MutationSetOperationTemplateArgs, Es as DeleteChangeLogItemInputSchema, Et as DeleteDocumentAction, Eu as DocumentModelSchema, Fa as UpdateChangeLogItemInput, Fc as UpdateOperationExampleInputSchema, Fd as RemoveGrantAction, Ff as buildOperationSignature, Fi as SetModelIdInput, Fl as verify, Fm as createDocumentState, Fn as MappedOperation, Fp as PHDocumentHeader, Fr as OperationSpecification, Fs as DocumentSpecificationSchema, Ft as DeleteOperationInput, Fu as isDenied, G as ActionSigningHandler, Ga as ValidationError, Gc as documentModelStateReducer, Gd as applySetGrantAction, Gf as moveOperation, Gi as SetOperationDescriptionAction, Gl as getFileBrowser, Gm as DEFAULT_SIGNATURE_POLICY, Gn as MutationAddOperationErrorArgs, Gp as filterDocumentOperationsResultingState, Gr as PurgeDocumentActionInput, Gs as PowerhouseModulesSchema, Gt as DocumentModelInput, Gu as HASH_ALGORITHM_SHA1, Ha as UpgradeDocumentAction, Hc as documentModelOperationExampleReducer, Hd as applyInitializeAuthAction, Hf as deleteOperationExample, Hi as SetNameAction, Hl as documentModelLoadFromInput, Hm as defaultGlobalState, Hn as MutationAddChangeLogItemInputArgs, Hp as checkCleanedOperationsIntegrity, Hr as PowerhouseModule, Hs as PieceModuleSchema, Ht as DocumentModelGlobalState, Hu as getUnixTimestamp, Ia as UpdateOperationExampleAction, Ic as UpdateStateExampleInputSchema, Id as RemoveGrantActionInput, If as buildSignedAction, Ii as SetModelNameAction, Il as BulkArchiveEntry, Im as createGlobalState, In as Maybe, Ip as PHDocumentMeta, Ir as OperationsByScope, Is as ManifestSchema, It as DeleteStateExampleAction, Iu as ab2hex, J as AddChangeLogItemAction, Jc as baseReducer, Jd as decide, Jf as operationFromAction, Ji as SetOperationErrorCodeInput, Jl as readFileBrowser, Jm as SIGNATURE_PROTOCOL, Jn as MutationDeleteChangeLogItemInputArgs, Jp as garbageCollectDocumentOperations, Jr as RedoAction, Js as RedoActionInputSchema, Jt as DocumentModelModule, Ju as HASH_ENCODING_BASE64, K as ActionVerificationHandler, Kc as documentModelStateSchemaReducer, Kd as assertAuthPreservedOnDuplicate, Kf as noop, Ki as SetOperationDescriptionInput, Kl as isDocumentZip, Km as DocumentIdParams, Kn as MutationAddOperationExampleArgs, Kp as filterDuplicatedOperations, Kr as Query, Ks as PublisherSchema, Kt as DocumentModelLib, Ku as HASH_ALGORITHM_SHA256, La as UpdateOperationExampleInput, Lc as definedNonNullAnySchema, Ld as RemoveGrantActionInputSchema, Lf as createAction, Li as SetModelNameInput, Ll as baseLoadFromInput, Lm as createLocalState, Ln as MinimalBackupData, Lp as addUndo, Lr as PartialRecord, Ls as ModuleSchema, Lt as DeleteStateExampleInput, Lu as base58Decode, Ma as UndoActionInput, Mc as UndoActionSchema, Md as MoveGrantAction, Mf as addOperationExample, Mi as SetModelExtensionAction, Ml as hasDerivedDocumentId, Mm as backfillAuthState, Mn as MakeMaybe, Mp as IntegrityIssueSubType, Mr as NOOPAction, Ms as DocumentActionSchema, Mt as DeleteOperationErrorInput, Mu as AUTH_NO_GRANT_REASON, Na as UndoRedoAction, Nc as UndoSchema, Nd as MoveGrantActionInput, Nf as addStateExample, Ni as SetModelExtensionInput, Nl as sign, Nm as createAuthState, Nn as MakeOptional, Np as IntegrityIssueType, Nr as OperationErrorSpecification, Ns as DocumentModelGlobalStateSchema, Nt as DeleteOperationExampleAction, Nu as AUTH_VERSION_UNSUPPORTED_REASON, Oa as StateReducer, Oc as Set_NameSchema, Od as InitializeAuthAction, Of as addChangeLogItem, Oi as SetInitialStateAction, Ol as createPresignedHeader, Om as PHBaseState, On as IsStateOfType, Op as updateChangeLogItem, Or as MutationUndoArgs, Os as DeleteOperationErrorInputSchema, Ot as DeleteModuleAction, Ou as assertIsDocumentModelState, Pa as UpdateChangeLogItemAction, Pc as UpdateChangeLogItemInputSchema, Pd as MoveGrantActionInputSchema, Pf as baseActions, Pi as SetModelIdAction, Pl as validateHeader, Pm as createBaseState, Pn as Manifest, Pp as PHDocument, Pr as OperationIndex, Ps as DocumentModelInputSchema, Pt as DeleteOperationExampleInput, Pu as DOCUMENT_DELETED_REASON, Q as AddOperationAction, Qc as updateDocument, Qd as isDocumentCreator, Qf as releaseNewVersion, Qi as SetOperationErrorNameInput, Ql as VersionedReplayConfig, Qm as isDerivedDocumentId, Qn as MutationDeleteOperationExampleArgs, Qo as assertModuleIdUnique, Qp as hashDocumentStateForScope, Qr as ReleaseNewVersionAction, Qs as ReorderModuleOperationsInputSchema, Qt as DocumentModelOperationErrorAction, Qu as documentModelInitialGlobalState, Ra as UpdateRelationshipAction, Rc as isDefinedNonNullAny, Rd as SetGrantAction, Rf as deleteChangeLogItem, Ri as SetModuleDescriptionAction, Rl as baseLoadFromInputVersioned, Rm as createState, Rn as ModuleSpecification, Rp as appendWithoutApplying, Rr as PartialState, Rs as MoveOperationInputSchema, Rt as DocumentAction, Ru as base64UrlToBytes, Sa as SignalType, Sc as SetOperationSchemaInputSchema, Sd as AuthEvaluation, Sf as Action, Sh as serializeSignature, Si as SchemaUndoAction, Sl as manifestRevision, Sm as AuthGroups, Sn as ISignal, Sp as setOperationSchema, Sr as MutationSetOperationErrorTemplateArgs, Ss as AuthorSchema, St as DeleteChangeLogItemAction, Su as BaseDocumentHeaderSchema, Ta as SkipHeaderOperationIndex, Tc as SetPreferredEditorActionInputSchema, Td as AuthSubject, Tf as actionFromAction, Ti as SetAuthorNameInput, Tl as readPeerManifest, Tm as Grant, Tn as Incremental, Tp as setPreferredEditor, Tr as MutationSetOperationSchemaArgs, Ts as ConfigEntryTypeSchema, Tt as DeleteChildDocumentSignal, Tu as DocumentModelPHStateSchema, U as ActionErrorCallback, Ua as UpgradeDocumentActionInput, Uc as documentModelOperationReducer, Ud as applyMoveGrantAction, Uf as deleteStateExample, Ui as SetNameActionInput, Ul as documentModelSaveToFileHandle, Um as defaultLocalState, Un as MutationAddModuleArgs, Up as checkOperationsIntegrity, Ur as Publisher, Us as PieceModulesSchema, Ut as DocumentModelHeaderAction, Uu as hashBrowser, Va as UpdateStateExampleInput, Vc as documentModelOperationErrorReducer, Vd as applyAuthAction, Vf as deleteOperationError, Vi as SetModuleNameInput, Vl as createZip, Vm as defaultDocumentState, Vn as Mutation, Vp as baseReducerVersion, Vr as PieceModule, Vs as OperationSpecificationSchema, Vt as DocumentModelDocumentModelModule, Vu as bytesToBase64Url, W as ActionSignatureContext, Wa as User, Wc as documentModelReducer, Wd as applyRemoveGrantAction, Wf as documentModelActions, Wi as SetNameOperation, Wl as fetchFileBrowser, Wm as defaultPHState, Wn as MutationAddOperationArgs, Wp as diffOperations, Wr as PurgeDocumentAction, Ws as PowerhouseModuleSchema, Wt as DocumentModelHeaderOperations, Wu as hex2ab, X as AddModuleAction, Xc as processUndoRedo, Xd as initializeAuth, Xf as operationWithContext, Xi as SetOperationErrorDescriptionInput, Xl as zipEntries, Xm as SignaturePolicy, Xn as MutationDeleteOperationArgs, Xo as RESERVED_OPERATION_NAMES, Xp as getDocumentLastModified, Xr as Reducer, Xs as RedoSchema, Xt as DocumentModelModuleOperations, Xu as documentModelFileExtension, Y as AddChangeLogItemInput, Yc as createReducer, Yd as evaluate, Yf as operationFromOperation, Yi as SetOperationErrorDescriptionAction, Yl as writeFileBrowser, Ym as SIGNATURE_PROTOCOL_V2, Yn as MutationDeleteModuleArgs, Yo as OPERATION_NAME_PATTERN, Yp as garbageCollectV2, Yr as RedoActionInput, Ys as RedoActionSchema, Yt as DocumentModelModuleAction, Yu as HASH_ENCODING_HEX, Z as AddModuleInput, Zc as replayOperations, Zd as isAuthAction, Zf as redo, Zi as SetOperationErrorNameAction, Zl as VersionedReducers, Zm as deriveDocumentId, Zn as MutationDeleteOperationErrorArgs, Zo as ReservedOperationName, Zp as groupOperationsByScope, Zr as ReducerOptions, Zs as ReorderChangeLogItemsInputSchema, Zt as DocumentModelOperationAction, Zu as documentModelGlobalState, _a as Set_PreferredEditor, _c as SetOperationErrorDescriptionInputSchema, _d as isPlainValue, _f as hashActionV2, _h as HashConfig, _i as Scalars, _l as holdReason, _m as sortMappedOperations, _n as GetDocumentOptions, _p as setOperationErrorDescription, _r as MutationSetNameArgs, _s as AddModuleInputSchema, _t as CreateChildDocumentSignal, _u as InvalidAuthVersionError, aa as SetOperationSchemaAction, ac as SetAuthorWebsiteInputSchema, ad as MAX_AUTH_GRANTS, af as TransportActionContext, ah as Operation, ai as ReorderModulesAction, al as DOCUMENT_PURGE_PROTOCOL, am as merge, an as DocumentModelStateOperations, ap as setAuthorName, ar as MutationReorderOperationErrorsArgs, as as findOperationOrThrow, at as AddRelationshipActionInput, au as computeUpgradeTransitions, ba as SignalResult, bc as SetOperationNameInputSchema, bd as AuthAction, bf as targetDocumentId, bh as UserActionSigner, bi as SchemaSetNameAction, bl as localPeerManifest, bm as updateHeaderRevision, bn as IDocument, bp as setOperationName, br as MutationSetOperationErrorDescriptionArgs, bs as AddOperationInputSchema, bt as CreateDocumentActionInput, bu as groupDocumentType, ca as SetOperationScopeInput, cc as SetModelExtensionInputSchema, cd as MAX_CONDITION_NODES, cf as ACTION_SIGNATURE_V2_PREFIX, ch as OperationWithContext, ci as ReorderOperationErrorsInput, cl as MARKER_REFUSAL_FEATURE, cm as parseResultingState, cn as DocumentModelVersioningOperations, cp as setModelDescription, cr as MutationSetAuthorNameArgs, cs as isValidOperationNameFormat, ct as AssertIsDocumentOfType, cu as AuthAlreadyInitializedError, da as SetPreferredEditorAction, dc as SetModuleDescriptionInputSchema, dd as assertValidGrantUpsert, df as CanonicalJsonError, dh as setNameOperation, di as ReorderStateExamplesAction, dl as PeerCapability, dm as readOnly, dn as ENSInfo, dp as setModelName, dr as MutationSetModelDescriptionArgs, ds as validateModuleOperation, dt as CodeExample, du as DowngradeNotSupportedError, ea as SetOperationErrorTemplateInput, ec as ReorderOperationErrorsInputSchema, ed as AuthAdministrationLockoutError, ef as moveGrant, eh as protocolVersionsFor, ei as RemoveRelationshipActionInput, el as PurgeMarkerOperation, em as isNoopOperation, en as DocumentModelOperationExampleAction, ep as reorderModuleOperations, er as MutationMoveOperationArgs, es as assertOperationExampleIdUnique, et as AddOperationErrorInput, eu as UpgradeManifest, fa as SetPreferredEditorActionInput, fc as SetModuleNameInputSchema, fd as assertValidInitialGrants, ff as DOCUMENT_SCOPE_ACTION_TYPES, fh as setPreferredEditorOperation, fi as ReorderStateExamplesInput, fl as PeerCapabilityFlags, fm as removeExistingOperations, fn as EditorDispatch, fp as setModuleDescription, fr as MutationSetModelExtensionArgs, fs as validateModules, ft as ConfigEntry, fu as FileSystemError, ga as Set_Name, gc as SetOperationErrorCodeInputSchema, gd as grantProblem, gf as canonicalJson, gh as AppActionSigner, gi as SaveToFileHandle, gl as coversLocal, gm as skipHeaderOperations, gn as FileInput, gp as setOperationErrorCode, gr as MutationSetModuleNameArgs, gs as AddChangeLogItemInputSchema, gt as CreateChildDocumentInput, gu as InvalidActionInputZodError, ha as SetStateSchemaInput, hc as SetOperationDescriptionInputSchema, hd as evaluateGrants, hf as actionSigningTarget, hh as ActionSigner, hi as SaveToFile, hl as Supports, hm as reshuffleByTimestampAndIndex, hn as Exact, hp as setOperationDescription, hr as MutationSetModuleDescriptionArgs, hs as validateStateSchemaName, ht as CopyChildDocumentSignal, hu as InvalidActionInputError, ia as SetOperationReducerInput, ic as SetAuthorNameInputSchema, id as InvalidGrantError, if as TransportAction, ih as DocumentOperations, ii as ReorderModuleOperationsInput, il as purgedProtocolVersions, im as mapSkippedOperationsV2, in as DocumentModelStateAction, ip as reorderStateExamples, ir as MutationReorderModulesArgs, is as findOperationExampleOrThrow, it as AddRelationshipAction, iu as applyUpgradeDocumentAction, ja as UndoAction, jc as UndoActionInputSchema, jd as MAX_SUPPORTED_AUTH_VERSION, jf as addOperationError, ji as SetModelDescriptionInput, jl as createVerificationSigner, jm as Principal, jn as MakeEmpty, jp as verifyOperationSignature, jr as MutationUpdateStateExampleArgs, js as DeleteStateExampleInputSchema, jt as DeleteOperationErrorAction, ju as AUTH_DENIED_BY_GRANT_REASON, ka as SubgraphModule, kc as Set_PreferredEditorSchema, kd as InitializeAuthActionInput, kf as addModule, ki as SetInitialStateInput, kl as createSignedHeader, km as PHDocumentState, kn as LoadFromFile, kp as updateOperationExample, kr as MutationUpdateChangeLogItemInputArgs, ks as DeleteOperationExampleInputSchema, kt as DeleteModuleInput, ku as isDocumentModelDocument, la as SetOperationTemplateAction, lc as SetModelIdInputSchema, ld as assertAuthAdministrationRetained, lf as ActionSignerIdentity, lh as operationOutcome, li as ReorderOperationExamplesAction, ll as PEER_CAPABILITIES, lm as precedes, ln as DocumentOperationsIgnoreMap, lp as setModelExtension, lr as MutationSetAuthorWebsiteArgs, ls as validateInitialState, lt as AssertIsStateOfType, lu as AuthInitializerNotCreatorError, ma as SetStateSchemaAction, mc as SetNameActionSchema, md as evaluateGrantStack, mf as actionSignerIdentity, mh as undoOperationV2, mi as RevisionsFilter, ml as ProtocolCapability, mm as reshuffleByTimestamp, mn as EditorProps, mp as setName, mr as MutationSetModelNameArgs, ms as validateOperations, mt as CopyChildDocumentInput, mu as HashMismatchError, na as SetOperationNameInput, nc as ReorderStateExamplesInputSchema, nd as GrantSchema, nf as resolveSnapshotAuth, nh as signaturePolicyOf, ni as ReorderChangeLogItemsInput, nl as purgeDocumentAction, nm as isUndoRedo, nn as DocumentModelOperationOperations, np as reorderOperationErrors, nr as MutationReorderChangeLogItemsInputArgs, ns as findModuleOrThrow, nt as AddOperationExampleInput, nu as UpgradeTransition, oa as SetOperationSchemaInput, oc as SetInitialStateInputSchema, od as MAX_CAPABILITY_OPERATIONS, of as TransportSigner, oh as OperationContext, oi as ReorderModulesInput, ol as FeatureCapability, om as nextSkipNumber, on as DocumentModelUtils, op as setAuthorWebsite, or as MutationReorderOperationExamplesArgs, os as getAllOperationNames, ot as AddStateExampleAction, ou as withProtocolVersions, pa as SetPreferredEditorOperation, pc as SetNameActionInputSchema, pd as evaluateCondition, pf as actionPreimageV2, ph as undoOperation, pi as ReplayDocumentOptions, pl as PeerManifest, pm as replayDocument, pn as EditorModule, pp as setModuleName, pr as MutationSetModelIdArgs, ps as validateOperationName, pt as ConfigEntryType, pu as GrantNotFoundError, q as Actions, qc as documentModelVersioningReducer, qd as assertAuthScopeActionAllowed, qf as operationExampleCreators, qi as SetOperationErrorCodeAction, ql as parseBulkArchive, qm as ProtocolVersions, qn as MutationAddStateExampleArgs, qp as garbageCollect, qr as Redo, qs as PwaConfigSchema, qt as DocumentModelLocalState, qu as HASH_ALGORITHM_SHA512, ra as SetOperationReducerAction, rc as ScopeStateSchema, rd as GroupPrincipalNotAllowedError, rf as setGrant, rh as v2RequiredProtocolVersions, ri as ReorderModuleOperationsAction, rl as purgeMarkerOperation, rm as mapSkippedOperations, rn as DocumentModelPHState, rp as reorderOperationExamples, rr as MutationReorderModuleOperationsArgs, rs as findOperationErrorOrThrow, rt as AddOperationInput, ru as applyDeleteDocumentAction, sa as SetOperationScopeAction, sc as SetModelDescriptionInputSchema, sd as MAX_CONDITION_DEPTH, sf as toTransportAction, sh as OperationOutcome, si as ReorderOperationErrorsAction, sl as HoldReason, sm as operationsAreEqual, sn as DocumentModelVersioningAction, sp as setInitialState, sr as MutationReorderStateExamplesArgs, ss as isReservedOperationName, st as AddStateExampleInput, su as AuthActionNotAllowedError, ta as SetOperationNameAction, tc as ReorderOperationExamplesInputSchema, td as AuthAdministrationMissingError, tf as removeGrant, th as requestedSignaturePolicy, ti as ReorderChangeLogItemsAction, tl as isPurgeMarker, tm as isUndo, tn as DocumentModelOperationExampleOperations, tp as reorderModules, tr as MutationRedoArgs, ts as assertOperationIdUnique, tt as AddOperationExampleAction, tu as UpgradeReducer, ua as SetOperationTemplateInput, uc as SetModelNameInputSchema, ud as assertValidGrant, uf as ActionSigningTarget, uh as redoOperation, ui as ReorderOperationExamplesInput, ul as PEER_MANIFEST_FORMAT, um as prepareOperations, un as DocumentSpecification, up as setModelId, ur as MutationSetInitialStateArgs, us as validateModule, ut as Author, uu as AuthPolicyNotPreservedError, va as Signal, vc as SetOperationErrorNameInputSchema, vd as referencedGroupIds, vf as isV2ActionHash, vh as PHDocumentSignatureInfo, vi as SchemaNOOPAction, vl as isOlderManifest, vm as sortOperations, vn as IAction, vp as setOperationErrorName, vr as MutationSetOperationDescriptionArgs, vs as AddOperationErrorInputSchema, vt as CreateDocument, vu as UnsupportedDocumentModelVersionError, wa as SigningParameters, wc as SetOperationTemplateInputSchema, wd as AuthRequest, wf as actionContext, wi as SetAuthorNameAction, wl as peerSupports, wm as Condition, wn as ISigner, wp as setOperationTemplate, wr as MutationSetOperationReducerArgs, ws as ConfigEntrySchema, wt as DeleteChildDocumentInput, wu as DocumentModelHeaderSchema, xa as SignalResults, xc as SetOperationReducerInputSchema, xd as AuthDecision, xf as v2TupleProblem, xh as deserializeSignature, xi as SchemaSetPreferredEditorAction, xl as localSupports, xm as withSignaturePolicy, xn as IOperation, xp as setOperationReducer, xr as MutationSetOperationErrorNameArgs, xs as AddStateExampleInputSchema, xt as CreateState, xu as groupMembershipActionTypes, ya as SignalDispatch, yc as SetOperationErrorTemplateInputSchema, yd as AUTH_ACTION_TYPES, yf as signActionV2, yh as Signature, yi as SchemaRedoAction, yl as legacySupports, ym as split, yn as ID, yp as setOperationErrorTemplate, yr as MutationSetOperationErrorCodeArgs, ys as AddOperationExampleInputSchema, yt as CreateDocumentAction, yu as documentModelDocumentType, za as UpdateRelationshipActionInput, zc as documentModelHeaderReducer, zd as SetGrantActionInput, zf as deleteModule, zi as SetModuleDescriptionInput, zl as baseSaveToFileHandle, zm as defaultAuthState, zn as MoveOperationAction, zp as attachBranch, zr as PhAiToolAnnotations, zs as OperationErrorSchema, zt as DocumentModelAction, zu as buildOperationSignatureMessage } from "../types-BUqiKtkv.js";
|
|
2
2
|
import { t as normalizeDocumentModelVersion } from "../version-BxLITo9P.js";
|
|
3
3
|
import { n as generateId, r as generateMock, t as deriveOperationId } from "../utils-BrKxCmKx.js";
|
|
4
4
|
export { ACTION_SIGNATURE_V2_PREFIX, AUTH_ACTION_TYPES, AUTH_DENIED_BY_GRANT_REASON, AUTH_NO_GRANT_REASON, AUTH_VERSION_UNSUPPORTED_REASON, Action, ActionContext, type ActionErrorCallback, type ActionSignatureContext, ActionSigner, ActionSignerIdentity, type ActionSigningHandler, ActionSigningTarget, type ActionVerificationHandler, type Actions, type AddChangeLogItemAction, type AddChangeLogItemInput, AddChangeLogItemInputSchema, type AddModuleAction, type AddModuleInput, AddModuleInputSchema, type AddOperationAction, type AddOperationErrorAction, type AddOperationErrorInput, AddOperationErrorInputSchema, type AddOperationExampleAction, type AddOperationExampleInput, AddOperationExampleInputSchema, type AddOperationInput, AddOperationInputSchema, type AddRelationshipAction, type AddRelationshipActionInput, type AddStateExampleAction, type AddStateExampleInput, AddStateExampleInputSchema, AppActionSigner, type AssertIsDocumentOfType, type AssertIsStateOfType, AuthAction, AuthActionNotAllowedError, AuthAdministrationLockoutError, AuthAdministrationMissingError, AuthAlreadyInitializedError, AuthDecision, AuthEvaluation, AuthGroups, AuthInitializerNotCreatorError, AuthPolicyNotPreservedError, AuthRefusal, AuthRequest, AuthSubject, AuthVerb, type Author, AuthorSchema, BaseDocumentHeaderSchema, BaseDocumentStateSchema, BulkArchiveEntry, CanonicalJsonError, Capability, type CodeExample, CodeExampleSchema, Condition, ConditionContext, type ConfigEntry, ConfigEntrySchema, type ConfigEntryType, ConfigEntryTypeSchema, type CopyChildDocumentInput, type CopyChildDocumentSignal, type CreateChildDocumentInput, type CreateChildDocumentSignal, type CreateDocument, type CreateDocumentAction, type CreateDocumentActionInput, type CreateState, DEFAULT_SIGNATURE_POLICY, DOCUMENT_DELETED_REASON, DOCUMENT_PURGE_PROTOCOL, DOCUMENT_SCOPE_ACTION_TYPES, type DeleteChangeLogItemAction, type DeleteChangeLogItemInput, DeleteChangeLogItemInputSchema, type DeleteChildDocumentInput, type DeleteChildDocumentSignal, type DeleteDocumentAction, type DeleteDocumentActionInput, type DeleteModuleAction, type DeleteModuleInput, DeleteModuleInputSchema, type DeleteOperationAction, type DeleteOperationErrorAction, type DeleteOperationErrorInput, DeleteOperationErrorInputSchema, type DeleteOperationExampleAction, type DeleteOperationExampleInput, DeleteOperationExampleInputSchema, type DeleteOperationInput, DeleteOperationInputSchema, type DeleteStateExampleAction, type DeleteStateExampleInput, DeleteStateExampleInputSchema, type DocumentAction, DocumentActionSchema, DocumentIdParams, type DocumentModelAction, type DocumentModelDocument, type DocumentModelDocumentModelModule, type DocumentModelGlobalState, DocumentModelGlobalStateSchema, type DocumentModelHeaderAction, type DocumentModelHeaderOperations, DocumentModelHeaderSchema, type DocumentModelInput, DocumentModelInputSchema, type DocumentModelLib, type DocumentModelLocalState, type DocumentModelModule, type DocumentModelModuleAction, type DocumentModelModuleOperations, type DocumentModelOperationAction, type DocumentModelOperationErrorAction, type DocumentModelOperationErrorOperations, type DocumentModelOperationExampleAction, type DocumentModelOperationExampleOperations, type DocumentModelOperationOperations, type DocumentModelPHState, DocumentModelPHStateSchema, DocumentModelSchema, type DocumentModelStateAction, type DocumentModelStateOperations, type DocumentModelUtils, type DocumentModelVersioningAction, type DocumentModelVersioningOperations, DocumentOperations, type DocumentOperationsIgnoreMap, type DocumentSpecification, DocumentSpecificationSchema, DowngradeNotSupportedError, type ENSInfo, type EditorDispatch, type EditorModule, type EditorProps, type Exact, FeatureCapability, type FileInput, FileSystemError, type GetDocumentOptions, Grant, GrantNotFoundError, GrantSchema, GroupPrincipalNotAllowedError, HASH_ALGORITHM_SHA1, HASH_ALGORITHM_SHA256, HASH_ALGORITHM_SHA512, HASH_ENCODING_BASE64, HASH_ENCODING_HEX, HashConfig, HashMismatchError, HoldReason, type IAction, type ID, type IDocument, type IOperation, type ISignal, type ISignalResult, type ISigner, type Incremental, InitializeAuthAction, InitializeAuthActionInput, InitializeAuthActionInputSchema, type InputMaybe, IntegrityIssueSubType, IntegrityIssueType, InvalidActionInputError, InvalidActionInputZodError, InvalidAuthVersionError, InvalidGrantError, type IsDocumentOfType, type IsStateOfType, type LoadFromFile, type LoadFromInput, MARKER_REFUSAL_FEATURE, MAX_AUTH_GRANTS, MAX_CAPABILITY_OPERATIONS, MAX_CONDITION_DEPTH, MAX_CONDITION_NODES, MAX_SUPPORTED_AUTH_VERSION, type MakeEmpty, type MakeMaybe, type MakeOptional, type Manifest, ManifestSchema, type MappedOperation, type Maybe, type MinimalBackupData, ModuleSchema, type ModuleSpecification, MoveGrantAction, MoveGrantActionInput, MoveGrantActionInputSchema, type MoveOperationAction, type MoveOperationInput, MoveOperationInputSchema, type Mutation, type MutationAddChangeLogItemInputArgs, type MutationAddModuleArgs, type MutationAddOperationArgs, type MutationAddOperationErrorArgs, type MutationAddOperationExampleArgs, type MutationAddStateExampleArgs, type MutationDeleteChangeLogItemInputArgs, type MutationDeleteModuleArgs, type MutationDeleteOperationArgs, type MutationDeleteOperationErrorArgs, type MutationDeleteOperationExampleArgs, type MutationDeleteStateExampleArgs, type MutationMoveOperationArgs, type MutationRedoArgs, type MutationReorderChangeLogItemsInputArgs, type MutationReorderModuleOperationsArgs, type MutationReorderModulesArgs, type MutationReorderOperationErrorsArgs, type MutationReorderOperationExamplesArgs, type MutationReorderStateExamplesArgs, type MutationSetAuthorNameArgs, type MutationSetAuthorWebsiteArgs, type MutationSetInitialStateArgs, type MutationSetModelDescriptionArgs, type MutationSetModelExtensionArgs, type MutationSetModelIdArgs, type MutationSetModelNameArgs, type MutationSetModuleDescriptionArgs, type MutationSetModuleNameArgs, type MutationSetNameArgs, type MutationSetOperationDescriptionArgs, type MutationSetOperationErrorCodeArgs, type MutationSetOperationErrorDescriptionArgs, type MutationSetOperationErrorNameArgs, type MutationSetOperationErrorTemplateArgs, type MutationSetOperationNameArgs, type MutationSetOperationReducerArgs, type MutationSetOperationSchemaArgs, type MutationSetOperationTemplateArgs, type MutationSetStateSchemaArgs, type MutationUndoArgs, type MutationUpdateChangeLogItemInputArgs, type MutationUpdateOperationExampleArgs, type MutationUpdateStateExampleArgs, type NOOPAction, OPERATION_NAME_PATTERN, Operand, Operation, OperationContext, OperationErrorSchema, type OperationErrorSpecification, type OperationIndex, OperationOutcome, OperationScopeSchema, type OperationSpecification, OperationSpecificationSchema, OperationWithContext, type OperationsByScope, PEER_CAPABILITIES, PEER_MANIFEST_FORMAT, PHAuthState, PHBaseState, PHDocument, PHDocumentHeader, PHDocumentMeta, PHDocumentSignatureInfo, PHDocumentState, PHGroupState, PURGE_DOCUMENT, type PartialRecord, type PartialState, PeerCapability, PeerCapabilityFlags, PeerManifest, type PhAiToolAnnotations, type PhAiToolDescriptor, type PieceModule, PieceModuleSchema, PieceModulesSchema, type PowerhouseModule, PowerhouseModuleSchema, PowerhouseModulesSchema, Principal, ProtocolCapability, ProtocolVersions, type Publisher, PublisherSchema, type PurgeDocumentAction, type PurgeDocumentActionInput, PurgeMarkerOperation, PwaConfigSchema, type Query, RESERVED_OPERATION_NAMES, type Redo, type RedoAction, type RedoActionInput, RedoActionInputSchema, RedoActionSchema, RedoSchema, type Reducer, type ReducerOptions, type ReleaseNewVersionAction, RemoveGrantAction, RemoveGrantActionInput, RemoveGrantActionInputSchema, type RemoveRelationshipAction, type RemoveRelationshipActionInput, type ReorderChangeLogItemsAction, type ReorderChangeLogItemsInput, ReorderChangeLogItemsInputSchema, type ReorderModuleOperationsAction, type ReorderModuleOperationsInput, ReorderModuleOperationsInputSchema, type ReorderModulesAction, type ReorderModulesInput, ReorderModulesInputSchema, type ReorderOperationErrorsAction, type ReorderOperationErrorsInput, ReorderOperationErrorsInputSchema, type ReorderOperationExamplesAction, type ReorderOperationExamplesInput, ReorderOperationExamplesInputSchema, type ReorderStateExamplesAction, type ReorderStateExamplesInput, ReorderStateExamplesInputSchema, type ReplayDocumentOptions, ReservedOperationName, type RevisionsFilter, SIGNATURE_PROTOCOL, SIGNATURE_PROTOCOL_V2, type SaveToFile, type SaveToFileHandle, type Scalars, type SchemaNOOPAction, type SchemaRedoAction, type SchemaSetNameAction, type SchemaSetPreferredEditorAction, type SchemaUndoAction, type ScopeState, ScopeStateSchema, type SetAuthorNameAction, type SetAuthorNameInput, SetAuthorNameInputSchema, type SetAuthorWebsiteAction, type SetAuthorWebsiteInput, SetAuthorWebsiteInputSchema, SetGrantAction, SetGrantActionInput, SetGrantActionInputSchema, type SetInitialStateAction, type SetInitialStateInput, SetInitialStateInputSchema, type SetModelDescriptionAction, type SetModelDescriptionInput, SetModelDescriptionInputSchema, type SetModelExtensionAction, type SetModelExtensionInput, SetModelExtensionInputSchema, type SetModelIdAction, type SetModelIdInput, SetModelIdInputSchema, type SetModelNameAction, type SetModelNameInput, SetModelNameInputSchema, type SetModuleDescriptionAction, type SetModuleDescriptionInput, SetModuleDescriptionInputSchema, type SetModuleNameAction, type SetModuleNameInput, SetModuleNameInputSchema, type SetNameAction, type SetNameActionInput, SetNameActionInputSchema, SetNameActionSchema, type SetNameOperation, type SetOperationDescriptionAction, type SetOperationDescriptionInput, SetOperationDescriptionInputSchema, type SetOperationErrorCodeAction, type SetOperationErrorCodeInput, SetOperationErrorCodeInputSchema, type SetOperationErrorDescriptionAction, type SetOperationErrorDescriptionInput, SetOperationErrorDescriptionInputSchema, type SetOperationErrorNameAction, type SetOperationErrorNameInput, SetOperationErrorNameInputSchema, type SetOperationErrorTemplateAction, type SetOperationErrorTemplateInput, SetOperationErrorTemplateInputSchema, type SetOperationNameAction, type SetOperationNameInput, SetOperationNameInputSchema, type SetOperationReducerAction, type SetOperationReducerInput, SetOperationReducerInputSchema, type SetOperationSchemaAction, type SetOperationSchemaInput, SetOperationSchemaInputSchema, type SetOperationScopeAction, type SetOperationScopeInput, SetOperationScopeInputSchema, type SetOperationTemplateAction, type SetOperationTemplateInput, SetOperationTemplateInputSchema, type SetPreferredEditorAction, type SetPreferredEditorActionInput, SetPreferredEditorActionInputSchema, SetPreferredEditorActionSchema, type SetPreferredEditorOperation, type SetStateSchemaAction, type SetStateSchemaInput, SetStateSchemaInputSchema, type Set_Name, Set_NameSchema, type Set_PreferredEditor, Set_PreferredEditorSchema, type Signal, type SignalDispatch, type SignalResult, type SignalResults, type SignalType, Signature, SignaturePolicy, type SignatureVerificationHandler, type SigningParameters, type SkipHeaderOperationIndex, type SkipHeaderOperations, type State, type StateReducer, StateSchema, type SubgraphModule, Supports, TransportAction, TransportActionContext, TransportSigner, type Undo, type UndoAction, type UndoActionInput, UndoActionInputSchema, UndoActionSchema, type UndoRedoAction, UndoSchema, UnsupportedDocumentModelVersionError, type UpdateChangeLogItemAction, type UpdateChangeLogItemInput, UpdateChangeLogItemInputSchema, type UpdateOperationExampleAction, type UpdateOperationExampleInput, UpdateOperationExampleInputSchema, type UpdateRelationshipAction, type UpdateRelationshipActionInput, type UpdateStateExampleAction, type UpdateStateExampleInput, UpdateStateExampleInputSchema, type UpgradeDocumentAction, type UpgradeDocumentActionInput, UpgradeManifest, UpgradeReducer, UpgradeTransition, type User, UserActionSigner, type ValidationError, VersionedReducers, VersionedReplayConfig, ab2hex, actionContext, actionFromAction, actionPreimageV2, actionSigner, actionSignerIdentity, actionSigningTarget, actions, addChangeLogItem, addModule, addOperation, addOperationError, addOperationExample, addStateExample, addUndo, appendWithoutApplying, applyAuthAction, applyDeleteDocumentAction, applyInitializeAuthAction, applyMoveGrantAction, applyRemoveGrantAction, applySetGrantAction, applyUpgradeDocumentAction, assertAuthAdministrationRetained, assertAuthPreservedOnDuplicate, assertAuthScopeActionAllowed, assertIsDocumentModelDocument, assertIsDocumentModelState, assertModuleIdUnique, assertOperationErrorIdUnique, assertOperationExampleIdUnique, assertOperationIdUnique, assertValidGrant, assertValidGrantUpsert, assertValidInitialGrants, attachBranch, backfillAuthState, base58Decode, base64UrlToBytes, baseActions, baseCreateDocument, baseLoadFromInput, baseLoadFromInputVersioned, baseReducer, baseReducerVersion, baseSaveToFileHandle, buildOperationSignature, buildOperationSignatureMessage, buildOperationSignatureParams, buildSignedAction, bytesToBase64Url, canonicalJson, checkCleanedOperationsIntegrity, checkOperationsIntegrity, computeUpgradeTransitions, coversLocal, createAction, createAuthState, createBaseState, createCopyHeader, createDocumentState, createGlobalState, createLocalState, createMinimalZip, createPresignedHeader, createReducer, createSignedHeader, createSignedHeaderForSigner, createState, createVerificationSigner, createZip, decide, defaultAuthState, defaultBaseState, defaultDocumentState, defaultGlobalState, defaultLocalState, defaultPHState, definedNonNullAnySchema, deleteChangeLogItem, deleteModule, deleteOperation, deleteOperationError, deleteOperationExample, deleteStateExample, deriveDocumentId, deriveOperationId, deserializeSignature, diffOperations, documentModelActions, documentModelDocumentType, documentModelFileExtension, documentModelGlobalState, documentModelHeaderReducer, documentModelInitialGlobalState, documentModelInitialLocalState, documentModelLoadFromInput, documentModelModuleReducer, documentModelOperationErrorReducer, documentModelOperationExampleReducer, documentModelOperationReducer, documentModelReducer, documentModelSaveToFileHandle, documentModelStateReducer, documentModelStateSchemaReducer, documentModelVersioningReducer, evaluate, evaluateCondition, evaluateGrantStack, evaluateGrants, fetchFileBrowser, filterDocumentOperationsResultingState, filterDuplicatedOperations, findModuleOrThrow, findOperationErrorOrThrow, findOperationExampleOrThrow, findOperationOrThrow, garbageCollect, garbageCollectDocumentOperations, garbageCollectV2, generateId, generateMock, getAllOperationNames, getDocumentLastModified, getFileBrowser, getUnixTimestamp, grantProblem, groupDocumentType, groupMembershipActionTypes, groupOperationsByScope, hasDerivedDocumentId, hashActionV2, hashBrowser, hashDocumentStateForScope, hex2ab, holdReason, initializeAuth, isAuthAction, isDefinedNonNullAny, isDenied, isDerivedDocumentId, isDocumentAction, isDocumentCreator, isDocumentModelDocument, isDocumentModelState, isDocumentZip, isNoopOperation, isOlderManifest, isPlainValue, isPurgeMarker, isReservedOperationName, isSignaturePolicy, isUndo, isUndoRedo, isV2ActionHash, isValidOperationNameFormat, legacySupports, localPeerManifest, localSupports, manifestRevision, mapSkippedOperations, mapSkippedOperationsV2, mentionedGroupIds, merge, mergePeerCapabilities, moveGrant, moveOperation, nextSkipNumber, noop, normalizeDocumentModelVersion, operationExampleCreators, operationFromAction, operationFromOperation, operationOutcome, operationWithContext, operationsAreEqual, parseBulkArchive, parseResultingState, peerSupports, precedes, prepareOperations, processUndoRedo, protocolVersionsFor, purgeDocumentAction, purgeMarkerOperation, purgedProtocolVersions, readFileBrowser, readOnly, readPeerManifest, redo, redoOperation, referencedGroupIds, releaseNewVersion, removeExistingOperations, removeGrant, reorderChangeLogItems, reorderModuleOperations, reorderModules, reorderOperationErrors, reorderOperationExamples, reorderStateExamples, replayDocument, replayDocumentVersioned, replayOperations, requestedSignaturePolicy, reshuffleByTimestamp, reshuffleByTimestampAndIndex, resolveSnapshotAuth, selectProtocolVersions, serializeSignature, setAuthorName, setAuthorWebsite, setGrant, setInitialState, setModelDescription, setModelExtension, setModelId, setModelName, setModuleDescription, setModuleName, setName, setNameOperation, setOperationDescription, setOperationErrorCode, setOperationErrorDescription, setOperationErrorName, setOperationErrorTemplate, setOperationName, setOperationReducer, setOperationSchema, setOperationScope, setOperationTemplate, setPreferredEditor, setPreferredEditorOperation, setStateSchema, sign, signActionV2, signaturePolicyOf, skipHeaderOperations, sortMappedOperations, sortOperations, split, targetDocumentId, toTransportAction, undo, undoOperation, undoOperationV2, updateChangeLogItem, updateDocument, updateHeaderRevision, updateOperationExample, updateStateExample, v2RequiredProtocolVersions, v2TupleProblem, validateHeader, validateInitialState, validateModule, validateModuleOperation, validateModules, validateOperationName, validateOperations, validateStateSchemaName, verify, verifyOperationSignature, withProtocolVersions, withSignaturePolicy, writeFileBrowser, zipEntries };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./types-
|
|
1
|
+
import "./types-CfJnFDjg.js";
|
|
2
2
|
import { SignaturePolicy } from "@powerhousedao/shared/document-model";
|
|
3
3
|
import { DocumentDriveLocalState, Node } from "@powerhousedao/shared/document-drive";
|
|
4
4
|
//#region document-drive/src/types.d.ts
|
|
@@ -33,4 +33,4 @@ declare function shortGitSha(sha: string): string;
|
|
|
33
33
|
//#endregion
|
|
34
34
|
export { GenerateNodesCopyIdGenerator as a, DriveInput as i, buildTreeUrl as n, GenerateNodesCopySrc as o, shortGitSha as r, SharingType as s, GITHUB_REPO_URL as t };
|
|
35
35
|
export {};
|
|
36
|
-
//# sourceMappingURL=index-
|
|
36
|
+
//# sourceMappingURL=index-Bv7Q0YM4.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-Bv7Q0YM4.d.ts","names":[],"sources":["../document-drive/src/types.ts","../git.ts"],"mappings":";;;;KAMY;EACV,OAAO;EACP,aAAa;EACb,qBAAqB;;KAGX,gCAAgC,YAAY,SAAS;KAErD;EACV;IACE;IACA;;EAEF;EACA;EACA;EACA,QAAQ,QAAQ;;EAEhB;KAAsB;;;EAEtB,kBAAkB;;KAGR;;;cC7BC;iBAEG,aAAa;iBAKb,YAAY"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as AnalyticsSeriesInput, c as CompoundAnalyticsExpression, d as ConversionMetric, f as IAnalyticsStore, i as AnalyticsSeries, l as CompoundAnalyticsInputs, n as AnalyticsOperand, o as AnalyticsSeriesQuery, p as MultiCurrencyConversion, r as AnalyticsQuery, s as AnalyticsUpdateCallback, t as AnalyticsDimension, u as CompoundAnalyticsQuery } from "./types-Bsp8VL2y.js";
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as AddOperationErrorAction, $i as SetOperationErrorTemplateAction, $n as MutationDeleteStateExampleArgs, $r as RemoveRelationshipAction, $t as DocumentModelOperationErrorOperations, A as PHConnectSentry, Aa as Undo, Ai as SetModelDescriptionAction, An as LoadFromInput, Ar as MutationUpdateOperationExampleArgs, At as DeleteOperationAction, B as ServiceAction, Ba as UpdateStateExampleAction, Bi as SetModuleNameAction, Bn as MoveOperationInput, Br as PhAiToolDescriptor, Bt as DocumentModelDocument, C as PHConnectPwaRuntimeCaching, Ca as SignatureVerificationHandler, Ci as ScopeState, Cn as ISignalResult, Cr as MutationSetOperationNameArgs, Ct as DeleteChangeLogItemInput, D as PHConnectRenown, Da as State, Di as SetAuthorWebsiteInput, Dn as IsDocumentOfType, Dr as MutationSetStateSchemaArgs, Dt as DeleteDocumentActionInput, E as PHConnectReactorFeatureFlags, Ea as SkipHeaderOperations, Ei as SetAuthorWebsiteAction, En as InputMaybe, Er as MutationSetOperationTemplateArgs, Et as DeleteDocumentAction, F as PackageManagerArgs, Fa as UpdateChangeLogItemInput, Fi as SetModelIdInput, Fn as MappedOperation, Fr as OperationSpecification, Ft as DeleteOperationInput, G as ActionSigningHandler, Ga as ValidationError, Gi as SetOperationDescriptionAction, Gn as MutationAddOperationErrorArgs, Gr as PurgeDocumentActionInput, Gt as DocumentModelInput, Ha as UpgradeDocumentAction, Hi as SetNameAction, Hn as MutationAddChangeLogItemInputArgs, Hr as PowerhouseModule, Ht as DocumentModelGlobalState, I as ParsedCmdResult, Ia as UpdateOperationExampleAction, Ii as SetModelNameAction, In as Maybe, Ir as OperationsByScope, It as DeleteStateExampleAction, J as AddChangeLogItemAction, Ji as SetOperationErrorCodeInput, Jn as MutationDeleteChangeLogItemInputArgs, Jr as RedoAction, Jt as DocumentModelModule, K as ActionVerificationHandler, Ki as SetOperationDescriptionInput, Kn as MutationAddOperationExampleArgs, Kr as Query, Kt as DocumentModelLib, L as PathValidation, La as UpdateOperationExampleInput, Li as SetModelNameInput, Ln as MinimalBackupData, Lr as PartialRecord, Lt as DeleteStateExampleInput, M as PHReactorRenown, Ma as UndoActionInput, Mi as SetModelExtensionAction, Mn as MakeMaybe, Mr as NOOPAction, Mt as DeleteOperationErrorInput, N as PHRenownPrivyAdapterConfig, Na as UndoRedoAction, Ni as SetModelExtensionInput, Nn as MakeOptional, Nr as OperationErrorSpecification, Nt as DeleteOperationExampleAction, O as PHConnectRenownAdapters, Oa as StateReducer, Oi as SetInitialStateAction, On as IsStateOfType, Or as MutationUndoArgs, Ot as DeleteModuleAction, P as PHRenownRainbowAdapterConfig, Pa as UpdateChangeLogItemAction, Pi as SetModelIdAction, Pn as Manifest, Pr as OperationIndex, Pt as DeleteOperationExampleInput, Q as AddOperationAction, Qi as SetOperationErrorNameInput, Qn as MutationDeleteOperationExampleArgs, Qr as ReleaseNewVersionAction, Qt as DocumentModelOperationErrorAction, R as PowerhouseConfig, Ra as UpdateRelationshipAction, Ri as SetModuleDescriptionAction, Rn as ModuleSpecification, Rr as PartialState, Rt as DocumentAction, S as PHConnectPwaManifest, Sa as SignalType, Si as SchemaUndoAction, Sn as ISignal, Sr as MutationSetOperationErrorTemplateArgs, St as DeleteChangeLogItemAction, T as PHConnectReactor, Ta as SkipHeaderOperationIndex, Ti as SetAuthorNameInput, Tn as Incremental, Tr as MutationSetOperationSchemaArgs, Tt as DeleteChildDocumentSignal, U as ActionErrorCallback, Ua as UpgradeDocumentActionInput, Ui as SetNameActionInput, Un as MutationAddModuleArgs, Ur as Publisher, Ut as DocumentModelHeaderAction, V as ServiceActions, Va as UpdateStateExampleInput, Vi as SetModuleNameInput, Vn as Mutation, Vr as PieceModule, Vt as DocumentModelDocumentModelModule, W as ActionSignatureContext, Wa as User, Wi as SetNameOperation, Wn as MutationAddOperationArgs, Wr as PurgeDocumentAction, Wt as DocumentModelHeaderOperations, X as AddModuleAction, Xi as SetOperationErrorDescriptionInput, Xn as MutationDeleteOperationArgs, Xr as Reducer, Xt as DocumentModelModuleOperations, Y as AddChangeLogItemInput, Yi as SetOperationErrorDescriptionAction, Yn as MutationDeleteModuleArgs, Yr as RedoActionInput, Yt as DocumentModelModuleAction, Z as AddModuleInput, Zi as SetOperationErrorNameAction, Zn as MutationDeleteOperationErrorArgs, Zr as ReducerOptions, Zt as DocumentModelOperationAction, _ as PHConnectPackages, _a as Set_PreferredEditor, _i as Scalars, _n as GetDocumentOptions, _o as ProcessorFilter, _r as MutationSetNameArgs, _t as CreateChildDocumentSignal, a as PHConnectAi, aa as SetOperationSchemaAction, ai as ReorderModulesAction, an as DocumentModelStateOperations, ar as MutationReorderOperationErrorsArgs, at as AddRelationshipActionInput, b as PHConnectPwaFileHandler, ba as SignalResult, bi as SchemaSetNameAction, bn as IDocument, bo as TrackedProcessor, br as MutationSetOperationErrorDescriptionArgs, bt as CreateDocumentActionInput, c as PHConnectCompositionEntry, ca as SetOperationScopeInput, ci as ReorderOperationErrorsInput, cn as DocumentModelVersioningOperations, co as IProcessor, cr as MutationSetAuthorNameArgs, ct as AssertIsDocumentOfType, d as PHConnectDefaultDriveRemote, da as SetPreferredEditorAction, di as ReorderStateExamplesAction, dn as ENSInfo, do as IProcessorManager, dr as MutationSetModelDescriptionArgs, dt as CodeExample, ea as SetOperationErrorTemplateInput, ei as RemoveRelationshipActionInput, en as DocumentModelOperationExampleAction, er as MutationMoveOperationArgs, et as AddOperationErrorInput, f as PHConnectDriveSection, fa as SetPreferredEditorActionInput, fi as ReorderStateExamplesInput, fn as EditorDispatch, fo as ProcessorApp, fr as MutationSetModelExtensionArgs, ft as ConfigEntry, g as PHConnectOpenPanel, ga as Set_Name, gi as SaveToFileHandle, gn as FileInput, go as ProcessorFactoryBuilder, gr as MutationSetModuleNameArgs, gt as CreateChildDocumentInput, h as PHConnectInstance, ha as SetStateSchemaInput, hi as SaveToFile, hn as Exact, ho as ProcessorFactory, hr as MutationSetModuleDescriptionArgs, ht as CopyChildDocumentSignal, i as LogLevels, ia as SetOperationReducerInput, ii as ReorderModuleOperationsInput, in as DocumentModelStateAction, ir as MutationReorderModulesArgs, it as AddRelationshipAction, j as PHPackageProvider, ja as UndoAction, ji as SetModelDescriptionInput, jn as MakeEmpty, jr as MutationUpdateStateExampleArgs, jt as DeleteOperationErrorAction, k as PHConnectRuntimeConfig, ka as SubgraphModule, ki as SetInitialStateInput, kn as LoadFromFile, kr as MutationUpdateChangeLogItemInputArgs, kt as DeleteModuleInput, l as PHConnectDefaultDrive, la as SetOperationTemplateAction, li as ReorderOperationExamplesAction, ln as DocumentOperationsIgnoreMap, lo as IProcessorDispatch, lr as MutationSetAuthorWebsiteArgs, lt as AssertIsStateOfType, m as PHConnectDrives, ma as SetStateSchemaAction, mi as RevisionsFilter, mn as EditorProps, mo as ProcessorDispatchResult, mr as MutationSetModelNameArgs, mt as CopyChildDocumentInput, n as DrivePreserveStrategy, na as SetOperationNameInput, ni as ReorderChangeLogItemsInput, nn as DocumentModelOperationOperations, nr as MutationReorderChangeLogItemsInputArgs, nt as AddOperationExampleInput, o as PHConnectApp, oa as SetOperationSchemaInput, oi as ReorderModulesInput, on as DocumentModelUtils, or as MutationReorderOperationExamplesArgs, ot as AddStateExampleAction, p as PHConnectDriveSections, pa as SetPreferredEditorOperation, pi as ReplayDocumentOptions, pn as EditorModule, po as ProcessorApps, pr as MutationSetModelIdArgs, pt as ConfigEntryType, q as Actions, qi as SetOperationErrorCodeAction, qn as MutationAddStateExampleArgs, qr as Redo, qt as DocumentModelLocalState, r as LogLevel, ra as SetOperationReducerAction, ri as ReorderModuleOperationsAction, rn as DocumentModelPHState, rr as MutationReorderModuleOperationsArgs, rt as AddOperationInput, s as PHConnectBranding, sa as SetOperationScopeAction, si as ReorderOperationErrorsAction, sn as DocumentModelVersioningAction, sr as MutationReorderStateExamplesArgs, st as AddStateExampleInput, t as DrivePreserveStrategies, ta as SetOperationNameAction, ti as ReorderChangeLogItemsAction, tn as DocumentModelOperationExampleOperations, tr as MutationRedoArgs, tt as AddOperationExampleAction, u as PHConnectDefaultDriveLocal, ua as SetOperationTemplateInput, ui as ReorderOperationExamplesInput, un as DocumentSpecification, uo as IProcessorHostModuleBase, ur as MutationSetInitialStateArgs, ut as Author, v as PHConnectPwa, va as Signal, vi as SchemaNOOPAction, vn as IAction, vo as ProcessorRecord, vr as MutationSetOperationDescriptionArgs, vt as CreateDocument, w as PHConnectPwaUrlPattern, wa as SigningParameters, wi as SetAuthorNameAction, wn as ISigner, wr as MutationSetOperationReducerArgs, wt as DeleteChildDocumentInput, x as PHConnectPwaIcon, xa as SignalResults, xi as SchemaSetPreferredEditorAction, xn as IOperation, xr as MutationSetOperationErrorNameArgs, xt as CreateState, y as PHConnectPwaCacheStrategy, ya as SignalDispatch, yi as SchemaRedoAction, yn as ID, yo as ProcessorStatus, yr as MutationSetOperationErrorCodeArgs, yt as CreateDocumentAction, z as PowerhousePackage, za as UpdateRelationshipActionInput, zi as SetModuleDescriptionInput, zn as MoveOperationAction, zr as PhAiToolAnnotations, zt as DocumentModelAction } from "./types-BUqiKtkv.js";
|
|
3
3
|
import { i as PACKAGES_DEPENDENCIES, n as APPS_DEPENDENCIES, r as CLIS_DEPENDENCIES, t as ALL_POWERHOUSE_DEPENDENCIES } from "./constants-DVJon33y.js";
|
|
4
|
-
import { $ as LegacySynchronizationUnit, A as TriggerData, B as PackagePage, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, F as PACKAGE_MODULE_TYPES, G as RegistryPackageSource, H as RegistryPackage, I as PackageFacets, J as DriveDocumentModelModule, K as RegistryPackageStatus, L as PackageInfo, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, R as PackageListItem, S as RemoveListenerInput, T as SetDriveIconInput, U as RegistryPackageList, V as Page, W as RegistryPackageMap, X as DocumentDriveDocument, Y as DocumentDriveAction, Z as LegacyAddFileAction, _ as ListenerInput, _t as SetDriveNameAction, a as CopyNodeInput, at as DocumentDriveNodeOperations, b as PullResponderTriggerData, c as DocumentDriveLocalState, ct as UpdateNodeAction, d as FolderNode, dt as DocumentDriveDriveAction, et as AddFileAction, f as Listener, ft as DocumentDriveDriveOperations, g as ListenerFilterInput, gt as SetDriveIconAction, h as ListenerFilter, ht as SetAvailableOfflineAction, i as AddTriggerInput, it as DocumentDriveNodeAction, j as TriggerInput, k as Trigger, lt as AddListenerAction, m as ListenerCallInfoInput, mt as RemoveTriggerAction, n as AddFolderInput, nt as CopyNodeAction, o as DeleteNodeInput, ot as MoveNodeAction, p as ListenerCallInfo, pt as RemoveListenerAction, q as DocumentDrivePHState, r as AddListenerInput, rt as DeleteNodeAction, s as DocumentDriveGlobalState, st as UpdateFileAction, t as AddFileInput, tt as AddFolderAction, u as FileNode, ut as AddTriggerAction, v as MoveNodeInput, vt as SetSharingTypeAction, w as SetAvailableOfflineInput, x as PullResponderTriggerDataInput, y as Node, z as PackageModuleType } from "./types-
|
|
5
|
-
import { a as GenerateNodesCopyIdGenerator, i as DriveInput, n as buildTreeUrl, o as GenerateNodesCopySrc, r as shortGitSha, s as SharingType, t as GITHUB_REPO_URL } from "./index-
|
|
6
|
-
export { ALL_POWERHOUSE_DEPENDENCIES, APPS_DEPENDENCIES, type ActionErrorCallback, type ActionSignatureContext, type ActionSigningHandler, type ActionVerificationHandler, type Actions, type AddChangeLogItemAction, type AddChangeLogItemInput, type AddFileAction, type AddFileInput, type AddFolderAction, type AddFolderInput, type AddListenerAction, type AddListenerInput, type AddModuleAction, type AddModuleInput, type AddOperationAction, type AddOperationErrorAction, type AddOperationErrorInput, type AddOperationExampleAction, type AddOperationExampleInput, type AddOperationInput, type AddRelationshipAction, type AddRelationshipActionInput, type AddStateExampleAction, type AddStateExampleInput, type AddTriggerAction, type AddTriggerInput, type AnalyticsDimension, type AnalyticsOperand, type AnalyticsQuery, type AnalyticsSeries, type AnalyticsSeriesInput, type AnalyticsSeriesQuery, type AnalyticsUpdateCallback, type AssertIsDocumentOfType, type AssertIsStateOfType, type Author, CLIS_DEPENDENCIES, type CodeExample, type CompoundAnalyticsExpression, type CompoundAnalyticsInputs, type CompoundAnalyticsQuery, type ConfigEntry, type ConfigEntryType, type ConversionMetric, type CopyChildDocumentInput, type CopyChildDocumentSignal, type CopyNodeAction, type CopyNodeInput, type CreateChildDocumentInput, type CreateChildDocumentSignal, type CreateDocument, type CreateDocumentAction, type CreateDocumentActionInput, type CreateState, type DeleteChangeLogItemAction, type DeleteChangeLogItemInput, type DeleteChildDocumentInput, type DeleteChildDocumentSignal, type DeleteDocumentAction, type DeleteDocumentActionInput, type DeleteModuleAction, type DeleteModuleInput, type DeleteNodeAction, type DeleteNodeInput, type DeleteOperationAction, type DeleteOperationErrorAction, type DeleteOperationErrorInput, type DeleteOperationExampleAction, type DeleteOperationExampleInput, type DeleteOperationInput, type DeleteStateExampleAction, type DeleteStateExampleInput, type DocumentAction, type DocumentDriveAction, type DocumentDriveDocument, type DocumentDriveDriveAction, type DocumentDriveDriveOperations, type DocumentDriveGlobalState, type DocumentDriveLocalState, type DocumentDriveNodeAction, type DocumentDriveNodeOperations, type DocumentDrivePHState, type DocumentModelAction, type DocumentModelDocument, type DocumentModelDocumentModelModule, type DocumentModelGlobalState, type DocumentModelHeaderAction, type DocumentModelHeaderOperations, type DocumentModelInput, type DocumentModelLib, type DocumentModelLocalState, type DocumentModelModule, type DocumentModelModuleAction, type DocumentModelModuleOperations, type DocumentModelOperationAction, type DocumentModelOperationErrorAction, type DocumentModelOperationErrorOperations, type DocumentModelOperationExampleAction, type DocumentModelOperationExampleOperations, type DocumentModelOperationOperations, type DocumentModelPHState, type DocumentModelStateAction, type DocumentModelStateOperations, type DocumentModelUtils, type DocumentModelVersioningAction, type DocumentModelVersioningOperations, type DocumentOperationsIgnoreMap, type DocumentSpecification, type DriveDocumentModelModule, type DriveInput, type DrivePreserveStrategies, type DrivePreserveStrategy, type ENSInfo, type EditorDispatch, type EditorModule, type EditorProps, type Exact, type FileInput, type FileNode, type FolderNode, GITHUB_REPO_URL, type GenerateNodesCopyIdGenerator, type GenerateNodesCopySrc, type GetDocumentOptions, type IAction, type IAnalyticsStore, type ID, type IDocument, type IOperation, type IProcessor, type IProcessorDispatch, type IProcessorHostModuleBase, type IProcessorManager, type ISignal, type ISignalResult, type ISigner, type Incremental, type InputMaybe, type IsDocumentOfType, type IsStateOfType, type LegacyAddFileAction, type LegacyAddFileInput, type LegacySynchronizationUnit, type Listener, type ListenerCallInfo, type ListenerCallInfoInput, type ListenerFilter, type ListenerFilterInput, type ListenerInput, type LoadFromFile, type LoadFromInput, type LogLevel, type LogLevels, type MakeEmpty, type MakeMaybe, type MakeOptional, type Manifest, type MappedOperation, type Maybe, type MinimalBackupData, type ModuleSpecification, type MoveNodeAction, type MoveNodeInput, type MoveOperationAction, type MoveOperationInput, type MultiCurrencyConversion, type Mutation, type MutationAddChangeLogItemInputArgs, type MutationAddModuleArgs, type MutationAddOperationArgs, type MutationAddOperationErrorArgs, type MutationAddOperationExampleArgs, type MutationAddStateExampleArgs, type MutationDeleteChangeLogItemInputArgs, type MutationDeleteModuleArgs, type MutationDeleteOperationArgs, type MutationDeleteOperationErrorArgs, type MutationDeleteOperationExampleArgs, type MutationDeleteStateExampleArgs, type MutationMoveOperationArgs, type MutationRedoArgs, type MutationReorderChangeLogItemsInputArgs, type MutationReorderModuleOperationsArgs, type MutationReorderModulesArgs, type MutationReorderOperationErrorsArgs, type MutationReorderOperationExamplesArgs, type MutationReorderStateExamplesArgs, type MutationSetAuthorNameArgs, type MutationSetAuthorWebsiteArgs, type MutationSetInitialStateArgs, type MutationSetModelDescriptionArgs, type MutationSetModelExtensionArgs, type MutationSetModelIdArgs, type MutationSetModelNameArgs, type MutationSetModuleDescriptionArgs, type MutationSetModuleNameArgs, type MutationSetNameArgs, type MutationSetOperationDescriptionArgs, type MutationSetOperationErrorCodeArgs, type MutationSetOperationErrorDescriptionArgs, type MutationSetOperationErrorNameArgs, type MutationSetOperationErrorTemplateArgs, type MutationSetOperationNameArgs, type MutationSetOperationReducerArgs, type MutationSetOperationSchemaArgs, type MutationSetOperationTemplateArgs, type MutationSetStateSchemaArgs, type MutationUndoArgs, type MutationUpdateChangeLogItemInputArgs, type MutationUpdateOperationExampleArgs, type MutationUpdateStateExampleArgs, type NOOPAction, type Node, type OperationErrorSpecification, type OperationIndex, type OperationSpecification, type OperationsByScope, PACKAGES_DEPENDENCIES, type PACKAGE_MODULE_TYPES, type PHConnectAi, type PHConnectApp, type PHConnectBranding, type PHConnectDefaultDrive, type PHConnectDefaultDriveLocal, type PHConnectDefaultDriveRemote, type PHConnectDriveSection, type PHConnectDriveSections, type PHConnectDrives, type PHConnectInstance, type PHConnectOpenPanel, type PHConnectPackages, type PHConnectPwa, type PHConnectPwaCacheStrategy, type PHConnectPwaFileHandler, type PHConnectPwaIcon, type PHConnectPwaManifest, type PHConnectPwaRuntimeCaching, type PHConnectPwaUrlPattern, type PHConnectReactor, type PHConnectReactorFeatureFlags, type PHConnectRenown, type PHConnectRenownAdapters, type PHConnectRuntimeConfig, type PHConnectSentry, type PHPackageProvider, type PHReactorRenown, type PHRenownPrivyAdapterConfig, type PHRenownRainbowAdapterConfig, type PackageFacets, type PackageInfo, type PackageListItem, type PackageManagerArgs, type PackageModuleType, type PackagePage, type Page, type ParsedCmdResult, type PartialRecord, type PartialState, type PathValidation, type PhAiToolAnnotations, type PhAiToolDescriptor, type PieceModule, type PowerhouseConfig, type PowerhouseModule, type PowerhousePackage, type ProcessorApp, type ProcessorApps, type ProcessorDispatchResult, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, type ProcessorStatus, type Publisher, type PullResponderTriggerData, type PullResponderTriggerDataInput, type PurgeDocumentAction, type PurgeDocumentActionInput, type Query, type Redo, type RedoAction, type RedoActionInput, type Reducer, type ReducerOptions, type RegistryPackage, type RegistryPackageList, type RegistryPackageMap, type RegistryPackageSource, type RegistryPackageStatus, type ReleaseNewVersionAction, type RemoveListenerAction, type RemoveListenerInput, type RemoveRelationshipAction, type RemoveRelationshipActionInput, type RemoveTriggerAction, type RemoveTriggerInput, type ReorderChangeLogItemsAction, type ReorderChangeLogItemsInput, type ReorderModuleOperationsAction, type ReorderModuleOperationsInput, type ReorderModulesAction, type ReorderModulesInput, type ReorderOperationErrorsAction, type ReorderOperationErrorsInput, type ReorderOperationExamplesAction, type ReorderOperationExamplesInput, type ReorderStateExamplesAction, type ReorderStateExamplesInput, type ReplayDocumentOptions, type RevisionsFilter, type SaveToFile, type SaveToFileHandle, type Scalars, type SchemaNOOPAction, type SchemaRedoAction, type SchemaSetNameAction, type SchemaSetPreferredEditorAction, type SchemaUndoAction, type ScopeState, type ServiceAction, type ServiceActions, type SetAuthorNameAction, type SetAuthorNameInput, type SetAuthorWebsiteAction, type SetAuthorWebsiteInput, type SetAvailableOfflineAction, type SetAvailableOfflineInput, type SetDriveIconAction, type SetDriveIconInput, type SetDriveNameAction, type SetDriveNameInput, type SetInitialStateAction, type SetInitialStateInput, type SetModelDescriptionAction, type SetModelDescriptionInput, type SetModelExtensionAction, type SetModelExtensionInput, type SetModelIdAction, type SetModelIdInput, type SetModelNameAction, type SetModelNameInput, type SetModuleDescriptionAction, type SetModuleDescriptionInput, type SetModuleNameAction, type SetModuleNameInput, type SetNameAction, type SetNameActionInput, type SetNameOperation, type SetOperationDescriptionAction, type SetOperationDescriptionInput, type SetOperationErrorCodeAction, type SetOperationErrorCodeInput, type SetOperationErrorDescriptionAction, type SetOperationErrorDescriptionInput, type SetOperationErrorNameAction, type SetOperationErrorNameInput, type SetOperationErrorTemplateAction, type SetOperationErrorTemplateInput, type SetOperationNameAction, type SetOperationNameInput, type SetOperationReducerAction, type SetOperationReducerInput, type SetOperationSchemaAction, type SetOperationSchemaInput, type SetOperationScopeAction, type SetOperationScopeInput, type SetOperationTemplateAction, type SetOperationTemplateInput, type SetPreferredEditorAction, type SetPreferredEditorActionInput, type SetPreferredEditorOperation, type SetSharingTypeAction, type SetSharingTypeInput, type SetStateSchemaAction, type SetStateSchemaInput, type Set_Name, type Set_PreferredEditor, type SharingType, type Signal, type SignalDispatch, type SignalResult, type SignalResults, type SignalType, type SignatureVerificationHandler, type SigningParameters, type SkipHeaderOperationIndex, type SkipHeaderOperations, type State, type StateReducer, type SubgraphModule, type TrackedProcessor, type TransmitterType, type Trigger, type TriggerData, type TriggerInput, type TriggerType, type Undo, type UndoAction, type UndoActionInput, type UndoRedoAction, type UpdateChangeLogItemAction, type UpdateChangeLogItemInput, type UpdateFileAction, type UpdateFileInput, type UpdateNodeAction, type UpdateNodeInput, type UpdateOperationExampleAction, type UpdateOperationExampleInput, type UpdateRelationshipAction, type UpdateRelationshipActionInput, type UpdateStateExampleAction, type UpdateStateExampleInput, type UpgradeDocumentAction, type UpgradeDocumentActionInput, type User, type ValidationError, buildTreeUrl, shortGitSha };
|
|
4
|
+
import { $ as LegacySynchronizationUnit, A as TriggerData, B as PackagePage, C as RemoveTriggerInput, D as SetSharingTypeInput, E as SetDriveNameInput, F as PACKAGE_MODULE_TYPES, G as RegistryPackageSource, H as RegistryPackage, I as PackageFacets, J as DriveDocumentModelModule, K as RegistryPackageStatus, L as PackageInfo, M as TriggerType, N as UpdateFileInput, O as TransmitterType, P as UpdateNodeInput, Q as LegacyAddFileInput, R as PackageListItem, S as RemoveListenerInput, T as SetDriveIconInput, U as RegistryPackageList, V as Page, W as RegistryPackageMap, X as DocumentDriveDocument, Y as DocumentDriveAction, Z as LegacyAddFileAction, _ as ListenerInput, _t as SetDriveNameAction, a as CopyNodeInput, at as DocumentDriveNodeOperations, b as PullResponderTriggerData, c as DocumentDriveLocalState, ct as UpdateNodeAction, d as FolderNode, dt as DocumentDriveDriveAction, et as AddFileAction, f as Listener, ft as DocumentDriveDriveOperations, g as ListenerFilterInput, gt as SetDriveIconAction, h as ListenerFilter, ht as SetAvailableOfflineAction, i as AddTriggerInput, it as DocumentDriveNodeAction, j as TriggerInput, k as Trigger, lt as AddListenerAction, m as ListenerCallInfoInput, mt as RemoveTriggerAction, n as AddFolderInput, nt as CopyNodeAction, o as DeleteNodeInput, ot as MoveNodeAction, p as ListenerCallInfo, pt as RemoveListenerAction, q as DocumentDrivePHState, r as AddListenerInput, rt as DeleteNodeAction, s as DocumentDriveGlobalState, st as UpdateFileAction, t as AddFileInput, tt as AddFolderAction, u as FileNode, ut as AddTriggerAction, v as MoveNodeInput, vt as SetSharingTypeAction, w as SetAvailableOfflineInput, x as PullResponderTriggerDataInput, y as Node, z as PackageModuleType } from "./types-CfJnFDjg.js";
|
|
5
|
+
import { a as GenerateNodesCopyIdGenerator, i as DriveInput, n as buildTreeUrl, o as GenerateNodesCopySrc, r as shortGitSha, s as SharingType, t as GITHUB_REPO_URL } from "./index-Bv7Q0YM4.js";
|
|
6
|
+
export { ALL_POWERHOUSE_DEPENDENCIES, APPS_DEPENDENCIES, type ActionErrorCallback, type ActionSignatureContext, type ActionSigningHandler, type ActionVerificationHandler, type Actions, type AddChangeLogItemAction, type AddChangeLogItemInput, type AddFileAction, type AddFileInput, type AddFolderAction, type AddFolderInput, type AddListenerAction, type AddListenerInput, type AddModuleAction, type AddModuleInput, type AddOperationAction, type AddOperationErrorAction, type AddOperationErrorInput, type AddOperationExampleAction, type AddOperationExampleInput, type AddOperationInput, type AddRelationshipAction, type AddRelationshipActionInput, type AddStateExampleAction, type AddStateExampleInput, type AddTriggerAction, type AddTriggerInput, type AnalyticsDimension, type AnalyticsOperand, type AnalyticsQuery, type AnalyticsSeries, type AnalyticsSeriesInput, type AnalyticsSeriesQuery, type AnalyticsUpdateCallback, type AssertIsDocumentOfType, type AssertIsStateOfType, type Author, CLIS_DEPENDENCIES, type CodeExample, type CompoundAnalyticsExpression, type CompoundAnalyticsInputs, type CompoundAnalyticsQuery, type ConfigEntry, type ConfigEntryType, type ConversionMetric, type CopyChildDocumentInput, type CopyChildDocumentSignal, type CopyNodeAction, type CopyNodeInput, type CreateChildDocumentInput, type CreateChildDocumentSignal, type CreateDocument, type CreateDocumentAction, type CreateDocumentActionInput, type CreateState, type DeleteChangeLogItemAction, type DeleteChangeLogItemInput, type DeleteChildDocumentInput, type DeleteChildDocumentSignal, type DeleteDocumentAction, type DeleteDocumentActionInput, type DeleteModuleAction, type DeleteModuleInput, type DeleteNodeAction, type DeleteNodeInput, type DeleteOperationAction, type DeleteOperationErrorAction, type DeleteOperationErrorInput, type DeleteOperationExampleAction, type DeleteOperationExampleInput, type DeleteOperationInput, type DeleteStateExampleAction, type DeleteStateExampleInput, type DocumentAction, type DocumentDriveAction, type DocumentDriveDocument, type DocumentDriveDriveAction, type DocumentDriveDriveOperations, type DocumentDriveGlobalState, type DocumentDriveLocalState, type DocumentDriveNodeAction, type DocumentDriveNodeOperations, type DocumentDrivePHState, type DocumentModelAction, type DocumentModelDocument, type DocumentModelDocumentModelModule, type DocumentModelGlobalState, type DocumentModelHeaderAction, type DocumentModelHeaderOperations, type DocumentModelInput, type DocumentModelLib, type DocumentModelLocalState, type DocumentModelModule, type DocumentModelModuleAction, type DocumentModelModuleOperations, type DocumentModelOperationAction, type DocumentModelOperationErrorAction, type DocumentModelOperationErrorOperations, type DocumentModelOperationExampleAction, type DocumentModelOperationExampleOperations, type DocumentModelOperationOperations, type DocumentModelPHState, type DocumentModelStateAction, type DocumentModelStateOperations, type DocumentModelUtils, type DocumentModelVersioningAction, type DocumentModelVersioningOperations, type DocumentOperationsIgnoreMap, type DocumentSpecification, type DriveDocumentModelModule, type DriveInput, type DrivePreserveStrategies, type DrivePreserveStrategy, type ENSInfo, type EditorDispatch, type EditorModule, type EditorProps, type Exact, type FileInput, type FileNode, type FolderNode, GITHUB_REPO_URL, type GenerateNodesCopyIdGenerator, type GenerateNodesCopySrc, type GetDocumentOptions, type IAction, type IAnalyticsStore, type ID, type IDocument, type IOperation, type IProcessor, type IProcessorDispatch, type IProcessorHostModuleBase, type IProcessorManager, type ISignal, type ISignalResult, type ISigner, type Incremental, type InputMaybe, type IsDocumentOfType, type IsStateOfType, type LegacyAddFileAction, type LegacyAddFileInput, type LegacySynchronizationUnit, type Listener, type ListenerCallInfo, type ListenerCallInfoInput, type ListenerFilter, type ListenerFilterInput, type ListenerInput, type LoadFromFile, type LoadFromInput, type LogLevel, type LogLevels, type MakeEmpty, type MakeMaybe, type MakeOptional, type Manifest, type MappedOperation, type Maybe, type MinimalBackupData, type ModuleSpecification, type MoveNodeAction, type MoveNodeInput, type MoveOperationAction, type MoveOperationInput, type MultiCurrencyConversion, type Mutation, type MutationAddChangeLogItemInputArgs, type MutationAddModuleArgs, type MutationAddOperationArgs, type MutationAddOperationErrorArgs, type MutationAddOperationExampleArgs, type MutationAddStateExampleArgs, type MutationDeleteChangeLogItemInputArgs, type MutationDeleteModuleArgs, type MutationDeleteOperationArgs, type MutationDeleteOperationErrorArgs, type MutationDeleteOperationExampleArgs, type MutationDeleteStateExampleArgs, type MutationMoveOperationArgs, type MutationRedoArgs, type MutationReorderChangeLogItemsInputArgs, type MutationReorderModuleOperationsArgs, type MutationReorderModulesArgs, type MutationReorderOperationErrorsArgs, type MutationReorderOperationExamplesArgs, type MutationReorderStateExamplesArgs, type MutationSetAuthorNameArgs, type MutationSetAuthorWebsiteArgs, type MutationSetInitialStateArgs, type MutationSetModelDescriptionArgs, type MutationSetModelExtensionArgs, type MutationSetModelIdArgs, type MutationSetModelNameArgs, type MutationSetModuleDescriptionArgs, type MutationSetModuleNameArgs, type MutationSetNameArgs, type MutationSetOperationDescriptionArgs, type MutationSetOperationErrorCodeArgs, type MutationSetOperationErrorDescriptionArgs, type MutationSetOperationErrorNameArgs, type MutationSetOperationErrorTemplateArgs, type MutationSetOperationNameArgs, type MutationSetOperationReducerArgs, type MutationSetOperationSchemaArgs, type MutationSetOperationTemplateArgs, type MutationSetStateSchemaArgs, type MutationUndoArgs, type MutationUpdateChangeLogItemInputArgs, type MutationUpdateOperationExampleArgs, type MutationUpdateStateExampleArgs, type NOOPAction, type Node, type OperationErrorSpecification, type OperationIndex, type OperationSpecification, type OperationsByScope, PACKAGES_DEPENDENCIES, type PACKAGE_MODULE_TYPES, type PHConnectAi, type PHConnectApp, type PHConnectBranding, type PHConnectCompositionEntry, type PHConnectDefaultDrive, type PHConnectDefaultDriveLocal, type PHConnectDefaultDriveRemote, type PHConnectDriveSection, type PHConnectDriveSections, type PHConnectDrives, type PHConnectInstance, type PHConnectOpenPanel, type PHConnectPackages, type PHConnectPwa, type PHConnectPwaCacheStrategy, type PHConnectPwaFileHandler, type PHConnectPwaIcon, type PHConnectPwaManifest, type PHConnectPwaRuntimeCaching, type PHConnectPwaUrlPattern, type PHConnectReactor, type PHConnectReactorFeatureFlags, type PHConnectRenown, type PHConnectRenownAdapters, type PHConnectRuntimeConfig, type PHConnectSentry, type PHPackageProvider, type PHReactorRenown, type PHRenownPrivyAdapterConfig, type PHRenownRainbowAdapterConfig, type PackageFacets, type PackageInfo, type PackageListItem, type PackageManagerArgs, type PackageModuleType, type PackagePage, type Page, type ParsedCmdResult, type PartialRecord, type PartialState, type PathValidation, type PhAiToolAnnotations, type PhAiToolDescriptor, type PieceModule, type PowerhouseConfig, type PowerhouseModule, type PowerhousePackage, type ProcessorApp, type ProcessorApps, type ProcessorDispatchResult, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, type ProcessorStatus, type Publisher, type PullResponderTriggerData, type PullResponderTriggerDataInput, type PurgeDocumentAction, type PurgeDocumentActionInput, type Query, type Redo, type RedoAction, type RedoActionInput, type Reducer, type ReducerOptions, type RegistryPackage, type RegistryPackageList, type RegistryPackageMap, type RegistryPackageSource, type RegistryPackageStatus, type ReleaseNewVersionAction, type RemoveListenerAction, type RemoveListenerInput, type RemoveRelationshipAction, type RemoveRelationshipActionInput, type RemoveTriggerAction, type RemoveTriggerInput, type ReorderChangeLogItemsAction, type ReorderChangeLogItemsInput, type ReorderModuleOperationsAction, type ReorderModuleOperationsInput, type ReorderModulesAction, type ReorderModulesInput, type ReorderOperationErrorsAction, type ReorderOperationErrorsInput, type ReorderOperationExamplesAction, type ReorderOperationExamplesInput, type ReorderStateExamplesAction, type ReorderStateExamplesInput, type ReplayDocumentOptions, type RevisionsFilter, type SaveToFile, type SaveToFileHandle, type Scalars, type SchemaNOOPAction, type SchemaRedoAction, type SchemaSetNameAction, type SchemaSetPreferredEditorAction, type SchemaUndoAction, type ScopeState, type ServiceAction, type ServiceActions, type SetAuthorNameAction, type SetAuthorNameInput, type SetAuthorWebsiteAction, type SetAuthorWebsiteInput, type SetAvailableOfflineAction, type SetAvailableOfflineInput, type SetDriveIconAction, type SetDriveIconInput, type SetDriveNameAction, type SetDriveNameInput, type SetInitialStateAction, type SetInitialStateInput, type SetModelDescriptionAction, type SetModelDescriptionInput, type SetModelExtensionAction, type SetModelExtensionInput, type SetModelIdAction, type SetModelIdInput, type SetModelNameAction, type SetModelNameInput, type SetModuleDescriptionAction, type SetModuleDescriptionInput, type SetModuleNameAction, type SetModuleNameInput, type SetNameAction, type SetNameActionInput, type SetNameOperation, type SetOperationDescriptionAction, type SetOperationDescriptionInput, type SetOperationErrorCodeAction, type SetOperationErrorCodeInput, type SetOperationErrorDescriptionAction, type SetOperationErrorDescriptionInput, type SetOperationErrorNameAction, type SetOperationErrorNameInput, type SetOperationErrorTemplateAction, type SetOperationErrorTemplateInput, type SetOperationNameAction, type SetOperationNameInput, type SetOperationReducerAction, type SetOperationReducerInput, type SetOperationSchemaAction, type SetOperationSchemaInput, type SetOperationScopeAction, type SetOperationScopeInput, type SetOperationTemplateAction, type SetOperationTemplateInput, type SetPreferredEditorAction, type SetPreferredEditorActionInput, type SetPreferredEditorOperation, type SetSharingTypeAction, type SetSharingTypeInput, type SetStateSchemaAction, type SetStateSchemaInput, type Set_Name, type Set_PreferredEditor, type SharingType, type Signal, type SignalDispatch, type SignalResult, type SignalResults, type SignalType, type SignatureVerificationHandler, type SigningParameters, type SkipHeaderOperationIndex, type SkipHeaderOperations, type State, type StateReducer, type SubgraphModule, type TrackedProcessor, type TransmitterType, type Trigger, type TriggerData, type TriggerInput, type TriggerType, type Undo, type UndoAction, type UndoActionInput, type UndoRedoAction, type UpdateChangeLogItemAction, type UpdateChangeLogItemInput, type UpdateFileAction, type UpdateFileInput, type UpdateNodeAction, type UpdateNodeInput, type UpdateOperationExampleAction, type UpdateOperationExampleInput, type UpdateRelationshipAction, type UpdateRelationshipActionInput, type UpdateStateExampleAction, type UpdateStateExampleInput, type UpgradeDocumentAction, type UpgradeDocumentActionInput, type User, type ValidationError, buildTreeUrl, shortGitSha };
|
|
7
7
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $a as
|
|
1
|
+
import { $a as ExtractProcessorSchemaOrSelf, Ao as RouteContext, Bo as WebhookHashAlgorithm, Ch as DEFAULT_ANALYTICS_PROCESSOR_DB_NAME, Co as IWebhookEndpoints, Do as RouteAuth, Eo as RouteActor, Fo as RouteTransport, Go as WebhookSignatureEncoding, Ho as WebhookReply, Io as RouteUser, Ja as createRelationalDb, Jo as deletedDocumentId, Ka as createNamespacedDb, Ko as WebhookSpec, Lo as ScopedRouteHandle, Mo as RouteMethod, No as RouteOptions, Oo as RouteAuthorizer, Po as RouteSpec, Qa as DOCUMENT_ID_COLUMNS, Ro as WebhookEndpointInfo, So as IHttpScope, Th as PROCESSOR_APPS, To as NodeRouteSpec, Uo as WebhookRequest, Vo as WebhookPolicy, Wo as WebhookScheme, Xa as namespaceSchemaOf, Ya as hashNamespace, Za as relationalDbToQueryBuilder, _o as ProcessorFilter, ao as IRelationalQueryMethods, bo as TrackedProcessor, co as IProcessor, do as IProcessorManager, eo as HashAlgorithms, fo as ProcessorApp, go as ProcessorFactoryBuilder, ho as ProcessorFactory, io as IRelationalQueryBuilder, jo as RouteHandler, ko as RouteBody, lo as IProcessorDispatch, mo as ProcessorDispatchResult, no as IRelationalDb, oo as RelationalDbProcessor, po as ProcessorApps, qa as createNamespacedQueryBuilder, qo as WebhookVerification, ro as IRelationalDbProcessor, so as RelationalDbProcessorClass, to as IBaseRelationalDb, uo as IProcessorHostModuleBase, vo as ProcessorRecord, wh as DEFAULT_RELATIONAL_PROCESSOR_DB_NAME, wo as IWebhookScope, xo as AuthorizerResult, yo as ProcessorStatus, zo as WebhookField } from "../types-BUqiKtkv.js";
|
|
2
2
|
export { type AuthorizerResult, DEFAULT_ANALYTICS_PROCESSOR_DB_NAME, DEFAULT_RELATIONAL_PROCESSOR_DB_NAME, DOCUMENT_ID_COLUMNS, ExtractProcessorSchemaOrSelf, HashAlgorithms, IBaseRelationalDb, type IHttpScope, type IProcessor, type IProcessorDispatch, type IProcessorHostModuleBase, type IProcessorManager, IRelationalDb, IRelationalDbProcessor, IRelationalQueryBuilder, IRelationalQueryMethods, type IWebhookEndpoints, type IWebhookScope, type NodeRouteSpec, PROCESSOR_APPS, type ProcessorApp, type ProcessorApps, type ProcessorDispatchResult, type ProcessorFactory, type ProcessorFactoryBuilder, type ProcessorFilter, type ProcessorRecord, type ProcessorStatus, RelationalDbProcessor, RelationalDbProcessorClass, type RouteActor, type RouteAuth, type RouteAuthorizer, type RouteBody, type RouteContext, type RouteHandler, type RouteMethod, type RouteOptions, type RouteSpec, type RouteTransport, type RouteUser, type ScopedRouteHandle, type TrackedProcessor, type WebhookEndpointInfo, type WebhookField, type WebhookHashAlgorithm, type WebhookPolicy, type WebhookReply, type WebhookRequest, type WebhookScheme, type WebhookSignatureEncoding, type WebhookSpec, type WebhookVerification, createNamespacedDb, createNamespacedQueryBuilder, createRelationalDb, deletedDocumentId, hashNamespace, namespaceSchemaOf, relationalDbToQueryBuilder };
|
|
3
3
|
export {};
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { B as PackagePage, F as PACKAGE_MODULE_TYPES, G as RegistryPackageSource, H as RegistryPackage, I as PackageFacets, K as RegistryPackageStatus, L as PackageInfo, R as PackageListItem, U as RegistryPackageList, V as Page, W as RegistryPackageMap, z as PackageModuleType } from "../types-
|
|
1
|
+
import { H as DEFAULT_REGISTRY_URL } from "../types-BUqiKtkv.js";
|
|
2
|
+
import { B as PackagePage, F as PACKAGE_MODULE_TYPES, G as RegistryPackageSource, H as RegistryPackage, I as PackageFacets, K as RegistryPackageStatus, L as PackageInfo, R as PackageListItem, U as RegistryPackageList, V as Page, W as RegistryPackageMap, z as PackageModuleType } from "../types-CfJnFDjg.js";
|
|
3
3
|
import { slimManifest } from "./manifest-slim.js";
|
|
4
4
|
import { toCdnUrl } from "./urls.js";
|
|
5
5
|
import { getUpdateTarget, parseInstallSpec } from "./updates.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../types-
|
|
1
|
+
import { Pn as Manifest } from "../types-BUqiKtkv.js";
|
|
2
|
+
import "../types-CfJnFDjg.js";
|
|
3
3
|
//#region registry/manifest-slim.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Reduce a manifest to the summary fields the package-listing surfaces
|