kanon-cli 0.1.3 → 0.1.4

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/kanon.js CHANGED
@@ -22,7 +22,7 @@ const program = new Command();
22
22
  program
23
23
  .name('kanon')
24
24
  .description('Kanon board CLI')
25
- .version('0.1.3');
25
+ .version('0.1.4');
26
26
 
27
27
  // Default action: launch dashboard when no command is given
28
28
  program.action(async (options, cmd) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kanon-cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Kanon board CLI — watch boards, spawn Claude agents, manage cards",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,8 +14,17 @@ export async function dashboardCommand(options) {
14
14
 
15
15
  // Open browser (Commander's --no-browser sets options.browser = false)
16
16
  if (options.browser !== false) {
17
- const cmd = platform() === 'darwin' ? 'open' : platform() === 'win32' ? 'start' : 'xdg-open';
18
- exec(`${cmd} ${url}`, () => {});
17
+ const p = platform();
18
+ if (p === 'darwin') {
19
+ exec(`open ${url}`, () => {});
20
+ } else if (p === 'win32') {
21
+ exec(`start ${url}`, () => {});
22
+ } else {
23
+ // Linux / WSL2: try xdg-open, fall back to powershell.exe (WSL2 → Windows browser)
24
+ exec(`xdg-open ${url}`, (err) => {
25
+ if (err) exec(`powershell.exe -NoProfile -Command "Start-Process '${url}'"`, () => {});
26
+ });
27
+ }
19
28
  console.log(chalk.dim(`Opening ${url} in browser...`));
20
29
  }
21
30