@alessandroraffa/tangyr 0.10.0 → 0.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -28867,12 +28867,12 @@ function runSyncCommand(options, logger) {
28867
28867
  printManifestDiff(logger, kitInfo.name, kitSync.diff);
28868
28868
  }
28869
28869
  const allMappings = mappings ?? (targets.includes("claude-code") ? loadMappings(sourceRoot, config, configDir) : void 0);
28870
+ const claudeRoots = targets.includes("claude-code") && syncOptions.scope === "global" && allMappings ? resolveClaudeGlobalRoots({
28871
+ flag: options.claudeConfigDir,
28872
+ config: config.claudeCodeGlobalPaths
28873
+ }) : void 0;
28870
28874
  for (const target of targets) {
28871
28875
  if (target === "claude-code") {
28872
- const claudeRoots = syncOptions.scope === "global" && allMappings ? resolveClaudeGlobalRoots({
28873
- flag: options.claudeConfigDir,
28874
- config: config.claudeCodeGlobalPaths
28875
- }) : void 0;
28876
28876
  if (claudeRoots && claudeRoots.length > 1) {
28877
28877
  for (const claudeRoot of claudeRoots) {
28878
28878
  logger.info(` claude-code: syncing root ${claudeRoot}`);
@@ -28990,9 +28990,6 @@ function runSyncCommand(options, logger) {
28990
28990
  }
28991
28991
  writeLossReport(options.lossReport, lossReport);
28992
28992
  printOutcomeTable(results);
28993
- exitOnErrorSeverityLoss(lossReport, logger, {
28994
- ignoreErrors: options.ignoreErrors ?? false
28995
- });
28996
28993
  if (kitInfo && kitSync && !options.dryRun) {
28997
28994
  cleanupRemovedManagedArtifacts(
28998
28995
  config,
@@ -29002,11 +28999,17 @@ function runSyncCommand(options, logger) {
29002
28999
  kitSync.diff.removed,
29003
29000
  logger
29004
29001
  );
29002
+ if (claudeRoots && claudeRoots.length > 0) {
29003
+ kitSync.manifest.claudeCodeGlobalRoots = claudeRoots;
29004
+ }
29005
29005
  updateManifest(kitInfo, kitSync);
29006
29006
  logger.info(
29007
29007
  `Sync complete for kit '${kitInfo.name}': ${kitSync.diff.added.length} added, ${kitSync.diff.modified.length} modified, ${kitSync.diff.removed.length} removed, ${kitSync.diff.unchanged.length} unchanged.`
29008
29008
  );
29009
29009
  }
29010
+ exitOnErrorSeverityLoss(lossReport, logger, {
29011
+ ignoreErrors: options.ignoreErrors ?? false
29012
+ });
29010
29013
  }
29011
29014
  function toSyncOptions(options, config) {
29012
29015
  const component = options.component ? validateComponent(options.component) : void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alessandroraffa/tangyr",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "CLI for the Tangyr discipline — install and manage operating kits for AI coding tools",
5
5
  "license": "MIT",
6
6
  "type": "module",