@agimon-ai/po 0.0.0-alpha.1 → 0.0.0-alpha.100

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 (535) hide show
  1. package/LICENSE +149 -21
  2. package/README.md +53 -45
  3. package/dist/baseCommand.mjs +1 -2
  4. package/dist/bin/cli.cjs +40 -14
  5. package/dist/bin/cli.cjs.map +1 -1
  6. package/dist/bin/cli.mjs +37 -14
  7. package/dist/bin/cli.mjs.map +1 -1
  8. package/dist/bin/poRunner.cjs +50 -0
  9. package/dist/bin/poRunner.cjs.map +1 -0
  10. package/dist/bin/poRunner.d.mts +12 -0
  11. package/dist/bin/poRunner.d.mts.map +1 -0
  12. package/dist/bin/poRunner.mjs +49 -0
  13. package/dist/bin/poRunner.mjs.map +1 -0
  14. package/dist/bin/serve.cjs +26 -17
  15. package/dist/bin/serve.cjs.map +1 -1
  16. package/dist/bin/serve.mjs +26 -17
  17. package/dist/bin/serve.mjs.map +1 -1
  18. package/dist/builders/cli/extensionAssembler/index.cjs +29 -17
  19. package/dist/builders/cli/extensionAssembler/index.cjs.map +1 -1
  20. package/dist/builders/cli/extensionAssembler/index.d.mts +4 -1
  21. package/dist/builders/cli/extensionAssembler/index.d.mts.map +1 -1
  22. package/dist/builders/cli/extensionAssembler/index.mjs +29 -18
  23. package/dist/builders/cli/extensionAssembler/index.mjs.map +1 -1
  24. package/dist/catalog/index.json +177 -85
  25. package/dist/cli.cjs +9 -14
  26. package/dist/cli.d.mts +1 -3
  27. package/dist/cli.mjs +1 -3
  28. package/dist/cliApp.mjs +1 -2
  29. package/dist/commands.cjs +13 -15
  30. package/dist/commands.d.mts +1 -2
  31. package/dist/commands.mjs +1 -2
  32. package/dist/config.cjs +56 -17
  33. package/dist/config.d.mts +4 -4
  34. package/dist/config.mjs +4 -4
  35. package/dist/doctorCommand.mjs +1 -2
  36. package/dist/emitMcpCommand.mjs +1 -2
  37. package/dist/explainCommand.mjs +1 -2
  38. package/dist/extensions/server.cjs +11 -7
  39. package/dist/extensions/server.cjs.map +1 -1
  40. package/dist/extensions/server.d.mts +2 -2
  41. package/dist/extensions/server.d.mts.map +1 -1
  42. package/dist/extensions/server.mjs +12 -8
  43. package/dist/extensions/server.mjs.map +1 -1
  44. package/dist/harnessContext.mjs +1 -2
  45. package/dist/harnessState.cjs +66 -11
  46. package/dist/harnessState.d.mts +2 -2
  47. package/dist/harnessState.mjs +1 -2
  48. package/dist/help.cjs +9 -11
  49. package/dist/help.d.mts +1 -2
  50. package/dist/help.mjs +1 -2
  51. package/dist/index.cjs +85 -67
  52. package/dist/index.d.mts +5 -15
  53. package/dist/index.mjs +5 -13
  54. package/dist/initCommand.mjs +1 -2
  55. package/dist/matrixOptions.mjs +1 -2
  56. package/dist/options.mjs +1 -2
  57. package/dist/package.cjs +11 -0
  58. package/dist/package.cjs.map +1 -0
  59. package/dist/package.mjs +6 -0
  60. package/dist/package.mjs.map +1 -0
  61. package/dist/projectTrust.cjs +2 -2
  62. package/dist/projectTrust.d.mts +2 -2
  63. package/dist/projectTrust.mjs +1 -2
  64. package/dist/repository.cjs +2 -1
  65. package/dist/repository.d.mts +2 -2
  66. package/dist/repository.mjs +1 -2
  67. package/dist/router.mjs +1 -2
  68. package/dist/services.cjs +2 -16
  69. package/dist/services.d.mts +1 -6
  70. package/dist/services.mjs +1 -6
  71. package/dist/shared.cjs +4 -17
  72. package/dist/shared.d.mts +2 -2
  73. package/dist/shared.mjs +1 -2
  74. package/dist/src/bin/agentDirectory.cjs +25 -15
  75. package/dist/src/bin/agentDirectory.cjs.map +1 -1
  76. package/dist/src/bin/agentDirectory.mjs +21 -15
  77. package/dist/src/bin/agentDirectory.mjs.map +1 -1
  78. package/dist/src/builders/apiContractExport/index.cjs +17 -17
  79. package/dist/src/builders/apiContractExport/index.cjs.map +1 -1
  80. package/dist/src/builders/apiContractExport/index.mjs +19 -19
  81. package/dist/src/builders/apiContractExport/index.mjs.map +1 -1
  82. package/dist/src/builders/cli/entryResolution.cjs +5 -5
  83. package/dist/src/builders/cli/entryResolution.cjs.map +1 -1
  84. package/dist/src/builders/cli/entryResolution.mjs +4 -4
  85. package/dist/src/builders/cli/entryResolution.mjs.map +1 -1
  86. package/dist/src/builders/cli/harnessContext.cjs +28 -24
  87. package/dist/src/builders/cli/harnessContext.cjs.map +1 -1
  88. package/dist/src/builders/cli/harnessContext.d.mts +7 -2
  89. package/dist/src/builders/cli/harnessContext.d.mts.map +1 -1
  90. package/dist/src/builders/cli/harnessContext.mjs +29 -25
  91. package/dist/src/builders/cli/harnessContext.mjs.map +1 -1
  92. package/dist/src/builders/cli/sessionComposition.cjs +2 -6
  93. package/dist/src/builders/cli/sessionComposition.cjs.map +1 -1
  94. package/dist/src/builders/cli/sessionComposition.mjs +3 -6
  95. package/dist/src/builders/cli/sessionComposition.mjs.map +1 -1
  96. package/dist/src/builders/isolate/compile.cjs +134 -0
  97. package/dist/src/builders/isolate/compile.cjs.map +1 -0
  98. package/dist/src/builders/isolate/compile.mjs +129 -0
  99. package/dist/src/builders/isolate/compile.mjs.map +1 -0
  100. package/dist/src/builders/isolate/index.cjs +191 -0
  101. package/dist/src/builders/isolate/index.cjs.map +1 -0
  102. package/dist/src/builders/isolate/index.mjs +188 -0
  103. package/dist/src/builders/isolate/index.mjs.map +1 -0
  104. package/dist/src/builders/isolate/membrane.cjs +198 -0
  105. package/dist/src/builders/isolate/membrane.cjs.map +1 -0
  106. package/dist/src/builders/isolate/membrane.mjs +198 -0
  107. package/dist/src/builders/isolate/membrane.mjs.map +1 -0
  108. package/dist/src/builders/native/index.cjs +185 -61
  109. package/dist/src/builders/native/index.cjs.map +1 -1
  110. package/dist/src/builders/native/index.d.mts +4 -2
  111. package/dist/src/builders/native/index.d.mts.map +1 -1
  112. package/dist/src/builders/native/index.mjs +184 -61
  113. package/dist/src/builders/native/index.mjs.map +1 -1
  114. package/dist/src/builders/npm/index.cjs +70 -0
  115. package/dist/src/builders/npm/index.cjs.map +1 -0
  116. package/dist/src/builders/npm/index.mjs +67 -0
  117. package/dist/src/builders/npm/index.mjs.map +1 -0
  118. package/dist/src/builders/server/backgroundSync.cjs +74 -39
  119. package/dist/src/builders/server/backgroundSync.cjs.map +1 -1
  120. package/dist/src/builders/server/backgroundSync.mjs +74 -38
  121. package/dist/src/builders/server/backgroundSync.mjs.map +1 -1
  122. package/dist/src/builders/server/bundlerService.cjs +248 -0
  123. package/dist/src/builders/server/bundlerService.cjs.map +1 -0
  124. package/dist/src/builders/server/bundlerService.mjs +246 -0
  125. package/dist/src/builders/server/bundlerService.mjs.map +1 -0
  126. package/dist/src/builders/server/capabilities.cjs +81 -0
  127. package/dist/src/builders/server/capabilities.cjs.map +1 -0
  128. package/dist/src/builders/server/capabilities.mjs +79 -0
  129. package/dist/src/builders/server/capabilities.mjs.map +1 -0
  130. package/dist/src/builders/server/computerUseBinding.cjs +21 -4
  131. package/dist/src/builders/server/computerUseBinding.cjs.map +1 -1
  132. package/dist/src/builders/server/computerUseBinding.mjs +21 -4
  133. package/dist/src/builders/server/computerUseBinding.mjs.map +1 -1
  134. package/dist/src/builders/server/computerUseRecordings.cjs +3 -3
  135. package/dist/src/builders/server/computerUseRecordings.cjs.map +1 -1
  136. package/dist/src/builders/server/computerUseRecordings.mjs +18 -18
  137. package/dist/src/builders/server/computerUseRecordings.mjs.map +1 -1
  138. package/dist/src/builders/server/containedSessions.cjs +141 -0
  139. package/dist/src/builders/server/containedSessions.cjs.map +1 -0
  140. package/dist/src/builders/server/containedSessions.mjs +135 -0
  141. package/dist/src/builders/server/containedSessions.mjs.map +1 -0
  142. package/dist/src/builders/server/defaultWorkspace.cjs +42 -10
  143. package/dist/src/builders/server/defaultWorkspace.cjs.map +1 -1
  144. package/dist/src/builders/server/defaultWorkspace.mjs +40 -10
  145. package/dist/src/builders/server/defaultWorkspace.mjs.map +1 -1
  146. package/dist/src/builders/server/electronBinding.cjs +82 -0
  147. package/dist/src/builders/server/electronBinding.cjs.map +1 -0
  148. package/dist/src/builders/server/electronBinding.mjs +82 -0
  149. package/dist/src/builders/server/electronBinding.mjs.map +1 -0
  150. package/dist/src/builders/server/federation.cjs +316 -0
  151. package/dist/src/builders/server/federation.cjs.map +1 -0
  152. package/dist/src/builders/server/federation.mjs +315 -0
  153. package/dist/src/builders/server/federation.mjs.map +1 -0
  154. package/dist/src/builders/server/hostDisplayName.cjs +14 -0
  155. package/dist/src/builders/server/hostDisplayName.cjs.map +1 -0
  156. package/dist/src/builders/server/hostDisplayName.mjs +14 -0
  157. package/dist/src/builders/server/hostDisplayName.mjs.map +1 -0
  158. package/dist/src/builders/server/hostModelGateway.cjs +41 -0
  159. package/dist/src/builders/server/hostModelGateway.cjs.map +1 -0
  160. package/dist/src/builders/server/hostModelGateway.mjs +39 -0
  161. package/dist/src/builders/server/hostModelGateway.mjs.map +1 -0
  162. package/dist/src/builders/server/idleRestart.cjs +89 -21
  163. package/dist/src/builders/server/idleRestart.cjs.map +1 -1
  164. package/dist/src/builders/server/idleRestart.mjs +84 -21
  165. package/dist/src/builders/server/idleRestart.mjs.map +1 -1
  166. package/dist/src/builders/server/index.cjs +32 -18
  167. package/dist/src/builders/server/index.cjs.map +1 -1
  168. package/dist/src/builders/server/index.mjs +32 -17
  169. package/dist/src/builders/server/index.mjs.map +1 -1
  170. package/dist/src/builders/server/logSink.cjs +15 -13
  171. package/dist/src/builders/server/logSink.cjs.map +1 -1
  172. package/dist/src/builders/server/logSink.mjs +14 -12
  173. package/dist/src/builders/server/logSink.mjs.map +1 -1
  174. package/dist/src/builders/server/mcpApp.cjs +27 -20
  175. package/dist/src/builders/server/mcpApp.cjs.map +1 -1
  176. package/dist/src/builders/server/mcpApp.mjs +25 -18
  177. package/dist/src/builders/server/mcpApp.mjs.map +1 -1
  178. package/dist/src/builders/server/mcpAppBuild.cjs +47 -43
  179. package/dist/src/builders/server/mcpAppBuild.cjs.map +1 -1
  180. package/dist/src/builders/server/mcpAppBuild.d.mts +3 -6
  181. package/dist/src/builders/server/mcpAppBuild.d.mts.map +1 -1
  182. package/dist/src/builders/server/mcpAppBuild.mjs +47 -42
  183. package/dist/src/builders/server/mcpAppBuild.mjs.map +1 -1
  184. package/dist/src/builders/server/mcpBundle.cjs +16 -12
  185. package/dist/src/builders/server/mcpBundle.cjs.map +1 -1
  186. package/dist/src/builders/server/mcpBundle.d.mts +3 -2
  187. package/dist/src/builders/server/mcpBundle.d.mts.map +1 -1
  188. package/dist/src/builders/server/mcpBundle.mjs +16 -11
  189. package/dist/src/builders/server/mcpBundle.mjs.map +1 -1
  190. package/dist/src/builders/server/nativePush.cjs +206 -0
  191. package/dist/src/builders/server/nativePush.cjs.map +1 -0
  192. package/dist/src/builders/server/nativePush.mjs +205 -0
  193. package/dist/src/builders/server/nativePush.mjs.map +1 -0
  194. package/dist/src/builders/server/network.cjs +778 -0
  195. package/dist/src/builders/server/network.cjs.map +1 -0
  196. package/dist/src/builders/server/network.mjs +777 -0
  197. package/dist/src/builders/server/network.mjs.map +1 -0
  198. package/dist/src/builders/server/networkGateway.cjs +123 -0
  199. package/dist/src/builders/server/networkGateway.cjs.map +1 -0
  200. package/dist/src/builders/server/networkGateway.mjs +123 -0
  201. package/dist/src/builders/server/networkGateway.mjs.map +1 -0
  202. package/dist/src/builders/server/networkRelay.cjs +83 -0
  203. package/dist/src/builders/server/networkRelay.cjs.map +1 -0
  204. package/dist/src/builders/server/networkRelay.mjs +81 -0
  205. package/dist/src/builders/server/networkRelay.mjs.map +1 -0
  206. package/dist/src/builders/server/packageReloadCheck.cjs +7 -2
  207. package/dist/src/builders/server/packageReloadCheck.cjs.map +1 -1
  208. package/dist/src/builders/server/packageReloadCheck.mjs +7 -2
  209. package/dist/src/builders/server/packageReloadCheck.mjs.map +1 -1
  210. package/dist/src/builders/server/packageUrl.cjs +71 -61
  211. package/dist/src/builders/server/packageUrl.cjs.map +1 -1
  212. package/dist/src/builders/server/packageUrl.mjs +71 -60
  213. package/dist/src/builders/server/packageUrl.mjs.map +1 -1
  214. package/dist/src/builders/server/runtime.cjs +1660 -472
  215. package/dist/src/builders/server/runtime.cjs.map +1 -1
  216. package/dist/src/builders/server/runtime.mjs +1675 -486
  217. package/dist/src/builders/server/runtime.mjs.map +1 -1
  218. package/dist/src/builders/server/runtimeResources.cjs +37 -0
  219. package/dist/src/builders/server/runtimeResources.cjs.map +1 -1
  220. package/dist/src/builders/server/runtimeResources.mjs +38 -2
  221. package/dist/src/builders/server/runtimeResources.mjs.map +1 -1
  222. package/dist/src/builders/server/sandboxRouter.cjs +734 -0
  223. package/dist/src/builders/server/sandboxRouter.cjs.map +1 -0
  224. package/dist/src/builders/server/sandboxRouter.mjs +730 -0
  225. package/dist/src/builders/server/sandboxRouter.mjs.map +1 -0
  226. package/dist/src/builders/server/sandboxSessionHandoff.cjs +298 -0
  227. package/dist/src/builders/server/sandboxSessionHandoff.cjs.map +1 -0
  228. package/dist/src/builders/server/sandboxSessionHandoff.mjs +287 -0
  229. package/dist/src/builders/server/sandboxSessionHandoff.mjs.map +1 -0
  230. package/dist/src/builders/server/selectionStatus.cjs +3 -3
  231. package/dist/src/builders/server/selectionStatus.cjs.map +1 -1
  232. package/dist/src/builders/server/selectionStatus.mjs +3 -3
  233. package/dist/src/builders/server/selectionStatus.mjs.map +1 -1
  234. package/dist/src/builders/server/sessionArguments.cjs +27 -1
  235. package/dist/src/builders/server/sessionArguments.cjs.map +1 -1
  236. package/dist/src/builders/server/sessionArguments.mjs +27 -2
  237. package/dist/src/builders/server/sessionArguments.mjs.map +1 -1
  238. package/dist/src/builders/server/sessionRemoval.cjs +233 -0
  239. package/dist/src/builders/server/sessionRemoval.cjs.map +1 -0
  240. package/dist/src/builders/server/sessionRemoval.mjs +224 -0
  241. package/dist/src/builders/server/sessionRemoval.mjs.map +1 -0
  242. package/dist/src/builders/server/shutdown.cjs +23 -0
  243. package/dist/src/builders/server/shutdown.cjs.map +1 -1
  244. package/dist/src/builders/server/shutdown.mjs +21 -1
  245. package/dist/src/builders/server/shutdown.mjs.map +1 -1
  246. package/dist/src/builders/server/watcherService.cjs +88 -0
  247. package/dist/src/builders/server/watcherService.cjs.map +1 -0
  248. package/dist/src/builders/server/watcherService.mjs +85 -0
  249. package/dist/src/builders/server/watcherService.mjs.map +1 -0
  250. package/dist/src/builders/server/webTemplateDecision.cjs +1 -1
  251. package/dist/src/builders/server/webTemplateDecision.cjs.map +1 -1
  252. package/dist/src/builders/server/webTemplateDecision.mjs +2 -2
  253. package/dist/src/builders/server/webTemplateDecision.mjs.map +1 -1
  254. package/dist/src/builders/server/workspaceAdmission.cjs +96 -0
  255. package/dist/src/builders/server/workspaceAdmission.cjs.map +1 -0
  256. package/dist/src/builders/server/workspaceAdmission.mjs +90 -0
  257. package/dist/src/builders/server/workspaceAdmission.mjs.map +1 -0
  258. package/dist/src/builders/server/workspaceCheckout.cjs +16 -7
  259. package/dist/src/builders/server/workspaceCheckout.cjs.map +1 -1
  260. package/dist/src/builders/server/workspaceCheckout.mjs +16 -7
  261. package/dist/src/builders/server/workspaceCheckout.mjs.map +1 -1
  262. package/dist/src/builders/web/bundle.cjs +14 -14
  263. package/dist/src/builders/web/bundle.cjs.map +1 -1
  264. package/dist/src/builders/web/bundle.d.mts +4 -3
  265. package/dist/src/builders/web/bundle.mjs +13 -13
  266. package/dist/src/builders/web/bundle.mjs.map +1 -1
  267. package/dist/src/builders/web/bundleAssetPolicy.d.mts +1 -0
  268. package/dist/src/builders/web/index.cjs +64 -60
  269. package/dist/src/builders/web/index.cjs.map +1 -1
  270. package/dist/src/builders/web/index.d.mts +20 -14
  271. package/dist/src/builders/web/index.d.mts.map +1 -1
  272. package/dist/src/builders/web/index.mjs +63 -59
  273. package/dist/src/builders/web/index.mjs.map +1 -1
  274. package/dist/src/builders/web/webPluginGenerate.cjs +48 -53
  275. package/dist/src/builders/web/webPluginGenerate.cjs.map +1 -1
  276. package/dist/src/builders/web/webPluginGenerate.d.mts +9 -13
  277. package/dist/src/builders/web/webPluginGenerate.d.mts.map +1 -1
  278. package/dist/src/builders/web/webPluginGenerate.mjs +46 -51
  279. package/dist/src/builders/web/webPluginGenerate.mjs.map +1 -1
  280. package/dist/src/builders/web/webPluginManifest.cjs +12 -13
  281. package/dist/src/builders/web/webPluginManifest.cjs.map +1 -1
  282. package/dist/src/builders/web/webPluginManifest.d.mts +6 -7
  283. package/dist/src/builders/web/webPluginManifest.d.mts.map +1 -1
  284. package/dist/src/builders/web/webPluginManifest.mjs +11 -12
  285. package/dist/src/builders/web/webPluginManifest.mjs.map +1 -1
  286. package/dist/src/builders/web/webPluginScan.cjs +11 -8
  287. package/dist/src/builders/web/webPluginScan.cjs.map +1 -1
  288. package/dist/src/builders/web/webPluginScan.d.mts +1 -1
  289. package/dist/src/builders/web/webPluginScan.d.mts.map +1 -1
  290. package/dist/src/builders/web/webPluginScan.mjs +10 -7
  291. package/dist/src/builders/web/webPluginScan.mjs.map +1 -1
  292. package/dist/src/builders/web/webPluginVite.cjs +5 -5
  293. package/dist/src/builders/web/webPluginVite.cjs.map +1 -1
  294. package/dist/src/builders/web/webPluginVite.d.mts +2 -1
  295. package/dist/src/builders/web/webPluginVite.d.mts.map +1 -1
  296. package/dist/src/builders/web/webPluginVite.mjs +3 -3
  297. package/dist/src/builders/web/webPluginVite.mjs.map +1 -1
  298. package/dist/src/cli/cliApp.cjs +12 -12
  299. package/dist/src/cli/cliApp.cjs.map +1 -1
  300. package/dist/src/cli/cliApp.d.mts.map +1 -1
  301. package/dist/src/cli/cliApp.mjs +12 -12
  302. package/dist/src/cli/cliApp.mjs.map +1 -1
  303. package/dist/src/cli/commands/doctor/index.cjs +7 -7
  304. package/dist/src/cli/commands/doctor/index.cjs.map +1 -1
  305. package/dist/src/cli/commands/doctor/index.d.mts +5 -4
  306. package/dist/src/cli/commands/doctor/index.d.mts.map +1 -1
  307. package/dist/src/cli/commands/doctor/index.mjs +9 -9
  308. package/dist/src/cli/commands/doctor/index.mjs.map +1 -1
  309. package/dist/src/cli/commands/explain/index.cjs +8 -10
  310. package/dist/src/cli/commands/explain/index.cjs.map +1 -1
  311. package/dist/src/cli/commands/explain/index.d.mts +0 -2
  312. package/dist/src/cli/commands/explain/index.d.mts.map +1 -1
  313. package/dist/src/cli/commands/explain/index.mjs +8 -10
  314. package/dist/src/cli/commands/explain/index.mjs.map +1 -1
  315. package/dist/src/cli/commands/init/index.cjs +2 -2
  316. package/dist/src/cli/commands/init/index.cjs.map +1 -1
  317. package/dist/src/cli/commands/init/index.mjs +3 -3
  318. package/dist/src/cli/commands/init/index.mjs.map +1 -1
  319. package/dist/src/cli/commands/init/presenter.cjs +1 -1
  320. package/dist/src/cli/commands/init/presenter.cjs.map +1 -1
  321. package/dist/src/cli/commands/init/presenter.mjs +2 -2
  322. package/dist/src/cli/commands/init/presenter.mjs.map +1 -1
  323. package/dist/src/cli/commands/sync/help.cjs +4 -1
  324. package/dist/src/cli/commands/sync/help.cjs.map +1 -1
  325. package/dist/src/cli/commands/sync/help.mjs +4 -1
  326. package/dist/src/cli/commands/sync/help.mjs.map +1 -1
  327. package/dist/src/cli/commands/sync/index.cjs +31 -17
  328. package/dist/src/cli/commands/sync/index.cjs.map +1 -1
  329. package/dist/src/cli/commands/sync/index.d.mts +1 -0
  330. package/dist/src/cli/commands/sync/index.d.mts.map +1 -1
  331. package/dist/src/cli/commands/sync/index.mjs +33 -19
  332. package/dist/src/cli/commands/sync/index.mjs.map +1 -1
  333. package/dist/src/cli/commands/sync/presenter.cjs +1 -1
  334. package/dist/src/cli/commands/sync/presenter.cjs.map +1 -1
  335. package/dist/src/cli/commands/sync/presenter.d.mts +1 -1
  336. package/dist/src/cli/commands/sync/presenter.mjs +1 -1
  337. package/dist/src/cli/commands/sync/presenter.mjs.map +1 -1
  338. package/dist/src/cli/commands/web/index.cjs +3 -2
  339. package/dist/src/cli/commands/web/index.cjs.map +1 -1
  340. package/dist/src/cli/commands/web/index.mjs +2 -1
  341. package/dist/src/cli/commands/web/index.mjs.map +1 -1
  342. package/dist/src/cli/harnessOptions.cjs +11 -19
  343. package/dist/src/cli/harnessOptions.cjs.map +1 -1
  344. package/dist/src/cli/harnessOptions.d.mts +1 -1
  345. package/dist/src/cli/harnessOptions.d.mts.map +1 -1
  346. package/dist/src/cli/harnessOptions.mjs +13 -20
  347. package/dist/src/cli/harnessOptions.mjs.map +1 -1
  348. package/dist/src/cli/help.cjs +8 -13
  349. package/dist/src/cli/help.cjs.map +1 -1
  350. package/dist/src/cli/help.d.mts +1 -2
  351. package/dist/src/cli/help.d.mts.map +1 -1
  352. package/dist/src/cli/help.mjs +3 -7
  353. package/dist/src/cli/help.mjs.map +1 -1
  354. package/dist/src/cli/matrixOptions.cjs +1 -1
  355. package/dist/src/cli/matrixOptions.cjs.map +1 -1
  356. package/dist/src/cli/matrixOptions.d.mts +1 -1
  357. package/dist/src/cli/matrixOptions.mjs +1 -1
  358. package/dist/src/cli/matrixOptions.mjs.map +1 -1
  359. package/dist/src/cli/options.cjs +0 -24
  360. package/dist/src/cli/options.cjs.map +1 -1
  361. package/dist/src/cli/options.d.mts.map +1 -1
  362. package/dist/src/cli/options.mjs +0 -24
  363. package/dist/src/cli/options.mjs.map +1 -1
  364. package/dist/src/cli/router.cjs +0 -1
  365. package/dist/src/cli/router.cjs.map +1 -1
  366. package/dist/src/cli/router.d.mts +1 -1
  367. package/dist/src/cli/router.mjs +0 -1
  368. package/dist/src/cli/router.mjs.map +1 -1
  369. package/dist/src/cli/server/options.cjs +18 -2
  370. package/dist/src/cli/server/options.cjs.map +1 -1
  371. package/dist/src/cli/server/options.mjs +18 -2
  372. package/dist/src/cli/server/options.mjs.map +1 -1
  373. package/dist/src/cli/server/processGuards.cjs +22 -15
  374. package/dist/src/cli/server/processGuards.cjs.map +1 -1
  375. package/dist/src/cli/server/processGuards.mjs +21 -14
  376. package/dist/src/cli/server/processGuards.mjs.map +1 -1
  377. package/dist/src/cli/server/restartPolicy.cjs +38 -0
  378. package/dist/src/cli/server/restartPolicy.cjs.map +1 -0
  379. package/dist/src/cli/server/restartPolicy.d.mts +21 -0
  380. package/dist/src/cli/server/restartPolicy.d.mts.map +1 -0
  381. package/dist/src/cli/server/restartPolicy.mjs +36 -0
  382. package/dist/src/cli/server/restartPolicy.mjs.map +1 -0
  383. package/dist/src/cli/server/run.cjs +11 -10
  384. package/dist/src/cli/server/run.cjs.map +1 -1
  385. package/dist/src/cli/server/run.mjs +12 -11
  386. package/dist/src/cli/server/run.mjs.map +1 -1
  387. package/dist/src/cli/server/supervise.cjs +89 -0
  388. package/dist/src/cli/server/supervise.cjs.map +1 -0
  389. package/dist/src/cli/server/supervise.mjs +89 -0
  390. package/dist/src/cli/server/supervise.mjs.map +1 -0
  391. package/dist/src/composition/harnessState/index.cjs +66 -11
  392. package/dist/src/composition/harnessState/index.cjs.map +1 -1
  393. package/dist/src/composition/harnessState/index.d.mts +3 -3
  394. package/dist/src/composition/harnessState/index.mjs +2 -2
  395. package/dist/src/composition/harnessState/index.mjs.map +1 -1
  396. package/dist/src/composition/layerPackageInstaller/index.cjs +147 -72
  397. package/dist/src/composition/layerPackageInstaller/index.cjs.map +1 -1
  398. package/dist/src/composition/layerPackageInstaller/index.d.mts.map +1 -1
  399. package/dist/src/composition/layerPackageInstaller/index.mjs +156 -82
  400. package/dist/src/composition/layerPackageInstaller/index.mjs.map +1 -1
  401. package/dist/src/composition/poHomeMigration/index.cjs +47 -27
  402. package/dist/src/composition/poHomeMigration/index.cjs.map +1 -1
  403. package/dist/src/composition/poHomeMigration/index.d.mts.map +1 -1
  404. package/dist/src/composition/poHomeMigration/index.mjs +46 -26
  405. package/dist/src/composition/poHomeMigration/index.mjs.map +1 -1
  406. package/dist/src/composition/projectTrust/index.cjs +6 -6
  407. package/dist/src/composition/projectTrust/index.cjs.map +1 -1
  408. package/dist/src/composition/projectTrust/index.d.mts +7 -7
  409. package/dist/src/composition/projectTrust/index.d.mts.map +1 -1
  410. package/dist/src/composition/projectTrust/index.mjs +6 -6
  411. package/dist/src/composition/projectTrust/index.mjs.map +1 -1
  412. package/dist/src/composition/repository/index.cjs +35 -18
  413. package/dist/src/composition/repository/index.cjs.map +1 -1
  414. package/dist/src/composition/repository/index.d.mts +14 -7
  415. package/dist/src/composition/repository/index.d.mts.map +1 -1
  416. package/dist/src/composition/repository/index.mjs +35 -19
  417. package/dist/src/composition/repository/index.mjs.map +1 -1
  418. package/dist/src/composition/syncPrune/index.cjs +22 -15
  419. package/dist/src/composition/syncPrune/index.cjs.map +1 -1
  420. package/dist/src/composition/syncPrune/index.d.mts.map +1 -1
  421. package/dist/src/composition/syncPrune/index.mjs +21 -14
  422. package/dist/src/composition/syncPrune/index.mjs.map +1 -1
  423. package/dist/src/composition/syncService/index.cjs +216 -130
  424. package/dist/src/composition/syncService/index.cjs.map +1 -1
  425. package/dist/src/composition/syncService/index.d.mts.map +1 -1
  426. package/dist/src/composition/syncService/index.mjs +218 -133
  427. package/dist/src/composition/syncService/index.mjs.map +1 -1
  428. package/dist/src/composition/syncService/localBuilds.cjs +41 -34
  429. package/dist/src/composition/syncService/localBuilds.cjs.map +1 -1
  430. package/dist/src/composition/syncService/localBuilds.mjs +40 -33
  431. package/dist/src/composition/syncService/localBuilds.mjs.map +1 -1
  432. package/dist/src/composition/types/harness.d.mts +0 -2
  433. package/dist/src/composition/types/harness.d.mts.map +1 -1
  434. package/dist/src/extensions/setupDiagnostics.cjs +9 -9
  435. package/dist/src/extensions/setupDiagnostics.cjs.map +1 -1
  436. package/dist/src/extensions/setupDiagnostics.mjs +9 -9
  437. package/dist/src/extensions/setupDiagnostics.mjs.map +1 -1
  438. package/dist/utils.mjs +1 -2
  439. package/docs/server/api-export.md +3 -3
  440. package/docs/server/api.md +23 -22
  441. package/docs/server/getting-started.md +7 -7
  442. package/docs/server/index.md +7 -5
  443. package/docs/server/ipc.md +7 -11
  444. package/docs/server/lifecycle.md +17 -17
  445. package/docs/server/security.md +8 -8
  446. package/package.json +53 -83
  447. package/src/prompts/po-author-extension/SKILL.md +1 -1
  448. package/src/prompts/po-author-extension/references/extension-contract.md +5 -7
  449. package/dist/antigravity.cjs +0 -5
  450. package/dist/antigravity.d.mts +0 -2
  451. package/dist/antigravity.mjs +0 -2
  452. package/dist/bin/doomRunner.cjs +0 -33
  453. package/dist/bin/doomRunner.cjs.map +0 -1
  454. package/dist/bin/doomRunner.d.mts +0 -4
  455. package/dist/bin/doomRunner.d.mts.map +0 -1
  456. package/dist/bin/doomRunner.mjs +0 -32
  457. package/dist/bin/doomRunner.mjs.map +0 -1
  458. package/dist/codex.cjs +0 -8
  459. package/dist/codex.d.mts +0 -2
  460. package/dist/codex.mjs +0 -2
  461. package/dist/compatibility.cjs +0 -27
  462. package/dist/compatibility.d.mts +0 -6
  463. package/dist/compatibility.mjs +0 -6
  464. package/dist/compatibilityCommand.cjs +0 -4
  465. package/dist/compatibilityCommand.d.mts +0 -2
  466. package/dist/compatibilityCommand.mjs +0 -2
  467. package/dist/compatibilityContext.cjs +0 -3
  468. package/dist/compatibilityContext.d.mts +0 -2
  469. package/dist/compatibilityContext.mjs +0 -2
  470. package/dist/compatibilityOptions.cjs +0 -5
  471. package/dist/compatibilityOptions.d.mts +0 -2
  472. package/dist/compatibilityOptions.mjs +0 -2
  473. package/dist/process.cjs +0 -12
  474. package/dist/process.d.mts +0 -2
  475. package/dist/process.mjs +0 -2
  476. package/dist/src/builders/hooks/index.cjs +0 -238
  477. package/dist/src/builders/hooks/index.cjs.map +0 -1
  478. package/dist/src/builders/hooks/index.mjs +0 -231
  479. package/dist/src/builders/hooks/index.mjs.map +0 -1
  480. package/dist/src/cli/commands/compat/context.cjs +0 -115
  481. package/dist/src/cli/commands/compat/context.cjs.map +0 -1
  482. package/dist/src/cli/commands/compat/context.d.mts +0 -22
  483. package/dist/src/cli/commands/compat/context.d.mts.map +0 -1
  484. package/dist/src/cli/commands/compat/context.mjs +0 -110
  485. package/dist/src/cli/commands/compat/context.mjs.map +0 -1
  486. package/dist/src/cli/commands/compat/help.cjs +0 -26
  487. package/dist/src/cli/commands/compat/help.cjs.map +0 -1
  488. package/dist/src/cli/commands/compat/help.d.mts +0 -4
  489. package/dist/src/cli/commands/compat/help.d.mts.map +0 -1
  490. package/dist/src/cli/commands/compat/help.mjs +0 -25
  491. package/dist/src/cli/commands/compat/help.mjs.map +0 -1
  492. package/dist/src/cli/commands/compat/index.cjs +0 -73
  493. package/dist/src/cli/commands/compat/index.cjs.map +0 -1
  494. package/dist/src/cli/commands/compat/index.d.mts +0 -14
  495. package/dist/src/cli/commands/compat/index.d.mts.map +0 -1
  496. package/dist/src/cli/commands/compat/index.mjs +0 -70
  497. package/dist/src/cli/commands/compat/index.mjs.map +0 -1
  498. package/dist/src/cli/commands/compat/options.cjs +0 -88
  499. package/dist/src/cli/commands/compat/options.cjs.map +0 -1
  500. package/dist/src/cli/commands/compat/options.d.mts +0 -15
  501. package/dist/src/cli/commands/compat/options.d.mts.map +0 -1
  502. package/dist/src/cli/commands/compat/options.mjs +0 -86
  503. package/dist/src/cli/commands/compat/options.mjs.map +0 -1
  504. package/dist/src/cli/commands/compat/providers/antigravity.cjs +0 -294
  505. package/dist/src/cli/commands/compat/providers/antigravity.cjs.map +0 -1
  506. package/dist/src/cli/commands/compat/providers/antigravity.d.mts +0 -9
  507. package/dist/src/cli/commands/compat/providers/antigravity.d.mts.map +0 -1
  508. package/dist/src/cli/commands/compat/providers/antigravity.mjs +0 -289
  509. package/dist/src/cli/commands/compat/providers/antigravity.mjs.map +0 -1
  510. package/dist/src/cli/commands/compat/providers/codex.cjs +0 -178
  511. package/dist/src/cli/commands/compat/providers/codex.cjs.map +0 -1
  512. package/dist/src/cli/commands/compat/providers/codex.d.mts +0 -17
  513. package/dist/src/cli/commands/compat/providers/codex.d.mts.map +0 -1
  514. package/dist/src/cli/commands/compat/providers/codex.mjs +0 -170
  515. package/dist/src/cli/commands/compat/providers/codex.mjs.map +0 -1
  516. package/dist/src/cli/commands/compat/providers/index.cjs +0 -65
  517. package/dist/src/cli/commands/compat/providers/index.cjs.map +0 -1
  518. package/dist/src/cli/commands/compat/providers/index.d.mts +0 -15
  519. package/dist/src/cli/commands/compat/providers/index.d.mts.map +0 -1
  520. package/dist/src/cli/commands/compat/providers/index.mjs +0 -45
  521. package/dist/src/cli/commands/compat/providers/index.mjs.map +0 -1
  522. package/dist/src/cli/commands/compat/providers/process.cjs +0 -172
  523. package/dist/src/cli/commands/compat/providers/process.cjs.map +0 -1
  524. package/dist/src/cli/commands/compat/providers/process.d.mts +0 -33
  525. package/dist/src/cli/commands/compat/providers/process.d.mts.map +0 -1
  526. package/dist/src/cli/commands/compat/providers/process.mjs +0 -159
  527. package/dist/src/cli/commands/compat/providers/process.mjs.map +0 -1
  528. package/dist/src/cli/commands/compat/providers/shared.cjs +0 -76
  529. package/dist/src/cli/commands/compat/providers/shared.cjs.map +0 -1
  530. package/dist/src/cli/commands/compat/providers/shared.d.mts +0 -40
  531. package/dist/src/cli/commands/compat/providers/shared.d.mts.map +0 -1
  532. package/dist/src/cli/commands/compat/providers/shared.mjs +0 -61
  533. package/dist/src/cli/commands/compat/providers/shared.mjs.map +0 -1
  534. package/dist/src/cli/commands/compat/types.d.mts +0 -31
  535. package/dist/src/cli/commands/compat/types.d.mts.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
 
@@ -121,9 +121,8 @@ and keep their model tools and skills out of context until turned on. Po ships s
121
121
 
122
122
  - **Help mode:** expose package-owned guidance only while you need it.
123
123
  - **Plan mode:** remove Pi's file-editing tools while you agree on an approach.
124
- - **Loop mode:** run a prompt now, then run it again on a schedule.
124
+ - **Calendar layer:** schedule durable prompts, workflows and plugin actions while the server is up.
125
125
  - **Goal mode:** keep one objective in view until it is done or dismissed.
126
- - **Workflow mode:** run jobs with dependencies, timeouts, and artifacts.
127
126
  - **Voice mode:** replace typing with local speech.
128
127
 
129
128
  ### Domains
@@ -205,7 +204,7 @@ house, and the primary agent can speak its own opening, milestone, and final upd
205
204
 
206
205
  ### Autopilot
207
206
 
208
- Copilot helps while you are present. Loop and Workflow keep work moving when you are not.
207
+ Copilot helps while you are present. Calendar and Workflow keep work moving when you are not.
209
208
  Together they can dispatch structured jobs from one live session.
210
209
 
211
210
  #### Workflows
@@ -232,8 +231,8 @@ automations/workflows/
232
231
  Each plugin has both `.codex-plugin/plugin.json` and `.claude-plugin/plugin.json`, while its
233
232
  `skills/` and `agents/` content is shared. `.po/domains.yaml` exposes the `development`,
234
233
  `testing`, and `blog` domains plus the `engineering` alias. `.po/modes.yaml` mirrors the
235
- standalone package set with workspace-local paths, keeps its canonical modes, and adds a layer-free
236
- `examples` base mode for the tracked workflows. Inspect the exact session before launch:
234
+ standalone package set with workspace-local paths, keeps its canonical modes, and adds an
235
+ `examples` base mode with the `workflow` layer for the tracked workflows. Inspect the exact session before launch:
237
236
 
238
237
  ```bash
239
238
  po --major-mode examples --domains engineering --explain
@@ -270,10 +269,10 @@ not create branches, commits, or pushes. Blog runs leave review-ready Markdown,
270
269
  publication checklist in the workflow run directory without writing into a site or calling a CMS.
271
270
  These examples live in the source repository and are not part of the published npm tarball.
272
271
 
273
- #### Loop
272
+ #### Calendar
274
273
 
275
274
  Workflow definitions are exposed like skills, so the agent can choose one for the job. A
276
- loop can send a subagent to fetch the next task, then dispatch the workflow that matches
275
+ Calendar event can send a subagent to fetch the next task, then dispatch the workflow that matches
277
276
  it. One session becomes the dispatcher instead of the place every job has to fit.
278
277
 
279
278
  ## Features
@@ -304,8 +303,11 @@ produce editable anchors for writable files while preserving native output for n
304
303
  [`@agimon-ai/po-edit`][pkg-po-edit] replaces Pi's search-and-replace `edit` tool with
305
304
  stale-safe ranges anchored to the file content the model read or searched.
306
305
  [`@agimon-ai/po-file-edit`][pkg-po-file-edit] keeps the edit timeline and file snapshots.
306
+ The fixed `@agimon-ai/po-artifact` package gives each session a durable artifact folder,
307
+ names it in the system prompt, and shows recent artifacts in web and native Activity.
308
+ The Artifacts heading opens all files in that session's folder as a grid.
307
309
  [`@agimon-ai/po-log`][pkg-po-log] collects session events, while
308
- [`@agimon-ai/po-telemetry`][pkg-po-telemetry] is the library-level telemetry adapter.
310
+ `@agimon-ai/po-core/telemetry` is the library-level telemetry adapter. Po Log's `logsink` code-mode namespace reads session evidence and explicitly selected cross-session history.
309
311
 
310
312
  Runner selects matching RMUX and RTK native artifacts automatically. Do not install them directly.
311
313
  The packages cover macOS and Linux on arm64 and x64 for both [RMUX][pkg-rmux-darwin-arm64] and
@@ -340,7 +342,7 @@ generated mode gets it. Short commands still return inline; commands that pass t
340
342
  threshold of 60 seconds by default move into the background with durable logs. Use
341
343
  `background: true` for an immediate detached run or `interactive: true` when the command needs
342
344
  terminal input. Runner IDs and complete raw logs remain available to the current session through
343
- the `doom-runner` CLI. Runner tries bundled RMUX, then `rmux` on PATH,
345
+ the `po-runner` CLI. Runner tries bundled RMUX, then `rmux` on PATH,
344
346
  then `tmux` on PATH. If no pane backend accepts the run, non-interactive commands use a supervised
345
347
  subprocess; interactive commands require RMUX or tmux. Conservatively recognized single commands
346
348
  use the matching RTK stdin filter after completion. Compound commands, pipelines, incompatible
@@ -392,11 +394,9 @@ choices, and accepts the next spoken response as an ordinary user message.
392
394
 
393
395
  Po logging records operational metadata such as counters, spans, session IDs, tool names, and
394
396
  errors. Callers remain responsible for values they attach to telemetry. Native diagnostics expose
395
- current-session metrics, and [`@agimon-ai/log-sink-mcp`][pkg-log-sink-mcp] provides historical lookup
397
+ current-session metrics, and [`@agimon-ai/po-logsink`][pkg-po-logsink] provides historical lookup
396
398
  when a sink is configured.
397
399
 
398
- ### Modes and automation
399
-
400
400
  #### Plan mode
401
401
 
402
402
  A promise to "only plan" is not a permission boundary. [`@agimon-ai/po-plan`][pkg-po-plan]
@@ -405,11 +405,13 @@ for approval. It does not sandbox Bash, external tools, or the operating system.
405
405
  planning tools and web review surface; terminal planning menus are no longer available.
406
406
  Turn it on when the approach should be settled before the files move.
407
407
 
408
- #### Loop mode
408
+ #### Calendar layer
409
409
 
410
- [`@agimon-ai/po-loop`][pkg-po-loop] is an in-session scheduler. It runs a prompt immediately
411
- and then repeats it on an interval; several loops can coexist. Native `loop_start`, `loop_list`,
412
- and `loop_stop` tools control recurring checks and prompts in the current session.
410
+ [`@agimon-ai/po-calendar`][pkg-po-calendar] schedules durable prompts, workflows and plugin actions.
411
+ Keep the calendar layer in the home default major mode for the scheduler. Workflow success means launched,
412
+ not finished. Plugin-managed events cannot be edited, but pause, resume, run now and cancel remain available.
413
+ Busy runs and downtime are skipped, never replayed. Back up before upgrading: older Calendar versions
414
+ cannot read events saved with workflow, action or assignment fields.
413
415
 
414
416
  #### Goal mode
415
417
 
@@ -417,7 +419,7 @@ and `loop_stop` tools control recurring checks and prompts in the current sessio
417
419
  you end it. Native goal tools manage the active objective and repository history. Finished goals
418
420
  stop contributing active instructions and tools but remain in history when you want to restart one.
419
421
 
420
- #### Workflow mode
422
+ #### Workflow layer
421
423
 
422
424
  [`@agimon-ai/po-workflow`][pkg-po-workflow] runs GitHub Actions-style job graphs with
423
425
  dependencies, timeouts, artifacts, and a separate Po session for each step. Native workflow tools
@@ -489,7 +491,6 @@ configuration:
489
491
  default:
490
492
  packages:
491
493
  - '@agimon-ai/po-help'
492
- - '@agimon-ai/po-hook'
493
494
  - '@agimon-ai/po-goal'
494
495
  - '@agimon-ai/po-voice'
495
496
  - '@agimon-ai/po-runner'
@@ -498,13 +499,17 @@ default:
498
499
  - '@agimon-ai/po-edit'
499
500
  - '@agimon-ai/po-file-edit'
500
501
  - '@agimon-ai/po-autocompact'
501
- - '@agimon-ai/po-loop'
502
502
  - '@agimon-ai/po-plan'
503
- - '@agimon-ai/po-workflow'
504
503
  - '@agimon-ai/po-log'
505
504
  - '@agimon-ai/po-mcp'
506
505
 
507
506
  layers:
507
+ calendar:
508
+ packages:
509
+ - '@agimon-ai/po-calendar'
510
+ workflow:
511
+ packages:
512
+ - '@agimon-ai/po-workflow'
508
513
  team:
509
514
  packages:
510
515
  - name: '@agimon-ai/po-team'
@@ -520,10 +525,10 @@ defaultMajorMode: copilot
520
525
  majorMode:
521
526
  minimal:
522
527
  description: Lean sessions with delegation and little else.
523
- layers: [team]
528
+ layers: [team, workflow, calendar]
524
529
  copilot:
525
530
  description: General coding with delegation and review tools.
526
- layers: [team, review]
531
+ layers: [team, review, workflow, calendar]
527
532
  ```
528
533
 
529
534
  Order matters: Po assembles `default.packages` first, then the selected layers and their
@@ -533,6 +538,11 @@ composition, not a mystery bag of shared configuration. Home and repository `lay
533
538
  sources declare `default`, the repository block replaces the personal block as one whole package
534
539
  list.
535
540
 
541
+ Workflow is selected through the `workflow` layer, not a minor-mode switch. New seeds
542
+ include it in `minimal`, `copilot` and `examples`; remove the layer from a mode to omit it.
543
+ Existing `default.packages` entries still work and deduplicate with the layer. No config
544
+ migration runs, and persisted `minorModes: [workflow]` has no effect.
545
+
536
546
  Configurations created before the hashline tools were split may contain only `po-edit`.
537
547
  Replace that entry with the ordered `po-read`, `po-grep`, and `po-edit` trio. Init
538
548
  preserves existing configuration unless it is run with `--force`.
@@ -647,23 +657,22 @@ process environment and operating-system privileges; their logs may contain comm
647
657
  secrets. MCP credentials may live in the system keyring or private configuration files.
648
658
 
649
659
  Voice can keep PCM capture and transcription local when local engines are selected, but transcript
650
- text and model requests follow the configured providers. Loop, Workflow, Plan, Autocompact, Team,
660
+ text and model requests follow the configured providers. Calendar, Workflow, Plan, Autocompact, Team,
651
661
  and autonomous Voice can make additional model calls. Telemetry is disabled or redirected through
652
662
  its owning package's controls; values supplied by callers are not automatically scrubbed.
653
663
 
654
664
  ## CLI reference
655
665
 
656
- | Command or option | What it does |
657
- | ---------------------------------------- | ---------------------------------------------------------------------------------- |
658
- | `po` | Starts the `po-web` console and its headless `po-server`; arguments go to po-web |
659
- | `po init` | Seeds personal config and removes Po entries earlier versions wrote to Pi settings |
660
- | `po sync` | Publishes the current repository, or the global composition outside repositories |
661
- | `po sync --check` | Exits non-zero when the applicable registered generation is missing or stale |
662
- | `po compat <codex\|claude\|antigravity>` | Resolves the selected matrix and launches the compatibility adapter |
663
- | `doom-runner` | Inspects and controls supervised Runner processes and logs |
664
- | `--explain` | Prints the resolved matrix and estimated prompt cost without launching Pi |
665
- | `--emit-mcp <dir>`, `--no-mcp` | Writes the resolved MCP config or disables MCP for one run |
666
- | `--` and remaining arguments | Forwards provider or Pi arguments unchanged where the selected command allows it |
666
+ | Command or option | What it does |
667
+ | ------------------------------ | ---------------------------------------------------------------------------------- |
668
+ | `po` | Starts the `po-web` console and its headless `po-server`; arguments go to po-web |
669
+ | `po init` | Seeds personal config and removes Po entries earlier versions wrote to Pi settings |
670
+ | `po sync` | Publishes the current repository, or the global composition outside repositories |
671
+ | `po sync --check` | Exits non-zero when the applicable registered generation is missing or stale |
672
+ | `po-runner` | Inspects and controls supervised Runner processes and logs |
673
+ | `--explain` | Prints the resolved matrix and estimated prompt cost without launching Pi |
674
+ | `--emit-mcp <dir>`, `--no-mcp` | Writes the resolved MCP config or disables MCP for one run |
675
+ | `--` and remaining arguments | Forwards provider or Pi arguments unchanged where the selected command allows it |
667
676
 
668
677
  ## Troubleshooting and direct use
669
678
 
@@ -671,13 +680,13 @@ its owning package's controls; values supplied by callers are not automatically
671
680
  to install them and rebuild synchronized state.
672
681
  - If neither RMUX nor tmux is available, non-interactive Runner calls report the supervised subprocess
673
682
  fallback. Interactive calls require RMUX or tmux. Linux native artifacts require a compatible loader and libc.
674
- - Po-owned packages expose native server, web, and MCP facets, not Pi entry points. Install them with
675
- `npm install` or select them in `modes.yaml`. Third-party Pi settings packages still load through
676
- the upstream SDK extension host, including provider registration before model selection.
683
+ - Po-owned packages expose native server, web, and MCP contributions, not Pi entry points. Install
684
+ them with `npm install` or select them in `modes.yaml`. Third-party Pi settings packages still load
685
+ through the upstream SDK extension host, including provider registration before model selection.
677
686
  - Terminal leader menus, shortcuts, overlays, and widgets are no longer shipped. Native commands,
678
687
  tools, and web panels remain where the owning package provides them. RMUX and RTK artifacts are
679
688
  selected by Runner and should not be installed directly.
680
- - The root `doom-runner` command delegates to Runner from the active repository and asks you to add
689
+ - The root `po-runner` command delegates to Runner from the active repository and asks you to add
681
690
  Runner to `modes.yaml` when it is absent. The distribution remains the supported way to get the
682
691
  coordinated defaults.
683
692
  - The Ollama preset and launcher `--mute` and `--auto-stop` flags are retired. They do not have
@@ -686,8 +695,8 @@ its owning package's controls; values supplied by callers are not automatically
686
695
  ## Architecture
687
696
 
688
697
  See [Architecture](https://github.com/AgiFlow/po/blob/main/docs/architecture.md) for native
689
- server/web/MCP facets, canonical fingerprints, transition classification, shared-host Cordis
690
- lifecycle ownership, and parent/child isolation. Po no longer composes its own Pi factories;
698
+ server/web/MCP contributions, canonical fingerprints, transition classification, shared-host
699
+ Cordis lifecycle ownership, and parent/child isolation. Po no longer composes its own Pi factories;
691
700
  third-party Pi packages remain supported through the SDK host.
692
701
 
693
702
  ## Development
@@ -706,7 +715,7 @@ Po is maintained by [Agimon](https://agimon.ai/about).
706
715
 
707
716
  ## License
708
717
 
709
- MIT
718
+ 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.
710
719
 
711
720
  ## Maintainer release order
712
721
 
@@ -730,7 +739,6 @@ loaded extension graph inside the same release boundary as the packages that con
730
739
  [pkg-po-edit]: https://www.npmjs.com/package/@agimon-ai/po-edit
731
740
  [pkg-po-file-edit]: https://www.npmjs.com/package/@agimon-ai/po-file-edit
732
741
  [pkg-po-log]: https://www.npmjs.com/package/@agimon-ai/po-log
733
- [pkg-po-telemetry]: https://www.npmjs.com/package/@agimon-ai/po-telemetry
734
742
  [pkg-rmux-darwin-arm64]: https://www.npmjs.com/package/@agimon-ai/po-runner-rmux-darwin-arm64
735
743
  [pkg-rmux-darwin-x64]: https://www.npmjs.com/package/@agimon-ai/po-runner-rmux-darwin-x64
736
744
  [pkg-rmux-linux-arm64]: https://www.npmjs.com/package/@agimon-ai/po-runner-rmux-linux-arm64
@@ -746,9 +754,9 @@ loaded extension graph inside the same release boundary as the packages that con
746
754
  [pkg-po-help]: https://www.npmjs.com/package/@agimon-ai/po-help
747
755
  [pkg-po-mcp]: https://www.npmjs.com/package/@agimon-ai/po-mcp
748
756
  [pkg-po-user-feedback]: https://www.npmjs.com/package/@agimon-ai/po-user-feedback
749
- [pkg-log-sink-mcp]: https://www.npmjs.com/package/@agimon-ai/log-sink-mcp
757
+ [pkg-po-logsink]: ../../tooling/po-logsink/README.md
750
758
  [pkg-po-plan]: https://www.npmjs.com/package/@agimon-ai/po-plan
751
- [pkg-po-loop]: https://www.npmjs.com/package/@agimon-ai/po-loop
759
+ [pkg-po-calendar]: https://www.npmjs.com/package/@agimon-ai/po-calendar
752
760
  [pkg-po-goal]: https://www.npmjs.com/package/@agimon-ai/po-goal
753
761
  [pkg-po-workflow]: https://www.npmjs.com/package/@agimon-ai/po-workflow
754
762
  [pkg-po-voice]: https://www.npmjs.com/package/@agimon-ai/po-voice
@@ -1,2 +1 @@
1
- import { BaseCommand } from "./src/cli/commands/baseCommand.mjs";
2
- export { BaseCommand };
1
+ export { BaseCommand } from "./src/cli/commands/baseCommand.mjs";
package/dist/bin/cli.cjs CHANGED
@@ -1,19 +1,45 @@
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_path = require("node:path");
5
+ node_path = require_runtime.__toESM(node_path, 1);
6
+ let node_fs_promises = require("node:fs/promises");
7
+ node_fs_promises = require_runtime.__toESM(node_fs_promises, 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
+ * launcher (pi.sh) invoke directly from source.
15
+ */
16
+ async function main() {
17
+ await require_agentDirectory.initializeAgentDirectory();
18
+ if (require_agentDirectory.testRoot) {
19
+ const target = node_path.default.join(require_agentDirectory.testRoot, "packages/cli/po/dist/bin/cli.mjs");
20
+ if (await node_fs_promises.default.realpath(target).catch((error) => {
21
+ if (error.code === "ENOENT") throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);
22
+ throw error;
23
+ }) !== await node_fs_promises.default.realpath((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href))) {
24
+ await import((0, node_url.pathToFileURL)(target).href);
25
+ return;
26
+ }
27
+ }
28
+ const { HARNESS_VERSION, printHelp } = await Promise.resolve().then(() => require("../src/cli/help.cjs"));
29
+ const { informationalRequest, routeCommand } = await Promise.resolve().then(() => require("../src/cli/router.cjs"));
30
+ const args = process.argv.slice(2);
31
+ const informational = routeCommand(args) !== void 0 ? void 0 : informationalRequest(args);
32
+ const informationalExit = informational === "help" ? (() => {
33
+ printHelp();
34
+ return 0;
35
+ })() : informational === "version" ? (() => {
36
+ process.stdout.write(`${HARNESS_VERSION}\n`);
37
+ return 0;
38
+ })() : void 0;
39
+ return informationalExit === void 0 ? Promise.resolve().then(() => require("../src/cli/cliApp.cjs")).then(({ runCli }) => runCli(args)) : Promise.resolve(informationalExit);
40
+ }
41
+ main().then((exitCode) => {
42
+ if (exitCode !== void 0) process.exitCode = exitCode;
17
43
  }, (error) => {
18
44
  const message = error instanceof Error ? error.message : String(error);
19
45
  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":["initializeAgentDirectory","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 * launcher (pi.sh) invoke directly from source.\n */\n\nimport fs from 'node:fs/promises';\nimport path from 'node:path';\nimport { fileURLToPath, pathToFileURL } from 'node:url';\n\nimport { initializeAgentDirectory, testRoot } from './agentDirectory';\n\nasync function main(): Promise<number | undefined> {\n await initializeAgentDirectory();\n if (testRoot) {\n const target = path.join(testRoot, 'packages/cli/po/dist/bin/cli.mjs');\n const realTarget = await fs.realpath(target).catch((error: NodeJS.ErrnoException) => {\n if (error.code === 'ENOENT')\n throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);\n throw error;\n });\n if (realTarget !== (await fs.realpath(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,MAAMA,uBAAAA,yBAAyB;CAC/B,IAAIC,uBAAAA,UAAU;EACZ,MAAM,SAASC,UAAAA,QAAK,KAAKD,uBAAAA,UAAU,kCAAkC;EAMrE,IAAI,MALqBE,iBAAAA,QAAG,SAAS,MAAM,CAAC,CAAC,OAAO,UAAiC;GACnF,IAAI,MAAM,SAAS,UACjB,MAAM,IAAI,MAAM,oCAAoC,OAAO,6BAA6B;GAC1F,MAAM;EACR,CAAC,MACmB,MAAMA,iBAAAA,QAAG,UAAA,GAASC,SAAAA,cAAAA,CAAAA,QAAAA,KAAAA,CAAAA,CAAAA,cAAAA,UAAAA,CAAAA,CAAAA,IAA6B,CAAC,GAAI;GACtE,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,42 @@
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 { initializeAgentDirectory, testRoot } from "../src/bin/agentDirectory.mjs";
3
+ import path from "node:path";
4
+ import fs from "node:fs/promises";
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
+ * launcher (pi.sh) invoke directly from source.
12
+ */
13
+ async function main() {
14
+ await initializeAgentDirectory();
15
+ if (testRoot) {
16
+ const target = path.join(testRoot, "packages/cli/po/dist/bin/cli.mjs");
17
+ if (await fs.realpath(target).catch((error) => {
18
+ if (error.code === "ENOENT") throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);
19
+ throw error;
20
+ }) !== await fs.realpath(fileURLToPath(import.meta.url))) {
21
+ await import(pathToFileURL(target).href);
22
+ return;
23
+ }
24
+ }
25
+ const { HARNESS_VERSION, printHelp } = await import("../src/cli/help.mjs");
26
+ const { informationalRequest, routeCommand } = await import("../src/cli/router.mjs");
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 ? import("../src/cli/cliApp.mjs").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.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 * launcher (pi.sh) invoke directly from source.\n */\n\nimport fs from 'node:fs/promises';\nimport path from 'node:path';\nimport { fileURLToPath, pathToFileURL } from 'node:url';\n\nimport { initializeAgentDirectory, testRoot } from './agentDirectory';\n\nasync function main(): Promise<number | undefined> {\n await initializeAgentDirectory();\n if (testRoot) {\n const target = path.join(testRoot, 'packages/cli/po/dist/bin/cli.mjs');\n const realTarget = await fs.realpath(target).catch((error: NodeJS.ErrnoException) => {\n if (error.code === 'ENOENT')\n throw new Error(`Local test CLI build is missing: ${target}. Build @agimon-ai/po first.`);\n throw error;\n });\n if (realTarget !== (await fs.realpath(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,MAAM,yBAAyB;CAC/B,IAAI,UAAU;EACZ,MAAM,SAAS,KAAK,KAAK,UAAU,kCAAkC;EAMrE,IAAI,MALqB,GAAG,SAAS,MAAM,CAAC,CAAC,OAAO,UAAiC;GACnF,IAAI,MAAM,SAAS,UACjB,MAAM,IAAI,MAAM,oCAAoC,OAAO,6BAA6B;GAC1F,MAAM;EACR,CAAC,MACmB,MAAM,GAAG,SAAS,cAAc,YAAY,GAAG,CAAC,GAAI;GACtE,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"}