rulekeeper 0.1.1 → 0.1.2

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/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/index.ts
4
+ import { createRequire } from "module";
4
5
  import { Command } from "commander";
5
6
 
6
7
  // src/commands/init.ts
@@ -221,13 +222,15 @@ async function hashFile(filePath) {
221
222
  }
222
223
 
223
224
  // src/lib/source.ts
225
+ var IGNORED_FILES = ["readme.md"];
224
226
  async function getAvailableRules(config) {
225
227
  const sourcePath = config.source.path;
226
228
  if (!fileExists(sourcePath)) {
227
229
  return [];
228
230
  }
229
231
  const files = await listFiles(sourcePath, ".md");
230
- return files.map((file) => ({
232
+ const filteredFiles = files.filter((file) => !IGNORED_FILES.includes(file.toLowerCase()));
233
+ return filteredFiles.map((file) => ({
231
234
  name: getRuleName(file),
232
235
  file,
233
236
  path: join3(sourcePath, file)
@@ -476,7 +479,7 @@ async function inputSourcePath() {
476
479
  async function inputGitUrl() {
477
480
  return await p.text({
478
481
  message: "Enter the Git repository URL:",
479
- placeholder: "git@github.com:username/claude-rules.git",
482
+ placeholder: "https://github.com/adxmcollins/rulekeeper-rules.git",
480
483
  validate: (value) => {
481
484
  if (!value) return "URL is required";
482
485
  return void 0;
@@ -1804,8 +1807,10 @@ async function doctor() {
1804
1807
  }
1805
1808
 
1806
1809
  // src/index.ts
1810
+ var require2 = createRequire(import.meta.url);
1811
+ var packageJson = require2("../package.json");
1807
1812
  var program = new Command();
1808
- program.name("rulekeeper").description("Sync and manage Claude Code rules across projects").version("0.1.0");
1813
+ program.name("rulekeeper").description("Sync and manage Claude Code rules across projects").version(packageJson.version);
1809
1814
  program.command("init").description("Interactive global setup").option("-f, --force", "Overwrite existing configuration").action(async (options) => {
1810
1815
  await init({ force: options.force });
1811
1816
  });