@vibesdotdev/cli 0.0.1

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 (432) hide show
  1. package/README.md +41 -0
  2. package/SPEC.md +97 -0
  3. package/bin/vibes.ts +26 -0
  4. package/dist/api/client/factory.d.ts +29 -0
  5. package/dist/api/client/factory.d.ts.map +1 -0
  6. package/dist/api/client/factory.js +189 -0
  7. package/dist/api/client/factory.js.map +1 -0
  8. package/dist/api/schemas/common.d.ts +58 -0
  9. package/dist/api/schemas/common.d.ts.map +1 -0
  10. package/dist/api/schemas/common.js +48 -0
  11. package/dist/api/schemas/common.js.map +1 -0
  12. package/dist/api/schemas/types.d.ts +30 -0
  13. package/dist/api/schemas/types.d.ts.map +1 -0
  14. package/dist/api/schemas/types.js +2 -0
  15. package/dist/api/schemas/types.js.map +1 -0
  16. package/dist/api/services/api.d.ts +14 -0
  17. package/dist/api/services/api.d.ts.map +1 -0
  18. package/dist/api/services/api.js +110 -0
  19. package/dist/api/services/api.js.map +1 -0
  20. package/dist/api/types.d.ts +6 -0
  21. package/dist/api/types.d.ts.map +1 -0
  22. package/dist/api/types.js +5 -0
  23. package/dist/api/types.js.map +1 -0
  24. package/dist/bin.d.ts +28 -0
  25. package/dist/bin.d.ts.map +1 -0
  26. package/dist/bin.js +73 -0
  27. package/dist/bin.js.map +1 -0
  28. package/dist/bootstrap.d.ts +14 -0
  29. package/dist/bootstrap.d.ts.map +1 -0
  30. package/dist/bootstrap.js +14 -0
  31. package/dist/bootstrap.js.map +1 -0
  32. package/dist/cli.plugin.d.ts +20 -0
  33. package/dist/cli.plugin.d.ts.map +1 -0
  34. package/dist/cli.plugin.js +170 -0
  35. package/dist/cli.plugin.js.map +1 -0
  36. package/dist/commands/completion/bash.d.ts +8 -0
  37. package/dist/commands/completion/bash.d.ts.map +1 -0
  38. package/dist/commands/completion/bash.js +60 -0
  39. package/dist/commands/completion/bash.js.map +1 -0
  40. package/dist/commands/completion/completion.descriptor.d.ts +10 -0
  41. package/dist/commands/completion/completion.descriptor.d.ts.map +1 -0
  42. package/dist/commands/completion/completion.descriptor.js +41 -0
  43. package/dist/commands/completion/completion.descriptor.js.map +1 -0
  44. package/dist/commands/completion/completion.impl.d.ts +12 -0
  45. package/dist/commands/completion/completion.impl.d.ts.map +1 -0
  46. package/dist/commands/completion/completion.impl.js +167 -0
  47. package/dist/commands/completion/completion.impl.js.map +1 -0
  48. package/dist/commands/completion/fig.d.ts +12 -0
  49. package/dist/commands/completion/fig.d.ts.map +1 -0
  50. package/dist/commands/completion/fig.js +71 -0
  51. package/dist/commands/completion/fig.js.map +1 -0
  52. package/dist/commands/completion/fish.d.ts +8 -0
  53. package/dist/commands/completion/fish.d.ts.map +1 -0
  54. package/dist/commands/completion/fish.js +38 -0
  55. package/dist/commands/completion/fish.js.map +1 -0
  56. package/dist/commands/completion/tree.d.ts +33 -0
  57. package/dist/commands/completion/tree.d.ts.map +1 -0
  58. package/dist/commands/completion/tree.js +75 -0
  59. package/dist/commands/completion/tree.js.map +1 -0
  60. package/dist/commands/completion/zsh-widget.d.ts +13 -0
  61. package/dist/commands/completion/zsh-widget.d.ts.map +1 -0
  62. package/dist/commands/completion/zsh-widget.js +39 -0
  63. package/dist/commands/completion/zsh-widget.js.map +1 -0
  64. package/dist/commands/completion/zsh.d.ts +9 -0
  65. package/dist/commands/completion/zsh.d.ts.map +1 -0
  66. package/dist/commands/completion/zsh.js +146 -0
  67. package/dist/commands/completion/zsh.js.map +1 -0
  68. package/dist/commands/profile/_utils.d.ts +21 -0
  69. package/dist/commands/profile/_utils.d.ts.map +1 -0
  70. package/dist/commands/profile/_utils.js +61 -0
  71. package/dist/commands/profile/_utils.js.map +1 -0
  72. package/dist/commands/profile/profile-group.descriptor.d.ts +4 -0
  73. package/dist/commands/profile/profile-group.descriptor.d.ts.map +1 -0
  74. package/dist/commands/profile/profile-group.descriptor.js +12 -0
  75. package/dist/commands/profile/profile-group.descriptor.js.map +1 -0
  76. package/dist/commands/profile/profile.create.descriptor.d.ts +4 -0
  77. package/dist/commands/profile/profile.create.descriptor.d.ts.map +1 -0
  78. package/dist/commands/profile/profile.create.descriptor.js +22 -0
  79. package/dist/commands/profile/profile.create.descriptor.js.map +1 -0
  80. package/dist/commands/profile/profile.create.impl.d.ts +10 -0
  81. package/dist/commands/profile/profile.create.impl.d.ts.map +1 -0
  82. package/dist/commands/profile/profile.create.impl.js +29 -0
  83. package/dist/commands/profile/profile.create.impl.js.map +1 -0
  84. package/dist/commands/profile/profile.delete.descriptor.d.ts +4 -0
  85. package/dist/commands/profile/profile.delete.descriptor.d.ts.map +1 -0
  86. package/dist/commands/profile/profile.delete.descriptor.js +29 -0
  87. package/dist/commands/profile/profile.delete.descriptor.js.map +1 -0
  88. package/dist/commands/profile/profile.delete.impl.d.ts +11 -0
  89. package/dist/commands/profile/profile.delete.impl.d.ts.map +1 -0
  90. package/dist/commands/profile/profile.delete.impl.js +50 -0
  91. package/dist/commands/profile/profile.delete.impl.js.map +1 -0
  92. package/dist/commands/profile/profile.info.descriptor.d.ts +4 -0
  93. package/dist/commands/profile/profile.info.descriptor.d.ts.map +1 -0
  94. package/dist/commands/profile/profile.info.descriptor.js +23 -0
  95. package/dist/commands/profile/profile.info.descriptor.js.map +1 -0
  96. package/dist/commands/profile/profile.info.impl.d.ts +10 -0
  97. package/dist/commands/profile/profile.info.impl.d.ts.map +1 -0
  98. package/dist/commands/profile/profile.info.impl.js +33 -0
  99. package/dist/commands/profile/profile.info.impl.js.map +1 -0
  100. package/dist/commands/profile/profile.list.descriptor.d.ts +4 -0
  101. package/dist/commands/profile/profile.list.descriptor.d.ts.map +1 -0
  102. package/dist/commands/profile/profile.list.descriptor.js +16 -0
  103. package/dist/commands/profile/profile.list.descriptor.js.map +1 -0
  104. package/dist/commands/profile/profile.list.impl.d.ts +10 -0
  105. package/dist/commands/profile/profile.list.impl.d.ts.map +1 -0
  106. package/dist/commands/profile/profile.list.impl.js +33 -0
  107. package/dist/commands/profile/profile.list.impl.js.map +1 -0
  108. package/dist/commands/profile/profile.use.descriptor.d.ts +4 -0
  109. package/dist/commands/profile/profile.use.descriptor.d.ts.map +1 -0
  110. package/dist/commands/profile/profile.use.descriptor.js +23 -0
  111. package/dist/commands/profile/profile.use.descriptor.js.map +1 -0
  112. package/dist/commands/profile/profile.use.impl.d.ts +10 -0
  113. package/dist/commands/profile/profile.use.impl.d.ts.map +1 -0
  114. package/dist/commands/profile/profile.use.impl.js +24 -0
  115. package/dist/commands/profile/profile.use.impl.js.map +1 -0
  116. package/dist/commands/runtime/_logging.d.ts +11 -0
  117. package/dist/commands/runtime/_logging.d.ts.map +1 -0
  118. package/dist/commands/runtime/_logging.js +40 -0
  119. package/dist/commands/runtime/_logging.js.map +1 -0
  120. package/dist/commands/runtime/codegen.command.descriptor.d.ts +15 -0
  121. package/dist/commands/runtime/codegen.command.descriptor.d.ts.map +1 -0
  122. package/dist/commands/runtime/codegen.command.descriptor.js +18 -0
  123. package/dist/commands/runtime/codegen.command.descriptor.js.map +1 -0
  124. package/dist/commands/runtime/codegen.command.impl.d.ts +4 -0
  125. package/dist/commands/runtime/codegen.command.impl.d.ts.map +1 -0
  126. package/dist/commands/runtime/codegen.command.impl.js +39 -0
  127. package/dist/commands/runtime/codegen.command.impl.js.map +1 -0
  128. package/dist/commands/runtime/codegen.d.ts +17 -0
  129. package/dist/commands/runtime/codegen.d.ts.map +1 -0
  130. package/dist/commands/runtime/codegen.js +65 -0
  131. package/dist/commands/runtime/codegen.js.map +1 -0
  132. package/dist/commands/runtime/index.d.ts +4 -0
  133. package/dist/commands/runtime/index.d.ts.map +1 -0
  134. package/dist/commands/runtime/index.js +8 -0
  135. package/dist/commands/runtime/index.js.map +1 -0
  136. package/dist/commands/runtime/plugin.d.ts +2 -0
  137. package/dist/commands/runtime/plugin.d.ts.map +1 -0
  138. package/dist/commands/runtime/plugin.js +7 -0
  139. package/dist/commands/runtime/plugin.js.map +1 -0
  140. package/dist/commands/runtime/runtime-group.descriptor.d.ts +4 -0
  141. package/dist/commands/runtime/runtime-group.descriptor.d.ts.map +1 -0
  142. package/dist/commands/runtime/runtime-group.descriptor.js +10 -0
  143. package/dist/commands/runtime/runtime-group.descriptor.js.map +1 -0
  144. package/dist/config.d.ts +17 -0
  145. package/dist/config.d.ts.map +1 -0
  146. package/dist/config.js +11 -0
  147. package/dist/config.js.map +1 -0
  148. package/dist/core/index.d.ts +9 -0
  149. package/dist/core/index.d.ts.map +1 -0
  150. package/dist/core/index.js +5 -0
  151. package/dist/core/index.js.map +1 -0
  152. package/dist/core/namespace/hook.d.ts +12 -0
  153. package/dist/core/namespace/hook.d.ts.map +1 -0
  154. package/dist/core/namespace/hook.js +15 -0
  155. package/dist/core/namespace/hook.js.map +1 -0
  156. package/dist/core/namespace/index.d.ts +18 -0
  157. package/dist/core/namespace/index.d.ts.map +1 -0
  158. package/dist/core/namespace/index.js +214 -0
  159. package/dist/core/namespace/index.js.map +1 -0
  160. package/dist/core/namespace/schemas/index.d.ts +25 -0
  161. package/dist/core/namespace/schemas/index.d.ts.map +1 -0
  162. package/dist/core/namespace/schemas/index.js +2 -0
  163. package/dist/core/namespace/schemas/index.js.map +1 -0
  164. package/dist/core/plugins/types.d.ts +81 -0
  165. package/dist/core/plugins/types.d.ts.map +1 -0
  166. package/dist/core/plugins/types.js +6 -0
  167. package/dist/core/plugins/types.js.map +1 -0
  168. package/dist/core/runtime/context.d.ts +25 -0
  169. package/dist/core/runtime/context.d.ts.map +1 -0
  170. package/dist/core/runtime/context.js +30 -0
  171. package/dist/core/runtime/context.js.map +1 -0
  172. package/dist/core/runtime/hooks.d.ts +12 -0
  173. package/dist/core/runtime/hooks.d.ts.map +1 -0
  174. package/dist/core/runtime/hooks.js +2 -0
  175. package/dist/core/runtime/hooks.js.map +1 -0
  176. package/dist/core/runtime/shared/context.d.ts +33 -0
  177. package/dist/core/runtime/shared/context.d.ts.map +1 -0
  178. package/dist/core/runtime/shared/context.js +51 -0
  179. package/dist/core/runtime/shared/context.js.map +1 -0
  180. package/dist/core/runtime/shared/options.d.ts +20 -0
  181. package/dist/core/runtime/shared/options.d.ts.map +1 -0
  182. package/dist/core/runtime/shared/options.js +61 -0
  183. package/dist/core/runtime/shared/options.js.map +1 -0
  184. package/dist/core/schemas/manifest.d.ts +24 -0
  185. package/dist/core/schemas/manifest.d.ts.map +1 -0
  186. package/dist/core/schemas/manifest.js +6 -0
  187. package/dist/core/schemas/manifest.js.map +1 -0
  188. package/dist/core/schemas/types.d.ts +7 -0
  189. package/dist/core/schemas/types.d.ts.map +1 -0
  190. package/dist/core/schemas/types.js +2 -0
  191. package/dist/core/schemas/types.js.map +1 -0
  192. package/dist/core/ui/interface.d.ts +12 -0
  193. package/dist/core/ui/interface.d.ts.map +1 -0
  194. package/dist/core/ui/interface.js +6 -0
  195. package/dist/core/ui/interface.js.map +1 -0
  196. package/dist/docs/cli.commands.docs.descriptor.d.ts +4 -0
  197. package/dist/docs/cli.commands.docs.descriptor.d.ts.map +1 -0
  198. package/dist/docs/cli.commands.docs.descriptor.js +207 -0
  199. package/dist/docs/cli.commands.docs.descriptor.js.map +1 -0
  200. package/dist/docs/cli.groups.docs.descriptor.d.ts +4 -0
  201. package/dist/docs/cli.groups.docs.descriptor.d.ts.map +1 -0
  202. package/dist/docs/cli.groups.docs.descriptor.js +330 -0
  203. package/dist/docs/cli.groups.docs.descriptor.js.map +1 -0
  204. package/dist/docs/cli.output.docs.descriptor.d.ts +4 -0
  205. package/dist/docs/cli.output.docs.descriptor.d.ts.map +1 -0
  206. package/dist/docs/cli.output.docs.descriptor.js +442 -0
  207. package/dist/docs/cli.output.docs.descriptor.js.map +1 -0
  208. package/dist/docs/types.d.ts +19 -0
  209. package/dist/docs/types.d.ts.map +1 -0
  210. package/dist/docs/types.js +2 -0
  211. package/dist/docs/types.js.map +1 -0
  212. package/dist/errors.d.ts +74 -0
  213. package/dist/errors.d.ts.map +1 -0
  214. package/dist/errors.js +113 -0
  215. package/dist/errors.js.map +1 -0
  216. package/dist/index.d.ts +22 -0
  217. package/dist/index.d.ts.map +1 -0
  218. package/dist/index.js +29 -0
  219. package/dist/index.js.map +1 -0
  220. package/dist/logging/cli-startup.logger.descriptor.d.ts +7 -0
  221. package/dist/logging/cli-startup.logger.descriptor.d.ts.map +1 -0
  222. package/dist/logging/cli-startup.logger.descriptor.js +13 -0
  223. package/dist/logging/cli-startup.logger.descriptor.js.map +1 -0
  224. package/dist/logging.d.ts +4 -0
  225. package/dist/logging.d.ts.map +1 -0
  226. package/dist/logging.js +21 -0
  227. package/dist/logging.js.map +1 -0
  228. package/dist/patterns/config-namespace.d.ts +23 -0
  229. package/dist/patterns/config-namespace.d.ts.map +1 -0
  230. package/dist/patterns/config-namespace.js +218 -0
  231. package/dist/patterns/config-namespace.js.map +1 -0
  232. package/dist/patterns/crud.d.ts +23 -0
  233. package/dist/patterns/crud.d.ts.map +1 -0
  234. package/dist/patterns/crud.js +164 -0
  235. package/dist/patterns/crud.js.map +1 -0
  236. package/dist/patterns/index.d.ts +13 -0
  237. package/dist/patterns/index.d.ts.map +1 -0
  238. package/dist/patterns/index.js +13 -0
  239. package/dist/patterns/index.js.map +1 -0
  240. package/dist/patterns/log-viewer.d.ts +19 -0
  241. package/dist/patterns/log-viewer.d.ts.map +1 -0
  242. package/dist/patterns/log-viewer.js +74 -0
  243. package/dist/patterns/log-viewer.js.map +1 -0
  244. package/dist/patterns/pattern-types.d.ts +21 -0
  245. package/dist/patterns/pattern-types.d.ts.map +1 -0
  246. package/dist/patterns/pattern-types.js +7 -0
  247. package/dist/patterns/pattern-types.js.map +1 -0
  248. package/dist/patterns/process-manager.d.ts +21 -0
  249. package/dist/patterns/process-manager.d.ts.map +1 -0
  250. package/dist/patterns/process-manager.js +134 -0
  251. package/dist/patterns/process-manager.js.map +1 -0
  252. package/dist/patterns/resolver.contracts.d.ts +14 -0
  253. package/dist/patterns/resolver.contracts.d.ts.map +1 -0
  254. package/dist/patterns/resolver.contracts.js +9 -0
  255. package/dist/patterns/resolver.contracts.js.map +1 -0
  256. package/dist/patterns/resolver.d.ts +40 -0
  257. package/dist/patterns/resolver.d.ts.map +1 -0
  258. package/dist/patterns/resolver.js +63 -0
  259. package/dist/patterns/resolver.js.map +1 -0
  260. package/dist/patterns/schemas.d.ts +496 -0
  261. package/dist/patterns/schemas.d.ts.map +1 -0
  262. package/dist/patterns/schemas.js +105 -0
  263. package/dist/patterns/schemas.js.map +1 -0
  264. package/dist/patterns/tool-wrapper.d.ts +18 -0
  265. package/dist/patterns/tool-wrapper.d.ts.map +1 -0
  266. package/dist/patterns/tool-wrapper.js +130 -0
  267. package/dist/patterns/tool-wrapper.js.map +1 -0
  268. package/dist/providers.d.ts +105 -0
  269. package/dist/providers.d.ts.map +1 -0
  270. package/dist/providers.js +164 -0
  271. package/dist/providers.js.map +1 -0
  272. package/dist/schemas/descriptors.d.ts +130 -0
  273. package/dist/schemas/descriptors.d.ts.map +1 -0
  274. package/dist/schemas/descriptors.js +96 -0
  275. package/dist/schemas/descriptors.js.map +1 -0
  276. package/dist/schemas/surface.d.ts +40 -0
  277. package/dist/schemas/surface.d.ts.map +1 -0
  278. package/dist/schemas/surface.js +2 -0
  279. package/dist/schemas/surface.js.map +1 -0
  280. package/dist/schemas/types.d.ts +202 -0
  281. package/dist/schemas/types.d.ts.map +1 -0
  282. package/dist/schemas/types.js +2 -0
  283. package/dist/schemas/types.js.map +1 -0
  284. package/dist/support/ui-toolkit.d.ts +62 -0
  285. package/dist/support/ui-toolkit.d.ts.map +1 -0
  286. package/dist/support/ui-toolkit.js +172 -0
  287. package/dist/support/ui-toolkit.js.map +1 -0
  288. package/dist/surface/CLISurface.d.ts +16 -0
  289. package/dist/surface/CLISurface.d.ts.map +1 -0
  290. package/dist/surface/CLISurface.js +173 -0
  291. package/dist/surface/CLISurface.js.map +1 -0
  292. package/dist/surface/attach-tui-action.d.ts +12 -0
  293. package/dist/surface/attach-tui-action.d.ts.map +1 -0
  294. package/dist/surface/attach-tui-action.js +48 -0
  295. package/dist/surface/attach-tui-action.js.map +1 -0
  296. package/dist/surface/build-context.d.ts +4 -0
  297. package/dist/surface/build-context.d.ts.map +1 -0
  298. package/dist/surface/build-context.js +49 -0
  299. package/dist/surface/build-context.js.map +1 -0
  300. package/dist/surface/command-group-policy.d.ts +7 -0
  301. package/dist/surface/command-group-policy.d.ts.map +1 -0
  302. package/dist/surface/command-group-policy.js +42 -0
  303. package/dist/surface/command-group-policy.js.map +1 -0
  304. package/dist/surface/discovery-cache.d.ts +17 -0
  305. package/dist/surface/discovery-cache.d.ts.map +1 -0
  306. package/dist/surface/discovery-cache.js +106 -0
  307. package/dist/surface/discovery-cache.js.map +1 -0
  308. package/dist/surface/register-commands.d.ts +15 -0
  309. package/dist/surface/register-commands.d.ts.map +1 -0
  310. package/dist/surface/register-commands.js +197 -0
  311. package/dist/surface/register-commands.js.map +1 -0
  312. package/dist/surface/register-groups.d.ts +15 -0
  313. package/dist/surface/register-groups.d.ts.map +1 -0
  314. package/dist/surface/register-groups.js +52 -0
  315. package/dist/surface/register-groups.js.map +1 -0
  316. package/dist/surface.d.ts +9 -0
  317. package/dist/surface.d.ts.map +1 -0
  318. package/dist/surface.js +8 -0
  319. package/dist/surface.js.map +1 -0
  320. package/dist/types.d.ts +4 -0
  321. package/dist/types.d.ts.map +1 -0
  322. package/dist/types.js +2 -0
  323. package/dist/types.js.map +1 -0
  324. package/dist/ui/schemas/types.d.ts +2 -0
  325. package/dist/ui/schemas/types.d.ts.map +1 -0
  326. package/dist/ui/schemas/types.js +2 -0
  327. package/dist/ui/schemas/types.js.map +1 -0
  328. package/dist/ui/toolkit/VibesUIToolkit.d.ts +2 -0
  329. package/dist/ui/toolkit/VibesUIToolkit.d.ts.map +1 -0
  330. package/dist/ui/toolkit/VibesUIToolkit.js +2 -0
  331. package/dist/ui/toolkit/VibesUIToolkit.js.map +1 -0
  332. package/dist/ui.context.descriptor.d.ts +21 -0
  333. package/dist/ui.context.descriptor.d.ts.map +1 -0
  334. package/dist/ui.context.descriptor.js +12 -0
  335. package/dist/ui.context.descriptor.js.map +1 -0
  336. package/dist/utils/open.d.ts +2 -0
  337. package/dist/utils/open.d.ts.map +1 -0
  338. package/dist/utils/open.js +30 -0
  339. package/dist/utils/open.js.map +1 -0
  340. package/dist/version.d.ts +2 -0
  341. package/dist/version.d.ts.map +1 -0
  342. package/dist/version.js +2 -0
  343. package/dist/version.js.map +1 -0
  344. package/package.json +186 -0
  345. package/src/api/client/factory.ts +265 -0
  346. package/src/api/schemas/common.ts +50 -0
  347. package/src/api/schemas/types.ts +32 -0
  348. package/src/api/services/api.ts +129 -0
  349. package/src/api/types.ts +12 -0
  350. package/src/bin.ts +84 -0
  351. package/src/bootstrap.ts +19 -0
  352. package/src/cli.plugin.d.ts +19 -0
  353. package/src/cli.plugin.ts +202 -0
  354. package/src/commands/completion/bash.ts +68 -0
  355. package/src/commands/completion/completion.descriptor.ts +48 -0
  356. package/src/commands/completion/completion.impl.ts +188 -0
  357. package/src/commands/completion/fig.ts +78 -0
  358. package/src/commands/completion/fish.ts +52 -0
  359. package/src/commands/completion/tree.ts +115 -0
  360. package/src/commands/completion/zsh-widget.ts +39 -0
  361. package/src/commands/completion/zsh.ts +165 -0
  362. package/src/commands/profile/_utils.ts +72 -0
  363. package/src/commands/profile/profile-group.descriptor.ts +14 -0
  364. package/src/commands/profile/profile.create.descriptor.ts +24 -0
  365. package/src/commands/profile/profile.create.impl.ts +44 -0
  366. package/src/commands/profile/profile.delete.descriptor.ts +31 -0
  367. package/src/commands/profile/profile.delete.impl.ts +71 -0
  368. package/src/commands/profile/profile.info.descriptor.ts +25 -0
  369. package/src/commands/profile/profile.info.impl.ts +51 -0
  370. package/src/commands/profile/profile.list.descriptor.ts +18 -0
  371. package/src/commands/profile/profile.list.impl.ts +46 -0
  372. package/src/commands/profile/profile.use.descriptor.ts +25 -0
  373. package/src/commands/profile/profile.use.impl.ts +39 -0
  374. package/src/commands/runtime/_logging.ts +47 -0
  375. package/src/commands/runtime/codegen.command.descriptor.ts +18 -0
  376. package/src/commands/runtime/codegen.command.impl.ts +44 -0
  377. package/src/commands/runtime/codegen.ts +84 -0
  378. package/src/commands/runtime/index.ts +14 -0
  379. package/src/commands/runtime/plugin.ts +7 -0
  380. package/src/commands/runtime/runtime-group.descriptor.ts +12 -0
  381. package/src/config.ts +22 -0
  382. package/src/core/index.ts +9 -0
  383. package/src/core/namespace/hook.ts +25 -0
  384. package/src/core/namespace/index.ts +298 -0
  385. package/src/core/namespace/schemas/index.ts +25 -0
  386. package/src/core/plugins/types.ts +87 -0
  387. package/src/core/runtime/context.ts +50 -0
  388. package/src/core/runtime/hooks.ts +12 -0
  389. package/src/core/runtime/shared/context.ts +65 -0
  390. package/src/core/runtime/shared/options.ts +60 -0
  391. package/src/core/schemas/manifest.ts +26 -0
  392. package/src/core/schemas/types.ts +6 -0
  393. package/src/core/ui/interface.ts +12 -0
  394. package/src/docs/cli.commands.docs.descriptor.ts +210 -0
  395. package/src/docs/cli.groups.docs.descriptor.ts +333 -0
  396. package/src/docs/cli.output.docs.descriptor.ts +445 -0
  397. package/src/docs/types.ts +18 -0
  398. package/src/errors.ts +123 -0
  399. package/src/index.ts +76 -0
  400. package/src/logging/cli-startup.logger.descriptor.ts +16 -0
  401. package/src/logging.ts +35 -0
  402. package/src/patterns/config-namespace.ts +251 -0
  403. package/src/patterns/crud.ts +217 -0
  404. package/src/patterns/index.ts +24 -0
  405. package/src/patterns/log-viewer.ts +118 -0
  406. package/src/patterns/pattern-types.ts +22 -0
  407. package/src/patterns/process-manager.ts +180 -0
  408. package/src/patterns/resolver.contracts.ts +15 -0
  409. package/src/patterns/resolver.ts +86 -0
  410. package/src/patterns/schemas.ts +146 -0
  411. package/src/patterns/tool-wrapper.ts +165 -0
  412. package/src/providers.ts +282 -0
  413. package/src/schemas/descriptors.d.ts +119 -0
  414. package/src/schemas/descriptors.ts +136 -0
  415. package/src/schemas/surface.ts +52 -0
  416. package/src/schemas/types.d.ts +195 -0
  417. package/src/schemas/types.ts +225 -0
  418. package/src/support/ui-toolkit.ts +224 -0
  419. package/src/surface/CLISurface.ts +193 -0
  420. package/src/surface/attach-tui-action.ts +76 -0
  421. package/src/surface/build-context.ts +49 -0
  422. package/src/surface/command-group-policy.ts +52 -0
  423. package/src/surface/discovery-cache.ts +143 -0
  424. package/src/surface/register-commands.ts +266 -0
  425. package/src/surface/register-groups.ts +84 -0
  426. package/src/surface.ts +9 -0
  427. package/src/types.ts +3 -0
  428. package/src/ui/schemas/types.ts +1 -0
  429. package/src/ui/toolkit/VibesUIToolkit.ts +1 -0
  430. package/src/ui.context.descriptor.ts +13 -0
  431. package/src/utils/open.ts +36 -0
  432. package/src/version.ts +10 -0
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Profile List Implementation
3
+ *
4
+ * Scans ~/.vibes/profile/ and lists each profile, highlighting the active one.
5
+ */
6
+ import { existsSync } from 'node:fs';
7
+ import { getProfilesDir, getActiveProfile, listProfiles, GREEN, GRAY, BOLD, RESET, log } from './_utils.js';
8
+ export default {
9
+ async execute() {
10
+ const dir = getProfilesDir();
11
+ const active = getActiveProfile();
12
+ log('');
13
+ log(`${BOLD}vibes profile list${RESET}`);
14
+ log(`${'─'.repeat(40)}`);
15
+ if (!existsSync(dir)) {
16
+ log(` ${GRAY}~/.vibes/profile/ does not exist${RESET}`);
17
+ log('');
18
+ return;
19
+ }
20
+ const profiles = listProfiles();
21
+ if (profiles.length === 0) {
22
+ log(` ${GRAY}No profiles found${RESET}`);
23
+ }
24
+ else {
25
+ for (const name of profiles) {
26
+ const marker = name === active ? ` ${GREEN}[active]${RESET}` : '';
27
+ log(` ${GREEN}✓${RESET} ${name}${marker}`);
28
+ }
29
+ }
30
+ log('');
31
+ }
32
+ };
33
+ //# sourceMappingURL=profile.list.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.list.impl.js","sourceRoot":"","sources":["../../../src/commands/profile/profile.list.impl.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EACN,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,GAAG,EACH,MAAM,UAAU,CAAC;AAElB,eAAe;IACd,KAAK,CAAC,OAAO;QACZ,MAAM,GAAG,GAAG,cAAc,EAAE,CAAC;QAC7B,MAAM,MAAM,GAAG,gBAAgB,EAAE,CAAC;QAElC,GAAG,CAAC,EAAE,CAAC,CAAC;QACR,GAAG,CAAC,GAAG,IAAI,qBAAqB,KAAK,EAAE,CAAC,CAAC;QACzC,GAAG,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAEzB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YACtB,GAAG,CAAC,KAAK,IAAI,mCAAmC,KAAK,EAAE,CAAC,CAAC;YACzD,GAAG,CAAC,EAAE,CAAC,CAAC;YACR,OAAO;QACR,CAAC;QAED,MAAM,QAAQ,GAAG,YAAY,EAAE,CAAC;QAChC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,GAAG,CAAC,KAAK,IAAI,oBAAoB,KAAK,EAAE,CAAC,CAAC;QAC3C,CAAC;aAAM,CAAC;YACP,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;gBAC7B,MAAM,MAAM,GAAG,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,KAAK,WAAW,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAClE,GAAG,CAAC,KAAK,KAAK,IAAI,KAAK,IAAI,IAAI,GAAG,MAAM,EAAE,CAAC,CAAC;YAC7C,CAAC;QACF,CAAC;QAED,GAAG,CAAC,EAAE,CAAC,CAAC;IACT,CAAC;CACD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { CLICommandAssetDescriptor } from '../../schemas/descriptors';
2
+ declare const descriptor: CLICommandAssetDescriptor;
3
+ export default descriptor;
4
+ //# sourceMappingURL=profile.use.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.use.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile.use.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAE3E,QAAA,MAAM,UAAU,EAAE,yBAoBjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,23 @@
1
+ const descriptor = {
2
+ kind: 'cli/command',
3
+ id: 'profile.use',
4
+ name: 'use',
5
+ description: 'Print shell export statement to activate a profile',
6
+ group: 'profile',
7
+ arguments: [
8
+ {
9
+ name: 'name',
10
+ description: 'Name of the profile to activate',
11
+ required: true
12
+ }
13
+ ],
14
+ examples: [
15
+ { command: 'vibes profile use work', description: 'Print export for the "work" profile' },
16
+ { command: 'eval "$(vibes profile use work)"', description: 'Activate profile in current shell' }
17
+ ],
18
+ surfaces: ['cli'],
19
+ hardware: ['consumer'],
20
+ enabled: true
21
+ };
22
+ export default descriptor;
23
+ //# sourceMappingURL=profile.use.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.use.descriptor.js","sourceRoot":"","sources":["../../../src/commands/profile/profile.use.descriptor.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAA8B;IAC7C,IAAI,EAAE,aAAa;IACnB,EAAE,EAAE,aAAa;IACjB,IAAI,EAAE,KAAK;IACX,WAAW,EAAE,oDAAoD;IACjE,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE;QACV;YACC,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,iCAAiC;YAC9C,QAAQ,EAAE,IAAI;SACd;KACD;IACD,QAAQ,EAAE;QACT,EAAE,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,qCAAqC,EAAE;QACzF,EAAE,OAAO,EAAE,kCAAkC,EAAE,WAAW,EAAE,mCAAmC,EAAE;KACjG;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Profile Use Implementation
3
+ *
4
+ * Prints the shell export statement for activating a profile.
5
+ */
6
+ declare const _default: {
7
+ execute(args: Record<string, unknown>): Promise<void>;
8
+ };
9
+ export default _default;
10
+ //# sourceMappingURL=profile.use.impl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.use.impl.d.ts","sourceRoot":"","sources":["../../../src/commands/profile/profile.use.impl.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;kBAckB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;;AAD5D,wBAqBE"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Profile Use Implementation
3
+ *
4
+ * Prints the shell export statement for activating a profile.
5
+ */
6
+ import { profileExists, validateProfileName, GREEN, RED, GRAY, BOLD, RESET, log } from './_utils.js';
7
+ export default {
8
+ async execute(args) {
9
+ const name = args.name;
10
+ if (!name) {
11
+ log(`${RED}✗${RESET} Profile name is required`);
12
+ process.exit(1);
13
+ }
14
+ validateProfileName(name);
15
+ if (!profileExists(name)) {
16
+ log(`${RED}✗${RESET} Profile does not exist: ${BOLD}${name}${RESET}`);
17
+ process.exit(1);
18
+ }
19
+ process.stdout.write(`export VIBES_PROFILE=${name}\n`);
20
+ process.stderr.write(`\n${GRAY}# Add this to your shell rc file to make it persistent:${RESET}\n` +
21
+ `${GRAY}# echo 'export VIBES_PROFILE=${name}' >> ~/.zshrc${RESET}\n`);
22
+ }
23
+ };
24
+ //# sourceMappingURL=profile.use.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.use.impl.js","sourceRoot":"","sources":["../../../src/commands/profile/profile.use.impl.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACN,aAAa,EACb,mBAAmB,EACnB,KAAK,EACL,GAAG,EACH,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,GAAG,EACH,MAAM,UAAU,CAAC;AAElB,eAAe;IACd,KAAK,CAAC,OAAO,CAAC,IAA6B;QAC1C,MAAM,IAAI,GAAG,IAAI,CAAC,IAAc,CAAC;QACjC,IAAI,CAAC,IAAI,EAAE,CAAC;YACX,GAAG,CAAC,GAAG,GAAG,IAAI,KAAK,2BAA2B,CAAC,CAAC;YAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC;QAED,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAE1B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,CAAC;YAC1B,GAAG,CAAC,GAAG,GAAG,IAAI,KAAK,4BAA4B,IAAI,GAAG,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC;YACtE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC;QAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,wBAAwB,IAAI,IAAI,CAAC,CAAC;QACvD,OAAO,CAAC,MAAM,CAAC,KAAK,CACnB,KAAK,IAAI,0DAA0D,KAAK,IAAI;YAC5E,GAAG,IAAI,gCAAgC,IAAI,gBAAgB,KAAK,IAAI,CACpE,CAAC;IACH,CAAC;CACD,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare function createRuntimeCliLogger(command: string): import("@vibesdotdev/logging/core").RuntimeLogger;
2
+ export declare function formatError(error: unknown): {
3
+ error: string;
4
+ stack?: string;
5
+ };
6
+ export declare function formatCliOutput(message: string): void;
7
+ export declare function formatCliError(message: string): void;
8
+ export declare function formatCliDetail(id: string, issue: string): void;
9
+ export declare function formatCliSection(title: string): void;
10
+ export declare function formatCliSubsection(title: string): void;
11
+ //# sourceMappingURL=_logging.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_logging.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/_logging.ts"],"names":[],"mappings":"AAEA,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,qDASrD;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAS7E;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAErD;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEpD;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAE/D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIpD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIvD"}
@@ -0,0 +1,40 @@
1
+ import { createRuntimeLogger } from '@vibesdotdev/logging/core';
2
+ export function createRuntimeCliLogger(command) {
3
+ return createRuntimeLogger({
4
+ namespace: `runtime.cli.${command}`,
5
+ runtime: 'cli',
6
+ staticMetadata: {
7
+ service: 'runtime-cli',
8
+ command
9
+ }
10
+ });
11
+ }
12
+ export function formatError(error) {
13
+ if (error instanceof Error) {
14
+ return {
15
+ error: error.message,
16
+ ...(error.stack ? { stack: error.stack } : {})
17
+ };
18
+ }
19
+ return { error: String(error) };
20
+ }
21
+ export function formatCliOutput(message) {
22
+ process.stdout.write(`${message}\n`);
23
+ }
24
+ export function formatCliError(message) {
25
+ process.stderr.write(`${message}\n`);
26
+ }
27
+ export function formatCliDetail(id, issue) {
28
+ formatCliOutput(` - ${id}: ${issue}`);
29
+ }
30
+ export function formatCliSection(title) {
31
+ formatCliOutput('');
32
+ formatCliOutput(title);
33
+ formatCliOutput('-'.repeat(title.length));
34
+ }
35
+ export function formatCliSubsection(title) {
36
+ formatCliOutput('');
37
+ formatCliOutput(` ${title}`);
38
+ formatCliOutput(' ' + '-'.repeat(title.length));
39
+ }
40
+ //# sourceMappingURL=_logging.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_logging.js","sourceRoot":"","sources":["../../../src/commands/runtime/_logging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEhE,MAAM,UAAU,sBAAsB,CAAC,OAAe;IACrD,OAAO,mBAAmB,CAAC;QAC1B,SAAS,EAAE,eAAe,OAAO,EAAE;QACnC,OAAO,EAAE,KAAK;QACd,cAAc,EAAE;YACf,OAAO,EAAE,aAAa;YACtB,OAAO;SACP;KACD,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAc;IACzC,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC5B,OAAO;YACN,KAAK,EAAE,KAAK,CAAC,OAAO;YACpB,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC9C,CAAC;IACH,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,OAAe;IAC9C,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,IAAI,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,OAAe;IAC7C,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,IAAI,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,EAAU,EAAE,KAAa;IACxD,eAAe,CAAC,gBAAgB,EAAE,KAAK,KAAK,EAAE,CAAC,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAa;IAC7C,eAAe,CAAC,EAAE,CAAC,CAAC;IACpB,eAAe,CAAC,KAAK,CAAC,CAAC;IACvB,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAChD,eAAe,CAAC,EAAE,CAAC,CAAC;IACpB,eAAe,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC;IAC9B,eAAe,CAAC,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AAClD,CAAC"}
@@ -0,0 +1,15 @@
1
+ export declare const runtimeCodegenCommandDescriptor: {
2
+ id: string;
3
+ kind: "cli/command";
4
+ name: string;
5
+ description: string;
6
+ group: string;
7
+ arguments: never[];
8
+ options: {
9
+ name: string;
10
+ description: string;
11
+ type: string;
12
+ short: string;
13
+ }[];
14
+ };
15
+ //# sourceMappingURL=codegen.command.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codegen.command.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.command.descriptor.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;CAe1C,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { createRuntimeAsset } from '@vibesdotdev/runtime';
2
+ export const runtimeCodegenCommandDescriptor = createRuntimeAsset({
3
+ id: 'runtime-codegen',
4
+ kind: 'cli/command',
5
+ name: 'codegen',
6
+ description: 'Generate static runtime loader for compiled binaries',
7
+ group: 'runtime',
8
+ arguments: [],
9
+ options: [
10
+ {
11
+ name: 'verbose',
12
+ description: 'Enable verbose logging',
13
+ type: 'boolean',
14
+ short: 'v'
15
+ }
16
+ ]
17
+ });
18
+ //# sourceMappingURL=codegen.command.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codegen.command.descriptor.js","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.command.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,CAAC,MAAM,+BAA+B,GAAG,kBAAkB,CAAC;IACjE,EAAE,EAAE,iBAAiB;IACrB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,sDAAsD;IACnE,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE,EAAE;IACb,OAAO,EAAE;QACR;YACC,IAAI,EAAE,SAAS;YACf,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,GAAG;SACV;KACD;CACD,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const runtimeCodegenCommandImpl: import("@vibesdotdev/runtime").RuntimeImplementationWrapper<{
2
+ execute: (args: Record<string, unknown>, opts: Record<string, unknown>) => Promise<void>;
3
+ }>;
4
+ //# sourceMappingURL=codegen.command.impl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codegen.command.impl.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.command.impl.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB;oBAId,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;EAkC5E,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { createRuntimeImplementation } from '@vibesdotdev/runtime';
2
+ import { generate } from "./codegen.js";
3
+ export const runtimeCodegenCommandImpl = createRuntimeImplementation({
4
+ id: 'runtime-codegen',
5
+ kind: 'cli/command',
6
+ implementation: {
7
+ execute: async (args, opts) => {
8
+ // Create a mock command and context for the registration function. The mock only
9
+ // needs to satisfy the chained shape that `generate()` invokes; widening through
10
+ // `unknown` keeps the cast explicit rather than relying on `any`.
11
+ const mockCommand = {
12
+ command: () => ({
13
+ description: () => ({
14
+ option: () => ({
15
+ action: (handler) => handler()
16
+ })
17
+ })
18
+ })
19
+ };
20
+ const mockContext = {
21
+ ui: {
22
+ success: (msg) => process.stdout.write(`✅ ${msg}\n`),
23
+ error: (msg) => {
24
+ process.stderr.write(`❌ ${msg}\n`);
25
+ throw new Error(msg);
26
+ }
27
+ }
28
+ };
29
+ try {
30
+ await generate();
31
+ mockContext.ui.success('Runtime codegen completed successfully');
32
+ }
33
+ catch (error) {
34
+ mockContext.ui.error(`Runtime codegen failed: ${error instanceof Error ? error.message : String(error)}`);
35
+ }
36
+ }
37
+ }
38
+ });
39
+ //# sourceMappingURL=codegen.command.impl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codegen.command.impl.js","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.command.impl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAGnE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,CAAC,MAAM,yBAAyB,GAAG,2BAA2B,CAAC;IACpE,EAAE,EAAE,iBAAiB;IACrB,IAAI,EAAE,aAAa;IACnB,cAAc,EAAE;QACf,OAAO,EAAE,KAAK,EAAE,IAA6B,EAAE,IAA6B,EAAE,EAAE;YAC/E,iFAAiF;YACjF,iFAAiF;YACjF,kEAAkE;YAClE,MAAM,WAAW,GAAG;gBACnB,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;oBACf,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC;wBACnB,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC;4BACd,MAAM,EAAE,CAAC,OAA4B,EAAE,EAAE,CAAC,OAAO,EAAE;yBACnD,CAAC;qBACF,CAAC;iBACF,CAAC;aACoB,CAAC;YAExB,MAAM,WAAW,GAAG;gBACnB,EAAE,EAAE;oBACH,OAAO,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC;oBAC5D,KAAK,EAAE,CAAC,GAAW,EAAE,EAAE;wBACtB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC;wBACnC,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;oBACtB,CAAC;iBACD;aAC4B,CAAC;YAE/B,IAAI,CAAC;gBACJ,MAAM,QAAQ,EAAE,CAAC;gBACjB,WAAW,CAAC,EAAE,CAAC,OAAO,CAAC,wCAAwC,CAAC,CAAC;YAClE,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,WAAW,CAAC,EAAE,CAAC,KAAK,CACnB,2BAA2B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CACnF,CAAC;YACH,CAAC;QACF,CAAC;KACD;CACD,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env bun
2
+ /**
3
+ * Runtime Codegen Command
4
+ *
5
+ * Thin wrapper around the canonical runtime bundle codegen script.
6
+ * The script in /scripts is the single source of truth.
7
+ */
8
+ import type { Command } from 'commander';
9
+ import type { RuntimeContext } from '../../core/runtime/context.ts';
10
+ export interface RuntimeCodegenOptions {
11
+ scope?: string;
12
+ hardware?: string;
13
+ verbose?: boolean;
14
+ }
15
+ export declare function generate(options?: RuntimeCodegenOptions): Promise<void>;
16
+ export declare function registerRuntimeCodegenCommand(parent: Command, context: RuntimeContext): Promise<void>;
17
+ //# sourceMappingURL=codegen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.ts"],"names":[],"mappings":";AACA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AASpE,MAAM,WAAW,qBAAqB;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAgCD,wBAAsB,QAAQ,CAAC,OAAO,GAAE,qBAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CAEjF;AAED,wBAAsB,6BAA6B,CAClD,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC,CAsBf"}
@@ -0,0 +1,65 @@
1
+ #!/usr/bin/env bun
2
+ /**
3
+ * Runtime Codegen Command
4
+ *
5
+ * Thin wrapper around the canonical runtime bundle codegen script.
6
+ * The script in /scripts is the single source of truth.
7
+ */
8
+ import { join, resolve } from 'node:path';
9
+ import { getLogger } from "../../logging.js";
10
+ const logger = getLogger('runtime-codegen');
11
+ const ROOT_DIR = resolve(join(import.meta.dir, '../../../../../../'));
12
+ const CODEGEN_SCRIPT = join(ROOT_DIR, 'scripts/codegen-runtime-bundle.ts');
13
+ function resolveBunBinary() {
14
+ const whichBun = typeof Bun.which === 'function' ? Bun.which('bun') : null;
15
+ if (whichBun)
16
+ return whichBun;
17
+ return process.execPath || 'bun';
18
+ }
19
+ async function runRuntimeCodegenScript(options = {}) {
20
+ const scriptExists = await Bun.file(CODEGEN_SCRIPT).exists();
21
+ if (!scriptExists) {
22
+ throw new Error(`Runtime codegen script not found: ${CODEGEN_SCRIPT}`);
23
+ }
24
+ const args = [resolveBunBinary(), CODEGEN_SCRIPT];
25
+ if (options.scope)
26
+ args.push(options.scope);
27
+ if (options.hardware)
28
+ args.push(options.hardware);
29
+ const proc = Bun.spawn(args, {
30
+ cwd: ROOT_DIR,
31
+ stdout: 'inherit',
32
+ stderr: 'inherit',
33
+ stdin: 'inherit',
34
+ env: process.env
35
+ });
36
+ const exitCode = await proc.exited;
37
+ if (exitCode !== 0) {
38
+ throw new Error(`Runtime codegen script failed with exit code ${exitCode}`);
39
+ }
40
+ }
41
+ export async function generate(options = {}) {
42
+ await runRuntimeCodegenScript(options);
43
+ }
44
+ export async function registerRuntimeCodegenCommand(parent, context) {
45
+ parent
46
+ .command('codegen')
47
+ .description('Generate static runtime loader for compiled binaries')
48
+ .option('-v, --verbose', 'Enable verbose logging')
49
+ .option('--scope <scope>', 'Filter generated bundle by runtime surface scope')
50
+ .option('--hardware <hardware>', 'Filter generated bundle by runtime hardware')
51
+ .action(async (options) => {
52
+ if (options.verbose) {
53
+ logger.info('Running runtime codegen script...');
54
+ }
55
+ try {
56
+ await generate(options);
57
+ context.ui.success('Runtime codegen completed successfully');
58
+ }
59
+ catch (error) {
60
+ context.ui.error(`Runtime codegen failed: ${error instanceof Error ? error.message : String(error)}`);
61
+ process.exit(1);
62
+ }
63
+ });
64
+ }
65
+ //# sourceMappingURL=codegen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codegen.js","sourceRoot":"","sources":["../../../src/commands/runtime/codegen.ts"],"names":[],"mappings":";AACA;;;;;GAKG;AAIH,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,MAAM,GAAG,SAAS,CAAC,iBAAiB,CAAC,CAAC;AAE5C,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,oBAAoB,CAAC,CAAC,CAAC;AACtE,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,EAAE,mCAAmC,CAAC,CAAC;AAQ3E,SAAS,gBAAgB;IACxB,MAAM,QAAQ,GAAG,OAAO,GAAG,CAAC,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC3E,IAAI,QAAQ;QAAE,OAAO,QAAQ,CAAC;IAC9B,OAAO,OAAO,CAAC,QAAQ,IAAI,KAAK,CAAC;AAClC,CAAC;AAED,KAAK,UAAU,uBAAuB,CAAC,UAAiC,EAAE;IACzE,MAAM,YAAY,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7D,IAAI,CAAC,YAAY,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,qCAAqC,cAAc,EAAE,CAAC,CAAC;IACxE,CAAC;IAED,MAAM,IAAI,GAAG,CAAC,gBAAgB,EAAE,EAAE,cAAc,CAAC,CAAC;IAClD,IAAI,OAAO,CAAC,KAAK;QAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5C,IAAI,OAAO,CAAC,QAAQ;QAAE,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAElD,MAAM,IAAI,GAAG,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE;QAC5B,GAAG,EAAE,QAAQ;QACb,MAAM,EAAE,SAAS;QACjB,MAAM,EAAE,SAAS;QACjB,KAAK,EAAE,SAAS;QAChB,GAAG,EAAE,OAAO,CAAC,GAAG;KAChB,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC;IACnC,IAAI,QAAQ,KAAK,CAAC,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CAAC,gDAAgD,QAAQ,EAAE,CAAC,CAAC;IAC7E,CAAC;AACF,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,UAAiC,EAAE;IACjE,MAAM,uBAAuB,CAAC,OAAO,CAAC,CAAC;AACxC,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,6BAA6B,CAClD,MAAe,EACf,OAAuB;IAEvB,MAAM;SACJ,OAAO,CAAC,SAAS,CAAC;SAClB,WAAW,CAAC,sDAAsD,CAAC;SACnE,MAAM,CAAC,eAAe,EAAE,wBAAwB,CAAC;SACjD,MAAM,CAAC,iBAAiB,EAAE,kDAAkD,CAAC;SAC7E,MAAM,CAAC,uBAAuB,EAAE,6CAA6C,CAAC;SAC9E,MAAM,CAAC,KAAK,EAAE,OAA8B,EAAE,EAAE;QAChD,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YACrB,MAAM,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,CAAC;YACJ,MAAM,QAAQ,CAAC,OAAO,CAAC,CAAC;YACxB,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,wCAAwC,CAAC,CAAC;QAC9D,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,OAAO,CAAC,EAAE,CAAC,KAAK,CACf,2BAA2B,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CACnF,CAAC;YACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC;IACF,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Command } from 'commander';
2
+ import type { RuntimeContext } from '../../core/runtime/context.ts';
3
+ export declare function registerRuntimeCommands(parent: Command, context: RuntimeContext): Promise<void>;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAGpE,wBAAsB,uBAAuB,CAC5C,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC,CAMf"}
@@ -0,0 +1,8 @@
1
+ import { registerRuntimeCodegenCommand } from "./codegen.js";
2
+ export async function registerRuntimeCommands(parent, context) {
3
+ // Create the runtime command group
4
+ const runtimeCmd = parent.command('runtime').description('Runtime management commands');
5
+ // Register the codegen subcommand
6
+ await registerRuntimeCodegenCommand(runtimeCmd, context);
7
+ }
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/runtime/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAE7D,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC5C,MAAe,EACf,OAAuB;IAEvB,mCAAmC;IACnC,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,6BAA6B,CAAC,CAAC;IAExF,kCAAkC;IAClC,MAAM,6BAA6B,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC1D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const runtimeCliPlugin: import("@vibesdotdev/runtime").RuntimePlugin;
2
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/plugin.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,8CAI3B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { createRuntimePlugin } from '@vibesdotdev/runtime';
2
+ export const runtimeCliPlugin = createRuntimePlugin({
3
+ id: 'runtime-cli',
4
+ name: 'Runtime CLI Plugin',
5
+ description: 'Provides runtime management commands for the CLI'
6
+ });
7
+ //# sourceMappingURL=plugin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/commands/runtime/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC;IACnD,EAAE,EAAE,aAAa;IACjB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,kDAAkD;CAC/D,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { CLIGroupAssetDescriptor } from '../../schemas/descriptors';
2
+ declare const descriptor: CLIGroupAssetDescriptor;
3
+ export default descriptor;
4
+ //# sourceMappingURL=runtime-group.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-group.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/runtime-group.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,QAAA,MAAM,UAAU,EAAE,uBAOjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,10 @@
1
+ const descriptor = {
2
+ kind: 'cli/group',
3
+ id: 'runtime',
4
+ name: 'runtime',
5
+ description: 'Runtime management commands',
6
+ order: 50,
7
+ enabled: true
8
+ };
9
+ export default descriptor;
10
+ //# sourceMappingURL=runtime-group.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-group.descriptor.js","sourceRoot":"","sources":["../../../src/commands/runtime/runtime-group.descriptor.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAA4B;IAC3C,IAAI,EAAE,WAAW;IACjB,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,SAAS;IACf,WAAW,EAAE,6BAA6B;IAC1C,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,IAAI;CACb,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Shared CLI config contract for `vibes.config.ts`.
3
+ *
4
+ * Re-exports the canonical `VibesAppConfig` from `@vibesdotdev/runtime/config`
5
+ * and provides a typed `defineConfig` helper for editor autocomplete in
6
+ * project-level configs.
7
+ */
8
+ export type { VibesAppConfig, PluginsConfig } from '@vibesdotdev/runtime/config';
9
+ import type { VibesAppConfig } from '@vibesdotdev/runtime/config';
10
+ /**
11
+ * Project config shape accepted by `defineConfig`. Plugin arrays may be
12
+ * empty, in which case the binary's `defaultPlugins` (statically imported
13
+ * by the wrapper) are used. Set this to override or extend that default.
14
+ */
15
+ export type VibesConfig = Partial<VibesAppConfig>;
16
+ export declare function defineConfig(config: VibesConfig): VibesConfig;
17
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAElD,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW,CAE7D"}
package/dist/config.js ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Shared CLI config contract for `vibes.config.ts`.
3
+ *
4
+ * Re-exports the canonical `VibesAppConfig` from `@vibesdotdev/runtime/config`
5
+ * and provides a typed `defineConfig` helper for editor autocomplete in
6
+ * project-level configs.
7
+ */
8
+ export function defineConfig(config) {
9
+ return config;
10
+ }
11
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAaH,MAAM,UAAU,YAAY,CAAC,MAAmB;IAC/C,OAAO,MAAM,CAAC;AACf,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * CLI core compatibility barrel.
3
+ */
4
+ export { getContext, setContext, type RuntimeContext } from './runtime/context.ts';
5
+ export type { Hook } from './runtime/hooks.ts';
6
+ export type { CLIContext } from '../providers.ts';
7
+ export type { CLIRuntimeContext, UIToolkit, CommandLayout } from './plugins/types.ts';
8
+ export type { IUIHandles } from './ui/interface.ts';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACnF,YAAY,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C,YAAY,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,YAAY,EAAE,iBAAiB,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACtF,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * CLI core compatibility barrel.
3
+ */
4
+ export { getContext, setContext } from "./runtime/context.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAuB,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Namespace Hook Compatibility API
3
+ *
4
+ * Legacy callers import register/get helpers from this module.
5
+ * It delegates to the compatibility namespace registry.
6
+ */
7
+ import { getNamespaceRegistry } from './index';
8
+ import type { NamespaceDefinition, ConfigValue } from './schemas';
9
+ export declare function registerNamespace(_context: Record<string, ConfigValue>, definition: NamespaceDefinition): Promise<void>;
10
+ export declare function getNamespaceConfig<TConfig extends Record<string, ConfigValue>>(_context: Record<string, ConfigValue>, namespaceId: string): import("./schemas").NamespaceConfigAccessor<TConfig>;
11
+ export { getNamespaceRegistry };
12
+ //# sourceMappingURL=hook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hook.d.ts","sourceRoot":"","sources":["../../../src/core/namespace/hook.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAElE,wBAAsB,iBAAiB,CACtC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EACrC,UAAU,EAAE,mBAAmB,GAC7B,OAAO,CAAC,IAAI,CAAC,CAEf;AAED,wBAAgB,kBAAkB,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EAC7E,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EACrC,WAAW,EAAE,MAAM,wDAGnB;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Namespace Hook Compatibility API
3
+ *
4
+ * Legacy callers import register/get helpers from this module.
5
+ * It delegates to the compatibility namespace registry.
6
+ */
7
+ import { getNamespaceRegistry } from './index.js';
8
+ export async function registerNamespace(_context, definition) {
9
+ getNamespaceRegistry().register(definition);
10
+ }
11
+ export function getNamespaceConfig(_context, namespaceId) {
12
+ return getNamespaceRegistry().getConfig(namespaceId);
13
+ }
14
+ export { getNamespaceRegistry };
15
+ //# sourceMappingURL=hook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hook.js","sourceRoot":"","sources":["../../../src/core/namespace/hook.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG/C,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACtC,QAAqC,EACrC,UAA+B;IAE/B,oBAAoB,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,kBAAkB,CACjC,QAAqC,EACrC,WAAmB;IAEnB,OAAO,oBAAoB,EAAE,CAAC,SAAS,CAAU,WAAW,CAAC,CAAC;AAC/D,CAAC;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * CLI Namespace Registry (compatibility layer)
3
+ *
4
+ * Provides a lightweight namespace registry used by legacy config services.
5
+ * New CLI surfaces are descriptor-driven; this module exists to keep older
6
+ * imports functional while commands are migrated.
7
+ */
8
+ import type { ConfigValue, NamespaceDefinition, NamespaceConfigAccessor } from './schemas';
9
+ declare class NamespaceRegistry {
10
+ private definitions;
11
+ register(definition: NamespaceDefinition): void;
12
+ has(id: string): boolean;
13
+ getIds(): string[];
14
+ getConfig<TConfig extends Record<string, ConfigValue>>(id: string): NamespaceConfigAccessor<TConfig>;
15
+ }
16
+ export declare function getNamespaceRegistry(): NamespaceRegistry;
17
+ export {};
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/namespace/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AASH,OAAO,KAAK,EAEX,WAAW,EACX,mBAAmB,EAEnB,uBAAuB,EACvB,MAAM,WAAW,CAAC;AAsPnB,cAAM,iBAAiB;IACtB,OAAO,CAAC,WAAW,CAA0C;IAE7D,QAAQ,CAAC,UAAU,EAAE,mBAAmB,GAAG,IAAI;IAI/C,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIxB,MAAM,IAAI,MAAM,EAAE;IAIlB,SAAS,CAAC,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,EACpD,EAAE,EAAE,MAAM,GACR,uBAAuB,CAAC,OAAO,CAAC;CAOnC;AAID,wBAAgB,oBAAoB,IAAI,iBAAiB,CAExD"}