khala-cli 0.4.7 → 0.4.9

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 (49) hide show
  1. package/README.md +20 -3
  2. package/dist/THIRD_PARTY_NOTICES.txt +781 -0
  3. package/dist/{chunk-SU6362YU.mjs → chunk-3KDOTR54.mjs} +4 -2
  4. package/dist/{chunk-K6EJSZYO.mjs → chunk-3R6HFSLL.mjs} +149 -40
  5. package/dist/{chunk-OAFYPBCP.mjs → chunk-47XNLAJG.mjs} +5 -1
  6. package/dist/chunk-6BO3JSUP.mjs +33 -0
  7. package/dist/chunk-7R3EIDGR.mjs +58 -0
  8. package/dist/{chunk-YIHRHD7W.mjs → chunk-ANSR4IAW.mjs} +5 -1
  9. package/dist/chunk-BEO7WIIM.mjs +153 -0
  10. package/dist/chunk-BLCRVRIK.mjs +1000 -0
  11. package/dist/{chunk-LNG3ZZBK.mjs → chunk-BV45NK7K.mjs} +5 -1
  12. package/dist/{chunk-6YEYXZZB.mjs → chunk-DJM23SIU.mjs} +8 -8
  13. package/dist/{chunk-25AX7UMF.mjs → chunk-FO5GXCST.mjs} +24 -10
  14. package/dist/{chunk-IG2NU5J6.mjs → chunk-FZEH2IXZ.mjs} +95 -15
  15. package/dist/{chunk-TOBQUAPD.mjs → chunk-GSZADJMW.mjs} +253 -73
  16. package/dist/chunk-ITFD3JZS.mjs +1137 -0
  17. package/dist/chunk-K7V7X6WU.mjs +207 -0
  18. package/dist/chunk-KMLXOPBQ.mjs +20 -0
  19. package/dist/chunk-LBT47HLZ.mjs +19 -0
  20. package/dist/{chunk-3OFKVYOX.mjs → chunk-NGSYOVQ4.mjs} +12 -1
  21. package/dist/chunk-NIX5F4LT.mjs +863 -0
  22. package/dist/chunk-NPSQNCOY.mjs +590 -0
  23. package/dist/chunk-P3YIN7G7.mjs +26 -0
  24. package/dist/chunk-PAJ4JJPV.mjs +9827 -0
  25. package/dist/{chunk-ODTSGEID.mjs → chunk-PDZ5Z5ZE.mjs} +9 -6
  26. package/dist/chunk-QKWEZXR3.mjs +52 -0
  27. package/dist/chunk-SSO5RFOX.mjs +7 -0
  28. package/dist/{chunk-W5HS2PQO.mjs → chunk-T7IL7V7Q.mjs} +11 -9
  29. package/dist/{chunk-OP2HZ7EM.mjs → chunk-TANCKTDK.mjs} +24 -5
  30. package/dist/chunk-TEFOQXBK.mjs +44 -0
  31. package/dist/{chunk-7V2YQIRI.mjs → chunk-UK5GJO4Y.mjs} +22 -9
  32. package/dist/{chunk-C5SMOUTO.mjs → chunk-V4F3SYKW.mjs} +38 -11
  33. package/dist/{chunk-L7L6UNXN.mjs → chunk-WDOHRV3D.mjs} +31 -19
  34. package/dist/chunk-XBQDIKB5.mjs +18 -0
  35. package/dist/chunk-XUCWSYVS.mjs +148 -0
  36. package/dist/khala.mjs +20 -13
  37. package/dist/web/assets/local-CFzRHZpB.js +9 -0
  38. package/dist/web/assets/{local-OwDq47O4.css → local-ciypUFoK.css} +1 -1
  39. package/dist/web/index.html +2 -2
  40. package/package.json +5 -3
  41. package/dist/chunk-4LSCOWWN.mjs +0 -237
  42. package/dist/chunk-5GLTKWJ5.mjs +0 -1
  43. package/dist/chunk-5RGEO5HN.mjs +0 -142
  44. package/dist/chunk-APIWKRKG.mjs +0 -8
  45. package/dist/chunk-JEI32DEA.mjs +0 -634
  46. package/dist/chunk-S3FX7VCY.mjs +0 -386
  47. package/dist/chunk-U3MKSPRO.mjs +0 -227
  48. package/dist/chunk-WNOIHCCC.mjs +0 -191
  49. package/dist/web/assets/local-BQl2KrE1.js +0 -9
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # khala-cli
2
2
 
3
- The `khala` command connects your existing Claude Code, Codex or Cursor session to a
3
+ The `khala` command connects your existing Claude Code, Codex, Cursor or OpenCode session to a
4
4
  [Khala](https://khala.aiur.team) channel: an MCP server (`khala_join`, `khala_status`,
5
5
  `khala_read`, `khala_send`, `khala_event`), delivery hooks that bring channel messages into
6
- the session, and local channels on this computer. Requires Node 22 or newer.
6
+ the session, and local channels on this computer. Requires Node 22.18 or later in the 22.x series, or Node 24.11 or newer.
7
7
 
8
8
  ## Claude Code
9
9
 
@@ -35,11 +35,28 @@ npx -y khala-cli install cursor
35
35
  On Windows, run it in PowerShell or Command Prompt, not WSL. This installs the CLI under
36
36
  `~/.local/share/khala/npm` (`%LOCALAPPDATA%\khala\npm` on Windows), adds a `khala` server to
37
37
  `~/.cursor/mcp.json` and three delivery hooks to `~/.cursor/hooks.json`, keeping everything
38
- else and saving the originals as `*.khala-bak`. Restart Cursor (or toggle `khala` off and on
38
+ else; uninstall restores the original files byte for byte. Restart Cursor (or toggle `khala` off and on
39
39
  under Settings → MCP). Undo with `npx -y khala-cli install cursor --uninstall`. Cursor
40
40
  cannot wake an idle chat; new messages arrive when a chat finishes a turn (Sync) or after a
41
41
  tool call (Steer).
42
42
 
43
+ ## OpenCode
44
+
45
+ ```sh
46
+ npx -y khala-cli install opencode
47
+ ```
48
+
49
+ This installs a stable CLI and, when published on npm, pins `khala-opencode` at the same version in the global
50
+ `~/.config/opencode/opencode.json` (or under `XDG_CONFIG_HOME`). The plugin registers
51
+ Khala's MCP server. If the version is unpublished or the registry check fails, it configures
52
+ MCP-only mode (Async, no wake); re-run `khala install opencode` after updating.
53
+ Plain-JSON `opencode.jsonc` files, including OpenCode’s auto-created schema-only config, are updated in place when `opencode.json` is absent. If both config files exist, install and uninstall refuse without changing files or installing the CLI; merge or remove Khala manually, or combine your settings into one config and remove the other before retrying. JSONC with comments or other non-JSON syntax requires a manual merge or conversion to JSON before retrying. Restart OpenCode after installation. Existing settings and sibling
54
+ plugins are preserved. Undo with `npx -y khala-cli install opencode --uninstall`.
55
+
56
+ For unpublished-build testing only, `KHALA_INSTALL_SPEC` selects a CLI tarball and
57
+ `KHALA_OPENCODE_PLUGIN_SPEC` forces plugin mode with a spec such as
58
+ `file:/tmp/khala-opencode-0.1.0.tgz`.
59
+
43
60
  ## Then
44
61
 
45
62
  Tell your agent "Join this Khala channel: <link>" and open the confirmation link it returns.