kanon-cli 0.1.3 → 0.1.5

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.5');
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.5",
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
 
@@ -17,18 +17,10 @@ kanon card update <id> --add-label "x" — Add a label
17
17
  kanon card <id> — Re-read card (only if needed)
18
18
  kanon board — Board context (only if you need list names or members)
19
19
  kanon cards — List all cards (only if task requires it)
20
- kanon subcard <parentId> — List subcards
21
- kanon subcard <parentId> nest <cardId> Nest card under parent
22
- kanon subcard <parentId> unnest <cardId> Unnest card from parent
23
- kanon card create <title> <list> --parent <id> Create as subcard
24
- kanon sheet <id> — Read sheet data
25
- kanon sheet <id> set <tab> <row> <col> "val" — Set cell (0-indexed)
26
- kanon sheet <id> export — CSV output
27
- kanon note <id> — Read note text
28
- kanon note <id> set "text" — Set note text
29
- kanon note <id> append "text" — Append to note
30
- kanon canvas <id> — Read canvas objects & connections
31
- kanon help-all — Full command reference
20
+ kanon subcard <parentId> — List subcards
21
+ kanon attach <id> <filepath> Attach a file to a card
22
+ kanon download <id> <filename> Download an attachment
23
+ kanon help-all — Full command reference (sheets, notes, canvas, subcards, attachments, labels, etc.)
32
24
  \`\`\`
33
25
 
34
26
  Be concise and fast. Do not explain what you will do — just do it.`;
@@ -41,6 +33,8 @@ export const DEFAULT_TASK = `## Instructions
41
33
  \`kanon card update <id> --move "Review" --done\`
42
34
  5. If something is unclear, add a comment with your questions instead of guessing.
43
35
 
36
+ If you create files that are useful as deliverables (documents, exports, etc.), consider attaching them to the card with \`kanon attach <id> <filepath>\`.
37
+
44
38
  Do not run \`kanon board\`, \`kanon cards\`, or \`kanon help-all\` unless the task specifically requires that information.
45
39
  Do not modify cards you were not asked to work on.`;
46
40