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

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.
@@ -2752,7 +2752,7 @@ async function setIdentity(flintPath, name) {
2752
2752
  async function getIdentity(flintPath) {
2753
2753
  return readIdentityState(flintPath);
2754
2754
  }
2755
- var FRONTMATTER_RE = /^---\n([\s\S]*?)\n---\n?/;
2755
+ var FRONTMATTER_RE = /^---\r?\n([\s\S]*?)\r?\n---\r?\n?/;
2756
2756
  function parseArtifactFile(content) {
2757
2757
  const match = content.match(FRONTMATTER_RE);
2758
2758
  if (!match) {
@@ -180,7 +180,7 @@ import {
180
180
  writeReferencesState,
181
181
  writeSession,
182
182
  writeTinderboxToml
183
- } from "./chunk-JNUGUTRO.js";
183
+ } from "./chunk-GHFCJKRI.js";
184
184
  import {
185
185
  cleanRegistryFile,
186
186
  findFlintByName,
package/dist/index.js CHANGED
@@ -114,7 +114,7 @@ import {
114
114
  updateSession,
115
115
  updateShards,
116
116
  updateSourceRepository
117
- } from "./chunk-JNUGUTRO.js";
117
+ } from "./chunk-GHFCJKRI.js";
118
118
  import {
119
119
  cleanRegistryFile,
120
120
  findFlintByName,
@@ -5722,7 +5722,7 @@ async function openInObsidian(path10) {
5722
5722
  if (os2 === "darwin") {
5723
5723
  await execAsync2(`open -a "Obsidian" "${path10}"`);
5724
5724
  } else if (os2 === "win32") {
5725
- await execAsync2(`start "" "Obsidian" "${path10}"`);
5725
+ await execAsync2(`start "" "${path10}"`);
5726
5726
  } else {
5727
5727
  try {
5728
5728
  await execAsync2(`obsidian "${path10}"`);
@@ -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-IQXEJ4E7.js");
7226
+ } = await import("./dist-7I3XJEIV.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-IQXEJ4E7.js");
7238
+ const { setPlateRepo } = await import("./dist-7I3XJEIV.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-IQXEJ4E7.js");
7256
+ const { removePlateDeclaration, updateGitignore: updateGitignore2 } = await import("./dist-7I3XJEIV.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-IQXEJ4E7.js");
7284
+ const { installPlate } = await import("./dist-7I3XJEIV.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-IQXEJ4E7.js");
7308
+ const { updatePlate } = await import("./dist-7I3XJEIV.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-IQXEJ4E7.js");
7328
+ const { setPlateRepo } = await import("./dist-7I3XJEIV.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-IQXEJ4E7.js");
7354
+ const { getPlateDeclarations, syncPlateRepos } = await import("./dist-7I3XJEIV.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-IQXEJ4E7.js");
7427
+ const { clearPlateDevUrl, setPlateDevUrl } = await import("./dist-7I3XJEIV.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-IQXEJ4E7.js");
17981
+ const { readFlintToml: readFlintToml3 } = await import("./dist-7I3XJEIV.js");
17982
17982
  const toml = await readFlintToml3(flintPath);
17983
17983
  if (toml?.flint?.name) {
17984
17984
  sourceFlintName = toml.flint.name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuucognition/flint-cli",
3
- "version": "0.5.6-dev.6",
3
+ "version": "0.5.6-dev.7",
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",
40
- "@nuucognition/flint-server": "0.0.1",
41
39
  "@nuucognition/flint": "0.1.0",
42
40
  "@nuucognition/flint-migrations": "0.1.0",
43
41
  "@nuucognition/eslint-config": "0.0.0",
44
- "@nuucognition/orbh": "0.0.1-dev.0",
45
42
  "@nuucognition/orbh-cli": "0.1.0",
46
- "@nuucognition/typescript-config": "0.0.0"
43
+ "@nuucognition/orbh": "0.0.1-dev.0",
44
+ "@nuucognition/flint-sdk": "0.0.1",
45
+ "@nuucognition/typescript-config": "0.0.0",
46
+ "@nuucognition/flint-server": "0.0.1"
47
47
  },
48
48
  "scripts": {
49
49
  "predev": "turbo build --filter=@nuucognition/flint-cli^...",