@rulemetric/cli 0.7.44 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/README.md +34 -0
  2. package/dist/base-command.js +1 -1
  3. package/dist/{chunk-QFVGUZDO.js → chunk-4PWGV2OW.js} +9 -8
  4. package/dist/chunk-7QQSYEPT.js +1 -0
  5. package/dist/chunk-A4FYFRN7.js +1 -0
  6. package/dist/chunk-BAVLNWO4.js +1 -0
  7. package/dist/{chunk-AF3ITIZ4.js → chunk-CF7FUQQ4.js} +1 -1
  8. package/dist/{chunk-FFI3C3B3.js → chunk-EVAQBD5V.js} +1 -1
  9. package/dist/chunk-FAZMKMTC.js +45 -0
  10. package/dist/{chunk-2DXBC2JQ.js → chunk-LWI5K6T4.js} +1 -1
  11. package/dist/{chunk-ATA4J4ZG.js → chunk-MBHDTW3M.js} +1 -1
  12. package/dist/chunk-UKN2YVY4.js +17 -0
  13. package/dist/chunk-XJYNMJHH.js +9 -0
  14. package/dist/chunk-ZE2PGHJQ.js +13 -0
  15. package/dist/commands/antigravity/backfill.js +1 -1
  16. package/dist/commands/auth/create-key.js +1 -1
  17. package/dist/commands/auth/login.js +1 -1
  18. package/dist/commands/auth/logout.js +1 -1
  19. package/dist/commands/auth/revoke-key.js +1 -1
  20. package/dist/commands/auth/signup.js +1 -1
  21. package/dist/commands/auth/status.js +1 -1
  22. package/dist/commands/capture/scope.js +1 -1
  23. package/dist/commands/catalog/index.js +1 -1
  24. package/dist/commands/catalog/recommend.js +1 -1
  25. package/dist/commands/convert.js +1 -1
  26. package/dist/commands/converters.js +1 -1
  27. package/dist/commands/crons/list.js +1 -1
  28. package/dist/commands/crons/run.js +1 -1
  29. package/dist/commands/dashboard.js +1 -1
  30. package/dist/commands/diagnostics.js +1 -1
  31. package/dist/commands/eval-targets/create.js +1 -1
  32. package/dist/commands/eval-targets/list.js +1 -1
  33. package/dist/commands/evals/agent.js +1 -1
  34. package/dist/commands/evals/auto-run.js +1 -1
  35. package/dist/commands/evals/benchmark.js +1 -1
  36. package/dist/commands/evals/compare.js +1 -1
  37. package/dist/commands/evals/create.js +1 -1
  38. package/dist/commands/evals/optimize-description.js +1 -1
  39. package/dist/commands/evals/optimize.js +1 -1
  40. package/dist/commands/evals/refine-cases.js +1 -1
  41. package/dist/commands/evals/run.js +1 -1
  42. package/dist/commands/evals/validate-judge.js +1 -1
  43. package/dist/commands/experiments/list.js +1 -0
  44. package/dist/commands/gateway/ensure.js +1 -1
  45. package/dist/commands/hooks/install.js +1 -1
  46. package/dist/commands/hooks/run.js +1 -1
  47. package/dist/commands/hooks/uninstall.js +1 -1
  48. package/dist/commands/import.js +1 -1
  49. package/dist/commands/instructions/create.js +1 -1
  50. package/dist/commands/instructions/delete.js +1 -1
  51. package/dist/commands/instructions/fork.js +1 -1
  52. package/dist/commands/instructions/get.js +1 -1
  53. package/dist/commands/instructions/list.js +1 -1
  54. package/dist/commands/instructions/promote.js +1 -1
  55. package/dist/commands/instructions/pull.js +1 -1
  56. package/dist/commands/instructions/restore.js +1 -1
  57. package/dist/commands/instructions/retract.js +1 -0
  58. package/dist/commands/instructions/upstream.js +1 -1
  59. package/dist/commands/instructions/versions.js +1 -1
  60. package/dist/commands/launcher.js +1 -1
  61. package/dist/commands/local/down.js +1 -1
  62. package/dist/commands/local/up.js +1 -1
  63. package/dist/commands/org/current.js +1 -1
  64. package/dist/commands/org/list.js +1 -1
  65. package/dist/commands/org/switch.js +1 -1
  66. package/dist/commands/packs/add-instruction.js +1 -1
  67. package/dist/commands/packs/apply.js +1 -1
  68. package/dist/commands/packs/create.js +1 -1
  69. package/dist/commands/packs/fork.js +1 -1
  70. package/dist/commands/packs/get.js +1 -1
  71. package/dist/commands/packs/list.js +1 -1
  72. package/dist/commands/packs/remove-instruction.js +1 -1
  73. package/dist/commands/proxy/env.js +1 -1
  74. package/dist/commands/proxy/logs.js +1 -1
  75. package/dist/commands/proxy/restart.js +1 -1
  76. package/dist/commands/proxy/setup.js +1 -1
  77. package/dist/commands/proxy/start.js +1 -1
  78. package/dist/commands/proxy/status.js +1 -1
  79. package/dist/commands/proxy/stop.js +1 -1
  80. package/dist/commands/research/backfill.js +1 -1
  81. package/dist/commands/research/tail-transcript.js +1 -1
  82. package/dist/commands/service/install.js +1 -1
  83. package/dist/commands/service/status.js +1 -1
  84. package/dist/commands/service/uninstall.js +1 -1
  85. package/dist/commands/sessions/analyze.js +1 -1
  86. package/dist/commands/sessions/delete.js +1 -1
  87. package/dist/commands/sessions/end.js +1 -1
  88. package/dist/commands/sessions/import.js +1 -1
  89. package/dist/commands/sessions/list.js +1 -1
  90. package/dist/commands/sessions/start.js +1 -1
  91. package/dist/commands/setup.js +1 -1
  92. package/dist/commands/skills/export-approved.js +1 -1
  93. package/dist/commands/skills/install.js +1 -1
  94. package/dist/commands/skills/list.js +1 -1
  95. package/dist/commands/skills/publish.js +1 -1
  96. package/dist/commands/skills/search.js +1 -1
  97. package/dist/commands/skills/update.js +1 -1
  98. package/dist/commands/suggestions/accept.js +1 -1
  99. package/dist/commands/suggestions/dismiss.js +1 -1
  100. package/dist/commands/suggestions/list.js +1 -1
  101. package/dist/commands/suggestions/refresh.js +1 -1
  102. package/dist/dashboard/Dashboard.js +1 -1
  103. package/dist/dashboard/launcher/LauncherOverlay.js +1 -1
  104. package/dist/lib/agent-loop.js +1 -1
  105. package/dist/lib/handlers/cron-instruction-evolution.js +1 -1
  106. package/dist/lib/handlers/cron-suggest-instructions.js +1 -1
  107. package/dist/lib/handlers/process-changelog.js +1 -1
  108. package/dist/lib/handlers/process-insights.js +1 -1
  109. package/dist/lib/insights-prompts.js +1 -1
  110. package/dist/lib/instruction-proposer.js +1 -1
  111. package/dist/lib/manual-tasks.js +1 -1
  112. package/dist/lib/retraction.js +1 -0
  113. package/oclif.manifest.json +434 -300
  114. package/package.json +9 -6
  115. package/dist/chunk-2RCWYVEU.js +0 -1
  116. package/dist/chunk-5R5RGKOW.js +0 -38
  117. package/dist/chunk-I7QSMY3Z.js +0 -1
  118. package/dist/chunk-O7PSLZO6.js +0 -15
  119. package/dist/chunk-RMDLJN4L.js +0 -8
  120. package/dist/chunk-V2IEFHT7.js +0 -1
@@ -1895,6 +1895,56 @@
1895
1895
  "validate-judge.js"
1896
1896
  ]
1897
1897
  },
1898
+ "experiments:list": {
1899
+ "aliases": [],
1900
+ "args": {},
1901
+ "description": "Show instructions under randomised test and what each sample supports",
1902
+ "examples": [
1903
+ "<%= config.bin %> experiments list",
1904
+ "<%= config.bin %> experiments list --project /path/to/project",
1905
+ "<%= config.bin %> experiments list --all"
1906
+ ],
1907
+ "flags": {
1908
+ "api-url": {
1909
+ "description": "Override API base URL",
1910
+ "env": "RULEMETRIC_API_URL",
1911
+ "hidden": true,
1912
+ "name": "api-url",
1913
+ "hasDynamicHelp": false,
1914
+ "multiple": false,
1915
+ "type": "option"
1916
+ },
1917
+ "project": {
1918
+ "char": "p",
1919
+ "description": "Project path (defaults to current directory)",
1920
+ "name": "project",
1921
+ "hasDynamicHelp": false,
1922
+ "multiple": false,
1923
+ "type": "option"
1924
+ },
1925
+ "all": {
1926
+ "description": "Every project, not just this one",
1927
+ "name": "all",
1928
+ "allowNo": false,
1929
+ "type": "boolean"
1930
+ }
1931
+ },
1932
+ "hasDynamicHelp": false,
1933
+ "hiddenAliases": [],
1934
+ "id": "experiments:list",
1935
+ "pluginAlias": "@rulemetric/cli",
1936
+ "pluginName": "@rulemetric/cli",
1937
+ "pluginType": "core",
1938
+ "strict": true,
1939
+ "enableJsonFlag": false,
1940
+ "isESM": true,
1941
+ "relativePath": [
1942
+ "dist",
1943
+ "commands",
1944
+ "experiments",
1945
+ "list.js"
1946
+ ]
1947
+ },
1898
1948
  "gateway:ensure": {
1899
1949
  "aliases": [],
1900
1950
  "args": {},
@@ -2557,6 +2607,90 @@
2557
2607
  "restore.js"
2558
2608
  ]
2559
2609
  },
2610
+ "instructions:retract": {
2611
+ "aliases": [],
2612
+ "args": {
2613
+ "id": {
2614
+ "description": "Instruction ID (omit when using --kind/--target)",
2615
+ "name": "id",
2616
+ "required": false
2617
+ }
2618
+ },
2619
+ "description": "Remove an instruction, skill, hook or MCP server from disk (dry-run by default)",
2620
+ "examples": [
2621
+ "<%= config.bin %> instructions retract <instruction-id>",
2622
+ "<%= config.bin %> instructions retract <instruction-id> --apply",
2623
+ "<%= config.bin %> instructions retract --kind skill --target agent-browser",
2624
+ "<%= config.bin %> instructions retract --kind mcp --target supabase --apply",
2625
+ "<%= config.bin %> instructions retract --kind hook --target \"doomed-tool\" --apply"
2626
+ ],
2627
+ "flags": {
2628
+ "api-url": {
2629
+ "description": "Override API base URL",
2630
+ "env": "RULEMETRIC_API_URL",
2631
+ "hidden": true,
2632
+ "name": "api-url",
2633
+ "hasDynamicHelp": false,
2634
+ "multiple": false,
2635
+ "type": "option"
2636
+ },
2637
+ "apply": {
2638
+ "description": "Actually write. Without this, nothing is modified.",
2639
+ "name": "apply",
2640
+ "allowNo": false,
2641
+ "type": "boolean"
2642
+ },
2643
+ "force": {
2644
+ "description": "Proceed without a randomised verdict (observational evidence only)",
2645
+ "name": "force",
2646
+ "allowNo": false,
2647
+ "type": "boolean"
2648
+ },
2649
+ "kind": {
2650
+ "description": "Retract something that is not an instruction row",
2651
+ "name": "kind",
2652
+ "hasDynamicHelp": false,
2653
+ "multiple": false,
2654
+ "options": [
2655
+ "claude-md",
2656
+ "memory",
2657
+ "skill",
2658
+ "hook",
2659
+ "mcp"
2660
+ ],
2661
+ "type": "option"
2662
+ },
2663
+ "target": {
2664
+ "description": "File path, skill name, MCP server name, or hook command substring",
2665
+ "name": "target",
2666
+ "hasDynamicHelp": false,
2667
+ "multiple": false,
2668
+ "type": "option"
2669
+ },
2670
+ "heading": {
2671
+ "description": "Markdown heading to remove (defaults to the instruction name)",
2672
+ "name": "heading",
2673
+ "hasDynamicHelp": false,
2674
+ "multiple": false,
2675
+ "type": "option"
2676
+ }
2677
+ },
2678
+ "hasDynamicHelp": false,
2679
+ "hiddenAliases": [],
2680
+ "id": "instructions:retract",
2681
+ "pluginAlias": "@rulemetric/cli",
2682
+ "pluginName": "@rulemetric/cli",
2683
+ "pluginType": "core",
2684
+ "strict": true,
2685
+ "enableJsonFlag": false,
2686
+ "isESM": true,
2687
+ "relativePath": [
2688
+ "dist",
2689
+ "commands",
2690
+ "instructions",
2691
+ "retract.js"
2692
+ ]
2693
+ },
2560
2694
  "instructions:upstream": {
2561
2695
  "aliases": [],
2562
2696
  "args": {
@@ -3820,18 +3954,13 @@
3820
3954
  "uninstall.js"
3821
3955
  ]
3822
3956
  },
3823
- "sessions:analyze": {
3957
+ "skills:export-approved": {
3824
3958
  "aliases": [],
3825
- "args": {
3826
- "id": {
3827
- "description": "Session ID",
3828
- "name": "id",
3829
- "required": true
3830
- }
3831
- },
3832
- "description": "Trigger AI analysis on a session",
3959
+ "args": {},
3960
+ "description": "Export approved community submissions as community-skills.json for registry merge",
3833
3961
  "examples": [
3834
- "<%= config.bin %> sessions analyze <session-id>"
3962
+ "<%= config.bin %> skills export-approved",
3963
+ "<%= config.bin %> skills export-approved --output ./community-skills.json"
3835
3964
  ],
3836
3965
  "flags": {
3837
3966
  "api-url": {
@@ -3842,11 +3971,19 @@
3842
3971
  "hasDynamicHelp": false,
3843
3972
  "multiple": false,
3844
3973
  "type": "option"
3974
+ },
3975
+ "output": {
3976
+ "description": "Output file path",
3977
+ "name": "output",
3978
+ "default": "packages/skills-registry/community-skills.json",
3979
+ "hasDynamicHelp": false,
3980
+ "multiple": false,
3981
+ "type": "option"
3845
3982
  }
3846
3983
  },
3847
3984
  "hasDynamicHelp": false,
3848
3985
  "hiddenAliases": [],
3849
- "id": "sessions:analyze",
3986
+ "id": "skills:export-approved",
3850
3987
  "pluginAlias": "@rulemetric/cli",
3851
3988
  "pluginName": "@rulemetric/cli",
3852
3989
  "pluginType": "core",
@@ -3856,24 +3993,24 @@
3856
3993
  "relativePath": [
3857
3994
  "dist",
3858
3995
  "commands",
3859
- "sessions",
3860
- "analyze.js"
3996
+ "skills",
3997
+ "export-approved.js"
3861
3998
  ]
3862
3999
  },
3863
- "sessions:delete": {
4000
+ "skills:install": {
3864
4001
  "aliases": [],
3865
4002
  "args": {
3866
- "ids": {
3867
- "description": "Session id(s) to delete",
3868
- "name": "ids",
3869
- "required": false
4003
+ "id": {
4004
+ "description": "Skill ID to install",
4005
+ "name": "id",
4006
+ "required": true
3870
4007
  }
3871
4008
  },
3872
- "description": "Permanently delete captured sessions and everything stored with them (events, context snapshots, offloaded blobs)",
4009
+ "description": "Install a skill from the registry into your project",
3873
4010
  "examples": [
3874
- "<%= config.bin %> sessions delete 4f9d…",
3875
- "<%= config.bin %> sessions delete 4f9d… 8a21…",
3876
- "<%= config.bin %> sessions delete --project /work/client-a --yes"
4011
+ "<%= config.bin %> skills install tdd-workflow",
4012
+ "<%= config.bin %> skills install tdd-workflow --tool cursor",
4013
+ "<%= config.bin %> skills install tdd-workflow --preview"
3877
4014
  ],
3878
4015
  "flags": {
3879
4016
  "api-url": {
@@ -3885,42 +4022,56 @@
3885
4022
  "multiple": false,
3886
4023
  "type": "option"
3887
4024
  },
3888
- "project": {
3889
- "description": "Delete every session captured under this project path (use with --yes).",
3890
- "name": "project",
4025
+ "tool": {
4026
+ "description": "Target tool format",
4027
+ "name": "tool",
3891
4028
  "hasDynamicHelp": false,
3892
4029
  "multiple": false,
4030
+ "options": [
4031
+ "claude_code",
4032
+ "cursor",
4033
+ "copilot"
4034
+ ],
3893
4035
  "type": "option"
3894
4036
  },
3895
- "yes": {
3896
- "description": "Skip the confirmation prompt. Required for --project in non-interactive use.",
3897
- "name": "yes",
4037
+ "preview": {
4038
+ "description": "Preview content without writing",
4039
+ "name": "preview",
3898
4040
  "allowNo": false,
3899
4041
  "type": "boolean"
4042
+ },
4043
+ "dir": {
4044
+ "description": "Project directory",
4045
+ "name": "dir",
4046
+ "default": ".",
4047
+ "hasDynamicHelp": false,
4048
+ "multiple": false,
4049
+ "type": "option"
3900
4050
  }
3901
4051
  },
3902
4052
  "hasDynamicHelp": false,
3903
4053
  "hiddenAliases": [],
3904
- "id": "sessions:delete",
4054
+ "id": "skills:install",
3905
4055
  "pluginAlias": "@rulemetric/cli",
3906
4056
  "pluginName": "@rulemetric/cli",
3907
4057
  "pluginType": "core",
3908
- "strict": false,
4058
+ "strict": true,
3909
4059
  "enableJsonFlag": false,
3910
4060
  "isESM": true,
3911
4061
  "relativePath": [
3912
4062
  "dist",
3913
4063
  "commands",
3914
- "sessions",
3915
- "delete.js"
4064
+ "skills",
4065
+ "install.js"
3916
4066
  ]
3917
4067
  },
3918
- "sessions:end": {
4068
+ "skills:list": {
3919
4069
  "aliases": [],
3920
4070
  "args": {},
3921
- "description": "End the active capture session",
4071
+ "description": "List skills in the registry",
3922
4072
  "examples": [
3923
- "<%= config.bin %> sessions end"
4073
+ "<%= config.bin %> skills list",
4074
+ "<%= config.bin %> skills list --stats"
3924
4075
  ],
3925
4076
  "flags": {
3926
4077
  "api-url": {
@@ -3931,11 +4082,25 @@
3931
4082
  "hasDynamicHelp": false,
3932
4083
  "multiple": false,
3933
4084
  "type": "option"
4085
+ },
4086
+ "stats": {
4087
+ "description": "Show registry statistics",
4088
+ "name": "stats",
4089
+ "allowNo": false,
4090
+ "type": "boolean"
4091
+ },
4092
+ "limit": {
4093
+ "description": "Max skills to show",
4094
+ "name": "limit",
4095
+ "default": 30,
4096
+ "hasDynamicHelp": false,
4097
+ "multiple": false,
4098
+ "type": "option"
3934
4099
  }
3935
4100
  },
3936
4101
  "hasDynamicHelp": false,
3937
4102
  "hiddenAliases": [],
3938
- "id": "sessions:end",
4103
+ "id": "skills:list",
3939
4104
  "pluginAlias": "@rulemetric/cli",
3940
4105
  "pluginName": "@rulemetric/cli",
3941
4106
  "pluginType": "core",
@@ -3945,23 +4110,23 @@
3945
4110
  "relativePath": [
3946
4111
  "dist",
3947
4112
  "commands",
3948
- "sessions",
3949
- "end.js"
4113
+ "skills",
4114
+ "list.js"
3950
4115
  ]
3951
4116
  },
3952
- "sessions:import": {
4117
+ "skills:publish": {
3953
4118
  "aliases": [],
3954
4119
  "args": {
3955
- "path": {
3956
- "description": "Path to session file",
3957
- "name": "path",
4120
+ "file": {
4121
+ "description": "Path to skill file (.md)",
4122
+ "name": "file",
3958
4123
  "required": true
3959
4124
  }
3960
4125
  },
3961
- "description": "Import a session file (JSONL, JSON)",
4126
+ "description": "Submit a skill file to the RuleMetric skills registry",
3962
4127
  "examples": [
3963
- "<%= config.bin %> sessions import ~/.claude/projects/my-project/session-abc.jsonl",
3964
- "<%= config.bin %> sessions import ./copilot-export.json --tool vscode_copilot"
4128
+ "<%= config.bin %> skills publish ./my-skill.md",
4129
+ "<%= config.bin %> skills publish ./my-skill.md --category workflow --tool claude_code"
3965
4130
  ],
3966
4131
  "flags": {
3967
4132
  "api-url": {
@@ -3973,60 +4138,60 @@
3973
4138
  "multiple": false,
3974
4139
  "type": "option"
3975
4140
  },
3976
- "tool": {
3977
- "description": "Override tool detection (claude_code, cursor, vscode_copilot)",
3978
- "name": "tool",
4141
+ "name": {
4142
+ "description": "Skill name (defaults to filename)",
4143
+ "name": "name",
3979
4144
  "hasDynamicHelp": false,
3980
4145
  "multiple": false,
3981
4146
  "type": "option"
3982
- }
3983
- },
3984
- "hasDynamicHelp": false,
3985
- "hiddenAliases": [],
3986
- "id": "sessions:import",
3987
- "pluginAlias": "@rulemetric/cli",
3988
- "pluginName": "@rulemetric/cli",
3989
- "pluginType": "core",
3990
- "strict": true,
3991
- "enableJsonFlag": false,
3992
- "isESM": true,
3993
- "relativePath": [
3994
- "dist",
3995
- "commands",
3996
- "sessions",
3997
- "import.js"
3998
- ]
3999
- },
4000
- "sessions:list": {
4001
- "aliases": [],
4002
- "args": {},
4003
- "description": "List captured sessions",
4004
- "examples": [
4005
- "<%= config.bin %> sessions list",
4006
- "<%= config.bin %> sessions list --tool claude_code",
4007
- "<%= config.bin %> sessions list --tool codex"
4008
- ],
4009
- "flags": {
4010
- "api-url": {
4011
- "description": "Override API base URL",
4012
- "env": "RULEMETRIC_API_URL",
4013
- "hidden": true,
4014
- "name": "api-url",
4147
+ },
4148
+ "description": {
4149
+ "description": "One-line description",
4150
+ "name": "description",
4151
+ "hasDynamicHelp": false,
4152
+ "multiple": false,
4153
+ "type": "option"
4154
+ },
4155
+ "category": {
4156
+ "description": "Skill category",
4157
+ "name": "category",
4158
+ "default": "other",
4015
4159
  "hasDynamicHelp": false,
4016
4160
  "multiple": false,
4161
+ "options": [
4162
+ "workflow",
4163
+ "language",
4164
+ "framework",
4165
+ "tool",
4166
+ "security",
4167
+ "testing",
4168
+ "architecture",
4169
+ "devops",
4170
+ "documentation",
4171
+ "performance",
4172
+ "other"
4173
+ ],
4017
4174
  "type": "option"
4018
4175
  },
4019
4176
  "tool": {
4020
- "description": "Filter by tool (claude_code, cursor, vscode_copilot, copilot_agent, rulemetric_mcp, codex, pi, opencode, antigravity)",
4177
+ "description": "Primary tool this skill targets",
4021
4178
  "name": "tool",
4179
+ "default": "universal",
4022
4180
  "hasDynamicHelp": false,
4023
4181
  "multiple": false,
4182
+ "options": [
4183
+ "claude_code",
4184
+ "cursor",
4185
+ "copilot",
4186
+ "windsurf",
4187
+ "universal"
4188
+ ],
4024
4189
  "type": "option"
4025
4190
  },
4026
- "limit": {
4027
- "description": "Max results",
4028
- "name": "limit",
4029
- "default": 20,
4191
+ "tags": {
4192
+ "description": "Comma-separated tags",
4193
+ "name": "tags",
4194
+ "default": "",
4030
4195
  "hasDynamicHelp": false,
4031
4196
  "multiple": false,
4032
4197
  "type": "option"
@@ -4034,7 +4199,7 @@
4034
4199
  },
4035
4200
  "hasDynamicHelp": false,
4036
4201
  "hiddenAliases": [],
4037
- "id": "sessions:list",
4202
+ "id": "skills:publish",
4038
4203
  "pluginAlias": "@rulemetric/cli",
4039
4204
  "pluginName": "@rulemetric/cli",
4040
4205
  "pluginType": "core",
@@ -4044,18 +4209,24 @@
4044
4209
  "relativePath": [
4045
4210
  "dist",
4046
4211
  "commands",
4047
- "sessions",
4048
- "list.js"
4212
+ "skills",
4213
+ "publish.js"
4049
4214
  ]
4050
4215
  },
4051
- "sessions:start": {
4216
+ "skills:search": {
4052
4217
  "aliases": [],
4053
- "args": {},
4054
- "description": "Start a capture session for any LLM provider (Cortex, Groq, etc.)",
4218
+ "args": {
4219
+ "query": {
4220
+ "description": "Search term",
4221
+ "name": "query",
4222
+ "required": false
4223
+ }
4224
+ },
4225
+ "description": "Search the community skills registry",
4055
4226
  "examples": [
4056
- "<%= config.bin %> sessions start --tool cortex",
4057
- "<%= config.bin %> sessions start --tool groq --project-dir /path/to/project",
4058
- "eval \"$(rulemetric proxy env --python)\" && rulemetric sessions start --tool cortex"
4227
+ "<%= config.bin %> skills search \"tdd\"",
4228
+ "<%= config.bin %> skills search --tool cursor --category testing",
4229
+ "<%= config.bin %> skills search --language python"
4059
4230
  ],
4060
4231
  "flags": {
4061
4232
  "api-url": {
@@ -4068,18 +4239,57 @@
4068
4239
  "type": "option"
4069
4240
  },
4070
4241
  "tool": {
4071
- "char": "t",
4072
- "description": "LLM provider or tool name (e.g., cortex, groq, deepseek, custom_app)",
4242
+ "description": "Filter by tool",
4073
4243
  "name": "tool",
4074
- "required": true,
4075
4244
  "hasDynamicHelp": false,
4076
4245
  "multiple": false,
4246
+ "options": [
4247
+ "claude_code",
4248
+ "cursor",
4249
+ "copilot",
4250
+ "windsurf",
4251
+ "cline",
4252
+ "universal"
4253
+ ],
4254
+ "type": "option"
4255
+ },
4256
+ "category": {
4257
+ "description": "Filter by category",
4258
+ "name": "category",
4259
+ "hasDynamicHelp": false,
4260
+ "multiple": false,
4261
+ "options": [
4262
+ "workflow",
4263
+ "language",
4264
+ "framework",
4265
+ "tool",
4266
+ "security",
4267
+ "testing",
4268
+ "architecture",
4269
+ "devops",
4270
+ "documentation",
4271
+ "performance"
4272
+ ],
4077
4273
  "type": "option"
4078
4274
  },
4079
- "project-dir": {
4080
- "char": "d",
4081
- "description": "Project directory (defaults to cwd)",
4082
- "name": "project-dir",
4275
+ "language": {
4276
+ "description": "Filter by programming language",
4277
+ "name": "language",
4278
+ "hasDynamicHelp": false,
4279
+ "multiple": false,
4280
+ "type": "option"
4281
+ },
4282
+ "framework": {
4283
+ "description": "Filter by framework",
4284
+ "name": "framework",
4285
+ "hasDynamicHelp": false,
4286
+ "multiple": false,
4287
+ "type": "option"
4288
+ },
4289
+ "limit": {
4290
+ "description": "Max results",
4291
+ "name": "limit",
4292
+ "default": 20,
4083
4293
  "hasDynamicHelp": false,
4084
4294
  "multiple": false,
4085
4295
  "type": "option"
@@ -4087,7 +4297,7 @@
4087
4297
  },
4088
4298
  "hasDynamicHelp": false,
4089
4299
  "hiddenAliases": [],
4090
- "id": "sessions:start",
4300
+ "id": "skills:search",
4091
4301
  "pluginAlias": "@rulemetric/cli",
4092
4302
  "pluginName": "@rulemetric/cli",
4093
4303
  "pluginType": "core",
@@ -4097,17 +4307,17 @@
4097
4307
  "relativePath": [
4098
4308
  "dist",
4099
4309
  "commands",
4100
- "sessions",
4101
- "start.js"
4310
+ "skills",
4311
+ "search.js"
4102
4312
  ]
4103
4313
  },
4104
- "skills:export-approved": {
4314
+ "skills:update": {
4105
4315
  "aliases": [],
4106
4316
  "args": {},
4107
- "description": "Export approved community submissions as community-skills.json for registry merge",
4317
+ "description": "Fetch latest skills from GitHub sources and update local registry",
4108
4318
  "examples": [
4109
- "<%= config.bin %> skills export-approved",
4110
- "<%= config.bin %> skills export-approved --output ./community-skills.json"
4319
+ "<%= config.bin %> skills update",
4320
+ "<%= config.bin %> skills update --all"
4111
4321
  ],
4112
4322
  "flags": {
4113
4323
  "api-url": {
@@ -4119,18 +4329,16 @@
4119
4329
  "multiple": false,
4120
4330
  "type": "option"
4121
4331
  },
4122
- "output": {
4123
- "description": "Output file path",
4124
- "name": "output",
4125
- "default": "packages/skills-registry/community-skills.json",
4126
- "hasDynamicHelp": false,
4127
- "multiple": false,
4128
- "type": "option"
4332
+ "all": {
4333
+ "description": "Include Tier 2 (niche) sources",
4334
+ "name": "all",
4335
+ "allowNo": false,
4336
+ "type": "boolean"
4129
4337
  }
4130
4338
  },
4131
4339
  "hasDynamicHelp": false,
4132
4340
  "hiddenAliases": [],
4133
- "id": "skills:export-approved",
4341
+ "id": "skills:update",
4134
4342
  "pluginAlias": "@rulemetric/cli",
4135
4343
  "pluginName": "@rulemetric/cli",
4136
4344
  "pluginType": "core",
@@ -4141,23 +4349,21 @@
4141
4349
  "dist",
4142
4350
  "commands",
4143
4351
  "skills",
4144
- "export-approved.js"
4352
+ "update.js"
4145
4353
  ]
4146
4354
  },
4147
- "skills:install": {
4355
+ "sessions:analyze": {
4148
4356
  "aliases": [],
4149
4357
  "args": {
4150
4358
  "id": {
4151
- "description": "Skill ID to install",
4359
+ "description": "Session ID",
4152
4360
  "name": "id",
4153
4361
  "required": true
4154
4362
  }
4155
4363
  },
4156
- "description": "Install a skill from the registry into your project",
4364
+ "description": "Trigger AI analysis on a session",
4157
4365
  "examples": [
4158
- "<%= config.bin %> skills install tdd-workflow",
4159
- "<%= config.bin %> skills install tdd-workflow --tool cursor",
4160
- "<%= config.bin %> skills install tdd-workflow --preview"
4366
+ "<%= config.bin %> sessions analyze <session-id>"
4161
4367
  ],
4162
4368
  "flags": {
4163
4369
  "api-url": {
@@ -4168,57 +4374,85 @@
4168
4374
  "hasDynamicHelp": false,
4169
4375
  "multiple": false,
4170
4376
  "type": "option"
4171
- },
4172
- "tool": {
4173
- "description": "Target tool format",
4174
- "name": "tool",
4377
+ }
4378
+ },
4379
+ "hasDynamicHelp": false,
4380
+ "hiddenAliases": [],
4381
+ "id": "sessions:analyze",
4382
+ "pluginAlias": "@rulemetric/cli",
4383
+ "pluginName": "@rulemetric/cli",
4384
+ "pluginType": "core",
4385
+ "strict": true,
4386
+ "enableJsonFlag": false,
4387
+ "isESM": true,
4388
+ "relativePath": [
4389
+ "dist",
4390
+ "commands",
4391
+ "sessions",
4392
+ "analyze.js"
4393
+ ]
4394
+ },
4395
+ "sessions:delete": {
4396
+ "aliases": [],
4397
+ "args": {
4398
+ "ids": {
4399
+ "description": "Session id(s) to delete",
4400
+ "name": "ids",
4401
+ "required": false
4402
+ }
4403
+ },
4404
+ "description": "Permanently delete captured sessions and everything stored with them (events, context snapshots, offloaded blobs)",
4405
+ "examples": [
4406
+ "<%= config.bin %> sessions delete 4f9d…",
4407
+ "<%= config.bin %> sessions delete 4f9d… 8a21…",
4408
+ "<%= config.bin %> sessions delete --project /work/client-a --yes"
4409
+ ],
4410
+ "flags": {
4411
+ "api-url": {
4412
+ "description": "Override API base URL",
4413
+ "env": "RULEMETRIC_API_URL",
4414
+ "hidden": true,
4415
+ "name": "api-url",
4175
4416
  "hasDynamicHelp": false,
4176
4417
  "multiple": false,
4177
- "options": [
4178
- "claude_code",
4179
- "cursor",
4180
- "copilot"
4181
- ],
4182
4418
  "type": "option"
4183
4419
  },
4184
- "preview": {
4185
- "description": "Preview content without writing",
4186
- "name": "preview",
4187
- "allowNo": false,
4188
- "type": "boolean"
4189
- },
4190
- "dir": {
4191
- "description": "Project directory",
4192
- "name": "dir",
4193
- "default": ".",
4420
+ "project": {
4421
+ "description": "Delete every session captured under this project path (use with --yes).",
4422
+ "name": "project",
4194
4423
  "hasDynamicHelp": false,
4195
4424
  "multiple": false,
4196
4425
  "type": "option"
4426
+ },
4427
+ "yes": {
4428
+ "description": "Skip the confirmation prompt. Required for --project in non-interactive use.",
4429
+ "name": "yes",
4430
+ "allowNo": false,
4431
+ "type": "boolean"
4197
4432
  }
4198
4433
  },
4199
4434
  "hasDynamicHelp": false,
4200
4435
  "hiddenAliases": [],
4201
- "id": "skills:install",
4436
+ "id": "sessions:delete",
4202
4437
  "pluginAlias": "@rulemetric/cli",
4203
4438
  "pluginName": "@rulemetric/cli",
4204
4439
  "pluginType": "core",
4205
- "strict": true,
4440
+ "strict": false,
4206
4441
  "enableJsonFlag": false,
4207
4442
  "isESM": true,
4208
4443
  "relativePath": [
4209
4444
  "dist",
4210
4445
  "commands",
4211
- "skills",
4212
- "install.js"
4446
+ "sessions",
4447
+ "delete.js"
4213
4448
  ]
4214
4449
  },
4215
- "skills:list": {
4450
+ "sessions:end": {
4216
4451
  "aliases": [],
4217
4452
  "args": {},
4218
- "description": "List skills in the registry",
4453
+ "description": "End the active capture session",
4219
4454
  "examples": [
4220
- "<%= config.bin %> skills list",
4221
- "<%= config.bin %> skills list --stats"
4455
+ "<%= config.bin %> sessions end"
4222
4456
  ],
4223
4457
  "flags": {
4224
4458
  "api-url": {
@@ -4229,25 +4463,11 @@
4229
4463
  "hasDynamicHelp": false,
4230
4464
  "multiple": false,
4231
4465
  "type": "option"
4232
- },
4233
- "stats": {
4234
- "description": "Show registry statistics",
4235
- "name": "stats",
4236
- "allowNo": false,
4237
- "type": "boolean"
4238
- },
4239
- "limit": {
4240
- "description": "Max skills to show",
4241
- "name": "limit",
4242
- "default": 30,
4243
- "hasDynamicHelp": false,
4244
- "multiple": false,
4245
- "type": "option"
4246
4466
  }
4247
4467
  },
4248
4468
  "hasDynamicHelp": false,
4249
4469
  "hiddenAliases": [],
4250
- "id": "skills:list",
4470
+ "id": "sessions:end",
4251
4471
  "pluginAlias": "@rulemetric/cli",
4252
4472
  "pluginName": "@rulemetric/cli",
4253
4473
  "pluginType": "core",
@@ -4257,23 +4477,23 @@
4257
4477
  "relativePath": [
4258
4478
  "dist",
4259
4479
  "commands",
4260
- "skills",
4261
- "list.js"
4480
+ "sessions",
4481
+ "end.js"
4262
4482
  ]
4263
4483
  },
4264
- "skills:publish": {
4484
+ "sessions:import": {
4265
4485
  "aliases": [],
4266
4486
  "args": {
4267
- "file": {
4268
- "description": "Path to skill file (.md)",
4269
- "name": "file",
4487
+ "path": {
4488
+ "description": "Path to session file",
4489
+ "name": "path",
4270
4490
  "required": true
4271
4491
  }
4272
4492
  },
4273
- "description": "Submit a skill file to the RuleMetric skills registry",
4493
+ "description": "Import a session file (JSONL, JSON)",
4274
4494
  "examples": [
4275
- "<%= config.bin %> skills publish ./my-skill.md",
4276
- "<%= config.bin %> skills publish ./my-skill.md --category workflow --tool claude_code"
4495
+ "<%= config.bin %> sessions import ~/.claude/projects/my-project/session-abc.jsonl",
4496
+ "<%= config.bin %> sessions import ./copilot-export.json --tool vscode_copilot"
4277
4497
  ],
4278
4498
  "flags": {
4279
4499
  "api-url": {
@@ -4285,60 +4505,9 @@
4285
4505
  "multiple": false,
4286
4506
  "type": "option"
4287
4507
  },
4288
- "name": {
4289
- "description": "Skill name (defaults to filename)",
4290
- "name": "name",
4291
- "hasDynamicHelp": false,
4292
- "multiple": false,
4293
- "type": "option"
4294
- },
4295
- "description": {
4296
- "description": "One-line description",
4297
- "name": "description",
4298
- "hasDynamicHelp": false,
4299
- "multiple": false,
4300
- "type": "option"
4301
- },
4302
- "category": {
4303
- "description": "Skill category",
4304
- "name": "category",
4305
- "default": "other",
4306
- "hasDynamicHelp": false,
4307
- "multiple": false,
4308
- "options": [
4309
- "workflow",
4310
- "language",
4311
- "framework",
4312
- "tool",
4313
- "security",
4314
- "testing",
4315
- "architecture",
4316
- "devops",
4317
- "documentation",
4318
- "performance",
4319
- "other"
4320
- ],
4321
- "type": "option"
4322
- },
4323
4508
  "tool": {
4324
- "description": "Primary tool this skill targets",
4509
+ "description": "Override tool detection (claude_code, cursor, vscode_copilot)",
4325
4510
  "name": "tool",
4326
- "default": "universal",
4327
- "hasDynamicHelp": false,
4328
- "multiple": false,
4329
- "options": [
4330
- "claude_code",
4331
- "cursor",
4332
- "copilot",
4333
- "windsurf",
4334
- "universal"
4335
- ],
4336
- "type": "option"
4337
- },
4338
- "tags": {
4339
- "description": "Comma-separated tags",
4340
- "name": "tags",
4341
- "default": "",
4342
4511
  "hasDynamicHelp": false,
4343
4512
  "multiple": false,
4344
4513
  "type": "option"
@@ -4346,7 +4515,7 @@
4346
4515
  },
4347
4516
  "hasDynamicHelp": false,
4348
4517
  "hiddenAliases": [],
4349
- "id": "skills:publish",
4518
+ "id": "sessions:import",
4350
4519
  "pluginAlias": "@rulemetric/cli",
4351
4520
  "pluginName": "@rulemetric/cli",
4352
4521
  "pluginType": "core",
@@ -4356,24 +4525,18 @@
4356
4525
  "relativePath": [
4357
4526
  "dist",
4358
4527
  "commands",
4359
- "skills",
4360
- "publish.js"
4528
+ "sessions",
4529
+ "import.js"
4361
4530
  ]
4362
4531
  },
4363
- "skills:search": {
4532
+ "sessions:list": {
4364
4533
  "aliases": [],
4365
- "args": {
4366
- "query": {
4367
- "description": "Search term",
4368
- "name": "query",
4369
- "required": false
4370
- }
4371
- },
4372
- "description": "Search the community skills registry",
4534
+ "args": {},
4535
+ "description": "List captured sessions",
4373
4536
  "examples": [
4374
- "<%= config.bin %> skills search \"tdd\"",
4375
- "<%= config.bin %> skills search --tool cursor --category testing",
4376
- "<%= config.bin %> skills search --language python"
4537
+ "<%= config.bin %> sessions list",
4538
+ "<%= config.bin %> sessions list --tool claude_code",
4539
+ "<%= config.bin %> sessions list --tool codex"
4377
4540
  ],
4378
4541
  "flags": {
4379
4542
  "api-url": {
@@ -4386,51 +4549,10 @@
4386
4549
  "type": "option"
4387
4550
  },
4388
4551
  "tool": {
4389
- "description": "Filter by tool",
4552
+ "description": "Filter by tool (claude_code, cursor, vscode_copilot, copilot_agent, rulemetric_mcp, codex, pi, opencode, antigravity)",
4390
4553
  "name": "tool",
4391
4554
  "hasDynamicHelp": false,
4392
4555
  "multiple": false,
4393
- "options": [
4394
- "claude_code",
4395
- "cursor",
4396
- "copilot",
4397
- "windsurf",
4398
- "cline",
4399
- "universal"
4400
- ],
4401
- "type": "option"
4402
- },
4403
- "category": {
4404
- "description": "Filter by category",
4405
- "name": "category",
4406
- "hasDynamicHelp": false,
4407
- "multiple": false,
4408
- "options": [
4409
- "workflow",
4410
- "language",
4411
- "framework",
4412
- "tool",
4413
- "security",
4414
- "testing",
4415
- "architecture",
4416
- "devops",
4417
- "documentation",
4418
- "performance"
4419
- ],
4420
- "type": "option"
4421
- },
4422
- "language": {
4423
- "description": "Filter by programming language",
4424
- "name": "language",
4425
- "hasDynamicHelp": false,
4426
- "multiple": false,
4427
- "type": "option"
4428
- },
4429
- "framework": {
4430
- "description": "Filter by framework",
4431
- "name": "framework",
4432
- "hasDynamicHelp": false,
4433
- "multiple": false,
4434
4556
  "type": "option"
4435
4557
  },
4436
4558
  "limit": {
@@ -4444,7 +4566,7 @@
4444
4566
  },
4445
4567
  "hasDynamicHelp": false,
4446
4568
  "hiddenAliases": [],
4447
- "id": "skills:search",
4569
+ "id": "sessions:list",
4448
4570
  "pluginAlias": "@rulemetric/cli",
4449
4571
  "pluginName": "@rulemetric/cli",
4450
4572
  "pluginType": "core",
@@ -4454,17 +4576,18 @@
4454
4576
  "relativePath": [
4455
4577
  "dist",
4456
4578
  "commands",
4457
- "skills",
4458
- "search.js"
4579
+ "sessions",
4580
+ "list.js"
4459
4581
  ]
4460
4582
  },
4461
- "skills:update": {
4583
+ "sessions:start": {
4462
4584
  "aliases": [],
4463
4585
  "args": {},
4464
- "description": "Fetch latest skills from GitHub sources and update local registry",
4586
+ "description": "Start a capture session for any LLM provider (Cortex, Groq, etc.)",
4465
4587
  "examples": [
4466
- "<%= config.bin %> skills update",
4467
- "<%= config.bin %> skills update --all"
4588
+ "<%= config.bin %> sessions start --tool cortex",
4589
+ "<%= config.bin %> sessions start --tool groq --project-dir /path/to/project",
4590
+ "eval \"$(rulemetric proxy env --python)\" && rulemetric sessions start --tool cortex"
4468
4591
  ],
4469
4592
  "flags": {
4470
4593
  "api-url": {
@@ -4476,16 +4599,27 @@
4476
4599
  "multiple": false,
4477
4600
  "type": "option"
4478
4601
  },
4479
- "all": {
4480
- "description": "Include Tier 2 (niche) sources",
4481
- "name": "all",
4482
- "allowNo": false,
4483
- "type": "boolean"
4602
+ "tool": {
4603
+ "char": "t",
4604
+ "description": "LLM provider or tool name (e.g., cortex, groq, deepseek, custom_app)",
4605
+ "name": "tool",
4606
+ "required": true,
4607
+ "hasDynamicHelp": false,
4608
+ "multiple": false,
4609
+ "type": "option"
4610
+ },
4611
+ "project-dir": {
4612
+ "char": "d",
4613
+ "description": "Project directory (defaults to cwd)",
4614
+ "name": "project-dir",
4615
+ "hasDynamicHelp": false,
4616
+ "multiple": false,
4617
+ "type": "option"
4484
4618
  }
4485
4619
  },
4486
4620
  "hasDynamicHelp": false,
4487
4621
  "hiddenAliases": [],
4488
- "id": "skills:update",
4622
+ "id": "sessions:start",
4489
4623
  "pluginAlias": "@rulemetric/cli",
4490
4624
  "pluginName": "@rulemetric/cli",
4491
4625
  "pluginType": "core",
@@ -4495,8 +4629,8 @@
4495
4629
  "relativePath": [
4496
4630
  "dist",
4497
4631
  "commands",
4498
- "skills",
4499
- "update.js"
4632
+ "sessions",
4633
+ "start.js"
4500
4634
  ]
4501
4635
  },
4502
4636
  "suggestions:accept": {
@@ -4657,5 +4791,5 @@
4657
4791
  ]
4658
4792
  }
4659
4793
  },
4660
- "version": "0.7.44"
4794
+ "version": "0.8.0"
4661
4795
  }