@fungi.computer/carrier 0.0.0-stage → 0.0.1

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.
Files changed (46) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +457 -2
  3. package/dist/cloudflare.d.ts +32 -0
  4. package/dist/cloudflare.js +80 -0
  5. package/dist/email.d.ts +2 -0
  6. package/dist/email.js +2 -0
  7. package/dist/index.d.ts +21 -0
  8. package/dist/index.js +28 -0
  9. package/dist/inspection.d.ts +108 -0
  10. package/dist/inspection.js +188 -0
  11. package/dist/internal/cloudflare-send.d.ts +9 -0
  12. package/dist/internal/cloudflare-send.js +79 -0
  13. package/dist/internal/contracts.d.ts +94 -0
  14. package/dist/internal/contracts.js +7 -0
  15. package/dist/internal/owner.d.ts +24 -0
  16. package/dist/internal/owner.js +419 -0
  17. package/dist/internal/policy.d.ts +25 -0
  18. package/dist/internal/policy.js +18 -0
  19. package/dist/internal/post-contract.d.ts +27 -0
  20. package/dist/internal/post-contract.js +22 -0
  21. package/dist/internal/post-execution.d.ts +45 -0
  22. package/dist/internal/post-execution.js +73 -0
  23. package/dist/internal/post-sql.d.ts +51 -0
  24. package/dist/internal/post-sql.js +255 -0
  25. package/dist/internal/receipt-schema.d.ts +3 -0
  26. package/dist/internal/receipt-schema.js +12 -0
  27. package/dist/post-d1.d.ts +36 -0
  28. package/dist/post-d1.js +55 -0
  29. package/dist/post-outbox.d.ts +40 -0
  30. package/dist/post-outbox.js +99 -0
  31. package/dist/post-postgres.d.ts +25 -0
  32. package/dist/post-postgres.js +79 -0
  33. package/dist/post.d.ts +189 -0
  34. package/dist/post.js +436 -0
  35. package/dist/testing.d.ts +16 -0
  36. package/dist/testing.js +20 -0
  37. package/docs/api/README.md +20 -0
  38. package/docs/api/cloudflare.md +100 -0
  39. package/docs/api/email.md +87 -0
  40. package/docs/api/index.md +343 -0
  41. package/docs/api/inspection.md +281 -0
  42. package/docs/api/post-d1.md +184 -0
  43. package/docs/api/post-postgres.md +108 -0
  44. package/docs/api/post.md +620 -0
  45. package/docs/api/testing.md +46 -0
  46. package/package.json +94 -3
package/package.json CHANGED
@@ -1,6 +1,97 @@
1
1
  {
2
2
  "name": "@fungi.computer/carrier",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.0.1",
4
+ "author": "Levi <levi@technomancy.dev>",
5
+ "description": "Durable email submission and recipient delivery tracking",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "./email": {
15
+ "types": "./dist/email.d.ts",
16
+ "import": "./dist/email.js"
17
+ },
18
+ "./cloudflare": {
19
+ "types": "./dist/cloudflare.d.ts",
20
+ "import": "./dist/cloudflare.js"
21
+ },
22
+ "./inspection": {
23
+ "types": "./dist/inspection.d.ts",
24
+ "import": "./dist/inspection.js"
25
+ },
26
+ "./post": {
27
+ "types": "./dist/post.d.ts",
28
+ "import": "./dist/post.js"
29
+ },
30
+ "./post-d1": {
31
+ "types": "./dist/post-d1.d.ts",
32
+ "import": "./dist/post-d1.js"
33
+ },
34
+ "./post-postgres": {
35
+ "types": "./dist/post-postgres.d.ts",
36
+ "import": "./dist/post-postgres.js"
37
+ },
38
+ "./testing": {
39
+ "types": "./dist/testing.d.ts",
40
+ "import": "./dist/testing.js"
41
+ }
42
+ },
43
+ "files": [
44
+ "dist",
45
+ "docs/api",
46
+ "README.md",
47
+ "LICENSE"
48
+ ],
49
+ "dependencies": {
50
+ "@cloudflare/workers-types": "5.20260828.1",
51
+ "@fungi.computer/cairn": "0.0.1",
52
+ "@fungi.computer/watchdog": "0.0.1",
53
+ "effect": "4.0.2",
54
+ "pg": "8.23.0",
55
+ "@types/pg": "8.23.1"
56
+ },
57
+ "devDependencies": {
58
+ "@cloudflare/vitest-plugin": "1.1.2",
59
+ "@types/node": "24.13.3",
60
+ "typescript": "5.9.3",
61
+ "vitest": "4.1.11"
62
+ },
63
+ "botanical": {
64
+ "role": "package",
65
+ "operations": {
66
+ "lint": "required",
67
+ "typecheck": "required",
68
+ "build": "required",
69
+ "test": "required",
70
+ "docs": "required",
71
+ "pack": "required",
72
+ "smoke": "required",
73
+ "stranger": "required"
74
+ }
75
+ },
76
+ "license": "MIT",
77
+ "repository": {
78
+ "type": "git",
79
+ "url": "git+https://github.com/fungi-computer/carrier.git"
80
+ },
81
+ "scripts": {
82
+ "lint": "eslint src test --max-warnings=0 && ../../node_modules/.bin/oxlint --config ../../oxlint.config.ts --deny-warnings src test",
83
+ "typecheck": "tsc -p tsconfig.json --noEmit",
84
+ "build": "pnpm run clean && tsc -p tsconfig.build.json",
85
+ "clean": "node --input-type=module --eval \"import { rm } from 'node:fs/promises'; await rm('dist', { recursive: true, force: true });\"",
86
+ "test": "vitest run --config vitest.config.mjs && vitest run --config vitest.cloudflare.config.mjs",
87
+ "docs": "tsx ../../tooling/repository/src/docs/cli.ts check --root ../..",
88
+ "docs:write": "tsx ../../tooling/repository/src/docs/cli.ts write --root ../..",
89
+ "pack": "mkdir -p ../../.botanical/carrier-pack && pnpm pack --pack-destination ../../.botanical/carrier-pack",
90
+ "smoke": "node --input-type=module -e \"Promise.all([import('./dist/index.js'), import('./dist/cloudflare.js'), import('./dist/inspection.js')]).then(() => {})\"",
91
+ "stranger": "tsx ../../tooling/repository/src/artifacts/cli.ts --repo-root ../.. .",
92
+ "format:check": "node ../../tooling/repository/scripts/format-package-check.mjs",
93
+ "lint:anti-slop": "node ../../tooling/repository/scripts/lint-package-anti-slop.mjs",
94
+ "test:unit": "vitest run --config vitest.config.mjs",
95
+ "test:merge": "vitest run --config vitest.cloudflare.config.mjs"
96
+ }
6
97
  }