@agimon-ai/po 0.0.0-alpha.3 → 0.0.0-alpha.30

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 (268) hide show
  1. package/LICENSE +149 -21
  2. package/README.md +12 -12
  3. package/dist/bin/cli.cjs +37 -14
  4. package/dist/bin/cli.cjs.map +1 -1
  5. package/dist/bin/cli.mjs +34 -14
  6. package/dist/bin/cli.mjs.map +1 -1
  7. package/dist/bin/{doomRunner.cjs → poRunner.cjs} +5 -5
  8. package/dist/bin/poRunner.cjs.map +1 -0
  9. package/dist/bin/{doomRunner.d.mts → poRunner.d.mts} +2 -2
  10. package/dist/bin/poRunner.d.mts.map +1 -0
  11. package/dist/bin/{doomRunner.mjs → poRunner.mjs} +5 -5
  12. package/dist/bin/poRunner.mjs.map +1 -0
  13. package/dist/builders/cli/extensionAssembler/index.cjs +14 -13
  14. package/dist/builders/cli/extensionAssembler/index.cjs.map +1 -1
  15. package/dist/builders/cli/extensionAssembler/index.d.mts +1 -1
  16. package/dist/builders/cli/extensionAssembler/index.d.mts.map +1 -1
  17. package/dist/builders/cli/extensionAssembler/index.mjs +15 -14
  18. package/dist/builders/cli/extensionAssembler/index.mjs.map +1 -1
  19. package/dist/catalog/index.json +72 -52
  20. package/dist/config.cjs +7 -7
  21. package/dist/config.d.mts +3 -3
  22. package/dist/config.mjs +3 -3
  23. package/dist/extensions/server.cjs +11 -7
  24. package/dist/extensions/server.cjs.map +1 -1
  25. package/dist/extensions/server.d.mts +2 -2
  26. package/dist/extensions/server.d.mts.map +1 -1
  27. package/dist/extensions/server.mjs +12 -8
  28. package/dist/extensions/server.mjs.map +1 -1
  29. package/dist/harnessState.d.mts +2 -2
  30. package/dist/index.cjs +7 -7
  31. package/dist/index.d.mts +3 -3
  32. package/dist/index.mjs +3 -3
  33. package/dist/projectTrust.cjs +2 -2
  34. package/dist/projectTrust.d.mts +2 -2
  35. package/dist/projectTrust.mjs +1 -1
  36. package/dist/repository.cjs +2 -1
  37. package/dist/repository.d.mts +2 -2
  38. package/dist/repository.mjs +1 -1
  39. package/dist/src/bin/agentDirectory.cjs +14 -48
  40. package/dist/src/bin/agentDirectory.cjs.map +1 -1
  41. package/dist/src/bin/agentDirectory.mjs +14 -49
  42. package/dist/src/bin/agentDirectory.mjs.map +1 -1
  43. package/dist/src/builders/apiContractExport/index.cjs +6 -6
  44. package/dist/src/builders/apiContractExport/index.cjs.map +1 -1
  45. package/dist/src/builders/apiContractExport/index.mjs +9 -9
  46. package/dist/src/builders/apiContractExport/index.mjs.map +1 -1
  47. package/dist/src/builders/cli/entryResolution.cjs +3 -3
  48. package/dist/src/builders/cli/entryResolution.cjs.map +1 -1
  49. package/dist/src/builders/cli/entryResolution.mjs +3 -3
  50. package/dist/src/builders/cli/entryResolution.mjs.map +1 -1
  51. package/dist/src/builders/cli/harnessContext.cjs +7 -5
  52. package/dist/src/builders/cli/harnessContext.cjs.map +1 -1
  53. package/dist/src/builders/cli/harnessContext.d.mts.map +1 -1
  54. package/dist/src/builders/cli/harnessContext.mjs +9 -7
  55. package/dist/src/builders/cli/harnessContext.mjs.map +1 -1
  56. package/dist/src/builders/hooks/index.cjs +1 -1
  57. package/dist/src/builders/hooks/index.cjs.map +1 -1
  58. package/dist/src/builders/hooks/index.mjs +2 -2
  59. package/dist/src/builders/hooks/index.mjs.map +1 -1
  60. package/dist/src/builders/isolate/compile.cjs +134 -0
  61. package/dist/src/builders/isolate/compile.cjs.map +1 -0
  62. package/dist/src/builders/isolate/compile.mjs +129 -0
  63. package/dist/src/builders/isolate/compile.mjs.map +1 -0
  64. package/dist/src/builders/isolate/index.cjs +162 -0
  65. package/dist/src/builders/isolate/index.cjs.map +1 -0
  66. package/dist/src/builders/isolate/index.mjs +159 -0
  67. package/dist/src/builders/isolate/index.mjs.map +1 -0
  68. package/dist/src/builders/isolate/membrane.cjs +179 -0
  69. package/dist/src/builders/isolate/membrane.cjs.map +1 -0
  70. package/dist/src/builders/isolate/membrane.mjs +179 -0
  71. package/dist/src/builders/isolate/membrane.mjs.map +1 -0
  72. package/dist/src/builders/native/index.cjs +23 -0
  73. package/dist/src/builders/native/index.cjs.map +1 -1
  74. package/dist/src/builders/native/index.d.mts.map +1 -1
  75. package/dist/src/builders/native/index.mjs +23 -2
  76. package/dist/src/builders/native/index.mjs.map +1 -1
  77. package/dist/src/builders/server/backgroundSync.cjs +13 -1
  78. package/dist/src/builders/server/backgroundSync.cjs.map +1 -1
  79. package/dist/src/builders/server/backgroundSync.mjs +13 -1
  80. package/dist/src/builders/server/backgroundSync.mjs.map +1 -1
  81. package/dist/src/builders/server/bundlerService.cjs +151 -0
  82. package/dist/src/builders/server/bundlerService.cjs.map +1 -0
  83. package/dist/src/builders/server/bundlerService.mjs +151 -0
  84. package/dist/src/builders/server/bundlerService.mjs.map +1 -0
  85. package/dist/src/builders/server/computerUseBinding.cjs +19 -2
  86. package/dist/src/builders/server/computerUseBinding.cjs.map +1 -1
  87. package/dist/src/builders/server/computerUseBinding.mjs +20 -3
  88. package/dist/src/builders/server/computerUseBinding.mjs.map +1 -1
  89. package/dist/src/builders/server/computerUseRecordings.cjs +1 -1
  90. package/dist/src/builders/server/computerUseRecordings.cjs.map +1 -1
  91. package/dist/src/builders/server/computerUseRecordings.mjs +1 -1
  92. package/dist/src/builders/server/computerUseRecordings.mjs.map +1 -1
  93. package/dist/src/builders/server/defaultWorkspace.cjs +1 -1
  94. package/dist/src/builders/server/defaultWorkspace.cjs.map +1 -1
  95. package/dist/src/builders/server/defaultWorkspace.mjs +2 -2
  96. package/dist/src/builders/server/defaultWorkspace.mjs.map +1 -1
  97. package/dist/src/builders/server/idleRestart.cjs +3 -3
  98. package/dist/src/builders/server/idleRestart.cjs.map +1 -1
  99. package/dist/src/builders/server/idleRestart.mjs +3 -3
  100. package/dist/src/builders/server/idleRestart.mjs.map +1 -1
  101. package/dist/src/builders/server/index.cjs +6 -6
  102. package/dist/src/builders/server/index.cjs.map +1 -1
  103. package/dist/src/builders/server/index.mjs +6 -6
  104. package/dist/src/builders/server/index.mjs.map +1 -1
  105. package/dist/src/builders/server/logSink.cjs +3 -3
  106. package/dist/src/builders/server/logSink.cjs.map +1 -1
  107. package/dist/src/builders/server/logSink.mjs +2 -2
  108. package/dist/src/builders/server/logSink.mjs.map +1 -1
  109. package/dist/src/builders/server/mcpBundle.cjs.map +1 -1
  110. package/dist/src/builders/server/mcpBundle.d.mts +2 -2
  111. package/dist/src/builders/server/mcpBundle.mjs.map +1 -1
  112. package/dist/src/builders/server/packageUrl.cjs +6 -4
  113. package/dist/src/builders/server/packageUrl.cjs.map +1 -1
  114. package/dist/src/builders/server/packageUrl.mjs +6 -4
  115. package/dist/src/builders/server/packageUrl.mjs.map +1 -1
  116. package/dist/src/builders/server/runtime.cjs +181 -180
  117. package/dist/src/builders/server/runtime.cjs.map +1 -1
  118. package/dist/src/builders/server/runtime.mjs +187 -185
  119. package/dist/src/builders/server/runtime.mjs.map +1 -1
  120. package/dist/src/builders/server/selectionStatus.cjs +3 -3
  121. package/dist/src/builders/server/selectionStatus.cjs.map +1 -1
  122. package/dist/src/builders/server/selectionStatus.mjs +3 -3
  123. package/dist/src/builders/server/selectionStatus.mjs.map +1 -1
  124. package/dist/src/builders/server/sessionArguments.cjs.map +1 -1
  125. package/dist/src/builders/server/sessionArguments.mjs.map +1 -1
  126. package/dist/src/builders/server/watcherService.cjs +65 -0
  127. package/dist/src/builders/server/watcherService.cjs.map +1 -0
  128. package/dist/src/builders/server/watcherService.mjs +61 -0
  129. package/dist/src/builders/server/watcherService.mjs.map +1 -0
  130. package/dist/src/builders/server/webTemplateDecision.cjs +1 -1
  131. package/dist/src/builders/server/webTemplateDecision.cjs.map +1 -1
  132. package/dist/src/builders/server/webTemplateDecision.mjs +2 -2
  133. package/dist/src/builders/server/webTemplateDecision.mjs.map +1 -1
  134. package/dist/src/builders/server/workspaceCheckout.cjs +1 -9
  135. package/dist/src/builders/server/workspaceCheckout.cjs.map +1 -1
  136. package/dist/src/builders/server/workspaceCheckout.mjs +2 -8
  137. package/dist/src/builders/server/workspaceCheckout.mjs.map +1 -1
  138. package/dist/src/builders/web/bundle.cjs.map +1 -1
  139. package/dist/src/builders/web/bundle.d.mts +3 -3
  140. package/dist/src/builders/web/bundle.mjs.map +1 -1
  141. package/dist/src/builders/web/index.cjs +1 -1
  142. package/dist/src/builders/web/index.cjs.map +1 -1
  143. package/dist/src/builders/web/index.mjs +1 -1
  144. package/dist/src/builders/web/index.mjs.map +1 -1
  145. package/dist/src/builders/web/webPluginGenerate.cjs +4 -15
  146. package/dist/src/builders/web/webPluginGenerate.cjs.map +1 -1
  147. package/dist/src/builders/web/webPluginGenerate.d.mts +5 -9
  148. package/dist/src/builders/web/webPluginGenerate.d.mts.map +1 -1
  149. package/dist/src/builders/web/webPluginGenerate.mjs +4 -15
  150. package/dist/src/builders/web/webPluginGenerate.mjs.map +1 -1
  151. package/dist/src/cli/cliApp.cjs +1 -1
  152. package/dist/src/cli/cliApp.cjs.map +1 -1
  153. package/dist/src/cli/cliApp.mjs +1 -1
  154. package/dist/src/cli/cliApp.mjs.map +1 -1
  155. package/dist/src/cli/commands/compat/context.cjs +4 -1
  156. package/dist/src/cli/commands/compat/context.cjs.map +1 -1
  157. package/dist/src/cli/commands/compat/context.d.mts.map +1 -1
  158. package/dist/src/cli/commands/compat/context.mjs +4 -1
  159. package/dist/src/cli/commands/compat/context.mjs.map +1 -1
  160. package/dist/src/cli/commands/compat/index.cjs +1 -1
  161. package/dist/src/cli/commands/compat/index.cjs.map +1 -1
  162. package/dist/src/cli/commands/compat/index.mjs +1 -1
  163. package/dist/src/cli/commands/compat/index.mjs.map +1 -1
  164. package/dist/src/cli/commands/compat/providers/shared.cjs +8 -5
  165. package/dist/src/cli/commands/compat/providers/shared.cjs.map +1 -1
  166. package/dist/src/cli/commands/compat/providers/shared.d.mts +5 -5
  167. package/dist/src/cli/commands/compat/providers/shared.d.mts.map +1 -1
  168. package/dist/src/cli/commands/compat/providers/shared.mjs +6 -5
  169. package/dist/src/cli/commands/compat/providers/shared.mjs.map +1 -1
  170. package/dist/src/cli/commands/doctor/index.cjs +2 -2
  171. package/dist/src/cli/commands/doctor/index.cjs.map +1 -1
  172. package/dist/src/cli/commands/doctor/index.mjs +4 -4
  173. package/dist/src/cli/commands/doctor/index.mjs.map +1 -1
  174. package/dist/src/cli/commands/explain/index.cjs +3 -1
  175. package/dist/src/cli/commands/explain/index.cjs.map +1 -1
  176. package/dist/src/cli/commands/explain/index.d.mts.map +1 -1
  177. package/dist/src/cli/commands/explain/index.mjs +4 -2
  178. package/dist/src/cli/commands/explain/index.mjs.map +1 -1
  179. package/dist/src/cli/commands/init/index.cjs +2 -2
  180. package/dist/src/cli/commands/init/index.cjs.map +1 -1
  181. package/dist/src/cli/commands/init/index.mjs +3 -3
  182. package/dist/src/cli/commands/init/index.mjs.map +1 -1
  183. package/dist/src/cli/commands/init/presenter.cjs +1 -1
  184. package/dist/src/cli/commands/init/presenter.cjs.map +1 -1
  185. package/dist/src/cli/commands/init/presenter.mjs +2 -2
  186. package/dist/src/cli/commands/init/presenter.mjs.map +1 -1
  187. package/dist/src/cli/commands/sync/index.cjs +42 -6
  188. package/dist/src/cli/commands/sync/index.cjs.map +1 -1
  189. package/dist/src/cli/commands/sync/index.d.mts.map +1 -1
  190. package/dist/src/cli/commands/sync/index.mjs +45 -9
  191. package/dist/src/cli/commands/sync/index.mjs.map +1 -1
  192. package/dist/src/cli/commands/sync/presenter.cjs +1 -1
  193. package/dist/src/cli/commands/sync/presenter.cjs.map +1 -1
  194. package/dist/src/cli/commands/sync/presenter.d.mts +1 -1
  195. package/dist/src/cli/commands/sync/presenter.mjs +1 -1
  196. package/dist/src/cli/commands/sync/presenter.mjs.map +1 -1
  197. package/dist/src/cli/commands/web/index.cjs +3 -20
  198. package/dist/src/cli/commands/web/index.cjs.map +1 -1
  199. package/dist/src/cli/commands/web/index.mjs +3 -20
  200. package/dist/src/cli/commands/web/index.mjs.map +1 -1
  201. package/dist/src/cli/harnessOptions.cjs +2 -16
  202. package/dist/src/cli/harnessOptions.cjs.map +1 -1
  203. package/dist/src/cli/harnessOptions.d.mts.map +1 -1
  204. package/dist/src/cli/harnessOptions.mjs +4 -17
  205. package/dist/src/cli/harnessOptions.mjs.map +1 -1
  206. package/dist/src/cli/help.cjs +2 -0
  207. package/dist/src/cli/help.cjs.map +1 -1
  208. package/dist/src/cli/help.mjs +2 -0
  209. package/dist/src/cli/help.mjs.map +1 -1
  210. package/dist/src/cli/matrixOptions.cjs +1 -1
  211. package/dist/src/cli/matrixOptions.cjs.map +1 -1
  212. package/dist/src/cli/matrixOptions.d.mts +1 -1
  213. package/dist/src/cli/matrixOptions.mjs +1 -1
  214. package/dist/src/cli/matrixOptions.mjs.map +1 -1
  215. package/dist/src/cli/server/run.cjs +1 -1
  216. package/dist/src/cli/server/run.cjs.map +1 -1
  217. package/dist/src/cli/server/run.mjs +2 -2
  218. package/dist/src/cli/server/run.mjs.map +1 -1
  219. package/dist/src/composition/harnessState/index.cjs.map +1 -1
  220. package/dist/src/composition/harnessState/index.d.mts +3 -3
  221. package/dist/src/composition/harnessState/index.mjs +2 -2
  222. package/dist/src/composition/harnessState/index.mjs.map +1 -1
  223. package/dist/src/composition/layerPackageInstaller/index.cjs +5 -4
  224. package/dist/src/composition/layerPackageInstaller/index.cjs.map +1 -1
  225. package/dist/src/composition/layerPackageInstaller/index.mjs +6 -5
  226. package/dist/src/composition/layerPackageInstaller/index.mjs.map +1 -1
  227. package/dist/src/composition/poHomeMigration/index.cjs +1 -1
  228. package/dist/src/composition/poHomeMigration/index.cjs.map +1 -1
  229. package/dist/src/composition/poHomeMigration/index.mjs +1 -1
  230. package/dist/src/composition/poHomeMigration/index.mjs.map +1 -1
  231. package/dist/src/composition/projectTrust/index.cjs +6 -6
  232. package/dist/src/composition/projectTrust/index.cjs.map +1 -1
  233. package/dist/src/composition/projectTrust/index.d.mts +7 -7
  234. package/dist/src/composition/projectTrust/index.d.mts.map +1 -1
  235. package/dist/src/composition/projectTrust/index.mjs +6 -6
  236. package/dist/src/composition/projectTrust/index.mjs.map +1 -1
  237. package/dist/src/composition/repository/index.cjs +23 -8
  238. package/dist/src/composition/repository/index.cjs.map +1 -1
  239. package/dist/src/composition/repository/index.d.mts +12 -5
  240. package/dist/src/composition/repository/index.d.mts.map +1 -1
  241. package/dist/src/composition/repository/index.mjs +24 -10
  242. package/dist/src/composition/repository/index.mjs.map +1 -1
  243. package/dist/src/composition/syncService/index.cjs +10 -8
  244. package/dist/src/composition/syncService/index.cjs.map +1 -1
  245. package/dist/src/composition/syncService/index.d.mts.map +1 -1
  246. package/dist/src/composition/syncService/index.mjs +11 -9
  247. package/dist/src/composition/syncService/index.mjs.map +1 -1
  248. package/dist/src/composition/syncService/localBuilds.cjs +7 -2
  249. package/dist/src/composition/syncService/localBuilds.cjs.map +1 -1
  250. package/dist/src/composition/syncService/localBuilds.mjs +7 -2
  251. package/dist/src/composition/syncService/localBuilds.mjs.map +1 -1
  252. package/dist/src/extensions/setupDiagnostics.cjs +3 -3
  253. package/dist/src/extensions/setupDiagnostics.cjs.map +1 -1
  254. package/dist/src/extensions/setupDiagnostics.mjs +3 -3
  255. package/dist/src/extensions/setupDiagnostics.mjs.map +1 -1
  256. package/docs/server/api-export.md +2 -2
  257. package/docs/server/api.md +15 -14
  258. package/docs/server/getting-started.md +6 -6
  259. package/docs/server/index.md +4 -4
  260. package/docs/server/ipc.md +4 -7
  261. package/docs/server/lifecycle.md +17 -17
  262. package/docs/server/security.md +8 -8
  263. package/package.json +39 -37
  264. package/src/prompts/po-author-extension/SKILL.md +1 -1
  265. package/src/prompts/po-author-extension/references/extension-contract.md +4 -4
  266. package/dist/bin/doomRunner.cjs.map +0 -1
  267. package/dist/bin/doomRunner.d.mts.map +0 -1
  268. package/dist/bin/doomRunner.mjs.map +0 -1
package/LICENSE CHANGED
@@ -1,21 +1,149 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Vuong Ngo
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ License text copyright © 2017 MariaDB Corporation Ab, All Rights Reserved.
2
+ "Business Source License" is a trademark of MariaDB Corporation Ab.
3
+
4
+ Parameters
5
+
6
+ Licensor: Agimon Pty Ltd
7
+ Licensed Work: Po, the software in the Po source repository and the
8
+ packages released from it, in each version released by
9
+ the Licensor.
10
+ The Licensed Work is (c) 2026 Agimon Pty Ltd.
11
+ Material identified as third-party in the "Third-party
12
+ components" section at the end of this file or in a
13
+ NOTICE file, and any package or directory whose own
14
+ license file grants a different license, is not part of
15
+ the Licensed Work and remains under its own license.
16
+ Additional Use Grant: You may make production use of the Licensed Work if
17
+ your use is Eligible Use. "Eligible Use" is production use that falls
18
+ within at least one of the following:
19
+
20
+ (a) Personal Use. Use by an individual for their own personal purposes,
21
+ and not on behalf of, or for the benefit of, an employer, client, or
22
+ other Organization. Use by an individual in the course of employment
23
+ or engagement by an Organization is use by that Organization.
24
+
25
+ (b) Small Organization Use. Use by or on behalf of an Organization whose
26
+ Annual Revenue is less than USD 1,000,000.
27
+
28
+ (c) Non-profit, Education and Research Use. Use, regardless of Annual
29
+ Revenue, by (i) an Organization registered or recognized as a
30
+ non-profit or charitable organization under the laws of its
31
+ jurisdiction, for its non-profit purposes; (ii) an accredited school,
32
+ college, or university, for teaching, learning, or academic research;
33
+ or (iii) a publicly funded research institution, for its research.
34
+
35
+ (d) Service Provider Use. Use by a consultant, contractor, agency, or other
36
+ service provider, regardless of its own Annual Revenue, solely to
37
+ build, deploy, host, operate, or support the Licensed Work for a client
38
+ whose own use would be Eligible Use under (a), (b), or (c). A service
39
+ provider's use for its own purposes is Eligible Use only if the service
40
+ provider itself qualifies under (b) or (c).
41
+
42
+
43
+ Hosted services. Offering the Licensed Work to third parties as a hosted
44
+ or managed service whose primary value is the Licensed Work is Eligible
45
+ Use only if each such third party's own use would be Eligible Use.
46
+
47
+ Definitions. "Organization" means any company, partnership, sole
48
+ proprietorship, trust, association, government body, or other entity, and
49
+ includes an individual acting in a business or professional capacity.
50
+ "Affiliate" means any entity that directly or indirectly controls, is
51
+ controlled by, or is under common control with an Organization, where
52
+ "control" means ownership of more than 50% of the voting interests of an
53
+ entity or the power to direct its management and policies by contract or
54
+ otherwise. "Annual Revenue" means the total gross revenue of an
55
+ Organization and all of its Affiliates combined, from all sources and
56
+ whether or not related to the Licensed Work, for its most recently
57
+ completed fiscal year, or, if it has not completed a fiscal year, for the
58
+ twelve months before the use (or since its formation, if shorter),
59
+ converted into US dollars at the average exchange rate for that period.
60
+ Proceeds of equity or debt financing are not revenue.
61
+
62
+ Threshold. If an Organization stops qualifying under (b), its existing
63
+ production use remains Eligible Use for 90 days after it stops
64
+ qualifying, after which it must obtain a commercial license or stop
65
+ production use. Use that was Eligible Use when it occurred never requires
66
+ a commercial license after the fact.
67
+ Change Date: Four years from the date a version of the Licensed Work
68
+ is first publicly released by the Licensor.
69
+ Change License: Apache License, Version 2.0
70
+
71
+ For information about alternative licensing arrangements for the Licensed
72
+ Work, please visit: https://agimon.ai/licensing
73
+
74
+ Notice
75
+
76
+ The Business Source License (this document, or the "License") is not an Open
77
+ Source license. However, the Licensed Work will eventually be made available
78
+ under an Open Source License, as stated in this License.
79
+
80
+ -----------------------------------------------------------------------------
81
+
82
+ Business Source License 1.1
83
+
84
+ Terms
85
+
86
+ The Licensor hereby grants you the right to copy, modify, create derivative
87
+ works, redistribute, and make non-production use of the Licensed Work. The
88
+ Licensor may make an Additional Use Grant, above, permitting limited
89
+ production use.
90
+
91
+ Effective on the Change Date, or the fourth anniversary of the first publicly
92
+ available distribution of a specific version of the Licensed Work under this
93
+ License, whichever comes first, the Licensor hereby grants you rights under
94
+ the terms of the Change License, and the rights granted in the paragraph
95
+ above terminate.
96
+
97
+ If your use of the Licensed Work does not comply with the requirements
98
+ currently in effect as described in this License, you must purchase a
99
+ commercial license from the Licensor, its affiliated entities, or authorized
100
+ resellers, or you must refrain from using the Licensed Work.
101
+
102
+ All copies of the original and modified Licensed Work, and derivative works
103
+ of the Licensed Work, are subject to this License. This License applies
104
+ separately for each version of the Licensed Work and the Change Date may vary
105
+ for each version of the Licensed Work released by Licensor.
106
+
107
+ You must conspicuously display this License on each original or modified copy
108
+ of the Licensed Work. If you receive the Licensed Work in original or
109
+ modified form from a third party, the terms and conditions set forth in this
110
+ License apply to your use of that work.
111
+
112
+ Any use of the Licensed Work in violation of this License will automatically
113
+ terminate your rights under this License for the current and all other
114
+ versions of the Licensed Work.
115
+
116
+ This License does not grant you any right in any trademark or logo of
117
+ Licensor or its affiliates (provided that you may use a trademark or logo of
118
+ Licensor as expressly required by this License).
119
+
120
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
121
+ AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
122
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
123
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
124
+ TITLE.
125
+
126
+ MariaDB hereby grants you permission to use this License’s text to license
127
+ your works, and to refer to it using the trademark “Business Source License”,
128
+ as long as you comply with the Covenants of Licensor below.
129
+
130
+ Covenants of Licensor
131
+
132
+ In consideration of the right to use this License’s text and the “Business
133
+ Source License” name and trademark, Licensor covenants to MariaDB, and to all
134
+ other recipients of the licensed work to be provided by Licensor:
135
+
136
+ 1. To specify as the Change License the GPL Version 2.0 or any later version,
137
+ or a license that is compatible with GPL Version 2.0 or a later version,
138
+ where “compatible” means that software provided under the Change License can
139
+ be included in a program with software provided under GPL Version 2.0 or a
140
+ later version. Licensor may specify additional Change Licenses without
141
+ limitation.
142
+
143
+ 2. To either: (a) specify an additional grant of rights to use that does not
144
+ impose any additional restriction on the right granted in this License, as
145
+ the Additional Use Grant; or (b) insert the text “None”.
146
+
147
+ 3. To specify a Change Date.
148
+
149
+ 4. Not to modify this License in any other way.
package/README.md CHANGED
@@ -19,7 +19,7 @@ denylist are repository-wide. Po draws that loading boundary around the session.
19
19
  mode and some domains; add a profile if you want one. Four YAML files decide what loads;
20
20
  `po --explain` tells you what got in, why, and what it costs before launch.
21
21
 
22
- It borrows its shape from [Doom Emacs Core](https://github.com/doomemacs/core): quick to
22
+ It borrows its shape from [Po Emacs Core](https://github.com/poemacs/core): quick to
23
23
  start, close to Pi, opinionated where defaults help, and easy to pull apart when they do
24
24
  not. Use it as-is, build your own config on top, or raid it for parts.
25
25
 
@@ -343,7 +343,7 @@ generated mode gets it. Short commands still return inline; commands that pass t
343
343
  threshold of 60 seconds by default move into the background with durable logs. Use
344
344
  `background: true` for an immediate detached run or `interactive: true` when the command needs
345
345
  terminal input. Runner IDs and complete raw logs remain available to the current session through
346
- the `doom-runner` CLI. Runner tries bundled RMUX, then `rmux` on PATH,
346
+ the `po-runner` CLI. Runner tries bundled RMUX, then `rmux` on PATH,
347
347
  then `tmux` on PATH. If no pane backend accepts the run, non-interactive commands use a supervised
348
348
  subprocess; interactive commands require RMUX or tmux. Conservatively recognized single commands
349
349
  use the matching RTK stdin filter after completion. Compound commands, pipelines, incompatible
@@ -395,7 +395,7 @@ choices, and accepts the next spoken response as an ordinary user message.
395
395
 
396
396
  Po logging records operational metadata such as counters, spans, session IDs, tool names, and
397
397
  errors. Callers remain responsible for values they attach to telemetry. Native diagnostics expose
398
- current-session metrics, and [`@agimon-ai/log-sink-mcp`][pkg-log-sink-mcp] provides historical lookup
398
+ current-session metrics, and [`@agimon-ai/po-logsink`][pkg-po-logsink] provides historical lookup
399
399
  when a sink is configured.
400
400
 
401
401
  ### Modes and automation
@@ -663,7 +663,7 @@ its owning package's controls; values supplied by callers are not automatically
663
663
  | `po sync` | Publishes the current repository, or the global composition outside repositories |
664
664
  | `po sync --check` | Exits non-zero when the applicable registered generation is missing or stale |
665
665
  | `po compat <codex\|claude\|antigravity>` | Resolves the selected matrix and launches the compatibility adapter |
666
- | `doom-runner` | Inspects and controls supervised Runner processes and logs |
666
+ | `po-runner` | Inspects and controls supervised Runner processes and logs |
667
667
  | `--explain` | Prints the resolved matrix and estimated prompt cost without launching Pi |
668
668
  | `--emit-mcp <dir>`, `--no-mcp` | Writes the resolved MCP config or disables MCP for one run |
669
669
  | `--` and remaining arguments | Forwards provider or Pi arguments unchanged where the selected command allows it |
@@ -674,13 +674,13 @@ its owning package's controls; values supplied by callers are not automatically
674
674
  to install them and rebuild synchronized state.
675
675
  - If neither RMUX nor tmux is available, non-interactive Runner calls report the supervised subprocess
676
676
  fallback. Interactive calls require RMUX or tmux. Linux native artifacts require a compatible loader and libc.
677
- - Po-owned packages expose native server, web, and MCP facets, not Pi entry points. Install them with
678
- `npm install` or select them in `modes.yaml`. Third-party Pi settings packages still load through
679
- the upstream SDK extension host, including provider registration before model selection.
677
+ - Po-owned packages expose native server, web, and MCP contributions, not Pi entry points. Install
678
+ them with `npm install` or select them in `modes.yaml`. Third-party Pi settings packages still load
679
+ through the upstream SDK extension host, including provider registration before model selection.
680
680
  - Terminal leader menus, shortcuts, overlays, and widgets are no longer shipped. Native commands,
681
681
  tools, and web panels remain where the owning package provides them. RMUX and RTK artifacts are
682
682
  selected by Runner and should not be installed directly.
683
- - The root `doom-runner` command delegates to Runner from the active repository and asks you to add
683
+ - The root `po-runner` command delegates to Runner from the active repository and asks you to add
684
684
  Runner to `modes.yaml` when it is absent. The distribution remains the supported way to get the
685
685
  coordinated defaults.
686
686
  - The Ollama preset and launcher `--mute` and `--auto-stop` flags are retired. They do not have
@@ -689,8 +689,8 @@ its owning package's controls; values supplied by callers are not automatically
689
689
  ## Architecture
690
690
 
691
691
  See [Architecture](https://github.com/AgiFlow/po/blob/main/docs/architecture.md) for native
692
- server/web/MCP facets, canonical fingerprints, transition classification, shared-host Cordis
693
- lifecycle ownership, and parent/child isolation. Po no longer composes its own Pi factories;
692
+ server/web/MCP contributions, canonical fingerprints, transition classification, shared-host
693
+ Cordis lifecycle ownership, and parent/child isolation. Po no longer composes its own Pi factories;
694
694
  third-party Pi packages remain supported through the SDK host.
695
695
 
696
696
  ## Development
@@ -709,7 +709,7 @@ Po is maintained by [Agimon](https://agimon.ai/about).
709
709
 
710
710
  ## License
711
711
 
712
- MIT
712
+ Business Source License 1.1: free for personal use, organisations under USD 1M revenue, non-profits and education. See [LICENSE](LICENSE) and https://agimon.ai/licensing.
713
713
 
714
714
  ## Maintainer release order
715
715
 
@@ -749,7 +749,7 @@ loaded extension graph inside the same release boundary as the packages that con
749
749
  [pkg-po-help]: https://www.npmjs.com/package/@agimon-ai/po-help
750
750
  [pkg-po-mcp]: https://www.npmjs.com/package/@agimon-ai/po-mcp
751
751
  [pkg-po-user-feedback]: https://www.npmjs.com/package/@agimon-ai/po-user-feedback
752
- [pkg-log-sink-mcp]: https://www.npmjs.com/package/@agimon-ai/log-sink-mcp
752
+ [pkg-po-logsink]: ../../tooling/po-logsink/README.md
753
753
  [pkg-po-plan]: https://www.npmjs.com/package/@agimon-ai/po-plan
754
754
  [pkg-po-loop]: https://www.npmjs.com/package/@agimon-ai/po-loop
755
755
  [pkg-po-goal]: https://www.npmjs.com/package/@agimon-ai/po-goal
package/dist/bin/cli.cjs CHANGED
@@ -1,19 +1,42 @@
1
1
  #!/usr/bin/env node
2
- const require_help = require("../src/cli/help.cjs");
3
- const require_router = require("../src/cli/router.cjs");
4
- require("../src/bin/agentDirectory.cjs");
2
+ const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
3
+ const require_agentDirectory = require("../src/bin/agentDirectory.cjs");
4
+ let node_fs = require("node:fs");
5
+ node_fs = require_runtime.__toESM(node_fs, 1);
6
+ let node_path = require("node:path");
7
+ node_path = require_runtime.__toESM(node_path, 1);
8
+ let node_url = require("node:url");
5
9
  //#region src/bin/cli.ts
6
- const args = process.argv.slice(2);
7
- const informational = require_router.routeCommand(args) !== void 0 ? void 0 : require_router.informationalRequest(args);
8
- const informationalExit = informational === "help" ? (() => {
9
- require_help.printHelp();
10
- return 0;
11
- })() : informational === "version" ? (() => {
12
- process.stdout.write(`${require_help.HARNESS_VERSION}\n`);
13
- return 0;
14
- })() : void 0;
15
- (informationalExit === void 0 ? Promise.resolve().then(() => require("../src/cli/cliApp.cjs")).then(({ runCli }) => runCli(args)) : Promise.resolve(informationalExit)).then((exitCode) => {
16
- process.exitCode = exitCode;
10
+ /**
11
+ * CLI Entry Point for po
12
+ *
13
+ * The executable installed as the `po` binary, and the file the repository
14
+ * launchers (pi.sh, claude.sh, codex.sh) invoke directly from source.
15
+ */
16
+ async function main() {
17
+ if (require_agentDirectory.testRoot) {
18
+ const target = node_path.default.join(require_agentDirectory.testRoot, "packages/cli/po/dist/bin/cli.mjs");
19
+ if (!node_fs.default.existsSync(target)) throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);
20
+ if (node_fs.default.realpathSync(target) !== node_fs.default.realpathSync((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href))) {
21
+ await import((0, node_url.pathToFileURL)(target).href);
22
+ return;
23
+ }
24
+ }
25
+ const { HARNESS_VERSION, printHelp } = await Promise.resolve().then(() => require("../src/cli/help.cjs"));
26
+ const { informationalRequest, routeCommand } = await Promise.resolve().then(() => require("../src/cli/router.cjs"));
27
+ const args = process.argv.slice(2);
28
+ const informational = routeCommand(args) !== void 0 ? void 0 : informationalRequest(args);
29
+ const informationalExit = informational === "help" ? (() => {
30
+ printHelp();
31
+ return 0;
32
+ })() : informational === "version" ? (() => {
33
+ process.stdout.write(`${HARNESS_VERSION}\n`);
34
+ return 0;
35
+ })() : void 0;
36
+ return informationalExit === void 0 ? Promise.resolve().then(() => require("../src/cli/cliApp.cjs")).then(({ runCli }) => runCli(args)) : Promise.resolve(informationalExit);
37
+ }
38
+ main().then((exitCode) => {
39
+ if (exitCode !== void 0) process.exitCode = exitCode;
17
40
  }, (error) => {
18
41
  const message = error instanceof Error ? error.message : String(error);
19
42
  process.stderr.write(`[po] ${message}\n`);
@@ -1 +1 @@
1
- {"version":3,"file":"cli.cjs","names":["routeCommand","informationalRequest","HARNESS_VERSION"],"sources":["../../src/bin/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * CLI Entry Point for po\n *\n * The executable installed as the `po` binary, and the file the repository\n * launchers (pi.sh, claude.sh, codex.sh) invoke directly from source.\n */\n\nimport './agentDirectory';\nimport { HARNESS_VERSION, printHelp } from '../cli/help';\nimport { informationalRequest, routeCommand } from '../cli/router';\n\nconst args = process.argv.slice(2);\n// A named subcommand parses its own arguments, including its own --help, so the\n// fast path below must not answer for it.\nconst ownsArguments = routeCommand(args) !== undefined;\n\n// Keep informational startup independent from telemetry, configuration, Pi,\n// and the extension compiler. Those graphs are useful for a real command but\n// used to account for almost all of `po --help` and `po --version`.\nconst informational = ownsArguments ? undefined : informationalRequest(args);\nconst informationalExit =\n informational === 'help'\n ? (() => {\n printHelp();\n return 0;\n })()\n : informational === 'version'\n ? (() => {\n process.stdout.write(`${HARNESS_VERSION}\\n`);\n return 0;\n })()\n : undefined;\n\nconst run =\n informationalExit === undefined\n ? import('../cli/cliApp').then(({ runCli }) => runCli(args))\n : Promise.resolve(informationalExit);\n\nrun.then(\n (exitCode) => {\n process.exitCode = exitCode;\n },\n (error: unknown) => {\n const message = error instanceof Error ? error.message : String(error);\n process.stderr.write(`[po] ${message}\\n`);\n process.exitCode = 1;\n },\n);\n"],"mappings":";;;;;AAaA,MAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;AAQjC,MAAM,gBALgBA,eAAAA,aAAa,IAAI,MAAM,KAAA,IAKP,KAAA,IAAYC,eAAAA,qBAAqB,IAAI;AAC3E,MAAM,oBACJ,kBAAkB,gBACP;CACL,aAAA,UAAU;CACV,OAAO;AACT,EAAA,CAAG,IACH,kBAAkB,mBACT;CACL,QAAQ,OAAO,MAAM,GAAGC,aAAAA,gBAAgB,GAAG;CAC3C,OAAO;AACT,EAAA,CAAG,IACH,KAAA;CAGN,sBAAsB,KAAA,IAAA,QAAA,QAAA,CAAA,CAAA,WAAA,QAClB,uBAAA,CAAA,CAAA,CAAwB,MAAM,EAAE,aAAa,OAAO,IAAI,CAAC,IACzD,QAAQ,QAAQ,iBAAiB,EAAA,CAEnC,MACD,aAAa;CACZ,QAAQ,WAAW;AACrB,IACC,UAAmB;CAClB,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;CACrE,QAAQ,OAAO,MAAM,QAAQ,QAAQ,GAAG;CACxC,QAAQ,WAAW;AACrB,CACF"}
1
+ {"version":3,"file":"cli.cjs","names":["testRoot","path","fs","fileURLToPath","pathToFileURL"],"sources":["../../src/bin/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * CLI Entry Point for po\n *\n * The executable installed as the `po` binary, and the file the repository\n * launchers (pi.sh, claude.sh, codex.sh) invoke directly from source.\n */\n\nimport fs from 'node:fs';\nimport path from 'node:path';\nimport { fileURLToPath, pathToFileURL } from 'node:url';\n\nimport { testRoot } from './agentDirectory';\n\nasync function main(): Promise<number | undefined> {\n if (testRoot) {\n const target = path.join(testRoot, 'packages/cli/po/dist/bin/cli.mjs');\n if (!fs.existsSync(target))\n throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);\n if (fs.realpathSync(target) !== fs.realpathSync(fileURLToPath(import.meta.url))) {\n await import(pathToFileURL(target).href);\n return;\n }\n }\n const { HARNESS_VERSION, printHelp } = await import('../cli/help');\n const { informationalRequest, routeCommand } = await import('../cli/router');\n\n const args = process.argv.slice(2);\n // A named subcommand parses its own arguments, including its own --help, so the\n // fast path below must not answer for it.\n const ownsArguments = routeCommand(args) !== undefined;\n\n // Keep informational startup independent from telemetry, configuration, Pi,\n // and the extension compiler. Those graphs are useful for a real command but\n // used to account for almost all of `po --help` and `po --version`.\n const informational = ownsArguments ? undefined : informationalRequest(args);\n const informationalExit =\n informational === 'help'\n ? (() => {\n printHelp();\n return 0;\n })()\n : informational === 'version'\n ? (() => {\n process.stdout.write(`${HARNESS_VERSION}\\n`);\n return 0;\n })()\n : undefined;\n\n const run =\n informationalExit === undefined\n ? import('../cli/cliApp').then(({ runCli }) => runCli(args))\n : Promise.resolve(informationalExit);\n\n return run;\n}\n\nmain().then(\n (exitCode) => {\n if (exitCode !== undefined) process.exitCode = exitCode;\n },\n (error: unknown) => {\n const message = error instanceof Error ? error.message : String(error);\n process.stderr.write(`[po] ${message}\\n`);\n process.exitCode = 1;\n },\n);\n"],"mappings":";;;;;;;;;;;;;;;AAeA,eAAe,OAAoC;CACjD,IAAIA,uBAAAA,UAAU;EACZ,MAAM,SAASC,UAAAA,QAAK,KAAKD,uBAAAA,UAAU,kCAAkC;EACrE,IAAI,CAACE,QAAAA,QAAG,WAAW,MAAM,GACvB,MAAM,IAAI,MAAM,oCAAoC,OAAO,6BAA6B;EAC1F,IAAIA,QAAAA,QAAG,aAAa,MAAM,MAAMA,QAAAA,QAAG,cAAA,GAAaC,SAAAA,cAAAA,CAAAA,QAAAA,KAAAA,CAAAA,CAAAA,cAAAA,UAAAA,CAAAA,CAAAA,IAA6B,CAAC,GAAG;GAC/E,MAAM,QAAA,GAAOC,SAAAA,cAAAA,CAAc,MAAM,CAAC,CAAC;GACnC;EACF;CACF;CACA,MAAM,EAAE,iBAAiB,cAAc,MAAA,QAAA,QAAA,CAAA,CAAA,WAAA,QAAM,qBAAA,CAAA;CAC7C,MAAM,EAAE,sBAAsB,iBAAiB,MAAA,QAAA,QAAA,CAAA,CAAA,WAAA,QAAM,uBAAA,CAAA;CAErD,MAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;CAQjC,MAAM,gBALgB,aAAa,IAAI,MAAM,KAAA,IAKP,KAAA,IAAY,qBAAqB,IAAI;CAC3E,MAAM,oBACJ,kBAAkB,gBACP;EACL,UAAU;EACV,OAAO;CACT,EAAA,CAAG,IACH,kBAAkB,mBACT;EACL,QAAQ,OAAO,MAAM,GAAG,gBAAgB,GAAG;EAC3C,OAAO;CACT,EAAA,CAAG,IACH,KAAA;CAOR,OAJE,sBAAsB,KAAA,IAAA,QAAA,QAAA,CAAA,CAAA,WAAA,QAClB,uBAAA,CAAA,CAAA,CAAwB,MAAM,EAAE,aAAa,OAAO,IAAI,CAAC,IACzD,QAAQ,QAAQ,iBAAiB;AAGzC;AAEA,KAAK,CAAC,CAAC,MACJ,aAAa;CACZ,IAAI,aAAa,KAAA,GAAW,QAAQ,WAAW;AACjD,IACC,UAAmB;CAClB,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;CACrE,QAAQ,OAAO,MAAM,QAAQ,QAAQ,GAAG;CACxC,QAAQ,WAAW;AACrB,CACF"}
package/dist/bin/cli.mjs CHANGED
@@ -1,19 +1,39 @@
1
1
  #!/usr/bin/env node
2
- import { HARNESS_VERSION, printHelp } from "../src/cli/help.mjs";
3
- import { informationalRequest, routeCommand } from "../src/cli/router.mjs";
4
- import "../src/bin/agentDirectory.mjs";
2
+ import { testRoot } from "../src/bin/agentDirectory.mjs";
3
+ import fs from "node:fs";
4
+ import path from "node:path";
5
+ import { fileURLToPath, pathToFileURL } from "node:url";
5
6
  //#region src/bin/cli.ts
6
- const args = process.argv.slice(2);
7
- const informational = routeCommand(args) !== void 0 ? void 0 : informationalRequest(args);
8
- const informationalExit = informational === "help" ? (() => {
9
- printHelp();
10
- return 0;
11
- })() : informational === "version" ? (() => {
12
- process.stdout.write(`${HARNESS_VERSION}\n`);
13
- return 0;
14
- })() : void 0;
15
- (informationalExit === void 0 ? import("../src/cli/cliApp.mjs").then(({ runCli }) => runCli(args)) : Promise.resolve(informationalExit)).then((exitCode) => {
16
- process.exitCode = exitCode;
7
+ /**
8
+ * CLI Entry Point for po
9
+ *
10
+ * The executable installed as the `po` binary, and the file the repository
11
+ * launchers (pi.sh, claude.sh, codex.sh) invoke directly from source.
12
+ */
13
+ async function main() {
14
+ if (testRoot) {
15
+ const target = path.join(testRoot, "packages/cli/po/dist/bin/cli.mjs");
16
+ if (!fs.existsSync(target)) throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);
17
+ if (fs.realpathSync(target) !== fs.realpathSync(fileURLToPath(import.meta.url))) {
18
+ await import(pathToFileURL(target).href);
19
+ return;
20
+ }
21
+ }
22
+ const { HARNESS_VERSION, printHelp } = await import("../src/cli/help.mjs");
23
+ const { informationalRequest, routeCommand } = await import("../src/cli/router.mjs");
24
+ const args = process.argv.slice(2);
25
+ const informational = routeCommand(args) !== void 0 ? void 0 : informationalRequest(args);
26
+ const informationalExit = informational === "help" ? (() => {
27
+ printHelp();
28
+ return 0;
29
+ })() : informational === "version" ? (() => {
30
+ process.stdout.write(`${HARNESS_VERSION}\n`);
31
+ return 0;
32
+ })() : void 0;
33
+ return informationalExit === void 0 ? import("../src/cli/cliApp.mjs").then(({ runCli }) => runCli(args)) : Promise.resolve(informationalExit);
34
+ }
35
+ main().then((exitCode) => {
36
+ if (exitCode !== void 0) process.exitCode = exitCode;
17
37
  }, (error) => {
18
38
  const message = error instanceof Error ? error.message : String(error);
19
39
  process.stderr.write(`[po] ${message}\n`);
@@ -1 +1 @@
1
- {"version":3,"file":"cli.mjs","names":[],"sources":["../../src/bin/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * CLI Entry Point for po\n *\n * The executable installed as the `po` binary, and the file the repository\n * launchers (pi.sh, claude.sh, codex.sh) invoke directly from source.\n */\n\nimport './agentDirectory';\nimport { HARNESS_VERSION, printHelp } from '../cli/help';\nimport { informationalRequest, routeCommand } from '../cli/router';\n\nconst args = process.argv.slice(2);\n// A named subcommand parses its own arguments, including its own --help, so the\n// fast path below must not answer for it.\nconst ownsArguments = routeCommand(args) !== undefined;\n\n// Keep informational startup independent from telemetry, configuration, Pi,\n// and the extension compiler. Those graphs are useful for a real command but\n// used to account for almost all of `po --help` and `po --version`.\nconst informational = ownsArguments ? undefined : informationalRequest(args);\nconst informationalExit =\n informational === 'help'\n ? (() => {\n printHelp();\n return 0;\n })()\n : informational === 'version'\n ? (() => {\n process.stdout.write(`${HARNESS_VERSION}\\n`);\n return 0;\n })()\n : undefined;\n\nconst run =\n informationalExit === undefined\n ? import('../cli/cliApp').then(({ runCli }) => runCli(args))\n : Promise.resolve(informationalExit);\n\nrun.then(\n (exitCode) => {\n process.exitCode = exitCode;\n },\n (error: unknown) => {\n const message = error instanceof Error ? error.message : String(error);\n process.stderr.write(`[po] ${message}\\n`);\n process.exitCode = 1;\n },\n);\n"],"mappings":";;;;;AAaA,MAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;AAQjC,MAAM,gBALgB,aAAa,IAAI,MAAM,KAAA,IAKP,KAAA,IAAY,qBAAqB,IAAI;AAC3E,MAAM,oBACJ,kBAAkB,gBACP;CACL,UAAU;CACV,OAAO;AACT,EAAA,CAAG,IACH,kBAAkB,mBACT;CACL,QAAQ,OAAO,MAAM,GAAG,gBAAgB,GAAG;CAC3C,OAAO;AACT,EAAA,CAAG,IACH,KAAA;CAGN,sBAAsB,KAAA,IAClB,OAAO,wBAAgB,CAAC,MAAM,EAAE,aAAa,OAAO,IAAI,CAAC,IACzD,QAAQ,QAAQ,iBAAiB,EAAA,CAEnC,MACD,aAAa;CACZ,QAAQ,WAAW;AACrB,IACC,UAAmB;CAClB,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;CACrE,QAAQ,OAAO,MAAM,QAAQ,QAAQ,GAAG;CACxC,QAAQ,WAAW;AACrB,CACF"}
1
+ {"version":3,"file":"cli.mjs","names":[],"sources":["../../src/bin/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * CLI Entry Point for po\n *\n * The executable installed as the `po` binary, and the file the repository\n * launchers (pi.sh, claude.sh, codex.sh) invoke directly from source.\n */\n\nimport fs from 'node:fs';\nimport path from 'node:path';\nimport { fileURLToPath, pathToFileURL } from 'node:url';\n\nimport { testRoot } from './agentDirectory';\n\nasync function main(): Promise<number | undefined> {\n if (testRoot) {\n const target = path.join(testRoot, 'packages/cli/po/dist/bin/cli.mjs');\n if (!fs.existsSync(target))\n throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);\n if (fs.realpathSync(target) !== fs.realpathSync(fileURLToPath(import.meta.url))) {\n await import(pathToFileURL(target).href);\n return;\n }\n }\n const { HARNESS_VERSION, printHelp } = await import('../cli/help');\n const { informationalRequest, routeCommand } = await import('../cli/router');\n\n const args = process.argv.slice(2);\n // A named subcommand parses its own arguments, including its own --help, so the\n // fast path below must not answer for it.\n const ownsArguments = routeCommand(args) !== undefined;\n\n // Keep informational startup independent from telemetry, configuration, Pi,\n // and the extension compiler. Those graphs are useful for a real command but\n // used to account for almost all of `po --help` and `po --version`.\n const informational = ownsArguments ? undefined : informationalRequest(args);\n const informationalExit =\n informational === 'help'\n ? (() => {\n printHelp();\n return 0;\n })()\n : informational === 'version'\n ? (() => {\n process.stdout.write(`${HARNESS_VERSION}\\n`);\n return 0;\n })()\n : undefined;\n\n const run =\n informationalExit === undefined\n ? import('../cli/cliApp').then(({ runCli }) => runCli(args))\n : Promise.resolve(informationalExit);\n\n return run;\n}\n\nmain().then(\n (exitCode) => {\n if (exitCode !== undefined) process.exitCode = exitCode;\n },\n (error: unknown) => {\n const message = error instanceof Error ? error.message : String(error);\n process.stderr.write(`[po] ${message}\\n`);\n process.exitCode = 1;\n },\n);\n"],"mappings":";;;;;;;;;;;;AAeA,eAAe,OAAoC;CACjD,IAAI,UAAU;EACZ,MAAM,SAAS,KAAK,KAAK,UAAU,kCAAkC;EACrE,IAAI,CAAC,GAAG,WAAW,MAAM,GACvB,MAAM,IAAI,MAAM,oCAAoC,OAAO,6BAA6B;EAC1F,IAAI,GAAG,aAAa,MAAM,MAAM,GAAG,aAAa,cAAc,YAAY,GAAG,CAAC,GAAG;GAC/E,MAAM,OAAO,cAAc,MAAM,CAAC,CAAC;GACnC;EACF;CACF;CACA,MAAM,EAAE,iBAAiB,cAAc,MAAM,OAAO;CACpD,MAAM,EAAE,sBAAsB,iBAAiB,MAAM,OAAO;CAE5D,MAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;CAQjC,MAAM,gBALgB,aAAa,IAAI,MAAM,KAAA,IAKP,KAAA,IAAY,qBAAqB,IAAI;CAC3E,MAAM,oBACJ,kBAAkB,gBACP;EACL,UAAU;EACV,OAAO;CACT,EAAA,CAAG,IACH,kBAAkB,mBACT;EACL,QAAQ,OAAO,MAAM,GAAG,gBAAgB,GAAG;EAC3C,OAAO;CACT,EAAA,CAAG,IACH,KAAA;CAOR,OAJE,sBAAsB,KAAA,IAClB,OAAO,wBAAgB,CAAC,MAAM,EAAE,aAAa,OAAO,IAAI,CAAC,IACzD,QAAQ,QAAQ,iBAAiB;AAGzC;AAEA,KAAK,CAAC,CAAC,MACJ,aAAa;CACZ,IAAI,aAAa,KAAA,GAAW,QAAQ,WAAW;AACjD,IACC,UAAmB;CAClB,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;CACrE,QAAQ,OAAO,MAAM,QAAQ,QAAQ,GAAG;CACxC,QAAQ,WAAW;AACrB,CACF"}
@@ -5,17 +5,17 @@ require("../src/bin/agentDirectory.cjs");
5
5
  let node_fs = require("node:fs");
6
6
  let node_url = require("node:url");
7
7
  let _agimon_ai_po_core_moduleResolution = require("@agimon-ai/po-core/moduleResolution");
8
- //#region src/bin/doomRunner.ts
8
+ //#region src/bin/poRunner.ts
9
9
  const RUNNER_CLI_EXPORT = "@agimon-ai/po-runner/bin/cli";
10
10
  async function main(argv = process.argv.slice(2)) {
11
11
  let repoRoot;
12
12
  try {
13
13
  repoRoot = require_index.findRepositoryRoot(process.cwd());
14
14
  } catch (error) {
15
- throw new Error("doom-runner must be invoked inside a configured repository.", { cause: error });
15
+ throw new Error("po-runner must be invoked inside a configured repository.", { cause: error });
16
16
  }
17
17
  const entry = (0, _agimon_ai_po_core_moduleResolution.consumerPackageEntry)(RUNNER_CLI_EXPORT, repoRoot);
18
- if (!entry) throw new Error("Doom Runner is not installed for this repository. Add @agimon-ai/po-runner to .po/modes.yaml and run po sync.");
18
+ if (!entry) throw new Error("Po Runner is not installed for this repository. Add @agimon-ai/po-runner to .po/modes.yaml and run po sync.");
19
19
  const loaded = await import((0, node_url.pathToFileURL)(entry).href);
20
20
  if (typeof loaded.main !== "function") throw new Error(`${RUNNER_CLI_EXPORT} does not export a callable main function.`);
21
21
  return loaded.main(argv);
@@ -24,10 +24,10 @@ if (process.argv[1] && (0, node_fs.existsSync)(process.argv[1]) && (0, node_fs.r
24
24
  process.exitCode = exitCode;
25
25
  }, (error) => {
26
26
  const message = error instanceof Error ? error.message : String(error);
27
- process.stderr.write(`[doom-runner] ${message}\n`);
27
+ process.stderr.write(`[po-runner] ${message}\n`);
28
28
  process.exitCode = 1;
29
29
  });
30
30
  //#endregion
31
31
  exports.main = main;
32
32
 
33
- //# sourceMappingURL=doomRunner.cjs.map
33
+ //# sourceMappingURL=poRunner.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poRunner.cjs","names":["findRepositoryRoot","consumerPackageEntry","pathToFileURL","existsSync","realpathSync","fileURLToPath"],"sources":["../../src/bin/poRunner.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * CLI Entry Point for po-runner\n *\n * The Runner package is selectable, so this compatibility executable resolves\n * it from the active repository instead of retaining it in Po's dependency\n * closure. The Runner package's own entry only self-invokes when it is argv[1],\n * which it is not once this shim imports it by absolute path.\n */\n\nimport './agentDirectory';\nimport { existsSync, realpathSync } from 'node:fs';\nimport { fileURLToPath, pathToFileURL } from 'node:url';\n\nimport { consumerPackageEntry } from '@agimon-ai/po-core/moduleResolution';\n\nimport { findRepositoryRoot } from '../composition/repository';\n\nconst RUNNER_CLI_EXPORT = '@agimon-ai/po-runner/bin/cli';\n\ninterface RunnerCliModule {\n readonly main?: unknown;\n}\n\nexport async function main(argv: readonly string[] = process.argv.slice(2)): Promise<number> {\n let repoRoot: string;\n try {\n repoRoot = findRepositoryRoot(process.cwd());\n } catch (error) {\n throw new Error('po-runner must be invoked inside a configured repository.', { cause: error });\n }\n const entry = consumerPackageEntry(RUNNER_CLI_EXPORT, repoRoot);\n if (!entry) {\n throw new Error(\n 'Po Runner is not installed for this repository. Add @agimon-ai/po-runner to .po/modes.yaml and run po sync.',\n );\n }\n const loaded = (await import(pathToFileURL(entry).href)) as RunnerCliModule;\n if (typeof loaded.main !== 'function') {\n throw new Error(`${RUNNER_CLI_EXPORT} does not export a callable main function.`);\n }\n return (loaded.main as (args: readonly string[]) => Promise<number>)(argv);\n}\n\nif (\n process.argv[1] &&\n existsSync(process.argv[1]) &&\n realpathSync(fileURLToPath(import.meta.url)) === realpathSync(process.argv[1])\n) {\n main().then(\n (exitCode) => {\n process.exitCode = exitCode;\n },\n (error: unknown) => {\n const message = error instanceof Error ? error.message : String(error);\n process.stderr.write(`[po-runner] ${message}\\n`);\n process.exitCode = 1;\n },\n );\n}\n"],"mappings":";;;;;;;;AAmBA,MAAM,oBAAoB;AAM1B,eAAsB,KAAK,OAA0B,QAAQ,KAAK,MAAM,CAAC,GAAoB;CAC3F,IAAI;CACJ,IAAI;EACF,WAAWA,cAAAA,mBAAmB,QAAQ,IAAI,CAAC;CAC7C,SAAS,OAAO;EACd,MAAM,IAAI,MAAM,6DAA6D,EAAE,OAAO,MAAM,CAAC;CAC/F;CACA,MAAM,SAAA,GAAQC,oCAAAA,qBAAAA,CAAqB,mBAAmB,QAAQ;CAC9D,IAAI,CAAC,OACH,MAAM,IAAI,MACR,6GACF;CAEF,MAAM,SAAU,MAAM,QAAA,GAAOC,SAAAA,cAAAA,CAAc,KAAK,CAAC,CAAC;CAClD,IAAI,OAAO,OAAO,SAAS,YACzB,MAAM,IAAI,MAAM,GAAG,kBAAkB,2CAA2C;CAElF,OAAQ,OAAO,KAAsD,IAAI;AAC3E;AAEA,IACE,QAAQ,KAAK,OAAA,GACbC,QAAAA,WAAAA,CAAW,QAAQ,KAAK,EAAE,MAAA,GAC1BC,QAAAA,aAAAA,EAAAA,GAAaC,SAAAA,cAAAA,CAAAA,QAAAA,KAAAA,CAAAA,CAAAA,cAAAA,UAAAA,CAAAA,CAAAA,IAA6B,CAAC,OAAA,GAAMD,QAAAA,aAAAA,CAAa,QAAQ,KAAK,EAAE,GAE7E,KAAK,CAAC,CAAC,MACJ,aAAa;CACZ,QAAQ,WAAW;AACrB,IACC,UAAmB;CAClB,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;CACrE,QAAQ,OAAO,MAAM,eAAe,QAAQ,GAAG;CAC/C,QAAQ,WAAW;AACrB,CACF"}
@@ -1,4 +1,4 @@
1
- //#region src/bin/doomRunner.d.ts
1
+ //#region src/bin/poRunner.d.ts
2
2
  export declare function main(argv?: readonly string[]): Promise<number>;
3
3
  //#endregion
4
- //# sourceMappingURL=doomRunner.d.mts.map
4
+ //# sourceMappingURL=poRunner.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poRunner.d.mts","names":[],"sources":["../../src/bin/poRunner.ts"],"mappings":";wBAyBsB,KAAK,2BAAkD"}
@@ -4,17 +4,17 @@ import "../src/bin/agentDirectory.mjs";
4
4
  import { existsSync, realpathSync } from "node:fs";
5
5
  import { fileURLToPath, pathToFileURL } from "node:url";
6
6
  import { consumerPackageEntry } from "@agimon-ai/po-core/moduleResolution";
7
- //#region src/bin/doomRunner.ts
7
+ //#region src/bin/poRunner.ts
8
8
  const RUNNER_CLI_EXPORT = "@agimon-ai/po-runner/bin/cli";
9
9
  async function main(argv = process.argv.slice(2)) {
10
10
  let repoRoot;
11
11
  try {
12
12
  repoRoot = findRepositoryRoot(process.cwd());
13
13
  } catch (error) {
14
- throw new Error("doom-runner must be invoked inside a configured repository.", { cause: error });
14
+ throw new Error("po-runner must be invoked inside a configured repository.", { cause: error });
15
15
  }
16
16
  const entry = consumerPackageEntry(RUNNER_CLI_EXPORT, repoRoot);
17
- if (!entry) throw new Error("Doom Runner is not installed for this repository. Add @agimon-ai/po-runner to .po/modes.yaml and run po sync.");
17
+ if (!entry) throw new Error("Po Runner is not installed for this repository. Add @agimon-ai/po-runner to .po/modes.yaml and run po sync.");
18
18
  const loaded = await import(pathToFileURL(entry).href);
19
19
  if (typeof loaded.main !== "function") throw new Error(`${RUNNER_CLI_EXPORT} does not export a callable main function.`);
20
20
  return loaded.main(argv);
@@ -23,10 +23,10 @@ if (process.argv[1] && existsSync(process.argv[1]) && realpathSync(fileURLToPath
23
23
  process.exitCode = exitCode;
24
24
  }, (error) => {
25
25
  const message = error instanceof Error ? error.message : String(error);
26
- process.stderr.write(`[doom-runner] ${message}\n`);
26
+ process.stderr.write(`[po-runner] ${message}\n`);
27
27
  process.exitCode = 1;
28
28
  });
29
29
  //#endregion
30
30
  export { main };
31
31
 
32
- //# sourceMappingURL=doomRunner.mjs.map
32
+ //# sourceMappingURL=poRunner.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poRunner.mjs","names":[],"sources":["../../src/bin/poRunner.ts"],"sourcesContent":["#!/usr/bin/env node\n\n/**\n * CLI Entry Point for po-runner\n *\n * The Runner package is selectable, so this compatibility executable resolves\n * it from the active repository instead of retaining it in Po's dependency\n * closure. The Runner package's own entry only self-invokes when it is argv[1],\n * which it is not once this shim imports it by absolute path.\n */\n\nimport './agentDirectory';\nimport { existsSync, realpathSync } from 'node:fs';\nimport { fileURLToPath, pathToFileURL } from 'node:url';\n\nimport { consumerPackageEntry } from '@agimon-ai/po-core/moduleResolution';\n\nimport { findRepositoryRoot } from '../composition/repository';\n\nconst RUNNER_CLI_EXPORT = '@agimon-ai/po-runner/bin/cli';\n\ninterface RunnerCliModule {\n readonly main?: unknown;\n}\n\nexport async function main(argv: readonly string[] = process.argv.slice(2)): Promise<number> {\n let repoRoot: string;\n try {\n repoRoot = findRepositoryRoot(process.cwd());\n } catch (error) {\n throw new Error('po-runner must be invoked inside a configured repository.', { cause: error });\n }\n const entry = consumerPackageEntry(RUNNER_CLI_EXPORT, repoRoot);\n if (!entry) {\n throw new Error(\n 'Po Runner is not installed for this repository. Add @agimon-ai/po-runner to .po/modes.yaml and run po sync.',\n );\n }\n const loaded = (await import(pathToFileURL(entry).href)) as RunnerCliModule;\n if (typeof loaded.main !== 'function') {\n throw new Error(`${RUNNER_CLI_EXPORT} does not export a callable main function.`);\n }\n return (loaded.main as (args: readonly string[]) => Promise<number>)(argv);\n}\n\nif (\n process.argv[1] &&\n existsSync(process.argv[1]) &&\n realpathSync(fileURLToPath(import.meta.url)) === realpathSync(process.argv[1])\n) {\n main().then(\n (exitCode) => {\n process.exitCode = exitCode;\n },\n (error: unknown) => {\n const message = error instanceof Error ? error.message : String(error);\n process.stderr.write(`[po-runner] ${message}\\n`);\n process.exitCode = 1;\n },\n );\n}\n"],"mappings":";;;;;;;AAmBA,MAAM,oBAAoB;AAM1B,eAAsB,KAAK,OAA0B,QAAQ,KAAK,MAAM,CAAC,GAAoB;CAC3F,IAAI;CACJ,IAAI;EACF,WAAW,mBAAmB,QAAQ,IAAI,CAAC;CAC7C,SAAS,OAAO;EACd,MAAM,IAAI,MAAM,6DAA6D,EAAE,OAAO,MAAM,CAAC;CAC/F;CACA,MAAM,QAAQ,qBAAqB,mBAAmB,QAAQ;CAC9D,IAAI,CAAC,OACH,MAAM,IAAI,MACR,6GACF;CAEF,MAAM,SAAU,MAAM,OAAO,cAAc,KAAK,CAAC,CAAC;CAClD,IAAI,OAAO,OAAO,SAAS,YACzB,MAAM,IAAI,MAAM,GAAG,kBAAkB,2CAA2C;CAElF,OAAQ,OAAO,KAAsD,IAAI;AAC3E;AAEA,IACE,QAAQ,KAAK,MACb,WAAW,QAAQ,KAAK,EAAE,KAC1B,aAAa,cAAc,YAAY,GAAG,CAAC,MAAM,aAAa,QAAQ,KAAK,EAAE,GAE7E,KAAK,CAAC,CAAC,MACJ,aAAa;CACZ,QAAQ,WAAW;AACrB,IACC,UAAmB;CAClB,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;CACrE,QAAQ,OAAO,MAAM,eAAe,QAAQ,GAAG;CAC/C,QAAQ,WAAW;AACrB,CACF"}
@@ -9,7 +9,7 @@ let _agimon_ai_po_config_majorModes = require("@agimon-ai/po-config/majorModes")
9
9
  let node_url = require("node:url");
10
10
  let _agimon_ai_po_core_moduleResolution = require("@agimon-ai/po-core/moduleResolution");
11
11
  let _agimon_ai_po_core_runtimeIdentity = require("@agimon-ai/po-core/runtimeIdentity");
12
- let _agimon_ai_po_core_serverFacet = require("@agimon-ai/po-core/serverFacet");
12
+ let _agimon_ai_po_core_serverPlugin = require("@agimon-ai/po-core/serverPlugin");
13
13
  //#region src/builders/cli/extensionAssembler/index.ts
14
14
  const DEFAULT_SELECTION_LAYER = "default";
15
15
  const DEFAULT_SELECTION_LAYER_INDEX = -1;
@@ -42,23 +42,23 @@ const CORE_PACKAGE_ENTRIES = [
42
42
  ];
43
43
  const CACHE_PACKAGE_ENTRY = "@agimon-ai/po-cache/extensions/server";
44
44
  const SESSION_PACKAGE_ENTRY = "@agimon-ai/po-session/extensions/server";
45
- /** Po's own server facet, resolved through the distribution like any own entry. */
45
+ /** Po's own server package, resolved through the distribution like any own entry. */
46
46
  const PO_SERVER_ENTRY = "server";
47
47
  /** Manifest fields through which a selected package contributes to a Po host. */
48
- const PO_FACET_FIELDS = [
48
+ const PO_CONTRIBUTION_FIELDS = [
49
49
  "poServer",
50
50
  "poWeb",
51
51
  "poMcp"
52
52
  ];
53
53
  /**
54
- * Resolves a selected package to its built server facet, or to its manifest as the
55
- * discovery anchor of a web or MCP only package. A package with no Po facet resolves empty.
54
+ * Resolves a selected package to its built server entry, or to its manifest as the discovery
55
+ * anchor of a web or MCP only package. A package with no Po contribution resolves empty.
56
56
  */
57
57
  function nativePackageEntries(manifestPath, resolveExport) {
58
58
  const manifest = JSON.parse(node_fs.default.readFileSync(manifestPath, "utf8"));
59
59
  const root = node_path.default.dirname(node_fs.default.realpathSync(manifestPath));
60
- const declaration = (0, _agimon_ai_po_core_serverFacet.declaredServerFacetsOf)(root, manifest)[0];
61
- if (!declaration) return PO_FACET_FIELDS.some((field) => manifest[field] !== void 0) ? [node_path.default.join(root, "package.json")] : [];
60
+ const declaration = (0, _agimon_ai_po_core_serverPlugin.declaredServerPackagesOf)(root, manifest)[0];
61
+ if (!declaration) return PO_CONTRIBUTION_FIELDS.some((field) => manifest[field] !== void 0) ? [node_path.default.join(root, "package.json")] : [];
62
62
  const exported = resolveExport();
63
63
  const dist = node_path.default.resolve(root, declaration.dist);
64
64
  if (!exported || !node_fs.default.existsSync(dist) || node_fs.default.realpathSync(exported) !== node_fs.default.realpathSync(dist)) throw new Error(`Native package ${declaration.packageName} must export its built poServer dist as ./extensions/server.`);
@@ -104,8 +104,9 @@ function missingConsumerPackage(name, consumerRoot) {
104
104
  function createLayerResolvers(consumerRoot, environment = process.env) {
105
105
  if (!consumerRoot) return LAYER_RESOLVERS;
106
106
  const fallbackEntry = (name) => FIXED_CORE_PACKAGES.has(packageName(name)) ? (0, _agimon_ai_po_core_moduleResolution.optionalPackageEntry)(name, require("url").pathToFileURL(__filename).href) : void 0;
107
+ const entryOf = (name) => fallbackEntry(name) ?? (0, _agimon_ai_po_core_moduleResolution.consumerPackageEntry)(name, consumerRoot, environment) ?? (FIXED_CORE_PACKAGES.has(packageName(name)) ? (0, _agimon_ai_po_core_moduleResolution.checkoutPackageEntry)(name, require("url").pathToFileURL(__filename).href) : void 0);
107
108
  const requiredEntry = (name) => {
108
- const entry = fallbackEntry(name) ?? (0, _agimon_ai_po_core_moduleResolution.consumerPackageEntry)(name, consumerRoot, environment);
109
+ const entry = entryOf(name);
109
110
  if (!entry) throw missingConsumerPackage(name, consumerRoot);
110
111
  return entry;
111
112
  };
@@ -117,7 +118,7 @@ function createLayerResolvers(consumerRoot, environment = process.env) {
117
118
  return {
118
119
  ownEntry: require_entryResolution.ownEntry,
119
120
  packageEntry: requiredEntry,
120
- optionalPackageEntry: (name) => fallbackEntry(name) ?? (0, _agimon_ai_po_core_moduleResolution.consumerPackageEntry)(name, consumerRoot, environment),
121
+ optionalPackageEntry: entryOf,
121
122
  packageEntries: requiredEntries,
122
123
  optionalPackageEntries: (name) => installedPackageEntries(name, consumerRoot, environment),
123
124
  localEntry: _agimon_ai_po_core_moduleResolution.localEntry,
@@ -238,16 +239,16 @@ function resolveDefinitionSelections(definition, layer, layerIndex, resolvers, t
238
239
  throw error;
239
240
  }
240
241
  if (!resolved?.length && tolerateUnsynced && !optional) {
241
- resolvedSelections.push(missingOptionalSelection(identity, `Package "${selector}" is not synced yet: it resolves to no Po server, web or MCP facet.`));
242
+ resolvedSelections.push(missingOptionalSelection(identity, `Package "${selector}" is not synced yet: it resolves to no Po server, web or MCP contribution.`));
242
243
  continue;
243
244
  }
244
245
  if (!resolved?.length) {
245
246
  if (optional) {
246
- resolvedSelections.push(missingOptionalSelection(identity, `Optional package "${selector}" is unavailable or declares no Po server, web or MCP facet.`));
247
+ resolvedSelections.push(missingOptionalSelection(identity, `Optional package "${selector}" is unavailable or declares no Po server, web or MCP contribution.`));
247
248
  continue;
248
249
  }
249
- if ((0, _agimon_ai_po_config_majorModes.isLocalPackageSpecifier)(selector)) throw new Error(`Layer "${layer}" package "${selector}" does not resolve under ${definition.baseDirectory}. Point it at an extension file, or a package directory whose package.json declares a Po facet.`);
250
- throw new Error(`Layer "${layer}" package "${selector}" declares no Po server, web or MCP facet.`);
250
+ if ((0, _agimon_ai_po_config_majorModes.isLocalPackageSpecifier)(selector)) throw new Error(`Layer "${layer}" package "${selector}" does not resolve under ${definition.baseDirectory}. Point it at an extension file, or a package directory whose package.json declares a Po contribution.`);
251
+ throw new Error(`Layer "${layer}" package "${selector}" declares no Po server, web or MCP contribution.`);
251
252
  }
252
253
  resolved.forEach((resolvedPath, manifestIndex) => {
253
254
  resolvedSelections.push(resolvedSelection(identity, manifestIndex, resolvedPath));