@rallycry/conveyor-agent 11.0.37 → 11.0.39
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.
|
@@ -2275,12 +2275,15 @@ function isPromptReceipt(raw, text, sentAt) {
|
|
|
2275
2275
|
const message = record.message;
|
|
2276
2276
|
const submitted = receiptText(message.content);
|
|
2277
2277
|
const normalize2 = (value) => value.replace(/\r\n/g, "\n").trim();
|
|
2278
|
-
return message.role === "user" && typeof submitted === "string" && normalize2(text) !== "" && normalize2(submitted) === normalize2(text);
|
|
2278
|
+
return message.role === "user" && typeof submitted === "string" && normalize2(text) !== "" && (normalize2(submitted) === normalize2(text) || pastedText(normalize2(submitted)) === normalize2(text));
|
|
2279
2279
|
}
|
|
2280
2280
|
function receiptText(content) {
|
|
2281
2281
|
const block = Array.isArray(content) && content.length === 1 ? content[0] : void 0;
|
|
2282
2282
|
return typeof content === "string" ? content : block?.type === "text" && typeof block.text === "string" ? block.text : void 0;
|
|
2283
2283
|
}
|
|
2284
|
+
function pastedText(text) {
|
|
2285
|
+
return /^<pasted_content id="([A-Za-z0-9_-]+)">\n([\s\S]*)\n<\/pasted_content(?: id="\1")?>$/.exec(text)?.[2]?.trim();
|
|
2286
|
+
}
|
|
2284
2287
|
|
|
2285
2288
|
// src/harness/pty/output-coalescer.ts
|
|
2286
2289
|
var DEFAULT_FLUSH_MS = 40;
|
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rallycry/conveyor-agent",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.39",
|
|
4
4
|
"description": "Conveyor Agent Runner v10 - PTY harness for the task chat (SDK harness for audit/project-chat). Agent-as-User architecture with BaseService patterns. Works locally too.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|