rulesync 43.8.3 → 43.9.1

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";
@@ -60940,7 +60950,7 @@ function generateOpencodeV2PluginCode({ config, supportedEvents, toolConfigKey,
60940
60950
  });
60941
60951
  const lines = [];
60942
60952
  lines.push("export default {");
60943
- lines.push(" id: \"rulesync-hooks\",");
60953
+ lines.push(" id: \"rulesync-hooks:\" + import.meta.url,");
60944
60954
  lines.push(` setup: async (${body.length > 0 ? "ctx" : ""}) => {`);
60945
60955
  for (const line of body) lines.push(line === "" ? "" : ` ${line}`);
60946
60956
  lines.push(" },");
@@ -80443,7 +80453,10 @@ function withAnyPath(withoutScheme) {
80443
80453
  return stripUrlSchemeKeepingPathCase(withoutScheme).includes("/") ? withoutScheme : `${withoutScheme}/*`;
80444
80454
  }
80445
80455
  function urlPartsOverlap(left, right) {
80446
- const readings = (pattern) => [.../* @__PURE__ */ new Set([stripUrlSchemeKeepingPathCase(pattern), stripUrlSchemeLoosely(pattern)])].map(splitUrlPattern);
80456
+ const readings = (pattern) => [.../* @__PURE__ */ new Set([stripUrlSchemeKeepingPathCase(pattern), stripUrlSchemeLoosely(pattern)])].map(splitUrlPattern).flatMap((parts) => parts.host.endsWith(".") ? [parts, {
80457
+ ...parts,
80458
+ host: parts.host.slice(0, -1)
80459
+ }] : [parts]);
80447
80460
  return readings(left).some((a) => readings(right).some((b) => urlPartsPairOverlap(a, b)));
80448
80461
  }
80449
80462
  function urlPartsPairOverlap(a, b) {
@@ -9443,7 +9443,7 @@ const CodexBasePermissionProfileSchema = z.enum(CODEX_BASE_PERMISSION_PROFILES);
9443
9443
  * passthrough: only `CODEXCLI_OVERRIDE_KEYS`
9444
9444
  * (`src/constants/codexcli-paths.ts` — `approval_policy`, `sandbox_mode`,
9445
9445
  * `sandbox_workspace_write`, `apps`, `approvals_reviewer`, `auto_review`,
9446
- * `tui`) are emitted, and
9446
+ * `tui`, `tools`) are emitted, and
9447
9447
  * `computeCodexcliOverridePatch` skips anything else with a warning.
9448
9448
  * `base_permission_profile`, `git_write_rules` and `bash_canonical_matching`
9449
9449
  * are consumed by the generators rather than written, as described above, and `permission` is the
@@ -9503,6 +9503,15 @@ const CodexcliPermissionsOverrideSchema = z.looseObject({
9503
9503
  * @see https://developers.openai.com/codex/config-reference
9504
9504
  */
9505
9505
  tui: z.optional(z.looseObject({})),
9506
+ /**
9507
+ * The `[tools]` table of `config.toml` (e.g. `update_plan.enabled`, which
9508
+ * Codex 0.152.0+ needs to register the `update_plan` tool). Values are
9509
+ * written verbatim: Codex ignores unknown keys inside this table unless
9510
+ * strict config validation is on, and its JSON schema flags them.
9511
+ *
9512
+ * @see https://github.com/openai/codex/blob/main/codex-rs/config/src/config_toml.rs (`ToolsToml`)
9513
+ */
9514
+ tools: z.optional(z.looseObject({})),
9506
9515
  git_write_rules: z.optional(z.boolean()),
9507
9516
  bash_canonical_matching: z.optional(z.boolean())
9508
9517
  });
@@ -12287,7 +12296,8 @@ const CODEXCLI_OVERRIDE_KEYS = [
12287
12296
  "apps",
12288
12297
  "approvals_reviewer",
12289
12298
  "auto_review",
12290
- "tui"
12299
+ "tui",
12300
+ "tools"
12291
12301
  ];
12292
12302
  // src/constants/takt-paths.ts
12293
12303
  const TAKT_DIR = ".takt";
@@ -60918,7 +60928,7 @@ function generateOpencodeV2PluginCode({ config, supportedEvents, toolConfigKey,
60918
60928
  });
60919
60929
  const lines = [];
60920
60930
  lines.push("export default {");
60921
- lines.push(" id: \"rulesync-hooks\",");
60931
+ lines.push(" id: \"rulesync-hooks:\" + import.meta.url,");
60922
60932
  lines.push(` setup: async (${body.length > 0 ? "ctx" : ""}) => {`);
60923
60933
  for (const line of body) lines.push(line === "" ? "" : ` ${line}`);
60924
60934
  lines.push(" },");
@@ -80421,7 +80431,10 @@ function withAnyPath(withoutScheme) {
80421
80431
  return stripUrlSchemeKeepingPathCase(withoutScheme).includes("/") ? withoutScheme : `${withoutScheme}/*`;
80422
80432
  }
80423
80433
  function urlPartsOverlap(left, right) {
80424
- const readings = (pattern) => [.../* @__PURE__ */ new Set([stripUrlSchemeKeepingPathCase(pattern), stripUrlSchemeLoosely(pattern)])].map(splitUrlPattern);
80434
+ const readings = (pattern) => [.../* @__PURE__ */ new Set([stripUrlSchemeKeepingPathCase(pattern), stripUrlSchemeLoosely(pattern)])].map(splitUrlPattern).flatMap((parts) => parts.host.endsWith(".") ? [parts, {
80435
+ ...parts,
80436
+ host: parts.host.slice(0, -1)
80437
+ }] : [parts]);
80425
80438
  return readings(left).some((a) => readings(right).some((b) => urlPartsPairOverlap(a, b)));
80426
80439
  }
80427
80440
  function urlPartsPairOverlap(a, b) {
@@ -105973,4 +105986,4 @@ const CHECKS_IMPORT_STRATEGY = {
105973
105986
  };
105974
105987
  export { RulesyncRule as $, RULESYNC_RULES_RELATIVE_DIR_PATH as $n, getFileSizeAndExecutableBit as $t, CODEBUDDY_LOCAL_RULE_FILE_NAME as A, ToolTargetSchema as An, fallbackLogger as At, CLAUDECODE_LOCAL_RULE_FILE_NAME as B, RULESYNC_CONFIG_RELATIVE_FILE_PATH as Bn, assertDirectoryIfExists as Bt, LETTACODE_DIR as C, toPosixPath as Cn, SourceEntrySchema as Ct, COMMANDCODE_DIR as D, ALL_TOOL_TARGETS as Dn, ConsoleLogger as Dt, FACTORYDROID_SETTINGS_LOCAL_FILE_NAME as E, mapWithConcurrency as En, findControlCharacter as Et, sweepRefusalReason as F, FEATURE_SOURCE_TREE_ENTRIES as Fn, CLIError as Ft, toInstructionBudgetFile as G, RULESYNC_IGNORE_RELATIVE_FILE_PATH as Gn, assertWritablePathInsideRoot as Gt, CLAUDECODE_SETTINGS_LOCAL_FILE_NAME as H, RULESYNC_CURATED_RULES_RELATIVE_DIR_PATH as Hn, assertNoSymlinkBelowRoot as Ht, CODEXCLI_BASH_RULES_FILE_NAME as I, MAX_FILE_SIZE as In, ErrorCodes as It, getLocalSkillDirNames as J, RULESYNC_MCP_SCHEMA_URL as Jn, directoryExists as Jt, classifyRemoteName as K, RULESYNC_LOCAL_CONFIG_RELATIVE_FILE_PATH as Kn, checkPathTraversal as Kt, CODEXCLI_DIR as L, RULESYNC_AIIGNORE_RELATIVE_FILE_PATH as Ln, parseJsonc as Lt, AUGMENTCODE_SETTINGS_LOCAL_FILE_NAME as M, ALL_FEATURES_WITH_WILDCARD as Mn, withFallbackLoggerTarget as Mt, caseFoldIdentity as N, DEPRECATED_FEATURE_REPLACEMENTS as Nn, resetRunWarningState as Nt, COMMANDCODE_SETTINGS_LOCAL_FILE_NAME as O, ALL_TOOL_TARGETS_WITH_WILDCARD as On, JsonLogger as Ot, groupSpellingsByCaseFoldedIdentity as P, CURATED_RULES_FEATURE_SUBDIR as Pn, withWarnOnceScope as Pt, RulesyncSkillFrontmatterSchema as Q, RULESYNC_RELATIVE_DIR_PATH as Qn, findFilesByGlobs as Qt, CLAUDECODE_AGENT_MEMORY_LOCAL_DIR_NAME as R, RULESYNC_CHECKS_RELATIVE_DIR_PATH as Rn, PathOutsideRootError as Rt, QWENCODE_LOCAL_RULE_FILE_NAME as S, splitPathSegments as Sn, GITIGNORE_DESTINATION_KEY as St, FACTORYDROID_DIR as T, writeFileContent as Tn, getSourceTransport as Tt, CLAUDECODE_SKILLS_DIR_PATH as U, RULESYNC_CURATED_SKILLS_RELATIVE_DIR_PATH as Un, assertPathResolvesInsideRoot as Ut, CLAUDECODE_MEMORIES_DIR_NAME as V, RULESYNC_CONFIG_SCHEMA_URL as Vn, assertLandingOutsideVcsMetadata as Vt, findProjectInstructionBudgetFindings as W, RULESYNC_HOOKS_RELATIVE_FILE_PATH as Wn, assertTreeContainsNoSymlinks as Wt, RulesyncSubagentFrontmatterSchema as X, RULESYNC_PERMISSIONS_RELATIVE_FILE_PATH as Xn, fileExists as Xt, RulesyncSubagent as Y, RULESYNC_NPM_SOURCES_LOCK_RELATIVE_FILE_PATH as Yn, ensureDir as Yt, RulesyncSkill as Z, RULESYNC_PERMISSIONS_SCHEMA_URL as Zn, fileExistsStrict as Zt, SkillsProcessor as _, removeFileWithoutFollowingSymlinks as _n, mergeInputRootConfigs as _t, convertFromTool as a, listDirectoryEntryNames as an, formatMegabytes as ar, getRulesyncSourceCandidates as at, REASONIX_LOCAL_RULE_FILE_NAME as b, resolvedRelativePath as bn, CONFLICTING_TARGET_PAIRS as bt, ELLIPSIS_WIDTH as c, normalizePosixDirPath as cn, hasEnclosingMarkOutsideKeycap as cr, RulesyncCommandFrontmatterSchema as ct, McpProcessor as d, readFileContent as dn, stripControlCharactersKeepingLineFeeds as dr, stringifyFrontmatter as dt, getHomeDirectory as en, RULESYNC_SKILLS_RELATIVE_DIR_PATH as er, RulesyncRuleFrontmatterSchema as et, IgnoreProcessor as f, readFileContentOrNull as fn, stripControlCharactersKeepingLineFeedsAndTabs as fr, loadYaml as ft, SubagentsProcessor as g, removeFileStrict as gn, ConfigResolver as gt, RulesProcessor as h, removeFile as hn, SKILL_FILE_NAME as ht, inspectInputRoots as i, isSymlink as in, RULESYNC_XDG_CONFIG_HOME_DEFAULT_DIR_NAME as ir, RulesyncHooks as it, AUGMENTCODE_DIR as j, ALL_FEATURES as jn, warnOnConflictingFlags as jt, CODEBUDDY_DIR as k, PACKAGING_TOOL_TARGETS as kn, WarningCollectingLogger as kt, displayWidthOf as l, pathEscapesRoot as ln, quoteForLog as lr, RulesyncCheck as lt, ChecksProcessor as m, removeDirectoryStrict as mn, SHARED_USER_MANAGED_CONFIG_PATHS as mt, formatSourceLoadFailure as n, isFileSystemError as nn, RULESYNC_SUBAGENTS_RELATIVE_DIR_PATH as nr, RulesyncMcp as nt, getProcessorRegistryEntry as o, listFilePathsRecursively as on, formatError as or, resolveRulesyncSourceWritePath as ot, HooksProcessor as p, removeDirectory as pn, stripHiddenCharacters as pr, isRecord as pt, hasWindowsFoldableName as q, RULESYNC_MCP_RELATIVE_FILE_PATH as qn, createTempDirectory as qt, generate as r, isRootDirPath as rn, RULESYNC_USER_CONFIG_DIR_NAME as rr, RulesyncIgnore as rt, parseCommaSeparatedList as s, listSubdirectoryNames as sn, truncateText as sr, RulesyncCommand as st, importFromTool as t, isFileNotFoundError as tn, RULESYNC_SOURCES_LOCK_RELATIVE_FILE_PATH as tr, RulesyncPermissions as tt, shortenToWidth as u, posixRelativePathEscapesRoot as un, stripControlCharacters as ur, RulesyncCheckFrontmatterSchema as ut, CRUSH_LOCAL_RULE_FILE_NAME as v, removeTempDirectory as vn, parseConfigFileContent as vt, LETTACODE_SETTINGS_LOCAL_FILE_NAME as w, writeFileBuffer as wn, assertTargetsFeaturesExclusive as wt, QWENCODE_DIR as x, runWithDirectoryRollback as xn, ConfigFileSchema as xt, CommandsProcessor as y, resolvePath as yn, resolveEffectiveInputRoots as yt, CLAUDECODE_DIR as z, RULESYNC_COMMANDS_RELATIVE_DIR_PATH as zn, applyFileMode as zt };
105975
105988
 
105976
- //# sourceMappingURL=import-ks5bN8zb.js.map
105989
+ //# sourceMappingURL=import-DbN7ccpT.js.map