rulesync 43.8.2 → 43.9.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.
@@ -9465,7 +9465,7 @@ const CodexBasePermissionProfileSchema = zod_mini.z.enum(CODEX_BASE_PERMISSION_P
9465
9465
  * passthrough: only `CODEXCLI_OVERRIDE_KEYS`
9466
9466
  * (`src/constants/codexcli-paths.ts` — `approval_policy`, `sandbox_mode`,
9467
9467
  * `sandbox_workspace_write`, `apps`, `approvals_reviewer`, `auto_review`,
9468
- * `tui`) are emitted, and
9468
+ * `tui`, `tools`) are emitted, and
9469
9469
  * `computeCodexcliOverridePatch` skips anything else with a warning.
9470
9470
  * `base_permission_profile`, `git_write_rules` and `bash_canonical_matching`
9471
9471
  * are consumed by the generators rather than written, as described above, and `permission` is the
@@ -9525,6 +9525,15 @@ const CodexcliPermissionsOverrideSchema = zod_mini.z.looseObject({
9525
9525
  * @see https://developers.openai.com/codex/config-reference
9526
9526
  */
9527
9527
  tui: zod_mini.z.optional(zod_mini.z.looseObject({})),
9528
+ /**
9529
+ * The `[tools]` table of `config.toml` (e.g. `update_plan.enabled`, which
9530
+ * Codex 0.152.0+ needs to register the `update_plan` tool). Values are
9531
+ * written verbatim: Codex ignores unknown keys inside this table unless
9532
+ * strict config validation is on, and its JSON schema flags them.
9533
+ *
9534
+ * @see https://github.com/openai/codex/blob/main/codex-rs/config/src/config_toml.rs (`ToolsToml`)
9535
+ */
9536
+ tools: zod_mini.z.optional(zod_mini.z.looseObject({})),
9528
9537
  git_write_rules: zod_mini.z.optional(zod_mini.z.boolean()),
9529
9538
  bash_canonical_matching: zod_mini.z.optional(zod_mini.z.boolean())
9530
9539
  });
@@ -12309,7 +12318,8 @@ const CODEXCLI_OVERRIDE_KEYS = [
12309
12318
  "apps",
12310
12319
  "approvals_reviewer",
12311
12320
  "auto_review",
12312
- "tui"
12321
+ "tui",
12322
+ "tools"
12313
12323
  ];
12314
12324
  // src/constants/takt-paths.ts
12315
12325
  const TAKT_DIR = ".takt";
@@ -43375,11 +43385,10 @@ var CopilotcliRule = class CopilotcliRule extends CopilotRule {
43375
43385
  * Rule generator for Snowflake Cortex Code.
43376
43386
  *
43377
43387
  * The Cortex Code CLI documents `AGENTS.md` at the project root as its
43378
- * instruction file ("Support for AGENTS.md files and Agent Skills"). No nested
43379
- * rule directory and no user-scoped rule file are documented for the CLI, so
43380
- * rulesync's topic-based non-root rules are folded into the single root
43381
- * `AGENTS.md` by the RulesProcessor (`nonRoot` is `undefined`, mirroring the
43382
- * codexcli and warp targets) and the target is project-only.
43388
+ * instruction file. The RulesProcessor folds non-root rules into that file
43389
+ * (`nonRoot` is `undefined`, mirroring the codexcli and warp targets).
43390
+ * Global rules are unsupported: this adapter only handles the project file.
43391
+ * CoCo Desktop's `~/.snowflake/cortex/AGENTS.md` is outside that scope.
43383
43392
  *
43384
43393
  * @see https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code
43385
43394
  */
@@ -69518,11 +69527,12 @@ function convertFromCortexcodeFormat(mcpServers) {
69518
69527
  /**
69519
69528
  * Snowflake Cortex Code MCP configuration.
69520
69529
  *
69521
- * Cortex Code reads `mcpServers` only from the single user-scoped file
69522
- * `~/.snowflake/cortex/mcp.json`; no project-scoped MCP location is
69523
- * documented, so the target is global-only. The file is created and edited by
69524
- * `cortex mcp add` as well, so `--delete` leaves it in place rather than
69525
- * removing a file the user did not create through rulesync.
69530
+ * This global-only adapter syncs the user-scoped `~/.snowflake/cortex/mcp.json`
69531
+ * and does not write CoCo Desktop's workspace files (`.snowflake/cortex/mcp.json`
69532
+ * and `.cortex/mcp.json`): those are documented only for CoCo Desktop, while the
69533
+ * Cortex Code CLI documents only the user-scoped file. The user-scoped file is
69534
+ * created and edited by `cortex mcp add` as well, so `--delete` leaves it in
69535
+ * place rather than removing a file the user did not create through rulesync.
69526
69536
  *
69527
69537
  * @see https://docs.snowflake.com/en/user-guide/cortex-code/extensibility#mcp-configuration
69528
69538
  */
@@ -80132,7 +80142,7 @@ function widenToPrefixGlob$1(pattern) {
80132
80142
  return pattern.endsWith("*") ? pattern : `${pattern}*`;
80133
80143
  }
80134
80144
  function widenForOverlap(pattern) {
80135
- if (/\{[^}]*,[^}]*\}/.test(pattern)) return "*";
80145
+ if (pattern.includes("{")) return "*";
80136
80146
  const widened = pattern.replaceAll("**/", "*").replaceAll("/**", "*");
80137
80147
  return widened.endsWith(" *") ? `${widened.slice(0, -2)}*` : widened;
80138
80148
  }
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_import = require("./import-vL-bR_Ax.cjs");
2
+ const require_import = require("./import-Ct0k8w32.cjs");
3
3
  // src/index.ts
4
4
  async function generate(options = {}) {
5
5
  const { silent = true, verbose = false, ...rest } = options;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Dn as ALL_TOOL_TARGETS, Dt as ConsoleLogger, a as convertFromTool$1, gt as ConfigResolver, i as inspectInputRoots, jn as ALL_FEATURES, r as generate$1, t as importFromTool$1 } from "./import-C7cimNlL.js";
1
+ import { Dn as ALL_TOOL_TARGETS, Dt as ConsoleLogger, a as convertFromTool$1, gt as ConfigResolver, i as inspectInputRoots, jn as ALL_FEATURES, r as generate$1, t as importFromTool$1 } from "./import-Cn19WTLD.js";
2
2
  // src/index.ts
3
3
  async function generate(options = {}) {
4
4
  const { silent = true, verbose = false, ...rest } = options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rulesync",
3
- "version": "43.8.2",
3
+ "version": "43.9.0",
4
4
  "description": "Unified AI rules management CLI tool that generates configuration files for various AI development tools",
5
5
  "keywords": [
6
6
  "ai",
@@ -45,14 +45,14 @@
45
45
  "dist"
46
46
  ],
47
47
  "dependencies": {
48
- "@inquirer/checkbox": "5.2.8",
48
+ "@inquirer/checkbox": "5.3.0",
49
49
  "@modelcontextprotocol/sdk": "1.32.2",
50
50
  "@octokit/request-error": "7.1.2",
51
51
  "@octokit/rest": "22.0.1",
52
52
  "@toon-format/toon": "4.4.0",
53
53
  "chokidar": "6.0.0",
54
- "commander": "15.0.0",
55
- "es-toolkit": "1.53.1",
54
+ "commander": "15.1.0",
55
+ "es-toolkit": "1.53.2",
56
56
  "globby": "16.2.4",
57
57
  "gray-matter": "4.0.3",
58
58
  "js-yaml": "5.5.0",
@@ -62,27 +62,27 @@
62
62
  "zod": "4.6.7"
63
63
  },
64
64
  "devDependencies": {
65
- "@anthropic-ai/claude-agent-sdk": "0.3.318",
66
- "@openrouter/sdk": "1.5.51",
65
+ "@anthropic-ai/claude-agent-sdk": "0.3.323",
66
+ "@openrouter/sdk": "1.5.100",
67
67
  "@secretlint/secretlint-rule-preset-recommend": "13.1.0",
68
- "@tsconfig/node24": "24.0.5",
68
+ "@tsconfig/node24": "24.0.6",
69
69
  "@types/node": "26.6.6",
70
70
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
71
71
  "@vitest/coverage-v8": "5.1.0",
72
- "cspell": "10.4.0",
72
+ "cspell": "10.4.1",
73
73
  "get-east-asian-width": "1.7.0",
74
- "knip": "6.44.1",
75
- "oxfmt": "0.76.0",
76
- "oxlint": "1.91.0",
77
- "repomix": "1.18.1",
78
- "resend": "6.37.0",
74
+ "knip": "6.45.1",
75
+ "oxfmt": "0.78.0",
76
+ "oxlint": "1.93.0",
77
+ "repomix": "1.19.0",
78
+ "resend": "6.38.0",
79
79
  "secretlint": "13.1.0",
80
80
  "simple-git": "4.0.2",
81
81
  "sort-package-json": "4.1.0",
82
82
  "tsx": "4.23.15",
83
83
  "typescript": "7.0.2",
84
- "vite": "npm:@voidzero-dev/vite-plus-core@1.5.0",
85
- "vite-plus": "1.5.0",
84
+ "vite": "npm:@voidzero-dev/vite-plus-core@1.6.0",
85
+ "vite-plus": "1.6.0",
86
86
  "vitepress": "1.6.4",
87
87
  "vitest": "5.1.0"
88
88
  },