@fleox/agentphoto 0.0.0-stage → 0.1.0

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 (231) hide show
  1. package/LICENSE +143 -0
  2. package/README.md +229 -2
  3. package/changelog.json +17 -0
  4. package/dist/agent/agentphoto.mjs +3307 -0
  5. package/dist/agent/chunks/assets-CDQo3VqD.mjs +151 -0
  6. package/dist/agent/chunks/catalog-DIZ5dnH5.mjs +953 -0
  7. package/dist/agent/chunks/context-DoLoLF9f.mjs +75 -0
  8. package/dist/agent/chunks/doc-BjY_j4Su.mjs +773 -0
  9. package/dist/agent/chunks/export-CLmpFART.mjs +140 -0
  10. package/dist/agent/chunks/ids-DAmiNwd9.mjs +28 -0
  11. package/dist/agent/chunks/imageInfo-QxAfu8R6.mjs +173 -0
  12. package/dist/agent/chunks/jsonPath-B7vAPXsi.mjs +155 -0
  13. package/dist/agent/chunks/library-C_EXiphj.mjs +16 -0
  14. package/dist/agent/chunks/models-C4i_hicr.mjs +387 -0
  15. package/dist/agent/chunks/output-3F12IR9O.mjs +130 -0
  16. package/dist/agent/chunks/package-DSmAxrla.mjs +71 -0
  17. package/dist/agent/chunks/project-CUykGysG.mjs +198 -0
  18. package/dist/agent/chunks/rolldown-runtime-CMQPkI6i.mjs +18 -0
  19. package/dist/agent/chunks/server-I0trf5tM.mjs +241 -0
  20. package/dist/agent/chunks/templates--YGpGuHh.mjs +40 -0
  21. package/dist/agent/chunks/tools-Dnh8g6F9.mjs +1354 -0
  22. package/dist/agent/chunks/tree-DO7N0UDV.mjs +127 -0
  23. package/dist/agent/chunks/types-DOK7tAAu.mjs +30 -0
  24. package/dist/agent/chunks/validate-CXPFB-i6.mjs +936 -0
  25. package/dist/engine/agentphoto-engine.js +2777 -0
  26. package/dist/engine/chunks/transformers.web-D5Vsg6-A.js +18494 -0
  27. package/dist/engine/ort/ort-wasm-simd-threaded.asyncify.mjs +124 -0
  28. package/dist/engine/ort/ort-wasm-simd-threaded.asyncify.wasm +0 -0
  29. package/dist/studio/assets/index-Be8JnaFy.js +28 -0
  30. package/dist/studio/assets/index-DwPms2S5.css +1 -0
  31. package/dist/studio/assets/transformers.web-DgnCIB_X.js +38 -0
  32. package/dist/studio/index.html +15 -0
  33. package/dist/studio/library/LICENSES.md +57 -0
  34. package/dist/studio/library/fonts/OFL.txt +90 -0
  35. package/dist/studio/library/fonts/anton/anton-latin-400-normal.woff2 +0 -0
  36. package/dist/studio/library/fonts/anton/anton-latin-ext-400-normal.woff2 +0 -0
  37. package/dist/studio/library/fonts/archivo-black/archivo-black-latin-400-normal.woff2 +0 -0
  38. package/dist/studio/library/fonts/archivo-black/archivo-black-latin-ext-400-normal.woff2 +0 -0
  39. package/dist/studio/library/fonts/bebas-neue/bebas-neue-latin-400-normal.woff2 +0 -0
  40. package/dist/studio/library/fonts/bebas-neue/bebas-neue-latin-ext-400-normal.woff2 +0 -0
  41. package/dist/studio/library/fonts/caveat/caveat-latin-400-normal.woff2 +0 -0
  42. package/dist/studio/library/fonts/caveat/caveat-latin-700-normal.woff2 +0 -0
  43. package/dist/studio/library/fonts/caveat/caveat-latin-ext-400-normal.woff2 +0 -0
  44. package/dist/studio/library/fonts/caveat/caveat-latin-ext-700-normal.woff2 +0 -0
  45. package/dist/studio/library/fonts/dm-serif/dm-serif-display-latin-400-normal.woff2 +0 -0
  46. package/dist/studio/library/fonts/dm-serif/dm-serif-display-latin-ext-400-normal.woff2 +0 -0
  47. package/dist/studio/library/fonts/inter/inter-latin-400-normal.woff2 +0 -0
  48. package/dist/studio/library/fonts/inter/inter-latin-600-normal.woff2 +0 -0
  49. package/dist/studio/library/fonts/inter/inter-latin-700-normal.woff2 +0 -0
  50. package/dist/studio/library/fonts/inter/inter-latin-800-normal.woff2 +0 -0
  51. package/dist/studio/library/fonts/inter/inter-latin-ext-400-normal.woff2 +0 -0
  52. package/dist/studio/library/fonts/inter/inter-latin-ext-600-normal.woff2 +0 -0
  53. package/dist/studio/library/fonts/inter/inter-latin-ext-700-normal.woff2 +0 -0
  54. package/dist/studio/library/fonts/inter/inter-latin-ext-800-normal.woff2 +0 -0
  55. package/dist/studio/library/fonts/jetbrains-mono/jetbrains-mono-latin-400-normal.woff2 +0 -0
  56. package/dist/studio/library/fonts/jetbrains-mono/jetbrains-mono-latin-700-normal.woff2 +0 -0
  57. package/dist/studio/library/fonts/jetbrains-mono/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
  58. package/dist/studio/library/fonts/jetbrains-mono/jetbrains-mono-latin-ext-700-normal.woff2 +0 -0
  59. package/dist/studio/library/fonts/lobster/lobster-latin-400-normal.woff2 +0 -0
  60. package/dist/studio/library/fonts/lobster/lobster-latin-ext-400-normal.woff2 +0 -0
  61. package/dist/studio/library/fonts/montserrat/montserrat-latin-400-normal.woff2 +0 -0
  62. package/dist/studio/library/fonts/montserrat/montserrat-latin-700-normal.woff2 +0 -0
  63. package/dist/studio/library/fonts/montserrat/montserrat-latin-800-normal.woff2 +0 -0
  64. package/dist/studio/library/fonts/montserrat/montserrat-latin-ext-400-normal.woff2 +0 -0
  65. package/dist/studio/library/fonts/montserrat/montserrat-latin-ext-700-normal.woff2 +0 -0
  66. package/dist/studio/library/fonts/montserrat/montserrat-latin-ext-800-normal.woff2 +0 -0
  67. package/dist/studio/library/fonts/oswald/oswald-latin-400-normal.woff2 +0 -0
  68. package/dist/studio/library/fonts/oswald/oswald-latin-600-normal.woff2 +0 -0
  69. package/dist/studio/library/fonts/oswald/oswald-latin-ext-400-normal.woff2 +0 -0
  70. package/dist/studio/library/fonts/oswald/oswald-latin-ext-600-normal.woff2 +0 -0
  71. package/dist/studio/library/fonts/pacifico/pacifico-latin-400-normal.woff2 +0 -0
  72. package/dist/studio/library/fonts/pacifico/pacifico-latin-ext-400-normal.woff2 +0 -0
  73. package/dist/studio/library/fonts/playfair/playfair-display-latin-400-italic.woff2 +0 -0
  74. package/dist/studio/library/fonts/playfair/playfair-display-latin-400-normal.woff2 +0 -0
  75. package/dist/studio/library/fonts/playfair/playfair-display-latin-700-normal.woff2 +0 -0
  76. package/dist/studio/library/fonts/playfair/playfair-display-latin-ext-400-italic.woff2 +0 -0
  77. package/dist/studio/library/fonts/playfair/playfair-display-latin-ext-400-normal.woff2 +0 -0
  78. package/dist/studio/library/fonts/playfair/playfair-display-latin-ext-700-normal.woff2 +0 -0
  79. package/dist/studio/library/fonts/poppins/poppins-latin-400-normal.woff2 +0 -0
  80. package/dist/studio/library/fonts/poppins/poppins-latin-600-normal.woff2 +0 -0
  81. package/dist/studio/library/fonts/poppins/poppins-latin-700-normal.woff2 +0 -0
  82. package/dist/studio/library/fonts/poppins/poppins-latin-ext-400-normal.woff2 +0 -0
  83. package/dist/studio/library/fonts/poppins/poppins-latin-ext-600-normal.woff2 +0 -0
  84. package/dist/studio/library/fonts/poppins/poppins-latin-ext-700-normal.woff2 +0 -0
  85. package/dist/studio/library/fonts/roboto-slab/LICENSE.txt +202 -0
  86. package/dist/studio/library/fonts/roboto-slab/roboto-slab-latin-400-normal.woff2 +0 -0
  87. package/dist/studio/library/fonts/roboto-slab/roboto-slab-latin-700-normal.woff2 +0 -0
  88. package/dist/studio/library/fonts/roboto-slab/roboto-slab-latin-ext-400-normal.woff2 +0 -0
  89. package/dist/studio/library/fonts/roboto-slab/roboto-slab-latin-ext-700-normal.woff2 +0 -0
  90. package/dist/studio/library/fonts/space-grotesk/space-grotesk-latin-500-normal.woff2 +0 -0
  91. package/dist/studio/library/fonts/space-grotesk/space-grotesk-latin-700-normal.woff2 +0 -0
  92. package/dist/studio/library/fonts/space-grotesk/space-grotesk-latin-ext-500-normal.woff2 +0 -0
  93. package/dist/studio/library/fonts/space-grotesk/space-grotesk-latin-ext-700-normal.woff2 +0 -0
  94. package/dist/studio/library/images/city.jpg +0 -0
  95. package/dist/studio/library/images/food.jpg +0 -0
  96. package/dist/studio/library/images/landscape.jpg +0 -0
  97. package/dist/studio/library/images/pet.jpg +0 -0
  98. package/dist/studio/library/images/portrait.jpg +0 -0
  99. package/dist/studio/library/images/product.jpg +0 -0
  100. package/dist/studio/library/index.json +752 -0
  101. package/dist/studio/templates/avatar-pro/assets/masks/photo-cutout.png +0 -0
  102. package/dist/studio/templates/avatar-pro/photo.json +13 -0
  103. package/dist/studio/templates/avatar-pro/preview.jpg +0 -0
  104. package/dist/studio/templates/avatar-pro/template.json +1 -0
  105. package/dist/studio/templates/index.json +1 -0
  106. package/dist/studio/templates/og-article/photo.json +13 -0
  107. package/dist/studio/templates/og-article/preview.jpg +0 -0
  108. package/dist/studio/templates/og-article/template.json +1 -0
  109. package/dist/studio/templates/polaroid/photo.json +13 -0
  110. package/dist/studio/templates/polaroid/preview.jpg +0 -0
  111. package/dist/studio/templates/polaroid/template.json +1 -0
  112. package/dist/studio/templates/product-white/assets/masks/photo-cutout.png +0 -0
  113. package/dist/studio/templates/product-white/photo.json +72 -0
  114. package/dist/studio/templates/product-white/preview.jpg +0 -0
  115. package/dist/studio/templates/product-white/template.json +1 -0
  116. package/dist/studio/templates/sale-banner/photo.json +125 -0
  117. package/dist/studio/templates/sale-banner/preview.jpg +0 -0
  118. package/dist/studio/templates/sale-banner/template.json +1 -0
  119. package/dist/studio/templates/social-quote/photo.json +13 -0
  120. package/dist/studio/templates/social-quote/preview.jpg +0 -0
  121. package/dist/studio/templates/social-quote/template.json +1 -0
  122. package/dist/studio/templates/story-promo/photo.json +13 -0
  123. package/dist/studio/templates/story-promo/preview.jpg +0 -0
  124. package/dist/studio/templates/story-promo/template.json +1 -0
  125. package/dist/studio/templates/youtube-thumbnail/photo.json +12 -0
  126. package/dist/studio/templates/youtube-thumbnail/preview.jpg +0 -0
  127. package/dist/studio/templates/youtube-thumbnail/template.json +1 -0
  128. package/library/LICENSES.md +57 -0
  129. package/library/fonts/OFL.txt +90 -0
  130. package/library/fonts/anton/anton-latin-400-normal.woff2 +0 -0
  131. package/library/fonts/anton/anton-latin-ext-400-normal.woff2 +0 -0
  132. package/library/fonts/archivo-black/archivo-black-latin-400-normal.woff2 +0 -0
  133. package/library/fonts/archivo-black/archivo-black-latin-ext-400-normal.woff2 +0 -0
  134. package/library/fonts/bebas-neue/bebas-neue-latin-400-normal.woff2 +0 -0
  135. package/library/fonts/bebas-neue/bebas-neue-latin-ext-400-normal.woff2 +0 -0
  136. package/library/fonts/caveat/caveat-latin-400-normal.woff2 +0 -0
  137. package/library/fonts/caveat/caveat-latin-700-normal.woff2 +0 -0
  138. package/library/fonts/caveat/caveat-latin-ext-400-normal.woff2 +0 -0
  139. package/library/fonts/caveat/caveat-latin-ext-700-normal.woff2 +0 -0
  140. package/library/fonts/dm-serif/dm-serif-display-latin-400-normal.woff2 +0 -0
  141. package/library/fonts/dm-serif/dm-serif-display-latin-ext-400-normal.woff2 +0 -0
  142. package/library/fonts/inter/inter-latin-400-normal.woff2 +0 -0
  143. package/library/fonts/inter/inter-latin-600-normal.woff2 +0 -0
  144. package/library/fonts/inter/inter-latin-700-normal.woff2 +0 -0
  145. package/library/fonts/inter/inter-latin-800-normal.woff2 +0 -0
  146. package/library/fonts/inter/inter-latin-ext-400-normal.woff2 +0 -0
  147. package/library/fonts/inter/inter-latin-ext-600-normal.woff2 +0 -0
  148. package/library/fonts/inter/inter-latin-ext-700-normal.woff2 +0 -0
  149. package/library/fonts/inter/inter-latin-ext-800-normal.woff2 +0 -0
  150. package/library/fonts/jetbrains-mono/jetbrains-mono-latin-400-normal.woff2 +0 -0
  151. package/library/fonts/jetbrains-mono/jetbrains-mono-latin-700-normal.woff2 +0 -0
  152. package/library/fonts/jetbrains-mono/jetbrains-mono-latin-ext-400-normal.woff2 +0 -0
  153. package/library/fonts/jetbrains-mono/jetbrains-mono-latin-ext-700-normal.woff2 +0 -0
  154. package/library/fonts/lobster/lobster-latin-400-normal.woff2 +0 -0
  155. package/library/fonts/lobster/lobster-latin-ext-400-normal.woff2 +0 -0
  156. package/library/fonts/montserrat/montserrat-latin-400-normal.woff2 +0 -0
  157. package/library/fonts/montserrat/montserrat-latin-700-normal.woff2 +0 -0
  158. package/library/fonts/montserrat/montserrat-latin-800-normal.woff2 +0 -0
  159. package/library/fonts/montserrat/montserrat-latin-ext-400-normal.woff2 +0 -0
  160. package/library/fonts/montserrat/montserrat-latin-ext-700-normal.woff2 +0 -0
  161. package/library/fonts/montserrat/montserrat-latin-ext-800-normal.woff2 +0 -0
  162. package/library/fonts/oswald/oswald-latin-400-normal.woff2 +0 -0
  163. package/library/fonts/oswald/oswald-latin-600-normal.woff2 +0 -0
  164. package/library/fonts/oswald/oswald-latin-ext-400-normal.woff2 +0 -0
  165. package/library/fonts/oswald/oswald-latin-ext-600-normal.woff2 +0 -0
  166. package/library/fonts/pacifico/pacifico-latin-400-normal.woff2 +0 -0
  167. package/library/fonts/pacifico/pacifico-latin-ext-400-normal.woff2 +0 -0
  168. package/library/fonts/playfair/playfair-display-latin-400-italic.woff2 +0 -0
  169. package/library/fonts/playfair/playfair-display-latin-400-normal.woff2 +0 -0
  170. package/library/fonts/playfair/playfair-display-latin-700-normal.woff2 +0 -0
  171. package/library/fonts/playfair/playfair-display-latin-ext-400-italic.woff2 +0 -0
  172. package/library/fonts/playfair/playfair-display-latin-ext-400-normal.woff2 +0 -0
  173. package/library/fonts/playfair/playfair-display-latin-ext-700-normal.woff2 +0 -0
  174. package/library/fonts/poppins/poppins-latin-400-normal.woff2 +0 -0
  175. package/library/fonts/poppins/poppins-latin-600-normal.woff2 +0 -0
  176. package/library/fonts/poppins/poppins-latin-700-normal.woff2 +0 -0
  177. package/library/fonts/poppins/poppins-latin-ext-400-normal.woff2 +0 -0
  178. package/library/fonts/poppins/poppins-latin-ext-600-normal.woff2 +0 -0
  179. package/library/fonts/poppins/poppins-latin-ext-700-normal.woff2 +0 -0
  180. package/library/fonts/roboto-slab/LICENSE.txt +202 -0
  181. package/library/fonts/roboto-slab/roboto-slab-latin-400-normal.woff2 +0 -0
  182. package/library/fonts/roboto-slab/roboto-slab-latin-700-normal.woff2 +0 -0
  183. package/library/fonts/roboto-slab/roboto-slab-latin-ext-400-normal.woff2 +0 -0
  184. package/library/fonts/roboto-slab/roboto-slab-latin-ext-700-normal.woff2 +0 -0
  185. package/library/fonts/space-grotesk/space-grotesk-latin-500-normal.woff2 +0 -0
  186. package/library/fonts/space-grotesk/space-grotesk-latin-700-normal.woff2 +0 -0
  187. package/library/fonts/space-grotesk/space-grotesk-latin-ext-500-normal.woff2 +0 -0
  188. package/library/fonts/space-grotesk/space-grotesk-latin-ext-700-normal.woff2 +0 -0
  189. package/library/images/city.jpg +0 -0
  190. package/library/images/food.jpg +0 -0
  191. package/library/images/landscape.jpg +0 -0
  192. package/library/images/pet.jpg +0 -0
  193. package/library/images/portrait.jpg +0 -0
  194. package/library/images/product.jpg +0 -0
  195. package/library/index.json +752 -0
  196. package/package.json +65 -4
  197. package/plugin/.claude-plugin/plugin.json +19 -0
  198. package/plugin/skills/agentphoto-cutout/SKILL.md +132 -0
  199. package/plugin/skills/agentphoto-design/SKILL.md +104 -0
  200. package/plugin/skills/agentphoto-design/references/layouts.md +60 -0
  201. package/plugin/skills/agentphoto-publish/SKILL.md +79 -0
  202. package/plugin/skills/agentphoto-retouch/SKILL.md +144 -0
  203. package/plugin/skills/agentphoto-retouch/references/filters.md +51 -0
  204. package/plugin/skills/agentphoto-retouch/references/patch-ops.md +66 -0
  205. package/plugin/skills/agentphoto-retouch/references/recipes.md +129 -0
  206. package/templates/avatar-pro/assets/masks/photo-cutout.png +0 -0
  207. package/templates/avatar-pro/photo.json +13 -0
  208. package/templates/avatar-pro/preview.jpg +0 -0
  209. package/templates/avatar-pro/template.json +1 -0
  210. package/templates/og-article/photo.json +13 -0
  211. package/templates/og-article/preview.jpg +0 -0
  212. package/templates/og-article/template.json +1 -0
  213. package/templates/polaroid/photo.json +13 -0
  214. package/templates/polaroid/preview.jpg +0 -0
  215. package/templates/polaroid/template.json +1 -0
  216. package/templates/product-white/assets/masks/photo-cutout.png +0 -0
  217. package/templates/product-white/photo.json +72 -0
  218. package/templates/product-white/preview.jpg +0 -0
  219. package/templates/product-white/template.json +1 -0
  220. package/templates/sale-banner/photo.json +125 -0
  221. package/templates/sale-banner/preview.jpg +0 -0
  222. package/templates/sale-banner/template.json +1 -0
  223. package/templates/social-quote/photo.json +13 -0
  224. package/templates/social-quote/preview.jpg +0 -0
  225. package/templates/social-quote/template.json +1 -0
  226. package/templates/story-promo/photo.json +13 -0
  227. package/templates/story-promo/preview.jpg +0 -0
  228. package/templates/story-promo/template.json +1 -0
  229. package/templates/youtube-thumbnail/photo.json +12 -0
  230. package/templates/youtube-thumbnail/preview.jpg +0 -0
  231. package/templates/youtube-thumbnail/template.json +1 -0
@@ -0,0 +1,387 @@
1
+ import { createRequire as __apRequire } from "node:module";
2
+ import { fileURLToPath as __apPath, fileURLToPath } from "node:url";
3
+ import { dirname as __apDirname, dirname, extname, join, resolve, sep } from "node:path";
4
+ __apRequire(import.meta.url);
5
+ const __filename = __apPath(import.meta.url);
6
+ __apDirname(__filename);
7
+ import { t as __exportAll } from "./rolldown-runtime-CMQPkI6i.mjs";
8
+ import { o as MODELS } from "./catalog-DIZ5dnH5.mjs";
9
+ import { t as package_default } from "./package-DSmAxrla.mjs";
10
+ import { createReadStream, createWriteStream, existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, statSync } from "node:fs";
11
+ import { homedir } from "node:os";
12
+ import { createServer } from "node:http";
13
+ // agent/paths.ts
14
+ function isBundled() {
15
+ return true;
16
+ }
17
+ function packageRoot() {
18
+ const here = dirname(fileURLToPath(import.meta.url));
19
+ if (isBundled()) return here.endsWith("chunks") ? resolve(here, "..", "..", "..") : resolve(here, "..", "..");
20
+ return resolve(here, "..");
21
+ }
22
+ function distRoot() {
23
+ if (process.env.AGENTPHOTO_DIST) return resolve(process.env.AGENTPHOTO_DIST);
24
+ return join(packageRoot(), "dist");
25
+ }
26
+ var engineDir = () => join(distRoot(), "engine");
27
+ var studioDir = () => join(distRoot(), "studio");
28
+ var libraryDir = () => process.env.AGENTPHOTO_LIBRARY ? resolve(process.env.AGENTPHOTO_LIBRARY) : join(packageRoot(), "library");
29
+ var templatesDir = () => process.env.AGENTPHOTO_TEMPLATES ? resolve(process.env.AGENTPHOTO_TEMPLATES) : join(packageRoot(), "templates");
30
+ var modelsDir = () => process.env.AGENTPHOTO_MODELS ? resolve(process.env.AGENTPHOTO_MODELS) : join(homedir(), ".cache", "agentphoto", "models");
31
+ var ENGINE_ENTRY = "agentphoto-engine.js";
32
+ function engineBuilt() {
33
+ return existsSync(join(engineDir(), ENGINE_ENTRY));
34
+ }
35
+ function readVersionInfo() {
36
+ const file = join(distRoot(), "version.json");
37
+ if (existsSync(file)) try {
38
+ const v = JSON.parse(readFileSync(file, "utf8"));
39
+ if (v.version) return {
40
+ name: v.name ?? package_default.name,
41
+ version: v.version
42
+ };
43
+ } catch {}
44
+ return {
45
+ name: package_default.name,
46
+ version: package_default.version
47
+ };
48
+ }
49
+ package_default.name;
50
+ // agent/render/server.ts
51
+ var MIME = {
52
+ ".html": "text/html; charset=utf-8",
53
+ ".js": "text/javascript; charset=utf-8",
54
+ ".mjs": "text/javascript; charset=utf-8",
55
+ ".css": "text/css; charset=utf-8",
56
+ ".json": "application/json; charset=utf-8",
57
+ ".map": "application/json; charset=utf-8",
58
+ ".svg": "image/svg+xml",
59
+ ".png": "image/png",
60
+ ".jpg": "image/jpeg",
61
+ ".jpeg": "image/jpeg",
62
+ ".webp": "image/webp",
63
+ ".gif": "image/gif",
64
+ ".avif": "image/avif",
65
+ ".ico": "image/x-icon",
66
+ ".hdr": "application/octet-stream",
67
+ ".exr": "application/octet-stream",
68
+ ".ktx2": "image/ktx2",
69
+ ".glb": "model/gltf-binary",
70
+ ".gltf": "model/gltf+json",
71
+ ".bin": "application/octet-stream",
72
+ ".woff": "font/woff",
73
+ ".woff2": "font/woff2",
74
+ ".ttf": "font/ttf",
75
+ ".otf": "font/otf",
76
+ ".mp3": "audio/mpeg",
77
+ ".ogg": "audio/ogg",
78
+ ".wav": "audio/wav",
79
+ ".m4a": "audio/mp4",
80
+ ".webm": "video/webm",
81
+ ".mp4": "video/mp4",
82
+ ".txt": "text/plain; charset=utf-8",
83
+ ".wasm": "application/wasm"
84
+ };
85
+ function mimeOf(path) {
86
+ return MIME[extname(path).toLowerCase()] ?? "application/octet-stream";
87
+ }
88
+ function resolveUnder(root, rel) {
89
+ let decoded;
90
+ try {
91
+ decoded = decodeURIComponent(rel);
92
+ } catch {
93
+ return null;
94
+ }
95
+ if (decoded.includes("\0")) return null;
96
+ const parts = decoded.replace(/\\/g, "/").split("/").filter((p) => p && p !== ".");
97
+ if (parts.includes("..")) return null;
98
+ const absRoot = resolve(root);
99
+ const file = resolve(absRoot, ...parts);
100
+ if (file !== absRoot && !file.startsWith(absRoot + sep)) return null;
101
+ if (existsSync(file)) try {
102
+ const realRoot = realpathSync(absRoot);
103
+ const real = realpathSync(file);
104
+ if (real !== realRoot && !real.startsWith(realRoot + sep)) return null;
105
+ } catch {
106
+ return null;
107
+ }
108
+ return file;
109
+ }
110
+ function isFile(file) {
111
+ try {
112
+ return statSync(file).isFile();
113
+ } catch {
114
+ return false;
115
+ }
116
+ }
117
+ function sendFile(req, res, file) {
118
+ if (!file || !isFile(file)) {
119
+ res.writeHead(404, { "content-type": "text/plain; charset=utf-8" }).end("Not found");
120
+ return;
121
+ }
122
+ res.writeHead(200, {
123
+ "content-type": mimeOf(file),
124
+ "cache-control": "no-store",
125
+ "x-content-type-options": "nosniff"
126
+ });
127
+ if (req.method === "HEAD") res.end();
128
+ else createReadStream(file).on("error", () => res.destroy()).pipe(res);
129
+ }
130
+ function sendText(res, status, body, type = "text/plain; charset=utf-8") {
131
+ res.writeHead(status, {
132
+ "content-type": type,
133
+ "cache-control": "no-store",
134
+ "x-content-type-options": "nosniff"
135
+ }).end(body);
136
+ }
137
+ function sendJson(res, status, body) {
138
+ sendText(res, status, JSON.stringify(body), "application/json; charset=utf-8");
139
+ }
140
+ function startLocalServer(opts) {
141
+ const host = opts.host ?? "127.0.0.1";
142
+ const mounts = Object.entries(opts.mounts).sort((a, b) => b[0].length - a[0].length);
143
+ const server = createServer((req, res) => {
144
+ (async () => {
145
+ const url = new URL(req.url ?? "/", "http://127.0.0.1");
146
+ if (url.pathname === "/" && opts.index) url.pathname = opts.index;
147
+ if (url.pathname === "/favicon.ico" && !opts.fallbackRoot) return void res.writeHead(204).end();
148
+ for (const route of opts.routes ?? []) if (await route(req, res, url)) return;
149
+ if (req.method !== "GET" && req.method !== "HEAD") return sendText(res, 405, "Method not allowed");
150
+ const raw = (req.url ?? "/").split("?")[0].split("#")[0];
151
+ const rawPath = raw === "/" && opts.index ? opts.index : raw;
152
+ for (const [prefix, root] of mounts) if (rawPath.startsWith(prefix)) return sendFile(req, res, resolveUnder(root, rawPath.slice(prefix.length)));
153
+ if (opts.fallbackRoot) {
154
+ const file = resolveUnder(opts.fallbackRoot, rawPath.replace(/^\//, "") || "index.html");
155
+ if (file && isFile(file)) return sendFile(req, res, file);
156
+ if (!extname(rawPath)) return sendFile(req, res, resolveUnder(opts.fallbackRoot, "index.html"));
157
+ }
158
+ sendText(res, 404, "Not found");
159
+ })().catch((err) => {
160
+ if (!res.headersSent) sendText(res, 500, err.message);
161
+ else res.destroy();
162
+ });
163
+ });
164
+ server.on("clientError", (_err, socket) => socket.destroy());
165
+ return new Promise((resolvePromise, reject) => {
166
+ server.once("error", reject);
167
+ server.listen(opts.port ?? 0, host, () => {
168
+ server.off("error", reject);
169
+ const port = server.address().port;
170
+ resolvePromise({
171
+ server,
172
+ port,
173
+ url: `http://${host}:${port}`,
174
+ close: () => new Promise((r) => {
175
+ server.closeAllConnections?.();
176
+ server.close(() => r());
177
+ })
178
+ });
179
+ });
180
+ });
181
+ }
182
+ function readBody(req, limit = 52428800) {
183
+ return new Promise((resolvePromise, reject) => {
184
+ const chunks = [];
185
+ let size = 0;
186
+ req.on("data", (c) => {
187
+ size += c.length;
188
+ if (size > limit) {
189
+ reject(/* @__PURE__ */ new Error("Request body too large"));
190
+ req.destroy();
191
+ } else chunks.push(c);
192
+ });
193
+ req.on("end", () => resolvePromise(Buffer.concat(chunks)));
194
+ req.on("error", reject);
195
+ });
196
+ }
197
+ // agent/render/models.ts
198
+ var models_exports = /* @__PURE__ */ __exportAll({ listCachedModels: () => listCachedModels });
199
+ var SEGMENT = /^[\w@=+,-][\w.@=+,-]*$/;
200
+ function parseModelPath(rawPath) {
201
+ if (!rawPath.startsWith("/__models/")) return null;
202
+ let segs;
203
+ try {
204
+ segs = rawPath.slice(10).split("/").map((s) => decodeURIComponent(s));
205
+ } catch {
206
+ return null;
207
+ }
208
+ if (segs.some((s) => !SEGMENT.test(s) || s === "." || s === "..")) return null;
209
+ const i = segs.indexOf("resolve");
210
+ if (i < 1 || i > 3 || segs.length < i + 3) return null;
211
+ return {
212
+ repo: segs.slice(0, i).join("/"),
213
+ rev: segs[i + 1],
214
+ file: segs.slice(i + 2).join("/")
215
+ };
216
+ }
217
+ function cacheFileOf(root, ref) {
218
+ return join(root, ...ref.repo.split("/"), ref.rev, ...ref.file.split("/"));
219
+ }
220
+ var CONTENT_TYPE = {
221
+ json: "application/json; charset=utf-8",
222
+ txt: "text/plain; charset=utf-8",
223
+ onnx: "application/octet-stream"
224
+ };
225
+ var typeOf = (file) => CONTENT_TYPE[file.split(".").pop() ?? ""] ?? "application/octet-stream";
226
+ function serveCached(req, res, file, name) {
227
+ const size = statSync(file).size;
228
+ res.writeHead(200, {
229
+ "content-type": typeOf(name),
230
+ "content-length": String(size),
231
+ "cache-control": "no-store",
232
+ "x-content-type-options": "nosniff"
233
+ });
234
+ if (req.method === "HEAD") return void res.end();
235
+ createReadStream(file).on("error", () => res.destroy()).pipe(res);
236
+ }
237
+ var write = (stream, chunk) => new Promise((resolve, reject) => {
238
+ if (stream.write(chunk, (err) => err ? reject(err) : void 0)) resolve();
239
+ else stream.once("drain", () => resolve());
240
+ });
241
+ var close = (ws) => new Promise((resolve, reject) => ws.end((err) => err ? reject(err) : resolve()));
242
+ function modelsRoute(opts = {}) {
243
+ const root = opts.root ?? modelsDir;
244
+ const fetchImpl = opts.fetchImpl ?? ((url, init) => fetch(url, init));
245
+ const upstream = opts.upstream ?? "https://huggingface.co/";
246
+ const log = opts.log ?? (() => void 0);
247
+ const inflight = /* @__PURE__ */ new Map();
248
+ return async (req, res, url) => {
249
+ if (!url.pathname.startsWith("/__models/")) return false;
250
+ const ref = parseModelPath((req.url ?? "").split("?")[0]);
251
+ if (!ref) return sendText(res, 404, "Not a model file path"), true;
252
+ if (req.method !== "GET" && req.method !== "HEAD") return sendText(res, 405, "Method not allowed"), true;
253
+ const file = cacheFileOf(root(), ref);
254
+ const pending = inflight.get(file);
255
+ if (pending) await pending.catch(() => void 0);
256
+ if (existsSync(file)) return serveCached(req, res, file, ref.file), true;
257
+ const remote = `${upstream.replace(/\/?$/, "/")}${ref.repo}/resolve/${encodeURIComponent(ref.rev)}/${ref.file.split("/").map(encodeURIComponent).join("/")}`;
258
+ if (req.method === "HEAD") {
259
+ const r = await fetchImpl(remote, {
260
+ method: "HEAD",
261
+ redirect: "follow"
262
+ }).catch(() => null);
263
+ res.writeHead(r?.status ?? 502, {
264
+ "content-type": typeOf(ref.file),
265
+ ...r?.headers.get("content-length") ? { "content-length": r.headers.get("content-length") } : {}
266
+ }).end();
267
+ return true;
268
+ }
269
+ let done;
270
+ let failed;
271
+ const job = new Promise((a, b) => (done = a, failed = b));
272
+ job.catch(() => void 0);
273
+ inflight.set(file, job);
274
+ const tmp = `${file}.${process.pid}.${Date.now().toString(36)}.part`;
275
+ let ws = null;
276
+ try {
277
+ let up;
278
+ try {
279
+ up = await fetchImpl(remote, { redirect: "follow" });
280
+ } catch (e) {
281
+ log(`[models] ${ref.repo}/${ref.file}: download failed (${e.message}). Check the network (the model is downloaded once from huggingface.co).`);
282
+ sendText(res, 502, `Model download failed: ${e.message}`);
283
+ failed(e);
284
+ return true;
285
+ }
286
+ if (!up.ok || !up.body) {
287
+ sendText(res, up.status === 200 ? 502 : up.status, up.status === 404 ? "Not found" : `Upstream HTTP ${up.status}`);
288
+ await up.body?.cancel().catch(() => void 0);
289
+ done();
290
+ return true;
291
+ }
292
+ const total = Number(up.headers.get("content-length")) || 0;
293
+ mkdirSync(dirname(file), { recursive: true });
294
+ ws = createWriteStream(tmp);
295
+ res.writeHead(200, {
296
+ "content-type": typeOf(ref.file),
297
+ ...total ? { "content-length": String(total) } : {},
298
+ "cache-control": "no-store",
299
+ "x-content-type-options": "nosniff"
300
+ });
301
+ const big = total > 2097152;
302
+ if (big) log(`Downloading ${ref.repo} ${ref.file} (${Math.round(total / 1048576)} MB, once — cached in ${root()})`);
303
+ let received = 0;
304
+ let lastPct = 0;
305
+ let lastAt = Date.now();
306
+ const reader = up.body.getReader();
307
+ for (;;) {
308
+ const { value, done: end } = await reader.read();
309
+ if (end) break;
310
+ received += value.byteLength;
311
+ await write(ws, value);
312
+ if (!res.destroyed) await write(res, value).catch(() => void 0);
313
+ if (big) {
314
+ const pct = Math.floor(received / total * 100);
315
+ if (pct >= lastPct + 10 || Date.now() - lastAt > 3e3 && pct > lastPct) {
316
+ lastPct = pct;
317
+ lastAt = Date.now();
318
+ log(`Downloading ${ref.repo} ${ref.file} (${pct} %)`);
319
+ }
320
+ }
321
+ }
322
+ await close(ws);
323
+ ws = null;
324
+ if (total && received !== total) throw new Error(`incomplete download (${received} of ${total} bytes)`);
325
+ renameSync(tmp, file);
326
+ res.end();
327
+ done();
328
+ } catch (e) {
329
+ if (ws) ws.destroy();
330
+ rmSync(tmp, { force: true });
331
+ log(`[models] ${ref.repo}/${ref.file}: ${e.message}`);
332
+ if (!res.headersSent) sendText(res, 502, e.message);
333
+ else res.destroy();
334
+ failed(e);
335
+ } finally {
336
+ inflight.delete(file);
337
+ }
338
+ return true;
339
+ };
340
+ }
341
+ function modelCacheDir(def, root = modelsDir()) {
342
+ return join(root, ...def.repo.split("/"));
343
+ }
344
+ function dirSize(dir) {
345
+ let bytes = 0;
346
+ let files = 0;
347
+ const walk = (d) => {
348
+ let entries;
349
+ try {
350
+ entries = readdirSync(d, { withFileTypes: true });
351
+ } catch {
352
+ return;
353
+ }
354
+ for (const e of entries) {
355
+ const p = join(d, e.name);
356
+ if (e.isDirectory()) walk(p);
357
+ else if (e.isFile() && !e.name.endsWith(".part")) {
358
+ bytes += statSync(p).size;
359
+ files++;
360
+ }
361
+ }
362
+ };
363
+ walk(dir);
364
+ return {
365
+ bytes,
366
+ files
367
+ };
368
+ }
369
+ function listCachedModels(root = modelsDir()) {
370
+ return MODELS.map((m) => {
371
+ const dir = modelCacheDir(m, root);
372
+ const s = dirSize(dir);
373
+ return {
374
+ id: m.id,
375
+ task: m.task,
376
+ repo: m.repo,
377
+ sizeMb: m.sizeMb,
378
+ license: m.license,
379
+ description: m.description,
380
+ cached: s.files > 0 && existsSync(dir),
381
+ cachedMb: Math.round(s.bytes / 1048576 * 10) / 10,
382
+ files: s.files,
383
+ dir
384
+ };
385
+ });
386
+ }
387
+ export { packageRoot as _, mimeOf as a, templatesDir as b, sendJson as c, distRoot as d, engineBuilt as f, modelsDir as g, libraryDir as h, models_exports as i, sendText as l, isBundled as m, modelCacheDir as n, readBody as o, engineDir as p, modelsRoute as r, resolveUnder as s, listCachedModels as t, startLocalServer as u, readVersionInfo as v, studioDir as y };
@@ -0,0 +1,130 @@
1
+ import { createRequire as __apRequire } from "node:module";
2
+ import { fileURLToPath as __apPath } from "node:url";
3
+ import { dirname as __apDirname } from "node:path";
4
+ __apRequire(import.meta.url);
5
+ const __filename = __apPath(import.meta.url);
6
+ __apDirname(__filename);
7
+ import { format } from "node:util";
8
+ // agent/output.ts
9
+ var CliError = class extends Error {
10
+ code;
11
+ hint;
12
+ exitCode;
13
+ details;
14
+ constructor(code, message, hint, exitCode = 1, details) {
15
+ super(message);
16
+ this.code = code;
17
+ this.hint = hint;
18
+ this.exitCode = exitCode;
19
+ this.details = details;
20
+ }
21
+ };
22
+ function routeConsoleToStderr(target = console, write = (t) => void process.stderr.write(t)) {
23
+ const toStderr = (...args) => write(`${format(...args)}\n`);
24
+ target.log = toStderr;
25
+ target.info = toStderr;
26
+ target.debug = toStderr;
27
+ }
28
+ function createIo(json) {
29
+ return {
30
+ json,
31
+ out: (text) => process.stdout.write(text.endsWith("\n") ? text : text + "\n"),
32
+ err: (text) => process.stderr.write(text.endsWith("\n") ? text : text + "\n")
33
+ };
34
+ }
35
+ var TOOL_COMMANDS = {
36
+ project_info: "agentphoto info",
37
+ project_create: "agentphoto new <dir>",
38
+ doc_get: "agentphoto doc get",
39
+ doc_summary: "agentphoto doc summary",
40
+ doc_apply: "agentphoto doc apply",
41
+ doc_patch: "agentphoto doc patch",
42
+ doc_validate: "agentphoto doc validate",
43
+ layer_list: "agentphoto layer list",
44
+ layer_add: "agentphoto layer add",
45
+ layer_update: "agentphoto layer update",
46
+ layer_remove: "agentphoto layer remove",
47
+ layer_move: "agentphoto layer move",
48
+ filter_add: "agentphoto filter add",
49
+ mask_set: "agentphoto mask set",
50
+ remove_background: "agentphoto remove-bg",
51
+ mask_generate: "agentphoto mask generate",
52
+ image_analyze: "agentphoto analyze",
53
+ render_preview: "agentphoto render",
54
+ catalog_get: "agentphoto catalog",
55
+ templates_list: "agentphoto templates list",
56
+ library_list: "agentphoto assets library",
57
+ assets_list: "agentphoto assets list",
58
+ assets_add: "agentphoto assets add",
59
+ assets_remove: "agentphoto assets remove"
60
+ };
61
+ var TOOL_NAMES = Object.keys(TOOL_COMMANDS).join("|");
62
+ var TOOL_RE = new RegExp(`\\b(${TOOL_NAMES})\\b`, "g");
63
+ var TOOLS_THEN_CLI = new RegExp(`\\b(?:${TOOL_NAMES})(?:\\s*[/+,]\\s*(?:${TOOL_NAMES}))*\\s*(?:\\(CLI:\\s*([^)]*)\\)|,\\s*CLI:\\s*([^)]*)|/\\s*(\`agentphoto[^\`]*\`))`, "g");
64
+ function cliHint(text) {
65
+ if (!TOOL_RE.test(text)) return text;
66
+ TOOL_RE.lastIndex = 0;
67
+ return text.replace(TOOLS_THEN_CLI, (_m, a, b, c) => {
68
+ const cli = (a ?? b ?? c ?? "").trim();
69
+ return cli.startsWith("`") ? cli : `\`${cli}\``;
70
+ }).replace(TOOL_RE, (name) => `\`${TOOL_COMMANDS[name]}\``).replace(/``+/g, "`");
71
+ }
72
+ function withCliHints(data) {
73
+ if (Array.isArray(data)) return data.map((v) => withCliHints(v));
74
+ if (!data || typeof data !== "object") return data;
75
+ const out = {};
76
+ for (const [k, v] of Object.entries(data)) out[k] = k === "hint" && typeof v === "string" ? cliHint(v) : withCliHints(v);
77
+ return out;
78
+ }
79
+ function printResult(io, data, human, opts = {}) {
80
+ const shown = opts.raw ? data : withCliHints(data);
81
+ if (io.json) io.out(JSON.stringify({
82
+ ok: true,
83
+ data: shown
84
+ }));
85
+ else io.out(human());
86
+ }
87
+ var OPS_HINTS = {
88
+ notFound: "Check the id or path (`agentphoto layer list`, `agentphoto doc summary`, `agentphoto assets list` print them).",
89
+ validation: "Fix the document and retry: `agentphoto doc validate` lists every issue with its JSON path and a hint; `agentphoto catalog <section> <id>` documents the parameters.",
90
+ conflict: "Something with the same id already exists — list it first (`agentphoto layer list`), then update instead of adding, or pick another id.",
91
+ invalid: "Check the arguments with `agentphoto help <command>`.",
92
+ unavailable: "This needs the image engine: install Google Chrome (or `npx playwright install chromium`) and run `agentphoto doctor`.",
93
+ io: "A file could not be read or written: check the path and permissions of the project folder (--project <dir>)."
94
+ };
95
+ function knownError(error) {
96
+ if (!(error instanceof Error)) return null;
97
+ if (error.name === "OpsError") {
98
+ const e = error;
99
+ const code = e.code ?? "invalid";
100
+ return new CliError(code, error.message, e.hint || OPS_HINTS[code] || OPS_HINTS.invalid, code === "validation" || code === "invalid" ? 2 : 1, e.details);
101
+ }
102
+ if (error.name === "PathError") return new CliError("invalid-path", error.message, error.hint || "Paths look like \"canvas.background\", \"layers#title.size\" or \"layers#photo.filters[0].amount\" (`agentphoto doc summary` lists the ids).", 2);
103
+ if (error.name === "FsError") {
104
+ const code = error.code;
105
+ if (code === "notFound") return new CliError("notFound", error.message, "Is --project pointing at an AgentPhoto project folder (agentphoto.json + photo.json)? Create one with `agentphoto new <dir>`.");
106
+ if (code === "invalidPath") return new CliError("invalid-path", error.message, "Project paths are relative to the project folder and never contain \"..\" or an absolute prefix.", 2);
107
+ return new CliError("io", error.message, OPS_HINTS.io);
108
+ }
109
+ return null;
110
+ }
111
+ function toCliError(error) {
112
+ return error instanceof CliError ? error : knownError(error) ?? new CliError("internal", error instanceof Error ? error.message : String(error), "Unexpected error. Retry once; if it persists, report it with the command and this output (`agentphoto doctor` checks the setup).");
113
+ }
114
+ function printError(io, error) {
115
+ const e = toCliError(error);
116
+ const hint = e.hint ? cliHint(e.hint) : void 0;
117
+ const details = e.details !== void 0 ? { details: withCliHints(e.details) } : {};
118
+ if (io.json) io.out(JSON.stringify({
119
+ ok: false,
120
+ error: {
121
+ code: e.code,
122
+ message: e.message,
123
+ ...hint ? { hint } : {},
124
+ ...details
125
+ }
126
+ }));
127
+ else io.err(`Error: ${e.message}${hint ? `\nHint: ${hint}` : ""}`);
128
+ return e.exitCode;
129
+ }
130
+ export { routeConsoleToStderr as a, printResult as i, createIo as n, toCliError as o, printError as r, CliError as t };
@@ -0,0 +1,71 @@
1
+ import { createRequire as __apRequire } from "node:module";
2
+ import { fileURLToPath as __apPath } from "node:url";
3
+ import { dirname as __apDirname } from "node:path";
4
+ __apRequire(import.meta.url);
5
+ const __filename = __apPath(import.meta.url);
6
+ __apDirname(__filename);
7
+ // package.json
8
+ var name = "@fleox/agentphoto";
9
+ var version = "0.1.0";
10
+ var package_default = {
11
+ name,
12
+ version,
13
+ type: "module",
14
+ description: "The photo studio your AI agent can run: retouch, layers, masks, background removal, subject cutout, filters and looks as a non-destructive JSON document, previewed headless and exported as PNG / JPEG / WebP. With a Studio to finish by hand. No server, no account.",
15
+ license: "SEE LICENSE IN LICENSE",
16
+ engines: { "node": ">=22" },
17
+ bin: { "agentphoto": "dist/agent/agentphoto.mjs" },
18
+ files: [
19
+ "dist/agent",
20
+ "dist/engine",
21
+ "dist/studio",
22
+ "library",
23
+ "templates",
24
+ "plugin",
25
+ "changelog.json",
26
+ "README.md",
27
+ "LICENSE"
28
+ ],
29
+ scripts: {
30
+ "dev": "vite",
31
+ "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.agent.json",
32
+ "test": "vitest run",
33
+ "test:watch": "vitest",
34
+ "build:engine": "vite build --config vite.engine.config.ts",
35
+ "build:studio": "STUDIO_NO_ORT=1 vite build",
36
+ "build:studio:standalone": "vite build",
37
+ "build:agent": "vite build --config vite.agent.config.ts",
38
+ "build": "npm run build:engine && npm run build:studio && npm run build:agent && node scripts/write-version.mjs",
39
+ "check:skills": "node scripts/check-skills.mjs",
40
+ "docs:cli": "node scripts/build-cli-docs.mjs",
41
+ "check:docs": "node scripts/build-cli-docs.mjs --check",
42
+ "hermes:build": "node scripts/build-hermes.mjs",
43
+ "check:hermes": "node scripts/build-hermes.mjs --check && python3 -m unittest discover -s hermes/tests",
44
+ "version": "node scripts/sync-version.mjs && npm run build && node scripts/build-hermes.mjs && node scripts/build-cli-docs.mjs && git add -A plugin hermes .claude-plugin README.md docs",
45
+ "prepublishOnly": "npm run typecheck && npm test && npm run build && npm run check:skills"
46
+ },
47
+ devDependencies: {
48
+ "@huggingface/transformers": "^4.3.2",
49
+ "@types/node": "^26.6.6",
50
+ "@types/react": "^19.3.0",
51
+ "@types/react-dom": "^19.3.0",
52
+ "@vitejs/plugin-react": "^6.3.0",
53
+ "autoprefixer": "^10.7.0",
54
+ "clsx": "^2.1.1",
55
+ "happy-dom": "^21.0.4",
56
+ "lucide-react": "^1.78.0",
57
+ "postcss": "^8.5.33",
58
+ "react": "^19.3.1",
59
+ "react-dom": "^19.3.1",
60
+ "tailwindcss": "^3.4.19",
61
+ "typescript": "^7.0.2",
62
+ "vite": "^8.3.8",
63
+ "vitest": "^5.1.1"
64
+ },
65
+ repository: {
66
+ "type": "git",
67
+ "url": "git+https://github.com/fleox/agentphoto.git"
68
+ },
69
+ publishConfig: { "access": "public" }
70
+ };
71
+ export { version as n, package_default as t };