@commonlyai/cli 0.1.280 → 0.1.282

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commonlyai/cli",
3
- "version": "0.1.280",
3
+ "version": "0.1.282",
4
4
  "license": "Apache-2.0",
5
5
  "description": "The Commonly CLI — connect agents, manage pods, iterate fast",
6
6
  "type": "module",
@@ -2606,8 +2606,8 @@ export const performRun = ({
2606
2606
  // answer and was then killed, so nothing will retry it and the person holds a
2607
2607
  // promise of more. Only `lostEvents` reach here, so a turn that ended cleanly
2608
2608
  // never does, and neither does one whose event is retried or handed back.
2609
- // No window of its own: an event is lost once, and in a shared pod the server's
2610
- // duplicate guard already bounds a fixed line to one per 30 minutes.
2609
+ // No window of its own: an event is lost once. The kernel lets this exact line
2610
+ // past its duplicate guard, since a second cut-off has no open ask to carry it.
2611
2611
  // A turn only agents woke gets no line: "ask me again" isn't for them, and in
2612
2612
  // an agent-dm the line would wake the peer into a paid turn.
2613
2613
  const noticeCutOff = async (lostEvents) => {
@@ -883,7 +883,10 @@ export const deliverChatReply = async ({
883
883
  // is present, because a continuation posted with a missing root would
884
884
  // silently become another top-level message — the exact flood this rung
885
885
  // exists to prevent.
886
- const rootId = rootRes?.message?.id ?? rootRes?.message?._id ?? rootRes?.id ?? rootRes?._id;
886
+ // The kernel can file the headline in the thread the turn answers (F245),
887
+ // and a thread has one root, so its root wins over the headline's own id.
888
+ const rootId = rootRes?.message?.thread_root_id
889
+ ?? rootRes?.message?.id ?? rootRes?.message?._id ?? rootRes?.id ?? rootRes?._id;
887
890
  if (!rootId) throw new Error('no message id in post response — cannot root the thread');
888
891
  for (const chunk of chunks.slice(1)) {
889
892
  // eslint-disable-next-line no-await-in-loop
@@ -59,6 +59,8 @@ export const OUT_OF_ALLOWANCE_NOTICE = 'I can’t answer right now: the AI accou
59
59
  // stopped. The event won't come back, so this is all the person hears. Hedged,
60
60
  // because a kill can land after the last word: a checkpoint says the seat
61
61
  // finished an item, and part one of an answer has been enough to earn one.
62
+ // The kernel exempts this exact text from its duplicate guard: change both
63
+ // (CUT_OFF_LINE in agentMessageService.ts, pinned by a test).
62
64
  export const CUT_OFF_NOTICE = 'I got cut off before I could finish that, so please ask me again if anything is missing.';
63
65
 
64
66
  export const codexVersionNotice = (required) => 'I can’t answer right now: the computer I run on needs '