rulesync 7.12.1 → 7.12.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/{chunk-3FGQWAXN.js → chunk-VAGOPUDS.js} +10 -3
- package/dist/cli/index.cjs +11 -4
- package/dist/cli/index.js +2 -2
- package/dist/index.cjs +10 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -3238,7 +3238,10 @@ function canonicalToToolHooks({
|
|
|
3238
3238
|
const entries = [];
|
|
3239
3239
|
for (const [matcherKey, defs] of byMatcher) {
|
|
3240
3240
|
const hooks = defs.map((def) => {
|
|
3241
|
-
const
|
|
3241
|
+
const commandText = def.command;
|
|
3242
|
+
const trimmedCommand = typeof commandText === "string" ? commandText.trimStart() : void 0;
|
|
3243
|
+
const shouldPrefix = typeof trimmedCommand === "string" && !trimmedCommand.startsWith("$") && (!converterConfig.prefixDotRelativeCommandsOnly || trimmedCommand.startsWith("."));
|
|
3244
|
+
const command = shouldPrefix && typeof trimmedCommand === "string" ? `${converterConfig.projectDirVar}/${trimmedCommand.replace(/^\.\//, "")}` : def.command;
|
|
3242
3245
|
return {
|
|
3243
3246
|
type: def.type ?? "command",
|
|
3244
3247
|
...command !== void 0 && command !== null && { command },
|
|
@@ -3388,7 +3391,8 @@ var CLAUDE_CONVERTER_CONFIG = {
|
|
|
3388
3391
|
supportedEvents: CLAUDE_HOOK_EVENTS,
|
|
3389
3392
|
canonicalToToolEventNames: CANONICAL_TO_CLAUDE_EVENT_NAMES,
|
|
3390
3393
|
toolToCanonicalEventNames: CLAUDE_TO_CANONICAL_EVENT_NAMES,
|
|
3391
|
-
projectDirVar: "$CLAUDE_PROJECT_DIR"
|
|
3394
|
+
projectDirVar: "$CLAUDE_PROJECT_DIR",
|
|
3395
|
+
prefixDotRelativeCommandsOnly: true
|
|
3392
3396
|
};
|
|
3393
3397
|
var ClaudecodeHooks = class _ClaudecodeHooks extends ToolHooks {
|
|
3394
3398
|
constructor(params) {
|
|
@@ -3918,7 +3922,10 @@ function canonicalToGeminicliHooks(config) {
|
|
|
3918
3922
|
const entries = [];
|
|
3919
3923
|
for (const [matcherKey, defs] of byMatcher) {
|
|
3920
3924
|
const hooks = defs.map((def) => {
|
|
3921
|
-
const
|
|
3925
|
+
const commandText = def.command;
|
|
3926
|
+
const trimmedCommand = typeof commandText === "string" ? commandText.trimStart() : void 0;
|
|
3927
|
+
const shouldPrefix = typeof trimmedCommand === "string" && !trimmedCommand.startsWith("$") && trimmedCommand.startsWith(".");
|
|
3928
|
+
const command = shouldPrefix && typeof trimmedCommand === "string" ? `$GEMINI_PROJECT_DIR/${trimmedCommand.replace(/^\.\//, "")}` : def.command;
|
|
3922
3929
|
return {
|
|
3923
3930
|
type: def.type ?? "command",
|
|
3924
3931
|
...command !== void 0 && command !== null && { command },
|
package/dist/cli/index.cjs
CHANGED
|
@@ -2973,7 +2973,10 @@ function canonicalToToolHooks({
|
|
|
2973
2973
|
const entries = [];
|
|
2974
2974
|
for (const [matcherKey, defs] of byMatcher) {
|
|
2975
2975
|
const hooks = defs.map((def) => {
|
|
2976
|
-
const
|
|
2976
|
+
const commandText = def.command;
|
|
2977
|
+
const trimmedCommand = typeof commandText === "string" ? commandText.trimStart() : void 0;
|
|
2978
|
+
const shouldPrefix = typeof trimmedCommand === "string" && !trimmedCommand.startsWith("$") && (!converterConfig.prefixDotRelativeCommandsOnly || trimmedCommand.startsWith("."));
|
|
2979
|
+
const command = shouldPrefix && typeof trimmedCommand === "string" ? `${converterConfig.projectDirVar}/${trimmedCommand.replace(/^\.\//, "")}` : def.command;
|
|
2977
2980
|
return {
|
|
2978
2981
|
type: def.type ?? "command",
|
|
2979
2982
|
...command !== void 0 && command !== null && { command },
|
|
@@ -3123,7 +3126,8 @@ var CLAUDE_CONVERTER_CONFIG = {
|
|
|
3123
3126
|
supportedEvents: CLAUDE_HOOK_EVENTS,
|
|
3124
3127
|
canonicalToToolEventNames: CANONICAL_TO_CLAUDE_EVENT_NAMES,
|
|
3125
3128
|
toolToCanonicalEventNames: CLAUDE_TO_CANONICAL_EVENT_NAMES,
|
|
3126
|
-
projectDirVar: "$CLAUDE_PROJECT_DIR"
|
|
3129
|
+
projectDirVar: "$CLAUDE_PROJECT_DIR",
|
|
3130
|
+
prefixDotRelativeCommandsOnly: true
|
|
3127
3131
|
};
|
|
3128
3132
|
var ClaudecodeHooks = class _ClaudecodeHooks extends ToolHooks {
|
|
3129
3133
|
constructor(params) {
|
|
@@ -3653,7 +3657,10 @@ function canonicalToGeminicliHooks(config) {
|
|
|
3653
3657
|
const entries = [];
|
|
3654
3658
|
for (const [matcherKey, defs] of byMatcher) {
|
|
3655
3659
|
const hooks = defs.map((def) => {
|
|
3656
|
-
const
|
|
3660
|
+
const commandText = def.command;
|
|
3661
|
+
const trimmedCommand = typeof commandText === "string" ? commandText.trimStart() : void 0;
|
|
3662
|
+
const shouldPrefix = typeof trimmedCommand === "string" && !trimmedCommand.startsWith("$") && trimmedCommand.startsWith(".");
|
|
3663
|
+
const command = shouldPrefix && typeof trimmedCommand === "string" ? `$GEMINI_PROJECT_DIR/${trimmedCommand.replace(/^\.\//, "")}` : def.command;
|
|
3657
3664
|
return {
|
|
3658
3665
|
type: def.type ?? "command",
|
|
3659
3666
|
...command !== void 0 && command !== null && { command },
|
|
@@ -20192,7 +20199,7 @@ async function updateCommand(currentVersion, options) {
|
|
|
20192
20199
|
}
|
|
20193
20200
|
|
|
20194
20201
|
// src/cli/index.ts
|
|
20195
|
-
var getVersion = () => "7.12.
|
|
20202
|
+
var getVersion = () => "7.12.2";
|
|
20196
20203
|
var main = async () => {
|
|
20197
20204
|
const program = new import_commander.Command();
|
|
20198
20205
|
const version = getVersion();
|
package/dist/cli/index.js
CHANGED
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
removeTempDirectory,
|
|
61
61
|
stringifyFrontmatter,
|
|
62
62
|
writeFileContent
|
|
63
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-VAGOPUDS.js";
|
|
64
64
|
|
|
65
65
|
// src/cli/index.ts
|
|
66
66
|
import { Command } from "commander";
|
|
@@ -3807,7 +3807,7 @@ async function updateCommand(currentVersion, options) {
|
|
|
3807
3807
|
}
|
|
3808
3808
|
|
|
3809
3809
|
// src/cli/index.ts
|
|
3810
|
-
var getVersion = () => "7.12.
|
|
3810
|
+
var getVersion = () => "7.12.2";
|
|
3811
3811
|
var main = async () => {
|
|
3812
3812
|
const program = new Command();
|
|
3813
3813
|
const version = getVersion();
|
package/dist/index.cjs
CHANGED
|
@@ -3266,7 +3266,10 @@ function canonicalToToolHooks({
|
|
|
3266
3266
|
const entries = [];
|
|
3267
3267
|
for (const [matcherKey, defs] of byMatcher) {
|
|
3268
3268
|
const hooks = defs.map((def) => {
|
|
3269
|
-
const
|
|
3269
|
+
const commandText = def.command;
|
|
3270
|
+
const trimmedCommand = typeof commandText === "string" ? commandText.trimStart() : void 0;
|
|
3271
|
+
const shouldPrefix = typeof trimmedCommand === "string" && !trimmedCommand.startsWith("$") && (!converterConfig.prefixDotRelativeCommandsOnly || trimmedCommand.startsWith("."));
|
|
3272
|
+
const command = shouldPrefix && typeof trimmedCommand === "string" ? `${converterConfig.projectDirVar}/${trimmedCommand.replace(/^\.\//, "")}` : def.command;
|
|
3270
3273
|
return {
|
|
3271
3274
|
type: def.type ?? "command",
|
|
3272
3275
|
...command !== void 0 && command !== null && { command },
|
|
@@ -3416,7 +3419,8 @@ var CLAUDE_CONVERTER_CONFIG = {
|
|
|
3416
3419
|
supportedEvents: CLAUDE_HOOK_EVENTS,
|
|
3417
3420
|
canonicalToToolEventNames: CANONICAL_TO_CLAUDE_EVENT_NAMES,
|
|
3418
3421
|
toolToCanonicalEventNames: CLAUDE_TO_CANONICAL_EVENT_NAMES,
|
|
3419
|
-
projectDirVar: "$CLAUDE_PROJECT_DIR"
|
|
3422
|
+
projectDirVar: "$CLAUDE_PROJECT_DIR",
|
|
3423
|
+
prefixDotRelativeCommandsOnly: true
|
|
3420
3424
|
};
|
|
3421
3425
|
var ClaudecodeHooks = class _ClaudecodeHooks extends ToolHooks {
|
|
3422
3426
|
constructor(params) {
|
|
@@ -3946,7 +3950,10 @@ function canonicalToGeminicliHooks(config) {
|
|
|
3946
3950
|
const entries = [];
|
|
3947
3951
|
for (const [matcherKey, defs] of byMatcher) {
|
|
3948
3952
|
const hooks = defs.map((def) => {
|
|
3949
|
-
const
|
|
3953
|
+
const commandText = def.command;
|
|
3954
|
+
const trimmedCommand = typeof commandText === "string" ? commandText.trimStart() : void 0;
|
|
3955
|
+
const shouldPrefix = typeof trimmedCommand === "string" && !trimmedCommand.startsWith("$") && trimmedCommand.startsWith(".");
|
|
3956
|
+
const command = shouldPrefix && typeof trimmedCommand === "string" ? `$GEMINI_PROJECT_DIR/${trimmedCommand.replace(/^\.\//, "")}` : def.command;
|
|
3950
3957
|
return {
|
|
3951
3958
|
type: def.type ?? "command",
|
|
3952
3959
|
...command !== void 0 && command !== null && { command },
|
package/dist/index.js
CHANGED