kandev 0.5.0 → 0.7.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/bin/cli.js +0 -0
- package/dist/dev.js +5 -4
- package/dist/start.js +1 -1
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
File without changes
|
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
|
|
18
|
-
|
|
19
|
-
extra
|
|
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,
|