rulesync 43.9.0 → 43.9.2
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.cjs +27 -9
- package/dist/cli/index.js +27 -9
- package/dist/cli/index.js.map +1 -1
- package/dist/{import-Ct0k8w32.cjs → import-BYa6wJXz.cjs} +17 -4
- package/dist/{import-Cn19WTLD.js → import-C8KKmzZS.js} +18 -5
- package/dist/{import-Cn19WTLD.js.map → import-C8KKmzZS.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -60950,7 +60950,7 @@ function generateOpencodeV2PluginCode({ config, supportedEvents, toolConfigKey,
|
|
|
60950
60950
|
});
|
|
60951
60951
|
const lines = [];
|
|
60952
60952
|
lines.push("export default {");
|
|
60953
|
-
lines.push(" id: \"rulesync-hooks
|
|
60953
|
+
lines.push(" id: \"rulesync-hooks:\" + import.meta.url,");
|
|
60954
60954
|
lines.push(` setup: async (${body.length > 0 ? "ctx" : ""}) => {`);
|
|
60955
60955
|
for (const line of body) lines.push(line === "" ? "" : ` ${line}`);
|
|
60956
60956
|
lines.push(" },");
|
|
@@ -80416,8 +80416,11 @@ function splitUrlPattern(withoutScheme) {
|
|
|
80416
80416
|
* for `*.<host>`. Because a glob can also match across those parts, the
|
|
80417
80417
|
* whole strings are compared as well, a pathless `right` also as `<host>/*`
|
|
80418
80418
|
* (so an allowed `example.com` overlaps a restricted `*.pdf`), and an overlap
|
|
80419
|
-
* from any of them counts. A
|
|
80420
|
-
*
|
|
80419
|
+
* from any of them counts. A host ending in a DNS root dot (`example.com.`)
|
|
80420
|
+
* is also compared with one and with all trailing dots removed, in addition
|
|
80421
|
+
* to its original reading, so this only ever adds overlaps. A pattern holding
|
|
80422
|
+
* whitespace names no URL. Callers pass the restriction as `left` and the
|
|
80423
|
+
* allow as `right`.
|
|
80421
80424
|
*/
|
|
80422
80425
|
function urlPatternsOverlap(left, right) {
|
|
80423
80426
|
if (left === right) return true;
|
|
@@ -80453,7 +80456,17 @@ function withAnyPath(withoutScheme) {
|
|
|
80453
80456
|
return stripUrlSchemeKeepingPathCase(withoutScheme).includes("/") ? withoutScheme : `${withoutScheme}/*`;
|
|
80454
80457
|
}
|
|
80455
80458
|
function urlPartsOverlap(left, right) {
|
|
80456
|
-
const readings = (pattern) => [.../* @__PURE__ */ new Set([stripUrlSchemeKeepingPathCase(pattern), stripUrlSchemeLoosely(pattern)])].map(splitUrlPattern)
|
|
80459
|
+
const readings = (pattern) => [.../* @__PURE__ */ new Set([stripUrlSchemeKeepingPathCase(pattern), stripUrlSchemeLoosely(pattern)])].map(splitUrlPattern).flatMap((parts) => parts.host.endsWith(".") ? [
|
|
80460
|
+
parts,
|
|
80461
|
+
{
|
|
80462
|
+
...parts,
|
|
80463
|
+
host: parts.host.slice(0, -1)
|
|
80464
|
+
},
|
|
80465
|
+
{
|
|
80466
|
+
...parts,
|
|
80467
|
+
host: parts.host.replace(/\.+$/, "")
|
|
80468
|
+
}
|
|
80469
|
+
] : [parts]);
|
|
80457
80470
|
return readings(left).some((a) => readings(right).some((b) => urlPartsPairOverlap(a, b)));
|
|
80458
80471
|
}
|
|
80459
80472
|
function urlPartsPairOverlap(a, b) {
|
|
@@ -60928,7 +60928,7 @@ function generateOpencodeV2PluginCode({ config, supportedEvents, toolConfigKey,
|
|
|
60928
60928
|
});
|
|
60929
60929
|
const lines = [];
|
|
60930
60930
|
lines.push("export default {");
|
|
60931
|
-
lines.push(" id: \"rulesync-hooks
|
|
60931
|
+
lines.push(" id: \"rulesync-hooks:\" + import.meta.url,");
|
|
60932
60932
|
lines.push(` setup: async (${body.length > 0 ? "ctx" : ""}) => {`);
|
|
60933
60933
|
for (const line of body) lines.push(line === "" ? "" : ` ${line}`);
|
|
60934
60934
|
lines.push(" },");
|
|
@@ -80394,8 +80394,11 @@ function splitUrlPattern(withoutScheme) {
|
|
|
80394
80394
|
* for `*.<host>`. Because a glob can also match across those parts, the
|
|
80395
80395
|
* whole strings are compared as well, a pathless `right` also as `<host>/*`
|
|
80396
80396
|
* (so an allowed `example.com` overlaps a restricted `*.pdf`), and an overlap
|
|
80397
|
-
* from any of them counts. A
|
|
80398
|
-
*
|
|
80397
|
+
* from any of them counts. A host ending in a DNS root dot (`example.com.`)
|
|
80398
|
+
* is also compared with one and with all trailing dots removed, in addition
|
|
80399
|
+
* to its original reading, so this only ever adds overlaps. A pattern holding
|
|
80400
|
+
* whitespace names no URL. Callers pass the restriction as `left` and the
|
|
80401
|
+
* allow as `right`.
|
|
80399
80402
|
*/
|
|
80400
80403
|
function urlPatternsOverlap(left, right) {
|
|
80401
80404
|
if (left === right) return true;
|
|
@@ -80431,7 +80434,17 @@ function withAnyPath(withoutScheme) {
|
|
|
80431
80434
|
return stripUrlSchemeKeepingPathCase(withoutScheme).includes("/") ? withoutScheme : `${withoutScheme}/*`;
|
|
80432
80435
|
}
|
|
80433
80436
|
function urlPartsOverlap(left, right) {
|
|
80434
|
-
const readings = (pattern) => [.../* @__PURE__ */ new Set([stripUrlSchemeKeepingPathCase(pattern), stripUrlSchemeLoosely(pattern)])].map(splitUrlPattern)
|
|
80437
|
+
const readings = (pattern) => [.../* @__PURE__ */ new Set([stripUrlSchemeKeepingPathCase(pattern), stripUrlSchemeLoosely(pattern)])].map(splitUrlPattern).flatMap((parts) => parts.host.endsWith(".") ? [
|
|
80438
|
+
parts,
|
|
80439
|
+
{
|
|
80440
|
+
...parts,
|
|
80441
|
+
host: parts.host.slice(0, -1)
|
|
80442
|
+
},
|
|
80443
|
+
{
|
|
80444
|
+
...parts,
|
|
80445
|
+
host: parts.host.replace(/\.+$/, "")
|
|
80446
|
+
}
|
|
80447
|
+
] : [parts]);
|
|
80435
80448
|
return readings(left).some((a) => readings(right).some((b) => urlPartsPairOverlap(a, b)));
|
|
80436
80449
|
}
|
|
80437
80450
|
function urlPartsPairOverlap(a, b) {
|
|
@@ -105983,4 +105996,4 @@ const CHECKS_IMPORT_STRATEGY = {
|
|
|
105983
105996
|
};
|
|
105984
105997
|
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 };
|
|
105985
105998
|
|
|
105986
|
-
//# sourceMappingURL=import-
|
|
105999
|
+
//# sourceMappingURL=import-C8KKmzZS.js.map
|