@volter/supercode-teams 0.3.152 → 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/mail/send.mjs +5 -2
- package/package.json +1 -1
- package/terminal-mail.mjs +7 -1
package/mail/send.mjs
CHANGED
|
@@ -87,7 +87,7 @@ export class MailSend {
|
|
|
87
87
|
if (receiver.outcome && !this.live.codexKnown) { await this.#codexKnown(); receiver = await this.#receiver(to, this.live.sessions()); }
|
|
88
88
|
if (receiver.outcome) return receiver.outcome;
|
|
89
89
|
const refused = await this.#authorizeReceiver(context, receiver.continuation?.chain ?? [receiver.address]);
|
|
90
|
-
if (refused) return refused;
|
|
90
|
+
if (refused) return this.#annotateReceiver(refused, receiver);
|
|
91
91
|
}
|
|
92
92
|
this.#active();
|
|
93
93
|
// A send under an --id is held while it runs: the sent marker is written only once it is done, so a second send
|
|
@@ -102,7 +102,10 @@ export class MailSend {
|
|
|
102
102
|
const addresses = [...(first.continuation?.chain ?? []), ...(first.receipt?.recipients ?? []), first.receipt?.recipient].filter(Boolean);
|
|
103
103
|
if (addresses.length) {
|
|
104
104
|
const refused = await this.#authorizeReceiver(context, addresses);
|
|
105
|
-
if (refused) return refused
|
|
105
|
+
if (refused) return first.continuation ? this.#annotateReceiver(refused, {
|
|
106
|
+
address: first.continuation.recipient, continuation: first.continuation,
|
|
107
|
+
alias: ` Addressed to ${first.continuation.addressed}; its native continued-in record routes it to ${first.continuation.recipient}.`,
|
|
108
|
+
}) : refused;
|
|
106
109
|
} else if (context.authorizeRecipients) return outcome(EXIT_REFUSED, 'Not sent: the earlier send has no recipient receipt to authorize on this stream. Nothing was sent again.');
|
|
107
110
|
return { ...outcome(0, `Already sent with --id ${options.id}: ${first.text} Nothing was sent again.`, first.receipt ?? null), ...(first.continuation ? { continuation: first.continuation } : {}) };
|
|
108
111
|
}
|
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).
|