@rulemetric/cli 0.7.3 → 0.7.5

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 (550) hide show
  1. package/README.md +10 -8
  2. package/dist/base-command.js +1 -14
  3. package/dist/chunk-2JRDG4LJ.js +31 -0
  4. package/dist/chunk-2TC6WCUT.js +34 -0
  5. package/dist/chunk-2WLVDSAP.js +2 -0
  6. package/dist/chunk-32EEBARV.js +1 -0
  7. package/dist/chunk-3AV3GTMP.js +1 -0
  8. package/dist/chunk-43YBXX7R.js +1 -0
  9. package/dist/chunk-4Z5ECCJE.js +1 -0
  10. package/dist/chunk-5RBLIVBF.js +1 -0
  11. package/dist/chunk-67QCYUJU.js +1 -0
  12. package/dist/chunk-6QKI756T.js +2 -0
  13. package/dist/chunk-6V4WM73L.js +1 -0
  14. package/dist/chunk-6XEC6474.js +1 -0
  15. package/dist/chunk-7DFNBRLY.js +61 -0
  16. package/dist/chunk-ARNZQBMX.js +1 -0
  17. package/dist/chunk-AYUJY37O.js +5 -0
  18. package/dist/chunk-CADKBP3D.js +58 -0
  19. package/dist/chunk-CDI5CCHU.js +1 -0
  20. package/dist/chunk-CNQ5DTNC.js +1 -0
  21. package/dist/chunk-DCLWFGEA.js +1 -0
  22. package/dist/chunk-DNF4HDI6.js +14 -0
  23. package/dist/chunk-DPFNJZUO.js +1 -0
  24. package/dist/chunk-DSO2U4Y6.js +56 -0
  25. package/dist/chunk-DVN7GFJG.js +1 -0
  26. package/dist/chunk-G63KMH6U.js +1 -0
  27. package/dist/chunk-G6XGDHGC.js +2 -0
  28. package/dist/chunk-GBMF3TP6.js +1 -0
  29. package/dist/chunk-GY5IJ4RS.js +1 -0
  30. package/dist/chunk-H2ORWIEY.js +1 -0
  31. package/dist/chunk-H4SV7FN4.js +1 -0
  32. package/dist/chunk-HS7X43XE.js +24 -0
  33. package/dist/{chunk-OQBBVTDG.js → chunk-I2DZGJRR.js} +6 -71
  34. package/dist/chunk-IZTIYR5Q.js +2 -0
  35. package/dist/chunk-JAPCCEKF.js +3 -0
  36. package/dist/chunk-JQTGQXUX.js +1 -0
  37. package/dist/chunk-KAF3CYRW.js +9 -0
  38. package/dist/chunk-KKDHD4XA.js +2 -0
  39. package/dist/chunk-KV325CXF.js +33 -0
  40. package/dist/chunk-MGHFDHHM.js +1 -0
  41. package/dist/chunk-MODXEGCU.js +1 -0
  42. package/dist/chunk-MVM6OGAF.js +4 -0
  43. package/dist/chunk-N7ODX6PO.js +1 -0
  44. package/dist/chunk-N7TGRFVZ.js +70 -0
  45. package/dist/chunk-NBTC5FNV.js +1 -0
  46. package/dist/chunk-NEACEHQD.js +1 -0
  47. package/dist/chunk-NJ5UED3H.js +1 -0
  48. package/dist/chunk-NVKX36YN.js +3 -0
  49. package/dist/chunk-O2SDD2WW.js +1 -0
  50. package/dist/chunk-O6C2UGBY.js +7 -0
  51. package/dist/chunk-OMXUK4M6.js +1 -0
  52. package/dist/chunk-PPKPCXJD.js +4 -0
  53. package/dist/{chunk-XZXS2W24.js → chunk-QFVGUZDO.js} +11 -57
  54. package/dist/chunk-RDET7CKR.js +1 -0
  55. package/dist/chunk-RQ424GI6.js +5 -0
  56. package/dist/chunk-RSKQRVPJ.js +1 -0
  57. package/dist/chunk-RTWRHIKY.js +7 -0
  58. package/dist/chunk-SZ62CP55.js +1 -0
  59. package/dist/chunk-TDD7IOV2.js +1 -0
  60. package/dist/chunk-TIOKY2IA.js +1 -0
  61. package/dist/chunk-TQMG647B.js +15 -0
  62. package/dist/chunk-TU2AR6XO.js +1 -0
  63. package/dist/chunk-U6ABMRT3.js +9 -0
  64. package/dist/chunk-U6XEU573.js +1 -0
  65. package/dist/chunk-UF6US7VU.js +1 -0
  66. package/dist/chunk-V44SRRYR.js +1 -0
  67. package/dist/chunk-V5U3E4BZ.js +1 -0
  68. package/dist/chunk-VAXRCSSH.js +2 -0
  69. package/dist/chunk-VLOX6KOM.js +1 -0
  70. package/dist/chunk-VUGRXM7R.js +1 -0
  71. package/dist/chunk-W2MOTOQE.js +1 -0
  72. package/dist/chunk-W2MV25SB.js +1 -0
  73. package/dist/chunk-WLVQJH4E.js +1 -0
  74. package/dist/chunk-WSCK4WNK.js +1 -0
  75. package/dist/chunk-XICLXXRH.js +1 -0
  76. package/dist/chunk-XXDZJ6YI.js +1 -0
  77. package/dist/chunk-ZL4MZMUK.js +34 -0
  78. package/dist/chunk-ZLLER3HP.js +1 -0
  79. package/dist/chunk-ZR3MUNLS.js +1 -0
  80. package/dist/chunk-ZXF5NE54.js +1 -0
  81. package/dist/commands/antigravity/backfill.js +2 -136
  82. package/dist/commands/auth/create-key.js +1 -52
  83. package/dist/commands/auth/login.js +1 -85
  84. package/dist/commands/auth/logout.js +1 -29
  85. package/dist/commands/auth/revoke-key.js +4 -33
  86. package/dist/commands/auth/signup.js +1 -89
  87. package/dist/commands/auth/status.js +1 -42
  88. package/dist/commands/catalog/index.js +2 -52
  89. package/dist/commands/catalog/recommend.js +3 -43
  90. package/dist/commands/convert.js +1 -75
  91. package/dist/commands/converters.js +1 -54
  92. package/dist/commands/crons/list.js +1 -41
  93. package/dist/commands/crons/run.js +2 -76
  94. package/dist/commands/dashboard.js +1 -46
  95. package/dist/commands/diagnostics.js +1 -117
  96. package/dist/commands/eval-targets/create.js +1 -53
  97. package/dist/commands/eval-targets/list.js +1 -54
  98. package/dist/commands/evals/agent.js +3 -310
  99. package/dist/commands/evals/benchmark.js +6 -73
  100. package/dist/commands/evals/compare.js +13 -96
  101. package/dist/commands/evals/create.js +1 -67
  102. package/dist/commands/evals/optimize-description.js +25 -239
  103. package/dist/commands/evals/optimize.js +5 -211
  104. package/dist/commands/evals/run.js +3 -183
  105. package/dist/commands/gateway/ensure.js +1 -104
  106. package/dist/commands/hooks/emit-instructions.js +1 -25
  107. package/dist/commands/hooks/install.js +1 -442
  108. package/dist/commands/hooks/run.js +3 -81
  109. package/dist/commands/hooks/uninstall.js +2 -156
  110. package/dist/commands/import.js +1 -66
  111. package/dist/commands/instructions/create.js +1 -74
  112. package/dist/commands/instructions/delete.js +1 -55
  113. package/dist/commands/instructions/fork.js +1 -34
  114. package/dist/commands/instructions/get.js +1 -68
  115. package/dist/commands/instructions/list.js +1 -65
  116. package/dist/commands/instructions/promote.js +1 -42
  117. package/dist/commands/instructions/pull.js +1 -39
  118. package/dist/commands/instructions/upstream.js +1 -38
  119. package/dist/commands/instructions/versions.js +1 -53
  120. package/dist/commands/launcher.js +1 -40
  121. package/dist/commands/org/current.js +1 -77
  122. package/dist/commands/org/list.js +1 -52
  123. package/dist/commands/org/switch.js +1 -71
  124. package/dist/commands/packs/add-instruction.js +1 -37
  125. package/dist/commands/packs/apply.js +1 -39
  126. package/dist/commands/packs/create.js +1 -50
  127. package/dist/commands/packs/fork.js +1 -34
  128. package/dist/commands/packs/get.js +3 -56
  129. package/dist/commands/packs/list.js +1 -66
  130. package/dist/commands/packs/remove-instruction.js +1 -35
  131. package/dist/commands/proxy/env.js +3 -131
  132. package/dist/commands/proxy/logs.js +3 -85
  133. package/dist/commands/proxy/restart.js +1 -35
  134. package/dist/commands/proxy/setup.js +17 -454
  135. package/dist/commands/proxy/start.js +10 -333
  136. package/dist/commands/proxy/status.js +1 -78
  137. package/dist/commands/proxy/stop.js +1 -94
  138. package/dist/commands/research/backfill.js +1 -59
  139. package/dist/commands/research/tail-transcript.js +1 -70
  140. package/dist/commands/service/install.js +57 -796
  141. package/dist/commands/service/status.js +1 -180
  142. package/dist/commands/service/uninstall.js +1 -119
  143. package/dist/commands/sessions/analyze.js +1 -48
  144. package/dist/commands/sessions/end.js +2 -85
  145. package/dist/commands/sessions/import.js +1 -46
  146. package/dist/commands/sessions/list.js +1 -48
  147. package/dist/commands/sessions/start.js +3 -90
  148. package/dist/commands/setup.js +3 -150
  149. package/dist/commands/skills/export-approved.js +1 -46
  150. package/dist/commands/skills/install.js +4 -107
  151. package/dist/commands/skills/list.js +4 -65
  152. package/dist/commands/skills/publish.js +2 -98
  153. package/dist/commands/skills/search.js +3 -72
  154. package/dist/commands/skills/update.js +3 -55
  155. package/dist/commands/suggestions/accept.js +8 -84
  156. package/dist/commands/suggestions/dismiss.js +1 -45
  157. package/dist/commands/suggestions/list.js +2 -61
  158. package/dist/commands/suggestions/refresh.js +1 -27
  159. package/dist/cursor-T7AMCMKS.js +13 -0
  160. package/dist/dashboard/Dashboard.js +1 -243
  161. package/dist/dashboard/data.js +1 -15
  162. package/dist/dashboard/launcher/ActiveJobsList.js +1 -10
  163. package/dist/dashboard/launcher/LauncherOverlay.js +1 -16
  164. package/dist/dashboard/launcher/NewLaunchForm.js +1 -10
  165. package/dist/dashboard/launcher/api.js +1 -16
  166. package/dist/dashboard/launcher/tool-labels.js +1 -10
  167. package/dist/dashboard/launcher/types.js +0 -1
  168. package/dist/dashboard/launcher/useLaunchJobs.js +1 -11
  169. package/dist/dashboard/panels/friction.js +1 -10
  170. package/dist/dashboard/panels/insights.js +1 -10
  171. package/dist/dashboard/panels/instructions.js +1 -10
  172. package/dist/dashboard/panels/outcomes.js +1 -10
  173. package/dist/dashboard/panels/overview.js +1 -10
  174. package/dist/dashboard/panels/shared.js +1 -19
  175. package/dist/dashboard/types.js +1 -24
  176. package/dist/dist-FAVALJ5C.js +1 -0
  177. package/dist/index.js +1 -8
  178. package/dist/lib/active-org-refresh.js +1 -15
  179. package/dist/lib/active-org.js +1 -16
  180. package/dist/lib/agent-loop.js +1 -47
  181. package/dist/lib/antigravity-transcript.js +1 -22
  182. package/dist/lib/api-client.js +1 -23
  183. package/dist/lib/auth.js +1 -30
  184. package/dist/lib/capture-hosts.js +1 -8
  185. package/dist/lib/detect-languages.js +1 -8
  186. package/dist/lib/detect-tmux.js +1 -9
  187. package/dist/lib/diagnostics.js +1 -12
  188. package/dist/lib/editor-proxy-pins.js +1 -14
  189. package/dist/lib/ensure-api-key.js +1 -11
  190. package/dist/lib/ensure-fresh-token.js +1 -0
  191. package/dist/lib/eval-analyzer.js +1 -9
  192. package/dist/lib/eval-benchmark.js +1 -12
  193. package/dist/lib/eval-conversation-handler.js +1 -13
  194. package/dist/lib/eval-executor.js +1 -8
  195. package/dist/lib/eval-grader.js +1 -9
  196. package/dist/lib/eval-meta-judge.js +1 -9
  197. package/dist/lib/eval-trigger-tester.js +1 -11
  198. package/dist/lib/eval-worktree.js +1 -8
  199. package/dist/lib/gateway-entry.js +1 -61
  200. package/dist/lib/gateway-identity.js +1 -16
  201. package/dist/lib/gateway-lifecycle.js +1 -32
  202. package/dist/lib/gateway.js +1 -14
  203. package/dist/lib/handlers/cron-refresh-pricing.js +1 -0
  204. package/dist/lib/handlers/cron-refresh-skills.js +1 -8
  205. package/dist/lib/handlers/cron-suggest-instructions.js +1 -16
  206. package/dist/lib/handlers/process-announcement.js +1 -11
  207. package/dist/lib/handlers/process-changelog.js +1 -11
  208. package/dist/lib/handlers/process-conversation.js +1 -14
  209. package/dist/lib/handlers/process-eval.js +1 -15
  210. package/dist/lib/handlers/process-insights.js +1 -15
  211. package/dist/lib/handlers/process-launch.js +1 -16
  212. package/dist/lib/handlers/process-run-cleanup.js +1 -13
  213. package/dist/lib/handlers/process-send-message.js +1 -10
  214. package/dist/lib/handlers/process-session-goal.js +1 -12
  215. package/dist/lib/hooks-config.js +1 -81
  216. package/dist/lib/insights-prompts.js +1 -12
  217. package/dist/lib/instruction-snapshot.js +1 -8
  218. package/dist/lib/job-helpers.js +0 -1
  219. package/dist/lib/llm-client.js +1 -20
  220. package/dist/lib/manual-tasks-meta.js +1 -8
  221. package/dist/lib/manual-tasks.js +1 -80
  222. package/dist/lib/output.js +1 -12
  223. package/dist/lib/permanent-job-error.js +1 -10
  224. package/dist/lib/pid-identity.js +1 -14
  225. package/dist/lib/proxy-respawn.js +1 -12
  226. package/dist/lib/research-client.js +1 -12
  227. package/dist/lib/setup-steps.js +1 -33
  228. package/dist/lib/skills-loader.js +1 -8
  229. package/dist/lib/statusline-shim.js +1 -20
  230. package/dist/lib/telemetry.js +1 -16
  231. package/dist/lib/terminal-target-heartbeat.js +1 -15
  232. package/dist/lib/tmux.js +1 -16
  233. package/dist/lib/transcript-rate-limit-watcher.js +1 -22
  234. package/dist/lib/types.js +1 -8
  235. package/dist/lib/version-check.js +1 -12
  236. package/dist/lib/which.js +1 -8
  237. package/dist/lib/worktree.js +1 -17
  238. package/dist/opencode-QRJ3BH23.js +1 -0
  239. package/oclif.manifest.json +12 -34
  240. package/package.json +9 -8
  241. package/dist/base-command.js.map +0 -7
  242. package/dist/chunk-2HK7RGZB.js +0 -82
  243. package/dist/chunk-2HK7RGZB.js.map +0 -7
  244. package/dist/chunk-2ORJWTNZ.js +0 -307
  245. package/dist/chunk-2ORJWTNZ.js.map +0 -7
  246. package/dist/chunk-37LN5O7M.js +0 -59
  247. package/dist/chunk-37LN5O7M.js.map +0 -7
  248. package/dist/chunk-3S7223UR.js +0 -81
  249. package/dist/chunk-3S7223UR.js.map +0 -7
  250. package/dist/chunk-3TIMQ3O6.js +0 -96
  251. package/dist/chunk-3TIMQ3O6.js.map +0 -7
  252. package/dist/chunk-42GFSAJP.js +0 -32
  253. package/dist/chunk-42GFSAJP.js.map +0 -7
  254. package/dist/chunk-4BHDHHKL.js +0 -48
  255. package/dist/chunk-4BHDHHKL.js.map +0 -7
  256. package/dist/chunk-4D537GXE.js +0 -99
  257. package/dist/chunk-4D537GXE.js.map +0 -7
  258. package/dist/chunk-4LYCDS2N.js +0 -139
  259. package/dist/chunk-4LYCDS2N.js.map +0 -7
  260. package/dist/chunk-4SCZK7AL.js +0 -129
  261. package/dist/chunk-4SCZK7AL.js.map +0 -7
  262. package/dist/chunk-4XAWK6S2.js +0 -161
  263. package/dist/chunk-4XAWK6S2.js.map +0 -7
  264. package/dist/chunk-52WIYRZH.js +0 -73
  265. package/dist/chunk-52WIYRZH.js.map +0 -7
  266. package/dist/chunk-5BAOGNUH.js +0 -79
  267. package/dist/chunk-5BAOGNUH.js.map +0 -7
  268. package/dist/chunk-5EDMGK3W.js +0 -39
  269. package/dist/chunk-5EDMGK3W.js.map +0 -7
  270. package/dist/chunk-6NBS5XFS.js +0 -99
  271. package/dist/chunk-6NBS5XFS.js.map +0 -7
  272. package/dist/chunk-7LVVKQMZ.js +0 -98
  273. package/dist/chunk-7LVVKQMZ.js.map +0 -7
  274. package/dist/chunk-7NNFYWKK.js +0 -243
  275. package/dist/chunk-7NNFYWKK.js.map +0 -7
  276. package/dist/chunk-7NYKWN7U.js +0 -12
  277. package/dist/chunk-7NYKWN7U.js.map +0 -7
  278. package/dist/chunk-BO76WKJR.js +0 -42
  279. package/dist/chunk-BO76WKJR.js.map +0 -7
  280. package/dist/chunk-BRD5RUGM.js +0 -53
  281. package/dist/chunk-BRD5RUGM.js.map +0 -7
  282. package/dist/chunk-BT6Z6545.js +0 -43
  283. package/dist/chunk-BT6Z6545.js.map +0 -7
  284. package/dist/chunk-BZDKEQKU.js +0 -39
  285. package/dist/chunk-BZDKEQKU.js.map +0 -7
  286. package/dist/chunk-DGHWRQXL.js +0 -17
  287. package/dist/chunk-DGHWRQXL.js.map +0 -7
  288. package/dist/chunk-DIQUV5FR.js +0 -257
  289. package/dist/chunk-DIQUV5FR.js.map +0 -7
  290. package/dist/chunk-DMX5YOTM.js +0 -167
  291. package/dist/chunk-DMX5YOTM.js.map +0 -7
  292. package/dist/chunk-DNKSVWMD.js +0 -108
  293. package/dist/chunk-DNKSVWMD.js.map +0 -7
  294. package/dist/chunk-DQ3KELXD.js +0 -74
  295. package/dist/chunk-DQ3KELXD.js.map +0 -7
  296. package/dist/chunk-DUJSRBLP.js +0 -122
  297. package/dist/chunk-DUJSRBLP.js.map +0 -7
  298. package/dist/chunk-E3BIT53W.js +0 -154
  299. package/dist/chunk-E3BIT53W.js.map +0 -7
  300. package/dist/chunk-EARWG4EV.js +0 -22
  301. package/dist/chunk-EARWG4EV.js.map +0 -7
  302. package/dist/chunk-EI5BHWXA.js +0 -1662
  303. package/dist/chunk-EI5BHWXA.js.map +0 -7
  304. package/dist/chunk-EJ3YAFDP.js +0 -37
  305. package/dist/chunk-EJ3YAFDP.js.map +0 -7
  306. package/dist/chunk-EKJ2CABV.js +0 -76
  307. package/dist/chunk-EKJ2CABV.js.map +0 -7
  308. package/dist/chunk-EKP32DLN.js +0 -16
  309. package/dist/chunk-EKP32DLN.js.map +0 -7
  310. package/dist/chunk-EYPAAGN5.js +0 -51
  311. package/dist/chunk-EYPAAGN5.js.map +0 -7
  312. package/dist/chunk-F5N6CLJJ.js +0 -1995
  313. package/dist/chunk-F5N6CLJJ.js.map +0 -7
  314. package/dist/chunk-GIUBARWS.js +0 -99
  315. package/dist/chunk-GIUBARWS.js.map +0 -7
  316. package/dist/chunk-GQNJO2P2.js +0 -102
  317. package/dist/chunk-GQNJO2P2.js.map +0 -7
  318. package/dist/chunk-IJGF2ETG.js +0 -68
  319. package/dist/chunk-IJGF2ETG.js.map +0 -7
  320. package/dist/chunk-ILYDELUE.js +0 -46
  321. package/dist/chunk-ILYDELUE.js.map +0 -7
  322. package/dist/chunk-J6QFW4LD.js +0 -55
  323. package/dist/chunk-J6QFW4LD.js.map +0 -7
  324. package/dist/chunk-J7N3DLH6.js +0 -117
  325. package/dist/chunk-J7N3DLH6.js.map +0 -7
  326. package/dist/chunk-JFDWKLQC.js +0 -23
  327. package/dist/chunk-JFDWKLQC.js.map +0 -7
  328. package/dist/chunk-JULOLTZS.js +0 -61
  329. package/dist/chunk-JULOLTZS.js.map +0 -7
  330. package/dist/chunk-KJKBDQ4D.js +0 -220
  331. package/dist/chunk-KJKBDQ4D.js.map +0 -7
  332. package/dist/chunk-KRBQLMOP.js +0 -41
  333. package/dist/chunk-KRBQLMOP.js.map +0 -7
  334. package/dist/chunk-LXKPNATC.js +0 -624
  335. package/dist/chunk-LXKPNATC.js.map +0 -7
  336. package/dist/chunk-NSBPE2FW.js +0 -17
  337. package/dist/chunk-NSBPE2FW.js.map +0 -7
  338. package/dist/chunk-OCKHW72U.js +0 -55
  339. package/dist/chunk-OCKHW72U.js.map +0 -7
  340. package/dist/chunk-OKWCKCPE.js +0 -414
  341. package/dist/chunk-OKWCKCPE.js.map +0 -7
  342. package/dist/chunk-OO7JDFS4.js +0 -157
  343. package/dist/chunk-OO7JDFS4.js.map +0 -7
  344. package/dist/chunk-OQBBVTDG.js.map +0 -7
  345. package/dist/chunk-OQSQC7VB.js +0 -77
  346. package/dist/chunk-OQSQC7VB.js.map +0 -7
  347. package/dist/chunk-PED7L5GX.js +0 -92
  348. package/dist/chunk-PED7L5GX.js.map +0 -7
  349. package/dist/chunk-QJQS6TUN.js +0 -44
  350. package/dist/chunk-QJQS6TUN.js.map +0 -7
  351. package/dist/chunk-QN34TGD3.js +0 -83
  352. package/dist/chunk-QN34TGD3.js.map +0 -7
  353. package/dist/chunk-QSN77T7C.js +0 -250
  354. package/dist/chunk-QSN77T7C.js.map +0 -7
  355. package/dist/chunk-R56PH7YE.js +0 -78
  356. package/dist/chunk-R56PH7YE.js.map +0 -7
  357. package/dist/chunk-RAXRZYOB.js +0 -299
  358. package/dist/chunk-RAXRZYOB.js.map +0 -7
  359. package/dist/chunk-RH7NHVSK.js +0 -16
  360. package/dist/chunk-RH7NHVSK.js.map +0 -7
  361. package/dist/chunk-RMTT4KDY.js +0 -191
  362. package/dist/chunk-RMTT4KDY.js.map +0 -7
  363. package/dist/chunk-RQ2TMLKG.js +0 -142
  364. package/dist/chunk-RQ2TMLKG.js.map +0 -7
  365. package/dist/chunk-SO3T35U7.js +0 -80
  366. package/dist/chunk-SO3T35U7.js.map +0 -7
  367. package/dist/chunk-UKMLICWS.js +0 -51
  368. package/dist/chunk-UKMLICWS.js.map +0 -7
  369. package/dist/chunk-VA5FFOS7.js +0 -243
  370. package/dist/chunk-VA5FFOS7.js.map +0 -7
  371. package/dist/chunk-W2YERO7E.js +0 -170
  372. package/dist/chunk-W2YERO7E.js.map +0 -7
  373. package/dist/chunk-W53GKIZQ.js +0 -50
  374. package/dist/chunk-W53GKIZQ.js.map +0 -7
  375. package/dist/chunk-WA4MWYRW.js +0 -254
  376. package/dist/chunk-WA4MWYRW.js.map +0 -7
  377. package/dist/chunk-XC6M4CSW.js +0 -44
  378. package/dist/chunk-XC6M4CSW.js.map +0 -7
  379. package/dist/chunk-XK42ZBDE.js +0 -23
  380. package/dist/chunk-XK42ZBDE.js.map +0 -7
  381. package/dist/chunk-XUV6DDBF.js +0 -124
  382. package/dist/chunk-XUV6DDBF.js.map +0 -7
  383. package/dist/chunk-XZXS2W24.js.map +0 -7
  384. package/dist/chunk-Y3WD5CSW.js +0 -49
  385. package/dist/chunk-Y3WD5CSW.js.map +0 -7
  386. package/dist/chunk-Y4BJXXYV.js +0 -148
  387. package/dist/chunk-Y4BJXXYV.js.map +0 -7
  388. package/dist/chunk-YNIH3KMU.js +0 -121
  389. package/dist/chunk-YNIH3KMU.js.map +0 -7
  390. package/dist/chunk-ZUJBM6HE.js +0 -125
  391. package/dist/chunk-ZUJBM6HE.js.map +0 -7
  392. package/dist/commands/antigravity/backfill.js.map +0 -7
  393. package/dist/commands/auth/create-key.js.map +0 -7
  394. package/dist/commands/auth/login.js.map +0 -7
  395. package/dist/commands/auth/logout.js.map +0 -7
  396. package/dist/commands/auth/revoke-key.js.map +0 -7
  397. package/dist/commands/auth/signup.js.map +0 -7
  398. package/dist/commands/auth/status.js.map +0 -7
  399. package/dist/commands/catalog/index.js.map +0 -7
  400. package/dist/commands/catalog/recommend.js.map +0 -7
  401. package/dist/commands/convert.js.map +0 -7
  402. package/dist/commands/converters.js.map +0 -7
  403. package/dist/commands/crons/list.js.map +0 -7
  404. package/dist/commands/crons/run.js.map +0 -7
  405. package/dist/commands/dashboard.js.map +0 -7
  406. package/dist/commands/diagnostics.js.map +0 -7
  407. package/dist/commands/eval-targets/create.js.map +0 -7
  408. package/dist/commands/eval-targets/list.js.map +0 -7
  409. package/dist/commands/evals/agent.js.map +0 -7
  410. package/dist/commands/evals/benchmark.js.map +0 -7
  411. package/dist/commands/evals/compare.js.map +0 -7
  412. package/dist/commands/evals/create.js.map +0 -7
  413. package/dist/commands/evals/optimize-description.js.map +0 -7
  414. package/dist/commands/evals/optimize.js.map +0 -7
  415. package/dist/commands/evals/run.js.map +0 -7
  416. package/dist/commands/gateway/ensure.js.map +0 -7
  417. package/dist/commands/hooks/emit-instructions.js.map +0 -7
  418. package/dist/commands/hooks/install.js.map +0 -7
  419. package/dist/commands/hooks/run.js.map +0 -7
  420. package/dist/commands/hooks/uninstall.js.map +0 -7
  421. package/dist/commands/import.js.map +0 -7
  422. package/dist/commands/instructions/create.js.map +0 -7
  423. package/dist/commands/instructions/delete.js.map +0 -7
  424. package/dist/commands/instructions/fork.js.map +0 -7
  425. package/dist/commands/instructions/get.js.map +0 -7
  426. package/dist/commands/instructions/list.js.map +0 -7
  427. package/dist/commands/instructions/promote.js.map +0 -7
  428. package/dist/commands/instructions/pull.js.map +0 -7
  429. package/dist/commands/instructions/upstream.js.map +0 -7
  430. package/dist/commands/instructions/versions.js.map +0 -7
  431. package/dist/commands/launcher.js.map +0 -7
  432. package/dist/commands/org/current.js.map +0 -7
  433. package/dist/commands/org/list.js.map +0 -7
  434. package/dist/commands/org/switch.js.map +0 -7
  435. package/dist/commands/packs/add-instruction.js.map +0 -7
  436. package/dist/commands/packs/apply.js.map +0 -7
  437. package/dist/commands/packs/create.js.map +0 -7
  438. package/dist/commands/packs/fork.js.map +0 -7
  439. package/dist/commands/packs/get.js.map +0 -7
  440. package/dist/commands/packs/list.js.map +0 -7
  441. package/dist/commands/packs/remove-instruction.js.map +0 -7
  442. package/dist/commands/proxy/env.js.map +0 -7
  443. package/dist/commands/proxy/logs.js.map +0 -7
  444. package/dist/commands/proxy/restart.js.map +0 -7
  445. package/dist/commands/proxy/setup.js.map +0 -7
  446. package/dist/commands/proxy/start.js.map +0 -7
  447. package/dist/commands/proxy/status.js.map +0 -7
  448. package/dist/commands/proxy/stop.js.map +0 -7
  449. package/dist/commands/research/backfill.js.map +0 -7
  450. package/dist/commands/research/tail-transcript.js.map +0 -7
  451. package/dist/commands/service/install.js.map +0 -7
  452. package/dist/commands/service/status.js.map +0 -7
  453. package/dist/commands/service/uninstall.js.map +0 -7
  454. package/dist/commands/sessions/analyze.js.map +0 -7
  455. package/dist/commands/sessions/end.js.map +0 -7
  456. package/dist/commands/sessions/import.js.map +0 -7
  457. package/dist/commands/sessions/list.js.map +0 -7
  458. package/dist/commands/sessions/start.js.map +0 -7
  459. package/dist/commands/setup.js.map +0 -7
  460. package/dist/commands/skills/export-approved.js.map +0 -7
  461. package/dist/commands/skills/install.js.map +0 -7
  462. package/dist/commands/skills/list.js.map +0 -7
  463. package/dist/commands/skills/publish.js.map +0 -7
  464. package/dist/commands/skills/search.js.map +0 -7
  465. package/dist/commands/skills/update.js.map +0 -7
  466. package/dist/commands/suggestions/accept.js.map +0 -7
  467. package/dist/commands/suggestions/dismiss.js.map +0 -7
  468. package/dist/commands/suggestions/list.js.map +0 -7
  469. package/dist/commands/suggestions/refresh.js.map +0 -7
  470. package/dist/cursor-BGQJ4CWI.js +0 -134
  471. package/dist/cursor-BGQJ4CWI.js.map +0 -7
  472. package/dist/dashboard/Dashboard.js.map +0 -7
  473. package/dist/dashboard/data.js.map +0 -7
  474. package/dist/dashboard/launcher/ActiveJobsList.js.map +0 -7
  475. package/dist/dashboard/launcher/LauncherOverlay.js.map +0 -7
  476. package/dist/dashboard/launcher/NewLaunchForm.js.map +0 -7
  477. package/dist/dashboard/launcher/api.js.map +0 -7
  478. package/dist/dashboard/launcher/tool-labels.js.map +0 -7
  479. package/dist/dashboard/launcher/types.js.map +0 -7
  480. package/dist/dashboard/launcher/useLaunchJobs.js.map +0 -7
  481. package/dist/dashboard/panels/friction.js.map +0 -7
  482. package/dist/dashboard/panels/insights.js.map +0 -7
  483. package/dist/dashboard/panels/instructions.js.map +0 -7
  484. package/dist/dashboard/panels/outcomes.js.map +0 -7
  485. package/dist/dashboard/panels/overview.js.map +0 -7
  486. package/dist/dashboard/panels/shared.js.map +0 -7
  487. package/dist/dashboard/types.js.map +0 -7
  488. package/dist/dist-UNYP5PJR.js +0 -56
  489. package/dist/dist-UNYP5PJR.js.map +0 -7
  490. package/dist/index.js.map +0 -7
  491. package/dist/lib/active-org-refresh.js.map +0 -7
  492. package/dist/lib/active-org.js.map +0 -7
  493. package/dist/lib/agent-loop.js.map +0 -7
  494. package/dist/lib/antigravity-transcript.js.map +0 -7
  495. package/dist/lib/api-client.js.map +0 -7
  496. package/dist/lib/auth.js.map +0 -7
  497. package/dist/lib/capture-hosts.js.map +0 -7
  498. package/dist/lib/detect-languages.js.map +0 -7
  499. package/dist/lib/detect-tmux.js.map +0 -7
  500. package/dist/lib/diagnostics.js.map +0 -7
  501. package/dist/lib/editor-proxy-pins.js.map +0 -7
  502. package/dist/lib/ensure-api-key.js.map +0 -7
  503. package/dist/lib/eval-analyzer.js.map +0 -7
  504. package/dist/lib/eval-benchmark.js.map +0 -7
  505. package/dist/lib/eval-conversation-handler.js.map +0 -7
  506. package/dist/lib/eval-executor.js.map +0 -7
  507. package/dist/lib/eval-grader.js.map +0 -7
  508. package/dist/lib/eval-meta-judge.js.map +0 -7
  509. package/dist/lib/eval-trigger-tester.js.map +0 -7
  510. package/dist/lib/eval-worktree.js.map +0 -7
  511. package/dist/lib/gateway-entry.js.map +0 -7
  512. package/dist/lib/gateway-identity.js.map +0 -7
  513. package/dist/lib/gateway-lifecycle.js.map +0 -7
  514. package/dist/lib/gateway.js.map +0 -7
  515. package/dist/lib/handlers/cron-refresh-skills.js.map +0 -7
  516. package/dist/lib/handlers/cron-suggest-instructions.js.map +0 -7
  517. package/dist/lib/handlers/process-announcement.js.map +0 -7
  518. package/dist/lib/handlers/process-changelog.js.map +0 -7
  519. package/dist/lib/handlers/process-conversation.js.map +0 -7
  520. package/dist/lib/handlers/process-eval.js.map +0 -7
  521. package/dist/lib/handlers/process-insights.js.map +0 -7
  522. package/dist/lib/handlers/process-launch.js.map +0 -7
  523. package/dist/lib/handlers/process-run-cleanup.js.map +0 -7
  524. package/dist/lib/handlers/process-send-message.js.map +0 -7
  525. package/dist/lib/handlers/process-session-goal.js.map +0 -7
  526. package/dist/lib/hooks-config.js.map +0 -7
  527. package/dist/lib/insights-prompts.js.map +0 -7
  528. package/dist/lib/instruction-snapshot.js.map +0 -7
  529. package/dist/lib/job-helpers.js.map +0 -7
  530. package/dist/lib/llm-client.js.map +0 -7
  531. package/dist/lib/manual-tasks-meta.js.map +0 -7
  532. package/dist/lib/manual-tasks.js.map +0 -7
  533. package/dist/lib/output.js.map +0 -7
  534. package/dist/lib/permanent-job-error.js.map +0 -7
  535. package/dist/lib/pid-identity.js.map +0 -7
  536. package/dist/lib/proxy-respawn.js.map +0 -7
  537. package/dist/lib/research-client.js.map +0 -7
  538. package/dist/lib/setup-steps.js.map +0 -7
  539. package/dist/lib/skills-loader.js.map +0 -7
  540. package/dist/lib/statusline-shim.js.map +0 -7
  541. package/dist/lib/telemetry.js.map +0 -7
  542. package/dist/lib/terminal-target-heartbeat.js.map +0 -7
  543. package/dist/lib/tmux.js.map +0 -7
  544. package/dist/lib/transcript-rate-limit-watcher.js.map +0 -7
  545. package/dist/lib/types.js.map +0 -7
  546. package/dist/lib/version-check.js.map +0 -7
  547. package/dist/lib/which.js.map +0 -7
  548. package/dist/lib/worktree.js.map +0 -7
  549. package/dist/opencode-IQ7X5YMJ.js +0 -190
  550. package/dist/opencode-IQ7X5YMJ.js.map +0 -7
@@ -1,156 +1,2 @@
1
- import {
2
- cleanClaudeSettingsFiles,
3
- removeAntigravityHooks,
4
- removeAntigravityUserHooks,
5
- removeCopilotHooks,
6
- removeCursorHooks,
7
- removeCursorUserHooks,
8
- removeCursorUserProxyConfig,
9
- removeVSCodeProxyConfig,
10
- removeVSCodeUserProxyConfig,
11
- uninstallMacOSProxyEnv
12
- } from "../../chunk-LXKPNATC.js";
13
- import "../../chunk-OQBBVTDG.js";
14
- import {
15
- GATEWAY_PORT,
16
- stopGateway
17
- } from "../../chunk-4LYCDS2N.js";
18
- import "../../chunk-7LVVKQMZ.js";
19
- import "../../chunk-5EDMGK3W.js";
20
- import {
21
- BaseCommand
22
- } from "../../chunk-2HK7RGZB.js";
23
- import "../../chunk-R56PH7YE.js";
24
- import "../../chunk-GQNJO2P2.js";
25
- import "../../chunk-37LN5O7M.js";
26
- import "../../chunk-EKJ2CABV.js";
27
- import "../../chunk-ZUJBM6HE.js";
28
- import "../../chunk-W2YERO7E.js";
29
- import "../../chunk-NSBPE2FW.js";
30
-
31
- // src/commands/hooks/uninstall.ts
32
- import { existsSync, readFileSync, writeFileSync } from "node:fs";
33
- import { spawnSync } from "node:child_process";
34
- import { homedir } from "node:os";
35
- import { join } from "node:path";
36
- var CERT_PATH = join(homedir(), ".mitmproxy", "mitmproxy-ca-cert.pem");
37
- function untrustCACert() {
38
- if (!existsSync(CERT_PATH)) return false;
39
- if (process.platform === "darwin") {
40
- return spawnSync("sudo", ["security", "remove-trusted-cert", "-d", CERT_PATH], { stdio: "inherit" }).status === 0;
41
- }
42
- if (process.platform === "linux") {
43
- const rm = spawnSync("sudo", ["rm", "-f", "/usr/local/share/ca-certificates/mitmproxy-ca.crt"], { stdio: "inherit" });
44
- if (rm.status !== 0) return false;
45
- return spawnSync("sudo", ["update-ca-certificates", "--fresh"], { stdio: "inherit" }).status === 0;
46
- }
47
- if (process.platform === "win32") {
48
- return spawnSync("certutil", ["-delstore", "Root", "mitmproxy"], { stdio: "inherit" }).status === 0;
49
- }
50
- return false;
51
- }
52
- var HooksUninstall = class extends BaseCommand {
53
- static description = "Remove session tracking hooks from the current project";
54
- static examples = [
55
- "<%= config.bin %> hooks uninstall"
56
- ];
57
- async run() {
58
- const claudeDir = join(process.cwd(), ".claude");
59
- const cleanups = cleanClaudeSettingsFiles(claudeDir, GATEWAY_PORT);
60
- if (cleanups.length === 0) {
61
- this.log("No .claude/settings.json or .claude/settings.local.json found \u2014 nothing to uninstall.");
62
- return;
63
- }
64
- let changed = false;
65
- let removedProxyEnv = false;
66
- for (const cleanup of cleanups) {
67
- if (cleanup.recoveredBackup) {
68
- this.log(`[!!] ${cleanup.configPath} was not valid JSON \u2014 backed up to ${cleanup.recoveredBackup}; continuing.`);
69
- }
70
- if (cleanup.removedHooks) {
71
- this.log(`Removed RuleMetric hooks from .claude/${cleanup.fileName}`);
72
- }
73
- if (cleanup.removedProxyEnv) {
74
- this.log(`Removed HTTPS_PROXY, NO_PROXY and NODE_EXTRA_CA_CERTS from .claude/${cleanup.fileName}`);
75
- removedProxyEnv = true;
76
- }
77
- if (cleanup.removedStatusline) {
78
- this.log(`Removed RuleMetric statusline shim from .claude/${cleanup.fileName}`);
79
- }
80
- changed = changed || cleanup.changed;
81
- }
82
- if (!changed) {
83
- this.log("No hooks or proxy config found \u2014 nothing to uninstall.");
84
- }
85
- if (removeCursorHooks(process.cwd())) {
86
- this.log("Removed RuleMetric hooks from .cursor/hooks.json");
87
- changed = true;
88
- }
89
- if (removeCursorUserHooks()) {
90
- this.log("Removed RuleMetric hooks from ~/.cursor/hooks.json");
91
- changed = true;
92
- }
93
- const cursorSettingsPath = join(process.cwd(), ".cursor", "settings.json");
94
- if (existsSync(cursorSettingsPath)) {
95
- try {
96
- const cursorSettings = JSON.parse(readFileSync(cursorSettingsPath, "utf-8"));
97
- if (cursorSettings["http.proxy"]?.includes("localhost")) {
98
- delete cursorSettings["http.proxy"];
99
- delete cursorSettings["http.proxyStrictSSL"];
100
- writeFileSync(cursorSettingsPath, JSON.stringify(cursorSettings, null, 2) + "\n");
101
- this.log("Removed proxy config from .cursor/settings.json");
102
- changed = true;
103
- }
104
- } catch {
105
- }
106
- }
107
- if (removeCopilotHooks(process.cwd())) {
108
- this.log("Removed RuleMetric hooks from .github/hooks/");
109
- changed = true;
110
- }
111
- if (removeAntigravityHooks(process.cwd())) {
112
- this.log("Removed RuleMetric block from .agents/hooks.json");
113
- changed = true;
114
- }
115
- if (removeAntigravityUserHooks()) {
116
- this.log("Removed RuleMetric block from ~/.gemini/config/hooks.json");
117
- changed = true;
118
- }
119
- if (removeVSCodeProxyConfig(process.cwd())) {
120
- this.log("Removed proxy config from .vscode/settings.json");
121
- changed = true;
122
- }
123
- if (removeVSCodeUserProxyConfig()) {
124
- this.log("Removed proxy config from VS Code user settings");
125
- changed = true;
126
- }
127
- if (removeCursorUserProxyConfig()) {
128
- this.log("Removed proxy config from Cursor user settings");
129
- changed = true;
130
- }
131
- if (uninstallMacOSProxyEnv()) {
132
- this.log("Removed HTTPS_PROXY LaunchAgent");
133
- changed = true;
134
- }
135
- if (removedProxyEnv && existsSync(CERT_PATH)) {
136
- this.log("Removing the mitmproxy CA from the system trust store (requires sudo)...");
137
- if (untrustCACert()) {
138
- this.log("[OK] mitmproxy CA untrusted.");
139
- } else {
140
- this.log(`[!!] Could not untrust the CA automatically. Remove it manually:`);
141
- if (process.platform === "darwin") {
142
- this.log(` sudo security remove-trusted-cert -d ${CERT_PATH}`);
143
- } else if (process.platform === "linux") {
144
- this.log(` sudo rm -f /usr/local/share/ca-certificates/mitmproxy-ca.crt && sudo update-ca-certificates --fresh`);
145
- }
146
- }
147
- }
148
- if (stopGateway()) {
149
- this.log("Gateway stopped.");
150
- }
151
- }
152
- };
153
- export {
154
- HooksUninstall as default
155
- };
156
- //# sourceMappingURL=uninstall.js.map
1
+ import{C as x,F as k,J as C,K as S,o as h,s as p,t as g,w as v,x as y,z as R}from"../../chunk-2JRDG4LJ.js";import"../../chunk-I2DZGJRR.js";import{c as f,l as d}from"../../chunk-MVM6OGAF.js";import"../../chunk-KKDHD4XA.js";import"../../chunk-SZ62CP55.js";import{a}from"../../chunk-PPKPCXJD.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-V44SRRYR.js";import"../../chunk-U6XEU573.js";import"../../chunk-VLOX6KOM.js";import"../../chunk-3AV3GTMP.js";import"../../chunk-H2ORWIEY.js";import"../../chunk-O6C2UGBY.js";import{a as i}from"../../chunk-ZLLER3HP.js";import{existsSync as n,readFileSync as A,writeFileSync as j}from"node:fs";import{spawnSync as t}from"node:child_process";import{homedir as O}from"node:os";import{join as c}from"node:path";var r=c(O(),".mitmproxy","mitmproxy-ca-cert.pem");function N(){return n(r)?process.platform==="darwin"?t("sudo",["security","remove-trusted-cert","-d",r],{stdio:"inherit"}).status===0:process.platform==="linux"?t("sudo",["rm","-f","/usr/local/share/ca-certificates/mitmproxy-ca.crt"],{stdio:"inherit"}).status!==0?!1:t("sudo",["update-ca-certificates","--fresh"],{stdio:"inherit"}).status===0:process.platform==="win32"?t("certutil",["-delstore","Root","mitmproxy"],{stdio:"inherit"}).status===0:!1:!1}i(N,"untrustCACert");var u=class extends a{static{i(this,"HooksUninstall")}static description="Remove session tracking hooks from the current project";static examples=["<%= config.bin %> hooks uninstall"];async run(){let w=c(process.cwd(),".claude"),l=h(w,f);if(l.length===0){this.log("No .claude/settings.json or .claude/settings.local.json found \u2014 nothing to uninstall.");return}let e=!1,m=!1;for(let o of l)o.recoveredBackup&&this.log(`[!!] ${o.configPath} was not valid JSON \u2014 backed up to ${o.recoveredBackup}; continuing.`),o.removedHooks&&this.log(`Removed RuleMetric hooks from .claude/${o.fileName}`),o.removedProxyEnv&&(this.log(`Removed HTTPS_PROXY, NO_PROXY and NODE_EXTRA_CA_CERTS from .claude/${o.fileName}`),m=!0),o.removedStatusline&&this.log(`Removed RuleMetric statusline shim from .claude/${o.fileName}`),e=e||o.changed;e||this.log("No hooks or proxy config found \u2014 nothing to uninstall."),p(process.cwd())&&(this.log("Removed RuleMetric hooks from .cursor/hooks.json"),e=!0),g()&&(this.log("Removed RuleMetric hooks from ~/.cursor/hooks.json"),e=!0);let s=c(process.cwd(),".cursor","settings.json");if(n(s))try{let o=JSON.parse(A(s,"utf-8"));o["http.proxy"]?.includes("localhost")&&(delete o["http.proxy"],delete o["http.proxyStrictSSL"],j(s,JSON.stringify(o,null,2)+`
2
+ `),this.log("Removed proxy config from .cursor/settings.json"),e=!0)}catch{}y(process.cwd())&&(this.log("Removed RuleMetric hooks from .github/hooks/"),e=!0),C(process.cwd())&&(this.log("Removed RuleMetric block from .agents/hooks.json"),e=!0),S()&&(this.log("Removed RuleMetric block from ~/.gemini/config/hooks.json"),e=!0),v(process.cwd())&&(this.log("Removed proxy config from .vscode/settings.json"),e=!0),x()&&(this.log("Removed proxy config from VS Code user settings"),e=!0),k()&&(this.log("Removed proxy config from Cursor user settings"),e=!0),R()&&(this.log("Removed HTTPS_PROXY LaunchAgent"),e=!0),m&&n(r)&&(this.log("Removing the mitmproxy CA from the system trust store (requires sudo)..."),N()?this.log("[OK] mitmproxy CA untrusted."):(this.log("[!!] Could not untrust the CA automatically. Remove it manually:"),process.platform==="darwin"?this.log(` sudo security remove-trusted-cert -d ${r}`):process.platform==="linux"&&this.log(" sudo rm -f /usr/local/share/ca-certificates/mitmproxy-ca.crt && sudo update-ca-certificates --fresh"))),d()&&this.log("Gateway stopped.")}};export{u as default};
@@ -1,66 +1 @@
1
- import {
2
- BaseCommand
3
- } from "../chunk-2HK7RGZB.js";
4
- import "../chunk-R56PH7YE.js";
5
- import "../chunk-GQNJO2P2.js";
6
- import "../chunk-37LN5O7M.js";
7
- import "../chunk-EKJ2CABV.js";
8
- import {
9
- apiPost
10
- } from "../chunk-ZUJBM6HE.js";
11
- import "../chunk-W2YERO7E.js";
12
- import "../chunk-NSBPE2FW.js";
13
-
14
- // src/commands/import.ts
15
- import * as fs from "node:fs";
16
- import * as path from "node:path";
17
- import { Args, Flags } from "@oclif/core";
18
- var Import = class _Import extends BaseCommand {
19
- static description = "Import an existing config file as a RuleMetric instruction";
20
- static examples = [
21
- "<%= config.bin %> import .cursorrules",
22
- '<%= config.bin %> import CLAUDE.md --format claude-md --name "My Rules"'
23
- ];
24
- static args = {
25
- file: Args.string({ description: "Path to file to import", required: true })
26
- };
27
- static flags = {
28
- format: Flags.string({ description: "Source format (auto-detected if not provided)" }),
29
- name: Flags.string({ char: "n", description: "Override instruction name" }),
30
- scope: Flags.string({
31
- char: "s",
32
- description: "Instruction scope",
33
- options: ["org", "team", "project", "personal"],
34
- default: "personal"
35
- }),
36
- "scope-ref": Flags.string({ description: "Scope reference UUID" }),
37
- tags: Flags.string({ char: "t", description: "Comma-separated tags" })
38
- };
39
- async run() {
40
- const { args, flags } = await this.parse(_Import);
41
- this.requireAuth();
42
- if (!fs.existsSync(args.file)) {
43
- this.error(`File not found: ${args.file}`);
44
- }
45
- const content = fs.readFileSync(args.file, "utf-8");
46
- const filename = path.basename(args.file);
47
- const body = {
48
- content,
49
- filename,
50
- scope: flags.scope
51
- };
52
- if (flags.format) body.sourceFormat = flags.format;
53
- if (flags.name) body.name = flags.name;
54
- if (flags["scope-ref"]) body.scopeRef = flags["scope-ref"];
55
- if (flags.tags) body.tags = flags.tags.split(",").map((t) => t.trim());
56
- const result = await apiPost("/api/instructions/import", body);
57
- this.log(`Imported ${result.sourceFormat} as instruction: ${result.instruction.name} (${result.instruction.id})`);
58
- if (result.parseWarnings.length > 0) {
59
- this.warn(`Warnings: ${result.parseWarnings.join(", ")}`);
60
- }
61
- }
62
- };
63
- export {
64
- Import as default
65
- };
66
- //# sourceMappingURL=import.js.map
1
+ import{a as p}from"../chunk-PPKPCXJD.js";import"../chunk-IZTIYR5Q.js";import"../chunk-V44SRRYR.js";import"../chunk-U6XEU573.js";import"../chunk-VLOX6KOM.js";import"../chunk-3AV3GTMP.js";import{f as c}from"../chunk-H2ORWIEY.js";import"../chunk-O6C2UGBY.js";import{a}from"../chunk-ZLLER3HP.js";import*as o from"node:fs";import*as m from"node:path";import{Args as g,Flags as i}from"@oclif/core";var n=class f extends p{static{a(this,"Import")}static description="Import an existing config file as a RuleMetric instruction";static examples=["<%= config.bin %> import .cursorrules",'<%= config.bin %> import CLAUDE.md --format claude-md --name "My Rules"'];static args={file:g.string({description:"Path to file to import",required:!0})};static flags={format:i.string({description:"Source format (auto-detected if not provided)"}),name:i.string({char:"n",description:"Override instruction name"}),scope:i.string({char:"s",description:"Instruction scope",options:["org","team","project","personal"],default:"personal"}),"scope-ref":i.string({description:"Scope reference UUID"}),tags:i.string({char:"t",description:"Comma-separated tags"})};async run(){let{args:s,flags:t}=await this.parse(f);this.requireAuth(),o.existsSync(s.file)||this.error(`File not found: ${s.file}`);let d=o.readFileSync(s.file,"utf-8"),l=m.basename(s.file),r={content:d,filename:l,scope:t.scope};t.format&&(r.sourceFormat=t.format),t.name&&(r.name=t.name),t["scope-ref"]&&(r.scopeRef=t["scope-ref"]),t.tags&&(r.tags=t.tags.split(",").map(u=>u.trim()));let e=await c("/api/instructions/import",r);this.log(`Imported ${e.sourceFormat} as instruction: ${e.instruction.name} (${e.instruction.id})`),e.parseWarnings.length>0&&this.warn(`Warnings: ${e.parseWarnings.join(", ")}`)}};export{n as default};
@@ -1,74 +1 @@
1
- import {
2
- BaseCommand
3
- } from "../../chunk-2HK7RGZB.js";
4
- import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-GQNJO2P2.js";
6
- import "../../chunk-37LN5O7M.js";
7
- import "../../chunk-EKJ2CABV.js";
8
- import {
9
- apiPost
10
- } from "../../chunk-ZUJBM6HE.js";
11
- import "../../chunk-W2YERO7E.js";
12
- import "../../chunk-NSBPE2FW.js";
13
-
14
- // src/commands/instructions/create.ts
15
- import * as fs from "node:fs";
16
- import { Args, Flags } from "@oclif/core";
17
- var InstructionsCreate = class _InstructionsCreate extends BaseCommand {
18
- static description = "Create a new instruction";
19
- static examples = [
20
- '<%= config.bin %> instructions create ./my-instruction.md --name "My Rules"',
21
- '<%= config.bin %> instructions create ./rules.md -n "Rules" -s project'
22
- ];
23
- static args = {
24
- file: Args.string({ description: "Path to markdown file" })
25
- };
26
- static flags = {
27
- name: Flags.string({ char: "n", description: "Instruction name", required: true }),
28
- description: Flags.string({ char: "d", description: "Instruction description", required: true }),
29
- scope: Flags.string({
30
- char: "s",
31
- description: "Instruction scope",
32
- options: ["org", "team", "project", "personal"],
33
- default: "personal"
34
- }),
35
- "scope-ref": Flags.string({ description: "Scope reference UUID" }),
36
- tags: Flags.string({ char: "t", description: "Comma-separated tags" })
37
- };
38
- async run() {
39
- const { args, flags } = await this.parse(_InstructionsCreate);
40
- this.requireAuth();
41
- let content;
42
- if (args.file) {
43
- if (!fs.existsSync(args.file)) {
44
- this.error(`File not found: ${args.file}`);
45
- }
46
- content = fs.readFileSync(args.file, "utf-8");
47
- } else {
48
- this.log("No file provided. Paste content (Ctrl+D to finish):");
49
- const chunks = [];
50
- for await (const chunk of process.stdin) {
51
- chunks.push(chunk);
52
- }
53
- content = Buffer.concat(chunks).toString("utf-8");
54
- }
55
- const body = {
56
- name: flags.name,
57
- description: flags.description,
58
- scope: flags.scope,
59
- content
60
- };
61
- if (flags["scope-ref"]) {
62
- body.scopeRef = flags["scope-ref"];
63
- }
64
- if (flags.tags) {
65
- body.tags = flags.tags.split(",").map((t) => t.trim());
66
- }
67
- const result = await apiPost("/api/instructions", body);
68
- this.log(`Created instruction: ${result.name} (${result.id})`);
69
- }
70
- };
71
- export {
72
- InstructionsCreate as default
73
- };
74
- //# sourceMappingURL=create.js.map
1
+ import{a as p}from"../../chunk-PPKPCXJD.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-V44SRRYR.js";import"../../chunk-U6XEU573.js";import"../../chunk-VLOX6KOM.js";import"../../chunk-3AV3GTMP.js";import{f}from"../../chunk-H2ORWIEY.js";import"../../chunk-O6C2UGBY.js";import{a as d}from"../../chunk-ZLLER3HP.js";import*as s from"node:fs";import{Args as m,Flags as t}from"@oclif/core";var c=class u extends p{static{d(this,"InstructionsCreate")}static description="Create a new instruction";static examples=['<%= config.bin %> instructions create ./my-instruction.md --name "My Rules" --description "Team coding rules"','<%= config.bin %> instructions create ./rules.md -n "Rules" -d "Project rules" -s project'];static args={file:m.string({description:"Path to markdown file"})};static flags={name:t.string({char:"n",description:"Instruction name",required:!0}),description:t.string({char:"d",description:"Instruction description",required:!0}),scope:t.string({char:"s",description:"Instruction scope",options:["org","team","project","personal"],default:"personal"}),"scope-ref":t.string({description:"Scope reference UUID"}),tags:t.string({char:"t",description:"Comma-separated tags"})};async run(){let{args:i,flags:e}=await this.parse(u);this.requireAuth();let n;if(i.file)s.existsSync(i.file)||this.error(`File not found: ${i.file}`),n=s.readFileSync(i.file,"utf-8");else{this.log("No file provided. Paste content (Ctrl+D to finish):");let r=[];for await(let l of process.stdin)r.push(l);n=Buffer.concat(r).toString("utf-8")}let o={name:e.name,description:e.description,scope:e.scope,content:n};e["scope-ref"]&&(o.scopeRef=e["scope-ref"]),e.tags&&(o.tags=e.tags.split(",").map(r=>r.trim()));let a=await f("/api/instructions",o);this.log(`Created instruction: ${a.name} (${a.id})`)}};export{c as default};
@@ -1,55 +1 @@
1
- import {
2
- validateUuid
3
- } from "../../chunk-7NYKWN7U.js";
4
- import {
5
- BaseCommand
6
- } from "../../chunk-2HK7RGZB.js";
7
- import "../../chunk-R56PH7YE.js";
8
- import "../../chunk-GQNJO2P2.js";
9
- import "../../chunk-37LN5O7M.js";
10
- import "../../chunk-EKJ2CABV.js";
11
- import {
12
- apiDelete,
13
- apiGet
14
- } from "../../chunk-ZUJBM6HE.js";
15
- import "../../chunk-W2YERO7E.js";
16
- import "../../chunk-NSBPE2FW.js";
17
-
18
- // src/commands/instructions/delete.ts
19
- import { Args, Flags } from "@oclif/core";
20
- var InstructionsDelete = class _InstructionsDelete extends BaseCommand {
21
- static description = "Delete (archive) an instruction";
22
- static examples = [
23
- "<%= config.bin %> instructions delete <id>",
24
- "<%= config.bin %> instructions delete <id> --force"
25
- ];
26
- static args = {
27
- id: Args.string({ description: "Instruction ID", required: true })
28
- };
29
- static flags = {
30
- force: Flags.boolean({ char: "f", description: "Skip confirmation prompt", default: false })
31
- };
32
- async run() {
33
- const { args, flags } = await this.parse(_InstructionsDelete);
34
- this.requireAuth();
35
- validateUuid(args.id, "instruction ID");
36
- const instruction = await apiGet(`/api/instructions/${encodeURIComponent(args.id)}`);
37
- if (!flags.force) {
38
- const { confirm } = await import("@inquirer/prompts");
39
- const confirmed = await confirm({
40
- message: `Are you sure you want to delete "${instruction.name}"?`,
41
- default: false
42
- });
43
- if (!confirmed) {
44
- this.log("Cancelled.");
45
- return;
46
- }
47
- }
48
- await apiDelete(`/api/instructions/${encodeURIComponent(args.id)}`);
49
- this.log(`Deleted instruction: ${instruction.name}`);
50
- }
51
- };
52
- export {
53
- InstructionsDelete as default
54
- };
55
- //# sourceMappingURL=delete.js.map
1
+ import{a}from"../../chunk-WLVQJH4E.js";import{a as s}from"../../chunk-PPKPCXJD.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-V44SRRYR.js";import"../../chunk-U6XEU573.js";import"../../chunk-VLOX6KOM.js";import"../../chunk-3AV3GTMP.js";import{e as r,i as n}from"../../chunk-H2ORWIEY.js";import"../../chunk-O6C2UGBY.js";import{a as o}from"../../chunk-ZLLER3HP.js";import{Args as f,Flags as p}from"@oclif/core";var t=class c extends s{static{o(this,"InstructionsDelete")}static description="Delete (archive) an instruction";static examples=["<%= config.bin %> instructions delete <id>","<%= config.bin %> instructions delete <id> --force"];static args={id:f.string({description:"Instruction ID",required:!0})};static flags={force:p.boolean({char:"f",description:"Skip confirmation prompt",default:!1})};async run(){let{args:i,flags:d}=await this.parse(c);this.requireAuth(),a(i.id,"instruction ID");let e=await r(`/api/instructions/${encodeURIComponent(i.id)}`);if(!d.force){let{confirm:m}=await import("@inquirer/prompts");if(!await m({message:`Are you sure you want to delete "${e.name}"?`,default:!1})){this.log("Cancelled.");return}}await n(`/api/instructions/${encodeURIComponent(i.id)}`),this.log(`Deleted instruction: ${e.name}`)}};export{t as default};
@@ -1,34 +1 @@
1
- import {
2
- BaseCommand
3
- } from "../../chunk-2HK7RGZB.js";
4
- import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-GQNJO2P2.js";
6
- import "../../chunk-37LN5O7M.js";
7
- import "../../chunk-EKJ2CABV.js";
8
- import {
9
- apiPost
10
- } from "../../chunk-ZUJBM6HE.js";
11
- import "../../chunk-W2YERO7E.js";
12
- import "../../chunk-NSBPE2FW.js";
13
-
14
- // src/commands/instructions/fork.ts
15
- import { Args } from "@oclif/core";
16
- var InstructionsFork = class _InstructionsFork extends BaseCommand {
17
- static description = "Fork an instruction to your personal scope";
18
- static examples = [
19
- "<%= config.bin %> instructions fork <instruction-id>"
20
- ];
21
- static args = {
22
- id: Args.string({ description: "ID of the instruction to fork", required: true })
23
- };
24
- async run() {
25
- const { args } = await this.parse(_InstructionsFork);
26
- this.requireAuth();
27
- const result = await apiPost(`/api/instructions/${args.id}/fork`, {});
28
- this.log(`Forked instruction: ${result.name} (${result.id})`);
29
- }
30
- };
31
- export {
32
- InstructionsFork as default
33
- };
34
- //# sourceMappingURL=fork.js.map
1
+ import{a as s}from"../../chunk-PPKPCXJD.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-V44SRRYR.js";import"../../chunk-U6XEU573.js";import"../../chunk-VLOX6KOM.js";import"../../chunk-3AV3GTMP.js";import{f as o}from"../../chunk-H2ORWIEY.js";import"../../chunk-O6C2UGBY.js";import{a as t}from"../../chunk-ZLLER3HP.js";import{Args as a}from"@oclif/core";var i=class e extends s{static{t(this,"InstructionsFork")}static description="Fork an instruction to your personal scope";static examples=["<%= config.bin %> instructions fork <instruction-id>"];static args={id:a.string({description:"ID of the instruction to fork",required:!0})};async run(){let{args:n}=await this.parse(e);this.requireAuth();let r=await o(`/api/instructions/${n.id}/fork`,{});this.log(`Forked instruction: ${r.name} (${r.id})`)}};export{i as default};
@@ -1,68 +1 @@
1
- import {
2
- validateUuid
3
- } from "../../chunk-7NYKWN7U.js";
4
- import {
5
- formatDate,
6
- formatScope
7
- } from "../../chunk-BZDKEQKU.js";
8
- import {
9
- BaseCommand
10
- } from "../../chunk-2HK7RGZB.js";
11
- import "../../chunk-R56PH7YE.js";
12
- import "../../chunk-GQNJO2P2.js";
13
- import "../../chunk-37LN5O7M.js";
14
- import "../../chunk-EKJ2CABV.js";
15
- import {
16
- apiGet
17
- } from "../../chunk-ZUJBM6HE.js";
18
- import "../../chunk-W2YERO7E.js";
19
- import "../../chunk-NSBPE2FW.js";
20
-
21
- // src/commands/instructions/get.ts
22
- import { Args, Flags } from "@oclif/core";
23
- var InstructionsGet = class _InstructionsGet extends BaseCommand {
24
- static description = "Get an instruction by ID";
25
- static examples = [
26
- "<%= config.bin %> instructions get <id>",
27
- "<%= config.bin %> instructions get <id> --format raw"
28
- ];
29
- static enableJsonFlag = true;
30
- static args = {
31
- id: Args.string({ description: "Instruction ID", required: true })
32
- };
33
- static flags = {
34
- format: Flags.string({
35
- char: "f",
36
- description: "Output format",
37
- options: ["yaml", "json", "raw"],
38
- default: "yaml"
39
- })
40
- };
41
- async run() {
42
- const { args, flags } = await this.parse(_InstructionsGet);
43
- this.requireAuth();
44
- validateUuid(args.id, "instruction ID");
45
- const result = await apiGet(`/api/instructions/${encodeURIComponent(args.id)}`);
46
- if (flags.format === "json") {
47
- this.log(JSON.stringify(result, null, 2));
48
- } else if (flags.format === "raw") {
49
- this.log(result.content);
50
- } else {
51
- this.log(`Name: ${result.name}`);
52
- this.log(`Description: ${result.description}`);
53
- this.log(`Scope: ${formatScope(result.scope)}`);
54
- this.log(`Version: ${result.version}`);
55
- this.log(`Tags: ${(result.tags ?? []).join(", ") || "(none)"}`);
56
- this.log(`Created: ${formatDate(result.createdAt)}`);
57
- this.log(`Updated: ${formatDate(result.updatedAt)}`);
58
- this.log("");
59
- this.log("--- Content ---");
60
- this.log(result.content);
61
- }
62
- return result;
63
- }
64
- };
65
- export {
66
- InstructionsGet as default
67
- };
68
- //# sourceMappingURL=get.js.map
1
+ import{a as l}from"../../chunk-WLVQJH4E.js";import{a as i,c}from"../../chunk-W2MV25SB.js";import{a}from"../../chunk-PPKPCXJD.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-V44SRRYR.js";import"../../chunk-U6XEU573.js";import"../../chunk-VLOX6KOM.js";import"../../chunk-3AV3GTMP.js";import{e as n}from"../../chunk-H2ORWIEY.js";import"../../chunk-O6C2UGBY.js";import{a as e}from"../../chunk-ZLLER3HP.js";import{Args as g,Flags as m}from"@oclif/core";var o=class d extends a{static{e(this,"InstructionsGet")}static description="Get an instruction by ID";static examples=["<%= config.bin %> instructions get <id>","<%= config.bin %> instructions get <id> --format raw"];static enableJsonFlag=!0;static args={id:g.string({description:"Instruction ID",required:!0})};static flags={format:m.string({char:"f",description:"Output format",options:["yaml","json","raw"],default:"yaml"})};async run(){let{args:r,flags:s}=await this.parse(d);this.requireAuth(),l(r.id,"instruction ID");let t=await n(`/api/instructions/${encodeURIComponent(r.id)}`);return s.format==="json"?this.log(JSON.stringify(t,null,2)):s.format==="raw"?this.log(t.content):(this.log(`Name: ${t.name}`),this.log(`Description: ${t.description}`),this.log(`Scope: ${c(t.scope)}`),this.log(`Version: ${t.version}`),this.log(`Tags: ${(t.tags??[]).join(", ")||"(none)"}`),this.log(`Created: ${i(t.createdAt)}`),this.log(`Updated: ${i(t.updatedAt)}`),this.log(""),this.log("--- Content ---"),this.log(t.content)),t}};export{o as default};
@@ -1,65 +1 @@
1
- import {
2
- formatDate,
3
- formatScope,
4
- truncate
5
- } from "../../chunk-BZDKEQKU.js";
6
- import {
7
- BaseCommand
8
- } from "../../chunk-2HK7RGZB.js";
9
- import "../../chunk-R56PH7YE.js";
10
- import "../../chunk-GQNJO2P2.js";
11
- import "../../chunk-37LN5O7M.js";
12
- import "../../chunk-EKJ2CABV.js";
13
- import {
14
- apiGet
15
- } from "../../chunk-ZUJBM6HE.js";
16
- import "../../chunk-W2YERO7E.js";
17
- import "../../chunk-NSBPE2FW.js";
18
-
19
- // src/commands/instructions/list.ts
20
- import { Flags } from "@oclif/core";
21
- import { printTable } from "@oclif/table";
22
- var InstructionSummarysList = class _InstructionSummarysList extends BaseCommand {
23
- static description = "List your instructions";
24
- static examples = [
25
- "<%= config.bin %> instructions list",
26
- "<%= config.bin %> instructions list --json"
27
- ];
28
- static enableJsonFlag = true;
29
- static flags = {
30
- format: Flags.string({
31
- char: "f",
32
- description: "Output format",
33
- options: ["table", "json"],
34
- default: "table"
35
- })
36
- };
37
- async run() {
38
- const { flags } = await this.parse(_InstructionSummarysList);
39
- this.requireAuth();
40
- const results = await apiGet("/api/instructions");
41
- if (results.length === 0) {
42
- this.log("No instructions found. Create one with `rulemetric instructions create`.");
43
- return results;
44
- }
45
- if (flags.format === "json") {
46
- this.log(JSON.stringify(results, null, 2));
47
- } else {
48
- printTable({
49
- data: results.map((i) => ({
50
- Name: truncate(i.name, 40),
51
- Scope: formatScope(i.scope),
52
- Version: i.version,
53
- Tags: (i.tags ?? []).join(", "),
54
- Updated: formatDate(i.updatedAt)
55
- })),
56
- columns: ["Name", "Scope", "Version", "Tags", "Updated"]
57
- });
58
- }
59
- return results;
60
- }
61
- };
62
- export {
63
- InstructionSummarysList as default
64
- };
65
- //# sourceMappingURL=list.js.map
1
+ import{a,b as n,c as m}from"../../chunk-W2MV25SB.js";import{a as s}from"../../chunk-PPKPCXJD.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-V44SRRYR.js";import"../../chunk-U6XEU573.js";import"../../chunk-VLOX6KOM.js";import"../../chunk-3AV3GTMP.js";import{e as i}from"../../chunk-H2ORWIEY.js";import"../../chunk-O6C2UGBY.js";import{a as o}from"../../chunk-ZLLER3HP.js";import{Flags as p}from"@oclif/core";import{printTable as l}from"@oclif/table";var e=class c extends s{static{o(this,"InstructionSummarysList")}static description="List your instructions";static examples=["<%= config.bin %> instructions list","<%= config.bin %> instructions list --json"];static enableJsonFlag=!0;static flags={format:p.string({char:"f",description:"Output format",options:["table","json"],default:"table"})};async run(){let{flags:u}=await this.parse(c);this.requireAuth();let t=await i("/api/instructions");return t.length===0?(this.log("No instructions found. Create one with `rulemetric instructions create`."),t):(u.format==="json"?this.log(JSON.stringify(t,null,2)):l({data:t.map(r=>({Name:n(r.name,40),Scope:m(r.scope),Version:r.version,Tags:(r.tags??[]).join(", "),Updated:a(r.updatedAt)})),columns:["Name","Scope","Version","Tags","Updated"]}),t)}};export{e as default};
@@ -1,42 +1 @@
1
- import {
2
- BaseCommand
3
- } from "../../chunk-2HK7RGZB.js";
4
- import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-GQNJO2P2.js";
6
- import "../../chunk-37LN5O7M.js";
7
- import "../../chunk-EKJ2CABV.js";
8
- import {
9
- apiPost
10
- } from "../../chunk-ZUJBM6HE.js";
11
- import "../../chunk-W2YERO7E.js";
12
- import "../../chunk-NSBPE2FW.js";
13
-
14
- // src/commands/instructions/promote.ts
15
- import { Args, Flags } from "@oclif/core";
16
- var InstructionsPromote = class _InstructionsPromote extends BaseCommand {
17
- static description = "Promote an instruction to a higher scope (personal \u2192 team \u2192 org)";
18
- static examples = [
19
- "<%= config.bin %> instructions promote <id> --scope team --ref <team-id>",
20
- "<%= config.bin %> instructions promote <id> --scope org --ref <org-id>"
21
- ];
22
- static args = {
23
- id: Args.string({ description: "ID of the instruction to promote", required: true })
24
- };
25
- static flags = {
26
- scope: Flags.string({ description: "Target scope", required: true, options: ["team", "org"] }),
27
- ref: Flags.string({ description: "Target scope ref (team or org ID)", required: true })
28
- };
29
- async run() {
30
- const { args, flags } = await this.parse(_InstructionsPromote);
31
- this.requireAuth();
32
- const result = await apiPost(`/api/instructions/${args.id}/promote`, {
33
- scope: flags.scope,
34
- scopeRef: flags.ref
35
- });
36
- this.log(`Promoted "${result.name}" to ${result.scope} scope`);
37
- }
38
- };
39
- export {
40
- InstructionsPromote as default
41
- };
42
- //# sourceMappingURL=promote.js.map
1
+ import{a as s}from"../../chunk-PPKPCXJD.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-V44SRRYR.js";import"../../chunk-U6XEU573.js";import"../../chunk-VLOX6KOM.js";import"../../chunk-3AV3GTMP.js";import{f as i}from"../../chunk-H2ORWIEY.js";import"../../chunk-O6C2UGBY.js";import{a as t}from"../../chunk-ZLLER3HP.js";import{Args as p,Flags as a}from"@oclif/core";var e=class n extends s{static{t(this,"InstructionsPromote")}static description="Promote an instruction to a higher scope (personal \u2192 team \u2192 org)";static examples=["<%= config.bin %> instructions promote <id> --scope team --ref <team-id>","<%= config.bin %> instructions promote <id> --scope org --ref <org-id>"];static args={id:p.string({description:"ID of the instruction to promote",required:!0})};static flags={scope:a.string({description:"Target scope",required:!0,options:["team","org"]}),ref:a.string({description:"Target scope ref (team or org ID)",required:!0})};async run(){let{args:c,flags:r}=await this.parse(n);this.requireAuth();let o=await i(`/api/instructions/${c.id}/promote`,{scope:r.scope,scopeRef:r.ref});this.log(`Promoted "${o.name}" to ${o.scope} scope`)}};export{e as default};
@@ -1,39 +1 @@
1
- import {
2
- BaseCommand
3
- } from "../../chunk-2HK7RGZB.js";
4
- import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-GQNJO2P2.js";
6
- import "../../chunk-37LN5O7M.js";
7
- import "../../chunk-EKJ2CABV.js";
8
- import {
9
- apiPost
10
- } from "../../chunk-ZUJBM6HE.js";
11
- import "../../chunk-W2YERO7E.js";
12
- import "../../chunk-NSBPE2FW.js";
13
-
14
- // src/commands/instructions/pull.ts
15
- import { Args } from "@oclif/core";
16
- var InstructionsPull = class _InstructionsPull extends BaseCommand {
17
- static description = "Pull upstream changes into a forked instruction";
18
- static args = {
19
- id: Args.string({ description: "ID of the forked instruction", required: true })
20
- };
21
- async run() {
22
- const { args } = await this.parse(_InstructionsPull);
23
- this.requireAuth();
24
- const result = await apiPost(
25
- `/api/instructions/${args.id}/pull-upstream`,
26
- {}
27
- );
28
- if (result.hasConflicts) {
29
- this.log("Merge conflicts detected. Resolve in the web UI:");
30
- this.log(result.merged ?? "");
31
- } else {
32
- this.log(`Successfully pulled upstream changes into "${result.instruction?.name}"`);
33
- }
34
- }
35
- };
36
- export {
37
- InstructionsPull as default
38
- };
39
- //# sourceMappingURL=pull.js.map
1
+ import{a as r}from"../../chunk-PPKPCXJD.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-V44SRRYR.js";import"../../chunk-U6XEU573.js";import"../../chunk-VLOX6KOM.js";import"../../chunk-3AV3GTMP.js";import{f as s}from"../../chunk-H2ORWIEY.js";import"../../chunk-O6C2UGBY.js";import{a as i}from"../../chunk-ZLLER3HP.js";import{Args as a}from"@oclif/core";var e=class o extends r{static{i(this,"InstructionsPull")}static description="Pull upstream changes into a forked instruction";static args={id:a.string({description:"ID of the forked instruction",required:!0})};async run(){let{args:n}=await this.parse(o);this.requireAuth();let t=await s(`/api/instructions/${n.id}/pull-upstream`,{});t.hasConflicts?(this.log("Merge conflicts detected. Resolve in the web UI:"),this.log(t.merged??"")):this.log(`Successfully pulled upstream changes into "${t.instruction?.name}"`)}};export{e as default};