@nuucognition/flint-cli 0.5.6-dev.10 → 0.5.6-dev.11

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,6 +1,6 @@
1
1
  import {
2
2
  readFlintToml
3
- } from "./chunk-LLLVBA4Q.js";
3
+ } from "./chunk-DSRNHRUX.js";
4
4
 
5
5
  // ../../packages/flint/dist/chunk-V7QRWUHU.js
6
6
  import { readdir, readFile, mkdir, writeFile, rm, stat, copyFile } from "fs/promises";
@@ -218,7 +218,7 @@ function getDisambiguatedExportName(flintPath, sourcePath, baseName) {
218
218
  return `${baseName} (${dirLabel})`;
219
219
  }
220
220
  async function scanExports(flintPath) {
221
- const { readFlintToml: readFlintToml2 } = await import("./mesh-config-NTGFUNZL-BZ2GO3JY.js");
221
+ const { readFlintToml: readFlintToml2 } = await import("./mesh-config-NTGFUNZL-T5YSX3S3.js");
222
222
  const config = await readFlintToml2(flintPath);
223
223
  const declarations = config?.exports?.required;
224
224
  if (!declarations || declarations.length === 0) {
@@ -245,7 +245,7 @@ async function scanExportsFromConfig(flintPath, declarations) {
245
245
  async function scanExportEligible(flintPath) {
246
246
  const meshDir = join(flintPath, "Mesh");
247
247
  if (!await exists(meshDir)) return [];
248
- const { readFlintToml: readFlintToml2 } = await import("./mesh-config-NTGFUNZL-BZ2GO3JY.js");
248
+ const { readFlintToml: readFlintToml2 } = await import("./mesh-config-NTGFUNZL-T5YSX3S3.js");
249
249
  const config = await readFlintToml2(flintPath);
250
250
  const declared = new Set(
251
251
  (config?.exports?.required || []).map((d) => d.file.replace(/\.md$/, "").toLowerCase())
@@ -2,7 +2,7 @@ import {
2
2
  getMeshExportSources,
3
3
  getSourceRepositories,
4
4
  nameFormats
5
- } from "./chunk-LLLVBA4Q.js";
5
+ } from "./chunk-DSRNHRUX.js";
6
6
 
7
7
  // ../../packages/flint/dist/chunk-7JTCEXQV.js
8
8
  import { readFile, writeFile, mkdir, stat, readdir, unlink } from "fs/promises";
@@ -0,0 +1,12 @@
1
+ // ../../node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
2
+ function ansiRegex({ onlyFirst = false } = {}) {
3
+ const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
4
+ const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
5
+ const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
6
+ const pattern = `${osc}|${csi}`;
7
+ return new RegExp(pattern, onlyFirst ? void 0 : "g");
8
+ }
9
+
10
+ export {
11
+ ansiRegex
12
+ };
@@ -5,7 +5,7 @@ import {
5
5
  nameFormats,
6
6
  readFlintToml,
7
7
  setPlateDeclaration
8
- } from "./chunk-LLLVBA4Q.js";
8
+ } from "./chunk-DSRNHRUX.js";
9
9
 
10
10
  // ../../packages/flint/dist/chunk-CUQDSELF.js
11
11
  import { spawn } from "child_process";
@@ -7,7 +7,7 @@ import {
7
7
  registerFlint,
8
8
  registerFlintByPath,
9
9
  updateFlintEntry
10
- } from "./chunk-JNIJ5JV6.js";
10
+ } from "./chunk-5P56DC5O.js";
11
11
  import {
12
12
  exists,
13
13
  runConcurrent
@@ -15,10 +15,10 @@ import {
15
15
  import {
16
16
  ensureMetadataDirs,
17
17
  syncSourceRepoMetadata
18
- } from "./chunk-RD3WIRZN.js";
18
+ } from "./chunk-FZW47K7J.js";
19
19
  import {
20
20
  syncPlateRepos
21
- } from "./chunk-CMEX7263.js";
21
+ } from "./chunk-WW4R5MWW.js";
22
22
  import {
23
23
  addShardToConfig,
24
24
  createFlintJson,
@@ -32,7 +32,6 @@ import {
32
32
  hasFlintToml,
33
33
  migrateShardConfig,
34
34
  nameFormats,
35
- parse,
36
35
  readFlintToml,
37
36
  removeShardFromConfig,
38
37
  resolveShardMode,
@@ -40,7 +39,10 @@ import {
40
39
  toKebabCase,
41
40
  writeFlintJson,
42
41
  writeFlintToml
43
- } from "./chunk-LLLVBA4Q.js";
42
+ } from "./chunk-DSRNHRUX.js";
43
+ import {
44
+ parse
45
+ } from "./chunk-YQMGDALR.js";
44
46
 
45
47
  // ../../packages/flint/dist/index.js
46
48
  import { mkdir as mkdir2, stat as stat9 } from "fs/promises";
@@ -4721,7 +4723,7 @@ async function moveFlint(nameOrPath, destination, options = {}) {
4721
4723
  async function removeTinderboxFlint(flint) {
4722
4724
  const entry = await findFlintByPath(flint.path);
4723
4725
  if (entry) {
4724
- const { unregisterFlint: unregisterFlint2 } = await import("./registry-5CNUVQN3-PCQZRXLB.js");
4726
+ const { unregisterFlint: unregisterFlint2 } = await import("./registry-5CNUVQN3-MXXC35UE.js");
4725
4727
  await unregisterFlint2(entry.path);
4726
4728
  }
4727
4729
  await rm42(flint.path, { recursive: true, force: true });
@@ -5297,7 +5299,7 @@ async function updateShards(flintPath, options = {}) {
5297
5299
  }
5298
5300
  }
5299
5301
  }));
5300
- const { runConcurrent: runConcurrent2 } = await import("./utils-BBA2XQZO-ETTV2PHU.js");
5302
+ const { runConcurrent: runConcurrent2 } = await import("./utils-BBA2XQZO-Q2LR5RQU.js");
5301
5303
  const concurrentResults = await runConcurrent2(updateTasks, {
5302
5304
  concurrency: 5,
5303
5305
  onStart: options.onStart,
@@ -6794,9 +6796,9 @@ async function syncFlint(flintPath, progress) {
6794
6796
  }
6795
6797
  }
6796
6798
  const requiredMeshExports = config.sources?.meshexports || [];
6797
- const { getFlintRegistry: getFlintRegistry2 } = await import("./registry-5CNUVQN3-PCQZRXLB.js");
6799
+ const { getFlintRegistry: getFlintRegistry2 } = await import("./registry-5CNUVQN3-MXXC35UE.js");
6798
6800
  const { readdir: readdir9, readFile: fsReadFile, rm: rm7, stat: fsStat, mkdir: fsMkdir, copyFile: fsCopyFile } = await import("fs/promises");
6799
- const { syncSourceMeshExportMetadata: syncSourceMeshExportMetadata2 } = await import("./metadata-FASTWX6A-ITKM6C62.js");
6801
+ const { syncSourceMeshExportMetadata: syncSourceMeshExportMetadata2 } = await import("./metadata-FASTWX6A-MAAQ2YNF.js");
6800
6802
  const requiredMeshExportSet = new Set(requiredMeshExports);
6801
6803
  const sourcesFlintDir = join16(flintPath, "Sources", "Flints");
6802
6804
  try {
@@ -6838,7 +6840,7 @@ async function syncFlint(flintPath, progress) {
6838
6840
  }
6839
6841
  if (requiredMeshExports.length > 0) {
6840
6842
  const registry = await getFlintRegistry2();
6841
- const { buildExportByName: buildExportByName2, scanExports: scanExports2 } = await import("./exports-OZQUMYQI-NXQCDWW6.js");
6843
+ const { buildExportByName: buildExportByName2, scanExports: scanExports2 } = await import("./exports-OZQUMYQI-RIZGDBFL.js");
6842
6844
  for (const ref of requiredMeshExports) {
6843
6845
  const parts = ref.split("/");
6844
6846
  if (parts.length !== 2) {
@@ -6982,12 +6984,12 @@ async function syncFlint(flintPath, progress) {
6982
6984
  error: `Failed to sync source repo metadata: ${err instanceof Error ? err.message : String(err)}`
6983
6985
  });
6984
6986
  }
6985
- const { getPlateDeclarationsFromConfig } = await import("./mesh-config-NTGFUNZL-BZ2GO3JY.js");
6987
+ const { getPlateDeclarationsFromConfig } = await import("./mesh-config-NTGFUNZL-T5YSX3S3.js");
6986
6988
  const plateDeclarations = getPlateDeclarationsFromConfig(config);
6987
6989
  const hasSourcePlates = Object.values(plateDeclarations).some((d) => d.source);
6988
6990
  const hasRepoPlates = Object.values(plateDeclarations).some((d) => d.repo);
6989
6991
  if (hasSourcePlates) {
6990
- const { syncDeclaredPlates: syncDeclaredPlates2 } = await import("./plates-4TK56CGM-DZB24SP6.js");
6992
+ const { syncDeclaredPlates: syncDeclaredPlates2 } = await import("./plates-4TK56CGM-6ACY6ZX6.js");
6991
6993
  const plateResults = await syncDeclaredPlates2(flintPath, plateDeclarations);
6992
6994
  result.plates = plateResults;
6993
6995
  for (const pr of plateResults) {