chatroom-cli 1.131.0 → 1.131.1
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 +19 -3
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
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
|
-
|
|
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
|
|
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=
|
|
138779
|
+
//# debugId=BF04636703AF51D164756E2164756E21
|