Skip to content

v0.142.0

Choose a tag to compare

@davidfarah2003 davidfarah2003 released this 04 Nov 19:17
8049bb2

Install or update: npm i -g cotal-ai@0.142.0

Restart running Cotal processes and agent sessions to use the new code.

What changed

  • Make EndpointReply a union on ok.
  • @cotal-ai/workspace/chat now holds the rules cotal chat applies to a draft, so another terminal front end can follow them: typed recipients and their labels, the reply recipient, the Enter rule, how a publish outcome settles, slash commands and their outcome words, shared names, the ending notice and the close summary.
  • A cotal chat post on a channel, in the terminal view and in --plain, now carries the @names its text holds as mentions, as cotal send -c and the console do, so it wakes the agents it names.
Every change in full
  • Make EndpointReply a union on ok. Failed replies require an error; successful replies cannot carry one. TypeScript callers must construct the matching reply arm and narrow ok before using a required error. Interfaces that extended EndpointReply must use a type intersection instead.

    Keep acceptance data on local failed goal-follow results. The wire parser still rejects failed replies carrying data or missing their error. Narrowed readers no longer need fallback text for missing errors.

  • @cotal-ai/workspace/chat now holds the rules cotal chat applies to a draft, so another terminal front end can follow them: typed recipients and their labels, the reply recipient, the Enter rule, how a publish outcome settles, slash commands and their outcome words, shared names, the ending notice and the close summary. shownTime, concreteChannelProblem and offlineRecipientNotice move to the @cotal-ai/workspace root. Breaking: openChatSession takes the front end's words (ChatWords) in place of reopen, so a session's refusals end with that front end's own steps; grantRefusal and resolveDmTarget take them too, and parseRecipient takes the front end's other way to choose a recipient. cotal chat, --plain and --stdio print the same output as before, except that a reply to a name only gone senders carry now calls them one-shot senders rather than cotal send commands.

  • A cotal chat post on a channel, in the terminal view and in --plain, now carries the @names its text holds as mentions, as cotal send -c and the console do, so it wakes the agents it names. The shared chat reply rule, replyRecipient, takes the session's principal and answers a channel message on its channel with replyTo; replying to your own DM or role task refuses. AdmittedChatSession.send takes an optional replyTo. A send, join or channel mode outside a session's grant now always names the step that opens a session on that channel, and so does the warning when you choose such a channel as the recipient.

What's Changed

Full Changelog: v0.141.11...v0.142.0