@nuucognition/flint-cli 0.5.2 → 0.5.4

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.
@@ -7,7 +7,7 @@ import {
7
7
  registerFlint,
8
8
  registerFlintByPath,
9
9
  updateFlintEntry
10
- } from "./chunk-C66KJDI7.js";
10
+ } from "./chunk-XCJCDTYH.js";
11
11
  import {
12
12
  exists,
13
13
  runConcurrent
@@ -5165,7 +5165,7 @@ async function moveFlint(nameOrPath, destination, options = {}) {
5165
5165
  async function removeTinderboxFlint(flint) {
5166
5166
  const entry = await findFlintByPath(flint.path);
5167
5167
  if (entry) {
5168
- const { unregisterFlint: unregisterFlint2 } = await import("./registry-YN5W7EY7-SZNXPBV5.js");
5168
+ const { unregisterFlint: unregisterFlint2 } = await import("./registry-YN5W7EY7-YQ425X47.js");
5169
5169
  await unregisterFlint2(entry.path);
5170
5170
  }
5171
5171
  await rm52(flint.path, { recursive: true, force: true });
@@ -5741,7 +5741,7 @@ async function updateShards(flintPath, options = {}) {
5741
5741
  }
5742
5742
  }
5743
5743
  }));
5744
- const { runConcurrent: runConcurrent2 } = await import("./utils-BBA2XQZO-YU5SL3JY.js");
5744
+ const { runConcurrent: runConcurrent2 } = await import("./utils-BBA2XQZO-Z7WSHI2K.js");
5745
5745
  const concurrentResults = await runConcurrent2(updateTasks, {
5746
5746
  concurrency: 5,
5747
5747
  onStart: options.onStart,
@@ -7236,9 +7236,9 @@ async function syncFlint(flintPath, progress) {
7236
7236
  }
7237
7237
  }
7238
7238
  const requiredMeshExports = config.sources?.meshexports || [];
7239
- const { getFlintRegistry: getFlintRegistry2 } = await import("./registry-YN5W7EY7-SZNXPBV5.js");
7239
+ const { getFlintRegistry: getFlintRegistry2 } = await import("./registry-YN5W7EY7-YQ425X47.js");
7240
7240
  const { readdir: readdir10, readFile: fsReadFile, rm: rm8, stat: fsStat, mkdir: fsMkdir, copyFile: fsCopyFile } = await import("fs/promises");
7241
- const { syncSourceMeshExportMetadata: syncSourceMeshExportMetadata2 } = await import("./metadata-SJT4H53O-7W2752ZT.js");
7241
+ const { syncSourceMeshExportMetadata: syncSourceMeshExportMetadata2 } = await import("./metadata-SJT4H53O-M3MBWMSN.js");
7242
7242
  const requiredMeshExportSet = new Set(requiredMeshExports);
7243
7243
  const sourcesFlintDir = join17(flintPath, "Sources", "Flints");
7244
7244
  try {
@@ -7280,7 +7280,7 @@ async function syncFlint(flintPath, progress) {
7280
7280
  }
7281
7281
  if (requiredMeshExports.length > 0) {
7282
7282
  const registry = await getFlintRegistry2();
7283
- const { buildExportByName: buildExportByName2, scanExports: scanExports2 } = await import("./exports-FO5IMLM7-EN6H3N2A.js");
7283
+ const { buildExportByName: buildExportByName2, scanExports: scanExports2 } = await import("./exports-FO5IMLM7-CCQ4YIBU.js");
7284
7284
  for (const ref of requiredMeshExports) {
7285
7285
  const parts = ref.split("/");
7286
7286
  if (parts.length !== 2) {
@@ -7424,7 +7424,7 @@ async function syncFlint(flintPath, progress) {
7424
7424
  error: `Failed to sync source repo metadata: ${err instanceof Error ? err.message : String(err)}`
7425
7425
  });
7426
7426
  }
7427
- const { getPlateDeclarationsFromConfig } = await import("./mesh-config-BAIYF4KD-W2RGZQ2V.js");
7427
+ const { getPlateDeclarationsFromConfig } = await import("./mesh-config-BAIYF4KD-W2EMFIZA.js");
7428
7428
  const plateDeclarations = getPlateDeclarationsFromConfig(config);
7429
7429
  const hasRepoPlates = Object.values(plateDeclarations).some((d) => d.repo);
7430
7430
  if (hasRepoPlates) {
@@ -0,0 +1,41 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
+ }) : x)(function(x) {
10
+ if (typeof require !== "undefined") return require.apply(this, arguments);
11
+ throw Error('Dynamic require of "' + x + '" is not supported');
12
+ });
13
+ var __esm = (fn, res) => function __init() {
14
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
15
+ };
16
+ var __commonJS = (cb, mod) => function __require2() {
17
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
18
+ };
19
+ var __copyProps = (to, from, except, desc) => {
20
+ if (from && typeof from === "object" || typeof from === "function") {
21
+ for (let key of __getOwnPropNames(from))
22
+ if (!__hasOwnProp.call(to, key) && key !== except)
23
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
24
+ }
25
+ return to;
26
+ };
27
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
28
+ // If the importer is in node compatibility mode or this is not an ESM
29
+ // file that has been converted to a CommonJS file using a Babel-
30
+ // compatible transform (i.e. "__esModule" has not been set), then set
31
+ // "default" to the CommonJS "module.exports" for node compatibility.
32
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
33
+ mod
34
+ ));
35
+
36
+ export {
37
+ __require,
38
+ __esm,
39
+ __commonJS,
40
+ __toESM
41
+ };
@@ -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-W2RGZQ2V.js");
221
+ const { readFlintToml: readFlintToml2 } = await import("./mesh-config-BAIYF4KD-W2EMFIZA.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-W2RGZQ2V.js");
248
+ const { readFlintToml: readFlintToml2 } = await import("./mesh-config-BAIYF4KD-W2EMFIZA.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())
@@ -182,7 +182,7 @@ async function cleanRegistryFile() {
182
182
  return result;
183
183
  }
184
184
  async function registerFlintByPath(path, options) {
185
- const { readFlintToml, hasFlintToml } = await import("./mesh-config-BAIYF4KD-W2RGZQ2V.js");
185
+ const { readFlintToml, hasFlintToml } = await import("./mesh-config-BAIYF4KD-W2EMFIZA.js");
186
186
  const isFlint = await hasFlintToml(path);
187
187
  if (!isFlint) {
188
188
  throw new Error(`Not a valid flint: ${path}
@@ -191,7 +191,7 @@ import {
191
191
  writeReferencesState,
192
192
  writeSession,
193
193
  writeTinderboxToml
194
- } from "./chunk-XWUP7WHQ.js";
194
+ } from "./chunk-35T5EICE.js";
195
195
  import {
196
196
  cleanRegistryFile,
197
197
  findFlintByName,
@@ -206,7 +206,7 @@ import {
206
206
  unregisterFlint,
207
207
  updateFlintEntry,
208
208
  upsertFlintEntry
209
- } from "./chunk-C66KJDI7.js";
209
+ } from "./chunk-XCJCDTYH.js";
210
210
  import {
211
211
  runConcurrent
212
212
  } from "./chunk-V7YA5RXL.js";
@@ -232,7 +232,7 @@ import {
232
232
  resolveDocument,
233
233
  scanExportEligible,
234
234
  scanExports
235
- } from "./chunk-VAJMJ47E.js";
235
+ } from "./chunk-TEH7V4CG.js";
236
236
  import {
237
237
  FLINT_CONFIG_FILENAME,
238
238
  FLINT_JSON_FILENAME,
@@ -295,6 +295,7 @@ import {
295
295
  writeFlintJson,
296
296
  writeFlintToml
297
297
  } from "./chunk-CBGQBE6C.js";
298
+ import "./chunk-EAQYK3U2.js";
298
299
  export {
299
300
  FLINT_CONFIG_FILENAME,
300
301
  FLINT_JSON_FILENAME,
@@ -6,8 +6,9 @@ import {
6
6
  resolveDocument,
7
7
  scanExportEligible,
8
8
  scanExports
9
- } from "./chunk-VAJMJ47E.js";
9
+ } from "./chunk-TEH7V4CG.js";
10
10
  import "./chunk-CBGQBE6C.js";
11
+ import "./chunk-EAQYK3U2.js";
11
12
  export {
12
13
  buildAllExports,
13
14
  buildExport,
Binary file