rulesync 15.0.1 → 15.1.0

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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- const require_import = require("../import-DRN7goJ_.cjs");
2
+ const require_import = require("../import-CVk4I0-A.cjs");
3
3
  let commander = require("commander");
4
4
  let zod_mini = require("zod/mini");
5
5
  let node_fs_promises = require("node:fs/promises");
@@ -3783,7 +3783,7 @@ async function addCommand(logger, options) {
3783
3783
  * Calculate the total count from a result object
3784
3784
  */
3785
3785
  function calculateTotalCount(result) {
3786
- return result.rulesCount + result.ignoreCount + result.mcpCount + result.commandsCount + result.subagentsCount + result.skillsCount + result.hooksCount + result.permissionsCount + result.checksCount;
3786
+ return result.rulesCount + result.ignoreCount + result.mcpCount + result.commandsCount + result.subagentsCount + result.skillsCount + result.hooksCount + result.permissionsCount + result.checksCount + (result.activationCount ?? 0);
3787
3787
  }
3788
3788
  //#endregion
3789
3789
  //#region src/cli/commands/convert.ts
@@ -4444,6 +4444,10 @@ function buildSummaryParts(result) {
4444
4444
  {
4445
4445
  count: result.checksCount,
4446
4446
  label: "checks"
4447
+ },
4448
+ {
4449
+ count: result.activationCount,
4450
+ label: "Hermes activation files"
4447
4451
  }
4448
4452
  ];
4449
4453
  const parts = [];
@@ -4501,6 +4505,10 @@ async function generateCommand(logger, options) {
4501
4505
  rules: {
4502
4506
  count: result.rulesCount,
4503
4507
  paths: result.rulesPaths
4508
+ },
4509
+ activation: {
4510
+ count: result.activationCount,
4511
+ paths: result.activationPaths
4504
4512
  }
4505
4513
  };
4506
4514
  const featureLabels = {
@@ -4512,7 +4520,8 @@ async function generateCommand(logger, options) {
4512
4520
  skills: (count) => `${count === 1 ? "skill" : "skills"}`,
4513
4521
  hooks: (count) => `${count === 1 ? "hooks file" : "hooks files"}`,
4514
4522
  permissions: (count) => `${count === 1 ? "permissions file" : "permissions files"}`,
4515
- checks: (count) => `${count === 1 ? "check" : "checks"}`
4523
+ checks: (count) => `${count === 1 ? "check" : "checks"}`,
4524
+ activation: (count) => `${count === 1 ? "Hermes activation file" : "Hermes activation files"}`
4516
4525
  };
4517
4526
  for (const [feature, data] of Object.entries(featureResults)) logFeatureResult(logger, {
4518
4527
  count: data.count,
@@ -7190,6 +7199,7 @@ function buildSuccessResponse$1(params) {
7190
7199
  hooksCount: generateResult.hooksCount,
7191
7200
  permissionsCount: generateResult.permissionsCount,
7192
7201
  checksCount: generateResult.checksCount,
7202
+ activationCount: generateResult.activationCount,
7193
7203
  totalCount
7194
7204
  },
7195
7205
  config: {
@@ -8981,7 +8991,7 @@ function wrapCommand$1({ name, errorCode, handler, getVersion, loggerFactory = c
8981
8991
  }
8982
8992
  //#endregion
8983
8993
  //#region src/cli/program.ts
8984
- const getVersion = () => "15.0.1";
8994
+ const getVersion = () => "15.1.0";
8985
8995
  const FEATURES_HELP = `${require_import.ALL_FEATURES.join(",")}; ignore is deprecated, use permissions`;
8986
8996
  function wrapCommand(name, errorCode, handler) {
8987
8997
  return wrapCommand$1({
@@ -1 +1 @@
1
- export { };
1
+ export {}
@@ -1 +1 @@
1
- export { };
1
+ export {}
package/dist/cli/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { $ as assertDirectoryIfExists, $t as RULESYNC_SOURCES_LOCK_RELATIVE_FILE_PATH, A as RulesyncMcp, At as RULESYNC_CHECKS_RELATIVE_DIR_PATH, B as stringifyFrontmatter, Bt as RULESYNC_LOCAL_CONFIG_RELATIVE_FILE_PATH, C as RulesyncSubagent, Ct as ALL_TOOL_TARGETS, D as RulesyncRule, Dt as MAX_FILE_SIZE, E as RulesyncSkillFrontmatterSchema, Et as ToolTargetSchema, F as parseJsonc, Ft as RULESYNC_CURATED_SKILLS_RELATIVE_DIR_PATH, G as SourceEntrySchema, Gt as RULESYNC_NPM_SOURCES_LOCK_RELATIVE_FILE_PATH, H as SKILL_FILE_NAME$1, Ht as RULESYNC_MCP_LEGACY_FILE_NAME, I as RulesyncCommand, It as RULESYNC_HOOKS_FILE_NAME, J as JsonLogger, Jt as RULESYNC_PERMISSIONS_RELATIVE_FILE_PATH, K as findControlCharacter, Kt as RULESYNC_PERMISSIONS_FILE_NAME, L as RulesyncCommandFrontmatterSchema, Lt as RULESYNC_HOOKS_LEGACY_FILE_NAME, M as RulesyncHooks, Mt as RULESYNC_CONFIG_RELATIVE_FILE_PATH, N as getRulesyncSourceCandidates, Nt as RULESYNC_CONFIG_SCHEMA_URL, O as RulesyncRuleFrontmatterSchema, Ot as RULESYNC_AIIGNORE_FILE_NAME, P as resolveRulesyncSourceWritePath, Pt as RULESYNC_CURATED_RULES_RELATIVE_DIR_PATH, Q as ErrorCodes, Qt as RULESYNC_SKILLS_RELATIVE_DIR_PATH, R as RulesyncCheck, Rt as RULESYNC_HOOKS_RELATIVE_FILE_PATH, S as getLocalSkillDirNames, St as writeFileContent, T as RulesyncSkill, Tt as PACKAGING_TOOL_TARGETS, U as ConfigResolver, Ut as RULESYNC_MCP_RELATIVE_FILE_PATH, V as loadYaml, Vt as RULESYNC_MCP_FILE_NAME, W as ConfigFileSchema, Wt as RULESYNC_MCP_SCHEMA_URL, X as warnOnConflictingFlags, Xt as RULESYNC_RELATIVE_DIR_PATH, Y as fallbackLogger, Yt as RULESYNC_PERMISSIONS_SCHEMA_URL, Z as CLIError, Zt as RULESYNC_RULES_RELATIVE_DIR_PATH, _ as CLAUDECODE_LOCAL_RULE_FILE_NAME, _t as removeFileStrict, a as convertFromTool, at as ensureDir, b as CLAUDECODE_SKILLS_DIR_PATH, bt as runWithDirectoryRollback, c as SubagentsProcessor, ct as getFileSize, d as IgnoreProcessor, dt as listDirectoryFiles, en as RULESYNC_SUBAGENTS_RELATIVE_DIR_PATH, et as assertTreeContainsNoSymlinks, f as HooksProcessor, ft as readFileContent, g as CLAUDECODE_DIR, gt as removeFile, h as CODEXCLI_DIR, ht as removeDirectoryStrict, i as getProcessorRegistryEntry, it as directoryExists, j as RulesyncIgnore, jt as RULESYNC_COMMANDS_RELATIVE_DIR_PATH, k as RulesyncPermissions, kt as RULESYNC_AIIGNORE_RELATIVE_FILE_PATH, l as SkillsProcessor, lt as getHomeDirectory, m as CODEXCLI_BASH_RULES_FILE_NAME, mt as removeDirectory, n as checkRulesyncDirExists, nn as ALL_FEATURES_WITH_WILDCARD, nt as checkPathTraversal, o as isPackagingToolTarget, ot as fileExists, p as CommandsProcessor, pt as readFileContentOrNull, q as ConsoleLogger, qt as RULESYNC_PERMISSIONS_LEGACY_FILE_NAME, r as generate, rn as formatError, rt as createTempDirectory, s as RulesProcessor, st as findFilesByGlobs, t as importFromTool, tn as ALL_FEATURES, tt as assertWritablePathInsideRoot, u as McpProcessor, ut as isSymlink, v as CLAUDECODE_MEMORIES_DIR_NAME, vt as removeTempDirectory, w as RulesyncSubagentFrontmatterSchema, wt as ALL_TOOL_TARGETS_WITH_WILDCARD, x as ChecksProcessor, xt as toPosixPath, y as CLAUDECODE_SETTINGS_LOCAL_FILE_NAME, yt as resolvePath, z as RulesyncCheckFrontmatterSchema, zt as RULESYNC_IGNORE_RELATIVE_FILE_PATH } from "../import-BuxzyDyH.js";
2
+ import { $ as assertDirectoryIfExists, $t as RULESYNC_SOURCES_LOCK_RELATIVE_FILE_PATH, A as RulesyncMcp, At as RULESYNC_CHECKS_RELATIVE_DIR_PATH, B as stringifyFrontmatter, Bt as RULESYNC_LOCAL_CONFIG_RELATIVE_FILE_PATH, C as RulesyncSubagent, Ct as ALL_TOOL_TARGETS, D as RulesyncRule, Dt as MAX_FILE_SIZE, E as RulesyncSkillFrontmatterSchema, Et as ToolTargetSchema, F as parseJsonc, Ft as RULESYNC_CURATED_SKILLS_RELATIVE_DIR_PATH, G as SourceEntrySchema, Gt as RULESYNC_NPM_SOURCES_LOCK_RELATIVE_FILE_PATH, H as SKILL_FILE_NAME$1, Ht as RULESYNC_MCP_LEGACY_FILE_NAME, I as RulesyncCommand, It as RULESYNC_HOOKS_FILE_NAME, J as JsonLogger, Jt as RULESYNC_PERMISSIONS_RELATIVE_FILE_PATH, K as findControlCharacter, Kt as RULESYNC_PERMISSIONS_FILE_NAME, L as RulesyncCommandFrontmatterSchema, Lt as RULESYNC_HOOKS_LEGACY_FILE_NAME, M as RulesyncHooks, Mt as RULESYNC_CONFIG_RELATIVE_FILE_PATH, N as getRulesyncSourceCandidates, Nt as RULESYNC_CONFIG_SCHEMA_URL, O as RulesyncRuleFrontmatterSchema, Ot as RULESYNC_AIIGNORE_FILE_NAME, P as resolveRulesyncSourceWritePath, Pt as RULESYNC_CURATED_RULES_RELATIVE_DIR_PATH, Q as ErrorCodes, Qt as RULESYNC_SKILLS_RELATIVE_DIR_PATH, R as RulesyncCheck, Rt as RULESYNC_HOOKS_RELATIVE_FILE_PATH, S as getLocalSkillDirNames, St as writeFileContent, T as RulesyncSkill, Tt as PACKAGING_TOOL_TARGETS, U as ConfigResolver, Ut as RULESYNC_MCP_RELATIVE_FILE_PATH, V as loadYaml, Vt as RULESYNC_MCP_FILE_NAME, W as ConfigFileSchema, Wt as RULESYNC_MCP_SCHEMA_URL, X as warnOnConflictingFlags, Xt as RULESYNC_RELATIVE_DIR_PATH, Y as fallbackLogger, Yt as RULESYNC_PERMISSIONS_SCHEMA_URL, Z as CLIError, Zt as RULESYNC_RULES_RELATIVE_DIR_PATH, _ as CLAUDECODE_LOCAL_RULE_FILE_NAME, _t as removeFileStrict, a as convertFromTool, at as ensureDir, b as CLAUDECODE_SKILLS_DIR_PATH, bt as runWithDirectoryRollback, c as SubagentsProcessor, ct as getFileSize, d as IgnoreProcessor, dt as listDirectoryFiles, en as RULESYNC_SUBAGENTS_RELATIVE_DIR_PATH, et as assertTreeContainsNoSymlinks, f as HooksProcessor, ft as readFileContent, g as CLAUDECODE_DIR, gt as removeFile, h as CODEXCLI_DIR, ht as removeDirectoryStrict, i as getProcessorRegistryEntry, it as directoryExists, j as RulesyncIgnore, jt as RULESYNC_COMMANDS_RELATIVE_DIR_PATH, k as RulesyncPermissions, kt as RULESYNC_AIIGNORE_RELATIVE_FILE_PATH, l as SkillsProcessor, lt as getHomeDirectory, m as CODEXCLI_BASH_RULES_FILE_NAME, mt as removeDirectory, n as checkRulesyncDirExists, nn as ALL_FEATURES_WITH_WILDCARD, nt as checkPathTraversal, o as isPackagingToolTarget, ot as fileExists, p as CommandsProcessor, pt as readFileContentOrNull, q as ConsoleLogger, qt as RULESYNC_PERMISSIONS_LEGACY_FILE_NAME, r as generate, rn as formatError, rt as createTempDirectory, s as RulesProcessor, st as findFilesByGlobs, t as importFromTool, tn as ALL_FEATURES, tt as assertWritablePathInsideRoot, u as McpProcessor, ut as isSymlink, v as CLAUDECODE_MEMORIES_DIR_NAME, vt as removeTempDirectory, w as RulesyncSubagentFrontmatterSchema, wt as ALL_TOOL_TARGETS_WITH_WILDCARD, x as ChecksProcessor, xt as toPosixPath, y as CLAUDECODE_SETTINGS_LOCAL_FILE_NAME, yt as resolvePath, z as RulesyncCheckFrontmatterSchema, zt as RULESYNC_IGNORE_RELATIVE_FILE_PATH } from "../import-WWoS8Wv4.js";
3
3
  import { Command } from "commander";
4
4
  import { nonnegative, optional, refine, z } from "zod/mini";
5
5
  import { cp, mkdtemp, realpath, rm } from "node:fs/promises";
@@ -3781,7 +3781,7 @@ async function addCommand(logger, options) {
3781
3781
  * Calculate the total count from a result object
3782
3782
  */
3783
3783
  function calculateTotalCount(result) {
3784
- return result.rulesCount + result.ignoreCount + result.mcpCount + result.commandsCount + result.subagentsCount + result.skillsCount + result.hooksCount + result.permissionsCount + result.checksCount;
3784
+ return result.rulesCount + result.ignoreCount + result.mcpCount + result.commandsCount + result.subagentsCount + result.skillsCount + result.hooksCount + result.permissionsCount + result.checksCount + (result.activationCount ?? 0);
3785
3785
  }
3786
3786
  //#endregion
3787
3787
  //#region src/cli/commands/convert.ts
@@ -4442,6 +4442,10 @@ function buildSummaryParts(result) {
4442
4442
  {
4443
4443
  count: result.checksCount,
4444
4444
  label: "checks"
4445
+ },
4446
+ {
4447
+ count: result.activationCount,
4448
+ label: "Hermes activation files"
4445
4449
  }
4446
4450
  ];
4447
4451
  const parts = [];
@@ -4499,6 +4503,10 @@ async function generateCommand(logger, options) {
4499
4503
  rules: {
4500
4504
  count: result.rulesCount,
4501
4505
  paths: result.rulesPaths
4506
+ },
4507
+ activation: {
4508
+ count: result.activationCount,
4509
+ paths: result.activationPaths
4502
4510
  }
4503
4511
  };
4504
4512
  const featureLabels = {
@@ -4510,7 +4518,8 @@ async function generateCommand(logger, options) {
4510
4518
  skills: (count) => `${count === 1 ? "skill" : "skills"}`,
4511
4519
  hooks: (count) => `${count === 1 ? "hooks file" : "hooks files"}`,
4512
4520
  permissions: (count) => `${count === 1 ? "permissions file" : "permissions files"}`,
4513
- checks: (count) => `${count === 1 ? "check" : "checks"}`
4521
+ checks: (count) => `${count === 1 ? "check" : "checks"}`,
4522
+ activation: (count) => `${count === 1 ? "Hermes activation file" : "Hermes activation files"}`
4514
4523
  };
4515
4524
  for (const [feature, data] of Object.entries(featureResults)) logFeatureResult(logger, {
4516
4525
  count: data.count,
@@ -7188,6 +7197,7 @@ function buildSuccessResponse$1(params) {
7188
7197
  hooksCount: generateResult.hooksCount,
7189
7198
  permissionsCount: generateResult.permissionsCount,
7190
7199
  checksCount: generateResult.checksCount,
7200
+ activationCount: generateResult.activationCount,
7191
7201
  totalCount
7192
7202
  },
7193
7203
  config: {
@@ -8979,7 +8989,7 @@ function wrapCommand$1({ name, errorCode, handler, getVersion, loggerFactory = c
8979
8989
  }
8980
8990
  //#endregion
8981
8991
  //#region src/cli/program.ts
8982
- const getVersion = () => "15.0.1";
8992
+ const getVersion = () => "15.1.0";
8983
8993
  const FEATURES_HELP = `${ALL_FEATURES.join(",")}; ignore is deprecated, use permissions`;
8984
8994
  function wrapCommand(name, errorCode, handler) {
8985
8995
  return wrapCommand$1({