@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.
- package/README.md +7 -11
- package/bin/flint-prod.js +0 -2
- package/bin/flint.js +2 -2
- package/dist/chunk-4LAWFN2H.js +6821 -0
- package/dist/{chunk-JSBRDJBE.js → chunk-4VNS5WPM.js} +13 -1
- package/dist/{chunk-X6OG5PEE.js → chunk-5P56DC5O.js} +2 -2
- package/dist/chunk-DSRNHRUX.js +768 -0
- package/dist/{chunk-6MPRSFXI.js → chunk-EFW5J46R.js} +5 -5
- package/dist/{chunk-M3NSYVYR.js → chunk-FZW47K7J.js} +2 -2
- package/dist/chunk-SCBMBMSG.js +12 -0
- package/dist/chunk-WW4R5MWW.js +939 -0
- package/dist/{chunk-WMXC6KO6.js → chunk-YFUMEQRR.js} +476 -972
- package/dist/{chunk-CBGQBE6C.js → chunk-YQMGDALR.js} +1 -747
- package/dist/dist-33SYCV6R.js +28 -0
- package/dist/{dist-EAYA2DAP.js → dist-3ZZYLR45.js} +36 -21
- package/dist/{exports-FO5IMLM7-4DUGQDXH.js → exports-OZQUMYQI-RIZGDBFL.js} +4 -3
- package/dist/index.js +8156 -9638
- package/dist/marked-terminal-G6SMT3U3.js +58815 -0
- package/dist/marked.esm-T6BYMIDL.js +2158 -0
- package/dist/{mesh-config-BAIYF4KD-Q3ZCQOCZ.js → mesh-config-NTGFUNZL-T5YSX3S3.js} +5 -2
- package/dist/{metadata-SJT4H53O-LEFHYM5Q.js → metadata-FASTWX6A-MAAQ2YNF.js} +4 -3
- package/dist/plates-4TK56CGM-6ACY6ZX6.js +43 -0
- package/dist/{registry-YN5W7EY7-J52KXGG5.js → registry-5CNUVQN3-MXXC35UE.js} +2 -2
- package/dist/{utils-BBA2XQZO-ETTV2PHU.js → utils-BBA2XQZO-Q2LR5RQU.js} +1 -1
- package/package.json +14 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readFlintToml
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DSRNHRUX.js";
|
|
4
4
|
|
|
5
|
-
// ../../packages/flint/dist/chunk-
|
|
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(
|
|
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-
|
|
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-
|
|
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-
|
|
5
|
+
} from "./chunk-DSRNHRUX.js";
|
|
6
6
|
|
|
7
|
-
// ../../packages/flint/dist/chunk-
|
|
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
|
+
};
|