@agimon-ai/doompi 0.0.1-alpha.2 → 0.0.1-alpha.21

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 (944) hide show
  1. package/README.md +437 -452
  2. package/assets/doompi-tui.png +0 -0
  3. package/dist/adapters/bootstrapClaim.cjs +2 -0
  4. package/dist/adapters/bootstrapClaim.cjs.map +1 -0
  5. package/dist/adapters/bootstrapClaim.mjs +2 -0
  6. package/dist/adapters/bootstrapClaim.mjs.map +1 -0
  7. package/dist/adapters/bootstrapLocator.cjs +2 -0
  8. package/dist/adapters/bootstrapLocator.cjs.map +1 -0
  9. package/dist/adapters/bootstrapLocator.d.cts +6 -0
  10. package/dist/adapters/bootstrapLocator.d.cts.map +1 -0
  11. package/dist/adapters/bootstrapLocator.d.mts +6 -0
  12. package/dist/adapters/bootstrapLocator.d.mts.map +1 -0
  13. package/dist/adapters/bootstrapLocator.mjs +2 -0
  14. package/dist/adapters/bootstrapLocator.mjs.map +1 -0
  15. package/dist/adapters/compatibility/antigravity.cjs +2 -0
  16. package/dist/{services → adapters}/compatibility/antigravity.cjs.map +1 -1
  17. package/dist/adapters/compatibility/antigravity.d.cts +11 -0
  18. package/dist/{services → adapters}/compatibility/antigravity.d.cts.map +1 -1
  19. package/dist/adapters/compatibility/antigravity.d.mts +11 -0
  20. package/dist/{services → adapters}/compatibility/antigravity.d.mts.map +1 -1
  21. package/dist/adapters/compatibility/antigravity.mjs +2 -0
  22. package/dist/{services → adapters}/compatibility/antigravity.mjs.map +1 -1
  23. package/dist/adapters/compatibility/codex.cjs +2 -0
  24. package/dist/{services → adapters}/compatibility/codex.cjs.map +1 -1
  25. package/dist/adapters/compatibility/codex.d.cts +19 -0
  26. package/dist/{services → adapters}/compatibility/codex.d.cts.map +1 -1
  27. package/dist/adapters/compatibility/codex.d.mts +19 -0
  28. package/dist/{services → adapters}/compatibility/codex.d.mts.map +1 -1
  29. package/dist/adapters/compatibility/codex.mjs +2 -0
  30. package/dist/{services → adapters}/compatibility/codex.mjs.map +1 -1
  31. package/dist/adapters/compatibility/index.cjs +2 -0
  32. package/dist/adapters/compatibility/index.cjs.map +1 -0
  33. package/dist/adapters/compatibility/index.d.cts +16 -0
  34. package/dist/{services → adapters}/compatibility/index.d.cts.map +1 -1
  35. package/dist/adapters/compatibility/index.d.mts +16 -0
  36. package/dist/{services → adapters}/compatibility/index.d.mts.map +1 -1
  37. package/dist/adapters/compatibility/index.mjs +2 -0
  38. package/dist/adapters/compatibility/index.mjs.map +1 -0
  39. package/dist/adapters/compatibility/process.cjs +2 -0
  40. package/dist/{services → adapters}/compatibility/process.cjs.map +1 -1
  41. package/dist/adapters/compatibility/process.d.cts +35 -0
  42. package/dist/{services → adapters}/compatibility/process.d.cts.map +1 -1
  43. package/dist/adapters/compatibility/process.d.mts +35 -0
  44. package/dist/{services → adapters}/compatibility/process.d.mts.map +1 -1
  45. package/dist/adapters/compatibility/process.mjs +2 -0
  46. package/dist/{services → adapters}/compatibility/process.mjs.map +1 -1
  47. package/dist/adapters/compatibility/shared.cjs +2 -0
  48. package/dist/{services → adapters}/compatibility/shared.cjs.map +1 -1
  49. package/dist/adapters/compatibility/shared.d.cts +33 -0
  50. package/dist/{services → adapters}/compatibility/shared.d.cts.map +1 -1
  51. package/dist/adapters/compatibility/shared.d.mts +33 -0
  52. package/dist/{services → adapters}/compatibility/shared.d.mts.map +1 -1
  53. package/dist/adapters/compatibility/shared.mjs +2 -0
  54. package/dist/{services → adapters}/compatibility/shared.mjs.map +1 -1
  55. package/dist/adapters/compatibilityContext.cjs +2 -0
  56. package/dist/adapters/compatibilityContext.cjs.map +1 -0
  57. package/dist/adapters/compatibilityContext.d.cts +23 -0
  58. package/dist/{services → adapters}/compatibilityContext.d.cts.map +1 -1
  59. package/dist/adapters/compatibilityContext.d.mts +23 -0
  60. package/dist/{services → adapters}/compatibilityContext.d.mts.map +1 -1
  61. package/dist/adapters/compatibilityContext.mjs +2 -0
  62. package/dist/adapters/compatibilityContext.mjs.map +1 -0
  63. package/dist/adapters/composer.cjs +2 -0
  64. package/dist/adapters/composer.cjs.map +1 -0
  65. package/dist/adapters/composer.d.cts +113 -0
  66. package/dist/adapters/composer.d.cts.map +1 -0
  67. package/dist/adapters/composer.d.mts +113 -0
  68. package/dist/adapters/composer.d.mts.map +1 -0
  69. package/dist/adapters/composer.mjs +2 -0
  70. package/dist/adapters/composer.mjs.map +1 -0
  71. package/dist/adapters/compositionState.cjs +2 -0
  72. package/dist/adapters/compositionState.cjs.map +1 -0
  73. package/dist/adapters/compositionState.d.cts +12 -0
  74. package/dist/adapters/compositionState.d.cts.map +1 -0
  75. package/dist/adapters/compositionState.d.mts +12 -0
  76. package/dist/adapters/compositionState.d.mts.map +1 -0
  77. package/dist/adapters/compositionState.mjs +2 -0
  78. package/dist/adapters/compositionState.mjs.map +1 -0
  79. package/dist/adapters/config/harnessState.cjs +2 -0
  80. package/dist/adapters/config/harnessState.cjs.map +1 -0
  81. package/dist/adapters/config/harnessState.d.cts +26 -0
  82. package/dist/adapters/config/harnessState.d.cts.map +1 -0
  83. package/dist/adapters/config/harnessState.d.mts +26 -0
  84. package/dist/adapters/config/harnessState.d.mts.map +1 -0
  85. package/dist/adapters/config/harnessState.mjs +2 -0
  86. package/dist/adapters/config/harnessState.mjs.map +1 -0
  87. package/dist/adapters/deferredSkills.cjs +12 -0
  88. package/dist/adapters/deferredSkills.cjs.map +1 -0
  89. package/dist/adapters/deferredSkills.mjs +12 -0
  90. package/dist/adapters/deferredSkills.mjs.map +1 -0
  91. package/dist/adapters/doomPackage.cjs +2 -0
  92. package/dist/adapters/doomPackage.cjs.map +1 -0
  93. package/dist/adapters/doomPackage.mjs +2 -0
  94. package/dist/adapters/doomPackage.mjs.map +1 -0
  95. package/dist/adapters/dpiRunner.cjs +3 -0
  96. package/dist/adapters/dpiRunner.cjs.map +1 -0
  97. package/dist/adapters/dpiRunner.mjs +3 -0
  98. package/dist/adapters/dpiRunner.mjs.map +1 -0
  99. package/dist/adapters/dpiSettings.cjs +2 -0
  100. package/dist/adapters/dpiSettings.cjs.map +1 -0
  101. package/dist/adapters/dpiSettings.mjs +2 -0
  102. package/dist/adapters/dpiSettings.mjs.map +1 -0
  103. package/dist/adapters/extensionCompiler.cjs +3 -0
  104. package/dist/adapters/extensionCompiler.cjs.map +1 -0
  105. package/dist/adapters/extensionCompiler.mjs +3 -0
  106. package/dist/adapters/extensionCompiler.mjs.map +1 -0
  107. package/dist/adapters/harnessContext.cjs +2 -0
  108. package/dist/adapters/harnessContext.cjs.map +1 -0
  109. package/dist/adapters/harnessContext.d.cts +61 -0
  110. package/dist/{services → adapters}/harnessContext.d.cts.map +1 -1
  111. package/dist/adapters/harnessContext.d.mts +61 -0
  112. package/dist/{services → adapters}/harnessContext.d.mts.map +1 -1
  113. package/dist/adapters/harnessContext.mjs +2 -0
  114. package/dist/adapters/harnessContext.mjs.map +1 -0
  115. package/dist/adapters/helpSkills.cjs +2 -0
  116. package/dist/adapters/helpSkills.cjs.map +1 -0
  117. package/dist/adapters/helpSkills.mjs +2 -0
  118. package/dist/adapters/helpSkills.mjs.map +1 -0
  119. package/dist/adapters/layerPackageInstaller.cjs +2 -0
  120. package/dist/adapters/layerPackageInstaller.cjs.map +1 -0
  121. package/dist/adapters/layerPackageInstaller.mjs +2 -0
  122. package/dist/adapters/layerPackageInstaller.mjs.map +1 -0
  123. package/dist/adapters/matrixSwitcher.cjs +2 -0
  124. package/dist/adapters/matrixSwitcher.cjs.map +1 -0
  125. package/dist/adapters/matrixSwitcher.d.cts +46 -0
  126. package/dist/{services → adapters}/matrixSwitcher.d.cts.map +1 -1
  127. package/dist/adapters/matrixSwitcher.d.mts +46 -0
  128. package/dist/{services → adapters}/matrixSwitcher.d.mts.map +1 -1
  129. package/dist/adapters/matrixSwitcher.mjs +2 -0
  130. package/dist/adapters/matrixSwitcher.mjs.map +1 -0
  131. package/dist/adapters/mcpFilter.cjs +3 -0
  132. package/dist/adapters/mcpFilter.cjs.map +1 -0
  133. package/dist/adapters/mcpFilter.d.cts +40 -0
  134. package/dist/adapters/mcpFilter.d.cts.map +1 -0
  135. package/dist/adapters/mcpFilter.d.mts +40 -0
  136. package/dist/adapters/mcpFilter.d.mts.map +1 -0
  137. package/dist/adapters/mcpFilter.mjs +3 -0
  138. package/dist/adapters/mcpFilter.mjs.map +1 -0
  139. package/dist/adapters/modules/moduleResolution.cjs +2 -0
  140. package/dist/adapters/modules/moduleResolution.cjs.map +1 -0
  141. package/dist/adapters/modules/moduleResolution.d.cts +69 -0
  142. package/dist/adapters/modules/moduleResolution.d.cts.map +1 -0
  143. package/dist/adapters/modules/moduleResolution.d.mts +69 -0
  144. package/dist/adapters/modules/moduleResolution.d.mts.map +1 -0
  145. package/dist/adapters/modules/moduleResolution.mjs +2 -0
  146. package/dist/adapters/modules/moduleResolution.mjs.map +1 -0
  147. package/dist/adapters/packageBootstrap.cjs +2 -0
  148. package/dist/adapters/packageBootstrap.cjs.map +1 -0
  149. package/dist/adapters/packageBootstrap.d.cts +8 -0
  150. package/dist/adapters/packageBootstrap.d.cts.map +1 -0
  151. package/dist/adapters/packageBootstrap.d.mts +8 -0
  152. package/dist/adapters/packageBootstrap.d.mts.map +1 -0
  153. package/dist/adapters/packageBootstrap.mjs +2 -0
  154. package/dist/adapters/packageBootstrap.mjs.map +1 -0
  155. package/dist/adapters/piExtensionAlias.cjs +2 -0
  156. package/dist/adapters/piExtensionAlias.cjs.map +1 -0
  157. package/dist/adapters/piExtensionAlias.mjs +2 -0
  158. package/dist/adapters/piExtensionAlias.mjs.map +1 -0
  159. package/dist/adapters/piSettings.cjs +2 -0
  160. package/dist/adapters/piSettings.cjs.map +1 -0
  161. package/dist/adapters/piSettings.d.cts +25 -0
  162. package/dist/adapters/piSettings.d.cts.map +1 -0
  163. package/dist/adapters/piSettings.d.mts +25 -0
  164. package/dist/adapters/piSettings.d.mts.map +1 -0
  165. package/dist/adapters/piSettings.mjs +2 -0
  166. package/dist/adapters/piSettings.mjs.map +1 -0
  167. package/dist/adapters/pluginMaterializer.cjs +2 -0
  168. package/dist/adapters/pluginMaterializer.cjs.map +1 -0
  169. package/dist/adapters/pluginMaterializer.mjs +2 -0
  170. package/dist/adapters/pluginMaterializer.mjs.map +1 -0
  171. package/dist/adapters/projectPiSettings.cjs +2 -0
  172. package/dist/adapters/projectPiSettings.cjs.map +1 -0
  173. package/dist/adapters/projectPiSettings.d.cts +29 -0
  174. package/dist/adapters/projectPiSettings.d.cts.map +1 -0
  175. package/dist/adapters/projectPiSettings.d.mts +29 -0
  176. package/dist/adapters/projectPiSettings.d.mts.map +1 -0
  177. package/dist/adapters/projectPiSettings.mjs +2 -0
  178. package/dist/adapters/projectPiSettings.mjs.map +1 -0
  179. package/dist/adapters/repository/repository.cjs +2 -0
  180. package/dist/adapters/repository/repository.cjs.map +1 -0
  181. package/dist/adapters/repository/repository.d.cts +21 -0
  182. package/dist/adapters/repository/repository.d.cts.map +1 -0
  183. package/dist/adapters/repository/repository.d.mts +21 -0
  184. package/dist/adapters/repository/repository.d.mts.map +1 -0
  185. package/dist/adapters/repository/repository.mjs +2 -0
  186. package/dist/adapters/repository/repository.mjs.map +1 -0
  187. package/dist/adapters/resourceCollector.cjs +3 -0
  188. package/dist/adapters/resourceCollector.cjs.map +1 -0
  189. package/dist/adapters/resourceCollector.d.cts +25 -0
  190. package/dist/adapters/resourceCollector.d.cts.map +1 -0
  191. package/dist/adapters/resourceCollector.d.mts +25 -0
  192. package/dist/adapters/resourceCollector.d.mts.map +1 -0
  193. package/dist/adapters/resourceCollector.mjs +3 -0
  194. package/dist/adapters/resourceCollector.mjs.map +1 -0
  195. package/dist/adapters/runtimeBundle.cjs +2 -0
  196. package/dist/adapters/runtimeBundle.cjs.map +1 -0
  197. package/dist/{services → adapters}/runtimeBundle.d.cts +4 -2
  198. package/dist/adapters/runtimeBundle.d.cts.map +1 -0
  199. package/dist/{services → adapters}/runtimeBundle.d.mts +4 -2
  200. package/dist/adapters/runtimeBundle.d.mts.map +1 -0
  201. package/dist/adapters/runtimeBundle.mjs +2 -0
  202. package/dist/adapters/runtimeBundle.mjs.map +1 -0
  203. package/dist/adapters/serialization/json.cjs +2 -0
  204. package/dist/adapters/serialization/json.cjs.map +1 -0
  205. package/dist/adapters/serialization/json.d.cts +23 -0
  206. package/dist/adapters/serialization/json.d.cts.map +1 -0
  207. package/dist/adapters/serialization/json.d.mts +23 -0
  208. package/dist/adapters/serialization/json.d.mts.map +1 -0
  209. package/dist/adapters/serialization/json.mjs +2 -0
  210. package/dist/adapters/serialization/json.mjs.map +1 -0
  211. package/dist/adapters/sharedBuildCache.cjs +2 -0
  212. package/dist/adapters/sharedBuildCache.cjs.map +1 -0
  213. package/dist/adapters/sharedBuildCache.mjs +2 -0
  214. package/dist/adapters/sharedBuildCache.mjs.map +1 -0
  215. package/dist/adapters/skillCatalog.cjs +2 -0
  216. package/dist/adapters/skillCatalog.cjs.map +1 -0
  217. package/dist/adapters/skillCatalog.d.cts +61 -0
  218. package/dist/adapters/skillCatalog.d.cts.map +1 -0
  219. package/dist/adapters/skillCatalog.d.mts +61 -0
  220. package/dist/adapters/skillCatalog.d.mts.map +1 -0
  221. package/dist/adapters/skillCatalog.mjs +2 -0
  222. package/dist/adapters/skillCatalog.mjs.map +1 -0
  223. package/dist/adapters/skillSources.cjs +2 -0
  224. package/dist/{services → adapters}/skillSources.cjs.map +1 -1
  225. package/dist/adapters/skillSources.d.cts +24 -0
  226. package/dist/{services → adapters}/skillSources.d.cts.map +1 -1
  227. package/dist/adapters/skillSources.d.mts +24 -0
  228. package/dist/{services → adapters}/skillSources.d.mts.map +1 -1
  229. package/dist/adapters/skillSources.mjs +2 -0
  230. package/dist/{services → adapters}/skillSources.mjs.map +1 -1
  231. package/dist/adapters/startupPrecompiler.cjs +2 -0
  232. package/dist/adapters/startupPrecompiler.cjs.map +1 -0
  233. package/dist/adapters/startupPrecompiler.d.cts +13 -0
  234. package/dist/adapters/startupPrecompiler.d.cts.map +1 -0
  235. package/dist/adapters/startupPrecompiler.d.mts +13 -0
  236. package/dist/adapters/startupPrecompiler.d.mts.map +1 -0
  237. package/dist/adapters/startupPrecompiler.mjs +2 -0
  238. package/dist/adapters/startupPrecompiler.mjs.map +1 -0
  239. package/dist/adapters/syncLocation.cjs +2 -0
  240. package/dist/adapters/syncLocation.cjs.map +1 -0
  241. package/dist/adapters/syncLocation.d.cts +19 -0
  242. package/dist/adapters/syncLocation.d.cts.map +1 -0
  243. package/dist/adapters/syncLocation.d.mts +19 -0
  244. package/dist/adapters/syncLocation.d.mts.map +1 -0
  245. package/dist/adapters/syncLocation.mjs +2 -0
  246. package/dist/adapters/syncLocation.mjs.map +1 -0
  247. package/dist/adapters/syncState.cjs +2 -0
  248. package/dist/adapters/syncState.cjs.map +1 -0
  249. package/dist/adapters/syncState.d.cts +153 -0
  250. package/dist/adapters/syncState.d.cts.map +1 -0
  251. package/dist/adapters/syncState.d.mts +153 -0
  252. package/dist/adapters/syncState.d.mts.map +1 -0
  253. package/dist/adapters/syncState.mjs +2 -0
  254. package/dist/adapters/syncState.mjs.map +1 -0
  255. package/dist/adapters/syncStateContract.cjs +2 -0
  256. package/dist/adapters/syncStateContract.cjs.map +1 -0
  257. package/dist/adapters/syncStateContract.d.cts +13 -0
  258. package/dist/adapters/syncStateContract.d.cts.map +1 -0
  259. package/dist/adapters/syncStateContract.d.mts +13 -0
  260. package/dist/adapters/syncStateContract.d.mts.map +1 -0
  261. package/dist/adapters/syncStateContract.mjs +2 -0
  262. package/dist/adapters/syncStateContract.mjs.map +1 -0
  263. package/dist/adapters/syncedRuntimeBuilder.cjs +2 -0
  264. package/dist/adapters/syncedRuntimeBuilder.cjs.map +1 -0
  265. package/dist/adapters/syncedRuntimeBuilder.d.cts +11 -0
  266. package/dist/adapters/syncedRuntimeBuilder.d.cts.map +1 -0
  267. package/dist/adapters/syncedRuntimeBuilder.d.mts +11 -0
  268. package/dist/adapters/syncedRuntimeBuilder.d.mts.map +1 -0
  269. package/dist/adapters/syncedRuntimeBuilder.mjs +2 -0
  270. package/dist/adapters/syncedRuntimeBuilder.mjs.map +1 -0
  271. package/dist/adapters/telemetry/logSinkTelemetry.cjs +2 -0
  272. package/dist/adapters/telemetry/logSinkTelemetry.cjs.map +1 -0
  273. package/dist/adapters/telemetry/logSinkTelemetry.d.cts +51 -0
  274. package/dist/adapters/telemetry/logSinkTelemetry.d.cts.map +1 -0
  275. package/dist/adapters/telemetry/logSinkTelemetry.d.mts +51 -0
  276. package/dist/adapters/telemetry/logSinkTelemetry.d.mts.map +1 -0
  277. package/dist/adapters/telemetry/logSinkTelemetry.mjs +2 -0
  278. package/dist/adapters/telemetry/logSinkTelemetry.mjs.map +1 -0
  279. package/dist/bin/cli.cjs +1 -1
  280. package/dist/bin/cli.cjs.map +1 -1
  281. package/dist/bin/cli.mjs +1 -1
  282. package/dist/bin/cli.mjs.map +1 -1
  283. package/dist/bin/dpi.cjs +3 -0
  284. package/dist/bin/dpi.cjs.map +1 -0
  285. package/dist/bin/dpi.d.cts +1 -0
  286. package/dist/bin/dpi.d.mts +1 -0
  287. package/dist/bin/dpi.mjs +3 -0
  288. package/dist/bin/dpi.mjs.map +1 -0
  289. package/dist/cli/cliApp.cjs +1 -2
  290. package/dist/cli/cliApp.d.cts +2 -45
  291. package/dist/cli/cliApp.d.mts +2 -45
  292. package/dist/cli/cliApp.mjs +1 -2
  293. package/dist/cli/compatibilityOptions.cjs +1 -2
  294. package/dist/cli/compatibilityOptions.d.cts +2 -15
  295. package/dist/cli/compatibilityOptions.d.mts +2 -15
  296. package/dist/cli/compatibilityOptions.mjs +1 -2
  297. package/dist/cli/help.cjs +1 -63
  298. package/dist/cli/help.d.cts +2 -6
  299. package/dist/cli/help.d.mts +2 -6
  300. package/dist/cli/help.mjs +1 -63
  301. package/dist/cli/index.cjs +1 -1
  302. package/dist/cli/index.d.cts +4 -4
  303. package/dist/cli/index.d.mts +4 -4
  304. package/dist/cli/index.mjs +1 -1
  305. package/dist/cli/matrixOptions.cjs +1 -2
  306. package/dist/cli/matrixOptions.d.cts +2 -99
  307. package/dist/cli/matrixOptions.d.mts +2 -99
  308. package/dist/cli/matrixOptions.mjs +1 -2
  309. package/dist/cli/options.cjs +1 -2
  310. package/dist/cli/options.d.cts +2 -7
  311. package/dist/cli/options.d.mts +2 -7
  312. package/dist/cli/options.mjs +1 -2
  313. package/dist/commands/baseCommand.cjs.map +1 -1
  314. package/dist/commands/baseCommand.d.cts +3 -3
  315. package/dist/commands/baseCommand.d.mts +3 -3
  316. package/dist/commands/baseCommand.mjs.map +1 -1
  317. package/dist/commands/buildCommand.cjs +2 -2
  318. package/dist/commands/buildCommand.cjs.map +1 -1
  319. package/dist/commands/buildCommand.mjs +2 -2
  320. package/dist/commands/buildCommand.mjs.map +1 -1
  321. package/dist/commands/cli/cliApp.cjs +2 -0
  322. package/dist/commands/cli/cliApp.cjs.map +1 -0
  323. package/dist/commands/cli/cliApp.d.cts +45 -0
  324. package/dist/commands/cli/cliApp.d.cts.map +1 -0
  325. package/dist/commands/cli/cliApp.d.mts +45 -0
  326. package/dist/commands/cli/cliApp.d.mts.map +1 -0
  327. package/dist/commands/cli/cliApp.mjs +2 -0
  328. package/dist/commands/cli/cliApp.mjs.map +1 -0
  329. package/dist/commands/cli/compatibilityOptions.cjs +2 -0
  330. package/dist/commands/cli/compatibilityOptions.cjs.map +1 -0
  331. package/dist/commands/cli/compatibilityOptions.d.cts +15 -0
  332. package/dist/commands/cli/compatibilityOptions.d.cts.map +1 -0
  333. package/dist/commands/cli/compatibilityOptions.d.mts +15 -0
  334. package/dist/commands/cli/compatibilityOptions.d.mts.map +1 -0
  335. package/dist/commands/cli/compatibilityOptions.mjs +2 -0
  336. package/dist/commands/cli/compatibilityOptions.mjs.map +1 -0
  337. package/dist/commands/cli/help.cjs +68 -0
  338. package/dist/{cli → commands/cli}/help.cjs.map +1 -1
  339. package/dist/commands/cli/help.d.cts +6 -0
  340. package/dist/commands/cli/help.d.cts.map +1 -0
  341. package/dist/commands/cli/help.d.mts +6 -0
  342. package/dist/commands/cli/help.d.mts.map +1 -0
  343. package/dist/commands/cli/help.mjs +68 -0
  344. package/dist/{cli → commands/cli}/help.mjs.map +1 -1
  345. package/dist/commands/cli/index.cjs +1 -0
  346. package/dist/commands/cli/index.d.cts +4 -0
  347. package/dist/commands/cli/index.d.mts +4 -0
  348. package/dist/commands/cli/index.mjs +1 -0
  349. package/dist/commands/cli/matrixOptions.cjs +2 -0
  350. package/dist/commands/cli/matrixOptions.cjs.map +1 -0
  351. package/dist/commands/cli/matrixOptions.d.cts +99 -0
  352. package/dist/commands/cli/matrixOptions.d.cts.map +1 -0
  353. package/dist/commands/cli/matrixOptions.d.mts +99 -0
  354. package/dist/commands/cli/matrixOptions.d.mts.map +1 -0
  355. package/dist/commands/cli/matrixOptions.mjs +2 -0
  356. package/dist/commands/cli/matrixOptions.mjs.map +1 -0
  357. package/dist/commands/cli/options.cjs +2 -0
  358. package/dist/commands/cli/options.cjs.map +1 -0
  359. package/dist/commands/cli/options.d.cts +7 -0
  360. package/dist/commands/cli/options.d.cts.map +1 -0
  361. package/dist/commands/cli/options.d.mts +7 -0
  362. package/dist/commands/cli/options.d.mts.map +1 -0
  363. package/dist/commands/cli/options.mjs +2 -0
  364. package/dist/commands/cli/options.mjs.map +1 -0
  365. package/dist/commands/compatibilityCommand.cjs +1 -1
  366. package/dist/commands/compatibilityCommand.cjs.map +1 -1
  367. package/dist/commands/compatibilityCommand.d.cts +1 -1
  368. package/dist/commands/compatibilityCommand.d.cts.map +1 -1
  369. package/dist/commands/compatibilityCommand.d.mts +1 -1
  370. package/dist/commands/compatibilityCommand.d.mts.map +1 -1
  371. package/dist/commands/compatibilityCommand.mjs +1 -1
  372. package/dist/commands/compatibilityCommand.mjs.map +1 -1
  373. package/dist/commands/emitMcpCommand.cjs +1 -1
  374. package/dist/commands/emitMcpCommand.cjs.map +1 -1
  375. package/dist/commands/emitMcpCommand.d.cts +2 -2
  376. package/dist/commands/emitMcpCommand.d.mts +2 -2
  377. package/dist/commands/emitMcpCommand.mjs +1 -1
  378. package/dist/commands/emitMcpCommand.mjs.map +1 -1
  379. package/dist/commands/explainCommand.cjs +2 -2
  380. package/dist/commands/explainCommand.cjs.map +1 -1
  381. package/dist/commands/explainCommand.d.cts +2 -2
  382. package/dist/commands/explainCommand.d.mts +2 -2
  383. package/dist/commands/explainCommand.mjs +2 -2
  384. package/dist/commands/explainCommand.mjs.map +1 -1
  385. package/dist/commands/index.cjs +1 -1
  386. package/dist/commands/index.d.cts +2 -3
  387. package/dist/commands/index.d.mts +2 -3
  388. package/dist/commands/index.mjs +1 -1
  389. package/dist/commands/initCommand.cjs +1 -2
  390. package/dist/commands/initCommand.cjs.map +1 -1
  391. package/dist/commands/initCommand.d.cts +4 -3
  392. package/dist/commands/initCommand.d.cts.map +1 -1
  393. package/dist/commands/initCommand.d.mts +4 -3
  394. package/dist/commands/initCommand.d.mts.map +1 -1
  395. package/dist/commands/initCommand.mjs +1 -2
  396. package/dist/commands/initCommand.mjs.map +1 -1
  397. package/dist/commands/initPresenter.cjs +3 -0
  398. package/dist/commands/initPresenter.cjs.map +1 -0
  399. package/dist/commands/initPresenter.d.cts +8 -0
  400. package/dist/commands/initPresenter.d.cts.map +1 -0
  401. package/dist/commands/initPresenter.d.mts +8 -0
  402. package/dist/commands/initPresenter.d.mts.map +1 -0
  403. package/dist/commands/initPresenter.mjs +3 -0
  404. package/dist/commands/initPresenter.mjs.map +1 -0
  405. package/dist/commands/launchCommand.cjs +1 -1
  406. package/dist/commands/launchCommand.cjs.map +1 -1
  407. package/dist/commands/launchCommand.d.cts +6 -4
  408. package/dist/commands/launchCommand.d.cts.map +1 -1
  409. package/dist/commands/launchCommand.d.mts +6 -4
  410. package/dist/commands/launchCommand.d.mts.map +1 -1
  411. package/dist/commands/launchCommand.mjs +1 -1
  412. package/dist/commands/launchCommand.mjs.map +1 -1
  413. package/dist/commands/syncCommand.cjs +5 -5
  414. package/dist/commands/syncCommand.cjs.map +1 -1
  415. package/dist/commands/syncCommand.d.cts +19 -7
  416. package/dist/commands/syncCommand.d.cts.map +1 -1
  417. package/dist/commands/syncCommand.d.mts +19 -7
  418. package/dist/commands/syncCommand.d.mts.map +1 -1
  419. package/dist/commands/syncCommand.mjs +5 -5
  420. package/dist/commands/syncCommand.mjs.map +1 -1
  421. package/dist/commands/syncPipeline.cjs +2 -0
  422. package/dist/commands/syncPipeline.cjs.map +1 -0
  423. package/dist/commands/syncPipeline.mjs +2 -0
  424. package/dist/commands/syncPipeline.mjs.map +1 -0
  425. package/dist/config/harnessState.cjs +1 -2
  426. package/dist/config/harnessState.d.cts +2 -24
  427. package/dist/config/harnessState.d.mts +2 -24
  428. package/dist/config/harnessState.mjs +1 -2
  429. package/dist/config/index.cjs +1 -1
  430. package/dist/config/index.d.cts +4 -7
  431. package/dist/config/index.d.mts +4 -7
  432. package/dist/config/index.mjs +1 -1
  433. package/dist/config/projectTrust.cjs +1 -2
  434. package/dist/config/projectTrust.d.cts +2 -14
  435. package/dist/config/projectTrust.d.mts +2 -14
  436. package/dist/config/projectTrust.mjs +1 -2
  437. package/dist/entries/autoStop.cjs +1 -2
  438. package/dist/entries/autoStop.d.cts +2 -6
  439. package/dist/entries/autoStop.d.mts +2 -7
  440. package/dist/entries/autoStop.mjs +1 -2
  441. package/dist/entries/components/matrixPicker.cjs +1 -2
  442. package/dist/entries/components/matrixPicker.d.cts +2 -55
  443. package/dist/entries/components/matrixPicker.d.mts +2 -55
  444. package/dist/entries/components/matrixPicker.mjs +1 -2
  445. package/dist/entries/components/skillsOverlay.cjs +1 -4
  446. package/dist/entries/components/skillsOverlay.d.cts +2 -58
  447. package/dist/entries/components/skillsOverlay.d.mts +2 -58
  448. package/dist/entries/components/skillsOverlay.mjs +1 -4
  449. package/dist/entries/domains.cjs +1 -2
  450. package/dist/entries/domains.d.cts +2 -10
  451. package/dist/entries/domains.d.mts +2 -10
  452. package/dist/entries/domains.mjs +1 -2
  453. package/dist/entries/doom.cjs +1 -2
  454. package/dist/entries/doom.d.cts +2 -13
  455. package/dist/entries/doom.d.mts +2 -14
  456. package/dist/entries/doom.mjs +1 -2
  457. package/dist/entries/effort.cjs +1 -2
  458. package/dist/entries/effort.d.cts +2 -10
  459. package/dist/entries/effort.d.mts +2 -10
  460. package/dist/entries/effort.mjs +1 -2
  461. package/dist/entries/majorMode.cjs +1 -6
  462. package/dist/entries/majorMode.d.cts +2 -29
  463. package/dist/entries/majorMode.d.mts +2 -29
  464. package/dist/entries/majorMode.mjs +1 -6
  465. package/dist/entries/modeCatalog.cjs +1 -0
  466. package/dist/entries/modeCatalog.d.cts +2 -0
  467. package/dist/entries/modeCatalog.d.mts +2 -0
  468. package/dist/entries/modeCatalog.mjs +1 -0
  469. package/dist/entries/notifications.cjs +1 -2
  470. package/dist/entries/notifications.d.cts +2 -13
  471. package/dist/entries/notifications.d.mts +2 -13
  472. package/dist/entries/notifications.mjs +1 -2
  473. package/dist/entries/ollamaProvider.cjs +1 -2
  474. package/dist/entries/ollamaProvider.d.cts +2 -6
  475. package/dist/entries/ollamaProvider.d.mts +2 -7
  476. package/dist/entries/ollamaProvider.mjs +1 -2
  477. package/dist/entries/persona.cjs +1 -2
  478. package/dist/entries/persona.d.cts +2 -14
  479. package/dist/entries/persona.d.mts +2 -15
  480. package/dist/entries/persona.mjs +1 -2
  481. package/dist/entries/profile.cjs +1 -3
  482. package/dist/entries/profile.d.cts +2 -16
  483. package/dist/entries/profile.d.mts +2 -16
  484. package/dist/entries/profile.mjs +1 -3
  485. package/dist/entries/repositoryHooks.cjs +1 -9
  486. package/dist/entries/repositoryHooks.d.cts +2 -7
  487. package/dist/entries/repositoryHooks.d.mts +2 -8
  488. package/dist/entries/repositoryHooks.mjs +1 -9
  489. package/dist/entries/skills.cjs +1 -2
  490. package/dist/entries/skills.d.cts +2 -34
  491. package/dist/entries/skills.d.mts +2 -34
  492. package/dist/entries/skills.mjs +1 -2
  493. package/dist/entries/styleSystem.cjs +1 -4
  494. package/dist/entries/styleSystem.d.cts +2 -32
  495. package/dist/entries/styleSystem.d.mts +2 -32
  496. package/dist/entries/styleSystem.mjs +1 -4
  497. package/dist/extensions/entries/autoStop.cjs +2 -0
  498. package/dist/extensions/entries/autoStop.cjs.map +1 -0
  499. package/dist/extensions/entries/autoStop.d.cts +7 -0
  500. package/dist/extensions/entries/autoStop.d.cts.map +1 -0
  501. package/dist/extensions/entries/autoStop.d.mts +7 -0
  502. package/dist/extensions/entries/autoStop.d.mts.map +1 -0
  503. package/dist/extensions/entries/autoStop.mjs +2 -0
  504. package/dist/extensions/entries/autoStop.mjs.map +1 -0
  505. package/dist/extensions/entries/cacheOptimizer.mjs +2 -0
  506. package/dist/extensions/entries/cacheOptimizer.mjs.map +1 -0
  507. package/dist/extensions/entries/components/matrixPicker.cjs +2 -0
  508. package/dist/extensions/entries/components/matrixPicker.cjs.map +1 -0
  509. package/dist/extensions/entries/components/matrixPicker.d.cts +55 -0
  510. package/dist/extensions/entries/components/matrixPicker.d.cts.map +1 -0
  511. package/dist/extensions/entries/components/matrixPicker.d.mts +55 -0
  512. package/dist/extensions/entries/components/matrixPicker.d.mts.map +1 -0
  513. package/dist/extensions/entries/components/matrixPicker.mjs +2 -0
  514. package/dist/extensions/entries/components/matrixPicker.mjs.map +1 -0
  515. package/dist/extensions/entries/components/skillsOverlay.cjs +4 -0
  516. package/dist/extensions/entries/components/skillsOverlay.cjs.map +1 -0
  517. package/dist/extensions/entries/components/skillsOverlay.d.cts +58 -0
  518. package/dist/extensions/entries/components/skillsOverlay.d.cts.map +1 -0
  519. package/dist/extensions/entries/components/skillsOverlay.d.mts +58 -0
  520. package/dist/extensions/entries/components/skillsOverlay.d.mts.map +1 -0
  521. package/dist/extensions/entries/components/skillsOverlay.mjs +4 -0
  522. package/dist/extensions/entries/components/skillsOverlay.mjs.map +1 -0
  523. package/dist/extensions/entries/domains.cjs +2 -0
  524. package/dist/extensions/entries/domains.cjs.map +1 -0
  525. package/dist/extensions/entries/domains.d.cts +18 -0
  526. package/dist/extensions/entries/domains.d.cts.map +1 -0
  527. package/dist/extensions/entries/domains.d.mts +18 -0
  528. package/dist/extensions/entries/domains.d.mts.map +1 -0
  529. package/dist/extensions/entries/domains.mjs +2 -0
  530. package/dist/extensions/entries/domains.mjs.map +1 -0
  531. package/dist/extensions/entries/doom.cjs +2 -0
  532. package/dist/extensions/entries/doom.cjs.map +1 -0
  533. package/dist/extensions/entries/doom.d.cts +14 -0
  534. package/dist/extensions/entries/doom.d.cts.map +1 -0
  535. package/dist/extensions/entries/doom.d.mts +14 -0
  536. package/dist/extensions/entries/doom.d.mts.map +1 -0
  537. package/dist/extensions/entries/doom.mjs +2 -0
  538. package/dist/extensions/entries/doom.mjs.map +1 -0
  539. package/dist/extensions/entries/effort.cjs +2 -0
  540. package/dist/extensions/entries/effort.cjs.map +1 -0
  541. package/dist/extensions/entries/effort.d.cts +10 -0
  542. package/dist/extensions/entries/effort.d.cts.map +1 -0
  543. package/dist/extensions/entries/effort.d.mts +10 -0
  544. package/dist/extensions/entries/effort.d.mts.map +1 -0
  545. package/dist/extensions/entries/effort.mjs +2 -0
  546. package/dist/extensions/entries/effort.mjs.map +1 -0
  547. package/dist/extensions/entries/majorMode.cjs +6 -0
  548. package/dist/extensions/entries/majorMode.cjs.map +1 -0
  549. package/dist/extensions/entries/majorMode.d.cts +27 -0
  550. package/dist/extensions/entries/majorMode.d.cts.map +1 -0
  551. package/dist/extensions/entries/majorMode.d.mts +27 -0
  552. package/dist/extensions/entries/majorMode.d.mts.map +1 -0
  553. package/dist/extensions/entries/majorMode.mjs +6 -0
  554. package/dist/extensions/entries/majorMode.mjs.map +1 -0
  555. package/dist/extensions/entries/modeCatalog.cjs +2 -0
  556. package/dist/extensions/entries/modeCatalog.cjs.map +1 -0
  557. package/dist/extensions/entries/modeCatalog.d.cts +7 -0
  558. package/dist/extensions/entries/modeCatalog.d.cts.map +1 -0
  559. package/dist/extensions/entries/modeCatalog.d.mts +7 -0
  560. package/dist/extensions/entries/modeCatalog.d.mts.map +1 -0
  561. package/dist/extensions/entries/modeCatalog.mjs +2 -0
  562. package/dist/extensions/entries/modeCatalog.mjs.map +1 -0
  563. package/dist/extensions/entries/notifications.cjs +2 -0
  564. package/dist/extensions/entries/notifications.cjs.map +1 -0
  565. package/dist/extensions/entries/notifications.d.cts +14 -0
  566. package/dist/extensions/entries/notifications.d.cts.map +1 -0
  567. package/dist/extensions/entries/notifications.d.mts +14 -0
  568. package/dist/extensions/entries/notifications.d.mts.map +1 -0
  569. package/dist/extensions/entries/notifications.mjs +2 -0
  570. package/dist/extensions/entries/notifications.mjs.map +1 -0
  571. package/dist/extensions/entries/ollamaProvider.cjs +2 -0
  572. package/dist/extensions/entries/ollamaProvider.cjs.map +1 -0
  573. package/dist/extensions/entries/ollamaProvider.d.cts +7 -0
  574. package/dist/extensions/entries/ollamaProvider.d.cts.map +1 -0
  575. package/dist/extensions/entries/ollamaProvider.d.mts +7 -0
  576. package/dist/extensions/entries/ollamaProvider.d.mts.map +1 -0
  577. package/dist/extensions/entries/ollamaProvider.mjs +2 -0
  578. package/dist/extensions/entries/ollamaProvider.mjs.map +1 -0
  579. package/dist/extensions/entries/persona.cjs +2 -0
  580. package/dist/extensions/entries/persona.cjs.map +1 -0
  581. package/dist/extensions/entries/persona.d.cts +15 -0
  582. package/dist/extensions/entries/persona.d.cts.map +1 -0
  583. package/dist/extensions/entries/persona.d.mts +15 -0
  584. package/dist/extensions/entries/persona.d.mts.map +1 -0
  585. package/dist/extensions/entries/persona.mjs +2 -0
  586. package/dist/extensions/entries/persona.mjs.map +1 -0
  587. package/dist/extensions/entries/profile.cjs +3 -0
  588. package/dist/extensions/entries/profile.cjs.map +1 -0
  589. package/dist/extensions/entries/profile.d.cts +18 -0
  590. package/dist/extensions/entries/profile.d.cts.map +1 -0
  591. package/dist/extensions/entries/profile.d.mts +18 -0
  592. package/dist/extensions/entries/profile.d.mts.map +1 -0
  593. package/dist/extensions/entries/profile.mjs +3 -0
  594. package/dist/extensions/entries/profile.mjs.map +1 -0
  595. package/dist/extensions/entries/repositoryHooks.cjs +9 -0
  596. package/dist/extensions/entries/repositoryHooks.cjs.map +1 -0
  597. package/dist/extensions/entries/repositoryHooks.d.cts +8 -0
  598. package/dist/extensions/entries/repositoryHooks.d.cts.map +1 -0
  599. package/dist/extensions/entries/repositoryHooks.d.mts +8 -0
  600. package/dist/extensions/entries/repositoryHooks.d.mts.map +1 -0
  601. package/dist/extensions/entries/repositoryHooks.mjs +9 -0
  602. package/dist/extensions/entries/repositoryHooks.mjs.map +1 -0
  603. package/dist/extensions/entries/shellTitleController.cjs +27 -0
  604. package/dist/extensions/entries/shellTitleController.cjs.map +1 -0
  605. package/dist/extensions/entries/shellTitleController.d.cts +11 -0
  606. package/dist/extensions/entries/shellTitleController.d.cts.map +1 -0
  607. package/dist/extensions/entries/shellTitleController.d.mts +11 -0
  608. package/dist/extensions/entries/shellTitleController.d.mts.map +1 -0
  609. package/dist/extensions/entries/shellTitleController.mjs +27 -0
  610. package/dist/extensions/entries/shellTitleController.mjs.map +1 -0
  611. package/dist/extensions/entries/skills.cjs +4 -0
  612. package/dist/extensions/entries/skills.cjs.map +1 -0
  613. package/dist/extensions/entries/skills.d.cts +34 -0
  614. package/dist/extensions/entries/skills.d.cts.map +1 -0
  615. package/dist/extensions/entries/skills.d.mts +34 -0
  616. package/dist/extensions/entries/skills.d.mts.map +1 -0
  617. package/dist/extensions/entries/skills.mjs +4 -0
  618. package/dist/extensions/entries/skills.mjs.map +1 -0
  619. package/dist/extensions/entries/styleSystem.cjs +4 -0
  620. package/dist/extensions/entries/styleSystem.cjs.map +1 -0
  621. package/dist/extensions/entries/styleSystem.d.cts +32 -0
  622. package/dist/extensions/entries/styleSystem.d.cts.map +1 -0
  623. package/dist/extensions/entries/styleSystem.d.mts +32 -0
  624. package/dist/extensions/entries/styleSystem.d.mts.map +1 -0
  625. package/dist/extensions/entries/styleSystem.mjs +4 -0
  626. package/dist/{entries/styleSystem.cjs.map → extensions/entries/styleSystem.mjs.map} +1 -1
  627. package/dist/extensions/pi.cjs +1 -0
  628. package/dist/extensions/pi.d.cts +2 -0
  629. package/dist/extensions/pi.d.mts +2 -0
  630. package/dist/extensions/pi.mjs +1 -0
  631. package/dist/extensions/services/domainSwitchHandoff.cjs +2 -0
  632. package/dist/extensions/services/domainSwitchHandoff.cjs.map +1 -0
  633. package/dist/extensions/services/domainSwitchHandoff.mjs +2 -0
  634. package/dist/extensions/services/domainSwitchHandoff.mjs.map +1 -0
  635. package/dist/index.cjs +1 -1
  636. package/dist/index.d.cts +33 -29
  637. package/dist/index.d.mts +33 -29
  638. package/dist/index.mjs +1 -1
  639. package/dist/logSinkTelemetry.cjs +1 -2
  640. package/dist/logSinkTelemetry.d.cts +2 -51
  641. package/dist/logSinkTelemetry.d.mts +2 -51
  642. package/dist/logSinkTelemetry.mjs +1 -2
  643. package/dist/pi-cache-optimizer-D9beVnnH.mjs +50 -0
  644. package/dist/pi-cache-optimizer-D9beVnnH.mjs.map +1 -0
  645. package/dist/schemas/domainVoiceTools.cjs +2 -0
  646. package/dist/schemas/domainVoiceTools.cjs.map +1 -0
  647. package/dist/schemas/domainVoiceTools.mjs +2 -0
  648. package/dist/schemas/domainVoiceTools.mjs.map +1 -0
  649. package/dist/schemas/majorModeVoiceTools.cjs +2 -0
  650. package/dist/schemas/majorModeVoiceTools.cjs.map +1 -0
  651. package/dist/schemas/majorModeVoiceTools.mjs +2 -0
  652. package/dist/schemas/majorModeVoiceTools.mjs.map +1 -0
  653. package/dist/services/compatibility/antigravity.cjs +1 -2
  654. package/dist/services/compatibility/antigravity.d.cts +2 -11
  655. package/dist/services/compatibility/antigravity.d.mts +2 -11
  656. package/dist/services/compatibility/antigravity.mjs +1 -2
  657. package/dist/services/compatibility/codex.cjs +1 -2
  658. package/dist/services/compatibility/codex.d.cts +2 -19
  659. package/dist/services/compatibility/codex.d.mts +2 -19
  660. package/dist/services/compatibility/codex.mjs +1 -2
  661. package/dist/services/compatibility/index.cjs +1 -2
  662. package/dist/services/compatibility/index.d.cts +6 -16
  663. package/dist/services/compatibility/index.d.mts +6 -16
  664. package/dist/services/compatibility/index.mjs +1 -2
  665. package/dist/services/compatibility/process.cjs +1 -2
  666. package/dist/services/compatibility/process.d.cts +2 -35
  667. package/dist/services/compatibility/process.d.mts +2 -35
  668. package/dist/services/compatibility/process.mjs +1 -2
  669. package/dist/services/compatibility/shared.cjs +1 -2
  670. package/dist/services/compatibility/shared.d.cts +2 -33
  671. package/dist/services/compatibility/shared.d.mts +2 -33
  672. package/dist/services/compatibility/shared.mjs +1 -2
  673. package/dist/services/compatibilityContext.cjs +1 -2
  674. package/dist/services/compatibilityContext.d.cts +2 -23
  675. package/dist/services/compatibilityContext.d.mts +2 -23
  676. package/dist/services/compatibilityContext.mjs +1 -2
  677. package/dist/services/composer.cjs +1 -2
  678. package/dist/services/composer.d.cts +4 -135
  679. package/dist/services/composer.d.mts +4 -135
  680. package/dist/services/composer.mjs +1 -2
  681. package/dist/services/config/index.cjs +1 -0
  682. package/dist/services/config/index.d.cts +7 -0
  683. package/dist/services/config/index.d.mts +7 -0
  684. package/dist/services/config/index.mjs +1 -0
  685. package/dist/services/config/projectTrust.cjs +2 -0
  686. package/dist/services/config/projectTrust.cjs.map +1 -0
  687. package/dist/services/config/projectTrust.d.cts +14 -0
  688. package/dist/services/config/projectTrust.d.cts.map +1 -0
  689. package/dist/services/config/projectTrust.d.mts +14 -0
  690. package/dist/services/config/projectTrust.d.mts.map +1 -0
  691. package/dist/services/config/projectTrust.mjs +2 -0
  692. package/dist/services/config/projectTrust.mjs.map +1 -0
  693. package/dist/services/extensionAssembler.cjs +1 -1
  694. package/dist/services/extensionAssembler.cjs.map +1 -1
  695. package/dist/services/extensionAssembler.d.cts +13 -6
  696. package/dist/services/extensionAssembler.d.cts.map +1 -1
  697. package/dist/services/extensionAssembler.d.mts +13 -6
  698. package/dist/services/extensionAssembler.d.mts.map +1 -1
  699. package/dist/services/extensionAssembler.mjs +1 -1
  700. package/dist/services/extensionAssembler.mjs.map +1 -1
  701. package/dist/services/harnessContext.cjs +1 -2
  702. package/dist/services/harnessContext.d.cts +2 -61
  703. package/dist/services/harnessContext.d.mts +2 -61
  704. package/dist/services/harnessContext.mjs +1 -2
  705. package/dist/services/index.cjs +1 -1
  706. package/dist/services/index.d.cts +18 -14
  707. package/dist/services/index.d.mts +18 -14
  708. package/dist/services/index.mjs +1 -1
  709. package/dist/services/matrixSwitcher.cjs +1 -2
  710. package/dist/services/matrixSwitcher.d.cts +2 -46
  711. package/dist/services/matrixSwitcher.d.mts +2 -46
  712. package/dist/services/matrixSwitcher.mjs +1 -2
  713. package/dist/services/mcpFilter.cjs +1 -3
  714. package/dist/services/mcpFilter.d.cts +2 -40
  715. package/dist/services/mcpFilter.d.mts +2 -40
  716. package/dist/services/mcpFilter.mjs +1 -3
  717. package/dist/services/modeCatalog.cjs +2 -0
  718. package/dist/services/modeCatalog.cjs.map +1 -0
  719. package/dist/services/modeCatalog.d.cts +18 -0
  720. package/dist/services/modeCatalog.d.cts.map +1 -0
  721. package/dist/services/modeCatalog.d.mts +18 -0
  722. package/dist/services/modeCatalog.d.mts.map +1 -0
  723. package/dist/services/modeCatalog.mjs +2 -0
  724. package/dist/services/modeCatalog.mjs.map +1 -0
  725. package/dist/services/piSettings.cjs +1 -2
  726. package/dist/services/piSettings.d.cts +2 -24
  727. package/dist/services/piSettings.d.mts +2 -24
  728. package/dist/services/piSettings.mjs +1 -2
  729. package/dist/services/resourceCollector.cjs +1 -3
  730. package/dist/services/resourceCollector.d.cts +2 -23
  731. package/dist/services/resourceCollector.d.mts +2 -23
  732. package/dist/services/resourceCollector.mjs +1 -3
  733. package/dist/services/skillCatalog.cjs +1 -2
  734. package/dist/services/skillCatalog.d.cts +2 -56
  735. package/dist/services/skillCatalog.d.mts +2 -56
  736. package/dist/services/skillCatalog.mjs +1 -2
  737. package/dist/services/skillSources.cjs +1 -2
  738. package/dist/services/skillSources.d.cts +2 -24
  739. package/dist/services/skillSources.d.mts +2 -24
  740. package/dist/services/skillSources.mjs +1 -2
  741. package/dist/services/syncState.cjs +1 -2
  742. package/dist/services/syncState.d.cts +3 -133
  743. package/dist/services/syncState.d.mts +3 -133
  744. package/dist/services/syncState.mjs +1 -2
  745. package/dist/services/tools/toolNames.cjs +2 -0
  746. package/dist/services/tools/toolNames.cjs.map +1 -0
  747. package/dist/services/tools/toolNames.d.cts +25 -0
  748. package/dist/services/tools/toolNames.d.cts.map +1 -0
  749. package/dist/services/tools/toolNames.d.mts +25 -0
  750. package/dist/services/tools/toolNames.d.mts.map +1 -0
  751. package/dist/services/tools/toolNames.mjs +2 -0
  752. package/dist/services/tools/toolNames.mjs.map +1 -0
  753. package/dist/{interfaces → types/interfaces}/compatibility.d.cts +1 -1
  754. package/dist/types/interfaces/compatibility.d.cts.map +1 -0
  755. package/dist/{interfaces → types/interfaces}/compatibility.d.mts +1 -1
  756. package/dist/types/interfaces/compatibility.d.mts.map +1 -0
  757. package/dist/{interfaces → types/interfaces}/harness.d.cts +6 -2
  758. package/dist/types/interfaces/harness.d.cts.map +1 -0
  759. package/dist/{interfaces → types/interfaces}/harness.d.mts +6 -2
  760. package/dist/types/interfaces/harness.d.mts.map +1 -0
  761. package/dist/utils/index.cjs +1 -1
  762. package/dist/utils/index.d.cts +5 -5
  763. package/dist/utils/index.d.mts +5 -5
  764. package/dist/utils/index.mjs +1 -1
  765. package/dist/utils/json.cjs +1 -2
  766. package/dist/utils/json.d.cts +2 -23
  767. package/dist/utils/json.d.mts +2 -23
  768. package/dist/utils/json.mjs +1 -2
  769. package/dist/utils/moduleResolution.cjs +1 -2
  770. package/dist/utils/moduleResolution.d.cts +2 -56
  771. package/dist/utils/moduleResolution.d.mts +2 -56
  772. package/dist/utils/moduleResolution.mjs +1 -2
  773. package/dist/utils/repository.cjs +1 -2
  774. package/dist/utils/repository.d.cts +2 -21
  775. package/dist/utils/repository.d.mts +2 -21
  776. package/dist/utils/repository.mjs +1 -2
  777. package/dist/utils/toolNames.cjs +1 -2
  778. package/dist/utils/toolNames.d.cts +2 -25
  779. package/dist/utils/toolNames.d.mts +2 -25
  780. package/dist/utils/toolNames.mjs +1 -2
  781. package/package.json +59 -37
  782. package/dist/cli/cliApp.cjs.map +0 -1
  783. package/dist/cli/cliApp.d.cts.map +0 -1
  784. package/dist/cli/cliApp.d.mts.map +0 -1
  785. package/dist/cli/cliApp.mjs.map +0 -1
  786. package/dist/cli/compatibilityOptions.cjs.map +0 -1
  787. package/dist/cli/compatibilityOptions.d.cts.map +0 -1
  788. package/dist/cli/compatibilityOptions.d.mts.map +0 -1
  789. package/dist/cli/compatibilityOptions.mjs.map +0 -1
  790. package/dist/cli/help.d.cts.map +0 -1
  791. package/dist/cli/help.d.mts.map +0 -1
  792. package/dist/cli/matrixOptions.cjs.map +0 -1
  793. package/dist/cli/matrixOptions.d.cts.map +0 -1
  794. package/dist/cli/matrixOptions.d.mts.map +0 -1
  795. package/dist/cli/matrixOptions.mjs.map +0 -1
  796. package/dist/cli/options.cjs.map +0 -1
  797. package/dist/cli/options.d.cts.map +0 -1
  798. package/dist/cli/options.d.mts.map +0 -1
  799. package/dist/cli/options.mjs.map +0 -1
  800. package/dist/commands/buildCommand.d.cts +0 -23
  801. package/dist/commands/buildCommand.d.cts.map +0 -1
  802. package/dist/commands/buildCommand.d.mts +0 -23
  803. package/dist/commands/buildCommand.d.mts.map +0 -1
  804. package/dist/config/harnessState.cjs.map +0 -1
  805. package/dist/config/harnessState.d.cts.map +0 -1
  806. package/dist/config/harnessState.d.mts.map +0 -1
  807. package/dist/config/harnessState.mjs.map +0 -1
  808. package/dist/config/projectTrust.cjs.map +0 -1
  809. package/dist/config/projectTrust.d.cts.map +0 -1
  810. package/dist/config/projectTrust.d.mts.map +0 -1
  811. package/dist/config/projectTrust.mjs.map +0 -1
  812. package/dist/entries/addDirCompatibility.cjs +0 -2
  813. package/dist/entries/addDirCompatibility.cjs.map +0 -1
  814. package/dist/entries/addDirCompatibility.d.cts +0 -13
  815. package/dist/entries/addDirCompatibility.d.cts.map +0 -1
  816. package/dist/entries/addDirCompatibility.d.mts +0 -14
  817. package/dist/entries/addDirCompatibility.d.mts.map +0 -1
  818. package/dist/entries/addDirCompatibility.mjs +0 -2
  819. package/dist/entries/addDirCompatibility.mjs.map +0 -1
  820. package/dist/entries/autoStop.cjs.map +0 -1
  821. package/dist/entries/autoStop.d.cts.map +0 -1
  822. package/dist/entries/autoStop.d.mts.map +0 -1
  823. package/dist/entries/autoStop.mjs.map +0 -1
  824. package/dist/entries/components/matrixPicker.cjs.map +0 -1
  825. package/dist/entries/components/matrixPicker.d.cts.map +0 -1
  826. package/dist/entries/components/matrixPicker.d.mts.map +0 -1
  827. package/dist/entries/components/matrixPicker.mjs.map +0 -1
  828. package/dist/entries/components/skillsOverlay.cjs.map +0 -1
  829. package/dist/entries/components/skillsOverlay.d.cts.map +0 -1
  830. package/dist/entries/components/skillsOverlay.d.mts.map +0 -1
  831. package/dist/entries/components/skillsOverlay.mjs.map +0 -1
  832. package/dist/entries/domains.cjs.map +0 -1
  833. package/dist/entries/domains.d.cts.map +0 -1
  834. package/dist/entries/domains.d.mts.map +0 -1
  835. package/dist/entries/domains.mjs.map +0 -1
  836. package/dist/entries/doom.cjs.map +0 -1
  837. package/dist/entries/doom.d.cts.map +0 -1
  838. package/dist/entries/doom.d.mts.map +0 -1
  839. package/dist/entries/doom.mjs.map +0 -1
  840. package/dist/entries/effort.cjs.map +0 -1
  841. package/dist/entries/effort.d.cts.map +0 -1
  842. package/dist/entries/effort.d.mts.map +0 -1
  843. package/dist/entries/effort.mjs.map +0 -1
  844. package/dist/entries/majorMode.cjs.map +0 -1
  845. package/dist/entries/majorMode.d.cts.map +0 -1
  846. package/dist/entries/majorMode.d.mts.map +0 -1
  847. package/dist/entries/majorMode.mjs.map +0 -1
  848. package/dist/entries/notifications.cjs.map +0 -1
  849. package/dist/entries/notifications.d.cts.map +0 -1
  850. package/dist/entries/notifications.d.mts.map +0 -1
  851. package/dist/entries/notifications.mjs.map +0 -1
  852. package/dist/entries/ollamaProvider.cjs.map +0 -1
  853. package/dist/entries/ollamaProvider.d.cts.map +0 -1
  854. package/dist/entries/ollamaProvider.d.mts.map +0 -1
  855. package/dist/entries/ollamaProvider.mjs.map +0 -1
  856. package/dist/entries/persona.cjs.map +0 -1
  857. package/dist/entries/persona.d.cts.map +0 -1
  858. package/dist/entries/persona.d.mts.map +0 -1
  859. package/dist/entries/persona.mjs.map +0 -1
  860. package/dist/entries/profile.cjs.map +0 -1
  861. package/dist/entries/profile.d.cts.map +0 -1
  862. package/dist/entries/profile.d.mts.map +0 -1
  863. package/dist/entries/profile.mjs.map +0 -1
  864. package/dist/entries/repositoryHooks.cjs.map +0 -1
  865. package/dist/entries/repositoryHooks.d.cts.map +0 -1
  866. package/dist/entries/repositoryHooks.d.mts.map +0 -1
  867. package/dist/entries/repositoryHooks.mjs.map +0 -1
  868. package/dist/entries/skills.cjs.map +0 -1
  869. package/dist/entries/skills.d.cts.map +0 -1
  870. package/dist/entries/skills.d.mts.map +0 -1
  871. package/dist/entries/skills.mjs.map +0 -1
  872. package/dist/entries/styleSystem.d.cts.map +0 -1
  873. package/dist/entries/styleSystem.d.mts.map +0 -1
  874. package/dist/entries/styleSystem.mjs.map +0 -1
  875. package/dist/interfaces/compatibility.d.cts.map +0 -1
  876. package/dist/interfaces/compatibility.d.mts.map +0 -1
  877. package/dist/interfaces/harness.d.cts.map +0 -1
  878. package/dist/interfaces/harness.d.mts.map +0 -1
  879. package/dist/logSinkTelemetry.cjs.map +0 -1
  880. package/dist/logSinkTelemetry.d.cts.map +0 -1
  881. package/dist/logSinkTelemetry.d.mts.map +0 -1
  882. package/dist/logSinkTelemetry.mjs.map +0 -1
  883. package/dist/node_modules/.pnpm/@juicesharp_rpiv-ask-user-question@2.2.0_@earendil-works_pi-coding-agent@0.84.1_support_6ba1249e24a50b62791c1c91c9f324c6/node_modules/@juicesharp/rpiv-ask-user-question/events.cjs +0 -2
  884. package/dist/node_modules/.pnpm/@juicesharp_rpiv-ask-user-question@2.2.0_@earendil-works_pi-coding-agent@0.84.1_support_6ba1249e24a50b62791c1c91c9f324c6/node_modules/@juicesharp/rpiv-ask-user-question/events.cjs.map +0 -1
  885. package/dist/node_modules/.pnpm/@juicesharp_rpiv-ask-user-question@2.2.0_@earendil-works_pi-coding-agent@0.84.1_support_6ba1249e24a50b62791c1c91c9f324c6/node_modules/@juicesharp/rpiv-ask-user-question/events.mjs +0 -2
  886. package/dist/node_modules/.pnpm/@juicesharp_rpiv-ask-user-question@2.2.0_@earendil-works_pi-coding-agent@0.84.1_support_6ba1249e24a50b62791c1c91c9f324c6/node_modules/@juicesharp/rpiv-ask-user-question/events.mjs.map +0 -1
  887. package/dist/services/compatibility/index.cjs.map +0 -1
  888. package/dist/services/compatibility/index.mjs.map +0 -1
  889. package/dist/services/compatibilityContext.cjs.map +0 -1
  890. package/dist/services/compatibilityContext.mjs.map +0 -1
  891. package/dist/services/composer.cjs.map +0 -1
  892. package/dist/services/composer.d.cts.map +0 -1
  893. package/dist/services/composer.d.mts.map +0 -1
  894. package/dist/services/composer.mjs.map +0 -1
  895. package/dist/services/extensionCompiler.cjs +0 -3
  896. package/dist/services/extensionCompiler.cjs.map +0 -1
  897. package/dist/services/extensionCompiler.mjs +0 -3
  898. package/dist/services/extensionCompiler.mjs.map +0 -1
  899. package/dist/services/harnessContext.cjs.map +0 -1
  900. package/dist/services/harnessContext.mjs.map +0 -1
  901. package/dist/services/matrixSwitcher.cjs.map +0 -1
  902. package/dist/services/matrixSwitcher.mjs.map +0 -1
  903. package/dist/services/mcpFilter.cjs.map +0 -1
  904. package/dist/services/mcpFilter.d.cts.map +0 -1
  905. package/dist/services/mcpFilter.d.mts.map +0 -1
  906. package/dist/services/mcpFilter.mjs.map +0 -1
  907. package/dist/services/piSettings.cjs.map +0 -1
  908. package/dist/services/piSettings.d.cts.map +0 -1
  909. package/dist/services/piSettings.d.mts.map +0 -1
  910. package/dist/services/piSettings.mjs.map +0 -1
  911. package/dist/services/resourceCollector.cjs.map +0 -1
  912. package/dist/services/resourceCollector.d.cts.map +0 -1
  913. package/dist/services/resourceCollector.d.mts.map +0 -1
  914. package/dist/services/resourceCollector.mjs.map +0 -1
  915. package/dist/services/runtimeBundle.cjs +0 -2
  916. package/dist/services/runtimeBundle.cjs.map +0 -1
  917. package/dist/services/runtimeBundle.d.cts.map +0 -1
  918. package/dist/services/runtimeBundle.d.mts.map +0 -1
  919. package/dist/services/runtimeBundle.mjs +0 -2
  920. package/dist/services/runtimeBundle.mjs.map +0 -1
  921. package/dist/services/skillCatalog.cjs.map +0 -1
  922. package/dist/services/skillCatalog.d.cts.map +0 -1
  923. package/dist/services/skillCatalog.d.mts.map +0 -1
  924. package/dist/services/skillCatalog.mjs.map +0 -1
  925. package/dist/services/syncState.cjs.map +0 -1
  926. package/dist/services/syncState.d.cts.map +0 -1
  927. package/dist/services/syncState.d.mts.map +0 -1
  928. package/dist/services/syncState.mjs.map +0 -1
  929. package/dist/utils/json.cjs.map +0 -1
  930. package/dist/utils/json.d.cts.map +0 -1
  931. package/dist/utils/json.d.mts.map +0 -1
  932. package/dist/utils/json.mjs.map +0 -1
  933. package/dist/utils/moduleResolution.cjs.map +0 -1
  934. package/dist/utils/moduleResolution.d.cts.map +0 -1
  935. package/dist/utils/moduleResolution.d.mts.map +0 -1
  936. package/dist/utils/moduleResolution.mjs.map +0 -1
  937. package/dist/utils/repository.cjs.map +0 -1
  938. package/dist/utils/repository.d.cts.map +0 -1
  939. package/dist/utils/repository.d.mts.map +0 -1
  940. package/dist/utils/repository.mjs.map +0 -1
  941. package/dist/utils/toolNames.cjs.map +0 -1
  942. package/dist/utils/toolNames.d.cts.map +0 -1
  943. package/dist/utils/toolNames.d.mts.map +0 -1
  944. package/dist/utils/toolNames.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compatibilityOptions.cjs","names":["resolveInheritedProfile","resolveInheritedMajorMode","matchesOption","REMOVED_TARGET_OPTION","MAJOR_MODE_OPTION","REMOVED_LAYER_OPTION","REMOVED_LAYERS_OPTION","readOption","parseMajorMode","PROFILE_OPTION","parseProfileValue","parseRequiredCsv","DOMAINS_OPTION","DOMAIN_OPTION","defaultDomainsForMajorMode","resolveAdditionalDirectories"],"sources":["../../../src/commands/cli/compatibilityOptions.ts"],"sourcesContent":["import type { CompatibilityProvider, ParsedCompatibilityArgs } from '../../types/interfaces/index.ts';\nimport {\n DOMAIN_OPTION,\n DOMAINS_OPTION,\n defaultDomainsForMajorMode,\n MAJOR_MODE_OPTION,\n matchesOption,\n PROFILE_OPTION,\n parseMajorMode,\n parseProfileValue,\n parseRequiredCsv,\n REMOVED_LAYER_OPTION,\n REMOVED_LAYERS_OPTION,\n REMOVED_TARGET_OPTION,\n readOption,\n resolveAdditionalDirectories,\n resolveInheritedMajorMode,\n resolveInheritedProfile,\n} from './matrixOptions.ts';\n\nconst COMPATIBILITY_PROVIDERS = new Set<CompatibilityProvider>(['antigravity', 'claude', 'codex']);\nconst PROVIDER_ARGUMENT_SEPARATOR = '--';\n\nexport function parseCompatibilityProvider(value: string | undefined): CompatibilityProvider {\n if (!value || !COMPATIBILITY_PROVIDERS.has(value as CompatibilityProvider)) {\n throw new Error(`compat requires one of: ${[...COMPATIBILITY_PROVIDERS].join(', ')}`);\n }\n return value as CompatibilityProvider;\n}\n\n/**\n * Parses only the matrix options shared by every frontend.\n *\n * Every other argument remains untouched for the selected provider. In\n * particular, Pi aliases such as --effort and --output-format are not rewritten.\n * Use -- to pass a provider-native --profile, --domain, or --major-mode option.\n */\nexport function parseCompatibilityArgs(\n args: string[],\n environment: NodeJS.ProcessEnv = process.env,\n currentDirectory = process.cwd(),\n defaultMajorMode?: string,\n defaultDomains?: readonly string[],\n): ParsedCompatibilityArgs {\n let profile = resolveInheritedProfile(environment);\n let profileProvided = false;\n let majorMode = resolveInheritedMajorMode(environment, defaultMajorMode);\n let majorModeProvided = false;\n const domains: string[] = [];\n const providerArgs: string[] = [];\n\n for (let index = 0; index < args.length; index += 1) {\n const arg = args[index]!;\n if (arg === PROVIDER_ARGUMENT_SEPARATOR) {\n providerArgs.push(...args.slice(index + 1));\n break;\n }\n if (matchesOption(arg, REMOVED_TARGET_OPTION)) {\n throw new Error(`${REMOVED_TARGET_OPTION} was replaced by ${MAJOR_MODE_OPTION}`);\n }\n if (matchesOption(arg, REMOVED_LAYER_OPTION)) {\n throw new Error(`${REMOVED_LAYER_OPTION} was replaced by ${MAJOR_MODE_OPTION}`);\n }\n if (matchesOption(arg, REMOVED_LAYERS_OPTION)) {\n throw new Error(`${REMOVED_LAYERS_OPTION} was removed; select one major mode with ${MAJOR_MODE_OPTION}`);\n }\n\n const majorModeMatch = readOption(args, index, MAJOR_MODE_OPTION);\n if (majorModeMatch) {\n if (majorModeProvided) throw new Error(`${MAJOR_MODE_OPTION} can only be provided once`);\n majorMode = parseMajorMode(majorModeMatch.value, MAJOR_MODE_OPTION);\n majorModeProvided = true;\n index = majorModeMatch.nextIndex;\n continue;\n }\n\n const profileMatch = readOption(args, index, PROFILE_OPTION);\n if (profileMatch) {\n if (profileProvided) throw new Error(`${PROFILE_OPTION} can only be provided once`);\n profile = parseProfileValue(profileMatch.value, PROFILE_OPTION);\n profileProvided = true;\n index = profileMatch.nextIndex;\n continue;\n }\n\n const domainMatch = readOption(args, index, DOMAINS_OPTION) ?? readOption(args, index, DOMAIN_OPTION);\n if (domainMatch) {\n domains.push(\n ...parseRequiredCsv(domainMatch.value, matchesOption(arg, DOMAINS_OPTION) ? DOMAINS_OPTION : DOMAIN_OPTION),\n );\n index = domainMatch.nextIndex;\n continue;\n }\n\n providerArgs.push(arg);\n }\n\n if (domains.length === 0) domains.push(...defaultDomainsForMajorMode(majorMode, environment, defaultDomains));\n\n return {\n options: {\n currentDirectory,\n profile,\n domains,\n majorMode,\n providerArgs,\n additionalDirectories: [...new Set(resolveAdditionalDirectories(environment, currentDirectory))],\n },\n };\n}\n"],"mappings":"uCAoBM,EAA0B,IAAI,IAA2B,CAAC,cAAe,SAAU,QAAQ,CAAC,CAGlG,SAAgB,EAA2B,EAAkD,CAC3F,GAAI,CAAC,GAAS,CAAC,EAAwB,IAAI,EAA+B,CACxE,MAAU,MAAM,2BAA2B,CAAC,GAAG,EAAwB,CAAC,KAAK,KAAK,GAAG,CAEvF,OAAO,EAUT,SAAgB,EACd,EACA,EAAiC,QAAQ,IACzC,EAAmB,QAAQ,KAAK,CAChC,EACA,EACyB,CACzB,IAAI,EAAUA,EAAAA,wBAAwB,EAAY,CAC9C,EAAkB,GAClB,EAAYC,EAAAA,0BAA0B,EAAa,EAAiB,CACpE,EAAoB,GAClB,EAAoB,EAAE,CACtB,EAAyB,EAAE,CAEjC,IAAK,IAAI,EAAQ,EAAG,EAAQ,EAAK,OAAQ,GAAS,EAAG,CACnD,IAAM,EAAM,EAAK,GACjB,GAAI,IAAQ,KAA6B,CACvC,EAAa,KAAK,GAAG,EAAK,MAAM,EAAQ,EAAE,CAAC,CAC3C,MAEF,GAAIC,EAAAA,cAAc,EAAA,WAA2B,CAC3C,MAAU,MAAM,GAAGC,EAAAA,sBAAsB,mBAAmBC,EAAAA,oBAAoB,CAElF,GAAIF,EAAAA,cAAc,EAAA,UAA0B,CAC1C,MAAU,MAAM,GAAGG,EAAAA,qBAAqB,mBAAmBD,EAAAA,oBAAoB,CAEjF,GAAIF,EAAAA,cAAc,EAAA,WAA2B,CAC3C,MAAU,MAAM,GAAGI,EAAAA,sBAAsB,2CAA2CF,EAAAA,oBAAoB,CAG1G,IAAM,EAAiBG,EAAAA,WAAW,EAAM,EAAOH,EAAAA,kBAAkB,CACjE,GAAI,EAAgB,CAClB,GAAI,EAAmB,MAAU,MAAM,GAAGA,EAAAA,kBAAkB,4BAA4B,CACxF,EAAYI,EAAAA,eAAe,EAAe,MAAOJ,EAAAA,kBAAkB,CACnE,EAAoB,GACpB,EAAQ,EAAe,UACvB,SAGF,IAAM,EAAeG,EAAAA,WAAW,EAAM,EAAOE,EAAAA,eAAe,CAC5D,GAAI,EAAc,CAChB,GAAI,EAAiB,MAAU,MAAM,GAAGA,EAAAA,eAAe,4BAA4B,CACnF,EAAUC,EAAAA,kBAAkB,EAAa,MAAOD,EAAAA,eAAe,CAC/D,EAAkB,GAClB,EAAQ,EAAa,UACrB,SAGF,IAAM,EAAcF,EAAAA,WAAW,EAAM,EAAA,YAAsB,EAAIA,EAAAA,WAAW,EAAM,EAAA,WAAqB,CACrG,GAAI,EAAa,CACf,EAAQ,KACN,GAAGI,EAAAA,iBAAiB,EAAY,MAAOT,EAAAA,cAAc,EAAA,YAAoB,CAAGU,EAAAA,eAAiBC,EAAAA,cAAc,CAC5G,CACD,EAAQ,EAAY,UACpB,SAGF,EAAa,KAAK,EAAI,CAKxB,OAFI,EAAQ,SAAW,GAAG,EAAQ,KAAK,GAAGC,EAAAA,2BAA2B,EAAW,EAAa,EAAe,CAAC,CAEtG,CACL,QAAS,CACP,mBACA,UACA,UACA,YACA,eACA,sBAAuB,CAAC,GAAG,IAAI,IAAIC,EAAAA,6BAA6B,EAAa,EAAiB,CAAC,CAAC,CACjG,CACF"}
@@ -0,0 +1,15 @@
1
+ import { CompatibilityProvider, ParsedCompatibilityArgs } from "../../types/interfaces/compatibility.cjs";
2
+
3
+ //#region src/commands/cli/compatibilityOptions.d.ts
4
+ declare function parseCompatibilityProvider(value: string | undefined): CompatibilityProvider;
5
+ /**
6
+ * Parses only the matrix options shared by every frontend.
7
+ *
8
+ * Every other argument remains untouched for the selected provider. In
9
+ * particular, Pi aliases such as --effort and --output-format are not rewritten.
10
+ * Use -- to pass a provider-native --profile, --domain, or --major-mode option.
11
+ */
12
+ declare function parseCompatibilityArgs(args: string[], environment?: NodeJS.ProcessEnv, currentDirectory?: string, defaultMajorMode?: string, defaultDomains?: readonly string[]): ParsedCompatibilityArgs;
13
+ //#endregion
14
+ export { parseCompatibilityArgs, parseCompatibilityProvider };
15
+ //# sourceMappingURL=compatibilityOptions.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compatibilityOptions.d.cts","names":[],"sources":["../../../src/commands/cli/compatibilityOptions.ts"],"mappings":";;;iBAuBgB,0BAAA,CAA2B,KAAA,uBAA4B,qBAAA;;AAAvE;;;;;AAcA;iBAAgB,sBAAA,CACd,IAAA,YACA,WAAA,GAAa,MAAA,CAAO,UAAA,EACpB,gBAAA,WACA,gBAAA,WACA,cAAA,uBACC,uBAAA"}
@@ -0,0 +1,15 @@
1
+ import { CompatibilityProvider, ParsedCompatibilityArgs } from "../../types/interfaces/compatibility.mjs";
2
+
3
+ //#region src/commands/cli/compatibilityOptions.d.ts
4
+ declare function parseCompatibilityProvider(value: string | undefined): CompatibilityProvider;
5
+ /**
6
+ * Parses only the matrix options shared by every frontend.
7
+ *
8
+ * Every other argument remains untouched for the selected provider. In
9
+ * particular, Pi aliases such as --effort and --output-format are not rewritten.
10
+ * Use -- to pass a provider-native --profile, --domain, or --major-mode option.
11
+ */
12
+ declare function parseCompatibilityArgs(args: string[], environment?: NodeJS.ProcessEnv, currentDirectory?: string, defaultMajorMode?: string, defaultDomains?: readonly string[]): ParsedCompatibilityArgs;
13
+ //#endregion
14
+ export { parseCompatibilityArgs, parseCompatibilityProvider };
15
+ //# sourceMappingURL=compatibilityOptions.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compatibilityOptions.d.mts","names":[],"sources":["../../../src/commands/cli/compatibilityOptions.ts"],"mappings":";;;iBAuBgB,0BAAA,CAA2B,KAAA,uBAA4B,qBAAA;;AAAvE;;;;;AAcA;iBAAgB,sBAAA,CACd,IAAA,YACA,WAAA,GAAa,MAAA,CAAO,UAAA,EACpB,gBAAA,WACA,gBAAA,WACA,cAAA,uBACC,uBAAA"}
@@ -0,0 +1,2 @@
1
+ import{DOMAINS_OPTION as e,DOMAIN_OPTION as t,MAJOR_MODE_OPTION as n,PROFILE_OPTION as r,REMOVED_LAYERS_OPTION as i,REMOVED_LAYER_OPTION as a,REMOVED_TARGET_OPTION as o,defaultDomainsForMajorMode as s,matchesOption as c,parseMajorMode as l,parseProfileValue as u,parseRequiredCsv as d,readOption as f,resolveAdditionalDirectories as p,resolveInheritedMajorMode as m,resolveInheritedProfile as h}from"./matrixOptions.mjs";const g=new Set([`antigravity`,`claude`,`codex`]);function _(e){if(!e||!g.has(e))throw Error(`compat requires one of: ${[...g].join(`, `)}`);return e}function v(g,_=process.env,v=process.cwd(),y,b){let x=h(_),S=!1,C=m(_,y),w=!1,T=[],E=[];for(let s=0;s<g.length;s+=1){let p=g[s];if(p===`--`){E.push(...g.slice(s+1));break}if(c(p,`--target`))throw Error(`${o} was replaced by ${n}`);if(c(p,`--layer`))throw Error(`${a} was replaced by ${n}`);if(c(p,`--layers`))throw Error(`${i} was removed; select one major mode with ${n}`);let m=f(g,s,n);if(m){if(w)throw Error(`${n} can only be provided once`);C=l(m.value,n),w=!0,s=m.nextIndex;continue}let h=f(g,s,r);if(h){if(S)throw Error(`${r} can only be provided once`);x=u(h.value,r),S=!0,s=h.nextIndex;continue}let _=f(g,s,`--domains`)??f(g,s,`--domain`);if(_){T.push(...d(_.value,c(p,`--domains`)?e:t)),s=_.nextIndex;continue}E.push(p)}return T.length===0&&T.push(...s(C,_,b)),{options:{currentDirectory:v,profile:x,domains:T,majorMode:C,providerArgs:E,additionalDirectories:[...new Set(p(_,v))]}}}export{v as parseCompatibilityArgs,_ as parseCompatibilityProvider};
2
+ //# sourceMappingURL=compatibilityOptions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compatibilityOptions.mjs","names":[],"sources":["../../../src/commands/cli/compatibilityOptions.ts"],"sourcesContent":["import type { CompatibilityProvider, ParsedCompatibilityArgs } from '../../types/interfaces/index.ts';\nimport {\n DOMAIN_OPTION,\n DOMAINS_OPTION,\n defaultDomainsForMajorMode,\n MAJOR_MODE_OPTION,\n matchesOption,\n PROFILE_OPTION,\n parseMajorMode,\n parseProfileValue,\n parseRequiredCsv,\n REMOVED_LAYER_OPTION,\n REMOVED_LAYERS_OPTION,\n REMOVED_TARGET_OPTION,\n readOption,\n resolveAdditionalDirectories,\n resolveInheritedMajorMode,\n resolveInheritedProfile,\n} from './matrixOptions.ts';\n\nconst COMPATIBILITY_PROVIDERS = new Set<CompatibilityProvider>(['antigravity', 'claude', 'codex']);\nconst PROVIDER_ARGUMENT_SEPARATOR = '--';\n\nexport function parseCompatibilityProvider(value: string | undefined): CompatibilityProvider {\n if (!value || !COMPATIBILITY_PROVIDERS.has(value as CompatibilityProvider)) {\n throw new Error(`compat requires one of: ${[...COMPATIBILITY_PROVIDERS].join(', ')}`);\n }\n return value as CompatibilityProvider;\n}\n\n/**\n * Parses only the matrix options shared by every frontend.\n *\n * Every other argument remains untouched for the selected provider. In\n * particular, Pi aliases such as --effort and --output-format are not rewritten.\n * Use -- to pass a provider-native --profile, --domain, or --major-mode option.\n */\nexport function parseCompatibilityArgs(\n args: string[],\n environment: NodeJS.ProcessEnv = process.env,\n currentDirectory = process.cwd(),\n defaultMajorMode?: string,\n defaultDomains?: readonly string[],\n): ParsedCompatibilityArgs {\n let profile = resolveInheritedProfile(environment);\n let profileProvided = false;\n let majorMode = resolveInheritedMajorMode(environment, defaultMajorMode);\n let majorModeProvided = false;\n const domains: string[] = [];\n const providerArgs: string[] = [];\n\n for (let index = 0; index < args.length; index += 1) {\n const arg = args[index]!;\n if (arg === PROVIDER_ARGUMENT_SEPARATOR) {\n providerArgs.push(...args.slice(index + 1));\n break;\n }\n if (matchesOption(arg, REMOVED_TARGET_OPTION)) {\n throw new Error(`${REMOVED_TARGET_OPTION} was replaced by ${MAJOR_MODE_OPTION}`);\n }\n if (matchesOption(arg, REMOVED_LAYER_OPTION)) {\n throw new Error(`${REMOVED_LAYER_OPTION} was replaced by ${MAJOR_MODE_OPTION}`);\n }\n if (matchesOption(arg, REMOVED_LAYERS_OPTION)) {\n throw new Error(`${REMOVED_LAYERS_OPTION} was removed; select one major mode with ${MAJOR_MODE_OPTION}`);\n }\n\n const majorModeMatch = readOption(args, index, MAJOR_MODE_OPTION);\n if (majorModeMatch) {\n if (majorModeProvided) throw new Error(`${MAJOR_MODE_OPTION} can only be provided once`);\n majorMode = parseMajorMode(majorModeMatch.value, MAJOR_MODE_OPTION);\n majorModeProvided = true;\n index = majorModeMatch.nextIndex;\n continue;\n }\n\n const profileMatch = readOption(args, index, PROFILE_OPTION);\n if (profileMatch) {\n if (profileProvided) throw new Error(`${PROFILE_OPTION} can only be provided once`);\n profile = parseProfileValue(profileMatch.value, PROFILE_OPTION);\n profileProvided = true;\n index = profileMatch.nextIndex;\n continue;\n }\n\n const domainMatch = readOption(args, index, DOMAINS_OPTION) ?? readOption(args, index, DOMAIN_OPTION);\n if (domainMatch) {\n domains.push(\n ...parseRequiredCsv(domainMatch.value, matchesOption(arg, DOMAINS_OPTION) ? DOMAINS_OPTION : DOMAIN_OPTION),\n );\n index = domainMatch.nextIndex;\n continue;\n }\n\n providerArgs.push(arg);\n }\n\n if (domains.length === 0) domains.push(...defaultDomainsForMajorMode(majorMode, environment, defaultDomains));\n\n return {\n options: {\n currentDirectory,\n profile,\n domains,\n majorMode,\n providerArgs,\n additionalDirectories: [...new Set(resolveAdditionalDirectories(environment, currentDirectory))],\n },\n };\n}\n"],"mappings":"qaAoBA,MAAM,EAA0B,IAAI,IAA2B,CAAC,cAAe,SAAU,QAAQ,CAAC,CAGlG,SAAgB,EAA2B,EAAkD,CAC3F,GAAI,CAAC,GAAS,CAAC,EAAwB,IAAI,EAA+B,CACxE,MAAU,MAAM,2BAA2B,CAAC,GAAG,EAAwB,CAAC,KAAK,KAAK,GAAG,CAEvF,OAAO,EAUT,SAAgB,EACd,EACA,EAAiC,QAAQ,IACzC,EAAmB,QAAQ,KAAK,CAChC,EACA,EACyB,CACzB,IAAI,EAAU,EAAwB,EAAY,CAC9C,EAAkB,GAClB,EAAY,EAA0B,EAAa,EAAiB,CACpE,EAAoB,GAClB,EAAoB,EAAE,CACtB,EAAyB,EAAE,CAEjC,IAAK,IAAI,EAAQ,EAAG,EAAQ,EAAK,OAAQ,GAAS,EAAG,CACnD,IAAM,EAAM,EAAK,GACjB,GAAI,IAAQ,KAA6B,CACvC,EAAa,KAAK,GAAG,EAAK,MAAM,EAAQ,EAAE,CAAC,CAC3C,MAEF,GAAI,EAAc,EAAA,WAA2B,CAC3C,MAAU,MAAM,GAAG,EAAsB,mBAAmB,IAAoB,CAElF,GAAI,EAAc,EAAA,UAA0B,CAC1C,MAAU,MAAM,GAAG,EAAqB,mBAAmB,IAAoB,CAEjF,GAAI,EAAc,EAAA,WAA2B,CAC3C,MAAU,MAAM,GAAG,EAAsB,2CAA2C,IAAoB,CAG1G,IAAM,EAAiB,EAAW,EAAM,EAAO,EAAkB,CACjE,GAAI,EAAgB,CAClB,GAAI,EAAmB,MAAU,MAAM,GAAG,EAAkB,4BAA4B,CACxF,EAAY,EAAe,EAAe,MAAO,EAAkB,CACnE,EAAoB,GACpB,EAAQ,EAAe,UACvB,SAGF,IAAM,EAAe,EAAW,EAAM,EAAO,EAAe,CAC5D,GAAI,EAAc,CAChB,GAAI,EAAiB,MAAU,MAAM,GAAG,EAAe,4BAA4B,CACnF,EAAU,EAAkB,EAAa,MAAO,EAAe,CAC/D,EAAkB,GAClB,EAAQ,EAAa,UACrB,SAGF,IAAM,EAAc,EAAW,EAAM,EAAA,YAAsB,EAAI,EAAW,EAAM,EAAA,WAAqB,CACrG,GAAI,EAAa,CACf,EAAQ,KACN,GAAG,EAAiB,EAAY,MAAO,EAAc,EAAA,YAAoB,CAAG,EAAiB,EAAc,CAC5G,CACD,EAAQ,EAAY,UACpB,SAGF,EAAa,KAAK,EAAI,CAKxB,OAFI,EAAQ,SAAW,GAAG,EAAQ,KAAK,GAAG,EAA2B,EAAW,EAAa,EAAe,CAAC,CAEtG,CACL,QAAS,CACP,mBACA,UACA,UACA,YACA,eACA,sBAAuB,CAAC,GAAG,IAAI,IAAI,EAA6B,EAAa,EAAiB,CAAC,CAAC,CACjG,CACF"}
@@ -0,0 +1,68 @@
1
+ require(`../../_virtual/_rolldown/runtime.cjs`);const e=(0,require(`node:module`).createRequire)(require(`url`).pathToFileURL(__filename).href)(`../../../package.json`).version;function t(){process.stdout.write(`doompi
2
+
3
+ Usage: doompi [harness options] [Pi options] [prompt]
4
+ doompi init
5
+ doompi sync [matrix options] [--check]
6
+ doompi compat <codex|claude|antigravity> [matrix options] [provider arguments]
7
+
8
+ Initialization:
9
+ doompi init Fill missing files in ~/.pi/.doom
10
+ doompi sync Build, resolve, and register DoomPi in Pi user settings
11
+ doompi sync --check Exit non-zero when the synced config is out of date
12
+ or report legacy repository-local state to migrate
13
+
14
+ Sync artifacts live under ~/.pi/.doom/sync in a repository- and worktree-specific
15
+ namespace. Linked worktrees isolate state, dist, manifests, resources, and run
16
+ files while sharing immutable repository build objects. A legacy <repo>/.pi/doom
17
+ state is read only when no global state exists; run doompi sync to migrate it.
18
+ DoomPi never removes old or orphaned generated directories automatically.
19
+
20
+ After a sync, run pi directly. The synced session accepts --major-mode,
21
+ --domains, --profile, and --mute, and /mode, /domains, and /profile switch
22
+ without a restart. Selection defaults come from the selection block in
23
+ .doom/config.yaml.
24
+
25
+ Compatibility matrix options:
26
+ --profile <name> Persona and env from .doom/profiles.yaml
27
+ --domains <names> Comma-separated content domains
28
+ --major-mode <name> Named major mode from .doom/modes.yaml
29
+ -- Pass following matrix-named flags to the provider
30
+
31
+ All other compatibility arguments pass to the provider unchanged.
32
+
33
+ Harness options:
34
+ --major-mode <name> Named major mode from .doom/modes.yaml
35
+ (default: copilot). Not --mode: Pi owns that one.
36
+ --profile <name> Persona and env from .doom/profiles.yaml
37
+ --domains <names> Comma-separated domains (content: plugins, skills)
38
+ --no-domains Load no content domains
39
+ --explain Print the resolved matrix and exit
40
+ --emit-mcp <dir> Write the resolved MCP config to a directory and exit
41
+ --plugin-dir <path> Load an explicit plugin directory, repeatable
42
+ --add-dir <path> Add an accessible directory, repeatable
43
+ --preset <name> default, kimi, or ollama
44
+ --cwd <path> Run Pi in this directory
45
+ --automation Use print mode, JSON output, and project approval
46
+ --output-format vibe-lint Read a vibe-lint request from stdin and emit one JSON response
47
+ --mute Disable the notification extension for this run
48
+ --auto-stop Exit interactive Pi when the agent settles
49
+ --allow-protected-writes Allow writes to protected repository paths
50
+ --hooks, --no-hooks Enable or disable repository and plugin hooks
51
+ --mcp, --no-mcp Enable or disable MCP configuration
52
+ --agents, --no-agents Enable or disable spawnable agents
53
+ -h, --help Show harness help
54
+ -v, --version Show harness version
55
+
56
+ Interactive commands:
57
+ /loop Open the loop launcher picker
58
+ /loops List active loops and stop future scheduling
59
+ /workflow [on|off] Toggle workflow tools for the agent
60
+ /effort <level> Set and persist the thinking effort
61
+ /plan [on|off|status] Toggle repository read-only plan mode
62
+ /mode Pick a named major mode
63
+ /domains [names] Show the selected domains or pick a different set
64
+ /profile List or switch persona and environment profiles
65
+
66
+ All remaining options are passed to Pi.
67
+ `)}exports.HARNESS_VERSION=e,exports.printHelp=t;
68
+ //# sourceMappingURL=help.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"help.cjs","names":["require"],"sources":["../../src/cli/help.ts"],"sourcesContent":["import { createRequire } from 'node:module';\n\n// createRequire rather than a JSON import: this file runs both from src under\n// Node's strip-only TypeScript mode (how pi.sh starts it) and from dist, and\n// resolves package.json relative to itself in either case.\nconst require = createRequire(import.meta.url);\n\nexport const HARNESS_VERSION = (require('../../package.json') as { version: string }).version;\n\nexport function printHelp(): void {\n process.stdout.write(`doompi\n\nUsage: doompi [harness options] [Pi options] [prompt]\n doompi init\n doompi sync [matrix options] [--check]\n doompi build [matrix options]\n doompi compat <codex|claude|antigravity> [matrix options] [provider arguments]\n\nInitialization:\n doompi init Fill missing files in ~/.pi/.doom\n doompi sync Resolve the matrix into .pi so plain pi can load it\n doompi sync --check Exit non-zero when the synced config is out of date\n doompi build Prebuild startup caches without launching Pi\n\nAfter a sync, run pi directly. The synced session accepts --major-mode,\n--domains, --profile, and --mute, and /major-mode, /domains, and /profile switch\nwithout a restart. Selection defaults come from the selection block in\n.doom/config.yaml.\n\nCompatibility matrix options:\n --profile <name> Persona and env from .doom/profiles.yaml\n --domains <names> Comma-separated content domains\n --major-mode <name> Named major mode from .doom/modes.yaml\n -- Pass following matrix-named flags to the provider\n\nAll other compatibility arguments pass to the provider unchanged.\n\nHarness options:\n --major-mode <name> Named major mode from .doom/modes.yaml\n (default: copilot). Not --mode: Pi owns that one.\n --profile <name> Persona and env from .doom/profiles.yaml\n --domains <names> Comma-separated domains (content: plugins, skills)\n --no-domains Load no content domains\n --explain Print the resolved matrix and exit\n --emit-mcp <dir> Write the resolved MCP config to a directory and exit\n --plugin-dir <path> Load an explicit plugin directory, repeatable\n --add-dir <path> Add an accessible directory, repeatable\n --preset <name> default, kimi, or ollama\n --cwd <path> Run Pi in this directory\n --automation Use print mode, JSON output, and project approval\n --output-format vibe-lint Read a vibe-lint request from stdin and emit one JSON response\n --mute Disable the notification extension for this run\n --auto-stop Exit interactive Pi when the agent settles\n --allow-protected-writes Allow writes to protected repository paths\n --hooks, --no-hooks Enable or disable repository and plugin hooks\n --mcp, --no-mcp Enable or disable MCP configuration\n --agents, --no-agents Enable or disable spawnable agents\n -h, --help Show harness help\n -v, --version Show harness version\n\nInteractive commands:\n /loop Open the loop launcher picker\n /loops List active loops and stop future scheduling\n /workflow [on|off] Toggle workflow tools for the agent\n /effort <level> Set and persist the thinking effort\n /plan [on|off|status] Toggle repository read-only plan mode\n /major-mode Pick a named major mode\n /domains [names] Show the selected domains or pick a different set\n /profile List or switch persona and environment profiles\n\nAll remaining options are passed to Pi.\n`);\n}\n"],"mappings":"gHAOA,MAAa,GAFPA,wBAAAA,CAAAA,eAAAA,QAAAA,MAAAA,CAAAA,cAAAA,WAAAA,CAAAA,KAE0BA,CAAQ,qBAAqB,CAAyB,QAEtF,SAAgB,GAAkB,CAChC,QAAQ,OAAO,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6DrB"}
1
+ {"version":3,"file":"help.cjs","names":["require"],"sources":["../../../src/commands/cli/help.ts"],"sourcesContent":["import { createRequire } from 'node:module';\n\n// createRequire rather than a JSON import: this file runs both from src under\n// Node's strip-only TypeScript mode (how pi.sh starts it) and from dist, and\n// resolves package.json relative to itself in either case.\nconst require = createRequire(import.meta.url);\n\nexport const HARNESS_VERSION = (require('../../../package.json') as { version: string }).version;\n\nexport function printHelp(): void {\n process.stdout.write(`doompi\n\nUsage: doompi [harness options] [Pi options] [prompt]\n doompi init\n doompi sync [matrix options] [--check]\n doompi compat <codex|claude|antigravity> [matrix options] [provider arguments]\n\nInitialization:\n doompi init Fill missing files in ~/.pi/.doom\n doompi sync Build, resolve, and register DoomPi in Pi user settings\n doompi sync --check Exit non-zero when the synced config is out of date\n or report legacy repository-local state to migrate\n\nSync artifacts live under ~/.pi/.doom/sync in a repository- and worktree-specific\nnamespace. Linked worktrees isolate state, dist, manifests, resources, and run\nfiles while sharing immutable repository build objects. A legacy <repo>/.pi/doom\nstate is read only when no global state exists; run doompi sync to migrate it.\nDoomPi never removes old or orphaned generated directories automatically.\n\nAfter a sync, run pi directly. The synced session accepts --major-mode,\n--domains, --profile, and --mute, and /mode, /domains, and /profile switch\nwithout a restart. Selection defaults come from the selection block in\n.doom/config.yaml.\n\nCompatibility matrix options:\n --profile <name> Persona and env from .doom/profiles.yaml\n --domains <names> Comma-separated content domains\n --major-mode <name> Named major mode from .doom/modes.yaml\n -- Pass following matrix-named flags to the provider\n\nAll other compatibility arguments pass to the provider unchanged.\n\nHarness options:\n --major-mode <name> Named major mode from .doom/modes.yaml\n (default: copilot). Not --mode: Pi owns that one.\n --profile <name> Persona and env from .doom/profiles.yaml\n --domains <names> Comma-separated domains (content: plugins, skills)\n --no-domains Load no content domains\n --explain Print the resolved matrix and exit\n --emit-mcp <dir> Write the resolved MCP config to a directory and exit\n --plugin-dir <path> Load an explicit plugin directory, repeatable\n --add-dir <path> Add an accessible directory, repeatable\n --preset <name> default, kimi, or ollama\n --cwd <path> Run Pi in this directory\n --automation Use print mode, JSON output, and project approval\n --output-format vibe-lint Read a vibe-lint request from stdin and emit one JSON response\n --mute Disable the notification extension for this run\n --auto-stop Exit interactive Pi when the agent settles\n --allow-protected-writes Allow writes to protected repository paths\n --hooks, --no-hooks Enable or disable repository and plugin hooks\n --mcp, --no-mcp Enable or disable MCP configuration\n --agents, --no-agents Enable or disable spawnable agents\n -h, --help Show harness help\n -v, --version Show harness version\n\nInteractive commands:\n /loop Open the loop launcher picker\n /loops List active loops and stop future scheduling\n /workflow [on|off] Toggle workflow tools for the agent\n /effort <level> Set and persist the thinking effort\n /plan [on|off|status] Toggle repository read-only plan mode\n /mode Pick a named major mode\n /domains [names] Show the selected domains or pick a different set\n /profile List or switch persona and environment profiles\n\nAll remaining options are passed to Pi.\n`);\n}\n"],"mappings":"gDAOA,MAAa,GAFPA,wBAAAA,CAAAA,eAAAA,QAAAA,MAAAA,CAAAA,cAAAA,WAAAA,CAAAA,KAE0BA,CAAQ,wBAAwB,CAAyB,QAEzF,SAAgB,GAAkB,CAChC,QAAQ,OAAO,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkErB"}
@@ -0,0 +1,6 @@
1
+ //#region src/commands/cli/help.d.ts
2
+ declare const HARNESS_VERSION: string;
3
+ declare function printHelp(): void;
4
+ //#endregion
5
+ export { HARNESS_VERSION, printHelp };
6
+ //# sourceMappingURL=help.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help.d.cts","names":[],"sources":["../../../src/commands/cli/help.ts"],"mappings":";cAOa,eAAA;AAAA,iBAEG,SAAA,CAAA"}
@@ -0,0 +1,6 @@
1
+ //#region src/commands/cli/help.d.ts
2
+ declare const HARNESS_VERSION: string;
3
+ declare function printHelp(): void;
4
+ //#endregion
5
+ export { HARNESS_VERSION, printHelp };
6
+ //# sourceMappingURL=help.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help.d.mts","names":[],"sources":["../../../src/commands/cli/help.ts"],"mappings":";cAOa,eAAA;AAAA,iBAEG,SAAA,CAAA"}
@@ -0,0 +1,68 @@
1
+ import{createRequire as e}from"node:module";const t=e(import.meta.url)(`../../../package.json`).version;function n(){process.stdout.write(`doompi
2
+
3
+ Usage: doompi [harness options] [Pi options] [prompt]
4
+ doompi init
5
+ doompi sync [matrix options] [--check]
6
+ doompi compat <codex|claude|antigravity> [matrix options] [provider arguments]
7
+
8
+ Initialization:
9
+ doompi init Fill missing files in ~/.pi/.doom
10
+ doompi sync Build, resolve, and register DoomPi in Pi user settings
11
+ doompi sync --check Exit non-zero when the synced config is out of date
12
+ or report legacy repository-local state to migrate
13
+
14
+ Sync artifacts live under ~/.pi/.doom/sync in a repository- and worktree-specific
15
+ namespace. Linked worktrees isolate state, dist, manifests, resources, and run
16
+ files while sharing immutable repository build objects. A legacy <repo>/.pi/doom
17
+ state is read only when no global state exists; run doompi sync to migrate it.
18
+ DoomPi never removes old or orphaned generated directories automatically.
19
+
20
+ After a sync, run pi directly. The synced session accepts --major-mode,
21
+ --domains, --profile, and --mute, and /mode, /domains, and /profile switch
22
+ without a restart. Selection defaults come from the selection block in
23
+ .doom/config.yaml.
24
+
25
+ Compatibility matrix options:
26
+ --profile <name> Persona and env from .doom/profiles.yaml
27
+ --domains <names> Comma-separated content domains
28
+ --major-mode <name> Named major mode from .doom/modes.yaml
29
+ -- Pass following matrix-named flags to the provider
30
+
31
+ All other compatibility arguments pass to the provider unchanged.
32
+
33
+ Harness options:
34
+ --major-mode <name> Named major mode from .doom/modes.yaml
35
+ (default: copilot). Not --mode: Pi owns that one.
36
+ --profile <name> Persona and env from .doom/profiles.yaml
37
+ --domains <names> Comma-separated domains (content: plugins, skills)
38
+ --no-domains Load no content domains
39
+ --explain Print the resolved matrix and exit
40
+ --emit-mcp <dir> Write the resolved MCP config to a directory and exit
41
+ --plugin-dir <path> Load an explicit plugin directory, repeatable
42
+ --add-dir <path> Add an accessible directory, repeatable
43
+ --preset <name> default, kimi, or ollama
44
+ --cwd <path> Run Pi in this directory
45
+ --automation Use print mode, JSON output, and project approval
46
+ --output-format vibe-lint Read a vibe-lint request from stdin and emit one JSON response
47
+ --mute Disable the notification extension for this run
48
+ --auto-stop Exit interactive Pi when the agent settles
49
+ --allow-protected-writes Allow writes to protected repository paths
50
+ --hooks, --no-hooks Enable or disable repository and plugin hooks
51
+ --mcp, --no-mcp Enable or disable MCP configuration
52
+ --agents, --no-agents Enable or disable spawnable agents
53
+ -h, --help Show harness help
54
+ -v, --version Show harness version
55
+
56
+ Interactive commands:
57
+ /loop Open the loop launcher picker
58
+ /loops List active loops and stop future scheduling
59
+ /workflow [on|off] Toggle workflow tools for the agent
60
+ /effort <level> Set and persist the thinking effort
61
+ /plan [on|off|status] Toggle repository read-only plan mode
62
+ /mode Pick a named major mode
63
+ /domains [names] Show the selected domains or pick a different set
64
+ /profile List or switch persona and environment profiles
65
+
66
+ All remaining options are passed to Pi.
67
+ `)}export{t as HARNESS_VERSION,n as printHelp};
68
+ //# sourceMappingURL=help.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"help.mjs","names":[],"sources":["../../src/cli/help.ts"],"sourcesContent":["import { createRequire } from 'node:module';\n\n// createRequire rather than a JSON import: this file runs both from src under\n// Node's strip-only TypeScript mode (how pi.sh starts it) and from dist, and\n// resolves package.json relative to itself in either case.\nconst require = createRequire(import.meta.url);\n\nexport const HARNESS_VERSION = (require('../../package.json') as { version: string }).version;\n\nexport function printHelp(): void {\n process.stdout.write(`doompi\n\nUsage: doompi [harness options] [Pi options] [prompt]\n doompi init\n doompi sync [matrix options] [--check]\n doompi build [matrix options]\n doompi compat <codex|claude|antigravity> [matrix options] [provider arguments]\n\nInitialization:\n doompi init Fill missing files in ~/.pi/.doom\n doompi sync Resolve the matrix into .pi so plain pi can load it\n doompi sync --check Exit non-zero when the synced config is out of date\n doompi build Prebuild startup caches without launching Pi\n\nAfter a sync, run pi directly. The synced session accepts --major-mode,\n--domains, --profile, and --mute, and /major-mode, /domains, and /profile switch\nwithout a restart. Selection defaults come from the selection block in\n.doom/config.yaml.\n\nCompatibility matrix options:\n --profile <name> Persona and env from .doom/profiles.yaml\n --domains <names> Comma-separated content domains\n --major-mode <name> Named major mode from .doom/modes.yaml\n -- Pass following matrix-named flags to the provider\n\nAll other compatibility arguments pass to the provider unchanged.\n\nHarness options:\n --major-mode <name> Named major mode from .doom/modes.yaml\n (default: copilot). Not --mode: Pi owns that one.\n --profile <name> Persona and env from .doom/profiles.yaml\n --domains <names> Comma-separated domains (content: plugins, skills)\n --no-domains Load no content domains\n --explain Print the resolved matrix and exit\n --emit-mcp <dir> Write the resolved MCP config to a directory and exit\n --plugin-dir <path> Load an explicit plugin directory, repeatable\n --add-dir <path> Add an accessible directory, repeatable\n --preset <name> default, kimi, or ollama\n --cwd <path> Run Pi in this directory\n --automation Use print mode, JSON output, and project approval\n --output-format vibe-lint Read a vibe-lint request from stdin and emit one JSON response\n --mute Disable the notification extension for this run\n --auto-stop Exit interactive Pi when the agent settles\n --allow-protected-writes Allow writes to protected repository paths\n --hooks, --no-hooks Enable or disable repository and plugin hooks\n --mcp, --no-mcp Enable or disable MCP configuration\n --agents, --no-agents Enable or disable spawnable agents\n -h, --help Show harness help\n -v, --version Show harness version\n\nInteractive commands:\n /loop Open the loop launcher picker\n /loops List active loops and stop future scheduling\n /workflow [on|off] Toggle workflow tools for the agent\n /effort <level> Set and persist the thinking effort\n /plan [on|off|status] Toggle repository read-only plan mode\n /major-mode Pick a named major mode\n /domains [names] Show the selected domains or pick a different set\n /profile List or switch persona and environment profiles\n\nAll remaining options are passed to Pi.\n`);\n}\n"],"mappings":"4CAOA,MAAa,EAFG,EAAc,OAAO,KAAK,IAEV,CAAQ,qBAAqB,CAAyB,QAEtF,SAAgB,GAAkB,CAChC,QAAQ,OAAO,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6DrB"}
1
+ {"version":3,"file":"help.mjs","names":[],"sources":["../../../src/commands/cli/help.ts"],"sourcesContent":["import { createRequire } from 'node:module';\n\n// createRequire rather than a JSON import: this file runs both from src under\n// Node's strip-only TypeScript mode (how pi.sh starts it) and from dist, and\n// resolves package.json relative to itself in either case.\nconst require = createRequire(import.meta.url);\n\nexport const HARNESS_VERSION = (require('../../../package.json') as { version: string }).version;\n\nexport function printHelp(): void {\n process.stdout.write(`doompi\n\nUsage: doompi [harness options] [Pi options] [prompt]\n doompi init\n doompi sync [matrix options] [--check]\n doompi compat <codex|claude|antigravity> [matrix options] [provider arguments]\n\nInitialization:\n doompi init Fill missing files in ~/.pi/.doom\n doompi sync Build, resolve, and register DoomPi in Pi user settings\n doompi sync --check Exit non-zero when the synced config is out of date\n or report legacy repository-local state to migrate\n\nSync artifacts live under ~/.pi/.doom/sync in a repository- and worktree-specific\nnamespace. Linked worktrees isolate state, dist, manifests, resources, and run\nfiles while sharing immutable repository build objects. A legacy <repo>/.pi/doom\nstate is read only when no global state exists; run doompi sync to migrate it.\nDoomPi never removes old or orphaned generated directories automatically.\n\nAfter a sync, run pi directly. The synced session accepts --major-mode,\n--domains, --profile, and --mute, and /mode, /domains, and /profile switch\nwithout a restart. Selection defaults come from the selection block in\n.doom/config.yaml.\n\nCompatibility matrix options:\n --profile <name> Persona and env from .doom/profiles.yaml\n --domains <names> Comma-separated content domains\n --major-mode <name> Named major mode from .doom/modes.yaml\n -- Pass following matrix-named flags to the provider\n\nAll other compatibility arguments pass to the provider unchanged.\n\nHarness options:\n --major-mode <name> Named major mode from .doom/modes.yaml\n (default: copilot). Not --mode: Pi owns that one.\n --profile <name> Persona and env from .doom/profiles.yaml\n --domains <names> Comma-separated domains (content: plugins, skills)\n --no-domains Load no content domains\n --explain Print the resolved matrix and exit\n --emit-mcp <dir> Write the resolved MCP config to a directory and exit\n --plugin-dir <path> Load an explicit plugin directory, repeatable\n --add-dir <path> Add an accessible directory, repeatable\n --preset <name> default, kimi, or ollama\n --cwd <path> Run Pi in this directory\n --automation Use print mode, JSON output, and project approval\n --output-format vibe-lint Read a vibe-lint request from stdin and emit one JSON response\n --mute Disable the notification extension for this run\n --auto-stop Exit interactive Pi when the agent settles\n --allow-protected-writes Allow writes to protected repository paths\n --hooks, --no-hooks Enable or disable repository and plugin hooks\n --mcp, --no-mcp Enable or disable MCP configuration\n --agents, --no-agents Enable or disable spawnable agents\n -h, --help Show harness help\n -v, --version Show harness version\n\nInteractive commands:\n /loop Open the loop launcher picker\n /loops List active loops and stop future scheduling\n /workflow [on|off] Toggle workflow tools for the agent\n /effort <level> Set and persist the thinking effort\n /plan [on|off|status] Toggle repository read-only plan mode\n /mode Pick a named major mode\n /domains [names] Show the selected domains or pick a different set\n /profile List or switch persona and environment profiles\n\nAll remaining options are passed to Pi.\n`);\n}\n"],"mappings":"4CAOA,MAAa,EAFG,EAAc,OAAO,KAAK,IAEV,CAAQ,wBAAwB,CAAyB,QAEzF,SAAgB,GAAkB,CAChC,QAAQ,OAAO,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkErB"}
@@ -0,0 +1 @@
1
+ require(`./help.cjs`),require(`./options.cjs`),require(`./cliApp.cjs`),require(`./compatibilityOptions.cjs`);
@@ -0,0 +1,4 @@
1
+ import { CliApp, runCli, runHarness } from "./cliApp.cjs";
2
+ import { parseCompatibilityArgs, parseCompatibilityProvider } from "./compatibilityOptions.cjs";
3
+ import { HARNESS_VERSION, printHelp } from "./help.cjs";
4
+ import { parseHarnessArgs } from "./options.cjs";
@@ -0,0 +1,4 @@
1
+ import { CliApp, runCli, runHarness } from "./cliApp.mjs";
2
+ import { parseCompatibilityArgs, parseCompatibilityProvider } from "./compatibilityOptions.mjs";
3
+ import { HARNESS_VERSION, printHelp } from "./help.mjs";
4
+ import { parseHarnessArgs } from "./options.mjs";
@@ -0,0 +1 @@
1
+ import"./help.mjs";import"./options.mjs";import"./cliApp.mjs";import"./compatibilityOptions.mjs";export{};
@@ -0,0 +1,2 @@
1
+ const e=require(`../../_virtual/_rolldown/runtime.cjs`);let t=require(`node:path`);t=e.__toESM(t,1);const n=`DOOMPI_PROFILE`,r=`DOOMPI_DOMAINS`,i=`DOOMPI_MAJOR_MODE`,a=`DOOMPI_LAYER`,o=`AGENT_HARNESS_`,s=`DOOMPI_`,c=`copilot`,l=`default`,u=`marketing`;function d(e,t,n){let r=e[t];if(r===n){let r=e[t+1];if(!r||r.startsWith(`--`))throw Error(`${n} requires a value`);return{value:r,nextIndex:t+1,inline:!1}}let i=`${n}=`;if(!r.startsWith(i))return;let a=r.slice(i.length);if(!a)throw Error(`${n} requires a value`);return{value:a,nextIndex:t,inline:!0}}function f(e,t){return e===t||e.startsWith(`${t}=`)}function p(e){return e.split(`,`).map(e=>e.trim()).filter(Boolean)}function m(e,t){let n=p(e);if(n.length===0)throw Error(`${t} requires a value`);return n}function h(e,t){let n=e.trim();if(!n)throw Error(`${t} requires a value`);if(n.includes(`,`))throw Error(`${t} accepts one major mode name`);return n}function g(e,t){if(e.includes(`,`))throw Error(`${t} accepts one profile name`);if(!e.trim())throw Error(`${t} requires a value`);return e}function _(e){let t=Object.keys(e).filter(e=>e.startsWith(o)).sort();if(t.length===0)return;let n=t.map(e=>`${e} -> ${s}${e.slice(14)}`);throw Error(`The ${o}* environment was replaced by ${s}*. Unset or rename: ${n.join(`, `)}`)}function v(e,t=c){if(_(e),e.DOOMPI_LAYER)throw Error(`${a} was replaced by ${i}`);let n=e[i];return h(n||t,n?i:`defaultMajorMode`)}function y(e){let t=e.DOOMPI_PROFILE||void 0;if(t?.includes(`,`))throw Error(`${n} accepts one profile name`);return t}function b(e,t,n){let i=t[r];return i===void 0?n===void 0?p(e===u?u:l):[...n]:p(i)}function x(e,n){return(e.DOOMPI_ADDITIONAL_DIRS??``).split(t.default.delimiter).filter(Boolean).map(e=>t.default.resolve(n,e))}exports.ADD_DIRECTORY_OPTION=`--add-dir`,exports.DEFAULT_DOMAIN=l,exports.DEFAULT_MAJOR_MODE=c,exports.DOMAINS_OPTION=`--domains`,exports.DOMAIN_OPTION=`--domain`,exports.DOOMPI_ADDITIONAL_DIRECTORIES_ENV=`DOOMPI_ADDITIONAL_DIRS`,exports.DOOMPI_DOMAINS_ENV=r,exports.DOOMPI_MAJOR_MODE_ENV=i,exports.DOOMPI_PRESET_ENV=`DOOMPI_PRESET`,exports.DOOMPI_PROFILE_ENV=n,exports.MAJOR_MODE_OPTION=`--major-mode`,exports.PROFILE_OPTION=`--profile`,exports.REMOVED_DOOMPI_LAYER_ENV=a,exports.REMOVED_LAYERS_OPTION=`--layers`,exports.REMOVED_LAYER_OPTION=`--layer`,exports.REMOVED_TARGET_OPTION=`--target`,exports.assertNoRetiredEnvironment=_,exports.defaultDomainsForMajorMode=b,exports.matchesOption=f,exports.parseCsv=p,exports.parseMajorMode=h,exports.parseProfileValue=g,exports.parseRequiredCsv=m,exports.readOption=d,exports.resolveAdditionalDirectories=x,exports.resolveInheritedMajorMode=v,exports.resolveInheritedProfile=y;
2
+ //# sourceMappingURL=matrixOptions.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matrixOptions.cjs","names":["path"],"sources":["../../../src/commands/cli/matrixOptions.ts"],"sourcesContent":["import path from 'node:path';\n\n/**\n * Matrix selection shared by the Pi and compatibility parsers.\n *\n * Both frontends pick the same three axes (profile, domains, major mode) out of\n * the same environment variables with the same defaults. They used to hold two\n * copies of that logic, and the copies drifted: the inline `--name=value` forms\n * and the strict value reader existed in the compatibility parser only, so\n * `./pi.sh --profile=x` silently forwarded an unknown flag to Pi. One copy here\n * is what keeps them honest.\n */\n\n/**\n * One variable per axis.\n *\n * These used to come in pairs, `DOOM_PI_*` for what the caller selected and\n * `DOOMPI_*` for what the harness resolved and published, with the second\n * outranking the first. A nested run still inherits its launcher's choice under\n * one name, because the launcher projects into the child environment and\n * overwrites the same key. Two names for one value only ever meant two ways to\n * disagree.\n */\nexport const DOOMPI_PROFILE_ENV = 'DOOMPI_PROFILE';\nexport const DOOMPI_DOMAINS_ENV = 'DOOMPI_DOMAINS';\nexport const DOOMPI_MAJOR_MODE_ENV = 'DOOMPI_MAJOR_MODE';\nexport const DOOMPI_ADDITIONAL_DIRECTORIES_ENV = 'DOOMPI_ADDITIONAL_DIRS';\nexport const DOOMPI_PRESET_ENV = 'DOOMPI_PRESET';\n\n/** Removed spelling of the major mode axis, reported rather than honored. */\nexport const REMOVED_DOOMPI_LAYER_ENV = 'DOOMPI_LAYER';\n\n/**\n * The whole retired namespace, reported rather than ignored.\n *\n * A prefix scan rather than a constant per variable: there were 28 of them, and\n * a list maintained by hand is a list that misses one. A stale\n * `export AGENT_HARNESS_MAJOR_MODE=dev` in a shell profile would otherwise\n * silently start the session on `copilot`.\n */\nconst RETIRED_ENV_PREFIX = 'AGENT_HARNESS_';\nconst CURRENT_ENV_PREFIX = 'DOOMPI_';\n\nexport const PROFILE_OPTION = '--profile';\nexport const DOMAIN_OPTION = '--domain';\nexport const DOMAINS_OPTION = '--domains';\n/**\n * The major mode flag.\n *\n * Not `--mode`: Pi owns that one for its output mode, and for a value outside\n * `text|json|rpc` it consumes both tokens and ignores them without a\n * diagnostic. A synced `pi --mode dev` would have failed silently.\n */\nexport const MAJOR_MODE_OPTION = '--major-mode';\nexport const ADD_DIRECTORY_OPTION = '--add-dir';\nexport const REMOVED_LAYER_OPTION = '--layer';\nexport const REMOVED_LAYERS_OPTION = '--layers';\nexport const REMOVED_TARGET_OPTION = '--target';\n\nexport const DEFAULT_MAJOR_MODE = 'copilot';\nexport const DEFAULT_DOMAIN = 'default';\n\nconst MARKETING_MAJOR_MODE = 'marketing';\nconst CSV_DELIMITER = ',';\nconst OPTION_PREFIX = '--';\n\nexport interface OptionMatch {\n value: string;\n /** Index of the last argument consumed, for the caller's loop cursor. */\n nextIndex: number;\n /** True for `--name=value`. Callers that re-emit an option preserve the form. */\n inline: boolean;\n}\n\n/**\n * Reads `--name value` or `--name=value`, returning undefined for anything else.\n *\n * A value starting with `--` is rejected rather than consumed, so\n * `--profile --explain` reports a missing value instead of swallowing the next\n * flag. In compatibility mode this is also what stops the `--` provider\n * delimiter being taken as a matrix value.\n */\nexport function readOption(args: string[], index: number, name: string): OptionMatch | undefined {\n // Callers walk `args` by index, so this is always in range.\n const arg = args[index]!;\n if (arg === name) {\n const value = args[index + 1];\n if (!value || value.startsWith(OPTION_PREFIX)) throw new Error(`${name} requires a value`);\n return { value, nextIndex: index + 1, inline: false };\n }\n const inlinePrefix = `${name}=`;\n if (!arg.startsWith(inlinePrefix)) return undefined;\n const value = arg.slice(inlinePrefix.length);\n if (!value) throw new Error(`${name} requires a value`);\n return { value, nextIndex: index, inline: true };\n}\n\n/** Matches `--name` or `--name=value`, for reporting options that were removed. */\nexport function matchesOption(arg: string, name: string): boolean {\n return arg === name || arg.startsWith(`${name}=`);\n}\n\nexport function parseCsv(value: string): string[] {\n return value\n .split(CSV_DELIMITER)\n .map((item) => item.trim())\n .filter(Boolean);\n}\n\nexport function parseRequiredCsv(value: string, option: string): string[] {\n const values = parseCsv(value);\n if (values.length === 0) throw new Error(`${option} requires a value`);\n return values;\n}\n\nexport function parseMajorMode(value: string, source: string): string {\n const majorMode = value.trim();\n if (!majorMode) throw new Error(`${source} requires a value`);\n if (majorMode.includes(CSV_DELIMITER)) throw new Error(`${source} accepts one major mode name`);\n return majorMode;\n}\n\nexport function parseProfileValue(value: string, source: string): string {\n if (value.includes(CSV_DELIMITER)) throw new Error(`${source} accepts one profile name`);\n if (!value.trim()) throw new Error(`${source} requires a value`);\n return value;\n}\n\n/**\n * Reports any variable left over from the retired `AGENT_HARNESS_*` namespace.\n *\n * Called before anything reads the environment, so a stale export fails the\n * session instead of being quietly outvoted by a default. Both prefixes are\n * built from the constants above rather than written inline, because a\n * search-and-replace over this repository is exactly what retired the old one.\n */\nexport function assertNoRetiredEnvironment(environment: NodeJS.ProcessEnv): void {\n const stale = Object.keys(environment)\n .filter((key) => key.startsWith(RETIRED_ENV_PREFIX))\n .sort();\n if (stale.length === 0) return;\n const replacements = stale.map((key) => `${key} -> ${CURRENT_ENV_PREFIX}${key.slice(RETIRED_ENV_PREFIX.length)}`);\n throw new Error(\n `The ${RETIRED_ENV_PREFIX}* environment was replaced by ${CURRENT_ENV_PREFIX}*. Unset or rename: ${replacements.join(', ')}`,\n );\n}\n\n/**\n * The major mode a nested run inherits from its launcher, or the default.\n *\n * The removed spelling throws rather than being ignored. A stale\n * `export DOOMPI_LAYER=dev` left in a shell profile would otherwise silently\n * select `copilot`, which is the exact confusion the rename removed.\n */\nexport function resolveInheritedMajorMode(\n environment: NodeJS.ProcessEnv,\n defaultMajorMode: string = DEFAULT_MAJOR_MODE,\n): string {\n assertNoRetiredEnvironment(environment);\n if (environment[REMOVED_DOOMPI_LAYER_ENV]) {\n throw new Error(`${REMOVED_DOOMPI_LAYER_ENV} was replaced by ${DOOMPI_MAJOR_MODE_ENV}`);\n }\n const inherited = environment[DOOMPI_MAJOR_MODE_ENV];\n return parseMajorMode(inherited || defaultMajorMode, inherited ? DOOMPI_MAJOR_MODE_ENV : 'defaultMajorMode');\n}\n\n/** The profile a run inherits from its environment, validated once up front. */\nexport function resolveInheritedProfile(environment: NodeJS.ProcessEnv): string | undefined {\n const inherited = environment[DOOMPI_PROFILE_ENV] || undefined;\n if (inherited?.includes(CSV_DELIMITER)) throw new Error(`${DOOMPI_PROFILE_ENV} accepts one profile name`);\n return inherited;\n}\n\n/**\n * Domains selected when the caller names none.\n *\n * Configuration keeps this axis independent. The major-mode-derived choice is\n * retained only as the compatibility fallback for domains files that do not\n * declare defaultDomains.\n */\nexport function defaultDomainsForMajorMode(\n majorMode: string,\n environment: NodeJS.ProcessEnv,\n defaultDomains?: readonly string[],\n): string[] {\n const inherited = environment[DOOMPI_DOMAINS_ENV];\n // An explicitly empty variable means no domains, so this tests for the key\n // rather than for a truthy value.\n if (inherited !== undefined) return parseCsv(inherited);\n if (defaultDomains !== undefined) return [...defaultDomains];\n return parseCsv(majorMode === MARKETING_MAJOR_MODE ? MARKETING_MAJOR_MODE : DEFAULT_DOMAIN);\n}\n\n/** Directories inherited from the launcher environment. */\nexport function resolveAdditionalDirectories(environment: NodeJS.ProcessEnv, baseDirectory: string): string[] {\n return (environment[DOOMPI_ADDITIONAL_DIRECTORIES_ENV] ?? '')\n .split(path.delimiter)\n .filter(Boolean)\n .map((directory) => path.resolve(baseDirectory, directory));\n}\n"],"mappings":"oGAuBA,MAAa,EAAqB,iBACrB,EAAqB,iBACrB,EAAwB,oBAKxB,EAA2B,eAUlC,EAAqB,iBACrB,EAAqB,UAkBd,EAAqB,UACrB,EAAiB,UAExB,EAAuB,YAoB7B,SAAgB,EAAW,EAAgB,EAAe,EAAuC,CAE/F,IAAM,EAAM,EAAK,GACjB,GAAI,IAAQ,EAAM,CAChB,IAAM,EAAQ,EAAK,EAAQ,GAC3B,GAAI,CAAC,GAAS,EAAM,WAAW,KAAc,CAAE,MAAU,MAAM,GAAG,EAAK,mBAAmB,CAC1F,MAAO,CAAE,QAAO,UAAW,EAAQ,EAAG,OAAQ,GAAO,CAEvD,IAAM,EAAe,GAAG,EAAK,GAC7B,GAAI,CAAC,EAAI,WAAW,EAAa,CAAE,OACnC,IAAM,EAAQ,EAAI,MAAM,EAAa,OAAO,CAC5C,GAAI,CAAC,EAAO,MAAU,MAAM,GAAG,EAAK,mBAAmB,CACvD,MAAO,CAAE,QAAO,UAAW,EAAO,OAAQ,GAAM,CAIlD,SAAgB,EAAc,EAAa,EAAuB,CAChE,OAAO,IAAQ,GAAQ,EAAI,WAAW,GAAG,EAAK,GAAG,CAGnD,SAAgB,EAAS,EAAyB,CAChD,OAAO,EACJ,MAAM,IAAc,CACpB,IAAK,GAAS,EAAK,MAAM,CAAC,CAC1B,OAAO,QAAQ,CAGpB,SAAgB,EAAiB,EAAe,EAA0B,CACxE,IAAM,EAAS,EAAS,EAAM,CAC9B,GAAI,EAAO,SAAW,EAAG,MAAU,MAAM,GAAG,EAAO,mBAAmB,CACtE,OAAO,EAGT,SAAgB,EAAe,EAAe,EAAwB,CACpE,IAAM,EAAY,EAAM,MAAM,CAC9B,GAAI,CAAC,EAAW,MAAU,MAAM,GAAG,EAAO,mBAAmB,CAC7D,GAAI,EAAU,SAAS,IAAc,CAAE,MAAU,MAAM,GAAG,EAAO,8BAA8B,CAC/F,OAAO,EAGT,SAAgB,EAAkB,EAAe,EAAwB,CACvE,GAAI,EAAM,SAAS,IAAc,CAAE,MAAU,MAAM,GAAG,EAAO,2BAA2B,CACxF,GAAI,CAAC,EAAM,MAAM,CAAE,MAAU,MAAM,GAAG,EAAO,mBAAmB,CAChE,OAAO,EAWT,SAAgB,EAA2B,EAAsC,CAC/E,IAAM,EAAQ,OAAO,KAAK,EAAY,CACnC,OAAQ,GAAQ,EAAI,WAAW,EAAmB,CAAC,CACnD,MAAM,CACT,GAAI,EAAM,SAAW,EAAG,OACxB,IAAM,EAAe,EAAM,IAAK,GAAQ,GAAG,EAAI,MAAM,IAAqB,EAAI,MAAM,GAA0B,GAAG,CACjH,MAAU,MACR,OAAO,EAAmB,gCAAgC,EAAmB,sBAAsB,EAAa,KAAK,KAAK,GAC3H,CAUH,SAAgB,EACd,EACA,EAA2B,EACnB,CAER,GADA,EAA2B,EAAY,CACnC,EAAA,aACF,MAAU,MAAM,GAAG,EAAyB,mBAAmB,IAAwB,CAEzF,IAAM,EAAY,EAAY,GAC9B,OAAO,EAAe,GAAa,EAAkB,EAAY,EAAwB,mBAAmB,CAI9G,SAAgB,EAAwB,EAAoD,CAC1F,IAAM,EAAY,EAAA,gBAAmC,IAAA,GACrD,GAAI,GAAW,SAAS,IAAc,CAAE,MAAU,MAAM,GAAG,EAAmB,2BAA2B,CACzG,OAAO,EAUT,SAAgB,EACd,EACA,EACA,EACU,CACV,IAAM,EAAY,EAAY,GAK9B,OAFI,IAAc,IAAA,GACd,IAAmB,IAAA,GAChB,EAAS,IAAc,EAAuB,EAAuB,EAAe,CADlD,CAAC,GAAG,EAAe,CADxB,EAAS,EAAU,CAMzD,SAAgB,EAA6B,EAAgC,EAAiC,CAC5G,OAAQ,EAAA,wBAAkD,IACvD,MAAMA,EAAAA,QAAK,UAAU,CACrB,OAAO,QAAQ,CACf,IAAK,GAAcA,EAAAA,QAAK,QAAQ,EAAe,EAAU,CAAC"}
@@ -0,0 +1,99 @@
1
+ //#region src/commands/cli/matrixOptions.d.ts
2
+ /**
3
+ * Matrix selection shared by the Pi and compatibility parsers.
4
+ *
5
+ * Both frontends pick the same three axes (profile, domains, major mode) out of
6
+ * the same environment variables with the same defaults. They used to hold two
7
+ * copies of that logic, and the copies drifted: the inline `--name=value` forms
8
+ * and the strict value reader existed in the compatibility parser only, so
9
+ * `./pi.sh --profile=x` silently forwarded an unknown flag to Pi. One copy here
10
+ * is what keeps them honest.
11
+ */
12
+ /**
13
+ * One variable per axis.
14
+ *
15
+ * These used to come in pairs, `DOOM_PI_*` for what the caller selected and
16
+ * `DOOMPI_*` for what the harness resolved and published, with the second
17
+ * outranking the first. A nested run still inherits its launcher's choice under
18
+ * one name, because the launcher projects into the child environment and
19
+ * overwrites the same key. Two names for one value only ever meant two ways to
20
+ * disagree.
21
+ */
22
+ declare const DOOMPI_PROFILE_ENV = "DOOMPI_PROFILE";
23
+ declare const DOOMPI_DOMAINS_ENV = "DOOMPI_DOMAINS";
24
+ declare const DOOMPI_MAJOR_MODE_ENV = "DOOMPI_MAJOR_MODE";
25
+ declare const DOOMPI_ADDITIONAL_DIRECTORIES_ENV = "DOOMPI_ADDITIONAL_DIRS";
26
+ declare const DOOMPI_PRESET_ENV = "DOOMPI_PRESET";
27
+ /** Removed spelling of the major mode axis, reported rather than honored. */
28
+ declare const REMOVED_DOOMPI_LAYER_ENV = "DOOMPI_LAYER";
29
+ declare const PROFILE_OPTION = "--profile";
30
+ declare const DOMAIN_OPTION = "--domain";
31
+ declare const DOMAINS_OPTION = "--domains";
32
+ /**
33
+ * The major mode flag.
34
+ *
35
+ * Not `--mode`: Pi owns that one for its output mode, and for a value outside
36
+ * `text|json|rpc` it consumes both tokens and ignores them without a
37
+ * diagnostic. A synced `pi --mode dev` would have failed silently.
38
+ */
39
+ declare const MAJOR_MODE_OPTION = "--major-mode";
40
+ declare const ADD_DIRECTORY_OPTION = "--add-dir";
41
+ declare const REMOVED_LAYER_OPTION = "--layer";
42
+ declare const REMOVED_LAYERS_OPTION = "--layers";
43
+ declare const REMOVED_TARGET_OPTION = "--target";
44
+ declare const DEFAULT_MAJOR_MODE = "copilot";
45
+ declare const DEFAULT_DOMAIN = "default";
46
+ interface OptionMatch {
47
+ value: string;
48
+ /** Index of the last argument consumed, for the caller's loop cursor. */
49
+ nextIndex: number;
50
+ /** True for `--name=value`. Callers that re-emit an option preserve the form. */
51
+ inline: boolean;
52
+ }
53
+ /**
54
+ * Reads `--name value` or `--name=value`, returning undefined for anything else.
55
+ *
56
+ * A value starting with `--` is rejected rather than consumed, so
57
+ * `--profile --explain` reports a missing value instead of swallowing the next
58
+ * flag. In compatibility mode this is also what stops the `--` provider
59
+ * delimiter being taken as a matrix value.
60
+ */
61
+ declare function readOption(args: string[], index: number, name: string): OptionMatch | undefined;
62
+ /** Matches `--name` or `--name=value`, for reporting options that were removed. */
63
+ declare function matchesOption(arg: string, name: string): boolean;
64
+ declare function parseCsv(value: string): string[];
65
+ declare function parseRequiredCsv(value: string, option: string): string[];
66
+ declare function parseMajorMode(value: string, source: string): string;
67
+ declare function parseProfileValue(value: string, source: string): string;
68
+ /**
69
+ * Reports any variable left over from the retired `AGENT_HARNESS_*` namespace.
70
+ *
71
+ * Called before anything reads the environment, so a stale export fails the
72
+ * session instead of being quietly outvoted by a default. Both prefixes are
73
+ * built from the constants above rather than written inline, because a
74
+ * search-and-replace over this repository is exactly what retired the old one.
75
+ */
76
+ declare function assertNoRetiredEnvironment(environment: NodeJS.ProcessEnv): void;
77
+ /**
78
+ * The major mode a nested run inherits from its launcher, or the default.
79
+ *
80
+ * The removed spelling throws rather than being ignored. A stale
81
+ * `export DOOMPI_LAYER=dev` left in a shell profile would otherwise silently
82
+ * select `copilot`, which is the exact confusion the rename removed.
83
+ */
84
+ declare function resolveInheritedMajorMode(environment: NodeJS.ProcessEnv, defaultMajorMode?: string): string;
85
+ /** The profile a run inherits from its environment, validated once up front. */
86
+ declare function resolveInheritedProfile(environment: NodeJS.ProcessEnv): string | undefined;
87
+ /**
88
+ * Domains selected when the caller names none.
89
+ *
90
+ * Configuration keeps this axis independent. The major-mode-derived choice is
91
+ * retained only as the compatibility fallback for domains files that do not
92
+ * declare defaultDomains.
93
+ */
94
+ declare function defaultDomainsForMajorMode(majorMode: string, environment: NodeJS.ProcessEnv, defaultDomains?: readonly string[]): string[];
95
+ /** Directories inherited from the launcher environment. */
96
+ declare function resolveAdditionalDirectories(environment: NodeJS.ProcessEnv, baseDirectory: string): string[];
97
+ //#endregion
98
+ export { ADD_DIRECTORY_OPTION, DEFAULT_DOMAIN, DEFAULT_MAJOR_MODE, DOMAINS_OPTION, DOMAIN_OPTION, DOOMPI_ADDITIONAL_DIRECTORIES_ENV, DOOMPI_DOMAINS_ENV, DOOMPI_MAJOR_MODE_ENV, DOOMPI_PRESET_ENV, DOOMPI_PROFILE_ENV, MAJOR_MODE_OPTION, OptionMatch, PROFILE_OPTION, REMOVED_DOOMPI_LAYER_ENV, REMOVED_LAYERS_OPTION, REMOVED_LAYER_OPTION, REMOVED_TARGET_OPTION, assertNoRetiredEnvironment, defaultDomainsForMajorMode, matchesOption, parseCsv, parseMajorMode, parseProfileValue, parseRequiredCsv, readOption, resolveAdditionalDirectories, resolveInheritedMajorMode, resolveInheritedProfile };
99
+ //# sourceMappingURL=matrixOptions.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matrixOptions.d.cts","names":[],"sources":["../../../src/commands/cli/matrixOptions.ts"],"mappings":";;AAuBA;;;;;AACA;;;;;AACA;;;;;AACA;;;;cAHa,kBAAA;AAAA,cACA,kBAAA;AAAA,cACA,qBAAA;AAAA,cACA,iCAAA;AAAA,cACA,iBAAA;;cAGA,wBAAA;AAAA,cAaA,cAAA;AAAA,cACA,aAAA;AAAA,cACA,cAAA;;AAFb;;;;;AACA;cASa,iBAAA;AAAA,cACA,oBAAA;AAAA,cACA,oBAAA;AAAA,cACA,qBAAA;AAAA,cACA,qBAAA;AAAA,cAEA,kBAAA;AAAA,cACA,cAAA;AAAA,UAMI,WAAA;EACf,KAAA;EAdW;EAgBX,SAAA;;EAEA,MAAA;AAAA;AAjBF;;;;;AACA;;;AADA,iBA4BgB,UAAA,CAAW,IAAA,YAAgB,KAAA,UAAe,IAAA,WAAe,WAAA;;iBAgBzD,aAAA,CAAc,GAAA,UAAa,IAAA;AAAA,iBAI3B,QAAA,CAAS,KAAA;AAAA,iBAOT,gBAAA,CAAiB,KAAA,UAAe,MAAA;AAAA,iBAMhC,cAAA,CAAe,KAAA,UAAe,MAAA;AAAA,iBAO9B,iBAAA,CAAkB,KAAA,UAAe,MAAA;AAjEjD;;;;;AAEA;;;AAFA,iBA+EgB,0BAAA,CAA2B,WAAA,EAAa,MAAA,CAAO,UAAA;;AA5E/D;;;;;AAMA;iBAwFgB,yBAAA,CACd,WAAA,EAAa,MAAA,CAAO,UAAA,EACpB,gBAAA;;iBAWc,uBAAA,CAAwB,WAAA,EAAa,MAAA,CAAO,UAAA;;;;;;AArF5D;;iBAkGgB,0BAAA,CACd,SAAA,UACA,WAAA,EAAa,MAAA,CAAO,UAAA,EACpB,cAAA;;iBAWc,4BAAA,CAA6B,WAAA,EAAa,MAAA,CAAO,UAAA,EAAY,aAAA"}
@@ -0,0 +1,99 @@
1
+ //#region src/commands/cli/matrixOptions.d.ts
2
+ /**
3
+ * Matrix selection shared by the Pi and compatibility parsers.
4
+ *
5
+ * Both frontends pick the same three axes (profile, domains, major mode) out of
6
+ * the same environment variables with the same defaults. They used to hold two
7
+ * copies of that logic, and the copies drifted: the inline `--name=value` forms
8
+ * and the strict value reader existed in the compatibility parser only, so
9
+ * `./pi.sh --profile=x` silently forwarded an unknown flag to Pi. One copy here
10
+ * is what keeps them honest.
11
+ */
12
+ /**
13
+ * One variable per axis.
14
+ *
15
+ * These used to come in pairs, `DOOM_PI_*` for what the caller selected and
16
+ * `DOOMPI_*` for what the harness resolved and published, with the second
17
+ * outranking the first. A nested run still inherits its launcher's choice under
18
+ * one name, because the launcher projects into the child environment and
19
+ * overwrites the same key. Two names for one value only ever meant two ways to
20
+ * disagree.
21
+ */
22
+ declare const DOOMPI_PROFILE_ENV = "DOOMPI_PROFILE";
23
+ declare const DOOMPI_DOMAINS_ENV = "DOOMPI_DOMAINS";
24
+ declare const DOOMPI_MAJOR_MODE_ENV = "DOOMPI_MAJOR_MODE";
25
+ declare const DOOMPI_ADDITIONAL_DIRECTORIES_ENV = "DOOMPI_ADDITIONAL_DIRS";
26
+ declare const DOOMPI_PRESET_ENV = "DOOMPI_PRESET";
27
+ /** Removed spelling of the major mode axis, reported rather than honored. */
28
+ declare const REMOVED_DOOMPI_LAYER_ENV = "DOOMPI_LAYER";
29
+ declare const PROFILE_OPTION = "--profile";
30
+ declare const DOMAIN_OPTION = "--domain";
31
+ declare const DOMAINS_OPTION = "--domains";
32
+ /**
33
+ * The major mode flag.
34
+ *
35
+ * Not `--mode`: Pi owns that one for its output mode, and for a value outside
36
+ * `text|json|rpc` it consumes both tokens and ignores them without a
37
+ * diagnostic. A synced `pi --mode dev` would have failed silently.
38
+ */
39
+ declare const MAJOR_MODE_OPTION = "--major-mode";
40
+ declare const ADD_DIRECTORY_OPTION = "--add-dir";
41
+ declare const REMOVED_LAYER_OPTION = "--layer";
42
+ declare const REMOVED_LAYERS_OPTION = "--layers";
43
+ declare const REMOVED_TARGET_OPTION = "--target";
44
+ declare const DEFAULT_MAJOR_MODE = "copilot";
45
+ declare const DEFAULT_DOMAIN = "default";
46
+ interface OptionMatch {
47
+ value: string;
48
+ /** Index of the last argument consumed, for the caller's loop cursor. */
49
+ nextIndex: number;
50
+ /** True for `--name=value`. Callers that re-emit an option preserve the form. */
51
+ inline: boolean;
52
+ }
53
+ /**
54
+ * Reads `--name value` or `--name=value`, returning undefined for anything else.
55
+ *
56
+ * A value starting with `--` is rejected rather than consumed, so
57
+ * `--profile --explain` reports a missing value instead of swallowing the next
58
+ * flag. In compatibility mode this is also what stops the `--` provider
59
+ * delimiter being taken as a matrix value.
60
+ */
61
+ declare function readOption(args: string[], index: number, name: string): OptionMatch | undefined;
62
+ /** Matches `--name` or `--name=value`, for reporting options that were removed. */
63
+ declare function matchesOption(arg: string, name: string): boolean;
64
+ declare function parseCsv(value: string): string[];
65
+ declare function parseRequiredCsv(value: string, option: string): string[];
66
+ declare function parseMajorMode(value: string, source: string): string;
67
+ declare function parseProfileValue(value: string, source: string): string;
68
+ /**
69
+ * Reports any variable left over from the retired `AGENT_HARNESS_*` namespace.
70
+ *
71
+ * Called before anything reads the environment, so a stale export fails the
72
+ * session instead of being quietly outvoted by a default. Both prefixes are
73
+ * built from the constants above rather than written inline, because a
74
+ * search-and-replace over this repository is exactly what retired the old one.
75
+ */
76
+ declare function assertNoRetiredEnvironment(environment: NodeJS.ProcessEnv): void;
77
+ /**
78
+ * The major mode a nested run inherits from its launcher, or the default.
79
+ *
80
+ * The removed spelling throws rather than being ignored. A stale
81
+ * `export DOOMPI_LAYER=dev` left in a shell profile would otherwise silently
82
+ * select `copilot`, which is the exact confusion the rename removed.
83
+ */
84
+ declare function resolveInheritedMajorMode(environment: NodeJS.ProcessEnv, defaultMajorMode?: string): string;
85
+ /** The profile a run inherits from its environment, validated once up front. */
86
+ declare function resolveInheritedProfile(environment: NodeJS.ProcessEnv): string | undefined;
87
+ /**
88
+ * Domains selected when the caller names none.
89
+ *
90
+ * Configuration keeps this axis independent. The major-mode-derived choice is
91
+ * retained only as the compatibility fallback for domains files that do not
92
+ * declare defaultDomains.
93
+ */
94
+ declare function defaultDomainsForMajorMode(majorMode: string, environment: NodeJS.ProcessEnv, defaultDomains?: readonly string[]): string[];
95
+ /** Directories inherited from the launcher environment. */
96
+ declare function resolveAdditionalDirectories(environment: NodeJS.ProcessEnv, baseDirectory: string): string[];
97
+ //#endregion
98
+ export { ADD_DIRECTORY_OPTION, DEFAULT_DOMAIN, DEFAULT_MAJOR_MODE, DOMAINS_OPTION, DOMAIN_OPTION, DOOMPI_ADDITIONAL_DIRECTORIES_ENV, DOOMPI_DOMAINS_ENV, DOOMPI_MAJOR_MODE_ENV, DOOMPI_PRESET_ENV, DOOMPI_PROFILE_ENV, MAJOR_MODE_OPTION, OptionMatch, PROFILE_OPTION, REMOVED_DOOMPI_LAYER_ENV, REMOVED_LAYERS_OPTION, REMOVED_LAYER_OPTION, REMOVED_TARGET_OPTION, assertNoRetiredEnvironment, defaultDomainsForMajorMode, matchesOption, parseCsv, parseMajorMode, parseProfileValue, parseRequiredCsv, readOption, resolveAdditionalDirectories, resolveInheritedMajorMode, resolveInheritedProfile };
99
+ //# sourceMappingURL=matrixOptions.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matrixOptions.d.mts","names":[],"sources":["../../../src/commands/cli/matrixOptions.ts"],"mappings":";;AAuBA;;;;;AACA;;;;;AACA;;;;;AACA;;;;cAHa,kBAAA;AAAA,cACA,kBAAA;AAAA,cACA,qBAAA;AAAA,cACA,iCAAA;AAAA,cACA,iBAAA;;cAGA,wBAAA;AAAA,cAaA,cAAA;AAAA,cACA,aAAA;AAAA,cACA,cAAA;;AAFb;;;;;AACA;cASa,iBAAA;AAAA,cACA,oBAAA;AAAA,cACA,oBAAA;AAAA,cACA,qBAAA;AAAA,cACA,qBAAA;AAAA,cAEA,kBAAA;AAAA,cACA,cAAA;AAAA,UAMI,WAAA;EACf,KAAA;EAdW;EAgBX,SAAA;;EAEA,MAAA;AAAA;AAjBF;;;;;AACA;;;AADA,iBA4BgB,UAAA,CAAW,IAAA,YAAgB,KAAA,UAAe,IAAA,WAAe,WAAA;;iBAgBzD,aAAA,CAAc,GAAA,UAAa,IAAA;AAAA,iBAI3B,QAAA,CAAS,KAAA;AAAA,iBAOT,gBAAA,CAAiB,KAAA,UAAe,MAAA;AAAA,iBAMhC,cAAA,CAAe,KAAA,UAAe,MAAA;AAAA,iBAO9B,iBAAA,CAAkB,KAAA,UAAe,MAAA;AAjEjD;;;;;AAEA;;;AAFA,iBA+EgB,0BAAA,CAA2B,WAAA,EAAa,MAAA,CAAO,UAAA;;AA5E/D;;;;;AAMA;iBAwFgB,yBAAA,CACd,WAAA,EAAa,MAAA,CAAO,UAAA,EACpB,gBAAA;;iBAWc,uBAAA,CAAwB,WAAA,EAAa,MAAA,CAAO,UAAA;;;;;;AArF5D;;iBAkGgB,0BAAA,CACd,SAAA,UACA,WAAA,EAAa,MAAA,CAAO,UAAA,EACpB,cAAA;;iBAWc,4BAAA,CAA6B,WAAA,EAAa,MAAA,CAAO,UAAA,EAAY,aAAA"}
@@ -0,0 +1,2 @@
1
+ import e from"node:path";const t=`DOOMPI_PROFILE`,n=`DOOMPI_DOMAINS`,r=`DOOMPI_MAJOR_MODE`,i=`DOOMPI_ADDITIONAL_DIRS`,a=`DOOMPI_PRESET`,o=`DOOMPI_LAYER`,s=`AGENT_HARNESS_`,c=`DOOMPI_`,l=`--profile`,u=`--domain`,d=`--domains`,f=`--major-mode`,p=`--add-dir`,m=`--layer`,h=`--layers`,g=`--target`,_=`copilot`,v=`default`,y=`marketing`;function b(e,t,n){let r=e[t];if(r===n){let r=e[t+1];if(!r||r.startsWith(`--`))throw Error(`${n} requires a value`);return{value:r,nextIndex:t+1,inline:!1}}let i=`${n}=`;if(!r.startsWith(i))return;let a=r.slice(i.length);if(!a)throw Error(`${n} requires a value`);return{value:a,nextIndex:t,inline:!0}}function x(e,t){return e===t||e.startsWith(`${t}=`)}function S(e){return e.split(`,`).map(e=>e.trim()).filter(Boolean)}function C(e,t){let n=S(e);if(n.length===0)throw Error(`${t} requires a value`);return n}function w(e,t){let n=e.trim();if(!n)throw Error(`${t} requires a value`);if(n.includes(`,`))throw Error(`${t} accepts one major mode name`);return n}function T(e,t){if(e.includes(`,`))throw Error(`${t} accepts one profile name`);if(!e.trim())throw Error(`${t} requires a value`);return e}function E(e){let t=Object.keys(e).filter(e=>e.startsWith(s)).sort();if(t.length===0)return;let n=t.map(e=>`${e} -> ${c}${e.slice(14)}`);throw Error(`The ${s}* environment was replaced by ${c}*. Unset or rename: ${n.join(`, `)}`)}function D(e,t=_){if(E(e),e.DOOMPI_LAYER)throw Error(`${o} was replaced by ${r}`);let n=e[r];return w(n||t,n?r:`defaultMajorMode`)}function O(e){let n=e.DOOMPI_PROFILE||void 0;if(n?.includes(`,`))throw Error(`${t} accepts one profile name`);return n}function k(e,t,r){let i=t[n];return i===void 0?r===void 0?S(e===y?y:v):[...r]:S(i)}function A(t,n){return(t.DOOMPI_ADDITIONAL_DIRS??``).split(e.delimiter).filter(Boolean).map(t=>e.resolve(n,t))}export{p as ADD_DIRECTORY_OPTION,v as DEFAULT_DOMAIN,_ as DEFAULT_MAJOR_MODE,d as DOMAINS_OPTION,u as DOMAIN_OPTION,i as DOOMPI_ADDITIONAL_DIRECTORIES_ENV,n as DOOMPI_DOMAINS_ENV,r as DOOMPI_MAJOR_MODE_ENV,a as DOOMPI_PRESET_ENV,t as DOOMPI_PROFILE_ENV,f as MAJOR_MODE_OPTION,l as PROFILE_OPTION,o as REMOVED_DOOMPI_LAYER_ENV,h as REMOVED_LAYERS_OPTION,m as REMOVED_LAYER_OPTION,g as REMOVED_TARGET_OPTION,E as assertNoRetiredEnvironment,k as defaultDomainsForMajorMode,x as matchesOption,S as parseCsv,w as parseMajorMode,T as parseProfileValue,C as parseRequiredCsv,b as readOption,A as resolveAdditionalDirectories,D as resolveInheritedMajorMode,O as resolveInheritedProfile};
2
+ //# sourceMappingURL=matrixOptions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matrixOptions.mjs","names":[],"sources":["../../../src/commands/cli/matrixOptions.ts"],"sourcesContent":["import path from 'node:path';\n\n/**\n * Matrix selection shared by the Pi and compatibility parsers.\n *\n * Both frontends pick the same three axes (profile, domains, major mode) out of\n * the same environment variables with the same defaults. They used to hold two\n * copies of that logic, and the copies drifted: the inline `--name=value` forms\n * and the strict value reader existed in the compatibility parser only, so\n * `./pi.sh --profile=x` silently forwarded an unknown flag to Pi. One copy here\n * is what keeps them honest.\n */\n\n/**\n * One variable per axis.\n *\n * These used to come in pairs, `DOOM_PI_*` for what the caller selected and\n * `DOOMPI_*` for what the harness resolved and published, with the second\n * outranking the first. A nested run still inherits its launcher's choice under\n * one name, because the launcher projects into the child environment and\n * overwrites the same key. Two names for one value only ever meant two ways to\n * disagree.\n */\nexport const DOOMPI_PROFILE_ENV = 'DOOMPI_PROFILE';\nexport const DOOMPI_DOMAINS_ENV = 'DOOMPI_DOMAINS';\nexport const DOOMPI_MAJOR_MODE_ENV = 'DOOMPI_MAJOR_MODE';\nexport const DOOMPI_ADDITIONAL_DIRECTORIES_ENV = 'DOOMPI_ADDITIONAL_DIRS';\nexport const DOOMPI_PRESET_ENV = 'DOOMPI_PRESET';\n\n/** Removed spelling of the major mode axis, reported rather than honored. */\nexport const REMOVED_DOOMPI_LAYER_ENV = 'DOOMPI_LAYER';\n\n/**\n * The whole retired namespace, reported rather than ignored.\n *\n * A prefix scan rather than a constant per variable: there were 28 of them, and\n * a list maintained by hand is a list that misses one. A stale\n * `export AGENT_HARNESS_MAJOR_MODE=dev` in a shell profile would otherwise\n * silently start the session on `copilot`.\n */\nconst RETIRED_ENV_PREFIX = 'AGENT_HARNESS_';\nconst CURRENT_ENV_PREFIX = 'DOOMPI_';\n\nexport const PROFILE_OPTION = '--profile';\nexport const DOMAIN_OPTION = '--domain';\nexport const DOMAINS_OPTION = '--domains';\n/**\n * The major mode flag.\n *\n * Not `--mode`: Pi owns that one for its output mode, and for a value outside\n * `text|json|rpc` it consumes both tokens and ignores them without a\n * diagnostic. A synced `pi --mode dev` would have failed silently.\n */\nexport const MAJOR_MODE_OPTION = '--major-mode';\nexport const ADD_DIRECTORY_OPTION = '--add-dir';\nexport const REMOVED_LAYER_OPTION = '--layer';\nexport const REMOVED_LAYERS_OPTION = '--layers';\nexport const REMOVED_TARGET_OPTION = '--target';\n\nexport const DEFAULT_MAJOR_MODE = 'copilot';\nexport const DEFAULT_DOMAIN = 'default';\n\nconst MARKETING_MAJOR_MODE = 'marketing';\nconst CSV_DELIMITER = ',';\nconst OPTION_PREFIX = '--';\n\nexport interface OptionMatch {\n value: string;\n /** Index of the last argument consumed, for the caller's loop cursor. */\n nextIndex: number;\n /** True for `--name=value`. Callers that re-emit an option preserve the form. */\n inline: boolean;\n}\n\n/**\n * Reads `--name value` or `--name=value`, returning undefined for anything else.\n *\n * A value starting with `--` is rejected rather than consumed, so\n * `--profile --explain` reports a missing value instead of swallowing the next\n * flag. In compatibility mode this is also what stops the `--` provider\n * delimiter being taken as a matrix value.\n */\nexport function readOption(args: string[], index: number, name: string): OptionMatch | undefined {\n // Callers walk `args` by index, so this is always in range.\n const arg = args[index]!;\n if (arg === name) {\n const value = args[index + 1];\n if (!value || value.startsWith(OPTION_PREFIX)) throw new Error(`${name} requires a value`);\n return { value, nextIndex: index + 1, inline: false };\n }\n const inlinePrefix = `${name}=`;\n if (!arg.startsWith(inlinePrefix)) return undefined;\n const value = arg.slice(inlinePrefix.length);\n if (!value) throw new Error(`${name} requires a value`);\n return { value, nextIndex: index, inline: true };\n}\n\n/** Matches `--name` or `--name=value`, for reporting options that were removed. */\nexport function matchesOption(arg: string, name: string): boolean {\n return arg === name || arg.startsWith(`${name}=`);\n}\n\nexport function parseCsv(value: string): string[] {\n return value\n .split(CSV_DELIMITER)\n .map((item) => item.trim())\n .filter(Boolean);\n}\n\nexport function parseRequiredCsv(value: string, option: string): string[] {\n const values = parseCsv(value);\n if (values.length === 0) throw new Error(`${option} requires a value`);\n return values;\n}\n\nexport function parseMajorMode(value: string, source: string): string {\n const majorMode = value.trim();\n if (!majorMode) throw new Error(`${source} requires a value`);\n if (majorMode.includes(CSV_DELIMITER)) throw new Error(`${source} accepts one major mode name`);\n return majorMode;\n}\n\nexport function parseProfileValue(value: string, source: string): string {\n if (value.includes(CSV_DELIMITER)) throw new Error(`${source} accepts one profile name`);\n if (!value.trim()) throw new Error(`${source} requires a value`);\n return value;\n}\n\n/**\n * Reports any variable left over from the retired `AGENT_HARNESS_*` namespace.\n *\n * Called before anything reads the environment, so a stale export fails the\n * session instead of being quietly outvoted by a default. Both prefixes are\n * built from the constants above rather than written inline, because a\n * search-and-replace over this repository is exactly what retired the old one.\n */\nexport function assertNoRetiredEnvironment(environment: NodeJS.ProcessEnv): void {\n const stale = Object.keys(environment)\n .filter((key) => key.startsWith(RETIRED_ENV_PREFIX))\n .sort();\n if (stale.length === 0) return;\n const replacements = stale.map((key) => `${key} -> ${CURRENT_ENV_PREFIX}${key.slice(RETIRED_ENV_PREFIX.length)}`);\n throw new Error(\n `The ${RETIRED_ENV_PREFIX}* environment was replaced by ${CURRENT_ENV_PREFIX}*. Unset or rename: ${replacements.join(', ')}`,\n );\n}\n\n/**\n * The major mode a nested run inherits from its launcher, or the default.\n *\n * The removed spelling throws rather than being ignored. A stale\n * `export DOOMPI_LAYER=dev` left in a shell profile would otherwise silently\n * select `copilot`, which is the exact confusion the rename removed.\n */\nexport function resolveInheritedMajorMode(\n environment: NodeJS.ProcessEnv,\n defaultMajorMode: string = DEFAULT_MAJOR_MODE,\n): string {\n assertNoRetiredEnvironment(environment);\n if (environment[REMOVED_DOOMPI_LAYER_ENV]) {\n throw new Error(`${REMOVED_DOOMPI_LAYER_ENV} was replaced by ${DOOMPI_MAJOR_MODE_ENV}`);\n }\n const inherited = environment[DOOMPI_MAJOR_MODE_ENV];\n return parseMajorMode(inherited || defaultMajorMode, inherited ? DOOMPI_MAJOR_MODE_ENV : 'defaultMajorMode');\n}\n\n/** The profile a run inherits from its environment, validated once up front. */\nexport function resolveInheritedProfile(environment: NodeJS.ProcessEnv): string | undefined {\n const inherited = environment[DOOMPI_PROFILE_ENV] || undefined;\n if (inherited?.includes(CSV_DELIMITER)) throw new Error(`${DOOMPI_PROFILE_ENV} accepts one profile name`);\n return inherited;\n}\n\n/**\n * Domains selected when the caller names none.\n *\n * Configuration keeps this axis independent. The major-mode-derived choice is\n * retained only as the compatibility fallback for domains files that do not\n * declare defaultDomains.\n */\nexport function defaultDomainsForMajorMode(\n majorMode: string,\n environment: NodeJS.ProcessEnv,\n defaultDomains?: readonly string[],\n): string[] {\n const inherited = environment[DOOMPI_DOMAINS_ENV];\n // An explicitly empty variable means no domains, so this tests for the key\n // rather than for a truthy value.\n if (inherited !== undefined) return parseCsv(inherited);\n if (defaultDomains !== undefined) return [...defaultDomains];\n return parseCsv(majorMode === MARKETING_MAJOR_MODE ? MARKETING_MAJOR_MODE : DEFAULT_DOMAIN);\n}\n\n/** Directories inherited from the launcher environment. */\nexport function resolveAdditionalDirectories(environment: NodeJS.ProcessEnv, baseDirectory: string): string[] {\n return (environment[DOOMPI_ADDITIONAL_DIRECTORIES_ENV] ?? '')\n .split(path.delimiter)\n .filter(Boolean)\n .map((directory) => path.resolve(baseDirectory, directory));\n}\n"],"mappings":"yBAuBA,MAAa,EAAqB,iBACrB,EAAqB,iBACrB,EAAwB,oBACxB,EAAoC,yBACpC,EAAoB,gBAGpB,EAA2B,eAUlC,EAAqB,iBACrB,EAAqB,UAEd,EAAiB,YACjB,EAAgB,WAChB,EAAiB,YAQjB,EAAoB,eACpB,EAAuB,YACvB,EAAuB,UACvB,EAAwB,WACxB,EAAwB,WAExB,EAAqB,UACrB,EAAiB,UAExB,EAAuB,YAoB7B,SAAgB,EAAW,EAAgB,EAAe,EAAuC,CAE/F,IAAM,EAAM,EAAK,GACjB,GAAI,IAAQ,EAAM,CAChB,IAAM,EAAQ,EAAK,EAAQ,GAC3B,GAAI,CAAC,GAAS,EAAM,WAAW,KAAc,CAAE,MAAU,MAAM,GAAG,EAAK,mBAAmB,CAC1F,MAAO,CAAE,QAAO,UAAW,EAAQ,EAAG,OAAQ,GAAO,CAEvD,IAAM,EAAe,GAAG,EAAK,GAC7B,GAAI,CAAC,EAAI,WAAW,EAAa,CAAE,OACnC,IAAM,EAAQ,EAAI,MAAM,EAAa,OAAO,CAC5C,GAAI,CAAC,EAAO,MAAU,MAAM,GAAG,EAAK,mBAAmB,CACvD,MAAO,CAAE,QAAO,UAAW,EAAO,OAAQ,GAAM,CAIlD,SAAgB,EAAc,EAAa,EAAuB,CAChE,OAAO,IAAQ,GAAQ,EAAI,WAAW,GAAG,EAAK,GAAG,CAGnD,SAAgB,EAAS,EAAyB,CAChD,OAAO,EACJ,MAAM,IAAc,CACpB,IAAK,GAAS,EAAK,MAAM,CAAC,CAC1B,OAAO,QAAQ,CAGpB,SAAgB,EAAiB,EAAe,EAA0B,CACxE,IAAM,EAAS,EAAS,EAAM,CAC9B,GAAI,EAAO,SAAW,EAAG,MAAU,MAAM,GAAG,EAAO,mBAAmB,CACtE,OAAO,EAGT,SAAgB,EAAe,EAAe,EAAwB,CACpE,IAAM,EAAY,EAAM,MAAM,CAC9B,GAAI,CAAC,EAAW,MAAU,MAAM,GAAG,EAAO,mBAAmB,CAC7D,GAAI,EAAU,SAAS,IAAc,CAAE,MAAU,MAAM,GAAG,EAAO,8BAA8B,CAC/F,OAAO,EAGT,SAAgB,EAAkB,EAAe,EAAwB,CACvE,GAAI,EAAM,SAAS,IAAc,CAAE,MAAU,MAAM,GAAG,EAAO,2BAA2B,CACxF,GAAI,CAAC,EAAM,MAAM,CAAE,MAAU,MAAM,GAAG,EAAO,mBAAmB,CAChE,OAAO,EAWT,SAAgB,EAA2B,EAAsC,CAC/E,IAAM,EAAQ,OAAO,KAAK,EAAY,CACnC,OAAQ,GAAQ,EAAI,WAAW,EAAmB,CAAC,CACnD,MAAM,CACT,GAAI,EAAM,SAAW,EAAG,OACxB,IAAM,EAAe,EAAM,IAAK,GAAQ,GAAG,EAAI,MAAM,IAAqB,EAAI,MAAM,GAA0B,GAAG,CACjH,MAAU,MACR,OAAO,EAAmB,gCAAgC,EAAmB,sBAAsB,EAAa,KAAK,KAAK,GAC3H,CAUH,SAAgB,EACd,EACA,EAA2B,EACnB,CAER,GADA,EAA2B,EAAY,CACnC,EAAA,aACF,MAAU,MAAM,GAAG,EAAyB,mBAAmB,IAAwB,CAEzF,IAAM,EAAY,EAAY,GAC9B,OAAO,EAAe,GAAa,EAAkB,EAAY,EAAwB,mBAAmB,CAI9G,SAAgB,EAAwB,EAAoD,CAC1F,IAAM,EAAY,EAAA,gBAAmC,IAAA,GACrD,GAAI,GAAW,SAAS,IAAc,CAAE,MAAU,MAAM,GAAG,EAAmB,2BAA2B,CACzG,OAAO,EAUT,SAAgB,EACd,EACA,EACA,EACU,CACV,IAAM,EAAY,EAAY,GAK9B,OAFI,IAAc,IAAA,GACd,IAAmB,IAAA,GAChB,EAAS,IAAc,EAAuB,EAAuB,EAAe,CADlD,CAAC,GAAG,EAAe,CADxB,EAAS,EAAU,CAMzD,SAAgB,EAA6B,EAAgC,EAAiC,CAC5G,OAAQ,EAAA,wBAAkD,IACvD,MAAM,EAAK,UAAU,CACrB,OAAO,QAAQ,CACf,IAAK,GAAc,EAAK,QAAQ,EAAe,EAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`./matrixOptions.cjs`);let n=require(`node:path`);n=e.__toESM(n,1);const r=`kimi-for-coding`,i=`kimi-for-coding-highspeed`,a=`kimi-k2.6`,o=`default`,s=`kimi`,c=`ollama`,l=`ollama/`,u=`native`,d=`--model`,f=`--mode`,p=`--thinking`,m=`--print`,h=`--approve`,g=`--profiles`,_=`--no-domains`,v=`vibe-lint`,y=`json`,b=`--auto-stop`,x=`--help`,S=`--version`,C=new Map([[`k2p5`,r],[`k2p6`,r],[`k2p7`,r],[`kimi-k2.5`,r],[a,r],[`kimi-k2.7-code`,r],[r,r],[i,i]]);function w(e){if(e===o||e===s||e===c)return e;throw Error(`Unsupported preset: ${e}`)}function T(e,...t){return e.some(e=>t.includes(e)||t.some(t=>e.startsWith(`${t}=`)))}function E(e){for(let t=0;t<e.length;t+=1){if(e[t]===d||e[t]===`-m`){let n=e[t+1];if(n)return{index:t,value:n,inline:!1}}if(e[t]?.startsWith(`${d}=`))return{index:t,value:e[t].slice(`${d}=`.length),inline:!0}}}function D(e,t){let n=E(e);n?n.inline?e[n.index]=`${d}=${t}`:e[n.index+1]=t:e.unshift(d,t)}function O(e,t,n){let i=E(t);if(e===s){let e=i?.value??n.KIMI_CODE_MODEL??r,a=e.includes(`/`)?e.slice(e.indexOf(`/`)+1):e;D(t,`kimi-coding/${C.get(a)??a}`)}if(e===c){let e=i?.value??n.OLLAMA_CLAUDE_MODEL??a,r=e.startsWith(l)?e.slice(7):e;D(t,`${l}${r.includes(`:`)?r:`${r}:cloud`}`)}}function k(e,n){let r=e.some(e=>e===x||e===`-h`),i=e.some(e=>e===S||e===`-v`);if(!(!r&&!i))return{options:{cwd:n,profile:void 0,domains:[],majorMode:t.DEFAULT_MAJOR_MODE,explain:!1,emitMcp:void 0,pluginDirectories:[],additionalDirectories:[],preset:o,outputFormat:u,mute:!1,automation:!1,autoStop:!1,allowProtectedWrites:!1,hooks:!0,mcp:!0,agents:!0,piArgs:[]},help:r,version:i}}function A(e,r=process.env,i=process.cwd(),a=t.DEFAULT_MAJOR_MODE,s){let c=k(e,i);if(c)return c;let l=t.resolveInheritedProfile(r),d=!1,C=t.resolveInheritedMajorMode(r,a),E=!1,D=[],A=[],j=[],M=[],N=i,P=w(r.DOOMPI_PRESET??o),F=u,I=!1,L=!1,R=!1,z=!1,B=!1,V=!0,H=!0,U=!0,W=!1,G=!1,K=!1,q;for(let r=0;r<e.length;r+=1){let a=e[r];if(t.matchesOption(a,`--target`))throw Error(`${t.REMOVED_TARGET_OPTION} was replaced by ${t.MAJOR_MODE_OPTION}`);if(t.matchesOption(a,`--layer`))throw Error(`${t.REMOVED_LAYER_OPTION} was replaced by ${t.MAJOR_MODE_OPTION}`);if(t.matchesOption(a,`--layers`))throw Error(`${t.REMOVED_LAYERS_OPTION} was removed; select one major mode with ${t.MAJOR_MODE_OPTION}`);if(t.matchesOption(a,g))throw Error(`${g} was replaced by ${t.DOMAINS_OPTION}`);let o=t.readOption(e,r,t.MAJOR_MODE_OPTION);if(o){if(E)throw Error(`${t.MAJOR_MODE_OPTION} can only be provided once`);C=t.parseMajorMode(o.value,t.MAJOR_MODE_OPTION),E=!0,r=o.nextIndex;continue}let s=t.readOption(e,r,t.PROFILE_OPTION);if(s){if(d)throw Error(`${t.PROFILE_OPTION} can only be provided once`);l=t.parseProfileValue(s.value,t.PROFILE_OPTION),d=!0,r=s.nextIndex;continue}let c=t.readOption(e,r,`--domains`)??t.readOption(e,r,`--domain`);if(c){D.push(...t.parseCsv(c.value)),r=c.nextIndex;continue}let u=t.readOption(e,r,`--emit-mcp`);if(u){q=n.default.resolve(i,u.value),r=u.nextIndex;continue}let m=t.readOption(e,r,`--plugin-dir`);if(m){A.push(m.value),r=m.nextIndex;continue}let h=t.readOption(e,r,t.ADD_DIRECTORY_OPTION);if(h){j.push(h.value),r=h.nextIndex;continue}let T=t.readOption(e,r,`--preset`);if(T){P=w(T.value),r=T.nextIndex;continue}let O=t.readOption(e,r,`--cwd`)??t.readOption(e,r,`--cd`);if(O){N=n.default.resolve(i,O.value),r=O.nextIndex;continue}let k=t.readOption(e,r,`--effort`);if(k){k.inline?M.push(`${p}=${k.value}`):M.push(p,k.value),r=k.nextIndex;continue}let J=t.readOption(e,r,`--output-format`);if(J){let e=J.value;if(e===v)F=v;else{let t=e===`stream-json`?y:e;J.inline?M.push(`${f}=${t}`):M.push(f,t)}r=J.nextIndex;continue}a===_?I=!0:a===`--explain`?K=!0:a===`--automation`?R=!0:a===`--mute`?L=!0:a===b?z=!0:a===`--allow-protected-writes`?B=!0:a===`--hooks`?V=!0:a===`--mcp`?H=!0:a===`--agents`?U=!0:a===`--no-hooks`?V=!1:a===`--no-mcp`?H=!1:a===`--no-agents`?U=!1:a===x||a===`-h`?W=!0:a===S||a===`-v`?G=!0:a!==`--verbose`&&a!==`--dangerously-skip-permissions`&&M.push(a)}if(I&&D.length>0)throw Error(`${_} cannot be combined with ${t.DOMAINS_OPTION}`);if(!I&&D.length===0&&A.length===0&&D.push(...t.defaultDomainsForMajorMode(C,r,s)),R&&(T(M,m,`-p`)||M.unshift(m),T(M,f)||M.unshift(f,y),T(M,h,`-a`)||M.unshift(h)),z&&(R||F===v||T(M,m,`-p`,f)))throw Error(`${b} only supports interactive Pi mode`);return O(P,M,r),{options:{cwd:N,profile:l,domains:D,majorMode:C,explain:K,emitMcp:q,pluginDirectories:A.map(e=>n.default.resolve(i,e)),additionalDirectories:[...new Set([...t.resolveAdditionalDirectories(r,i),...j.map(e=>n.default.resolve(i,e))])],preset:P,outputFormat:F,mute:L,automation:R,autoStop:z,allowProtectedWrites:B,hooks:V,mcp:H,agents:U,piArgs:M},help:W,version:G}}exports.parseHarnessArgs=A;
2
+ //# sourceMappingURL=options.cjs.map