@rulemetric/cli 0.7.2 → 0.7.4
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.
- package/dist/base-command.js +1 -14
- package/dist/chunk-2TC6WCUT.js +34 -0
- package/dist/chunk-2UC3ULIG.js +1 -0
- package/dist/chunk-3AV3GTMP.js +1 -0
- package/dist/chunk-4Z5ECCJE.js +1 -0
- package/dist/chunk-5RBLIVBF.js +1 -0
- package/dist/chunk-67QCYUJU.js +1 -0
- package/dist/chunk-6QKI756T.js +2 -0
- package/dist/chunk-6V4WM73L.js +1 -0
- package/dist/chunk-6XEC6474.js +1 -0
- package/dist/chunk-72XLQE3X.js +2 -0
- package/dist/chunk-7DFNBRLY.js +61 -0
- package/dist/chunk-7XQ4VPLC.js +2 -0
- package/dist/chunk-AHRHCERJ.js +1 -0
- package/dist/chunk-ARNZQBMX.js +1 -0
- package/dist/chunk-CADKBP3D.js +58 -0
- package/dist/chunk-CDI5CCHU.js +1 -0
- package/dist/chunk-CNQ5DTNC.js +1 -0
- package/dist/chunk-CRAKDQ4H.js +1 -0
- package/dist/chunk-DNF4HDI6.js +14 -0
- package/dist/chunk-DSO2U4Y6.js +56 -0
- package/dist/chunk-DT4GKEP5.js +5 -0
- package/dist/chunk-DVN7GFJG.js +1 -0
- package/dist/chunk-E4SFUPYR.js +15 -0
- package/dist/chunk-EUHNCVJQ.js +33 -0
- package/dist/chunk-F2VP4B4J.js +1 -0
- package/dist/chunk-FEHM5OKW.js +1 -0
- package/dist/chunk-FHVBTDBM.js +69 -0
- package/dist/chunk-GBMF3TP6.js +1 -0
- package/dist/chunk-GY5IJ4RS.js +1 -0
- package/dist/chunk-HOHD5HY2.js +5 -0
- package/dist/chunk-HP2BUPGS.js +24 -0
- package/dist/{chunk-OQBBVTDG.js → chunk-I2DZGJRR.js} +6 -71
- package/dist/chunk-I4YJ7NTX.js +1 -0
- package/dist/chunk-IY5NXR3N.js +1 -0
- package/dist/chunk-IZTIYR5Q.js +2 -0
- package/dist/chunk-KKDHD4XA.js +2 -0
- package/dist/chunk-LQRYQE6Q.js +4 -0
- package/dist/chunk-M6AJDVCL.js +5 -0
- package/dist/chunk-MGHFDHHM.js +1 -0
- package/dist/chunk-ML36XQW7.js +1 -0
- package/dist/chunk-MODXEGCU.js +1 -0
- package/dist/chunk-MVM6OGAF.js +4 -0
- package/dist/chunk-N7ODX6PO.js +1 -0
- package/dist/chunk-NBTC5FNV.js +1 -0
- package/dist/chunk-NJ5UED3H.js +1 -0
- package/dist/chunk-NVKX36YN.js +3 -0
- package/dist/chunk-NVOTOQBA.js +1 -0
- package/dist/chunk-O7ZMHCMG.js +31 -0
- package/dist/chunk-OMXUK4M6.js +1 -0
- package/dist/chunk-PZS2KOU7.js +1 -0
- package/dist/chunk-RSKQRVPJ.js +1 -0
- package/dist/chunk-RTEATXTP.js +1 -0
- package/dist/chunk-RTWRHIKY.js +7 -0
- package/dist/chunk-RVO4HV3M.js +1 -0
- package/dist/chunk-SBILN45P.js +1 -0
- package/dist/chunk-SZ62CP55.js +1 -0
- package/dist/chunk-T3W5N3BP.js +2 -0
- package/dist/chunk-TDD7IOV2.js +1 -0
- package/dist/chunk-TIQ7DQ3M.js +1 -0
- package/dist/chunk-TU2AR6XO.js +1 -0
- package/dist/chunk-UF6US7VU.js +1 -0
- package/dist/chunk-V5QFOF4F.js +9 -0
- package/dist/chunk-V5U3E4BZ.js +1 -0
- package/dist/chunk-VAFAH6QL.js +1 -0
- package/dist/chunk-VMWY7KHH.js +1 -0
- package/dist/chunk-VUGRXM7R.js +1 -0
- package/dist/{chunk-XZXS2W24.js → chunk-VWEXKDWG.js} +10 -56
- package/dist/chunk-W2MV25SB.js +1 -0
- package/dist/chunk-WJ3H73G6.js +1 -0
- package/dist/chunk-WJUQBMTF.js +9 -0
- package/dist/chunk-WLVQJH4E.js +1 -0
- package/dist/chunk-WPJ2BND4.js +1 -0
- package/dist/chunk-WSCK4WNK.js +1 -0
- package/dist/chunk-Y65CSJFF.js +3 -0
- package/dist/chunk-ZL4MZMUK.js +34 -0
- package/dist/chunk-ZLLER3HP.js +1 -0
- package/dist/chunk-ZXF5NE54.js +1 -0
- package/dist/commands/antigravity/backfill.js +2 -136
- package/dist/commands/auth/create-key.js +1 -52
- package/dist/commands/auth/login.js +1 -85
- package/dist/commands/auth/logout.js +1 -29
- package/dist/commands/auth/revoke-key.js +1 -33
- package/dist/commands/auth/signup.js +1 -89
- package/dist/commands/auth/status.js +1 -42
- package/dist/commands/catalog/index.js +2 -52
- package/dist/commands/catalog/recommend.js +3 -43
- package/dist/commands/convert.js +1 -75
- package/dist/commands/converters.js +1 -54
- package/dist/commands/crons/list.js +1 -41
- package/dist/commands/crons/run.js +2 -76
- package/dist/commands/dashboard.js +1 -46
- package/dist/commands/diagnostics.js +1 -117
- package/dist/commands/eval-targets/create.js +1 -53
- package/dist/commands/eval-targets/list.js +1 -54
- package/dist/commands/evals/agent.js +3 -309
- package/dist/commands/evals/benchmark.js +6 -73
- package/dist/commands/evals/compare.js +13 -96
- package/dist/commands/evals/create.js +1 -67
- package/dist/commands/evals/optimize-description.js +25 -239
- package/dist/commands/evals/optimize.js +5 -211
- package/dist/commands/evals/run.js +3 -183
- package/dist/commands/gateway/ensure.js +1 -104
- package/dist/commands/hooks/emit-instructions.js +1 -25
- package/dist/commands/hooks/install.js +1 -442
- package/dist/commands/hooks/run.js +3 -81
- package/dist/commands/hooks/uninstall.js +2 -156
- package/dist/commands/import.js +1 -66
- package/dist/commands/instructions/create.js +1 -74
- package/dist/commands/instructions/delete.js +1 -55
- package/dist/commands/instructions/fork.js +1 -34
- package/dist/commands/instructions/get.js +1 -68
- package/dist/commands/instructions/list.js +1 -65
- package/dist/commands/instructions/promote.js +1 -42
- package/dist/commands/instructions/pull.js +1 -39
- package/dist/commands/instructions/upstream.js +1 -38
- package/dist/commands/instructions/versions.js +1 -53
- package/dist/commands/launcher.js +1 -40
- package/dist/commands/org/current.js +1 -77
- package/dist/commands/org/list.js +1 -52
- package/dist/commands/org/switch.js +1 -71
- package/dist/commands/packs/add-instruction.js +1 -37
- package/dist/commands/packs/apply.js +1 -39
- package/dist/commands/packs/create.js +1 -50
- package/dist/commands/packs/fork.js +1 -34
- package/dist/commands/packs/get.js +3 -56
- package/dist/commands/packs/list.js +1 -66
- package/dist/commands/packs/remove-instruction.js +1 -35
- package/dist/commands/proxy/env.js +3 -131
- package/dist/commands/proxy/logs.js +3 -85
- package/dist/commands/proxy/restart.js +1 -35
- package/dist/commands/proxy/setup.js +15 -454
- package/dist/commands/proxy/start.js +10 -333
- package/dist/commands/proxy/status.js +1 -78
- package/dist/commands/proxy/stop.js +1 -94
- package/dist/commands/research/backfill.js +1 -59
- package/dist/commands/research/tail-transcript.js +1 -70
- package/dist/commands/service/install.js +57 -781
- package/dist/commands/service/status.js +1 -180
- package/dist/commands/service/uninstall.js +1 -119
- package/dist/commands/sessions/analyze.js +3 -48
- package/dist/commands/sessions/end.js +2 -85
- package/dist/commands/sessions/import.js +1 -46
- package/dist/commands/sessions/list.js +1 -48
- package/dist/commands/sessions/start.js +3 -90
- package/dist/commands/setup.js +3 -150
- package/dist/commands/skills/export-approved.js +1 -46
- package/dist/commands/skills/install.js +4 -107
- package/dist/commands/skills/list.js +4 -65
- package/dist/commands/skills/publish.js +2 -98
- package/dist/commands/skills/search.js +3 -72
- package/dist/commands/skills/update.js +3 -55
- package/dist/commands/suggestions/accept.js +8 -84
- package/dist/commands/suggestions/dismiss.js +1 -45
- package/dist/commands/suggestions/list.js +1 -61
- package/dist/commands/suggestions/refresh.js +1 -27
- package/dist/cursor-T7AMCMKS.js +13 -0
- package/dist/dashboard/Dashboard.js +1 -243
- package/dist/dashboard/data.js +1 -15
- package/dist/dashboard/launcher/ActiveJobsList.js +1 -10
- package/dist/dashboard/launcher/LauncherOverlay.js +1 -16
- package/dist/dashboard/launcher/NewLaunchForm.js +1 -10
- package/dist/dashboard/launcher/api.js +1 -16
- package/dist/dashboard/launcher/tool-labels.js +1 -10
- package/dist/dashboard/launcher/types.js +0 -1
- package/dist/dashboard/launcher/useLaunchJobs.js +1 -11
- package/dist/dashboard/panels/friction.js +1 -10
- package/dist/dashboard/panels/insights.js +1 -10
- package/dist/dashboard/panels/instructions.js +1 -10
- package/dist/dashboard/panels/outcomes.js +1 -10
- package/dist/dashboard/panels/overview.js +1 -10
- package/dist/dashboard/panels/shared.js +1 -19
- package/dist/dashboard/types.js +1 -24
- package/dist/dist-FAVALJ5C.js +1 -0
- package/dist/index.js +1 -8
- package/dist/lib/active-org-refresh.js +1 -15
- package/dist/lib/active-org.js +1 -16
- package/dist/lib/agent-loop.js +1 -46
- package/dist/lib/antigravity-transcript.js +1 -22
- package/dist/lib/api-client.js +1 -23
- package/dist/lib/auth.js +1 -30
- package/dist/lib/capture-hosts.js +1 -8
- package/dist/lib/detect-languages.js +1 -8
- package/dist/lib/detect-tmux.js +1 -9
- package/dist/lib/diagnostics.js +1 -12
- package/dist/lib/editor-proxy-pins.js +1 -14
- package/dist/lib/ensure-api-key.js +1 -11
- package/dist/lib/eval-analyzer.js +1 -9
- package/dist/lib/eval-benchmark.js +1 -12
- package/dist/lib/eval-conversation-handler.js +1 -13
- package/dist/lib/eval-executor.js +1 -8
- package/dist/lib/eval-grader.js +1 -9
- package/dist/lib/eval-meta-judge.js +1 -9
- package/dist/lib/eval-trigger-tester.js +1 -11
- package/dist/lib/eval-worktree.js +1 -8
- package/dist/lib/gateway-entry.js +1 -61
- package/dist/lib/gateway-identity.js +1 -16
- package/dist/lib/gateway-lifecycle.js +1 -32
- package/dist/lib/gateway.js +1 -14
- package/dist/lib/handlers/cron-refresh-pricing.js +1 -0
- package/dist/lib/handlers/cron-refresh-skills.js +1 -8
- package/dist/lib/handlers/cron-suggest-instructions.js +1 -15
- package/dist/lib/handlers/process-announcement.js +1 -11
- package/dist/lib/handlers/process-changelog.js +1 -11
- package/dist/lib/handlers/process-conversation.js +1 -14
- package/dist/lib/handlers/process-eval.js +1 -15
- package/dist/lib/handlers/process-insights.js +1 -14
- package/dist/lib/handlers/process-launch.js +1 -16
- package/dist/lib/handlers/process-run-cleanup.js +1 -13
- package/dist/lib/handlers/process-send-message.js +1 -10
- package/dist/lib/handlers/process-session-goal.js +1 -11
- package/dist/lib/hooks-config.js +1 -81
- package/dist/lib/insights-prompts.js +1 -12
- package/dist/lib/instruction-snapshot.js +1 -8
- package/dist/lib/job-helpers.js +0 -1
- package/dist/lib/llm-client.js +1 -17
- package/dist/lib/manual-tasks-meta.js +1 -8
- package/dist/lib/manual-tasks.js +1 -79
- package/dist/lib/output.js +1 -12
- package/dist/lib/permanent-job-error.js +1 -10
- package/dist/lib/pid-identity.js +1 -14
- package/dist/lib/proxy-respawn.js +1 -12
- package/dist/lib/research-client.js +1 -12
- package/dist/lib/setup-steps.js +1 -33
- package/dist/lib/skills-loader.js +1 -8
- package/dist/lib/statusline-shim.js +1 -20
- package/dist/lib/telemetry.js +1 -16
- package/dist/lib/terminal-target-heartbeat.js +1 -15
- package/dist/lib/tmux.js +1 -16
- package/dist/lib/transcript-rate-limit-watcher.js +1 -22
- package/dist/lib/types.js +1 -8
- package/dist/lib/version-check.js +1 -12
- package/dist/lib/which.js +1 -8
- package/dist/lib/worktree.js +1 -17
- package/dist/opencode-QRJ3BH23.js +1 -0
- package/oclif.manifest.json +135 -135
- package/package.json +8 -7
- package/dist/base-command.js.map +0 -7
- package/dist/chunk-2HK7RGZB.js +0 -82
- package/dist/chunk-2HK7RGZB.js.map +0 -7
- package/dist/chunk-2ORJWTNZ.js +0 -307
- package/dist/chunk-2ORJWTNZ.js.map +0 -7
- package/dist/chunk-37LN5O7M.js +0 -59
- package/dist/chunk-37LN5O7M.js.map +0 -7
- package/dist/chunk-3S7223UR.js +0 -81
- package/dist/chunk-3S7223UR.js.map +0 -7
- package/dist/chunk-3TIMQ3O6.js +0 -96
- package/dist/chunk-3TIMQ3O6.js.map +0 -7
- package/dist/chunk-42GFSAJP.js +0 -32
- package/dist/chunk-42GFSAJP.js.map +0 -7
- package/dist/chunk-4BHDHHKL.js +0 -48
- package/dist/chunk-4BHDHHKL.js.map +0 -7
- package/dist/chunk-4D537GXE.js +0 -99
- package/dist/chunk-4D537GXE.js.map +0 -7
- package/dist/chunk-4LYCDS2N.js +0 -139
- package/dist/chunk-4LYCDS2N.js.map +0 -7
- package/dist/chunk-4SCZK7AL.js +0 -129
- package/dist/chunk-4SCZK7AL.js.map +0 -7
- package/dist/chunk-4XAWK6S2.js +0 -161
- package/dist/chunk-4XAWK6S2.js.map +0 -7
- package/dist/chunk-52WIYRZH.js +0 -73
- package/dist/chunk-52WIYRZH.js.map +0 -7
- package/dist/chunk-5BAOGNUH.js +0 -79
- package/dist/chunk-5BAOGNUH.js.map +0 -7
- package/dist/chunk-5EDMGK3W.js +0 -39
- package/dist/chunk-5EDMGK3W.js.map +0 -7
- package/dist/chunk-6NBS5XFS.js +0 -99
- package/dist/chunk-6NBS5XFS.js.map +0 -7
- package/dist/chunk-7DULPSFU.js +0 -299
- package/dist/chunk-7DULPSFU.js.map +0 -7
- package/dist/chunk-7LVVKQMZ.js +0 -98
- package/dist/chunk-7LVVKQMZ.js.map +0 -7
- package/dist/chunk-7NNFYWKK.js +0 -243
- package/dist/chunk-7NNFYWKK.js.map +0 -7
- package/dist/chunk-7NYKWN7U.js +0 -12
- package/dist/chunk-7NYKWN7U.js.map +0 -7
- package/dist/chunk-BO76WKJR.js +0 -42
- package/dist/chunk-BO76WKJR.js.map +0 -7
- package/dist/chunk-BRD5RUGM.js +0 -53
- package/dist/chunk-BRD5RUGM.js.map +0 -7
- package/dist/chunk-BT6Z6545.js +0 -43
- package/dist/chunk-BT6Z6545.js.map +0 -7
- package/dist/chunk-BZDKEQKU.js +0 -39
- package/dist/chunk-BZDKEQKU.js.map +0 -7
- package/dist/chunk-DGHWRQXL.js +0 -17
- package/dist/chunk-DGHWRQXL.js.map +0 -7
- package/dist/chunk-DNKSVWMD.js +0 -108
- package/dist/chunk-DNKSVWMD.js.map +0 -7
- package/dist/chunk-DQ3KELXD.js +0 -74
- package/dist/chunk-DQ3KELXD.js.map +0 -7
- package/dist/chunk-DUJSRBLP.js +0 -122
- package/dist/chunk-DUJSRBLP.js.map +0 -7
- package/dist/chunk-E3BIT53W.js +0 -154
- package/dist/chunk-E3BIT53W.js.map +0 -7
- package/dist/chunk-EARWG4EV.js +0 -22
- package/dist/chunk-EARWG4EV.js.map +0 -7
- package/dist/chunk-EI5BHWXA.js +0 -1662
- package/dist/chunk-EI5BHWXA.js.map +0 -7
- package/dist/chunk-EJ3YAFDP.js +0 -37
- package/dist/chunk-EJ3YAFDP.js.map +0 -7
- package/dist/chunk-EKJ2CABV.js +0 -76
- package/dist/chunk-EKJ2CABV.js.map +0 -7
- package/dist/chunk-EKP32DLN.js +0 -16
- package/dist/chunk-EKP32DLN.js.map +0 -7
- package/dist/chunk-EYPAAGN5.js +0 -51
- package/dist/chunk-EYPAAGN5.js.map +0 -7
- package/dist/chunk-F5N6CLJJ.js +0 -1995
- package/dist/chunk-F5N6CLJJ.js.map +0 -7
- package/dist/chunk-FZKLLNDS.js +0 -228
- package/dist/chunk-FZKLLNDS.js.map +0 -7
- package/dist/chunk-GIUBARWS.js +0 -99
- package/dist/chunk-GIUBARWS.js.map +0 -7
- package/dist/chunk-GQNJO2P2.js +0 -102
- package/dist/chunk-GQNJO2P2.js.map +0 -7
- package/dist/chunk-IJGF2ETG.js +0 -68
- package/dist/chunk-IJGF2ETG.js.map +0 -7
- package/dist/chunk-ILYDELUE.js +0 -46
- package/dist/chunk-ILYDELUE.js.map +0 -7
- package/dist/chunk-J6QFW4LD.js +0 -55
- package/dist/chunk-J6QFW4LD.js.map +0 -7
- package/dist/chunk-J7N3DLH6.js +0 -117
- package/dist/chunk-J7N3DLH6.js.map +0 -7
- package/dist/chunk-JFDWKLQC.js +0 -23
- package/dist/chunk-JFDWKLQC.js.map +0 -7
- package/dist/chunk-JULOLTZS.js +0 -61
- package/dist/chunk-JULOLTZS.js.map +0 -7
- package/dist/chunk-KJKBDQ4D.js +0 -220
- package/dist/chunk-KJKBDQ4D.js.map +0 -7
- package/dist/chunk-KRBQLMOP.js +0 -41
- package/dist/chunk-KRBQLMOP.js.map +0 -7
- package/dist/chunk-LXKPNATC.js +0 -624
- package/dist/chunk-LXKPNATC.js.map +0 -7
- package/dist/chunk-NSBPE2FW.js +0 -17
- package/dist/chunk-NSBPE2FW.js.map +0 -7
- package/dist/chunk-OK3I555A.js +0 -243
- package/dist/chunk-OK3I555A.js.map +0 -7
- package/dist/chunk-OKWCKCPE.js +0 -414
- package/dist/chunk-OKWCKCPE.js.map +0 -7
- package/dist/chunk-OO7JDFS4.js +0 -157
- package/dist/chunk-OO7JDFS4.js.map +0 -7
- package/dist/chunk-OQBBVTDG.js.map +0 -7
- package/dist/chunk-OQSQC7VB.js +0 -77
- package/dist/chunk-OQSQC7VB.js.map +0 -7
- package/dist/chunk-PED7L5GX.js +0 -92
- package/dist/chunk-PED7L5GX.js.map +0 -7
- package/dist/chunk-PMI56ED5.js +0 -167
- package/dist/chunk-PMI56ED5.js.map +0 -7
- package/dist/chunk-QJQS6TUN.js +0 -44
- package/dist/chunk-QJQS6TUN.js.map +0 -7
- package/dist/chunk-QN34TGD3.js +0 -83
- package/dist/chunk-QN34TGD3.js.map +0 -7
- package/dist/chunk-QSN77T7C.js +0 -250
- package/dist/chunk-QSN77T7C.js.map +0 -7
- package/dist/chunk-R56PH7YE.js +0 -78
- package/dist/chunk-R56PH7YE.js.map +0 -7
- package/dist/chunk-RH7NHVSK.js +0 -16
- package/dist/chunk-RH7NHVSK.js.map +0 -7
- package/dist/chunk-RMTT4KDY.js +0 -191
- package/dist/chunk-RMTT4KDY.js.map +0 -7
- package/dist/chunk-RQ2TMLKG.js +0 -142
- package/dist/chunk-RQ2TMLKG.js.map +0 -7
- package/dist/chunk-SO3T35U7.js +0 -80
- package/dist/chunk-SO3T35U7.js.map +0 -7
- package/dist/chunk-UKMLICWS.js +0 -51
- package/dist/chunk-UKMLICWS.js.map +0 -7
- package/dist/chunk-W2YERO7E.js +0 -170
- package/dist/chunk-W2YERO7E.js.map +0 -7
- package/dist/chunk-W53GKIZQ.js +0 -50
- package/dist/chunk-W53GKIZQ.js.map +0 -7
- package/dist/chunk-WA4MWYRW.js +0 -254
- package/dist/chunk-WA4MWYRW.js.map +0 -7
- package/dist/chunk-XC6M4CSW.js +0 -44
- package/dist/chunk-XC6M4CSW.js.map +0 -7
- package/dist/chunk-XK42ZBDE.js +0 -23
- package/dist/chunk-XK42ZBDE.js.map +0 -7
- package/dist/chunk-XUV6DDBF.js +0 -124
- package/dist/chunk-XUV6DDBF.js.map +0 -7
- package/dist/chunk-XZXS2W24.js.map +0 -7
- package/dist/chunk-Y3WD5CSW.js +0 -49
- package/dist/chunk-Y3WD5CSW.js.map +0 -7
- package/dist/chunk-Y4BJXXYV.js +0 -148
- package/dist/chunk-Y4BJXXYV.js.map +0 -7
- package/dist/chunk-YNIH3KMU.js +0 -121
- package/dist/chunk-YNIH3KMU.js.map +0 -7
- package/dist/chunk-YOBA3NAM.js +0 -55
- package/dist/chunk-YOBA3NAM.js.map +0 -7
- package/dist/chunk-ZUJBM6HE.js +0 -125
- package/dist/chunk-ZUJBM6HE.js.map +0 -7
- package/dist/commands/antigravity/backfill.js.map +0 -7
- package/dist/commands/auth/create-key.js.map +0 -7
- package/dist/commands/auth/login.js.map +0 -7
- package/dist/commands/auth/logout.js.map +0 -7
- package/dist/commands/auth/revoke-key.js.map +0 -7
- package/dist/commands/auth/signup.js.map +0 -7
- package/dist/commands/auth/status.js.map +0 -7
- package/dist/commands/catalog/index.js.map +0 -7
- package/dist/commands/catalog/recommend.js.map +0 -7
- package/dist/commands/convert.js.map +0 -7
- package/dist/commands/converters.js.map +0 -7
- package/dist/commands/crons/list.js.map +0 -7
- package/dist/commands/crons/run.js.map +0 -7
- package/dist/commands/dashboard.js.map +0 -7
- package/dist/commands/diagnostics.js.map +0 -7
- package/dist/commands/eval-targets/create.js.map +0 -7
- package/dist/commands/eval-targets/list.js.map +0 -7
- package/dist/commands/evals/agent.js.map +0 -7
- package/dist/commands/evals/benchmark.js.map +0 -7
- package/dist/commands/evals/compare.js.map +0 -7
- package/dist/commands/evals/create.js.map +0 -7
- package/dist/commands/evals/optimize-description.js.map +0 -7
- package/dist/commands/evals/optimize.js.map +0 -7
- package/dist/commands/evals/run.js.map +0 -7
- package/dist/commands/gateway/ensure.js.map +0 -7
- package/dist/commands/hooks/emit-instructions.js.map +0 -7
- package/dist/commands/hooks/install.js.map +0 -7
- package/dist/commands/hooks/run.js.map +0 -7
- package/dist/commands/hooks/uninstall.js.map +0 -7
- package/dist/commands/import.js.map +0 -7
- package/dist/commands/instructions/create.js.map +0 -7
- package/dist/commands/instructions/delete.js.map +0 -7
- package/dist/commands/instructions/fork.js.map +0 -7
- package/dist/commands/instructions/get.js.map +0 -7
- package/dist/commands/instructions/list.js.map +0 -7
- package/dist/commands/instructions/promote.js.map +0 -7
- package/dist/commands/instructions/pull.js.map +0 -7
- package/dist/commands/instructions/upstream.js.map +0 -7
- package/dist/commands/instructions/versions.js.map +0 -7
- package/dist/commands/launcher.js.map +0 -7
- package/dist/commands/org/current.js.map +0 -7
- package/dist/commands/org/list.js.map +0 -7
- package/dist/commands/org/switch.js.map +0 -7
- package/dist/commands/packs/add-instruction.js.map +0 -7
- package/dist/commands/packs/apply.js.map +0 -7
- package/dist/commands/packs/create.js.map +0 -7
- package/dist/commands/packs/fork.js.map +0 -7
- package/dist/commands/packs/get.js.map +0 -7
- package/dist/commands/packs/list.js.map +0 -7
- package/dist/commands/packs/remove-instruction.js.map +0 -7
- package/dist/commands/proxy/env.js.map +0 -7
- package/dist/commands/proxy/logs.js.map +0 -7
- package/dist/commands/proxy/restart.js.map +0 -7
- package/dist/commands/proxy/setup.js.map +0 -7
- package/dist/commands/proxy/start.js.map +0 -7
- package/dist/commands/proxy/status.js.map +0 -7
- package/dist/commands/proxy/stop.js.map +0 -7
- package/dist/commands/research/backfill.js.map +0 -7
- package/dist/commands/research/tail-transcript.js.map +0 -7
- package/dist/commands/service/install.js.map +0 -7
- package/dist/commands/service/status.js.map +0 -7
- package/dist/commands/service/uninstall.js.map +0 -7
- package/dist/commands/sessions/analyze.js.map +0 -7
- package/dist/commands/sessions/end.js.map +0 -7
- package/dist/commands/sessions/import.js.map +0 -7
- package/dist/commands/sessions/list.js.map +0 -7
- package/dist/commands/sessions/start.js.map +0 -7
- package/dist/commands/setup.js.map +0 -7
- package/dist/commands/skills/export-approved.js.map +0 -7
- package/dist/commands/skills/install.js.map +0 -7
- package/dist/commands/skills/list.js.map +0 -7
- package/dist/commands/skills/publish.js.map +0 -7
- package/dist/commands/skills/search.js.map +0 -7
- package/dist/commands/skills/update.js.map +0 -7
- package/dist/commands/suggestions/accept.js.map +0 -7
- package/dist/commands/suggestions/dismiss.js.map +0 -7
- package/dist/commands/suggestions/list.js.map +0 -7
- package/dist/commands/suggestions/refresh.js.map +0 -7
- package/dist/cursor-BGQJ4CWI.js +0 -134
- package/dist/cursor-BGQJ4CWI.js.map +0 -7
- package/dist/dashboard/Dashboard.js.map +0 -7
- package/dist/dashboard/data.js.map +0 -7
- package/dist/dashboard/launcher/ActiveJobsList.js.map +0 -7
- package/dist/dashboard/launcher/LauncherOverlay.js.map +0 -7
- package/dist/dashboard/launcher/NewLaunchForm.js.map +0 -7
- package/dist/dashboard/launcher/api.js.map +0 -7
- package/dist/dashboard/launcher/tool-labels.js.map +0 -7
- package/dist/dashboard/launcher/types.js.map +0 -7
- package/dist/dashboard/launcher/useLaunchJobs.js.map +0 -7
- package/dist/dashboard/panels/friction.js.map +0 -7
- package/dist/dashboard/panels/insights.js.map +0 -7
- package/dist/dashboard/panels/instructions.js.map +0 -7
- package/dist/dashboard/panels/outcomes.js.map +0 -7
- package/dist/dashboard/panels/overview.js.map +0 -7
- package/dist/dashboard/panels/shared.js.map +0 -7
- package/dist/dashboard/types.js.map +0 -7
- package/dist/dist-UNYP5PJR.js +0 -56
- package/dist/dist-UNYP5PJR.js.map +0 -7
- package/dist/index.js.map +0 -7
- package/dist/lib/active-org-refresh.js.map +0 -7
- package/dist/lib/active-org.js.map +0 -7
- package/dist/lib/agent-loop.js.map +0 -7
- package/dist/lib/antigravity-transcript.js.map +0 -7
- package/dist/lib/api-client.js.map +0 -7
- package/dist/lib/auth.js.map +0 -7
- package/dist/lib/capture-hosts.js.map +0 -7
- package/dist/lib/detect-languages.js.map +0 -7
- package/dist/lib/detect-tmux.js.map +0 -7
- package/dist/lib/diagnostics.js.map +0 -7
- package/dist/lib/editor-proxy-pins.js.map +0 -7
- package/dist/lib/ensure-api-key.js.map +0 -7
- package/dist/lib/eval-analyzer.js.map +0 -7
- package/dist/lib/eval-benchmark.js.map +0 -7
- package/dist/lib/eval-conversation-handler.js.map +0 -7
- package/dist/lib/eval-executor.js.map +0 -7
- package/dist/lib/eval-grader.js.map +0 -7
- package/dist/lib/eval-meta-judge.js.map +0 -7
- package/dist/lib/eval-trigger-tester.js.map +0 -7
- package/dist/lib/eval-worktree.js.map +0 -7
- package/dist/lib/gateway-entry.js.map +0 -7
- package/dist/lib/gateway-identity.js.map +0 -7
- package/dist/lib/gateway-lifecycle.js.map +0 -7
- package/dist/lib/gateway.js.map +0 -7
- package/dist/lib/handlers/cron-refresh-skills.js.map +0 -7
- package/dist/lib/handlers/cron-suggest-instructions.js.map +0 -7
- package/dist/lib/handlers/process-announcement.js.map +0 -7
- package/dist/lib/handlers/process-changelog.js.map +0 -7
- package/dist/lib/handlers/process-conversation.js.map +0 -7
- package/dist/lib/handlers/process-eval.js.map +0 -7
- package/dist/lib/handlers/process-insights.js.map +0 -7
- package/dist/lib/handlers/process-launch.js.map +0 -7
- package/dist/lib/handlers/process-run-cleanup.js.map +0 -7
- package/dist/lib/handlers/process-send-message.js.map +0 -7
- package/dist/lib/handlers/process-session-goal.js.map +0 -7
- package/dist/lib/hooks-config.js.map +0 -7
- package/dist/lib/insights-prompts.js.map +0 -7
- package/dist/lib/instruction-snapshot.js.map +0 -7
- package/dist/lib/job-helpers.js.map +0 -7
- package/dist/lib/llm-client.js.map +0 -7
- package/dist/lib/manual-tasks-meta.js.map +0 -7
- package/dist/lib/manual-tasks.js.map +0 -7
- package/dist/lib/output.js.map +0 -7
- package/dist/lib/permanent-job-error.js.map +0 -7
- package/dist/lib/pid-identity.js.map +0 -7
- package/dist/lib/proxy-respawn.js.map +0 -7
- package/dist/lib/research-client.js.map +0 -7
- package/dist/lib/setup-steps.js.map +0 -7
- package/dist/lib/skills-loader.js.map +0 -7
- package/dist/lib/statusline-shim.js.map +0 -7
- package/dist/lib/telemetry.js.map +0 -7
- package/dist/lib/terminal-target-heartbeat.js.map +0 -7
- package/dist/lib/tmux.js.map +0 -7
- package/dist/lib/transcript-rate-limit-watcher.js.map +0 -7
- package/dist/lib/types.js.map +0 -7
- package/dist/lib/version-check.js.map +0 -7
- package/dist/lib/which.js.map +0 -7
- package/dist/lib/worktree.js.map +0 -7
- package/dist/opencode-IQ7X5YMJ.js +0 -190
- package/dist/opencode-IQ7X5YMJ.js.map +0 -7
|
@@ -1,38 +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
|
-
apiGet
|
|
10
|
-
} from "../../chunk-ZUJBM6HE.js";
|
|
11
|
-
import "../../chunk-W2YERO7E.js";
|
|
12
|
-
import "../../chunk-NSBPE2FW.js";
|
|
13
|
-
|
|
14
|
-
// src/commands/instructions/upstream.ts
|
|
15
|
-
import { Args } from "@oclif/core";
|
|
16
|
-
var InstructionsUpstream = class _InstructionsUpstream extends BaseCommand {
|
|
17
|
-
static description = "Check if a forked instruction has upstream updates";
|
|
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(_InstructionsUpstream);
|
|
23
|
-
this.requireAuth();
|
|
24
|
-
const result = await apiGet(
|
|
25
|
-
`/api/instructions/${args.id}/upstream`
|
|
26
|
-
);
|
|
27
|
-
if (result.hasUpdate) {
|
|
28
|
-
this.log(`Upstream update available: ${result.parentName} is at ${result.upstreamVersion} (you have ${result.currentVersion})`);
|
|
29
|
-
this.log(`Run: rulemetric instructions pull ${args.id}`);
|
|
30
|
-
} else {
|
|
31
|
-
this.log("Up to date with upstream.");
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
export {
|
|
36
|
-
InstructionsUpstream as default
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=upstream.js.map
|
|
1
|
+
import{a}from"../../chunk-LQRYQE6Q.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-CRAKDQ4H.js";import"../../chunk-WPJ2BND4.js";import"../../chunk-3AV3GTMP.js";import{d as s}from"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import{a as i}from"../../chunk-ZLLER3HP.js";import{Args as n}from"@oclif/core";var e=class o extends a{static{i(this,"InstructionsUpstream")}static description="Check if a forked instruction has upstream updates";static args={id:n.string({description:"ID of the forked instruction",required:!0})};async run(){let{args:r}=await this.parse(o);this.requireAuth();let t=await s(`/api/instructions/${r.id}/upstream`);t.hasUpdate?(this.log(`Upstream update available: ${t.parentName} is at ${t.upstreamVersion} (you have ${t.currentVersion})`),this.log(`Run: rulemetric instructions pull ${r.id}`)):this.log("Up to date with upstream.")}};export{e as default};
|
|
@@ -1,53 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
validateUuid
|
|
3
|
-
} from "../../chunk-7NYKWN7U.js";
|
|
4
|
-
import {
|
|
5
|
-
formatDate
|
|
6
|
-
} from "../../chunk-BZDKEQKU.js";
|
|
7
|
-
import {
|
|
8
|
-
BaseCommand
|
|
9
|
-
} from "../../chunk-2HK7RGZB.js";
|
|
10
|
-
import "../../chunk-R56PH7YE.js";
|
|
11
|
-
import "../../chunk-GQNJO2P2.js";
|
|
12
|
-
import "../../chunk-37LN5O7M.js";
|
|
13
|
-
import "../../chunk-EKJ2CABV.js";
|
|
14
|
-
import {
|
|
15
|
-
apiGet
|
|
16
|
-
} from "../../chunk-ZUJBM6HE.js";
|
|
17
|
-
import "../../chunk-W2YERO7E.js";
|
|
18
|
-
import "../../chunk-NSBPE2FW.js";
|
|
19
|
-
|
|
20
|
-
// src/commands/instructions/versions.ts
|
|
21
|
-
import { Args } from "@oclif/core";
|
|
22
|
-
import { printTable } from "@oclif/table";
|
|
23
|
-
var InstructionsVersions = class _InstructionsVersions extends BaseCommand {
|
|
24
|
-
static description = "List version history for an instruction";
|
|
25
|
-
static examples = ["<%= config.bin %> instructions versions <id>"];
|
|
26
|
-
static enableJsonFlag = true;
|
|
27
|
-
static args = {
|
|
28
|
-
id: Args.string({ description: "Instruction ID", required: true })
|
|
29
|
-
};
|
|
30
|
-
async run() {
|
|
31
|
-
const { args } = await this.parse(_InstructionsVersions);
|
|
32
|
-
this.requireAuth();
|
|
33
|
-
validateUuid(args.id, "instruction ID");
|
|
34
|
-
const versions = await apiGet(`/api/instructions/${encodeURIComponent(args.id)}/versions`);
|
|
35
|
-
if (versions.length === 0) {
|
|
36
|
-
this.log("No versions found.");
|
|
37
|
-
return versions;
|
|
38
|
-
}
|
|
39
|
-
printTable({
|
|
40
|
-
data: versions.map((v) => ({
|
|
41
|
-
Version: String(v.versionNumber),
|
|
42
|
-
"Change Summary": v.changeSummary ?? "(none)",
|
|
43
|
-
"Created At": formatDate(v.createdAt)
|
|
44
|
-
})),
|
|
45
|
-
columns: ["Version", "Change Summary", "Created At"]
|
|
46
|
-
});
|
|
47
|
-
return versions;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
export {
|
|
51
|
-
InstructionsVersions as default
|
|
52
|
-
};
|
|
53
|
-
//# sourceMappingURL=versions.js.map
|
|
1
|
+
import{a as m}from"../../chunk-WLVQJH4E.js";import{a}from"../../chunk-W2MV25SB.js";import{a as s}from"../../chunk-LQRYQE6Q.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-CRAKDQ4H.js";import"../../chunk-WPJ2BND4.js";import"../../chunk-3AV3GTMP.js";import{d as n}from"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import{a as o}from"../../chunk-ZLLER3HP.js";import{Args as c}from"@oclif/core";import{printTable as d}from"@oclif/table";var i=class u extends s{static{o(this,"InstructionsVersions")}static description="List version history for an instruction";static examples=["<%= config.bin %> instructions versions <id>"];static enableJsonFlag=!0;static args={id:c.string({description:"Instruction ID",required:!0})};async run(){let{args:e}=await this.parse(u);this.requireAuth(),m(e.id,"instruction ID");let r=await n(`/api/instructions/${encodeURIComponent(e.id)}/versions`);return r.length===0?(this.log("No versions found."),r):(d({data:r.map(t=>({Version:String(t.versionNumber),"Change Summary":t.changeSummary??"(none)","Created At":a(t.createdAt)})),columns:["Version","Change Summary","Created At"]}),r)}};export{i as default};
|
|
@@ -1,40 +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 "../chunk-ZUJBM6HE.js";
|
|
9
|
-
import "../chunk-W2YERO7E.js";
|
|
10
|
-
import "../chunk-NSBPE2FW.js";
|
|
11
|
-
|
|
12
|
-
// src/commands/launcher.ts
|
|
13
|
-
import { Flags } from "@oclif/core";
|
|
14
|
-
var Launcher = class _Launcher extends BaseCommand {
|
|
15
|
-
static description = "Open the launcher overlay (alias for `dashboard --launcher`)";
|
|
16
|
-
static examples = [
|
|
17
|
-
"<%= config.bin %> launcher",
|
|
18
|
-
"<%= config.bin %> launcher --period today"
|
|
19
|
-
];
|
|
20
|
-
static flags = {
|
|
21
|
-
period: Flags.string({
|
|
22
|
-
char: "p",
|
|
23
|
-
default: "week",
|
|
24
|
-
options: ["today", "week", "30days", "month", "all"],
|
|
25
|
-
description: "Initial time period for the dashboard panels behind the overlay"
|
|
26
|
-
})
|
|
27
|
-
};
|
|
28
|
-
async run() {
|
|
29
|
-
const { flags } = await this.parse(_Launcher);
|
|
30
|
-
const { renderDashboard } = await import("../dashboard/Dashboard.js");
|
|
31
|
-
await renderDashboard(
|
|
32
|
-
flags.period,
|
|
33
|
-
{ openLauncher: true }
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
export {
|
|
38
|
-
Launcher as default
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=launcher.js.map
|
|
1
|
+
import{a as o}from"../chunk-LQRYQE6Q.js";import"../chunk-IZTIYR5Q.js";import"../chunk-CRAKDQ4H.js";import"../chunk-WPJ2BND4.js";import"../chunk-3AV3GTMP.js";import"../chunk-TIQ7DQ3M.js";import"../chunk-M6AJDVCL.js";import{a as e}from"../chunk-ZLLER3HP.js";import{Flags as s}from"@oclif/core";var a=class r extends o{static{e(this,"Launcher")}static description="Open the launcher overlay (alias for `dashboard --launcher`)";static examples=["<%= config.bin %> launcher","<%= config.bin %> launcher --period today"];static flags={period:s.string({char:"p",default:"week",options:["today","week","30days","month","all"],description:"Initial time period for the dashboard panels behind the overlay"})};async run(){let{flags:i}=await this.parse(r),{renderDashboard:t}=await import("../dashboard/Dashboard.js");await t(i.period,{openLauncher:!0})}};export{a as default};
|
|
@@ -1,77 +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 {
|
|
8
|
-
clearActiveOrg,
|
|
9
|
-
isStale,
|
|
10
|
-
readActiveOrg,
|
|
11
|
-
writeActiveOrg
|
|
12
|
-
} from "../../chunk-EKJ2CABV.js";
|
|
13
|
-
import {
|
|
14
|
-
ApiError,
|
|
15
|
-
apiGet
|
|
16
|
-
} from "../../chunk-ZUJBM6HE.js";
|
|
17
|
-
import {
|
|
18
|
-
isAuthenticated
|
|
19
|
-
} from "../../chunk-W2YERO7E.js";
|
|
20
|
-
import "../../chunk-NSBPE2FW.js";
|
|
21
|
-
|
|
22
|
-
// src/commands/org/current.ts
|
|
23
|
-
var OrgCurrent = class _OrgCurrent extends BaseCommand {
|
|
24
|
-
static description = "Show the current active organization";
|
|
25
|
-
static examples = ["<%= config.bin %> org current"];
|
|
26
|
-
async run() {
|
|
27
|
-
await this.parse(_OrgCurrent);
|
|
28
|
-
const envId = process.env.RULEMETRIC_ORG_ID?.trim();
|
|
29
|
-
if (envId) {
|
|
30
|
-
this.log(`${envId} (env override)`);
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
if (!isAuthenticated()) {
|
|
34
|
-
this.error("Not logged in. Run `rulemetric auth login` to authenticate.");
|
|
35
|
-
}
|
|
36
|
-
let cached = readActiveOrg();
|
|
37
|
-
if (cached && isStale(cached)) {
|
|
38
|
-
try {
|
|
39
|
-
const profile = await apiGet("/api/profile");
|
|
40
|
-
if (!profile.activeOrgId) {
|
|
41
|
-
clearActiveOrg();
|
|
42
|
-
cached = null;
|
|
43
|
-
} else if (profile.activeOrgId !== cached.orgId) {
|
|
44
|
-
const orgs = await apiGet("/api/orgs");
|
|
45
|
-
const match = orgs.find((o) => o.id === profile.activeOrgId);
|
|
46
|
-
cached = {
|
|
47
|
-
orgId: profile.activeOrgId,
|
|
48
|
-
orgSlug: match?.slug,
|
|
49
|
-
syncedAt: Date.now()
|
|
50
|
-
};
|
|
51
|
-
writeActiveOrg(cached);
|
|
52
|
-
} else {
|
|
53
|
-
cached = {
|
|
54
|
-
...cached,
|
|
55
|
-
syncedAt: Date.now()
|
|
56
|
-
};
|
|
57
|
-
writeActiveOrg(cached);
|
|
58
|
-
}
|
|
59
|
-
} catch (err) {
|
|
60
|
-
if (!(err instanceof ApiError)) throw err;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
if (!cached) {
|
|
64
|
-
this.log("No active organization. Run `rulemetric org switch <slug>`.");
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
if (cached.orgSlug) {
|
|
68
|
-
this.log(`${cached.orgSlug} (${cached.orgId})`);
|
|
69
|
-
} else {
|
|
70
|
-
this.log(cached.orgId);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
export {
|
|
75
|
-
OrgCurrent as default
|
|
76
|
-
};
|
|
77
|
-
//# sourceMappingURL=current.js.map
|
|
1
|
+
import{a as f}from"../../chunk-LQRYQE6Q.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-CRAKDQ4H.js";import"../../chunk-WPJ2BND4.js";import{a as c,b as t,c as l,d}from"../../chunk-3AV3GTMP.js";import{b as g,d as e}from"../../chunk-TIQ7DQ3M.js";import{g as a}from"../../chunk-M6AJDVCL.js";import{a as s}from"../../chunk-ZLLER3HP.js";var o=class u extends f{static{s(this,"OrgCurrent")}static description="Show the current active organization";static examples=["<%= config.bin %> org current"];async run(){await this.parse(u);let n=process.env.RULEMETRIC_ORG_ID?.trim();if(n){this.log(`${n} (env override)`);return}a()||this.error("Not logged in. Run `rulemetric auth login` to authenticate.");let i=c();if(i&&d(i))try{let r=await e("/api/profile");if(!r.activeOrgId)l(),i=null;else if(r.activeOrgId!==i.orgId){let m=(await e("/api/orgs")).find(p=>p.id===r.activeOrgId);i={orgId:r.activeOrgId,orgSlug:m?.slug,syncedAt:Date.now()},t(i)}else i={...i,syncedAt:Date.now()},t(i)}catch(r){if(!(r instanceof g))throw r}if(!i){this.log("No active organization. Run `rulemetric org switch <slug>`.");return}i.orgSlug?this.log(`${i.orgSlug} (${i.orgId})`):this.log(i.orgId)}};export{o as default};
|
|
@@ -1,52 +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 {
|
|
8
|
-
readActiveOrg
|
|
9
|
-
} from "../../chunk-EKJ2CABV.js";
|
|
10
|
-
import {
|
|
11
|
-
apiGet
|
|
12
|
-
} from "../../chunk-ZUJBM6HE.js";
|
|
13
|
-
import "../../chunk-W2YERO7E.js";
|
|
14
|
-
import "../../chunk-NSBPE2FW.js";
|
|
15
|
-
|
|
16
|
-
// src/commands/org/list.ts
|
|
17
|
-
var WEB_URL = process.env.RULEMETRIC_WEB_URL ?? "https://rulemetric.com";
|
|
18
|
-
var OrgList = class _OrgList extends BaseCommand {
|
|
19
|
-
static description = "List organizations the current user is a member of";
|
|
20
|
-
static examples = ["<%= config.bin %> org list"];
|
|
21
|
-
async run() {
|
|
22
|
-
await this.parse(_OrgList);
|
|
23
|
-
this.requireAuth();
|
|
24
|
-
const orgs = await apiGet("/api/orgs");
|
|
25
|
-
if (orgs.length === 0) {
|
|
26
|
-
this.log("No organizations.");
|
|
27
|
-
this.log(`Create one in the web UI: ${WEB_URL}`);
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
const active = readActiveOrg();
|
|
31
|
-
const activeId = active?.orgId ?? null;
|
|
32
|
-
const slugWidth = Math.max(4, ...orgs.map((o) => o.slug.length));
|
|
33
|
-
const nameWidth = Math.max(4, ...orgs.map((o) => o.name.length));
|
|
34
|
-
const roleWidth = Math.max(4, ...orgs.map((o) => o.role.length));
|
|
35
|
-
const header = ` ACTIVE ${"SLUG".padEnd(slugWidth)} ${"NAME".padEnd(nameWidth)} ${"ROLE".padEnd(roleWidth)}`;
|
|
36
|
-
this.log(header);
|
|
37
|
-
for (const org of orgs) {
|
|
38
|
-
const marker = org.id === activeId ? "*" : " ";
|
|
39
|
-
this.log(
|
|
40
|
-
` ${marker} ${org.slug.padEnd(slugWidth)} ${org.name.padEnd(nameWidth)} ${org.role.padEnd(roleWidth)}`
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
if (!activeId) {
|
|
44
|
-
this.log("");
|
|
45
|
-
this.log("No active organization. Run `rulemetric org switch <slug>` to set one.");
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
export {
|
|
50
|
-
OrgList as default
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=list.js.map
|
|
1
|
+
import{a as d}from"../../chunk-LQRYQE6Q.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-CRAKDQ4H.js";import"../../chunk-WPJ2BND4.js";import{a as c}from"../../chunk-3AV3GTMP.js";import{d as g}from"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import{a as s}from"../../chunk-ZLLER3HP.js";var p=process.env.RULEMETRIC_WEB_URL??"https://rulemetric.com",o=class l extends d{static{s(this,"OrgList")}static description="List organizations the current user is a member of";static examples=["<%= config.bin %> org list"];async run(){await this.parse(l),this.requireAuth();let e=await g("/api/orgs");if(e.length===0){this.log("No organizations."),this.log(`Create one in the web UI: ${p}`);return}let i=c()?.orgId??null,r=Math.max(4,...e.map(t=>t.slug.length)),a=Math.max(4,...e.map(t=>t.name.length)),n=Math.max(4,...e.map(t=>t.role.length)),m=` ACTIVE ${"SLUG".padEnd(r)} ${"NAME".padEnd(a)} ${"ROLE".padEnd(n)}`;this.log(m);for(let t of e){let h=t.id===i?"*":" ";this.log(` ${h} ${t.slug.padEnd(r)} ${t.name.padEnd(a)} ${t.role.padEnd(n)}`)}i||(this.log(""),this.log("No active organization. Run `rulemetric org switch <slug>` to set one."))}};export{o as default};
|
|
@@ -1,71 +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 {
|
|
8
|
-
clearActiveOrg,
|
|
9
|
-
writeActiveOrg
|
|
10
|
-
} from "../../chunk-EKJ2CABV.js";
|
|
11
|
-
import {
|
|
12
|
-
apiGet,
|
|
13
|
-
apiPatch
|
|
14
|
-
} from "../../chunk-ZUJBM6HE.js";
|
|
15
|
-
import "../../chunk-W2YERO7E.js";
|
|
16
|
-
import "../../chunk-NSBPE2FW.js";
|
|
17
|
-
|
|
18
|
-
// src/commands/org/switch.ts
|
|
19
|
-
import { Args, Flags } from "@oclif/core";
|
|
20
|
-
var OrgSwitch = class _OrgSwitch extends BaseCommand {
|
|
21
|
-
static description = "Switch the active organization";
|
|
22
|
-
static examples = [
|
|
23
|
-
"<%= config.bin %> org switch acme",
|
|
24
|
-
"<%= config.bin %> org switch --clear"
|
|
25
|
-
];
|
|
26
|
-
static args = {
|
|
27
|
-
slug: Args.string({
|
|
28
|
-
description: "Organization slug to switch to",
|
|
29
|
-
required: false
|
|
30
|
-
})
|
|
31
|
-
};
|
|
32
|
-
static flags = {
|
|
33
|
-
clear: Flags.boolean({
|
|
34
|
-
description: "Clear the active organization (personal mode)",
|
|
35
|
-
default: false
|
|
36
|
-
})
|
|
37
|
-
};
|
|
38
|
-
async run() {
|
|
39
|
-
const { args, flags } = await this.parse(_OrgSwitch);
|
|
40
|
-
this.requireAuth();
|
|
41
|
-
if (flags.clear) {
|
|
42
|
-
await apiPatch("/api/profile", { activeOrgId: null });
|
|
43
|
-
clearActiveOrg();
|
|
44
|
-
this.log("Active org cleared (personal mode).");
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
if (!args.slug) {
|
|
48
|
-
this.error(
|
|
49
|
-
"Slug is required. Run `rulemetric org list` to see your orgs, or use --clear to unset."
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
const orgs = await apiGet("/api/orgs");
|
|
53
|
-
const match = orgs.find((o) => o.slug === args.slug);
|
|
54
|
-
if (!match) {
|
|
55
|
-
this.error(
|
|
56
|
-
`Not a member of "${args.slug}". Run \`rulemetric org list\` to see your orgs.`
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
await apiPatch("/api/profile", { activeOrgId: match.id });
|
|
60
|
-
writeActiveOrg({
|
|
61
|
-
orgId: match.id,
|
|
62
|
-
orgSlug: match.slug,
|
|
63
|
-
syncedAt: Date.now()
|
|
64
|
-
});
|
|
65
|
-
this.log(`Active org: ${match.slug}`);
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
export {
|
|
69
|
-
OrgSwitch as default
|
|
70
|
-
};
|
|
71
|
-
//# sourceMappingURL=switch.js.map
|
|
1
|
+
import{a as l}from"../../chunk-LQRYQE6Q.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-CRAKDQ4H.js";import"../../chunk-WPJ2BND4.js";import{b as a,c as g}from"../../chunk-3AV3GTMP.js";import{d as s,g as e}from"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import{a as o}from"../../chunk-ZLLER3HP.js";import{Args as d,Flags as m}from"@oclif/core";var t=class c extends l{static{o(this,"OrgSwitch")}static description="Switch the active organization";static examples=["<%= config.bin %> org switch acme","<%= config.bin %> org switch --clear"];static args={slug:d.string({description:"Organization slug to switch to",required:!1})};static flags={clear:m.boolean({description:"Clear the active organization (personal mode)",default:!1})};async run(){let{args:i,flags:n}=await this.parse(c);if(this.requireAuth(),n.clear){await e("/api/profile",{activeOrgId:null}),g(),this.log("Active org cleared (personal mode).");return}i.slug||this.error("Slug is required. Run `rulemetric org list` to see your orgs, or use --clear to unset.");let r=(await s("/api/orgs")).find(u=>u.slug===i.slug);r||this.error(`Not a member of "${i.slug}". Run \`rulemetric org list\` to see your orgs.`),await e("/api/profile",{activeOrgId:r.id}),a({orgId:r.id,orgSlug:r.slug,syncedAt:Date.now()}),this.log(`Active org: ${r.slug}`)}};export{t as default};
|
|
@@ -1,37 +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/packs/add-instruction.ts
|
|
15
|
-
import { Args } from "@oclif/core";
|
|
16
|
-
var PacksAddInstruction = class _PacksAddInstruction extends BaseCommand {
|
|
17
|
-
static description = "Add an instruction to a pack";
|
|
18
|
-
static examples = [
|
|
19
|
-
"<%= config.bin %> packs add-instruction <pack-id> <instruction-id>"
|
|
20
|
-
];
|
|
21
|
-
static args = {
|
|
22
|
-
packId: Args.string({ description: "Pack ID", required: true }),
|
|
23
|
-
instructionId: Args.string({ description: "Instruction ID", required: true })
|
|
24
|
-
};
|
|
25
|
-
async run() {
|
|
26
|
-
const { args } = await this.parse(_PacksAddInstruction);
|
|
27
|
-
this.requireAuth();
|
|
28
|
-
await apiPost(`/api/packs/${args.packId}/instructions`, {
|
|
29
|
-
instructionId: args.instructionId
|
|
30
|
-
});
|
|
31
|
-
this.log("Instruction added to pack.");
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
export {
|
|
35
|
-
PacksAddInstruction as default
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=add-instruction.js.map
|
|
1
|
+
import{a as o}from"../../chunk-LQRYQE6Q.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-CRAKDQ4H.js";import"../../chunk-WPJ2BND4.js";import"../../chunk-3AV3GTMP.js";import{e as s}from"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import{a as r}from"../../chunk-ZLLER3HP.js";import{Args as a}from"@oclif/core";var i=class n extends o{static{r(this,"PacksAddInstruction")}static description="Add an instruction to a pack";static examples=["<%= config.bin %> packs add-instruction <pack-id> <instruction-id>"];static args={packId:a.string({description:"Pack ID",required:!0}),instructionId:a.string({description:"Instruction ID",required:!0})};async run(){let{args:t}=await this.parse(n);this.requireAuth(),await s(`/api/packs/${t.packId}/instructions`,{instructionId:t.instructionId}),this.log("Instruction added to pack.")}};export{i 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/packs/apply.ts
|
|
15
|
-
import { Args, Flags } from "@oclif/core";
|
|
16
|
-
var PacksApply = class _PacksApply extends BaseCommand {
|
|
17
|
-
static description = "Apply a pack to a project (bulk-link all instructions)";
|
|
18
|
-
static examples = [
|
|
19
|
-
"<%= config.bin %> packs apply <pack-id> --project <project-id>"
|
|
20
|
-
];
|
|
21
|
-
static args = {
|
|
22
|
-
id: Args.string({ description: "Pack ID", required: true })
|
|
23
|
-
};
|
|
24
|
-
static flags = {
|
|
25
|
-
project: Flags.string({ char: "p", description: "Project ID", required: true })
|
|
26
|
-
};
|
|
27
|
-
async run() {
|
|
28
|
-
const { args, flags } = await this.parse(_PacksApply);
|
|
29
|
-
this.requireAuth();
|
|
30
|
-
const result = await apiPost(`/api/packs/${args.id}/apply`, {
|
|
31
|
-
projectId: flags.project
|
|
32
|
-
});
|
|
33
|
-
this.log(`Applied pack: ${result.linked} of ${result.total} instructions linked to project.`);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
export {
|
|
37
|
-
PacksApply as default
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=apply.js.map
|
|
1
|
+
import{a as s}from"../../chunk-LQRYQE6Q.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-CRAKDQ4H.js";import"../../chunk-WPJ2BND4.js";import"../../chunk-3AV3GTMP.js";import{e as i}from"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import{a as r}from"../../chunk-ZLLER3HP.js";import{Args as c,Flags as l}from"@oclif/core";var t=class o extends s{static{r(this,"PacksApply")}static description="Apply a pack to a project (bulk-link all instructions)";static examples=["<%= config.bin %> packs apply <pack-id> --project <project-id>"];static args={id:c.string({description:"Pack ID",required:!0})};static flags={project:l.string({char:"p",description:"Project ID",required:!0})};async run(){let{args:a,flags:p}=await this.parse(o);this.requireAuth();let e=await i(`/api/packs/${a.id}/apply`,{projectId:p.project});this.log(`Applied pack: ${e.linked} of ${e.total} instructions linked to project.`)}};export{t as default};
|
|
@@ -1,50 +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/packs/create.ts
|
|
15
|
-
import { Flags } from "@oclif/core";
|
|
16
|
-
var PacksCreate = class _PacksCreate extends BaseCommand {
|
|
17
|
-
static description = "Create a new instruction pack";
|
|
18
|
-
static examples = [
|
|
19
|
-
'<%= config.bin %> packs create --name "Security Pack" --description "Security-focused instructions"'
|
|
20
|
-
];
|
|
21
|
-
static flags = {
|
|
22
|
-
name: Flags.string({ char: "n", description: "Pack name", required: true }),
|
|
23
|
-
description: Flags.string({ char: "d", description: "Pack description", required: true }),
|
|
24
|
-
scope: Flags.string({
|
|
25
|
-
char: "s",
|
|
26
|
-
description: "Pack scope",
|
|
27
|
-
options: ["org", "team", "personal"],
|
|
28
|
-
default: "personal"
|
|
29
|
-
}),
|
|
30
|
-
tags: Flags.string({ char: "t", description: "Comma-separated tags" })
|
|
31
|
-
};
|
|
32
|
-
async run() {
|
|
33
|
-
const { flags } = await this.parse(_PacksCreate);
|
|
34
|
-
this.requireAuth();
|
|
35
|
-
const body = {
|
|
36
|
-
name: flags.name,
|
|
37
|
-
description: flags.description,
|
|
38
|
-
scope: flags.scope
|
|
39
|
-
};
|
|
40
|
-
if (flags.tags) {
|
|
41
|
-
body.tags = flags.tags.split(",").map((t) => t.trim());
|
|
42
|
-
}
|
|
43
|
-
const result = await apiPost("/api/packs", body);
|
|
44
|
-
this.log(`Created pack: ${result.name} (${result.id})`);
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
export {
|
|
48
|
-
PacksCreate as default
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=create.js.map
|
|
1
|
+
import{a as o}from"../../chunk-LQRYQE6Q.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-CRAKDQ4H.js";import"../../chunk-WPJ2BND4.js";import"../../chunk-3AV3GTMP.js";import{e as n}from"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import{a}from"../../chunk-ZLLER3HP.js";import{Flags as t}from"@oclif/core";var i=class c extends o{static{a(this,"PacksCreate")}static description="Create a new instruction pack";static examples=['<%= config.bin %> packs create --name "Security Pack" --description "Security-focused instructions"'];static flags={name:t.string({char:"n",description:"Pack name",required:!0}),description:t.string({char:"d",description:"Pack description",required:!0}),scope:t.string({char:"s",description:"Pack scope",options:["org","team","personal"],default:"personal"}),tags:t.string({char:"t",description:"Comma-separated tags"})};async run(){let{flags:e}=await this.parse(c);this.requireAuth();let r={name:e.name,description:e.description,scope:e.scope};e.tags&&(r.tags=e.tags.split(",").map(p=>p.trim()));let s=await n("/api/packs",r);this.log(`Created pack: ${s.name} (${s.id})`)}};export{i 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/packs/fork.ts
|
|
15
|
-
import { Args } from "@oclif/core";
|
|
16
|
-
var PacksFork = class _PacksFork extends BaseCommand {
|
|
17
|
-
static description = "Fork a pack to your personal scope";
|
|
18
|
-
static examples = [
|
|
19
|
-
"<%= config.bin %> packs fork <pack-id>"
|
|
20
|
-
];
|
|
21
|
-
static args = {
|
|
22
|
-
id: Args.string({ description: "ID of the pack to fork", required: true })
|
|
23
|
-
};
|
|
24
|
-
async run() {
|
|
25
|
-
const { args } = await this.parse(_PacksFork);
|
|
26
|
-
this.requireAuth();
|
|
27
|
-
const result = await apiPost(`/api/packs/${args.id}/fork`, {});
|
|
28
|
-
this.log(`Forked pack: ${result.name} (${result.id})`);
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
PacksFork as default
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=fork.js.map
|
|
1
|
+
import{a as e}from"../../chunk-LQRYQE6Q.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-CRAKDQ4H.js";import"../../chunk-WPJ2BND4.js";import"../../chunk-3AV3GTMP.js";import{e as o}from"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import{a as t}from"../../chunk-ZLLER3HP.js";import{Args as p}from"@oclif/core";var r=class s extends e{static{t(this,"PacksFork")}static description="Fork a pack to your personal scope";static examples=["<%= config.bin %> packs fork <pack-id>"];static args={id:p.string({description:"ID of the pack to fork",required:!0})};async run(){let{args:a}=await this.parse(s);this.requireAuth();let i=await o(`/api/packs/${a.id}/fork`,{});this.log(`Forked pack: ${i.name} (${i.id})`)}};export{r as default};
|
|
@@ -1,56 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../../chunk-BZDKEQKU.js";
|
|
5
|
-
import {
|
|
6
|
-
BaseCommand
|
|
7
|
-
} from "../../chunk-2HK7RGZB.js";
|
|
8
|
-
import "../../chunk-R56PH7YE.js";
|
|
9
|
-
import "../../chunk-GQNJO2P2.js";
|
|
10
|
-
import "../../chunk-37LN5O7M.js";
|
|
11
|
-
import "../../chunk-EKJ2CABV.js";
|
|
12
|
-
import {
|
|
13
|
-
apiGet
|
|
14
|
-
} from "../../chunk-ZUJBM6HE.js";
|
|
15
|
-
import "../../chunk-W2YERO7E.js";
|
|
16
|
-
import "../../chunk-NSBPE2FW.js";
|
|
17
|
-
|
|
18
|
-
// src/commands/packs/get.ts
|
|
19
|
-
import { Args } from "@oclif/core";
|
|
20
|
-
import { printTable } from "@oclif/table";
|
|
21
|
-
var PacksGet = class _PacksGet extends BaseCommand {
|
|
22
|
-
static description = "Get pack detail with instruction list";
|
|
23
|
-
static examples = [
|
|
24
|
-
"<%= config.bin %> packs get <pack-id>"
|
|
25
|
-
];
|
|
26
|
-
static args = {
|
|
27
|
-
id: Args.string({ description: "Pack ID", required: true })
|
|
28
|
-
};
|
|
29
|
-
async run() {
|
|
30
|
-
const { args } = await this.parse(_PacksGet);
|
|
31
|
-
this.requireAuth();
|
|
32
|
-
const pack = await apiGet(`/api/packs/${args.id}`);
|
|
33
|
-
this.log(`
|
|
34
|
-
Pack: ${pack.name}`);
|
|
35
|
-
this.log(`Description: ${pack.description}`);
|
|
36
|
-
this.log(`Scope: ${formatScope(pack.scope)} | Version: ${pack.version} | Tier: ${pack.tier}`);
|
|
37
|
-
this.log(`Tags: ${(pack.tags ?? []).join(", ") || "(none)"}`);
|
|
38
|
-
this.log(`Instructions: ${pack.instructionCount}
|
|
39
|
-
`);
|
|
40
|
-
if (pack.instructions.length > 0) {
|
|
41
|
-
printTable({
|
|
42
|
-
data: pack.instructions.map((i) => ({
|
|
43
|
-
"#": String(i.position),
|
|
44
|
-
Name: truncate(i.name, 40),
|
|
45
|
-
Scope: formatScope(i.scope),
|
|
46
|
-
Version: i.version
|
|
47
|
-
})),
|
|
48
|
-
columns: ["#", "Name", "Scope", "Version"]
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
export {
|
|
54
|
-
PacksGet as default
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=get.js.map
|
|
1
|
+
import{b as a,c as r}from"../../chunk-W2MV25SB.js";import{a as o}from"../../chunk-LQRYQE6Q.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-CRAKDQ4H.js";import"../../chunk-WPJ2BND4.js";import"../../chunk-3AV3GTMP.js";import{d as e}from"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import{a as n}from"../../chunk-ZLLER3HP.js";import{Args as g}from"@oclif/core";import{printTable as m}from"@oclif/table";var s=class c extends o{static{n(this,"PacksGet")}static description="Get pack detail with instruction list";static examples=["<%= config.bin %> packs get <pack-id>"];static args={id:g.string({description:"Pack ID",required:!0})};async run(){let{args:p}=await this.parse(c);this.requireAuth();let i=await e(`/api/packs/${p.id}`);this.log(`
|
|
2
|
+
Pack: ${i.name}`),this.log(`Description: ${i.description}`),this.log(`Scope: ${r(i.scope)} | Version: ${i.version} | Tier: ${i.tier}`),this.log(`Tags: ${(i.tags??[]).join(", ")||"(none)"}`),this.log(`Instructions: ${i.instructionCount}
|
|
3
|
+
`),i.instructions.length>0&&m({data:i.instructions.map(t=>({"#":String(t.position),Name:a(t.name,40),Scope:r(t.scope),Version:t.version})),columns:["#","Name","Scope","Version"]})}};export{s as default};
|
|
@@ -1,66 +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/packs/list.ts
|
|
20
|
-
import { Flags } from "@oclif/core";
|
|
21
|
-
import { printTable } from "@oclif/table";
|
|
22
|
-
var PacksList = class _PacksList extends BaseCommand {
|
|
23
|
-
static description = "List your instruction packs";
|
|
24
|
-
static examples = [
|
|
25
|
-
"<%= config.bin %> packs list",
|
|
26
|
-
"<%= config.bin %> packs 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(_PacksList);
|
|
39
|
-
this.requireAuth();
|
|
40
|
-
const results = await apiGet("/api/packs");
|
|
41
|
-
if (results.length === 0) {
|
|
42
|
-
this.log("No packs found. Create one with `rulemetric packs 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((p) => ({
|
|
50
|
-
Name: truncate(p.name, 40),
|
|
51
|
-
Scope: formatScope(p.scope),
|
|
52
|
-
Tier: p.tier,
|
|
53
|
-
Count: String(p.instructionCount),
|
|
54
|
-
Tags: (p.tags ?? []).join(", "),
|
|
55
|
-
Updated: formatDate(p.updatedAt)
|
|
56
|
-
})),
|
|
57
|
-
columns: ["Name", "Scope", "Tier", "Count", "Tags", "Updated"]
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
return results;
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
export {
|
|
64
|
-
PacksList as default
|
|
65
|
-
};
|
|
66
|
-
//# sourceMappingURL=list.js.map
|
|
1
|
+
import{a as o,b as n,c}from"../../chunk-W2MV25SB.js";import{a as s}from"../../chunk-LQRYQE6Q.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-CRAKDQ4H.js";import"../../chunk-WPJ2BND4.js";import"../../chunk-3AV3GTMP.js";import{d as a}from"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import{a as i}from"../../chunk-ZLLER3HP.js";import{Flags as p}from"@oclif/core";import{printTable as g}from"@oclif/table";var e=class m extends s{static{i(this,"PacksList")}static description="List your instruction packs";static examples=["<%= config.bin %> packs list","<%= config.bin %> packs 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(m);this.requireAuth();let r=await a("/api/packs");return r.length===0?(this.log("No packs found. Create one with `rulemetric packs create`."),r):(u.format==="json"?this.log(JSON.stringify(r,null,2)):g({data:r.map(t=>({Name:n(t.name,40),Scope:c(t.scope),Tier:t.tier,Count:String(t.instructionCount),Tags:(t.tags??[]).join(", "),Updated:o(t.updatedAt)})),columns:["Name","Scope","Tier","Count","Tags","Updated"]}),r)}};export{e as default};
|