@rulemetric/cli 0.7.3 → 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 -310
- 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 -796
- 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 -47
- 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 -16
- 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 -15
- 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 -12
- 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 -20
- package/dist/lib/manual-tasks-meta.js +1 -8
- package/dist/lib/manual-tasks.js +1 -80
- 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 +9 -8
- 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-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-DIQUV5FR.js +0 -257
- package/dist/chunk-DIQUV5FR.js.map +0 -7
- package/dist/chunk-DMX5YOTM.js +0 -167
- package/dist/chunk-DMX5YOTM.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-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-OCKHW72U.js +0 -55
- package/dist/chunk-OCKHW72U.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-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-RAXRZYOB.js +0 -299
- package/dist/chunk-RAXRZYOB.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-VA5FFOS7.js +0 -243
- package/dist/chunk-VA5FFOS7.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-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,85 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunk-EKP32DLN.js";
|
|
4
|
-
import {
|
|
5
|
-
validateUuid
|
|
6
|
-
} from "../../chunk-7NYKWN7U.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
|
-
apiPost
|
|
17
|
-
} from "../../chunk-ZUJBM6HE.js";
|
|
18
|
-
import "../../chunk-W2YERO7E.js";
|
|
19
|
-
import "../../chunk-NSBPE2FW.js";
|
|
1
|
+
import{a as l}from"../../chunk-MODXEGCU.js";import{a as g}from"../../chunk-WLVQJH4E.js";import{a as u}from"../../chunk-LQRYQE6Q.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-CRAKDQ4H.js";import"../../chunk-WPJ2BND4.js";import"../../chunk-3AV3GTMP.js";import{d,e as p}from"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import{a as c}from"../../chunk-ZLLER3HP.js";import*as o from"node:fs";import*as f from"node:path";import{Args as $}from"@oclif/core";function U(r,i,a){let t=f.join(r,"CLAUDE.md"),e=`<!-- rulemetric:start ${i} -->`,s=`<!-- rulemetric:end ${i} -->`,n=o.existsSync(t)?o.readFileSync(t,"utf8"):"";if(n.includes(e))return!1;let h=`${n.length>0&&!n.endsWith(`
|
|
2
|
+
`)?`
|
|
20
3
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const startTag = `<!-- rulemetric:start ${instructionId} -->`;
|
|
28
|
-
const endTag = `<!-- rulemetric:end ${instructionId} -->`;
|
|
29
|
-
const existing = fs.existsSync(filePath) ? fs.readFileSync(filePath, "utf8") : "";
|
|
30
|
-
if (existing.includes(startTag)) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
const separator = existing.length > 0 && !existing.endsWith("\n") ? "\n\n" : existing.length > 0 ? "\n" : "";
|
|
34
|
-
const block = `${separator}
|
|
35
|
-
${startTag}
|
|
36
|
-
${content}
|
|
37
|
-
${endTag}
|
|
38
|
-
`;
|
|
39
|
-
fs.writeFileSync(filePath, existing + block, "utf8");
|
|
40
|
-
return true;
|
|
41
|
-
}
|
|
42
|
-
var SuggestionsAccept = class _SuggestionsAccept extends BaseCommand {
|
|
43
|
-
static description = "Accept a suggestion and append the instruction to CLAUDE.md";
|
|
44
|
-
static examples = [
|
|
45
|
-
"<%= config.bin %> suggestions accept <id>"
|
|
46
|
-
];
|
|
47
|
-
static args = {
|
|
48
|
-
id: Args.string({ description: "Suggestion UUID from `suggestions list`", required: true })
|
|
49
|
-
};
|
|
50
|
-
async run() {
|
|
51
|
-
const { args } = await this.parse(_SuggestionsAccept);
|
|
52
|
-
this.requireAuth();
|
|
53
|
-
validateUuid(args.id, "suggestion ID");
|
|
54
|
-
const projectPath = normalizeProjectPath(process.cwd());
|
|
55
|
-
const suggestion = await apiGet(
|
|
56
|
-
`/api/instruction-suggestions/${encodeURIComponent(args.id)}`
|
|
57
|
-
);
|
|
58
|
-
let effectiveInstructionId = suggestion.instructionId;
|
|
59
|
-
if (suggestion.instructionScope === "public") {
|
|
60
|
-
const promoted = await apiPost(
|
|
61
|
-
`/api/instructions/${encodeURIComponent(suggestion.instructionId)}/promote-from-public`,
|
|
62
|
-
{ targetScope: "personal" }
|
|
63
|
-
);
|
|
64
|
-
effectiveInstructionId = promoted.instructionId;
|
|
65
|
-
}
|
|
66
|
-
const instruction = await apiGet(
|
|
67
|
-
`/api/instructions/${encodeURIComponent(effectiveInstructionId)}`
|
|
68
|
-
);
|
|
69
|
-
const modified = appendToCLAUDEmd(process.cwd(), effectiveInstructionId, instruction.content);
|
|
70
|
-
if (!modified) {
|
|
71
|
-
this.log(`Already present: ${instruction.name} is already in CLAUDE.md (block id: ${effectiveInstructionId}).`);
|
|
72
|
-
} else {
|
|
73
|
-
this.log(`Accepted: added ${instruction.name} to CLAUDE.md. It will be active starting in your next session.`);
|
|
74
|
-
}
|
|
75
|
-
await apiPost(`/api/instruction-suggestions/${encodeURIComponent(args.id)}/events`, {
|
|
76
|
-
eventType: "accepted",
|
|
77
|
-
projectPath
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
export {
|
|
82
|
-
appendToCLAUDEmd,
|
|
83
|
-
SuggestionsAccept as default
|
|
84
|
-
};
|
|
85
|
-
//# sourceMappingURL=accept.js.map
|
|
4
|
+
`:n.length>0?`
|
|
5
|
+
`:""}
|
|
6
|
+
${e}
|
|
7
|
+
${a}
|
|
8
|
+
${s}
|
|
9
|
+
`;return o.writeFileSync(t,n+h,"utf8"),!0}c(U,"appendToCLAUDEmd");var m=class r extends u{static{c(this,"SuggestionsAccept")}static description="Accept a suggestion and append the instruction to CLAUDE.md";static examples=["<%= config.bin %> suggestions accept <id>"];static args={id:$.string({description:"Suggestion UUID from `suggestions list`",required:!0})};async run(){let{args:i}=await this.parse(r);this.requireAuth(),g(i.id,"suggestion ID");let a=l(process.cwd()),t=await d(`/api/instruction-suggestions/${encodeURIComponent(i.id)}`),e=t.instructionId;t.instructionScope==="public"&&(e=(await p(`/api/instructions/${encodeURIComponent(t.instructionId)}/promote-from-public`,{targetScope:"personal"})).instructionId);let s=await d(`/api/instructions/${encodeURIComponent(e)}`);U(process.cwd(),e,s.content)?this.log(`Accepted: added ${s.name} to CLAUDE.md. It will be active starting in your next session.`):this.log(`Already present: ${s.name} is already in CLAUDE.md (block id: ${e}).`),await p(`/api/instruction-suggestions/${encodeURIComponent(i.id)}/events`,{eventType:"accepted",projectPath:a})}};export{U as appendToCLAUDEmd,m as default};
|
|
@@ -1,45 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
normalizeProjectPath
|
|
3
|
-
} from "../../chunk-EKP32DLN.js";
|
|
4
|
-
import {
|
|
5
|
-
validateUuid
|
|
6
|
-
} from "../../chunk-7NYKWN7U.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
|
-
apiPost
|
|
16
|
-
} from "../../chunk-ZUJBM6HE.js";
|
|
17
|
-
import "../../chunk-W2YERO7E.js";
|
|
18
|
-
import "../../chunk-NSBPE2FW.js";
|
|
19
|
-
|
|
20
|
-
// src/commands/suggestions/dismiss.ts
|
|
21
|
-
import { Args } from "@oclif/core";
|
|
22
|
-
var SuggestionsDismiss = class _SuggestionsDismiss extends BaseCommand {
|
|
23
|
-
static description = "Dismiss a suggestion so it will not re-surface for 30 days";
|
|
24
|
-
static examples = [
|
|
25
|
-
"<%= config.bin %> suggestions dismiss <id>"
|
|
26
|
-
];
|
|
27
|
-
static args = {
|
|
28
|
-
id: Args.string({ description: "Suggestion UUID from `suggestions list`", required: true })
|
|
29
|
-
};
|
|
30
|
-
async run() {
|
|
31
|
-
const { args } = await this.parse(_SuggestionsDismiss);
|
|
32
|
-
this.requireAuth();
|
|
33
|
-
validateUuid(args.id, "suggestion ID");
|
|
34
|
-
const projectPath = normalizeProjectPath(process.cwd());
|
|
35
|
-
await apiPost(`/api/instruction-suggestions/${encodeURIComponent(args.id)}/events`, {
|
|
36
|
-
eventType: "dismissed",
|
|
37
|
-
projectPath
|
|
38
|
-
});
|
|
39
|
-
this.log("Dismissed. Won't re-surface for 30 days.");
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
export {
|
|
43
|
-
SuggestionsDismiss as default
|
|
44
|
-
};
|
|
45
|
-
//# sourceMappingURL=dismiss.js.map
|
|
1
|
+
import{a}from"../../chunk-MODXEGCU.js";import{a as r}from"../../chunk-WLVQJH4E.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{e as t}from"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import{a as e}from"../../chunk-ZLLER3HP.js";import{Args as m}from"@oclif/core";var s=class n extends o{static{e(this,"SuggestionsDismiss")}static description="Dismiss a suggestion so it will not re-surface for 30 days";static examples=["<%= config.bin %> suggestions dismiss <id>"];static args={id:m.string({description:"Suggestion UUID from `suggestions list`",required:!0})};async run(){let{args:i}=await this.parse(n);this.requireAuth(),r(i.id,"suggestion ID");let d=a(process.cwd());await t(`/api/instruction-suggestions/${encodeURIComponent(i.id)}/events`,{eventType:"dismissed",projectPath:d}),this.log("Dismissed. Won't re-surface for 30 days.")}};export{s as default};
|
|
@@ -1,61 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
normalizeProjectPath
|
|
3
|
-
} from "../../chunk-EKP32DLN.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
|
-
apiGet
|
|
13
|
-
} from "../../chunk-ZUJBM6HE.js";
|
|
14
|
-
import "../../chunk-W2YERO7E.js";
|
|
15
|
-
import "../../chunk-NSBPE2FW.js";
|
|
16
|
-
|
|
17
|
-
// src/commands/suggestions/list.ts
|
|
18
|
-
import { Flags } from "@oclif/core";
|
|
19
|
-
import { printTable } from "@oclif/table";
|
|
20
|
-
var SuggestionsList = class _SuggestionsList extends BaseCommand {
|
|
21
|
-
static description = "List instruction suggestions for a project";
|
|
22
|
-
static examples = [
|
|
23
|
-
"<%= config.bin %> suggestions list",
|
|
24
|
-
"<%= config.bin %> suggestions list --project /path/to/project"
|
|
25
|
-
];
|
|
26
|
-
static flags = {
|
|
27
|
-
project: Flags.string({
|
|
28
|
-
char: "p",
|
|
29
|
-
description: "Project path (defaults to current directory)"
|
|
30
|
-
})
|
|
31
|
-
};
|
|
32
|
-
async run() {
|
|
33
|
-
const { flags } = await this.parse(_SuggestionsList);
|
|
34
|
-
this.requireAuth();
|
|
35
|
-
const projectPath = normalizeProjectPath(flags.project ?? process.cwd());
|
|
36
|
-
const encoded = encodeURIComponent(projectPath);
|
|
37
|
-
const result = await apiGet(
|
|
38
|
-
`/api/instruction-suggestions?projectPath=${encoded}&limit=10`
|
|
39
|
-
);
|
|
40
|
-
if (result.suggestions.length === 0) {
|
|
41
|
-
this.log(
|
|
42
|
-
"No suggestions for this project. The cron runs daily at 04:30; trigger now with: rulemetric suggestions refresh"
|
|
43
|
-
);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
printTable({
|
|
47
|
-
data: result.suggestions.map((s) => ({
|
|
48
|
-
ID: s.id,
|
|
49
|
-
Scope: s.instructionScope,
|
|
50
|
-
Name: s.name,
|
|
51
|
-
Score: s.score.toFixed(2),
|
|
52
|
-
Reason: s.reason.length > 60 ? s.reason.slice(0, 59) + "\u2026" : s.reason
|
|
53
|
-
})),
|
|
54
|
-
columns: ["ID", "Scope", "Name", "Score", "Reason"]
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
export {
|
|
59
|
-
SuggestionsList as default
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=list.js.map
|
|
1
|
+
import{a as n}from"../../chunk-MODXEGCU.js";import{a as r}from"../../chunk-LQRYQE6Q.js";import"../../chunk-IZTIYR5Q.js";import"../../chunk-CRAKDQ4H.js";import"../../chunk-WPJ2BND4.js";import"../../chunk-3AV3GTMP.js";import{d as i}from"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import{a as s}from"../../chunk-ZLLER3HP.js";import{Flags as u}from"@oclif/core";import{printTable as m}from"@oclif/table";var e=class a extends r{static{s(this,"SuggestionsList")}static description="List instruction suggestions for a project";static examples=["<%= config.bin %> suggestions list","<%= config.bin %> suggestions list --project /path/to/project"];static flags={project:u.string({char:"p",description:"Project path (defaults to current directory)"})};async run(){let{flags:c}=await this.parse(a);this.requireAuth();let g=n(c.project??process.cwd()),p=encodeURIComponent(g),o=await i(`/api/instruction-suggestions?projectPath=${p}&limit=10`);if(o.suggestions.length===0){this.log("No suggestions for this project. The cron runs daily at 04:30; trigger now with: rulemetric suggestions refresh");return}m({data:o.suggestions.map(t=>({ID:t.id,Scope:t.instructionScope,Name:t.name,Score:t.score.toFixed(2),Reason:t.reason.length>60?t.reason.slice(0,59)+"\u2026":t.reason})),columns:["ID","Scope","Name","Score","Reason"]})}};export{e as default};
|
|
@@ -1,27 +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/suggestions/refresh.ts
|
|
13
|
-
var SuggestionsRefresh = class extends BaseCommand {
|
|
14
|
-
static description = "Information about refreshing instruction suggestions";
|
|
15
|
-
static examples = [
|
|
16
|
-
"<%= config.bin %> suggestions refresh"
|
|
17
|
-
];
|
|
18
|
-
async run() {
|
|
19
|
-
this.log(
|
|
20
|
-
"The suggestion cron runs daily at 04:30. To force a recompute now, restart the worker (`rulemetric service restart`) and the cron will fire on its registered schedule."
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
SuggestionsRefresh as default
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=refresh.js.map
|
|
1
|
+
import{a as t}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 r}from"../../chunk-ZLLER3HP.js";var e=class extends t{static{r(this,"SuggestionsRefresh")}static description="Information about refreshing instruction suggestions";static examples=["<%= config.bin %> suggestions refresh"];async run(){this.log("The suggestion cron runs daily at 04:30. To force a recompute now, restart the worker (`rulemetric service restart`) and the cron will fire on its registered schedule.")}};export{e as default};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import{a as o,b as k}from"./chunk-ZLLER3HP.js";import{existsSync as _}from"fs";import{join as i}from"path";import{homedir as l}from"os";var r=null;function m(){if(r)return!0;try{return r=k("better-sqlite3"),!0}catch{return!1}}o(m,"loadSqlite");var g="claude-sonnet-4-5",h={"claude-4.5-opus-high-thinking":"Opus 4.5 (Thinking)","claude-4-opus":"Opus 4","claude-4-sonnet-thinking":"Sonnet 4 (Thinking)","claude-4.5-sonnet-thinking":"Sonnet 4.5 (Thinking)","claude-4.6-sonnet":"Sonnet 4.6","composer-1":"Composer 1","gpt-5":"GPT-5","gpt-4.1":"GPT-4.1",default:"Auto (Sonnet est.)"};function v(){return process.platform==="darwin"?i(l(),"Library","Application Support","Cursor","User","globalStorage","state.vscdb"):process.platform==="win32"?i(l(),"AppData","Roaming","Cursor","User","globalStorage","state.vscdb"):i(l(),".config","Cursor","User","globalStorage","state.vscdb")}o(v,"getCursorDbPath");function b(t){return!t||t==="default"?g:t}o(b,"resolveModel");var y=`
|
|
2
|
+
SELECT
|
|
3
|
+
json_extract(value, '$.tokenCount.inputTokens') as input_tokens,
|
|
4
|
+
json_extract(value, '$.tokenCount.outputTokens') as output_tokens,
|
|
5
|
+
json_extract(value, '$.modelInfo.modelName') as model,
|
|
6
|
+
json_extract(value, '$.createdAt') as created_at,
|
|
7
|
+
json_extract(value, '$.conversationId') as conversation_id,
|
|
8
|
+
substr(json_extract(value, '$.text'), 1, 500) as user_text
|
|
9
|
+
FROM cursorDiskKV
|
|
10
|
+
WHERE key LIKE 'bubbleId:%'
|
|
11
|
+
AND json_extract(value, '$.tokenCount.inputTokens') > 0
|
|
12
|
+
ORDER BY json_extract(value, '$.createdAt') ASC
|
|
13
|
+
`;function S(t,n){return{async*parse(){if(!m()||!r)return;let s;try{s=new r(t.path,{readonly:!0})}catch{return}try{let f=s.prepare(y).all();for(let e of f){let a=e.input_tokens??0,u=e.output_tokens??0;if(a===0&&u===0)continue;let d=e.created_at??"",p=e.conversation_id??"unknown",c=`cursor:${p}:${d}:${a}:${u}`;if(n.has(c))continue;n.add(c);let C=b(e.model);yield{provider:"cursor",model:e.model??"default",inputTokens:a,outputTokens:u,cacheCreationInputTokens:0,cacheReadInputTokens:0,cachedInputTokens:0,reasoningTokens:0,costUSD:0,tools:[],bashCommands:[],timestamp:d,speed:"standard",deduplicationKey:c,userMessage:e.user_text??"",sessionId:p}}}finally{s.close()}}}}o(S,"createParser");var j={name:"cursor",displayName:"Cursor",modelDisplayName(t){return h[t]??t},toolDisplayName(t){return t},async discoverSessions(){if(!m())return[];let t=v();return _(t)?[{path:t,project:"cursor",provider:"cursor"}]:[]},createSessionParser(t,n){return S(t,n)}};export{j as cursor};
|
|
@@ -1,243 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
FrictionPanel
|
|
3
|
-
} from "../chunk-XC6M4CSW.js";
|
|
4
|
-
import {
|
|
5
|
-
InsightsPanel
|
|
6
|
-
} from "../chunk-4SCZK7AL.js";
|
|
7
|
-
import {
|
|
8
|
-
InstructionsPanel
|
|
9
|
-
} from "../chunk-BT6Z6545.js";
|
|
10
|
-
import {
|
|
11
|
-
OutcomesPanel
|
|
12
|
-
} from "../chunk-BRD5RUGM.js";
|
|
13
|
-
import {
|
|
14
|
-
Overview
|
|
15
|
-
} from "../chunk-IJGF2ETG.js";
|
|
16
|
-
import "../chunk-DQ3KELXD.js";
|
|
17
|
-
import {
|
|
18
|
-
loadApiInsights,
|
|
19
|
-
loadLinkedInstructions,
|
|
20
|
-
loadLocalStats
|
|
21
|
-
} from "../chunk-XUV6DDBF.js";
|
|
22
|
-
import {
|
|
23
|
-
LauncherOverlay
|
|
24
|
-
} from "../chunk-4XAWK6S2.js";
|
|
25
|
-
import "../chunk-5BAOGNUH.js";
|
|
26
|
-
import "../chunk-DNKSVWMD.js";
|
|
27
|
-
import {
|
|
28
|
-
DIM,
|
|
29
|
-
ORANGE,
|
|
30
|
-
PERIODS,
|
|
31
|
-
PERIOD_LABELS
|
|
32
|
-
} from "../chunk-QJQS6TUN.js";
|
|
33
|
-
import "../chunk-RH7NHVSK.js";
|
|
34
|
-
import "../chunk-EYPAAGN5.js";
|
|
35
|
-
import "../chunk-UKMLICWS.js";
|
|
36
|
-
import "../chunk-F5N6CLJJ.js";
|
|
37
|
-
import {
|
|
38
|
-
readActiveOrg
|
|
39
|
-
} from "../chunk-EKJ2CABV.js";
|
|
40
|
-
import "../chunk-ZUJBM6HE.js";
|
|
41
|
-
import "../chunk-W2YERO7E.js";
|
|
42
|
-
import "../chunk-NSBPE2FW.js";
|
|
43
|
-
|
|
44
|
-
// src/dashboard/Dashboard.tsx
|
|
45
|
-
import { useState, useEffect, useCallback, useRef } from "react";
|
|
46
|
-
import { render, Box, Text, useInput, useApp } from "ink";
|
|
47
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
48
|
-
var MIN_WIDE = 90;
|
|
49
|
-
function getLayout() {
|
|
50
|
-
const termWidth = process.stdout.columns || 80;
|
|
51
|
-
const dashWidth = Math.min(160, termWidth);
|
|
52
|
-
const wide = dashWidth >= MIN_WIDE;
|
|
53
|
-
const halfWidth = wide ? Math.floor(dashWidth / 2) : dashWidth;
|
|
54
|
-
const barWidth = Math.max(6, Math.min(10, halfWidth - 34));
|
|
55
|
-
return { dashWidth, wide, halfWidth, barWidth };
|
|
56
|
-
}
|
|
57
|
-
function PeriodTabs({ active, providerName }) {
|
|
58
|
-
return /* @__PURE__ */ jsxs(Box, { justifyContent: "space-between", paddingX: 1, children: [
|
|
59
|
-
/* @__PURE__ */ jsx(Box, { gap: 1, children: PERIODS.map((p) => /* @__PURE__ */ jsx(Text, { bold: active === p, color: active === p ? ORANGE : DIM, children: active === p ? `[ ${PERIOD_LABELS[p]} ]` : ` ${PERIOD_LABELS[p]} ` }, p)) }),
|
|
60
|
-
providerName && /* @__PURE__ */ jsx(Text, { color: ORANGE, bold: true, children: providerName })
|
|
61
|
-
] });
|
|
62
|
-
}
|
|
63
|
-
function StatusBar({ width, insightsFocused = false }) {
|
|
64
|
-
return /* @__PURE__ */ jsx(Box, { borderStyle: "round", borderColor: DIM, width, justifyContent: "center", paddingX: 1, children: /* @__PURE__ */ jsxs(Text, { children: [
|
|
65
|
-
/* @__PURE__ */ jsx(Text, { color: ORANGE, bold: true, children: "<" }),
|
|
66
|
-
/* @__PURE__ */ jsx(Text, { color: ORANGE, children: ">" }),
|
|
67
|
-
/* @__PURE__ */ jsx(Text, { dimColor: true, children: " switch " }),
|
|
68
|
-
/* @__PURE__ */ jsx(Text, { color: ORANGE, bold: true, children: "q" }),
|
|
69
|
-
/* @__PURE__ */ jsx(Text, { dimColor: true, children: " quit " }),
|
|
70
|
-
/* @__PURE__ */ jsx(Text, { color: ORANGE, bold: true, children: "s" }),
|
|
71
|
-
/* @__PURE__ */ jsxs(Text, { dimColor: true, children: [
|
|
72
|
-
" ",
|
|
73
|
-
insightsFocused ? "back" : "suggestions",
|
|
74
|
-
" "
|
|
75
|
-
] }),
|
|
76
|
-
/* @__PURE__ */ jsx(Text, { color: ORANGE, bold: true, children: "1" }),
|
|
77
|
-
/* @__PURE__ */ jsx(Text, { dimColor: true, children: "-" }),
|
|
78
|
-
/* @__PURE__ */ jsx(Text, { color: ORANGE, bold: true, children: "5" }),
|
|
79
|
-
/* @__PURE__ */ jsx(Text, { dimColor: true, children: " period " }),
|
|
80
|
-
/* @__PURE__ */ jsx(Text, { color: ORANGE, bold: true, children: "r" }),
|
|
81
|
-
/* @__PURE__ */ jsx(Text, { dimColor: true, children: " refresh " }),
|
|
82
|
-
/* @__PURE__ */ jsx(Text, { color: ORANGE, bold: true, children: "n" }),
|
|
83
|
-
/* @__PURE__ */ jsx(Text, { dimColor: true, children: " new session " }),
|
|
84
|
-
/* @__PURE__ */ jsx(Text, { color: ORANGE, bold: true, children: "l" }),
|
|
85
|
-
/* @__PURE__ */ jsx(Text, { dimColor: true, children: " launcher" })
|
|
86
|
-
] }) });
|
|
87
|
-
}
|
|
88
|
-
function Row({ wide, width, children }) {
|
|
89
|
-
if (wide) return /* @__PURE__ */ jsx(Box, { width, children });
|
|
90
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
91
|
-
}
|
|
92
|
-
function InteractiveDashboard({ initialLocal, initialApi, initialInstructions, initialPeriod, initialLauncherFocused = false }) {
|
|
93
|
-
const { exit } = useApp();
|
|
94
|
-
const [period, setPeriod] = useState(initialPeriod);
|
|
95
|
-
const [local, setLocal] = useState(initialLocal);
|
|
96
|
-
const [api, setApi] = useState(initialApi);
|
|
97
|
-
const [instructions, setInstructions] = useState(initialInstructions);
|
|
98
|
-
const [loading, setLoading] = useState(false);
|
|
99
|
-
const [insightsFocused, setInsightsFocused] = useState(false);
|
|
100
|
-
const [launcherFocused, setLauncherFocused] = useState(initialLauncherFocused);
|
|
101
|
-
const activeOrgSlug = readActiveOrg()?.orgSlug ?? null;
|
|
102
|
-
const debounceRef = useRef(null);
|
|
103
|
-
const layout = getLayout();
|
|
104
|
-
const reload = useCallback(async () => {
|
|
105
|
-
setLoading(true);
|
|
106
|
-
const [newLocal, newApi, newInstructions] = await Promise.all([
|
|
107
|
-
loadLocalStats(),
|
|
108
|
-
loadApiInsights(),
|
|
109
|
-
loadLinkedInstructions()
|
|
110
|
-
]);
|
|
111
|
-
setLocal(newLocal);
|
|
112
|
-
setApi(newApi);
|
|
113
|
-
setInstructions(newInstructions);
|
|
114
|
-
setLoading(false);
|
|
115
|
-
}, []);
|
|
116
|
-
useEffect(() => {
|
|
117
|
-
const id = setInterval(reload, 3e4);
|
|
118
|
-
return () => clearInterval(id);
|
|
119
|
-
}, [reload]);
|
|
120
|
-
const switchPeriod = useCallback((np) => {
|
|
121
|
-
if (np === period) return;
|
|
122
|
-
setPeriod(np);
|
|
123
|
-
if (debounceRef.current) clearTimeout(debounceRef.current);
|
|
124
|
-
debounceRef.current = setTimeout(reload, 300);
|
|
125
|
-
}, [period, reload]);
|
|
126
|
-
useInput((input, key) => {
|
|
127
|
-
if (launcherFocused) return;
|
|
128
|
-
if (input === "q") {
|
|
129
|
-
if (insightsFocused) {
|
|
130
|
-
setInsightsFocused(false);
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
exit();
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
if (input === "s") {
|
|
137
|
-
setInsightsFocused((f) => !f);
|
|
138
|
-
return;
|
|
139
|
-
}
|
|
140
|
-
if (key.escape && insightsFocused) {
|
|
141
|
-
setInsightsFocused(false);
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
if (input === "l" && !insightsFocused) {
|
|
145
|
-
setLauncherFocused(true);
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
if (insightsFocused) return;
|
|
149
|
-
if (input === "r") {
|
|
150
|
-
reload();
|
|
151
|
-
return;
|
|
152
|
-
}
|
|
153
|
-
if (input === "n") {
|
|
154
|
-
import("../dist-UNYP5PJR.js").then(({ getLauncher }) => {
|
|
155
|
-
getLauncher("claude_code").launch({ projectPath: process.cwd(), mode: "interactive" });
|
|
156
|
-
});
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
const idx = PERIODS.indexOf(period);
|
|
160
|
-
if (key.leftArrow) switchPeriod(PERIODS[(idx - 1 + PERIODS.length) % PERIODS.length]);
|
|
161
|
-
else if (key.rightArrow || key.tab) switchPeriod(PERIODS[(idx + 1) % PERIODS.length]);
|
|
162
|
-
else if (input === "1") switchPeriod("today");
|
|
163
|
-
else if (input === "2") switchPeriod("week");
|
|
164
|
-
else if (input === "3") switchPeriod("30days");
|
|
165
|
-
else if (input === "4") switchPeriod("month");
|
|
166
|
-
else if (input === "5") switchPeriod("all");
|
|
167
|
-
});
|
|
168
|
-
const { dashWidth, wide, halfWidth, barWidth } = layout;
|
|
169
|
-
const pw = wide ? halfWidth : dashWidth;
|
|
170
|
-
if (loading) {
|
|
171
|
-
return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", width: dashWidth, children: [
|
|
172
|
-
/* @__PURE__ */ jsx(PeriodTabs, { active: period }),
|
|
173
|
-
/* @__PURE__ */ jsx(Box, { borderStyle: "round", borderColor: ORANGE, paddingX: 1, width: dashWidth, children: /* @__PURE__ */ jsxs(Text, { dimColor: true, children: [
|
|
174
|
-
"Loading ",
|
|
175
|
-
PERIOD_LABELS[period],
|
|
176
|
-
"..."
|
|
177
|
-
] }) }),
|
|
178
|
-
/* @__PURE__ */ jsx(StatusBar, { width: dashWidth })
|
|
179
|
-
] });
|
|
180
|
-
}
|
|
181
|
-
if (launcherFocused) {
|
|
182
|
-
return /* @__PURE__ */ jsx(Box, { flexDirection: "column", width: dashWidth, children: /* @__PURE__ */ jsx(
|
|
183
|
-
LauncherOverlay,
|
|
184
|
-
{
|
|
185
|
-
onClose: () => setLauncherFocused(false),
|
|
186
|
-
activeOrg: activeOrgSlug,
|
|
187
|
-
defaultProjectPath: process.cwd(),
|
|
188
|
-
width: dashWidth
|
|
189
|
-
}
|
|
190
|
-
) });
|
|
191
|
-
}
|
|
192
|
-
return /* @__PURE__ */ jsxs(Box, { flexDirection: "column", width: dashWidth, children: [
|
|
193
|
-
/* @__PURE__ */ jsx(PeriodTabs, { active: period }),
|
|
194
|
-
/* @__PURE__ */ jsx(Overview, { local, api, label: PERIOD_LABELS[period], width: dashWidth }),
|
|
195
|
-
/* @__PURE__ */ jsxs(Row, { wide, width: dashWidth, children: [
|
|
196
|
-
/* @__PURE__ */ jsx(OutcomesPanel, { api, width: pw, barWidth }),
|
|
197
|
-
/* @__PURE__ */ jsx(FrictionPanel, { api, width: pw, barWidth })
|
|
198
|
-
] }),
|
|
199
|
-
/* @__PURE__ */ jsx(InstructionsPanel, { instructions, width: dashWidth, barWidth }),
|
|
200
|
-
/* @__PURE__ */ jsx(InsightsPanel, { api, width: dashWidth, focused: insightsFocused }),
|
|
201
|
-
/* @__PURE__ */ jsx(StatusBar, { width: dashWidth, insightsFocused })
|
|
202
|
-
] });
|
|
203
|
-
}
|
|
204
|
-
async function renderDashboard(period = "week", options = {}) {
|
|
205
|
-
const [local, api, instructions] = await Promise.all([
|
|
206
|
-
loadLocalStats(),
|
|
207
|
-
loadApiInsights(),
|
|
208
|
-
loadLinkedInstructions()
|
|
209
|
-
]);
|
|
210
|
-
const isTTY = process.stdin.isTTY && process.stdout.isTTY;
|
|
211
|
-
if (isTTY) {
|
|
212
|
-
const { waitUntilExit } = render(
|
|
213
|
-
/* @__PURE__ */ jsx(
|
|
214
|
-
InteractiveDashboard,
|
|
215
|
-
{
|
|
216
|
-
initialLocal: local,
|
|
217
|
-
initialApi: api,
|
|
218
|
-
initialInstructions: instructions,
|
|
219
|
-
initialPeriod: period,
|
|
220
|
-
initialLauncherFocused: options.openLauncher ?? false
|
|
221
|
-
}
|
|
222
|
-
)
|
|
223
|
-
);
|
|
224
|
-
await waitUntilExit();
|
|
225
|
-
} else {
|
|
226
|
-
const layout = getLayout();
|
|
227
|
-
const { unmount } = render(
|
|
228
|
-
/* @__PURE__ */ jsxs(Box, { flexDirection: "column", width: layout.dashWidth, children: [
|
|
229
|
-
/* @__PURE__ */ jsx(Overview, { local, api, label: PERIOD_LABELS[period], width: layout.dashWidth }),
|
|
230
|
-
/* @__PURE__ */ jsx(OutcomesPanel, { api, width: layout.dashWidth, barWidth: layout.barWidth }),
|
|
231
|
-
/* @__PURE__ */ jsx(FrictionPanel, { api, width: layout.dashWidth, barWidth: layout.barWidth }),
|
|
232
|
-
/* @__PURE__ */ jsx(InstructionsPanel, { instructions, width: layout.dashWidth, barWidth: layout.barWidth }),
|
|
233
|
-
/* @__PURE__ */ jsx(InsightsPanel, { api, width: layout.dashWidth })
|
|
234
|
-
] }),
|
|
235
|
-
{ patchConsole: false }
|
|
236
|
-
);
|
|
237
|
-
unmount();
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
export {
|
|
241
|
-
renderDashboard
|
|
242
|
-
};
|
|
243
|
-
//# sourceMappingURL=Dashboard.js.map
|
|
1
|
+
import{a as F}from"../chunk-DVN7GFJG.js";import{a as M}from"../chunk-FEHM5OKW.js";import{a as E}from"../chunk-GBMF3TP6.js";import{a as O}from"../chunk-WSCK4WNK.js";import{a as D}from"../chunk-4Z5ECCJE.js";import"../chunk-ARNZQBMX.js";import{a as B,b as S,c as R}from"../chunk-T3W5N3BP.js";import{a as $}from"../chunk-VAFAH6QL.js";import"../chunk-NBTC5FNV.js";import"../chunk-TU2AR6XO.js";import{a as u,b as T,d as a,e as v}from"../chunk-NJ5UED3H.js";import"../chunk-ZXF5NE54.js";import"../chunk-VMWY7KHH.js";import"../chunk-SBILN45P.js";import"../chunk-7DFNBRLY.js";import{a as X}from"../chunk-3AV3GTMP.js";import"../chunk-TIQ7DQ3M.js";import"../chunk-M6AJDVCL.js";import{a as m}from"../chunk-ZLLER3HP.js";import{useState as w,useEffect as nt,useCallback as G,useRef as st}from"react";import{render as U,Box as c,Text as o,useInput as at,useApp as lt}from"ink";import{Fragment as ht,jsx as t,jsxs as h}from"react/jsx-runtime";var dt=90;function J(){let s=process.stdout.columns||80,n=Math.min(160,s),i=n>=dt,d=i?Math.floor(n/2):n,b=Math.max(6,Math.min(10,d-34));return{dashWidth:n,wide:i,halfWidth:d,barWidth:b}}m(J,"getLayout");function z({active:s,providerName:n}){return h(c,{justifyContent:"space-between",paddingX:1,children:[t(c,{gap:1,children:u.map(i=>t(o,{bold:s===i,color:s===i?a:v,children:s===i?`[ ${T[i]} ]`:` ${T[i]} `},i))}),n&&t(o,{color:a,bold:!0,children:n})]})}m(z,"PeriodTabs");function H({width:s,insightsFocused:n=!1}){return t(c,{borderStyle:"round",borderColor:v,width:s,justifyContent:"center",paddingX:1,children:h(o,{children:[t(o,{color:a,bold:!0,children:"<"}),t(o,{color:a,children:">"}),t(o,{dimColor:!0,children:" switch "}),t(o,{color:a,bold:!0,children:"q"}),t(o,{dimColor:!0,children:" quit "}),t(o,{color:a,bold:!0,children:"s"}),h(o,{dimColor:!0,children:[" ",n?"back":"suggestions"," "]}),t(o,{color:a,bold:!0,children:"1"}),t(o,{dimColor:!0,children:"-"}),t(o,{color:a,bold:!0,children:"5"}),t(o,{dimColor:!0,children:" period "}),t(o,{color:a,bold:!0,children:"r"}),t(o,{dimColor:!0,children:" refresh "}),t(o,{color:a,bold:!0,children:"n"}),t(o,{dimColor:!0,children:" new session "}),t(o,{color:a,bold:!0,children:"l"}),t(o,{dimColor:!0,children:" launcher"})]})})}m(H,"StatusBar");function ct({wide:s,width:n,children:i}){return s?t(c,{width:n,children:i}):t(ht,{children:i})}m(ct,"Row");function ut({initialLocal:s,initialApi:n,initialInstructions:i,initialPeriod:d,initialLauncherFocused:b=!1}){let{exit:j}=lt(),[e,L]=w(d),[K,Q]=w(s),[W,V]=w(n),[Z,tt]=w(i),[ot,k]=w(!1),[p,I]=w(!1),[Y,_]=w(b),et=X()?.orgSlug??null,y=st(null),it=J(),g=G(async()=>{k(!0);let[r,x,P]=await Promise.all([B(),S(),R()]);Q(r),V(x),tt(P),k(!1)},[]);nt(()=>{let r=setInterval(g,3e4);return()=>clearInterval(r)},[g]);let f=G(r=>{r!==e&&(L(r),y.current&&clearTimeout(y.current),y.current=setTimeout(g,300))},[e,g]);at((r,x)=>{if(Y)return;if(r==="q"){if(p){I(!1);return}j();return}if(r==="s"){I(A=>!A);return}if(x.escape&&p){I(!1);return}if(r==="l"&&!p){_(!0);return}if(p)return;if(r==="r"){g();return}if(r==="n"){import("../dist-FAVALJ5C.js").then(({getLauncher:A})=>{A("claude_code").launch({projectPath:process.cwd(),mode:"interactive"})});return}let P=u.indexOf(e);x.leftArrow?f(u[(P-1+u.length)%u.length]):x.rightArrow||x.tab?f(u[(P+1)%u.length]):r==="1"?f("today"):r==="2"?f("week"):r==="3"?f("30days"):r==="4"?f("month"):r==="5"&&f("all")});let{dashWidth:l,wide:q,halfWidth:rt,barWidth:C}=it,N=q?rt:l;return ot?h(c,{flexDirection:"column",width:l,children:[t(z,{active:e}),t(c,{borderStyle:"round",borderColor:a,paddingX:1,width:l,children:h(o,{dimColor:!0,children:["Loading ",T[e],"..."]})}),t(H,{width:l})]}):Y?t(c,{flexDirection:"column",width:l,children:t($,{onClose:()=>_(!1),activeOrg:et,defaultProjectPath:process.cwd(),width:l})}):h(c,{flexDirection:"column",width:l,children:[t(z,{active:e}),t(D,{local:K,api:W,label:T[e],width:l}),h(ct,{wide:q,width:l,children:[t(O,{api:W,width:N,barWidth:C}),t(F,{api:W,width:N,barWidth:C})]}),t(E,{instructions:Z,width:l,barWidth:C}),t(M,{api:W,width:l,focused:p}),t(H,{width:l,insightsFocused:p})]})}m(ut,"InteractiveDashboard");async function yt(s="week",n={}){let[i,d,b]=await Promise.all([B(),S(),R()]);if(process.stdin.isTTY&&process.stdout.isTTY){let{waitUntilExit:e}=U(t(ut,{initialLocal:i,initialApi:d,initialInstructions:b,initialPeriod:s,initialLauncherFocused:n.openLauncher??!1}));await e()}else{let e=J(),{unmount:L}=U(h(c,{flexDirection:"column",width:e.dashWidth,children:[t(D,{local:i,api:d,label:T[s],width:e.dashWidth}),t(O,{api:d,width:e.dashWidth,barWidth:e.barWidth}),t(F,{api:d,width:e.dashWidth,barWidth:e.barWidth}),t(E,{instructions:b,width:e.dashWidth,barWidth:e.barWidth}),t(M,{api:d,width:e.dashWidth})]}),{patchConsole:!1});L()}}m(yt,"renderDashboard");export{yt as renderDashboard};
|
package/dist/dashboard/data.js
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
loadApiInsights,
|
|
3
|
-
loadLinkedInstructions,
|
|
4
|
-
loadLocalStats
|
|
5
|
-
} from "../chunk-XUV6DDBF.js";
|
|
6
|
-
import "../chunk-F5N6CLJJ.js";
|
|
7
|
-
import "../chunk-ZUJBM6HE.js";
|
|
8
|
-
import "../chunk-W2YERO7E.js";
|
|
9
|
-
import "../chunk-NSBPE2FW.js";
|
|
10
|
-
export {
|
|
11
|
-
loadApiInsights,
|
|
12
|
-
loadLinkedInstructions,
|
|
13
|
-
loadLocalStats
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=data.js.map
|
|
1
|
+
import{a,b,c}from"../chunk-T3W5N3BP.js";import"../chunk-7DFNBRLY.js";import"../chunk-TIQ7DQ3M.js";import"../chunk-M6AJDVCL.js";import"../chunk-ZLLER3HP.js";export{b as loadApiInsights,c as loadLinkedInstructions,a as loadLocalStats};
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
ActiveJobsList
|
|
3
|
-
} from "../../chunk-5BAOGNUH.js";
|
|
4
|
-
import "../../chunk-QJQS6TUN.js";
|
|
5
|
-
import "../../chunk-RH7NHVSK.js";
|
|
6
|
-
import "../../chunk-NSBPE2FW.js";
|
|
7
|
-
export {
|
|
8
|
-
ActiveJobsList
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=ActiveJobsList.js.map
|
|
1
|
+
import{a}from"../../chunk-NBTC5FNV.js";import"../../chunk-NJ5UED3H.js";import"../../chunk-ZXF5NE54.js";import"../../chunk-ZLLER3HP.js";export{a as ActiveJobsList};
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
LauncherOverlay
|
|
3
|
-
} from "../../chunk-4XAWK6S2.js";
|
|
4
|
-
import "../../chunk-5BAOGNUH.js";
|
|
5
|
-
import "../../chunk-DNKSVWMD.js";
|
|
6
|
-
import "../../chunk-QJQS6TUN.js";
|
|
7
|
-
import "../../chunk-RH7NHVSK.js";
|
|
8
|
-
import "../../chunk-EYPAAGN5.js";
|
|
9
|
-
import "../../chunk-UKMLICWS.js";
|
|
10
|
-
import "../../chunk-ZUJBM6HE.js";
|
|
11
|
-
import "../../chunk-W2YERO7E.js";
|
|
12
|
-
import "../../chunk-NSBPE2FW.js";
|
|
13
|
-
export {
|
|
14
|
-
LauncherOverlay
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=LauncherOverlay.js.map
|
|
1
|
+
import{a}from"../../chunk-VAFAH6QL.js";import"../../chunk-NBTC5FNV.js";import"../../chunk-TU2AR6XO.js";import"../../chunk-NJ5UED3H.js";import"../../chunk-ZXF5NE54.js";import"../../chunk-VMWY7KHH.js";import"../../chunk-SBILN45P.js";import"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import"../../chunk-ZLLER3HP.js";export{a as LauncherOverlay};
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
NewLaunchForm
|
|
3
|
-
} from "../../chunk-DNKSVWMD.js";
|
|
4
|
-
import "../../chunk-QJQS6TUN.js";
|
|
5
|
-
import "../../chunk-RH7NHVSK.js";
|
|
6
|
-
import "../../chunk-NSBPE2FW.js";
|
|
7
|
-
export {
|
|
8
|
-
NewLaunchForm
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=NewLaunchForm.js.map
|
|
1
|
+
import{a}from"../../chunk-TU2AR6XO.js";import"../../chunk-NJ5UED3H.js";import"../../chunk-ZXF5NE54.js";import"../../chunk-ZLLER3HP.js";export{a as NewLaunchForm};
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
cancelLaunchJob,
|
|
3
|
-
createLaunchJob,
|
|
4
|
-
fetchLaunchJobs,
|
|
5
|
-
listLaunchers
|
|
6
|
-
} from "../../chunk-UKMLICWS.js";
|
|
7
|
-
import "../../chunk-ZUJBM6HE.js";
|
|
8
|
-
import "../../chunk-W2YERO7E.js";
|
|
9
|
-
import "../../chunk-NSBPE2FW.js";
|
|
10
|
-
export {
|
|
11
|
-
cancelLaunchJob,
|
|
12
|
-
createLaunchJob,
|
|
13
|
-
fetchLaunchJobs,
|
|
14
|
-
listLaunchers
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=api.js.map
|
|
1
|
+
import{a,b,c,d}from"../../chunk-SBILN45P.js";import"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import"../../chunk-ZLLER3HP.js";export{c as cancelLaunchJob,b as createLaunchJob,a as fetchLaunchJobs,d as listLaunchers};
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
TOOL_LABELS,
|
|
3
|
-
toolLabel
|
|
4
|
-
} from "../../chunk-RH7NHVSK.js";
|
|
5
|
-
import "../../chunk-NSBPE2FW.js";
|
|
6
|
-
export {
|
|
7
|
-
TOOL_LABELS,
|
|
8
|
-
toolLabel
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=tool-labels.js.map
|
|
1
|
+
import{a,b}from"../../chunk-ZXF5NE54.js";import"../../chunk-ZLLER3HP.js";export{a as TOOL_LABELS,b as toolLabel};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
useLaunchJobs
|
|
3
|
-
} from "../../chunk-EYPAAGN5.js";
|
|
4
|
-
import "../../chunk-UKMLICWS.js";
|
|
5
|
-
import "../../chunk-ZUJBM6HE.js";
|
|
6
|
-
import "../../chunk-W2YERO7E.js";
|
|
7
|
-
import "../../chunk-NSBPE2FW.js";
|
|
8
|
-
export {
|
|
9
|
-
useLaunchJobs
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=useLaunchJobs.js.map
|
|
1
|
+
import{a}from"../../chunk-VMWY7KHH.js";import"../../chunk-SBILN45P.js";import"../../chunk-TIQ7DQ3M.js";import"../../chunk-M6AJDVCL.js";import"../../chunk-ZLLER3HP.js";export{a as useLaunchJobs};
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
FrictionPanel
|
|
3
|
-
} from "../../chunk-XC6M4CSW.js";
|
|
4
|
-
import "../../chunk-DQ3KELXD.js";
|
|
5
|
-
import "../../chunk-QJQS6TUN.js";
|
|
6
|
-
import "../../chunk-NSBPE2FW.js";
|
|
7
|
-
export {
|
|
8
|
-
FrictionPanel
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=friction.js.map
|
|
1
|
+
import{a}from"../../chunk-DVN7GFJG.js";import"../../chunk-ARNZQBMX.js";import"../../chunk-NJ5UED3H.js";import"../../chunk-ZLLER3HP.js";export{a as FrictionPanel};
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
InsightsPanel
|
|
3
|
-
} from "../../chunk-4SCZK7AL.js";
|
|
4
|
-
import "../../chunk-DQ3KELXD.js";
|
|
5
|
-
import "../../chunk-QJQS6TUN.js";
|
|
6
|
-
import "../../chunk-NSBPE2FW.js";
|
|
7
|
-
export {
|
|
8
|
-
InsightsPanel
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=insights.js.map
|
|
1
|
+
import{a}from"../../chunk-FEHM5OKW.js";import"../../chunk-ARNZQBMX.js";import"../../chunk-NJ5UED3H.js";import"../../chunk-ZLLER3HP.js";export{a as InsightsPanel};
|