volute 0.54.0 → 0.56.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/{activity-events-LQII6PZS.js → activity-events-YASF46HS.js} +3 -3
- package/dist/{ai-service-YW5SWCSB.js → ai-service-3UFNG6GI.js} +3 -5
- package/dist/{archive-FOHGXHPT.js → archive-L2OFBGDQ.js} +2 -2
- package/dist/{auth-KRDSM55Q.js → auth-N2F5ASAB.js} +4 -4
- package/dist/auto-upgrade-O4MQPYQF.js +46 -0
- package/dist/{avatar-image-52WGXLHV.js → avatar-image-QEKKUFDF.js} +3 -3
- package/dist/{backup-QRNX6RK7.js → backup-TPM7QQBQ.js} +13 -13
- package/dist/{channels-CKCY64TD.js → channels-JP3GYTPX.js} +18 -18
- package/dist/{chat-ZUGNL5GS.js → chat-7YCF4ZU5.js} +3 -3
- package/dist/{chunk-QUSMYGNQ.js → chunk-2674KIGI.js} +1 -0
- package/dist/{chunk-444RR3YF.js → chunk-2B4E6SL7.js} +14 -14
- package/dist/chunk-2GATCSZK.js +520 -0
- package/dist/{chunk-I7U5EEZC.js → chunk-2LFTJNVH.js} +2 -2
- package/dist/{chunk-L7BKTZ5U.js → chunk-2QLWAYIU.js} +2 -2
- package/dist/{chunk-F6D766VQ.js → chunk-45MCH4G4.js} +2 -2
- package/dist/{chunk-OGPVJ53N.js → chunk-4RZS7XCV.js} +5 -5
- package/dist/{chunk-HKGYZVWN.js → chunk-6LICEQGP.js} +38 -4
- package/dist/{chunk-LAUCO2HC.js → chunk-APDEUAIE.js} +1 -1
- package/dist/{chunk-5Y54AE3L.js → chunk-CLH357FI.js} +2 -2
- package/dist/{chunk-OAYY3WF3.js → chunk-CVPCRWWC.js} +1 -12
- package/dist/{chunk-EGV6R6UF.js → chunk-E2SN3ZOJ.js} +5 -40
- package/dist/{chunk-LGXVGIWN.js → chunk-ELQU2GBT.js} +193 -69
- package/dist/{chunk-OT5SXF7L.js → chunk-EPRLTYJR.js} +28 -14
- package/dist/{chunk-ATZF2RNJ.js → chunk-EYFBT2KP.js} +15 -15
- package/dist/{chunk-U54PJPTB.js → chunk-FYMIGUJ5.js} +2 -2
- package/dist/{chunk-7XKPG66D.js → chunk-G7A5LEVI.js} +5 -5
- package/dist/{chunk-RGHF3OK5.js → chunk-GAAATVTM.js} +17 -17
- package/dist/{chunk-7LT3YZUR.js → chunk-I3OJ342S.js} +2 -2
- package/dist/{chunk-3LHUXY3E.js → chunk-IABDYN4N.js} +4 -4
- package/dist/{chunk-VDUCLVZI.js → chunk-IOMBP2T5.js} +28 -26
- package/dist/{chunk-YSRYCS3N.js → chunk-IQROTVBG.js} +2 -2
- package/dist/{chunk-PPSN2MLC.js → chunk-IRNM4LSF.js} +9 -6
- package/dist/{chunk-ZNHL5KQJ.js → chunk-KN3UHV7O.js} +8 -3
- package/dist/{chunk-CV6BNGFK.js → chunk-KXM4K46T.js} +4 -4
- package/dist/{chunk-Z4Q6TQWL.js → chunk-LRRPKZBD.js} +2 -2
- package/dist/{chunk-LNNI3MS4.js → chunk-MNKPAAQF.js} +9 -2
- package/dist/{chunk-OIOW3FPT.js → chunk-NA2NJXY4.js} +1 -1
- package/dist/{chunk-GLM7TVWP.js → chunk-OHHS5PSI.js} +1 -1
- package/dist/{chunk-CKPAVQNK.js → chunk-OPTA3BJ4.js} +36 -24
- package/dist/{chunk-X67BDDZR.js → chunk-P3GXOT2X.js} +48 -2
- package/dist/{chunk-WHL6PKYP.js → chunk-PAO7JZNW.js} +52 -48
- package/dist/{chunk-TPX6E6PL.js → chunk-Q5M5QFKY.js} +3 -3
- package/dist/{chunk-OYF25B62.js → chunk-T7UMSTH2.js} +3 -3
- package/dist/{chunk-H6X6CKDN.js → chunk-TAVIVN2I.js} +2 -32
- package/dist/{chunk-56IT2ZXF.js → chunk-TGYKFUCF.js} +9 -15
- package/dist/{chunk-5U5GLZSD.js → chunk-TZ7OHGNL.js} +2 -2
- package/dist/{chunk-UFTDRTCP.js → chunk-UMQP5TC5.js} +2 -2
- package/dist/{chunk-LKUGUQUW.js → chunk-UNTDRIV2.js} +5 -5
- package/dist/{chunk-CLCHOXLR.js → chunk-V2M6PNLE.js} +5 -5
- package/dist/{chunk-ICXY54ZC.js → chunk-WTZD6LFW.js} +2 -2
- package/dist/{chunk-FLIEXG2T.js → chunk-XZP3FJ7Q.js} +1 -1
- package/dist/{chunk-HTRSSOHY.js → chunk-YU5EYQAE.js} +1 -1
- package/dist/cli.js +26 -23
- package/dist/{clock-X7V3C7NL.js → clock-ZT5YT6HA.js} +2 -2
- package/dist/{cloud-sync-52YNJRMR.js → cloud-sync-RTUXMYU2.js} +23 -23
- package/dist/{conversations-ZL6PHROD.js → conversations-ERMMPMOS.js} +4 -4
- package/dist/{create-G2RIKQYK.js → create-IUCFJXCE.js} +1 -1
- package/dist/{daemon-restart-QWHN5VMU.js → daemon-restart-N2YOISNJ.js} +11 -6
- package/dist/daemon.js +230 -279
- package/dist/{db-BONH4SUG.js → db-BQFYIONA.js} +1 -1
- package/dist/{db-I4EH5SLF.js → db-JH3NTERX.js} +17 -3
- package/dist/delivery-manager-5EGCFN4K.js +41 -0
- package/dist/{delivery-notices-RZQ6GONP.js → delivery-notices-LZKZXWTX.js} +6 -6
- package/dist/{delivery-router-QS4NLJR6.js → delivery-router-U6Q22ZYU.js} +3 -3
- package/dist/doctor-225FYBAQ.js +454 -0
- package/dist/{down-UN2EDX2Y.js → down-3BQSPUAZ.js} +4 -4
- package/dist/echo-text-Y2DFTD7L.js +40 -0
- package/dist/{env-SQFCWW52.js → env-4YX5YNWZ.js} +2 -2
- package/dist/{exec-Z34TTUO3.js → exec-Y5VMDAVA.js} +2 -2
- package/dist/{export-VBNWM7I4.js → export-ASRHBMRG.js} +2 -2
- package/dist/{extensions-QT65JGV6.js → extensions-YEPEWURN.js} +27 -23
- package/dist/{files-PCKBQHAY.js → files-FASUDSZQ.js} +3 -3
- package/dist/{import-DB2KULRO.js → import-O35Y7DSF.js} +6 -6
- package/dist/{isolation-UQPDO34R.js → isolation-ZOAUXYXA.js} +2 -2
- package/dist/{login-57MMYILL.js → login-54TZQQP4.js} +5 -5
- package/dist/{logout-YFZAJRPY.js → logout-4G46Z4RU.js} +1 -1
- package/dist/message-delivery-HBTMGWFU.js +46 -0
- package/dist/{mind-CT6ANXK4.js → mind-IKMX7K7G.js} +8 -24
- package/dist/{mind-activity-tracker-QF6DCX2X.js → mind-activity-tracker-ABAEIMA3.js} +4 -4
- package/dist/mind-service-LRVOQG2T.js +48 -0
- package/dist/{mind-sleep-24HV4RCA.js → mind-sleep-LZAFBDZD.js} +2 -2
- package/dist/{package-F6S5NHY2.js → package-X5O7OD2E.js} +12 -13
- package/dist/{prompts-JECJIFPQ.js → prompts-ZNOE3KN3.js} +2 -2
- package/dist/{registry-TRC2HJXR.js → registry-BTQXLDW6.js} +1 -1
- package/dist/{sandbox-NNWCTHRI.js → sandbox-OUFAGN45.js} +3 -3
- package/dist/scheduler-G6BCIVGP.js +27 -0
- package/dist/{seed-cmd-6IMTO3LG.js → seed-cmd-BGAW3WDY.js} +2 -2
- package/dist/{seed-create-VNLDYRFK.js → seed-create-SMCPEUFQ.js} +3 -3
- package/dist/{seed-readiness-H5TTPAQH.js → seed-readiness-RBANMSWW.js} +3 -3
- package/dist/{seed-sprout-PPGYGK4G.js → seed-sprout-CSHV36N3.js} +9 -9
- package/dist/{send-UXUQKO4N.js → send-D3ADUBR5.js} +6 -6
- package/dist/{service-T4P5W6RS.js → service-SWEEBOOY.js} +3 -24
- package/dist/{service-install-R4SNYUVO.js → service-install-RCC26KDV.js} +4 -4
- package/dist/{setup-YUAQMDVZ.js → setup-L5NZG2U3.js} +5 -5
- package/dist/{setup-WZSXHHRJ.js → setup-R7Q4HFJP.js} +1 -5
- package/dist/skills/volute-mind/SKILL.md +8 -0
- package/dist/{skills-GMQ5UIIW.js → skills-BCCU4OJW.js} +4 -4
- package/dist/sleep-manager-25P44HAO.js +42 -0
- package/dist/{spirit-Q5VGFWUI.js → spirit-YPG2MU6W.js} +7 -7
- package/dist/spirit-availability-ZQM5IH4C.js +43 -0
- package/dist/{src-H3UCOP6B.js → src-246GSX7A.js} +5 -2
- package/dist/src-LOUB3WPR.js +4189 -0
- package/dist/{status-LCKTTIWS.js → status-BYPCJU6H.js} +4 -4
- package/dist/{system-events-Q7IVZ5T4.js → system-events-CWC7CBKP.js} +6 -4
- package/dist/{systems-HL7SGSW7.js → systems-VDRUZXNF.js} +2 -2
- package/dist/{tailscale-KHNZFC7L.js → tailscale-4XY7B5A2.js} +2 -2
- package/dist/{template-hash-YKWMVYMM.js → template-hash-RJRMF6DT.js} +2 -2
- package/dist/{template-staleness-PY2CULH6.js → template-staleness-CL4V7BT7.js} +5 -5
- package/dist/{turn-tracker-HZDPMSCC.js → turn-tracker-LZP5X6GZ.js} +8 -8
- package/dist/{up-XZDSJVMU.js → up-3AAN4GYY.js} +4 -4
- package/dist/{update-ILCPVNDD.js → update-2MWXRE2S.js} +4 -4
- package/dist/{update-check-SZ7B5IFI.js → update-check-PJOZXZYJ.js} +2 -2
- package/dist/variant-cleanup-K7RFMSH7.js +24 -0
- package/dist/{version-notify-VNVFX6UP.js → version-notify-QIDHR6WO.js} +12 -12
- package/dist/web-assets/assets/{index-CwtxGwe_.js → index-Bfvls20e.js} +17 -17
- package/dist/web-assets/assets/index-hPn_fkz3.css +1 -0
- package/dist/web-assets/index.html +2 -2
- package/drizzle/0000_crazy_epoch.sql +232 -0
- package/drizzle/README.md +42 -0
- package/drizzle/meta/0000_snapshot.json +1420 -3
- package/drizzle/meta/_journal.json +2 -128
- package/package.json +12 -13
- package/packages/extensions/intentions/dist/ui/assets/index-Bl5KEcli.js +67 -0
- package/packages/extensions/intentions/dist/ui/index.html +1 -1
- package/packages/extensions/pages/dist/ui/assets/index-BKxVQkA9.css +1 -0
- package/packages/extensions/pages/dist/ui/assets/index-BMt6sStP.js +68 -0
- package/packages/extensions/pages/dist/ui/index.html +2 -2
- package/packages/extensions/pages/skills/pages/SKILL.md +123 -4
- package/templates/_base/.init/.config/prompts.json +0 -1
- package/templates/_base/.init/.local/hooks/pre-prompt/turn-context.ts +30 -0
- package/templates/_base/src/lib/codex-session-seed.ts +6 -55
- package/templates/_base/src/lib/pi-session-seed.ts +8 -57
- package/templates/_base/src/lib/seed-note.ts +4 -4
- package/templates/_base/src/lib/session-seed.ts +8 -53
- package/templates/_base/src/lib/startup.ts +0 -20
- package/templates/claude/package.json +2 -2
- package/templates/claude/src/agent.ts +34 -102
- package/templates/claude/src/lib/hooks/pre-compact.ts +6 -6
- package/templates/claude/src/server.ts +0 -1
- package/templates/codex/package.json +2 -2
- package/templates/codex/src/agent.ts +23 -89
- package/templates/pi/package.json +1 -1
- package/templates/pi/src/agent.ts +26 -93
- package/templates/pi/src/server.ts +0 -1
- package/dist/auto-upgrade-HEVZKPTF.js +0 -46
- package/dist/chunk-AAPNU7GA.js +0 -168
- package/dist/delivery-manager-7R2YIQ2W.js +0 -41
- package/dist/echo-text-73CYQRL7.js +0 -40
- package/dist/message-delivery-TRKT4T2P.js +0 -46
- package/dist/migrate-name-placeholder-C7NCNLWF.js +0 -37
- package/dist/migrate-thread-config-EQSEP2XG.js +0 -90
- package/dist/mind-service-7EFIJ3ZA.js +0 -48
- package/dist/scheduler-73Q4MQ7Y.js +0 -27
- package/dist/seed-DRKAP3XV.js +0 -11
- package/dist/sleep-manager-KHI65FEX.js +0 -42
- package/dist/spirit-availability-G5FMWKRH.js +0 -43
- package/dist/sprout-PMTRL7QN.js +0 -11
- package/dist/src-3FIW7DLH.js +0 -2376
- package/dist/src-LTTQVN2Z.js +0 -832
- package/dist/variant-HHDTW74J.js +0 -62
- package/dist/variant-cleanup-QHGGY7ND.js +0 -24
- package/dist/web-assets/assets/index-DhM1yYRN.css +0 -1
- package/drizzle/0000_baseline.sql +0 -152
- package/drizzle/0001_add_conversation_private.sql +0 -1
- package/drizzle/0002_turns.sql +0 -21
- package/drizzle/0003_turn_feed_links.sql +0 -11
- package/drizzle/0004_spirits.sql +0 -5
- package/drizzle/0005_meta_summaries.sql +0 -15
- package/drizzle/0006_channels.sql +0 -17
- package/drizzle/0007_drop_conversation_name_title.sql +0 -11
- package/drizzle/0008_performance_indexes.sql +0 -6
- package/drizzle/0009_mind_notices.sql +0 -14
- package/drizzle/0010_delivery_queue_redrive.sql +0 -10
- package/drizzle/0011_drop_turn_summary_event_id.sql +0 -3
- package/drizzle/0012_channel_gates.sql +0 -17
- package/drizzle/0013_variant_purpose.sql +0 -3
- package/drizzle/0014_system_events.sql +0 -26
- package/drizzle/0015_rename_session_to_thread.sql +0 -12
- package/drizzle/0016_brain_to_human.sql +0 -4
- package/drizzle/0017_event_history_rows.sql +0 -9
- package/drizzle/0018_api_tokens.sql +0 -20
- package/drizzle/meta/0001_snapshot.json +0 -7
- package/drizzle/meta/0002_snapshot.json +0 -7
- package/drizzle/meta/0003_snapshot.json +0 -7
- package/drizzle/meta/0004_snapshot.json +0 -7
- package/drizzle/meta/0005_snapshot.json +0 -7
- package/drizzle/meta/0006_snapshot.json +0 -7
- package/drizzle/meta/0007_snapshot.json +0 -7
- package/packages/extensions/intentions/dist/ui/assets/index-CQz4aceM.js +0 -67
- package/packages/extensions/notes/dist/ui/assets/index-BBs8pyel.js +0 -67
- package/packages/extensions/notes/dist/ui/assets/index-D3cdui42.css +0 -1
- package/packages/extensions/notes/dist/ui/index.html +0 -14
- package/packages/extensions/notes/skills/notes/SKILL.md +0 -90
- package/packages/extensions/pages/dist/ui/assets/index-B589e8Xe.js +0 -2
- package/packages/extensions/pages/dist/ui/assets/index-BuXnE-rb.css +0 -1
- package/dist/{env-7AZFBPWX.js → env-IBW2QI6K.js} +5 -5
- package/dist/{login-4NUS72Z5.js → login-RJJTCVR3.js} +3 -3
- package/dist/{mind-contacts-PEXCDRXA.js → mind-contacts-KV64UDJS.js} +6 -6
- package/dist/{mind-history-RZMMCHMX.js → mind-history-H45GM2M2.js} +6 -6
- package/dist/{register-WNCSOTAU.js → register-OX4HRSGC.js} +3 -3
- package/dist/{restart-B4GNMVF2.js → restart-AGEGNSYQ.js} +4 -4
- package/dist/{skill-QYTBUDNQ.js → skill-B5OJEQUA.js} +4 -4
- package/dist/{start-BDHJVOVX.js → start-MUMNFR52.js} +3 -3
- package/dist/{stop-45QYSGYS.js → stop-EKERNYTX.js} +4 -4
|
@@ -1,52 +1,53 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
isTemplateStale
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-KXM4K46T.js";
|
|
5
5
|
import {
|
|
6
6
|
computeTemplateHash
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YU5EYQAE.js";
|
|
8
8
|
import {
|
|
9
9
|
cleanupVariant
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4RZS7XCV.js";
|
|
11
11
|
import {
|
|
12
12
|
getSleepManagerIfReady,
|
|
13
13
|
readSystemsConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ELQU2GBT.js";
|
|
15
15
|
import {
|
|
16
16
|
applyTemplateHomeFiles,
|
|
17
|
+
backfillInitInfrastructure,
|
|
17
18
|
composeTemplate,
|
|
18
19
|
copyTemplateToDir,
|
|
19
20
|
findTemplatesRoot
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-P3GXOT2X.js";
|
|
21
22
|
import {
|
|
22
23
|
getMindManager
|
|
23
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-PAO7JZNW.js";
|
|
24
25
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
readVoluteConfig
|
|
27
|
+
} from "./chunk-WCFSBH33.js";
|
|
27
28
|
import {
|
|
28
29
|
deliverEvent
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-6LICEQGP.js";
|
|
30
31
|
import {
|
|
31
|
-
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
migrateSkillsToTemplate
|
|
33
|
+
} from "./chunk-IRNM4LSF.js";
|
|
33
34
|
import {
|
|
34
35
|
chownMindDir,
|
|
35
36
|
exec,
|
|
36
37
|
gitExec,
|
|
37
38
|
isIsolationEnabled,
|
|
38
39
|
wrapForIsolation
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-NA2NJXY4.js";
|
|
40
41
|
import {
|
|
41
42
|
logger_default
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-2674KIGI.js";
|
|
43
44
|
import {
|
|
44
45
|
findMind,
|
|
45
46
|
mindDir,
|
|
46
47
|
readRegistry,
|
|
47
48
|
setMindTemplate,
|
|
48
49
|
setMindTemplateHash
|
|
49
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-TAVIVN2I.js";
|
|
50
51
|
|
|
51
52
|
// packages/daemon/src/lib/mind/upgrade.ts
|
|
52
53
|
import { existsSync as existsSync2, mkdirSync, readdirSync, readFileSync, rmSync } from "fs";
|
|
@@ -249,6 +250,8 @@ var VariantMergeError = class extends Error {
|
|
|
249
250
|
this.abortFailed = abortFailed;
|
|
250
251
|
this.name = "VariantMergeError";
|
|
251
252
|
}
|
|
253
|
+
conflicts;
|
|
254
|
+
abortFailed;
|
|
252
255
|
};
|
|
253
256
|
async function mergeInProgress(opts) {
|
|
254
257
|
return gitExec(["rev-parse", "-q", "--verify", "MERGE_HEAD"], opts).then(
|
|
@@ -498,6 +501,17 @@ async function mergeUpgradeAndRestart(mindName, dir, worktreeDir, upgradeVariant
|
|
|
498
501
|
};
|
|
499
502
|
}
|
|
500
503
|
}
|
|
504
|
+
try {
|
|
505
|
+
const added = backfillInitInfrastructure(resolve3(dir, "home"), template, mindName);
|
|
506
|
+
if (added.length > 0) {
|
|
507
|
+
logger_default.info(`backfilled ${added.length} missing infrastructure files for ${mindName}`, {
|
|
508
|
+
files: added
|
|
509
|
+
});
|
|
510
|
+
await chownMindDir(dir, mindName);
|
|
511
|
+
}
|
|
512
|
+
} catch (err) {
|
|
513
|
+
logger_default.warn(`failed to backfill infrastructure files for ${mindName}`, logger_default.errorData(err));
|
|
514
|
+
}
|
|
501
515
|
try {
|
|
502
516
|
await setMindTemplateHash(mindName, computeTemplateHash(template));
|
|
503
517
|
await setMindTemplate(mindName, template);
|
|
@@ -2,20 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
findBridgeForChannel,
|
|
4
4
|
getBridgeConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2QLWAYIU.js";
|
|
6
6
|
import {
|
|
7
7
|
recordOutbound
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ELQU2GBT.js";
|
|
9
9
|
import {
|
|
10
10
|
recordSenderDeliveryFailure
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import {
|
|
13
|
-
getOrCreateMindUser,
|
|
14
|
-
getUserByUsername
|
|
15
|
-
} from "./chunk-7LT3YZUR.js";
|
|
16
|
-
import {
|
|
17
|
-
publish
|
|
18
|
-
} from "./chunk-LNNI3MS4.js";
|
|
11
|
+
} from "./chunk-IABDYN4N.js";
|
|
19
12
|
import {
|
|
20
13
|
addMessage,
|
|
21
14
|
findDMConversation,
|
|
@@ -23,27 +16,34 @@ import {
|
|
|
23
16
|
getChannelName,
|
|
24
17
|
getConversation,
|
|
25
18
|
getParticipants
|
|
26
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Q5M5QFKY.js";
|
|
27
20
|
import {
|
|
28
21
|
readVoluteConfig
|
|
29
22
|
} from "./chunk-WCFSBH33.js";
|
|
23
|
+
import {
|
|
24
|
+
getOrCreateMindUser,
|
|
25
|
+
getUserByUsername
|
|
26
|
+
} from "./chunk-I3OJ342S.js";
|
|
27
|
+
import {
|
|
28
|
+
publish
|
|
29
|
+
} from "./chunk-MNKPAAQF.js";
|
|
30
30
|
import {
|
|
31
31
|
daemonConfigPath,
|
|
32
32
|
readDaemonToken
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-OPTA3BJ4.js";
|
|
34
34
|
import {
|
|
35
35
|
readEnv,
|
|
36
36
|
sharedEnvPath
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-OHHS5PSI.js";
|
|
38
38
|
import {
|
|
39
39
|
logger_default
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-2674KIGI.js";
|
|
41
41
|
import {
|
|
42
42
|
buildVoluteSlug
|
|
43
43
|
} from "./chunk-LGNUFVMR.js";
|
|
44
44
|
import {
|
|
45
45
|
mindDir
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-TAVIVN2I.js";
|
|
47
47
|
import {
|
|
48
48
|
__export
|
|
49
49
|
} from "./chunk-K3NQKI34.js";
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
compactDateTime,
|
|
4
4
|
isCompact
|
|
5
5
|
} from "./chunk-7YJY3F2R.js";
|
|
6
|
-
import {
|
|
7
|
-
getClient,
|
|
8
|
-
urlOf
|
|
9
|
-
} from "./chunk-LOPXTW6H.js";
|
|
10
6
|
import {
|
|
11
7
|
resolveMindName
|
|
12
8
|
} from "./chunk-BTY4WNFE.js";
|
|
13
9
|
import {
|
|
14
10
|
daemonFetch
|
|
15
11
|
} from "./chunk-M74I3HHF.js";
|
|
12
|
+
import {
|
|
13
|
+
getClient,
|
|
14
|
+
urlOf
|
|
15
|
+
} from "./chunk-LOPXTW6H.js";
|
|
16
16
|
import {
|
|
17
17
|
command,
|
|
18
18
|
subcommands
|
|
@@ -279,7 +279,7 @@ var cmd = subcommands({
|
|
|
279
279
|
},
|
|
280
280
|
sleep: {
|
|
281
281
|
description: "Put a mind to sleep",
|
|
282
|
-
run: (args) => import("./mind-sleep-
|
|
282
|
+
run: (args) => import("./mind-sleep-LZAFBDZD.js").then((m) => m.run(args))
|
|
283
283
|
},
|
|
284
284
|
wake: {
|
|
285
285
|
description: "Wake a sleeping mind",
|
|
@@ -5,27 +5,27 @@ import {
|
|
|
5
5
|
copyTemplateToDir,
|
|
6
6
|
findTemplatesRoot,
|
|
7
7
|
renderComposedPackageJson
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import {
|
|
10
|
-
getSharedSkill,
|
|
11
|
-
installSkill,
|
|
12
|
-
mindSkillsDir
|
|
13
|
-
} from "./chunk-PPSN2MLC.js";
|
|
8
|
+
} from "./chunk-P3GXOT2X.js";
|
|
14
9
|
import {
|
|
15
10
|
readVoluteConfig,
|
|
16
11
|
writeVoluteConfig
|
|
17
12
|
} from "./chunk-WCFSBH33.js";
|
|
13
|
+
import {
|
|
14
|
+
getSharedSkill,
|
|
15
|
+
installSkill,
|
|
16
|
+
mindSkillsDir
|
|
17
|
+
} from "./chunk-IRNM4LSF.js";
|
|
18
18
|
import {
|
|
19
19
|
exec
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NA2NJXY4.js";
|
|
21
21
|
import {
|
|
22
22
|
qualifyModelId,
|
|
23
23
|
resolveTemplate,
|
|
24
24
|
unqualifyModelId
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-E2SN3ZOJ.js";
|
|
26
26
|
import {
|
|
27
27
|
logger_default
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2674KIGI.js";
|
|
29
29
|
import {
|
|
30
30
|
addSpirit,
|
|
31
31
|
findMind,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
nextPort,
|
|
34
34
|
readGlobalConfig,
|
|
35
35
|
voluteSystemDir
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-TAVIVN2I.js";
|
|
37
37
|
|
|
38
38
|
// packages/daemon/src/lib/mind/spirit.ts
|
|
39
39
|
import { cpSync, existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "fs";
|
|
@@ -43,7 +43,7 @@ var SPIRIT_SKILLS = ["volute-admin", "memory", "seed-nurture", "tending"];
|
|
|
43
43
|
async function allSpiritSkills() {
|
|
44
44
|
let ext = [];
|
|
45
45
|
try {
|
|
46
|
-
const { getExtensionSpiritSkills } = await import("./extensions-
|
|
46
|
+
const { getExtensionSpiritSkills } = await import("./extensions-YEPEWURN.js");
|
|
47
47
|
ext = getExtensionSpiritSkills();
|
|
48
48
|
} catch {
|
|
49
49
|
}
|
|
@@ -151,7 +151,7 @@ async function buildSpiritOrientation() {
|
|
|
151
151
|
const temperament = config.setup?.spiritTemperament;
|
|
152
152
|
let hostSentence = "";
|
|
153
153
|
try {
|
|
154
|
-
const { listUsersByType } = await import("./auth-
|
|
154
|
+
const { listUsersByType } = await import("./auth-N2F5ASAB.js");
|
|
155
155
|
const admin = (await listUsersByType("human")).find((u) => u.role === "admin");
|
|
156
156
|
if (admin) {
|
|
157
157
|
const hostName = admin.display_name || admin.username;
|
|
@@ -162,7 +162,7 @@ async function buildSpiritOrientation() {
|
|
|
162
162
|
return `You've just come into being as ${name}, the spirit of ${systemName}${desc}.${hostSentence} SPIRIT.md describes this place and your role in it; your SOUL.md and MEMORY.md are yours alone, to grow into. There's no checklist and no hurry \u2014 you become yourself by tending this place.`;
|
|
163
163
|
}
|
|
164
164
|
async function sendSpiritOrientation() {
|
|
165
|
-
const { deliverEvent, MIND_LEVEL_THREAD } = await import("./system-events-
|
|
165
|
+
const { deliverEvent, MIND_LEVEL_THREAD } = await import("./system-events-CWC7CBKP.js");
|
|
166
166
|
await deliverEvent(getSpiritName(), {
|
|
167
167
|
type: "orientation",
|
|
168
168
|
delivery: "next-turn",
|
|
@@ -239,7 +239,7 @@ async function ensureSpiritProject() {
|
|
|
239
239
|
slog.warn("failed to add tending schedule to spirit config", logger_default.errorData(err));
|
|
240
240
|
}
|
|
241
241
|
const stashedProfile = applyStashedSpiritProfile(dir);
|
|
242
|
-
const { createMindUser, chownMindDir, ensureVoluteGroup } = await import("./isolation-
|
|
242
|
+
const { createMindUser, chownMindDir, ensureVoluteGroup } = await import("./isolation-ZOAUXYXA.js");
|
|
243
243
|
ensureVoluteGroup();
|
|
244
244
|
createMindUser(spiritName, resolve(dir, "home"));
|
|
245
245
|
await chownMindDir(dir, spiritName);
|
|
@@ -287,7 +287,7 @@ async function notifySpiritSystemChange() {
|
|
|
287
287
|
const config = readGlobalConfig();
|
|
288
288
|
const name = config.name ?? "Volute";
|
|
289
289
|
const desc = config.description ? ` \u2014 ${config.description}` : "";
|
|
290
|
-
const { deliverEvent } = await import("./system-events-
|
|
290
|
+
const { deliverEvent } = await import("./system-events-CWC7CBKP.js");
|
|
291
291
|
await deliverEvent(spiritName, {
|
|
292
292
|
type: "notice",
|
|
293
293
|
meta: { subtype: "identity-change" },
|
|
@@ -316,7 +316,7 @@ async function syncSpiritTemplate() {
|
|
|
316
316
|
cpSync(newPkg, resolve(dir, "package.json"));
|
|
317
317
|
await exec("npm", ["install"], { cwd: dir, env: npmEnv() });
|
|
318
318
|
}
|
|
319
|
-
const db = await (await import("./db-
|
|
319
|
+
const db = await (await import("./db-BQFYIONA.js")).getDb();
|
|
320
320
|
const { minds } = await import("./schema-ZZQVM4GR.js");
|
|
321
321
|
const { eq } = await import("drizzle-orm");
|
|
322
322
|
await db.update(minds).set({ template: expectedTemplate }).where(eq(minds.name, spiritName));
|
|
@@ -343,7 +343,7 @@ async function syncSpiritTemplate() {
|
|
|
343
343
|
writeSpiritDoctrine(dir);
|
|
344
344
|
writeSpiritSystemJson(dir);
|
|
345
345
|
if (!doctrineExisted) {
|
|
346
|
-
const { deliverEvent, MIND_LEVEL_THREAD } = await import("./system-events-
|
|
346
|
+
const { deliverEvent, MIND_LEVEL_THREAD } = await import("./system-events-CWC7CBKP.js");
|
|
347
347
|
await deliverEvent(spiritName, {
|
|
348
348
|
type: "notice",
|
|
349
349
|
meta: { subtype: "spirit-md-migration" },
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
broadcast
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FYMIGUJ5.js";
|
|
5
5
|
import {
|
|
6
6
|
findMind,
|
|
7
7
|
getDb,
|
|
8
8
|
getSpiritName,
|
|
9
9
|
isSpiritName
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TAVIVN2I.js";
|
|
11
11
|
import {
|
|
12
12
|
users
|
|
13
13
|
} from "./chunk-2RNMBXD2.js";
|
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
localHM,
|
|
5
5
|
parseMeta,
|
|
6
6
|
recordNotice
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6LICEQGP.js";
|
|
8
8
|
import {
|
|
9
9
|
getPrompt
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CVPCRWWC.js";
|
|
11
11
|
import {
|
|
12
12
|
logger_default
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2674KIGI.js";
|
|
14
14
|
import {
|
|
15
15
|
findMind,
|
|
16
16
|
getDb
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TAVIVN2I.js";
|
|
18
18
|
import {
|
|
19
19
|
systemEvents
|
|
20
20
|
} from "./chunk-2RNMBXD2.js";
|
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
tryGetMindManager
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PAO7JZNW.js";
|
|
5
|
+
import {
|
|
6
|
+
linkInboundToActiveTurn
|
|
7
|
+
} from "./chunk-TGYKFUCF.js";
|
|
8
|
+
import {
|
|
9
|
+
getParticipants,
|
|
10
|
+
publish as publish2
|
|
11
|
+
} from "./chunk-Q5M5QFKY.js";
|
|
12
|
+
import {
|
|
13
|
+
onMindEvent
|
|
14
|
+
} from "./chunk-UMQP5TC5.js";
|
|
15
|
+
import {
|
|
16
|
+
renderAvatarBlock
|
|
17
|
+
} from "./chunk-WTZD6LFW.js";
|
|
18
|
+
import {
|
|
19
|
+
readVoluteConfig
|
|
20
|
+
} from "./chunk-WCFSBH33.js";
|
|
5
21
|
import {
|
|
6
22
|
clearConfigCache,
|
|
7
23
|
extractTextContent,
|
|
@@ -11,33 +27,17 @@ import {
|
|
|
11
27
|
routesConfigPath,
|
|
12
28
|
setRoutesChangeListener,
|
|
13
29
|
shouldGate
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import {
|
|
16
|
-
linkInboundToActiveTurn
|
|
17
|
-
} from "./chunk-56IT2ZXF.js";
|
|
30
|
+
} from "./chunk-IQROTVBG.js";
|
|
18
31
|
import {
|
|
19
32
|
MIND_LEVEL_THREAD,
|
|
20
33
|
newEphemeralSession
|
|
21
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-6LICEQGP.js";
|
|
22
35
|
import {
|
|
23
36
|
publish
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import {
|
|
26
|
-
getParticipants,
|
|
27
|
-
publish as publish2
|
|
28
|
-
} from "./chunk-TPX6E6PL.js";
|
|
29
|
-
import {
|
|
30
|
-
onMindEvent
|
|
31
|
-
} from "./chunk-UFTDRTCP.js";
|
|
32
|
-
import {
|
|
33
|
-
renderAvatarBlock
|
|
34
|
-
} from "./chunk-ICXY54ZC.js";
|
|
35
|
-
import {
|
|
36
|
-
readVoluteConfig
|
|
37
|
-
} from "./chunk-WCFSBH33.js";
|
|
37
|
+
} from "./chunk-MNKPAAQF.js";
|
|
38
38
|
import {
|
|
39
39
|
logger_default
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-2674KIGI.js";
|
|
41
41
|
import {
|
|
42
42
|
slugify
|
|
43
43
|
} from "./chunk-LGNUFVMR.js";
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
getDb,
|
|
48
48
|
mindDir,
|
|
49
49
|
voluteHome
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-TAVIVN2I.js";
|
|
51
51
|
import {
|
|
52
52
|
channelGates,
|
|
53
53
|
channels,
|
|
@@ -238,6 +238,8 @@ var UnknownChannelError = class extends Error {
|
|
|
238
238
|
this.suggestions = suggestions;
|
|
239
239
|
this.name = "UnknownChannelError";
|
|
240
240
|
}
|
|
241
|
+
channel;
|
|
242
|
+
suggestions;
|
|
241
243
|
};
|
|
242
244
|
var REDRIVE_INTERVAL_MS = 15e3;
|
|
243
245
|
var RETRY_BASE_MS = 5e3;
|
|
@@ -280,12 +282,12 @@ var DeliveryManager = class {
|
|
|
280
282
|
isMindRunning = (name) => tryGetMindManager()?.isRunning(name) ?? false;
|
|
281
283
|
/** Delivers a channel event to a mind (invites, release summaries); overridable in tests. */
|
|
282
284
|
notify = async (mindName, text) => {
|
|
283
|
-
const { deliverEvent } = await import("./system-events-
|
|
285
|
+
const { deliverEvent } = await import("./system-events-CWC7CBKP.js");
|
|
284
286
|
await deliverEvent(mindName, { type: "channel", body: text });
|
|
285
287
|
};
|
|
286
288
|
/** Surfaces a dead-lettered delivery as a next-turn failure notice; overridable in tests. */
|
|
287
289
|
notifyFailure = async (input) => {
|
|
288
|
-
const { recordNotice } = await import("./system-events-
|
|
290
|
+
const { recordNotice } = await import("./system-events-CWC7CBKP.js");
|
|
289
291
|
await recordNotice(input);
|
|
290
292
|
};
|
|
291
293
|
/**
|
|
@@ -293,7 +295,7 @@ var DeliveryManager = class {
|
|
|
293
295
|
* side); no-ops for human senders. Overridable in tests.
|
|
294
296
|
*/
|
|
295
297
|
notifySenderFailure = async (sender, channel, reason) => {
|
|
296
|
-
const { recordSenderDeliveryFailure } = await import("./delivery-notices-
|
|
298
|
+
const { recordSenderDeliveryFailure } = await import("./delivery-notices-LZKZXWTX.js");
|
|
297
299
|
await recordSenderDeliveryFailure(sender, channel, reason);
|
|
298
300
|
};
|
|
299
301
|
constructor() {
|
|
@@ -1436,7 +1438,7 @@ ${channel}`, { sender: r.sender, channel });
|
|
|
1436
1438
|
const details = detailLines.length > 0 ? `${detailLines.join("\n")}
|
|
1437
1439
|
|
|
1438
1440
|
` : "\n";
|
|
1439
|
-
const { getPrompt } = await import("./prompts-
|
|
1441
|
+
const { getPrompt } = await import("./prompts-ZNOE3KN3.js");
|
|
1440
1442
|
const notification = await getPrompt("channel_invite", {
|
|
1441
1443
|
channel,
|
|
1442
1444
|
heldLine,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
logger_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2674KIGI.js";
|
|
5
5
|
import {
|
|
6
6
|
mindDir
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TAVIVN2I.js";
|
|
8
8
|
|
|
9
9
|
// packages/daemon/src/lib/delivery/delivery-router.ts
|
|
10
10
|
import { readFileSync, statSync } from "fs";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
exec,
|
|
4
4
|
gitExec
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NA2NJXY4.js";
|
|
6
6
|
import {
|
|
7
7
|
logger_default
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2674KIGI.js";
|
|
9
9
|
import {
|
|
10
10
|
getDb,
|
|
11
11
|
mindDir,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
readRegistry,
|
|
14
14
|
voluteHome,
|
|
15
15
|
writeGlobalConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TAVIVN2I.js";
|
|
17
17
|
import {
|
|
18
18
|
sharedSkills
|
|
19
19
|
} from "./chunk-2RNMBXD2.js";
|
|
@@ -45,7 +45,7 @@ async function initDefaultSkills() {
|
|
|
45
45
|
const config = readGlobalConfig();
|
|
46
46
|
let extensionSkills = [];
|
|
47
47
|
try {
|
|
48
|
-
const { getExtensionStandardSkills } = await import("./extensions-
|
|
48
|
+
const { getExtensionStandardSkills } = await import("./extensions-YEPEWURN.js");
|
|
49
49
|
extensionSkills = getExtensionStandardSkills();
|
|
50
50
|
} catch (err) {
|
|
51
51
|
logger_default.warn("failed to load extension standard skills during init", logger_default.errorData(err));
|
|
@@ -54,9 +54,12 @@ async function initDefaultSkills() {
|
|
|
54
54
|
const current = config.defaultSkills ?? [];
|
|
55
55
|
const removed = new Set(config.removedDefaultSkills ?? []);
|
|
56
56
|
const toAdd = [...desired].filter((s) => !current.includes(s) && !removed.has(s));
|
|
57
|
-
|
|
58
|
-
const
|
|
57
|
+
const pool = new Set((await listSharedSkills()).map((s) => s.id));
|
|
58
|
+
const stale = pool.size > 0 ? current.filter((s) => !pool.has(s)) : [];
|
|
59
|
+
if (toAdd.length === 0 && stale.length === 0 && current.length > 0) return;
|
|
60
|
+
const merged = [.../* @__PURE__ */ new Set([...current, ...toAdd])].filter((s) => !stale.includes(s));
|
|
59
61
|
writeGlobalConfig({ ...config, defaultSkills: merged });
|
|
62
|
+
if (stale.length > 0) logger_default.info(`dropped default skills not in the pool: ${stale.join(", ")}`);
|
|
60
63
|
logger_default.info(`updated default skills: ${merged.join(", ")}`);
|
|
61
64
|
}
|
|
62
65
|
function validateSkillId(id) {
|
|
@@ -3,17 +3,18 @@ import {
|
|
|
3
3
|
command
|
|
4
4
|
} from "./chunk-TXSA4Q3V.js";
|
|
5
5
|
import {
|
|
6
|
+
HEALTH_POLL_TIMEOUT,
|
|
6
7
|
daemonLogReport,
|
|
7
8
|
getServiceMode,
|
|
8
9
|
modeLabel,
|
|
9
10
|
pollHealth,
|
|
10
11
|
startService
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OPTA3BJ4.js";
|
|
12
13
|
import {
|
|
13
14
|
readGlobalConfig,
|
|
14
15
|
voluteHome,
|
|
15
16
|
voluteSystemDir
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TAVIVN2I.js";
|
|
17
18
|
|
|
18
19
|
// src/commands/up.ts
|
|
19
20
|
import { spawn } from "child_process";
|
|
@@ -52,7 +53,11 @@ var cmd = command({
|
|
|
52
53
|
if (await pollHealth(h, p)) {
|
|
53
54
|
console.log(`Volute daemon running on ${h}:${p}`);
|
|
54
55
|
} else {
|
|
55
|
-
console.error(
|
|
56
|
+
console.error(
|
|
57
|
+
`Service started but daemon did not become healthy within ${Math.round(
|
|
58
|
+
HEALTH_POLL_TIMEOUT / 1e3
|
|
59
|
+
)}s.`
|
|
60
|
+
);
|
|
56
61
|
for (const line of daemonLogReport(mode)) console.error(line);
|
|
57
62
|
process.exit(1);
|
|
58
63
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
computeTemplateHash
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YU5EYQAE.js";
|
|
5
5
|
import {
|
|
6
6
|
composeTemplate,
|
|
7
7
|
findTemplatesRoot,
|
|
8
8
|
listFiles
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-P3GXOT2X.js";
|
|
10
10
|
import {
|
|
11
11
|
logger_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2674KIGI.js";
|
|
13
13
|
import {
|
|
14
14
|
mindDir
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TAVIVN2I.js";
|
|
16
16
|
|
|
17
17
|
// packages/daemon/src/lib/mind/template-staleness.ts
|
|
18
18
|
import { createHash } from "crypto";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
pollHealthDown,
|
|
9
9
|
readDaemonConfig,
|
|
10
10
|
stopService
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OPTA3BJ4.js";
|
|
12
12
|
import {
|
|
13
13
|
voluteSystemDir
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TAVIVN2I.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/down.ts
|
|
17
17
|
import { existsSync, readFileSync, unlinkSync } from "fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
logger_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2674KIGI.js";
|
|
5
5
|
|
|
6
6
|
// packages/daemon/src/lib/events/mind-events.ts
|
|
7
7
|
var subscribers = /* @__PURE__ */ new Map();
|
|
@@ -47,8 +47,15 @@ function publish(mind, event) {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
// packages/daemon/src/lib/util/time.ts
|
|
51
|
+
function parseDbTimestamp(ts) {
|
|
52
|
+
if (/[zZ]$|[+-]\d\d:?\d\d$/.test(ts)) return new Date(ts);
|
|
53
|
+
return /* @__PURE__ */ new Date(`${ts.replace(" ", "T")}Z`);
|
|
54
|
+
}
|
|
55
|
+
|
|
50
56
|
export {
|
|
51
57
|
subscribe,
|
|
52
58
|
subscribeAll,
|
|
53
|
-
publish
|
|
59
|
+
publish,
|
|
60
|
+
parseDbTimestamp
|
|
54
61
|
};
|