@nuucognition/flint-cli 0.5.0-alpha.0 → 0.5.0-alpha.1

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.
@@ -45,7 +45,7 @@ import {
45
45
  import { mkdir as mkdir2, stat as stat8 } from "fs/promises";
46
46
  import { join as join10 } from "path";
47
47
  import { stat as stat22 } from "fs/promises";
48
- import { dirname as dirname2, join as join22 } from "path";
48
+ import { dirname as dirname2, isAbsolute, join as join22 } from "path";
49
49
  import { mkdir as mkdir22, writeFile as writeFile5 } from "fs/promises";
50
50
  import { join as join32 } from "path";
51
51
  import { exec } from "child_process";
@@ -2066,7 +2066,7 @@ async function runMigrations(flintPath, options = {}) {
2066
2066
  }
2067
2067
 
2068
2068
  // ../../packages/flint/dist/index.js
2069
- import { join as join12, resolve as resolve5, isAbsolute } from "path";
2069
+ import { join as join12, resolve as resolve5, isAbsolute as isAbsolute2 } from "path";
2070
2070
  import { mkdtemp, rm as rm62 } from "fs/promises";
2071
2071
  import { tmpdir } from "os";
2072
2072
  import { exec as exec4 } from "child_process";
@@ -2159,7 +2159,7 @@ async function createFlintStructure(options) {
2159
2159
  }
2160
2160
  async function findFlintRoot(startPath) {
2161
2161
  let current = startPath;
2162
- if (!current.startsWith("/")) {
2162
+ if (!isAbsolute(current)) {
2163
2163
  current = join22(process.cwd(), current);
2164
2164
  }
2165
2165
  while (current !== dirname2(current)) {
@@ -4876,7 +4876,7 @@ async function resolveShardSource(source, flintPath, version) {
4876
4876
  return cloneAndResolve(url, source, version);
4877
4877
  }
4878
4878
  case "path": {
4879
- const resolvedPath = isAbsolute(source.path) ? source.path : resolve5(flintPath, source.path);
4879
+ const resolvedPath = isAbsolute2(source.path) ? source.path : resolve5(flintPath, source.path);
4880
4880
  if (!await exists(resolvedPath)) {
4881
4881
  throw new Error(`Shard path does not exist: ${resolvedPath}`);
4882
4882
  }
@@ -190,7 +190,7 @@ import {
190
190
  writeReferencesState,
191
191
  writeSession,
192
192
  writeTinderboxToml
193
- } from "./chunk-HZD727IL.js";
193
+ } from "./chunk-67JRCBRR.js";
194
194
  import {
195
195
  cleanRegistryFile,
196
196
  findFlintByName,
package/dist/index.js CHANGED
@@ -107,7 +107,7 @@ import {
107
107
  updateSession,
108
108
  updateShards,
109
109
  updateSourceRepository
110
- } from "./chunk-HZD727IL.js";
110
+ } from "./chunk-67JRCBRR.js";
111
111
  import {
112
112
  cleanRegistryFile,
113
113
  findFlintByName,
@@ -6158,7 +6158,7 @@ repoCommand.command("add").description("Add a plate from a git repo").argument("
6158
6158
  getPlateDeclaration,
6159
6159
  nameFormats,
6160
6160
  updateGitignore: updateGitignore2
6161
- } = await import("./dist-UIVVEOGP.js");
6161
+ } = await import("./dist-PKS3JY77.js");
6162
6162
  const { proper, slug } = nameFormats(name);
6163
6163
  const existing = await getPlateDeclaration(flintPath, slug);
6164
6164
  if (existing) {
@@ -6170,7 +6170,7 @@ repoCommand.command("add").description("Add a plate from a git repo").argument("
6170
6170
  Cloning ${url}...`));
6171
6171
  await clonePlateFromRepo(flintPath, slug, url, platePath);
6172
6172
  await addPlateDeclaration(flintPath, slug, platePath, { title: proper });
6173
- const { setPlateRepo } = await import("./dist-UIVVEOGP.js");
6173
+ const { setPlateRepo } = await import("./dist-PKS3JY77.js");
6174
6174
  await setPlateRepo(flintPath, slug, url);
6175
6175
  await updateGitignore2(flintPath);
6176
6176
  console.log(pc22.green(`
@@ -6188,7 +6188,7 @@ Added plate: ${pc22.bold(proper)}`));
6188
6188
  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) => {
6189
6189
  try {
6190
6190
  const flintPath = await resolveFlintPath2(options.path);
6191
- const { removePlateDeclaration, updateGitignore: updateGitignore2 } = await import("./dist-UIVVEOGP.js");
6191
+ const { removePlateDeclaration, updateGitignore: updateGitignore2 } = await import("./dist-PKS3JY77.js");
6192
6192
  const { rm: rm5, stat: stat8 } = await import("fs/promises");
6193
6193
  const { join: join19 } = await import("path");
6194
6194
  const plate = await getPlate(flintPath, name);
@@ -6216,7 +6216,7 @@ plateCommand.addCommand(repoCommand);
6216
6216
  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) => {
6217
6217
  try {
6218
6218
  const flintPath = await resolveFlintPath2(options.path);
6219
- const { setPlateRepo } = await import("./dist-UIVVEOGP.js");
6219
+ const { setPlateRepo } = await import("./dist-PKS3JY77.js");
6220
6220
  console.log(pc22.dim(`
6221
6221
  Pushing plate "${name}"...`));
6222
6222
  const result = await initPlateRepo(flintPath, name, url);
@@ -6242,7 +6242,7 @@ Pushing plate "${name}"...`));
6242
6242
  plateCommand.command("sync").description("Sync plates that have a repo configured").option("-p, --path <dir>", "Path to flint (default: auto-detect)").action(async (options) => {
6243
6243
  try {
6244
6244
  const flintPath = await resolveFlintPath2(options.path);
6245
- const { getPlateDeclarations, syncPlateRepos } = await import("./dist-UIVVEOGP.js");
6245
+ const { getPlateDeclarations, syncPlateRepos } = await import("./dist-PKS3JY77.js");
6246
6246
  const declarations = await getPlateDeclarations(flintPath);
6247
6247
  const hasRepos = Object.values(declarations).some((d) => d.repo);
6248
6248
  if (!hasRepos) {
@@ -9622,7 +9622,7 @@ var sendCommand = new Command30("send").description("Send files to another Flint
9622
9622
  console.log();
9623
9623
  let sourceFlintName = "Unknown";
9624
9624
  try {
9625
- const { readFlintToml: readFlintToml3 } = await import("./dist-UIVVEOGP.js");
9625
+ const { readFlintToml: readFlintToml3 } = await import("./dist-PKS3JY77.js");
9626
9626
  const toml = await readFlintToml3(flintPath);
9627
9627
  if (toml?.flint?.name) {
9628
9628
  sourceFlintName = toml.flint.name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuucognition/flint-cli",
3
- "version": "0.5.0-alpha.0",
3
+ "version": "0.5.0-alpha.1",
4
4
  "type": "module",
5
5
  "description": "Flint cognitive workspace CLI",
6
6
  "license": "PROPRIETARY",
@@ -27,12 +27,12 @@
27
27
  "tsx": "^4.19.2",
28
28
  "typescript": "^5.9.2",
29
29
  "@nuucognition/eslint-config": "0.0.0",
30
- "@nuucognition/flint": "0.1.0",
31
30
  "@nuucognition/flint-server": "0.0.1",
32
- "@nuucognition/orbh": "0.1.0",
31
+ "@nuucognition/flint": "0.1.0",
32
+ "@nuucognition/flint-runtime": "0.0.1",
33
33
  "@nuucognition/flint-migrations": "0.1.0",
34
- "@nuucognition/typescript-config": "0.0.0",
35
- "@nuucognition/flint-runtime": "0.0.1"
34
+ "@nuucognition/orbh": "0.1.0",
35
+ "@nuucognition/typescript-config": "0.0.0"
36
36
  },
37
37
  "scripts": {
38
38
  "predev": "pnpm --dir ../../packages/orbh build && pnpm --dir ../../packages/flint build && pnpm --dir ../../packages/flint-migrations build && pnpm --dir ../../packages/flint-runtime build && pnpm --dir ../../packages/flint-server build",