@volter/supercode-teams 0.3.153 → 0.3.154
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 +1 -1
- package/terminal-mail.mjs +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/supercode-teams",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.154",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A machine daemon serving this machine's doors, and a local or remote Teams server for shared session discovery, OpenTelemetry ingestion and access to enrolled machines.",
|
|
6
6
|
"license": "MIT",
|
package/terminal-mail.mjs
CHANGED
|
@@ -75,7 +75,13 @@ function confirmed(batch) {
|
|
|
75
75
|
if (text === null || text.length === 0) continue;
|
|
76
76
|
if (text === batch.text) return { fragments: 1 };
|
|
77
77
|
if (batch.kind === 'claude-code') {
|
|
78
|
-
|
|
78
|
+
const native = normalized(text), wanted = normalized(batch.text);
|
|
79
|
+
if (native === wanted) return { fragments: 1 };
|
|
80
|
+
// Claude records a large paste in this native envelope. Compare its
|
|
81
|
+
// whole body with matching identifiers, using the existing line-ending
|
|
82
|
+
// and outer-whitespace normalization.
|
|
83
|
+
const pasted = /^<pasted_content id="([0-9a-f]{4})">\n([\s\S]*)\n<\/pasted_content id="\1">$/u.exec(native);
|
|
84
|
+
if (pasted && normalized(pasted[2]) === wanted) return { fragments: 1 };
|
|
79
85
|
continue;
|
|
80
86
|
}
|
|
81
87
|
// A Windows Codex is pasted its text with line ends as `\n` (codexWindowsPastes).
|