@ariestools/toolchain 8.6.12 → 8.7.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 (106) hide show
  1. package/dist/actions/api-exposure/config.d.ts.map +1 -1
  2. package/dist/actions/deplint/packageJsonEditor.d.ts +1 -1
  3. package/dist/actions/deplint/ruleConfig.d.ts.map +1 -1
  4. package/dist/actions/deplint/types.d.ts +1 -1
  5. package/dist/actions/gitlint.d.ts +2 -0
  6. package/dist/actions/gitlint.d.ts.map +1 -1
  7. package/dist/actions/license.d.ts +4 -0
  8. package/dist/actions/license.d.ts.map +1 -1
  9. package/dist/actions/lint.d.ts +11 -2
  10. package/dist/actions/lint.d.ts.map +1 -1
  11. package/dist/actions/lintNext.d.ts +22 -1
  12. package/dist/actions/lintNext.d.ts.map +1 -1
  13. package/dist/actions/lintNextRun.d.ts +36 -0
  14. package/dist/actions/lintNextRun.d.ts.map +1 -0
  15. package/dist/actions/lintNextWorker.d.ts +70 -3
  16. package/dist/actions/lintNextWorker.d.ts.map +1 -1
  17. package/dist/actions/lintPackageFilter.d.ts +44 -0
  18. package/dist/actions/lintPackageFilter.d.ts.map +1 -0
  19. package/dist/actions/lintlint.d.ts +31 -0
  20. package/dist/actions/lintlint.d.ts.map +1 -1
  21. package/dist/actions/node-lint.d.ts +7 -0
  22. package/dist/actions/node-lint.d.ts.map +1 -1
  23. package/dist/actions/package/compile/MonolithConfig.d.ts +23 -4
  24. package/dist/actions/package/compile/MonolithConfig.d.ts.map +1 -1
  25. package/dist/actions/package/compile/PublintConfig.d.ts +4 -2
  26. package/dist/actions/package/compile/PublintConfig.d.ts.map +1 -1
  27. package/dist/actions/package/compile/XyConfig.d.ts +18 -6
  28. package/dist/actions/package/compile/XyConfig.d.ts.map +1 -1
  29. package/dist/actions/package/compile/index.d.ts +1 -0
  30. package/dist/actions/package/compile/index.d.ts.map +1 -1
  31. package/dist/actions/package/compile/monolithCompileEntries.d.ts +8 -6
  32. package/dist/actions/package/compile/monolithCompileEntries.d.ts.map +1 -1
  33. package/dist/actions/package/compile/monolithCompileLayout.d.ts +2 -0
  34. package/dist/actions/package/compile/monolithCompileLayout.d.ts.map +1 -1
  35. package/dist/actions/package/compile/monolithReexport.d.ts +45 -0
  36. package/dist/actions/package/compile/monolithReexport.d.ts.map +1 -0
  37. package/dist/actions/package/compile/packageCompileMonolith.d.ts.map +1 -1
  38. package/dist/actions/package/publintRules.d.ts +4 -1
  39. package/dist/actions/package/publintRules.d.ts.map +1 -1
  40. package/dist/actions/package-lint.d.ts.map +1 -1
  41. package/dist/actions/packman/lint.d.ts +14 -0
  42. package/dist/actions/packman/lint.d.ts.map +1 -1
  43. package/dist/actions/ruleCatalog.d.ts +4 -2
  44. package/dist/actions/ruleCatalog.d.ts.map +1 -1
  45. package/dist/actions/ruleRunner.d.ts +4 -1
  46. package/dist/actions/ruleRunner.d.ts.map +1 -1
  47. package/dist/actions/skills/lint.d.ts +13 -0
  48. package/dist/actions/skills/lint.d.ts.map +1 -1
  49. package/dist/bin/package/build.mjs +708 -138
  50. package/dist/bin/package/build.mjs.map +1 -1
  51. package/dist/bin/package/clean.mjs +214 -47
  52. package/dist/bin/package/clean.mjs.map +1 -1
  53. package/dist/bin/package/compile.mjs +545 -104
  54. package/dist/bin/package/compile.mjs.map +1 -1
  55. package/dist/bin/package/copy-assets-cjs.mjs +214 -47
  56. package/dist/bin/package/copy-assets-cjs.mjs.map +1 -1
  57. package/dist/bin/package/copy-assets-esm.mjs +214 -47
  58. package/dist/bin/package/copy-assets-esm.mjs.map +1 -1
  59. package/dist/bin/package/publint.mjs +387 -84
  60. package/dist/bin/package/publint.mjs.map +1 -1
  61. package/dist/bin/package/recompile.mjs +545 -104
  62. package/dist/bin/package/recompile.mjs.map +1 -1
  63. package/dist/bin/package/sync-layout.mjs +57 -10
  64. package/dist/bin/package/sync-layout.mjs.map +1 -1
  65. package/dist/bin/skills.mjs +135 -91
  66. package/dist/bin/skills.mjs.map +1 -1
  67. package/dist/bin/source-map-explorer.mjs +7 -2
  68. package/dist/bin/source-map-explorer.mjs.map +1 -1
  69. package/dist/bin/xy.mjs +8001 -893
  70. package/dist/bin/xy.mjs.map +1 -1
  71. package/dist/lib/index.d.ts +2 -0
  72. package/dist/lib/index.d.ts.map +1 -1
  73. package/dist/lib/licenseCheck/checkLicenses.d.ts +23 -0
  74. package/dist/lib/licenseCheck/checkLicenses.d.ts.map +1 -0
  75. package/dist/lib/licenseCheck/collectProductionLicenses.d.ts +21 -0
  76. package/dist/lib/licenseCheck/collectProductionLicenses.d.ts.map +1 -0
  77. package/dist/lib/licenseCheck/index.d.ts +4 -0
  78. package/dist/lib/licenseCheck/index.d.ts.map +1 -0
  79. package/dist/lib/licenseCheck/readPackageLicense.d.ts +25 -0
  80. package/dist/lib/licenseCheck/readPackageLicense.d.ts.map +1 -0
  81. package/dist/lib/loadConfig.d.ts +1 -0
  82. package/dist/lib/loadConfig.d.ts.map +1 -1
  83. package/dist/lib/ruleCommandRegistry.d.ts +100 -0
  84. package/dist/lib/ruleCommandRegistry.d.ts.map +1 -0
  85. package/dist/xy/common/gitCommand.d.ts +3 -0
  86. package/dist/xy/common/gitCommand.d.ts.map +1 -0
  87. package/dist/xy/common/gitlintCommand.d.ts +2 -0
  88. package/dist/xy/common/gitlintCommand.d.ts.map +1 -1
  89. package/dist/xy/common/index.d.ts.map +1 -1
  90. package/dist/xy/common/licenseCommand.d.ts.map +1 -1
  91. package/dist/xy/deprecatedCommand.d.ts +2 -0
  92. package/dist/xy/deprecatedCommand.d.ts.map +1 -0
  93. package/dist/xy/lint/cycleCommand.d.ts.map +1 -1
  94. package/dist/xy/lint/index.d.ts.map +1 -1
  95. package/dist/xy/lint/lint/index.d.ts.map +1 -1
  96. package/dist/xy/lint/lint/runCommand.d.ts.map +1 -1
  97. package/dist/xy/lint/lintlintCommand.d.ts +2 -0
  98. package/dist/xy/lint/lintlintCommand.d.ts.map +1 -1
  99. package/dist/xy/lint/nodeCommand.d.ts +3 -0
  100. package/dist/xy/lint/nodeCommand.d.ts.map +1 -0
  101. package/dist/xy/lint/nodeLintCommand.d.ts +2 -0
  102. package/dist/xy/lint/nodeLintCommand.d.ts.map +1 -1
  103. package/dist/xy/lint/publintCommand.d.ts.map +1 -1
  104. package/dist/xy/lint/relintCommand.d.ts.map +1 -1
  105. package/dist/xy/lint/republintCommand.d.ts.map +1 -1
  106. package/package.json +8 -8
@@ -776,7 +776,9 @@ var require_build = /* @__PURE__ */ __commonJSMin(((exports) => {
776
776
  //#endregion
777
777
  //#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
778
778
  var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
779
- let p = process || {}, argv = p.argv || [], env = p.env || {};
779
+ let p = process || {};
780
+ let argv = p.argv || [];
781
+ let env = p.env || {};
780
782
  let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
781
783
  let formatter = (open, close, replace = open) => (input) => {
782
784
  let string = "" + input, index = string.indexOf(close, open.length);
@@ -3946,7 +3948,8 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
3946
3948
  } else throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
3947
3949
  return "\\" + handle + common.repeat("0", length - string.length) + string;
3948
3950
  }
3949
- var QUOTING_TYPE_SINGLE = 1, QUOTING_TYPE_DOUBLE = 2;
3951
+ var QUOTING_TYPE_SINGLE = 1;
3952
+ var QUOTING_TYPE_DOUBLE = 2;
3950
3953
  function State(options) {
3951
3954
  this.schema = options["schema"] || DEFAULT_SCHEMA;
3952
3955
  this.indent = Math.max(1, options["indent"] || 2);
@@ -4027,7 +4030,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4027
4030
  function needIndentIndicator(string) {
4028
4031
  return /^\n* /.test(string);
4029
4032
  }
4030
- var STYLE_PLAIN = 1, STYLE_SINGLE = 2, STYLE_LITERAL = 3, STYLE_FOLDED = 4, STYLE_DOUBLE = 5;
4033
+ var STYLE_PLAIN = 1;
4034
+ var STYLE_SINGLE = 2;
4035
+ var STYLE_LITERAL = 3;
4036
+ var STYLE_FOLDED = 4;
4037
+ var STYLE_DOUBLE = 5;
4031
4038
  function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
4032
4039
  var i;
4033
4040
  var char = 0;
@@ -5328,6 +5335,46 @@ const loadConfig = async (params) => {
5328
5335
  return deepMerge(configState.config, params ?? {});
5329
5336
  };
5330
5337
  //#endregion
5338
+ //#region src/actions/package/compile/monolithReexport.ts
5339
+ function normalizeReexportTargets(value) {
5340
+ if (value === void 0) return [];
5341
+ return Array.isArray(value) ? value : [value];
5342
+ }
5343
+ /** Configured `reexport` targets for a module, if any. */
5344
+ function moduleReexportTargets(mod) {
5345
+ return normalizeReexportTargets(mod.reexport);
5346
+ }
5347
+ function moduleHasReexport(mod) {
5348
+ return moduleReexportTargets(mod).length > 0;
5349
+ }
5350
+ /**
5351
+ * Master-barrel re-export targets for a module: explicit `barrelFrom`, else
5352
+ * `reexport`, else `#<name>`.
5353
+ */
5354
+ function moduleBarrelTargets(mod) {
5355
+ const fromBarrel = normalizeReexportTargets(mod.barrelFrom);
5356
+ if (fromBarrel.length > 0) return fromBarrel;
5357
+ const fromReexport = moduleReexportTargets(mod);
5358
+ if (fromReexport.length > 0) return fromReexport;
5359
+ return [`#${mod.name}`];
5360
+ }
5361
+ /**
5362
+ * Subpath shim re-export targets: explicit `shimFrom`, else `reexport`, else
5363
+ * `#<name>`.
5364
+ */
5365
+ function moduleShimTargets(mod) {
5366
+ const fromShim = normalizeReexportTargets(mod.shimFrom);
5367
+ if (fromShim.length > 0) return fromShim;
5368
+ const fromReexport = moduleReexportTargets(mod);
5369
+ if (fromReexport.length > 0) return fromReexport;
5370
+ return [`#${mod.name}`];
5371
+ }
5372
+ /** Builds a pure star-reexport TypeScript (or mjs) source body (no header). */
5373
+ function buildStarReexportLines(targets, options = {}) {
5374
+ const semi = options.semi === false ? "" : ";";
5375
+ return `${targets.map((target) => `export * from '${target}'${semi}`).join("\n")}\n`;
5376
+ }
5377
+ //#endregion
5331
5378
  //#region src/actions/package/compile/monolithCompileLayout.ts
5332
5379
  /**
5333
5380
  * Layout generation for `compile.mode: 'monolith'` — a 1:1 port of the
@@ -5393,10 +5440,7 @@ function buildIndexTs(modules, config) {
5393
5440
  const hasConditional = Object.keys(config.conditionalImports ?? {}).length > 0;
5394
5441
  const barrelModules = modules.filter((mod) => mod.barrel ?? false).toSorted((a, b) => a.name.localeCompare(b.name));
5395
5442
  const lines = (config.barrelImports ?? []).map((spec) => `export * from '${spec}'`);
5396
- for (const mod of barrelModules) {
5397
- const target = mod.barrelFrom ?? `#${mod.name}`;
5398
- lines.push(`export * from '${target}'`);
5399
- }
5443
+ for (const mod of barrelModules) for (const target of moduleBarrelTargets(mod)) lines.push(`export * from '${target}'`);
5400
5444
  return `${GENERATED_HEADER}${hasConditional ? "/* eslint-disable @typescript-eslint/ban-ts-comment -- conditional package imports */\n// @ts-nocheck\n" : ""}${lines.join("\n")}
5401
5445
  `;
5402
5446
  }
@@ -5406,9 +5450,11 @@ function buildModelTs(modules) {
5406
5450
  `;
5407
5451
  }
5408
5452
  function buildModuleShim(mod) {
5409
- const target = mod.shimFrom ?? `#${mod.name}`;
5410
- return `${GENERATED_HEADER}export * from '${target}'
5411
- `;
5453
+ return `${GENERATED_HEADER}${buildStarReexportLines(moduleShimTargets(mod), { semi: false })}`;
5454
+ }
5455
+ /** Generated module body for facade modules with `reexport` targets. */
5456
+ function buildModuleReexportIndex(mod) {
5457
+ return `${GENERATED_HEADER}${buildStarReexportLines(moduleReexportTargets(mod), { semi: false })}`;
5412
5458
  }
5413
5459
  function buildModelShim(mod) {
5414
5460
  return `${GENERATED_HEADER}export type * from '#${mod.name}/model'
@@ -5463,6 +5509,7 @@ function syncMonolithLayout(packageDir, config, options = {}) {
5463
5509
  if (!(config.index?.custom ?? false)) writeOrCheck(PATH.join(packageDir, "src/index.ts"), buildIndexTs(modules, config));
5464
5510
  if (monolithHasModelBarrel(config)) writeOrCheck(PATH.join(packageDir, "src/model.ts"), buildModelTs(modules));
5465
5511
  for (const mod of modules) {
5512
+ if (moduleHasReexport(mod)) writeOrCheck(PATH.join(packageDir, "src", "modules", mod.name, "index.ts"), buildModuleReexportIndex(mod));
5466
5513
  if (!(mod.export ?? false)) continue;
5467
5514
  writeOrCheck(PATH.join(packageDir, `src/${mod.name}.ts`), buildModuleShim(mod));
5468
5515
  if (mod.model ?? false) writeOrCheck(PATH.join(packageDir, `src/${mod.name}.model.ts`), buildModelShim(mod));