kandev 0.4.0 → 0.6.0

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/dev.js CHANGED
@@ -14,10 +14,11 @@ const web_1 = require("./web");
14
14
  async function runDev({ repoRoot, backendPort, webPort }) {
15
15
  const ports = await (0, shared_1.pickPorts)(backendPort, webPort);
16
16
  const dbPath = node_path_1.default.join(repoRoot, "apps", "backend", "kandev.db");
17
- const backendEnv = (0, shared_1.buildBackendEnv)({
18
- ports,
19
- extra: { KANDEV_MOCK_AGENT: "true", KANDEV_DATABASE_PATH: dbPath },
20
- });
17
+ const extra = { KANDEV_DATABASE_PATH: dbPath };
18
+ if (process.env.KANDEV_MOCK_AGENT) {
19
+ extra.KANDEV_MOCK_AGENT = process.env.KANDEV_MOCK_AGENT;
20
+ }
21
+ const backendEnv = (0, shared_1.buildBackendEnv)({ ports, extra });
21
22
  const webEnv = (0, shared_1.buildWebEnv)({ ports, includeMcp: true, debug: true });
22
23
  const logLevel = process.env.KANDEV_LOGGING_LEVEL?.trim() || process.env.KANDEV_LOG_LEVEL?.trim() || "info";
23
24
  (0, shared_1.logStartupInfo)({
package/dist/start.js CHANGED
@@ -74,7 +74,7 @@ async function runStart({ repoRoot, backendPort, webPort, verbose = false, debug
74
74
  }
75
75
  // Production mode: use warn log level for clean output unless verbose/debug
76
76
  const showOutput = verbose || debug;
77
- const dbPath = node_path_1.default.join(constants_1.DATA_DIR, "kandev.db");
77
+ const dbPath = process.env.KANDEV_DATABASE_PATH || node_path_1.default.join(constants_1.DATA_DIR, "kandev.db");
78
78
  const logLevel = debug ? "debug" : verbose ? "info" : "warn";
79
79
  const backendEnv = (0, shared_1.buildBackendEnv)({
80
80
  ports,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kandev",
3
- "version": "0.4.0",
3
+ "version": "0.6.0",
4
4
  "private": false,
5
5
  "description": "NPX launcher for Kandev",
6
6
  "license": "AGPL-3.0-only",