volute 0.16.0 → 0.18.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/chunk-AYB7XAWO.js +812 -0
- package/dist/{chunk-3FD4ZZUL.js → chunk-FW5API7X.js} +116 -10
- package/dist/{chunk-3FC42ZBM.js → chunk-GK4E7LM7.js} +3 -0
- package/dist/cli.js +18 -6
- package/dist/connectors/discord.js +1 -1
- package/dist/connectors/slack.js +1 -1
- package/dist/connectors/telegram.js +1 -1
- package/dist/{daemon-restart-MS5FI44G.js → daemon-restart-2HVTHZAT.js} +1 -1
- package/dist/daemon.js +1443 -592
- package/dist/history-YUEKTJ2N.js +108 -0
- package/dist/{mind-manager-PN5SUDJ4.js → mind-manager-Z7O7PN2O.js} +1 -1
- package/dist/{package-3QGV3KX6.js → package-OKLFO7UY.js} +8 -9
- package/dist/{send-KBBZNYG6.js → send-BNDTLUPM.js} +41 -9
- package/dist/skill-2Y42P4JY.js +287 -0
- package/dist/{up-GZLWZAQE.js → up-7B3BWF2U.js} +1 -1
- package/dist/web-assets/assets/index-CtiimdWK.css +1 -0
- package/dist/web-assets/assets/index-kt1_EcuO.js +63 -0
- package/dist/web-assets/index.html +2 -1
- package/drizzle/0006_mind_history.sql +20 -0
- package/drizzle/0007_system_prompts.sql +5 -0
- package/drizzle/0008_volute_channels.sql +24 -0
- package/drizzle/0009_shared_skills.sql +9 -0
- package/drizzle/meta/0006_snapshot.json +7 -0
- package/drizzle/meta/0007_snapshot.json +7 -0
- package/drizzle/meta/0008_snapshot.json +7 -0
- package/drizzle/meta/0009_snapshot.json +7 -0
- package/drizzle/meta/_journal.json +28 -0
- package/package.json +8 -9
- package/templates/_base/.init/.config/prompts.json +5 -0
- package/templates/_base/_skills/volute-mind/SKILL.md +19 -5
- package/templates/_base/src/lib/daemon-client.ts +45 -0
- package/templates/_base/src/lib/logger.ts +19 -0
- package/templates/_base/src/lib/router.ts +48 -41
- package/templates/_base/src/lib/routing.ts +5 -8
- package/templates/_base/src/lib/startup.ts +43 -0
- package/templates/_base/src/lib/transparency.ts +89 -0
- package/templates/_base/src/lib/types.ts +0 -1
- package/templates/_base/src/lib/volute-server.ts +3 -35
- package/templates/claude/src/agent.ts +9 -22
- package/templates/claude/src/lib/hooks/reply-instructions.ts +6 -9
- package/templates/claude/src/lib/stream-consumer.ts +39 -12
- package/templates/pi/src/agent.ts +9 -22
- package/templates/pi/src/lib/event-handler.ts +58 -7
- package/templates/pi/src/lib/reply-instructions-extension.ts +6 -9
- package/dist/chunk-J52CJCVI.js +0 -447
- package/dist/history-LKCJJMUV.js +0 -50
- package/dist/web-assets/assets/index-B1XIIGCh.js +0 -307
- package/templates/_base/src/lib/auto-reply.ts +0 -38
- /package/dist/{chunk-LLBBVTEY.js → chunk-6DVBMLVN.js} +0 -0
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { daemonSend } from "./daemon-client.js";
|
|
2
|
-
import { log } from "./logger.js";
|
|
3
|
-
|
|
4
|
-
export type MessageChannelInfo = { channel: string; autoReply: boolean };
|
|
5
|
-
|
|
6
|
-
export type AutoReplyTracker = {
|
|
7
|
-
accumulate(text: string): void;
|
|
8
|
-
flush(currentMessageId: string | undefined): void;
|
|
9
|
-
reset(): void;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export function createAutoReplyTracker(
|
|
13
|
-
messageChannels: Map<string, MessageChannelInfo>,
|
|
14
|
-
): AutoReplyTracker {
|
|
15
|
-
let accumulator = "";
|
|
16
|
-
|
|
17
|
-
function flush(currentMessageId: string | undefined) {
|
|
18
|
-
const text = accumulator.trim();
|
|
19
|
-
accumulator = "";
|
|
20
|
-
if (!text) return;
|
|
21
|
-
const info = currentMessageId ? messageChannels.get(currentMessageId) : undefined;
|
|
22
|
-
if (info?.autoReply && info.channel) {
|
|
23
|
-
daemonSend(info.channel, text).catch((err) => {
|
|
24
|
-
log("mind", `auto-reply to ${info.channel} failed: ${err}`);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
return {
|
|
30
|
-
accumulate(text: string) {
|
|
31
|
-
accumulator += text;
|
|
32
|
-
},
|
|
33
|
-
flush,
|
|
34
|
-
reset() {
|
|
35
|
-
accumulator = "";
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
}
|
|
File without changes
|