@powerhousedao/ph-cli 6.2.3-dev.6 → 6.2.3-dev.60

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 (122) hide show
  1. package/dist/{auth-AR3VxAIk.mjs → auth-BFUq7CvE.mjs} +3 -3
  2. package/dist/{auth-AR3VxAIk.mjs.map → auth-BFUq7CvE.mjs.map} +1 -1
  3. package/dist/auth-CNhbN5UM.mjs +4 -0
  4. package/dist/build-DmqwT-PR.mjs +4 -0
  5. package/dist/build-skPHsKkL.mjs +210 -0
  6. package/dist/build-skPHsKkL.mjs.map +1 -0
  7. package/dist/{cli-connect-override-D3hh4aH_.mjs → cli-connect-override-65mFEDEB.mjs} +38 -26
  8. package/dist/cli-connect-override-65mFEDEB.mjs.map +1 -0
  9. package/dist/cli.d.mts +2 -1
  10. package/dist/cli.mjs +31 -1175
  11. package/dist/cli.mjs.map +1 -1
  12. package/dist/connect-build-D9zrBKG4.mjs +218 -0
  13. package/dist/connect-build-D9zrBKG4.mjs.map +1 -0
  14. package/dist/{connect-config-BWGiW3IB.mjs → connect-config-C1tf7DqD.mjs} +19 -12
  15. package/dist/connect-config-C1tf7DqD.mjs.map +1 -0
  16. package/dist/connect-preview-Clue7SVp.mjs +122 -0
  17. package/dist/connect-preview-Clue7SVp.mjs.map +1 -0
  18. package/dist/connect-studio-BbsQuED_.mjs +4 -0
  19. package/dist/{connect-studio-D6rfWCNB.mjs → connect-studio-Q93rzqnC.mjs} +15 -10
  20. package/dist/{connect-studio-D6rfWCNB.mjs.map → connect-studio-Q93rzqnC.mjs.map} +1 -1
  21. package/dist/dist-D-CZUgtS.mjs +222 -0
  22. package/dist/dist-D-CZUgtS.mjs.map +1 -0
  23. package/dist/explain-BHB_4rJ3.mjs +27 -0
  24. package/dist/explain-BHB_4rJ3.mjs.map +1 -0
  25. package/dist/feature-flags-xwqcHEWC.mjs +4 -0
  26. package/dist/{generate-all-DrT4ZxHX.mjs → generate-all-CRfVwLJ9.mjs} +5 -3
  27. package/dist/generate-all-CRfVwLJ9.mjs.map +1 -0
  28. package/dist/{generate-app-DNNqA-H3.mjs → generate-app-BTs1u-9l.mjs} +7 -5
  29. package/dist/{generate-app-DNNqA-H3.mjs.map → generate-app-BTs1u-9l.mjs.map} +1 -1
  30. package/dist/{generate-document-model-BJXyODfm.mjs → generate-document-model-ChkXjM1s.mjs} +19 -7
  31. package/dist/generate-document-model-ChkXjM1s.mjs.map +1 -0
  32. package/dist/{generate-editor-BejvaVVT.mjs → generate-editor-CW7Do69u.mjs} +7 -5
  33. package/dist/{generate-editor-BejvaVVT.mjs.map → generate-editor-CW7Do69u.mjs.map} +1 -1
  34. package/dist/generate-piece-QTt-ddt2.mjs +65 -0
  35. package/dist/generate-piece-QTt-ddt2.mjs.map +1 -0
  36. package/dist/generate-piece-action-DbxrzfKY.mjs +29 -0
  37. package/dist/generate-piece-action-DbxrzfKY.mjs.map +1 -0
  38. package/dist/generate-piece-trigger-CqVOcL9g.mjs +30 -0
  39. package/dist/generate-piece-trigger-CqVOcL9g.mjs.map +1 -0
  40. package/dist/{generate-processor-_WOx-mMe.mjs → generate-processor-DBtTkgo5.mjs} +15 -8
  41. package/dist/generate-processor-DBtTkgo5.mjs.map +1 -0
  42. package/dist/{generate-subgraph-BsHUstpl.mjs → generate-subgraph-DmcQWVbd.mjs} +12 -6
  43. package/dist/generate-subgraph-DmcQWVbd.mjs.map +1 -0
  44. package/dist/host-schemas-CL_wFpY7-DOvIjrBA.mjs +478 -0
  45. package/dist/host-schemas-CL_wFpY7-DOvIjrBA.mjs.map +1 -0
  46. package/dist/index-CApW1xbO.d.mts +3752 -0
  47. package/dist/index-CApW1xbO.d.mts.map +1 -0
  48. package/dist/{init-BZP6gvYd.mjs → init-ScuT3z7P.mjs} +7 -5
  49. package/dist/init-ScuT3z7P.mjs.map +1 -0
  50. package/dist/{inspect-DXjbQEV_.mjs → inspect-BpCB0TPo.mjs} +11 -4
  51. package/dist/inspect-BpCB0TPo.mjs.map +1 -0
  52. package/dist/install-added-dependencies-DVSbzler.mjs +33 -0
  53. package/dist/install-added-dependencies-DVSbzler.mjs.map +1 -0
  54. package/dist/{migrate-jGKfE02L.mjs → migrate-DK4HK7Dn.mjs} +4 -4
  55. package/dist/{migrate-jGKfE02L.mjs.map → migrate-DK4HK7Dn.mjs.map} +1 -1
  56. package/dist/ph-cli-commands-BxKtXZgb.mjs +4 -0
  57. package/dist/ph-cli-commands-DGOKk392.mjs +1452 -0
  58. package/dist/ph-cli-commands-DGOKk392.mjs.map +1 -0
  59. package/dist/plugins-DtJUVtyg.mjs +4046 -0
  60. package/dist/plugins-DtJUVtyg.mjs.map +1 -0
  61. package/dist/reactor-env-CchCHhA0.mjs +4 -0
  62. package/dist/reactor-env-DHBr4V4W.mjs +29 -0
  63. package/dist/reactor-env-DHBr4V4W.mjs.map +1 -0
  64. package/dist/{registry-auth-DxEWCJu2.mjs → registry-auth-Bm5AR-fB.mjs} +4 -4
  65. package/dist/{registry-auth-DxEWCJu2.mjs.map → registry-auth-Bm5AR-fB.mjs.map} +1 -1
  66. package/dist/run-sugar-Dq3ZrLL_.mjs +39 -0
  67. package/dist/run-sugar-Dq3ZrLL_.mjs.map +1 -0
  68. package/dist/runners/compound.d.mts +127 -0
  69. package/dist/runners/compound.d.mts.map +1 -0
  70. package/dist/runners/compound.mjs +72 -0
  71. package/dist/runners/compound.mjs.map +1 -0
  72. package/dist/runners/connect.d.mts +144 -0
  73. package/dist/runners/connect.d.mts.map +1 -0
  74. package/dist/runners/connect.mjs +184 -0
  75. package/dist/runners/connect.mjs.map +1 -0
  76. package/dist/runners/switchboard.d.mts +139 -0
  77. package/dist/runners/switchboard.d.mts.map +1 -0
  78. package/dist/runners/switchboard.mjs +141 -0
  79. package/dist/runners/switchboard.mjs.map +1 -0
  80. package/dist/scripts/generate-commands-docs.ts +8 -0
  81. package/dist/scripts/manage-environment +0 -0
  82. package/dist/scripts/setup.sh +0 -0
  83. package/dist/start-run-DsZRHbM1.mjs +36 -0
  84. package/dist/start-run-DsZRHbM1.mjs.map +1 -0
  85. package/dist/superseded-config-9D7BdLvd.mjs +53 -0
  86. package/dist/superseded-config-9D7BdLvd.mjs.map +1 -0
  87. package/dist/switchboard-BUMqobK4.mjs +4 -0
  88. package/dist/{switchboard-migrate-NQ7LHWSi.mjs → switchboard-migrate-7JQZM7-5.mjs} +5 -4
  89. package/dist/{switchboard-migrate-NQ7LHWSi.mjs.map → switchboard-migrate-7JQZM7-5.mjs.map} +1 -1
  90. package/dist/{switchboard-reset-BcQXlcVf.mjs → switchboard-reset-CX_Lzw3O.mjs} +4 -4
  91. package/dist/{switchboard-reset-BcQXlcVf.mjs.map → switchboard-reset-CX_Lzw3O.mjs.map} +1 -1
  92. package/dist/switchboard-tQS3fhqa.mjs +132 -0
  93. package/dist/switchboard-tQS3fhqa.mjs.map +1 -0
  94. package/dist/{utils-BzwczAW-.mjs → utils-C3c5YG6v.mjs} +3 -3
  95. package/dist/{utils-C4isxXSO.mjs → utils-CvmDmCVd.mjs} +3 -3
  96. package/dist/{utils-C4isxXSO.mjs.map → utils-CvmDmCVd.mjs.map} +1 -1
  97. package/dist/{vetra-DkF6EJMY.mjs → vetra-BNJZ5LHN.mjs} +66 -31
  98. package/dist/vetra-BNJZ5LHN.mjs.map +1 -0
  99. package/dist/warn-subgraph-type-conflicts-Jd6SeN-M.mjs +19 -0
  100. package/dist/warn-subgraph-type-conflicts-Jd6SeN-M.mjs.map +1 -0
  101. package/package.json +41 -17
  102. package/dist/auth-BNkN6kS9.mjs +0 -4
  103. package/dist/build-C-A5-ipO.mjs +0 -4
  104. package/dist/build-uQXq6_HU.mjs +0 -71
  105. package/dist/build-uQXq6_HU.mjs.map +0 -1
  106. package/dist/cli-connect-override-D3hh4aH_.mjs.map +0 -1
  107. package/dist/connect-build-WL4axo4z.mjs +0 -43
  108. package/dist/connect-build-WL4axo4z.mjs.map +0 -1
  109. package/dist/connect-config-BWGiW3IB.mjs.map +0 -1
  110. package/dist/connect-preview-D7ypzFDc.mjs +0 -28
  111. package/dist/connect-preview-D7ypzFDc.mjs.map +0 -1
  112. package/dist/connect-studio-BIQzyq5B.mjs +0 -5
  113. package/dist/generate-all-DrT4ZxHX.mjs.map +0 -1
  114. package/dist/generate-document-model-BJXyODfm.mjs.map +0 -1
  115. package/dist/generate-processor-_WOx-mMe.mjs.map +0 -1
  116. package/dist/generate-subgraph-BsHUstpl.mjs.map +0 -1
  117. package/dist/init-BZP6gvYd.mjs.map +0 -1
  118. package/dist/inspect-DXjbQEV_.mjs.map +0 -1
  119. package/dist/switchboard-CJMoMzWx.mjs +0 -75
  120. package/dist/switchboard-CJMoMzWx.mjs.map +0 -1
  121. package/dist/switchboard-iRFugh8I.mjs +0 -4
  122. package/dist/vetra-DkF6EJMY.mjs.map +0 -1
@@ -0,0 +1,4 @@
1
+ import { t as applyReactorEnvProjection } from "./reactor-env-DHBr4V4W.mjs";
2
+ export { applyReactorEnvProjection };
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7568f712-c559-5cd2-96da-9bfd32521709")}catch(e){}}();
4
+ //# debugId=7568f712-c559-5cd2-96da-9bfd32521709
@@ -0,0 +1,29 @@
1
+
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9ea21d78-2054-5ebb-8412-c8846f3a8b2c")}catch(e){}}();
3
+ import { a as projectReactorToSwitchboard, r as primaryBackend, t as assertProtocolConsistency } from "./dist-D-CZUgtS.mjs";
4
+ import fs from "node:fs";
5
+ //#region src/runners/reactor-env.ts
6
+ /**
7
+ * Apply a host's reactor block to the CURRENT process env, the way the
8
+ * in-process switchboard server reads it at boot (D2.c: env derivation
9
+ * immediately before the member starts; sequential boots make this safe).
10
+ * Single-sourcing teeth first: a pre-set env contradicting the protocol block
11
+ * fails loudly. Then set-if-absent, so an operator's explicit (agreeing) env
12
+ * still wins during the transition. Returns the non-env options (dbPath).
13
+ *
14
+ * Lives OUTSIDE the runner modules on purpose: every export of a runner
15
+ * module reads as a dispatchable verb, and this is not one.
16
+ */
17
+ function applyReactorEnvProjection(reactor, hostFileLabel) {
18
+ const { env, options } = projectReactorToSwitchboard(reactor);
19
+ assertProtocolConsistency(reactor?.protocol, process.env, hostFileLabel);
20
+ for (const [name, value] of Object.entries(env)) if (process.env[name] === void 0) process.env[name] = value;
21
+ const storage = primaryBackend(reactor)?.storage;
22
+ if (storage?.kind === "path" && storage.dataDir) fs.mkdirSync(storage.dataDir, { recursive: true });
23
+ return options;
24
+ }
25
+ //#endregion
26
+ export { applyReactorEnvProjection as t };
27
+
28
+ //# sourceMappingURL=reactor-env-DHBr4V4W.mjs.map
29
+ //# debugId=9ea21d78-2054-5ebb-8412-c8846f3a8b2c
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactor-env-DHBr4V4W.mjs","sources":["../src/runners/reactor-env.ts"],"sourcesContent":["import fs from \"node:fs\";\nimport {\n assertProtocolConsistency,\n primaryBackend,\n projectReactorToSwitchboard,\n type ReactorConfig,\n} from \"@powerhousedao/host-core\";\n\n/**\n * Apply a host's reactor block to the CURRENT process env, the way the\n * in-process switchboard server reads it at boot (D2.c: env derivation\n * immediately before the member starts; sequential boots make this safe).\n * Single-sourcing teeth first: a pre-set env contradicting the protocol block\n * fails loudly. Then set-if-absent, so an operator's explicit (agreeing) env\n * still wins during the transition. Returns the non-env options (dbPath).\n *\n * Lives OUTSIDE the runner modules on purpose: every export of a runner\n * module reads as a dispatchable verb, and this is not one.\n */\nexport function applyReactorEnvProjection(\n reactor: ReactorConfig | undefined,\n hostFileLabel: string,\n): { dbPath?: string } {\n const { env, options } = projectReactorToSwitchboard(reactor);\n assertProtocolConsistency(reactor?.protocol, process.env, hostFileLabel);\n for (const [name, value] of Object.entries(env)) {\n if (process.env[name] === undefined) process.env[name] = value;\n }\n // A path-storage data dir must exist before the server boots — its own\n // mkdir is not recursive (the ph-win sidecar did this too).\n const storage = primaryBackend(reactor)?.storage;\n if (storage?.kind === \"path\" && storage.dataDir) {\n fs.mkdirSync(storage.dataDir, { recursive: true });\n }\n return options;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAmBA,SAAgB,0BACd,SACA,eACqB;CACrB,MAAM,EAAE,KAAK,YAAY,4BAA4B,OAAO;CAC5D,0BAA0B,SAAS,UAAU,QAAQ,KAAK,aAAa;CACvE,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,GAAG,GAC5C,IAAI,QAAQ,IAAI,UAAU,KAAA,GAAW,QAAQ,IAAI,QAAQ;CAI3D,MAAM,UAAU,eAAe,OAAO,CAAC,EAAE;CACzC,IAAI,SAAS,SAAS,UAAU,QAAQ,SACtC,GAAG,UAAU,QAAQ,SAAS,EAAE,WAAW,KAAK,CAAC;CAEnD,OAAO;AACT","debug_id":"9ea21d78-2054-5ebb-8412-c8846f3a8b2c"}
@@ -1,6 +1,6 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="10e21342-67f2-5661-889a-e6e77c2b13f6")}catch(e){}}();
3
- import { t as getRenown } from "./auth-AR3VxAIk.mjs";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d0d0a6bc-dc22-5a36-9c82-560310b04535")}catch(e){}}();
3
+ import { t as getRenown } from "./auth-BFUq7CvE.mjs";
4
4
  import { generateAccessToken } from "@renown/sdk/node";
5
5
  //#region src/services/registry-auth.ts
6
6
  /**
@@ -21,5 +21,5 @@ async function mintRegistryAuthToken(registryUrl, expiresInSeconds) {
21
21
  //#endregion
22
22
  export { mintRegistryAuthToken };
23
23
 
24
- //# sourceMappingURL=registry-auth-DxEWCJu2.mjs.map
25
- //# debugId=10e21342-67f2-5661-889a-e6e77c2b13f6
24
+ //# sourceMappingURL=registry-auth-Bm5AR-fB.mjs.map
25
+ //# debugId=d0d0a6bc-dc22-5a36-9c82-560310b04535
@@ -1 +1 @@
1
- {"version":3,"file":"registry-auth-DxEWCJu2.mjs","sources":["../src/services/registry-auth.ts"],"sourcesContent":["import { generateAccessToken } from \"@renown/sdk/node\";\nimport { getRenown } from \"./auth.js\";\n\n/**\n * Mint a Renown bearer token bound to the given registry URL via the JWT\n * `aud` claim. Throws if the user is not authenticated (`ph login` first).\n *\n * The audience binding is what lets the registry distinguish a token minted\n * for it from one minted for a different service or registry.\n */\nexport async function mintRegistryAuthToken(\n registryUrl: string,\n expiresInSeconds: number,\n): Promise<string> {\n const renown = await getRenown();\n if (!renown.user) {\n throw new Error(\"Not authenticated with Renown. Run 'ph login' first.\");\n }\n const result = await generateAccessToken(renown, {\n expiresIn: expiresInSeconds,\n aud: registryUrl,\n });\n return result.token;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAUA,eAAsB,sBACpB,aACA,kBACiB;CACjB,MAAM,SAAS,MAAM,WAAW;AAChC,KAAI,CAAC,OAAO,KACV,OAAM,IAAI,MAAM,uDAAuD;AAMzE,SAJe,MAAM,oBAAoB,QAAQ;EAC/C,WAAW;EACX,KAAK;EACN,CAAC,EACY","debug_id":"10e21342-67f2-5661-889a-e6e77c2b13f6"}
1
+ {"version":3,"file":"registry-auth-Bm5AR-fB.mjs","sources":["../src/services/registry-auth.ts"],"sourcesContent":["import { generateAccessToken } from \"@renown/sdk/node\";\nimport { getRenown } from \"./auth.js\";\n\n/**\n * Mint a Renown bearer token bound to the given registry URL via the JWT\n * `aud` claim. Throws if the user is not authenticated (`ph login` first).\n *\n * The audience binding is what lets the registry distinguish a token minted\n * for it from one minted for a different service or registry.\n */\nexport async function mintRegistryAuthToken(\n registryUrl: string,\n expiresInSeconds: number,\n): Promise<string> {\n const renown = await getRenown();\n if (!renown.user) {\n throw new Error(\"Not authenticated with Renown. Run 'ph login' first.\");\n }\n const result = await generateAccessToken(renown, {\n expiresIn: expiresInSeconds,\n aud: registryUrl,\n });\n return result.token;\n}\n"],"names":[],"mappings":";;;;;;;;;;;;AAUA,eAAsB,sBACpB,aACA,kBACiB;CACjB,MAAM,SAAS,MAAM,UAAU;CAC/B,IAAI,CAAC,OAAO,MACV,MAAM,IAAI,MAAM,sDAAsD;CAMxE,QAAO,MAJc,oBAAoB,QAAQ;EAC/C,WAAW;EACX,KAAK;CACP,CAAC,EAAA,CACa;AAChB","debug_id":"d0d0a6bc-dc22-5a36-9c82-560310b04535"}
@@ -0,0 +1,39 @@
1
+
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="d3abb843-86e4-5e80-bbdc-d25a99e0d7d3")}catch(e){}}();
3
+ import { s as probeHostsFolder } from "./host-schemas-CL_wFpY7-DOvIjrBA.mjs";
4
+ //#region src/utils/run-sugar.ts
5
+ /**
6
+ * `ph <host-name> [verb]` sugar: when the first arg is not a registered
7
+ * command and names a host in the project's hosts/ folder, splice in `run`
8
+ * (mirrors the connect→`connect studio` default-subcommand rewrite).
9
+ * Built-in commands win collisions by construction — the known-command check
10
+ * runs first. Callers only invoke this when the uniform-runners flag is on.
11
+ */
12
+ /** Classic commands that route through `ph run` in a hosts project — BARE
13
+ * invocations only: extra flags are not representable on `ph run` yet, and
14
+ * the classic path calls the same service, so flagged invocations stay
15
+ * classic until the host-core compound takes over (phase 1). */
16
+ const CLASSIC_ALIASES = /* @__PURE__ */ new Set(["vetra"]);
17
+ function applyRunSugar(args, knownCommands, projectRoot) {
18
+ const first = args[0];
19
+ if (!first || first.startsWith("-")) return { args };
20
+ if (knownCommands.has(first)) {
21
+ if (CLASSIC_ALIASES.has(first) && args.length === 1) {
22
+ const probe = probeHostsFolder(projectRoot);
23
+ if (probe.kind === "present" && probe.hosts.includes(first)) return { args: ["run", first] };
24
+ }
25
+ return { args };
26
+ }
27
+ const probe = probeHostsFolder(projectRoot);
28
+ if (probe.kind === "empty") return {
29
+ args,
30
+ warning: `hosts/ exists at ${probe.dir} but contains no <name>/host.js — uniform-runners stays inactive (legacy command handling).`
31
+ };
32
+ if (probe.kind === "present" && probe.hosts.includes(first)) return { args: ["run", ...args] };
33
+ return { args };
34
+ }
35
+ //#endregion
36
+ export { applyRunSugar };
37
+
38
+ //# sourceMappingURL=run-sugar-Dq3ZrLL_.mjs.map
39
+ //# debugId=d3abb843-86e4-5e80-bbdc-d25a99e0d7d3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-sugar-Dq3ZrLL_.mjs","sources":["../src/utils/run-sugar.ts"],"sourcesContent":["import { probeHostsFolder } from \"@powerhousedao/host-core\";\n\nexport interface RunSugarResult {\n args: string[];\n /** Set when hosts/ exists but is empty — the guard state: warn loudly, stay legacy. */\n warning?: string;\n}\n\n/**\n * `ph <host-name> [verb]` sugar: when the first arg is not a registered\n * command and names a host in the project's hosts/ folder, splice in `run`\n * (mirrors the connect→`connect studio` default-subcommand rewrite).\n * Built-in commands win collisions by construction — the known-command check\n * runs first. Callers only invoke this when the uniform-runners flag is on.\n */\n/** Classic commands that route through `ph run` in a hosts project — BARE\n * invocations only: extra flags are not representable on `ph run` yet, and\n * the classic path calls the same service, so flagged invocations stay\n * classic until the host-core compound takes over (phase 1). */\nconst CLASSIC_ALIASES = new Set([\"vetra\"]);\n\nexport function applyRunSugar(\n args: string[],\n knownCommands: ReadonlySet<string>,\n projectRoot: string,\n): RunSugarResult {\n const first = args[0];\n if (!first || first.startsWith(\"-\")) {\n return { args };\n }\n if (knownCommands.has(first)) {\n if (CLASSIC_ALIASES.has(first) && args.length === 1) {\n const probe = probeHostsFolder(projectRoot);\n if (probe.kind === \"present\" && probe.hosts.includes(first)) {\n return { args: [\"run\", first] };\n }\n }\n return { args };\n }\n const probe = probeHostsFolder(projectRoot);\n if (probe.kind === \"empty\") {\n return {\n args,\n warning:\n `hosts/ exists at ${probe.dir} but contains no <name>/host.js — ` +\n \"uniform-runners stays inactive (legacy command handling).\",\n };\n }\n if (probe.kind === \"present\" && probe.hosts.includes(first)) {\n return { args: [\"run\", ...args] };\n }\n return { args };\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAmBA,MAAM,kCAAkB,IAAI,IAAI,CAAC,OAAO,CAAC;AAEzC,SAAgB,cACd,MACA,eACA,aACgB;CAChB,MAAM,QAAQ,KAAK;CACnB,IAAI,CAAC,SAAS,MAAM,WAAW,GAAG,GAChC,OAAO,EAAE,KAAK;CAEhB,IAAI,cAAc,IAAI,KAAK,GAAG;EAC5B,IAAI,gBAAgB,IAAI,KAAK,KAAK,KAAK,WAAW,GAAG;GACnD,MAAM,QAAQ,iBAAiB,WAAW;GAC1C,IAAI,MAAM,SAAS,aAAa,MAAM,MAAM,SAAS,KAAK,GACxD,OAAO,EAAE,MAAM,CAAC,OAAO,KAAK,EAAE;EAElC;EACA,OAAO,EAAE,KAAK;CAChB;CACA,MAAM,QAAQ,iBAAiB,WAAW;CAC1C,IAAI,MAAM,SAAS,SACjB,OAAO;EACL;EACA,SACE,oBAAoB,MAAM,IAAI;CAElC;CAEF,IAAI,MAAM,SAAS,aAAa,MAAM,MAAM,SAAS,KAAK,GACxD,OAAO,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,EAAE;CAElC,OAAO,EAAE,KAAK;AAChB","debug_id":"d3abb843-86e4-5e80-bbdc-d25a99e0d7d3"}
@@ -0,0 +1,127 @@
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, 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-CApW1xbO.mjs";
2
+ //#region src/runners/compound.d.ts
3
+ /**
4
+ * BRIDGE compound runner (uniform-runners phase 0): args derivation, not
5
+ * supervision. It reads the compound's member wrappers plus the member host
6
+ * files they reference, derives exactly the args today's `startVetra` takes,
7
+ * and calls it — so `ph run vetra` and classic `ph vetra` share one code
8
+ * path. Real supervision (members started via their own runners, instance-
9
+ * fact projection, .ph/run records) is the phase-1 generic compound in
10
+ * @powerhousedao/host-core; this file is deleted when that lands.
11
+ */
12
+ export declare const kind = "compound";
13
+ /** Phase-2 schema (D2.d): children member shapes + profile come from
14
+ * host-core — member reactor overrides now validate strictly. */
15
+ export declare const hostSchema: ZodObject<{
16
+ name: ZodString;
17
+ runner: ZodObject<{
18
+ module: ZodString;
19
+ defaultVerb: ZodOptional<ZodString>;
20
+ }, $loose>;
21
+ children: ZodRecord<ZodString, ZodObject<{
22
+ host: ZodString;
23
+ runner: ZodOptional<ZodObject<{}, $loose>>;
24
+ config: ZodOptional<ZodObject<{}, $loose>>;
25
+ reactor: ZodOptional<ZodObject<{
26
+ backends: ZodOptional<ZodRecord<ZodString, ZodObject<{
27
+ kind: ZodOptional<ZodEnum<{
28
+ "in-process": "in-process";
29
+ remote: "remote";
30
+ worker: "worker";
31
+ }>>;
32
+ storage: ZodOptional<ZodObject<{
33
+ kind: ZodEnum<{
34
+ idb: "idb";
35
+ memory: "memory";
36
+ path: "path";
37
+ postgres: "postgres";
38
+ }>;
39
+ dataDir: ZodOptional<ZodString>;
40
+ url: ZodOptional<ZodString>;
41
+ }, $strict>>;
42
+ readModel: ZodOptional<ZodObject<{
43
+ url: ZodOptional<ZodString>;
44
+ }, $strict>>;
45
+ packages: ZodOptional<ZodObject<{
46
+ cdnUrl: ZodOptional<ZodString>;
47
+ specs: ZodOptional<ZodArray<ZodString>>;
48
+ dynamic: ZodOptional<ZodBoolean>;
49
+ }, $strict>>;
50
+ remote: ZodOptional<ZodObject<{
51
+ host: ZodOptional<ZodString>;
52
+ url: ZodOptional<ZodString>;
53
+ }, $strict>>;
54
+ projection: ZodOptional<ZodObject<{
55
+ enabled: ZodOptional<ZodBoolean>;
56
+ dbPoolSize: ZodOptional<ZodNumber>;
57
+ }, $strict>>;
58
+ executors: ZodOptional<ZodObject<{
59
+ numWorkers: ZodOptional<ZodUnion<readonly [ZodNumber, ZodLiteral<"auto">]>>;
60
+ }, $strict>>;
61
+ }, $strict>>>;
62
+ placement: ZodOptional<ZodObject<{
63
+ primary: ZodOptional<ZodString>;
64
+ default: ZodOptional<ZodObject<{}, $loose>>;
65
+ }, $strict>>;
66
+ protocol: ZodOptional<ZodObject<{
67
+ featureFlags: ZodOptional<ZodObject<{
68
+ documentDecisions: ZodOptional<ZodBoolean>;
69
+ authEnforcement: ZodOptional<ZodBoolean>;
70
+ authGroups: ZodOptional<ZodBoolean>;
71
+ authConditions: ZodOptional<ZodBoolean>;
72
+ }, $strict>>;
73
+ createSignaturePolicy: ZodOptional<ZodEnum<{
74
+ legacy: "legacy";
75
+ "v2-required": "v2-required";
76
+ }>>;
77
+ unsupportedStoredDocuments: ZodOptional<ZodEnum<{
78
+ "read-only": "read-only";
79
+ refuse: "refuse";
80
+ }>>;
81
+ }, $strict>>;
82
+ workflows: ZodOptional<ZodBoolean>;
83
+ renown: ZodOptional<ZodObject<{
84
+ url: ZodOptional<ZodString>;
85
+ networkId: ZodOptional<ZodString>;
86
+ chainId: ZodOptional<ZodNumber>;
87
+ }, $strict>>;
88
+ packages: ZodOptional<ZodObject<{
89
+ registryUrl: ZodOptional<ZodString>;
90
+ }, $strict>>;
91
+ namespace: ZodOptional<ZodString>;
92
+ auth: ZodOptional<ZodObject<{
93
+ enabled: ZodOptional<ZodBoolean>;
94
+ admins: ZodOptional<ZodArray<ZodString>>;
95
+ renown: ZodOptional<ZodObject<{}, $loose>>;
96
+ }, $strict>>;
97
+ drives: ZodOptional<ZodArray<ZodObject<{
98
+ slug: ZodString;
99
+ id: ZodOptional<ZodString>;
100
+ projectHash: ZodOptional<ZodBoolean>;
101
+ name: ZodOptional<ZodString>;
102
+ icon: ZodOptional<ZodString>;
103
+ preferredEditor: ZodOptional<ZodString>;
104
+ sharingType: ZodOptional<ZodEnum<{
105
+ private: "private";
106
+ public: "public";
107
+ shared: "shared";
108
+ }>>;
109
+ availableOffline: ZodOptional<ZodBoolean>;
110
+ remote: ZodOptional<ZodObject<{
111
+ url: ZodString;
112
+ }, $strict>>;
113
+ }, $strict>>>;
114
+ }, $strict>>;
115
+ }, $strict>>;
116
+ config: ZodOptional<ZodObject<{}, $loose>>;
117
+ profile: ZodOptional<ZodObject<{
118
+ appId: ZodOptional<ZodString>;
119
+ name: ZodOptional<ZodString>;
120
+ description: ZodOptional<ZodString>;
121
+ icon: ZodOptional<ZodString>;
122
+ }, $strict>>;
123
+ }, $loose>;
124
+ export declare function run(host: HostDefinition, ctx: RunnerContext): Promise<void>;
125
+ //#endregion
126
+ export {};
127
+ //# sourceMappingURL=compound.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compound.d.mts","names":[],"sources":["../../src/runners/compound.ts"],"mappings":";;;;;;;;;;;qBAqBa;;;qBAIA,YAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GASrB;wBAkCoB,IACpB,MAAM,gBACN,KAAK,gBACJ"}
@@ -0,0 +1,72 @@
1
+
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="33908ac1-e0c2-5b7a-b255-a5d71dbe11d6")}catch(e){}}();
3
+ import { m as string, u as looseObject } from "../plugins-DtJUVtyg.mjs";
4
+ import { c as profileSchema, i as loadHost, t as childrenSchema } from "../host-schemas-CL_wFpY7-DOvIjrBA.mjs";
5
+ //#region src/runners/compound.ts
6
+ /**
7
+ * BRIDGE compound runner (uniform-runners phase 0): args derivation, not
8
+ * supervision. It reads the compound's member wrappers plus the member host
9
+ * files they reference, derives exactly the args today's `startVetra` takes,
10
+ * and calls it — so `ph run vetra` and classic `ph vetra` share one code
11
+ * path. Real supervision (members started via their own runners, instance-
12
+ * fact projection, .ph/run records) is the phase-1 generic compound in
13
+ * @powerhousedao/host-core; this file is deleted when that lands.
14
+ */
15
+ const kind = "compound";
16
+ /** Phase-2 schema (D2.d): children member shapes + profile come from
17
+ * host-core — member reactor overrides now validate strictly. */
18
+ const hostSchema = looseObject({
19
+ name: string().min(1),
20
+ runner: looseObject({
21
+ module: string(),
22
+ defaultVerb: string().optional()
23
+ }),
24
+ children: childrenSchema,
25
+ config: looseObject({}).optional(),
26
+ profile: profileSchema
27
+ });
28
+ function members(host) {
29
+ return Object.entries(host.children ?? {}).map(([name, wrapper]) => {
30
+ const w = wrapper;
31
+ return {
32
+ name,
33
+ host: w.host,
34
+ runnerPort: typeof w.runner?.port === "number" ? w.runner.port : void 0
35
+ };
36
+ });
37
+ }
38
+ async function memberPort(projectRoot, ref) {
39
+ if (ref.runnerPort !== void 0) return ref.runnerPort;
40
+ const port = (await loadHost(projectRoot, ref.host)).host.runner.port;
41
+ return typeof port === "number" ? port : void 0;
42
+ }
43
+ async function run(host, ctx) {
44
+ const defaultVerb = host.runner.defaultVerb ?? "run";
45
+ if (defaultVerb !== "dev") throw new Error(`The phase-0 compound bridge only supports defaultVerb "dev" (vetra semantics); got "${defaultVerb}". Other member verbs arrive with the host-core compound.`);
46
+ const refs = members(host);
47
+ const connectRef = refs.find((r) => r.host === "connect");
48
+ const switchboardRef = refs.find((r) => r.host === "switchboard");
49
+ if (!connectRef || !switchboardRef) throw new Error(`The phase-0 compound bridge expects children wrapping the "connect" and "switchboard" hosts (vetra shape); found members for: ${refs.map((r) => r.host).join(", ") || "<none>"}.`);
50
+ const connectPort = await memberPort(ctx.projectRoot, connectRef);
51
+ const switchboardPort = await memberPort(ctx.projectRoot, switchboardRef);
52
+ if (connectPort === void 0 || switchboardPort === void 0) throw new Error(`Cannot derive member ports: connect=${connectPort}, switchboard=${switchboardPort}. Set runner.port in the member host files or override it in the compound's wrappers.`);
53
+ const sbMember = await loadHost(ctx.projectRoot, switchboardRef.host);
54
+ const sbWrapper = (host.children ?? {})[switchboardRef.name];
55
+ const sbReactor = {
56
+ ...sbMember.host.reactor ?? {},
57
+ ...sbWrapper?.reactor ?? {}
58
+ };
59
+ const { applyReactorEnvProjection } = await import("../reactor-env-CchCHhA0.mjs");
60
+ applyReactorEnvProjection(sbReactor, `hosts/${switchboardRef.host}/host.js`);
61
+ const args = {
62
+ connectPort,
63
+ switchboardPort
64
+ };
65
+ const { startVetra } = await import("../vetra-BNJZ5LHN.mjs");
66
+ await startVetra(args);
67
+ }
68
+ //#endregion
69
+ export { hostSchema, kind, run };
70
+
71
+ //# sourceMappingURL=compound.mjs.map
72
+ //# debugId=33908ac1-e0c2-5b7a-b255-a5d71dbe11d6
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compound.mjs","sources":["../../src/runners/compound.ts"],"sourcesContent":["import { z } from \"zod\";\nimport {\n childrenSchema,\n loadHost,\n profileSchema,\n type HostDefinition,\n type ReactorConfig,\n type RunnerContext,\n} from \"@powerhousedao/host-core\";\nimport type { VetraArgs } from \"../types.js\";\n\n/**\n * BRIDGE compound runner (uniform-runners phase 0): args derivation, not\n * supervision. It reads the compound's member wrappers plus the member host\n * files they reference, derives exactly the args today's `startVetra` takes,\n * and calls it — so `ph run vetra` and classic `ph vetra` share one code\n * path. Real supervision (members started via their own runners, instance-\n * fact projection, .ph/run records) is the phase-1 generic compound in\n * @powerhousedao/host-core; this file is deleted when that lands.\n */\n\nexport const kind = \"compound\";\n\n/** Phase-2 schema (D2.d): children member shapes + profile come from\n * host-core — member reactor overrides now validate strictly. */\nexport const hostSchema = z.looseObject({\n name: z.string().min(1),\n runner: z.looseObject({\n module: z.string(),\n defaultVerb: z.string().optional(),\n }),\n children: childrenSchema,\n config: z.looseObject({}).optional(),\n profile: profileSchema,\n});\n\ninterface MemberRef {\n name: string;\n host: string;\n runnerPort?: number;\n}\n\nfunction members(host: HostDefinition): MemberRef[] {\n return Object.entries(host.children ?? {}).map(([name, wrapper]) => {\n const w = wrapper as {\n host: string;\n runner?: { port?: unknown };\n };\n return {\n name,\n host: w.host,\n runnerPort:\n typeof w.runner?.port === \"number\" ? w.runner.port : undefined,\n };\n });\n}\n\nasync function memberPort(\n projectRoot: string,\n ref: MemberRef,\n): Promise<number | undefined> {\n // wrapper override wins; otherwise the member host's own runner.port\n if (ref.runnerPort !== undefined) return ref.runnerPort;\n const member = await loadHost(projectRoot, ref.host);\n const port = member.host.runner.port;\n return typeof port === \"number\" ? port : undefined;\n}\n\nexport async function run(\n host: HostDefinition,\n ctx: RunnerContext,\n): Promise<void> {\n const defaultVerb = (host.runner.defaultVerb as string | undefined) ?? \"run\";\n if (defaultVerb !== \"dev\") {\n throw new Error(\n `The phase-0 compound bridge only supports defaultVerb \"dev\" (vetra semantics); ` +\n `got \"${defaultVerb}\". Other member verbs arrive with the host-core compound.`,\n );\n }\n\n const refs = members(host);\n const connectRef = refs.find((r) => r.host === \"connect\");\n const switchboardRef = refs.find((r) => r.host === \"switchboard\");\n if (!connectRef || !switchboardRef) {\n throw new Error(\n `The phase-0 compound bridge expects children wrapping the \"connect\" and ` +\n `\"switchboard\" hosts (vetra shape); found members for: ${\n refs.map((r) => r.host).join(\", \") || \"<none>\"\n }.`,\n );\n }\n\n const connectPort = await memberPort(ctx.projectRoot, connectRef);\n const switchboardPort = await memberPort(ctx.projectRoot, switchboardRef);\n if (connectPort === undefined || switchboardPort === undefined) {\n throw new Error(\n `Cannot derive member ports: connect=${connectPort}, switchboard=${switchboardPort}. ` +\n `Set runner.port in the member host files or override it in the compound's wrappers.`,\n );\n }\n\n // The switchboard member's reactor block applies on this path too: startVetra\n // boots the switchboard in-process without going through the switchboard\n // runner's verbs, so project the block onto env HERE (P2.4 via the vetra\n // path). Wrapper override wins over the member host file, as everywhere.\n const sbMember = await loadHost(ctx.projectRoot, switchboardRef.host);\n const sbWrapper = (host.children ?? {})[switchboardRef.name] as\n | { reactor?: Record<string, unknown> }\n | undefined;\n const sbReactor = {\n ...((sbMember.host.reactor as Record<string, unknown> | undefined) ?? {}),\n ...(sbWrapper?.reactor ?? {}),\n } as ReactorConfig;\n const { applyReactorEnvProjection } = await import(\"./reactor-env.js\");\n applyReactorEnvProjection(sbReactor, `hosts/${switchboardRef.host}/host.js`);\n\n // Classic `ph vetra` resolves these through flag>env>.env>config>constant;\n // a hosts project carries the values in its host files (the projection\n // already resolved powerhouse.config.json references), so the derived args\n // land on the same numbers. The equivalence suite pins this.\n const args: Partial<VetraArgs> = {\n connectPort,\n switchboardPort,\n };\n const { startVetra } = await import(\"../services/vetra.js\");\n await startVetra(args as VetraArgs);\n}\n"],"names":["z.looseObject","z.string"],"mappings":";;;;;;;;;;;;;;AAqBA,MAAa,OAAO;;;AAIpB,MAAa,aAAaA,YAAc;CACtC,MAAMC,OAAS,CAAC,CAAC,IAAI,CAAC;CACtB,QAAQD,YAAc;EACpB,QAAQC,OAAS;EACjB,aAAaA,OAAS,CAAC,CAAC,SAAS;CACnC,CAAC;CACD,UAAU;CACV,QAAQD,YAAc,CAAC,CAAC,CAAC,CAAC,SAAS;CACnC,SAAS;AACX,CAAC;AAQD,SAAS,QAAQ,MAAmC;CAClD,OAAO,OAAO,QAAQ,KAAK,YAAY,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,aAAa;EAClE,MAAM,IAAI;EAIV,OAAO;GACL;GACA,MAAM,EAAE;GACR,YACE,OAAO,EAAE,QAAQ,SAAS,WAAW,EAAE,OAAO,OAAO,KAAA;EACzD;CACF,CAAC;AACH;AAEA,eAAe,WACb,aACA,KAC6B;CAE7B,IAAI,IAAI,eAAe,KAAA,GAAW,OAAO,IAAI;CAE7C,MAAM,QAAO,MADQ,SAAS,aAAa,IAAI,IAAI,EAAA,CAC/B,KAAK,OAAO;CAChC,OAAO,OAAO,SAAS,WAAW,OAAO,KAAA;AAC3C;AAEA,eAAsB,IACpB,MACA,KACe;CACf,MAAM,cAAe,KAAK,OAAO,eAAsC;CACvE,IAAI,gBAAgB,OAClB,MAAM,IAAI,MACR,uFACU,YAAY,0DACxB;CAGF,MAAM,OAAO,QAAQ,IAAI;CACzB,MAAM,aAAa,KAAK,MAAM,MAAM,EAAE,SAAS,SAAS;CACxD,MAAM,iBAAiB,KAAK,MAAM,MAAM,EAAE,SAAS,aAAa;CAChE,IAAI,CAAC,cAAc,CAAC,gBAClB,MAAM,IAAI,MACR,iIAEI,KAAK,KAAK,MAAM,EAAE,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,SACvC,EACL;CAGF,MAAM,cAAc,MAAM,WAAW,IAAI,aAAa,UAAU;CAChE,MAAM,kBAAkB,MAAM,WAAW,IAAI,aAAa,cAAc;CACxE,IAAI,gBAAgB,KAAA,KAAa,oBAAoB,KAAA,GACnD,MAAM,IAAI,MACR,uCAAuC,YAAY,gBAAgB,gBAAgB,sFAErF;CAOF,MAAM,WAAW,MAAM,SAAS,IAAI,aAAa,eAAe,IAAI;CACpE,MAAM,aAAa,KAAK,YAAY,CAAC,EAAA,CAAG,eAAe;CAGvD,MAAM,YAAY;EAChB,GAAK,SAAS,KAAK,WAAmD,CAAC;EACvE,GAAI,WAAW,WAAW,CAAC;CAC7B;CACA,MAAM,EAAE,8BAA8B,MAAM,OAAO;CACnD,0BAA0B,WAAW,SAAS,eAAe,KAAK,SAAS;CAM3E,MAAM,OAA2B;EAC/B;EACA;CACF;CACA,MAAM,EAAE,eAAe,MAAM,OAAO;CACpC,MAAM,WAAW,IAAiB;AACpC","debug_id":"33908ac1-e0c2-5b7a-b255-a5d71dbe11d6"}
@@ -0,0 +1,144 @@
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-CApW1xbO.mjs";
2
+ //#region src/runners/connect.d.ts
3
+ /**
4
+ * BRIDGE runner for Connect hosts (uniform-runners phase 0): maps a
5
+ * 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.
9
+ */
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<{
15
+ name: ZodString;
16
+ runner: ZodObject<{
17
+ module: ZodString;
18
+ port: ZodOptional<ZodNumber>;
19
+ host: ZodOptional<ZodString>;
20
+ https: ZodOptional<ZodBoolean>;
21
+ openBrowser: ZodOptional<ZodBoolean>;
22
+ plugins: ZodOptional<ZodArray<ZodUnion<readonly [ZodString, ZodObject<{
23
+ module: ZodString;
24
+ enabled: ZodOptional<ZodBoolean>;
25
+ verbs: ZodOptional<ZodUnion<readonly [ZodLiteral<"*">, ZodArray<ZodString>]>>;
26
+ config: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
27
+ }, $strict>]>>>;
28
+ }, $loose>;
29
+ config: ZodOptional<ZodObject<{}, $loose>>;
30
+ profile: ZodOptional<ZodObject<{
31
+ appId: ZodOptional<ZodString>;
32
+ name: ZodOptional<ZodString>;
33
+ description: ZodOptional<ZodString>;
34
+ icon: ZodOptional<ZodString>;
35
+ }, $strict>>;
36
+ reactor: ZodOptional<ZodObject<{
37
+ backends: ZodOptional<ZodRecord<ZodString, ZodObject<{
38
+ kind: ZodOptional<ZodEnum<{
39
+ "in-process": "in-process";
40
+ remote: "remote";
41
+ worker: "worker";
42
+ }>>;
43
+ storage: ZodOptional<ZodObject<{
44
+ kind: ZodEnum<{
45
+ idb: "idb";
46
+ memory: "memory";
47
+ path: "path";
48
+ postgres: "postgres";
49
+ }>;
50
+ dataDir: ZodOptional<ZodString>;
51
+ url: ZodOptional<ZodString>;
52
+ }, $strict>>;
53
+ readModel: ZodOptional<ZodObject<{
54
+ url: ZodOptional<ZodString>;
55
+ }, $strict>>;
56
+ packages: ZodOptional<ZodObject<{
57
+ cdnUrl: ZodOptional<ZodString>;
58
+ specs: ZodOptional<ZodArray<ZodString>>;
59
+ dynamic: ZodOptional<ZodBoolean>;
60
+ }, $strict>>;
61
+ remote: ZodOptional<ZodObject<{
62
+ host: ZodOptional<ZodString>;
63
+ url: ZodOptional<ZodString>;
64
+ }, $strict>>;
65
+ projection: ZodOptional<ZodObject<{
66
+ enabled: ZodOptional<ZodBoolean>;
67
+ dbPoolSize: ZodOptional<ZodNumber>;
68
+ }, $strict>>;
69
+ executors: ZodOptional<ZodObject<{
70
+ numWorkers: ZodOptional<ZodUnion<readonly [ZodNumber, ZodLiteral<"auto">]>>;
71
+ }, $strict>>;
72
+ }, $strict>>>;
73
+ placement: ZodOptional<ZodObject<{
74
+ primary: ZodOptional<ZodString>;
75
+ default: ZodOptional<ZodObject<{}, $loose>>;
76
+ }, $strict>>;
77
+ protocol: ZodOptional<ZodObject<{
78
+ featureFlags: ZodOptional<ZodObject<{
79
+ documentDecisions: ZodOptional<ZodBoolean>;
80
+ authEnforcement: ZodOptional<ZodBoolean>;
81
+ authGroups: ZodOptional<ZodBoolean>;
82
+ authConditions: ZodOptional<ZodBoolean>;
83
+ }, $strict>>;
84
+ createSignaturePolicy: ZodOptional<ZodEnum<{
85
+ legacy: "legacy";
86
+ "v2-required": "v2-required";
87
+ }>>;
88
+ unsupportedStoredDocuments: ZodOptional<ZodEnum<{
89
+ "read-only": "read-only";
90
+ refuse: "refuse";
91
+ }>>;
92
+ }, $strict>>;
93
+ workflows: ZodOptional<ZodBoolean>;
94
+ renown: ZodOptional<ZodObject<{
95
+ url: ZodOptional<ZodString>;
96
+ networkId: ZodOptional<ZodString>;
97
+ chainId: ZodOptional<ZodNumber>;
98
+ }, $strict>>;
99
+ packages: ZodOptional<ZodObject<{
100
+ registryUrl: ZodOptional<ZodString>;
101
+ }, $strict>>;
102
+ namespace: ZodOptional<ZodString>;
103
+ auth: ZodOptional<ZodObject<{
104
+ enabled: ZodOptional<ZodBoolean>;
105
+ admins: ZodOptional<ZodArray<ZodString>>;
106
+ renown: ZodOptional<ZodObject<{}, $loose>>;
107
+ }, $strict>>;
108
+ drives: ZodOptional<ZodArray<ZodObject<{
109
+ slug: ZodString;
110
+ id: ZodOptional<ZodString>;
111
+ projectHash: ZodOptional<ZodBoolean>;
112
+ name: ZodOptional<ZodString>;
113
+ icon: ZodOptional<ZodString>;
114
+ preferredEditor: ZodOptional<ZodString>;
115
+ sharingType: ZodOptional<ZodEnum<{
116
+ private: "private";
117
+ public: "public";
118
+ shared: "shared";
119
+ }>>;
120
+ availableOffline: ZodOptional<ZodBoolean>;
121
+ remote: ZodOptional<ZodObject<{
122
+ url: ZodString;
123
+ }, $strict>>;
124
+ }, $strict>>>;
125
+ }, $strict>>;
126
+ }, $loose>;
127
+ export declare function dev(host: HostDefinition, ctx: RunnerContext): Promise<void>;
128
+ /** `run` is dev-studio until the plugin phases give hosts a production
129
+ * runtime; `serve` (below) is the static production server. */
130
+ export declare const run: typeof dev;
131
+ /** P3.3 — `build`: the SAME service as classic `ph connect build`. */
132
+ export declare function build(host: HostDefinition, _ctx: RunnerContext): Promise<void>;
133
+ /** P3.3 — `serve`: the SAME vite preview server as classic
134
+ * `ph connect preview` (static serve of a built Connect; run `build` first).
135
+ * The host's connect config (including a supervising compound's projected
136
+ * drives and the reactor projection) rides a serve override: the baked
137
+ * powerhouse.config.json merges with it at request time, and
138
+ * `runner.cspRegistrySync` (set by the compound's wiring) patches the baked
139
+ * CSP's script-src for the runtime registry — together these replace the
140
+ * ph-win-desktop sidecar's hand-rolled static server (desktop shape). */
141
+ export declare function serve(host: HostDefinition, ctx: RunnerContext): Promise<void>;
142
+ //#endregion
143
+ export {};
144
+ //# sourceMappingURL=connect.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect.d.mts","names":[],"sources":["../../src/runners/connect.ts"],"mappings":";;;;;;;;;qBAuCa;;;;qBAKA,YAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAcrB;wBAyJoB,IACpB,MAAM,gBACN,KAAK,gBACJ;;;qBAWU,YAAG;;wBAGM,MACpB,MAAM,gBACN,MAAM,gBACL;;;;;;;;;wBAiBmB,MACpB,MAAM,gBACN,KAAK,gBACJ"}