@xylabs/ts-scripts-yarn3 7.4.19 → 7.4.21

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 (52) hide show
  1. package/dist/actions/claude-commands.mjs +5 -1
  2. package/dist/actions/claude-commands.mjs.map +1 -1
  3. package/dist/actions/claude-rules.mjs +5 -1
  4. package/dist/actions/claude-rules.mjs.map +1 -1
  5. package/dist/actions/claude-skills.mjs +120 -0
  6. package/dist/actions/claude-skills.mjs.map +1 -0
  7. package/dist/actions/index.mjs +229 -127
  8. package/dist/actions/index.mjs.map +1 -1
  9. package/dist/bin/xy.mjs +239 -140
  10. package/dist/bin/xy.mjs.map +1 -1
  11. package/dist/index.d.ts +5 -1
  12. package/dist/index.mjs +299 -197
  13. package/dist/index.mjs.map +1 -1
  14. package/dist/lib/claudeMdTemplate.mjs +27 -2
  15. package/dist/lib/claudeMdTemplate.mjs.map +1 -1
  16. package/dist/lib/index.mjs +26 -1
  17. package/dist/lib/index.mjs.map +1 -1
  18. package/dist/xy/build-commands/build.mjs +502 -0
  19. package/dist/xy/build-commands/build.mjs.map +1 -0
  20. package/dist/xy/{build → build-commands}/index.mjs +40 -45
  21. package/dist/xy/build-commands/index.mjs.map +1 -0
  22. package/dist/xy/common/claude/commandsCommand.mjs +5 -1
  23. package/dist/xy/common/claude/commandsCommand.mjs.map +1 -1
  24. package/dist/xy/common/claude/index.mjs +111 -2
  25. package/dist/xy/common/claude/index.mjs.map +1 -1
  26. package/dist/xy/common/claude/initCommand.mjs +111 -1
  27. package/dist/xy/common/claude/initCommand.mjs.map +1 -1
  28. package/dist/xy/common/claude/rulesCommand.mjs +5 -1
  29. package/dist/xy/common/claude/rulesCommand.mjs.map +1 -1
  30. package/dist/xy/common/claude/skillsCommand.mjs +129 -0
  31. package/dist/xy/common/claude/skillsCommand.mjs.map +1 -0
  32. package/dist/xy/common/index.mjs +128 -19
  33. package/dist/xy/common/index.mjs.map +1 -1
  34. package/dist/xy/index.mjs +239 -140
  35. package/dist/xy/index.mjs.map +1 -1
  36. package/dist/xy/xy.mjs +239 -140
  37. package/dist/xy/xy.mjs.map +1 -1
  38. package/package.json +2 -2
  39. package/templates/claude/skills/xylabs-e2e-setup/SKILL.md +197 -0
  40. package/dist/xy/build/buildCommand.mjs +0 -161
  41. package/dist/xy/build/buildCommand.mjs.map +0 -1
  42. package/dist/xy/build/compileCommand.mjs +0 -174
  43. package/dist/xy/build/compileCommand.mjs.map +0 -1
  44. package/dist/xy/build/compileOnlyCommand.mjs +0 -175
  45. package/dist/xy/build/compileOnlyCommand.mjs.map +0 -1
  46. package/dist/xy/build/copyAssetsCommand.mjs +0 -84
  47. package/dist/xy/build/copyAssetsCommand.mjs.map +0 -1
  48. package/dist/xy/build/index.mjs.map +0 -1
  49. package/dist/xy/build/rebuildCommand.mjs +0 -114
  50. package/dist/xy/build/rebuildCommand.mjs.map +0 -1
  51. package/dist/xy/build/recompileCommand.mjs +0 -204
  52. package/dist/xy/build/recompileCommand.mjs.map +0 -1
package/dist/bin/xy.mjs CHANGED
@@ -17,7 +17,11 @@ var checkResult = (name, result, level = "error", exitOnFail = false) => {
17
17
  };
18
18
 
19
19
  // src/lib/claudeMdTemplate.ts
20
- import { readdirSync, readFileSync } from "fs";
20
+ import {
21
+ readdirSync,
22
+ readFileSync,
23
+ statSync
24
+ } from "fs";
21
25
  import { createRequire } from "module";
22
26
  import PATH from "path";
23
27
  var require2 = createRequire(import.meta.url);
@@ -25,6 +29,7 @@ var packageRoot = PATH.dirname(require2.resolve("@xylabs/ts-scripts-yarn3/packag
25
29
  var templatesDir = PATH.resolve(packageRoot, "templates", "claude");
26
30
  var XYLABS_RULES_PREFIX = "xylabs-";
27
31
  var XYLABS_COMMANDS_PREFIX = "xylabs-";
32
+ var XYLABS_SKILLS_PREFIX = "xylabs-";
28
33
  var claudeMdRuleTemplates = () => {
29
34
  const rulesDir = PATH.resolve(templatesDir, "rules");
30
35
  const files = readdirSync(rulesDir).filter((f) => f.startsWith(XYLABS_RULES_PREFIX) && f.endsWith(".md"));
@@ -43,6 +48,24 @@ var claudeCommandTemplates = () => {
43
48
  }
44
49
  return result;
45
50
  };
51
+ var claudeSkillTemplates = () => {
52
+ const skillsDir = PATH.resolve(templatesDir, "skills");
53
+ const dirs = readdirSync(skillsDir).filter(
54
+ (f) => f.startsWith(XYLABS_SKILLS_PREFIX) && statSync(PATH.resolve(skillsDir, f)).isDirectory()
55
+ );
56
+ const result = {};
57
+ for (const dir of dirs) {
58
+ const dirPath = PATH.resolve(skillsDir, dir);
59
+ const files = readdirSync(dirPath, { recursive: true, encoding: "utf8" });
60
+ result[dir] = {};
61
+ for (const file of files) {
62
+ if (statSync(PATH.resolve(dirPath, file)).isFile()) {
63
+ result[dir][file] = readFileSync(PATH.resolve(dirPath, file), "utf8");
64
+ }
65
+ }
66
+ }
67
+ return result;
68
+ };
46
69
  var claudeMdProjectTemplate = () => readFileSync(PATH.resolve(templatesDir, "CLAUDE-project.md"), "utf8");
47
70
 
48
71
  // src/lib/deleteGlob.ts
@@ -904,6 +927,84 @@ async function claudeSettings() {
904
927
  return 0;
905
928
  }
906
929
 
930
+ // src/actions/claude-skills.ts
931
+ import {
932
+ existsSync as existsSync7,
933
+ mkdirSync as mkdirSync4,
934
+ readdirSync as readdirSync4,
935
+ readFileSync as readFileSync7,
936
+ rmSync,
937
+ statSync as statSync2,
938
+ writeFileSync as writeFileSync5
939
+ } from "fs";
940
+ import PATH6 from "path";
941
+ import chalk13 from "chalk";
942
+ var syncSkillFiles = (skillsDir) => {
943
+ const templates = claudeSkillTemplates();
944
+ const templateNames = new Set(Object.keys(templates));
945
+ let updated = 0;
946
+ let created = 0;
947
+ for (const [skillName, files] of Object.entries(templates)) {
948
+ const skillDir = PATH6.resolve(skillsDir, skillName);
949
+ mkdirSync4(skillDir, { recursive: true });
950
+ for (const [filename3, content] of Object.entries(files)) {
951
+ const targetPath = PATH6.resolve(skillDir, filename3);
952
+ mkdirSync4(PATH6.dirname(targetPath), { recursive: true });
953
+ const existing = existsSync7(targetPath) ? readFileSync7(targetPath, "utf8") : void 0;
954
+ if (existing === content) continue;
955
+ writeFileSync5(targetPath, content, "utf8");
956
+ if (existing) {
957
+ updated++;
958
+ } else {
959
+ created++;
960
+ }
961
+ }
962
+ }
963
+ return {
964
+ created,
965
+ templateNames,
966
+ updated
967
+ };
968
+ };
969
+ var removeStaleSkills = (skillsDir, templateNames) => {
970
+ const existingSkills = readdirSync4(skillsDir).filter(
971
+ (f) => f.startsWith(XYLABS_SKILLS_PREFIX) && statSync2(PATH6.resolve(skillsDir, f)).isDirectory()
972
+ );
973
+ let removed = 0;
974
+ for (const dir of existingSkills) {
975
+ if (!templateNames.has(dir)) {
976
+ rmSync(PATH6.resolve(skillsDir, dir), { recursive: true });
977
+ removed++;
978
+ }
979
+ }
980
+ return removed;
981
+ };
982
+ var logSkillsResult = (created, updated, removed) => {
983
+ if (created || updated || removed) {
984
+ const parts = [
985
+ created ? `${created} created` : "",
986
+ updated ? `${updated} updated` : "",
987
+ removed ? `${removed} removed` : ""
988
+ ].filter(Boolean);
989
+ console.log(chalk13.green(`.claude/skills/${XYLABS_SKILLS_PREFIX}*/: ${parts.join(", ")}`));
990
+ } else {
991
+ console.log(chalk13.gray(`.claude/skills/${XYLABS_SKILLS_PREFIX}*/: already up to date`));
992
+ }
993
+ };
994
+ var claudeSkills = () => {
995
+ const cwd = INIT_CWD() ?? process.cwd();
996
+ const skillsDir = PATH6.resolve(cwd, ".claude", "skills");
997
+ mkdirSync4(skillsDir, { recursive: true });
998
+ const {
999
+ created,
1000
+ templateNames,
1001
+ updated
1002
+ } = syncSkillFiles(skillsDir);
1003
+ const removed = removeStaleSkills(skillsDir, templateNames);
1004
+ logSkillsResult(created, updated, removed);
1005
+ return 0;
1006
+ };
1007
+
907
1008
  // src/actions/clean.ts
908
1009
  var clean = async ({ verbose, pkg }) => {
909
1010
  return pkg ? await cleanPackage({ pkg, verbose }) : cleanAll({ verbose });
@@ -918,16 +1019,16 @@ var cleanAll = ({ verbose }) => {
918
1019
 
919
1020
  // src/actions/clean-docs.ts
920
1021
  import path from "path";
921
- import chalk13 from "chalk";
1022
+ import chalk14 from "chalk";
922
1023
  var cleanDocs = () => {
923
1024
  const pkgName = process.env.npm_package_name;
924
- console.log(chalk13.green(`Cleaning Docs [${pkgName}]`));
1025
+ console.log(chalk14.green(`Cleaning Docs [${pkgName}]`));
925
1026
  for (const { location } of yarnWorkspaces()) deleteGlob(path.join(location, "docs"));
926
1027
  return 0;
927
1028
  };
928
1029
 
929
1030
  // src/actions/compile.ts
930
- import chalk14 from "chalk";
1031
+ import chalk15 from "chalk";
931
1032
  var compile = ({
932
1033
  verbose,
933
1034
  target,
@@ -968,7 +1069,7 @@ var compileAll = ({
968
1069
  const incrementalOptions = incremental ? ["--since", "-Ap", "--topological-dev"] : ["--parallel", "-Ap", "--topological-dev"];
969
1070
  const jobsOptions = jobs ? ["-j", `${jobs}`] : [];
970
1071
  if (jobs) {
971
- console.log(chalk14.blue(`Jobs set to [${jobs}]`));
1072
+ console.log(chalk15.blue(`Jobs set to [${jobs}]`));
972
1073
  }
973
1074
  const result = runSteps(`Compile${incremental ? "-Incremental" : ""} [All]`, [
974
1075
  ["yarn", [
@@ -982,13 +1083,13 @@ var compileAll = ({
982
1083
  ...targetOptions
983
1084
  ]]
984
1085
  ]);
985
- console.log(`${chalk14.gray("Compiled in")} [${chalk14.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk14.gray("seconds")}`);
1086
+ console.log(`${chalk15.gray("Compiled in")} [${chalk15.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk15.gray("seconds")}`);
986
1087
  return result;
987
1088
  };
988
1089
 
989
1090
  // src/actions/copy-assets.ts
990
1091
  import path2 from "path/posix";
991
- import chalk15 from "chalk";
1092
+ import chalk16 from "chalk";
992
1093
  import cpy from "cpy";
993
1094
  var copyPackageTargetAssets = async (target, name, location) => {
994
1095
  try {
@@ -1011,7 +1112,7 @@ var copyPackageTargetAssets = async (target, name, location) => {
1011
1112
  };
1012
1113
  var copyTargetAssets = async (target, pkg) => {
1013
1114
  const workspaces = yarnWorkspaces();
1014
- console.log(chalk15.green(`Copying Assets [${target.toUpperCase()}]`));
1115
+ console.log(chalk16.green(`Copying Assets [${target.toUpperCase()}]`));
1015
1116
  const workspaceList = workspaces.filter(({ name }) => {
1016
1117
  return pkg === void 0 || name === pkg;
1017
1118
  });
@@ -1095,7 +1196,7 @@ var dead = () => {
1095
1196
  };
1096
1197
 
1097
1198
  // src/actions/deplint/deplint.ts
1098
- import chalk21 from "chalk";
1199
+ import chalk22 from "chalk";
1099
1200
 
1100
1201
  // src/actions/deplint/findFiles.ts
1101
1202
  import fs2 from "fs";
@@ -1300,7 +1401,7 @@ function getExternalImportsFromFiles({
1300
1401
 
1301
1402
  // src/actions/deplint/checkPackage/getUnlistedDependencies.ts
1302
1403
  import { builtinModules } from "module";
1303
- import chalk16 from "chalk";
1404
+ import chalk17 from "chalk";
1304
1405
  function isRuntimeImportListed(imp, name, dependencies, peerDependencies) {
1305
1406
  return dependencies.includes(imp) || imp === name || peerDependencies.includes(imp) || builtinModules.includes(imp);
1306
1407
  }
@@ -1308,7 +1409,7 @@ function isTypeImportListed(imp, name, dependencies, devDependencies, peerDepend
1308
1409
  return dependencies.includes(imp) || imp === name || dependencies.includes(`@types/${imp}`) || peerDependencies.includes(imp) || peerDependencies.includes(`@types/${imp}`) || devDependencies.includes(`@types/${imp}`) || builtinModules.includes(imp);
1309
1410
  }
1310
1411
  function logMissing(name, imp, importPaths) {
1311
- console.log(`[${chalk16.blue(name)}] Missing dependency in package.json: ${chalk16.red(imp)}`);
1412
+ console.log(`[${chalk17.blue(name)}] Missing dependency in package.json: ${chalk17.red(imp)}`);
1312
1413
  if (importPaths[imp]) {
1313
1414
  console.log(` ${importPaths[imp].join("\n ")}`);
1314
1415
  }
@@ -1337,7 +1438,7 @@ function getUnlistedDependencies({ name, location }, {
1337
1438
  }
1338
1439
  if (unlistedDependencies > 0) {
1339
1440
  const packageLocation = `${location}/package.json`;
1340
- console.log(` ${chalk16.yellow(packageLocation)}
1441
+ console.log(` ${chalk17.yellow(packageLocation)}
1341
1442
  `);
1342
1443
  }
1343
1444
  return unlistedDependencies;
@@ -1345,7 +1446,7 @@ function getUnlistedDependencies({ name, location }, {
1345
1446
 
1346
1447
  // src/actions/deplint/checkPackage/getUnlistedDevDependencies.ts
1347
1448
  import { builtinModules as builtinModules2 } from "module";
1348
- import chalk17 from "chalk";
1449
+ import chalk18 from "chalk";
1349
1450
  function getUnlistedDevDependencies({ name, location }, {
1350
1451
  devDependencies,
1351
1452
  dependencies,
@@ -1359,7 +1460,7 @@ function getUnlistedDevDependencies({ name, location }, {
1359
1460
  for (const imp of externalAllImports) {
1360
1461
  if (!distImports.includes(imp) && imp !== name && !dependencies.includes(imp) && !dependencies.includes(`@types/${imp}`) && !peerDependencies.includes(imp) && !peerDependencies.includes(`@types/${imp}`) && !devDependencies.includes(imp) && !devDependencies.includes(`@types/${imp}`) && !builtinModules2.includes(imp)) {
1361
1462
  unlistedDevDependencies++;
1362
- console.log(`[${chalk17.blue(name)}] Missing devDependency in package.json: ${chalk17.red(imp)}`);
1463
+ console.log(`[${chalk18.blue(name)}] Missing devDependency in package.json: ${chalk18.red(imp)}`);
1363
1464
  if (allImportPaths[imp]) {
1364
1465
  console.log(` ${allImportPaths[imp].join("\n ")}`);
1365
1466
  }
@@ -1367,14 +1468,14 @@ function getUnlistedDevDependencies({ name, location }, {
1367
1468
  }
1368
1469
  if (unlistedDevDependencies > 0) {
1369
1470
  const packageLocation = `${location}/package.json`;
1370
- console.log(` ${chalk17.yellow(packageLocation)}
1471
+ console.log(` ${chalk18.yellow(packageLocation)}
1371
1472
  `);
1372
1473
  }
1373
1474
  return unlistedDevDependencies;
1374
1475
  }
1375
1476
 
1376
1477
  // src/actions/deplint/checkPackage/getUnusedDependencies.ts
1377
- import chalk18 from "chalk";
1478
+ import chalk19 from "chalk";
1378
1479
  function getUnusedDependencies({ name, location }, { dependencies }, {
1379
1480
  externalDistImports,
1380
1481
  externalDistTypeImports,
@@ -1386,22 +1487,22 @@ function getUnusedDependencies({ name, location }, { dependencies }, {
1386
1487
  if (!externalDistImports.includes(dep) && !externalDistImports.includes(dep.replace(/^@types\//, "")) && !externalDistTypeImports.includes(dep) && !externalDistTypeImports.includes(dep.replace(/^@types\//, ""))) {
1387
1488
  unusedDependencies++;
1388
1489
  if (externalAllImports.includes(dep)) {
1389
- console.log(`[${chalk18.blue(name)}] dependency should be devDependency in package.json: ${chalk18.red(dep)}`);
1490
+ console.log(`[${chalk19.blue(name)}] dependency should be devDependency in package.json: ${chalk19.red(dep)}`);
1390
1491
  } else {
1391
- console.log(`[${chalk18.blue(name)}] Unused dependency in package.json: ${chalk18.red(dep)}`);
1492
+ console.log(`[${chalk19.blue(name)}] Unused dependency in package.json: ${chalk19.red(dep)}`);
1392
1493
  }
1393
1494
  }
1394
1495
  }
1395
1496
  if (unusedDependencies > 0) {
1396
1497
  const packageLocation = `${location}/package.json`;
1397
- console.log(` ${chalk18.yellow(packageLocation)}
1498
+ console.log(` ${chalk19.yellow(packageLocation)}
1398
1499
  `);
1399
1500
  }
1400
1501
  return unusedDependencies;
1401
1502
  }
1402
1503
 
1403
1504
  // src/actions/deplint/checkPackage/getUnusedDevDependencies.ts
1404
- import chalk19 from "chalk";
1505
+ import chalk20 from "chalk";
1405
1506
 
1406
1507
  // src/actions/deplint/getCliReferencedPackagesFromFiles.ts
1407
1508
  import fs8 from "fs";
@@ -1685,19 +1786,19 @@ function getUnusedDevDependencies({ name, location }, {
1685
1786
  if (dependencies.includes(dep) || peerDependencies.includes(dep)) continue;
1686
1787
  if (!isDevDepUsed(dep, allImports, implicitDeps, requiredPeers, scriptRefs, cliRefs)) {
1687
1788
  unusedDevDependencies++;
1688
- console.log(`[${chalk19.blue(name)}] Unused devDependency in package.json: ${chalk19.red(dep)}`);
1789
+ console.log(`[${chalk20.blue(name)}] Unused devDependency in package.json: ${chalk20.red(dep)}`);
1689
1790
  }
1690
1791
  }
1691
1792
  if (unusedDevDependencies > 0) {
1692
1793
  const packageLocation = `${location}/package.json`;
1693
- console.log(` ${chalk19.yellow(packageLocation)}
1794
+ console.log(` ${chalk20.yellow(packageLocation)}
1694
1795
  `);
1695
1796
  }
1696
1797
  return unusedDevDependencies;
1697
1798
  }
1698
1799
 
1699
1800
  // src/actions/deplint/checkPackage/getUnusedPeerDependencies.ts
1700
- import chalk20 from "chalk";
1801
+ import chalk21 from "chalk";
1701
1802
  function getUnusedPeerDependencies({ name, location }, { peerDependencies, dependencies }, { externalDistImports, externalDistTypeImports }, exclude) {
1702
1803
  let unusedDependencies = 0;
1703
1804
  for (const dep of peerDependencies) {
@@ -1705,15 +1806,15 @@ function getUnusedPeerDependencies({ name, location }, { peerDependencies, depen
1705
1806
  if (!externalDistImports.includes(dep) && !externalDistImports.includes(dep.replace(/^@types\//, "")) && !externalDistTypeImports.includes(dep) && !externalDistTypeImports.includes(dep.replace(/^@types\//, ""))) {
1706
1807
  unusedDependencies++;
1707
1808
  if (dependencies.includes(dep)) {
1708
- console.log(`[${chalk20.blue(name)}] Unused peerDependency [already a dependency] in package.json: ${chalk20.red(dep)}`);
1809
+ console.log(`[${chalk21.blue(name)}] Unused peerDependency [already a dependency] in package.json: ${chalk21.red(dep)}`);
1709
1810
  } else {
1710
- console.log(`[${chalk20.blue(name)}] Unused peerDependency in package.json: ${chalk20.red(dep)}`);
1811
+ console.log(`[${chalk21.blue(name)}] Unused peerDependency in package.json: ${chalk21.red(dep)}`);
1711
1812
  }
1712
1813
  }
1713
1814
  }
1714
1815
  if (unusedDependencies > 0) {
1715
1816
  const packageLocation = `${location}/package.json`;
1716
- console.log(` ${chalk20.yellow(packageLocation)}
1817
+ console.log(` ${chalk21.yellow(packageLocation)}
1717
1818
  `);
1718
1819
  }
1719
1820
  return unusedDependencies;
@@ -1808,19 +1909,19 @@ var deplint = async ({
1808
1909
  });
1809
1910
  }
1810
1911
  if (totalErrors > 0) {
1811
- console.warn(`Deplint: Found ${chalk21.red(totalErrors)} dependency problems. ${chalk21.red("\u2716")}`);
1912
+ console.warn(`Deplint: Found ${chalk22.red(totalErrors)} dependency problems. ${chalk22.red("\u2716")}`);
1812
1913
  } else {
1813
- console.info(`Deplint: Found no dependency problems. ${chalk21.green("\u2714")}`);
1914
+ console.info(`Deplint: Found no dependency problems. ${chalk22.green("\u2714")}`);
1814
1915
  }
1815
1916
  return 0;
1816
1917
  };
1817
1918
 
1818
1919
  // src/actions/deploy.ts
1819
- import { readFileSync as readFileSync7 } from "fs";
1920
+ import { readFileSync as readFileSync8 } from "fs";
1820
1921
  var privatePackageExcludeList = () => {
1821
1922
  const possibleDeployablePackages = yarnWorkspaces().map((workspace) => [
1822
1923
  workspace,
1823
- JSON.parse(readFileSync7(`${workspace.location}/package.json`, { encoding: "utf8" }))
1924
+ JSON.parse(readFileSync8(`${workspace.location}/package.json`, { encoding: "utf8" }))
1824
1925
  ]);
1825
1926
  const privatePackages = possibleDeployablePackages.filter(([_, pkg]) => pkg.private).map(([workspace]) => workspace);
1826
1927
  const excludeList = privatePackages.map((workspace) => `--exclude ${workspace.name}`);
@@ -1840,11 +1941,11 @@ var deploy = () => {
1840
1941
  };
1841
1942
 
1842
1943
  // src/actions/deploy-major.ts
1843
- import { readFileSync as readFileSync8 } from "fs";
1944
+ import { readFileSync as readFileSync9 } from "fs";
1844
1945
  var privatePackageExcludeList2 = () => {
1845
1946
  const possibleDeployablePackages = yarnWorkspaces().map((workspace) => [
1846
1947
  workspace,
1847
- JSON.parse(readFileSync8(`${workspace.location}/package.json`, { encoding: "utf8" }))
1948
+ JSON.parse(readFileSync9(`${workspace.location}/package.json`, { encoding: "utf8" }))
1848
1949
  ]);
1849
1950
  const privatePackages = possibleDeployablePackages.filter(([_, pkg]) => pkg.private).map(([workspace]) => workspace);
1850
1951
  const excludeList = privatePackages.map((workspace) => `--exclude ${workspace.name}`);
@@ -1864,11 +1965,11 @@ var deployMajor = () => {
1864
1965
  };
1865
1966
 
1866
1967
  // src/actions/deploy-minor.ts
1867
- import { readFileSync as readFileSync9 } from "fs";
1968
+ import { readFileSync as readFileSync10 } from "fs";
1868
1969
  var privatePackageExcludeList3 = () => {
1869
1970
  const possibleDeployablePackages = yarnWorkspaces().map((workspace) => [
1870
1971
  workspace,
1871
- JSON.parse(readFileSync9(`${workspace.location}/package.json`, { encoding: "utf8" }))
1972
+ JSON.parse(readFileSync10(`${workspace.location}/package.json`, { encoding: "utf8" }))
1872
1973
  ]);
1873
1974
  const privatePackages = possibleDeployablePackages.filter(([_, pkg]) => pkg.private).map(([workspace]) => workspace);
1874
1975
  const excludeList = privatePackages.map((workspace) => `--exclude ${workspace.name}`);
@@ -1888,11 +1989,11 @@ var deployMinor = () => {
1888
1989
  };
1889
1990
 
1890
1991
  // src/actions/deploy-next.ts
1891
- import { readFileSync as readFileSync10 } from "fs";
1992
+ import { readFileSync as readFileSync11 } from "fs";
1892
1993
  var privatePackageExcludeList4 = () => {
1893
1994
  const possibleDeployablePackages = yarnWorkspaces().map((workspace) => [
1894
1995
  workspace,
1895
- JSON.parse(readFileSync10(`${workspace.location}/package.json`, { encoding: "utf8" }))
1996
+ JSON.parse(readFileSync11(`${workspace.location}/package.json`, { encoding: "utf8" }))
1896
1997
  ]);
1897
1998
  const privatePackages = possibleDeployablePackages.filter(([_, pkg]) => pkg.private).map(([workspace]) => workspace);
1898
1999
  const excludeList = privatePackages.map((workspace) => `--exclude ${workspace.name}`);
@@ -1912,22 +2013,22 @@ var deployNext = () => {
1912
2013
  };
1913
2014
 
1914
2015
  // src/actions/dupdeps.ts
1915
- import chalk22 from "chalk";
2016
+ import chalk23 from "chalk";
1916
2017
  var dupdeps = () => {
1917
- console.log(chalk22.green("Checking all Dependencies for Duplicates"));
2018
+ console.log(chalk23.green("Checking all Dependencies for Duplicates"));
1918
2019
  const allDependencies = parsedPackageJSON()?.dependencies;
1919
2020
  const dependencies = Object.entries(allDependencies).map(([k]) => k);
1920
2021
  return detectDuplicateDependencies(dependencies);
1921
2022
  };
1922
2023
 
1923
2024
  // src/actions/lint.ts
1924
- import chalk23 from "chalk";
2025
+ import chalk24 from "chalk";
1925
2026
  var lintPackage = ({
1926
2027
  pkg,
1927
2028
  fix: fix2,
1928
2029
  verbose
1929
2030
  }) => {
1930
- console.log(chalk23.gray(`${fix2 ? "Fix" : "Lint"} [${pkg}]`));
2031
+ console.log(chalk24.gray(`${fix2 ? "Fix" : "Lint"} [${pkg}]`));
1931
2032
  const start = Date.now();
1932
2033
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [${pkg}]`, [
1933
2034
  ["yarn", [
@@ -1937,7 +2038,7 @@ var lintPackage = ({
1937
2038
  fix2 ? "package-fix" : verbose ? "package-lint-verbose" : "package-lint"
1938
2039
  ]]
1939
2040
  ]);
1940
- console.log(chalk23.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk23.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk23.gray("seconds")}`));
2041
+ console.log(chalk24.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk24.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk24.gray("seconds")}`));
1941
2042
  return result;
1942
2043
  };
1943
2044
  var lint = ({
@@ -1957,13 +2058,13 @@ var lint = ({
1957
2058
  });
1958
2059
  };
1959
2060
  var lintAllPackages = ({ fix: fix2 = false } = {}) => {
1960
- console.log(chalk23.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
2061
+ console.log(chalk24.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
1961
2062
  const start = Date.now();
1962
2063
  const fixOptions = fix2 ? ["--fix"] : [];
1963
2064
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [All-Packages]`, [
1964
2065
  ["yarn", ["eslint", "--cache", "--cache-location", ".eslintcache", "--cache-strategy", "content", ...fixOptions]]
1965
2066
  ]);
1966
- console.log(chalk23.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk23.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk23.gray("seconds")}`));
2067
+ console.log(chalk24.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk24.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk24.gray("seconds")}`));
1967
2068
  return result;
1968
2069
  };
1969
2070
 
@@ -1991,7 +2092,7 @@ var filename = ".gitignore";
1991
2092
  var gitignoreGen = (pkg) => generateIgnoreFiles(filename, pkg);
1992
2093
 
1993
2094
  // src/actions/gitlint.ts
1994
- import chalk24 from "chalk";
2095
+ import chalk25 from "chalk";
1995
2096
  import ParseGitConfig from "parse-git-config";
1996
2097
  var gitlint = () => {
1997
2098
  console.log(`
@@ -2002,7 +2103,7 @@ Gitlint Start [${process.cwd()}]
2002
2103
  const errors = 0;
2003
2104
  const gitConfig = ParseGitConfig.sync();
2004
2105
  const warn = (message) => {
2005
- console.warn(chalk24.yellow(`Warning: ${message}`));
2106
+ console.warn(chalk25.yellow(`Warning: ${message}`));
2006
2107
  warnings++;
2007
2108
  };
2008
2109
  if (gitConfig.core.ignorecase) {
@@ -2022,13 +2123,13 @@ Gitlint Start [${process.cwd()}]
2022
2123
  }
2023
2124
  const resultMessages = [];
2024
2125
  if (valid > 0) {
2025
- resultMessages.push(chalk24.green(`Passed: ${valid}`));
2126
+ resultMessages.push(chalk25.green(`Passed: ${valid}`));
2026
2127
  }
2027
2128
  if (warnings > 0) {
2028
- resultMessages.push(chalk24.yellow(`Warnings: ${warnings}`));
2129
+ resultMessages.push(chalk25.yellow(`Warnings: ${warnings}`));
2029
2130
  }
2030
2131
  if (errors > 0) {
2031
- resultMessages.push(chalk24.red(` Errors: ${errors}`));
2132
+ resultMessages.push(chalk25.red(` Errors: ${errors}`));
2032
2133
  }
2033
2134
  console.warn(`Gitlint Finish [ ${resultMessages.join(" | ")} ]
2034
2135
  `);
@@ -2037,7 +2138,7 @@ Gitlint Start [${process.cwd()}]
2037
2138
 
2038
2139
  // src/actions/gitlint-fix.ts
2039
2140
  import { execSync as execSync3 } from "child_process";
2040
- import chalk25 from "chalk";
2141
+ import chalk26 from "chalk";
2041
2142
  import ParseGitConfig2 from "parse-git-config";
2042
2143
  var gitlintFix = () => {
2043
2144
  console.log(`
@@ -2046,15 +2147,15 @@ Gitlint Fix Start [${process.cwd()}]
2046
2147
  const gitConfig = ParseGitConfig2.sync();
2047
2148
  if (gitConfig.core.ignorecase) {
2048
2149
  execSync3("git config core.ignorecase false", { stdio: "inherit" });
2049
- console.warn(chalk25.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
2150
+ console.warn(chalk26.yellow("\nGitlint Fix: Updated core.ignorecase to be false\n"));
2050
2151
  }
2051
2152
  if (gitConfig.core.autocrlf !== false) {
2052
2153
  execSync3("git config core.autocrlf false", { stdio: "inherit" });
2053
- console.warn(chalk25.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
2154
+ console.warn(chalk26.yellow("\nGitlint Fix: Updated core.autocrlf to be false\n"));
2054
2155
  }
2055
2156
  if (gitConfig.core.eol !== "lf") {
2056
2157
  execSync3("git config core.eol lf", { stdio: "inherit" });
2057
- console.warn(chalk25.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
2158
+ console.warn(chalk26.yellow('\nGitlint Fix: Updated core.eol to be "lf"\n'));
2058
2159
  }
2059
2160
  return 1;
2060
2161
  };
@@ -2065,7 +2166,7 @@ var knip = () => {
2065
2166
  };
2066
2167
 
2067
2168
  // src/actions/license.ts
2068
- import chalk26 from "chalk";
2169
+ import chalk27 from "chalk";
2069
2170
  import { init } from "license-checker";
2070
2171
  var license = async (pkg) => {
2071
2172
  const workspaces = yarnWorkspaces();
@@ -2090,18 +2191,18 @@ var license = async (pkg) => {
2090
2191
  "LGPL-3.0-or-later",
2091
2192
  "Python-2.0"
2092
2193
  ]);
2093
- console.log(chalk26.green("License Checker"));
2194
+ console.log(chalk27.green("License Checker"));
2094
2195
  return (await Promise.all(
2095
2196
  workspaceList.map(({ location, name }) => {
2096
2197
  return new Promise((resolve) => {
2097
2198
  init({ production: true, start: location }, (error, packages) => {
2098
2199
  if (error) {
2099
- console.error(chalk26.red(`License Checker [${name}] Error`));
2100
- console.error(chalk26.gray(error));
2200
+ console.error(chalk27.red(`License Checker [${name}] Error`));
2201
+ console.error(chalk27.gray(error));
2101
2202
  console.log("\n");
2102
2203
  resolve(1);
2103
2204
  } else {
2104
- console.log(chalk26.green(`License Checker [${name}]`));
2205
+ console.log(chalk27.green(`License Checker [${name}]`));
2105
2206
  let count = 0;
2106
2207
  for (const [name2, info] of Object.entries(packages)) {
2107
2208
  const licenses = Array.isArray(info.licenses) ? info.licenses : [info.licenses];
@@ -2117,7 +2218,7 @@ var license = async (pkg) => {
2117
2218
  }
2118
2219
  if (!orLicenseFound) {
2119
2220
  count++;
2120
- console.warn(chalk26.yellow(`${name2}: Package License not allowed [${license2}]`));
2221
+ console.warn(chalk27.yellow(`${name2}: Package License not allowed [${license2}]`));
2121
2222
  }
2122
2223
  }
2123
2224
  }
@@ -2188,7 +2289,7 @@ var rebuild = ({ target }) => {
2188
2289
  };
2189
2290
 
2190
2291
  // src/actions/recompile.ts
2191
- import chalk27 from "chalk";
2292
+ import chalk28 from "chalk";
2192
2293
  var recompile = async ({
2193
2294
  verbose,
2194
2295
  target,
@@ -2224,7 +2325,7 @@ var recompileAll = async ({
2224
2325
  const incrementalOptions = incremental ? ["--since", "-Apt", "--topological-dev"] : ["--parallel", "-Apt", "--topological-dev"];
2225
2326
  const jobsOptions = jobs ? ["-j", `${jobs}`] : [];
2226
2327
  if (jobs) {
2227
- console.log(chalk27.blue(`Jobs set to [${jobs}]`));
2328
+ console.log(chalk28.blue(`Jobs set to [${jobs}]`));
2228
2329
  }
2229
2330
  const result = await runStepsAsync(`Recompile${incremental ? "-Incremental" : ""} [All]`, [
2230
2331
  [
@@ -2255,7 +2356,7 @@ var recompileAll = async ({
2255
2356
  ]
2256
2357
  ]);
2257
2358
  console.log(
2258
- `${chalk27.gray("Recompiled in")} [${chalk27.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk27.gray("seconds")}`
2359
+ `${chalk28.gray("Recompiled in")} [${chalk28.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk28.gray("seconds")}`
2259
2360
  );
2260
2361
  return result;
2261
2362
  };
@@ -2264,7 +2365,7 @@ var recompileAll = async ({
2264
2365
  import {
2265
2366
  closeSync,
2266
2367
  openSync,
2267
- rmSync
2368
+ rmSync as rmSync2
2268
2369
  } from "fs";
2269
2370
  var reinstall = () => {
2270
2371
  console.log("Reinstall [Clear Lock File]");
@@ -2274,7 +2375,7 @@ var reinstall = () => {
2274
2375
  const result = workspaces.map(({ location, name }) => {
2275
2376
  const dist = `${location}/node_modules`;
2276
2377
  try {
2277
- rmSync(dist, { force: true, recursive: true });
2378
+ rmSync2(dist, { force: true, recursive: true });
2278
2379
  return 0;
2279
2380
  } catch (ex) {
2280
2381
  const error = ex;
@@ -2286,13 +2387,13 @@ var reinstall = () => {
2286
2387
  };
2287
2388
 
2288
2389
  // src/actions/relint.ts
2289
- import chalk28 from "chalk";
2390
+ import chalk29 from "chalk";
2290
2391
  var relintPackage = ({
2291
2392
  pkg,
2292
2393
  fix: fix2,
2293
2394
  verbose
2294
2395
  }) => {
2295
- console.log(chalk28.gray(`${fix2 ? "Fix" : "Lint"} [${pkg}]`));
2396
+ console.log(chalk29.gray(`${fix2 ? "Fix" : "Lint"} [${pkg}]`));
2296
2397
  const start = Date.now();
2297
2398
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [${pkg}]`, [
2298
2399
  ["yarn", [
@@ -2302,7 +2403,7 @@ var relintPackage = ({
2302
2403
  fix2 ? "package-fix" : verbose ? "package-lint-verbose" : "package-lint"
2303
2404
  ]]
2304
2405
  ]);
2305
- console.log(chalk28.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk28.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk28.gray("seconds")}`));
2406
+ console.log(chalk29.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk29.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk29.gray("seconds")}`));
2306
2407
  return result;
2307
2408
  };
2308
2409
  var relint = ({
@@ -2322,13 +2423,13 @@ var relint = ({
2322
2423
  });
2323
2424
  };
2324
2425
  var relintAllPackages = ({ fix: fix2 = false } = {}) => {
2325
- console.log(chalk28.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
2426
+ console.log(chalk29.gray(`${fix2 ? "Fix" : "Lint"} [All-Packages]`));
2326
2427
  const start = Date.now();
2327
2428
  const fixOptions = fix2 ? ["--fix"] : [];
2328
2429
  const result = runSteps(`${fix2 ? "Fix" : "Lint"} [All-Packages]`, [
2329
2430
  ["yarn", ["eslint", ...fixOptions]]
2330
2431
  ]);
2331
- console.log(chalk28.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk28.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk28.gray("seconds")}`));
2432
+ console.log(chalk29.gray(`${fix2 ? "Fixed in" : "Linted in"} [${chalk29.magenta(((Date.now() - start) / 1e3).toFixed(2))}] ${chalk29.gray("seconds")}`));
2332
2433
  return result;
2333
2434
  };
2334
2435
 
@@ -2346,10 +2447,10 @@ var sonar = () => {
2346
2447
  };
2347
2448
 
2348
2449
  // src/actions/statics.ts
2349
- import chalk29 from "chalk";
2450
+ import chalk30 from "chalk";
2350
2451
  var DefaultDependencies = ["axios", "@xylabs/pixel", "react", "graphql", "react-router", "@mui/material", "@mui/system"];
2351
2452
  var statics = () => {
2352
- console.log(chalk29.green("Check Required Static Dependencies"));
2453
+ console.log(chalk30.green("Check Required Static Dependencies"));
2353
2454
  const statics2 = parsedPackageJSON()?.xy?.deps?.statics;
2354
2455
  return detectDuplicateDependencies(statics2, DefaultDependencies);
2355
2456
  };
@@ -2397,13 +2498,18 @@ var yarn3Only = () => {
2397
2498
  return 0;
2398
2499
  };
2399
2500
 
2400
- // src/xy/build/buildCommand.ts
2501
+ // src/xy/param.ts
2502
+ var packagePositionalParam = (yargs2) => {
2503
+ return yargs2.positional("package", { describe: "Specific package to target", type: "string" });
2504
+ };
2505
+
2506
+ // src/xy/build-commands/build.ts
2401
2507
  var buildCommand = {
2402
- command: "build [package]",
2403
- describe: "Build - Compile & Lint",
2404
2508
  builder: (yargs2) => {
2405
- return yargs2.positional("package", { describe: "Specific package to build" });
2509
+ return packagePositionalParam(yargs2);
2406
2510
  },
2511
+ command: "build [package]",
2512
+ describe: "Build - Compile & Lint",
2407
2513
  handler: async (argv) => {
2408
2514
  if (argv.verbose) {
2409
2515
  console.log(`Building: ${argv.package ?? "all"}`);
@@ -2417,14 +2523,12 @@ var buildCommand = {
2417
2523
  });
2418
2524
  }
2419
2525
  };
2420
-
2421
- // src/xy/build/compileCommand.ts
2422
2526
  var compileCommand = {
2423
- command: "compile [package]",
2424
- describe: "Compile with Typescript & Copy Images",
2425
2527
  builder: (yargs2) => {
2426
- return yargs2.positional("package", { describe: "Specific package to compile" });
2528
+ return packagePositionalParam(yargs2);
2427
2529
  },
2530
+ command: "compile [package]",
2531
+ describe: "Compile with Typescript & Copy Images",
2428
2532
  handler: (argv) => {
2429
2533
  if (argv.verbose) {
2430
2534
  console.log(`Compiling: ${argv.package ?? "all"}`);
@@ -2438,14 +2542,12 @@ var compileCommand = {
2438
2542
  });
2439
2543
  }
2440
2544
  };
2441
-
2442
- // src/xy/build/compileOnlyCommand.ts
2443
2545
  var compileOnlyCommand = {
2444
- command: "compile-only [package]",
2445
- describe: "Compile with Typescript & Copy Images (No Publint)",
2446
2546
  builder: (yargs2) => {
2447
- return yargs2.positional("package", { describe: "Specific package to compile" });
2547
+ return packagePositionalParam(yargs2);
2448
2548
  },
2549
+ command: "compile-only [package]",
2550
+ describe: "Compile with Typescript & Copy Images (No Publint)",
2449
2551
  handler: (argv) => {
2450
2552
  if (argv.verbose) {
2451
2553
  console.log(`Compiling: ${argv.package ?? "all"}`);
@@ -2460,57 +2562,51 @@ var compileOnlyCommand = {
2460
2562
  });
2461
2563
  }
2462
2564
  };
2463
-
2464
- // src/xy/build/copyAssetsCommand.ts
2465
- var copyAssetsCommand = {
2466
- command: "copy-assets [package]",
2467
- describe: "Copy Assets - Copy the assets from src to dist",
2565
+ var recompileCommand = {
2468
2566
  builder: (yargs2) => {
2469
- return yargs2.positional("package", { describe: "Specific package to copy assets" });
2567
+ return packagePositionalParam(yargs2);
2470
2568
  },
2569
+ command: "recompile [package]",
2570
+ describe: "Re-compile with Typescript & Copy Images",
2471
2571
  handler: async (argv) => {
2472
- if (argv.verbose) console.log(`Copying Assets: ${argv.package ?? "all"}`);
2473
- process.exitCode = await copyAssets({ target: argv.target });
2572
+ if (argv.verbose) {
2573
+ console.log(`Re-compiling: ${argv.package ?? "all"}`);
2574
+ }
2575
+ process.exitCode = await recompile({
2576
+ incremental: !!argv.incremental,
2577
+ jobs: argv.jobs,
2578
+ pkg: argv.package,
2579
+ target: argv.target,
2580
+ verbose: !!argv.verbose
2581
+ });
2474
2582
  }
2475
2583
  };
2476
-
2477
- // src/xy/build/rebuildCommand.ts
2478
2584
  var rebuildCommand = {
2479
- command: "rebuild [package]",
2480
- describe: "Rebuild - Clean, Compile & Lint",
2481
2585
  builder: (yargs2) => {
2482
- return yargs2.positional("package", { describe: "Specific package to rebuild" });
2586
+ return packagePositionalParam(yargs2);
2483
2587
  },
2588
+ command: "rebuild [package]",
2589
+ describe: "Rebuild - Clean, Compile & Lint",
2484
2590
  handler: (argv) => {
2485
2591
  if (argv.verbose) console.log(`Rebuilding: ${argv.package ?? "all"}`);
2486
2592
  process.exitCode = rebuild({ target: argv.target });
2487
2593
  }
2488
2594
  };
2489
-
2490
- // src/xy/build/recompileCommand.ts
2491
- var recompileCommand = {
2492
- command: "recompile [package]",
2493
- describe: "Re-compile with Typescript & Copy Images",
2595
+ var copyAssetsCommand = {
2494
2596
  builder: (yargs2) => {
2495
- return yargs2.positional("package", { describe: "Specific package to re-compile" });
2597
+ return packagePositionalParam(yargs2);
2496
2598
  },
2599
+ command: "copy-assets [package]",
2600
+ describe: "Copy Assets - Copy the assets from src to dist",
2497
2601
  handler: async (argv) => {
2498
- if (argv.verbose) {
2499
- console.log(`Re-compiling: ${argv.package ?? "all"}`);
2500
- }
2501
- process.exitCode = await recompile({
2502
- incremental: !!argv.incremental,
2503
- jobs: argv.jobs,
2504
- pkg: argv.package,
2505
- target: argv.target,
2506
- verbose: !!argv.verbose
2507
- });
2602
+ if (argv.verbose) console.log(`Copying Assets: ${argv.package ?? "all"}`);
2603
+ process.exitCode = await copyAssets({ target: argv.target });
2508
2604
  }
2509
2605
  };
2510
2606
 
2511
- // src/xy/build/index.ts
2607
+ // src/xy/build-commands/index.ts
2512
2608
  var xyBuildCommands = (args) => {
2513
- return args.command(buildCommand).command(compileCommand).command(compileOnlyCommand).command(recompileCommand).command(rebuildCommand).command(copyAssetsCommand);
2609
+ return args.command(buildCommand).command(compileCommand).command(compileOnlyCommand).command(rebuildCommand).command(recompileCommand).command(copyAssetsCommand);
2514
2610
  };
2515
2611
 
2516
2612
  // src/xy/common/claude/commandsCommand.ts
@@ -2543,6 +2639,14 @@ var initCommand = {
2543
2639
  process.exitCode = commandsResult || rulesResult || settingsResult;
2544
2640
  }
2545
2641
  };
2642
+ var initClaudeSkillsCommand = {
2643
+ command: "init:skills",
2644
+ describe: "Initialize Claude skills configuration",
2645
+ handler: () => {
2646
+ const result = claudeSkills();
2647
+ process.exitCode = result;
2648
+ }
2649
+ };
2546
2650
 
2547
2651
  // src/xy/common/claude/rulesCommand.ts
2548
2652
  var rulesCommand = {
@@ -2575,7 +2679,7 @@ var settingsCommand = {
2575
2679
  // src/xy/common/claude/index.ts
2576
2680
  var claudeCommand = {
2577
2681
  builder: (yargs2) => {
2578
- return yargs2.command(commandsCommand).command(initCommand).command(rulesCommand).command(settingsCommand).demandCommand(1, "Please specify a claude subcommand");
2682
+ return yargs2.command(commandsCommand).command(initCommand).command(rulesCommand).command(settingsCommand).command(initClaudeSkillsCommand).demandCommand(1, "Please specify a claude subcommand");
2579
2683
  },
2580
2684
  command: "claude",
2581
2685
  describe: "Claude - Claude Code configuration utilities",
@@ -2593,11 +2697,6 @@ var cleanDocsCommand = {
2593
2697
  }
2594
2698
  };
2595
2699
 
2596
- // src/xy/param.ts
2597
- var packagePositionalParam = (yargs2) => {
2598
- return yargs2.positional("package", { describe: "Specific package to target", type: "string" });
2599
- };
2600
-
2601
2700
  // src/xy/common/deadCommand.ts
2602
2701
  var deadCommand = {
2603
2702
  builder: (yargs2) => {
@@ -2909,7 +3008,7 @@ var xyInstallCommands = (args) => {
2909
3008
  };
2910
3009
 
2911
3010
  // src/xy/lint/cycleCommand.ts
2912
- import chalk30 from "chalk";
3011
+ import chalk31 from "chalk";
2913
3012
  var cycleCommand = {
2914
3013
  command: "cycle [package]",
2915
3014
  describe: "Cycle - Check for dependency cycles",
@@ -2920,12 +3019,12 @@ var cycleCommand = {
2920
3019
  const start = Date.now();
2921
3020
  if (argv.verbose) console.log("Cycle");
2922
3021
  process.exitCode = await cycle({ pkg: argv.package });
2923
- console.log(chalk30.blue(`Finished in ${Date.now() - start}ms`));
3022
+ console.log(chalk31.blue(`Finished in ${Date.now() - start}ms`));
2924
3023
  }
2925
3024
  };
2926
3025
 
2927
3026
  // src/xy/lint/deplintCommand.ts
2928
- import chalk31 from "chalk";
3027
+ import chalk32 from "chalk";
2929
3028
  var deplintCommand = {
2930
3029
  command: "deplint [package]",
2931
3030
  describe: "Deplint - Run Deplint",
@@ -2963,12 +3062,12 @@ var deplintCommand = {
2963
3062
  peerDeps: !!argv.peerDeps,
2964
3063
  verbose: !!argv.verbose
2965
3064
  });
2966
- console.log(chalk31.blue(`Finished in ${Date.now() - start}ms`));
3065
+ console.log(chalk32.blue(`Finished in ${Date.now() - start}ms`));
2967
3066
  }
2968
3067
  };
2969
3068
 
2970
3069
  // src/xy/lint/fixCommand.ts
2971
- import chalk32 from "chalk";
3070
+ import chalk33 from "chalk";
2972
3071
  var fixCommand = {
2973
3072
  command: "fix [package]",
2974
3073
  describe: "Fix - Run Eslint w/fix",
@@ -2979,12 +3078,12 @@ var fixCommand = {
2979
3078
  const start = Date.now();
2980
3079
  if (argv.verbose) console.log("Fix");
2981
3080
  process.exitCode = fix();
2982
- console.log(chalk32.blue(`Finished in ${Date.now() - start}ms`));
3081
+ console.log(chalk33.blue(`Finished in ${Date.now() - start}ms`));
2983
3082
  }
2984
3083
  };
2985
3084
 
2986
3085
  // src/xy/lint/knipCommand.ts
2987
- import chalk33 from "chalk";
3086
+ import chalk34 from "chalk";
2988
3087
  var knipCommand = {
2989
3088
  command: "knip",
2990
3089
  describe: "Knip - Run Knip",
@@ -2995,12 +3094,12 @@ var knipCommand = {
2995
3094
  if (argv.verbose) console.log("Knip");
2996
3095
  const start = Date.now();
2997
3096
  process.exitCode = knip();
2998
- console.log(chalk33.blue(`Knip finished in ${Date.now() - start}ms`));
3097
+ console.log(chalk34.blue(`Knip finished in ${Date.now() - start}ms`));
2999
3098
  }
3000
3099
  };
3001
3100
 
3002
3101
  // src/xy/lint/lintCommand.ts
3003
- import chalk34 from "chalk";
3102
+ import chalk35 from "chalk";
3004
3103
  var lintCommand = {
3005
3104
  command: "lint [package]",
3006
3105
  describe: "Lint - Run Eslint",
@@ -3029,12 +3128,12 @@ var lintCommand = {
3029
3128
  cache: argv.cache,
3030
3129
  verbose: !!argv.verbose
3031
3130
  });
3032
- console.log(chalk34.blue(`Finished in ${Date.now() - start}ms`));
3131
+ console.log(chalk35.blue(`Finished in ${Date.now() - start}ms`));
3033
3132
  }
3034
3133
  };
3035
3134
 
3036
3135
  // src/xy/lint/publintCommand.ts
3037
- import chalk35 from "chalk";
3136
+ import chalk36 from "chalk";
3038
3137
  var publintCommand = {
3039
3138
  command: "publint [package]",
3040
3139
  describe: "Publint - Run Publint",
@@ -3045,12 +3144,12 @@ var publintCommand = {
3045
3144
  if (argv.verbose) console.log("Publint");
3046
3145
  const start = Date.now();
3047
3146
  process.exitCode = await publint({ pkg: argv.package, verbose: !!argv.verbose });
3048
- console.log(chalk35.blue(`Finished in ${Date.now() - start}ms`));
3147
+ console.log(chalk36.blue(`Finished in ${Date.now() - start}ms`));
3049
3148
  }
3050
3149
  };
3051
3150
 
3052
3151
  // src/xy/lint/relintCommand.ts
3053
- import chalk36 from "chalk";
3152
+ import chalk37 from "chalk";
3054
3153
  var relintCommand = {
3055
3154
  command: "relint [package]",
3056
3155
  describe: "Relint - Clean & Lint",
@@ -3061,12 +3160,12 @@ var relintCommand = {
3061
3160
  if (argv.verbose) console.log("Relinting");
3062
3161
  const start = Date.now();
3063
3162
  process.exitCode = relint();
3064
- console.log(chalk36.blue(`Finished in ${Date.now() - start}ms`));
3163
+ console.log(chalk37.blue(`Finished in ${Date.now() - start}ms`));
3065
3164
  }
3066
3165
  };
3067
3166
 
3068
3167
  // src/xy/lint/sonarCommand.ts
3069
- import chalk37 from "chalk";
3168
+ import chalk38 from "chalk";
3070
3169
  var sonarCommand = {
3071
3170
  command: "sonar",
3072
3171
  describe: "Sonar - Run Sonar Check",
@@ -3077,7 +3176,7 @@ var sonarCommand = {
3077
3176
  const start = Date.now();
3078
3177
  if (argv.verbose) console.log("Sonar Check");
3079
3178
  process.exitCode = sonar();
3080
- console.log(chalk37.blue(`Finished in ${Date.now() - start}ms`));
3179
+ console.log(chalk38.blue(`Finished in ${Date.now() - start}ms`));
3081
3180
  }
3082
3181
  };
3083
3182
 
@@ -3087,7 +3186,7 @@ var xyLintCommands = (args) => {
3087
3186
  };
3088
3187
 
3089
3188
  // src/xy/xy.ts
3090
- import chalk38 from "chalk";
3189
+ import chalk39 from "chalk";
3091
3190
 
3092
3191
  // src/xy/xyParseOptions.ts
3093
3192
  import yargs from "yargs";
@@ -3120,8 +3219,8 @@ var xyParseOptions = () => {
3120
3219
  var xy = async () => {
3121
3220
  const options = xyParseOptions();
3122
3221
  return await xyBuildCommands(xyCommonCommands(xyInstallCommands(xyDeployCommands(xyLintCommands(options))))).demandCommand(1).command("*", "", () => {
3123
- console.error(chalk38.yellow(`Command not found [${chalk38.magenta(process.argv[2])}]`));
3124
- console.log(chalk38.gray("Try 'yarn xy --help' for list of commands"));
3222
+ console.error(chalk39.yellow(`Command not found [${chalk39.magenta(process.argv[2])}]`));
3223
+ console.log(chalk39.gray("Try 'yarn xy --help' for list of commands"));
3125
3224
  }).version().help().argv;
3126
3225
  };
3127
3226