rulesync 43.8.2 → 43.8.3

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.
@@ -43375,11 +43375,10 @@ var CopilotcliRule = class CopilotcliRule extends CopilotRule {
43375
43375
  * Rule generator for Snowflake Cortex Code.
43376
43376
  *
43377
43377
  * 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.
43378
+ * instruction file. The RulesProcessor folds non-root rules into that file
43379
+ * (`nonRoot` is `undefined`, mirroring the codexcli and warp targets).
43380
+ * Global rules are unsupported: this adapter only handles the project file.
43381
+ * CoCo Desktop's `~/.snowflake/cortex/AGENTS.md` is outside that scope.
43383
43382
  *
43384
43383
  * @see https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code
43385
43384
  */
@@ -69518,11 +69517,12 @@ function convertFromCortexcodeFormat(mcpServers) {
69518
69517
  /**
69519
69518
  * Snowflake Cortex Code MCP configuration.
69520
69519
  *
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.
69520
+ * This global-only adapter syncs the user-scoped `~/.snowflake/cortex/mcp.json`
69521
+ * and does not write CoCo Desktop's workspace files (`.snowflake/cortex/mcp.json`
69522
+ * and `.cortex/mcp.json`): those are documented only for CoCo Desktop, while the
69523
+ * Cortex Code CLI documents only the user-scoped file. The user-scoped file is
69524
+ * created and edited by `cortex mcp add` as well, so `--delete` leaves it in
69525
+ * place rather than removing a file the user did not create through rulesync.
69526
69526
  *
69527
69527
  * @see https://docs.snowflake.com/en/user-guide/cortex-code/extensibility#mcp-configuration
69528
69528
  */
@@ -80132,7 +80132,7 @@ function widenToPrefixGlob$1(pattern) {
80132
80132
  return pattern.endsWith("*") ? pattern : `${pattern}*`;
80133
80133
  }
80134
80134
  function widenForOverlap(pattern) {
80135
- if (/\{[^}]*,[^}]*\}/.test(pattern)) return "*";
80135
+ if (pattern.includes("{")) return "*";
80136
80136
  const widened = pattern.replaceAll("**/", "*").replaceAll("/**", "*");
80137
80137
  return widened.endsWith(" *") ? `${widened.slice(0, -2)}*` : widened;
80138
80138
  }
@@ -43353,11 +43353,10 @@ var CopilotcliRule = class CopilotcliRule extends CopilotRule {
43353
43353
  * Rule generator for Snowflake Cortex Code.
43354
43354
  *
43355
43355
  * The Cortex Code CLI documents `AGENTS.md` at the project root as its
43356
- * instruction file ("Support for AGENTS.md files and Agent Skills"). No nested
43357
- * rule directory and no user-scoped rule file are documented for the CLI, so
43358
- * rulesync's topic-based non-root rules are folded into the single root
43359
- * `AGENTS.md` by the RulesProcessor (`nonRoot` is `undefined`, mirroring the
43360
- * codexcli and warp targets) and the target is project-only.
43356
+ * instruction file. The RulesProcessor folds non-root rules into that file
43357
+ * (`nonRoot` is `undefined`, mirroring the codexcli and warp targets).
43358
+ * Global rules are unsupported: this adapter only handles the project file.
43359
+ * CoCo Desktop's `~/.snowflake/cortex/AGENTS.md` is outside that scope.
43361
43360
  *
43362
43361
  * @see https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code
43363
43362
  */
@@ -69496,11 +69495,12 @@ function convertFromCortexcodeFormat(mcpServers) {
69496
69495
  /**
69497
69496
  * Snowflake Cortex Code MCP configuration.
69498
69497
  *
69499
- * Cortex Code reads `mcpServers` only from the single user-scoped file
69500
- * `~/.snowflake/cortex/mcp.json`; no project-scoped MCP location is
69501
- * documented, so the target is global-only. The file is created and edited by
69502
- * `cortex mcp add` as well, so `--delete` leaves it in place rather than
69503
- * removing a file the user did not create through rulesync.
69498
+ * This global-only adapter syncs the user-scoped `~/.snowflake/cortex/mcp.json`
69499
+ * and does not write CoCo Desktop's workspace files (`.snowflake/cortex/mcp.json`
69500
+ * and `.cortex/mcp.json`): those are documented only for CoCo Desktop, while the
69501
+ * Cortex Code CLI documents only the user-scoped file. The user-scoped file is
69502
+ * created and edited by `cortex mcp add` as well, so `--delete` leaves it in
69503
+ * place rather than removing a file the user did not create through rulesync.
69504
69504
  *
69505
69505
  * @see https://docs.snowflake.com/en/user-guide/cortex-code/extensibility#mcp-configuration
69506
69506
  */
@@ -80110,7 +80110,7 @@ function widenToPrefixGlob$1(pattern) {
80110
80110
  return pattern.endsWith("*") ? pattern : `${pattern}*`;
80111
80111
  }
80112
80112
  function widenForOverlap(pattern) {
80113
- if (/\{[^}]*,[^}]*\}/.test(pattern)) return "*";
80113
+ if (pattern.includes("{")) return "*";
80114
80114
  const widened = pattern.replaceAll("**/", "*").replaceAll("/**", "*");
80115
80115
  return widened.endsWith(" *") ? `${widened.slice(0, -2)}*` : widened;
80116
80116
  }
@@ -105973,4 +105973,4 @@ const CHECKS_IMPORT_STRATEGY = {
105973
105973
  };
105974
105974
  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
105975
 
105976
- //# sourceMappingURL=import-C7cimNlL.js.map
105976
+ //# sourceMappingURL=import-ks5bN8zb.js.map