@dzhng/crm.cli 0.3.1 → 0.3.3

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.
Files changed (2) hide show
  1. package/dist/cli.js +9 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2622,6 +2622,7 @@ import {
2622
2622
  existsSync as existsSync3,
2623
2623
  mkdirSync as mkdirSync4,
2624
2624
  readFileSync as readFileSync2,
2625
+ realpathSync,
2625
2626
  unlinkSync,
2626
2627
  writeFileSync as writeFileSync3
2627
2628
  } from "node:fs";
@@ -3257,8 +3258,12 @@ function ensureDir2(dir) {
3257
3258
  }
3258
3259
  function getDaemonArgs() {
3259
3260
  const script = process.argv[1];
3260
- if (script && /\.[tj]s$/.test(script)) {
3261
- return [script];
3261
+ if (!script) {
3262
+ return [];
3263
+ }
3264
+ const resolved = realpathSync(script);
3265
+ if (/\.[tj]s$/.test(resolved)) {
3266
+ return [resolved];
3262
3267
  }
3263
3268
  return [];
3264
3269
  }
@@ -4418,7 +4423,7 @@ async function _handleGetattr(db, p, stages) {
4418
4423
  ].includes(p)) {
4419
4424
  return { type: "dir" };
4420
4425
  }
4421
- if (p === "pipeline.json" || p === "tags.json") {
4426
+ if (p === "pipeline.json" || p === "tags.json" || p === "llm.txt") {
4422
4427
  return { type: "file" };
4423
4428
  }
4424
4429
  const parts = p.split("/");
@@ -5420,7 +5425,7 @@ if (process.argv[1]?.endsWith("fuse-daemon.ts")) {
5420
5425
 
5421
5426
  // src/cli.ts
5422
5427
  var program = new Command;
5423
- program.name("crm").description("Headless CLI-first CRM").version("0.3.1");
5428
+ program.name("crm").description("Headless CLI-first CRM").version("0.3.3");
5424
5429
  program.exitOverride();
5425
5430
  registerContactCommands(program);
5426
5431
  registerCompanyCommands(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dzhng/crm.cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Headless CLI-first CRM",
5
5
  "author": "David Zhang",
6
6
  "license": "MIT",