@nuucognition/flint-cli 0.5.6-dev.5 → 0.5.6-dev.6

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,10 +7,11 @@ import {
7
7
  setPlateDeclaration
8
8
  } from "./chunk-LLLVBA4Q.js";
9
9
 
10
- // ../../packages/flint/dist/chunk-LCGQD7MB.js
10
+ // ../../packages/flint/dist/chunk-K73HFKXL.js
11
11
  import { spawn } from "child_process";
12
12
  import { exec } from "child_process";
13
13
  import { mkdir, mkdtemp, readdir, readFile, rename, rm, stat, writeFile } from "fs/promises";
14
+ import { tmpdir } from "os";
14
15
  import { basename, join, relative, resolve } from "path";
15
16
  import { promisify } from "util";
16
17
  import { parse as parseYaml, stringify as stringifyYaml } from "yaml";
@@ -136,7 +137,7 @@ async function fetchPlateRelease(source, plateName, requestedVersion) {
136
137
  return releases[0];
137
138
  }
138
139
  async function downloadPlateReleaseAsset(source, release) {
139
- const tempDir = await mkdtemp("/tmp/flint-plate-release-");
140
+ const tempDir = await mkdtemp(join(tmpdir(), "flint-plate-release-"));
140
141
  const archivePath = join(tempDir, release.asset.name);
141
142
  const response = await fetch(release.asset.url, {
142
143
  headers: {
@@ -152,7 +153,7 @@ async function downloadPlateReleaseAsset(source, release) {
152
153
  return archivePath;
153
154
  }
154
155
  async function extractPlateArchive(archivePath) {
155
- const tempDir = await mkdtemp("/tmp/flint-plate-extract-");
156
+ const tempDir = await mkdtemp(join(tmpdir(), "flint-plate-extract-"));
156
157
  await execAsync(`tar -xzf "${archivePath}" -C "${tempDir}"`);
157
158
  return tempDir;
158
159
  }
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-RD3WIRZN.js";
19
19
  import {
20
20
  syncPlateRepos
21
- } from "./chunk-JCALNZ4D.js";
21
+ } from "./chunk-EQTCR2NT.js";
22
22
  import {
23
23
  addShardToConfig,
24
24
  createFlintJson,
@@ -6985,7 +6985,7 @@ async function syncFlint(flintPath, progress) {
6985
6985
  const hasSourcePlates = Object.values(plateDeclarations).some((d) => d.source);
6986
6986
  const hasRepoPlates = Object.values(plateDeclarations).some((d) => d.repo);
6987
6987
  if (hasSourcePlates) {
6988
- const { syncDeclaredPlates: syncDeclaredPlates2 } = await import("./plates-UD55BGK4-HV7L7MQX.js");
6988
+ const { syncDeclaredPlates: syncDeclaredPlates2 } = await import("./plates-XORPQ3RU-JXVRGC23.js");
6989
6989
  const plateResults = await syncDeclaredPlates2(flintPath, plateDeclarations);
6990
6990
  result.plates = plateResults;
6991
6991
  for (const pr of plateResults) {
@@ -180,7 +180,7 @@ import {
180
180
  writeReferencesState,
181
181
  writeSession,
182
182
  writeTinderboxToml
183
- } from "./chunk-BF3SKNVR.js";
183
+ } from "./chunk-JNUGUTRO.js";
184
184
  import {
185
185
  cleanRegistryFile,
186
186
  findFlintByName,
@@ -241,7 +241,7 @@ import {
241
241
  syncPlateRepos,
242
242
  updatePlate,
243
243
  updatePlateFromRepo
244
- } from "./chunk-JCALNZ4D.js";
244
+ } from "./chunk-EQTCR2NT.js";
245
245
  import {
246
246
  FLINT_CONFIG_FILENAME,
247
247
  FLINT_JSON_FILENAME,
package/dist/index.js CHANGED
@@ -114,7 +114,7 @@ import {
114
114
  updateSession,
115
115
  updateShards,
116
116
  updateSourceRepository
117
- } from "./chunk-BF3SKNVR.js";
117
+ } from "./chunk-JNUGUTRO.js";
118
118
  import {
119
119
  cleanRegistryFile,
120
120
  findFlintByName,
@@ -150,7 +150,7 @@ import {
150
150
  listPlateTools,
151
151
  listPlates,
152
152
  runPlateTool
153
- } from "./chunk-JCALNZ4D.js";
153
+ } from "./chunk-EQTCR2NT.js";
154
154
  import {
155
155
  addExportToConfig,
156
156
  addLatticeDeclaration,
@@ -7223,7 +7223,7 @@ repoCommand.command("add").description("Add a plate from a git repo").argument("
7223
7223
  getPlateDeclaration,
7224
7224
  nameFormats,
7225
7225
  updateGitignore: updateGitignore2
7226
- } = await import("./dist-MNBUCH3R.js");
7226
+ } = await import("./dist-IQXEJ4E7.js");
7227
7227
  const { proper, slug } = nameFormats(name);
7228
7228
  const existing = await getPlateDeclaration(flintPath, slug);
7229
7229
  if (existing) {
@@ -7235,7 +7235,7 @@ repoCommand.command("add").description("Add a plate from a git repo").argument("
7235
7235
  Cloning ${url}...`));
7236
7236
  await clonePlateFromRepo(flintPath, slug, url, platePath);
7237
7237
  await addPlateDeclaration(flintPath, slug, platePath, { title: proper });
7238
- const { setPlateRepo } = await import("./dist-MNBUCH3R.js");
7238
+ const { setPlateRepo } = await import("./dist-IQXEJ4E7.js");
7239
7239
  await setPlateRepo(flintPath, slug, url);
7240
7240
  await updateGitignore2(flintPath);
7241
7241
  console.log(pc22.green(`
@@ -7253,7 +7253,7 @@ Added plate: ${pc22.bold(proper)}`));
7253
7253
  repoCommand.command("remove").description("Remove a repo-sourced plate").argument("<name>", "Plate declaration name or slug").option("-p, --path <dir>", "Path to flint (default: auto-detect)").action(async (name, options) => {
7254
7254
  try {
7255
7255
  const flintPath = await resolveFlintPath2(options.path);
7256
- const { removePlateDeclaration, updateGitignore: updateGitignore2 } = await import("./dist-MNBUCH3R.js");
7256
+ const { removePlateDeclaration, updateGitignore: updateGitignore2 } = await import("./dist-IQXEJ4E7.js");
7257
7257
  const { rm: rm6, stat: stat11 } = await import("fs/promises");
7258
7258
  const { join: join24 } = await import("path");
7259
7259
  const plate = await getPlate(flintPath, name);
@@ -7281,7 +7281,7 @@ plateCommand.addCommand(repoCommand);
7281
7281
  plateCommand.command("install").description("Install a Plate from GitHub releases").argument("<name-or-source>", "Plate slug or GitHub owner/repo").option("--version <version>", "Install a specific version").option("-p, --path <dir>", "Path to flint (default: auto-detect)").action(async (nameOrSource, options) => {
7282
7282
  try {
7283
7283
  const flintPath = await resolveFlintPath2(options.path);
7284
- const { installPlate } = await import("./dist-MNBUCH3R.js");
7284
+ const { installPlate } = await import("./dist-IQXEJ4E7.js");
7285
7285
  const result = await installPlate(flintPath, nameOrSource, { version: options.version });
7286
7286
  console.log(pc22.green(`
7287
7287
  Installed plate: ${pc22.bold(result.plate.manifest.title)}`));
@@ -7305,7 +7305,7 @@ Installed plate: ${pc22.bold(result.plate.manifest.title)}`));
7305
7305
  plateCommand.command("update").description("Update installed Plates from GitHub releases").argument("[name]", "Optional plate slug").option("-p, --path <dir>", "Path to flint (default: auto-detect)").action(async (name, options) => {
7306
7306
  try {
7307
7307
  const flintPath = await resolveFlintPath2(options.path);
7308
- const { updatePlate } = await import("./dist-MNBUCH3R.js");
7308
+ const { updatePlate } = await import("./dist-IQXEJ4E7.js");
7309
7309
  const results = await updatePlate(flintPath, name);
7310
7310
  if (results.length === 0) {
7311
7311
  console.log(pc22.dim("\nAll installed plates are already up to date.\n"));
@@ -7325,7 +7325,7 @@ plateCommand.command("update").description("Update installed Plates from GitHub
7325
7325
  plateCommand.command("push").description("Initialize a plate as a git repo, set remote, and push").argument("<name>", "Plate name").argument("<url>", "Git remote URL").option("-p, --path <dir>", "Path to flint (default: auto-detect)").action(async (name, url, options) => {
7326
7326
  try {
7327
7327
  const flintPath = await resolveFlintPath2(options.path);
7328
- const { setPlateRepo } = await import("./dist-MNBUCH3R.js");
7328
+ const { setPlateRepo } = await import("./dist-IQXEJ4E7.js");
7329
7329
  console.log(pc22.dim(`
7330
7330
  Pushing plate "${name}"...`));
7331
7331
  const result = await initPlateRepo(flintPath, name, url);
@@ -7351,7 +7351,7 @@ Pushing plate "${name}"...`));
7351
7351
  plateCommand.command("sync").description("Sync plates that have a repo configured").option("-p, --path <dir>", "Path to flint (default: auto-detect)").action(async (options) => {
7352
7352
  try {
7353
7353
  const flintPath = await resolveFlintPath2(options.path);
7354
- const { getPlateDeclarations, syncPlateRepos } = await import("./dist-MNBUCH3R.js");
7354
+ const { getPlateDeclarations, syncPlateRepos } = await import("./dist-IQXEJ4E7.js");
7355
7355
  const declarations = await getPlateDeclarations(flintPath);
7356
7356
  const hasRepos = Object.values(declarations).some((d) => d.repo);
7357
7357
  if (!hasRepos) {
@@ -7424,7 +7424,7 @@ plateCommand.command("build").description("Run the Plate build script").argument
7424
7424
  plateCommand.command("dev").description("Register or clear a dev server override for a Plate").argument("<name>", "Plate declaration name or manifest name").argument("[url]", "Dev server URL, e.g. http://localhost:5174").option("--off", "Disable the current dev override").option("-p, --path <dir>", "Path to flint (default: auto-detect)").action(async (name, url, options) => {
7425
7425
  try {
7426
7426
  const flintPath = await resolveFlintPath2(options.path);
7427
- const { clearPlateDevUrl, setPlateDevUrl } = await import("./dist-MNBUCH3R.js");
7427
+ const { clearPlateDevUrl, setPlateDevUrl } = await import("./dist-IQXEJ4E7.js");
7428
7428
  if (options.off) {
7429
7429
  await clearPlateDevUrl(flintPath, name);
7430
7430
  console.log(pc22.green(`
@@ -17978,7 +17978,7 @@ var sendCommand = new Command30("send").description("Send files to another Flint
17978
17978
  console.log();
17979
17979
  let sourceFlintName = "Unknown";
17980
17980
  try {
17981
- const { readFlintToml: readFlintToml3 } = await import("./dist-MNBUCH3R.js");
17981
+ const { readFlintToml: readFlintToml3 } = await import("./dist-IQXEJ4E7.js");
17982
17982
  const toml = await readFlintToml3(flintPath);
17983
17983
  if (toml?.flint?.name) {
17984
17984
  sourceFlintName = toml.flint.name;
@@ -17,7 +17,7 @@ import {
17
17
  syncPlateRepos,
18
18
  updatePlate,
19
19
  updatePlateFromRepo
20
- } from "./chunk-JCALNZ4D.js";
20
+ } from "./chunk-EQTCR2NT.js";
21
21
  import "./chunk-LLLVBA4Q.js";
22
22
  import "./chunk-JSBRDJBE.js";
23
23
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuucognition/flint-cli",
3
- "version": "0.5.6-dev.5",
3
+ "version": "0.5.6-dev.6",
4
4
  "type": "module",
5
5
  "description": "Flint cognitive workspace CLI",
6
6
  "license": "PROPRIETARY",
@@ -36,14 +36,14 @@
36
36
  "tsup": "^8.3.5",
37
37
  "tsx": "^4.19.2",
38
38
  "typescript": "^5.9.2",
39
+ "@nuucognition/flint-sdk": "0.0.1",
39
40
  "@nuucognition/flint-server": "0.0.1",
40
- "@nuucognition/flint-migrations": "0.1.0",
41
41
  "@nuucognition/flint": "0.1.0",
42
+ "@nuucognition/flint-migrations": "0.1.0",
43
+ "@nuucognition/eslint-config": "0.0.0",
42
44
  "@nuucognition/orbh": "0.0.1-dev.0",
43
- "@nuucognition/typescript-config": "0.0.0",
44
- "@nuucognition/flint-sdk": "0.0.1",
45
45
  "@nuucognition/orbh-cli": "0.1.0",
46
- "@nuucognition/eslint-config": "0.0.0"
46
+ "@nuucognition/typescript-config": "0.0.0"
47
47
  },
48
48
  "scripts": {
49
49
  "predev": "turbo build --filter=@nuucognition/flint-cli^...",