@shepai/cli 1.3.1 → 1.5.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 (229) hide show
  1. package/dist/src/infrastructure/services/port.service.d.ts +20 -0
  2. package/dist/src/infrastructure/services/port.service.d.ts.map +1 -0
  3. package/dist/src/infrastructure/services/port.service.js +47 -0
  4. package/dist/src/infrastructure/services/web-server.service.d.ts +43 -0
  5. package/dist/src/infrastructure/services/web-server.service.d.ts.map +1 -0
  6. package/dist/src/infrastructure/services/web-server.service.js +95 -0
  7. package/dist/src/presentation/cli/commands/settings/index.d.ts +15 -0
  8. package/dist/src/presentation/cli/commands/settings/index.d.ts.map +1 -0
  9. package/dist/src/presentation/cli/commands/settings/index.js +21 -0
  10. package/dist/src/presentation/cli/commands/settings/init.command.d.ts +15 -0
  11. package/dist/src/presentation/cli/commands/settings/init.command.d.ts.map +1 -0
  12. package/dist/src/presentation/cli/commands/settings/init.command.js +71 -0
  13. package/dist/src/presentation/cli/commands/settings/show.command.d.ts +16 -0
  14. package/dist/src/presentation/cli/commands/settings/show.command.d.ts.map +1 -0
  15. package/dist/src/presentation/cli/commands/settings/show.command.js +66 -0
  16. package/dist/src/presentation/cli/commands/ui.command.d.ts +22 -0
  17. package/dist/src/presentation/cli/commands/ui.command.d.ts.map +1 -0
  18. package/dist/src/presentation/cli/commands/ui.command.js +74 -0
  19. package/dist/src/presentation/cli/index.d.ts +1 -0
  20. package/dist/src/presentation/cli/index.d.ts.map +1 -1
  21. package/dist/src/presentation/cli/index.js +7 -2
  22. package/dist/src/presentation/cli/ui/index.d.ts +2 -0
  23. package/dist/src/presentation/cli/ui/index.d.ts.map +1 -1
  24. package/dist/src/presentation/cli/ui/index.js +2 -0
  25. package/dist/src/presentation/cli/ui/output.d.ts +33 -0
  26. package/dist/src/presentation/cli/ui/output.d.ts.map +1 -0
  27. package/dist/src/presentation/cli/ui/output.js +49 -0
  28. package/dist/src/presentation/cli/ui/tables.d.ts +19 -0
  29. package/dist/src/presentation/cli/ui/tables.d.ts.map +1 -0
  30. package/dist/src/presentation/cli/ui/tables.js +32 -0
  31. package/dist/tsconfig.build.tsbuildinfo +1 -1
  32. package/package.json +7 -2
  33. package/web/.next/BUILD_ID +1 -0
  34. package/web/.next/app-path-routes-manifest.json +6 -0
  35. package/web/.next/build/chunks/[root-of-the-server]__0f2e5b60._.js +207 -0
  36. package/web/.next/build/chunks/[root-of-the-server]__0f2e5b60._.js.map +8 -0
  37. package/web/.next/build/chunks/[root-of-the-server]__52e8dcc7._.js +500 -0
  38. package/web/.next/build/chunks/[root-of-the-server]__52e8dcc7._.js.map +11 -0
  39. package/web/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_4ffac355._.js +13 -0
  40. package/web/.next/build/chunks/[turbopack-node]_transforms_postcss_ts_4ffac355._.js.map +5 -0
  41. package/web/.next/build/chunks/[turbopack]_runtime.js +795 -0
  42. package/web/.next/build/chunks/[turbopack]_runtime.js.map +10 -0
  43. package/web/.next/build/chunks/node_modules__pnpm_806d01c0._.js +6758 -0
  44. package/web/.next/build/chunks/node_modules__pnpm_806d01c0._.js.map +47 -0
  45. package/web/.next/build/package.json +1 -0
  46. package/web/.next/build/postcss.js +6 -0
  47. package/web/.next/build/postcss.js.map +5 -0
  48. package/web/.next/build-manifest.json +20 -0
  49. package/web/.next/cache/.previewinfo +1 -0
  50. package/web/.next/cache/.rscinfo +1 -0
  51. package/web/.next/cache/.tsbuildinfo +1 -0
  52. package/web/.next/cache/config.json +7 -0
  53. package/web/.next/diagnostics/build-diagnostics.json +6 -0
  54. package/web/.next/diagnostics/framework.json +1 -0
  55. package/web/.next/export-marker.json +6 -0
  56. package/web/.next/fallback-build-manifest.json +12 -0
  57. package/web/.next/images-manifest.json +67 -0
  58. package/web/.next/next-minimal-server.js.nft.json +1 -0
  59. package/web/.next/next-server.js.nft.json +1 -0
  60. package/web/.next/package.json +1 -0
  61. package/web/.next/prerender-manifest.json +109 -0
  62. package/web/.next/required-server-files.js +320 -0
  63. package/web/.next/required-server-files.json +320 -0
  64. package/web/.next/routes-manifest.json +68 -0
  65. package/web/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
  66. package/web/.next/server/app/_global-error/page/build-manifest.json +17 -0
  67. package/web/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
  68. package/web/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
  69. package/web/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
  70. package/web/.next/server/app/_global-error/page.js +10 -0
  71. package/web/.next/server/app/_global-error/page.js.map +5 -0
  72. package/web/.next/server/app/_global-error/page.js.nft.json +1 -0
  73. package/web/.next/server/app/_global-error/page_client-reference-manifest.js +2 -0
  74. package/web/.next/server/app/_global-error.html +2 -0
  75. package/web/.next/server/app/_global-error.meta +15 -0
  76. package/web/.next/server/app/_global-error.rsc +12 -0
  77. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
  78. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +12 -0
  79. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +5 -0
  80. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +4 -0
  81. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  82. package/web/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
  83. package/web/.next/server/app/_not-found/page/build-manifest.json +17 -0
  84. package/web/.next/server/app/_not-found/page/next-font-manifest.json +6 -0
  85. package/web/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
  86. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
  87. package/web/.next/server/app/_not-found/page.js +13 -0
  88. package/web/.next/server/app/_not-found/page.js.map +5 -0
  89. package/web/.next/server/app/_not-found/page.js.nft.json +1 -0
  90. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +2 -0
  91. package/web/.next/server/app/_not-found.html +11 -0
  92. package/web/.next/server/app/_not-found.meta +16 -0
  93. package/web/.next/server/app/_not-found.rsc +13 -0
  94. package/web/.next/server/app/_not-found.segments/_full.segment.rsc +13 -0
  95. package/web/.next/server/app/_not-found.segments/_head.segment.rsc +5 -0
  96. package/web/.next/server/app/_not-found.segments/_index.segment.rsc +5 -0
  97. package/web/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +5 -0
  98. package/web/.next/server/app/_not-found.segments/_not-found.segment.rsc +4 -0
  99. package/web/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -0
  100. package/web/.next/server/app/index.html +11 -0
  101. package/web/.next/server/app/index.meta +14 -0
  102. package/web/.next/server/app/index.rsc +14 -0
  103. package/web/.next/server/app/index.segments/__PAGE__.segment.rsc +6 -0
  104. package/web/.next/server/app/index.segments/_full.segment.rsc +14 -0
  105. package/web/.next/server/app/index.segments/_head.segment.rsc +5 -0
  106. package/web/.next/server/app/index.segments/_index.segment.rsc +5 -0
  107. package/web/.next/server/app/index.segments/_tree.segment.rsc +2 -0
  108. package/web/.next/server/app/page/app-paths-manifest.json +3 -0
  109. package/web/.next/server/app/page/build-manifest.json +17 -0
  110. package/web/.next/server/app/page/next-font-manifest.json +6 -0
  111. package/web/.next/server/app/page/react-loadable-manifest.json +1 -0
  112. package/web/.next/server/app/page/server-reference-manifest.json +4 -0
  113. package/web/.next/server/app/page.js +16 -0
  114. package/web/.next/server/app/page.js.map +5 -0
  115. package/web/.next/server/app/page.js.nft.json +1 -0
  116. package/web/.next/server/app/page_client-reference-manifest.js +2 -0
  117. package/web/.next/server/app/version/page/app-paths-manifest.json +3 -0
  118. package/web/.next/server/app/version/page/build-manifest.json +17 -0
  119. package/web/.next/server/app/version/page/next-font-manifest.json +6 -0
  120. package/web/.next/server/app/version/page/react-loadable-manifest.json +1 -0
  121. package/web/.next/server/app/version/page/server-reference-manifest.json +4 -0
  122. package/web/.next/server/app/version/page.js +15 -0
  123. package/web/.next/server/app/version/page.js.map +5 -0
  124. package/web/.next/server/app/version/page.js.nft.json +1 -0
  125. package/web/.next/server/app/version/page_client-reference-manifest.js +2 -0
  126. package/web/.next/server/app/version.html +11 -0
  127. package/web/.next/server/app/version.meta +15 -0
  128. package/web/.next/server/app/version.rsc +17 -0
  129. package/web/.next/server/app/version.segments/_full.segment.rsc +17 -0
  130. package/web/.next/server/app/version.segments/_head.segment.rsc +5 -0
  131. package/web/.next/server/app/version.segments/_index.segment.rsc +5 -0
  132. package/web/.next/server/app/version.segments/_tree.segment.rsc +2 -0
  133. package/web/.next/server/app/version.segments/version/__PAGE__.segment.rsc +9 -0
  134. package/web/.next/server/app/version.segments/version.segment.rsc +4 -0
  135. package/web/.next/server/app-paths-manifest.json +6 -0
  136. package/web/.next/server/chunks/ssr/403f9_next_dist_2ff794b1._.js +6 -0
  137. package/web/.next/server/chunks/ssr/403f9_next_dist_2ff794b1._.js.map +1 -0
  138. package/web/.next/server/chunks/ssr/403f9_next_dist_6c821c12._.js +4 -0
  139. package/web/.next/server/chunks/ssr/403f9_next_dist_6c821c12._.js.map +1 -0
  140. package/web/.next/server/chunks/ssr/403f9_next_dist_client_components_44deecdf._.js +3 -0
  141. package/web/.next/server/chunks/ssr/403f9_next_dist_client_components_44deecdf._.js.map +1 -0
  142. package/web/.next/server/chunks/ssr/403f9_next_dist_client_components_builtin_global-error_5fefc4d7.js +3 -0
  143. package/web/.next/server/chunks/ssr/403f9_next_dist_client_components_builtin_global-error_5fefc4d7.js.map +1 -0
  144. package/web/.next/server/chunks/ssr/403f9_next_dist_client_components_builtin_unauthorized_a2906ebd.js +3 -0
  145. package/web/.next/server/chunks/ssr/403f9_next_dist_client_components_builtin_unauthorized_a2906ebd.js.map +1 -0
  146. package/web/.next/server/chunks/ssr/403f9_next_dist_esm_build_templates_app-page_dbf21e04.js +4 -0
  147. package/web/.next/server/chunks/ssr/403f9_next_dist_esm_build_templates_app-page_dbf21e04.js.map +1 -0
  148. package/web/.next/server/chunks/ssr/[root-of-the-server]__01b8cb62._.js +3 -0
  149. package/web/.next/server/chunks/ssr/[root-of-the-server]__01b8cb62._.js.map +1 -0
  150. package/web/.next/server/chunks/ssr/[root-of-the-server]__205a2636._.js +3 -0
  151. package/web/.next/server/chunks/ssr/[root-of-the-server]__205a2636._.js.map +1 -0
  152. package/web/.next/server/chunks/ssr/[root-of-the-server]__5aff3b12._.js +3 -0
  153. package/web/.next/server/chunks/ssr/[root-of-the-server]__5aff3b12._.js.map +1 -0
  154. package/web/.next/server/chunks/ssr/[root-of-the-server]__7b98fb96._.js +3 -0
  155. package/web/.next/server/chunks/ssr/[root-of-the-server]__7b98fb96._.js.map +1 -0
  156. package/web/.next/server/chunks/ssr/[root-of-the-server]__8297ff30._.js +3 -0
  157. package/web/.next/server/chunks/ssr/[root-of-the-server]__8297ff30._.js.map +1 -0
  158. package/web/.next/server/chunks/ssr/[root-of-the-server]__c3694f82._.js +10 -0
  159. package/web/.next/server/chunks/ssr/[root-of-the-server]__c3694f82._.js.map +1 -0
  160. package/web/.next/server/chunks/ssr/[root-of-the-server]__d6257aad._.js +3 -0
  161. package/web/.next/server/chunks/ssr/[root-of-the-server]__d6257aad._.js.map +1 -0
  162. package/web/.next/server/chunks/ssr/[root-of-the-server]__d81095d0._.js +3 -0
  163. package/web/.next/server/chunks/ssr/[root-of-the-server]__d81095d0._.js.map +1 -0
  164. package/web/.next/server/chunks/ssr/[turbopack]_runtime.js +795 -0
  165. package/web/.next/server/chunks/ssr/[turbopack]_runtime.js.map +10 -0
  166. package/web/.next/server/chunks/ssr/_0f02ab66._.js +3 -0
  167. package/web/.next/server/chunks/ssr/_0f02ab66._.js.map +1 -0
  168. package/web/.next/server/chunks/ssr/_884ddade._.js +4 -0
  169. package/web/.next/server/chunks/ssr/_884ddade._.js.map +1 -0
  170. package/web/.next/server/chunks/ssr/_90bc0c33._.js +3 -0
  171. package/web/.next/server/chunks/ssr/_90bc0c33._.js.map +1 -0
  172. package/web/.next/server/chunks/ssr/_c536147b._.js +3 -0
  173. package/web/.next/server/chunks/ssr/_c536147b._.js.map +1 -0
  174. package/web/.next/server/chunks/ssr/_c5d377cc._.js +4 -0
  175. package/web/.next/server/chunks/ssr/_c5d377cc._.js.map +1 -0
  176. package/web/.next/server/chunks/ssr/_e519e92f._.js +3 -0
  177. package/web/.next/server/chunks/ssr/_e519e92f._.js.map +1 -0
  178. package/web/.next/server/chunks/ssr/b1a17_presentation_web__next-internal_server_app__global-error_page_actions_4fe4770f.js +3 -0
  179. package/web/.next/server/chunks/ssr/b1a17_presentation_web__next-internal_server_app__global-error_page_actions_4fe4770f.js.map +1 -0
  180. package/web/.next/server/chunks/ssr/node_modules__pnpm_03635e2b._.js +4 -0
  181. package/web/.next/server/chunks/ssr/node_modules__pnpm_03635e2b._.js.map +1 -0
  182. package/web/.next/server/chunks/ssr/node_modules__pnpm_522e4103._.js +3 -0
  183. package/web/.next/server/chunks/ssr/node_modules__pnpm_522e4103._.js.map +1 -0
  184. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app__not-found_page_actions_a836bb2a.js +3 -0
  185. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app__not-found_page_actions_a836bb2a.js.map +1 -0
  186. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_page_actions_a4e3cb6f.js +3 -0
  187. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_page_actions_a4e3cb6f.js.map +1 -0
  188. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_version_page_actions_ea925032.js +3 -0
  189. package/web/.next/server/chunks/ssr/src_presentation_web__next-internal_server_app_version_page_actions_ea925032.js.map +1 -0
  190. package/web/.next/server/chunks/ssr/src_presentation_web_app_layout_tsx_aa3a06bd._.js +13 -0
  191. package/web/.next/server/chunks/ssr/src_presentation_web_app_layout_tsx_aa3a06bd._.js.map +1 -0
  192. package/web/.next/server/chunks/ssr/src_presentation_web_app_not-found_tsx_64b86c46._.js +3 -0
  193. package/web/.next/server/chunks/ssr/src_presentation_web_app_not-found_tsx_64b86c46._.js.map +1 -0
  194. package/web/.next/server/chunks/ssr/src_presentation_web_app_version_page_tsx_1bab7370._.js +3 -0
  195. package/web/.next/server/chunks/ssr/src_presentation_web_app_version_page_tsx_1bab7370._.js.map +1 -0
  196. package/web/.next/server/functions-config-manifest.json +4 -0
  197. package/web/.next/server/interception-route-rewrite-manifest.js +1 -0
  198. package/web/.next/server/middleware-build-manifest.js +21 -0
  199. package/web/.next/server/middleware-manifest.json +6 -0
  200. package/web/.next/server/next-font-manifest.js +1 -0
  201. package/web/.next/server/next-font-manifest.json +6 -0
  202. package/web/.next/server/pages/404.html +11 -0
  203. package/web/.next/server/pages/500.html +2 -0
  204. package/web/.next/server/pages-manifest.json +4 -0
  205. package/web/.next/server/server-reference-manifest.js +1 -0
  206. package/web/.next/server/server-reference-manifest.json +5 -0
  207. package/web/.next/static/Z9XCmAv7-DjAFCpNEPaUt/_buildManifest.js +11 -0
  208. package/web/.next/static/Z9XCmAv7-DjAFCpNEPaUt/_clientMiddlewareManifest.json +1 -0
  209. package/web/.next/static/Z9XCmAv7-DjAFCpNEPaUt/_ssgManifest.js +1 -0
  210. package/web/.next/static/chunks/4d6504b9f2ca7e4d.js +1 -0
  211. package/web/.next/static/chunks/51816495a9eb288c.css +1 -0
  212. package/web/.next/static/chunks/52a5aeb86329ee2e.js +1 -0
  213. package/web/.next/static/chunks/70993ebedee7eab0.js +2 -0
  214. package/web/.next/static/chunks/71462f20e38a4262.js +4 -0
  215. package/web/.next/static/chunks/86484b9b4aa9f859.js +1 -0
  216. package/web/.next/static/chunks/a6dad97d9634a72d.js +1 -0
  217. package/web/.next/static/chunks/a6dad97d9634a72d.js.map +1 -0
  218. package/web/.next/static/chunks/ab02eec995295bef.js +1 -0
  219. package/web/.next/static/chunks/b3cc49b27e09fa39.js +1 -0
  220. package/web/.next/static/chunks/f3b4460b1496ef52.js +1 -0
  221. package/web/.next/static/chunks/turbopack-76ba02c6b131eee4.js +4 -0
  222. package/web/.next/trace +1 -0
  223. package/web/.next/trace-build +1 -0
  224. package/web/.next/turbopack +0 -0
  225. package/web/.next/types/link.d.ts +163 -0
  226. package/web/.next/types/routes.d.ts +58 -0
  227. package/web/.next/types/validator.ts +70 -0
  228. package/web/next.config.ts +14 -0
  229. package/web/package.json +38 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shepai/cli",
3
- "version": "1.3.1",
3
+ "version": "1.5.0",
4
4
  "description": "Autonomous AI Native SDLC Platform - Automate the development cycle from idea to deploy",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -31,6 +31,7 @@
31
31
  },
32
32
  "files": [
33
33
  "dist",
34
+ "web",
34
35
  "README.md",
35
36
  "LICENSE"
36
37
  ],
@@ -47,7 +48,8 @@
47
48
  "prebuild": "pnpm generate",
48
49
  "pretest": "pnpm generate",
49
50
  "prelint": "pnpm generate",
50
- "build": "tsc -p tsconfig.build.json",
51
+ "build": "tsc -p tsconfig.build.json && pnpm build:web:prod",
52
+ "build:web:prod": "pnpm build:web && mkdir -p web && cp -r src/presentation/web/.next web/.next && cp src/presentation/web/next.config.ts web/ && cp src/presentation/web/package.json web/",
51
53
  "build:web": "pnpm --filter @shepai/web build",
52
54
  "build:storybook": "storybook build",
53
55
  "test": "vitest run --passWithNoTests",
@@ -101,6 +103,7 @@
101
103
  "@testing-library/react": "^16.3.2",
102
104
  "@testing-library/user-event": "^14.6.1",
103
105
  "@types/better-sqlite3": "^7.6.13",
106
+ "@types/js-yaml": "^4.0.9",
104
107
  "@types/node": "^25.2.0",
105
108
  "@types/react": "^19.2.10",
106
109
  "@types/react-dom": "^19.2.3",
@@ -140,8 +143,10 @@
140
143
  "@typespec-tools/emitter-typescript": "^0.3.0",
141
144
  "better-sqlite3": "^12.6.2",
142
145
  "class-variance-authority": "^0.7.1",
146
+ "cli-table3": "^0.6.5",
143
147
  "clsx": "^2.1.1",
144
148
  "commander": "^14.0.3",
149
+ "js-yaml": "^4.1.1",
145
150
  "lucide-react": "^0.563.0",
146
151
  "next": "^16.1.6",
147
152
  "picocolors": "^1.1.1",
@@ -0,0 +1 @@
1
+ Z9XCmAv7-DjAFCpNEPaUt
@@ -0,0 +1,6 @@
1
+ {
2
+ "/_global-error/page": "/_global-error",
3
+ "/_not-found/page": "/_not-found",
4
+ "/page": "/",
5
+ "/version/page": "/version"
6
+ }
@@ -0,0 +1,207 @@
1
+ module.exports = [
2
+ "[externals]/path [external] (path, cjs)", ((__turbopack_context__, module, exports) => {
3
+
4
+ const mod = __turbopack_context__.x("path", () => require("path"));
5
+
6
+ module.exports = mod;
7
+ }),
8
+ "[externals]/url [external] (url, cjs)", ((__turbopack_context__, module, exports) => {
9
+
10
+ const mod = __turbopack_context__.x("url", () => require("url"));
11
+
12
+ module.exports = mod;
13
+ }),
14
+ "[externals]/fs [external] (fs, cjs)", ((__turbopack_context__, module, exports) => {
15
+
16
+ const mod = __turbopack_context__.x("fs", () => require("fs"));
17
+
18
+ module.exports = mod;
19
+ }),
20
+ "[project]/src/presentation/web/postcss.config.mjs [postcss] (ecmascript)", ((__turbopack_context__) => {
21
+ "use strict";
22
+
23
+ __turbopack_context__.s([
24
+ "default",
25
+ ()=>__TURBOPACK__default__export__
26
+ ]);
27
+ /** @type {import('postcss-load-config').Config} */ const config = {
28
+ plugins: {
29
+ '@tailwindcss/postcss': {},
30
+ autoprefixer: {}
31
+ }
32
+ };
33
+ const __TURBOPACK__default__export__ = config;
34
+ }),
35
+ "[turbopack-node]/transforms/transforms.ts [postcss] (ecmascript)", ((__turbopack_context__) => {
36
+ "use strict";
37
+
38
+ /**
39
+ * Shared utilities for our 2 transform implementations.
40
+ */ __turbopack_context__.s([
41
+ "fromPath",
42
+ ()=>fromPath,
43
+ "getReadEnvVariables",
44
+ ()=>getReadEnvVariables,
45
+ "toPath",
46
+ ()=>toPath
47
+ ]);
48
+ var __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/path [external] (path, cjs)");
49
+ ;
50
+ const contextDir = process.cwd();
51
+ const toPath = (file)=>{
52
+ const relPath = (0, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["relative"])(contextDir, file);
53
+ if ((0, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["isAbsolute"])(relPath)) {
54
+ throw new Error(`Cannot depend on path (${file}) outside of root directory (${contextDir})`);
55
+ }
56
+ return __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["sep"] !== '/' ? relPath.replaceAll(__TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["sep"], '/') : relPath;
57
+ };
58
+ const fromPath = (path)=>{
59
+ return (0, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["join"])(/* turbopackIgnore: true */ contextDir, __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["sep"] !== '/' ? path.replaceAll('/', __TURBOPACK__imported__module__$5b$externals$5d2f$path__$5b$external$5d$__$28$path$2c$__cjs$29$__["sep"]) : path);
60
+ };
61
+ // Patch process.env to track which env vars are read
62
+ const originalEnv = process.env;
63
+ const readEnvVars = new Set();
64
+ process.env = new Proxy(originalEnv, {
65
+ get (target, prop) {
66
+ if (typeof prop === 'string') {
67
+ // We register the env var as dependency on the
68
+ // current transform and all future transforms
69
+ // since the env var might be cached in module scope
70
+ // and influence them all
71
+ readEnvVars.add(prop);
72
+ }
73
+ return Reflect.get(target, prop);
74
+ },
75
+ set (target, prop, value) {
76
+ return Reflect.set(target, prop, value);
77
+ }
78
+ });
79
+ function getReadEnvVariables() {
80
+ return Array.from(readEnvVars);
81
+ }
82
+ }),
83
+ "[turbopack-node]/transforms/postcss.ts { CONFIG => \"[project]/src/presentation/web/postcss.config.mjs [postcss] (ecmascript)\" } [postcss] (ecmascript)", ((__turbopack_context__) => {
84
+ "use strict";
85
+
86
+ __turbopack_context__.s([
87
+ "default",
88
+ ()=>transform,
89
+ "init",
90
+ ()=>init
91
+ ]);
92
+ // @ts-ignore
93
+ var __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$postcss$40$8$2e$5$2e$6$2f$node_modules$2f$postcss$2f$lib$2f$postcss$2e$mjs__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/node_modules/.pnpm/postcss@8.5.6/node_modules/postcss/lib/postcss.mjs [postcss] (ecmascript)");
94
+ // @ts-ignore
95
+ var __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$presentation$2f$web$2f$postcss$2e$config$2e$mjs__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/src/presentation/web/postcss.config.mjs [postcss] (ecmascript)");
96
+ var __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[turbopack-node]/transforms/transforms.ts [postcss] (ecmascript)");
97
+ ;
98
+ ;
99
+ ;
100
+ let processor;
101
+ const init = async (ipc)=>{
102
+ let config = __TURBOPACK__imported__module__$5b$project$5d2f$src$2f$presentation$2f$web$2f$postcss$2e$config$2e$mjs__$5b$postcss$5d$__$28$ecmascript$29$__["default"];
103
+ if (typeof config === 'function') {
104
+ config = await config({
105
+ env: 'development'
106
+ });
107
+ }
108
+ if (typeof config === 'undefined') {
109
+ throw new Error('PostCSS config is undefined (make sure to export an function or object from config file)');
110
+ }
111
+ let plugins;
112
+ if (Array.isArray(config.plugins)) {
113
+ plugins = config.plugins.map((plugin)=>{
114
+ if (Array.isArray(plugin)) {
115
+ return plugin;
116
+ } else if (typeof plugin === 'string') {
117
+ return [
118
+ plugin,
119
+ {}
120
+ ];
121
+ } else {
122
+ return plugin;
123
+ }
124
+ });
125
+ } else if (typeof config.plugins === 'object') {
126
+ plugins = Object.entries(config.plugins).filter(([, options])=>options);
127
+ } else {
128
+ plugins = [];
129
+ }
130
+ const loadedPlugins = plugins.map((plugin)=>{
131
+ if (Array.isArray(plugin)) {
132
+ const [arg, options] = plugin;
133
+ let pluginFactory = arg;
134
+ if (typeof pluginFactory === 'string') {
135
+ pluginFactory = require(/* turbopackIgnore: true */ pluginFactory);
136
+ }
137
+ if (pluginFactory.default) {
138
+ pluginFactory = pluginFactory.default;
139
+ }
140
+ return pluginFactory(options);
141
+ }
142
+ return plugin;
143
+ });
144
+ processor = (0, __TURBOPACK__imported__module__$5b$project$5d2f$node_modules$2f2e$pnpm$2f$postcss$40$8$2e$5$2e$6$2f$node_modules$2f$postcss$2f$lib$2f$postcss$2e$mjs__$5b$postcss$5d$__$28$ecmascript$29$__["default"])(loadedPlugins);
145
+ };
146
+ async function transform(ipc, cssContent, name, sourceMap) {
147
+ const { css, map, messages } = await processor.process(cssContent, {
148
+ from: name,
149
+ to: name,
150
+ map: sourceMap ? {
151
+ inline: false,
152
+ annotation: false
153
+ } : undefined
154
+ });
155
+ const assets = [];
156
+ const filePaths = [];
157
+ const buildFilePaths = [];
158
+ const directories = [];
159
+ for (const msg of messages){
160
+ switch(msg.type){
161
+ case 'asset':
162
+ assets.push({
163
+ file: msg.file,
164
+ content: msg.content,
165
+ sourceMap: !sourceMap ? undefined : typeof msg.sourceMap === 'string' ? msg.sourceMap : JSON.stringify(msg.sourceMap)
166
+ });
167
+ break;
168
+ case 'dependency':
169
+ case 'missing-dependency':
170
+ filePaths.push((0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["toPath"])(msg.file));
171
+ break;
172
+ case 'build-dependency':
173
+ buildFilePaths.push((0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["toPath"])(msg.file));
174
+ break;
175
+ case 'dir-dependency':
176
+ directories.push([
177
+ (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["toPath"])(msg.dir),
178
+ msg.glob
179
+ ]);
180
+ break;
181
+ case 'context-dependency':
182
+ directories.push([
183
+ (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["toPath"])(msg.dir),
184
+ '**'
185
+ ]);
186
+ break;
187
+ default:
188
+ break;
189
+ }
190
+ }
191
+ ipc.sendInfo({
192
+ type: 'dependencies',
193
+ filePaths,
194
+ directories,
195
+ buildFilePaths,
196
+ envVariables: (0, __TURBOPACK__imported__module__$5b$turbopack$2d$node$5d2f$transforms$2f$transforms$2e$ts__$5b$postcss$5d$__$28$ecmascript$29$__["getReadEnvVariables"])()
197
+ });
198
+ return {
199
+ css,
200
+ map: sourceMap ? JSON.stringify(map) : undefined,
201
+ assets
202
+ };
203
+ }
204
+ }),
205
+ ];
206
+
207
+ //# sourceMappingURL=%5Broot-of-the-server%5D__0f2e5b60._.js.map
@@ -0,0 +1,8 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sections": [
5
+ {"offset": {"line": 22, "column": 0}, "map": {"version":3,"sources":["turbopack:///[project]/src/presentation/web/postcss.config.mjs"],"sourcesContent":["/** @type {import('postcss-load-config').Config} */\nconst config = {\n plugins: {\n '@tailwindcss/postcss': {},\n autoprefixer: {},\n },\n};\n\nexport default config;\n"],"names":[],"mappings":";;;;AAAA,iDAAiD,GACjD,MAAM,SAAS;IACb,SAAS;QACP,wBAAwB,CAAC;QACzB,cAAc,CAAC;IACjB;AACF;uCAEe"}},
6
+ {"offset": {"line": 37, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/transforms/transforms.ts"],"sourcesContent":["/**\n * Shared utilities for our 2 transform implementations.\n */\n\nimport type { Ipc } from '../ipc/evaluate'\nimport { relative, isAbsolute, join, sep } from 'path'\nimport { type StructuredError } from '../ipc'\nimport { type StackFrame } from '../compiled/stacktrace-parser'\n\nexport type IpcInfoMessage =\n | {\n type: 'dependencies'\n envVariables?: string[]\n directories?: Array<[string, string]>\n filePaths?: string[]\n buildFilePaths?: string[]\n }\n | {\n type: 'emittedError'\n severity: 'warning' | 'error'\n error: StructuredError\n }\n | {\n type: 'log'\n logs: Array<{\n time: number\n logType: string\n args: any[]\n trace?: StackFrame[]\n }>\n }\n\nexport type IpcRequestMessage =\n | {\n type: 'resolve'\n options: any\n lookupPath: string\n request: string\n }\n | {\n type: 'trackFileRead'\n file: string\n }\n\nexport type TransformIpc = Ipc<IpcInfoMessage, IpcRequestMessage>\n\nconst contextDir = process.cwd()\nexport const toPath = (file: string) => {\n const relPath = relative(contextDir, file)\n if (isAbsolute(relPath)) {\n throw new Error(\n `Cannot depend on path (${file}) outside of root directory (${contextDir})`\n )\n }\n return sep !== '/' ? relPath.replaceAll(sep, '/') : relPath\n}\nexport const fromPath = (path: string) => {\n return join(\n /* turbopackIgnore: true */ contextDir,\n sep !== '/' ? path.replaceAll('/', sep) : path\n )\n}\n\n// Patch process.env to track which env vars are read\nconst originalEnv = process.env\nconst readEnvVars = new Set<string>()\nprocess.env = new Proxy(originalEnv, {\n get(target, prop) {\n if (typeof prop === 'string') {\n // We register the env var as dependency on the\n // current transform and all future transforms\n // since the env var might be cached in module scope\n // and influence them all\n readEnvVars.add(prop)\n }\n return Reflect.get(target, prop)\n },\n set(target, prop, value) {\n return Reflect.set(target, prop, value)\n },\n})\n\nexport function getReadEnvVariables(): string[] {\n return Array.from(readEnvVars)\n}\n"],"names":[],"mappings":"AAAA;;CAEC;;;;;;;;AAGD;;AAyCA,MAAM,aAAa,QAAQ,GAAG;AACvB,MAAM,SAAS,CAAC;IACrB,MAAM,UAAU,IAAA,6GAAQ,EAAC,YAAY;IACrC,IAAI,IAAA,+GAAU,EAAC,UAAU;QACvB,MAAM,IAAI,MACR,CAAC,uBAAuB,EAAE,KAAK,6BAA6B,EAAE,WAAW,CAAC,CAAC;IAE/E;IACA,OAAO,wGAAG,KAAK,MAAM,QAAQ,UAAU,CAAC,wGAAG,EAAE,OAAO;AACtD;AACO,MAAM,WAAW,CAAC;IACvB,OAAO,IAAA,yGAAI,EACT,yBAAyB,GAAG,YAC5B,wGAAG,KAAK,MAAM,KAAK,UAAU,CAAC,KAAK,wGAAG,IAAI;AAE9C;AAEA,qDAAqD;AACrD,MAAM,cAAc,QAAQ,GAAG;AAC/B,MAAM,cAAc,IAAI;AACxB,QAAQ,GAAG,GAAG,IAAI,MAAM,aAAa;IACnC,KAAI,MAAM,EAAE,IAAI;QACd,IAAI,OAAO,SAAS,UAAU;YAC5B,+CAA+C;YAC/C,8CAA8C;YAC9C,oDAAoD;YACpD,yBAAyB;YACzB,YAAY,GAAG,CAAC;QAClB;QACA,OAAO,QAAQ,GAAG,CAAC,QAAQ;IAC7B;IACA,KAAI,MAAM,EAAE,IAAI,EAAE,KAAK;QACrB,OAAO,QAAQ,GAAG,CAAC,QAAQ,MAAM;IACnC;AACF;AAEO,SAAS;IACd,OAAO,MAAM,IAAI,CAAC;AACpB"}},
7
+ {"offset": {"line": 85, "column": 0}, "map": {"version":3,"sources":["turbopack:///[turbopack-node]/transforms/postcss.ts"],"sourcesContent":["declare const __turbopack_external_require__: (\n id: string,\n thunk: () => any,\n esm?: boolean\n) => any\n\nimport type { Processor } from 'postcss'\n\n// @ts-ignore\nimport postcss from '@vercel/turbopack/postcss'\n// @ts-ignore\nimport importedConfig from 'CONFIG'\nimport { getReadEnvVariables, toPath, type TransformIpc } from './transforms'\n\nlet processor: Processor | undefined\n\nexport const init = async (ipc: TransformIpc) => {\n let config = importedConfig\n if (typeof config === 'function') {\n config = await config({ env: 'development' })\n }\n if (typeof config === 'undefined') {\n throw new Error(\n 'PostCSS config is undefined (make sure to export an function or object from config file)'\n )\n }\n let plugins: any[]\n if (Array.isArray(config.plugins)) {\n plugins = config.plugins.map((plugin: [string, any] | string | any) => {\n if (Array.isArray(plugin)) {\n return plugin\n } else if (typeof plugin === 'string') {\n return [plugin, {}]\n } else {\n return plugin\n }\n })\n } else if (typeof config.plugins === 'object') {\n plugins = Object.entries(config.plugins).filter(([, options]) => options)\n } else {\n plugins = []\n }\n const loadedPlugins = plugins.map((plugin) => {\n if (Array.isArray(plugin)) {\n const [arg, options] = plugin\n let pluginFactory = arg\n\n if (typeof pluginFactory === 'string') {\n pluginFactory = require(/* turbopackIgnore: true */ pluginFactory)\n }\n\n if (pluginFactory.default) {\n pluginFactory = pluginFactory.default\n }\n\n return pluginFactory(options)\n }\n return plugin\n })\n\n processor = postcss(loadedPlugins)\n}\n\nexport default async function transform(\n ipc: TransformIpc,\n cssContent: string,\n name: string,\n sourceMap: boolean\n) {\n const { css, map, messages } = await processor!.process(cssContent, {\n from: name,\n to: name,\n map: sourceMap\n ? {\n inline: false,\n annotation: false,\n }\n : undefined,\n })\n\n const assets = []\n const filePaths: string[] = []\n const buildFilePaths: string[] = []\n const directories: Array<[string, string]> = []\n\n for (const msg of messages) {\n switch (msg.type) {\n case 'asset':\n assets.push({\n file: msg.file,\n content: msg.content,\n sourceMap: !sourceMap\n ? undefined\n : typeof msg.sourceMap === 'string'\n ? msg.sourceMap\n : JSON.stringify(msg.sourceMap),\n // There is also an info field, which we currently ignore\n })\n break\n case 'dependency':\n case 'missing-dependency':\n filePaths.push(toPath(msg.file))\n break\n case 'build-dependency':\n buildFilePaths.push(toPath(msg.file))\n break\n case 'dir-dependency':\n directories.push([toPath(msg.dir), msg.glob])\n break\n case 'context-dependency':\n directories.push([toPath(msg.dir), '**'])\n break\n default:\n // TODO: do we need to do anything here?\n break\n }\n }\n ipc.sendInfo({\n type: 'dependencies',\n filePaths,\n directories,\n buildFilePaths,\n envVariables: getReadEnvVariables(),\n })\n return {\n css,\n map: sourceMap ? JSON.stringify(map) : undefined,\n assets,\n }\n}\n"],"names":[],"mappings":";;;;;;AAQA,aAAa;AACb;AACA,aAAa;AACb;AACA;;;;AAEA,IAAI;AAEG,MAAM,OAAO,OAAO;IACzB,IAAI,SAAS,wJAAc;IAC3B,IAAI,OAAO,WAAW,YAAY;QAChC,SAAS,MAAM,OAAO;YAAE,KAAK;QAAc;IAC7C;IACA,IAAI,OAAO,WAAW,aAAa;QACjC,MAAM,IAAI,MACR;IAEJ;IACA,IAAI;IACJ,IAAI,MAAM,OAAO,CAAC,OAAO,OAAO,GAAG;QACjC,UAAU,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC;YAC5B,IAAI,MAAM,OAAO,CAAC,SAAS;gBACzB,OAAO;YACT,OAAO,IAAI,OAAO,WAAW,UAAU;gBACrC,OAAO;oBAAC;oBAAQ,CAAC;iBAAE;YACrB,OAAO;gBACL,OAAO;YACT;QACF;IACF,OAAO,IAAI,OAAO,OAAO,OAAO,KAAK,UAAU;QAC7C,UAAU,OAAO,OAAO,CAAC,OAAO,OAAO,EAAE,MAAM,CAAC,CAAC,GAAG,QAAQ,GAAK;IACnE,OAAO;QACL,UAAU,EAAE;IACd;IACA,MAAM,gBAAgB,QAAQ,GAAG,CAAC,CAAC;QACjC,IAAI,MAAM,OAAO,CAAC,SAAS;YACzB,MAAM,CAAC,KAAK,QAAQ,GAAG;YACvB,IAAI,gBAAgB;YAEpB,IAAI,OAAO,kBAAkB,UAAU;gBACrC,gBAAgB,QAAQ,yBAAyB,GAAG;YACtD;YAEA,IAAI,cAAc,OAAO,EAAE;gBACzB,gBAAgB,cAAc,OAAO;YACvC;YAEA,OAAO,cAAc;QACvB;QACA,OAAO;IACT;IAEA,YAAY,IAAA,sMAAO,EAAC;AACtB;AAEe,eAAe,UAC5B,GAAiB,EACjB,UAAkB,EAClB,IAAY,EACZ,SAAkB;IAElB,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,MAAM,UAAW,OAAO,CAAC,YAAY;QAClE,MAAM;QACN,IAAI;QACJ,KAAK,YACD;YACE,QAAQ;YACR,YAAY;QACd,IACA;IACN;IAEA,MAAM,SAAS,EAAE;IACjB,MAAM,YAAsB,EAAE;IAC9B,MAAM,iBAA2B,EAAE;IACnC,MAAM,cAAuC,EAAE;IAE/C,KAAK,MAAM,OAAO,SAAU;QAC1B,OAAQ,IAAI,IAAI;YACd,KAAK;gBACH,OAAO,IAAI,CAAC;oBACV,MAAM,IAAI,IAAI;oBACd,SAAS,IAAI,OAAO;oBACpB,WAAW,CAAC,YACR,YACA,OAAO,IAAI,SAAS,KAAK,WACvB,IAAI,SAAS,GACb,KAAK,SAAS,CAAC,IAAI,SAAS;gBAEpC;gBACA;YACF,KAAK;YACL,KAAK;gBACH,UAAU,IAAI,CAAC,IAAA,yIAAM,EAAC,IAAI,IAAI;gBAC9B;YACF,KAAK;gBACH,eAAe,IAAI,CAAC,IAAA,yIAAM,EAAC,IAAI,IAAI;gBACnC;YACF,KAAK;gBACH,YAAY,IAAI,CAAC;oBAAC,IAAA,yIAAM,EAAC,IAAI,GAAG;oBAAG,IAAI,IAAI;iBAAC;gBAC5C;YACF,KAAK;gBACH,YAAY,IAAI,CAAC;oBAAC,IAAA,yIAAM,EAAC,IAAI,GAAG;oBAAG;iBAAK;gBACxC;YACF;gBAEE;QACJ;IACF;IACA,IAAI,QAAQ,CAAC;QACX,MAAM;QACN;QACA;QACA;QACA,cAAc,IAAA,sJAAmB;IACnC;IACA,OAAO;QACL;QACA,KAAK,YAAY,KAAK,SAAS,CAAC,OAAO;QACvC;IACF;AACF"}}]
8
+ }