@fungi.computer/darkroom 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.
- package/LICENSE +21 -0
- package/README.md +315 -2
- package/dist/app-media-contracts.d.ts +499 -0
- package/dist/app-media-contracts.js +98 -0
- package/dist/browser-failure.d.ts +40 -0
- package/dist/browser-failure.js +39 -0
- package/dist/browser.d.ts +2 -0
- package/dist/browser.js +1 -0
- package/dist/cloudflare/provider.d.ts +13 -0
- package/dist/cloudflare/provider.js +140 -0
- package/dist/cloudflare/reference-images.d.ts +42 -0
- package/dist/cloudflare/reference-images.js +102 -0
- package/dist/cloudflare.d.ts +6 -0
- package/dist/cloudflare.js +4 -0
- package/dist/cost-estimate.d.ts +22 -0
- package/dist/cost-estimate.js +76 -0
- package/dist/effect.d.ts +2 -0
- package/dist/effect.js +2 -0
- package/dist/execution-error.d.ts +54 -0
- package/dist/execution-error.js +62 -0
- package/dist/failure.d.ts +2 -0
- package/dist/failure.js +8 -0
- package/dist/gateway-models.d.ts +23 -0
- package/dist/gateway-models.js +77 -0
- package/dist/gateway-wire.d.ts +16 -0
- package/dist/gateway-wire.js +22 -0
- package/dist/index.d.ts +361 -0
- package/dist/index.js +611 -0
- package/dist/media-binding.d.ts +291 -0
- package/dist/media-binding.js +146 -0
- package/dist/media-generation.d.ts +10 -0
- package/dist/media-generation.js +110 -0
- package/dist/media-operation-contract.d.ts +104 -0
- package/dist/media-operation-contract.js +29 -0
- package/dist/media-operation-do.d.ts +55 -0
- package/dist/media-operation-do.js +105 -0
- package/dist/media-operation-owner.d.ts +301 -0
- package/dist/media-operation-owner.js +903 -0
- package/dist/media-operation-storage.d.ts +81 -0
- package/dist/media-operation-storage.js +1 -0
- package/dist/media-operation.d.ts +33 -0
- package/dist/media-operation.js +230 -0
- package/dist/model-catalog.d.ts +456 -0
- package/dist/model-catalog.js +565 -0
- package/dist/neurons.d.ts +4 -0
- package/dist/neurons.js +4 -0
- package/dist/provenance-bytes.d.ts +3 -0
- package/dist/provenance-bytes.js +15 -0
- package/dist/provenance-export.d.ts +23 -0
- package/dist/provenance-export.js +103 -0
- package/dist/provenance-jpeg.d.ts +3 -0
- package/dist/provenance-jpeg.js +76 -0
- package/dist/provenance-png.d.ts +1 -0
- package/dist/provenance-png.js +21 -0
- package/dist/provenance-xmp.d.ts +2 -0
- package/dist/provenance-xmp.js +54 -0
- package/dist/provenance.d.ts +20 -0
- package/dist/provenance.js +58 -0
- package/dist/server.d.ts +158 -0
- package/dist/server.js +207 -0
- package/dist/video-providers/index.d.ts +14 -0
- package/dist/video-providers/index.js +14 -0
- package/dist/video-providers/minimax.d.ts +25 -0
- package/dist/video-providers/minimax.js +63 -0
- package/dist/video-providers/reference-encoding.d.ts +4 -0
- package/dist/video-providers/reference-encoding.js +11 -0
- package/dist/video-providers/types.d.ts +28 -0
- package/dist/video-providers/types.js +1 -0
- package/dist/video-providers/unified.d.ts +18 -0
- package/dist/video-providers/unified.js +52 -0
- package/docs/api/README.md +16 -0
- package/docs/api/app-media-contracts.md +507 -0
- package/docs/api/browser.md +126 -0
- package/docs/api/cloudflare.md +678 -0
- package/docs/api/effect.md +39 -0
- package/docs/api/index.md +1775 -0
- package/docs/api/modules.md +19 -0
- package/docs/api/provenance-export.md +114 -0
- package/docs/api/server.md +1672 -0
- package/package.json +110 -3
package/package.json
CHANGED
|
@@ -1,6 +1,113 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/darkroom",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"author": "Levi <levi@technomancy.dev>",
|
|
5
|
+
"description": "Media generation, durable output retention and provenance with host-owned authority and billing",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./app-media-contracts": {
|
|
16
|
+
"types": "./dist/app-media-contracts.d.ts",
|
|
17
|
+
"import": "./dist/app-media-contracts.js"
|
|
18
|
+
},
|
|
19
|
+
"./server": {
|
|
20
|
+
"types": "./dist/server.d.ts",
|
|
21
|
+
"import": "./dist/server.js"
|
|
22
|
+
},
|
|
23
|
+
"./cloudflare": {
|
|
24
|
+
"types": "./dist/cloudflare.d.ts",
|
|
25
|
+
"import": "./dist/cloudflare.js"
|
|
26
|
+
},
|
|
27
|
+
"./provenance": {
|
|
28
|
+
"types": "./dist/provenance-export.d.ts",
|
|
29
|
+
"import": "./dist/provenance-export.js"
|
|
30
|
+
},
|
|
31
|
+
"./effect": {
|
|
32
|
+
"types": "./dist/effect.d.ts",
|
|
33
|
+
"import": "./dist/effect.js"
|
|
34
|
+
},
|
|
35
|
+
"./browser": {
|
|
36
|
+
"types": "./dist/browser.d.ts",
|
|
37
|
+
"import": "./dist/browser.js"
|
|
38
|
+
},
|
|
39
|
+
"./media-binding": {
|
|
40
|
+
"types": "./dist/media-binding.d.ts",
|
|
41
|
+
"import": "./dist/media-binding.js"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"dist",
|
|
46
|
+
"docs/api",
|
|
47
|
+
"README.md",
|
|
48
|
+
"LICENSE"
|
|
49
|
+
],
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"zod": "4.4.3",
|
|
52
|
+
"@fungi.computer/cairn": "0.0.1",
|
|
53
|
+
"effect": "4.0.2",
|
|
54
|
+
"hono": "4.13.5",
|
|
55
|
+
"png-chunks-extract": "1.0.0",
|
|
56
|
+
"png-chunks-encode": "1.0.0",
|
|
57
|
+
"node-webpmux": "3.2.1",
|
|
58
|
+
"xmlbuilder2": "4.0.3",
|
|
59
|
+
"exifreader": "4.46.0",
|
|
60
|
+
"@fungi.computer/ts-webp": "0.1.6",
|
|
61
|
+
"@xmldom/xmldom": "0.9.12",
|
|
62
|
+
"@fungi.computer/agar": "0.1.0",
|
|
63
|
+
"@fungi.computer/capnweb": "0.12.0"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@types/node": "24.13.3",
|
|
67
|
+
"typescript": "5.9.3",
|
|
68
|
+
"vitest": "4.1.11",
|
|
69
|
+
"wrangler": "4.127.1",
|
|
70
|
+
"@cloudflare/vitest-plugin": "1.1.2",
|
|
71
|
+
"@types/png-chunks-extract": "1.0.2",
|
|
72
|
+
"@types/png-chunks-encode": "1.0.2",
|
|
73
|
+
"sharp": "0.35.4",
|
|
74
|
+
"@cloudflare/workers-types": "5.20260828.1"
|
|
75
|
+
},
|
|
76
|
+
"botanical": {
|
|
77
|
+
"role": "package",
|
|
78
|
+
"operations": {
|
|
79
|
+
"lint": "required",
|
|
80
|
+
"typecheck": "required",
|
|
81
|
+
"build": "required",
|
|
82
|
+
"test": "required",
|
|
83
|
+
"docs": "required",
|
|
84
|
+
"pack": "required",
|
|
85
|
+
"smoke": "required",
|
|
86
|
+
"stranger": "required"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"license": "MIT",
|
|
90
|
+
"repository": {
|
|
91
|
+
"type": "git",
|
|
92
|
+
"url": "git+https://github.com/fungi-computer/darkroom.git"
|
|
93
|
+
},
|
|
94
|
+
"scripts": {
|
|
95
|
+
"lint": "eslint src test examples --max-warnings=0 && ../../node_modules/.bin/oxlint --config ../../oxlint.config.ts --deny-warnings src test examples",
|
|
96
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
97
|
+
"typecheck:workers": "tsc --noEmit --strict --target ES2024 --lib ES2024,ESNext.Disposable --module NodeNext --moduleResolution NodeNext --types @cloudflare/workers-types/experimental --skipLibCheck false test/stranger/native-consumer.mts",
|
|
98
|
+
"build": "pnpm run clean && tsc -p tsconfig.build.json",
|
|
99
|
+
"clean": "node --input-type=module --eval \"import { rm } from 'node:fs/promises'; await rm('dist', { recursive: true, force: true });\"",
|
|
100
|
+
"test": "pnpm run test:node && pnpm run test:cloudflare",
|
|
101
|
+
"smoke": "node test/stranger/runtime.mjs",
|
|
102
|
+
"test:node": "vitest run --config vitest.node.config.ts",
|
|
103
|
+
"test:cloudflare": "vitest run --config vitest.cloudflare.config.ts",
|
|
104
|
+
"format:check": "node ../../tooling/repository/scripts/format-package-check.mjs",
|
|
105
|
+
"lint:anti-slop": "node ../../tooling/repository/scripts/lint-package-anti-slop.mjs",
|
|
106
|
+
"test:unit": "pnpm run test:node",
|
|
107
|
+
"test:merge": "pnpm run test:cloudflare",
|
|
108
|
+
"docs": "tsx ../../tooling/repository/src/docs/cli.ts check --root ../..",
|
|
109
|
+
"docs:write": "tsx ../../tooling/repository/src/docs/cli.ts write --root ../..",
|
|
110
|
+
"pack": "mkdir -p ../../.botanical/darkroom-pack && pnpm pack --pack-destination ../../.botanical/darkroom-pack",
|
|
111
|
+
"stranger": "tsx ../../tooling/repository/src/artifacts/cli.ts --repo-root ../.. ."
|
|
112
|
+
}
|
|
6
113
|
}
|