kaizen-agent 1.6.0 → 1.6.1

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.
Binary file
Binary file
package/cli/install.ts CHANGED
@@ -295,7 +295,14 @@ if (upgrade) await clearBunxCache();
295
295
  if (upgrade && !existsSync(join(dirname(import.meta.dir), ".git"))) {
296
296
  const latest = await npmLatest();
297
297
  const now = versionOf(dirname(import.meta.dir));
298
- if (latest && latest !== now) {
298
+ // A copy can only upgrade through npm. Not knowing what npm has is not "up to
299
+ // date": falling through would copy this install over itself and say so.
300
+ if (!latest) {
301
+ console.log(`\n ${c.bold("could not reach npm")} ${c.dim(`— this is kaizen ${now}`)}`);
302
+ console.log(` ${c.dim("try again, or:")} ${c.cyan("bunx kaizen-agent@latest")}\n`);
303
+ process.exit(1);
304
+ }
305
+ if (latest !== now) {
299
306
  step(`fetching kaizen ${latest} from npm`);
300
307
  // --force so a stale package manifest cannot resolve the version away, and the
301
308
  // failure is printed rather than swallowed: a silent catch here looked exactly
package/cli/web.ts CHANGED
@@ -365,10 +365,15 @@ export async function shortcut() {
365
365
  }
366
366
 
367
367
  if (process.platform === "win32") {
368
+ // A .lnk icon must be an .ico, and the board runs in its own minimised console
369
+ // rather than as a daemon: a detached child from a double-clicked shortcut has
370
+ // no console to report to, so a failure there looks like nothing happened.
371
+ // Closing that window stops the board.
368
372
  const lnk = join(home, "Desktop", "Kaizen.lnk");
369
- const ps = `$s=(New-Object -ComObject WScript.Shell).CreateShortcut('${lnk}');$s.TargetPath='${bun}';$s.Arguments='"${script}" web --daemon';$s.WorkingDirectory='${home}';${hasIcon ? `$s.IconLocation='${icon}';` : ""}$s.Save()`;
373
+ const ico = join(dirname(import.meta.dir), "assets", "kaizen.ico");
374
+ const ps = `$s=(New-Object -ComObject WScript.Shell).CreateShortcut('${lnk}');$s.TargetPath='${bun}';$s.Arguments='"${script}" web';$s.WorkingDirectory='${home}';$s.WindowStyle=7;${existsSync(ico) ? `$s.IconLocation='${ico}';` : ""}$s.Save()`;
370
375
  await Bun.$`powershell -NoProfile -Command ${ps}`.quiet();
371
- return lnk;
376
+ return `${lnk} — double-click opens the board in a minimised window; close that window to stop it`;
372
377
  }
373
378
 
374
379
  const dir = join(process.env["XDG_DATA_HOME"] ?? join(home, ".local", "share"), "applications");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaizen-agent",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Staged workflow for AI agents — code, writing, research, operations: plan, human approval, build, independent review, bounded fix loop.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -13,6 +13,8 @@
13
13
  "agents",
14
14
  "commands",
15
15
  "web",
16
+ "assets/kaizen-logo.png",
17
+ "assets/kaizen.ico",
16
18
  "README.md",
17
19
  "LICENSE"
18
20
  ],