mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-20 22:02:38 +00:00
Fix test hook: add triggerTurn to start agent run
This commit is contained in:
parent
0d558813e4
commit
454dd919be
1 changed files with 9 additions and 6 deletions
|
|
@ -33,12 +33,15 @@ export default function (pi: HookAPI) {
|
||||||
pi.registerCommand("test-msg", {
|
pi.registerCommand("test-msg", {
|
||||||
description: "Send a test custom message",
|
description: "Send a test custom message",
|
||||||
handler: async () => {
|
handler: async () => {
|
||||||
pi.sendMessage({
|
pi.sendMessage(
|
||||||
customType: "test-info",
|
{
|
||||||
content: "This is a test message with custom rendering!",
|
customType: "test-info",
|
||||||
display: true,
|
content: "This is a test message with custom rendering!",
|
||||||
details: { timestamp: Date.now(), source: "test-command hook" },
|
display: true,
|
||||||
});
|
details: { timestamp: Date.now(), source: "test-command hook" },
|
||||||
|
},
|
||||||
|
true, // triggerTurn: start agent run
|
||||||
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue