ac-teams 0.0.9 → 0.0.10
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/package.json +1 -1
- package/src/index.ts +10 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -290,10 +290,18 @@ export default function teams(pi: ExtensionAPI) {
|
|
|
290
290
|
async execute(_id, args, _signal, _update, ctx) { return output(await handle("task", args, ctx)); },
|
|
291
291
|
});
|
|
292
292
|
pi.registerTool({
|
|
293
|
-
name: "team_message", label: "Team message", description: "Send a persistent direct/team message or read cursor-paged history. New messages queue a compact follow-up notification for each recipient.",
|
|
293
|
+
name: "team_message", label: "Team message", description: "Send a persistent direct/team message or read cursor-paged history. Send returns a receipt; history and search return full messages. New messages queue a compact follow-up notification for each recipient.",
|
|
294
|
+
promptGuidelines: ["Do not poll team_message history while waiting for replies; notifications trigger a follow-up turn. On notification, read team_message history after your last read cursor and advance it through the returned messages. An empty result means no newer messages, not that a teammate has finished."],
|
|
294
295
|
parameters: MessageSchema,
|
|
295
296
|
...teamToolRenderers("team_message"),
|
|
296
|
-
async execute(_id, args, _signal, _update, ctx) {
|
|
297
|
+
async execute(_id, args, _signal, _update, ctx) {
|
|
298
|
+
const result = await handle("message", args, ctx);
|
|
299
|
+
if (args.action === "send") {
|
|
300
|
+
const { seq, id, recipients } = result as Message;
|
|
301
|
+
return output({ seq, id, recipients });
|
|
302
|
+
}
|
|
303
|
+
return output(result);
|
|
304
|
+
},
|
|
297
305
|
});
|
|
298
306
|
async function close() {
|
|
299
307
|
exiting = true;
|