chatroom-cli 1.131.0 → 1.131.2

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/dist/index.js CHANGED
@@ -103687,12 +103687,28 @@ function renderSnippetAttachment(snippet) {
103687
103687
  ` </attachment>`
103688
103688
  ];
103689
103689
  }
103690
+ function renderInteractions(interactions, indent) {
103691
+ return [
103692
+ `${indent}<interactions>`,
103693
+ ...interactions.map((i2) => `${indent} <interaction type="${escapeXmlAttribute(i2.type)}">${escapeXmlText(i2.text)}</interaction>`),
103694
+ `${indent}</interactions>`
103695
+ ];
103696
+ }
103690
103697
  function renderBacklogAttachments(items, ctx) {
103691
103698
  const lines = [];
103692
103699
  for (const item of items) {
103693
- lines.push(` <attachment type="backlog" backlog-item-id="${escapeXmlAttribute(item._id)}">`);
103700
+ const id = escapeXmlAttribute(item._id);
103701
+ const chatroomId = escapeXmlAttribute(ctx.chatroomId);
103702
+ const role = escapeXmlAttribute(ctx.role);
103703
+ lines.push(` <attachment type="backlog" backlog-item-id="${id}">`);
103694
103704
  lines.push(...xmlTextElement("content", item.content, " "));
103695
- lines.push(` <hint>Work on this item. Verified end-to-end + PR ready: chatroom backlog mark-for-review --chatroom-id="${escapeXmlAttribute(ctx.chatroomId)}" --role="${escapeXmlAttribute(ctx.role)}" --backlog-item-id=${item._id}</hint>`);
103705
+ lines.push(` <hint>Work on this item.</hint>`);
103706
+ lines.push(...renderInteractions([
103707
+ {
103708
+ type: "command",
103709
+ text: `Once this task is complete (implemented, verified end-to-end, PR raised for user review), run: chatroom backlog mark-for-review --chatroom-id="${chatroomId}" --role="${role}" --backlog-item-id=${id} — this moves the task to pending review. Do not use complete.`
103710
+ }
103711
+ ], " "));
103696
103712
  lines.push(` </attachment>`);
103697
103713
  }
103698
103714
  return lines;
@@ -138760,4 +138776,4 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
138760
138776
  });
138761
138777
  program2.parse();
138762
138778
 
138763
- //# debugId=87F31BFD12DBC8AF64756E2164756E21
138779
+ //# debugId=BF04636703AF51D164756E2164756E21