showrunner-agent-staging 0.5.135-staging.2138 → 0.5.135-staging.2139
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.
|
@@ -1014,8 +1014,8 @@ export class InvocationAdapterClient {
|
|
|
1014
1014
|
? { ...piece, text: withoutCheckoutPaths(piece.text, this.projectDirectory) } : piece));
|
|
1015
1015
|
const original = purpose === MessagePurposeType.Result ? normalizeWorkReportSpacing(cleaned) : cleaned;
|
|
1016
1016
|
let pieces = original;
|
|
1017
|
-
//
|
|
1018
|
-
if (
|
|
1017
|
+
// Only the final work report moves its detail into a note; anything else is read in the chat as written.
|
|
1018
|
+
if (purpose === MessagePurposeType.Result && shouldCreateReplyNote(original, noteTitle)) {
|
|
1019
1019
|
const notePieces = replyNotePieces(original, noteTitle);
|
|
1020
1020
|
const noteCommandId = this.#nextForContent("reply-note.create", original);
|
|
1021
1021
|
try {
|
|
@@ -8,7 +8,7 @@ export const messageToolSchemas = {
|
|
|
8
8
|
messages: z.array(z.object({
|
|
9
9
|
messagePieces: z.array(outputMessagePieceSchema).min(1).max(100).describe("Ordered pieces for this message. Mention each result in a short phrase where it helps, such as 'Live at [link]', 'Added [file] with…', or '[task] is with @person', with its pill inline."),
|
|
10
10
|
title: z.string().trim().min(1).max(100).regex(/^[^\r\n]+$/u).optional()
|
|
11
|
-
.describe("A short 3–8 word document title if this
|
|
11
|
+
.describe("A short 3–8 word document title if this final result (purpose 1) is long enough to become an automatic note. This is only the note title; keep all reply content in messagePieces."),
|
|
12
12
|
purpose: z.enum(MessagePurposeType).optional()
|
|
13
13
|
.describe("0 optional reply while you keep working, including an answer to a mid-run message. 1 final result, 2 failure. Do not send progress-only chat messages."),
|
|
14
14
|
replyToMessageId: z.string().uuid().optional()
|
|
@@ -22,7 +22,7 @@ export function messageToolDescription(name) {
|
|
|
22
22
|
if (name === "set_quiet")
|
|
23
23
|
return "Set your quiet state in this chat when someone asks you to be quiet, mute, or stop chatter (isQuiet true), or to talk again or unmute (false). While quiet, send no optional prose or step chatter. Approvals, questions, failures and final results still come through; your live line stays visible. An @mention clears quiet. Do not send an acknowledgement after setting quiet.";
|
|
24
24
|
return name === "send_messages"
|
|
25
|
-
? `Send replies to this Showrunner chat. When answering a specific message, set replyToMessageId to its messageId so the reply lands where it was asked. Mention each result in a short phrase where it helps, such as 'Live at [link]', 'Added [file] with…', or '[task] is with @person', placing its structured pill inline. For a long
|
|
25
|
+
? `Send replies to this Showrunner chat. When answering a specific message, set replyToMessageId to its messageId so the reply lands where it was asked. Mention each result in a short phrase where it helps, such as 'Live at [link]', 'Added [file] with…', or '[task] is with @person', placing its structured pill inline. For a long final result that becomes an automatic note, set title to a short document title; never use the reply's opening sentence as the title. ${noteFormattingDescription} Delivery is sequential; inspect partial results before retrying.`
|
|
26
26
|
: "React to a message in this Showrunner chat with an emoji. A reaction to the message you were handed is a complete reply to it. A reaction to any other message answers only that message.";
|
|
27
27
|
}
|
|
28
28
|
export async function executeMessageTool(context, name, input) {
|