@powerhousedao/shared 6.2.2-dev.7 → 6.2.2-dev.70

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 (107) hide show
  1. package/dist/clis/args/access-token.mjs +1 -1
  2. package/dist/clis/args/{common-DfMf08ur.d.mts → common-B_LcTLHX.d.mts} +7 -4
  3. package/dist/clis/args/{common-DfMf08ur.d.mts.map → common-B_LcTLHX.d.mts.map} +1 -1
  4. package/dist/clis/args/{common-dbsvksvf.mjs → common-CcYbXrBx.mjs} +7 -2
  5. package/dist/clis/args/common-CcYbXrBx.mjs.map +1 -0
  6. package/dist/clis/args/common.d.mts +2 -2
  7. package/dist/clis/args/common.mjs +2 -2
  8. package/dist/clis/args/connect.d.mts +14 -5
  9. package/dist/clis/args/connect.d.mts.map +1 -1
  10. package/dist/clis/args/connect.mjs +2 -1
  11. package/dist/clis/args/connect.mjs.map +1 -1
  12. package/dist/clis/args/{generate-Cs5okckF.mjs → generate-CQ78RxVS.mjs} +2 -2
  13. package/dist/clis/args/{generate-Cs5okckF.mjs.map → generate-CQ78RxVS.mjs.map} +1 -1
  14. package/dist/clis/args/generate.mjs +1 -1
  15. package/dist/clis/args/{help-BkF9Cxud.mjs → help-Dk-d57W1.mjs} +3 -3
  16. package/dist/clis/args/{help-BkF9Cxud.mjs.map → help-Dk-d57W1.mjs.map} +1 -1
  17. package/dist/clis/args/help.mjs +1 -1
  18. package/dist/clis/args/index.d.mts +3 -3
  19. package/dist/clis/args/index.mjs +4 -4
  20. package/dist/clis/args/init.mjs +1 -1
  21. package/dist/clis/args/inspect.mjs +1 -1
  22. package/dist/clis/args/install.mjs +1 -1
  23. package/dist/clis/args/list.mjs +1 -1
  24. package/dist/clis/args/login.mjs +1 -1
  25. package/dist/clis/args/migrate.mjs +1 -1
  26. package/dist/clis/args/publish.mjs +1 -1
  27. package/dist/clis/args/registry.mjs +1 -1
  28. package/dist/clis/args/{service-C88bN_g_.d.mts → service-51afW_Hz.d.mts} +2 -2
  29. package/dist/clis/args/{service-C88bN_g_.d.mts.map → service-51afW_Hz.d.mts.map} +1 -1
  30. package/dist/clis/args/service.d.mts +1 -1
  31. package/dist/clis/args/service.mjs +1 -1
  32. package/dist/clis/args/switchboard.mjs +1 -1
  33. package/dist/clis/args/uninstall.mjs +1 -1
  34. package/dist/clis/args/unpublish.mjs +1 -1
  35. package/dist/clis/args/vetra.d.mts +1 -1
  36. package/dist/clis/args/vetra.mjs +1 -1
  37. package/dist/clis/build-config.d.mts +1 -1
  38. package/dist/clis/build-config.d.mts.map +1 -1
  39. package/dist/clis/constants.d.mts +177 -50
  40. package/dist/clis/constants.d.mts.map +1 -1
  41. package/dist/clis/constants.mjs +6 -2
  42. package/dist/clis/constants.mjs.map +1 -1
  43. package/dist/clis/index.d.mts +496 -4
  44. package/dist/clis/index.d.mts.map +1 -1
  45. package/dist/clis/index.mjs +315 -7
  46. package/dist/clis/index.mjs.map +1 -1
  47. package/dist/{config-loader-19K8n4DO.js → config-loader-Dw3syw7r.js} +10 -14
  48. package/dist/config-loader-Dw3syw7r.js.map +1 -0
  49. package/dist/connect/config-loader.d.ts +2 -1
  50. package/dist/connect/config-loader.d.ts.map +1 -1
  51. package/dist/connect/config-loader.js +1 -1
  52. package/dist/connect/index.d.ts +435 -14
  53. package/dist/connect/index.d.ts.map +1 -1
  54. package/dist/connect/index.js +498 -2
  55. package/dist/connect/index.js.map +1 -1
  56. package/dist/connect/json-adapter.d.ts.map +1 -1
  57. package/dist/{constants-C_EQX4DY.d.ts → constants-BP_gjn8g.d.ts} +1 -1
  58. package/dist/constants-BP_gjn8g.d.ts.map +1 -0
  59. package/dist/constants.d.ts +1 -1
  60. package/dist/document-drive/index.d.ts +2 -2
  61. package/dist/document-model/index.d.ts +4 -5
  62. package/dist/document-model/index.js +1302 -131
  63. package/dist/document-model/index.js.map +1 -1
  64. package/dist/document-model/mock.d.ts +22 -2
  65. package/dist/document-model/mock.d.ts.map +1 -0
  66. package/dist/document-model/mock.js +32 -3
  67. package/dist/document-model/mock.js.map +1 -1
  68. package/dist/document-model/utils.d.ts +1 -2
  69. package/dist/document-model/utils.js +1 -2
  70. package/dist/{index-CQDIrK1k.d.ts → index-C_iVZe7f.d.ts} +1 -1
  71. package/dist/index-C_iVZe7f.d.ts.map +1 -0
  72. package/dist/index-ekNScCAT.d.ts +814 -0
  73. package/dist/index-ekNScCAT.d.ts.map +1 -0
  74. package/dist/index.d.ts +5 -6
  75. package/dist/processors/index.d.ts +2 -2
  76. package/dist/registry/index.d.ts +5 -4
  77. package/dist/registry/index.d.ts.map +1 -1
  78. package/dist/registry/index.js +9 -8
  79. package/dist/registry/index.js.map +1 -1
  80. package/dist/registry/manifest-slim.d.ts +1 -1
  81. package/dist/registry/urls.d.ts +11 -0
  82. package/dist/registry/urls.d.ts.map +1 -0
  83. package/dist/registry/urls.js +15 -0
  84. package/dist/registry/urls.js.map +1 -0
  85. package/dist/{types-DXsYu6Tq.d.ts → types-CwXhEcuT.d.ts} +463 -15
  86. package/dist/types-CwXhEcuT.d.ts.map +1 -0
  87. package/dist/{types-DvWPqxJr.d.ts → types-ssRxhjxu.d.ts} +29 -3
  88. package/dist/{types-DvWPqxJr.d.ts.map → types-ssRxhjxu.d.ts.map} +1 -1
  89. package/dist/utils-DP122OSS.d.ts +18 -0
  90. package/dist/utils-DP122OSS.d.ts.map +1 -0
  91. package/dist/{utils-DKOFCM0Q.js → utils-aaTmfxFW.js} +45 -2
  92. package/dist/utils-aaTmfxFW.js.map +1 -0
  93. package/package.json +3 -1
  94. package/dist/clis/args/common-dbsvksvf.mjs.map +0 -1
  95. package/dist/config-loader-19K8n4DO.js.map +0 -1
  96. package/dist/constants-C_EQX4DY.d.ts.map +0 -1
  97. package/dist/index-CQDIrK1k.d.ts.map +0 -1
  98. package/dist/index-Dz7JrBXs.d.ts +0 -399
  99. package/dist/index-Dz7JrBXs.d.ts.map +0 -1
  100. package/dist/mock-CBcf78ra.d.ts +0 -7
  101. package/dist/mock-CBcf78ra.d.ts.map +0 -1
  102. package/dist/types-D0NNBVGA.d.ts +0 -167
  103. package/dist/types-D0NNBVGA.d.ts.map +0 -1
  104. package/dist/types-DXsYu6Tq.d.ts.map +0 -1
  105. package/dist/utils-BEByNOHo.d.ts +0 -9
  106. package/dist/utils-BEByNOHo.d.ts.map +0 -1
  107. package/dist/utils-DKOFCM0Q.js.map +0 -1
@@ -1,52 +1,5 @@
1
1
  import { z } from "zod";
2
2
 
3
- //#region document-model/schemas.d.ts
4
- declare const ManifestSchema: z.ZodObject<{
5
- name: z.ZodString;
6
- description: z.ZodOptional<z.ZodString>;
7
- category: z.ZodOptional<z.ZodString>;
8
- image: z.ZodOptional<z.ZodString>;
9
- publisher: z.ZodOptional<z.ZodObject<{
10
- name: z.ZodOptional<z.ZodString>;
11
- url: z.ZodOptional<z.ZodString>;
12
- }, z.core.$strip>>;
13
- documentModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
14
- id: z.ZodString;
15
- name: z.ZodString;
16
- documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
17
- }, z.core.$strip>>>;
18
- apps: z.ZodOptional<z.ZodArray<z.ZodObject<{
19
- id: z.ZodString;
20
- name: z.ZodString;
21
- documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
22
- }, z.core.$strip>>>;
23
- editors: z.ZodOptional<z.ZodArray<z.ZodObject<{
24
- id: z.ZodString;
25
- name: z.ZodString;
26
- documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
27
- }, z.core.$strip>>>;
28
- processors: z.ZodOptional<z.ZodArray<z.ZodObject<{
29
- id: z.ZodString;
30
- name: z.ZodString;
31
- documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
32
- }, z.core.$strip>>>;
33
- subgraphs: z.ZodOptional<z.ZodArray<z.ZodObject<{
34
- id: z.ZodString;
35
- name: z.ZodString;
36
- documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
- }, z.core.$strip>>>;
38
- config: z.ZodOptional<z.ZodArray<z.ZodObject<{
39
- name: z.ZodString;
40
- type: z.ZodUnion<readonly [z.ZodLiteral<"var">, z.ZodLiteral<"secret">]>;
41
- description: z.ZodOptional<z.ZodString>;
42
- required: z.ZodOptional<z.ZodBoolean>;
43
- default: z.ZodOptional<z.ZodBoolean>;
44
- }, z.core.$strip>>>;
45
- }, z.core.$strip>;
46
- //#endregion
47
- //#region document-model/types.d.ts
48
- type Manifest = z.infer<typeof ManifestSchema>;
49
- //#endregion
50
3
  //#region clis/types.d.ts
51
4
  type DrivePreserveStrategies = typeof DRIVES_PRESERVE_STRATEGIES;
52
5
  type DrivePreserveStrategy = DrivePreserveStrategies[number];
@@ -93,11 +46,26 @@ type PHConnectPackages = {
93
46
  externalEnabled?: boolean; /** Subscribe to the static-mode `/__packages` SSE channel for live reload. */
94
47
  liveReload?: boolean;
95
48
  };
49
+ type PHRenownRainbowAdapterConfig = {
50
+ /** WalletConnect project id; required for the rainbow adapter to function. */walletConnectProjectId?: string; /** Optional Infura project id used to build RPC transports. */
51
+ infuraProjectId?: string;
52
+ };
53
+ type PHRenownPrivyAdapterConfig = {
54
+ /** Privy application id; required for the privy adapter to function. */appId?: string; /** Optional Privy client id. */
55
+ clientId?: string; /** Login methods this adapter offers; defaults per adapter when omitted. */
56
+ methods?: string[];
57
+ };
58
+ type PHConnectRenownAdapters = {
59
+ rainbow?: PHRenownRainbowAdapterConfig;
60
+ privy?: PHRenownPrivyAdapterConfig;
61
+ };
96
62
  type PHConnectRenown = {
97
63
  url?: string;
98
64
  networkId?: string;
99
65
  chainId?: number; /** Renown localStorage namespace; share it across Connects to share login. */
100
- namespace?: string;
66
+ namespace?: string; /** Switchboard GraphQL URL; when set, enables in-page (no-redirect) auth. */
67
+ switchboardUrl?: string; /** Per-adapter wallet config; presence of a key enables that adapter. */
68
+ adapters?: PHConnectRenownAdapters;
101
69
  };
102
70
  type PHConnectSentry = {
103
71
  /** Sentry DSN URL. `null` disables Sentry entirely. */dsn?: string | null; /** Sentry environment label. */
@@ -108,6 +76,106 @@ type PHConnectInstance = {
108
76
  namespace: string | null;
109
77
  reactorWorker: boolean;
110
78
  };
79
+ /** Each flag implies its predecessors, and must match the fleet Connect syncs
80
+ * with or the two compute different replay outcomes. */
81
+ type PHConnectReactorFeatureFlags = {
82
+ /** Decide writes from the document stream instead of the meta cache. */documentDecisions?: boolean; /** Enforce the auth scope's policy at admission, replay, and read. */
83
+ authEnforcement?: boolean; /** Let `{ group }` principals match, via the group documents' rosters. */
84
+ authGroups?: boolean; /** Evaluate `where` / `match` conditions on grants. */
85
+ authConditions?: boolean;
86
+ };
87
+ type PHConnectReactor = {
88
+ featureFlags?: PHConnectReactorFeatureFlags;
89
+ };
90
+ /**
91
+ * A URL-matching pattern for a service-worker runtime-caching rule, in
92
+ * JSON-serialisable form. A plain string is handed to Workbox verbatim (exact
93
+ * URL or same-origin path match). `{ source, flags }` is reconstructed into a
94
+ * `RegExp` at build time — use it for prefix/suffix/origin matches (e.g.
95
+ * `{ source: "^https://api\\.acme\\.io/" }`). Function-valued patterns aren't
96
+ * expressible here; regex covers the realistic package cases.
97
+ */
98
+ type PHConnectPwaUrlPattern = string | {
99
+ source: string;
100
+ flags?: string;
101
+ };
102
+ type PHConnectPwaCacheStrategy = "CacheFirst" | "CacheOnly" | "NetworkFirst" | "NetworkOnly" | "StaleWhileRevalidate";
103
+ /** Serialisable subset of a Workbox `RuntimeCaching` rule. */
104
+ type PHConnectPwaRuntimeCaching = {
105
+ urlPattern: PHConnectPwaUrlPattern;
106
+ handler: PHConnectPwaCacheStrategy;
107
+ method?: "GET" | "POST" | "PUT" | "DELETE" | "HEAD" | "PATCH";
108
+ options?: {
109
+ cacheName?: string;
110
+ /** Seconds a NetworkFirst rule waits for the network before falling back
111
+ * to the cache. */
112
+ networkTimeoutSeconds?: number;
113
+ expiration?: {
114
+ maxEntries?: number;
115
+ maxAgeSeconds?: number;
116
+ };
117
+ cacheableResponse?: {
118
+ statuses?: number[];
119
+ headers?: Record<string, string>;
120
+ };
121
+ };
122
+ };
123
+ type PHConnectPwaIcon = {
124
+ src: string;
125
+ sizes?: string;
126
+ type?: string;
127
+ purpose?: string;
128
+ };
129
+ /**
130
+ * A File Handling API entry a package or project contributes: the OS-level
131
+ * file types the installed Connect PWA offers to open. There is deliberately
132
+ * no `action` field — consuming launched files requires runtime code that
133
+ * lives in Connect itself, so every handler (built-in or contributed) opens
134
+ * at Connect's app root, injected at build time.
135
+ */
136
+ type PHConnectPwaFileHandler = {
137
+ /** MIME type → file extensions (each must start with "."). */accept: Record<string, string[]>; /** OS-level file-type icons. */
138
+ icons?: PHConnectPwaIcon[];
139
+ launch_type?: "single-client" | "multiple-clients";
140
+ };
141
+ /** Web-app-manifest fields a package or project may override. */
142
+ type PHConnectPwaManifest = {
143
+ name?: string;
144
+ short_name?: string;
145
+ description?: string;
146
+ theme_color?: string;
147
+ background_color?: string;
148
+ display?: "fullscreen" | "standalone" | "minimal-ui" | "browser";
149
+ start_url?: string;
150
+ scope?: string;
151
+ icons?: PHConnectPwaIcon[]; /** Extra file associations, appended after Connect's built-in `.phd`/`.phdm` handler. */
152
+ file_handlers?: PHConnectPwaFileHandler[]; /** How the OS launches the app for handled files/links. */
153
+ launch_handler?: {
154
+ client_mode: "auto" | "focus-existing" | "navigate-existing" | "navigate-new";
155
+ };
156
+ /** App-store-style categories. NOT authored under `connect.pwa` — derived at
157
+ * build/runtime from the `category` field of every contributing
158
+ * `powerhouse.manifest.json` (project + packages), unioned across them. */
159
+ categories?: string[];
160
+ };
161
+ /**
162
+ * PWA / service-worker overrides contributed by a package or the project.
163
+ * Layered on top of Connect's hardcoded PWA defaults at build time. Scalar
164
+ * fields deep-merge (later layer wins); every array member — the manifest
165
+ * arrays (`icons`, `file_handlers`, and the derived `categories`) plus the
166
+ * top-level `globPatterns`, `globIgnores`, `runtimeCaching` and
167
+ * `navigateFallbackDenylist` — is additive (concatenated/unioned);
168
+ * `maximumFileSizeToCacheInBytes` takes the max across contributors.
169
+ * Precedence: defaults < package fragments < project config.
170
+ */
171
+ type PHConnectPwa = {
172
+ manifest?: PHConnectPwaManifest; /** Extra Workbox precache globs, unioned with the built-in patterns. */
173
+ globPatterns?: string[]; /** Extra Workbox precache ignore globs, unioned with the built-in list. */
174
+ globIgnores?: string[]; /** Raise the precache file-size ceiling; the max across contributors wins. */
175
+ maximumFileSizeToCacheInBytes?: number; /** Additional runtime-caching rules, appended after the built-in rules. */
176
+ runtimeCaching?: PHConnectPwaRuntimeCaching[]; /** Extra SPA-fallback denylist patterns, unioned with the built-in list. */
177
+ navigateFallbackDenylist?: PHConnectPwaUrlPattern[];
178
+ };
111
179
  type PHConnectRuntimeConfig = {
112
180
  branding?: PHConnectBranding;
113
181
  app?: PHConnectApp;
@@ -116,6 +184,16 @@ type PHConnectRuntimeConfig = {
116
184
  renown?: PHConnectRenown;
117
185
  sentry?: PHConnectSentry;
118
186
  instance?: PHConnectInstance;
187
+ reactor?: PHConnectReactor;
188
+ pwa?: PHConnectPwa;
189
+ };
190
+ /** Which Renown instance a reactor authenticates against, server-side. */
191
+ type PHReactorRenown = {
192
+ /** "self" reads this reactor's own renown read model; "remote" (default)
193
+ * queries a Renown or Switchboard instance. */
194
+ source?: "remote" | "self"; /** Renown base URL; also the instance this reactor's own identity uses. */
195
+ url?: string; /** Switchboard GraphQL endpoint to read credentials from directly. */
196
+ switchboardUrl?: string;
119
197
  };
120
198
  type PowerhouseConfig = {
121
199
  logLevel: LogLevel;
@@ -142,6 +220,7 @@ type PowerhouseConfig = {
142
220
  auth?: {
143
221
  enabled?: boolean;
144
222
  admins: string[];
223
+ renown?: PHReactorRenown;
145
224
  };
146
225
  switchboard?: {
147
226
  database?: {
@@ -164,6 +243,54 @@ type PowerhouseConfig = {
164
243
  connect?: PHConnectRuntimeConfig;
165
244
  };
166
245
  //#endregion
246
+ //#region document-model/schemas.d.ts
247
+ declare const ManifestSchema: z.ZodObject<{
248
+ name: z.ZodString;
249
+ description: z.ZodOptional<z.ZodString>;
250
+ category: z.ZodOptional<z.ZodString>;
251
+ image: z.ZodOptional<z.ZodString>;
252
+ publisher: z.ZodOptional<z.ZodObject<{
253
+ name: z.ZodOptional<z.ZodString>;
254
+ url: z.ZodOptional<z.ZodString>;
255
+ }, z.core.$strip>>;
256
+ documentModels: z.ZodOptional<z.ZodArray<z.ZodObject<{
257
+ id: z.ZodString;
258
+ name: z.ZodString;
259
+ documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
260
+ }, z.core.$strip>>>;
261
+ apps: z.ZodOptional<z.ZodArray<z.ZodObject<{
262
+ id: z.ZodString;
263
+ name: z.ZodString;
264
+ documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
265
+ }, z.core.$strip>>>;
266
+ editors: z.ZodOptional<z.ZodArray<z.ZodObject<{
267
+ id: z.ZodString;
268
+ name: z.ZodString;
269
+ documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
270
+ }, z.core.$strip>>>;
271
+ processors: z.ZodOptional<z.ZodArray<z.ZodObject<{
272
+ id: z.ZodString;
273
+ name: z.ZodString;
274
+ documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
275
+ }, z.core.$strip>>>;
276
+ subgraphs: z.ZodOptional<z.ZodArray<z.ZodObject<{
277
+ id: z.ZodString;
278
+ name: z.ZodString;
279
+ documentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
280
+ }, z.core.$strip>>>;
281
+ config: z.ZodOptional<z.ZodArray<z.ZodObject<{
282
+ name: z.ZodString;
283
+ type: z.ZodUnion<readonly [z.ZodLiteral<"var">, z.ZodLiteral<"secret">]>;
284
+ description: z.ZodOptional<z.ZodString>;
285
+ required: z.ZodOptional<z.ZodBoolean>;
286
+ default: z.ZodOptional<z.ZodBoolean>;
287
+ }, z.core.$strip>>>;
288
+ pwa: z.ZodOptional<z.ZodType<PHConnectPwa, unknown, z.core.$ZodTypeInternals<PHConnectPwa, unknown>>>;
289
+ }, z.core.$strip>;
290
+ //#endregion
291
+ //#region document-model/types.d.ts
292
+ type Manifest = z.infer<typeof ManifestSchema>;
293
+ //#endregion
167
294
  //#region clis/constants.d.ts
168
295
  declare const SERVICE_ACTIONS: readonly ["start", "stop", "status", "setup", "restart"];
169
296
  declare const SECONDS_IN_DAY: number;
@@ -177,7 +304,7 @@ declare const DEFAULT_VETRA_CONNECT_PORT: 3001;
177
304
  declare const DEFAULT_CONNECT_PREVIEW_PORT: 4173;
178
305
  declare const DEFAULT_CONNECT_OUTDIR: ".ph/connect-build/dist/";
179
306
  declare const DEFAULT_RENOWN_URL: "https://www.renown.id";
180
- declare const DEFAULT_REGISTRY_URL: "https://registry.dev.vetra.io";
307
+ declare const DEFAULT_REGISTRY_URL: "https://registry.vetra.io";
181
308
  declare const DEFAULT_SWITCHBOARD_PORT: 4001;
182
309
  declare const DEFAULT_VETRA_DRIVE_ID: "vetra";
183
310
  declare const MINIMUM_NODE_VERSION: "24.0.0";
@@ -221,7 +348,7 @@ declare const FEATURE_DEPENDENCIES: {
221
348
  };
222
349
  };
223
350
  declare const VERSIONED_DEPENDENCIES: string[];
224
- declare const BOILERPLATE_ALLOWED_BUILDS: readonly ["@apollo/protobufjs", "@datadog/pprof", "@parcel/watcher", "esbuild", "protobufjs"];
351
+ declare const BOILERPLATE_ALLOWED_BUILDS: readonly ["@apollo/protobufjs", "@datadog/pprof", "@parcel/watcher", "@reown/appkit", "bufferutil", "esbuild", "keccak", "protobufjs", "utf-8-validate"];
225
352
  declare const BOILERPLATE_PNPM_OVERRIDES: {
226
353
  readonly "date-fns": "4.3.0";
227
354
  readonly vite: "8.0.14";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.mts","names":[],"sources":["../../document-model/schemas.ts","../../document-model/types.ts","../../clis/types.ts","../../clis/constants.ts"],"mappings":";;;cAixBa,cAAA,EAAc,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KCw6Bf,QAAA,GAAW,CAAA,C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cAqBA,eAAA,EAAiB,QAAA;AAAA,cAuBjB,cAAA,EAAgB,gBAAA"}
1
+ {"version":3,"file":"constants.d.mts","names":[],"sources":["../../clis/types.ts","../../document-model/schemas.ts","../../document-model/types.ts","../../clis/constants.ts"],"mappings":";;;KAUY,uBAAA,UAAiC,0BAAA;AAAA,KACjC,qBAAA,GAAwB,uBAAA;AAAA,KACxB,SAAA,UAAmB,UAAA;AAAA,KACnB,QAAA,GAAW,SAAA;AAAA,KAOX,iBAAA;AAAA,KAGA,iBAAA;EACV,WAAA;EACA,OAAA;EACA,QAAA,GAAW,iBAAA;EACX,GAAA;AAAA;AAAA,KAGU,iBAAA;EACV,OAAA;EACA,cAAA;AAAA;AAAA,KAGU,qBAAA;EACV,GAAA;EACA,IAAA;EACA,IAAA;AAAA;AAAA,KAGU,qBAAA;EACV,OAAA;EACA,QAAA;EACA,WAAA;AAAA;AAAA,KAGU,sBAAA;EACV,MAAA,GAAS,qBAAA;EACT,KAAA,GAAQ,qBAAA;AAAA;AAAA,KAGE,eAAA;EACV,aAAA;EACA,aAAA,GAAgB,qBAAA;EAChB,gBAAA,GAAmB,qBAAA;EACnB,QAAA,GAAW,sBAAA;AAAA;AAAA,KAGD,YAAA;EACV,QAAA;EACA,QAAA;EACA,OAAA;EAGA,UAAA;AAAA;AAAA,KAGU,iBAAA;EACV,eAAA,YA/BI;EAiCJ,UAAA;AAAA;AAAA,KAGU,4BAAA;gFAEV,sBAAA,WAlCA;EAoCA,eAAA;AAAA;AAAA,KAGU,0BAAA;EArCC,wEAuCX,KAAA,WApCgC;EAsChC,QAAA,WApC6B;EAsC7B,OAAA;AAAA;AAAA,KAGU,uBAAA;EACV,OAAA,GAAU,4BAAA;EACV,KAAA,GAAQ,0BAAA;AAAA;AAAA,KAGE,eAAA;EACV,GAAA;EACA,SAAA;EACA,OAAA,WA3CmB;EA6CnB,SAAA,WA5CiC;EA8CjC,cAAA,WAjDA;EAmDA,QAAA,GAAW,uBAAA;AAAA;AAAA,K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sBAAA;AAAA,cAEA,oBAAA;AAAA,cACA,MAAA;AAAA,cACA,sBAAA;AAAA,cACA,kBAAA;AAAA,cAEA,sBAAA;AAAA,cAEA,QAAA;AAAA,cAEA,qBAAA;AAAA,cAGA,2BAAA;AAAA,cAOA,mBAAA;AAAA,cACA,6BAAA;AAAA,cAEA,eAAA;AAAA,cACA,mBAAA;AAAA,cAQA,0BAAA;EAAA;;;;;;;;;;;;;;;;;;;;;cASA,oBAAA;EAAA;;;;;cAUA,sBAAA;AAAA,cAUA,0BAAA;AAAA,cAgBA,0BAAA;EAAA;;;;cAMA,0BAAA;AAAA,cAQA,kBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4CA,cAAA;EAAA;;;;;;;;;;;;;;;;cAoBA,oBAAA;AAAA,cAIA,+BAAA;AAAA,cAcA,wBAAA;AAAA,cAwBA,uBAAA;EAAA;;;;;;;;;;;;;;;;;;;cAqBA,eAAA,EAAiB,QAAA;AAAA,cAuBjB,cAAA,EAAgB,gBAAA"}
@@ -25,7 +25,7 @@ const DEFAULT_VETRA_CONNECT_PORT = 3001;
25
25
  const DEFAULT_CONNECT_PREVIEW_PORT = 4173;
26
26
  const DEFAULT_CONNECT_OUTDIR = ".ph/connect-build/dist/";
27
27
  const DEFAULT_RENOWN_URL = "https://www.renown.id";
28
- const DEFAULT_REGISTRY_URL = "https://registry.dev.vetra.io";
28
+ const DEFAULT_REGISTRY_URL = "https://registry.vetra.io";
29
29
  const DEFAULT_SWITCHBOARD_PORT = 4001;
30
30
  const DEFAULT_VETRA_DRIVE_ID = "vetra";
31
31
  const MINIMUM_NODE_VERSION = "24.0.0";
@@ -71,8 +71,12 @@ const BOILERPLATE_ALLOWED_BUILDS = [
71
71
  "@apollo/protobufjs",
72
72
  "@datadog/pprof",
73
73
  "@parcel/watcher",
74
+ "@reown/appkit",
75
+ "bufferutil",
74
76
  "esbuild",
75
- "protobufjs"
77
+ "keccak",
78
+ "protobufjs",
79
+ "utf-8-validate"
76
80
  ];
77
81
  const BOILERPLATE_PNPM_OVERRIDES = {
78
82
  "date-fns": "4.3.0",
@@ -1 +1 @@
1
- {"version":3,"file":"constants.mjs","names":[],"sources":["../../clis/constants.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.6\" },\n \"react-dom\": { peer: \"^19\", dev: \"19.2.6\" },\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\n// pnpm `overrides` written into the generated project's pnpm-workspace.yaml to\n// force a single chosen version of each, avoiding duplicates from coexisting\n// version ranges. Generated-project only — never change the monorepo catalog\n// for this (a re-resolution there pulls a tsc-crashing TS6 beta).\nexport const BOILERPLATE_PNPM_OVERRIDES = {\n \"date-fns\": \"4.3.0\",\n vite: \"8.0.14\",\n rolldown: \"1.0.2\",\n} as const satisfies Record<string, string>;\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 \"./reactor\": {\n types: \"./dist/types/reactor/index.d.ts\",\n browser: \"./dist/browser/reactor/index.js\",\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: \"oxlint --type-aware --type-check\",\n \"lint:fix\": \"oxlint --type-aware --type-check --fix\",\n format: \"oxfmt\",\n \"format:check\": \"oxfmt --check\",\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\n// eslint/prettier devDependencies present in projects scaffolded before the oxc migration.\n// Stripped from package.json during `ph migrate`.\nexport const LEGACY_LINT_FORMAT_DEPENDENCIES = [\n \"@eslint/js\",\n \"eslint\",\n \"eslint-config-prettier\",\n \"eslint-plugin-prettier\",\n \"eslint-plugin-react\",\n \"eslint-plugin-react-hooks\",\n \"globals\",\n \"prettier\",\n \"typescript-eslint\",\n] as const;\n\n// Legacy lint/format config files written by eslint/prettier boilerplate.\n// Removed from the project root during `ph migrate`.\nexport const LEGACY_LINT_FORMAT_FILES = [\n \"eslint.config.js\",\n \"eslint.config.mjs\",\n \"eslint.config.cjs\",\n \"eslint.config.ts\",\n \".eslintrc\",\n \".eslintrc.js\",\n \".eslintrc.cjs\",\n \".eslintrc.json\",\n \".eslintrc.yml\",\n \".eslintrc.yaml\",\n \".eslintignore\",\n \".prettierrc\",\n \".prettierrc.js\",\n \".prettierrc.cjs\",\n \".prettierrc.json\",\n \".prettierrc.yml\",\n \".prettierrc.yaml\",\n \"prettier.config.js\",\n \"prettier.config.cjs\",\n \"prettier.config.mjs\",\n \".prettierignore\",\n] as const;\n\nexport const externalDevDependencies = {\n \"@electric-sql/pglite\": \"0.3.15\",\n \"@electric-sql/pglite-tools\": \"0.2.20\",\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 oxfmt: \"0.55.0\",\n oxlint: \"1.70.0\",\n \"oxlint-tsgolint\": \"0.23.0\",\n tailwindcss: \"^4.1.16\",\n typescript: \"^5.9.3\",\n vite: \"^8.0.10\",\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"],"mappings":";;;AAKA,MAAa,kBAAkB;CAC7B;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,iBAAiB,OAAU;AACxC,MAAa,sBAAsB;AACnC,MAAa,yBAAA,IAA+C;AAE5D,MAAa,6BAA6B,CACxC,gBACA,6BACD;AAED,MAAa,aAAa;CACxB;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,kBAAkB;AAE/B,MAAa,8BAA8B;AAE3C,MAAa,6BAA6B;AAE1C,MAAa,+BAA+B;AAE5C,MAAa,yBAAyB;AAEtC,MAAa,qBAAqB;AAElC,MAAa,uBAAuB;AAEpC,MAAa,2BAA2B;AAExC,MAAa,yBAAyB;AAEtC,MAAa,uBAAuB;AACpC,MAAa,SAAS;AACtB,MAAa,yBAAyB;AACtC,MAAa,qBAAqB;AAElC,MAAa,yBAAA;AAEb,MAAa,WAAW,SAAS;AAEjC,MAAa,wBAAwB,KAAK,UAAA,MAA6B;AAGvE,MAAa,8BAA8B,CACzC,kBACA,iCACD;AAID,MAAa,sBAAsB;AACnC,MAAa,gCACX;AACF,MAAa,kBAAkB;AAC/B,MAAa,sBAAsB;AAQnC,MAAa,6BAA6B;EACvC,kBAAkB;EAAE,MAAM;EAAO,KAAK;EAAW;EACjD,sBAAsB;EAAE,MAAM;EAAM,KAAK;EAAU;CACpD,OAAO;EAAE,MAAM;EAAO,KAAK;EAAU;CACrC,aAAa;EAAE,MAAM;EAAO,KAAK;EAAU;CAC3C,KAAK;EAAE,MAAM;EAAM,KAAK;EAAS;CAClC;AAGD,MAAa,uBAAuB,EAClC,oBAAoB;CAClB,eAAe,CAAC,8BAA8B;CAC9C,cAAc,EAAE;CACjB,EACF;AAKD,MAAa,yBAAyB,CACpC,GAAG,6BACH,GAAG,qBAAqB,mBAAmB,cAC5C;AAOD,MAAa,6BAA6B;CACxC;CACA;CACA;CACA;CACA;CACD;AAMD,MAAa,6BAA6B;CACxC,YAAY;CACZ,MAAM;CACN,UAAU;CACX;AAED,MAAa,6BAA6B;CACxC;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,qBAAqB;CAChC,KAAK;EACH,OAAO;EACP,SAAS;EACT,MAAM;EACP;CACD,aAAa;EACX,OAAO;EACP,SAAS;EACV;CACD,qBAAqB;EACnB,OAAO;EACP,SAAS;EACT,MAAM;EACP;CACD,uBAAuB;EACrB,OAAO;EACP,SAAS;EACT,MAAM;EACP;CACD,aAAa;EACX,OAAO;EACP,SAAS;EACT,MAAM;EACP;CACD,eAAe;EACb,OAAO;EACP,SAAS;EACT,MAAM;EACP;CACD,eAAe;EACb,OAAO;EACP,SAAS;EACT,MAAM;EACP;CACD,gBAAgB;EACd,OAAO;EACP,SAAS;EACT,MAAM;EACP;CACD,cAAc;CACd,eAAe;CAChB;AAED,MAAa,iBAAiB;CAC5B,cAAc;CACd,MAAM;CACN,YAAY;CACZ,QAAQ;CACR,gBAAgB;CAChB,KAAK;CACL,aAAa;CACb,UAAU;CACV,SAAS;CACT,OAAO;CACP,SAAS;CACT,SAAS;CACT,OAAO;CACP,mBACE;CACF,qBACE;CACH;AAED,MAAa,uBAAuB,EAAE;AAItC,MAAa,kCAAkC;CAC7C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAID,MAAa,2BAA2B;CACtC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,0BAA0B;CACrC,wBAAwB;CACxB,8BAA8B;CAC9B,uCAAuC;CACvC,oBAAoB;CACpB,qBAAqB;CACrB,eAAe;CACf,gBAAgB;CAChB,oBAAoB;CACpB,wBAAwB;CACxB,uBAAuB;CACvB,OAAO;CACP,QAAQ;CACR,mBAAmB;CACnB,aAAa;CACb,YAAY;CACZ,MAAM;CACN,uBAAuB;CACvB,QAAQ;CACT;AAED,MAAa,kBAA4B;CACvC,MAAM;CACN,aAAa;CACb,UAAU;CACV,WAAW;EACT,MAAM;EACN,KAAK;EACN;CACD,gBAAgB,EAAE;CAClB,SAAS,EAAE;CACX,MAAM,EAAE;CACR,WAAW,EAAE;CACb,YAAY,EAAE;CACf;AAUD,MAAa,iBAAmC;CAC9C,mBATkC;CAUlC,YAT0B;CAU1B,eAT6B;CAU7B,cAT4B;CAU5B,kBATiC;CAUjC,YAT0B;CAU1B,UATwB;CAUxB,MAAM;EACJ,SAAS;EACT,QAAQ,EAAE;EACX;CACF"}
1
+ {"version":3,"file":"constants.mjs","names":[],"sources":["../../clis/constants.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.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.6\" },\n \"react-dom\": { peer: \"^19\", dev: \"19.2.6\" },\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 \"@reown/appkit\",\n \"bufferutil\",\n \"esbuild\",\n \"keccak\",\n \"protobufjs\",\n \"utf-8-validate\",\n] as const;\n\n// pnpm `overrides` written into the generated project's pnpm-workspace.yaml to\n// force a single chosen version of each, avoiding duplicates from coexisting\n// version ranges. Generated-project only — never change the monorepo catalog\n// for this (a re-resolution there pulls a tsc-crashing TS6 beta).\nexport const BOILERPLATE_PNPM_OVERRIDES = {\n \"date-fns\": \"4.3.0\",\n vite: \"8.0.14\",\n rolldown: \"1.0.2\",\n} as const satisfies Record<string, string>;\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 \"./reactor\": {\n types: \"./dist/types/reactor/index.d.ts\",\n browser: \"./dist/browser/reactor/index.js\",\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: \"oxlint --type-aware --type-check\",\n \"lint:fix\": \"oxlint --type-aware --type-check --fix\",\n format: \"oxfmt\",\n \"format:check\": \"oxfmt --check\",\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\n// eslint/prettier devDependencies present in projects scaffolded before the oxc migration.\n// Stripped from package.json during `ph migrate`.\nexport const LEGACY_LINT_FORMAT_DEPENDENCIES = [\n \"@eslint/js\",\n \"eslint\",\n \"eslint-config-prettier\",\n \"eslint-plugin-prettier\",\n \"eslint-plugin-react\",\n \"eslint-plugin-react-hooks\",\n \"globals\",\n \"prettier\",\n \"typescript-eslint\",\n] as const;\n\n// Legacy lint/format config files written by eslint/prettier boilerplate.\n// Removed from the project root during `ph migrate`.\nexport const LEGACY_LINT_FORMAT_FILES = [\n \"eslint.config.js\",\n \"eslint.config.mjs\",\n \"eslint.config.cjs\",\n \"eslint.config.ts\",\n \".eslintrc\",\n \".eslintrc.js\",\n \".eslintrc.cjs\",\n \".eslintrc.json\",\n \".eslintrc.yml\",\n \".eslintrc.yaml\",\n \".eslintignore\",\n \".prettierrc\",\n \".prettierrc.js\",\n \".prettierrc.cjs\",\n \".prettierrc.json\",\n \".prettierrc.yml\",\n \".prettierrc.yaml\",\n \"prettier.config.js\",\n \"prettier.config.cjs\",\n \"prettier.config.mjs\",\n \".prettierignore\",\n] as const;\n\nexport const externalDevDependencies = {\n \"@electric-sql/pglite\": \"0.3.15\",\n \"@electric-sql/pglite-tools\": \"0.2.20\",\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 oxfmt: \"0.55.0\",\n oxlint: \"1.70.0\",\n \"oxlint-tsgolint\": \"0.23.0\",\n tailwindcss: \"^4.1.16\",\n typescript: \"^5.9.3\",\n vite: \"^8.0.10\",\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"],"mappings":";;;AAKA,MAAa,kBAAkB;CAC7B;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,iBAAiB,OAAU;AACxC,MAAa,sBAAsB;AACnC,MAAa,yBAAA,IAA+C;AAE5D,MAAa,6BAA6B,CACxC,gBACA,6BACD;AAED,MAAa,aAAa;CACxB;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,kBAAkB;AAE/B,MAAa,8BAA8B;AAE3C,MAAa,6BAA6B;AAE1C,MAAa,+BAA+B;AAE5C,MAAa,yBAAyB;AAEtC,MAAa,qBAAqB;AAElC,MAAa,uBAAuB;AAEpC,MAAa,2BAA2B;AAExC,MAAa,yBAAyB;AAEtC,MAAa,uBAAuB;AACpC,MAAa,SAAS;AACtB,MAAa,yBAAyB;AACtC,MAAa,qBAAqB;AAElC,MAAa,yBAAA;AAEb,MAAa,WAAW,SAAS;AAEjC,MAAa,wBAAwB,KAAK,UAAA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K;CACL,aAAa;CACb,UAAU;CACV,SAAS;CACT,OAAO;CACP,SAAS;CACT,SAAS;CACT,OAAO;CACP,mBACE;CACF,qBACE;CACH;AAED,MAAa,uBAAuB,EAAE;AAItC,MAAa,kCAAkC;CAC7C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAID,MAAa,2BAA2B;CACtC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,0BAA0B;CACrC,wBAAwB;CACxB,8BAA8B;CAC9B,uCAAuC;CACvC,oBAAoB;CACpB,qBAAqB;CACrB,eAAe;CACf,gBAAgB;CAChB,oBAAoB;CACpB,wBAAwB;CACxB,uBAAuB;CACvB,OAAO;CACP,QAAQ;CACR,mBAAmB;CACnB,aAAa;CACb,YAAY;CACZ,MAAM;CACN,uBAAuB;CACvB,QAAQ;CACT;AAED,MAAa,kBAA4B;CACvC,MAAM;CACN,aAAa;CACb,UAAU;CACV,WAAW;EACT,MAAM;EACN,KAAK;EACN;CACD,gBAAgB,EAAE;CAClB,SAAS,EAAE;CACX,MAAM,EAAE;CACR,WAAW,EAAE;CACb,YAAY,EAAE;CACf;AAUD,MAAa,iBAAmC;CAC9C,mBATkC;CAUlC,YAT0B;CAU1B,eAT6B;CAU7B,cAT4B;CAU5B,kBATiC;CAUjC,YAT0B;CAU1B,UATwB;CAUxB,MAAM;EACJ,SAAS;EACT,QAAQ,EAAE;EACX;CACF"}