volute 0.35.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-N6HCHU4P.js +15 -0
- package/dist/{ai-service-LURBEDDB.js → ai-service-C2YNARGH.js} +6 -6
- package/dist/{api-client-3A77HMH7.js → api-client-LC5YRA32.js} +1 -1
- package/dist/{archive-ESU2FUN4.js → archive-AWIJTVQV.js} +4 -4
- package/dist/{auth-WX4TESEI.js → auth-2QOOPMBX.js} +6 -6
- package/dist/{bridge-PXIO6PS2.js → bridge-F3ZJEKDN.js} +4 -4
- package/dist/{chat-QXAJF3FU.js → chat-5Y4FD77E.js} +9 -9
- package/dist/{chunk-BDYXIWA5.js → chunk-2NHRJ3YO.js} +13 -2
- package/dist/{chunk-AN2W47GW.js → chunk-3F7XK5Q7.js} +2 -2
- package/dist/{chunk-AOB6GVRM.js → chunk-46DYYHN6.js} +8 -3
- package/dist/{chunk-WZRZFFCL.js → chunk-5DPRTREW.js} +146 -186
- package/dist/{chunk-QWTR6AWZ.js → chunk-7AZQFSOV.js} +2 -2
- package/dist/{chunk-BMZQYACC.js → chunk-A6FLW5XD.js} +19 -4
- package/dist/{chunk-N5LMGYXX.js → chunk-BIEWHAAM.js} +2 -2
- package/dist/{chunk-5N7Y5WAM.js → chunk-CJ26DXZL.js} +29 -13
- package/dist/{chunk-ZSR72JB3.js → chunk-CU6OFXMM.js} +1 -1
- package/dist/{chunk-N446KRP7.js → chunk-GVVVMZ4J.js} +2 -2
- package/dist/chunk-K3NQKI34.js +10 -0
- package/dist/{chunk-F7ZNLYKZ.js → chunk-KAB6UGOL.js} +2 -2
- package/dist/{chunk-WJPROOU5.js → chunk-KBRGHKVU.js} +681 -3726
- package/dist/{chunk-PWQ2ITYG.js → chunk-KXXJYY62.js} +6 -6
- package/dist/{chunk-NJK5SDGR.js → chunk-LGNUFVMR.js} +1 -1
- package/dist/chunk-LQ6Z4FXN.js +87 -0
- package/dist/{chunk-J6CJQDWI.js → chunk-MQRS4J24.js} +2 -2
- package/dist/{chunk-CORXD635.js → chunk-N42QMDID.js} +3 -3
- package/dist/{chunk-IJHIXLVN.js → chunk-NYP3LBIV.js} +15 -13
- package/dist/{chunk-FT5KETXZ.js → chunk-ORNY3MZR.js} +4 -4
- package/dist/{chunk-A2ZLHBHG.js → chunk-PMMHVSCR.js} +2 -2
- package/dist/chunk-QQQI6ISK.js +853 -0
- package/dist/chunk-RG5TOL4O.js +18 -0
- package/dist/{chunk-VHJRZM2S.js → chunk-SNW2NPP4.js} +2 -2
- package/dist/chunk-SZJWC2GA.js +125 -0
- package/dist/{chunk-BKF4WQCY.js → chunk-T2TP6ZC6.js} +20 -8
- package/dist/{chunk-2TGZJFAT.js → chunk-TNZ5XQA4.js} +3 -3
- package/dist/{chunk-QCH6K235.js → chunk-UI7RPV2B.js} +1 -1
- package/dist/{chunk-XRQSAMX2.js → chunk-UIM5NHPP.js} +3 -3
- package/dist/{chunk-5XJYUFZH.js → chunk-UQFYNZKT.js} +76 -30
- package/dist/{chunk-OTC67N2Z.js → chunk-WC635OPK.js} +1 -1
- package/dist/{chunk-BV65KRHM.js → chunk-XLBQYIHH.js} +2 -2
- package/dist/{chunk-VY3RB2V7.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-6JL4C24T.js → cloud-sync-OIX576NA.js} +20 -21
- package/dist/{config-UTS7QULS.js → config-QB7W3Z7P.js} +4 -4
- package/dist/connectors/discord-bridge.js +4 -4
- package/dist/connectors/slack-bridge.js +4 -4
- package/dist/connectors/telegram-bridge.js +4 -4
- package/dist/{conversations-2PW57WO2.js → conversations-G6YRSABR.js} +16 -10
- package/dist/{create-5BPOOJAN.js → create-C3BBFYV7.js} +4 -4
- package/dist/{create-UVCK2CS6.js → create-PN73742N.js} +4 -4
- package/dist/{daemon-client-RVIKXGFQ.js → daemon-client-2MIPKY3E.js} +1 -1
- package/dist/{daemon-restart-HSZ3BCX5.js → daemon-restart-L2O6L7NR.js} +9 -9
- package/dist/daemon.js +690 -1281
- 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-HEJSJAHQ.js → delivery-router-QTFEZ26O.js} +5 -5
- 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-OAS6QVBN.js → export-JPDBQESV.js} +6 -6
- package/dist/{extension-D74CNM7G.js → extension-LZYHBNLV.js} +26 -7
- package/dist/extensions-CLYXNGYB.js +50 -0
- package/dist/{files-CWTK6V3H.js → files-LAQ3NXQK.js} +7 -7
- package/dist/{import-5A3T7QV4.js → import-EROF27RH.js} +12 -11
- package/dist/{isolation-TK5RX2WM.js → isolation-G5J3MTKU.js} +4 -4
- package/dist/{join-DF5XSJAC.js → join-6SZCA5FX.js} +3 -3
- package/dist/{list-PDMQM7ZV.js → list-KHJZJPEJ.js} +11 -5
- package/dist/{login-7TE6CIZF.js → login-F6YMAVLE.js} +6 -6
- package/dist/{login-GOTAYLXP.js → login-GYTH67ES.js} +4 -4
- package/dist/{logout-T4XS6LRU.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-5IEYKV7I.js → mind-M57ET546.js} +19 -19
- package/dist/mind-activity-tracker-42ENM32S.js +18 -0
- package/dist/{mind-history-IE2QH7U5.js → mind-history-WHCNZ6I5.js} +86 -19
- 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-D2FSVFAX.js → package-5FGU5QNP.js} +6 -6
- package/dist/{read-67VRP2DO.js → read-CP7MYMJQ.js} +8 -8
- 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-GBSNW3HG.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-R37VIU36.js → sandbox-PQYEICEF.js} +6 -6
- package/dist/scheduler-NTC74JYH.js +30 -0
- package/dist/{schema-XVZ2CLKW.js → schema-K575EBPE.js} +4 -2
- package/dist/{seed-EQORWX77.js → seed-55VC3A57.js} +2 -2
- package/dist/{seed-check-KJNTL72M.js → seed-check-HZPVFJKZ.js} +2 -2
- package/dist/{seed-cmd-ZM2XGVU2.js → seed-cmd-2KOEQZK6.js} +4 -4
- package/dist/{seed-create-DRWGGHEI.js → seed-create-Y2Z5JWBB.js} +6 -6
- package/dist/{seed-sprout-JYXGXOP3.js → seed-sprout-OLSIWXZN.js} +15 -15
- package/dist/{send-JBJJQ7CA.js → send-7CIP5GLS.js} +8 -8
- package/dist/{service-WNPCNHOX.js → service-YMHWPDXW.js} +6 -6
- package/dist/{setup-BJ4YAY26.js → setup-6Z34JJEB.js} +32 -37
- package/dist/{setup-RHJRFURI.js → setup-PF7JSFMO.js} +6 -4
- package/dist/{skill-TAAKEYBV.js → skill-ICN6Y2ZF.js} +6 -6
- package/dist/skills/tending/SKILL.md +52 -0
- package/dist/{skills-EKMCQ46K.js → skills-FDMLJGZ3.js} +8 -8
- package/dist/sleep-manager-TQP5ZJI5.js +34 -0
- package/dist/spirit-SM6ARJ2N.js +24 -0
- package/dist/{split-AWVOYOPZ.js → split-5YBEQTBF.js} +3 -3
- package/dist/{sprout-HE4TITMK.js → sprout-G6G57IOY.js} +2 -2
- package/dist/src-LT6ZBYYX.js +2133 -0
- package/dist/src-O4PRLMKM.js +425 -0
- package/dist/src-OYWRPLC6.js +617 -0
- package/dist/{start-3UXOPXQG.js → start-LMXXRR3X.js} +5 -5
- package/dist/{status-ZK34WYIM.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-ZIZ2HWJ5.js → tailscale-LTYNKIPZ.js} +4 -4
- package/dist/template-hash-SSIBEEYK.js +9 -0
- package/dist/up-5JXV6BZS.js +19 -0
- package/dist/{update-ANE5ZM7F.js → update-UOP2INF2.js} +7 -7
- package/dist/{update-check-UV55CBEP.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-FXSEMXWW.js → version-notify-CSE4NBYM.js} +22 -23
- package/dist/{volute-config-D2XVS2YI.js → volute-config-TS62GS6A.js} +2 -2
- package/dist/web-assets/assets/index-B3xLeex8.js +75 -0
- package/dist/web-assets/assets/index-Dr4A90Lo.css +1 -0
- package/dist/web-assets/index.html +2 -2
- package/drizzle/0006_channels.sql +17 -0
- package/drizzle/0007_drop_conversation_name_title.sql +11 -0
- package/drizzle/0008_performance_indexes.sql +6 -0
- package/drizzle/meta/0006_snapshot.json +7 -0
- package/drizzle/meta/0007_snapshot.json +7 -0
- package/drizzle/meta/_journal.json +21 -0
- package/package.json +5 -5
- package/templates/_base/home/.config/routes.json +2 -2
- package/templates/_base/home/VOLUTE.md +1 -2
- package/templates/_base/src/lib/context-breakdown.ts +22 -16
- package/templates/_base/src/lib/format-prefix.ts +1 -7
- package/templates/claude/.init/.config/routes.json +2 -2
- package/templates/codex/.init/.config/routes.json +2 -2
- package/templates/pi/.init/.config/routes.json +2 -2
- package/dist/activity-events-ZW4SDL2C.js +0 -15
- package/dist/chunk-7KJOFUNN.js +0 -22
- package/dist/chunk-MDJGMOSD.js +0 -207
- package/dist/db-BVBJ57TU.js +0 -9
- package/dist/delivery-manager-H5ZVBMCQ.js +0 -31
- package/dist/down-74VXM45A.js +0 -17
- package/dist/exec-PY7THYH4.js +0 -17
- package/dist/extensions-XDDFY72A.js +0 -49
- package/dist/lib-DYEZMGW7.js +0 -6588
- package/dist/message-delivery-GRC4W6P7.js +0 -41
- package/dist/mind-activity-tracker-QBLIV7ZJ.js +0 -18
- package/dist/mind-manager-HFLB5653.js +0 -31
- package/dist/mind-service-X2CAA6W6.js +0 -37
- package/dist/scheduler-Y7O4CJXL.js +0 -31
- package/dist/sleep-manager-7KFK3USC.js +0 -35
- package/dist/spirit-ZFRDXMG7.js +0 -23
- package/dist/system-chat-IDPHYHY4.js +0 -35
- package/dist/template-hash-A7FNHTB7.js +0 -9
- package/dist/up-77ICEDEW.js +0 -19
- package/dist/web-assets/assets/index-BhxWKvbB.css +0 -1
- package/dist/web-assets/assets/index-CHVKJ9II.js +0 -75
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
resolveMindName
|
|
4
4
|
} from "./chunk-BTY4WNFE.js";
|
|
5
|
+
import {
|
|
6
|
+
daemonFetch
|
|
7
|
+
} from "./chunk-ZX7EAV5J.js";
|
|
5
8
|
import {
|
|
6
9
|
command
|
|
7
10
|
} from "./chunk-TXSA4Q3V.js";
|
|
8
11
|
import "./chunk-O7IGP7ZW.js";
|
|
9
|
-
import
|
|
10
|
-
daemonFetch
|
|
11
|
-
} from "./chunk-ZX7EAV5J.js";
|
|
12
|
-
import "./chunk-7KJOFUNN.js";
|
|
12
|
+
import "./chunk-K3NQKI34.js";
|
|
13
13
|
|
|
14
14
|
// packages/cli/src/commands/chat/accept.ts
|
|
15
15
|
var cmd = command({
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
broadcast,
|
|
4
|
+
publish,
|
|
5
|
+
subscribe
|
|
6
|
+
} from "./chunk-N42QMDID.js";
|
|
7
|
+
import "./chunk-T2TP6ZC6.js";
|
|
8
|
+
import "./chunk-2NHRJ3YO.js";
|
|
9
|
+
import "./chunk-CJ26DXZL.js";
|
|
10
|
+
import "./chunk-K3NQKI34.js";
|
|
11
|
+
export {
|
|
12
|
+
broadcast,
|
|
13
|
+
publish,
|
|
14
|
+
subscribe
|
|
15
|
+
};
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
setEnabledModels,
|
|
18
18
|
setUtilityModel,
|
|
19
19
|
unqualifyModelId
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-ORNY3MZR.js";
|
|
21
|
+
import "./chunk-A6FLW5XD.js";
|
|
22
|
+
import "./chunk-T2TP6ZC6.js";
|
|
23
|
+
import "./chunk-2NHRJ3YO.js";
|
|
24
|
+
import "./chunk-CJ26DXZL.js";
|
|
25
|
+
import "./chunk-K3NQKI34.js";
|
|
26
26
|
export {
|
|
27
27
|
aiComplete,
|
|
28
28
|
aiCompleteUtility,
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
extractArchive,
|
|
6
6
|
isHomeOnlyArchive,
|
|
7
7
|
readManifest
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-BIEWHAAM.js";
|
|
9
|
+
import "./chunk-2NHRJ3YO.js";
|
|
10
|
+
import "./chunk-CJ26DXZL.js";
|
|
11
|
+
import "./chunk-K3NQKI34.js";
|
|
12
12
|
export {
|
|
13
13
|
addHistoryToArchive,
|
|
14
14
|
createExportArchive,
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
syncMindProfile,
|
|
18
18
|
updateUserProfile,
|
|
19
19
|
verifyUser
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-UIM5NHPP.js";
|
|
21
|
+
import "./chunk-N42QMDID.js";
|
|
22
|
+
import "./chunk-T2TP6ZC6.js";
|
|
23
|
+
import "./chunk-2NHRJ3YO.js";
|
|
24
|
+
import "./chunk-CJ26DXZL.js";
|
|
25
|
+
import "./chunk-K3NQKI34.js";
|
|
26
26
|
export {
|
|
27
27
|
approveUser,
|
|
28
28
|
changePassword,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
daemonFetch
|
|
4
|
+
} from "./chunk-ZX7EAV5J.js";
|
|
2
5
|
import {
|
|
3
6
|
command,
|
|
4
7
|
subcommands
|
|
5
8
|
} from "./chunk-TXSA4Q3V.js";
|
|
6
9
|
import "./chunk-O7IGP7ZW.js";
|
|
7
|
-
import
|
|
8
|
-
daemonFetch
|
|
9
|
-
} from "./chunk-ZX7EAV5J.js";
|
|
10
|
-
import "./chunk-7KJOFUNN.js";
|
|
10
|
+
import "./chunk-K3NQKI34.js";
|
|
11
11
|
|
|
12
12
|
// packages/cli/src/commands/chat/bridge.ts
|
|
13
13
|
var bridgeAddCmd = command({
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
subcommands
|
|
4
4
|
} from "./chunk-TXSA4Q3V.js";
|
|
5
5
|
import "./chunk-O7IGP7ZW.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-K3NQKI34.js";
|
|
7
7
|
|
|
8
8
|
// packages/cli/src/commands/chat.ts
|
|
9
9
|
var cmd = subcommands({
|
|
@@ -12,35 +12,35 @@ var cmd = subcommands({
|
|
|
12
12
|
commands: {
|
|
13
13
|
send: {
|
|
14
14
|
description: "Send a message",
|
|
15
|
-
run: (args) => import("./send-
|
|
15
|
+
run: (args) => import("./send-7CIP5GLS.js").then((m) => m.run(args))
|
|
16
16
|
},
|
|
17
17
|
list: {
|
|
18
18
|
description: "List conversations",
|
|
19
|
-
run: (args) => import("./list-
|
|
19
|
+
run: (args) => import("./list-KHJZJPEJ.js").then((m) => m.run(args))
|
|
20
20
|
},
|
|
21
21
|
read: {
|
|
22
22
|
description: "Read conversation messages",
|
|
23
|
-
run: (args) => import("./read-
|
|
23
|
+
run: (args) => import("./read-CP7MYMJQ.js").then((m) => m.run(args))
|
|
24
24
|
},
|
|
25
25
|
create: {
|
|
26
26
|
description: "Create a conversation",
|
|
27
|
-
run: (args) => import("./create-
|
|
27
|
+
run: (args) => import("./create-C3BBFYV7.js").then((m) => m.run(args))
|
|
28
28
|
},
|
|
29
29
|
bridge: {
|
|
30
30
|
description: "Manage platform bridges",
|
|
31
|
-
run: (args) => import("./bridge-
|
|
31
|
+
run: (args) => import("./bridge-F3ZJEKDN.js").then((m) => m.run(args))
|
|
32
32
|
},
|
|
33
33
|
files: {
|
|
34
34
|
description: "List pending incoming files",
|
|
35
|
-
run: (args) => import("./files-
|
|
35
|
+
run: (args) => import("./files-LAQ3NXQK.js").then((m) => m.run(args))
|
|
36
36
|
},
|
|
37
37
|
accept: {
|
|
38
38
|
description: "Accept a pending file",
|
|
39
|
-
run: (args) => import("./accept-
|
|
39
|
+
run: (args) => import("./accept-AHAOUFBK.js").then((m) => m.run(args))
|
|
40
40
|
},
|
|
41
41
|
reject: {
|
|
42
42
|
description: "Reject a pending file",
|
|
43
|
-
run: (args) => import("./reject-
|
|
43
|
+
run: (args) => import("./reject-43AGXB6B.js").then((m) => m.run(args))
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
footer: "Use --mind <name> or VOLUTE_MIND to identify the mind."
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
minds,
|
|
4
4
|
schema_exports
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CJ26DXZL.js";
|
|
6
6
|
|
|
7
7
|
// packages/daemon/src/lib/db.ts
|
|
8
8
|
import { chmodSync, existsSync } from "fs";
|
|
@@ -12,7 +12,7 @@ import { sql } from "drizzle-orm";
|
|
|
12
12
|
import { drizzle } from "drizzle-orm/libsql";
|
|
13
13
|
import { migrate } from "drizzle-orm/libsql/migrator";
|
|
14
14
|
|
|
15
|
-
// packages/daemon/src/lib/registry.ts
|
|
15
|
+
// packages/daemon/src/lib/mind/registry.ts
|
|
16
16
|
import { mkdirSync } from "fs";
|
|
17
17
|
import { homedir } from "os";
|
|
18
18
|
import { dirname, resolve } from "path";
|
|
@@ -197,6 +197,16 @@ var __dirname = dirname2(fileURLToPath2(import.meta.url));
|
|
|
197
197
|
var migrationsFolder = existsSync(resolve2(__dirname, "../drizzle")) ? resolve2(__dirname, "../drizzle") : existsSync(resolve2(__dirname, "../../drizzle")) ? resolve2(__dirname, "../../drizzle") : resolve2(__dirname, "../../../../drizzle");
|
|
198
198
|
var db = null;
|
|
199
199
|
var dbPromise = null;
|
|
200
|
+
async function cleanupConversationColumns(db2) {
|
|
201
|
+
const cols = await db2.all(sql.raw("PRAGMA table_info(conversations)"));
|
|
202
|
+
const colNames = new Set(cols.map((c) => c.name));
|
|
203
|
+
const toDrop = ["name", "title", "mind_name", "channel"].filter((c) => colNames.has(c));
|
|
204
|
+
if (toDrop.length === 0) return;
|
|
205
|
+
for (const col of toDrop) {
|
|
206
|
+
await db2.run(sql.raw(`DROP INDEX IF EXISTS idx_conversations_${col}`));
|
|
207
|
+
await db2.run(sql.raw(`ALTER TABLE conversations DROP COLUMN ${col}`));
|
|
208
|
+
}
|
|
209
|
+
}
|
|
200
210
|
async function getDb() {
|
|
201
211
|
if (db) return db;
|
|
202
212
|
if (dbPromise) return dbPromise;
|
|
@@ -208,6 +218,7 @@ async function getDb() {
|
|
|
208
218
|
await instance.run(sql.raw("PRAGMA busy_timeout=5000"));
|
|
209
219
|
await instance.run(sql.raw("PRAGMA foreign_keys=ON"));
|
|
210
220
|
await migrate(instance, { migrationsFolder });
|
|
221
|
+
await cleanupConversationColumns(instance);
|
|
211
222
|
try {
|
|
212
223
|
chmodSync(dbPath, 384);
|
|
213
224
|
} catch (err) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
wrapForIsolation
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SNW2NPP4.js";
|
|
5
5
|
|
|
6
|
-
// packages/daemon/src/lib/exec.ts
|
|
6
|
+
// packages/daemon/src/lib/util/exec.ts
|
|
7
7
|
import { execFile as execFileCb, execFileSync, spawn } from "child_process";
|
|
8
8
|
async function exec(cmd, args, options) {
|
|
9
9
|
const [wrappedCmd, wrappedArgs] = options?.mindName ? await wrapForIsolation(cmd, args, options.mindName) : [cmd, args];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
// packages/daemon/src/lib/template.ts
|
|
3
|
+
// packages/daemon/src/lib/template/template.ts
|
|
4
4
|
import {
|
|
5
5
|
cpSync,
|
|
6
6
|
existsSync,
|
|
@@ -14,11 +14,16 @@ import {
|
|
|
14
14
|
} from "fs";
|
|
15
15
|
import { tmpdir } from "os";
|
|
16
16
|
import { dirname, join, relative, resolve } from "path";
|
|
17
|
+
var _templatesRoot = null;
|
|
17
18
|
function findTemplatesRoot() {
|
|
19
|
+
if (_templatesRoot) return _templatesRoot;
|
|
18
20
|
let dir = dirname(new URL(import.meta.url).pathname);
|
|
19
|
-
for (let i = 0; i <
|
|
21
|
+
for (let i = 0; i < 7; i++) {
|
|
20
22
|
const candidate = resolve(dir, "templates");
|
|
21
|
-
if (existsSync(resolve(candidate, "_base")))
|
|
23
|
+
if (existsSync(resolve(candidate, "_base"))) {
|
|
24
|
+
_templatesRoot = candidate;
|
|
25
|
+
return _templatesRoot;
|
|
26
|
+
}
|
|
22
27
|
dir = dirname(dir);
|
|
23
28
|
}
|
|
24
29
|
console.error(
|