@powerhousedao/shared 6.0.2-staging.8 → 6.0.2-staging.9

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.
Files changed (66) hide show
  1. package/dist/actions-UH5nIJcP.d.ts +21068 -0
  2. package/dist/actions-UH5nIJcP.d.ts.map +1 -0
  3. package/dist/clis/args/access-token.mjs +1 -1
  4. package/dist/clis/args/{common-Bc8EcW9w.mjs → common-DPYlcz-d.mjs} +7 -1
  5. package/dist/clis/args/common-DPYlcz-d.mjs.map +1 -0
  6. package/dist/clis/args/common.mjs +1 -1
  7. package/dist/clis/args/connect.mjs +1 -1
  8. package/dist/clis/args/{generate-DNGRYRdp.mjs → generate-BJPBa0mK.mjs} +2 -2
  9. package/dist/clis/args/{generate-DNGRYRdp.mjs.map → generate-BJPBa0mK.mjs.map} +1 -1
  10. package/dist/clis/args/generate.mjs +1 -1
  11. package/dist/clis/args/{help-CFAVJzhI.mjs → help-rztSuf9S.mjs} +3 -3
  12. package/dist/clis/args/{help-CFAVJzhI.mjs.map → help-rztSuf9S.mjs.map} +1 -1
  13. package/dist/clis/args/help.mjs +1 -1
  14. package/dist/clis/args/index.d.mts +1 -1
  15. package/dist/clis/args/index.mjs +3 -3
  16. package/dist/clis/args/init.mjs +1 -1
  17. package/dist/clis/args/inspect.mjs +1 -1
  18. package/dist/clis/args/install.mjs +1 -1
  19. package/dist/clis/args/list.mjs +1 -1
  20. package/dist/clis/args/login.mjs +1 -1
  21. package/dist/clis/args/migrate.mjs +1 -1
  22. package/dist/clis/args/publish.mjs +1 -1
  23. package/dist/clis/args/registry.mjs +1 -1
  24. package/dist/clis/args/service-LXIFUZ_8.d.mts +106 -0
  25. package/dist/clis/args/service-LXIFUZ_8.d.mts.map +1 -0
  26. package/dist/clis/args/service.d.mts +1 -1
  27. package/dist/clis/args/service.mjs +1 -1
  28. package/dist/clis/args/switchboard.mjs +1 -1
  29. package/dist/clis/args/uninstall.mjs +1 -1
  30. package/dist/clis/args/unpublish.mjs +1 -1
  31. package/dist/clis/args/vetra.d.mts +3 -0
  32. package/dist/clis/args/vetra.d.mts.map +1 -1
  33. package/dist/clis/args/vetra.mjs +6 -1
  34. package/dist/clis/args/vetra.mjs.map +1 -1
  35. package/dist/clis/constants.d.mts +248 -1
  36. package/dist/clis/constants.d.mts.map +1 -1
  37. package/dist/clis/constants.mjs +139 -9
  38. package/dist/clis/constants.mjs.map +1 -1
  39. package/dist/clis/index.d.mts +276 -10
  40. package/dist/clis/index.d.mts.map +1 -1
  41. package/dist/clis/index.mjs +176 -15
  42. package/dist/clis/index.mjs.map +1 -1
  43. package/dist/clis/utils.d.mts +11 -1
  44. package/dist/clis/utils.d.mts.map +1 -1
  45. package/dist/clis/utils.mjs +17 -2
  46. package/dist/clis/utils.mjs.map +1 -1
  47. package/dist/document-drive/index.d.ts +2 -2
  48. package/dist/document-model/index.d.ts +3 -3
  49. package/dist/document-model/index.js +133 -54
  50. package/dist/document-model/index.js.map +1 -1
  51. package/dist/{index-dcU9nj_u.d.ts → index-DhPr5zSB.d.ts} +5 -6
  52. package/dist/index-DhPr5zSB.d.ts.map +1 -0
  53. package/dist/index.d.ts +3 -3
  54. package/dist/processors/index.d.ts +1 -1
  55. package/dist/registry/index.d.ts +1 -1
  56. package/dist/registry/index.js +6 -0
  57. package/dist/registry/index.js.map +1 -1
  58. package/dist/{types-DyMP31mD.d.ts → types-WzwAClp2.d.ts} +2 -2
  59. package/dist/{types-DyMP31mD.d.ts.map → types-WzwAClp2.d.ts.map} +1 -1
  60. package/package.json +3 -3
  61. package/dist/actions-_5ZcthYq.d.ts +0 -2444
  62. package/dist/actions-_5ZcthYq.d.ts.map +0 -1
  63. package/dist/clis/args/common-Bc8EcW9w.mjs.map +0 -1
  64. package/dist/clis/args/service-C88bN_g_.d.mts +0 -22
  65. package/dist/clis/args/service-C88bN_g_.d.mts.map +0 -1
  66. package/dist/index-dcU9nj_u.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { o as debugArgs } from "./common-Bc8EcW9w.mjs";
1
+ import { o as debugArgs } from "./common-DPYlcz-d.mjs";
2
2
  import { option, optional, string } from "cmd-ts";
3
3
  //#region clis/args/access-token.ts
4
4
  const accessTokenArgs = {
@@ -27,6 +27,12 @@ const DEFAULT_RENOWN_URL = "https://www.renown.id";
27
27
  const DEFAULT_SWITCHBOARD_PORT = 4001;
28
28
  const DEFAULT_VETRA_DRIVE_ID = "vetra";
29
29
  join(homedir(), ".ph");
30
+ const VERSIONED_PEER_DEPENDENCIES = ["document-model", "@powerhousedao/reactor-browser"];
31
+ const FEATURE_DEPENDENCIES = { analyticsProcessor: {
32
+ peerVersioned: ["@powerhousedao/analytics-engine-core"],
33
+ peerExternal: {}
34
+ } };
35
+ [...VERSIONED_PEER_DEPENDENCIES, ...FEATURE_DEPENDENCIES.analyticsProcessor.peerVersioned];
30
36
  const DEFAULT_CONFIG = {
31
37
  documentModelsDir: "./document-models",
32
38
  editorsDir: "./editors",
@@ -266,4 +272,4 @@ const commonServerArgs = {
266
272
  //#endregion
267
273
  export { DEFAULT_CONNECT_STUDIO_PORT as C, DEFAULT_VETRA_DRIVE_ID as D, DEFAULT_VETRA_CONNECT_PORT as E, SERVICE_ACTIONS as O, DEFAULT_CONNECT_PREVIEW_PORT as S, DEFAULT_SWITCHBOARD_PORT as T, packageManagerArgs as _, connectBasePath as a, getConfig as b, disableLocalPackages as c, getPackageManagerCommand as d, https as f, logLevel as g, localPackage as h, commonServerArgs as i, drivesPreserveStrategy as l, httpsKeyFile as m, buildArgs as n, debugArgs as o, httpsCertFile as p, commonArgs as r, defaultDrivesUrl as s, AGENTS$1 as t, force as u, packages as v, DEFAULT_RENOWN_URL as w, DEFAULT_CONNECT_OUTDIR as x, vetraSwitchboardArgs as y };
268
274
 
269
- //# sourceMappingURL=common-Bc8EcW9w.mjs.map
275
+ //# sourceMappingURL=common-DPYlcz-d.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common-DPYlcz-d.mjs","names":["AGENTS","_AGENTS"],"sources":["../../../clis/constants.ts","../../../clis/file-system/get-config.ts","../../../clis/args/common.ts"],"sourcesContent":["import { homedir } from \"node:os\";\nimport { join } from \"node:path\";\nimport type { Manifest } from \"../document-model/types.js\";\nimport type { PowerhouseConfig } from \"./types.js\";\n\nexport const SERVICE_ACTIONS = [\n \"start\",\n \"stop\",\n \"status\",\n \"setup\",\n \"restart\",\n] as const;\n\nexport const SECONDS_IN_DAY = 24 * 60 * 60;\nexport const DEFAULT_EXPIRY_DAYS = 7;\nexport const DEFAULT_EXPIRY_SECONDS = DEFAULT_EXPIRY_DAYS * SECONDS_IN_DAY;\n\nexport const DRIVES_PRESERVE_STRATEGIES = [\n \"preserve-all\",\n \"preserve-by-url-and-detach\",\n] as const;\n\nexport const LOG_LEVELS = [\n \"debug\",\n \"info\",\n \"warn\",\n \"error\",\n \"verbose\",\n] as const;\n\nexport const DEFAULT_TIMEOUT = 300 as const;\n\nexport const DEFAULT_CONNECT_STUDIO_PORT = 3000 as const;\n\nexport const DEFAULT_VETRA_CONNECT_PORT = 3001 as const;\n\nexport const DEFAULT_CONNECT_PREVIEW_PORT = 4173 as const;\n\nexport const DEFAULT_CONNECT_OUTDIR = \".ph/connect-build/dist/\" as const;\n\nexport const DEFAULT_RENOWN_URL = \"https://www.renown.id\" as const;\n\nexport const DEFAULT_REGISTRY_URL = \"https://registry.dev.vetra.io\" as const;\n\nexport const DEFAULT_SWITCHBOARD_PORT = 4001 as const;\n\nexport const DEFAULT_VETRA_DRIVE_ID = \"vetra\" as const;\n\nexport const MINIMUM_NODE_VERSION = \"24.0.0\" as const;\nexport const PH_BIN = \"ph-cli-legacy\" as const;\nexport const POWERHOUSE_CONFIG_FILE = \"powerhouse.config.json\" as const;\nexport const PH_GLOBAL_DIR_NAME = \".ph\" as const;\n// Keep PH_GLOBAL_PROJECT_NAME for backwards compatibility\nexport const PH_GLOBAL_PROJECT_NAME = PH_GLOBAL_DIR_NAME;\n\nexport const HOME_DIR = homedir();\n\nexport const POWERHOUSE_GLOBAL_DIR = join(HOME_DIR, PH_GLOBAL_DIR_NAME);\n\n// Workspace packages that go in peerDependencies of every generated project.\nexport const VERSIONED_PEER_DEPENDENCIES = [\n \"document-model\",\n \"@powerhousedao/reactor-browser\",\n];\n\ntype PeerSpec = { peer: string; dev: string };\n\nexport const REACTOR_API_PACKAGE = \"@powerhousedao/reactor-api\";\nexport const ANALYTICS_ENGINE_CORE_PACKAGE =\n \"@powerhousedao/analytics-engine-core\";\nexport const GRAPHQL_PACKAGE = \"graphql\";\nexport const GRAPHQL_TAG_PACKAGE = \"graphql-tag\";\n\n// External peerDependencies of every generated project.\n// `peer` is the consumer-facing range; `dev` is the exact build-tested pin.\n// graphql / graphql-tag are always-on because the workspace packages pulled\n// in by every `ph init` project (codegen, reactor-api, reactor-browser,\n// vetra-packages) declare them as peers — even projects without subgraphs\n// need them in scope so pnpm hoists a single graphql instance.\nexport const PEER_EXTERNAL_DEPENDENCIES = {\n [GRAPHQL_PACKAGE]: { peer: \"^16\", dev: \"16.12.0\" },\n [GRAPHQL_TAG_PACKAGE]: { peer: \"^2\", dev: \"2.12.6\" },\n react: { peer: \"^19\", dev: \"19.2.3\" },\n \"react-dom\": { peer: \"^19\", dev: \"19.2.3\" },\n zod: { peer: \"^4\", dev: \"4.3.6\" },\n} as const satisfies Record<string, PeerSpec>;\n\n// Per-feature deps added dynamically by codegen when required.\nexport const FEATURE_DEPENDENCIES = {\n analyticsProcessor: {\n peerVersioned: [ANALYTICS_ENGINE_CORE_PACKAGE],\n peerExternal: {},\n },\n} as const satisfies Record<\n string,\n { peerVersioned: readonly string[]; peerExternal: Record<string, PeerSpec> }\n>;\n\nexport const VERSIONED_DEPENDENCIES = [\n ...VERSIONED_PEER_DEPENDENCIES,\n ...FEATURE_DEPENDENCIES.analyticsProcessor.peerVersioned,\n];\n\n// Transitive dependencies whose postinstall scripts the generated project\n// trusts. Mirrors the `allowBuilds` map in the boilerplate's\n// pnpm-workspace.yaml and is also passed as `--allow-build` flags to\n// `pnpm dlx @powerhousedao/ph-cli init` so pnpm 11's strict-dep-builds\n// default doesn't prompt during the outer dlx download.\nexport const BOILERPLATE_ALLOWED_BUILDS = [\n \"@apollo/protobufjs\",\n \"@datadog/pprof\",\n \"@parcel/watcher\",\n \"esbuild\",\n \"protobufjs\",\n] as const;\n\nexport const VERSIONED_DEV_DEPENDENCIES = [\n \"@powerhousedao/ph-cli\",\n \"@powerhousedao/reactor\",\n \"@powerhousedao/shared\",\n \"@powerhousedao/connect\",\n \"@powerhousedao/design-system\",\n];\n\nexport const packageJsonExports = {\n \".\": {\n types: \"./dist/types/index.d.ts\",\n browser: \"./dist/browser/index.js\",\n node: \"./dist/node/index.mjs\",\n },\n \"./document-models\": {\n types: \"./dist/types/document-models/index.d.ts\",\n browser: \"./dist/browser/document-models/index.js\",\n node: \"./dist/node/document-models/index.mjs\",\n },\n \"./document-models/*\": {\n types: \"./dist/types/document-models/*/index.d.ts\",\n browser: \"./dist/browser/document-models/*/index.js\",\n node: \"./dist/node/document-models/*/index.mjs\",\n },\n \"./editors\": {\n types: \"./dist/types/editors/index.d.ts\",\n browser: \"./dist/browser/editors/index.js\",\n node: \"./dist/node/editors/index.mjs\",\n },\n \"./editors/*\": {\n types: \"./dist/types/editors/*/editor.d.ts\",\n browser: \"./dist/browser/editors/*/editor.js\",\n node: \"./dist/node/editors/*/editor.mjs\",\n },\n \"./subgraphs\": {\n types: \"./dist/types/subgraphs/index.d.ts\",\n browser: \"./dist/browser/subgraphs/index.js\",\n node: \"./dist/node/subgraphs/index.mjs\",\n },\n \"./processors\": {\n types: \"./dist/types/processors/index.d.ts\",\n browser: \"./dist/browser/processors/index.js\",\n node: \"./dist/node/processors/index.mjs\",\n },\n \"./manifest\": \"./dist/powerhouse.manifest.json\",\n \"./style.css\": \"./dist/style.css\",\n} as const;\n\nexport const packageScripts = {\n \"test:watch\": \"vitest\",\n lint: \"eslint --config eslint.config.js --cache\",\n \"lint:fix\": \"npm run lint -- --fix\",\n tsc: \"tsc\",\n \"tsc:watch\": \"tsc --watch\",\n generate: \"ph-cli generate\",\n connect: \"ph-cli connect\",\n build: \"ph-cli build\",\n reactor: \"ph-cli reactor\",\n service: \"ph-cli service\",\n vetra: \"ph-cli vetra\",\n \"service-startup\":\n \"bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-startup.sh\",\n \"service-unstartup\":\n \"bash ./node_modules/@powerhousedao/ph-cli/dist/scripts/service-unstartup.sh\",\n} as const;\n\nexport const externalDependencies = {} as const;\n\nexport const externalDevDependencies = {\n \"@electric-sql/pglite\": \"0.3.15\",\n \"@electric-sql/pglite-tools\": \"0.2.20\",\n \"@eslint/js\": \"^9.38.0\",\n \"@powerhousedao/document-engineering\": \"1.40.5\",\n \"@tailwindcss/cli\": \"^4.1.18\",\n \"@tailwindcss/vite\": \"^4.1.18\",\n \"@types/node\": \"^24.9.2\",\n \"@types/react\": \"^19.2.3\",\n \"@types/react-dom\": \"^19.2.3\",\n \"@vitejs/plugin-react\": \"^6.0.1\",\n \"@vitest/coverage-v8\": \"4.1.1\",\n eslint: \"^9.38.0\",\n \"eslint-config-prettier\": \"^10.1.8\",\n \"eslint-plugin-prettier\": \"^5.5.4\",\n \"eslint-plugin-react\": \"^7.37.5\",\n \"eslint-plugin-react-hooks\": \"^7.0.1\",\n globals: \"^16.4.0\",\n tailwindcss: \"^4.1.16\",\n typescript: \"^5.9.3\",\n \"typescript-eslint\": \"^8.46.2\",\n vite: \"^8.0.8\",\n \"vite-tsconfig-paths\": \"6.1.1\",\n vitest: \"4.1.1\",\n} as const;\n\nexport const defaultManifest: Manifest = {\n name: \"\",\n description: \"\",\n category: \"\",\n publisher: {\n name: \"\",\n url: \"\",\n },\n documentModels: [],\n editors: [],\n apps: [],\n subgraphs: [],\n processors: [],\n};\n\nconst DEFAULT_DOCUMENT_MODELS_DIR = \"./document-models\";\nconst DEFAULT_EDITORS_DIR = \"./editors\";\nconst DEFAULT_PROCESSORS_DIR = \"./processors\";\nconst DEFAULT_SUBGRAPHS_DIR = \"./subgraphs\";\nconst DEFAULT_IMPORT_SCRIPTS_DIR = \"./scripts\";\nconst DEFAULT_SKIP_FORMAT = false;\nconst DEFAULT_LOG_LEVEL = \"info\";\n\nexport const DEFAULT_CONFIG: PowerhouseConfig = {\n documentModelsDir: DEFAULT_DOCUMENT_MODELS_DIR,\n editorsDir: DEFAULT_EDITORS_DIR,\n processorsDir: DEFAULT_PROCESSORS_DIR,\n subgraphsDir: DEFAULT_SUBGRAPHS_DIR,\n importScriptsDir: DEFAULT_IMPORT_SCRIPTS_DIR,\n skipFormat: DEFAULT_SKIP_FORMAT,\n logLevel: DEFAULT_LOG_LEVEL,\n auth: {\n enabled: false,\n admins: [],\n },\n};\n","import { readFileSync } from \"node:fs\";\nimport { DEFAULT_CONFIG } from \"../constants.js\";\nimport type { PowerhouseConfig } from \"../types.js\";\n\nexport function getConfig(path = \"./powerhouse.config.json\") {\n let config: PowerhouseConfig = { ...DEFAULT_CONFIG };\n try {\n const configStr = readFileSync(path, \"utf-8\");\n const userConfig = JSON.parse(configStr) as PowerhouseConfig;\n config = { ...config, ...userConfig };\n } catch {\n // console.warn(\"No powerhouse.config.json found, using defaults\");\n }\n\n return config;\n}\n","import {\n array,\n boolean,\n command,\n flag,\n multioption,\n number,\n oneOf,\n option,\n optional,\n string,\n} from \"cmd-ts\";\n// Sub-path: avoids pulling the package-manager-detector runtime here,\n// which `oneOf(AGENTS)` below would force at module load.\nimport type { Agent } from \"package-manager-detector\";\nimport { AGENTS as _AGENTS } from \"package-manager-detector/constants\";\nimport {\n DEFAULT_TIMEOUT,\n DRIVES_PRESERVE_STRATEGIES,\n LOG_LEVELS,\n} from \"../constants.js\";\nimport { getConfig } from \"../file-system/get-config.js\";\n\nexport const AGENTS: Agent[] = _AGENTS;\n\nexport const debugArgs = {\n debug: flag({\n type: optional(boolean),\n long: \"debug\",\n description: \"Log arguments passed to this command\",\n }),\n};\n\nexport const buildArgs = {\n outDir: option({\n type: string,\n long: \"out-dir\",\n description: \"Where to output the bundled code\",\n defaultValue: () => \"dist\" as const,\n defaultValueIsSerializable: true,\n }),\n ...debugArgs,\n};\n\nexport const packageManagerArgs = {\n packageManager: option({\n type: optional(oneOf(AGENTS)),\n long: \"package-manager\",\n short: \"p\",\n description:\n \"Specify the package manager to use for your project. Can be one of: `npm`, `pnpm`, `yarn`, or `bun`. Defaults to your environment package manager.\",\n }),\n npm: flag({\n type: optional(boolean),\n long: \"npm\",\n description: \"Use 'npm' as package manager\",\n }),\n pnpm: flag({\n type: optional(boolean),\n long: \"pnpm\",\n description: \"Use 'pnpm' as package manager\",\n }),\n yarn: flag({\n type: optional(boolean),\n long: \"yarn\",\n description: \"Use 'yarn' as package manager\",\n }),\n bun: flag({\n type: optional(boolean),\n long: \"bun\",\n description: \"Use 'bun' as package manager\",\n }),\n};\nexport const getPackageManagerCommand = command({\n name: \"get-package-manager\",\n args: packageManagerArgs,\n handler: (args) => args,\n});\nexport const packages = option({\n type: optional(string),\n long: \"packages\",\n description: \"Comma-separated list of package names to load\",\n env: \"PH_PACKAGES\" as const,\n});\n\nexport const localPackage = option({\n type: optional(string),\n long: \"local-package\",\n description: \"Path to local package to load during development\",\n env: \"PH_LOCAL_PACKAGE\" as const,\n});\n\nexport const disableLocalPackages = flag({\n type: boolean,\n long: \"ignore-local\",\n description: \"Do not load local packages from this project\",\n defaultValue: () => false,\n env: \"PH_DISABLE_LOCAL_PACKAGE\" as const,\n});\n\nexport const httpsKeyFile = option({\n type: optional(string),\n long: \"https-key-file\",\n description: \"path to the ssl key file\",\n defaultValue: () => {\n const baseConfig = getConfig();\n const https = baseConfig.reactor?.https;\n if (https === undefined) return undefined;\n if (typeof https === \"boolean\") return undefined;\n return https.keyPath;\n },\n});\n\nexport const httpsCertFile = option({\n type: optional(string),\n long: \"https-cert-file\",\n description: \"path to the ssl cert file\",\n defaultValue: () => {\n const baseConfig = getConfig();\n const https = baseConfig.reactor?.https;\n if (https === undefined) return undefined;\n if (typeof https === \"boolean\") return undefined;\n return https.certPath;\n },\n});\n\nexport const https = flag({\n type: optional(boolean),\n long: \"https\",\n description: \"Use https\",\n defaultValue: () => {\n const baseConfig = getConfig();\n const https = baseConfig.reactor?.https;\n if (typeof https === \"boolean\") return https;\n return undefined;\n },\n});\n\nexport const vetraSwitchboardArgs = {\n https,\n httpsKeyFile,\n httpsCertFile,\n dev: flag({\n type: optional(boolean),\n long: \"dev\",\n description: \"enable development mode to load local packages\",\n }),\n remoteDrives: multioption({\n type: array(string),\n long: \"remote-drives\",\n description: \"Specify remote drive URLs to use\",\n defaultValue: () => [],\n }),\n disableLocalPackages,\n ...debugArgs,\n};\n\nexport const defaultDrivesUrl = option({\n type: optional(string),\n long: \"default-drives-url\",\n description: \"The default drives url to use in connect\",\n env: \"PH_CONNECT_DEFAULT_DRIVES_URL\" as const,\n defaultValue: () => \"\",\n});\n\nexport const logLevel = option({\n type: oneOf(LOG_LEVELS),\n long: \"log-level\",\n description: \"Log level for the application\",\n defaultValue: () => \"info\" as const,\n defaultValueIsSerializable: true,\n env: \"PH_CONNECT_LOG_LEVEL\" as const,\n});\n\nexport const connectBasePath = option({\n long: \"base\",\n type: string,\n description: \"Base path for the app\",\n env: \"PH_CONNECT_BASE_PATH\" as const,\n defaultValue: () => \"/\",\n});\n\nexport const drivesPreserveStrategy = option({\n type: oneOf(DRIVES_PRESERVE_STRATEGIES),\n long: \"drive-preserve-strategy\",\n description: \"The preservation strategy to use on default drives\",\n defaultValue: () => \"preserve-by-url-and-detach\" as const,\n defaultValueIsSerializable: true,\n env: \"PH_CONNECT_DRIVES_PRESERVE_STRATEGY\" as const,\n});\n\nexport const force = flag({\n type: optional(boolean),\n long: \"force\",\n description:\n \"Force dep pre-optimization regardless of whether deps have changed.\",\n});\n\nexport const commonArgs = {\n connectBasePath,\n logLevel,\n packages,\n localPackage,\n disableLocalPackages,\n defaultDrivesUrl,\n drivesPreserveStrategy,\n force,\n ...debugArgs,\n};\n\nexport const commonServerArgs = {\n host: option({\n type: optional(string),\n long: \"host\",\n description:\n \"Expose the server to the network. Pass an IP (e.g. 0.0.0.0) to bind to a specific address.\",\n }),\n open: flag({\n type: optional(boolean),\n long: \"open\",\n description: \"Open browser on startup\",\n }),\n cors: flag({\n type: optional(boolean),\n long: \"cors\",\n description: \"Enable CORS\",\n }),\n strictPort: flag({\n type: optional(boolean),\n long: \"strictPort\",\n description: \"Exit if specified port is already in use\",\n }),\n printUrls: flag({\n type: boolean,\n long: \"print-urls\",\n description: \"Print server urls\",\n defaultValue: () => true,\n defaultValueIsSerializable: true,\n }),\n bindCLIShortcuts: flag({\n type: boolean,\n long: \"bind-cli-shortcuts\",\n description: \"Bind CLI shortcuts\",\n defaultValue: () => true,\n defaultValueIsSerializable: true,\n }),\n watchTimeout: option({\n type: number,\n long: \"watch-timeout\",\n description: \"Amount of time to wait before a file is considered changed\",\n defaultValue: () => DEFAULT_TIMEOUT,\n defaultValueIsSerializable: true,\n env: \"PH_WATCH_TIMEOUT\" as const,\n }),\n};\n"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- import { _ as packageManagerArgs, a as connectBasePath, c as disableLocalPackages, d as getPackageManagerCommand, f as https, g as logLevel, h as localPackage, i as commonServerArgs, l as drivesPreserveStrategy, m as httpsKeyFile, n as buildArgs, o as debugArgs, p as httpsCertFile, r as commonArgs, s as defaultDrivesUrl, t as AGENTS, u as force, v as packages, y as vetraSwitchboardArgs } from "./common-Bc8EcW9w.mjs";
1
+ import { _ as packageManagerArgs, a as connectBasePath, c as disableLocalPackages, d as getPackageManagerCommand, f as https, g as logLevel, h as localPackage, i as commonServerArgs, l as drivesPreserveStrategy, m as httpsKeyFile, n as buildArgs, o as debugArgs, p as httpsCertFile, r as commonArgs, s as defaultDrivesUrl, t as AGENTS, u as force, v as packages, y as vetraSwitchboardArgs } from "./common-DPYlcz-d.mjs";
2
2
  export { AGENTS, buildArgs, commonArgs, commonServerArgs, connectBasePath, debugArgs, defaultDrivesUrl, disableLocalPackages, drivesPreserveStrategy, force, getPackageManagerCommand, https, httpsCertFile, httpsKeyFile, localPackage, logLevel, packageManagerArgs, packages, vetraSwitchboardArgs };
@@ -1,4 +1,4 @@
1
- import { C as DEFAULT_CONNECT_STUDIO_PORT, S as DEFAULT_CONNECT_PREVIEW_PORT, i as commonServerArgs, r as commonArgs, x as DEFAULT_CONNECT_OUTDIR } from "./common-Bc8EcW9w.mjs";
1
+ import { C as DEFAULT_CONNECT_STUDIO_PORT, S as DEFAULT_CONNECT_PREVIEW_PORT, i as commonServerArgs, r as commonArgs, x as DEFAULT_CONNECT_OUTDIR } from "./common-DPYlcz-d.mjs";
2
2
  import { number, option, string } from "cmd-ts";
3
3
  //#region clis/args/connect.ts
4
4
  const connectStudioArgs = {
@@ -1,4 +1,4 @@
1
- import { o as debugArgs } from "./common-Bc8EcW9w.mjs";
1
+ import { o as debugArgs } from "./common-DPYlcz-d.mjs";
2
2
  import { array, boolean, flag, multioption, oneOf, option, optional, positional, string } from "cmd-ts";
3
3
  //#region processors/constants.ts
4
4
  const PROCESSOR_APPS = ["connect", "switchboard"];
@@ -150,4 +150,4 @@ const generateArgs = {
150
150
  //#endregion
151
151
  export { generateArgs as t };
152
152
 
153
- //# sourceMappingURL=generate-DNGRYRdp.mjs.map
153
+ //# sourceMappingURL=generate-BJPBa0mK.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-DNGRYRdp.mjs","names":[],"sources":["../../../processors/constants.ts","../../../clis/args/generate.ts"],"sourcesContent":["export const PROCESSOR_APPS = [\"connect\", \"switchboard\"] as const;\nexport const DEFAULT_RELATIONAL_PROCESSOR_DB_NAME = \"relational-db\";\nexport const DEFAULT_ANALYTICS_PROCESSOR_DB_NAME = \"analytics-db\";\n","import type { Type } from \"cmd-ts\";\nimport {\n array,\n boolean,\n flag,\n multioption,\n oneOf,\n option,\n optional,\n positional,\n string,\n} from \"cmd-ts\";\nimport { PROCESSOR_APPS } from \"processors\";\nimport { debugArgs } from \"./common.js\";\n\nconst ProcessorAppType: Type<string[], (\"connect\" | \"switchboard\")[]> = {\n from(processorApps) {\n if (processorApps.length === 0) {\n throw new Error(\n `No arguments provided for processor apps. Must be \"connect\" and/or \"switchboard\"`,\n );\n }\n if (processorApps.length > 2) {\n throw new Error(\n `Too many arguments provided for processor apps. Must be \"connect\" and/or \"switchboard\"`,\n );\n }\n const allowed = new Set(PROCESSOR_APPS);\n if (\n !processorApps.every((p) => allowed.has(p as \"connect\" | \"switchboard\"))\n ) {\n throw new Error(\n `Processor apps can only be \"connect\" and/or \"switchboard\".`,\n );\n }\n return Promise.resolve(processorApps as (\"connect\" | \"switchboard\")[]);\n },\n};\n\nexport const generateArgs = {\n documentModelFilePositional: positional({\n type: optional(string),\n displayName: \"document model file path\",\n description: \"Path to the document model file.\",\n }),\n documentModelFileOption: option({\n type: optional(string),\n long: \"file\",\n description: \"Path to the document model file.\",\n }),\n editorName: option({\n type: optional(string),\n long: \"editor\",\n description: \"Editor name.\",\n }),\n editorId: option({\n type: optional(string),\n long: \"editor-id\",\n description: \"Editor ID\",\n }),\n editorDirName: option({\n type: optional(string),\n long: \"editor-dir-name\",\n description:\n \"Use a different directory name for the generated editor. Default is the editor name in kebab case.\",\n }),\n documentType: option({\n type: optional(string),\n long: \"document-type\",\n description: \"Document type for the generated document editor.\",\n }),\n documentTypes: option({\n type: optional(string),\n long: \"document-types\",\n description:\n \"[DEPRECATED] Comma separated list of document types for the generated document editor. [WARNING] Generated editor code is not set up to handle multiple document types.\",\n }),\n appName: option({\n type: optional(string),\n long: \"app\",\n description: \"App name.\",\n }),\n appId: option({\n type: optional(string),\n long: \"app-id\",\n description: \"App ID.\",\n }),\n appDirName: option({\n type: optional(string),\n long: \"app-dir-name\",\n description:\n \"Use a different directory name for the generated app. Default is the app name in kebab case.\",\n }),\n processorName: option({\n type: optional(string),\n long: \"processor\",\n description: \"Processor name.\",\n }),\n processorType: option({\n type: oneOf([\"relationalDb\", \"analytics\"] as const),\n long: \"processor-type\",\n description:\n \"Whether to generate an analytics processor or a relational DB processor. Default is analytics.\",\n defaultValue: () => \"analytics\" as const,\n defaultValueIsSerializable: true,\n }),\n processorApps: multioption({\n long: \"processor-apps\",\n type: ProcessorAppType,\n description: \"The apps where the generated processor will run\",\n defaultValue: () => [\"switchboard\" as const],\n defaultValueIsSerializable: true,\n }),\n subgraphName: option({\n type: optional(string),\n long: \"subgraph\",\n description: \"Subgraph name.\",\n }),\n importScriptName: option({\n type: optional(string),\n long: \"import-script\",\n description: \"Import script name.\",\n }),\n allowedDocumentTypes: multioption({\n type: optional(array(string)),\n long: \"allowed-document-types\",\n description: \"Supported document types for a app.\",\n }),\n migrationFile: option({\n type: optional(string),\n long: \"migration-file\",\n description: \"Path to the migration file.\",\n }),\n schemaFile: option({\n type: optional(string),\n long: \"schema-file\",\n description: \"Path to the output file. Defaults to './schema.ts'\",\n }),\n disableDragAndDrop: flag({\n type: optional(boolean),\n long: \"disable-drag-and-drop\",\n description: \"Disable drag and drop in the generated app.\",\n }),\n force: flag({\n type: optional(boolean),\n long: \"force\",\n short: \"f\",\n description: \"Overwrite operation reducers.\",\n }),\n verbose: flag({\n type: optional(boolean),\n long: \"logs\",\n description: \"Show additional logging information.\",\n }),\n watch: flag({\n type: optional(boolean),\n long: \"watch\",\n short: \"w\",\n description: \"Watch the generated code.\",\n }),\n skipFormat: flag({\n type: optional(boolean),\n long: \"skip-format\",\n short: \"sf\",\n description: \"Skip formatting the generated code.\",\n }),\n useVersioning: flag({\n type: boolean,\n long: \"use-versioning\",\n description: \"Allow upgrading document models with versioning.\",\n defaultValue: () => true,\n defaultValueIsSerializable: true,\n }),\n migrateLegacy: flag({\n type: boolean,\n long: \"migrate-legacy\",\n description:\n \"Migrate existing legacy document model code to versioned structure. Implies --use-versioning.\",\n defaultValue: () => false,\n defaultValueIsSerializable: true,\n }),\n ...debugArgs,\n};\n"],"mappings":"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"}
1
+ {"version":3,"file":"generate-BJPBa0mK.mjs","names":[],"sources":["../../../processors/constants.ts","../../../clis/args/generate.ts"],"sourcesContent":["export const PROCESSOR_APPS = [\"connect\", \"switchboard\"] as const;\nexport const DEFAULT_RELATIONAL_PROCESSOR_DB_NAME = \"relational-db\";\nexport const DEFAULT_ANALYTICS_PROCESSOR_DB_NAME = \"analytics-db\";\n","import type { Type } from \"cmd-ts\";\nimport {\n array,\n boolean,\n flag,\n multioption,\n oneOf,\n option,\n optional,\n positional,\n string,\n} from \"cmd-ts\";\nimport { PROCESSOR_APPS } from \"processors\";\nimport { debugArgs } from \"./common.js\";\n\nconst ProcessorAppType: Type<string[], (\"connect\" | \"switchboard\")[]> = {\n from(processorApps) {\n if (processorApps.length === 0) {\n throw new Error(\n `No arguments provided for processor apps. Must be \"connect\" and/or \"switchboard\"`,\n );\n }\n if (processorApps.length > 2) {\n throw new Error(\n `Too many arguments provided for processor apps. Must be \"connect\" and/or \"switchboard\"`,\n );\n }\n const allowed = new Set(PROCESSOR_APPS);\n if (\n !processorApps.every((p) => allowed.has(p as \"connect\" | \"switchboard\"))\n ) {\n throw new Error(\n `Processor apps can only be \"connect\" and/or \"switchboard\".`,\n );\n }\n return Promise.resolve(processorApps as (\"connect\" | \"switchboard\")[]);\n },\n};\n\nexport const generateArgs = {\n documentModelFilePositional: positional({\n type: optional(string),\n displayName: \"document model file path\",\n description: \"Path to the document model file.\",\n }),\n documentModelFileOption: option({\n type: optional(string),\n long: \"file\",\n description: \"Path to the document model file.\",\n }),\n editorName: option({\n type: optional(string),\n long: \"editor\",\n description: \"Editor name.\",\n }),\n editorId: option({\n type: optional(string),\n long: \"editor-id\",\n description: \"Editor ID\",\n }),\n editorDirName: option({\n type: optional(string),\n long: \"editor-dir-name\",\n description:\n \"Use a different directory name for the generated editor. Default is the editor name in kebab case.\",\n }),\n documentType: option({\n type: optional(string),\n long: \"document-type\",\n description: \"Document type for the generated document editor.\",\n }),\n documentTypes: option({\n type: optional(string),\n long: \"document-types\",\n description:\n \"[DEPRECATED] Comma separated list of document types for the generated document editor. [WARNING] Generated editor code is not set up to handle multiple document types.\",\n }),\n appName: option({\n type: optional(string),\n long: \"app\",\n description: \"App name.\",\n }),\n appId: option({\n type: optional(string),\n long: \"app-id\",\n description: \"App ID.\",\n }),\n appDirName: option({\n type: optional(string),\n long: \"app-dir-name\",\n description:\n \"Use a different directory name for the generated app. Default is the app name in kebab case.\",\n }),\n processorName: option({\n type: optional(string),\n long: \"processor\",\n description: \"Processor name.\",\n }),\n processorType: option({\n type: oneOf([\"relationalDb\", \"analytics\"] as const),\n long: \"processor-type\",\n description:\n \"Whether to generate an analytics processor or a relational DB processor. Default is analytics.\",\n defaultValue: () => \"analytics\" as const,\n defaultValueIsSerializable: true,\n }),\n processorApps: multioption({\n long: \"processor-apps\",\n type: ProcessorAppType,\n description: \"The apps where the generated processor will run\",\n defaultValue: () => [\"switchboard\" as const],\n defaultValueIsSerializable: true,\n }),\n subgraphName: option({\n type: optional(string),\n long: \"subgraph\",\n description: \"Subgraph name.\",\n }),\n importScriptName: option({\n type: optional(string),\n long: \"import-script\",\n description: \"Import script name.\",\n }),\n allowedDocumentTypes: multioption({\n type: optional(array(string)),\n long: \"allowed-document-types\",\n description: \"Supported document types for a app.\",\n }),\n migrationFile: option({\n type: optional(string),\n long: \"migration-file\",\n description: \"Path to the migration file.\",\n }),\n schemaFile: option({\n type: optional(string),\n long: \"schema-file\",\n description: \"Path to the output file. Defaults to './schema.ts'\",\n }),\n disableDragAndDrop: flag({\n type: optional(boolean),\n long: \"disable-drag-and-drop\",\n description: \"Disable drag and drop in the generated app.\",\n }),\n force: flag({\n type: optional(boolean),\n long: \"force\",\n short: \"f\",\n description: \"Overwrite operation reducers.\",\n }),\n verbose: flag({\n type: optional(boolean),\n long: \"logs\",\n description: \"Show additional logging information.\",\n }),\n watch: flag({\n type: optional(boolean),\n long: \"watch\",\n short: \"w\",\n description: \"Watch the generated code.\",\n }),\n skipFormat: flag({\n type: optional(boolean),\n long: \"skip-format\",\n short: \"sf\",\n description: \"Skip formatting the generated code.\",\n }),\n useVersioning: flag({\n type: boolean,\n long: \"use-versioning\",\n description: \"Allow upgrading document models with versioning.\",\n defaultValue: () => true,\n defaultValueIsSerializable: true,\n }),\n migrateLegacy: flag({\n type: boolean,\n long: \"migrate-legacy\",\n description:\n \"Migrate existing legacy document model code to versioned structure. Implies --use-versioning.\",\n defaultValue: () => false,\n defaultValueIsSerializable: true,\n }),\n ...debugArgs,\n};\n"],"mappings":"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"}
@@ -1,2 +1,2 @@
1
- import { t as generateArgs } from "./generate-DNGRYRdp.mjs";
1
+ import { t as generateArgs } from "./generate-BJPBa0mK.mjs";
2
2
  export { generateArgs };
@@ -1,7 +1,7 @@
1
- import { o as debugArgs } from "./common-Bc8EcW9w.mjs";
1
+ import { o as debugArgs } from "./common-DPYlcz-d.mjs";
2
2
  import { accessTokenArgs } from "./access-token.mjs";
3
3
  import { connectArgs } from "./connect.mjs";
4
- import { t as generateArgs } from "./generate-DNGRYRdp.mjs";
4
+ import { t as generateArgs } from "./generate-BJPBa0mK.mjs";
5
5
  import { inspectArgs } from "./inspect.mjs";
6
6
  import { installArgs } from "./install.mjs";
7
7
  import { listArgs } from "./list.mjs";
@@ -149,4 +149,4 @@ const phCliHelpCommands = {
149
149
  //#endregion
150
150
  export { phCliCommandNames as n, phCliHelpCommands as t };
151
151
 
152
- //# sourceMappingURL=help-CFAVJzhI.mjs.map
152
+ //# sourceMappingURL=help-rztSuf9S.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"help-CFAVJzhI.mjs","names":[],"sources":["../../../clis/command-names.ts","../../../clis/args/help.ts"],"sourcesContent":["// Hardcoded so ph-cmd's dispatch doesn't have to evaluate phCliHelpCommands.\n// The compile-time guard in args/help.ts catches drift.\nexport const phCliCommandNames = [\n \"generate\",\n \"vetra\",\n \"connect\",\n \"build\",\n \"publish\",\n \"list\",\n \"l\",\n \"access-token\",\n \"registry-login\",\n \"inspect\",\n \"is\",\n \"migrate\",\n \"switchboard\",\n \"reactor\",\n \"login\",\n \"logout\",\n \"install\",\n \"add\",\n \"i\",\n \"uninstall\",\n \"remove\",\n] as const;\n","import { command } from \"cmd-ts\";\nimport type { phCliCommandNames } from \"../command-names.js\";\nimport { accessTokenArgs } from \"./access-token.js\";\nimport { debugArgs } from \"./common.js\";\nimport { connectArgs } from \"./connect.js\";\nimport { generateArgs } from \"./generate.js\";\nimport { inspectArgs } from \"./inspect.js\";\nimport { installArgs } from \"./install.js\";\nimport { listArgs } from \"./list.js\";\nimport { loginArgs } from \"./login.js\";\nimport { migrateArgs } from \"./migrate.js\";\nimport { publishArgs } from \"./publish.js\";\nimport { registryLoginArgs } from \"./registry.js\";\nimport { switchboardArgs } from \"./switchboard.js\";\nimport { uninstallArgs } from \"./uninstall.js\";\nimport { vetraArgs } from \"./vetra.js\";\n\n// Thin wrapper around `command()` that preserves the literal types of\n// `name` and `aliases` on the return value.\nfunction helpCommand<\n const N extends string,\n const A extends readonly string[] = readonly [],\n>(\n config: Parameters<typeof command>[0] & { name: N; aliases?: A },\n): ReturnType<typeof command> & { readonly name: N; readonly aliases: A } {\n const aliases = (config.aliases ?? ([] as readonly string[])) as A;\n // Forward the original config (with the normalized aliases) through cmd-ts\n // and re-attach the literal types via a localized cast.\n return Object.assign(command({ ...config, aliases: [...aliases] }), {\n name: config.name,\n aliases,\n }) as ReturnType<typeof command> & {\n readonly name: N;\n readonly aliases: A;\n };\n}\n\nexport const phCliHelpCommands = {\n generate: helpCommand({\n name: \"generate\",\n args: generateArgs,\n description: \"Generate powerhouse code\",\n handler: () => {},\n }),\n vetra: helpCommand({\n name: \"vetra\",\n args: vetraArgs,\n description:\n \"Starts Vetra development environment with switchboard, reactor, and connect\",\n handler: () => {},\n }),\n connect: helpCommand({\n name: \"connect\",\n args: connectArgs,\n description: \"Powerhouse Connect commands\",\n handler: () => {},\n }),\n build: helpCommand({\n name: \"build\",\n args: debugArgs,\n description: \"Build your project for publishing to the registry\",\n handler: () => {},\n }),\n publish: helpCommand({\n name: \"publish\",\n args: publishArgs,\n description: \"Publish a package to the Powerhouse registry\",\n handler: () => {},\n }),\n list: helpCommand({\n name: \"list\",\n aliases: [\"l\"],\n args: listArgs,\n description: \"List installed packages\",\n handler: () => {},\n }),\n \"access-token\": helpCommand({\n name: \"access-token\",\n args: accessTokenArgs,\n description: \"Generate a bearer token for API authentication\",\n handler: () => {},\n }),\n \"registry-login\": helpCommand({\n name: \"registry-login\",\n args: registryLoginArgs,\n description:\n \"Log in to a Powerhouse registry (writes a Renown bearer token to ~/.npmrc)\",\n handler: () => {},\n }),\n inspect: helpCommand({\n name: \"inspect\",\n aliases: [\"is\"],\n args: inspectArgs,\n description: \"Inspect a package\",\n handler: () => {},\n }),\n migrate: helpCommand({\n name: \"migrate\",\n args: migrateArgs,\n description: \"Run migrations\",\n handler: () => {},\n }),\n switchboard: helpCommand({\n name: \"switchboard\",\n aliases: [\"reactor\"],\n args: switchboardArgs,\n description: \"Starts local Switchboard\",\n handler: () => {},\n }),\n login: helpCommand({\n name: \"login\",\n args: loginArgs,\n description: \"Authenticate with Renown using your Ethereum wallet\",\n handler: () => {},\n }),\n logout: helpCommand({\n name: \"logout\",\n args: loginArgs,\n description: \"Deletes an existing session created with 'ph login'\",\n handler: () => {},\n }),\n install: helpCommand({\n name: \"install\",\n aliases: [\"add\", \"i\"],\n args: installArgs,\n description: \"Install a Powerhouse dependency\",\n handler: () => {},\n }),\n uninstall: helpCommand({\n name: \"uninstall\",\n aliases: [\"remove\"],\n args: uninstallArgs,\n description: \"Uninstall a Powerhouse dependency\",\n handler: () => {},\n }),\n};\n\nexport { phCliCommandNames } from \"../command-names.js\";\n\n// Compile-time drift guard: phCliCommandNames must match the names+aliases\n// declared above. If you add or rename a command/alias, the type of\n// `_DerivedNames` changes and the assignment below errors until\n// `command-names.ts` is updated to match. Costs nothing at runtime.\ntype _DerivedNames = {\n [K in keyof typeof phCliHelpCommands]:\n | (typeof phCliHelpCommands)[K][\"name\"]\n | (typeof phCliHelpCommands)[K][\"aliases\"][number];\n}[keyof typeof phCliHelpCommands];\n\ntype _Names = (typeof phCliCommandNames)[number];\n\ntype _Equal<A, B> =\n (<T>() => T extends A ? 1 : 2) extends <T>() => T extends B ? 1 : 2\n ? true\n : false;\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst _phCliCommandNamesInSync: _Equal<_DerivedNames, _Names> extends true\n ? true\n : never = true;\n"],"mappings":";;;;;;;;;;;;;;;;AAEA,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;;ACLD,SAAS,YAIP,QACwE;CACxE,MAAM,UAAW,OAAO,WAAY,EAAE;AAGtC,QAAO,OAAO,OAAO,QAAQ;EAAE,GAAG;EAAQ,SAAS,CAAC,GAAG,QAAQ;EAAE,CAAC,EAAE;EAClE,MAAM,OAAO;EACb;EACD,CAAC;;AAMJ,MAAa,oBAAoB;CAC/B,UAAU,YAAY;EACpB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,OAAO,YAAY;EACjB,MAAM;EACN,MAAM;EACN,aACE;EACF,eAAe;EAChB,CAAC;CACF,SAAS,YAAY;EACnB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,OAAO,YAAY;EACjB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,SAAS,YAAY;EACnB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,MAAM,YAAY;EAChB,MAAM;EACN,SAAS,CAAC,IAAI;EACd,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,gBAAgB,YAAY;EAC1B,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,kBAAkB,YAAY;EAC5B,MAAM;EACN,MAAM;EACN,aACE;EACF,eAAe;EAChB,CAAC;CACF,SAAS,YAAY;EACnB,MAAM;EACN,SAAS,CAAC,KAAK;EACf,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,SAAS,YAAY;EACnB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,aAAa,YAAY;EACvB,MAAM;EACN,SAAS,CAAC,UAAU;EACpB,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,OAAO,YAAY;EACjB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,QAAQ,YAAY;EAClB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,SAAS,YAAY;EACnB,MAAM;EACN,SAAS,CAAC,OAAO,IAAI;EACrB,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,WAAW,YAAY;EACrB,MAAM;EACN,SAAS,CAAC,SAAS;EACnB,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACH"}
1
+ {"version":3,"file":"help-rztSuf9S.mjs","names":[],"sources":["../../../clis/command-names.ts","../../../clis/args/help.ts"],"sourcesContent":["// Hardcoded so ph-cmd's dispatch doesn't have to evaluate phCliHelpCommands.\n// The compile-time guard in args/help.ts catches drift.\nexport const phCliCommandNames = [\n \"generate\",\n \"vetra\",\n \"connect\",\n \"build\",\n \"publish\",\n \"list\",\n \"l\",\n \"access-token\",\n \"registry-login\",\n \"inspect\",\n \"is\",\n \"migrate\",\n \"switchboard\",\n \"reactor\",\n \"login\",\n \"logout\",\n \"install\",\n \"add\",\n \"i\",\n \"uninstall\",\n \"remove\",\n] as const;\n","import { command } from \"cmd-ts\";\nimport type { phCliCommandNames } from \"../command-names.js\";\nimport { accessTokenArgs } from \"./access-token.js\";\nimport { debugArgs } from \"./common.js\";\nimport { connectArgs } from \"./connect.js\";\nimport { generateArgs } from \"./generate.js\";\nimport { inspectArgs } from \"./inspect.js\";\nimport { installArgs } from \"./install.js\";\nimport { listArgs } from \"./list.js\";\nimport { loginArgs } from \"./login.js\";\nimport { migrateArgs } from \"./migrate.js\";\nimport { publishArgs } from \"./publish.js\";\nimport { registryLoginArgs } from \"./registry.js\";\nimport { switchboardArgs } from \"./switchboard.js\";\nimport { uninstallArgs } from \"./uninstall.js\";\nimport { vetraArgs } from \"./vetra.js\";\n\n// Thin wrapper around `command()` that preserves the literal types of\n// `name` and `aliases` on the return value.\nfunction helpCommand<\n const N extends string,\n const A extends readonly string[] = readonly [],\n>(\n config: Parameters<typeof command>[0] & { name: N; aliases?: A },\n): ReturnType<typeof command> & { readonly name: N; readonly aliases: A } {\n const aliases = (config.aliases ?? ([] as readonly string[])) as A;\n // Forward the original config (with the normalized aliases) through cmd-ts\n // and re-attach the literal types via a localized cast.\n return Object.assign(command({ ...config, aliases: [...aliases] }), {\n name: config.name,\n aliases,\n }) as ReturnType<typeof command> & {\n readonly name: N;\n readonly aliases: A;\n };\n}\n\nexport const phCliHelpCommands = {\n generate: helpCommand({\n name: \"generate\",\n args: generateArgs,\n description: \"Generate powerhouse code\",\n handler: () => {},\n }),\n vetra: helpCommand({\n name: \"vetra\",\n args: vetraArgs,\n description:\n \"Starts Vetra development environment with switchboard, reactor, and connect\",\n handler: () => {},\n }),\n connect: helpCommand({\n name: \"connect\",\n args: connectArgs,\n description: \"Powerhouse Connect commands\",\n handler: () => {},\n }),\n build: helpCommand({\n name: \"build\",\n args: debugArgs,\n description: \"Build your project for publishing to the registry\",\n handler: () => {},\n }),\n publish: helpCommand({\n name: \"publish\",\n args: publishArgs,\n description: \"Publish a package to the Powerhouse registry\",\n handler: () => {},\n }),\n list: helpCommand({\n name: \"list\",\n aliases: [\"l\"],\n args: listArgs,\n description: \"List installed packages\",\n handler: () => {},\n }),\n \"access-token\": helpCommand({\n name: \"access-token\",\n args: accessTokenArgs,\n description: \"Generate a bearer token for API authentication\",\n handler: () => {},\n }),\n \"registry-login\": helpCommand({\n name: \"registry-login\",\n args: registryLoginArgs,\n description:\n \"Log in to a Powerhouse registry (writes a Renown bearer token to ~/.npmrc)\",\n handler: () => {},\n }),\n inspect: helpCommand({\n name: \"inspect\",\n aliases: [\"is\"],\n args: inspectArgs,\n description: \"Inspect a package\",\n handler: () => {},\n }),\n migrate: helpCommand({\n name: \"migrate\",\n args: migrateArgs,\n description: \"Run migrations\",\n handler: () => {},\n }),\n switchboard: helpCommand({\n name: \"switchboard\",\n aliases: [\"reactor\"],\n args: switchboardArgs,\n description: \"Starts local Switchboard\",\n handler: () => {},\n }),\n login: helpCommand({\n name: \"login\",\n args: loginArgs,\n description: \"Authenticate with Renown using your Ethereum wallet\",\n handler: () => {},\n }),\n logout: helpCommand({\n name: \"logout\",\n args: loginArgs,\n description: \"Deletes an existing session created with 'ph login'\",\n handler: () => {},\n }),\n install: helpCommand({\n name: \"install\",\n aliases: [\"add\", \"i\"],\n args: installArgs,\n description: \"Install a Powerhouse dependency\",\n handler: () => {},\n }),\n uninstall: helpCommand({\n name: \"uninstall\",\n aliases: [\"remove\"],\n args: uninstallArgs,\n description: \"Uninstall a Powerhouse dependency\",\n handler: () => {},\n }),\n};\n\nexport { phCliCommandNames } from \"../command-names.js\";\n\n// Compile-time drift guard: phCliCommandNames must match the names+aliases\n// declared above. If you add or rename a command/alias, the type of\n// `_DerivedNames` changes and the assignment below errors until\n// `command-names.ts` is updated to match. Costs nothing at runtime.\ntype _DerivedNames = {\n [K in keyof typeof phCliHelpCommands]:\n | (typeof phCliHelpCommands)[K][\"name\"]\n | (typeof phCliHelpCommands)[K][\"aliases\"][number];\n}[keyof typeof phCliHelpCommands];\n\ntype _Names = (typeof phCliCommandNames)[number];\n\ntype _Equal<A, B> =\n (<T>() => T extends A ? 1 : 2) extends <T>() => T extends B ? 1 : 2\n ? true\n : false;\n\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nconst _phCliCommandNamesInSync: _Equal<_DerivedNames, _Names> extends true\n ? true\n : never = true;\n"],"mappings":";;;;;;;;;;;;;;;;AAEA,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;;;ACLD,SAAS,YAIP,QACwE;CACxE,MAAM,UAAW,OAAO,WAAY,EAAE;AAGtC,QAAO,OAAO,OAAO,QAAQ;EAAE,GAAG;EAAQ,SAAS,CAAC,GAAG,QAAQ;EAAE,CAAC,EAAE;EAClE,MAAM,OAAO;EACb;EACD,CAAC;;AAMJ,MAAa,oBAAoB;CAC/B,UAAU,YAAY;EACpB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,OAAO,YAAY;EACjB,MAAM;EACN,MAAM;EACN,aACE;EACF,eAAe;EAChB,CAAC;CACF,SAAS,YAAY;EACnB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,OAAO,YAAY;EACjB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,SAAS,YAAY;EACnB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,MAAM,YAAY;EAChB,MAAM;EACN,SAAS,CAAC,IAAI;EACd,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,gBAAgB,YAAY;EAC1B,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,kBAAkB,YAAY;EAC5B,MAAM;EACN,MAAM;EACN,aACE;EACF,eAAe;EAChB,CAAC;CACF,SAAS,YAAY;EACnB,MAAM;EACN,SAAS,CAAC,KAAK;EACf,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,SAAS,YAAY;EACnB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,aAAa,YAAY;EACvB,MAAM;EACN,SAAS,CAAC,UAAU;EACpB,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,OAAO,YAAY;EACjB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,QAAQ,YAAY;EAClB,MAAM;EACN,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,SAAS,YAAY;EACnB,MAAM;EACN,SAAS,CAAC,OAAO,IAAI;EACrB,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACF,WAAW,YAAY;EACrB,MAAM;EACN,SAAS,CAAC,SAAS;EACnB,MAAM;EACN,aAAa;EACb,eAAe;EAChB,CAAC;CACH"}
@@ -10,5 +10,5 @@ import "./registry.mjs";
10
10
  import "./switchboard.mjs";
11
11
  import "./uninstall.mjs";
12
12
  import "./vetra.mjs";
13
- import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-CFAVJzhI.mjs";
13
+ import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-rztSuf9S.mjs";
14
14
  export { phCliCommandNames, phCliHelpCommands };
@@ -11,7 +11,7 @@ import { loginArgs } from "./login.mjs";
11
11
  import { migrateArgs } from "./migrate.mjs";
12
12
  import { publishArgs } from "./publish.mjs";
13
13
  import { DEFAULT_REGISTRY_LOGIN_EXPIRY, registryLoginArgs } from "./registry.mjs";
14
- import { n as ServiceAction, t as serviceArgs } from "./service-C88bN_g_.mjs";
14
+ import { n as ServiceAction, t as serviceArgs } from "./service-LXIFUZ_8.mjs";
15
15
  import { switchboardArgs } from "./switchboard.mjs";
16
16
  import { uninstallArgs } from "./uninstall.mjs";
17
17
  import { unpublishArgs } from "./unpublish.mjs";
@@ -1,7 +1,7 @@
1
- import { _ as packageManagerArgs, a as connectBasePath, c as disableLocalPackages, d as getPackageManagerCommand, f as https, g as logLevel, h as localPackage, i as commonServerArgs, l as drivesPreserveStrategy, m as httpsKeyFile, n as buildArgs, o as debugArgs, p as httpsCertFile, r as commonArgs, s as defaultDrivesUrl, t as AGENTS, u as force, v as packages, y as vetraSwitchboardArgs } from "./common-Bc8EcW9w.mjs";
1
+ import { _ as packageManagerArgs, a as connectBasePath, c as disableLocalPackages, d as getPackageManagerCommand, f as https, g as logLevel, h as localPackage, i as commonServerArgs, l as drivesPreserveStrategy, m as httpsKeyFile, n as buildArgs, o as debugArgs, p as httpsCertFile, r as commonArgs, s as defaultDrivesUrl, t as AGENTS, u as force, v as packages, y as vetraSwitchboardArgs } from "./common-DPYlcz-d.mjs";
2
2
  import { accessTokenArgs } from "./access-token.mjs";
3
3
  import { connectArgs, connectBuildArgs, connectPreviewArgs, connectStudioArgs } from "./connect.mjs";
4
- import { t as generateArgs } from "./generate-DNGRYRdp.mjs";
4
+ import { t as generateArgs } from "./generate-BJPBa0mK.mjs";
5
5
  import { inspectArgs } from "./inspect.mjs";
6
6
  import { installArgs } from "./install.mjs";
7
7
  import { listArgs } from "./list.mjs";
@@ -12,7 +12,7 @@ import { DEFAULT_REGISTRY_LOGIN_EXPIRY, registryLoginArgs } from "./registry.mjs
12
12
  import { switchboardArgs } from "./switchboard.mjs";
13
13
  import { uninstallArgs } from "./uninstall.mjs";
14
14
  import { vetraArgs } from "./vetra.mjs";
15
- import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-CFAVJzhI.mjs";
15
+ import { n as phCliCommandNames, t as phCliHelpCommands } from "./help-rztSuf9S.mjs";
16
16
  import { initArgs } from "./init.mjs";
17
17
  import { serviceArgs } from "./service.mjs";
18
18
  import { unpublishArgs } from "./unpublish.mjs";
@@ -1,4 +1,4 @@
1
- import { _ as packageManagerArgs, o as debugArgs } from "./common-Bc8EcW9w.mjs";
1
+ import { _ as packageManagerArgs, o as debugArgs } from "./common-DPYlcz-d.mjs";
2
2
  import { boolean, flag, oneOf, option, optional, positional, string } from "cmd-ts";
3
3
  //#region clis/args/init.ts
4
4
  const initArgs = {
@@ -1,4 +1,4 @@
1
- import { o as debugArgs } from "./common-Bc8EcW9w.mjs";
1
+ import { o as debugArgs } from "./common-DPYlcz-d.mjs";
2
2
  import { positional, string } from "cmd-ts";
3
3
  //#region clis/args/inspect.ts
4
4
  const inspectArgs = {
@@ -1,4 +1,4 @@
1
- import { _ as packageManagerArgs, o as debugArgs } from "./common-Bc8EcW9w.mjs";
1
+ import { _ as packageManagerArgs, o as debugArgs } from "./common-DPYlcz-d.mjs";
2
2
  import { array, boolean, flag, multioption, option, optional, restPositionals, string } from "cmd-ts";
3
3
  //#region clis/args/install.ts
4
4
  const installArgs = {
@@ -1,4 +1,4 @@
1
- import { o as debugArgs } from "./common-Bc8EcW9w.mjs";
1
+ import { o as debugArgs } from "./common-DPYlcz-d.mjs";
2
2
  //#region clis/args/list.ts
3
3
  const listArgs = { ...debugArgs };
4
4
  //#endregion
@@ -1,4 +1,4 @@
1
- import { o as debugArgs, w as DEFAULT_RENOWN_URL } from "./common-Bc8EcW9w.mjs";
1
+ import { o as debugArgs, w as DEFAULT_RENOWN_URL } from "./common-DPYlcz-d.mjs";
2
2
  import { boolean, flag, number, option, optional, string } from "cmd-ts";
3
3
  //#region clis/args/login.ts
4
4
  const loginArgs = {
@@ -1,4 +1,4 @@
1
- import { o as debugArgs } from "./common-Bc8EcW9w.mjs";
1
+ import { o as debugArgs } from "./common-DPYlcz-d.mjs";
2
2
  import { boolean, flag, option, optional, positional, string } from "cmd-ts";
3
3
  //#region clis/args/migrate.ts
4
4
  const migrateArgs = {
@@ -1,4 +1,4 @@
1
- import { o as debugArgs } from "./common-Bc8EcW9w.mjs";
1
+ import { o as debugArgs } from "./common-DPYlcz-d.mjs";
2
2
  import { option, optional, rest, string } from "cmd-ts";
3
3
  //#region clis/args/publish.ts
4
4
  const publishArgs = {
@@ -1,4 +1,4 @@
1
- import { o as debugArgs } from "./common-Bc8EcW9w.mjs";
1
+ import { o as debugArgs } from "./common-DPYlcz-d.mjs";
2
2
  import { option, optional, string } from "cmd-ts";
3
3
  //#region clis/args/registry.ts
4
4
  const DEFAULT_REGISTRY_LOGIN_EXPIRY = "30d";
@@ -0,0 +1,106 @@
1
+ import * as cmd_ts_dist_cjs_argparser_js0 from "cmd-ts/dist/cjs/argparser.js";
2
+ import * as cmd_ts_dist_cjs_helpdoc_js0 from "cmd-ts/dist/cjs/helpdoc.js";
3
+
4
+ //#region dist/actions-UH5nIJcP.d.ts
5
+ //#endregion
6
+ //#region ../../node_modules/.pnpm/kysely@0.28.16/node_modules/kysely/dist/esm/kysely.d.ts
7
+ declare global {
8
+ interface AsyncDisposable {}
9
+ interface SymbolConstructor {
10
+ readonly asyncDispose: unique symbol;
11
+ }
12
+ }
13
+ /**
14
+ * The main Kysely class.
15
+ *
16
+ * You should create one instance of `Kysely` per database using the {@link Kysely}
17
+ * constructor. Each `Kysely` instance maintains its own connection pool.
18
+ *
19
+ * ### Examples
20
+ *
21
+ * This example assumes your database has a "person" table:
22
+ *
23
+ * ```ts
24
+ * import * as Sqlite from 'better-sqlite3'
25
+ * import { type Generated, Kysely, SqliteDialect } from 'kysely'
26
+ *
27
+ * interface Database {
28
+ * person: {
29
+ * id: Generated<number>
30
+ * first_name: string
31
+ * last_name: string | null
32
+ * }
33
+ * }
34
+ *
35
+ * const db = new Kysely<Database>({
36
+ * dialect: new SqliteDialect({
37
+ * database: new Sqlite(':memory:'),
38
+ * })
39
+ * })
40
+ * ```
41
+ *
42
+ * @typeParam DB - The database interface type. Keys of this type must be table names
43
+ * in the database and values must be interfaces that describe the rows in those
44
+ * tables. See the examples above.
45
+ */
46
+ //#endregion
47
+ //#region ../../node_modules/.pnpm/kysely@0.28.16/node_modules/kysely/dist/esm/kysely.d.ts
48
+ declare global {
49
+ interface AsyncDisposable {}
50
+ interface SymbolConstructor {
51
+ readonly asyncDispose: unique symbol;
52
+ }
53
+ }
54
+ /**
55
+ * The main Kysely class.
56
+ *
57
+ * You should create one instance of `Kysely` per database using the {@link Kysely}
58
+ * constructor. Each `Kysely` instance maintains its own connection pool.
59
+ *
60
+ * ### Examples
61
+ *
62
+ * This example assumes your database has a "person" table:
63
+ *
64
+ * ```ts
65
+ * import * as Sqlite from 'better-sqlite3'
66
+ * import { type Generated, Kysely, SqliteDialect } from 'kysely'
67
+ *
68
+ * interface Database {
69
+ * person: {
70
+ * id: Generated<number>
71
+ * first_name: string
72
+ * last_name: string | null
73
+ * }
74
+ * }
75
+ *
76
+ * const db = new Kysely<Database>({
77
+ * dialect: new SqliteDialect({
78
+ * database: new Sqlite(':memory:'),
79
+ * })
80
+ * })
81
+ * ```
82
+ *
83
+ * @typeParam DB - The database interface type. Keys of this type must be table names
84
+ * in the database and values must be interfaces that describe the rows in those
85
+ * tables. See the examples above.
86
+ */
87
+ //#endregion
88
+ //#region clis/constants.d.ts
89
+ declare const SERVICE_ACTIONS: readonly ["start", "stop", "status", "setup", "restart"];
90
+ //#endregion
91
+ //#region clis/types.d.ts
92
+ type ServiceActions = typeof SERVICE_ACTIONS;
93
+ type ServiceAction = ServiceActions[number];
94
+ //#endregion
95
+ //#region clis/args/service.d.ts
96
+ declare const serviceArgs: {
97
+ debug: Partial<cmd_ts_dist_cjs_argparser_js0.Register> & {
98
+ parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<boolean | undefined>>;
99
+ } & cmd_ts_dist_cjs_helpdoc_js0.ProvidesHelp & cmd_ts_dist_cjs_argparser_js0.Register & Partial<cmd_ts_dist_cjs_helpdoc_js0.Descriptive>;
100
+ action: Partial<cmd_ts_dist_cjs_argparser_js0.Register> & {
101
+ parse(context: cmd_ts_dist_cjs_argparser_js0.ParseContext): Promise<cmd_ts_dist_cjs_argparser_js0.ParsingResult<"status" | "start" | "stop" | "setup" | "restart" | undefined>>;
102
+ } & cmd_ts_dist_cjs_helpdoc_js0.ProvidesHelp & Partial<cmd_ts_dist_cjs_helpdoc_js0.Descriptive>;
103
+ };
104
+ //#endregion
105
+ export { ServiceAction as n, serviceArgs as t };
106
+ //# sourceMappingURL=service-LXIFUZ_8.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-LXIFUZ_8.d.mts","names":["f","IAnalyticsStore","z","Draft","OperationWithContext","FC","ReactNode","Signature","UserActionSigner","address","networkId","chainId","AppActionSigner","name","key","ActionSigner","user","app","signatures","PHDocumentSignatureInfo","JsonWebKey","publicKey","nonce","HashConfig","Record","algorithm","encoding","params","PROCESSOR_APPS","DEFAULT_RELATIONAL_PROCESSOR_DB_NAME","DEFAULT_ANALYTICS_PROCESSOR_DB_NAME","OperationNodeKind","OperationNode","kind","IdentifierNode","IdentifierNodeFactory","Readonly","is","node","create","CheckConstraintNode","expression","CheckConstraintNodeFactory","constraintName","ColumnNode","column","ColumnNodeFactory","DefaultValueNode","defaultValue","DefaultValueNodeFactory","GeneratedNodeParams","GeneratedNode","Omit","byDefault","always","identity","stored","GeneratedNodeFactory","createWithExpression","cloneWith","SchemableIdentifierNode","schema","identifier","SchemableIdentifierNodeFactory","createWithSchema","TableNode","table","TableNodeFactory","InsertResult","insertId","numInsertedOrUpdatedRows","constructor","DeleteResult","numDeletedRows","UpdateResult","numUpdatedRows","numChangedRows","KyselyTypeError","E","__kyselyTypeError__","MergeResult","AnyColumn","DB","TB","T","ExtractColumnType","C","AnyColumnWithTable","AnyAliasedColumn","AnyAliasedColumnWithTable","ArrayItemType","ReadonlyArray","I","SimplifySingleResult","O","Simplify","SimplifyResult","K","DrainOuterGeneric","UnknownRow","Nullable","P","IsNever","NarrowPartial","NotNull$1","Exclude","__notNull__","SqlBool","ShallowRecord","ShallowDehydrateObject","ShallowDehydrateValue","NonNullable","U","Array","Extract","StringsWhenDataTypeNotAvailable","NumbersWhenDataTypeNotAvailable","Date","Uint8Array","NumericString","ON_MODIFY_FOREIGN_ACTIONS","OnModifyForeignAction","ReferencesNode","columns","onDelete","onUpdate","ReferencesNodeFactory","cloneWithOnDelete","references","cloneWithOnUpdate","ColumnDefinitionNodeProps","ColumnDefinitionNode","Partial","dataType","primaryKey","autoIncrement","unique","notNull","defaultTo","check","generated","unsigned","frontModifiers","endModifiers","nullsNotDistinct","ifNotExists","ColumnDefinitionNodeFactory","cloneWithFrontModifier","modifier","cloneWithEndModifier","props","AddColumnNode","AddColumnNodeFactory","DropColumnNode","DropColumnNodeFactory","RenameColumnNode","renameTo","RenameColumnNodeFactory","newColumn","RawNode","sqlFragments","parameters","RawNodeFactory","createWithSql","sql","createWithChild","child","createWithChildren","children","AlterColumnNodeProps","AlterColumnNode","dataTypeExpression","setDefault","dropDefault","setNotNull","dropNotNull","AlterColumnNodeFactory","Required","prop","value","ForeignKeyConstraintNodeProps","ForeignKeyConstraintNode","deferrable","initiallyDeferred","ForeignKeyConstraintNodeFactory","sourceColumns","targetTable","targetColumns","PrimaryKeyConstraintNode","PrimaryKeyConstraintNodeProps","PrimaryKeyConstraintNodeFactory","UniqueConstraintNode","UniqueConstraintNodeProps","UniqueConstraintNodeFactory","ConstraintNode","AddConstraintNode","constraint","AddConstraintNodeFactory","DropConstraintNodeProps","DropConstraintNode","ifExists","DropConstraintNodeFactory","dropConstraint","ModifyColumnNode","ModifyColumnNodeFactory","DropIndexNodeProps","DropIndexNode","cascade","DropIndexNodeFactory","dropIndex","AddIndexNode","using","AddIndexNodeFactory","cloneWithColumns","RenameConstraintNode","oldName","newName","RenameConstraintNodeFactory","AlterTableNodeTableProps","AlterTableNode","Pick","AlterTableColumnAlterationNode","setSchema","columnAlterations","addConstraint","renameConstraint","addIndex","AlterTableNodeFactory","cloneWithTableProps","cloneWithColumnAlteration","columnAlteration","WhereNode","where","WhereNodeFactory","filter","cloneWithOperation","whereNode","operator","operation","CreateIndexNodeProps","CreateIndexNode","IndexType","CreateIndexNodeFactory","CreateSchemaNodeParams","CreateSchemaNode","CreateSchemaNodeFactory","createSchema","ON_COMMIT_ACTIONS","OnCommitAction","CreateTableNodeParams","CreateTableNode","constraints","temporary","onCommit","selectQuery","CreateTableNodeFactory","cloneWithColumn","createTable","cloneWithConstraint","ValueListNode","values","ValueListNodeFactory","CreateTypeNode","enum","CreateTypeNodeFactory","cloneWithEnum","createType","FromNode","froms","FromNodeFactory","cloneWithFroms","from","GroupByItemNode","groupBy","GroupByItemNodeFactory","GroupByNode","items","GroupByNodeFactory","cloneWithItems","HavingNode","having","HavingNodeFactory","havingNode","OnNode","on","OnNodeFactory","onNode","JoinType","JoinNode","joinType","JoinNodeFactory","createWithOn","cloneWithOn","joinNode","LimitNode","limit","LimitNodeFactory","OffsetNode","offset","OffsetNodeFactory","CollateNode","collation","CollateNodeFactory","OrderByItemNodeProps","OrderByItemNode","orderBy","direction","nulls","OrderByItemNodeFactory","OrderByNode","OrderByNodeFactory","AliasNode","alias","AliasNodeFactory","SelectAllNode","SelectAllNodeFactory","ReferenceNode","ReferenceNodeFactory","createSelectAll","SimpleReferenceExpressionNode","SelectionNodeChild","SelectionNode","selection","SelectionNodeFactory","createSelectAllFromTable","CommonTableExpressionNameNode","CommonTableExpressionNameNodeFactory","tableName","columnNames","CommonTableExpressionNodeProps","CommonTableExpressionNode","materialized","CommonTableExpressionNodeFactory","WithNodeParams","WithNode","expressions","recursive","WithNodeFactory","cloneWithExpression","withNode","SelectModifier","SelectModifierNode","rawModifier","of","SelectModifierNodeFactory","OperationNodeSource","toOperationNode","Expression","expressionType","AliasableExpression","A","AliasedExpression","as","ExplainFormat","Explainable","Promise","explain","format","options","ExplainNode","ExplainNodeFactory","SetOperator","SetOperationNode","all","SetOperationNodeFactory","ValueNode","immediate","ValueNodeFactory","createImmediate","FetchModifier","FetchNode","rowCount","FetchNodeFactory","TopModifier","TopNode","modifiers","TopNodeFactory","SelectQueryNode","selections","distinctOn","joins","with","setOperations","fetch","top","SelectQueryNodeFactory","createFrom","fromItems","cloneWithSelections","select","cloneWithDistinctOn","cloneWithOrderByItems","cloneWithGroupByItems","selectNode","cloneWithLimit","cloneWithOffset","cloneWithFetch","cloneWithHaving","cloneWithSetOperations","cloneWithoutSelections","cloneWithoutLimit","cloneWithoutOffset","cloneWithoutOrderBy","cloneWithoutGroupBy","CreateViewNodeParams","CreateViewNode","orReplace","CreateViewNodeFactory","createView","DropSchemaNodeParams","DropSchemaNode","DropSchemaNodeFactory","dropSchema","DropTablexNodeParams","DropTableNode","DropTableNodeFactory","DropTypeNodeParams","DropTypeNode","DropTypeNodeFactory","dropType","DropViewNodeParams","DropViewNode","DropViewNodeFactory","dropView","OutputNode","OutputNodeFactory","output","ReturningNode","ReturningNodeFactory","returning","WhenNode","condition","result","WhenNodeFactory","cloneWithResult","whenNode","MergeQueryNode","into","whens","MergeQueryNodeFactory","cloneWithUsing","mergeNode","cloneWithWhen","when","cloneWithThen","then","ColumnUpdateNode","ColumnUpdateNodeFactory","OnConflictNodeProps","OnConflictNode","indexExpression","indexWhere","updates","updateWhere","doNothing","OnConflictNodeFactory","cloneWithIndexWhere","cloneWithIndexOrWhere","cloneWithUpdateWhere","cloneWithUpdateOrWhere","cloneWithoutIndexWhere","cloneWithoutUpdateWhere","OnDuplicateKeyNode","OnDuplicateKeyNodeFactory","OrActionNode","action","OrActionNodeFactory","InsertQueryNodeProps","InsertQueryNode","onConflict","onDuplicateKey","ignore","orAction","replace","defaultValues","InsertQueryNodeFactory","createWithoutInto","insertQuery","UpdateQueryNode","UpdateQueryNodeFactory","tables","createWithoutTable","cloneWithFromItems","updateQuery","cloneWithUpdates","UsingNode","UsingNodeFactory","cloneWithTables","DeleteQueryNode","DeleteQueryNodeFactory","deleteNode","QueryNode","HasJoins","HasWhere","HasReturning","HasExplain","HasTop","HasOutput","HasEndModifiers","HasOrderBy","QueryNodeFactory","cloneWithWhere","cloneWithJoin","join","cloneWithReturning","cloneWithoutReturning","cloneWithoutWhere","cloneWithExplain","cloneWithTop","cloneWithOutput","RefreshMaterializedViewNodeParams","RefreshMaterializedViewNode","concurrently","withNoData","RefreshMaterializedViewNodeFactory","QueryId","queryId","CompiledQuery","RootOperationNode","query","CompiledQueryFactory","raw","QueryCompiler","compileQuery","DatabaseConnection","R","QueryResult","AsyncIterableIterator","executeQuery","compiledQuery","streamQuery","chunkSize","numAffectedRows","rows","Driver","TransactionSettings","init","acquireConnection","beginTransaction","connection","settings","commitTransaction","rollbackTransaction","savepoint","savepointName","rollbackToSavepoint","releaseSavepoint","releaseConnection","destroy","AccessMode","IsolationLevel","accessMode","isolationLevel","TRANSACTION_ACCESS_MODES","TRANSACTION_ISOLATION_LEVELS","DatabaseIntrospector","SchemaMetadata","DatabaseMetadataOptions","TableMetadata","DatabaseMetadata","getSchemas","getTables","getMetadata","withInternalKyselyTables","ColumnMetadata","isView","dataTypeSchema","isAutoIncrementing","isNullable","hasDefaultValue","comment","DialectAdapter","Kysely","MigrationLockOptions","supportsCreateIfNotExists","supportsTransactionalDdl","supportsReturning","supportsOutput","acquireMigrationLock","db","releaseMigrationLock","lockTable","lockRowId","lockTableSchema","Dialect","createDriver","createQueryCompiler","createAdapter","createIntrospector","ConnectionProvider","provideConnection","consumer","KyselyPlugin","PluginTransformQueryArgs","PluginTransformResultArgs","transformQuery","args","transformResult","QueryExecutor","adapter","plugins","stream","withConnectionProvider","connectionProvider","withPlugin","plugin","withPlugins","withPluginAtFront","withoutPlugins","Compilable","compile","DefaultValueExpression","ColumnDefinitionBuilder","private","ref","generatedAlwaysAs","generatedAlwaysAsIdentity","generatedByDefaultAsIdentity","modifyFront","modifyEnd","$call","qb","func","ColumnDefinitionBuilderCallback","builder","SIMPLE_COLUMN_DATA_TYPES","SimpleColumnDataType","ColumnDataType","DataTypeExpression","ForeignKeyConstraintBuilderInterface","notDeferrable","initiallyImmediate","ForeignKeyConstraintBuilder","ForeignKeyConstraintBuilderCallback","AlterColumnBuilder","AlteredColumnBuilder","setDataType","alterColumnNode","AlterColumnBuilderCallback","AlterTableExecutor","AlterTableExecutorProps","execute","executor","AlterTableAddForeignKeyConstraintBuilder","AlterTableAddForeignKeyConstraintBuilderProps","constraintBuilder","AlterTableDropConstraintBuilder","AlterTableDropConstraintBuilderProps","restrict","SelectQueryBuilderExpression","isSelectQueryBuilder","COMPARISON_OPERATORS","JSON_OPERATORS","BINARY_OPERATORS","UNARY_OPERATORS","OPERATORS","ComparisonOperator","JSONOperator","JSONOperatorWith$","BinaryOperator","UnaryOperator","Operator","OperatorNode","OperatorNodeFactory","ValueExpression","V","ExpressionOrFactory","ValueExpressionOrList","ExtractTypeFromValueExpression","VE","SV","ColumnType","SelectType","InsertType","UpdateType","__select__","__insert__","__update__","IfNullable","IfNotNullable","IfNotNever","S","NullableInsertKeys","NonNullableInsertKeys","NonNeverSelectKeys","UpdateKeys","Selectable","Updateable","OperandValueExpression","RE","ExtractTypeFromReferenceExpression","OperandValueExpressionOrList","BinaryOperatorExpression","ComparisonOperatorExpression","FilterObject","StringReference","ExtractTypeFromStringReference","JoinBuilder","JoinBuilderProps","ReferenceExpression","lhs","op","rhs","onRef","onTrue","DynamicTableBuilder","AliasedDynamicTableBuilder","TableExpression","AnyAliasedTable","AnyTable","AliasedExpressionOrFactory","TableExpressionOrList","SimpleTableReference","From","TE","ExtractAliasFromTableExpression","ExtractRowTypeFromTableExpression","FromTables","ExtractTableAlias","TA","QA","DA","JoinReferenceExpression","AnyJoinColumn","AnyJoinColumnWithTable","JoinCallbackExpression","DynamicReferenceBuilder","dynamicReference","refType","reference","SelectExpression","SelectCallback","ExpressionBuilder","eb","Selection","SE","FlattenSelectExpression","ExtractAliasFromSelectExpression","ExtractTypeFromSelectExpression","CallbackSelection","CB","RA","ExtractAliasFromStringSelectExpression","EA","ExtractTypeFromStringSelectExpression","AliasedSelectQueryBuilder","SC","AllSelection","Collation","OrderByItemBuilder","OrderByItemBuilderProps","desc","asc","nullsLast","nullsFirst","collate","OrderByExpression","OrderByModifiers","OrderByDirection","OrderByModifiersCallbackExpression","DirectedOrderByStringReference","GroupByExpression","GroupByArg","WhereInterface","LRE","RRE","whereRef","clearWhere","NoResultErrorConstructor","Error","HavingInterface","havingRef","SetOperandExpression","Streamable","AndNode","left","right","AndNodeFactory","OrNode","OrNodeFactory","ParensNode","ParensNodeFactory","ExpressionWrapper","OrWrapper","OperandExpression","AndWrapper","or","and","$castTo","$notNull","OrderByInterface","OE","expr","exprs","clearOrderBy","SelectQueryBuilder","K1","K2","FN","GE","O2","K3","K4","K5","ER","TableOrList","SelectQueryBuilderWithInnerJoin","SelectQueryBuilderWithLeftJoin","SelectQueryBuilderWithRightJoin","SelectQueryBuilderWithFullJoin","callback","distinct","forUpdate","forShare","forKeyShare","forNoKeyUpdate","skipLocked","noWait","selectAll","innerJoin","k1","k2","leftJoin","rightJoin","fullJoin","crossJoin","innerJoinLateral","leftJoinLateral","crossJoinLateral","crossApply","outerApply","union","unionAll","intersect","intersectAll","except","exceptAll","clearSelect","clearLimit","clearOffset","clearGroupBy","$if","$asTuple","key1","key2","key3","key4","key5","$asScalar","$narrowType","$assertType","executeTakeFirst","executeTakeFirstOrThrow","errorConstructor","isAliasedSelectQueryBuilder","InnerJoinedBuilder$2","QO","InnerJoinedDB$2","LeftJoinedBuilder$2","LeftJoinedDB$2","RightJoinedBuilder$2","RightJoinedDB$2","OuterJoinedBuilder$2","OuterJoinedBuilderDB$2","ExtractTypeFromCoalesce1","R1","ExtractTypeFromCoalesce2","R2","ExtractTypeFromCoalesceValues2","V1","V2","NotNull","ExtractTypeFromCoalesce3","R3","ExtractTypeFromCoalesceValues3","V3","ExtractTypeFromCoalesce4","R4","ExtractTypeFromCoalesceValues4","V4","ExtractTypeFromCoalesce5","R5","ExtractTypeFromCoalesceValues5","V5","PartitionByItemNode","partitionBy","PartitionByItemNodeFactory","PartitionByNode","PartitionByNodeFactory","OverNode","OverNodeFactory","overNode","cloneWithPartitionByItems","AggregateFunctionNode","aggregated","withinGroup","over","AggregateFunctionNodeFactory","aggregateFunction","cloneWithDistinct","aggregateFunctionNode","cloneWithOrderBy","orderItems","cloneWithFilter","cloneWithOrFilter","cloneWithOver","PartitionByExpression","OverBuilder","PE","OverBuilderProps","AggregateFunctionBuilder","AggregateFunctionBuilderProps","AliasedAggregateFunctionBuilder","OverBuilderCallback","withinGroupOrderBy","filterWhere","filterWhereRef","aggregateFunctionBuilder","FunctionModule","agg","avg","coalesce","v1","v2","v3","v4","v5","count","countAll","max","min","sum","any","subquery","jsonAgg","toJson","CaseNode","else","isStatement","CaseNodeFactory","caseNode","CaseBuilder","W","CaseBuilderProps","CaseThenBuilder","Whenable","CaseWhenBuilder","CaseEndBuilder","Endable","end","endCase","JSONPathLegType","JSONPathLegNode","type","JSONPathLegNodeFactory","JSONPathNode","inOperator","pathLegs","JSONPathNodeFactory","cloneWithLeg","jsonPathNode","pathLeg","JSONOperatorChainNode","JSONOperatorChainNodeFactory","cloneWithValue","JSONReferenceNode","traversal","JSONReferenceNodeFactory","cloneWithTraversal","JSONPathBuilder","TraversedJSONPathBuilder","at","index","RefTuple2","RefTuple3","RefTuple4","RefTuple5","ValTuple2","ValTuple3","ValTuple4","ValTuple5","SelectFrom","OP","$","EE","SimpleReferenceExpression","fn","selectFrom","case","jsonPath","val","refTuple","value1","value2","value3","value4","value5","tuple","lit","literal","unary","not","exists","neg","between","start","betweenSymmetric","parens","cast","withSchema","OperandExpressionFactory","AliasedExpressionFactory","DV","ExtractRawTypeFromReferenceExpression","OrderedColumnName","ExtractColumnNameFromOrderedColumnName","CL","AlterTableAddIndexBuilder","AlterTableAddIndexBuilderProps","indexType","UniqueConstraintNodeBuilder","UniqueConstraintNodeBuilderCallback","PrimaryKeyConstraintBuilder","PrimaryKeyConstraintBuilderCallback","CheckConstraintBuilder","CheckConstraintBuilderCallback","AlterTableBuilder","AlterTableBuilderProps","AlterTableColumnAlteringBuilder","ColumnAlteringInterface","newTableName","newSchema","alterColumn","alteration","dropColumn","renameColumn","addColumn","columnName","build","modifyColumn","addUniqueConstraint","addCheckConstraint","checkExpression","addForeignKeyConstraint","addPrimaryKeyConstraint","indexName","AlterTableColumnAlteringBuilderProps","CreateIndexBuilder","CreateIndexBuilderProps","factory","CreateSchemaBuilder","CreateSchemaBuilderProps","CreateTableBuilder","CN","CreateTableBuilderProps","ColumnBuilderCallback","DropIndexBuilder","DropIndexBuilderProps","DropSchemaBuilder","DropSchemaBuilderProps","DropTableBuilder","DropTableBuilderProps","QueryExecutorProvider","getExecutor","RawBuilder","AliasedRawBuilder","isRawBuilder","executorProvider","rawBuilder","CreateViewBuilder","CreateViewBuilderProps","DropViewBuilder","DropViewBuilderProps","CreateTypeBuilder","CreateTypeBuilderProps","asEnum","DropTypeBuilder","DropTypeBuilderProps","RefreshMaterializedViewBuilder","RefreshMaterializedViewBuilderProps","withData","SchemaModule","dropTable","createIndex","alterTable","viewName","refreshMaterializedView","typeName","DynamicModule","InsertObject","InsertObjectOrList","InsertObjectOrListFactory","UT","InsertExpression","UpdateObject","UpdateObjectFactory","UpdateObjectExpression","ExtractUpdateTypeFromReferenceExpression","ReturningRow","ReturningCallbackRow","ReturningAllRow","ReturningInterface","returningAll","MultiTableReturningInterface","OnConflictBuilder","OnConflictBuilderProps","OnConflictDoNothingBuilder","OnConflictDatabase","OnConflictTables","OnConflictUpdateBuilder","doUpdateSet","update","onConflictNode","OutputInterface","OutputPrefix","OutputExpression","SelectExpressionFromOutputExpression","OutputCallback","SelectExpressionFromOutputCallback","outputAll","OutputDatabase","ODB","OTB","InsertQueryBuilder","InsertQueryBuilderProps","insert","orIgnore","orAbort","orFail","orRollback","onDuplicateKeyUpdate","clearReturning","queryNode","UpdateQueryBuilder","UpdateQueryBuilderProps","UpdateQueryBuilderWithInnerJoin","UpdateQueryBuilderWithLeftJoin","UpdateQueryBuilderWithRightJoin","UpdateQueryBuilderWithFullJoin","set","InnerJoinedBuilder$1","InnerJoinedDB$1","LeftJoinedBuilder$1","LeftJoinedDB$1","RightJoinedBuilder$1","RightJoinedDB$1","OuterJoinedBuilder$1","OuterJoinedBuilderDB$1","DeleteQueryBuilder","DeleteQueryBuilderProps","DeleteQueryBuilderWithInnerJoin","DeleteQueryBuilderWithLeftJoin","DeleteQueryBuilderWithRightJoin","DeleteQueryBuilderWithFullJoin","InnerJoinedBuilder","InnerJoinedDB","LeftJoinedBuilder","LeftJoinedDB","RightJoinedBuilder","RightJoinedDB","OuterJoinedBuilder","OuterJoinedBuilderDB","CTEBuilder","N","CTEBuilderProps","notMaterialized","CTEBuilderCallback","N2","cte","CommonTableExpression","QueryCreator","CommonTableExpressionOutput","creator","RecursiveCommonTableExpression","ExtractTableFromCommonTableExpressionName","ExtractRowFromCommonTableExpressionName","QueryCreatorWithCommonTableExpression","CTE","ExtractRowFromCommonTableExpression","Q","ExtractColumnNamesFromColumnList","RS","DeleteFrom","UpdateTable","MergeQueryBuilder","TT","MergeQueryBuilderProps","ExtractWheneableMergeQueryBuilder","sourceTable","WheneableMergeQueryBuilder","ST","MatchedThenableMergeQueryBuilder","NotMatchedThenableMergeQueryBuilder","whenMatched","whenMatchedAnd","whenMatchedAndRef","whenNotMatched","whenNotMatchedAnd","whenNotMatchedAndRef","whenNotMatchedBySource","whenNotMatchedBySourceAnd","whenNotMatchedBySourceAndRef","QB","UO","thenDelete","thenDoNothing","thenUpdate","ub","thenUpdateSet","IO","thenInsertValues","UsingBuilder","MergeInto","TR","QueryCreatorProps","selectNoFrom","insertInto","replaceInto","deleteFrom","updateTable","mergeInto","nameOrBuilder","withRecursive","logLevels","LOG_LEVELS","LogLevel","QueryLogEvent","level","isStream","queryDurationMillis","ErrorLogEvent","error","LogEvent","Logger","event","LogConfig","RollbackToSavepoint","SN","L","ReleaseSavepoint","ControlledConnection","release","_0","global","AsyncDisposable","SymbolConstructor","asyncDispose","sideEffect","KyselyConfig","KyselyProps","TransactionBuilder","ControlledTransactionBuilder","ConnectionBuilder","Symbol","dynamic","introspection","transaction","startTransaction","withTables","isTransaction","Transaction","config","driver","dialect","log","ConnectionBuilderProps","TransactionBuilderProps","setAccessMode","setIsolationLevel","trx","ControlledTransaction","ControlledTransactionProps","Command","isCommitted","isRolledBack","commit","rollback","cb","ProcessorDispatchResult","id","status","IProcessorDispatch","Action","AbortSignal","docId","branch","actions","signal","meta","IProcessorHostModule","IRelationalDb","ProcessorApp","Map","analyticsStore","relationalDb","processorApp","dispatch","getReadModel","ProcessorFilter","documentType","scope","documentId","IProcessor","onOperations","operations","onDisconnect","ProcessorRecord","processor","startFrom","ProcessorFactory","PHDocumentHeader","driveHeader","ProcessorFactoryBuilder","module","ProcessorStatus","TrackedProcessor","processorId","factoryId","driveId","processorIndex","record","lastOrdinal","lastError","lastErrorTimestamp","retry","IProcessorManager","registerFactory","unregisterFactory","get","getAll","ProcessorApps","IRelationalQueryMethods","IRelationalQueryBuilder","Schema","HashAlgorithms","IBaseRelationalDb","NamespaceSchema","ExtractProcessorSchemaOrSelf","createNamespace","namespace","queryNamespace","TProcessor","RelationalDbProcessor","TSchema","RelationalDbProcessorClass","IRelationalDbProcessor","TDatabaseSchema","initAndUpgrade","IS_RELATIONAL_DB_PROCESSOR","_namespace","_filter","getNamespace","this","hashNamespace","str","length","createRelationalDb","NamespaceOptions","baseDb","baseOptions","createNamespacedDb","createNamespacedQueryBuilder","relationalDbToQueryBuilder","definedNonNullAny","isDefinedNonNullAny","v","definedNonNullAnySchema","ZodAny","core","$ZodTypeInternals","ZodType","Load_StateSchema","ZodEnum","LOAD_STATE","PruneSchema","PRUNE","RedoSchema","REDO","Set_NameSchema","SET_NAME","Set_PreferredEditorSchema","SET_PREFERRED_EDITOR","UndoSchema","UNDO","OperationScopeSchema","ZodString","DocumentActionSchema","LoadStateActionInput","$strip","ZodObject","PruneActionInput","RedoActionInput","SetNameActionInput","SetPreferredEditorActionInput","UndoActionInput","ZodUnion","timestampUtcMs","input","DocumentFileSchema","DocumentFile","Properties","LoadStateActionSchema","SchemaLoadStateAction","LoadStateActionInputSchema","LoadStateActionStateInputSchema","LoadStateActionStateInput","PruneActionSchema","SchemaPruneAction","PruneActionInputSchema","RedoActionInputSchema","ZodNumber","RedoActionSchema","SchemaRedoAction","SetNameActionInputSchema","SetNameActionSchema","SchemaSetNameAction","SetPreferredEditorActionInputSchema","ZodNullable","preferredEditor","SetPreferredEditorActionSchema","SchemaSetPreferredEditorAction","UndoActionInputSchema","UndoActionSchema","SchemaUndoAction","AddChangeLogItemInputSchema","AddChangeLogItemInput","AddModuleInputSchema","AddModuleInput","AddOperationErrorInputSchema","AddOperationErrorInput","AddOperationExampleInputSchema","AddOperationExampleInput","AddOperationInputSchema","AddOperationInput","AddStateExampleInputSchema","AddStateExampleInput","AuthorSchema","Author","CodeExampleSchema","CodeExample","DeleteChangeLogItemInputSchema","DeleteChangeLogItemInput","DeleteModuleInputSchema","DeleteModuleInput","DeleteOperationErrorInputSchema","DeleteOperationErrorInput","DeleteOperationExampleInputSchema","DeleteOperationExampleInput","DeleteOperationInputSchema","DeleteOperationInput","DeleteStateExampleInputSchema","DeleteStateExampleInput","DocumentModelInputSchema","Maybe","InputMaybe","__typename","content","insertBefore","description","errorCode","errorDescription","errorName","errorTemplate","operationId","example","moduleId","reducer","template","newModuleId","order","authorName","authorWebsite","initialValue","extension","newContent","newExample","DocumentModelGlobalStateSchema","DocumentModelGlobalState","DocumentSpecificationSchema","DocumentSpecification","ModuleSchema","ModuleSpecification","MoveOperationInputSchema","MoveOperationInput","OperationSpecificationSchema","OperationSpecification","OperationErrorSchema","OperationErrorSpecification","ReorderChangeLogItemsInputSchema","ReorderChangeLogItemsInput","ReorderModuleOperationsInputSchema","ReorderModuleOperationsInput","ReorderModulesInputSchema","ReorderModulesInput","ReorderOperationErrorsInputSchema","ReorderOperationErrorsInput","ReorderOperationExamplesInputSchema","ReorderOperationExamplesInput","ReorderStateExamplesInputSchema","ReorderStateExamplesInput","SetAuthorNameInputSchema","SetAuthorNameInput","SetAuthorWebsiteInputSchema","SetAuthorWebsiteInput","SetInitialStateInputSchema","SetInitialStateInput","SetModelDescriptionInputSchema","SetModelDescriptionInput","SetModelExtensionInputSchema","SetModelExtensionInput","SetModelIdInputSchema","SetModelIdInput","SetModelNameInputSchema","SetModelNameInput","SetModuleDescriptionInputSchema","SetModuleDescriptionInput","SetModuleNameInputSchema","SetModuleNameInput","SetOperationDescriptionInputSchema","SetOperationDescriptionInput","SetOperationErrorCodeInputSchema","SetOperationErrorCodeInput","SetOperationErrorDescriptionInputSchema","SetOperationErrorDescriptionInput","SetOperationErrorNameInputSchema","SetOperationErrorNameInput","SetOperationErrorTemplateInputSchema","SetOperationErrorTemplateInput","SetOperationNameInputSchema","SetOperationNameInput","SetOperationScopeInputSchema","SetOperationScopeInput","SetOperationReducerInputSchema","SetOperationReducerInput","SetOperationSchemaInputSchema","SetOperationSchemaInput","SetOperationTemplateInputSchema","SetOperationTemplateInput","SetStateSchemaInputSchema","SetStateSchemaInput","StateSchema","State","ScopeStateSchema","ScopeState","UpdateChangeLogItemInputSchema","UpdateChangeLogItemInput","UpdateOperationExampleInputSchema","UpdateOperationExampleInput","UpdateStateExampleInputSchema","UpdateStateExampleInput","PowerhouseModuleSchema","ZodArray","ZodOptional","documentTypes","PowerhouseModulesSchema","PublisherSchema","url","ConfigEntryTypeSchema","ZodLiteral","ConfigEntrySchema","ZodBoolean","required","default","ManifestSchema","category","publisher","documentModels","apps","editors","processors","subgraphs","UpgradeReducer","TFrom","TTo","PHBaseState","PHDocument","document","ModelVersion","UpgradeTransition","toVersion","upgradeReducer","TupleMember","UpgradeManifest","TVersions","latestVersion","supportedVersions","upgrades","examples","local","website","ID","code","errors","changeLog","modules","state","version","author","specifications","DocumentModelLocalState","DocumentModelPHState","DocumentModelDocument","DocumentModelAction","DocumentModelHeaderAction","DocumentModelVersioningAction","DocumentModelModuleAction","DocumentModelOperationErrorAction","DocumentModelOperationExampleAction","DocumentModelOperationAction","DocumentModelStateAction","Scalars","DocumentModelInput","Mutation","addChangeLogItemInput","addModule","addOperation","addOperationError","addOperationExample","addStateExample","deleteChangeLogItemInput","deleteModule","deleteOperation","deleteOperationError","deleteOperationExample","deleteStateExample","moveOperation","releaseNewVersion","reorderChangeLogItemsInput","reorderModuleOperations","reorderModules","reorderOperationErrors","reorderOperationExamples","reorderStateExamples","setAuthorName","setAuthorWebsite","setInitialState","setModelDescription","setModelExtension","setModelId","setModelName","setModuleDescription","setModuleName","setOperationDescription","setOperationErrorCode","setOperationErrorDescription","setOperationErrorName","setOperationErrorTemplate","setOperationName","setOperationReducer","setOperationSchema","setOperationTemplate","setStateSchema","updateChangeLogItemInput","updateOperationExample","updateStateExample","MutationAddChangeLogItemInputArgs","MutationAddModuleArgs","MutationAddOperationArgs","MutationAddOperationErrorArgs","MutationAddOperationExampleArgs","MutationAddStateExampleArgs","MutationDeleteChangeLogItemInputArgs","MutationDeleteModuleArgs","MutationDeleteOperationArgs","MutationDeleteOperationErrorArgs","MutationDeleteOperationExampleArgs","MutationDeleteStateExampleArgs","MutationMoveOperationArgs","MutationReorderChangeLogItemsInputArgs","MutationReorderModuleOperationsArgs","MutationReorderModulesArgs","MutationReorderOperationErrorsArgs","MutationReorderOperationExamplesArgs","MutationReorderStateExamplesArgs","MutationSetAuthorNameArgs","MutationSetAuthorWebsiteArgs","MutationSetInitialStateArgs","MutationSetModelDescriptionArgs","MutationSetModelExtensionArgs","MutationSetModelIdArgs","MutationSetModelNameArgs","MutationSetModuleDescriptionArgs","MutationSetModuleNameArgs","MutationSetOperationDescriptionArgs","MutationSetOperationErrorCodeArgs","MutationSetOperationErrorDescriptionArgs","MutationSetOperationErrorNameArgs","MutationSetOperationErrorTemplateArgs","MutationSetOperationNameArgs","MutationSetOperationReducerArgs","MutationSetOperationSchemaArgs","MutationSetOperationTemplateArgs","MutationSetStateSchemaArgs","MutationUpdateChangeLogItemInputArgs","MutationUpdateOperationExampleArgs","MutationUpdateStateExampleArgs","SetModelNameAction","SetModelIdAction","SetModelExtensionAction","SetModelDescriptionAction","SetAuthorNameAction","SetAuthorWebsiteAction","AddModuleAction","SetModuleNameAction","SetModuleDescriptionAction","DeleteModuleAction","ReorderModulesAction","AddOperationAction","SetOperationNameAction","SetOperationScopeAction","SetOperationSchemaAction","SetOperationDescriptionAction","SetOperationTemplateAction","SetOperationReducerAction","MoveOperationAction","DeleteOperationAction","ReorderModuleOperationsAction","AddOperationErrorAction","SetOperationErrorCodeAction","SetOperationErrorNameAction","SetOperationErrorDescriptionAction","SetOperationErrorTemplateAction","DeleteOperationErrorAction","ReorderOperationErrorsAction","AddOperationExampleAction","UpdateOperationExampleAction","DeleteOperationExampleAction","ReorderOperationExamplesAction","SetStateSchemaAction","SetInitialStateAction","AddStateExampleAction","UpdateStateExampleAction","DeleteStateExampleAction","ReorderStateExamplesAction","AddChangeLogItemAction","UpdateChangeLogItemAction","DeleteChangeLogItemAction","ReorderChangeLogItemsAction","ReleaseNewVersionAction","DocumentModelHeaderOperations","setModelNameOperation","setModelIdOperation","setModelExtensionOperation","setModelDescriptionOperation","setAuthorNameOperation","setAuthorWebsiteOperation","DocumentModelModuleOperations","addModuleOperation","setModuleNameOperation","setModuleDescriptionOperation","deleteModuleOperation","reorderModulesOperation","DocumentModelOperationOperations","addOperationOperation","setOperationNameOperation","setOperationScopeOperation","setOperationSchemaOperation","setOperationDescriptionOperation","setOperationTemplateOperation","setOperationReducerOperation","moveOperationOperation","deleteOperationOperation","reorderModuleOperationsOperation","DocumentModelOperationErrorOperations","addOperationErrorOperation","setOperationErrorCodeOperation","setOperationErrorNameOperation","setOperationErrorDescriptionOperation","setOperationErrorTemplateOperation","deleteOperationErrorOperation","reorderOperationErrorsOperation","DocumentModelOperationExampleOperations","addOperationExampleOperation","updateOperationExampleOperation","deleteOperationExampleOperation","reorderOperationExamplesOperation","DocumentModelStateOperations","setStateSchemaOperation","setInitialStateOperation","addStateExampleOperation","updateStateExampleOperation","deleteStateExampleOperation","reorderStateExamplesOperation","DocumentModelVersioningOperations","addChangeLogItemOperation","updateChangeLogItemOperation","deleteChangeLogItemOperation","reorderChangeLogItemsOperation","releaseNewVersionOperation","Exact","MakeOptional","SubKey","MakeMaybe","MakeEmpty","_","Incremental","String","Boolean","Int","Float","Address","Attachment","DateTime","Unknown","OperationsByScope","Operation","SkipHeaderOperationIndex","OperationIndex","UndoRedoAction","data","fileName","mimeType","IAction","IDocument","IOperation","created","lastModified","revision","hash","Load_State","MutationLoadStateArgs","MutationPruneArgs","MutationRedoArgs","MutationSetNameArgs","MutationUndoArgs","Prune","Query","Redo","Set_Name","SetNameOperation","timestamp","Set_PreferredEditor","SetPreferredEditorOperation","Undo","SchemaNOOPAction","LoadStateAction","PruneAction","RedoAction","SetNameAction","SetPreferredEditorAction","UndoAction","NOOPAction","CreateDocumentActionInput","model","signing","signature","createdAtUtcIso","slug","protocolVersions","UpgradeDocumentActionInput","fromVersion","initialState","DeleteDocumentActionInput","propagate","AddRelationshipActionInput","sourceId","targetId","relationshipType","metadata","RemoveRelationshipActionInput","UpdateRelationshipActionInput","CreateDocumentAction","UpgradeDocumentAction","DeleteDocumentAction","AddRelationshipAction","RemoveRelationshipAction","UpdateRelationshipAction","DocumentAction","ISignal","TType","TInput","ISignalResult","TTYpe","TResult","CreateChildDocumentInput","CreateChildDocumentSignal","DeleteChildDocumentInput","DeleteChildDocumentSignal","CopyChildDocumentInput","newId","CopyChildDocumentSignal","Signal","SignalDispatch","SignalResult","SignalResults","CREATE_CHILD_DOCUMENT","COPY_CHILD_DOCUMENT","DELETE_CHILD_DOCUMENT","SignalType","FileInput","ArrayBuffer","Blob","ReducerOptions","TState","skip","ignoreSkipOperations","reuseOperationResultingState","checkHashes","replayOptions","operationResultingStateParser","pruneOnSkip","protocolVersion","skipIndexValidation","Reducer","StateReducer","FileRegistry","AttachmentRef","MappedOperation","DocumentOperationsIgnoreMap","ActionSignatureContext","signer","previousStateHash","ActionSigningHandler","message","ActionVerificationHandler","SignatureVerificationHandler","ENSInfo","avatarUrl","User","ens","PartialRecord","RevisionsFilter","GetDocumentOptions","revisions","ActionErrorCallback","EditorDispatch","onErrorCallback","EditorProps","className","SubgraphModule","gql","endpoint","EditorModule","TProps","Component","ValidationError","details","SkipHeaderOperations","ReplayDocumentOptions","SigningParameters","ISigner","CryptoKey","sign","verify","signAction","abortSignal","IsStateOfType","AssertIsStateOfType","IsDocumentOfType","AssertIsDocumentOfType","PartialState","CreateState","SaveToFileHandle","FileSystemFileHandle","SaveToFile","path","LoadFromInput","LoadFromFile","CreateDocument","createState","MinimalBackupData","DocumentModelUtils","fileExtension","createDocument","loadFromInput","saveToFileHandle","isStateOfType","assertIsStateOfType","isDocumentOfType","assertIsDocumentOfType","Actions","DocumentModelModule","utils","documentModel","DocumentModelLib","Manifest","manifest","upgradeManifests","processorFactory","DocumentModelDocumentModelModule","ConfigEntryType","infer","ConfigEntry","PowerhouseModule","Publisher","defaultAuthState","PHAuthState","defaultDocumentState","PHDocumentState","defaultBaseState","createAuthState","auth","createDocumentState","createBaseState","isDeleted","deletedAtUtcIso","deletedBy","deletionReason","defaultGlobalState","defaultLocalState","defaultPHState","createGlobalState","createLocalState","baseState","globalState","localState","setNameOperation","TDocument","PHDocumentMeta","header","sig","lastModifiedAtUtcIso","setPreferredEditorOperation","undoOperation","reuseLastOperationIndex","undoOperationV2","redoOperation","loadStateOperation","resultingState","DocumentOperations","OperationContext","ordinal","OperationWithContext$1","context","clipboard","isNoopOperation","TOp","isUndoRedo","isUndo","isDocumentAction","baseCreateDocument","hashDocumentStateForScope","readOnly","mapSkippedOperations","skippedHeadOperations","mapSkippedOperationsV2","garbageCollectV2","TOpIndex","sortedOperations","sortMappedOperations","replayDocument","skipHeaderOperations","parseResultingState","IntegrityIssueType","UNEXPECTED_INDEX","IntegrityIssueSubType","DUPLICATED_INDEX","MISSING_INDEX","IntegrityIssue","issue","Reshuffle","startIndex","opsA","opsB","checkCleanedOperationsIntegrity","garbageCollect","addUndo","sortOperations","reshuffleByTimestamp","reshuffleByTimestampAndIndex","operationsAreEqual","op1","op2","attachBranch","trunk","newBranch","precedes","split","sortedTargetOperations","sortedMergeOperations","merge","reshuffle","nextSkipNumber","checkOperationsIntegrity","groupOperationsByScope","PrepareOperationsResult","validOperations","invalidOperations","duplicatedOperations","integrityIssues","prepareOperations","operationsHistory","newOperations","removeExistingOperations","skipHeaderOperation","garbageCollectDocumentOperations","documentOperations","filterDuplicatedOperations","targetOperations","sourceOperations","filterDocumentOperationsResultingState","x","diffOperations","clearedOperationsA","clearedOperationsB","getDocumentLastModified","updateHeaderRevision","lastModifiedTimestamp","undo","redo","prune","loadState","noop","createAction","TAction","attachments","parse","validator","actionFromAction","operationFromAction","operationFromOperation","operationWithContext","ActionContext","actionContext","actionSigner","buildOperationSignature","signMethod","buildSignedAction","signHandler","verifyOperationSignature","verifyHandler","setName","setPreferredEditor","setOperationScope","operationExampleCreators","addChangeLogItem","updateChangeLogItem","deleteChangeLogItem","reorderChangeLogItems","baseActions","documentModelActions","prevOpIndex","prevOpHash","AttachmentInput","ActionWithAttachment","$a","$c","$i","$n","$o","$r","$s","$t","Aa","Ac","Ai","Al","An","Ao","Ar","As","At","B","Ba","Bc","Bi","Bl","Bn","Bo","Br","Bs","Bt","Ca","Cc","Ci","Cl","Cn","Co","Cr","Cs","Ct","D","Da","Dc","Di","Dl","Dn","Do","Dr","Ds","Dt","Ea","Ec","Ei","El","En","Eo","Er","Es","Et","F","Fa","Fc","Fi","Fl","Fn","Fo","Fr","Fs","Ft","G","Ga","Gc","Gi","Gl","Gn","Go","Gr","Gs","Gt","H","Ha","Hc","Hi","Hl","Hn","Ho","Hr","Hs","Ht","Ia","Ic","Ii","Il","In","Io","Ir","Is","It","J","Ja","Jc","Ji","Jl","Jn","Jo","Jr","Js","Jt","Ka","Kc","Ki","Kl","Kn","Ko","Kr","Ks","Kt","La","Lc","Li","Ll","Ln","Lo","Lr","Ls","Lt","M","Ma","Mc","Mi","Ml","Mn","Mo","Mr","Ms","Mt","Na","Nc","Ni","Nl","Nn","No","Nr","Ns","Nt","Oa","Oc","Oi","Ol","On","Oo","Or","Os","Ot","Pa","Pc","Pi","Pl","Pn","Po","Pr","Ps","Pt","Qa","Qc","Qi","Ql","Qn","Qo","Qr","Qs","Qt","Ra","Rc","Ri","Rl","Rn","Ro","Rr","Rs","Rt","Sa","Sc","Si","Sl","Sn","So","Sr","Ss","St","Ta","Tc","Ti","Tl","Tn","To","Tr","Ts","Tt","Ua","Uc","Ui","Ul","Un","Uo","Ur","Us","Ut","Va","Vc","Vi","Vl","Vn","Vo","Vr","Vs","Vt","Wa","Wc","Wi","Wl","Wn","Wo","Wr","Ws","Wt","X","Xa","Xc","Xi","Xl","Xn","Xo","Xr","Xs","Xt","Y","Ya","Yc","Yi","Yl","Yn","Yo","Yr","Ys","Yt","Z","Za","Zc","Zi","Zl","Zn","Zo","Zr","Zs","Zt","_a","_c","_i","_l","_n","_o","_r","_s","_t","a","aa","ac","ai","al","an","ao","ar","b","ba","bc","bi","bl","bn","bo","br","bs","bt","c","ca","cc","ci","cl","cn","co","cr","cs","ct","d","da","dc","di","dl","dn","do","dr","ds","dt","ea","ec","ei","el","en","eo","er","es","et","fa","fc","fi","fl","fo","fr","fs","ft","g","ga","gc","gi","gl","gn","go","gr","gs","gt","h","ha","hc","hi","hl","hn","ho","hr","hs","ht","i","ia","ic","ii","il","in","io","ir","it","j","ja","jc","ji","jl","jn","jo","jr","js","jt","k","ka","kc","ki","kl","kn","ko","kr","ks","kt","l","la","lc","li","ll","ln","lo","lr","ls","lt","m","ma","mc","mi","ml","mn","mo","mr","ms","mt","n","na","nc","ni","nl","nn","no","nr","ns","nt","o","oa","oc","oi","ol","oo","os","ot","p","pa","pc","pi","pl","pn","po","pr","ps","pt","q","qa","qc","qi","ql","qn","qo","qr","qs","qt","r","ra","rc","ri","rl","rn","ro","rr","rs","rt","s","sa","sc","si","sl","sn","so","sr","ss","st","t","ta","tc","ti","tl","tn","to","tr","ts","tt","u","ua","uc","ui","ul","un","uo","ur","us","ut","va","vc","vi","vl","vn","vo","vr","vs","vt","w","wa","wc","wi","wl","wn","wo","wr","ws","wt","xa","xc","xi","xl","xn","xo","xr","xs","xt","y","ya","yc","yi","yl","yn","yo","yr","ys","yt","za","zc","zi","zl","zn","zo","zr","zs","zt","Dialect","SchemaModule","DynamicModule","QueryExecutor","QueryCreator","KyselyPlugin","DatabaseIntrospector","Driver","IsolationLevel","AccessMode","FunctionModule","LogConfig","QueryExecutorProvider","QueryResult","CompiledQuery","QueryId","Compilable","CaseBuilder","Expression","DrainOuterGeneric","ReleaseSavepoint","RollbackToSavepoint","ControlledConnection","_0","global","AsyncDisposable","SymbolConstructor","asyncDispose","sideEffect","Kysely","V","T","R","DB","KyselyConfig","KyselyProps","TransactionBuilder","ControlledTransactionBuilder","ConnectionBuilder","Record","Promise","Symbol","private","constructor","args","schema","dynamic","introspection","case","value","fn","transaction","startTransaction","connection","withPlugin","plugin","withoutPlugins","withSchema","withTables","destroy","isTransaction","getExecutor","executeQuery","query","queryId","Transaction","props","config","driver","executor","dialect","isKyselyProps","obj","plugins","log","ConnectionBuilderProps","execute","db","callback","TransactionBuilderProps","setAccessMode","accessMode","setIsolationLevel","isolationLevel","trx","ControlledTransaction","SN","S","ControlledTransactionProps","Command","isCommitted","isRolledBack","commit","rollback","savepoint","savepointName","rollbackToSavepoint","releaseSavepoint","cb"],"sources":["../../actions-UH5nIJcP.d.ts","../../../../../node_modules/.pnpm/kysely@0.28.16/node_modules/kysely/dist/esm/kysely.d.ts","../../../clis/constants.ts","../../../clis/types.ts","../../../clis/args/service.ts"],"x_google_ignoreList":[1],"mappings":";;;;;;QAm4iBQ2tC,MAAAA;EAAAA,UACIC,eAAAA;EAAAA,UACAC,iBAAAA;IAAAA,SACCC,YAAAA;EAAAA;AAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QCl3iBL+4C,MAAAA;EAAAA,UACMC,eAAAA;EAAAA,UAEAC,iBAAAA;IAAAA,SACGC,YAAAA;EAAAA;AAAAA;;;;;;ACnBjB;;;;;;;;ACGA;;;;;AACA;;;;;;;;ACHA;;;;;;;;;cFDa,eAAA;;;KCGD,cAAA,UAAwB,eAAA;AAAA,KACxB,aAAA,GAAgB,cAAA;;;cCHf,WAAA;iBAKZ,6BAAA,CAAA,QAAA"}
@@ -1,2 +1,2 @@
1
- import { n as ServiceAction, t as serviceArgs } from "./service-C88bN_g_.mjs";
1
+ import { n as ServiceAction, t as serviceArgs } from "./service-LXIFUZ_8.mjs";
2
2
  export { ServiceAction, serviceArgs };
@@ -1,4 +1,4 @@
1
- import { O as SERVICE_ACTIONS, o as debugArgs } from "./common-Bc8EcW9w.mjs";
1
+ import { O as SERVICE_ACTIONS, o as debugArgs } from "./common-DPYlcz-d.mjs";
2
2
  import { oneOf, optional, positional } from "cmd-ts";
3
3
  //#region clis/args/service.ts
4
4
  const serviceArgs = {
@@ -1,4 +1,4 @@
1
- import { D as DEFAULT_VETRA_DRIVE_ID, T as DEFAULT_SWITCHBOARD_PORT, v as packages, y as vetraSwitchboardArgs } from "./common-Bc8EcW9w.mjs";
1
+ import { D as DEFAULT_VETRA_DRIVE_ID, T as DEFAULT_SWITCHBOARD_PORT, v as packages, y as vetraSwitchboardArgs } from "./common-DPYlcz-d.mjs";
2
2
  import { boolean, flag, number, option, optional, string } from "cmd-ts";
3
3
  //#region clis/args/switchboard.ts
4
4
  const switchboardArgs = {