volute 0.36.0 → 0.37.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.
- package/dist/{accept-ZBDVVCEU.js → accept-AHAOUFBK.js} +4 -4
- package/dist/{activity-events-PWOGSMRL.js → activity-events-N6HCHU4P.js} +4 -4
- package/dist/{ai-service-GSZWIETO.js → ai-service-C2YNARGH.js} +5 -5
- package/dist/{api-client-3A77HMH7.js → api-client-LC5YRA32.js} +1 -1
- package/dist/{archive-Y2YEOCGB.js → archive-AWIJTVQV.js} +4 -4
- package/dist/{auth-YTQME4EV.js → auth-2QOOPMBX.js} +5 -5
- package/dist/{bridge-PXIO6PS2.js → bridge-F3ZJEKDN.js} +4 -4
- package/dist/{chat-ED7YOGKO.js → chat-5Y4FD77E.js} +9 -9
- package/dist/{chunk-75AJ54GM.js → chunk-2NHRJ3YO.js} +1 -1
- package/dist/{chunk-PJ4IPTIN.js → chunk-3F7XK5Q7.js} +1 -1
- package/dist/{chunk-IIWF2IPD.js → chunk-5DPRTREW.js} +3 -3
- package/dist/{chunk-X2J7QUFH.js → chunk-7AZQFSOV.js} +1 -1
- package/dist/{chunk-NUX47Y2V.js → chunk-A6FLW5XD.js} +1 -1
- package/dist/{chunk-SWW6AUVW.js → chunk-BIEWHAAM.js} +1 -1
- package/dist/{chunk-7PTQGPJY.js → chunk-CJ26DXZL.js} +1 -1
- package/dist/{chunk-PY557GDR.js → chunk-GVVVMZ4J.js} +1 -1
- package/dist/chunk-K3NQKI34.js +10 -0
- package/dist/{chunk-DQ7VBXAP.js → chunk-KBRGHKVU.js} +93 -81
- package/dist/{chunk-BOLJUV77.js → chunk-KXXJYY62.js} +4 -4
- package/dist/chunk-LQ6Z4FXN.js +87 -0
- package/dist/{chunk-N2AUHW4C.js → chunk-MQRS4J24.js} +2 -2
- package/dist/{chunk-B35VNNSS.js → chunk-N42QMDID.js} +2 -2
- package/dist/{chunk-GBDVNPN2.js → chunk-NYP3LBIV.js} +8 -8
- package/dist/{chunk-M5RYAA5I.js → chunk-ORNY3MZR.js} +4 -4
- package/dist/{chunk-YDBAY3NA.js → chunk-PMMHVSCR.js} +1 -1
- package/dist/chunk-QQQI6ISK.js +853 -0
- package/dist/{chunk-L72WYMF7.js → chunk-SNW2NPP4.js} +1 -1
- package/dist/chunk-SZJWC2GA.js +125 -0
- package/dist/{chunk-DJT5Y4UF.js → chunk-TNZ5XQA4.js} +2 -2
- package/dist/{chunk-DMV5P2LU.js → chunk-UIM5NHPP.js} +3 -3
- package/dist/{chunk-6F3YNULE.js → chunk-UQFYNZKT.js} +16 -16
- package/dist/{chunk-ZTVKQOU7.js → chunk-WC635OPK.js} +1 -1
- package/dist/{chunk-YTWZORJN.js → chunk-XLBQYIHH.js} +1 -1
- package/dist/{chunk-TWAN7ZNO.js → chunk-Z6TIXE77.js} +3 -3
- package/dist/cli.js +24 -24
- package/dist/{clock-HSEKS5AR.js → clock-BMLJ2TR6.js} +8 -8
- package/dist/{cloud-sync-BOCZSDIA.js → cloud-sync-OIX576NA.js} +18 -18
- package/dist/{config-UTS7QULS.js → config-QB7W3Z7P.js} +4 -4
- package/dist/connectors/discord-bridge.js +1 -1
- package/dist/connectors/slack-bridge.js +1 -1
- package/dist/connectors/telegram-bridge.js +1 -1
- package/dist/{conversations-HH3CJD4E.js → conversations-G6YRSABR.js} +5 -5
- package/dist/{create-5BPOOJAN.js → create-C3BBFYV7.js} +4 -4
- package/dist/{create-QBEPSD2Z.js → create-PN73742N.js} +4 -4
- package/dist/{daemon-client-RVIKXGFQ.js → daemon-client-2MIPKY3E.js} +1 -1
- package/dist/{daemon-restart-SIR3UR4B.js → daemon-restart-L2O6L7NR.js} +11 -11
- package/dist/daemon.js +392 -1101
- package/dist/db-CBOCDYVA.js +9 -0
- package/dist/{db-BDMH4SZ2.js → db-IJL6B26S.js} +1 -1
- package/dist/{delete-L5PAVDGQ.js → delete-NLXES2C7.js} +3 -3
- package/dist/delivery-manager-4PVBUZJB.js +30 -0
- package/dist/{delivery-router-VSULHXNH.js → delivery-router-QTFEZ26O.js} +4 -4
- package/dist/down-25L2RKCQ.js +17 -0
- package/dist/echo-text-T5ZLGMA7.js +31 -0
- package/dist/{env-E4XHO2BI.js → env-IQ6Q2333.js} +6 -6
- package/dist/exec-ONYZEA5B.js +17 -0
- package/dist/{export-HTFOHOKL.js → export-JPDBQESV.js} +6 -6
- package/dist/{extension-AKZ46YSL.js → extension-LZYHBNLV.js} +4 -4
- package/dist/{extensions-OOSFVH7U.js → extensions-CLYXNGYB.js} +17 -17
- package/dist/{files-H2YLRD37.js → files-LAQ3NXQK.js} +7 -7
- package/dist/{import-OL5BZX7S.js → import-EROF27RH.js} +11 -10
- package/dist/{isolation-N74RWOUX.js → isolation-G5J3MTKU.js} +4 -4
- package/dist/{join-DF5XSJAC.js → join-6SZCA5FX.js} +3 -3
- package/dist/{list-GJ4RUQQT.js → list-KHJZJPEJ.js} +4 -4
- package/dist/{login-JXRVMBRB.js → login-F6YMAVLE.js} +6 -6
- package/dist/{login-GOTAYLXP.js → login-GYTH67ES.js} +4 -4
- package/dist/{logout-FW243JBU.js → logout-HHPH52KZ.js} +6 -6
- package/dist/{logout-6KIA74EV.js → logout-YHQLOFLR.js} +4 -4
- package/dist/message-delivery-N2V5APCS.js +40 -0
- package/dist/{mind-6VJJHF65.js → mind-M57ET546.js} +19 -19
- package/dist/{mind-activity-tracker-66UVYIFW.js → mind-activity-tracker-42ENM32S.js} +5 -5
- package/dist/{mind-history-MII2SK7F.js → mind-history-WHCNZ6I5.js} +5 -5
- package/dist/{mind-list-GEWHWAL4.js → mind-list-H3HC2ZRG.js} +4 -4
- package/dist/mind-manager-LS2AIXHQ.js +30 -0
- package/dist/{mind-profile-DCBDVF5B.js → mind-profile-7VYRJGFZ.js} +2 -2
- package/dist/mind-service-UDXF5WC2.js +36 -0
- package/dist/{mind-sleep-ITCF6OQA.js → mind-sleep-ZL5ZXFTM.js} +4 -4
- package/dist/{mind-status-X4SX3YUG.js → mind-status-ZWULKOUO.js} +4 -4
- package/dist/{mind-wake-KXMKMGWX.js → mind-wake-HK5ORGUK.js} +4 -4
- package/dist/{package-3W2MEXHB.js → package-5FGU5QNP.js} +2 -2
- package/dist/{read-ZUDG4JWU.js → read-CP7MYMJQ.js} +4 -4
- package/dist/{read-stdin-3X5VYKNS.js → read-stdin-4B5UYPPM.js} +1 -1
- package/dist/{register-SB7NXCOE.js → register-XOBFEMI4.js} +4 -4
- package/dist/{registry-YPHK534W.js → registry-KMELPC3X.js} +3 -3
- package/dist/{reject-MUR2KWJ4.js → reject-43AGXB6B.js} +4 -4
- package/dist/{restart-5EGG4JXU.js → restart-O5QIYQJT.js} +5 -5
- package/dist/{sandbox-LP6YRAXS.js → sandbox-PQYEICEF.js} +5 -5
- package/dist/scheduler-NTC74JYH.js +30 -0
- package/dist/{schema-MISD3JFG.js → schema-K575EBPE.js} +2 -2
- package/dist/{seed-CEC4RC23.js → seed-55VC3A57.js} +2 -2
- package/dist/{seed-check-KJNTL72M.js → seed-check-HZPVFJKZ.js} +2 -2
- package/dist/{seed-cmd-WTTG7SRQ.js → seed-cmd-2KOEQZK6.js} +4 -4
- package/dist/{seed-create-M6RCC6RP.js → seed-create-Y2Z5JWBB.js} +6 -6
- package/dist/{seed-sprout-ZKCHFJKH.js → seed-sprout-OLSIWXZN.js} +14 -14
- package/dist/{send-LXUT2GGR.js → send-7CIP5GLS.js} +8 -8
- package/dist/{service-M6N3RUYU.js → service-YMHWPDXW.js} +6 -6
- package/dist/{setup-PJOF5UV5.js → setup-6Z34JJEB.js} +32 -37
- package/dist/{setup-PMJHCZQX.js → setup-PF7JSFMO.js} +4 -4
- package/dist/{skill-TAAKEYBV.js → skill-ICN6Y2ZF.js} +6 -6
- package/dist/{skills-2PTRTBQP.js → skills-FDMLJGZ3.js} +7 -7
- package/dist/sleep-manager-TQP5ZJI5.js +34 -0
- package/dist/{spirit-6KVDIROQ.js → spirit-SM6ARJ2N.js} +9 -9
- package/dist/{split-AWVOYOPZ.js → split-5YBEQTBF.js} +3 -3
- package/dist/{sprout-WX2FFYLP.js → sprout-G6G57IOY.js} +2 -2
- package/dist/{src-QEOLMAYC.js → src-LT6ZBYYX.js} +2 -2
- package/dist/{src-GW6FP6VL.js → src-O4PRLMKM.js} +1 -1
- package/dist/{src-FQE4BHRG.js → src-OYWRPLC6.js} +1 -1
- package/dist/{start-3UXOPXQG.js → start-LMXXRR3X.js} +5 -5
- package/dist/{status-3IVSLJDN.js → status-MC2P7DBG.js} +7 -7
- package/dist/{stop-3XYIBGFM.js → stop-TWDKVEUX.js} +5 -5
- package/dist/system-chat-NNXYCSVL.js +34 -0
- package/dist/{systems-O43WGQY6.js → systems-Y2WZV2K4.js} +7 -7
- package/dist/{tailscale-DZU4WM3E.js → tailscale-LTYNKIPZ.js} +3 -3
- package/dist/{template-hash-6ITI3WC4.js → template-hash-SSIBEEYK.js} +1 -1
- package/dist/up-5JXV6BZS.js +19 -0
- package/dist/{update-RIQYUPVN.js → update-UOP2INF2.js} +7 -7
- package/dist/{update-check-4TIJKVGD.js → update-check-IKS7SGK5.js} +4 -4
- package/dist/{upgrade-ZMDGC7M2.js → upgrade-RXFZR5FI.js} +3 -3
- package/dist/{variant-QWL2WSRI.js → variant-HHDTW74J.js} +1 -1
- package/dist/{version-notify-UXSHBZ35.js → version-notify-CSE4NBYM.js} +18 -18
- package/dist/{volute-config-V7UFFBG3.js → volute-config-TS62GS6A.js} +1 -1
- package/dist/web-assets/assets/{index-C-eYso8Y.js → index-B3xLeex8.js} +16 -16
- package/dist/web-assets/assets/{index-CCv_fSte.css → index-Dr4A90Lo.css} +1 -1
- package/dist/web-assets/index.html +2 -2
- package/package.json +1 -1
- package/templates/_base/src/lib/context-breakdown.ts +22 -16
- package/dist/chunk-7KJOFUNN.js +0 -22
- package/dist/chunk-PZYJBOQP.js +0 -207
- package/dist/db-URORGSXQ.js +0 -9
- package/dist/delivery-manager-WTGIPBGY.js +0 -30
- package/dist/down-DGGLZ5TA.js +0 -17
- package/dist/exec-X3C6ZZTQ.js +0 -17
- package/dist/lib-DYEZMGW7.js +0 -6588
- package/dist/message-delivery-YORUXKDQ.js +0 -40
- package/dist/mind-manager-TJ2SUPRX.js +0 -30
- package/dist/mind-service-E7FM2WZF.js +0 -36
- package/dist/scheduler-FRJ5DK24.js +0 -30
- package/dist/sleep-manager-WAZWMFJT.js +0 -34
- package/dist/system-chat-2IFS5HCX.js +0 -34
- package/dist/up-4SCIUIMG.js +0 -19
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
logger_default
|
|
4
|
+
} from "./chunk-T2TP6ZC6.js";
|
|
5
|
+
import {
|
|
6
|
+
voluteSystemDir
|
|
7
|
+
} from "./chunk-2NHRJ3YO.js";
|
|
8
|
+
|
|
9
|
+
// packages/daemon/src/lib/bridges/bridges.ts
|
|
10
|
+
import { existsSync, readFileSync, writeFileSync } from "fs";
|
|
11
|
+
import { resolve } from "path";
|
|
12
|
+
function bridgesPath() {
|
|
13
|
+
return resolve(voluteSystemDir(), "bridges.json");
|
|
14
|
+
}
|
|
15
|
+
function readBridgesConfig() {
|
|
16
|
+
const path = bridgesPath();
|
|
17
|
+
if (!existsSync(path)) return {};
|
|
18
|
+
try {
|
|
19
|
+
return JSON.parse(readFileSync(path, "utf-8"));
|
|
20
|
+
} catch (err) {
|
|
21
|
+
logger_default.error(
|
|
22
|
+
`bridges.json is corrupt or unreadable at ${path} \u2014 all bridges disabled`,
|
|
23
|
+
logger_default.errorData(err)
|
|
24
|
+
);
|
|
25
|
+
return {};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function writeBridgesConfig(config) {
|
|
29
|
+
writeFileSync(bridgesPath(), `${JSON.stringify(config, null, 2)}
|
|
30
|
+
`, { mode: 384 });
|
|
31
|
+
}
|
|
32
|
+
function getBridgeConfig(platform) {
|
|
33
|
+
const config = readBridgesConfig();
|
|
34
|
+
return config[platform] ?? null;
|
|
35
|
+
}
|
|
36
|
+
function setBridgeConfig(platform, bridge) {
|
|
37
|
+
const config = readBridgesConfig();
|
|
38
|
+
config[platform] = bridge;
|
|
39
|
+
writeBridgesConfig(config);
|
|
40
|
+
}
|
|
41
|
+
function removeBridgeConfig(platform) {
|
|
42
|
+
const config = readBridgesConfig();
|
|
43
|
+
delete config[platform];
|
|
44
|
+
writeBridgesConfig(config);
|
|
45
|
+
}
|
|
46
|
+
function setChannelMapping(platform, externalChannel, voluteChannel) {
|
|
47
|
+
const config = readBridgesConfig();
|
|
48
|
+
const bridge = config[platform];
|
|
49
|
+
if (!bridge) throw new Error(`Bridge not configured for ${platform}`);
|
|
50
|
+
bridge.channelMappings[externalChannel] = voluteChannel;
|
|
51
|
+
writeBridgesConfig(config);
|
|
52
|
+
}
|
|
53
|
+
function removeChannelMapping(platform, externalChannel) {
|
|
54
|
+
const config = readBridgesConfig();
|
|
55
|
+
const bridge = config[platform];
|
|
56
|
+
if (!bridge) return;
|
|
57
|
+
delete bridge.channelMappings[externalChannel];
|
|
58
|
+
writeBridgesConfig(config);
|
|
59
|
+
}
|
|
60
|
+
function resolveChannelMapping(platform, externalChannel) {
|
|
61
|
+
const bridge = getBridgeConfig(platform);
|
|
62
|
+
if (!bridge) return null;
|
|
63
|
+
return bridge.channelMappings[externalChannel] ?? null;
|
|
64
|
+
}
|
|
65
|
+
function findBridgeForChannel(voluteChannelName) {
|
|
66
|
+
const config = readBridgesConfig();
|
|
67
|
+
for (const [platform, bridge] of Object.entries(config)) {
|
|
68
|
+
if (!bridge.enabled) continue;
|
|
69
|
+
for (const [external, volute] of Object.entries(bridge.channelMappings)) {
|
|
70
|
+
if (volute === voluteChannelName) {
|
|
71
|
+
return { platform, externalChannel: external };
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export {
|
|
79
|
+
readBridgesConfig,
|
|
80
|
+
getBridgeConfig,
|
|
81
|
+
setBridgeConfig,
|
|
82
|
+
removeBridgeConfig,
|
|
83
|
+
setChannelMapping,
|
|
84
|
+
removeChannelMapping,
|
|
85
|
+
resolveChannelMapping,
|
|
86
|
+
findBridgeForChannel
|
|
87
|
+
};
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
pollHealthDown,
|
|
6
6
|
readDaemonConfig,
|
|
7
7
|
stopService
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TNZ5XQA4.js";
|
|
9
9
|
import {
|
|
10
10
|
command
|
|
11
11
|
} from "./chunk-TXSA4Q3V.js";
|
|
12
12
|
import {
|
|
13
13
|
voluteSystemDir
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2NHRJ3YO.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/down.ts
|
|
17
17
|
import { existsSync, readFileSync, unlinkSync } from "fs";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-T2TP6ZC6.js";
|
|
5
5
|
import {
|
|
6
6
|
getDb
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2NHRJ3YO.js";
|
|
8
8
|
import {
|
|
9
9
|
activity
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CJ26DXZL.js";
|
|
11
11
|
|
|
12
12
|
// packages/daemon/src/lib/events/activity-events.ts
|
|
13
13
|
var subscribers = /* @__PURE__ */ new Set();
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
logger_default
|
|
4
|
-
} from "./chunk-T2TP6ZC6.js";
|
|
5
2
|
import {
|
|
6
3
|
exec,
|
|
7
4
|
gitExec
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3F7XK5Q7.js";
|
|
9
6
|
import {
|
|
10
7
|
readGlobalConfig,
|
|
11
8
|
writeGlobalConfig
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-A6FLW5XD.js";
|
|
10
|
+
import {
|
|
11
|
+
logger_default
|
|
12
|
+
} from "./chunk-T2TP6ZC6.js";
|
|
13
13
|
import {
|
|
14
14
|
getDb,
|
|
15
15
|
mindDir,
|
|
16
16
|
readRegistry,
|
|
17
17
|
voluteHome
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2NHRJ3YO.js";
|
|
19
19
|
import {
|
|
20
20
|
sharedSkills
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CJ26DXZL.js";
|
|
22
22
|
|
|
23
23
|
// packages/daemon/src/lib/skills.ts
|
|
24
24
|
import { createHash } from "crypto";
|
|
@@ -46,7 +46,7 @@ async function initDefaultSkills() {
|
|
|
46
46
|
const config = readGlobalConfig();
|
|
47
47
|
let extensionSkills = [];
|
|
48
48
|
try {
|
|
49
|
-
const { getExtensionStandardSkills } = await import("./extensions-
|
|
49
|
+
const { getExtensionStandardSkills } = await import("./extensions-CLYXNGYB.js");
|
|
50
50
|
extensionSkills = getExtensionStandardSkills();
|
|
51
51
|
} catch (err) {
|
|
52
52
|
logger_default.warn("failed to load extension standard skills during init", logger_default.errorData(err));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
logger_default
|
|
4
|
-
} from "./chunk-T2TP6ZC6.js";
|
|
5
2
|
import {
|
|
6
3
|
readGlobalConfig,
|
|
7
4
|
writeGlobalConfig
|
|
8
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-A6FLW5XD.js";
|
|
6
|
+
import {
|
|
7
|
+
logger_default
|
|
8
|
+
} from "./chunk-T2TP6ZC6.js";
|
|
9
9
|
|
|
10
10
|
// packages/daemon/src/lib/ai-service.ts
|
|
11
11
|
import { complete, getEnvApiKey, getModel, getModels, getProviders } from "@mariozechner/pi-ai";
|