@nuucognition/flint-cli 0.5.6-dev.1 → 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,8 +1,8 @@
1
1
  import {
2
2
  readFlintToml
3
- } from "./chunk-CBGQBE6C.js";
3
+ } from "./chunk-DSRNHRUX.js";
4
4
 
5
- // ../../packages/flint/dist/chunk-WMDJDFRK.js
5
+ // ../../packages/flint/dist/chunk-V7QRWUHU.js
6
6
  import { readdir, readFile, mkdir, writeFile, rm, stat, copyFile } from "fs/promises";
7
7
  import { join, basename, dirname, resolve, relative, sep, extname } from "path";
8
8
  async function exists(path) {
@@ -80,7 +80,7 @@ async function expandEmbeds(content, flintPath, visited = /* @__PURE__ */ new Se
80
80
  newVisited.add(sourcePath);
81
81
  embeddedContent = await expandEmbeds(embeddedContent, flintPath, newVisited);
82
82
  const fileName = basename(sourcePath, ".md");
83
- const quotedContent = embeddedContent.trim().split("\n").map((line) => `> ${line}`).join("\n");
83
+ const quotedContent = embeddedContent.trim().split(/\r?\n/).map((line) => `> ${line}`).join("\n");
84
84
  const formattedEmbed = `> **${fileName}**
85
85
  >
86
86
  ${quotedContent}`;
@@ -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-BAIYF4KD-Q3ZCQOCZ.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-BAIYF4KD-Q3ZCQOCZ.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,9 +2,9 @@ import {
2
2
  getMeshExportSources,
3
3
  getSourceRepositories,
4
4
  nameFormats
5
- } from "./chunk-CBGQBE6C.js";
5
+ } from "./chunk-DSRNHRUX.js";
6
6
 
7
- // ../../packages/flint/dist/chunk-S7VC3H7U.js
7
+ // ../../packages/flint/dist/chunk-7JTCEXQV.js
8
8
  import { readFile, writeFile, mkdir, stat, readdir, unlink } from "fs/promises";
9
9
  import { join } from "path";
10
10
  import { randomUUID } from "crypto";
@@ -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
+ };