@asiflow/devcortex 0.1.1 → 0.1.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.
package/dist/cli.js CHANGED
@@ -3470,6 +3470,86 @@ function useColor() {
3470
3470
  // ../../node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
3471
3471
  var program = new Command();
3472
3472
 
3473
+ // package.json
3474
+ var package_default = {
3475
+ name: "@asiflow/devcortex",
3476
+ version: "0.1.3",
3477
+ description: "The cognitive layer for AI coding agents \u2014 evidence-backed ship reports, blast-radius protection, and persistent project memory. Works with Claude Code, Codex, Cursor, and any MCP client.",
3478
+ license: "Apache-2.0",
3479
+ type: "module",
3480
+ bin: {
3481
+ devcortex: "./dist/cli.js"
3482
+ },
3483
+ files: [
3484
+ "dist",
3485
+ "README.md",
3486
+ "LICENSE"
3487
+ ],
3488
+ engines: {
3489
+ node: ">=20"
3490
+ },
3491
+ repository: {
3492
+ type: "git",
3493
+ url: "git+https://github.com/asiflow/DevCortex.git",
3494
+ directory: "apps/cli"
3495
+ },
3496
+ homepage: "https://github.com/asiflow/DevCortex#readme",
3497
+ bugs: {
3498
+ url: "https://github.com/asiflow/DevCortex/issues"
3499
+ },
3500
+ keywords: [
3501
+ "ai",
3502
+ "coding-agent",
3503
+ "claude-code",
3504
+ "cursor",
3505
+ "codex",
3506
+ "mcp",
3507
+ "code-review",
3508
+ "quality-gate",
3509
+ "evidence",
3510
+ "developer-tools",
3511
+ "llm",
3512
+ "ci"
3513
+ ],
3514
+ publishConfig: {
3515
+ access: "public"
3516
+ },
3517
+ dependencies: {
3518
+ chokidar: "^4.0.3",
3519
+ "es-module-lexer": "^1.5.4",
3520
+ "fast-glob": "^3.3.2",
3521
+ picomatch: "^4.0.2",
3522
+ yaml: "^2.9.0"
3523
+ },
3524
+ scripts: {
3525
+ build: "tsup",
3526
+ prepublishOnly: "tsup",
3527
+ dev: "tsup --watch",
3528
+ typecheck: "tsc --noEmit",
3529
+ lint: "eslint src",
3530
+ test: "vitest run",
3531
+ "test:coverage": "vitest run --coverage",
3532
+ "test:watch": "vitest"
3533
+ },
3534
+ devDependencies: {
3535
+ "@devcortex/claude-code": "workspace:*",
3536
+ "@devcortex/codex": "workspace:*",
3537
+ "@devcortex/core": "workspace:*",
3538
+ "@devcortex/cursor": "workspace:*",
3539
+ "@devcortex/daemon": "workspace:*",
3540
+ "@devcortex/github-actions": "workspace:*",
3541
+ "@devcortex/vscode": "workspace:*",
3542
+ "@types/node": "^22.10.2",
3543
+ "@vitest/coverage-v8": "^2.1.8",
3544
+ commander: "^15.0.0",
3545
+ picocolors: "^1.1.1",
3546
+ tsup: "^8.3.5",
3547
+ typescript: "^5.7.2",
3548
+ vitest: "^2.1.8",
3549
+ zod: "^3.25.76"
3550
+ }
3551
+ };
3552
+
3473
3553
  // src/commands.ts
3474
3554
  import { existsSync } from "fs";
3475
3555
  import { mkdir as mkdir16, readFile as readFile23, readdir as readdir5, stat as stat7 } from "fs/promises";
@@ -37436,9 +37516,8 @@ async function cmdRecordEvidence(g, payload) {
37436
37516
  // src/daemon.ts
37437
37517
  import { spawn as spawn2 } from "child_process";
37438
37518
  import { readFile as readFile24 } from "fs/promises";
37439
- import { createRequire } from "module";
37440
37519
  import path29 from "path";
37441
- var nodeRequire = createRequire(import.meta.url);
37520
+ import { fileURLToPath } from "url";
37442
37521
  var DEFAULT_DAEMON_PORT = 7420;
37443
37522
  function pidfilePath(root) {
37444
37523
  return path29.join(workspacePaths(root).cacheDir, "daemon.pid");
@@ -37468,8 +37547,10 @@ function isAlive(pid) {
37468
37547
  }
37469
37548
  }
37470
37549
  function resolveDaemonBin() {
37471
- const pkgJson = nodeRequire.resolve("@devcortex/daemon/package.json");
37472
- return path29.join(path29.dirname(pkgJson), "dist", "main.js");
37550
+ return fileURLToPath(new URL("./daemon.js", import.meta.url));
37551
+ }
37552
+ function resolveDashboardDist() {
37553
+ return fileURLToPath(new URL("./dashboard", import.meta.url));
37473
37554
  }
37474
37555
  async function delay(ms) {
37475
37556
  await new Promise((resolve15) => setTimeout(resolve15, ms));
@@ -37506,7 +37587,10 @@ async function cmdDaemonStart(g, opts) {
37506
37587
  const port = opts.port ?? DEFAULT_DAEMON_PORT;
37507
37588
  const child = spawn2(process.execPath, [resolveDaemonBin(), "--root", g.root, "--port", String(port)], {
37508
37589
  detached: true,
37509
- stdio: "ignore"
37590
+ stdio: "ignore",
37591
+ // Point the daemon at the dashboard SPA shipped alongside the CLI, so it
37592
+ // serves the UI from a global npm install (not just the workspace).
37593
+ env: { ...process.env, DEVCORTEX_DASHBOARD_DIST: resolveDashboardDist() }
37510
37594
  });
37511
37595
  child.unref();
37512
37596
  const info = await waitForRunning(g.root);
@@ -37560,7 +37644,7 @@ async function cmdDashboard(g, opts) {
37560
37644
  }
37561
37645
 
37562
37646
  // src/cli.ts
37563
- var VERSION = "0.1.0";
37647
+ var VERSION = package_default.version;
37564
37648
  function collect(value, previous) {
37565
37649
  return [...previous, value];
37566
37650
  }