volute 0.27.0 → 0.28.0

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 (61) hide show
  1. package/README.md +5 -5
  2. package/dist/accept-666DIZX2.js +41 -0
  3. package/dist/api.d.ts +150 -134
  4. package/dist/{chat-MHJ3L6JQ.js → chat-M4SX42JD.js} +17 -7
  5. package/dist/{chunk-OQZH4PBB.js → chunk-AAPXKR5V.js} +124 -55
  6. package/dist/{chunk-USUXRNVD.js → chunk-J4IBNXGJ.js} +0 -2
  7. package/dist/chunk-MD4C26II.js +128 -0
  8. package/dist/{chunk-4WXYUOAK.js → chunk-NI5FFCCS.js} +8 -1
  9. package/dist/{chunk-JKOWNZ4P.js → chunk-P72MVS4R.js} +1 -40
  10. package/dist/{chunk-PHSAT7YL.js → chunk-POSXWWTA.js} +2 -2
  11. package/dist/cli.js +16 -28
  12. package/dist/{cloud-sync-T7M3ESC3.js → cloud-sync-HDL6PHZI.js} +4 -5
  13. package/dist/{daemon-restart-M2QTYMEG.js → daemon-restart-G4B2OYAB.js} +1 -1
  14. package/dist/daemon.js +570 -631
  15. package/dist/files-M546TKVN.js +46 -0
  16. package/dist/{login-XX37I52P.js → login-BKP3AFWN.js} +7 -17
  17. package/dist/logout-IQK7FNEK.js +20 -0
  18. package/dist/{message-delivery-LDXLGERA.js → message-delivery-HV3S6HZV.js} +4 -5
  19. package/dist/{mind-DI33C74K.js → mind-S5V6CK5W.js} +8 -13
  20. package/dist/mind-list-UPJ75GPI.js +29 -0
  21. package/dist/{mind-manager-M6EMUW5I.js → mind-manager-S6ILZVX3.js} +2 -2
  22. package/dist/mind-status-TK5AETEM.js +55 -0
  23. package/dist/{package-7WY6VKU3.js → package-CG4RWUGP.js} +1 -1
  24. package/dist/{pages-6EBS6CBR.js → pages-KJDJX4TA.js} +5 -5
  25. package/dist/{publish-66UB2ZFY.js → publish-ZZB33WP4.js} +6 -17
  26. package/dist/{register-6B2CXTYM.js → register-CHREOMJ3.js} +5 -24
  27. package/dist/reject-LXIZFJ4Q.js +39 -0
  28. package/dist/{sandbox-TGBX22DS.js → sandbox-5BW5HPXM.js} +1 -1
  29. package/dist/{send-ZNCJDSRP.js → send-TAOEZ4NH.js} +64 -6
  30. package/dist/skills/shared-files/SKILL.md +44 -0
  31. package/dist/skills/shared-files/scripts/merge.ts +72 -0
  32. package/dist/skills/shared-files/scripts/pull.ts +52 -0
  33. package/dist/skills/volute-mind/SKILL.md +5 -6
  34. package/dist/{sleep-manager-MWYHM5HV.js → sleep-manager-WMVG2VCL.js} +4 -5
  35. package/dist/{sprout-IJVVKSJ2.js → sprout-UNT7LKKE.js} +1 -1
  36. package/dist/{status-77YEPHMW.js → status-NQJYR4BG.js} +45 -1
  37. package/dist/{status-THLOBLWG.js → status-S7UUPNRW.js} +3 -13
  38. package/dist/systems-SMEFSHTA.js +60 -0
  39. package/dist/{up-NKSMXBWR.js → up-GM2JOH2Y.js} +1 -1
  40. package/dist/{version-notify-5Z4MNR6M.js → version-notify-JDUF4HQJ.js} +9 -10
  41. package/dist/web-assets/assets/{index-CI5wgghI.css → index-BZGvToHi.css} +1 -1
  42. package/dist/web-assets/assets/index-Cz4TrpzB.js +75 -0
  43. package/dist/web-assets/index.html +2 -2
  44. package/package.json +1 -1
  45. package/templates/_base/src/lib/logger.ts +0 -4
  46. package/dist/auth-D3OT2ARB.js +0 -37
  47. package/dist/chunk-KDGS53OS.js +0 -50
  48. package/dist/chunk-RWKVSSLY.js +0 -26
  49. package/dist/file-CR36YUPD.js +0 -204
  50. package/dist/log-ABYNVYJ3.js +0 -39
  51. package/dist/logout-W4KOOBIT.js +0 -18
  52. package/dist/logs-U35JR2KE.js +0 -77
  53. package/dist/merge-LNSMSAOF.js +0 -46
  54. package/dist/pull-XCHJTM5M.js +0 -39
  55. package/dist/service-6LIN3F3K.js +0 -122
  56. package/dist/shared-ML5I4Q2A.js +0 -39
  57. package/dist/status-7GA4SM4Y.js +0 -35
  58. package/dist/web-assets/assets/index-is5CvJWH.js +0 -75
  59. package/dist/{chunk-GIE6CSN5.js → chunk-SGVNFZHW.js} +0 -0
  60. package/dist/{history-XKRTAFS2.js → history-ALPTNB3I.js} +0 -0
  61. package/dist/{setup-JG4QAEBV.js → setup-RXYVGGT7.js} +3 -3
@@ -1,122 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- LAUNCHD_PLIST_LABEL,
4
- LAUNCHD_PLIST_PATH,
5
- SYSTEM_LAUNCHD_PLIST_PATH,
6
- SYSTEM_SERVICE_PATH,
7
- USER_SYSTEMD_UNIT
8
- } from "./chunk-LAC664WU.js";
9
- import "./chunk-AW7PFDVN.js";
10
- import "./chunk-RKQEHRBB.js";
11
- import {
12
- parseArgs
13
- } from "./chunk-D424ZQGI.js";
14
- import "./chunk-H7OZRFJB.js";
15
- import "./chunk-K3NQKI34.js";
16
-
17
- // src/commands/service.ts
18
- import { execFile } from "child_process";
19
- import { existsSync } from "fs";
20
- import { promisify } from "util";
21
- var execFileAsync = promisify(execFile);
22
- async function status() {
23
- const platform = process.platform;
24
- if (platform === "darwin") {
25
- if (existsSync(SYSTEM_LAUNCHD_PLIST_PATH)) {
26
- try {
27
- const { stdout } = await execFileAsync("launchctl", ["list", LAUNCHD_PLIST_LABEL]);
28
- console.log("System service (LaunchDaemon):");
29
- console.log(stdout);
30
- } catch {
31
- console.log("System service installed but not currently loaded.");
32
- }
33
- return;
34
- }
35
- if (!existsSync(LAUNCHD_PLIST_PATH)) {
36
- console.log("Service not installed.");
37
- return;
38
- }
39
- try {
40
- const { stdout } = await execFileAsync("launchctl", ["list", LAUNCHD_PLIST_LABEL]);
41
- console.log(stdout);
42
- } catch {
43
- console.log("Service installed but not currently loaded.");
44
- }
45
- } else if (platform === "linux") {
46
- if (existsSync(SYSTEM_SERVICE_PATH)) {
47
- try {
48
- const { stdout } = await execFileAsync("systemctl", ["status", "volute", "--no-pager"]);
49
- console.log(stdout);
50
- } catch (err) {
51
- const e = err;
52
- if (e.stdout) {
53
- console.log(e.stdout);
54
- } else {
55
- console.error("System service installed but could not retrieve status.");
56
- if (e.stderr) console.error(e.stderr);
57
- else if (e.message) console.error(e.message);
58
- console.error("Try running: systemctl status volute");
59
- }
60
- }
61
- return;
62
- }
63
- if (!existsSync(USER_SYSTEMD_UNIT)) {
64
- console.log("Service not installed.");
65
- return;
66
- }
67
- try {
68
- const { stdout } = await execFileAsync("systemctl", [
69
- "--user",
70
- "status",
71
- "volute",
72
- "--no-pager"
73
- ]);
74
- console.log(stdout);
75
- } catch (err) {
76
- const e = err;
77
- if (e.stdout) console.log(e.stdout);
78
- else console.log("Service installed but status unknown.");
79
- }
80
- } else {
81
- console.error(`Unsupported platform: ${platform}`);
82
- process.exit(1);
83
- }
84
- }
85
- async function run(args) {
86
- const { positional } = parseArgs(args, {});
87
- const subcommand = positional[0];
88
- switch (subcommand) {
89
- case "install":
90
- console.log("'volute service install' has been replaced by 'volute setup'.");
91
- console.log("Run `volute setup` to configure your installation.");
92
- break;
93
- case "uninstall":
94
- console.log("'volute service uninstall' has been replaced by 'volute setup'.");
95
- console.log("To uninstall the service, remove the service file manually:");
96
- if (process.platform === "darwin") {
97
- console.log(" launchctl unload ~/Library/LaunchAgents/com.volute.daemon.plist");
98
- console.log(" rm ~/Library/LaunchAgents/com.volute.daemon.plist");
99
- } else {
100
- console.log(" systemctl --user disable --now volute");
101
- console.log(" rm ~/.config/systemd/user/volute.service");
102
- }
103
- break;
104
- case "status":
105
- await status();
106
- break;
107
- default:
108
- console.log(`Usage:
109
- volute service status Check service status
110
-
111
- Note: 'volute service install' and 'volute service uninstall' have been
112
- replaced by 'volute setup'. Run 'volute setup' to configure your installation.`);
113
- if (subcommand && subcommand !== "--help") {
114
- console.error(`
115
- Unknown subcommand: ${subcommand}`);
116
- process.exit(1);
117
- }
118
- }
119
- }
120
- export {
121
- run
122
- };
@@ -1,39 +0,0 @@
1
- #!/usr/bin/env node
2
- import "./chunk-K3NQKI34.js";
3
-
4
- // src/commands/shared.ts
5
- async function run(args) {
6
- const subcommand = args[0];
7
- switch (subcommand) {
8
- case "merge":
9
- await import("./merge-LNSMSAOF.js").then((m) => m.run(args.slice(1)));
10
- break;
11
- case "pull":
12
- await import("./pull-XCHJTM5M.js").then((m) => m.run(args.slice(1)));
13
- break;
14
- case "log":
15
- await import("./log-ABYNVYJ3.js").then((m) => m.run(args.slice(1)));
16
- break;
17
- case "status":
18
- await import("./status-7GA4SM4Y.js").then((m) => m.run(args.slice(1)));
19
- break;
20
- case "--help":
21
- case "-h":
22
- case void 0:
23
- printUsage();
24
- break;
25
- default:
26
- printUsage();
27
- process.exit(1);
28
- }
29
- }
30
- function printUsage() {
31
- console.log(`Usage:
32
- volute shared merge "<message>" [--mind <name>] Merge shared changes to main
33
- volute shared pull [--mind <name>] Pull latest shared changes
34
- volute shared log [--limit N] [--mind <name>] Show shared repo history
35
- volute shared status [--mind <name>] Show pending changes diff`);
36
- }
37
- export {
38
- run
39
- };
@@ -1,35 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- resolveMindName
4
- } from "./chunk-NAOW2CLO.js";
5
- import {
6
- daemonFetch
7
- } from "./chunk-JGFVMROS.js";
8
- import {
9
- parseArgs
10
- } from "./chunk-D424ZQGI.js";
11
- import "./chunk-H7OZRFJB.js";
12
- import "./chunk-K3NQKI34.js";
13
-
14
- // src/commands/shared/status.ts
15
- async function run(args) {
16
- const { flags } = parseArgs(args, {
17
- mind: { type: "string" }
18
- });
19
- const mindName = resolveMindName(flags);
20
- const res = await daemonFetch(`/api/minds/${encodeURIComponent(mindName)}/shared/status`);
21
- if (!res.ok) {
22
- const body = await res.json().catch(() => ({}));
23
- console.error(body.error ?? `Server responded with ${res.status}`);
24
- process.exit(1);
25
- }
26
- const output = await res.text();
27
- if (output.trim()) {
28
- console.log(output.trimEnd());
29
- } else {
30
- console.log("No pending changes.");
31
- }
32
- }
33
- export {
34
- run
35
- };