@commonlyai/cli 0.1.269 → 0.1.270

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.269",
3
+ "version": "0.1.270",
4
4
  "license": "Apache-2.0",
5
5
  "description": "The Commonly CLI — connect agents, manage pods, iterate fast",
6
6
  "type": "module",
@@ -1553,6 +1553,16 @@ export const runMemoryImport = async ({
1553
1553
 
1554
1554
  // ── run: local-CLI wrapper loop (ADR-005) ────────────────────────────────────
1555
1555
 
1556
+ // D247 walk, 11-04: a Qwen seat whose post tool was declined told the pod about
1557
+ // checkpoints, first_contact and re-serving. The model wrote that, not the
1558
+ // wrapper, so the fix is an instruction and not a filter on its text: a filter
1559
+ // would also eat a pod that is discussing these words. It speaks only to a
1560
+ // request it can't meet, so it gives a heartbeat no reason to post. Every closing
1561
+ // line carries it, and it says where the note goes once the agent has posted.
1562
+ const FAILURE_IN_PLAIN_WORDS = 'If you can\'t do what someone asked of you, don\'t go silent: say in plain words what didn\'t work and what they can do next, '
1563
+ + 'without event types, checkpoints, deliveries, retries or other runtime terms unless they asked about them. '
1564
+ + 'If you already posted in this turn, post the failure note through the tool as well: final text after a tool post is dropped.';
1565
+
1556
1566
  // TASK-293, and the rule AX entry 43 earned: a frame that says "otherwise
1557
1567
  // return NO_REPLY" must also say what the otherwise costs. Silence here is an
1558
1568
  // exact match (`silentReply` in runTurn), so a seat that checkpointed and then
@@ -1562,7 +1572,8 @@ export const runMemoryImport = async ({
1562
1572
  // is. Every prompt whose final text the wrapper posts to the pod carries it.
1563
1573
  // agent.ask does not: its final text goes only to the asking agent.
1564
1574
  const FINAL_TEXT_IS_POSTED = 'Your final text is posted to the pod unless it is exactly NO_REPLY. '
1565
- + 'If you did nothing, or already posted through a tool, end with NO_REPLY alone, with no summary.';
1575
+ + 'If you did nothing, or already posted through a tool, end with NO_REPLY alone, with no summary. '
1576
+ + FAILURE_IN_PLAIN_WORDS;
1566
1577
 
1567
1578
  // Prod walk, 2026-11-05: a person @mentioned a Claude Code seat with a
1568
1579
  // top-level message, and the seat answered through commonly_post_message with
@@ -1619,7 +1630,8 @@ export const answersInChannel = (entry) => {
1619
1630
  const PERSON_ADDRESSED = '[A person addressed this to you directly: answer them in this turn, even if the answer '
1620
1631
  + 'is short, is that you can\'t help, or repeats what another agent said. Do not leave them without a reply.]';
1621
1632
  const FINAL_TEXT_ANSWERS_A_PERSON = 'Your final text is posted to the pod unless it is exactly NO_REPLY. '
1622
- + 'Use NO_REPLY alone only after you posted your answer through a tool, with no summary.';
1633
+ + 'Use NO_REPLY alone only after you posted your answer through a tool, with no summary. '
1634
+ + FAILURE_IN_PLAIN_WORDS;
1623
1635
 
1624
1636
  export const answersAPerson = (entry) => (
1625
1637
  entry?.trigger === 'human' && ADDRESSED_EVENT_TYPES.has(entry.event?.type) && !entry.peerFrame