@conveno/cli 0.2.0-rc.5 → 0.2.0-rc.7

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 (33) hide show
  1. package/README.md +22 -30
  2. package/dist/acp-9pRRszwU.js +82 -0
  3. package/dist/agy-relay-C-nqvieJ.js +137 -0
  4. package/dist/args-C7Agak9f.js +321 -0
  5. package/dist/bin.js +2 -2
  6. package/dist/{ctx-CDLE-2f2.js → ctx-tYftvhz_.js} +2 -3
  7. package/dist/daemon.js +410 -1423
  8. package/dist/daemonError-DNAKEyRT.js +66 -0
  9. package/dist/{dist-TrWRppjR.js → dist-D2hMvcZu.js} +592 -1216
  10. package/dist/dist-D9Gu-mQm.js +547 -0
  11. package/dist/dist-DOGlDbRb.js +504 -0
  12. package/dist/{dist-BPPOKmbH.js → dist-DOKVrSIw.js} +39 -148
  13. package/dist/dist-Dd31Fg0h.js +671 -0
  14. package/dist/{dist-CEJ2-wxh.js → dist-ftx5RNCp.js} +4 -17
  15. package/dist/{dist-E3XvoT1Q.js → dist-iFaY42Bs.js} +1 -1
  16. package/dist/{doctor-CzIGTeNT.js → doctor-BYa-MApu.js} +109 -102
  17. package/dist/fmt-C2SsP5Y0.js +96 -0
  18. package/dist/{hook-CLB_muZS.js → hook-CQeSn-w4.js} +7 -5
  19. package/dist/hook-entry-BXmSN--S.js +2490 -0
  20. package/dist/hook-entry-CgiSN-Oj.js +1 -0
  21. package/dist/main-seh-HPZO.js +971 -0
  22. package/dist/pick-DoyocW55.js +9 -0
  23. package/dist/{run-CYH0CRbp.js → run-B-WfNtCX.js} +627 -1998
  24. package/dist/{runtime-B1Pb9Qqg.js → runtime-Bnjh9BQ8.js} +119 -210
  25. package/dist/{dist-C8JRuLiZ.js → toml-patch-DGzVRdd1.js} +20 -1890
  26. package/dist/watch-Dr2RdyGo.js +185 -0
  27. package/package.json +15 -15
  28. package/dist/acp-BD7Oaerg.js +0 -142
  29. package/dist/args-BRB8QEQM.js +0 -554
  30. package/dist/dist-DcmKjrmu.js +0 -271
  31. package/dist/hook-entry-BlvSoNMm.js +0 -1289
  32. package/dist/hook-entry-CRDh36pe.js +0 -1
  33. package/dist/main-CsCsyq2G.js +0 -1645
@@ -0,0 +1,66 @@
1
+ import { t as ClientError } from "./dist-ftx5RNCp.js";
2
+ import { n as cmd, s as plainError } from "./fmt-C2SsP5Y0.js";
3
+ // src/daemonError.ts
4
+ /**
5
+ * Explain a failed connection to the daemon, with a fix that fits the cause. `start` is the command
6
+ * that fixes a daemon that is merely not running.
7
+ */
8
+ function daemonProblem(t, e) {
9
+ const why = plainError(e);
10
+ const kind = e instanceof ClientError ? e.kind : void 0;
11
+ const start = cmd(t, "conveno daemon start");
12
+ const status = cmd(t, "conveno daemon status");
13
+ switch (kind) {
14
+ case "socket_path_too_long": return {
15
+ why,
16
+ fix: `Set ${cmd(t, "XDG_RUNTIME_DIR")} to a shorter directory, then run ${start}. Use the same value everywhere you run Conveno and your AI CLIs.`,
17
+ notRunning: false
18
+ };
19
+ case "permission": return {
20
+ why,
21
+ fix: `Check who owns the socket named above. If it is not yours, remove it, then run ${start}.`,
22
+ notRunning: false
23
+ };
24
+ case "not_daemon": return {
25
+ why,
26
+ fix: `Stop the process that owns the socket, or remove the socket, then run ${start}.`,
27
+ notRunning: false
28
+ };
29
+ case "token_empty": return {
30
+ why,
31
+ fix: `Run ${cmd(t, "conveno daemon stop")}, then ${start}.`,
32
+ notRunning: false
33
+ };
34
+ case "daemon_missing": return {
35
+ why,
36
+ fix: `Reinstall Conveno (${cmd(t, "npm install -g @conveno/cli")}), then run ${start}.`,
37
+ notRunning: false
38
+ };
39
+ case "start_timeout": return {
40
+ why,
41
+ fix: `Run ${status} to see whether it came up, or ${cmd(t, "conveno doctor")} to check the install.`,
42
+ notRunning: false
43
+ };
44
+ case "start_exited": return {
45
+ why,
46
+ fix: `Fix what its output above shows, then run ${start}. If it is unclear, report it with that output.`,
47
+ notRunning: false
48
+ };
49
+ case "connection": return {
50
+ why,
51
+ fix: `Run ${status}, then try again.`,
52
+ notRunning: false
53
+ };
54
+ case "no_daemon": return {
55
+ why,
56
+ fix: `Run ${start}. It also starts when a CLI opens the Conveno MCP server.`,
57
+ notRunning: true
58
+ };
59
+ default: return {
60
+ why,
61
+ fix: `Run ${cmd(t, "conveno doctor")} to check the install, then try again.`,
62
+ notRunning: false
63
+ };
64
+ }
65
+ }
66
+ export { daemonProblem as t };