rulesync 43.10.0 → 43.10.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.
- package/dist/cli/index.cjs +13 -8
- package/dist/cli/index.js +13 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/{import-CjgB8F-w.cjs → import-DT6BSklJ.cjs} +65 -21
- package/dist/{import-CDUGMCum.js → import-fiaj0fDK.js} +66 -22
- package/dist/{import-CDUGMCum.js.map → import-fiaj0fDK.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -21077,12 +21077,25 @@ function raiseOpencodeAgentToV2(fields) {
|
|
|
21077
21077
|
}
|
|
21078
21078
|
const OPENCODE_FILE_TEMPLATE_PATTERN = /^\s*\{file:(.+?)\}\s*$/;
|
|
21079
21079
|
/**
|
|
21080
|
+
* Resolves the path of a `{file:...}` reference the way OpenCode does: relative
|
|
21081
|
+
* to the config file's directory, absolute as written, or from the home
|
|
21082
|
+
* directory when it starts with `~/`.
|
|
21083
|
+
*
|
|
21084
|
+
* @see https://opencode.ai/docs/config/#files
|
|
21085
|
+
*/
|
|
21086
|
+
function resolveOpencodeFileTemplatePath({ referencedPath, configDir }) {
|
|
21087
|
+
if (referencedPath.startsWith("~/")) return (0, node_path.join)(getHomeDirectory(), referencedPath.slice(2));
|
|
21088
|
+
if ((0, node_path.isAbsolute)(referencedPath)) return referencedPath;
|
|
21089
|
+
return (0, node_path.join)(configDir, referencedPath);
|
|
21090
|
+
}
|
|
21091
|
+
/**
|
|
21080
21092
|
* Resolves an OpenCode `{file:./path}` string reference into the referenced
|
|
21081
21093
|
* file's contents. OpenCode resolves these paths relative to the config file's
|
|
21082
21094
|
* location, so `configDir` must be the directory holding `opencode.json`. When
|
|
21083
21095
|
* the value is not a whole-value file reference it is returned unchanged; when
|
|
21084
21096
|
* the referenced file cannot be read the literal value is preserved (so the
|
|
21085
|
-
* reference is not silently lost).
|
|
21097
|
+
* reference is not silently lost). As in OpenCode, an absolute path is used as
|
|
21098
|
+
* written and a path starting with `~/` is taken from the home directory.
|
|
21086
21099
|
*
|
|
21087
21100
|
* When `containmentRoot` is given (project scope), a reference whose real
|
|
21088
21101
|
* location — every `..` segment and symbolic link resolved — lies outside it is
|
|
@@ -21100,7 +21113,10 @@ async function resolveOpencodeFileTemplate({ value, configDir, containmentRoot,
|
|
|
21100
21113
|
if (!match) return value;
|
|
21101
21114
|
const referencedPath = match[1]?.trim().replace(/^\.\//, "");
|
|
21102
21115
|
if (!referencedPath) return value;
|
|
21103
|
-
const targetPath = (
|
|
21116
|
+
const targetPath = resolveOpencodeFileTemplatePath({
|
|
21117
|
+
referencedPath,
|
|
21118
|
+
configDir
|
|
21119
|
+
});
|
|
21104
21120
|
if (containmentRoot === void 0) return await readFileContentOrNull(targetPath) ?? value;
|
|
21105
21121
|
const relativePath = await resolvedRelativePath({
|
|
21106
21122
|
rootPath: containmentRoot,
|
|
@@ -35234,11 +35250,19 @@ const LettacodeSubagentFrontmatterSchema = zod_mini.z.looseObject({
|
|
|
35234
35250
|
*/
|
|
35235
35251
|
const LETTACODE_AGENT_NAME_PATTERN = /^[a-z][a-z0-9-]*$/;
|
|
35236
35252
|
/**
|
|
35237
|
-
* Names
|
|
35238
|
-
*
|
|
35239
|
-
* (`RESERVED_EXTERNAL_SUBAGENT_NAMES` in `src/agent/subagents/index.ts`)
|
|
35253
|
+
* Names a custom subagent cannot take: Letta Code skips it when agents are
|
|
35254
|
+
* loaded. These are the external-agent launcher names
|
|
35255
|
+
* (`RESERVED_EXTERNAL_SUBAGENT_NAMES` in `src/agent/subagents/index.ts`)
|
|
35256
|
+
* plus `memory`, which the same loader also skips (as of letta-code v0.34.66).
|
|
35240
35257
|
*/
|
|
35241
|
-
const LETTACODE_RESERVED_AGENT_NAMES = /* @__PURE__ */ new Set([
|
|
35258
|
+
const LETTACODE_RESERVED_AGENT_NAMES = /* @__PURE__ */ new Set([
|
|
35259
|
+
"letta",
|
|
35260
|
+
"claude-code",
|
|
35261
|
+
"codex",
|
|
35262
|
+
"opencode",
|
|
35263
|
+
"cursor",
|
|
35264
|
+
"memory"
|
|
35265
|
+
]);
|
|
35242
35266
|
/**
|
|
35243
35267
|
* The subagent is still generated as authored — the name is the user's to
|
|
35244
35268
|
* change, and a rename here would make it diverge from the other targets —
|
|
@@ -41761,18 +41785,20 @@ var AugmentcodePluginRule = class extends AugmentcodeRule {
|
|
|
41761
41785
|
return { nonRoot: { relativeDirPath: AUGMENTCODE_PLUGIN_RULES_DIR } };
|
|
41762
41786
|
}
|
|
41763
41787
|
/**
|
|
41764
|
-
* Auggie 1.x (
|
|
41765
|
-
*
|
|
41766
|
-
* plugins (`rules/` in a plugin)" is
|
|
41767
|
-
* commands, agents, skills, hooks
|
|
41768
|
-
*
|
|
41769
|
-
*
|
|
41788
|
+
* Auggie 1.x (the stable line on npm `latest` since 1.2.0; 0.x is kept only
|
|
41789
|
+
* on the `v0-release` tag with auto-update turned off) no longer loads
|
|
41790
|
+
* `rules/` from plugins: "Rules shipped in plugins (`rules/` in a plugin)" is
|
|
41791
|
+
* listed among the removed features, while commands, agents, skills, hooks
|
|
41792
|
+
* and MCP servers still load. The rule files are still written for users
|
|
41793
|
+
* pinned to 0.x, which reads them, but under 1.x the bundle silently loses
|
|
41794
|
+
* them, so say so.
|
|
41770
41795
|
* @see https://docs.augmentcode.com/cli/whats-new
|
|
41796
|
+
* @see https://www.augmentcode.com/changelog
|
|
41771
41797
|
* @see https://docs.augmentcode.com/cli/v0/plugins
|
|
41772
41798
|
*/
|
|
41773
41799
|
static async getGenerationWarnings({ toolRules }) {
|
|
41774
41800
|
if (toolRules.length === 0) return [];
|
|
41775
|
-
return [`augmentcode-plugin: plugin rules (rules/*.md) are loaded by Auggie 0.x only; Auggie 1.x no longer reads rules/ from plugins, so these ${toolRules.length} rule file(s)
|
|
41801
|
+
return [`augmentcode-plugin: plugin rules (rules/*.md) are loaded by Auggie 0.x only; Auggie 1.x no longer reads rules/ from plugins, so these ${toolRules.length} rule file(s) reach only users pinned to Auggie 0.x (1.x is the stable CLI since 1.2.0). Ship instructions that must reach Auggie 1.x users as a skill, or have them generate the augmentcode target in their project.`];
|
|
41776
41802
|
}
|
|
41777
41803
|
};
|
|
41778
41804
|
// src/features/rules/bob-rule.ts
|
|
@@ -58304,6 +58330,15 @@ function normalizeCrushEventName(event) {
|
|
|
58304
58330
|
/** Crush tool events, by normalized spelling, on which a `matcher` is valid. */
|
|
58305
58331
|
const NORMALIZED_CRUSH_TOOL_EVENTS = new Set(CRUSH_TOOL_EVENTS.map((event) => normalizeCrushEventName(event)));
|
|
58306
58332
|
/**
|
|
58333
|
+
* Every event Crush fires, by normalized spelling: the twelve with a canonical
|
|
58334
|
+
* counterpart plus `PermissionResult`, which is a tool event. Crush refuses to
|
|
58335
|
+
* load the whole config when a `hooks` key names any other event
|
|
58336
|
+
* ("hook <key>: unknown event").
|
|
58337
|
+
* @see https://github.com/charmbracelet/crush/blob/v0.102.0/internal/hooks/events.go
|
|
58338
|
+
* @see https://github.com/charmbracelet/crush/blob/v0.102.0/internal/config/hooks.go
|
|
58339
|
+
*/
|
|
58340
|
+
const NORMALIZED_KNOWN_CRUSH_EVENTS = new Set([...Object.values(CANONICAL_TO_CRUSH_EVENT_NAMES), ...CRUSH_TOOL_EVENTS].map((event) => normalizeCrushEventName(event)));
|
|
58341
|
+
/**
|
|
58307
58342
|
* Resolve a `crush.hooks` override key to the canonical event it names, or
|
|
58308
58343
|
* null when it names no canonical event. The key may be spelled the canonical
|
|
58309
58344
|
* way (`stop`) or in any spelling Crush accepts for the event (`TurnEnd`,
|
|
@@ -58332,11 +58367,13 @@ function resolveOverrideCanonicalEvent(key) {
|
|
|
58332
58367
|
* spelling it uses: the override replaces the shared entries of that event
|
|
58333
58368
|
* (as for every other tool's override), and override keys that name the same
|
|
58334
58369
|
* event are concatenated in order, the way Crush itself merges them. A key
|
|
58335
|
-
* that names
|
|
58336
|
-
*
|
|
58337
|
-
*
|
|
58338
|
-
*
|
|
58339
|
-
*
|
|
58370
|
+
* that names a Crush event with no canonical counterpart (`PermissionResult`)
|
|
58371
|
+
* is written verbatim so it round-trips; keys of that kind that Crush reads as
|
|
58372
|
+
* the same event are concatenated under the first spelling. A key that names
|
|
58373
|
+
* no Crush event at all (such as the Claude Code spelling `Stop`) is skipped
|
|
58374
|
+
* with a warning, since Crush would refuse to load the whole config. A
|
|
58375
|
+
* `matcher` is only written on a tool event: Crush rejects the whole config
|
|
58376
|
+
* when one appears anywhere else.
|
|
58340
58377
|
*/
|
|
58341
58378
|
function canonicalToCrushHooks({ config, toolOverride, logger }) {
|
|
58342
58379
|
const shared = /* @__PURE__ */ new Map();
|
|
@@ -58359,6 +58396,10 @@ function canonicalToCrushHooks({ config, toolOverride, logger }) {
|
|
|
58359
58396
|
}) ?? key;
|
|
58360
58397
|
else {
|
|
58361
58398
|
const normalized = normalizeCrushEventName(key);
|
|
58399
|
+
if (!NORMALIZED_KNOWN_CRUSH_EVENTS.has(normalized)) {
|
|
58400
|
+
logger?.warn(`crush.hooks event ${quoteValueForWarning(key)} is not a Crush hook event, so it was skipped — Crush refuses to load a config with an unknown hook event.`);
|
|
58401
|
+
continue;
|
|
58402
|
+
}
|
|
58362
58403
|
crushEvent = verbatimSpellings.get(normalized) ?? key;
|
|
58363
58404
|
verbatimSpellings.set(normalized, crushEvent);
|
|
58364
58405
|
}
|
|
@@ -82819,8 +82860,11 @@ var AugmentcodePermissions = class AugmentcodePermissions extends ToolPermission
|
|
|
82819
82860
|
* does nothing.
|
|
82820
82861
|
*
|
|
82821
82862
|
* Only Auggie 0.x reads `recommendedMarketplaces`: the 1.x plugin settings
|
|
82822
|
-
* reference lists `enabledPlugins` alone
|
|
82823
|
-
* stable CLI
|
|
82863
|
+
* reference lists `enabledPlugins` alone, and the 1.x settings loader never
|
|
82864
|
+
* reads the key. 1.x is the stable CLI since 1.2.0, so the key now reaches only
|
|
82865
|
+
* users pinned to 0.x (npm `v0-release` with auto-update off). It is still
|
|
82866
|
+
* written for them, and the write warning says so.
|
|
82867
|
+
* @see https://www.augmentcode.com/changelog
|
|
82824
82868
|
*
|
|
82825
82869
|
* Both make Auggie load code the repository did not ship — a recommended
|
|
82826
82870
|
* marketplace is one prompt away from being cloned, and an enabled plugin can
|
|
@@ -82841,7 +82885,7 @@ function buildPluginConsumptionPatch({ override, existing, global, logger }) {
|
|
|
82841
82885
|
else {
|
|
82842
82886
|
patch.recommendedMarketplaces = recommendedMarketplaces;
|
|
82843
82887
|
const existingMarketplaces = existingKeys.recommendedMarketplaces;
|
|
82844
|
-
if (recommendedMarketplaces.length > 0 && !(0, node_util.isDeepStrictEqual)(recommendedMarketplaces, existingMarketplaces)) logger?.warn(`Writing AugmentCode \`recommendedMarketplaces\` (${recommendedMarketplaces.map(quoteValueForWarning).join(", ")}): Auggie 0.x prompts everyone who opens this workspace to install these plugin marketplaces (Auggie 1.x no longer reads this key).`);
|
|
82888
|
+
if (recommendedMarketplaces.length > 0 && !(0, node_util.isDeepStrictEqual)(recommendedMarketplaces, existingMarketplaces)) logger?.warn(`Writing AugmentCode \`recommendedMarketplaces\` (${recommendedMarketplaces.map(quoteValueForWarning).join(", ")}): Auggie 0.x prompts everyone who opens this workspace to install these plugin marketplaces (Auggie 1.x no longer reads this key, so only users pinned to Auggie 0.x see the prompt).`);
|
|
82845
82889
|
warnAboutRemovedPluginIds({
|
|
82846
82890
|
key: "recommendedMarketplaces",
|
|
82847
82891
|
removed: (existingMarketplaces ?? []).filter((marketplace) => !recommendedMarketplaces.includes(marketplace)),
|
|
@@ -21055,12 +21055,25 @@ function raiseOpencodeAgentToV2(fields) {
|
|
|
21055
21055
|
}
|
|
21056
21056
|
const OPENCODE_FILE_TEMPLATE_PATTERN = /^\s*\{file:(.+?)\}\s*$/;
|
|
21057
21057
|
/**
|
|
21058
|
+
* Resolves the path of a `{file:...}` reference the way OpenCode does: relative
|
|
21059
|
+
* to the config file's directory, absolute as written, or from the home
|
|
21060
|
+
* directory when it starts with `~/`.
|
|
21061
|
+
*
|
|
21062
|
+
* @see https://opencode.ai/docs/config/#files
|
|
21063
|
+
*/
|
|
21064
|
+
function resolveOpencodeFileTemplatePath({ referencedPath, configDir }) {
|
|
21065
|
+
if (referencedPath.startsWith("~/")) return join(getHomeDirectory(), referencedPath.slice(2));
|
|
21066
|
+
if (isAbsolute(referencedPath)) return referencedPath;
|
|
21067
|
+
return join(configDir, referencedPath);
|
|
21068
|
+
}
|
|
21069
|
+
/**
|
|
21058
21070
|
* Resolves an OpenCode `{file:./path}` string reference into the referenced
|
|
21059
21071
|
* file's contents. OpenCode resolves these paths relative to the config file's
|
|
21060
21072
|
* location, so `configDir` must be the directory holding `opencode.json`. When
|
|
21061
21073
|
* the value is not a whole-value file reference it is returned unchanged; when
|
|
21062
21074
|
* the referenced file cannot be read the literal value is preserved (so the
|
|
21063
|
-
* reference is not silently lost).
|
|
21075
|
+
* reference is not silently lost). As in OpenCode, an absolute path is used as
|
|
21076
|
+
* written and a path starting with `~/` is taken from the home directory.
|
|
21064
21077
|
*
|
|
21065
21078
|
* When `containmentRoot` is given (project scope), a reference whose real
|
|
21066
21079
|
* location — every `..` segment and symbolic link resolved — lies outside it is
|
|
@@ -21078,7 +21091,10 @@ async function resolveOpencodeFileTemplate({ value, configDir, containmentRoot,
|
|
|
21078
21091
|
if (!match) return value;
|
|
21079
21092
|
const referencedPath = match[1]?.trim().replace(/^\.\//, "");
|
|
21080
21093
|
if (!referencedPath) return value;
|
|
21081
|
-
const targetPath =
|
|
21094
|
+
const targetPath = resolveOpencodeFileTemplatePath({
|
|
21095
|
+
referencedPath,
|
|
21096
|
+
configDir
|
|
21097
|
+
});
|
|
21082
21098
|
if (containmentRoot === void 0) return await readFileContentOrNull(targetPath) ?? value;
|
|
21083
21099
|
const relativePath = await resolvedRelativePath({
|
|
21084
21100
|
rootPath: containmentRoot,
|
|
@@ -35212,11 +35228,19 @@ const LettacodeSubagentFrontmatterSchema = z.looseObject({
|
|
|
35212
35228
|
*/
|
|
35213
35229
|
const LETTACODE_AGENT_NAME_PATTERN = /^[a-z][a-z0-9-]*$/;
|
|
35214
35230
|
/**
|
|
35215
|
-
* Names
|
|
35216
|
-
*
|
|
35217
|
-
* (`RESERVED_EXTERNAL_SUBAGENT_NAMES` in `src/agent/subagents/index.ts`)
|
|
35231
|
+
* Names a custom subagent cannot take: Letta Code skips it when agents are
|
|
35232
|
+
* loaded. These are the external-agent launcher names
|
|
35233
|
+
* (`RESERVED_EXTERNAL_SUBAGENT_NAMES` in `src/agent/subagents/index.ts`)
|
|
35234
|
+
* plus `memory`, which the same loader also skips (as of letta-code v0.34.66).
|
|
35218
35235
|
*/
|
|
35219
|
-
const LETTACODE_RESERVED_AGENT_NAMES = /* @__PURE__ */ new Set([
|
|
35236
|
+
const LETTACODE_RESERVED_AGENT_NAMES = /* @__PURE__ */ new Set([
|
|
35237
|
+
"letta",
|
|
35238
|
+
"claude-code",
|
|
35239
|
+
"codex",
|
|
35240
|
+
"opencode",
|
|
35241
|
+
"cursor",
|
|
35242
|
+
"memory"
|
|
35243
|
+
]);
|
|
35220
35244
|
/**
|
|
35221
35245
|
* The subagent is still generated as authored — the name is the user's to
|
|
35222
35246
|
* change, and a rename here would make it diverge from the other targets —
|
|
@@ -41739,18 +41763,20 @@ var AugmentcodePluginRule = class extends AugmentcodeRule {
|
|
|
41739
41763
|
return { nonRoot: { relativeDirPath: AUGMENTCODE_PLUGIN_RULES_DIR } };
|
|
41740
41764
|
}
|
|
41741
41765
|
/**
|
|
41742
|
-
* Auggie 1.x (
|
|
41743
|
-
*
|
|
41744
|
-
* plugins (`rules/` in a plugin)" is
|
|
41745
|
-
* commands, agents, skills, hooks
|
|
41746
|
-
*
|
|
41747
|
-
*
|
|
41766
|
+
* Auggie 1.x (the stable line on npm `latest` since 1.2.0; 0.x is kept only
|
|
41767
|
+
* on the `v0-release` tag with auto-update turned off) no longer loads
|
|
41768
|
+
* `rules/` from plugins: "Rules shipped in plugins (`rules/` in a plugin)" is
|
|
41769
|
+
* listed among the removed features, while commands, agents, skills, hooks
|
|
41770
|
+
* and MCP servers still load. The rule files are still written for users
|
|
41771
|
+
* pinned to 0.x, which reads them, but under 1.x the bundle silently loses
|
|
41772
|
+
* them, so say so.
|
|
41748
41773
|
* @see https://docs.augmentcode.com/cli/whats-new
|
|
41774
|
+
* @see https://www.augmentcode.com/changelog
|
|
41749
41775
|
* @see https://docs.augmentcode.com/cli/v0/plugins
|
|
41750
41776
|
*/
|
|
41751
41777
|
static async getGenerationWarnings({ toolRules }) {
|
|
41752
41778
|
if (toolRules.length === 0) return [];
|
|
41753
|
-
return [`augmentcode-plugin: plugin rules (rules/*.md) are loaded by Auggie 0.x only; Auggie 1.x no longer reads rules/ from plugins, so these ${toolRules.length} rule file(s)
|
|
41779
|
+
return [`augmentcode-plugin: plugin rules (rules/*.md) are loaded by Auggie 0.x only; Auggie 1.x no longer reads rules/ from plugins, so these ${toolRules.length} rule file(s) reach only users pinned to Auggie 0.x (1.x is the stable CLI since 1.2.0). Ship instructions that must reach Auggie 1.x users as a skill, or have them generate the augmentcode target in their project.`];
|
|
41754
41780
|
}
|
|
41755
41781
|
};
|
|
41756
41782
|
// src/features/rules/bob-rule.ts
|
|
@@ -58282,6 +58308,15 @@ function normalizeCrushEventName(event) {
|
|
|
58282
58308
|
/** Crush tool events, by normalized spelling, on which a `matcher` is valid. */
|
|
58283
58309
|
const NORMALIZED_CRUSH_TOOL_EVENTS = new Set(CRUSH_TOOL_EVENTS.map((event) => normalizeCrushEventName(event)));
|
|
58284
58310
|
/**
|
|
58311
|
+
* Every event Crush fires, by normalized spelling: the twelve with a canonical
|
|
58312
|
+
* counterpart plus `PermissionResult`, which is a tool event. Crush refuses to
|
|
58313
|
+
* load the whole config when a `hooks` key names any other event
|
|
58314
|
+
* ("hook <key>: unknown event").
|
|
58315
|
+
* @see https://github.com/charmbracelet/crush/blob/v0.102.0/internal/hooks/events.go
|
|
58316
|
+
* @see https://github.com/charmbracelet/crush/blob/v0.102.0/internal/config/hooks.go
|
|
58317
|
+
*/
|
|
58318
|
+
const NORMALIZED_KNOWN_CRUSH_EVENTS = new Set([...Object.values(CANONICAL_TO_CRUSH_EVENT_NAMES), ...CRUSH_TOOL_EVENTS].map((event) => normalizeCrushEventName(event)));
|
|
58319
|
+
/**
|
|
58285
58320
|
* Resolve a `crush.hooks` override key to the canonical event it names, or
|
|
58286
58321
|
* null when it names no canonical event. The key may be spelled the canonical
|
|
58287
58322
|
* way (`stop`) or in any spelling Crush accepts for the event (`TurnEnd`,
|
|
@@ -58310,11 +58345,13 @@ function resolveOverrideCanonicalEvent(key) {
|
|
|
58310
58345
|
* spelling it uses: the override replaces the shared entries of that event
|
|
58311
58346
|
* (as for every other tool's override), and override keys that name the same
|
|
58312
58347
|
* event are concatenated in order, the way Crush itself merges them. A key
|
|
58313
|
-
* that names
|
|
58314
|
-
*
|
|
58315
|
-
*
|
|
58316
|
-
*
|
|
58317
|
-
*
|
|
58348
|
+
* that names a Crush event with no canonical counterpart (`PermissionResult`)
|
|
58349
|
+
* is written verbatim so it round-trips; keys of that kind that Crush reads as
|
|
58350
|
+
* the same event are concatenated under the first spelling. A key that names
|
|
58351
|
+
* no Crush event at all (such as the Claude Code spelling `Stop`) is skipped
|
|
58352
|
+
* with a warning, since Crush would refuse to load the whole config. A
|
|
58353
|
+
* `matcher` is only written on a tool event: Crush rejects the whole config
|
|
58354
|
+
* when one appears anywhere else.
|
|
58318
58355
|
*/
|
|
58319
58356
|
function canonicalToCrushHooks({ config, toolOverride, logger }) {
|
|
58320
58357
|
const shared = /* @__PURE__ */ new Map();
|
|
@@ -58337,6 +58374,10 @@ function canonicalToCrushHooks({ config, toolOverride, logger }) {
|
|
|
58337
58374
|
}) ?? key;
|
|
58338
58375
|
else {
|
|
58339
58376
|
const normalized = normalizeCrushEventName(key);
|
|
58377
|
+
if (!NORMALIZED_KNOWN_CRUSH_EVENTS.has(normalized)) {
|
|
58378
|
+
logger?.warn(`crush.hooks event ${quoteValueForWarning(key)} is not a Crush hook event, so it was skipped — Crush refuses to load a config with an unknown hook event.`);
|
|
58379
|
+
continue;
|
|
58380
|
+
}
|
|
58340
58381
|
crushEvent = verbatimSpellings.get(normalized) ?? key;
|
|
58341
58382
|
verbatimSpellings.set(normalized, crushEvent);
|
|
58342
58383
|
}
|
|
@@ -82797,8 +82838,11 @@ var AugmentcodePermissions = class AugmentcodePermissions extends ToolPermission
|
|
|
82797
82838
|
* does nothing.
|
|
82798
82839
|
*
|
|
82799
82840
|
* Only Auggie 0.x reads `recommendedMarketplaces`: the 1.x plugin settings
|
|
82800
|
-
* reference lists `enabledPlugins` alone
|
|
82801
|
-
* stable CLI
|
|
82841
|
+
* reference lists `enabledPlugins` alone, and the 1.x settings loader never
|
|
82842
|
+
* reads the key. 1.x is the stable CLI since 1.2.0, so the key now reaches only
|
|
82843
|
+
* users pinned to 0.x (npm `v0-release` with auto-update off). It is still
|
|
82844
|
+
* written for them, and the write warning says so.
|
|
82845
|
+
* @see https://www.augmentcode.com/changelog
|
|
82802
82846
|
*
|
|
82803
82847
|
* Both make Auggie load code the repository did not ship — a recommended
|
|
82804
82848
|
* marketplace is one prompt away from being cloned, and an enabled plugin can
|
|
@@ -82819,7 +82863,7 @@ function buildPluginConsumptionPatch({ override, existing, global, logger }) {
|
|
|
82819
82863
|
else {
|
|
82820
82864
|
patch.recommendedMarketplaces = recommendedMarketplaces;
|
|
82821
82865
|
const existingMarketplaces = existingKeys.recommendedMarketplaces;
|
|
82822
|
-
if (recommendedMarketplaces.length > 0 && !isDeepStrictEqual(recommendedMarketplaces, existingMarketplaces)) logger?.warn(`Writing AugmentCode \`recommendedMarketplaces\` (${recommendedMarketplaces.map(quoteValueForWarning).join(", ")}): Auggie 0.x prompts everyone who opens this workspace to install these plugin marketplaces (Auggie 1.x no longer reads this key).`);
|
|
82866
|
+
if (recommendedMarketplaces.length > 0 && !isDeepStrictEqual(recommendedMarketplaces, existingMarketplaces)) logger?.warn(`Writing AugmentCode \`recommendedMarketplaces\` (${recommendedMarketplaces.map(quoteValueForWarning).join(", ")}): Auggie 0.x prompts everyone who opens this workspace to install these plugin marketplaces (Auggie 1.x no longer reads this key, so only users pinned to Auggie 0.x see the prompt).`);
|
|
82823
82867
|
warnAboutRemovedPluginIds({
|
|
82824
82868
|
key: "recommendedMarketplaces",
|
|
82825
82869
|
removed: (existingMarketplaces ?? []).filter((marketplace) => !recommendedMarketplaces.includes(marketplace)),
|
|
@@ -107087,4 +107131,4 @@ const CHECKS_IMPORT_STRATEGY = {
|
|
|
107087
107131
|
};
|
|
107088
107132
|
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 };
|
|
107089
107133
|
|
|
107090
|
-
//# sourceMappingURL=import-
|
|
107134
|
+
//# sourceMappingURL=import-fiaj0fDK.js.map
|