rulesync 8.28.0 → 8.29.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.
package/dist/cli/index.js CHANGED
@@ -4,6 +4,16 @@ import {
4
4
  ALL_FEATURES_WITH_WILDCARD,
5
5
  ALL_TOOL_TARGETS,
6
6
  ALL_TOOL_TARGETS_WITH_WILDCARD,
7
+ CLAUDECODE_AGENTS_DIR_PATH,
8
+ CLAUDECODE_COMMANDS_DIR_PATH,
9
+ CLAUDECODE_DIR,
10
+ CLAUDECODE_LOCAL_RULE_FILE_NAME,
11
+ CLAUDECODE_MCP_FILE_NAME,
12
+ CLAUDECODE_MEMORIES_DIR_NAME,
13
+ CLAUDECODE_RULES_DIR_NAME,
14
+ CLAUDECODE_RULE_FILE_NAME,
15
+ CLAUDECODE_SETTINGS_LOCAL_FILE_NAME,
16
+ CLAUDECODE_SKILLS_DIR_PATH,
7
17
  CLIError,
8
18
  CommandsProcessor,
9
19
  ConfigResolver,
@@ -79,7 +89,7 @@ import {
79
89
  stringifyFrontmatter,
80
90
  toPosixPath,
81
91
  writeFileContent
82
- } from "../chunk-3N62MMXU.js";
92
+ } from "../chunk-QKQNZ6C3.js";
83
93
 
84
94
  // src/cli/index.ts
85
95
  import { Command } from "commander";
@@ -1272,7 +1282,7 @@ var GITIGNORE_ENTRY_REGISTRY = [
1272
1282
  { target: "common", feature: "general", entry: "**/AGENTS.local.md" },
1273
1283
  // AGENTS.md
1274
1284
  {
1275
- target: ["agentsmd", "amp", "antigravity-ide", "pi", "warp"],
1285
+ target: ["agentsmd", "amp", "antigravity-ide", "pi", "vibe", "warp"],
1276
1286
  feature: "rules",
1277
1287
  entry: "**/AGENTS.md"
1278
1288
  },
@@ -1330,26 +1340,50 @@ var GITIGNORE_ENTRY_REGISTRY = [
1330
1340
  // target+feature filtering still resolves the file for MCP runs.
1331
1341
  { target: "augmentcode", feature: "mcp", entry: "**/.augment/settings.json" },
1332
1342
  // Claude Code
1333
- { target: "claudecode", feature: "rules", entry: "**/CLAUDE.md" },
1334
- { target: "claudecode", feature: "rules", entry: "**/CLAUDE.local.md" },
1335
- { target: "claudecode", feature: "rules", entry: "**/.claude/CLAUDE.md" },
1343
+ { target: "claudecode", feature: "rules", entry: `**/${CLAUDECODE_RULE_FILE_NAME}` },
1344
+ { target: "claudecode", feature: "rules", entry: `**/${CLAUDECODE_LOCAL_RULE_FILE_NAME}` },
1336
1345
  {
1337
1346
  target: "claudecode",
1338
1347
  feature: "rules",
1339
- entry: "**/.claude/CLAUDE.local.md"
1348
+ entry: `**/${CLAUDECODE_DIR}/${CLAUDECODE_RULE_FILE_NAME}`
1349
+ },
1350
+ {
1351
+ target: "claudecode",
1352
+ feature: "rules",
1353
+ entry: `**/${CLAUDECODE_DIR}/${CLAUDECODE_LOCAL_RULE_FILE_NAME}`
1354
+ },
1355
+ {
1356
+ target: "claudecode",
1357
+ feature: "rules",
1358
+ entry: `**/${CLAUDECODE_DIR}/${CLAUDECODE_RULES_DIR_NAME}/`
1359
+ },
1360
+ {
1361
+ target: "claudecode",
1362
+ feature: "commands",
1363
+ entry: `**/${toPosixPath(CLAUDECODE_COMMANDS_DIR_PATH)}/`
1364
+ },
1365
+ {
1366
+ target: "claudecode",
1367
+ feature: "subagents",
1368
+ entry: `**/${toPosixPath(CLAUDECODE_AGENTS_DIR_PATH)}/`
1369
+ },
1370
+ {
1371
+ target: "claudecode",
1372
+ feature: "skills",
1373
+ entry: `**/${toPosixPath(CLAUDECODE_SKILLS_DIR_PATH)}/`
1374
+ },
1375
+ { target: "claudecode", feature: "mcp", entry: `**/${CLAUDECODE_MCP_FILE_NAME}` },
1376
+ {
1377
+ target: "claudecode",
1378
+ feature: "general",
1379
+ entry: `**/${CLAUDECODE_DIR}/${CLAUDECODE_MEMORIES_DIR_NAME}/`
1340
1380
  },
1341
- { target: "claudecode", feature: "rules", entry: "**/.claude/rules/" },
1342
- { target: "claudecode", feature: "commands", entry: "**/.claude/commands/" },
1343
- { target: "claudecode", feature: "subagents", entry: "**/.claude/agents/" },
1344
- { target: "claudecode", feature: "skills", entry: "**/.claude/skills/" },
1345
- { target: "claudecode", feature: "mcp", entry: "**/.mcp.json" },
1346
- { target: "claudecode", feature: "general", entry: "**/.claude/memories/" },
1347
1381
  {
1348
1382
  target: "claudecode",
1349
1383
  feature: "general",
1350
- entry: "**/.claude/settings.local.json"
1384
+ entry: `**/${CLAUDECODE_DIR}/${CLAUDECODE_SETTINGS_LOCAL_FILE_NAME}`
1351
1385
  },
1352
- { target: "claudecode", feature: "general", entry: "**/.claude/*.lock" },
1386
+ { target: "claudecode", feature: "general", entry: `**/${CLAUDECODE_DIR}/*.lock` },
1353
1387
  // Cline
1354
1388
  { target: "cline", feature: "rules", entry: "**/.clinerules/" },
1355
1389
  { target: "cline", feature: "commands", entry: "**/.clinerules/workflows/" },
@@ -1439,7 +1473,10 @@ var GITIGNORE_ENTRY_REGISTRY = [
1439
1473
  },
1440
1474
  { target: "copilot", feature: "commands", entry: "**/.github/prompts/" },
1441
1475
  { target: "copilot", feature: "subagents", entry: "**/.github/agents/" },
1442
- { target: "copilot", feature: "skills", entry: "**/.github/skills/" },
1476
+ // Copilot CLI shares the project `.github/skills/` location with the Copilot
1477
+ // IDE target; its personal skills live under `~/.copilot/skills/` (home dir,
1478
+ // not gitignored at the project level).
1479
+ { target: ["copilot", "copilotcli"], feature: "skills", entry: "**/.github/skills/" },
1443
1480
  { target: "copilot", feature: "hooks", entry: "**/.github/hooks/" },
1444
1481
  { target: "copilot", feature: "mcp", entry: "**/.vscode/mcp.json" },
1445
1482
  // GitHub Copilot CLI
@@ -1543,9 +1580,16 @@ var GITIGNORE_ENTRY_REGISTRY = [
1543
1580
  { target: "devin", feature: "hooks", entry: "**/.windsurf/hooks.json" },
1544
1581
  { target: "devin", feature: "skills", entry: "**/.devin/skills/" },
1545
1582
  { target: "devin", feature: "skills", entry: "**/.codeium/windsurf/skills/" },
1583
+ // Vibe
1584
+ { target: "vibe", feature: "ignore", entry: "**/.vibeignore" },
1585
+ { target: "vibe", feature: "skills", entry: "**/.vibe/skills/" },
1586
+ { target: "vibe", feature: "subagents", entry: "**/.vibe/agents/" },
1587
+ { target: "vibe", feature: "mcp", entry: "**/.vibe/config.toml" },
1588
+ { target: "vibe", feature: "permissions", entry: "**/.vibe/config.toml" },
1546
1589
  // Warp
1547
- // `/init` now writes `AGENTS.md` (handled by the shared AGENTS.md entry above).
1548
- { target: "warp", feature: "rules", entry: "**/.warp/" },
1590
+ // Warp reads project rules only from the root `AGENTS.md` (handled by the
1591
+ // shared AGENTS.md entry above); it does not read `.warp/memories/`, so no
1592
+ // rules entry under `.warp/` is emitted.
1549
1593
  { target: "warp", feature: "mcp", entry: "**/.warp/.mcp.json" },
1550
1594
  { target: "warp", feature: "skills", entry: "**/.warp/skills/" },
1551
1595
  // Zed
@@ -2900,7 +2944,7 @@ function relativeInstallDirFor(params) {
2900
2944
  const { agent, scope } = params;
2901
2945
  if (scope === "project") {
2902
2946
  if (agent === "claude-code") {
2903
- return join8(".claude", "skills");
2947
+ return CLAUDECODE_SKILLS_DIR_PATH;
2904
2948
  }
2905
2949
  return join8(".agents", "skills");
2906
2950
  }
@@ -2908,7 +2952,7 @@ function relativeInstallDirFor(params) {
2908
2952
  case "github-copilot":
2909
2953
  return join8(".copilot", "skills");
2910
2954
  case "claude-code":
2911
- return join8(".claude", "skills");
2955
+ return CLAUDECODE_SKILLS_DIR_PATH;
2912
2956
  case "cursor":
2913
2957
  return join8(".cursor", "skills");
2914
2958
  case "codex":
@@ -6572,7 +6616,7 @@ function wrapCommand({
6572
6616
  }
6573
6617
 
6574
6618
  // src/cli/index.ts
6575
- var getVersion = () => "8.28.0";
6619
+ var getVersion = () => "8.29.0";
6576
6620
  function wrapCommand2(name, errorCode, handler) {
6577
6621
  return wrapCommand({ name, errorCode, handler, getVersion });
6578
6622
  }