mirror of
https://github.com/bitbaum/mail-kit.git
synced 2026-12-04 04:47:25 +01:00
- address: every app's address is hello@<its own host> (appAddress, appAddressFromEnv), and sendMail sets it as Reply-To on every message, so answers reach the app while mail still leaves the shared sender. - inbound: the contract between the fleet mail gateway and an app. InboundMail, HMAC-signed with a timestamp (signInbound/verifyInbound); inboundHandler() refuses unsigned, tampered, stale or oversized deliveries and answers 500 when storing fails so the gateway retries. - triage: triageMail(mail, complete, context) asks any model for kind, urgency, summary, language and needsHuman; never throws, falls back to rules marked by: "rules", and treats instructions in a mail as content. Still zero runtime dependencies. Claude-Session: https://claude.ai/code/session_01TTH5cy8bKmEqzdTyAsbbT8 Co-authored-by: Claude <noreply@anthropic.com>
63 lines
1.6 KiB
JSON
63 lines
1.6 KiB
JSON
{
|
|
"name": "@bitbaum/mail-kit",
|
|
"version": "0.2.0",
|
|
"description": "The fleet's one email layer: Resend over raw fetch, zero dependencies, honest never-throwing results, sandbox/placeholder guards, and the shared-sender convention encoded once.",
|
|
"license": "MIT",
|
|
"author": "Mao Nakamoto",
|
|
"homepage": "https://github.com/bitbaum/mail-kit#readme",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/bitbaum/mail-kit.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/bitbaum/mail-kit/issues"
|
|
},
|
|
"keywords": [
|
|
"email",
|
|
"resend",
|
|
"transactional",
|
|
"mail",
|
|
"never-throw"
|
|
],
|
|
"type": "module",
|
|
"sideEffects": false,
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"packageManager": "pnpm@11.25.0",
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"provenance": true
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"src"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"default": "./dist/index.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc -p tsconfig.json",
|
|
"lint": "eslint .",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"test": "vitest run",
|
|
"verify": "pnpm run format:check && pnpm run lint && pnpm run typecheck && pnpm run build && pnpm run test",
|
|
"prepare": "pnpm run build",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check ."
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"@types/node": "^26.4.0",
|
|
"eslint": "^10.9.1",
|
|
"globals": "^17.11.0",
|
|
"prettier": "3.9.6",
|
|
"typescript": "^6.0.3",
|
|
"typescript-eslint": "^8.68.0",
|
|
"vitest": "^4.1.0"
|
|
}
|
|
}
|