@agenticmail/cli 0.9.1 → 0.9.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/public/js/compose.js +21 -5
- package/package.json +4 -4
|
@@ -57,15 +57,31 @@ export function openReply(replyAll) {
|
|
|
57
57
|
`Reply${replyAll ? ' all' : ''}: ${msg.subject ?? '(no subject)'}`;
|
|
58
58
|
document.getElementById('compose-from').value = state.selectedAgent.id;
|
|
59
59
|
const fromAddr = msg.from?.[0]?.address ?? '';
|
|
60
|
+
// Reply-all addressing.
|
|
61
|
+
//
|
|
62
|
+
// Canonical reply-all puts the previous actor on To: and everyone
|
|
63
|
+
// else on Cc:. The earlier code merged To+Cc+sender into a single
|
|
64
|
+
// `to` field, which (combined with 0.9.0's wake-default-from-To)
|
|
65
|
+
// produced wake-thrash again — every recipient was on To so
|
|
66
|
+
// every recipient woke. The split below restores the intended
|
|
67
|
+
// wake semantics: only the previous actor wakes by default;
|
|
68
|
+
// everyone else gets CC awareness.
|
|
60
69
|
let toAddr = fromAddr;
|
|
70
|
+
let ccAddr = '';
|
|
61
71
|
if (replyAll) {
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
72
|
+
const me = (state.selectedAgent.email ?? '').toLowerCase();
|
|
73
|
+
const senderLower = fromAddr.toLowerCase();
|
|
74
|
+
const others = [...(msg.to ?? []), ...(msg.cc ?? [])]
|
|
75
|
+
.map(a => a.address)
|
|
76
|
+
.filter(Boolean)
|
|
77
|
+
.map(a => a.toLowerCase())
|
|
78
|
+
.filter(a => a !== senderLower && a !== me)
|
|
79
|
+
.filter((v, i, a) => a.indexOf(v) === i);
|
|
80
|
+
toAddr = fromAddr;
|
|
81
|
+
ccAddr = others.join(', ');
|
|
66
82
|
}
|
|
67
83
|
document.getElementById('compose-to').value = toAddr;
|
|
68
|
-
document.getElementById('compose-cc').value =
|
|
84
|
+
document.getElementById('compose-cc').value = ccAddr;
|
|
69
85
|
document.getElementById('compose-wake').value = '';
|
|
70
86
|
document.getElementById('compose-subject').value =
|
|
71
87
|
(msg.subject ?? '').startsWith('Re:') ? msg.subject : `Re: ${msg.subject ?? ''}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agenticmail/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Email and SMS infrastructure for AI agents — the first platform to give agents real email addresses and phone numbers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"prepublishOnly": "npm run build"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@agenticmail/api": "^0.9.
|
|
33
|
-
"@agenticmail/core": "^0.9.
|
|
32
|
+
"@agenticmail/api": "^0.9.2",
|
|
33
|
+
"@agenticmail/core": "^0.9.2",
|
|
34
34
|
"json5": "^2.2.3"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@agenticmail/claudecode": "^0.2.
|
|
37
|
+
"@agenticmail/claudecode": "^0.2.2"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"tsup": "^8.4.0",
|