kandev 0.1.5 → 0.1.6

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 (3) hide show
  1. package/README.md +7 -0
  2. package/dist/run.js +10 -2
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -10,6 +10,13 @@ npx kandev
10
10
 
11
11
  Downloads the latest release, starts the backend + web app, and opens your browser. Data (worktrees, SQLite DB) is stored in `~/.kandev` by default.
12
12
 
13
+ ## Version and Updates
14
+
15
+ - `npx kandev` (run mode) uses the latest GitHub release bundle by default.
16
+ - At startup, the launcher prints the resolved release tag (for example: `[kandev] release: v0.2.3 (github latest)`).
17
+ - Use `--version <tag>` to pin a specific runtime bundle release.
18
+ - CLI package updates are checked from npm and shown as a prompt. They are not forced.
19
+
13
20
  ## What You Get
14
21
 
15
22
  - **Multi-agent support** - Claude Code, Codex, GitHub Copilot, Gemini CLI, Amp, Auggie, OpenCode
package/dist/run.js CHANGED
@@ -44,17 +44,19 @@ async function prepareReleaseBundle({ version, backendPort, webPort, }) {
44
44
  const actualWebPort = webPort ?? (await (0, ports_1.pickAvailablePort)(constants_1.DEFAULT_WEB_PORT));
45
45
  const agentctlPort = await (0, ports_1.pickAvailablePort)(constants_1.DEFAULT_AGENTCTL_PORT);
46
46
  const backendUrl = `http://localhost:${actualBackendPort}`;
47
+ const logLevel = process.env.KANDEV_LOG_LEVEL?.trim() || "warn";
47
48
  node_fs_1.default.mkdirSync(constants_1.DATA_DIR, { recursive: true });
48
49
  const dbPath = node_path_1.default.join(constants_1.DATA_DIR, "kandev.db");
49
50
  // Note: Release mode doesn't configure MCP server ports as it uses
50
51
  // the bundled configuration. Only backend and agentctl ports are set.
51
- // Log level is set to warn for clean production output.
52
+ // Log level defaults to warn for clean output and can be overridden
53
+ // via KANDEV_LOG_LEVEL.
52
54
  const backendEnv = {
53
55
  ...process.env,
54
56
  KANDEV_SERVER_PORT: String(actualBackendPort),
55
57
  KANDEV_AGENT_STANDALONE_PORT: String(agentctlPort),
56
58
  KANDEV_DATABASE_PATH: dbPath,
57
- KANDEV_LOG_LEVEL: "warn",
59
+ KANDEV_LOG_LEVEL: logLevel,
58
60
  };
59
61
  const webEnv = {
60
62
  ...process.env,
@@ -69,11 +71,17 @@ async function prepareReleaseBundle({ version, backendPort, webPort, }) {
69
71
  backendUrl,
70
72
  backendEnv,
71
73
  webEnv,
74
+ releaseTag: tag,
75
+ requestedVersion: version,
72
76
  webPort: actualWebPort,
73
77
  agentctlPort,
74
78
  };
75
79
  }
76
80
  function launchReleaseApps(prepared) {
81
+ const releaseSource = prepared.requestedVersion
82
+ ? `(requested: ${prepared.requestedVersion})`
83
+ : "(github latest)";
84
+ console.log(`[kandev] release: ${prepared.releaseTag} ${releaseSource}`);
77
85
  console.log("[kandev] backend port:", prepared.backendEnv.KANDEV_SERVER_PORT);
78
86
  console.log("[kandev] web port:", prepared.webPort);
79
87
  console.log("[kandev] agentctl port:", prepared.agentctlPort);
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "kandev",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "private": false,
5
5
  "description": "NPX launcher for Kandev",
6
- "license": "UNLICENSED",
6
+ "license": "AGPL-3.0-only",
7
7
  "type": "commonjs",
8
8
  "bin": {
9
9
  "kandev": "bin/cli.js"