@powerhousedao/ph-cli 6.2.3-dev.70 → 6.2.3-dev.72

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 (79) hide show
  1. package/dist/{cli-connect-override-Cf7WutqU.mjs → cli-connect-override-CEJhQWRX.mjs} +5 -5
  2. package/dist/cli-connect-override-CEJhQWRX.mjs.map +1 -0
  3. package/dist/cli.mjs +4 -4
  4. package/dist/compound-B6RZMA0Y-Cv3XMQ3Y.mjs +2459 -0
  5. package/dist/compound-B6RZMA0Y-Cv3XMQ3Y.mjs.map +1 -0
  6. package/dist/{connect-build-BtKpvcQK.mjs → connect-build-BfhOGbha.mjs} +4 -4
  7. package/dist/{connect-build-BtKpvcQK.mjs.map → connect-build-BfhOGbha.mjs.map} +1 -1
  8. package/dist/{connect-config-9EZB_0H_.mjs → connect-config-DblqJgxR.mjs} +4 -4
  9. package/dist/{connect-config-9EZB_0H_.mjs.map → connect-config-DblqJgxR.mjs.map} +1 -1
  10. package/dist/connect-plugin-configs-D2fwYpMw.mjs +50 -0
  11. package/dist/connect-plugin-configs-D2fwYpMw.mjs.map +1 -0
  12. package/dist/{connect-studio-Bhlc77WI.mjs → connect-studio-B1_4TNEb.mjs} +8 -6
  13. package/dist/connect-studio-B1_4TNEb.mjs.map +1 -0
  14. package/dist/{connect-studio-BehPZzN7.mjs → connect-studio-BS26pchr.mjs} +3 -3
  15. package/dist/{dist-BqeDFgEy.mjs → dist-CCLkwpTS.mjs} +199 -109
  16. package/dist/dist-CCLkwpTS.mjs.map +1 -0
  17. package/dist/explain-DUXbB9jf.mjs +241 -0
  18. package/dist/explain-DUXbB9jf.mjs.map +1 -0
  19. package/dist/{generate-all-C_sPGBuk.mjs → generate-all-Dgyy_kT-.mjs} +7 -3
  20. package/dist/generate-all-Dgyy_kT-.mjs.map +1 -0
  21. package/dist/{generate-desktop-shell-BBSGpmud.mjs → generate-desktop-shell-BdXDiS5o.mjs} +113 -7
  22. package/dist/generate-desktop-shell-BdXDiS5o.mjs.map +1 -0
  23. package/dist/generate-hosts-BFmPIW2X.mjs +18 -0
  24. package/dist/generate-hosts-BFmPIW2X.mjs.map +1 -0
  25. package/dist/generate-hosts-RWj7WPHZ.mjs +4 -0
  26. package/dist/{index-CspiP73o.d.mts → index-BIbx17vt.d.mts} +178 -14
  27. package/dist/index-BIbx17vt.d.mts.map +1 -0
  28. package/dist/{ph-cli-commands-3ptdQ0NI.mjs → ph-cli-commands-DSAhaETu.mjs} +156 -139
  29. package/dist/ph-cli-commands-DSAhaETu.mjs.map +1 -0
  30. package/dist/ph-cli-commands-d5XjMWW0.mjs +4 -0
  31. package/dist/{run-sugar-BdjKTPGO.mjs → run-sugar-Ns53R6lU.mjs} +4 -4
  32. package/dist/{run-sugar-BdjKTPGO.mjs.map → run-sugar-Ns53R6lU.mjs.map} +1 -1
  33. package/dist/runners/connect.d.mts +1054 -26
  34. package/dist/runners/connect.d.mts.map +1 -1
  35. package/dist/runners/connect.mjs +127 -50
  36. package/dist/runners/connect.mjs.map +1 -1
  37. package/dist/runners/switchboard.d.mts +170 -28
  38. package/dist/runners/switchboard.d.mts.map +1 -1
  39. package/dist/runners/switchboard.mjs +171 -49
  40. package/dist/runners/switchboard.mjs.map +1 -1
  41. package/dist/{schemas-BQSPev1x.mjs → schemas-D5N5U_Mf.mjs} +205 -4
  42. package/dist/{schemas-BQSPev1x.mjs.map → schemas-D5N5U_Mf.mjs.map} +1 -1
  43. package/dist/scripts/emit-runner-schemas.ts +24 -0
  44. package/dist/start-run-BIaYSpHh.mjs +124 -0
  45. package/dist/start-run-BIaYSpHh.mjs.map +1 -0
  46. package/dist/{superseded-config-9D7BdLvd.mjs → superseded-config-CbSTFun2.mjs} +4 -4
  47. package/dist/superseded-config-CbSTFun2.mjs.map +1 -0
  48. package/dist/switchboard-h4-XgP1h.mjs +2 -2
  49. package/dist/switchboard-h4-XgP1h.mjs.map +1 -1
  50. package/dist/utils-DAux4Ga7.mjs +4 -0
  51. package/dist/{vetra-BD-34wGs.mjs → vetra-UQsfYM_Q.mjs} +10 -10
  52. package/dist/vetra-UQsfYM_Q.mjs.map +1 -0
  53. package/package.json +15 -20
  54. package/dist/cli-connect-override-Cf7WutqU.mjs.map +0 -1
  55. package/dist/connect-studio-Bhlc77WI.mjs.map +0 -1
  56. package/dist/dist-BqeDFgEy.mjs.map +0 -1
  57. package/dist/explain-BDHmXgw3.mjs +0 -27
  58. package/dist/explain-BDHmXgw3.mjs.map +0 -1
  59. package/dist/generate-all-C_sPGBuk.mjs.map +0 -1
  60. package/dist/generate-desktop-shell-BBSGpmud.mjs.map +0 -1
  61. package/dist/host-schemas-CtPNRr5v-BQyKKFbS.mjs +0 -493
  62. package/dist/host-schemas-CtPNRr5v-BQyKKFbS.mjs.map +0 -1
  63. package/dist/index-CspiP73o.d.mts.map +0 -1
  64. package/dist/ph-cli-commands-3ptdQ0NI.mjs.map +0 -1
  65. package/dist/ph-cli-commands-Dx8hNj6W.mjs +0 -4
  66. package/dist/plugins-CHVv4qup.mjs +0 -91
  67. package/dist/plugins-CHVv4qup.mjs.map +0 -1
  68. package/dist/reactor-env-BbR86_Li.mjs +0 -29
  69. package/dist/reactor-env-BbR86_Li.mjs.map +0 -1
  70. package/dist/reactor-env-D_EvBtLB.mjs +0 -4
  71. package/dist/runners/compound.d.mts +0 -127
  72. package/dist/runners/compound.d.mts.map +0 -1
  73. package/dist/runners/compound.mjs +0 -72
  74. package/dist/runners/compound.mjs.map +0 -1
  75. package/dist/start-run-CmDxyMw0.mjs +0 -36
  76. package/dist/start-run-CmDxyMw0.mjs.map +0 -1
  77. package/dist/superseded-config-9D7BdLvd.mjs.map +0 -1
  78. package/dist/utils-TO9lB8Xs.mjs +0 -4
  79. package/dist/vetra-BD-34wGs.mjs.map +0 -1
@@ -1,33 +1,377 @@
1
- import { a as ZodBoolean, c as ZodNumber, d as ZodRecord, f as ZodString, g as $strict, h as $loose, i as ZodArray, l as ZodObject, m as ZodUnknown, n as RunnerContext, o as ZodEnum, p as ZodUnion, r as external_d_exports, s as ZodLiteral, t as HostDefinition, u as ZodOptional } from "../index-CspiP73o.mjs";
1
+ import { C as ZodUnknown, E as $strict, S as ZodUnion, T as $loose, _ as ZodObject, a as RunnerContext, b as ZodString, c as external_d_exports, d as ZodArray, f as ZodBoolean, g as ZodNumber, h as ZodNullable, i as OutputToken, l as input, m as ZodLiteral, n as EnvToken, o as RunnerHandle, p as ZodEnum, r as ItemToken, s as TokenableSchema, t as ConcatToken, u as output, v as ZodOptional, w as output$1, x as ZodURL, y as ZodRecord } from "../index-BIbx17vt.mjs";
2
+ import { PHConnectRuntimeConfig } from "@powerhousedao/shared/clis";
2
3
  //#region src/runners/connect.d.ts
3
4
  /**
4
5
  * BRIDGE runner for Connect hosts (uniform-runners phase 0): maps a
5
6
  * hosts/connect/host.js definition onto the SAME service the classic
6
- * `ph connect studio` command calls — no forked behavior. Real verbs
7
- * (`build`, `serve`) arrive with later phases; their absence here is
8
- * deliberate and surfaces through the verb-listing error.
7
+ * `ph connect studio` (dev/run), `ph connect build` and `ph connect preview`
8
+ * (serve) commands call — no forked behavior.
9
9
  */
10
10
  export declare const kind = "reactor";
11
- /** Phase-2 schema (D2.d): `reactor` and `profile` validate strictly via the
12
- * shared host-core schemas — a typo'd protocol key fails instead of silently
13
- * not applying. `config` stays loose: it is runner-defined by design. */
14
- export declare const hostSchema: ZodObject<{
11
+ export declare const declaredHostSchema: ZodObject<{
15
12
  name: ZodString;
13
+ profile: ZodOptional<ZodObject<{
14
+ appId: ZodOptional<ZodString>;
15
+ name: ZodOptional<ZodString>;
16
+ description: ZodOptional<ZodString>;
17
+ icon: ZodOptional<ZodString>;
18
+ }, $strict>>;
19
+ reactor: ZodOptional<ZodObject<{
20
+ backends: ZodOptional<ZodRecord<ZodString, ZodObject<{
21
+ kind: ZodEnum<{
22
+ "in-process": "in-process";
23
+ remote: "remote";
24
+ worker: "worker";
25
+ }>;
26
+ storage: ZodOptional<ZodObject<{
27
+ kind: ZodEnum<{
28
+ idb: "idb";
29
+ memory: "memory";
30
+ path: "path";
31
+ postgres: "postgres";
32
+ }>;
33
+ dataDir: ZodOptional<TokenableSchema<ZodString, EnvToken>>;
34
+ url: ZodOptional<ZodString>;
35
+ }, $strict>>;
36
+ readModel: ZodOptional<ZodObject<{
37
+ url: ZodOptional<ZodString>;
38
+ }, $strict>>;
39
+ packages: ZodOptional<ZodObject<{
40
+ cdnUrl: ZodOptional<ZodString>;
41
+ specs: ZodOptional<ZodArray<ZodString>>;
42
+ dynamic: ZodOptional<ZodBoolean>;
43
+ }, $strict>>;
44
+ remote: ZodOptional<ZodObject<{
45
+ url: TokenableSchema<ZodURL>;
46
+ }, $strict>>;
47
+ projection: ZodOptional<ZodObject<{
48
+ enabled: ZodOptional<ZodBoolean>;
49
+ dbPoolSize: ZodOptional<ZodNumber>;
50
+ }, $strict>>;
51
+ executors: ZodOptional<ZodObject<{
52
+ numWorkers: ZodOptional<ZodUnion<readonly [ZodNumber, ZodLiteral<"auto">]>>;
53
+ }, $strict>>;
54
+ }, $strict>>>;
55
+ placement: ZodOptional<ZodObject<{
56
+ primary: ZodOptional<ZodString>;
57
+ default: ZodOptional<ZodObject<{}, $loose>>;
58
+ }, $strict>>;
59
+ protocol: ZodOptional<ZodObject<{
60
+ featureFlags: ZodOptional<ZodObject<{
61
+ documentDecisions: ZodOptional<ZodBoolean>;
62
+ authEnforcement: ZodOptional<ZodBoolean>;
63
+ authGroups: ZodOptional<ZodBoolean>;
64
+ authConditions: ZodOptional<ZodBoolean>;
65
+ }, $strict>>;
66
+ createSignaturePolicy: ZodOptional<ZodEnum<{
67
+ legacy: "legacy";
68
+ "v2-required": "v2-required";
69
+ }>>;
70
+ unsupportedStoredDocuments: ZodOptional<ZodEnum<{
71
+ "read-only": "read-only";
72
+ refuse: "refuse";
73
+ }>>;
74
+ }, $strict>>;
75
+ workflows: ZodOptional<ZodBoolean>;
76
+ renown: ZodOptional<ZodObject<{
77
+ url: ZodOptional<ZodString>;
78
+ networkId: ZodOptional<ZodString>;
79
+ chainId: ZodOptional<ZodNumber>;
80
+ }, $strict>>;
81
+ packages: ZodOptional<ZodObject<{
82
+ registryUrl: ZodOptional<ZodString>;
83
+ }, $strict>>;
84
+ namespace: ZodOptional<ZodString>;
85
+ auth: ZodOptional<ZodObject<{
86
+ enabled: ZodOptional<ZodBoolean>;
87
+ admins: ZodOptional<ZodArray<ZodString>>;
88
+ renown: ZodOptional<ZodObject<{}, $loose>>;
89
+ }, $strict>>;
90
+ drives: ZodOptional<TokenableSchema<ZodArray<ZodObject<{
91
+ slug: ZodString;
92
+ id: ZodOptional<ZodString>;
93
+ projectHash: ZodOptional<ZodUnion<readonly [ZodBoolean, ZodLiteral<"id">]>>;
94
+ name: ZodOptional<ZodString>;
95
+ icon: ZodOptional<ZodString>;
96
+ preferredEditor: ZodOptional<ZodString>;
97
+ sharingType: ZodOptional<ZodEnum<{
98
+ private: "private";
99
+ public: "public";
100
+ shared: "shared";
101
+ }>>;
102
+ availableOffline: ZodOptional<ZodBoolean>;
103
+ remote: ZodOptional<ZodObject<{
104
+ url: TokenableSchema<ZodString>;
105
+ }, $strict>>;
106
+ }, $strict>>>>;
107
+ }, $strict>>;
16
108
  runner: ZodObject<{
17
109
  module: ZodString;
110
+ defaultVerb: ZodOptional<ZodString>;
18
111
  port: ZodOptional<ZodNumber>;
19
112
  host: ZodOptional<ZodString>;
20
- https: ZodOptional<ZodBoolean>;
21
- openBrowser: ZodOptional<ZodBoolean>;
22
- routes: ZodOptional<ZodUnion<readonly [ZodString, ZodLiteral<false>]>>;
23
113
  plugins: ZodOptional<ZodArray<ZodUnion<readonly [ZodString, ZodObject<{
24
114
  module: ZodString;
25
115
  enabled: ZodOptional<ZodBoolean>;
26
116
  verbs: ZodOptional<ZodUnion<readonly [ZodLiteral<"*">, ZodArray<ZodString>]>>;
27
117
  config: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
28
118
  }, $strict>]>>>;
29
- }, $loose>;
30
- config: ZodOptional<ZodObject<{}, $loose>>;
119
+ openBrowser: ZodOptional<ZodBoolean>;
120
+ strictPort: ZodOptional<ZodBoolean>;
121
+ outDir: ZodOptional<ZodString>;
122
+ cspRegistrySync: ZodOptional<ZodBoolean>;
123
+ routes: ZodOptional<ZodUnion<readonly [ZodString, ZodLiteral<false>]>>;
124
+ }, $strict>;
125
+ config: ZodOptional<ZodObject<{
126
+ branding: ZodOptional<ZodObject<{
127
+ appName: ZodOptional<ZodNullable<ZodString>>;
128
+ icon: ZodOptional<ZodNullable<ZodString>>;
129
+ favicon: ZodOptional<ZodNullable<ZodString>>;
130
+ loader: ZodOptional<ZodNullable<ZodUnion<readonly [ZodString, ZodObject<{
131
+ src: ZodString;
132
+ animation: ZodOptional<ZodNullable<ZodEnum<{
133
+ none: "none";
134
+ pulse: "pulse";
135
+ spin: "spin";
136
+ }>>>;
137
+ size: ZodOptional<ZodNullable<ZodNumber>>;
138
+ }, $strict>]>>>;
139
+ }, $strict>>;
140
+ home: ZodOptional<ZodObject<{
141
+ background: ZodOptional<ZodNullable<ZodUnion<readonly [ZodString, ZodObject<{
142
+ color: ZodOptional<ZodNullable<ZodUnion<readonly [ZodString, ZodObject<{
143
+ light: ZodString;
144
+ dark: ZodOptional<ZodNullable<ZodString>>;
145
+ }, $strict>]>>>;
146
+ layers: ZodArray<ZodObject<{
147
+ src: ZodUnion<readonly [ZodString, ZodObject<{
148
+ light: ZodString;
149
+ dark: ZodOptional<ZodNullable<ZodString>>;
150
+ }, $strict>]>;
151
+ position: ZodOptional<ZodNullable<ZodObject<{
152
+ top: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
153
+ right: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
154
+ bottom: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
155
+ left: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
156
+ }, $strict>>>;
157
+ width: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
158
+ height: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
159
+ minWidth: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
160
+ minHeight: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
161
+ maxWidth: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
162
+ maxHeight: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
163
+ opacity: ZodOptional<ZodNullable<ZodNumber>>;
164
+ fade: ZodOptional<ZodNullable<ZodObject<{
165
+ top: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
166
+ right: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
167
+ bottom: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
168
+ left: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
169
+ }, $strict>>>;
170
+ }, $strict>>;
171
+ }, $strict>]>>>;
172
+ }, $strict>>;
173
+ app: ZodOptional<ZodObject<{
174
+ logLevel: ZodOptional<ZodEnum<{
175
+ debug: "debug";
176
+ error: "error";
177
+ info: "info";
178
+ warn: "warn";
179
+ }>>;
180
+ basePath: ZodOptional<ZodString>;
181
+ offline: ZodOptional<ZodBoolean>;
182
+ studioMode: ZodOptional<ZodBoolean>;
183
+ workflowsEnabled: ZodOptional<ZodBoolean>;
184
+ }, $strict>>;
185
+ ai: ZodOptional<ZodObject<{
186
+ assistantEnabled: ZodOptional<ZodBoolean>;
187
+ }, $strict>>;
188
+ packages: ZodOptional<ZodObject<{
189
+ externalEnabled: ZodOptional<ZodBoolean>;
190
+ liveReload: ZodOptional<ZodBoolean>;
191
+ }, $strict>>;
192
+ sentry: ZodOptional<ZodObject<{
193
+ dsn: ZodOptional<ZodNullable<ZodString>>;
194
+ env: ZodOptional<ZodString>;
195
+ tracing: ZodOptional<ZodBoolean>;
196
+ }, $strict>>;
197
+ openPanel: ZodOptional<ZodObject<{
198
+ clientId: ZodOptional<ZodString>;
199
+ apiUrl: ZodOptional<ZodString>;
200
+ trackUiEvents: ZodOptional<ZodBoolean>;
201
+ trackOperations: ZodOptional<ZodBoolean>;
202
+ }, $strict>>;
203
+ instance: ZodOptional<ZodObject<{
204
+ namespace: ZodNullable<ZodString>;
205
+ reactorWorker: ZodBoolean;
206
+ multiReactor: ZodOptional<ZodBoolean>;
207
+ }, $strict>>;
208
+ reactor: ZodOptional<ZodObject<{
209
+ featureFlags: ZodOptional<ZodObject<{
210
+ documentDecisions: ZodOptional<ZodBoolean>;
211
+ authEnforcement: ZodOptional<ZodBoolean>;
212
+ authGroups: ZodOptional<ZodBoolean>;
213
+ authConditions: ZodOptional<ZodBoolean>;
214
+ }, $strict>>;
215
+ createSignaturePolicy: ZodOptional<ZodEnum<{
216
+ legacy: "legacy";
217
+ "v2-required": "v2-required";
218
+ }>>;
219
+ unsupportedStoredDocuments: ZodOptional<ZodEnum<{
220
+ "read-only": "read-only";
221
+ refuse: "refuse";
222
+ }>>;
223
+ }, $strict>>;
224
+ pwa: ZodOptional<ZodObject<{
225
+ globPatterns: ZodOptional<ZodArray<ZodString>>;
226
+ globIgnores: ZodOptional<ZodArray<ZodString>>;
227
+ maximumFileSizeToCacheInBytes: ZodOptional<ZodNumber>;
228
+ runtimeCaching: ZodOptional<ZodArray<ZodObject<{
229
+ urlPattern: ZodUnion<readonly [ZodString, ZodObject<{
230
+ source: ZodString;
231
+ flags: ZodOptional<ZodString>;
232
+ }, $strict>]>;
233
+ handler: ZodEnum<{
234
+ CacheFirst: "CacheFirst";
235
+ CacheOnly: "CacheOnly";
236
+ NetworkFirst: "NetworkFirst";
237
+ NetworkOnly: "NetworkOnly";
238
+ StaleWhileRevalidate: "StaleWhileRevalidate";
239
+ }>;
240
+ method: ZodOptional<ZodEnum<{
241
+ DELETE: "DELETE";
242
+ GET: "GET";
243
+ HEAD: "HEAD";
244
+ PATCH: "PATCH";
245
+ POST: "POST";
246
+ PUT: "PUT";
247
+ }>>;
248
+ options: ZodOptional<ZodObject<{
249
+ cacheName: ZodOptional<ZodString>;
250
+ networkTimeoutSeconds: ZodOptional<ZodNumber>;
251
+ expiration: ZodOptional<ZodObject<{
252
+ maxEntries: ZodOptional<ZodNumber>;
253
+ maxAgeSeconds: ZodOptional<ZodNumber>;
254
+ }, $strict>>;
255
+ cacheableResponse: ZodOptional<ZodObject<{
256
+ statuses: ZodOptional<ZodArray<ZodNumber>>;
257
+ headers: ZodOptional<ZodRecord<ZodString, ZodString>>;
258
+ }, $strict>>;
259
+ }, $strict>>;
260
+ }, $strict>>>;
261
+ navigateFallbackDenylist: ZodOptional<ZodArray<ZodUnion<readonly [ZodString, ZodObject<{
262
+ source: ZodString;
263
+ flags: ZodOptional<ZodString>;
264
+ }, $strict>]>>>;
265
+ manifest: ZodOptional<ZodObject<{
266
+ name: ZodOptional<ZodString>;
267
+ short_name: ZodOptional<ZodString>;
268
+ description: ZodOptional<ZodString>;
269
+ theme_color: ZodOptional<ZodString>;
270
+ background_color: ZodOptional<ZodString>;
271
+ display: ZodOptional<ZodEnum<{
272
+ browser: "browser";
273
+ fullscreen: "fullscreen";
274
+ "minimal-ui": "minimal-ui";
275
+ standalone: "standalone";
276
+ }>>;
277
+ start_url: ZodOptional<ZodString>;
278
+ scope: ZodOptional<ZodString>;
279
+ icons: ZodOptional<ZodArray<ZodObject<{
280
+ src: ZodString;
281
+ sizes: ZodOptional<ZodString>;
282
+ type: ZodOptional<ZodString>;
283
+ purpose: ZodOptional<ZodString>;
284
+ }, $strict>>>;
285
+ file_handlers: ZodOptional<ZodArray<ZodObject<{
286
+ accept: ZodRecord<ZodString, ZodArray<ZodString>>;
287
+ icons: ZodOptional<ZodArray<ZodObject<{
288
+ src: ZodString;
289
+ sizes: ZodOptional<ZodString>;
290
+ type: ZodOptional<ZodString>;
291
+ purpose: ZodOptional<ZodString>;
292
+ }, $strict>>>;
293
+ launch_type: ZodOptional<ZodEnum<{
294
+ "multiple-clients": "multiple-clients";
295
+ "single-client": "single-client";
296
+ }>>;
297
+ }, $strict>>>;
298
+ launch_handler: ZodOptional<ZodObject<{
299
+ client_mode: ZodEnum<{
300
+ auto: "auto";
301
+ "focus-existing": "focus-existing";
302
+ "navigate-existing": "navigate-existing";
303
+ "navigate-new": "navigate-new";
304
+ }>;
305
+ }, $strict>>;
306
+ }, $strict>>;
307
+ }, $strict>>;
308
+ drives: ZodOptional<ZodObject<{
309
+ allowAddDrive: ZodOptional<ZodBoolean>;
310
+ preserveStrategy: ZodOptional<ZodEnum<{
311
+ "preserve-all": "preserve-all";
312
+ "preserve-by-url-and-detach": "preserve-by-url-and-detach";
313
+ }>>;
314
+ sections: ZodOptional<ZodObject<{
315
+ remote: ZodOptional<ZodObject<{
316
+ enabled: ZodOptional<ZodBoolean>;
317
+ allowAdd: ZodOptional<ZodBoolean>;
318
+ allowDelete: ZodOptional<ZodBoolean>;
319
+ }, $strict>>;
320
+ local: ZodOptional<ZodObject<{
321
+ enabled: ZodOptional<ZodBoolean>;
322
+ allowAdd: ZodOptional<ZodBoolean>;
323
+ allowDelete: ZodOptional<ZodBoolean>;
324
+ }, $strict>>;
325
+ }, $strict>>;
326
+ icons: ZodOptional<ZodNullable<ZodObject<{
327
+ localDrive: ZodOptional<ZodNullable<ZodString>>;
328
+ remoteDrive: ZodOptional<ZodNullable<ZodString>>;
329
+ folder: ZodOptional<ZodNullable<ZodString>>;
330
+ document: ZodOptional<ZodNullable<ZodString>>;
331
+ documents: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodString>>>;
332
+ }, $strict>>>;
333
+ defaultDrives: ZodOptional<ZodArray<ZodUnion<readonly [ZodObject<{
334
+ name: ZodOptional<ZodNullable<ZodString>>;
335
+ icon: ZodOptional<ZodNullable<ZodString>>;
336
+ url: TokenableSchema<ZodString, ConcatToken | EnvToken | ItemToken<string> | OutputToken<string> | ({
337
+ $key: true;
338
+ } | {
339
+ $key: string;
340
+ })>;
341
+ }, $strict>, ZodObject<{
342
+ local: ZodLiteral<true>;
343
+ id: ZodString;
344
+ name: ZodOptional<ZodNullable<ZodString>>;
345
+ icon: ZodOptional<ZodNullable<ZodString>>;
346
+ app: ZodOptional<ZodString>;
347
+ }, $strict>]>>>;
348
+ }, $strict>>;
349
+ renown: ZodOptional<ZodObject<{
350
+ url: ZodOptional<ZodString>;
351
+ networkId: ZodOptional<ZodString>;
352
+ chainId: ZodOptional<ZodNumber>;
353
+ namespace: ZodOptional<ZodString>;
354
+ adapters: ZodOptional<ZodObject<{
355
+ rainbow: ZodOptional<ZodObject<{
356
+ walletConnectProjectId: ZodOptional<ZodString>;
357
+ infuraProjectId: ZodOptional<ZodString>;
358
+ }, $strict>>;
359
+ privy: ZodOptional<ZodObject<{
360
+ appId: ZodOptional<ZodString>;
361
+ clientId: ZodOptional<ZodString>;
362
+ methods: ZodOptional<ZodArray<ZodString>>;
363
+ }, $strict>>;
364
+ }, $strict>>;
365
+ switchboardUrl: ZodOptional<TokenableSchema<ZodString, ConcatToken | EnvToken | ItemToken<string> | OutputToken<string> | ({
366
+ $key: true;
367
+ } | {
368
+ $key: string;
369
+ })>>;
370
+ }, $strict>>;
371
+ }, $strict>>;
372
+ }, $strict>;
373
+ export declare const hostSchema: ZodObject<{
374
+ name: ZodString;
31
375
  profile: ZodOptional<ZodObject<{
32
376
  appId: ZodOptional<ZodString>;
33
377
  name: ZodOptional<ZodString>;
@@ -36,11 +380,11 @@ export declare const hostSchema: ZodObject<{
36
380
  }, $strict>>;
37
381
  reactor: ZodOptional<ZodObject<{
38
382
  backends: ZodOptional<ZodRecord<ZodString, ZodObject<{
39
- kind: ZodOptional<ZodEnum<{
383
+ kind: ZodEnum<{
40
384
  "in-process": "in-process";
41
385
  remote: "remote";
42
386
  worker: "worker";
43
- }>>;
387
+ }>;
44
388
  storage: ZodOptional<ZodObject<{
45
389
  kind: ZodEnum<{
46
390
  idb: "idb";
@@ -48,7 +392,7 @@ export declare const hostSchema: ZodObject<{
48
392
  path: "path";
49
393
  postgres: "postgres";
50
394
  }>;
51
- dataDir: ZodOptional<ZodString>;
395
+ dataDir: ZodOptional<TokenableSchema<ZodString, EnvToken>>;
52
396
  url: ZodOptional<ZodString>;
53
397
  }, $strict>>;
54
398
  readModel: ZodOptional<ZodObject<{
@@ -60,8 +404,7 @@ export declare const hostSchema: ZodObject<{
60
404
  dynamic: ZodOptional<ZodBoolean>;
61
405
  }, $strict>>;
62
406
  remote: ZodOptional<ZodObject<{
63
- host: ZodOptional<ZodString>;
64
- url: ZodOptional<ZodString>;
407
+ url: TokenableSchema<ZodURL>;
65
408
  }, $strict>>;
66
409
  projection: ZodOptional<ZodObject<{
67
410
  enabled: ZodOptional<ZodBoolean>;
@@ -106,10 +449,10 @@ export declare const hostSchema: ZodObject<{
106
449
  admins: ZodOptional<ZodArray<ZodString>>;
107
450
  renown: ZodOptional<ZodObject<{}, $loose>>;
108
451
  }, $strict>>;
109
- drives: ZodOptional<ZodArray<ZodObject<{
452
+ drives: ZodOptional<TokenableSchema<ZodArray<ZodObject<{
110
453
  slug: ZodString;
111
454
  id: ZodOptional<ZodString>;
112
- projectHash: ZodOptional<ZodBoolean>;
455
+ projectHash: ZodOptional<ZodUnion<readonly [ZodBoolean, ZodLiteral<"id">]>>;
113
456
  name: ZodOptional<ZodString>;
114
457
  icon: ZodOptional<ZodString>;
115
458
  preferredEditor: ZodOptional<ZodString>;
@@ -120,17 +463,702 @@ export declare const hostSchema: ZodObject<{
120
463
  }>>;
121
464
  availableOffline: ZodOptional<ZodBoolean>;
122
465
  remote: ZodOptional<ZodObject<{
123
- url: ZodString;
466
+ url: TokenableSchema<ZodString>;
124
467
  }, $strict>>;
125
- }, $strict>>>;
468
+ }, $strict>>>>;
469
+ }, $strict>>;
470
+ runner: ZodObject<{
471
+ module: ZodString;
472
+ defaultVerb: ZodOptional<ZodString>;
473
+ port: ZodOptional<ZodNumber>;
474
+ host: ZodOptional<ZodString>;
475
+ plugins: ZodOptional<ZodArray<ZodUnion<readonly [ZodString, ZodObject<{
476
+ module: ZodString;
477
+ enabled: ZodOptional<ZodBoolean>;
478
+ verbs: ZodOptional<ZodUnion<readonly [ZodLiteral<"*">, ZodArray<ZodString>]>>;
479
+ config: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
480
+ }, $strict>]>>>;
481
+ openBrowser: ZodOptional<ZodBoolean>;
482
+ strictPort: ZodOptional<ZodBoolean>;
483
+ outDir: ZodOptional<ZodString>;
484
+ cspRegistrySync: ZodOptional<ZodBoolean>;
485
+ routes: ZodOptional<ZodUnion<readonly [ZodString, ZodLiteral<false>]>>;
486
+ }, $strict>;
487
+ config: ZodOptional<ZodObject<{
488
+ branding: ZodOptional<ZodObject<{
489
+ appName: ZodOptional<ZodNullable<ZodString>>;
490
+ icon: ZodOptional<ZodNullable<ZodString>>;
491
+ favicon: ZodOptional<ZodNullable<ZodString>>;
492
+ loader: ZodOptional<ZodNullable<ZodUnion<readonly [ZodString, ZodObject<{
493
+ src: ZodString;
494
+ animation: ZodOptional<ZodNullable<ZodEnum<{
495
+ none: "none";
496
+ pulse: "pulse";
497
+ spin: "spin";
498
+ }>>>;
499
+ size: ZodOptional<ZodNullable<ZodNumber>>;
500
+ }, $strict>]>>>;
501
+ }, $strict>>;
502
+ home: ZodOptional<ZodObject<{
503
+ background: ZodOptional<ZodNullable<ZodUnion<readonly [ZodString, ZodObject<{
504
+ color: ZodOptional<ZodNullable<ZodUnion<readonly [ZodString, ZodObject<{
505
+ light: ZodString;
506
+ dark: ZodOptional<ZodNullable<ZodString>>;
507
+ }, $strict>]>>>;
508
+ layers: ZodArray<ZodObject<{
509
+ src: ZodUnion<readonly [ZodString, ZodObject<{
510
+ light: ZodString;
511
+ dark: ZodOptional<ZodNullable<ZodString>>;
512
+ }, $strict>]>;
513
+ position: ZodOptional<ZodNullable<ZodObject<{
514
+ top: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
515
+ right: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
516
+ bottom: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
517
+ left: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
518
+ }, $strict>>>;
519
+ width: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
520
+ height: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
521
+ minWidth: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
522
+ minHeight: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
523
+ maxWidth: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
524
+ maxHeight: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
525
+ opacity: ZodOptional<ZodNullable<ZodNumber>>;
526
+ fade: ZodOptional<ZodNullable<ZodObject<{
527
+ top: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
528
+ right: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
529
+ bottom: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
530
+ left: ZodOptional<ZodNullable<ZodUnion<readonly [ZodNumber, ZodString]>>>;
531
+ }, $strict>>>;
532
+ }, $strict>>;
533
+ }, $strict>]>>>;
534
+ }, $strict>>;
535
+ app: ZodOptional<ZodObject<{
536
+ logLevel: ZodOptional<ZodEnum<{
537
+ debug: "debug";
538
+ error: "error";
539
+ info: "info";
540
+ warn: "warn";
541
+ }>>;
542
+ basePath: ZodOptional<ZodString>;
543
+ offline: ZodOptional<ZodBoolean>;
544
+ studioMode: ZodOptional<ZodBoolean>;
545
+ workflowsEnabled: ZodOptional<ZodBoolean>;
546
+ }, $strict>>;
547
+ ai: ZodOptional<ZodObject<{
548
+ assistantEnabled: ZodOptional<ZodBoolean>;
549
+ }, $strict>>;
550
+ packages: ZodOptional<ZodObject<{
551
+ externalEnabled: ZodOptional<ZodBoolean>;
552
+ liveReload: ZodOptional<ZodBoolean>;
553
+ }, $strict>>;
554
+ sentry: ZodOptional<ZodObject<{
555
+ dsn: ZodOptional<ZodNullable<ZodString>>;
556
+ env: ZodOptional<ZodString>;
557
+ tracing: ZodOptional<ZodBoolean>;
558
+ }, $strict>>;
559
+ openPanel: ZodOptional<ZodObject<{
560
+ clientId: ZodOptional<ZodString>;
561
+ apiUrl: ZodOptional<ZodString>;
562
+ trackUiEvents: ZodOptional<ZodBoolean>;
563
+ trackOperations: ZodOptional<ZodBoolean>;
564
+ }, $strict>>;
565
+ instance: ZodOptional<ZodObject<{
566
+ namespace: ZodNullable<ZodString>;
567
+ reactorWorker: ZodBoolean;
568
+ multiReactor: ZodOptional<ZodBoolean>;
569
+ }, $strict>>;
570
+ reactor: ZodOptional<ZodObject<{
571
+ featureFlags: ZodOptional<ZodObject<{
572
+ documentDecisions: ZodOptional<ZodBoolean>;
573
+ authEnforcement: ZodOptional<ZodBoolean>;
574
+ authGroups: ZodOptional<ZodBoolean>;
575
+ authConditions: ZodOptional<ZodBoolean>;
576
+ }, $strict>>;
577
+ createSignaturePolicy: ZodOptional<ZodEnum<{
578
+ legacy: "legacy";
579
+ "v2-required": "v2-required";
580
+ }>>;
581
+ unsupportedStoredDocuments: ZodOptional<ZodEnum<{
582
+ "read-only": "read-only";
583
+ refuse: "refuse";
584
+ }>>;
585
+ }, $strict>>;
586
+ pwa: ZodOptional<ZodObject<{
587
+ globPatterns: ZodOptional<ZodArray<ZodString>>;
588
+ globIgnores: ZodOptional<ZodArray<ZodString>>;
589
+ maximumFileSizeToCacheInBytes: ZodOptional<ZodNumber>;
590
+ runtimeCaching: ZodOptional<ZodArray<ZodObject<{
591
+ urlPattern: ZodUnion<readonly [ZodString, ZodObject<{
592
+ source: ZodString;
593
+ flags: ZodOptional<ZodString>;
594
+ }, $strict>]>;
595
+ handler: ZodEnum<{
596
+ CacheFirst: "CacheFirst";
597
+ CacheOnly: "CacheOnly";
598
+ NetworkFirst: "NetworkFirst";
599
+ NetworkOnly: "NetworkOnly";
600
+ StaleWhileRevalidate: "StaleWhileRevalidate";
601
+ }>;
602
+ method: ZodOptional<ZodEnum<{
603
+ DELETE: "DELETE";
604
+ GET: "GET";
605
+ HEAD: "HEAD";
606
+ PATCH: "PATCH";
607
+ POST: "POST";
608
+ PUT: "PUT";
609
+ }>>;
610
+ options: ZodOptional<ZodObject<{
611
+ cacheName: ZodOptional<ZodString>;
612
+ networkTimeoutSeconds: ZodOptional<ZodNumber>;
613
+ expiration: ZodOptional<ZodObject<{
614
+ maxEntries: ZodOptional<ZodNumber>;
615
+ maxAgeSeconds: ZodOptional<ZodNumber>;
616
+ }, $strict>>;
617
+ cacheableResponse: ZodOptional<ZodObject<{
618
+ statuses: ZodOptional<ZodArray<ZodNumber>>;
619
+ headers: ZodOptional<ZodRecord<ZodString, ZodString>>;
620
+ }, $strict>>;
621
+ }, $strict>>;
622
+ }, $strict>>>;
623
+ navigateFallbackDenylist: ZodOptional<ZodArray<ZodUnion<readonly [ZodString, ZodObject<{
624
+ source: ZodString;
625
+ flags: ZodOptional<ZodString>;
626
+ }, $strict>]>>>;
627
+ manifest: ZodOptional<ZodObject<{
628
+ name: ZodOptional<ZodString>;
629
+ short_name: ZodOptional<ZodString>;
630
+ description: ZodOptional<ZodString>;
631
+ theme_color: ZodOptional<ZodString>;
632
+ background_color: ZodOptional<ZodString>;
633
+ display: ZodOptional<ZodEnum<{
634
+ browser: "browser";
635
+ fullscreen: "fullscreen";
636
+ "minimal-ui": "minimal-ui";
637
+ standalone: "standalone";
638
+ }>>;
639
+ start_url: ZodOptional<ZodString>;
640
+ scope: ZodOptional<ZodString>;
641
+ icons: ZodOptional<ZodArray<ZodObject<{
642
+ src: ZodString;
643
+ sizes: ZodOptional<ZodString>;
644
+ type: ZodOptional<ZodString>;
645
+ purpose: ZodOptional<ZodString>;
646
+ }, $strict>>>;
647
+ file_handlers: ZodOptional<ZodArray<ZodObject<{
648
+ accept: ZodRecord<ZodString, ZodArray<ZodString>>;
649
+ icons: ZodOptional<ZodArray<ZodObject<{
650
+ src: ZodString;
651
+ sizes: ZodOptional<ZodString>;
652
+ type: ZodOptional<ZodString>;
653
+ purpose: ZodOptional<ZodString>;
654
+ }, $strict>>>;
655
+ launch_type: ZodOptional<ZodEnum<{
656
+ "multiple-clients": "multiple-clients";
657
+ "single-client": "single-client";
658
+ }>>;
659
+ }, $strict>>>;
660
+ launch_handler: ZodOptional<ZodObject<{
661
+ client_mode: ZodEnum<{
662
+ auto: "auto";
663
+ "focus-existing": "focus-existing";
664
+ "navigate-existing": "navigate-existing";
665
+ "navigate-new": "navigate-new";
666
+ }>;
667
+ }, $strict>>;
668
+ }, $strict>>;
669
+ }, $strict>>;
670
+ drives: ZodOptional<ZodObject<{
671
+ allowAddDrive: ZodOptional<ZodBoolean>;
672
+ preserveStrategy: ZodOptional<ZodEnum<{
673
+ "preserve-all": "preserve-all";
674
+ "preserve-by-url-and-detach": "preserve-by-url-and-detach";
675
+ }>>;
676
+ sections: ZodOptional<ZodObject<{
677
+ remote: ZodOptional<ZodObject<{
678
+ enabled: ZodOptional<ZodBoolean>;
679
+ allowAdd: ZodOptional<ZodBoolean>;
680
+ allowDelete: ZodOptional<ZodBoolean>;
681
+ }, $strict>>;
682
+ local: ZodOptional<ZodObject<{
683
+ enabled: ZodOptional<ZodBoolean>;
684
+ allowAdd: ZodOptional<ZodBoolean>;
685
+ allowDelete: ZodOptional<ZodBoolean>;
686
+ }, $strict>>;
687
+ }, $strict>>;
688
+ icons: ZodOptional<ZodNullable<ZodObject<{
689
+ localDrive: ZodOptional<ZodNullable<ZodString>>;
690
+ remoteDrive: ZodOptional<ZodNullable<ZodString>>;
691
+ folder: ZodOptional<ZodNullable<ZodString>>;
692
+ document: ZodOptional<ZodNullable<ZodString>>;
693
+ documents: ZodOptional<ZodNullable<ZodRecord<ZodString, ZodString>>>;
694
+ }, $strict>>>;
695
+ defaultDrives: ZodOptional<ZodArray<ZodUnion<readonly [ZodObject<{
696
+ name: ZodOptional<ZodNullable<ZodString>>;
697
+ icon: ZodOptional<ZodNullable<ZodString>>;
698
+ url: TokenableSchema<ZodString, ConcatToken | EnvToken | ItemToken<string> | OutputToken<string> | ({
699
+ $key: true;
700
+ } | {
701
+ $key: string;
702
+ })>;
703
+ }, $strict>, ZodObject<{
704
+ local: ZodLiteral<true>;
705
+ id: ZodString;
706
+ name: ZodOptional<ZodNullable<ZodString>>;
707
+ icon: ZodOptional<ZodNullable<ZodString>>;
708
+ app: ZodOptional<ZodString>;
709
+ }, $strict>]>>>;
710
+ }, $strict>>;
711
+ renown: ZodOptional<ZodObject<{
712
+ url: ZodOptional<ZodString>;
713
+ networkId: ZodOptional<ZodString>;
714
+ chainId: ZodOptional<ZodNumber>;
715
+ namespace: ZodOptional<ZodString>;
716
+ adapters: ZodOptional<ZodObject<{
717
+ rainbow: ZodOptional<ZodObject<{
718
+ walletConnectProjectId: ZodOptional<ZodString>;
719
+ infuraProjectId: ZodOptional<ZodString>;
720
+ }, $strict>>;
721
+ privy: ZodOptional<ZodObject<{
722
+ appId: ZodOptional<ZodString>;
723
+ clientId: ZodOptional<ZodString>;
724
+ methods: ZodOptional<ZodArray<ZodString>>;
725
+ }, $strict>>;
726
+ }, $strict>>;
727
+ switchboardUrl: ZodOptional<TokenableSchema<ZodString, ConcatToken | EnvToken | ItemToken<string> | OutputToken<string> | ({
728
+ $key: true;
729
+ } | {
730
+ $key: string;
731
+ })>>;
732
+ }, $strict>>;
126
733
  }, $strict>>;
127
- }, $loose>;
128
- export declare function dev(host: HostDefinition, ctx: RunnerContext): Promise<void>;
734
+ }, $strict>;
735
+ /** What a connect host.js author writes. */
736
+ export type ConnectHost = input<typeof declaredHostSchema>;
737
+ /** What a verb receives (defaults applied). */
738
+ export type ConnectHostParsed = output<typeof hostSchema>;
739
+ /** What a started Connect (`dev`/`run`/`serve`) produces: the origin it
740
+ * actually listens on and the app URL (origin plus base path). */
741
+ export declare const outputsSchema: ZodObject<{
742
+ origin: ZodURL;
743
+ endpoints: ZodObject<{
744
+ connect: ZodURL;
745
+ }, $strict>;
746
+ }, $strict>;
747
+ export type ConnectOutputs = output$1<typeof outputsSchema>;
748
+ declare global {
749
+ interface PHHostRunners {
750
+ "@powerhousedao/ph-cli/runners/connect": {
751
+ host: ConnectHost;
752
+ outputs: ConnectOutputs;
753
+ };
754
+ }
755
+ }
756
+ export declare function withoutBuiltImages(config: PHConnectRuntimeConfig | undefined): {
757
+ branding?: {
758
+ appName?: string | null | undefined;
759
+ icon?: string | null | undefined;
760
+ favicon?: string | null | undefined;
761
+ loader?: string | {
762
+ src: string;
763
+ animation?: "none" | "pulse" | "spin" | null | undefined;
764
+ size?: number | null | undefined;
765
+ } | null | undefined;
766
+ } | undefined;
767
+ home?: {
768
+ background?: string | {
769
+ color?: string | {
770
+ light: string;
771
+ dark?: string | null | undefined;
772
+ } | null | undefined;
773
+ layers: {
774
+ src: string | {
775
+ light: string;
776
+ dark?: string | null | undefined;
777
+ };
778
+ position?: {
779
+ top?: string | number | null | undefined;
780
+ right?: string | number | null | undefined;
781
+ bottom?: string | number | null | undefined;
782
+ left?: string | number | null | undefined;
783
+ } | null | undefined;
784
+ width?: string | number | null | undefined;
785
+ height?: string | number | null | undefined;
786
+ minWidth?: string | number | null | undefined;
787
+ minHeight?: string | number | null | undefined;
788
+ maxWidth?: string | number | null | undefined;
789
+ maxHeight?: string | number | null | undefined;
790
+ opacity?: number | null | undefined;
791
+ fade?: {
792
+ top?: string | number | null | undefined;
793
+ right?: string | number | null | undefined;
794
+ bottom?: string | number | null | undefined;
795
+ left?: string | number | null | undefined;
796
+ } | null | undefined;
797
+ }[];
798
+ } | null | undefined;
799
+ } | undefined;
800
+ app?: {
801
+ logLevel?: "debug" | "error" | "info" | "warn" | undefined;
802
+ basePath?: string | undefined;
803
+ offline?: boolean | undefined;
804
+ studioMode?: boolean | undefined;
805
+ workflowsEnabled?: boolean | undefined;
806
+ } | undefined;
807
+ ai?: {
808
+ assistantEnabled?: boolean | undefined;
809
+ } | undefined;
810
+ packages?: {
811
+ externalEnabled?: boolean | undefined;
812
+ liveReload?: boolean | undefined;
813
+ } | undefined;
814
+ drives?: {
815
+ allowAddDrive?: boolean | undefined;
816
+ defaultDrives?: ({
817
+ url: string;
818
+ name?: string | null | undefined;
819
+ icon?: string | null | undefined;
820
+ } | {
821
+ local: true;
822
+ id: string;
823
+ name?: string | null | undefined;
824
+ icon?: string | null | undefined;
825
+ app?: string | undefined;
826
+ })[] | undefined;
827
+ preserveStrategy?: "preserve-all" | "preserve-by-url-and-detach" | undefined;
828
+ sections?: {
829
+ remote?: {
830
+ enabled?: boolean | undefined;
831
+ allowAdd?: boolean | undefined;
832
+ allowDelete?: boolean | undefined;
833
+ } | undefined;
834
+ local?: {
835
+ enabled?: boolean | undefined;
836
+ allowAdd?: boolean | undefined;
837
+ allowDelete?: boolean | undefined;
838
+ } | undefined;
839
+ } | undefined;
840
+ icons?: {
841
+ localDrive?: string | null | undefined;
842
+ remoteDrive?: string | null | undefined;
843
+ folder?: string | null | undefined;
844
+ document?: string | null | undefined;
845
+ documents?: Record<string, string> | null | undefined;
846
+ } | null | undefined;
847
+ } | undefined;
848
+ renown?: {
849
+ url?: string | undefined;
850
+ networkId?: string | undefined;
851
+ chainId?: number | undefined;
852
+ namespace?: string | undefined;
853
+ switchboardUrl?: string | undefined;
854
+ adapters?: {
855
+ rainbow?: {
856
+ walletConnectProjectId?: string | undefined;
857
+ infuraProjectId?: string | undefined;
858
+ } | undefined;
859
+ privy?: {
860
+ appId?: string | undefined;
861
+ clientId?: string | undefined;
862
+ methods?: string[] | undefined;
863
+ } | undefined;
864
+ } | undefined;
865
+ } | undefined;
866
+ sentry?: {
867
+ dsn?: string | null | undefined;
868
+ env?: string | undefined;
869
+ tracing?: boolean | undefined;
870
+ } | undefined;
871
+ openPanel?: {
872
+ clientId?: string | undefined;
873
+ apiUrl?: string | undefined;
874
+ trackUiEvents?: boolean | undefined;
875
+ trackOperations?: boolean | undefined;
876
+ } | undefined;
877
+ reactor?: {
878
+ featureFlags?: {
879
+ documentDecisions?: boolean | undefined;
880
+ authEnforcement?: boolean | undefined;
881
+ authGroups?: boolean | undefined;
882
+ authConditions?: boolean | undefined;
883
+ } | undefined;
884
+ createSignaturePolicy?: "legacy" | "v2-required" | undefined;
885
+ unsupportedStoredDocuments?: "read-only" | "refuse" | undefined;
886
+ } | undefined;
887
+ composition?: {
888
+ module: string;
889
+ config?: Record<string, unknown> | undefined;
890
+ }[] | undefined;
891
+ instance?: {
892
+ namespace: string | null;
893
+ reactorWorker: boolean;
894
+ multiReactor?: boolean | undefined;
895
+ reactorClient?: "in-process" | "remote" | "router" | "worker" | undefined;
896
+ } | undefined;
897
+ pwa?: {
898
+ globPatterns?: string[] | undefined;
899
+ globIgnores?: string[] | undefined;
900
+ maximumFileSizeToCacheInBytes?: number | undefined;
901
+ runtimeCaching?: {
902
+ urlPattern: string | {
903
+ source: string;
904
+ flags?: string | undefined;
905
+ };
906
+ handler: "CacheFirst" | "CacheOnly" | "NetworkFirst" | "NetworkOnly" | "StaleWhileRevalidate";
907
+ method?: "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | undefined;
908
+ options?: {
909
+ cacheName?: string | undefined;
910
+ networkTimeoutSeconds?: number | undefined;
911
+ expiration?: {
912
+ maxEntries?: number | undefined;
913
+ maxAgeSeconds?: number | undefined;
914
+ } | undefined;
915
+ cacheableResponse?: {
916
+ statuses?: number[] | undefined;
917
+ headers?: Record<string, string> | undefined;
918
+ } | undefined;
919
+ } | undefined;
920
+ }[] | undefined;
921
+ navigateFallbackDenylist?: (string | {
922
+ source: string;
923
+ flags?: string | undefined;
924
+ })[] | undefined;
925
+ manifest?: {
926
+ name?: string | undefined;
927
+ short_name?: string | undefined;
928
+ description?: string | undefined;
929
+ theme_color?: string | undefined;
930
+ background_color?: string | undefined;
931
+ display?: "browser" | "fullscreen" | "minimal-ui" | "standalone" | undefined;
932
+ start_url?: string | undefined;
933
+ scope?: string | undefined;
934
+ icons?: {
935
+ src: string;
936
+ sizes?: string | undefined;
937
+ type?: string | undefined;
938
+ purpose?: string | undefined;
939
+ }[] | undefined;
940
+ file_handlers?: {
941
+ accept: Record<string, string[]>;
942
+ icons?: {
943
+ src: string;
944
+ sizes?: string | undefined;
945
+ type?: string | undefined;
946
+ purpose?: string | undefined;
947
+ }[] | undefined;
948
+ launch_type?: "multiple-clients" | "single-client" | undefined;
949
+ }[] | undefined;
950
+ launch_handler?: {
951
+ client_mode: "auto" | "focus-existing" | "navigate-existing" | "navigate-new";
952
+ } | undefined;
953
+ categories?: string[] | undefined;
954
+ } | undefined;
955
+ } | undefined;
956
+ } | {
957
+ home?: {
958
+ background?: string | {
959
+ color?: string | {
960
+ light: string;
961
+ dark?: string | null | undefined;
962
+ } | null | undefined;
963
+ layers: {
964
+ src: string | {
965
+ light: string;
966
+ dark?: string | null | undefined;
967
+ };
968
+ position?: {
969
+ top?: string | number | null | undefined;
970
+ right?: string | number | null | undefined;
971
+ bottom?: string | number | null | undefined;
972
+ left?: string | number | null | undefined;
973
+ } | null | undefined;
974
+ width?: string | number | null | undefined;
975
+ height?: string | number | null | undefined;
976
+ minWidth?: string | number | null | undefined;
977
+ minHeight?: string | number | null | undefined;
978
+ maxWidth?: string | number | null | undefined;
979
+ maxHeight?: string | number | null | undefined;
980
+ opacity?: number | null | undefined;
981
+ fade?: {
982
+ top?: string | number | null | undefined;
983
+ right?: string | number | null | undefined;
984
+ bottom?: string | number | null | undefined;
985
+ left?: string | number | null | undefined;
986
+ } | null | undefined;
987
+ }[];
988
+ } | null | undefined;
989
+ } | undefined;
990
+ app?: {
991
+ logLevel?: "debug" | "error" | "info" | "warn" | undefined;
992
+ basePath?: string | undefined;
993
+ offline?: boolean | undefined;
994
+ studioMode?: boolean | undefined;
995
+ workflowsEnabled?: boolean | undefined;
996
+ } | undefined;
997
+ ai?: {
998
+ assistantEnabled?: boolean | undefined;
999
+ } | undefined;
1000
+ packages?: {
1001
+ externalEnabled?: boolean | undefined;
1002
+ liveReload?: boolean | undefined;
1003
+ } | undefined;
1004
+ drives?: {
1005
+ allowAddDrive?: boolean | undefined;
1006
+ defaultDrives?: ({
1007
+ url: string;
1008
+ name?: string | null | undefined;
1009
+ icon?: string | null | undefined;
1010
+ } | {
1011
+ local: true;
1012
+ id: string;
1013
+ name?: string | null | undefined;
1014
+ icon?: string | null | undefined;
1015
+ app?: string | undefined;
1016
+ })[] | undefined;
1017
+ preserveStrategy?: "preserve-all" | "preserve-by-url-and-detach" | undefined;
1018
+ sections?: {
1019
+ remote?: {
1020
+ enabled?: boolean | undefined;
1021
+ allowAdd?: boolean | undefined;
1022
+ allowDelete?: boolean | undefined;
1023
+ } | undefined;
1024
+ local?: {
1025
+ enabled?: boolean | undefined;
1026
+ allowAdd?: boolean | undefined;
1027
+ allowDelete?: boolean | undefined;
1028
+ } | undefined;
1029
+ } | undefined;
1030
+ icons?: {
1031
+ localDrive?: string | null | undefined;
1032
+ remoteDrive?: string | null | undefined;
1033
+ folder?: string | null | undefined;
1034
+ document?: string | null | undefined;
1035
+ documents?: Record<string, string> | null | undefined;
1036
+ } | null | undefined;
1037
+ } | undefined;
1038
+ renown?: {
1039
+ url?: string | undefined;
1040
+ networkId?: string | undefined;
1041
+ chainId?: number | undefined;
1042
+ namespace?: string | undefined;
1043
+ switchboardUrl?: string | undefined;
1044
+ adapters?: {
1045
+ rainbow?: {
1046
+ walletConnectProjectId?: string | undefined;
1047
+ infuraProjectId?: string | undefined;
1048
+ } | undefined;
1049
+ privy?: {
1050
+ appId?: string | undefined;
1051
+ clientId?: string | undefined;
1052
+ methods?: string[] | undefined;
1053
+ } | undefined;
1054
+ } | undefined;
1055
+ } | undefined;
1056
+ sentry?: {
1057
+ dsn?: string | null | undefined;
1058
+ env?: string | undefined;
1059
+ tracing?: boolean | undefined;
1060
+ } | undefined;
1061
+ openPanel?: {
1062
+ clientId?: string | undefined;
1063
+ apiUrl?: string | undefined;
1064
+ trackUiEvents?: boolean | undefined;
1065
+ trackOperations?: boolean | undefined;
1066
+ } | undefined;
1067
+ reactor?: {
1068
+ featureFlags?: {
1069
+ documentDecisions?: boolean | undefined;
1070
+ authEnforcement?: boolean | undefined;
1071
+ authGroups?: boolean | undefined;
1072
+ authConditions?: boolean | undefined;
1073
+ } | undefined;
1074
+ createSignaturePolicy?: "legacy" | "v2-required" | undefined;
1075
+ unsupportedStoredDocuments?: "read-only" | "refuse" | undefined;
1076
+ } | undefined;
1077
+ composition?: {
1078
+ module: string;
1079
+ config?: Record<string, unknown> | undefined;
1080
+ }[] | undefined;
1081
+ instance?: {
1082
+ namespace: string | null;
1083
+ reactorWorker: boolean;
1084
+ multiReactor?: boolean | undefined;
1085
+ reactorClient?: "in-process" | "remote" | "router" | "worker" | undefined;
1086
+ } | undefined;
1087
+ pwa?: {
1088
+ globPatterns?: string[] | undefined;
1089
+ globIgnores?: string[] | undefined;
1090
+ maximumFileSizeToCacheInBytes?: number | undefined;
1091
+ runtimeCaching?: {
1092
+ urlPattern: string | {
1093
+ source: string;
1094
+ flags?: string | undefined;
1095
+ };
1096
+ handler: "CacheFirst" | "CacheOnly" | "NetworkFirst" | "NetworkOnly" | "StaleWhileRevalidate";
1097
+ method?: "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | undefined;
1098
+ options?: {
1099
+ cacheName?: string | undefined;
1100
+ networkTimeoutSeconds?: number | undefined;
1101
+ expiration?: {
1102
+ maxEntries?: number | undefined;
1103
+ maxAgeSeconds?: number | undefined;
1104
+ } | undefined;
1105
+ cacheableResponse?: {
1106
+ statuses?: number[] | undefined;
1107
+ headers?: Record<string, string> | undefined;
1108
+ } | undefined;
1109
+ } | undefined;
1110
+ }[] | undefined;
1111
+ navigateFallbackDenylist?: (string | {
1112
+ source: string;
1113
+ flags?: string | undefined;
1114
+ })[] | undefined;
1115
+ manifest?: {
1116
+ name?: string | undefined;
1117
+ short_name?: string | undefined;
1118
+ description?: string | undefined;
1119
+ theme_color?: string | undefined;
1120
+ background_color?: string | undefined;
1121
+ display?: "browser" | "fullscreen" | "minimal-ui" | "standalone" | undefined;
1122
+ start_url?: string | undefined;
1123
+ scope?: string | undefined;
1124
+ icons?: {
1125
+ src: string;
1126
+ sizes?: string | undefined;
1127
+ type?: string | undefined;
1128
+ purpose?: string | undefined;
1129
+ }[] | undefined;
1130
+ file_handlers?: {
1131
+ accept: Record<string, string[]>;
1132
+ icons?: {
1133
+ src: string;
1134
+ sizes?: string | undefined;
1135
+ type?: string | undefined;
1136
+ purpose?: string | undefined;
1137
+ }[] | undefined;
1138
+ launch_type?: "multiple-clients" | "single-client" | undefined;
1139
+ }[] | undefined;
1140
+ launch_handler?: {
1141
+ client_mode: "auto" | "focus-existing" | "navigate-existing" | "navigate-new";
1142
+ } | undefined;
1143
+ categories?: string[] | undefined;
1144
+ } | undefined;
1145
+ } | undefined;
1146
+ branding: {
1147
+ appName?: string | null | undefined;
1148
+ icon?: string | null | undefined;
1149
+ loader?: string | {
1150
+ src: string;
1151
+ animation?: "none" | "pulse" | "spin" | null | undefined;
1152
+ size?: number | null | undefined;
1153
+ } | null | undefined;
1154
+ };
1155
+ } | undefined;
1156
+ export declare function dev(host: ConnectHostParsed, ctx: RunnerContext): Promise<RunnerHandle<ConnectOutputs>>;
129
1157
  /** `run` is dev-studio until the plugin phases give hosts a production
130
1158
  * runtime; `serve` (below) is the static production server. */
131
1159
  export declare const run: typeof dev;
132
1160
  /** P3.3 — `build`: the SAME service as classic `ph connect build`. */
133
- export declare function build(host: HostDefinition, ctx: RunnerContext): Promise<void>;
1161
+ export declare function build(host: ConnectHostParsed, ctx: RunnerContext): Promise<void>;
134
1162
  /** P3.3 — `serve`: the SAME vite preview server as classic
135
1163
  * `ph connect preview` (static serve of a built Connect; run `build` first).
136
1164
  * The host's connect config (including a supervising compound's projected
@@ -139,7 +1167,7 @@ export declare function build(host: HostDefinition, ctx: RunnerContext): Promise
139
1167
  * `runner.cspRegistrySync` (set by the compound's wiring) patches the baked
140
1168
  * CSP's script-src for the runtime registry — together these replace the
141
1169
  * ph-win-desktop sidecar's hand-rolled static server (desktop shape). */
142
- export declare function serve(host: HostDefinition, ctx: RunnerContext): Promise<void>;
1170
+ export declare function serve(host: ConnectHostParsed, ctx: RunnerContext): Promise<RunnerHandle<ConnectOutputs>>;
143
1171
  //#endregion
144
1172
  export {};
145
1173
  //# sourceMappingURL=connect.d.mts.map