@agenticmail/claudecode 0.2.3 → 0.2.5

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.
@@ -1,40 +0,0 @@
1
- import "./chunk-BYXBJQAS.js";
2
- import "./chunk-2ESYSVXG.js";
3
-
4
- // ../core/dist/email-worker-template-BOJPKCVB.js
5
- var EMAIL_WORKER_SCRIPT = `
6
- export default {
7
- async email(message, env, ctx) {
8
- // Read the raw RFC822 stream into an ArrayBuffer, then base64-encode
9
- // because the inbound endpoint expects base64 in the rawEmail field.
10
- const arrayBuf = await new Response(message.raw).arrayBuffer();
11
- const bytes = new Uint8Array(arrayBuf);
12
- let binary = '';
13
- for (let i = 0; i < bytes.length; i++) {
14
- binary += String.fromCharCode(bytes[i]);
15
- }
16
- const rawEmail = btoa(binary);
17
-
18
- const response = await fetch(env.INBOUND_URL, {
19
- method: 'POST',
20
- headers: {
21
- 'Content-Type': 'application/json',
22
- 'X-Inbound-Secret': env.INBOUND_SECRET,
23
- },
24
- body: JSON.stringify({
25
- from: message.from,
26
- to: message.to,
27
- rawEmail,
28
- }),
29
- });
30
-
31
- if (!response.ok) {
32
- // Log but don't reject \u2014 rejecting causes bounce-back to sender
33
- console.error('AgenticMail inbound webhook failed:', response.status, await response.text());
34
- }
35
- },
36
- };
37
- `;
38
- export {
39
- EMAIL_WORKER_SCRIPT
40
- };
@@ -1,6 +0,0 @@
1
- import {
2
- require_imap_flow
3
- } from "./chunk-DDJNA5HP.js";
4
- import "./chunk-RB5MGRT3.js";
5
- import "./chunk-2ESYSVXG.js";
6
- export default require_imap_flow();
@@ -1,6 +0,0 @@
1
- import {
2
- require_mailparser
3
- } from "./chunk-B276KPVO.js";
4
- import "./chunk-RB5MGRT3.js";
5
- import "./chunk-2ESYSVXG.js";
6
- export default require_mailparser();
@@ -1,14 +0,0 @@
1
- import {
2
- SPAM_THRESHOLD,
3
- WARNING_THRESHOLD,
4
- isInternalEmail,
5
- scoreEmail
6
- } from "./chunk-XNNC4MIH.js";
7
- import "./chunk-BYXBJQAS.js";
8
- import "./chunk-2ESYSVXG.js";
9
- export {
10
- SPAM_THRESHOLD,
11
- WARNING_THRESHOLD,
12
- isInternalEmail,
13
- scoreEmail
14
- };