@powerhousedao/shared 6.2.3-dev.71 → 6.2.3-dev.73
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/common-BXabdhiO.mjs.map +1 -1
- package/dist/clis/args/{connect-BLAht4dO.mjs → connect-Bad05YS-.mjs} +2 -2
- package/dist/clis/args/{connect-BLAht4dO.mjs.map → connect-Bad05YS-.mjs.map} +1 -1
- package/dist/clis/args/connect.mjs +1 -1
- package/dist/clis/args/{help-Dejwe6Bz.mjs → help-Di8n5ZnJ.mjs} +2 -2
- package/dist/clis/args/{help-Dejwe6Bz.mjs.map → help-Di8n5ZnJ.mjs.map} +1 -1
- package/dist/clis/args/help.mjs +1 -1
- package/dist/clis/args/index.mjs +2 -2
- package/dist/clis/build-pieces.d.mts +1 -1
- package/dist/clis/constants.d.mts +1 -1
- package/dist/clis/constants.mjs +4 -0
- package/dist/clis/constants.mjs.map +1 -1
- package/dist/clis/index.d.mts +4 -0
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +6 -2
- package/dist/clis/index.mjs.map +1 -1
- package/dist/clis/{types-DT6KawYx.d.mts → types-BNdhWTBs.d.mts} +5 -1
- package/dist/clis/{types-DT6KawYx.d.mts.map → types-BNdhWTBs.d.mts.map} +1 -1
- package/dist/connect/config-loader.d.ts +1 -1
- package/dist/connect/connect-config-schema.js +1 -1
- package/dist/connect/connect-config-schema.js.map +1 -1
- package/dist/connect/index.d.ts +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-DvbhwImT.d.ts → index-DYRUjLwF.d.ts} +2 -2
- package/dist/{index-DvbhwImT.d.ts.map → index-DYRUjLwF.d.ts.map} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/processors/index.d.ts +2 -2
- package/dist/processors/index.js +10 -0
- package/dist/processors/index.js.map +1 -1
- package/dist/registry/index.d.ts +2 -2
- package/dist/registry/index.js.map +1 -1
- package/dist/registry/manifest-slim.d.ts +2 -2
- package/dist/{types-BpO4LIKj.d.ts → types-BMvEggLM.d.ts} +36 -2
- package/dist/{types-BpO4LIKj.d.ts.map → types-BMvEggLM.d.ts.map} +1 -1
- package/dist/{types-OXIqeH8W.d.ts → types-DiSgFXjt.d.ts} +2 -2
- package/dist/{types-OXIqeH8W.d.ts.map → types-DiSgFXjt.d.ts.map} +1 -1
- package/package.json +1 -1
|
@@ -1942,6 +1942,10 @@ declare const PEER_EXTERNAL_DEPENDENCIES: {
|
|
|
1942
1942
|
readonly peer: "^4";
|
|
1943
1943
|
readonly dev: "4.6.5";
|
|
1944
1944
|
};
|
|
1945
|
+
readonly "@tanstack/react-router": {
|
|
1946
|
+
readonly peer: "^1.170.41";
|
|
1947
|
+
readonly dev: "1.170.41";
|
|
1948
|
+
};
|
|
1945
1949
|
};
|
|
1946
1950
|
declare const FEATURE_DEPENDENCIES: {
|
|
1947
1951
|
readonly analyticsProcessor: {
|
|
@@ -2314,4 +2318,4 @@ type Manifest = z.infer<typeof ManifestSchema>;
|
|
|
2314
2318
|
//#endregion
|
|
2315
2319
|
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 };
|
|
2316
2320
|
export {};
|
|
2317
|
-
//# sourceMappingURL=types-
|
|
2321
|
+
//# sourceMappingURL=types-BNdhWTBs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-
|
|
1
|
+
{"version":3,"file":"types-BNdhWTBs.d.mts","names":[],"sources":["../../host-tokens/index.ts","../../connect/connect-config-schema.ts","../../clis/constants.ts","../../clis/types.ts","../../document-model/schemas.ts","../../document-model/types.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;KAeY;;;UAWK,YAAY;EAC3B;IAAW;IAAc;IAAiB,MAAM;;WACvC,WAAW;;;UAIL;EACf,4BAA4B;;;;UAKb,UAAU;EACzB,OAAO;IAAe;IAAY,MAAM;;WAC/B,WAAW;;;UAIL;EACf;;;;;UAMe,SAAS;EACxB;IACE,MAAM,cAAc;IACpB;IACA,IAAI;IACJ;;;;UAKa;EACf;IAAiB;IAAc;;;KAGrB,QACR,cACA,cACA,WACA,YACA,WACA;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIrC,EAAA,KAAA;KAEU,uBAAuB,EAAE,cAAc;;;cC/2BtC;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;;;aAES;aAAmB;;;cAKpC;;aAET;aACA;aACA;;;aAKA;aACA;aACA;;;cAWS;cAUA;cAiBA;WACC;WACN;WACI;;cAGC;cAkBA;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;;WAGF;aACE;;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;;;KCjWjB,mBAAmB;KACnB,WAAW;KAOX;KAGA;EACV;EACA;EACA,WAAW;EACX;;;;KAgHU,yBAAyB,EAAE,aAC9B;;KAIG;;;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;;EAGF;IACE;;EAIF;IACE;;EAEF;EACA,UAAU;;;;cCkoBC,gBAAc,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuBzB,EAAA,KAAA;;;KCg3BU,WAAW,EAAE,aAAa"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as PHConnectRuntimeConfig, X as PowerhouseConfig } from "../types-
|
|
1
|
+
import { F as PHConnectRuntimeConfig, X as PowerhouseConfig } from "../types-BMvEggLM.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. */
|
|
@@ -64,7 +64,7 @@ const connectLoaderSchema = z.strictObject({
|
|
|
64
64
|
const connectBrandingSchema = z.strictObject({
|
|
65
65
|
appName: z.string().nullable().optional().describe("Browser tab title, installed-app name and in-app brand text. null or omitted: 'Powerhouse Connect'."),
|
|
66
66
|
icon: optionalImageRef("App icon master (1024x1024 PNG recommended, or an SVG). The favicons and installed-app icons are found next to it as <name>_16x16.png, _32x32, _64x64, _192x192 and _512x512; the 64 px one is the in-app logo. null or omitted: Connect's icon."),
|
|
67
|
-
favicon: z.string().nullable().optional().describe("The browser tab icon: a file (.ico, .svg or .png) relative to the project, served and built as icon.ico. A build input; the built runtime config leaves it out. `ph connect build --favicon` wins over it."),
|
|
67
|
+
favicon: z.string().nullable().optional().describe("The browser tab icon: a file (.ico, .svg or .png) relative to the project, served and built as icon.ico, or as icon.svg or icon.png for those types. A build input; the built runtime config leaves it out. `ph connect build --favicon` wins over it."),
|
|
68
68
|
loader: z.union([connectImageRefSchema, connectLoaderSchema]).nullable().optional().describe("The loading image (first paint, app start, drive and editor loading). A path gets a gentle pulse; { src, animation, size } says otherwise, with animation \"none\" for an image that animates itself (animated SVG, GIF or WebP). null or omitted: Connect's animated logo.")
|
|
69
69
|
}).describe("App identity and visual branding. Every field is optional; null means the default.");
|
|
70
70
|
/** `connect.home`: the home screen (the generic chrome's landing page). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-config-schema.js","names":[],"sources":["../../connect/connect-config-schema.ts"],"sourcesContent":["// Single source of Connect's config (browser-safe, zod only). The PHConnect*\n// types (../clis/types.ts) and the JSON Schema fragments Ajv consumes\n// (./schema-fragments.ts) are derived from it.\n//\n// Never `.default(x)`: it fills values on parse; use `.meta({ default })`.\n// Never `.meta({ id })`: it emits `$defs`, whose refs break once the fragment\n// is embedded in another schema root.\n\nimport { z } from \"zod\";\nimport { tokenable, type TokenField } from \"../host-tokens/index.js\";\n\n// ---------------------------------------------------------------------------\n// Images, colours, lengths and backgrounds\n// ---------------------------------------------------------------------------\n\nconst IMAGE_REF =\n \"Image reference: a project-relative file path, a URL, or a data URI.\";\nconst IMAGE_REF_OR_DEFAULT =\n \"Image reference: a project-relative file path (resolved by the Connect build), a URL, or a data URI. null keeps the default.\";\n\n/** An image reference: a project-relative file path (the Connect build turns\n * it into a data URI or an emitted file), a URL, or a data URI. */\nexport const connectImageRefSchema = z.string().describe(IMAGE_REF);\n\n/** An image reference where `null` (or omitting it) keeps the default. */\nconst optionalImageRef = (description = IMAGE_REF_OR_DEFAULT) =>\n connectImageRefSchema.nullable().optional().describe(description);\n\n/** An image per colour scheme: one reference for both, or `{ light, dark }`\n * (`dark` falls back to `light`). */\nexport const connectSchemedImageSchema = z\n .union([\n connectImageRefSchema,\n z.strictObject({\n light: connectImageRefSchema,\n dark: connectImageRefSchema.nullable().optional(),\n }),\n ])\n .describe(\n \"One image for both colour schemes, or { light, dark } (dark falls back to light).\",\n );\n\n/** A CSS colour per colour scheme (`dark` falls back to `light`). */\nexport const connectSchemedColorSchema = z.union([\n z.string(),\n z.strictObject({\n light: z.string(),\n dark: z.string().nullable().optional(),\n }),\n]);\n\n/** A CSS length: a number is px, a string is passed through as written. */\nexport const connectLengthSchema = z.union([z.number(), z.string()]);\n\nconst optionalLength = () =>\n connectLengthSchema\n .nullable()\n .optional()\n .describe(\n 'A CSS length: a number is px; a string is used as written (\"40%\", \"min(55%, 880px)\", \"calc(50% - 120px)\").',\n );\n\n/** Distances to the four edges; each is optional. */\nexport const connectEdgesSchema = z.strictObject({\n top: optionalLength(),\n right: optionalLength(),\n bottom: optionalLength(),\n left: optionalLength(),\n});\n\n/** One image of a decorated pane, absolutely positioned inside it. */\nexport const connectBackgroundLayerSchema = z\n .strictObject({\n src: connectSchemedImageSchema,\n position: connectEdgesSchema\n .nullable()\n .optional()\n .describe(\n \"Distances to the pane's edges; at most one per axis. Omitted: centred both ways.\",\n ),\n width: optionalLength(),\n height: optionalLength(),\n minWidth: optionalLength(),\n minHeight: optionalLength(),\n maxWidth: optionalLength(),\n maxHeight: optionalLength(),\n opacity: z\n .number()\n .min(0)\n .max(1)\n .nullable()\n .optional()\n .describe(\"0 to 1 (default 1).\"),\n fade: connectEdgesSchema\n .nullable()\n .optional()\n .describe(\n \"Feather depth per edge, fading the layer into the page colour.\",\n ),\n })\n .describe(\n \"An image laid over the page, absolutely positioned: the edges set in `position` pin it, an axis with neither edge set is centred.\",\n );\n\n/** A decorated pane: the page colour and the images laid over it. */\nexport const connectBackgroundLayersSchema = z.strictObject({\n color: connectSchemedColorSchema\n .nullable()\n .optional()\n .describe(\n \"The page colour, or { light, dark }. Omitted or null: the theme's page background.\",\n ),\n layers: z\n .array(connectBackgroundLayerSchema)\n .describe(\"Painted in order; the first is at the back.\"),\n});\n\n/** A pane's background: layers over a page colour, or one image as\n * shorthand for a single layer pinned bottom-right. */\nexport const connectBackgroundSchema = z\n .union([connectImageRefSchema, connectBackgroundLayersSchema])\n .describe(\n \"Layered images over a page colour, or a single image pinned to the bottom-right corner. null keeps the default.\",\n );\n\n// ---------------------------------------------------------------------------\n// branding, home\n// ---------------------------------------------------------------------------\n\n/** The loading image and the motion applied to it. */\nexport const connectLoaderSchema = z.strictObject({\n src: connectImageRefSchema,\n animation: z\n .enum([\"pulse\", \"spin\", \"none\"])\n .nullable()\n .optional()\n .describe(\"Motion applied to the image (default pulse).\"),\n size: z\n .number()\n .min(16)\n .max(512)\n .nullable()\n .optional()\n .describe(\n \"Rendered width in CSS pixels (default 96); the height follows the image.\",\n ),\n});\n\n/** `connect.branding`: Connect's identity and look. */\nexport const connectBrandingSchema = z\n .strictObject({\n appName: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Browser tab title, installed-app name and in-app brand text. null or omitted: 'Powerhouse Connect'.\",\n ),\n icon: optionalImageRef(\n \"App icon master (1024x1024 PNG recommended, or an SVG). The favicons and installed-app icons are found next to it as <name>_16x16.png, _32x32, _64x64, _192x192 and _512x512; the 64 px one is the in-app logo. null or omitted: Connect's icon.\",\n ),\n favicon: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"The browser tab icon: a file (.ico, .svg or .png) relative to the project, served and built as icon.ico. A build input; the built runtime config leaves it out. `ph connect build --favicon` wins over it.\",\n ),\n loader: z\n .union([connectImageRefSchema, connectLoaderSchema])\n .nullable()\n .optional()\n .describe(\n 'The loading image (first paint, app start, drive and editor loading). A path gets a gentle pulse; { src, animation, size } says otherwise, with animation \"none\" for an image that animates itself (animated SVG, GIF or WebP). null or omitted: Connect\\'s animated logo.',\n ),\n })\n .describe(\n \"App identity and visual branding. Every field is optional; null means the default.\",\n );\n\n/** `connect.home`: the home screen (the generic chrome's landing page). */\nexport const connectHomeSchema = z\n .strictObject({\n background: connectBackgroundSchema\n .nullable()\n .optional()\n .describe(\n \"The home screen's background: { color, layers } with each image positioned and sized, or one image pinned bottom-right. null or omitted: the bundled gradient.\",\n ),\n })\n .describe(\"The home screen (the generic chrome's landing page).\");\n\n// ---------------------------------------------------------------------------\n// app, ai, packages\n// ---------------------------------------------------------------------------\n\nexport const connectAppSchema = z\n .strictObject({\n logLevel: z.enum([\"debug\", \"info\", \"warn\", \"error\"]).optional().meta({\n description:\n \"Log level applied by Connect's logger at boot. Affects browser-side output only.\",\n default: \"info\",\n }),\n basePath: z.string().optional().meta({\n description:\n \"Base path Connect is mounted under (e.g. '/connect' for subpath deploys). Normalised at runtime to start and end with '/'. Defaults to the build-time BASE_URL.\",\n default: \"/\",\n }),\n offline: z.boolean().optional().meta({\n description:\n \"When true (default), the build emits a precaching service worker so Connect's app shell works offline, and the SPA registers it at boot. Set false to opt this deployment out: no service worker is built, the SPA skips registration, and any previously-installed worker is unregistered.\",\n default: true,\n }),\n studioMode: z.boolean().optional().meta({\n description:\n \"Studio mode. Enables builder-only capabilities: Connect loads the vetra package and exposes DocumentModel (and vetra spec types) as creatable documents. Forced on by `ph vetra` / `ph connect studio`; false by default.\",\n default: false,\n }),\n workflowsEnabled: z\n .boolean()\n .optional()\n .describe(\n \"Powerhouse workflows in Connect. When true the tab loads the @powerhousedao/workflow package (workflow + connection documents, their editors and Workflow Studio) and the reactor worker registers its document models. Falls back to the top-level `workflows.enabled`; set it to override that for Connect. Independent of studioMode. False when neither is set.\",\n ),\n })\n .describe(\"Top-level Connect application behaviour.\");\n\nexport const connectAiSchema = z\n .strictObject({\n assistantEnabled: z.boolean().optional().meta({\n description:\n \"When true, Connect mounts the in-browser AI assistant (bottom-right chat FAB that talks to a user-configured OpenAI-compatible endpoint and acts on the reactor). Disabled by default.\",\n default: false,\n }),\n })\n .describe(\"AI assistant (chat) behaviour.\");\n\nexport const connectPackagesSchema = z\n .strictObject({\n externalEnabled: z.boolean().optional().meta({\n description:\n \"When false, Connect refuses to load any package that wasn't bundled at build time. Affirmative replacement for the legacy PH_CONNECT_EXTERNAL_PACKAGES_DISABLED env var.\",\n default: true,\n }),\n liveReload: z.boolean().optional().meta({\n description:\n \"When true, Connect subscribes to the static-mode `/__packages` SSE channel so live publishes flow into the running tab without a page reload. Only works under hosting that serves this channel (e.g. ph-clint static mode).\",\n default: false,\n }),\n })\n .describe(\n \"Runtime behaviour for the Connect package manager (separate from top-level `packages[]`, which lists which packages to load).\",\n );\n\n// ---------------------------------------------------------------------------\n// drives\n// ---------------------------------------------------------------------------\n\nconst EXPLORER_ICONS_DESCRIPTION =\n \"The drive explorer's icons (the generic plugin's); each null keeps the built-in icon.\";\n\n/** The drive explorer's icons: the generic chrome's, owned by the generic\n * plugin. Each `null` keeps the built-in icon. */\nexport const connectExplorerIconsSchema = z\n .strictObject({\n localDrive: optionalImageRef(\"Local drives without an icon of their own.\"),\n remoteDrive: optionalImageRef(\n \"Remote drives without an icon of their own.\",\n ),\n folder: optionalImageRef(\"Folders.\"),\n document: optionalImageRef(\n \"Documents whose type has no icon in `documents`.\",\n ),\n documents: z\n .record(z.string(), connectImageRefSchema)\n .nullable()\n .optional()\n .describe('Per document type, e.g. \"acme/invoice\".'),\n })\n .describe(EXPLORER_ICONS_DESCRIPTION);\n\nexport const connectDefaultDriveRemoteSchema = z.strictObject({\n url: z.string(),\n name: z.string().nullable().optional(),\n icon: z.string().nullable().optional(),\n});\n\nexport const connectDefaultDriveLocalSchema = z.strictObject({\n local: z\n .literal(true)\n .describe(\n \"Discriminator: this entry is a local drive created on first boot.\",\n ),\n id: z\n .string()\n .describe(\n \"Stable drive id. The drive is created with this id on first boot and is not re-created on later boots.\",\n ),\n name: z.string().nullable().optional(),\n icon: z.string().nullable().optional(),\n app: z\n .string()\n .optional()\n .describe(\"Drive app (preferred editor) to open on the drive.\"),\n});\n\nexport const connectDefaultDriveSchema = z.union([\n connectDefaultDriveRemoteSchema,\n connectDefaultDriveLocalSchema,\n]);\n\n/** `connect.drives.sections.{remote,local}`: three affirmative toggles. */\nexport const connectDriveSectionSchema = z\n .strictObject({\n enabled: z.boolean().optional().meta({\n description: \"When false, the section is hidden in the sidebar.\",\n default: true,\n }),\n allowAdd: z.boolean().optional().meta({\n description:\n \"When false, the section's 'add drive' affordance is hidden.\",\n default: true,\n }),\n allowDelete: z.boolean().optional().meta({\n description:\n \"When false, drives in this section cannot be deleted from the UI.\",\n default: true,\n }),\n })\n .describe(\n \"Visibility and add/delete affordances for a drive section in the sidebar.\",\n );\n\nexport const connectDriveSectionsSchema = z\n .strictObject({\n remote: connectDriveSectionSchema.optional(),\n local: connectDriveSectionSchema.optional(),\n })\n .describe(\n \"Per-section visibility and affordance toggles. `remote` covers what was historically split into 'public' + 'cloud'; `local` is browser-local drives.\",\n );\n\n/** Mirrors DRIVES_PRESERVE_STRATEGIES (../clis/constants.ts, which imports\n * node: modules, so it is not imported here); a test pins the two. */\nexport const connectDrivePreserveStrategySchema = z.enum([\n \"preserve-all\",\n \"preserve-by-url-and-detach\",\n]);\n\nexport const connectDrivesSchema = z\n .strictObject({\n allowAddDrive: z.boolean().optional().meta({\n description:\n \"When false, the SPA hides the 'add drive' affordance entirely (top-level). Per-section overrides live in `sections.{remote,local}.allowAdd`.\",\n default: true,\n }),\n defaultDrives: z.array(connectDefaultDriveSchema).optional().meta({\n description:\n \"Drives the SPA auto-connects to on first load. Each entry is either a remote drive (a URL, with optional name/icon overrides) or a local drive (created locally on first boot, with a stable id and optional name/icon/app).\",\n default: [],\n }),\n preserveStrategy: connectDrivePreserveStrategySchema\n .optional()\n .describe(\n \"Strategy applied when defaultDrives change between deploys. 'preserve-all' keeps user-added drives untouched; 'preserve-by-url-and-detach' detaches removed default drives. No schema default — opt-in only.\",\n ),\n sections: connectDriveSectionsSchema.optional(),\n icons: connectExplorerIconsSchema\n .nullable()\n .optional()\n .describe(EXPLORER_ICONS_DESCRIPTION),\n })\n .describe(\"Default-drive and add-drive UI behaviour.\");\n\n// ---------------------------------------------------------------------------\n// renown, sentry, openPanel\n// ---------------------------------------------------------------------------\n\nexport const connectRenownRainbowAdapterSchema = z\n .strictObject({\n walletConnectProjectId: z\n .string()\n .optional()\n .describe(\n \"WalletConnect project id; required for this adapter to function.\",\n ),\n infuraProjectId: z\n .string()\n .optional()\n .describe(\"Optional Infura project id used to build RPC transports.\"),\n })\n .describe(\"wagmi + RainbowKit external-wallet adapter config.\");\n\nexport const connectRenownPrivyAdapterSchema = z\n .strictObject({\n appId: z\n .string()\n .optional()\n .describe(\"Privy application id; required for this adapter to function.\"),\n clientId: z.string().optional().describe(\"Optional Privy client id.\"),\n methods: z\n .array(z.string())\n .optional()\n .describe(\n \"Login methods this adapter offers; default per adapter when omitted.\",\n ),\n })\n .describe(\"Privy embedded/social adapter config.\");\n\nexport const connectRenownAdaptersSchema = z\n .strictObject({\n rainbow: connectRenownRainbowAdapterSchema.optional(),\n privy: connectRenownPrivyAdapterSchema.optional(),\n })\n .describe(\n \"Per-adapter wallet config for in-page auth. Presence of an adapter key enables it; omit or leave empty for redirect-only behaviour.\",\n );\n\nexport const connectRenownSchema = z\n .strictObject({\n url: z.string().optional().meta({\n description: \"Renown auth service URL.\",\n default: \"https://www.renown.id\",\n }),\n networkId: z.string().optional().meta({\n description: \"CAIP-2 network namespace (e.g. 'eip155').\",\n default: \"eip155\",\n }),\n chainId: z.number().optional().meta({\n description: \"CAIP-2 chain reference within the network namespace.\",\n default: 1,\n }),\n namespace: z\n .string()\n .optional()\n .describe(\n \"Renown localStorage namespace; share it across Connects to share login.\",\n ),\n switchboardUrl: z\n .string()\n .optional()\n .describe(\n \"Switchboard GraphQL URL. When set, Connect enables in-page (no-redirect) Renown sign-in; otherwise it falls back to the redirect flow via `url`.\",\n ),\n adapters: connectRenownAdaptersSchema.optional(),\n })\n .describe(\"Renown identity / authentication coordinates.\");\n\nexport const connectSentrySchema = z\n .strictObject({\n dsn: z.string().nullable().optional().meta({\n description:\n \"Sentry DSN URL. `null` disables Sentry entirely; the SPA never loads the Sentry SDK chunk.\",\n default: null,\n }),\n env: z.string().optional().meta({\n description:\n \"Sentry environment label, surfaced as the `environment` tag on every event.\",\n default: \"dev\",\n }),\n tracing: z.boolean().optional().meta({\n description: \"Enable Sentry performance tracing.\",\n default: false,\n }),\n })\n .describe(\n \"Sentry error-tracking coordinates. Set `dsn` to enable Sentry; leave `dsn` null to disable. The Sentry release tag stays build-time (stamped via Vite's `define` from WORKSPACE_VERSION) so it always matches the sourcemaps uploaded by CI.\",\n );\n\nexport const connectOpenPanelSchema = z\n .strictObject({\n clientId: z.string().optional().meta({\n description:\n \"OpenPanel client id. Empty string disables OpenPanel entirely.\",\n default: \"\",\n }),\n apiUrl: z\n .string()\n .optional()\n .describe(\n \"OpenPanel API URL for self-hosted instances (e.g. 'https://openpanel.example/api'). Omit to use OpenPanel's hosted API.\",\n ),\n trackUiEvents: z.boolean().optional().meta({\n description: \"Track UI events.\",\n default: true,\n }),\n trackOperations: z.boolean().optional().meta({\n description: \"Track document operations.\",\n default: true,\n }),\n })\n .describe(\n \"OpenPanel product analytics. Set `clientId` to enable; an empty `clientId` disables it. Events are only sent after the user accepts analytics cookies. Takes precedence over the build-time PH_CONNECT_OPENPANEL_* env vars.\",\n );\n\n// ---------------------------------------------------------------------------\n// instance, reactor\n// ---------------------------------------------------------------------------\n\n/** Which reactor client Connect runs (see PHReactorClientMode). */\nexport const connectReactorClientModeSchema = z.enum([\n \"in-process\",\n \"worker\",\n \"remote\",\n \"router\",\n]);\n\nexport const connectInstanceSchema = z\n .strictObject({\n namespace: z.string().nullable().meta({\n description:\n \"Explicit storage/SharedWorker namespace for this instance. `null` derives it from the base path (and, later, the configured endpoint), so root deployments stay byte-identical.\",\n default: null,\n }),\n reactorWorker: z.boolean().meta({\n description:\n \"Host the reactor in a shared worker instead of on the main thread. Off by default; the main-thread reactor stays the proven path until cutover is verified. Packaged deployments load the worker from the prebuilt bundle `ph connect build` emits under __reactor_worker__/ (the dev server builds it lazily at the same path); when that bundle is absent the feature reports itself unavailable instead of starting a worker that cannot load.\",\n default: false,\n }),\n multiReactor: z.boolean().optional().meta({\n description:\n \"Opt-in multi-reactor routing. When on, Connect routes through the in-browser reactor plus remote backends instead of the single in-browser reactor. Off by default; the single-reactor path is unchanged.\",\n default: false,\n }),\n })\n .describe(\n \"Per-instance identity. Lets one origin host multiple isolated Connect instances, each with its own storage + SharedWorker namespace.\",\n );\n\nexport const connectReactorFeatureFlagsSchema = z\n .strictObject({\n documentDecisions: z.boolean().optional().meta({\n description:\n \"Decide writes from the document stream rather than the document meta cache, so a backdated deletion denies the operations that sort after it.\",\n default: false,\n }),\n authEnforcement: z.boolean().optional().meta({\n description:\n \"Enforce the auth scope's policy at admission, replay, and read. Requires documentDecisions.\",\n default: false,\n }),\n authGroups: z.boolean().optional().meta({\n description:\n \"Let `{ group }` principals match against the rosters of the group documents a policy names. Requires authEnforcement.\",\n default: false,\n }),\n authConditions: z.boolean().optional().meta({\n description:\n \"Evaluate `where` and `match` conditions on grants. Requires authGroups. Do not enable on a fleet `preflight:auth` reports as crossing a reducer version.\",\n default: false,\n }),\n })\n .describe(\n \"Enforcement flags. Each implies its predecessors, and the reactor refuses to boot on a set that names a later flag without an earlier one. These are consensus settings: a Connect syncing with a fleet must carry the same flags the fleet does, or the two reach different replay outcomes for the same history and diverge.\",\n );\n\nexport const connectReactorSchema = z\n .strictObject({\n featureFlags: connectReactorFeatureFlagsSchema.optional(),\n createSignaturePolicy: z.enum([\"legacy\", \"v2-required\"]).optional().meta({\n description:\n \"What new documents are created as. `v2-required` documents accept only v2 action signatures and take content-addressed ids; set `legacy` while any peer Connect syncs with predates them. Existing documents keep their policy.\",\n default: \"v2-required\",\n }),\n unsupportedStoredDocuments: z\n .enum([\"refuse\", \"read-only\"])\n .optional()\n .meta({\n description:\n \"What the reactor does when this browser's store holds documents at protocol versions this build does not run. `refuse` fails the boot and names the versions; `read-only` boots and keeps those documents read-only.\",\n default: \"refuse\",\n }),\n })\n .describe(\n \"Settings for the reactor Connect runs in the browser, on the main thread or in the shared worker alike.\",\n );\n\n// ---------------------------------------------------------------------------\n// pwa\n// ---------------------------------------------------------------------------\n\n/** A runtime-caching / denylist URL match. A string is handed to Workbox\n * verbatim; `{ source, flags }` is rebuilt into a RegExp at build time. */\nexport const connectPwaUrlPatternSchema = z\n .union([\n z.string(),\n z\n .strictObject({\n source: z.string().describe(\"RegExp source.\"),\n flags: z.string().optional().describe(\"RegExp flags (e.g. 'i').\"),\n })\n // Not expressible in JSON Schema, so only the zod path checks it.\n .refine(\n (p) => {\n try {\n new RegExp(p.source, p.flags);\n return true;\n } catch {\n return false;\n }\n },\n { message: \"source/flags do not compile to a valid RegExp\" },\n ),\n ])\n .describe(\n \"URL match. A string is matched verbatim by Workbox; { source, flags } is rebuilt into a RegExp at build time.\",\n );\n\nexport const connectPwaCacheStrategySchema = z.enum([\n \"CacheFirst\",\n \"CacheOnly\",\n \"NetworkFirst\",\n \"NetworkOnly\",\n \"StaleWhileRevalidate\",\n]);\n\n/** Serialisable subset of a Workbox `RuntimeCaching` rule. */\nexport const connectPwaRuntimeCachingSchema = z.strictObject({\n urlPattern: connectPwaUrlPatternSchema,\n handler: connectPwaCacheStrategySchema,\n method: z.enum([\"GET\", \"POST\", \"PUT\", \"DELETE\", \"HEAD\", \"PATCH\"]).optional(),\n options: z\n .strictObject({\n cacheName: z.string().optional(),\n networkTimeoutSeconds: z\n .number()\n .optional()\n .describe(\n \"Seconds a NetworkFirst rule waits for the network before falling back to the cache.\",\n ),\n expiration: z\n .strictObject({\n maxEntries: z.number().optional(),\n maxAgeSeconds: z.number().optional(),\n })\n .optional(),\n cacheableResponse: z\n .strictObject({\n statuses: z.array(z.number()).optional(),\n headers: z.record(z.string(), z.string()).optional(),\n })\n .optional(),\n })\n .optional(),\n});\n\nexport const connectPwaIconSchema = z.strictObject({\n src: z.string(),\n sizes: z.string().optional(),\n type: z.string().optional(),\n purpose: z.string().optional(),\n});\n\n/** A File Handling API entry. No `action`: every handler opens at Connect's\n * app root, because consuming launched files needs Connect's own code. */\nexport const connectPwaFileHandlerSchema = z.strictObject({\n accept: z\n .record(\n z.string(),\n z.array(z.string().regex(/^\\./, \"file extensions must start with '.'\")),\n )\n .describe(\n \"MIME type → file extensions. Each extension must start with '.'; browsers ignore entries without it.\",\n ),\n icons: z\n .array(connectPwaIconSchema)\n .optional()\n .describe(\"OS-level file-type icons.\"),\n launch_type: z.enum([\"single-client\", \"multiple-clients\"]).optional(),\n});\n\n/** Web-app-manifest fields a package or project may override. */\nexport const connectPwaManifestSchema = z\n .strictObject({\n name: z.string().optional(),\n short_name: z.string().optional(),\n description: z.string().optional(),\n theme_color: z.string().optional(),\n background_color: z.string().optional(),\n display: z\n .enum([\"fullscreen\", \"standalone\", \"minimal-ui\", \"browser\"])\n .optional(),\n start_url: z.string().optional(),\n scope: z.string().optional(),\n icons: z\n .array(connectPwaIconSchema)\n .optional()\n .describe(\n \"Icons appended to the built-in set and de-duplicated by (src, sizes, purpose).\",\n ),\n file_handlers: z\n .array(connectPwaFileHandlerSchema)\n .optional()\n .describe(\n \"File associations appended after Connect's built-in .phd/.phdm handler and de-duplicated on the whole entry. Entries only declare accepted types; there is no action field, because opening the files requires Connect's own runtime handling, so every handler opens at the app root.\",\n ),\n launch_handler: z\n .strictObject({\n client_mode: z.enum([\n \"auto\",\n \"focus-existing\",\n \"navigate-existing\",\n \"navigate-new\",\n ]),\n })\n .optional()\n .describe(\n \"How the OS launches the app for handled files/links. Connect defaults to focus-existing.\",\n ),\n })\n .describe(\"Web-app-manifest field overrides.\");\n\nconst pwaShape = {\n globPatterns: z\n .array(z.string())\n .optional()\n .describe(\"Extra Workbox precache globs, unioned with the built-ins.\"),\n globIgnores: z\n .array(z.string())\n .optional()\n .describe(\"Extra precache ignore globs, unioned with the built-ins.\"),\n maximumFileSizeToCacheInBytes: z\n .number()\n .optional()\n .describe(\n \"Raise the precache file-size ceiling. The max across all contributors wins, so no contributor can shrink another's limit.\",\n ),\n runtimeCaching: z\n .array(connectPwaRuntimeCachingSchema)\n .optional()\n .describe(\n \"Runtime-caching rules appended after the built-in rules. Workbox is first-match-wins, so these cannot override a built-in rule matching the same URL.\",\n ),\n navigateFallbackDenylist: z\n .array(connectPwaUrlPatternSchema)\n .optional()\n .describe(\n \"Extra SPA navigate-fallback denylist patterns, unioned with the built-ins.\",\n ),\n};\n\nconst PWA_DESCRIPTION =\n \"Progressive-web-app / service-worker overrides, layered on Connect's built-in PWA defaults at build time. Scalar fields deep-merge (this layer wins); the array members (icons, file_handlers, globs, runtimeCaching and denylist patterns) are additive; maximumFileSizeToCacheInBytes takes the max across contributors. (categories is not set here — it is derived from the manifest's category field.) Only applied when connect.app.offline is true.\";\n\n/** `connect.pwa` as authored. */\nexport const connectPwaSchema = z\n .strictObject({ manifest: connectPwaManifestSchema.optional(), ...pwaShape })\n .describe(PWA_DESCRIPTION);\n\n// ---------------------------------------------------------------------------\n// The connect block\n// ---------------------------------------------------------------------------\n\n/**\n * The `connect` block as authored: powerhouse.config.json's `connect`, the\n * connect host's `config`, and `ph connect config` writes. Every field is\n * optional; omit the section entirely for default behaviour.\n */\nexport const connectConfigSchema = z\n .strictObject({\n branding: connectBrandingSchema.optional(),\n home: connectHomeSchema.optional(),\n app: connectAppSchema.optional(),\n ai: connectAiSchema.optional(),\n packages: connectPackagesSchema.optional(),\n drives: connectDrivesSchema.optional(),\n renown: connectRenownSchema.optional(),\n sentry: connectSentrySchema.optional(),\n openPanel: connectOpenPanelSchema.optional(),\n instance: connectInstanceSchema.optional(),\n reactor: connectReactorSchema.optional(),\n pwa: connectPwaSchema.optional(),\n })\n .describe(\n \"Connect-specific UI customisations. All fields optional; omit the section entirely for default behaviour.\",\n );\n\nexport type ConnectConfig = z.output<typeof connectConfigSchema>;\nexport type ConnectConfigInput = z.input<typeof connectConfigSchema>;\n\n// ---------------------------------------------------------------------------\n// The declared form: a connect host's `config`\n// ---------------------------------------------------------------------------\n\n/** `schema` carrying `source`'s description and meta (zod keeps them per\n * instance, so `.extend()` and a rebuilt field drop them). */\nfunction withMetaOf<S extends z.ZodType>(schema: S, source: z.ZodType): S {\n const meta = source.meta();\n return meta ? schema.meta(meta) : schema;\n}\n\n/**\n * The `connect` block with its token-able fields wrapped by `field`: the\n * fields that name another host's outputs, which a connect host's `config`\n * may write as output tokens (`ph run` resolves them before the verb).\n *\n * - `drives.defaultDrives[].url` (a remote entry): e.g. a switchboard's\n * `drives.<slug>.url` output.\n * - `renown.switchboardUrl`: a switchboard's `endpoints.graphql` output.\n *\n * The connect runner builds it with host-core's `s.tokenable` (declared:\n * tokens in; resolved: plain values only). The output type is\n * {@link ConnectConfig} either way. powerhouse.config.json's `connect` block,\n * the served config and their JSON Schemas stay {@link connectConfigSchema},\n * which takes no tokens.\n */\nexport function connectConfigSchemaWith(field: TokenField) {\n const remoteDrive = connectDefaultDriveRemoteSchema.extend({\n url: field(z.string()),\n });\n const shape = connectDrivesSchema.shape;\n const drives = withMetaOf(\n connectDrivesSchema.extend({\n defaultDrives: withMetaOf(\n z\n .array(z.union([remoteDrive, connectDefaultDriveLocalSchema]))\n .optional(),\n shape.defaultDrives,\n ),\n }),\n connectDrivesSchema,\n );\n const renown = withMetaOf(\n connectRenownSchema.extend({\n switchboardUrl: withMetaOf(\n field(z.string()).optional(),\n connectRenownSchema.shape.switchboardUrl,\n ),\n }),\n connectRenownSchema,\n );\n return withMetaOf(\n connectConfigSchema.extend({\n drives: drives.optional(),\n renown: renown.optional(),\n }),\n connectConfigSchema,\n );\n}\n\n/** The declared `connect` block: {@link connectConfigSchemaWith} with every\n * token accepted in its token-able fields. */\nexport const declaredConnectConfigSchema =\n /* @__PURE__ */ connectConfigSchemaWith(tokenable);\n\n/** What a connect host's `config` may hold (tokens in token-able fields). */\nexport type DeclaredConnectConfigInput = z.input<\n typeof declaredConnectConfigSchema\n>;\n\n// ---------------------------------------------------------------------------\n// The served runtime config: authored fields plus what is derived or\n// projected. These fields are never authored, so the authored schema (and\n// the JSON Schema fragment emitted from it) rejects them.\n// ---------------------------------------------------------------------------\n\n/** One entry of the host.js composition, projected into the served config as\n * data (module specifier + validated config). */\nexport const connectCompositionEntrySchema = z.strictObject({\n module: z.string(),\n config: z.record(z.string(), z.unknown()).optional(),\n});\n\n/** `instance` plus `reactorClient`, derived from the host's reactor backends. */\nexport const connectRuntimeInstanceSchema = connectInstanceSchema.extend({\n reactorClient: connectReactorClientModeSchema.optional(),\n});\n\n/** The manifest plus `categories`, derived from contributors' `category`. */\nexport const connectRuntimePwaManifestSchema = connectPwaManifestSchema.extend({\n categories: z.array(z.string()).optional(),\n});\n\nexport const connectRuntimePwaSchema = connectPwaSchema.extend({\n manifest: connectRuntimePwaManifestSchema.optional(),\n});\n\n/** The served `connect` block (runtime powerhouse.config.json). */\nexport const connectRuntimeConfigSchema = connectConfigSchema.extend({\n composition: z.array(connectCompositionEntrySchema).optional(),\n instance: connectRuntimeInstanceSchema.optional(),\n pwa: connectRuntimePwaSchema.optional(),\n});\n\nexport type ConnectRuntimeConfig = z.output<typeof connectRuntimeConfigSchema>;\n"],"mappings":";;;AAeA,MAAM,YACJ;AACF,MAAM,uBACJ;;;AAIF,MAAa,wBAAwB,EAAE,OAAO,CAAC,CAAC,SAAS,SAAS;;AAGlE,MAAM,oBAAoB,cAAc,yBACtC,sBAAsB,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,WAAW;;;AAIlE,MAAa,4BAA4B,EACtC,MAAM,CACL,uBACA,EAAE,aAAa;CACb,OAAO;CACP,MAAM,sBAAsB,SAAS,CAAC,CAAC,SAAS;AAClD,CAAC,CACH,CAAC,CAAC,CACD,SACC,mFACF;;AAGF,MAAa,4BAA4B,EAAE,MAAM,CAC/C,EAAE,OAAO,GACT,EAAE,aAAa;CACb,OAAO,EAAE,OAAO;CAChB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvC,CAAC,CACH,CAAC;;AAGD,MAAa,sBAAsB,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC;AAEnE,MAAM,uBACJ,oBACG,SAAS,CAAC,CACV,SAAS,CAAC,CACV,SACC,kHACF;;AAGJ,MAAa,qBAAqB,EAAE,a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ACZ,MAAM,aACR,EACF,CAAC,GACD,mBACF;CACA,MAAM,SAAS,WACb,oBAAoB,OAAO,EACzB,gBAAgB,WACd,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,GAC3B,oBAAoB,MAAM,cAC5B,EACF,CAAC,GACD,mBACF;CACA,OAAO,WACL,oBAAoB,OAAO;EACzB,QAAQ,OAAO,SAAS;EACxB,QAAQ,OAAO,SAAS;CAC1B,CAAC,GACD,mBACF;AACF;;;AAIA,MAAa,8BACK,wCAAwB,SAAS;;;AAenD,MAAa,gCAAgC,EAAE,aAAa;CAC1D,QAAQ,EAAE,OAAO;CACjB,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS;AACrD,CAAC;;AAGD,MAAa,+BAA+B,sBAAsB,OAAO,EACvE,eAAe,+BAA+B,SAAS,EACzD,CAAC;;AAGD,MAAa,kCAAkC,yBAAyB,OAAO,EAC7E,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,EAC3C,CAAC;AAED,MAAa,0BAA0B,iBAAiB,OAAO,EAC7D,UAAU,gCAAgC,SAAS,EACrD,CAAC;;AAGD,MAAa,6BAA6B,oBAAoB,OAAO;CACnE,aAAa,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS;CAC7D,UAAU,6BAA6B,SAAS;CAChD,KAAK,wBAAwB,SAAS;AACxC,CAAC"}
|
|
1
|
+
{"version":3,"file":"connect-config-schema.js","names":[],"sources":["../../connect/connect-config-schema.ts"],"sourcesContent":["// Single source of Connect's config (browser-safe, zod only). The PHConnect*\n// types (../clis/types.ts) and the JSON Schema fragments Ajv consumes\n// (./schema-fragments.ts) are derived from it.\n//\n// Never `.default(x)`: it fills values on parse; use `.meta({ default })`.\n// Never `.meta({ id })`: it emits `$defs`, whose refs break once the fragment\n// is embedded in another schema root.\n\nimport { z } from \"zod\";\nimport { tokenable, type TokenField } from \"../host-tokens/index.js\";\n\n// ---------------------------------------------------------------------------\n// Images, colours, lengths and backgrounds\n// ---------------------------------------------------------------------------\n\nconst IMAGE_REF =\n \"Image reference: a project-relative file path, a URL, or a data URI.\";\nconst IMAGE_REF_OR_DEFAULT =\n \"Image reference: a project-relative file path (resolved by the Connect build), a URL, or a data URI. null keeps the default.\";\n\n/** An image reference: a project-relative file path (the Connect build turns\n * it into a data URI or an emitted file), a URL, or a data URI. */\nexport const connectImageRefSchema = z.string().describe(IMAGE_REF);\n\n/** An image reference where `null` (or omitting it) keeps the default. */\nconst optionalImageRef = (description = IMAGE_REF_OR_DEFAULT) =>\n connectImageRefSchema.nullable().optional().describe(description);\n\n/** An image per colour scheme: one reference for both, or `{ light, dark }`\n * (`dark` falls back to `light`). */\nexport const connectSchemedImageSchema = z\n .union([\n connectImageRefSchema,\n z.strictObject({\n light: connectImageRefSchema,\n dark: connectImageRefSchema.nullable().optional(),\n }),\n ])\n .describe(\n \"One image for both colour schemes, or { light, dark } (dark falls back to light).\",\n );\n\n/** A CSS colour per colour scheme (`dark` falls back to `light`). */\nexport const connectSchemedColorSchema = z.union([\n z.string(),\n z.strictObject({\n light: z.string(),\n dark: z.string().nullable().optional(),\n }),\n]);\n\n/** A CSS length: a number is px, a string is passed through as written. */\nexport const connectLengthSchema = z.union([z.number(), z.string()]);\n\nconst optionalLength = () =>\n connectLengthSchema\n .nullable()\n .optional()\n .describe(\n 'A CSS length: a number is px; a string is used as written (\"40%\", \"min(55%, 880px)\", \"calc(50% - 120px)\").',\n );\n\n/** Distances to the four edges; each is optional. */\nexport const connectEdgesSchema = z.strictObject({\n top: optionalLength(),\n right: optionalLength(),\n bottom: optionalLength(),\n left: optionalLength(),\n});\n\n/** One image of a decorated pane, absolutely positioned inside it. */\nexport const connectBackgroundLayerSchema = z\n .strictObject({\n src: connectSchemedImageSchema,\n position: connectEdgesSchema\n .nullable()\n .optional()\n .describe(\n \"Distances to the pane's edges; at most one per axis. Omitted: centred both ways.\",\n ),\n width: optionalLength(),\n height: optionalLength(),\n minWidth: optionalLength(),\n minHeight: optionalLength(),\n maxWidth: optionalLength(),\n maxHeight: optionalLength(),\n opacity: z\n .number()\n .min(0)\n .max(1)\n .nullable()\n .optional()\n .describe(\"0 to 1 (default 1).\"),\n fade: connectEdgesSchema\n .nullable()\n .optional()\n .describe(\n \"Feather depth per edge, fading the layer into the page colour.\",\n ),\n })\n .describe(\n \"An image laid over the page, absolutely positioned: the edges set in `position` pin it, an axis with neither edge set is centred.\",\n );\n\n/** A decorated pane: the page colour and the images laid over it. */\nexport const connectBackgroundLayersSchema = z.strictObject({\n color: connectSchemedColorSchema\n .nullable()\n .optional()\n .describe(\n \"The page colour, or { light, dark }. Omitted or null: the theme's page background.\",\n ),\n layers: z\n .array(connectBackgroundLayerSchema)\n .describe(\"Painted in order; the first is at the back.\"),\n});\n\n/** A pane's background: layers over a page colour, or one image as\n * shorthand for a single layer pinned bottom-right. */\nexport const connectBackgroundSchema = z\n .union([connectImageRefSchema, connectBackgroundLayersSchema])\n .describe(\n \"Layered images over a page colour, or a single image pinned to the bottom-right corner. null keeps the default.\",\n );\n\n// ---------------------------------------------------------------------------\n// branding, home\n// ---------------------------------------------------------------------------\n\n/** The loading image and the motion applied to it. */\nexport const connectLoaderSchema = z.strictObject({\n src: connectImageRefSchema,\n animation: z\n .enum([\"pulse\", \"spin\", \"none\"])\n .nullable()\n .optional()\n .describe(\"Motion applied to the image (default pulse).\"),\n size: z\n .number()\n .min(16)\n .max(512)\n .nullable()\n .optional()\n .describe(\n \"Rendered width in CSS pixels (default 96); the height follows the image.\",\n ),\n});\n\n/** `connect.branding`: Connect's identity and look. */\nexport const connectBrandingSchema = z\n .strictObject({\n appName: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"Browser tab title, installed-app name and in-app brand text. null or omitted: 'Powerhouse Connect'.\",\n ),\n icon: optionalImageRef(\n \"App icon master (1024x1024 PNG recommended, or an SVG). The favicons and installed-app icons are found next to it as <name>_16x16.png, _32x32, _64x64, _192x192 and _512x512; the 64 px one is the in-app logo. null or omitted: Connect's icon.\",\n ),\n favicon: z\n .string()\n .nullable()\n .optional()\n .describe(\n \"The browser tab icon: a file (.ico, .svg or .png) relative to the project, served and built as icon.ico, or as icon.svg or icon.png for those types. A build input; the built runtime config leaves it out. `ph connect build --favicon` wins over it.\",\n ),\n loader: z\n .union([connectImageRefSchema, connectLoaderSchema])\n .nullable()\n .optional()\n .describe(\n 'The loading image (first paint, app start, drive and editor loading). A path gets a gentle pulse; { src, animation, size } says otherwise, with animation \"none\" for an image that animates itself (animated SVG, GIF or WebP). null or omitted: Connect\\'s animated logo.',\n ),\n })\n .describe(\n \"App identity and visual branding. Every field is optional; null means the default.\",\n );\n\n/** `connect.home`: the home screen (the generic chrome's landing page). */\nexport const connectHomeSchema = z\n .strictObject({\n background: connectBackgroundSchema\n .nullable()\n .optional()\n .describe(\n \"The home screen's background: { color, layers } with each image positioned and sized, or one image pinned bottom-right. null or omitted: the bundled gradient.\",\n ),\n })\n .describe(\"The home screen (the generic chrome's landing page).\");\n\n// ---------------------------------------------------------------------------\n// app, ai, packages\n// ---------------------------------------------------------------------------\n\nexport const connectAppSchema = z\n .strictObject({\n logLevel: z.enum([\"debug\", \"info\", \"warn\", \"error\"]).optional().meta({\n description:\n \"Log level applied by Connect's logger at boot. Affects browser-side output only.\",\n default: \"info\",\n }),\n basePath: z.string().optional().meta({\n description:\n \"Base path Connect is mounted under (e.g. '/connect' for subpath deploys). Normalised at runtime to start and end with '/'. Defaults to the build-time BASE_URL.\",\n default: \"/\",\n }),\n offline: z.boolean().optional().meta({\n description:\n \"When true (default), the build emits a precaching service worker so Connect's app shell works offline, and the SPA registers it at boot. Set false to opt this deployment out: no service worker is built, the SPA skips registration, and any previously-installed worker is unregistered.\",\n default: true,\n }),\n studioMode: z.boolean().optional().meta({\n description:\n \"Studio mode. Enables builder-only capabilities: Connect loads the vetra package and exposes DocumentModel (and vetra spec types) as creatable documents. Forced on by `ph vetra` / `ph connect studio`; false by default.\",\n default: false,\n }),\n workflowsEnabled: z\n .boolean()\n .optional()\n .describe(\n \"Powerhouse workflows in Connect. When true the tab loads the @powerhousedao/workflow package (workflow + connection documents, their editors and Workflow Studio) and the reactor worker registers its document models. Falls back to the top-level `workflows.enabled`; set it to override that for Connect. Independent of studioMode. False when neither is set.\",\n ),\n })\n .describe(\"Top-level Connect application behaviour.\");\n\nexport const connectAiSchema = z\n .strictObject({\n assistantEnabled: z.boolean().optional().meta({\n description:\n \"When true, Connect mounts the in-browser AI assistant (bottom-right chat FAB that talks to a user-configured OpenAI-compatible endpoint and acts on the reactor). Disabled by default.\",\n default: false,\n }),\n })\n .describe(\"AI assistant (chat) behaviour.\");\n\nexport const connectPackagesSchema = z\n .strictObject({\n externalEnabled: z.boolean().optional().meta({\n description:\n \"When false, Connect refuses to load any package that wasn't bundled at build time. Affirmative replacement for the legacy PH_CONNECT_EXTERNAL_PACKAGES_DISABLED env var.\",\n default: true,\n }),\n liveReload: z.boolean().optional().meta({\n description:\n \"When true, Connect subscribes to the static-mode `/__packages` SSE channel so live publishes flow into the running tab without a page reload. Only works under hosting that serves this channel (e.g. ph-clint static mode).\",\n default: false,\n }),\n })\n .describe(\n \"Runtime behaviour for the Connect package manager (separate from top-level `packages[]`, which lists which packages to load).\",\n );\n\n// ---------------------------------------------------------------------------\n// drives\n// ---------------------------------------------------------------------------\n\nconst EXPLORER_ICONS_DESCRIPTION =\n \"The drive explorer's icons (the generic plugin's); each null keeps the built-in icon.\";\n\n/** The drive explorer's icons: the generic chrome's, owned by the generic\n * plugin. Each `null` keeps the built-in icon. */\nexport const connectExplorerIconsSchema = z\n .strictObject({\n localDrive: optionalImageRef(\"Local drives without an icon of their own.\"),\n remoteDrive: optionalImageRef(\n \"Remote drives without an icon of their own.\",\n ),\n folder: optionalImageRef(\"Folders.\"),\n document: optionalImageRef(\n \"Documents whose type has no icon in `documents`.\",\n ),\n documents: z\n .record(z.string(), connectImageRefSchema)\n .nullable()\n .optional()\n .describe('Per document type, e.g. \"acme/invoice\".'),\n })\n .describe(EXPLORER_ICONS_DESCRIPTION);\n\nexport const connectDefaultDriveRemoteSchema = z.strictObject({\n url: z.string(),\n name: z.string().nullable().optional(),\n icon: z.string().nullable().optional(),\n});\n\nexport const connectDefaultDriveLocalSchema = z.strictObject({\n local: z\n .literal(true)\n .describe(\n \"Discriminator: this entry is a local drive created on first boot.\",\n ),\n id: z\n .string()\n .describe(\n \"Stable drive id. The drive is created with this id on first boot and is not re-created on later boots.\",\n ),\n name: z.string().nullable().optional(),\n icon: z.string().nullable().optional(),\n app: z\n .string()\n .optional()\n .describe(\"Drive app (preferred editor) to open on the drive.\"),\n});\n\nexport const connectDefaultDriveSchema = z.union([\n connectDefaultDriveRemoteSchema,\n connectDefaultDriveLocalSchema,\n]);\n\n/** `connect.drives.sections.{remote,local}`: three affirmative toggles. */\nexport const connectDriveSectionSchema = z\n .strictObject({\n enabled: z.boolean().optional().meta({\n description: \"When false, the section is hidden in the sidebar.\",\n default: true,\n }),\n allowAdd: z.boolean().optional().meta({\n description:\n \"When false, the section's 'add drive' affordance is hidden.\",\n default: true,\n }),\n allowDelete: z.boolean().optional().meta({\n description:\n \"When false, drives in this section cannot be deleted from the UI.\",\n default: true,\n }),\n })\n .describe(\n \"Visibility and add/delete affordances for a drive section in the sidebar.\",\n );\n\nexport const connectDriveSectionsSchema = z\n .strictObject({\n remote: connectDriveSectionSchema.optional(),\n local: connectDriveSectionSchema.optional(),\n })\n .describe(\n \"Per-section visibility and affordance toggles. `remote` covers what was historically split into 'public' + 'cloud'; `local` is browser-local drives.\",\n );\n\n/** Mirrors DRIVES_PRESERVE_STRATEGIES (../clis/constants.ts, which imports\n * node: modules, so it is not imported here); a test pins the two. */\nexport const connectDrivePreserveStrategySchema = z.enum([\n \"preserve-all\",\n \"preserve-by-url-and-detach\",\n]);\n\nexport const connectDrivesSchema = z\n .strictObject({\n allowAddDrive: z.boolean().optional().meta({\n description:\n \"When false, the SPA hides the 'add drive' affordance entirely (top-level). Per-section overrides live in `sections.{remote,local}.allowAdd`.\",\n default: true,\n }),\n defaultDrives: z.array(connectDefaultDriveSchema).optional().meta({\n description:\n \"Drives the SPA auto-connects to on first load. Each entry is either a remote drive (a URL, with optional name/icon overrides) or a local drive (created locally on first boot, with a stable id and optional name/icon/app).\",\n default: [],\n }),\n preserveStrategy: connectDrivePreserveStrategySchema\n .optional()\n .describe(\n \"Strategy applied when defaultDrives change between deploys. 'preserve-all' keeps user-added drives untouched; 'preserve-by-url-and-detach' detaches removed default drives. No schema default — opt-in only.\",\n ),\n sections: connectDriveSectionsSchema.optional(),\n icons: connectExplorerIconsSchema\n .nullable()\n .optional()\n .describe(EXPLORER_ICONS_DESCRIPTION),\n })\n .describe(\"Default-drive and add-drive UI behaviour.\");\n\n// ---------------------------------------------------------------------------\n// renown, sentry, openPanel\n// ---------------------------------------------------------------------------\n\nexport const connectRenownRainbowAdapterSchema = z\n .strictObject({\n walletConnectProjectId: z\n .string()\n .optional()\n .describe(\n \"WalletConnect project id; required for this adapter to function.\",\n ),\n infuraProjectId: z\n .string()\n .optional()\n .describe(\"Optional Infura project id used to build RPC transports.\"),\n })\n .describe(\"wagmi + RainbowKit external-wallet adapter config.\");\n\nexport const connectRenownPrivyAdapterSchema = z\n .strictObject({\n appId: z\n .string()\n .optional()\n .describe(\"Privy application id; required for this adapter to function.\"),\n clientId: z.string().optional().describe(\"Optional Privy client id.\"),\n methods: z\n .array(z.string())\n .optional()\n .describe(\n \"Login methods this adapter offers; default per adapter when omitted.\",\n ),\n })\n .describe(\"Privy embedded/social adapter config.\");\n\nexport const connectRenownAdaptersSchema = z\n .strictObject({\n rainbow: connectRenownRainbowAdapterSchema.optional(),\n privy: connectRenownPrivyAdapterSchema.optional(),\n })\n .describe(\n \"Per-adapter wallet config for in-page auth. Presence of an adapter key enables it; omit or leave empty for redirect-only behaviour.\",\n );\n\nexport const connectRenownSchema = z\n .strictObject({\n url: z.string().optional().meta({\n description: \"Renown auth service URL.\",\n default: \"https://www.renown.id\",\n }),\n networkId: z.string().optional().meta({\n description: \"CAIP-2 network namespace (e.g. 'eip155').\",\n default: \"eip155\",\n }),\n chainId: z.number().optional().meta({\n description: \"CAIP-2 chain reference within the network namespace.\",\n default: 1,\n }),\n namespace: z\n .string()\n .optional()\n .describe(\n \"Renown localStorage namespace; share it across Connects to share login.\",\n ),\n switchboardUrl: z\n .string()\n .optional()\n .describe(\n \"Switchboard GraphQL URL. When set, Connect enables in-page (no-redirect) Renown sign-in; otherwise it falls back to the redirect flow via `url`.\",\n ),\n adapters: connectRenownAdaptersSchema.optional(),\n })\n .describe(\"Renown identity / authentication coordinates.\");\n\nexport const connectSentrySchema = z\n .strictObject({\n dsn: z.string().nullable().optional().meta({\n description:\n \"Sentry DSN URL. `null` disables Sentry entirely; the SPA never loads the Sentry SDK chunk.\",\n default: null,\n }),\n env: z.string().optional().meta({\n description:\n \"Sentry environment label, surfaced as the `environment` tag on every event.\",\n default: \"dev\",\n }),\n tracing: z.boolean().optional().meta({\n description: \"Enable Sentry performance tracing.\",\n default: false,\n }),\n })\n .describe(\n \"Sentry error-tracking coordinates. Set `dsn` to enable Sentry; leave `dsn` null to disable. The Sentry release tag stays build-time (stamped via Vite's `define` from WORKSPACE_VERSION) so it always matches the sourcemaps uploaded by CI.\",\n );\n\nexport const connectOpenPanelSchema = z\n .strictObject({\n clientId: z.string().optional().meta({\n description:\n \"OpenPanel client id. Empty string disables OpenPanel entirely.\",\n default: \"\",\n }),\n apiUrl: z\n .string()\n .optional()\n .describe(\n \"OpenPanel API URL for self-hosted instances (e.g. 'https://openpanel.example/api'). Omit to use OpenPanel's hosted API.\",\n ),\n trackUiEvents: z.boolean().optional().meta({\n description: \"Track UI events.\",\n default: true,\n }),\n trackOperations: z.boolean().optional().meta({\n description: \"Track document operations.\",\n default: true,\n }),\n })\n .describe(\n \"OpenPanel product analytics. Set `clientId` to enable; an empty `clientId` disables it. Events are only sent after the user accepts analytics cookies. Takes precedence over the build-time PH_CONNECT_OPENPANEL_* env vars.\",\n );\n\n// ---------------------------------------------------------------------------\n// instance, reactor\n// ---------------------------------------------------------------------------\n\n/** Which reactor client Connect runs (see PHReactorClientMode). */\nexport const connectReactorClientModeSchema = z.enum([\n \"in-process\",\n \"worker\",\n \"remote\",\n \"router\",\n]);\n\nexport const connectInstanceSchema = z\n .strictObject({\n namespace: z.string().nullable().meta({\n description:\n \"Explicit storage/SharedWorker namespace for this instance. `null` derives it from the base path (and, later, the configured endpoint), so root deployments stay byte-identical.\",\n default: null,\n }),\n reactorWorker: z.boolean().meta({\n description:\n \"Host the reactor in a shared worker instead of on the main thread. Off by default; the main-thread reactor stays the proven path until cutover is verified. Packaged deployments load the worker from the prebuilt bundle `ph connect build` emits under __reactor_worker__/ (the dev server builds it lazily at the same path); when that bundle is absent the feature reports itself unavailable instead of starting a worker that cannot load.\",\n default: false,\n }),\n multiReactor: z.boolean().optional().meta({\n description:\n \"Opt-in multi-reactor routing. When on, Connect routes through the in-browser reactor plus remote backends instead of the single in-browser reactor. Off by default; the single-reactor path is unchanged.\",\n default: false,\n }),\n })\n .describe(\n \"Per-instance identity. Lets one origin host multiple isolated Connect instances, each with its own storage + SharedWorker namespace.\",\n );\n\nexport const connectReactorFeatureFlagsSchema = z\n .strictObject({\n documentDecisions: z.boolean().optional().meta({\n description:\n \"Decide writes from the document stream rather than the document meta cache, so a backdated deletion denies the operations that sort after it.\",\n default: false,\n }),\n authEnforcement: z.boolean().optional().meta({\n description:\n \"Enforce the auth scope's policy at admission, replay, and read. Requires documentDecisions.\",\n default: false,\n }),\n authGroups: z.boolean().optional().meta({\n description:\n \"Let `{ group }` principals match against the rosters of the group documents a policy names. Requires authEnforcement.\",\n default: false,\n }),\n authConditions: z.boolean().optional().meta({\n description:\n \"Evaluate `where` and `match` conditions on grants. Requires authGroups. Do not enable on a fleet `preflight:auth` reports as crossing a reducer version.\",\n default: false,\n }),\n })\n .describe(\n \"Enforcement flags. Each implies its predecessors, and the reactor refuses to boot on a set that names a later flag without an earlier one. These are consensus settings: a Connect syncing with a fleet must carry the same flags the fleet does, or the two reach different replay outcomes for the same history and diverge.\",\n );\n\nexport const connectReactorSchema = z\n .strictObject({\n featureFlags: connectReactorFeatureFlagsSchema.optional(),\n createSignaturePolicy: z.enum([\"legacy\", \"v2-required\"]).optional().meta({\n description:\n \"What new documents are created as. `v2-required` documents accept only v2 action signatures and take content-addressed ids; set `legacy` while any peer Connect syncs with predates them. Existing documents keep their policy.\",\n default: \"v2-required\",\n }),\n unsupportedStoredDocuments: z\n .enum([\"refuse\", \"read-only\"])\n .optional()\n .meta({\n description:\n \"What the reactor does when this browser's store holds documents at protocol versions this build does not run. `refuse` fails the boot and names the versions; `read-only` boots and keeps those documents read-only.\",\n default: \"refuse\",\n }),\n })\n .describe(\n \"Settings for the reactor Connect runs in the browser, on the main thread or in the shared worker alike.\",\n );\n\n// ---------------------------------------------------------------------------\n// pwa\n// ---------------------------------------------------------------------------\n\n/** A runtime-caching / denylist URL match. A string is handed to Workbox\n * verbatim; `{ source, flags }` is rebuilt into a RegExp at build time. */\nexport const connectPwaUrlPatternSchema = z\n .union([\n z.string(),\n z\n .strictObject({\n source: z.string().describe(\"RegExp source.\"),\n flags: z.string().optional().describe(\"RegExp flags (e.g. 'i').\"),\n })\n // Not expressible in JSON Schema, so only the zod path checks it.\n .refine(\n (p) => {\n try {\n new RegExp(p.source, p.flags);\n return true;\n } catch {\n return false;\n }\n },\n { message: \"source/flags do not compile to a valid RegExp\" },\n ),\n ])\n .describe(\n \"URL match. A string is matched verbatim by Workbox; { source, flags } is rebuilt into a RegExp at build time.\",\n );\n\nexport const connectPwaCacheStrategySchema = z.enum([\n \"CacheFirst\",\n \"CacheOnly\",\n \"NetworkFirst\",\n \"NetworkOnly\",\n \"StaleWhileRevalidate\",\n]);\n\n/** Serialisable subset of a Workbox `RuntimeCaching` rule. */\nexport const connectPwaRuntimeCachingSchema = z.strictObject({\n urlPattern: connectPwaUrlPatternSchema,\n handler: connectPwaCacheStrategySchema,\n method: z.enum([\"GET\", \"POST\", \"PUT\", \"DELETE\", \"HEAD\", \"PATCH\"]).optional(),\n options: z\n .strictObject({\n cacheName: z.string().optional(),\n networkTimeoutSeconds: z\n .number()\n .optional()\n .describe(\n \"Seconds a NetworkFirst rule waits for the network before falling back to the cache.\",\n ),\n expiration: z\n .strictObject({\n maxEntries: z.number().optional(),\n maxAgeSeconds: z.number().optional(),\n })\n .optional(),\n cacheableResponse: z\n .strictObject({\n statuses: z.array(z.number()).optional(),\n headers: z.record(z.string(), z.string()).optional(),\n })\n .optional(),\n })\n .optional(),\n});\n\nexport const connectPwaIconSchema = z.strictObject({\n src: z.string(),\n sizes: z.string().optional(),\n type: z.string().optional(),\n purpose: z.string().optional(),\n});\n\n/** A File Handling API entry. No `action`: every handler opens at Connect's\n * app root, because consuming launched files needs Connect's own code. */\nexport const connectPwaFileHandlerSchema = z.strictObject({\n accept: z\n .record(\n z.string(),\n z.array(z.string().regex(/^\\./, \"file extensions must start with '.'\")),\n )\n .describe(\n \"MIME type → file extensions. Each extension must start with '.'; browsers ignore entries without it.\",\n ),\n icons: z\n .array(connectPwaIconSchema)\n .optional()\n .describe(\"OS-level file-type icons.\"),\n launch_type: z.enum([\"single-client\", \"multiple-clients\"]).optional(),\n});\n\n/** Web-app-manifest fields a package or project may override. */\nexport const connectPwaManifestSchema = z\n .strictObject({\n name: z.string().optional(),\n short_name: z.string().optional(),\n description: z.string().optional(),\n theme_color: z.string().optional(),\n background_color: z.string().optional(),\n display: z\n .enum([\"fullscreen\", \"standalone\", \"minimal-ui\", \"browser\"])\n .optional(),\n start_url: z.string().optional(),\n scope: z.string().optional(),\n icons: z\n .array(connectPwaIconSchema)\n .optional()\n .describe(\n \"Icons appended to the built-in set and de-duplicated by (src, sizes, purpose).\",\n ),\n file_handlers: z\n .array(connectPwaFileHandlerSchema)\n .optional()\n .describe(\n \"File associations appended after Connect's built-in .phd/.phdm handler and de-duplicated on the whole entry. Entries only declare accepted types; there is no action field, because opening the files requires Connect's own runtime handling, so every handler opens at the app root.\",\n ),\n launch_handler: z\n .strictObject({\n client_mode: z.enum([\n \"auto\",\n \"focus-existing\",\n \"navigate-existing\",\n \"navigate-new\",\n ]),\n })\n .optional()\n .describe(\n \"How the OS launches the app for handled files/links. Connect defaults to focus-existing.\",\n ),\n })\n .describe(\"Web-app-manifest field overrides.\");\n\nconst pwaShape = {\n globPatterns: z\n .array(z.string())\n .optional()\n .describe(\"Extra Workbox precache globs, unioned with the built-ins.\"),\n globIgnores: z\n .array(z.string())\n .optional()\n .describe(\"Extra precache ignore globs, unioned with the built-ins.\"),\n maximumFileSizeToCacheInBytes: z\n .number()\n .optional()\n .describe(\n \"Raise the precache file-size ceiling. The max across all contributors wins, so no contributor can shrink another's limit.\",\n ),\n runtimeCaching: z\n .array(connectPwaRuntimeCachingSchema)\n .optional()\n .describe(\n \"Runtime-caching rules appended after the built-in rules. Workbox is first-match-wins, so these cannot override a built-in rule matching the same URL.\",\n ),\n navigateFallbackDenylist: z\n .array(connectPwaUrlPatternSchema)\n .optional()\n .describe(\n \"Extra SPA navigate-fallback denylist patterns, unioned with the built-ins.\",\n ),\n};\n\nconst PWA_DESCRIPTION =\n \"Progressive-web-app / service-worker overrides, layered on Connect's built-in PWA defaults at build time. Scalar fields deep-merge (this layer wins); the array members (icons, file_handlers, globs, runtimeCaching and denylist patterns) are additive; maximumFileSizeToCacheInBytes takes the max across contributors. (categories is not set here — it is derived from the manifest's category field.) Only applied when connect.app.offline is true.\";\n\n/** `connect.pwa` as authored. */\nexport const connectPwaSchema = z\n .strictObject({ manifest: connectPwaManifestSchema.optional(), ...pwaShape })\n .describe(PWA_DESCRIPTION);\n\n// ---------------------------------------------------------------------------\n// The connect block\n// ---------------------------------------------------------------------------\n\n/**\n * The `connect` block as authored: powerhouse.config.json's `connect`, the\n * connect host's `config`, and `ph connect config` writes. Every field is\n * optional; omit the section entirely for default behaviour.\n */\nexport const connectConfigSchema = z\n .strictObject({\n branding: connectBrandingSchema.optional(),\n home: connectHomeSchema.optional(),\n app: connectAppSchema.optional(),\n ai: connectAiSchema.optional(),\n packages: connectPackagesSchema.optional(),\n drives: connectDrivesSchema.optional(),\n renown: connectRenownSchema.optional(),\n sentry: connectSentrySchema.optional(),\n openPanel: connectOpenPanelSchema.optional(),\n instance: connectInstanceSchema.optional(),\n reactor: connectReactorSchema.optional(),\n pwa: connectPwaSchema.optional(),\n })\n .describe(\n \"Connect-specific UI customisations. All fields optional; omit the section entirely for default behaviour.\",\n );\n\nexport type ConnectConfig = z.output<typeof connectConfigSchema>;\nexport type ConnectConfigInput = z.input<typeof connectConfigSchema>;\n\n// ---------------------------------------------------------------------------\n// The declared form: a connect host's `config`\n// ---------------------------------------------------------------------------\n\n/** `schema` carrying `source`'s description and meta (zod keeps them per\n * instance, so `.extend()` and a rebuilt field drop them). */\nfunction withMetaOf<S extends z.ZodType>(schema: S, source: z.ZodType): S {\n const meta = source.meta();\n return meta ? schema.meta(meta) : schema;\n}\n\n/**\n * The `connect` block with its token-able fields wrapped by `field`: the\n * fields that name another host's outputs, which a connect host's `config`\n * may write as output tokens (`ph run` resolves them before the verb).\n *\n * - `drives.defaultDrives[].url` (a remote entry): e.g. a switchboard's\n * `drives.<slug>.url` output.\n * - `renown.switchboardUrl`: a switchboard's `endpoints.graphql` output.\n *\n * The connect runner builds it with host-core's `s.tokenable` (declared:\n * tokens in; resolved: plain values only). The output type is\n * {@link ConnectConfig} either way. powerhouse.config.json's `connect` block,\n * the served config and their JSON Schemas stay {@link connectConfigSchema},\n * which takes no tokens.\n */\nexport function connectConfigSchemaWith(field: TokenField) {\n const remoteDrive = connectDefaultDriveRemoteSchema.extend({\n url: field(z.string()),\n });\n const shape = connectDrivesSchema.shape;\n const drives = withMetaOf(\n connectDrivesSchema.extend({\n defaultDrives: withMetaOf(\n z\n .array(z.union([remoteDrive, connectDefaultDriveLocalSchema]))\n .optional(),\n shape.defaultDrives,\n ),\n }),\n connectDrivesSchema,\n );\n const renown = withMetaOf(\n connectRenownSchema.extend({\n switchboardUrl: withMetaOf(\n field(z.string()).optional(),\n connectRenownSchema.shape.switchboardUrl,\n ),\n }),\n connectRenownSchema,\n );\n return withMetaOf(\n connectConfigSchema.extend({\n drives: drives.optional(),\n renown: renown.optional(),\n }),\n connectConfigSchema,\n );\n}\n\n/** The declared `connect` block: {@link connectConfigSchemaWith} with every\n * token accepted in its token-able fields. */\nexport const declaredConnectConfigSchema =\n /* @__PURE__ */ connectConfigSchemaWith(tokenable);\n\n/** What a connect host's `config` may hold (tokens in token-able fields). */\nexport type DeclaredConnectConfigInput = z.input<\n typeof declaredConnectConfigSchema\n>;\n\n// ---------------------------------------------------------------------------\n// The served runtime config: authored fields plus what is derived or\n// projected. These fields are never authored, so the authored schema (and\n// the JSON Schema fragment emitted from it) rejects them.\n// ---------------------------------------------------------------------------\n\n/** One entry of the host.js composition, projected into the served config as\n * data (module specifier + validated config). */\nexport const connectCompositionEntrySchema = z.strictObject({\n module: z.string(),\n config: z.record(z.string(), z.unknown()).optional(),\n});\n\n/** `instance` plus `reactorClient`, derived from the host's reactor backends. */\nexport const connectRuntimeInstanceSchema = connectInstanceSchema.extend({\n reactorClient: connectReactorClientModeSchema.optional(),\n});\n\n/** The manifest plus `categories`, derived from contributors' `category`. */\nexport const connectRuntimePwaManifestSchema = connectPwaManifestSchema.extend({\n categories: z.array(z.string()).optional(),\n});\n\nexport const connectRuntimePwaSchema = connectPwaSchema.extend({\n manifest: connectRuntimePwaManifestSchema.optional(),\n});\n\n/** The served `connect` block (runtime powerhouse.config.json). */\nexport const connectRuntimeConfigSchema = connectConfigSchema.extend({\n composition: z.array(connectCompositionEntrySchema).optional(),\n instance: connectRuntimeInstanceSchema.optional(),\n pwa: connectRuntimePwaSchema.optional(),\n});\n\nexport type ConnectRuntimeConfig = z.output<typeof connectRuntimeConfigSchema>;\n"],"mappings":";;;AAeA,MAAM,YACJ;AACF,MAAM,uBACJ;;;AAIF,MAAa,wBAAwB,EAAE,OAAO,CAAC,CA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EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,EAC3C,CAAC;AAED,MAAa,0BAA0B,iBAAiB,OAAO,EAC7D,UAAU,gCAAgC,SAAS,EACrD,CAAC;;AAGD,MAAa,6BAA6B,oBAAoB,OAAO;CACnE,aAAa,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS;CAC7D,UAAU,6BAA6B,SAAS;CAChD,KAAK,wBAAwB,SAAS;AACxC,CAAC"}
|
package/dist/connect/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as connectPwaCacheStrategySchema, B as connectRenownAdaptersSchema, C as connectHomeSchema, D as connectLoaderSchema, E as connectLengthSchema, F as connectPwaSchema, G as connectRuntimeInstanceSchema, H as connectRenownRainbowAdapterSchema, I as connectPwaUrlPatternSchema, J as connectSchemedColorSchema, K as connectRuntimePwaManifestSchema, L as connectReactorClientModeSchema, M as connectPwaIconSchema, N as connectPwaManifestSchema, O as connectOpenPanelSchema, P as connectPwaRuntimeCachingSchema, Q as declaredConnectConfigSchema, R as connectReactorFeatureFlagsSchema, S as connectExplorerIconsSchema, T as connectInstanceSchema, U as connectRenownSchema, V as connectRenownPrivyAdapterSchema, W as connectRuntimeConfigSchema, X as connectSentrySchema, Y as connectSchemedImageSchema, _ as connectDrivePreserveStrategySchema, a as connectAiSchema, b as connectDrivesSchema, c as connectBackgroundLayersSchema, d as connectCompositionEntrySchema, f as connectConfigSchema, g as connectDefaultDriveSchema, h as connectDefaultDriveRemoteSchema, i as DeclaredConnectConfigInput, j as connectPwaFileHandlerSchema, k as connectPackagesSchema, l as connectBackgroundSchema, m as connectDefaultDriveLocalSchema, n as ConnectConfigInput, o as connectAppSchema, p as connectConfigSchemaWith, q as connectRuntimePwaSchema, r as ConnectRuntimeConfig, s as connectBackgroundLayerSchema, t as ConnectConfig, u as connectBrandingSchema, v as connectDriveSectionSchema, w as connectImageRefSchema, x as connectEdgesSchema, y as connectDriveSectionsSchema, z as connectReactorSchema } from "../connect-config-schema-1-O1CQ4v.js";
|
|
2
|
-
import { A as PHConnectPwaUrlPattern, D as PHConnectPwaIcon, E as PHConnectPwaFileHandler, F as PHConnectRuntimeConfig, G as PHSchemedColor, K as PHSchemedImage, O as PHConnectPwaManifest, R as PHImageRef, T as PHConnectPwaCacheStrategy, X as PowerhouseConfig, Z as PowerhousePackage, a as PHBackground, k as PHConnectPwaRuntimeCaching, o as PHBackgroundLayer, s as PHBackgroundLayers, w as PHConnectPwa, z as PHLength } from "../types-
|
|
2
|
+
import { A as PHConnectPwaUrlPattern, D as PHConnectPwaIcon, E as PHConnectPwaFileHandler, F as PHConnectRuntimeConfig, G as PHSchemedColor, K as PHSchemedImage, O as PHConnectPwaManifest, R as PHImageRef, T as PHConnectPwaCacheStrategy, X as PowerhouseConfig, Z as PowerhousePackage, a as PHBackground, k as PHConnectPwaRuntimeCaching, o as PHBackgroundLayer, s as PHBackgroundLayers, w as PHConnectPwa, z as PHLength } from "../types-BMvEggLM.js";
|
|
3
3
|
import { ConfigAdapter, ConfigLoader, ConfigShape, DeepPartial, deepMerge, resolveSourceConnect, workflowsSettingConflict } from "./config-loader.js";
|
|
4
4
|
import { JsonConfigAdapter, JsonConfigAdapterOptions } from "./json-adapter.js";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Ai as SaveToFileHandle, At as CreateDocument,
|
|
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 { Ai as SaveToFileHandle, At as CreateDocument, Hn as IsStateOfType, Nt as CreateState, Um as PHBaseState, Vn as IsDocumentOfType, Wn as LoadFromInput, Xn as Maybe, bt as AssertIsDocumentOfType, tn as DocumentModelGlobalState, ui as Reducer, xt as AssertIsStateOfType } from "../types-BMvEggLM.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-DiSgFXjt.js";
|
|
3
|
+
import { a as GenerateNodesCopyIdGenerator, i as DriveInput, o as GenerateNodesCopySrc, s as SharingType } from "../index-DYRUjLwF.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 { Au as
|
|
1
|
+
import { Au as InvalidActionInputError, Cu as AuthAlreadyInitializedError, Du as FileSystemError, Eu as DowngradeNotSupportedError, Mu as InvalidAuthVersionError, Nu as UnsupportedDocumentModelVersionError, Ou as GrantNotFoundError, Su as AuthActionNotAllowedError, Tu as AuthPolicyNotPreservedError, ju as InvalidActionInputZodError, ku as HashMismatchError, wu as AuthInitializerNotCreatorError } from "../types-BMvEggLM.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 { $a as UpdateRelationshipActionInput, $c as documentModelHeaderReducer, $d as SetGrantActionInput, $f as deleteModule, $i as SetModuleDescriptionInput, $l as baseSaveToFileHandle, $m as defaultAuthState, $n as MoveOperationAction, $p as attachBranch, $r as PhAiToolAnnotations, $s as OperationErrorSchema, $t as DocumentModelDocument, $u as buildOperationSignatureMessage, Aa as Set_Name, Ac as SetOperationErrorCodeInputSchema, Ad as grantProblem, Af as canonicalJson, Ah as AppActionSigner, Ai as SaveToFileHandle, Al as coversLocal, Am as skipHeaderOperations, An as GetDocumentOptions, Ap as setOperationErrorCode, Ar as MutationSetModuleNameArgs, As as AddChangeLogItemInputSchema, At as CreateDocument, Au as InvalidActionInputZodError, Ba as SkipHeaderOperations, Bc as SetPreferredEditorActionSchema, Bd as AuthVerb, Bf as actionSigner, Bi as SetAuthorWebsiteAction, Bl as selectProtocolVersions, Bm as Operand, Bn as InputMaybe, Bp as setStateSchema, Br as MutationSetOperationTemplateArgs, Bs as DeleteChangeLogItemInputSchema, Bt as DeleteModuleAction, Bu as DocumentModelSchema, 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 DocumentSpecification, Cp as setModelExtension, Cr as MutationSetAuthorWebsiteArgs, Cs as validateInitialState, Ct as CodeExample, Cu as AuthInitializerNotCreatorError, Da as SetPreferredEditorOperation, Dc as SetNameActionInputSchema, Dd as evaluateCondition, Df as actionPreimageV2, Dh as undoOperation, Di as ReplayDocumentOptions, Dl as PeerManifest, Dm as replayDocument, Dn as EditorProps, Dp as setModuleName, Dr as MutationSetModelIdArgs, Ds as validateOperationName, Dt as CopyChildDocumentSignal, Du as GrantNotFoundError, Ea as SetPreferredEditorActionInput, Ec as SetModuleNameInputSchema, Ed as assertValidInitialGrants, Ef as DOCUMENT_SCOPE_ACTION_TYPES, Eh as setPreferredEditorOperation, Ei as ReorderStateExamplesInput, El as PeerCapabilityFlags, Em as removeExistingOperations, En as EditorModule, Ep as setModuleDescription, Er as MutationSetModelExtensionArgs, Es as validateModules, Et as CopyChildDocumentInput, Eu as FileSystemError, Fa as SignalResults, Fc as SetOperationReducerInputSchema, Fd as AuthDecision, Ff as v2TupleProblem, Fh as deserializeSignature, Fi as SchemaSetPreferredEditorAction, Fl as localSupports, Fm as withSignaturePolicy, Fn as IOperation, Fp as setOperationReducer, Fr as MutationSetOperationErrorNameArgs, Fs as AddStateExampleInputSchema, Ft as DeleteChangeLogItemInput, Fu as groupMembershipActionTypes, Ga as UndoAction, Gc as UndoActionInputSchema, Gd as MAX_SUPPORTED_AUTH_VERSION, Gf as addOperationError, Gi as SetModelDescriptionInput, Gl as createVerificationSigner, Gm as Principal, Gn as MakeEmpty, Gp as verifyOperationSignature, Gr as MutationUpdateStateExampleArgs, Gs as DeleteStateExampleInputSchema, Gt as DeleteOperationExampleAction, Gu as AUTH_DENIED_BY_GRANT_REASON, Ha as StateReducer, Hc as Set_NameSchema, Hd as InitializeAuthAction, Hf as addChangeLogItem, Hi as SetInitialStateAction, Hl as createPresignedHeader, Hm as PHBaseState, Hn as IsStateOfType, Hp as updateChangeLogItem, Hr as MutationUndoArgs, Hs as DeleteOperationErrorInputSchema, Ht as DeleteOperationAction, Hu as assertIsDocumentModelState, Ia as SignalType, Ic as SetOperationSchemaInputSchema, Id as AuthEvaluation, If as Action, Ih as serializeSignature, Ii as SchemaUndoAction, Il as manifestRevision, Im as AuthGroups, In as ISignal, Ip as setOperationSchema, Ir as MutationSetOperationErrorTemplateArgs, Is as AuthorSchema, It as DeleteChildDocumentInput, Iu as BaseDocumentHeaderSchema, Ja as UpdateChangeLogItemAction, Jc as UpdateChangeLogItemInputSchema, Jd as MoveGrantActionInputSchema, Jf as baseActions, Ji as SetModelIdAction, Jl as validateHeader, Jm as createBaseState, Jn as Manifest, Jp as PHDocument, Jr as OperationIndex, Js as DocumentModelInputSchema, Jt as DeleteStateExampleAction, Ju as DOCUMENT_DELETED_REASON, Ka as UndoActionInput, Kc as UndoActionSchema, Kd as MoveGrantAction, Kf as addOperationExample, Ki as SetModelExtensionAction, Kl as hasDerivedDocumentId, Km as backfillAuthState, Kn as MakeMaybe, Kp as IntegrityIssueSubType, Kr as NOOPAction, Ks as DocumentActionSchema, Kt as DeleteOperationExampleInput, Ku as AUTH_NO_GRANT_REASON, La as SignatureVerificationHandler, Lc as SetOperationScopeInputSchema, Ld as AuthRefusal, Lf as ActionContext, Li as ScopeState, Ll as mergePeerCapabilities, Lm as Capability, Ln as ISignalResult, Lp as setOperationScope, Lr as MutationSetOperationNameArgs, Ls as CodeExampleSchema, Lt as DeleteChildDocumentSignal, Lu as BaseDocumentStateSchema, Ma as Signal, Mc as SetOperationErrorNameInputSchema, Md as referencedGroupIds, Mf as isV2ActionHash, Mh as PHDocumentSignatureInfo, Mi as SchemaNOOPAction, Ml as isOlderManifest, Mm as sortOperations, Mn as IAction, Mp as setOperationErrorName, Mr as MutationSetOperationDescriptionArgs, Ms as AddOperationErrorInputSchema, Mt as CreateDocumentActionInput, Mu as UnsupportedDocumentModelVersionError, Na as SignalDispatch, Nc as SetOperationErrorTemplateInputSchema, Nd as AUTH_ACTION_TYPES, Nf as signActionV2, Nh as Signature, Ni as SchemaRedoAction, Nl as legacySupports, Nm as split, Nn as ID, Np as setOperationErrorTemplate, Nr as MutationSetOperationErrorCodeArgs, Ns as AddOperationExampleInputSchema, Nt as CreateState, Nu as documentModelDocumentType, Oa as SetStateSchemaAction, Oc as SetNameActionSchema, Od as evaluateGrantStack, Of as actionSignerIdentity, Oh as undoOperationV2, Oi as RevisionsFilter, Ol as ProtocolCapability, Om as reshuffleByTimestamp, On as Exact, Op as setName, Or as MutationSetModelNameArgs, Os as validateOperations, Ot as CreateChildDocumentInput, Ou as HashMismatchError, Pa as SignalResult, Pc as SetOperationNameInputSchema, Pd as AuthAction, Pf as targetDocumentId, Ph as UserActionSigner, Pi as SchemaSetNameAction, Pl as localPeerManifest, Pm as updateHeaderRevision, Pn as IDocument, Pp as setOperationName, Pr as MutationSetOperationErrorDescriptionArgs, Ps as AddOperationInputSchema, Pt as DeleteChangeLogItemAction, Pu as groupDocumentType, Qa as UpdateRelationshipAction, Qc as isDefinedNonNullAny, Qd as SetGrantAction, Qf as deleteChangeLogItem, Qi as SetModuleDescriptionAction, Ql as baseLoadFromInputVersioned, Qm as createState, Qn as ModuleSpecification, Qp as appendWithoutApplying, Qr as PartialState, Qs as MoveOperationInputSchema, Qt as DocumentModelAction, Qu as base64UrlToBytes, Ra as SigningParameters, Rc as SetOperationTemplateInputSchema, Rd as AuthRequest, Rf as actionContext, Ri as SetAuthorNameAction, Rl as peerSupports, Rm as Condition, Rn as ISigner, Rp as setOperationTemplate, Rr as MutationSetOperationReducerArgs, Rs as ConfigEntrySchema, Rt as DeleteDocumentAction, Ru as DocumentModelHeaderSchema, 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 DocumentOperationsIgnoreMap, Sp as setModelDescription, Sr as MutationSetAuthorNameArgs, Ss as isValidOperationNameFormat, St as Author, Su as AuthAlreadyInitializedError, Ta as SetPreferredEditorAction, Tc as SetModuleDescriptionInputSchema, Td as assertValidGrantUpsert, Tf as CanonicalJsonError, Th as setNameOperation, Ti as ReorderStateExamplesAction, Tl as PeerCapability, Tm as readOnly, Tn as EditorDispatch, Tp as setModelName, Tr as MutationSetModelDescriptionArgs, Ts as validateModuleOperation, Tt as ConfigEntryType, Tu as DowngradeNotSupportedError, Ua as SubgraphModule, Uc as Set_PreferredEditorSchema, Ud as InitializeAuthActionInput, Uf as addModule, Ui as SetInitialStateInput, Ul as createSignedHeader, Um as PHDocumentState, Un as LoadFromFile, Up as updateOperationExample, Ur as MutationUpdateChangeLogItemInputArgs, Us as DeleteOperationExampleInputSchema, Ut as DeleteOperationErrorAction, Uu as isDocumentModelDocument, Va as State, Vc as SetStateSchemaInputSchema, Vd as ConditionContext, Vf as actions, Vi as SetAuthorWebsiteInput, Vl as createCopyHeader, Vm as PHAuthState, Vn as IsDocumentOfType, Vp as undo, Vr as MutationSetStateSchemaArgs, Vs as DeleteModuleInputSchema, Vt as DeleteModuleInput, Vu as assertIsDocumentModelDocument, Wa as Undo, Wc as StateSchema, Wd as InitializeAuthActionInputSchema, Wf as addOperation, Wi as SetModelDescriptionAction, Wl as createSignedHeaderForSigner, Wm as PHGroupState, Wn as LoadFromInput, Wp as updateStateExample, Wr as MutationUpdateOperationExampleArgs, Ws as DeleteOperationInputSchema, Wt as DeleteOperationErrorInput, Wu as isDocumentModelState, Xa as UpdateOperationExampleAction, Xc as UpdateStateExampleInputSchema, Xd as RemoveGrantActionInput, Xf as buildSignedAction, Xi as SetModelNameAction, Xl as BulkArchiveEntry, Xm as createGlobalState, Xn as Maybe, Xp as PHDocumentMeta, Xr as OperationsByScope, Xs as ManifestSchema, Xt as DocumentAction, Xu as ab2hex, Ya as UpdateChangeLogItemInput, Yc as UpdateOperationExampleInputSchema, Yd as RemoveGrantAction, Yf as buildOperationSignature, Yi as SetModelIdInput, Yl as verify, Ym as createDocumentState, Yn as MappedOperation, Yp as PHDocumentHeader, Yr as OperationSpecification, Ys as DocumentSpecificationSchema, Yt as DeleteStateExampleInput, Yu as isDenied, Za as UpdateOperationExampleInput, Zc as definedNonNullAnySchema, Zd as RemoveGrantActionInputSchema, Zf as createAction, Zi as SetModelNameInput, Zl as baseLoadFromInput, Zm as createLocalState, Zn as MinimalBackupData, Zp as addUndo, Zr as PartialRecord, Zs as ModuleSchema, Zt as DocumentDispatch, Zu as base58Decode, _a as SetOperationReducerAction, _c as ScopeStateSchema, _d as GroupPrincipalNotAllowedError, _f as setGrant, _h as v2RequiredProtocolVersions, _i as ReorderModuleOperationsAction, _l as purgeMarkerOperation, _m as mapSkippedOperations, _n as DocumentModelStateAction, _p as reorderOperationExamples, _r as MutationReorderModuleOperationsArgs, _s as findOperationErrorOrThrow, _t as AddRelationshipActionInput, _u as applyDeleteDocumentAction, aa as SetOperationDescriptionAction, ac as PowerhouseModulesSchema, ad as HASH_ALGORITHM_SHA1, af as applySetGrantAction, ah as DEFAULT_SIGNATURE_POLICY, ai as PurgeDocumentActionInput, al as documentModelStateReducer, am as filterDocumentOperationsResultingState, an as DocumentModelLib, ao as ValidationError, ap as moveOperation, ar as MutationAddOperationErrorArgs, at as Actions, au as getFileBrowser, ba as SetOperationSchemaInput, bc as SetInitialStateInputSchema, bd as MAX_CAPABILITY_OPERATIONS, bf as TransportSigner, bh as OperationContext, bi as ReorderModulesInput, bl as FeatureCapability, bm as nextSkipNumber, bn as DocumentModelVersioningAction, bp as setAuthorWebsite, br as MutationReorderOperationExamplesArgs, bs as getAllOperationNames, bt as AssertIsDocumentOfType, bu as withProtocolVersions, ca as SetOperationErrorCodeInput, cc as RedoActionInputSchema, cd as HASH_ENCODING_BASE64, cf as decide, ch as SIGNATURE_PROTOCOL, ci as RedoAction, cl as baseReducer, cm as garbageCollectDocumentOperations, cn as DocumentModelModuleAction, cp as operationFromAction, cr as MutationDeleteChangeLogItemInputArgs, ct as AddModuleAction, cu as readFileBrowser, da as SetOperationErrorNameAction, dc as ReorderChangeLogItemsInputSchema, dd as documentModelGlobalState, df as isAuthAction, dh as deriveDocumentId, di as ReducerOptions, dl as replayOperations, dm as groupOperationsByScope, dn as DocumentModelOperationErrorAction, dp as redo, dr as MutationDeleteOperationErrorArgs, ds as ReservedOperationName, dt as AddOperationErrorAction, du as VersionedReducers, ea as SetModuleNameAction, ec as OperationScopeSchema, ed as buildOperationSignatureParams, ef as SetGrantActionInputSchema, eh as defaultBaseState, ei as PhAiToolDescriptor, el as documentModelModuleReducer, em as baseCreateDocument, en as DocumentModelDocumentModelModule, eo as UpdateStateExampleAction, ep as deleteOperation, er as MoveOperationInput, eu as createMinimalZip, fa as SetOperationErrorNameInput, fc as ReorderModuleOperationsInputSchema, fd as documentModelInitialGlobalState, ff as isDocumentCreator, fh as isDerivedDocumentId, fi as ReleaseNewVersionAction, fl as updateDocument, fm as hashDocumentStateForScope, fn as DocumentModelOperationErrorOperations, fp as releaseNewVersion, fr as MutationDeleteOperationExampleArgs, fs as assertModuleIdUnique, ft as AddOperationErrorInput, fu as VersionedReplayConfig, ga as SetOperationNameInput, gc as ReorderStateExamplesInputSchema, gd as GrantSchema, gf as resolveSnapshotAuth, gh as signaturePolicyOf, gi as ReorderChangeLogItemsInput, gl as purgeDocumentAction, gm as isUndoRedo, gn as DocumentModelPHState, gp as reorderOperationErrors, gr as MutationReorderChangeLogItemsInputArgs, gs as findModuleOrThrow, gt as AddRelationshipAction, gu as UpgradeTransition, ha as SetOperationNameAction, hc as ReorderOperationExamplesInputSchema, hd as AuthAdministrationMissingError, hf as removeGrant, hh as requestedSignaturePolicy, hi as ReorderChangeLogItemsAction, hl as isPurgeMarker, hm as isUndo, hn as DocumentModelOperationOperations, hp as reorderModules, hr as MutationRedoArgs, hs as assertOperationIdUnique, ht as AddOperationInput, hu as UpgradeReducer, ia as SetNameOperation, ic as PowerhouseModuleSchema, id as hex2ab, if as applyRemoveGrantAction, ih as defaultPHState, ii as PurgeDocumentAction, il as documentModelReducer, im as diffOperations, in as DocumentModelInput, io as User, ip as documentModelActions, ir as MutationAddOperationArgs, it as ActionVerificationHandler, iu as fetchFileBrowser, ja as Set_PreferredEditor, jc as SetOperationErrorDescriptionInputSchema, jd as isPlainValue, jf as hashActionV2, jh as HashConfig, ji as Scalars, jl as holdReason, jm as sortMappedOperations, jn as HostedEditorProps, jp as setOperationErrorDescription, jr as MutationSetNameArgs, js as AddModuleInputSchema, jt as CreateDocumentAction, ju as InvalidAuthVersionError, ka as SetStateSchemaInput, kc as SetOperationDescriptionInputSchema, kd as evaluateGrants, kf as actionSigningTarget, kh as ActionSigner, ki as SaveToFile, kl as Supports, km as reshuffleByTimestampAndIndex, kn as FileInput, kp as setOperationDescription, kr as MutationSetModuleDescriptionArgs, ks as validateStateSchemaName, kt as CreateChildDocumentSignal, ku as InvalidActionInputError, la as SetOperationErrorDescriptionAction, lc as RedoActionSchema, ld as HASH_ENCODING_HEX, lf as evaluate, lh as SIGNATURE_PROTOCOL_V2, li as RedoActionInput, ll as createReducer, lm as garbageCollectV2, ln as DocumentModelModuleOperations, lp as operationFromOperation, lr as MutationDeleteModuleArgs, ls as OPERATION_NAME_PATTERN, lt as AddModuleInput, lu as writeFileBrowser, ma as SetOperationErrorTemplateInput, mc as ReorderOperationErrorsInputSchema, md as AuthAdministrationLockoutError, mf as moveGrant, mh as protocolVersionsFor, mi as RemoveRelationshipActionInput, ml as PurgeMarkerOperation, mm as isNoopOperation, mn as DocumentModelOperationExampleOperations, mp as reorderModuleOperations, mr as MutationMoveOperationArgs, ms as assertOperationExampleIdUnique, mt as AddOperationExampleInput, mu as UpgradeManifest, na as SetNameAction, nc as PieceModuleSchema, nd as getUnixTimestamp, nf as applyInitializeAuthAction, nh as defaultGlobalState, ni as PowerhouseModule, nl as documentModelOperationExampleReducer, nm as checkCleanedOperationsIntegrity, nn as DocumentModelHeaderAction, no as UpgradeDocumentAction, np as deleteOperationExample, nr as MutationAddChangeLogItemInputArgs, nt as ActionSignatureContext, nu as documentModelLoadFromInput, oa as SetOperationDescriptionInput, oc as PublisherSchema, od as HASH_ALGORITHM_SHA256, of as assertAuthPreservedOnDuplicate, oh as DocumentIdParams, oi as Query, ol as documentModelStateSchemaReducer, om as filterDuplicatedOperations, on as DocumentModelLocalState, op as noop, or as MutationAddOperationExampleArgs, ot as AddChangeLogItemAction, ou as isDocumentZip, pa as SetOperationErrorTemplateAction, pc as ReorderModulesInputSchema, pd as documentModelInitialLocalState, pf as mentionedGroupIds, ph as isSignaturePolicy, pi as RemoveRelationshipAction, pl as PURGE_DOCUMENT, pm as isDocumentAction, pn as DocumentModelOperationExampleAction, pp as reorderChangeLogItems, pr as MutationDeleteStateExampleArgs, ps as assertOperationErrorIdUnique, pt as AddOperationExampleAction, pu as replayDocumentVersioned, qa as UndoRedoAction, qc as UndoSchema, qd as MoveGrantActionInput, qf as addStateExample, qi as SetModelExtensionInput, ql as sign, qm as createAuthState, qn as MakeOptional, qp as IntegrityIssueType, qr as OperationErrorSpecification, qs as DocumentModelGlobalStateSchema, qt as DeleteOperationInput, qu as AUTH_VERSION_UNSUPPORTED_REASON, ra as SetNameActionInput, rc as PieceModulesSchema, rd as hashBrowser, rf as applyMoveGrantAction, rh as defaultLocalState, ri as Publisher, rl as documentModelOperationReducer, rm as checkOperationsIntegrity, rn as DocumentModelHeaderOperations, ro as UpgradeDocumentActionInput, rp as deleteStateExample, rr as MutationAddModuleArgs, rt as ActionSigningHandler, ru as documentModelSaveToFileHandle, sa as SetOperationErrorCodeAction, sc as PwaConfigSchema, sd as HASH_ALGORITHM_SHA512, sf as assertAuthScopeActionAllowed, sh as ProtocolVersions, si as Redo, sl as documentModelVersioningReducer, sm as garbageCollect, sn as DocumentModelModule, sp as operationExampleCreators, sr as MutationAddStateExampleArgs, st as AddChangeLogItemInput, su as parseBulkArchive, ta as SetModuleNameInput, tc as OperationSpecificationSchema, td as bytesToBase64Url, tf as applyAuthAction, th as defaultDocumentState, ti as PieceModule, tl as documentModelOperationErrorReducer, tm as baseReducerVersion, tn as DocumentModelGlobalState, to as UpdateStateExampleInput, tp as deleteOperationError, tr as Mutation, tt as ActionErrorCallback, tu as createZip, ua as SetOperationErrorDescriptionInput, uc as RedoSchema, ud as documentModelFileExtension, uf as initializeAuth, uh as SignaturePolicy, ui as Reducer, ul as processUndoRedo, um as getDocumentLastModified, un as DocumentModelOperationAction, up as operationWithContext, ur as MutationDeleteOperationArgs, us as RESERVED_OPERATION_NAMES, ut as AddOperationAction, uu as zipEntries, va as SetOperationReducerInput, vc as SetAuthorNameInputSchema, vd as InvalidGrantError, vf as TransportAction, vh as DocumentOperations, vi as ReorderModuleOperationsInput, vl as purgedProtocolVersions, vm as mapSkippedOperationsV2, vn as DocumentModelStateOperations, vp as reorderStateExamples, vr as MutationReorderModulesArgs, vs as findOperationExampleOrThrow, vt as AddStateExampleAction, vu as applyUpgradeDocumentAction, wa as SetOperationTemplateInput, wc as SetModelNameInputSchema, wd as assertValidGrant, wf as ActionSigningTarget, wh as redoOperation, wi as ReorderOperationExamplesInput, wl as PEER_MANIFEST_FORMAT, wm as prepareOperations, wn as ENSInfo, wp as setModelId, wr as MutationSetInitialStateArgs, ws as validateModule, wt as ConfigEntry, wu as AuthPolicyNotPreservedError, xa as SetOperationScopeAction, xc as SetModelDescriptionInputSchema, xd as MAX_CONDITION_DEPTH, xf as toTransportAction, xh as OperationOutcome, xi as ReorderOperationErrorsAction, xl as HoldReason, xm as operationsAreEqual, xn as DocumentModelVersioningOperations, xp as setInitialState, xr as MutationReorderStateExamplesArgs, xs as isReservedOperationName, xt as AssertIsStateOfType, xu as AuthActionNotAllowedError, ya as SetOperationSchemaAction, yc as SetAuthorWebsiteInputSchema, yd as MAX_AUTH_GRANTS, yf as TransportActionContext, yh as Operation, yi as ReorderModulesAction, yl as DOCUMENT_PURGE_PROTOCOL, ym as merge, yn as DocumentModelUtils, yp as setAuthorName, yr as MutationReorderOperationErrorsArgs, ys as findOperationOrThrow, yt as AddStateExampleInput, yu as computeUpgradeTransitions, za as SkipHeaderOperationIndex, zc as SetPreferredEditorActionInputSchema, zd as AuthSubject, zf as actionFromAction, zi as SetAuthorNameInput, zl as readPeerManifest, zm as Grant, zn as Incremental, zp as setPreferredEditor, zr as MutationSetOperationSchemaArgs, zs as ConfigEntryTypeSchema, zt as DeleteDocumentActionInput, zu as DocumentModelPHStateSchema } from "../types-BpO4LIKj.js";
|
|
1
|
+
import { $a as UpdateRelationshipActionInput, $c as isDefinedNonNullAny, $d as SetGrantAction, $f as deleteChangeLogItem, $i as SetModuleDescriptionInput, $l as baseLoadFromInputVersioned, $m as createState, $n as MoveOperationAction, $p as appendWithoutApplying, $r as PhAiToolAnnotations, $s as MoveOperationInputSchema, $t as DocumentModelDocument, $u as base64UrlToBytes, Aa as Set_Name, Ac as SetOperationDescriptionInputSchema, Ad as evaluateGrants, Af as actionSigningTarget, Ah as ActionSigner, Ai as SaveToFileHandle, Al as Supports, Am as reshuffleByTimestampAndIndex, An as GetDocumentOptions, Ap as setOperationDescription, Ar as MutationSetModuleNameArgs, As as validateStateSchemaName, At as CreateDocument, Au as InvalidActionInputError, Ba as SkipHeaderOperations, Bc as SetPreferredEditorActionInputSchema, Bd as AuthSubject, Bf as actionFromAction, Bi as SetAuthorWebsiteAction, Bl as readPeerManifest, Bm as Grant, Bn as InputMaybe, Bp as setPreferredEditor, Br as MutationSetOperationTemplateArgs, Bs as ConfigEntryTypeSchema, Bt as DeleteModuleAction, Bu as DocumentModelPHStateSchema, Ca as SetOperationTemplateAction, Cc as SetModelExtensionInputSchema, Cd as MAX_CONDITION_NODES, Cf as ACTION_SIGNATURE_V2_PREFIX, Ch as OperationWithContext, Ci as ReorderOperationExamplesAction, Cl as MARKER_REFUSAL_FEATURE, Cm as parseResultingState, Cn as DocumentSpecification, Cp as setModelDescription, Cr as MutationSetAuthorWebsiteArgs, Cs as isValidOperationNameFormat, Ct as CodeExample, Cu as AuthAlreadyInitializedError, Da as SetPreferredEditorOperation, Dc as SetModuleNameInputSchema, Dd as assertValidInitialGrants, Df as DOCUMENT_SCOPE_ACTION_TYPES, Dh as setPreferredEditorOperation, Di as ReplayDocumentOptions, Dl as PeerCapabilityFlags, Dm as removeExistingOperations, Dn as EditorProps, Dp as setModuleDescription, Dr as MutationSetModelIdArgs, Ds as validateModules, Dt as CopyChildDocumentSignal, Du as FileSystemError, Ea as SetPreferredEditorActionInput, Ec as SetModuleDescriptionInputSchema, Ed as assertValidGrantUpsert, Ef as CanonicalJsonError, Eh as setNameOperation, Ei as ReorderStateExamplesInput, El as PeerCapability, Em as readOnly, En as EditorModule, Ep as setModelName, Er as MutationSetModelExtensionArgs, Es as validateModuleOperation, Et as CopyChildDocumentInput, Eu as DowngradeNotSupportedError, Fa as SignalResults, Fc as SetOperationNameInputSchema, Fd as AuthAction, Ff as targetDocumentId, Fh as UserActionSigner, Fi as SchemaSetPreferredEditorAction, Fl as localPeerManifest, Fm as updateHeaderRevision, Fn as IOperation, Fp as setOperationName, Fr as MutationSetOperationErrorNameArgs, Fs as AddOperationInputSchema, Ft as DeleteChangeLogItemInput, Fu as groupDocumentType, Ga as UndoAction, Gc as StateSchema, Gd as InitializeAuthActionInputSchema, Gf as addOperation, Gi as SetModelDescriptionInput, Gl as createSignedHeaderForSigner, Gm as PHGroupState, Gn as MakeEmpty, Gp as updateStateExample, Gr as MutationUpdateStateExampleArgs, Gs as DeleteOperationInputSchema, Gt as DeleteOperationExampleAction, Gu as isDocumentModelState, Ha as StateReducer, Hc as SetStateSchemaInputSchema, Hd as ConditionContext, Hf as actions, Hi as SetInitialStateAction, Hl as createCopyHeader, Hm as PHAuthState, Hn as IsStateOfType, Hp as undo, Hr as MutationUndoArgs, Hs as DeleteModuleInputSchema, Ht as DeleteOperationAction, Hu as assertIsDocumentModelDocument, Ia as SignalType, Ic as SetOperationReducerInputSchema, Id as AuthDecision, If as v2TupleProblem, Ih as deserializeSignature, Ii as SchemaUndoAction, Il as localSupports, Im as withSignaturePolicy, In as ISignal, Ip as setOperationReducer, Ir as MutationSetOperationErrorTemplateArgs, Is as AddStateExampleInputSchema, It as DeleteChildDocumentInput, Iu as groupMembershipActionTypes, Ja as UpdateChangeLogItemAction, Jc as UndoSchema, Jd as MoveGrantActionInput, Jf as addStateExample, Ji as SetModelIdAction, Jl as sign, Jm as createAuthState, Jn as Manifest, Jp as IntegrityIssueType, Jr as OperationIndex, Js as DocumentModelGlobalStateSchema, Jt as DeleteStateExampleAction, Ju as AUTH_VERSION_UNSUPPORTED_REASON, Ka as UndoActionInput, Kc as UndoActionInputSchema, Kd as MAX_SUPPORTED_AUTH_VERSION, Kf as addOperationError, Ki as SetModelExtensionAction, Kl as createVerificationSigner, Km as Principal, Kn as MakeMaybe, Kp as verifyOperationSignature, Kr as NOOPAction, Ks as DeleteStateExampleInputSchema, Kt as DeleteOperationExampleInput, Ku as AUTH_DENIED_BY_GRANT_REASON, La as SignatureVerificationHandler, Lc as SetOperationSchemaInputSchema, Ld as AuthEvaluation, Lf as Action, Lh as serializeSignature, Li as ScopeState, Ll as manifestRevision, Lm as AuthGroups, Ln as ISignalResult, Lp as setOperationSchema, Lr as MutationSetOperationNameArgs, Ls as AuthorSchema, Lt as DeleteChildDocumentSignal, Lu as BaseDocumentHeaderSchema, Ma as Signal, Mc as SetOperationErrorDescriptionInputSchema, Md as isPlainValue, Mf as hashActionV2, Mh as HashConfig, Mi as SchemaNOOPAction, Ml as holdReason, Mm as sortMappedOperations, Mn as IAction, Mp as setOperationErrorDescription, Mr as MutationSetOperationDescriptionArgs, Ms as AddModuleInputSchema, Mt as CreateDocumentActionInput, Mu as InvalidAuthVersionError, Na as SignalDispatch, Nc as SetOperationErrorNameInputSchema, Nd as referencedGroupIds, Nf as isV2ActionHash, Nh as PHDocumentSignatureInfo, Ni as SchemaRedoAction, Nl as isOlderManifest, Nm as sortOperations, Nn as ID, Np as setOperationErrorName, Nr as MutationSetOperationErrorCodeArgs, Ns as AddOperationErrorInputSchema, Nt as CreateState, Nu as UnsupportedDocumentModelVersionError, Oa as SetStateSchemaAction, Oc as SetNameActionInputSchema, Od as evaluateCondition, Of as actionPreimageV2, Oh as undoOperation, Oi as RevisionsFilter, Ol as PeerManifest, Om as replayDocument, On as Exact, Op as setModuleName, Or as MutationSetModelNameArgs, Os as validateOperationName, Ot as CreateChildDocumentInput, Ou as GrantNotFoundError, Pa as SignalResult, Pc as SetOperationErrorTemplateInputSchema, Pd as AUTH_ACTION_TYPES, Pf as signActionV2, Ph as Signature, Pi as SchemaSetNameAction, Pl as legacySupports, Pm as split, Pn as IDocument, Pp as setOperationErrorTemplate, Pr as MutationSetOperationErrorDescriptionArgs, Ps as AddOperationExampleInputSchema, Pt as DeleteChangeLogItemAction, Pu as documentModelDocumentType, Qa as UpdateRelationshipAction, Qc as definedNonNullAnySchema, Qd as RemoveGrantActionInputSchema, Qf as createAction, Qi as SetModuleDescriptionAction, Ql as baseLoadFromInput, Qm as createLocalState, Qn as ModuleSpecification, Qp as addUndo, Qr as PartialState, Qs as ModuleSchema, Qt as DocumentModelAction, Qu as base58Decode, Ra as SigningParameters, Rc as SetOperationScopeInputSchema, Rd as AuthRefusal, Rf as ActionContext, Ri as SetAuthorNameAction, Rl as mergePeerCapabilities, Rm as Capability, Rn as ISigner, Rp as setOperationScope, Rr as MutationSetOperationReducerArgs, Rs as CodeExampleSchema, Rt as DeleteDocumentAction, Ru as BaseDocumentStateSchema, Sa as SetOperationScopeInput, Sc as SetModelDescriptionInputSchema, Sd as MAX_CONDITION_DEPTH, Sf as toTransportAction, Sh as OperationOutcome, Si as ReorderOperationErrorsInput, Sl as HoldReason, Sm as operationsAreEqual, Sn as DocumentOperationsIgnoreMap, Sp as setInitialState, Sr as MutationSetAuthorNameArgs, Ss as isReservedOperationName, St as Author, Su as AuthActionNotAllowedError, Ta as SetPreferredEditorAction, Tc as SetModelNameInputSchema, Td as assertValidGrant, Tf as ActionSigningTarget, Th as redoOperation, Ti as ReorderStateExamplesAction, Tl as PEER_MANIFEST_FORMAT, Tm as prepareOperations, Tn as EditorDispatch, Tp as setModelId, Tr as MutationSetModelDescriptionArgs, Ts as validateModule, Tt as ConfigEntryType, Tu as AuthPolicyNotPreservedError, Ua as SubgraphModule, Uc as Set_NameSchema, Ud as InitializeAuthAction, Uf as addChangeLogItem, Ui as SetInitialStateInput, Ul as createPresignedHeader, Um as PHBaseState, Un as LoadFromFile, Up as updateChangeLogItem, Ur as MutationUpdateChangeLogItemInputArgs, Us as DeleteOperationErrorInputSchema, Ut as DeleteOperationErrorAction, Uu as assertIsDocumentModelState, Va as State, Vc as SetPreferredEditorActionSchema, Vd as AuthVerb, Vf as actionSigner, Vi as SetAuthorWebsiteInput, Vl as selectProtocolVersions, Vm as Operand, Vn as IsDocumentOfType, Vp as setStateSchema, Vr as MutationSetStateSchemaArgs, Vs as DeleteChangeLogItemInputSchema, Vt as DeleteModuleInput, Vu as DocumentModelSchema, Wa as Undo, Wc as Set_PreferredEditorSchema, Wd as InitializeAuthActionInput, Wf as addModule, Wi as SetModelDescriptionAction, Wl as createSignedHeader, Wm as PHDocumentState, Wn as LoadFromInput, Wp as updateOperationExample, Wr as MutationUpdateOperationExampleArgs, Ws as DeleteOperationExampleInputSchema, Wt as DeleteOperationErrorInput, Wu as isDocumentModelDocument, Xa as UpdateOperationExampleAction, Xc as UpdateOperationExampleInputSchema, Xd as RemoveGrantAction, Xf as buildOperationSignature, Xi as SetModelNameAction, Xl as verify, Xm as createDocumentState, Xn as Maybe, Xp as PHDocumentHeader, Xr as OperationsByScope, Xs as DocumentSpecificationSchema, Xt as DocumentAction, Xu as isDenied, Ya as UpdateChangeLogItemInput, Yc as UpdateChangeLogItemInputSchema, Yd as MoveGrantActionInputSchema, Yf as baseActions, Yi as SetModelIdInput, Yl as validateHeader, Ym as createBaseState, Yn as MappedOperation, Yp as PHDocument, Yr as OperationSpecification, Ys as DocumentModelInputSchema, Yt as DeleteStateExampleInput, Yu as DOCUMENT_DELETED_REASON, Za as UpdateOperationExampleInput, Zc as UpdateStateExampleInputSchema, Zd as RemoveGrantActionInput, Zf as buildSignedAction, Zi as SetModelNameInput, Zl as BulkArchiveEntry, Zm as createGlobalState, Zn as MinimalBackupData, Zp as PHDocumentMeta, Zr as PartialRecord, Zs as ManifestSchema, Zt as DocumentDispatch, Zu as ab2hex, _a as SetOperationReducerAction, _c as ReorderStateExamplesInputSchema, _d as GrantSchema, _f as resolveSnapshotAuth, _h as signaturePolicyOf, _i as ReorderModuleOperationsAction, _l as purgeDocumentAction, _m as isUndoRedo, _n as DocumentModelStateAction, _p as reorderOperationErrors, _r as MutationReorderModuleOperationsArgs, _s as findModuleOrThrow, _t as AddRelationshipActionInput, _u as UpgradeTransition, aa as SetOperationDescriptionAction, ac as PowerhouseModuleSchema, ad as hex2ab, af as applyRemoveGrantAction, ah as defaultPHState, ai as PurgeDocumentActionInput, al as documentModelReducer, am as diffOperations, an as DocumentModelLib, ao as ValidationError, ap as documentModelActions, ar as MutationAddOperationErrorArgs, at as Actions, au as fetchFileBrowser, ba as SetOperationSchemaInput, bc as SetAuthorWebsiteInputSchema, bd as MAX_AUTH_GRANTS, bf as TransportActionContext, bh as Operation, bi as ReorderModulesInput, bl as DOCUMENT_PURGE_PROTOCOL, bm as merge, bn as DocumentModelVersioningAction, bp as setAuthorName, br as MutationReorderOperationExamplesArgs, bs as findOperationOrThrow, bt as AssertIsDocumentOfType, bu as computeUpgradeTransitions, ca as SetOperationErrorCodeInput, cc as PwaConfigSchema, cd as HASH_ALGORITHM_SHA512, cf as assertAuthScopeActionAllowed, ch as ProtocolVersions, ci as RedoAction, cl as documentModelVersioningReducer, cm as garbageCollect, cn as DocumentModelModuleAction, cp as operationExampleCreators, cr as MutationDeleteChangeLogItemInputArgs, ct as AddModuleAction, cu as parseBulkArchive, da as SetOperationErrorNameAction, dc as RedoSchema, dd as documentModelFileExtension, df as initializeAuth, dh as SignaturePolicy, di as ReducerOptions, dl as processUndoRedo, dm as getDocumentLastModified, dn as DocumentModelOperationErrorAction, dp as operationWithContext, dr as MutationDeleteOperationErrorArgs, ds as RESERVED_OPERATION_NAMES, dt as AddOperationErrorAction, du as zipEntries, ea as SetModuleNameAction, ec as OperationErrorSchema, ed as buildOperationSignatureMessage, ef as SetGrantActionInput, eh as defaultAuthState, ei as PhAiToolDescriptor, el as documentModelHeaderReducer, em as attachBranch, en as DocumentModelDocumentModelModule, eo as UpdateStateExampleAction, ep as deleteModule, er as MoveOperationInput, eu as baseSaveToFileHandle, fa as SetOperationErrorNameInput, fc as ReorderChangeLogItemsInputSchema, fd as documentModelGlobalState, ff as isAuthAction, fh as deriveDocumentId, fi as ReleaseNewVersionAction, fl as replayOperations, fm as groupOperationsByScope, fn as DocumentModelOperationErrorOperations, fp as redo, fr as MutationDeleteOperationExampleArgs, fs as ReservedOperationName, ft as AddOperationErrorInput, fu as VersionedReducers, ga as SetOperationNameInput, gc as ReorderOperationExamplesInputSchema, gd as AuthAdministrationMissingError, gf as removeGrant, gh as requestedSignaturePolicy, gi as ReorderChangeLogItemsInput, gl as isPurgeMarker, gm as isUndo, gn as DocumentModelPHState, gp as reorderModules, gr as MutationReorderChangeLogItemsInputArgs, gs as assertOperationIdUnique, gt as AddRelationshipAction, gu as UpgradeReducer, ha as SetOperationNameAction, hc as ReorderOperationErrorsInputSchema, hd as AuthAdministrationLockoutError, hf as moveGrant, hh as protocolVersionsFor, hi as ReorderChangeLogItemsAction, hl as PurgeMarkerOperation, hm as isNoopOperation, hn as DocumentModelOperationOperations, hp as reorderModuleOperations, hr as MutationRedoArgs, hs as assertOperationExampleIdUnique, ht as AddOperationInput, hu as UpgradeManifest, ia as SetNameOperation, ic as PieceModulesSchema, id as hashBrowser, if as applyMoveGrantAction, ih as defaultLocalState, ii as PurgeDocumentAction, il as documentModelOperationReducer, im as checkOperationsIntegrity, in as DocumentModelInput, io as User, ip as deleteStateExample, ir as MutationAddOperationArgs, it as ActionVerificationHandler, iu as documentModelSaveToFileHandle, ja as Set_PreferredEditor, jc as SetOperationErrorCodeInputSchema, jd as grantProblem, jf as canonicalJson, jh as AppActionSigner, ji as Scalars, jl as coversLocal, jm as skipHeaderOperations, jn as HostedEditorProps, jp as setOperationErrorCode, jr as MutationSetNameArgs, js as AddChangeLogItemInputSchema, jt as CreateDocumentAction, ju as InvalidActionInputZodError, ka as SetStateSchemaInput, kc as SetNameActionSchema, kd as evaluateGrantStack, kf as actionSignerIdentity, kh as undoOperationV2, ki as SaveToFile, kl as ProtocolCapability, km as reshuffleByTimestamp, kn as FileInput, kp as setName, kr as MutationSetModuleDescriptionArgs, ks as validateOperations, kt as CreateChildDocumentSignal, ku as HashMismatchError, la as SetOperationErrorDescriptionAction, lc as RedoActionInputSchema, ld as HASH_ENCODING_BASE64, lf as decide, lh as SIGNATURE_PROTOCOL, li as RedoActionInput, ll as baseReducer, lm as garbageCollectDocumentOperations, ln as DocumentModelModuleOperations, lp as operationFromAction, lr as MutationDeleteModuleArgs, lt as AddModuleInput, lu as readFileBrowser, ma as SetOperationErrorTemplateInput, mc as ReorderModulesInputSchema, md as documentModelInitialLocalState, mf as mentionedGroupIds, mh as isSignaturePolicy, mi as RemoveRelationshipActionInput, ml as PURGE_DOCUMENT, mm as isDocumentAction, mn as DocumentModelOperationExampleOperations, mp as reorderChangeLogItems, mr as MutationMoveOperationArgs, ms as assertOperationErrorIdUnique, mt as AddOperationExampleInput, mu as replayDocumentVersioned, na as SetNameAction, nc as OperationSpecificationSchema, nd as bytesToBase64Url, nf as applyAuthAction, nh as defaultDocumentState, ni as PowerhouseModule, nl as documentModelOperationErrorReducer, nm as baseReducerVersion, nn as DocumentModelHeaderAction, no as UpgradeDocumentAction, np as deleteOperationError, nr as MutationAddChangeLogItemInputArgs, nt as ActionSignatureContext, nu as createZip, oa as SetOperationDescriptionInput, oc as PowerhouseModulesSchema, od as HASH_ALGORITHM_SHA1, of as applySetGrantAction, oh as DEFAULT_SIGNATURE_POLICY, oi as Query, ol as documentModelStateReducer, om as filterDocumentOperationsResultingState, on as DocumentModelLocalState, op as moveOperation, or as MutationAddOperationExampleArgs, ot as AddChangeLogItemAction, ou as getFileBrowser, pa as SetOperationErrorTemplateAction, pc as ReorderModuleOperationsInputSchema, pd as documentModelInitialGlobalState, pf as isDocumentCreator, ph as isDerivedDocumentId, pi as RemoveRelationshipAction, pl as updateDocument, pm as hashDocumentStateForScope, pn as DocumentModelOperationExampleAction, pp as releaseNewVersion, pr as MutationDeleteStateExampleArgs, ps as assertModuleIdUnique, pt as AddOperationExampleAction, pu as VersionedReplayConfig, qa as UndoRedoAction, qc as UndoActionSchema, qd as MoveGrantAction, qf as addOperationExample, qi as SetModelExtensionInput, ql as hasDerivedDocumentId, qm as backfillAuthState, qn as MakeOptional, qp as IntegrityIssueSubType, qr as OperationErrorSpecification, qs as DocumentActionSchema, qt as DeleteOperationInput, qu as AUTH_NO_GRANT_REASON, ra as SetNameActionInput, rc as PieceModuleSchema, rd as getUnixTimestamp, rf as applyInitializeAuthAction, rh as defaultGlobalState, ri as Publisher, rl as documentModelOperationExampleReducer, rm as checkCleanedOperationsIntegrity, rn as DocumentModelHeaderOperations, ro as UpgradeDocumentActionInput, rp as deleteOperationExample, rr as MutationAddModuleArgs, rt as ActionSigningHandler, ru as documentModelLoadFromInput, sa as SetOperationErrorCodeAction, sc as PublisherSchema, sd as HASH_ALGORITHM_SHA256, sf as assertAuthPreservedOnDuplicate, sh as DocumentIdParams, si as Redo, sl as documentModelStateSchemaReducer, sm as filterDuplicatedOperations, sn as DocumentModelModule, sp as noop, sr as MutationAddStateExampleArgs, st as AddChangeLogItemInput, su as isDocumentZip, ta as SetModuleNameInput, tc as OperationScopeSchema, td as buildOperationSignatureParams, tf as SetGrantActionInputSchema, th as defaultBaseState, ti as PieceModule, tl as documentModelModuleReducer, tm as baseCreateDocument, tn as DocumentModelGlobalState, to as UpdateStateExampleInput, tp as deleteOperation, tr as Mutation, tt as ActionErrorCallback, tu as createMinimalZip, ua as SetOperationErrorDescriptionInput, uc as RedoActionSchema, ud as HASH_ENCODING_HEX, uf as evaluate, uh as SIGNATURE_PROTOCOL_V2, ui as Reducer, ul as createReducer, um as garbageCollectV2, un as DocumentModelOperationAction, up as operationFromOperation, ur as MutationDeleteOperationArgs, us as OPERATION_NAME_PATTERN, ut as AddOperationAction, uu as writeFileBrowser, va as SetOperationReducerInput, vc as ScopeStateSchema, vd as GroupPrincipalNotAllowedError, vf as setGrant, vh as v2RequiredProtocolVersions, vi as ReorderModuleOperationsInput, vl as purgeMarkerOperation, vm as mapSkippedOperations, vn as DocumentModelStateOperations, vp as reorderOperationExamples, vr as MutationReorderModulesArgs, vs as findOperationErrorOrThrow, vt as AddStateExampleAction, vu as applyDeleteDocumentAction, wa as SetOperationTemplateInput, wc as SetModelIdInputSchema, wd as assertAuthAdministrationRetained, wf as ActionSignerIdentity, wh as operationOutcome, wi as ReorderOperationExamplesInput, wl as PEER_CAPABILITIES, wm as precedes, wn as ENSInfo, wp as setModelExtension, wr as MutationSetInitialStateArgs, ws as validateInitialState, wt as ConfigEntry, wu as AuthInitializerNotCreatorError, xa as SetOperationScopeAction, xc as SetInitialStateInputSchema, xd as MAX_CAPABILITY_OPERATIONS, xf as TransportSigner, xh as OperationContext, xi as ReorderOperationErrorsAction, xl as FeatureCapability, xm as nextSkipNumber, xn as DocumentModelVersioningOperations, xp as setAuthorWebsite, xr as MutationReorderStateExamplesArgs, xs as getAllOperationNames, xt as AssertIsStateOfType, xu as withProtocolVersions, ya as SetOperationSchemaAction, yc as SetAuthorNameInputSchema, yd as InvalidGrantError, yf as TransportAction, yh as DocumentOperations, yi as ReorderModulesAction, yl as purgedProtocolVersions, ym as mapSkippedOperationsV2, yn as DocumentModelUtils, yp as reorderStateExamples, yr as MutationReorderOperationErrorsArgs, ys as findOperationExampleOrThrow, yt as AddStateExampleInput, yu as applyUpgradeDocumentAction, za as SkipHeaderOperationIndex, zc as SetOperationTemplateInputSchema, zd as AuthRequest, zf as actionContext, zi as SetAuthorNameInput, zl as peerSupports, zm as Condition, zn as Incremental, zp as setOperationTemplate, zr as MutationSetOperationSchemaArgs, zs as ConfigEntrySchema, zt as DeleteDocumentActionInput, zu as DocumentModelHeaderSchema } from "../types-BMvEggLM.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, type DocumentDispatch, 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 HostedEditorProps, 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-DiSgFXjt.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-DYRUjLwF.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-DYRUjLwF.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"}
|