rulesync 43.1.0 → 43.1.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.
@@ -55844,7 +55844,7 @@ function isFieldApplicable({ commandOnly, hookType }) {
55844
55844
  * silence — the mirror of the import side.
55845
55845
  */
55846
55846
  function emitPassthroughFields({ def, hookType, eventName, fields, isValid, warn }) {
55847
- for (const { canonical, tool, commandOnly, maxLength } of fields) {
55847
+ for (const { canonical, tool, commandOnly, maxLength, collapseWhitespaceForLength } of fields) {
55848
55848
  const value = def[canonical];
55849
55849
  if (value === void 0) continue;
55850
55850
  if (!isFieldApplicable({
@@ -55861,7 +55861,10 @@ function emitPassthroughFields({ def, hookType, eventName, fields, isValid, warn
55861
55861
  warn?.(`Dropping "${canonical}" from a "${hookType}" hook on "${eventName}": ${quoteValueForWarning(value)} is not a value this tool can express as "${tool}".`);
55862
55862
  continue;
55863
55863
  }
55864
- if (maxLength !== void 0 && typeof value === "string" && value.length > maxLength) warn?.(`"${canonical}" on a "${hookType}" hook on "${eventName}" is ${value.length} characters long; this tool caps "${tool}" at ${maxLength} characters and will shorten it.`);
55864
+ if (maxLength !== void 0 && typeof value === "string") {
55865
+ const length = collapseWhitespaceForLength ? value.replace(/\s+/g, " ").trim().length : value.length;
55866
+ if (length > maxLength) warn?.(`"${canonical}" on a "${hookType}" hook on "${eventName}" is ${length} characters long; this tool caps "${tool}" at ${maxLength} characters and will shorten it.`);
55867
+ }
55865
55868
  }
55866
55869
  return Object.fromEntries(fields.filter(({ canonical, commandOnly }) => isFieldApplicable({
55867
55870
  commandOnly,
@@ -64267,7 +64270,8 @@ const QODER_SPEC = {
64267
64270
  canonical: "rewakeSummary",
64268
64271
  tool: "rewakeSummary",
64269
64272
  commandOnly: true,
64270
- maxLength: 300
64273
+ maxLength: 300,
64274
+ collapseWhitespaceForLength: true
64271
64275
  }
64272
64276
  ],
64273
64277
  booleanPassthroughFields: [
@@ -55822,7 +55822,7 @@ function isFieldApplicable({ commandOnly, hookType }) {
55822
55822
  * silence — the mirror of the import side.
55823
55823
  */
55824
55824
  function emitPassthroughFields({ def, hookType, eventName, fields, isValid, warn }) {
55825
- for (const { canonical, tool, commandOnly, maxLength } of fields) {
55825
+ for (const { canonical, tool, commandOnly, maxLength, collapseWhitespaceForLength } of fields) {
55826
55826
  const value = def[canonical];
55827
55827
  if (value === void 0) continue;
55828
55828
  if (!isFieldApplicable({
@@ -55839,7 +55839,10 @@ function emitPassthroughFields({ def, hookType, eventName, fields, isValid, warn
55839
55839
  warn?.(`Dropping "${canonical}" from a "${hookType}" hook on "${eventName}": ${quoteValueForWarning(value)} is not a value this tool can express as "${tool}".`);
55840
55840
  continue;
55841
55841
  }
55842
- if (maxLength !== void 0 && typeof value === "string" && value.length > maxLength) warn?.(`"${canonical}" on a "${hookType}" hook on "${eventName}" is ${value.length} characters long; this tool caps "${tool}" at ${maxLength} characters and will shorten it.`);
55842
+ if (maxLength !== void 0 && typeof value === "string") {
55843
+ const length = collapseWhitespaceForLength ? value.replace(/\s+/g, " ").trim().length : value.length;
55844
+ if (length > maxLength) warn?.(`"${canonical}" on a "${hookType}" hook on "${eventName}" is ${length} characters long; this tool caps "${tool}" at ${maxLength} characters and will shorten it.`);
55845
+ }
55843
55846
  }
55844
55847
  return Object.fromEntries(fields.filter(({ canonical, commandOnly }) => isFieldApplicable({
55845
55848
  commandOnly,
@@ -64245,7 +64248,8 @@ const QODER_SPEC = {
64245
64248
  canonical: "rewakeSummary",
64246
64249
  tool: "rewakeSummary",
64247
64250
  commandOnly: true,
64248
- maxLength: 300
64251
+ maxLength: 300,
64252
+ collapseWhitespaceForLength: true
64249
64253
  }
64250
64254
  ],
64251
64255
  booleanPassthroughFields: [
@@ -106432,4 +106436,4 @@ async function importChecksCore(params) {
106432
106436
  }
106433
106437
  export { RulesyncPermissions as $, formatError as $n, isSymlink as $t, CODEBUDDY_DIR as A, MAX_FILE_SIZE as An, withFallbackLoggerTarget as At, CLAUDECODE_LOCAL_RULE_FILE_NAME as B, RULESYNC_LOCAL_CONFIG_RELATIVE_FILE_PATH as Bn, assertTreeContainsNoSymlinks as Bt, QWENCODE_LOCAL_RULE_FILE_NAME as C, PACKAGING_TOOL_TARGETS as Cn, getSourceTransport as Ct, FACTORYDROID_SETTINGS_LOCAL_FILE_NAME as D, DEPRECATED_FEATURE_REPLACEMENTS as Dn, WarningCollectingLogger as Dt, FACTORYDROID_DIR as E, ALL_FEATURES_WITH_WILDCARD as En, JsonLogger as Et, groupSpellingsByCaseFoldedIdentity as F, RULESYNC_CONFIG_SCHEMA_URL as Fn, PathOutsideRootError as Ft, toInstructionBudgetFile as G, RULESYNC_PERMISSIONS_SCHEMA_URL as Gn, ensureDir as Gt, CLAUDECODE_SETTINGS_LOCAL_FILE_NAME as H, RULESYNC_MCP_SCHEMA_URL as Hn, checkPathTraversal as Ht, CODEXCLI_BASH_RULES_FILE_NAME as I, RULESYNC_CURATED_RULES_RELATIVE_DIR_PATH as In, applyFileMode as It, RulesyncSubagentFrontmatterSchema as J, RULESYNC_SKILLS_RELATIVE_DIR_PATH as Jn, findFilesByGlobs as Jt, getLocalSkillDirNames as K, RULESYNC_RELATIVE_DIR_PATH as Kn, fileExists as Kt, CODEXCLI_DIR as L, RULESYNC_CURATED_SKILLS_RELATIVE_DIR_PATH as Ln, assertDirectoryIfExists as Lt, AUGMENTCODE_DIR as M, RULESYNC_CHECKS_RELATIVE_DIR_PATH as Mn, withWarnOnceScope as Mt, AUGMENTCODE_SETTINGS_LOCAL_FILE_NAME as N, RULESYNC_COMMANDS_RELATIVE_DIR_PATH as Nn, CLIError as Nt, COMMANDCODE_DIR as O, CURATED_RULES_FEATURE_SUBDIR as On, fallbackLogger as Ot, caseFoldIdentity as P, RULESYNC_CONFIG_RELATIVE_FILE_PATH as Pn, ErrorCodes as Pt, RulesyncRuleFrontmatterSchema as Q, RULESYNC_XDG_CONFIG_HOME_DEFAULT_DIR_NAME as Qn, isFileSystemError as Qt, CLAUDECODE_AGENT_MEMORY_LOCAL_DIR_NAME as R, RULESYNC_HOOKS_RELATIVE_FILE_PATH as Rn, assertNoSymlinkBelowRoot as Rt, QWENCODE_DIR as S, ALL_TOOL_TARGETS_WITH_WILDCARD as Sn, assertTargetsFeaturesExclusive as St, LETTACODE_SETTINGS_LOCAL_FILE_NAME as T, ALL_FEATURES as Tn, ConsoleLogger as Tt, CLAUDECODE_SKILLS_DIR_PATH as U, RULESYNC_NPM_SOURCES_LOCK_RELATIVE_FILE_PATH as Un, createTempDirectory as Ut, CLAUDECODE_MEMORIES_DIR_NAME as V, RULESYNC_MCP_RELATIVE_FILE_PATH as Vn, assertWritablePathInsideRoot as Vt, findProjectInstructionBudgetFindings as W, RULESYNC_PERMISSIONS_RELATIVE_FILE_PATH as Wn, directoryExists as Wt, RulesyncSkillFrontmatterSchema as X, RULESYNC_SUBAGENTS_RELATIVE_DIR_PATH as Xn, getHomeDirectory as Xt, RulesyncSkill as Y, RULESYNC_SOURCES_LOCK_RELATIVE_FILE_PATH as Yn, getFileSizeAndExecutableBit as Yt, RulesyncRule as Z, RULESYNC_USER_CONFIG_DIR_NAME as Zn, isFileNotFoundError as Zt, SubagentsProcessor as _, toPosixPath as _n, resolveEffectiveInputRoots as _t, convertFromTool as a, readFileContent as an, stripControlCharactersKeepingLineFeeds as ar, parseJsonc as at, CommandsProcessor as b, mapWithConcurrency as bn, GITIGNORE_DESTINATION_KEY as bt, parseCommaSeparatedList as c, removeDirectoryStrict as cn, RulesyncCheck as ct, shortenToWidth as d, removeFileWithoutFollowingSymlinks as dn, loadYaml as dt, listDirectoryEntryNames as en, truncateText as er, RulesyncMcp as et, McpProcessor as f, removeTempDirectory as fn, isRecord as ft, RulesProcessor as g, splitPathSegments as gn, mergeInputRootConfigs as gt, ChecksProcessor as h, runWithDirectoryRollback as hn, ConfigResolver as ht, inspectInputRoots as i, posixRelativePathEscapesRoot as in, stripControlCharacters as ir, resolveRulesyncSourceWritePath as it, CODEBUDDY_LOCAL_RULE_FILE_NAME as j, RULESYNC_AIIGNORE_RELATIVE_FILE_PATH as jn, resetRunWarningState as jt, COMMANDCODE_SETTINGS_LOCAL_FILE_NAME as k, FEATURE_SOURCE_TREE_ENTRIES as kn, warnOnConflictingFlags as kt, ELLIPSIS_WIDTH as l, removeFile as ln, RulesyncCheckFrontmatterSchema as lt, HooksProcessor as m, resolvedRelativePath as mn, SKILL_FILE_NAME as mt, formatSourceLoadFailure as n, listSubdirectoryNames as nn, hasEnclosingMarkOutsideKeycap as nr, RulesyncHooks as nt, isPackagingToolTarget as o, readFileContentOrNull as on, stripControlCharactersKeepingLineFeedsAndTabs as or, RulesyncCommand as ot, IgnoreProcessor as p, resolvePath as pn, SHARED_USER_MANAGED_CONFIG_PATHS as pt, RulesyncSubagent as q, RULESYNC_RULES_RELATIVE_DIR_PATH as qn, fileExistsStrict as qt, generate as r, pathEscapesRoot as rn, quoteForLog as rr, getRulesyncSourceCandidates as rt, getProcessorRegistryEntry as s, removeDirectory as sn, stripHiddenCharacters as sr, RulesyncCommandFrontmatterSchema as st, importFromTool as t, listFilePathsRecursively as tn, hasDeceptiveHiddenCharacters as tr, RulesyncIgnore as tt, displayWidthOf as u, removeFileStrict as un, stringifyFrontmatter as ut, SkillsProcessor as v, writeFileBuffer as vn, CONFLICTING_TARGET_PAIRS as vt, LETTACODE_DIR as w, ToolTargetSchema as wn, findControlCharacter as wt, REASONIX_LOCAL_RULE_FILE_NAME as x, ALL_TOOL_TARGETS as xn, SourceEntrySchema as xt, CRUSH_LOCAL_RULE_FILE_NAME as y, writeFileContent as yn, ConfigFileSchema as yt, CLAUDECODE_DIR as z, RULESYNC_IGNORE_RELATIVE_FILE_PATH as zn, assertPathResolvesInsideRoot as zt };
106434
106438
 
106435
- //# sourceMappingURL=import-DdmJUW78.js.map
106439
+ //# sourceMappingURL=import-COu_2AUF.js.map