@_tc/template-core 0.4.0 → 0.4.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 (297) hide show
  1. package/.skills/tc-component-usage-skills/reference/component-api.md +27 -0
  2. package/.skills/tc-generator/SKILL.md +1 -1
  3. package/.skills/tc-generator/reference/project-template/ssr/apps/hello/hello.entry.tsx +6 -1
  4. package/.skills/tc-generator/reference/runtime-extensions.md +10 -0
  5. package/AGENT_README.md +8 -2
  6. package/CHANGE.md +27 -0
  7. package/README.md +157 -8
  8. package/cjs/app/ai/agent/agent-scanner.service.js +1 -1
  9. package/cjs/app/ai/agent/agent.module.js +1 -1
  10. package/cjs/app/ai/ai-config.module.js +1 -1
  11. package/cjs/app/ai/ai-config.service.js +1 -1
  12. package/cjs/app/ai/ai.controller.js +1 -1
  13. package/cjs/app/ai/ai.module.js +1 -1
  14. package/cjs/app/ai/guardrail/guardrail.module.js +1 -1
  15. package/cjs/app/ai/guardrail/guardrail.service.js +1 -1
  16. package/cjs/app/ai/index.js +1 -0
  17. package/cjs/app/ai/mcp/internal/read-sse-response.js +2 -0
  18. package/cjs/app/ai/mcp/internal/stdio-process.js +1 -0
  19. package/cjs/app/ai/mcp/mcp-registry.service.js +2 -2
  20. package/cjs/app/ai/mcp/mcp.client.js +2 -3
  21. package/cjs/app/ai/mcp/mcp.loader.js +1 -1
  22. package/cjs/app/ai/mcp/mcp.module.js +1 -1
  23. package/cjs/app/ai/memory/checkpoint.service.js +1 -1
  24. package/cjs/app/ai/memory/memory.module.js +1 -1
  25. package/cjs/app/ai/memory/thread.service.js +1 -1
  26. package/cjs/app/ai/models/chat-sse.js +4 -0
  27. package/cjs/app/ai/models/chat.js +1 -0
  28. package/cjs/app/ai/models/http.js +1 -0
  29. package/cjs/app/ai/models/image.js +1 -0
  30. package/cjs/app/ai/models/video.js +1 -0
  31. package/cjs/app/ai/nest-service-provider.js +1 -0
  32. package/cjs/app/ai/rag/rag.module.js +1 -1
  33. package/cjs/app/ai/rag/retriever.service.js +1 -1
  34. package/cjs/app/ai/retention/conversation-retention.service.js +1 -1
  35. package/cjs/app/ai/runtime/ai-runtime-startup.validator.js +1 -1
  36. package/cjs/app/ai/runtime/ai-runtime.js +1 -0
  37. package/cjs/app/ai/runtime/internal/context-compaction.service.js +3 -3
  38. package/cjs/app/ai/runtime/internal/declaration-snapshot.js +1 -0
  39. package/cjs/app/ai/runtime/internal/owned-runtime-resources.js +1 -0
  40. package/cjs/app/ai/runtime/langchain/langchain-planner.service.js +1 -1
  41. package/cjs/app/ai/runtime/langgraph/langgraph-orchestrator.service.js +1 -1
  42. package/cjs/app/ai/runtime/runtime.module.js +1 -1
  43. package/cjs/app/ai/skill/skill-scanner.service.js +1 -1
  44. package/cjs/app/ai/skill/skill.module.js +1 -1
  45. package/cjs/app/ai/snapshot-data.js +1 -0
  46. package/cjs/app/ai/store/internal/create-vector-store.js +1 -0
  47. package/cjs/app/ai/store/store.module.js +1 -1
  48. package/cjs/app/ai/tool/builtin/index.js +1 -1
  49. package/cjs/app/ai/tool/builtin/invoke-agent.tool.js +1 -1
  50. package/cjs/app/ai/tool/builtin/retrieve.tool.js +1 -1
  51. package/cjs/app/ai/tool/executor.service.js +1 -1
  52. package/cjs/app/ai/tool/tool-registry.service.js +1 -1
  53. package/cjs/app/ai/tool/tool.module.js +1 -1
  54. package/cjs/app/ai/trace/trace.service.js +1 -1
  55. package/cjs/app/csr/controller.js +1 -1
  56. package/cjs/app/csr/types.js +0 -0
  57. package/cjs/app/html/browser-options.js +1 -1
  58. package/cjs/app/html/shell.js +31 -16
  59. package/cjs/app/http/api-signing.js +1 -0
  60. package/cjs/app/http/body-parser.middleware.js +1 -1
  61. package/cjs/app/http/csp-nonce.js +1 -0
  62. package/cjs/app/http/error-response.js +1 -1
  63. package/cjs/app/http/exception-filter.js +1 -1
  64. package/cjs/app/http/request-body-parser-policy.js +1 -0
  65. package/cjs/app/http/security.guard.js +1 -1
  66. package/cjs/app/project/controller.js +1 -1
  67. package/cjs/app/project/service.js +1 -1
  68. package/cjs/app/providers/foundation.js +1 -1
  69. package/cjs/app/ssr/artifacts.js +1 -1
  70. package/cjs/app/ssr/controller.js +1 -1
  71. package/cjs/app/ssr/html.js +17 -17
  72. package/cjs/app/ssr/stream.js +1 -1
  73. package/cjs/app/static-assets.middleware.js +1 -1
  74. package/cjs/app/template-core.module.js +1 -1
  75. package/cjs/app/view/entry.tpl +2 -2
  76. package/cjs/bundler/buildSSR.js +1 -1
  77. package/cjs/bundler/entryCollect.js +1 -1
  78. package/cjs/bundler/feSharedConfig.js +1 -1
  79. package/cjs/bundler/utils.js +3 -3
  80. package/cjs/config/config.default.js +1 -1
  81. package/cjs/packages/common/index.js +1 -1
  82. package/cjs/packages/core/bootstrap.js +1 -1
  83. package/cjs/packages/core/startup.js +1 -1
  84. package/esm/app/ai/agent/agent-scanner.service.js +33 -36
  85. package/esm/app/ai/agent/agent.module.js +9 -7
  86. package/esm/app/ai/ai-config.module.js +14 -7
  87. package/esm/app/ai/ai-config.service.js +24 -20
  88. package/esm/app/ai/ai.controller.js +41 -41
  89. package/esm/app/ai/ai.module.js +15 -15
  90. package/esm/app/ai/guardrail/guardrail.module.js +11 -9
  91. package/esm/app/ai/guardrail/guardrail.service.js +5 -10
  92. package/esm/app/ai/index.js +2 -0
  93. package/esm/app/ai/mcp/internal/read-sse-response.js +35 -0
  94. package/esm/app/ai/mcp/internal/stdio-process.js +59 -0
  95. package/esm/app/ai/mcp/mcp-registry.service.js +10 -15
  96. package/esm/app/ai/mcp/mcp.client.js +77 -78
  97. package/esm/app/ai/mcp/mcp.loader.js +64 -42
  98. package/esm/app/ai/mcp/mcp.module.js +62 -22
  99. package/esm/app/ai/memory/checkpoint.service.js +18 -28
  100. package/esm/app/ai/memory/memory.module.js +15 -12
  101. package/esm/app/ai/memory/thread.service.js +21 -26
  102. package/esm/app/ai/models/chat-sse.js +44 -0
  103. package/esm/app/ai/models/chat.js +60 -0
  104. package/esm/app/ai/models/http.js +52 -0
  105. package/esm/app/ai/models/image.js +37 -0
  106. package/esm/app/ai/models/video.js +32 -0
  107. package/esm/app/ai/nest-service-provider.js +10 -0
  108. package/esm/app/ai/rag/rag.module.js +24 -15
  109. package/esm/app/ai/rag/retriever.service.js +37 -54
  110. package/esm/app/ai/retention/conversation-retention.service.js +16 -34
  111. package/esm/app/ai/runtime/ai-runtime-startup.validator.js +2 -19
  112. package/esm/app/ai/runtime/ai-runtime.js +104 -0
  113. package/esm/app/ai/runtime/internal/context-compaction.service.js +139 -145
  114. package/esm/app/ai/runtime/internal/declaration-snapshot.js +32 -0
  115. package/esm/app/ai/runtime/internal/owned-runtime-resources.js +21 -0
  116. package/esm/app/ai/runtime/langchain/langchain-planner.service.js +43 -49
  117. package/esm/app/ai/runtime/langgraph/langgraph-orchestrator.service.js +273 -225
  118. package/esm/app/ai/runtime/runtime.module.js +56 -35
  119. package/esm/app/ai/skill/skill-scanner.service.js +11 -16
  120. package/esm/app/ai/skill/skill.module.js +11 -9
  121. package/esm/app/ai/snapshot-data.js +24 -0
  122. package/esm/app/ai/store/internal/create-vector-store.js +10 -0
  123. package/esm/app/ai/store/store.module.js +9 -13
  124. package/esm/app/ai/tool/builtin/index.js +16 -4
  125. package/esm/app/ai/tool/builtin/invoke-agent.tool.js +30 -34
  126. package/esm/app/ai/tool/builtin/retrieve.tool.js +9 -13
  127. package/esm/app/ai/tool/executor.service.js +22 -29
  128. package/esm/app/ai/tool/tool-registry.service.js +6 -16
  129. package/esm/app/ai/tool/tool.module.js +26 -12
  130. package/esm/app/ai/trace/trace.service.js +15 -28
  131. package/esm/app/csr/controller.js +114 -63
  132. package/esm/app/csr/types.js +0 -0
  133. package/esm/app/html/browser-options.js +2 -2
  134. package/esm/app/html/shell.js +173 -32
  135. package/esm/app/http/api-signing.js +13 -0
  136. package/esm/app/http/body-parser.middleware.js +47 -27
  137. package/esm/app/http/csp-nonce.js +13 -0
  138. package/esm/app/http/error-response.js +8 -5
  139. package/esm/app/http/exception-filter.js +4 -4
  140. package/esm/app/http/request-body-parser-policy.js +46 -0
  141. package/esm/app/http/security.guard.js +23 -21
  142. package/esm/app/project/controller.js +15 -15
  143. package/esm/app/project/service.js +3 -3
  144. package/esm/app/providers/foundation.js +5 -5
  145. package/esm/app/ssr/artifacts.js +25 -21
  146. package/esm/app/ssr/controller.js +148 -75
  147. package/esm/app/ssr/html.js +49 -44
  148. package/esm/app/ssr/stream.js +25 -24
  149. package/esm/app/static-assets.middleware.js +4 -4
  150. package/esm/app/template-core.module.js +57 -52
  151. package/esm/app/view/entry.tpl +2 -2
  152. package/esm/bundler/buildSSR.js +1 -1
  153. package/esm/bundler/entryCollect.js +9 -9
  154. package/esm/bundler/feSharedConfig.js +42 -42
  155. package/esm/bundler/utils.js +78 -90
  156. package/esm/config/config.default.js +4 -3
  157. package/esm/packages/common/index.js +6 -6
  158. package/esm/packages/core/bootstrap.js +5 -5
  159. package/esm/packages/core/startup.js +69 -46
  160. package/fe/frontend/src/common/request.js +5 -2
  161. package/fe/frontend/src/hooks/useRouterParams.d.ts +4 -2
  162. package/fe/packages/common/ssr/hydration.d.ts +9 -0
  163. package/fe/packages/react/core/Label/Label.d.ts +1 -0
  164. package/fe/packages/react/core/Label/Label.js +3 -1
  165. package/fe/packages/react/core/internal/i18n/default.d.ts +13 -0
  166. package/fe/packages/react/core/internal/i18n/default.js +16 -1
  167. package/fe/packages/react/core/internal/i18n/en-US.d.ts +13 -0
  168. package/fe/packages/react/core/internal/i18n/en-US.js +16 -1
  169. package/fe/packages/react/forms/DataTable/index.d.ts +2 -0
  170. package/fe/packages/react/forms/DataTable/index.js +43 -29
  171. package/fe/packages/react/forms/Form/FormItem.js +39 -12
  172. package/fe/packages/react/forms/MultiSelect/MultiSelect.d.ts +26 -0
  173. package/fe/packages/react/forms/MultiSelect/MultiSelect.js +218 -0
  174. package/fe/packages/react/forms/MultiSelect/index.d.ts +1 -0
  175. package/fe/packages/react/forms/MultiSelect/index.js +2 -0
  176. package/fe/packages/react/forms/Pagination/Pagination.d.ts +6 -1
  177. package/fe/packages/react/forms/Pagination/Pagination.js +13 -4
  178. package/fe/packages/react/forms/Select/Select.d.ts +11 -0
  179. package/fe/packages/react/forms/Select/Select.js +20 -7
  180. package/fe/packages/react/forms/index.d.ts +1 -0
  181. package/fe/packages/react/forms/index.js +3 -1
  182. package/fe/packages/react/i18n/getUiReactLocale.d.ts +26 -0
  183. package/fe/packages/react/index.js +2 -1
  184. package/fe/packages/react/overlays/Drawer/Drawer.d.ts +3 -2
  185. package/fe/packages/react/overlays/Drawer/Drawer.js +16 -2
  186. package/fe/packages/react/overlays/Dropdown/Dropdown.d.ts +12 -2
  187. package/fe/packages/react/overlays/Dropdown/Dropdown.js +27 -14
  188. package/fe/packages/react/overlays/Modal/Modal.d.ts +11 -3
  189. package/fe/packages/react/overlays/Modal/Modal.js +26 -2
  190. package/fe/packages/react/overlays/Modal/ModalManager.d.ts +13 -12
  191. package/fe/packages/react/overlays/Modal/ModalManager.js +15 -5
  192. package/fe/packages/react/overlays/Modal/index.d.ts +1 -0
  193. package/fe/packages/react/overlays/Overlay/Overlay.d.ts +6 -2
  194. package/fe/packages/react/overlays/Overlay/Overlay.js +31 -14
  195. package/fe/packages/react/overlays/Overlay/focusTypes.d.ts +8 -0
  196. package/fe/packages/react/overlays/Overlay/focusTypes.js +0 -0
  197. package/fe/packages/react/overlays/Overlay/index.d.ts +1 -0
  198. package/fe/packages/react/overlays/Overlay/overlayStack.d.ts +16 -0
  199. package/fe/packages/react/overlays/Overlay/overlayStack.js +290 -0
  200. package/fe/packages/react/overlays/Popup/Popup.d.ts +5 -4
  201. package/fe/packages/react/overlays/Popup/Popup.js +28 -11
  202. package/fe/packages/react/ui/components/index.js +2 -1
  203. package/fe/packages/react/ui/index.js +2 -1
  204. package/fe/ssr/components/StreamingRender/StreamingCache.d.ts +1 -0
  205. package/fe/ssr/components/StreamingRender/StreamingCache.js +5 -1
  206. package/fe/ssr/components/StreamingRender/StreamingRender.js +1 -1
  207. package/fe/ssr/components/StreamingRender/StreamingScript.d.ts +1 -0
  208. package/fe/ssr/components/StreamingRender/StreamingScript.js +9 -1
  209. package/fe/ssr/createSSREntry.d.ts +9 -3
  210. package/fe/ssr/createSSREntry.js +43 -19
  211. package/fe/ssr/index.d.ts +4 -1
  212. package/fe/ssr/index.js +2 -1
  213. package/fe/ssr/router.d.ts +76 -0
  214. package/fe/ssr/router.js +349 -0
  215. package/fe/ssr/types.d.ts +1 -1
  216. package/models/packages/common/ssr/hydration.d.ts +9 -0
  217. package/models/packages/react/core/Label/Label.d.ts +1 -0
  218. package/models/packages/react/core/internal/i18n/default.d.ts +13 -0
  219. package/models/packages/react/core/internal/i18n/en-US.d.ts +13 -0
  220. package/models/packages/react/forms/DataTable/index.d.ts +2 -0
  221. package/models/packages/react/forms/MultiSelect/MultiSelect.d.ts +26 -0
  222. package/models/packages/react/forms/MultiSelect/index.d.ts +1 -0
  223. package/models/packages/react/forms/Pagination/Pagination.d.ts +6 -1
  224. package/models/packages/react/forms/Select/Select.d.ts +11 -0
  225. package/models/packages/react/forms/index.d.ts +1 -0
  226. package/models/packages/react/i18n/getUiReactLocale.d.ts +26 -0
  227. package/models/packages/react/overlays/Drawer/Drawer.d.ts +3 -2
  228. package/models/packages/react/overlays/Dropdown/Dropdown.d.ts +12 -2
  229. package/models/packages/react/overlays/Modal/Modal.d.ts +11 -3
  230. package/models/packages/react/overlays/Modal/ModalManager.d.ts +13 -12
  231. package/models/packages/react/overlays/Modal/index.d.ts +1 -0
  232. package/models/packages/react/overlays/Overlay/Overlay.d.ts +6 -2
  233. package/models/packages/react/overlays/Overlay/focusTypes.d.ts +8 -0
  234. package/models/packages/react/overlays/Overlay/index.d.ts +1 -0
  235. package/models/packages/react/overlays/Overlay/overlayStack.d.ts +16 -0
  236. package/models/packages/react/overlays/Popup/Popup.d.ts +5 -4
  237. package/package.json +26 -1
  238. package/types/app/ai/agent/agent-scanner.service.d.ts +4 -4
  239. package/types/app/ai/ai-config.service.d.ts +7 -3
  240. package/types/app/ai/guardrail/guardrail.service.d.ts +2 -2
  241. package/types/app/ai/index.d.ts +9 -0
  242. package/types/app/ai/mcp/internal/load-mcp-config.d.ts +2 -2
  243. package/types/app/ai/mcp/internal/read-sse-response.d.ts +2 -0
  244. package/types/app/ai/mcp/internal/stdio-process.d.ts +5 -0
  245. package/types/app/ai/mcp/mcp-registry.service.d.ts +5 -3
  246. package/types/app/ai/mcp/mcp.client.d.ts +7 -4
  247. package/types/app/ai/mcp/mcp.loader.d.ts +11 -11
  248. package/types/app/ai/mcp/mcp.module.d.ts +5 -5
  249. package/types/app/ai/memory/thread.service.d.ts +3 -3
  250. package/types/app/ai/models/chat-sse.d.ts +5 -0
  251. package/types/app/ai/models/chat.d.ts +22 -0
  252. package/types/app/ai/models/http.d.ts +20 -0
  253. package/types/app/ai/models/image.d.ts +69 -0
  254. package/types/app/ai/models/video.d.ts +99 -0
  255. package/types/app/ai/nest-service-provider.d.ts +6 -0
  256. package/types/app/ai/retention/conversation-retention.service.d.ts +3 -4
  257. package/types/app/ai/runtime/ai-runtime-startup.validator.d.ts +2 -3
  258. package/types/app/ai/runtime/ai-runtime.d.ts +46 -0
  259. package/types/app/ai/runtime/internal/agent-run-context.d.ts +4 -0
  260. package/types/app/ai/runtime/internal/context-compaction.service.d.ts +2 -2
  261. package/types/app/ai/runtime/internal/declaration-snapshot.d.ts +8 -0
  262. package/types/app/ai/runtime/internal/owned-runtime-resources.d.ts +5 -0
  263. package/types/app/ai/runtime/langchain/langchain-planner.service.d.ts +1 -1
  264. package/types/app/ai/runtime/langgraph/langgraph-orchestrator.service.d.ts +33 -16
  265. package/types/app/ai/skill/skill-scanner.service.d.ts +3 -4
  266. package/types/app/ai/snapshot-data.d.ts +1 -0
  267. package/types/app/ai/store/internal/create-vector-store.d.ts +4 -0
  268. package/types/app/ai/tool/builtin/index.d.ts +1 -1
  269. package/types/app/ai/tool/builtin/invoke-agent.tool.d.ts +10 -3
  270. package/types/app/ai/tool/builtin/retrieve.tool.d.ts +4 -3
  271. package/types/app/ai/tool/executor.service.d.ts +3 -3
  272. package/types/app/ai/tool/tool-registry.service.d.ts +2 -7
  273. package/types/app/ai/tool/tool.interface.d.ts +1 -1
  274. package/types/app/ai/tool/tool.module.d.ts +8 -1
  275. package/types/app/ai/trace/trace.service.d.ts +4 -5
  276. package/types/app/csr/types.d.ts +10 -0
  277. package/types/app/html/browser-options.d.ts +1 -1
  278. package/types/app/html/shell.d.ts +37 -10
  279. package/types/app/http/api-signing.d.ts +16 -0
  280. package/types/app/http/body-parser.middleware.d.ts +6 -2
  281. package/types/app/http/csp-nonce.d.ts +3 -0
  282. package/types/app/http/error-response.d.ts +1 -0
  283. package/types/app/http/request-body-parser-policy.d.ts +8 -0
  284. package/types/app/http/security.guard.d.ts +1 -0
  285. package/types/app/ssr/artifacts.d.ts +6 -3
  286. package/types/app/ssr/html.d.ts +7 -0
  287. package/types/app/ssr/stream.d.ts +1 -1
  288. package/types/app/ssr/types.d.ts +56 -0
  289. package/types/bundler/buildSSR.d.ts +2 -1
  290. package/types/bundler/index.d.ts +1 -1
  291. package/types/bundler/state.d.ts +13 -0
  292. package/types/bundler/utils.d.ts +3 -14
  293. package/types/config/config.default.d.ts +9 -3
  294. package/types/index.d.ts +4 -1
  295. package/types/packages/common/ssr/hydration.d.ts +13 -0
  296. package/types/packages/core/index.d.ts +1 -1
  297. package/types/packages/core/startup.d.ts +41 -0
@@ -3,76 +3,81 @@ import "../packages/core/index.js";
3
3
  import { AiModule as t } from "./ai/ai.module.js";
4
4
  import { FrontendDevelopment as n } from "./frontend-development.js";
5
5
  import { createCSRPageController as r } from "./csr/controller.js";
6
- import { RequestBodyParserMiddleware as i } from "./http/body-parser.middleware.js";
7
- import { ResponseCompressionMiddleware as a } from "./http/compression.middleware.js";
8
- import { TemplateCoreSecurityGuard as o } from "./http/security.guard.js";
9
- import { TemplateCoreExceptionFilter as s } from "./http/exception-filter.js";
10
- import { TemplateCoreResponseInterceptor as c } from "./http/response.interceptor.js";
11
- import { TC_PROJECT_SERVICE as l, TemplateCoreProjectService as u } from "./project/service.js";
12
- import { createProjectController as d } from "./project/controller.js";
13
- import { createCSRProviders as f } from "./providers/csr.js";
14
- import { foundationProviderModuleOptions as p } from "./providers/foundation.js";
15
- import { SSRArtifacts as m } from "./ssr/artifacts.js";
16
- import { SSRRenderSessionRegistry as h } from "./ssr/session.js";
17
- import { createSSRPageController as g } from "./ssr/controller.js";
18
- import { StaticAssetsMiddleware as _ } from "./static-assets.middleware.js";
19
- import { Global as v, Module as y } from "@nestjs/common";
20
- import { APP_FILTER as b, APP_GUARD as x, APP_INTERCEPTOR as S } from "@nestjs/core";
21
- import C from "@oxc-project/runtime/helpers/decorateMetadata";
22
- import w from "@oxc-project/runtime/helpers/decorate";
6
+ import { REQUEST_BODY_PARSER_POLICIES as i, compileRequestBodyParserPolicies as a } from "./http/request-body-parser-policy.js";
7
+ import { RequestBodyParserMiddleware as o } from "./http/body-parser.middleware.js";
8
+ import { ResponseCompressionMiddleware as s } from "./http/compression.middleware.js";
9
+ import { TemplateCoreSecurityGuard as c } from "./http/security.guard.js";
10
+ import { TemplateCoreExceptionFilter as l } from "./http/exception-filter.js";
11
+ import { TemplateCoreResponseInterceptor as u } from "./http/response.interceptor.js";
12
+ import { TC_PROJECT_SERVICE as d, TemplateCoreProjectService as f } from "./project/service.js";
13
+ import { createProjectController as p } from "./project/controller.js";
14
+ import { createCSRProviders as m } from "./providers/csr.js";
15
+ import { foundationProviderModuleOptions as h } from "./providers/foundation.js";
16
+ import { SSRArtifacts as g } from "./ssr/artifacts.js";
17
+ import { SSRRenderSessionRegistry as _ } from "./ssr/session.js";
18
+ import { createSSRPageController as v } from "./ssr/controller.js";
19
+ import { StaticAssetsMiddleware as y } from "./static-assets.middleware.js";
20
+ import { Global as b, Module as x } from "@nestjs/common";
21
+ import S from "@oxc-project/runtime/helpers/decorate";
22
+ import { APP_FILTER as C, APP_GUARD as w, APP_INTERCEPTOR as T } from "@nestjs/core";
23
+ import E from "@oxc-project/runtime/helpers/decorateMetadata";
23
24
  //#region app/template-core.module.ts
24
- var T, E, D = E = class {
25
- static register(v, y) {
26
- let C = p(v, f());
25
+ var D, O, k = O = class {
26
+ static register(b, x) {
27
+ let S = h(b, m()), E = a(b.options.requestBodyParser);
27
28
  return {
28
- module: E,
29
+ module: O,
29
30
  global: !0,
30
- imports: [t.register(v.options.apiPrefix)],
31
+ imports: [t.register(b.options.apiPrefix)],
31
32
  controllers: [
32
- d(v.options.apiPrefix),
33
- g(v.options.ssrPageBasePath),
34
- r(v.options.pageBasePath)
33
+ p(b.options.apiPrefix),
34
+ v(b.options.ssrPageBasePath),
35
+ r(b.options.pageBasePath)
35
36
  ],
36
37
  providers: [
37
- ...C.providers,
38
- _,
38
+ ...S.providers,
39
+ y,
39
40
  {
40
41
  provide: n,
41
- useFactory: (e) => new n(e, y),
42
+ useFactory: (e) => new n(e, x),
42
43
  inject: [e]
43
44
  },
44
- m,
45
- h,
46
- a,
47
- i,
45
+ g,
46
+ _,
48
47
  s,
48
+ {
49
+ provide: i,
50
+ useValue: E
51
+ },
49
52
  o,
53
+ l,
54
+ c,
50
55
  {
51
- provide: u,
52
- useFactory: (e) => new u(e),
56
+ provide: f,
57
+ useFactory: (e) => new f(e),
53
58
  inject: [e]
54
59
  },
55
60
  {
56
- provide: l,
57
- useExisting: u
61
+ provide: d,
62
+ useExisting: f
58
63
  },
59
64
  {
60
- provide: S,
61
- useClass: c
65
+ provide: T,
66
+ useClass: u
62
67
  },
63
68
  {
64
- provide: b,
65
- useExisting: s
69
+ provide: C,
70
+ useExisting: l
66
71
  },
67
72
  {
68
- provide: x,
69
- useExisting: o
73
+ provide: w,
74
+ useExisting: c
70
75
  }
71
76
  ],
72
77
  exports: [
73
- ...C.exports,
74
- l,
75
- u
78
+ ...S.exports,
79
+ d,
80
+ f
76
81
  ]
77
82
  };
78
83
  }
@@ -80,13 +85,13 @@ var T, E, D = E = class {
80
85
  this.development = e;
81
86
  }
82
87
  configure(e) {
83
- e.apply(a, _, this.development.middleware.bind(this.development), i).forRoutes("/");
88
+ e.apply(s, y, this.development.middleware.bind(this.development), o).forRoutes("/");
84
89
  }
85
90
  };
86
- D = E = w([
87
- y({}),
88
- v(),
89
- C("design:paramtypes", [typeof (T = n !== void 0 && n) == "function" ? T : Object])
90
- ], D);
91
+ k = O = S([
92
+ x({}),
93
+ b(),
94
+ E("design:paramtypes", [typeof (D = n !== void 0 && n) == "function" ? D : Object])
95
+ ], k);
91
96
  //#endregion
92
- export { D as TemplateCoreModule };
97
+ export { k as TemplateCoreModule };
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html lang="en" class="dark" style="color-scheme: dark">
2
+ <html lang="{{ htmlLang }}" class="{{ htmlThemeClass }}" style="color-scheme: {{ htmlThemeColorScheme }}">
3
3
  <head>
4
4
  <!-- TC_SHARED_HEAD -->
5
5
  <!-- TC_HEAD_SLOT -->
@@ -7,7 +7,7 @@
7
7
 
8
8
  <!-- TC_RUNTIME_CONTEXT -->
9
9
 
10
- <body>
10
+ <body{{ htmlBodyAttributes | safe }}>
11
11
  <!-- TC_BODY_BEFORE_ROOT_SLOT -->
12
12
  <div id="root"></div>
13
13
  <!-- TC_BODY_AFTER_ROOT_SLOT -->
@@ -44,7 +44,7 @@ async function E(e, t) {
44
44
  rolldownOptions: {
45
45
  input: e,
46
46
  external: f,
47
- output: { codeSplitting: { groups: g() } }
47
+ output: { codeSplitting: { groups: t?.codeSplitting?.groups ?? g() } }
48
48
  }
49
49
  },
50
50
  ssr: {
@@ -1,5 +1,5 @@
1
- import e from "path";
2
- import * as t from "glob";
1
+ import * as e from "glob";
2
+ import t from "path";
3
3
  //#region bundler/entryCollect.ts
4
4
  var n = [
5
5
  "js",
@@ -9,11 +9,11 @@ var n = [
9
9
  ], r = (e) => e.replace(/\\/g, "/"), i = (e) => {
10
10
  let t = r(e).split("/");
11
11
  return t.some((e, n) => e === "ssr" && t[n + 1] === "apps");
12
- }, a = (t) => e.basename(t).replace(/\.entry\.[^.]+$/, "");
13
- function o(e, i) {
14
- return e.flatMap((e) => {
15
- let a = r(e), o = n.map((e) => `${a}/**/*.${e}`);
16
- return t.sync(o, { nodir: !0 }).filter((e) => e.includes(".entry.")).filter((e) => !e.includes(".d.ts")).filter(i).sort();
12
+ }, a = (e) => t.basename(e).replace(/\.entry\.[^.]+$/, "");
13
+ function o(t, i) {
14
+ return t.flatMap((t) => {
15
+ let a = r(t), o = n.map((e) => `${a}/**/*.${e}`);
16
+ return e.sync(o, { nodir: !0 }).filter((e) => e.includes(".entry.")).filter((e) => !e.includes(".d.ts")).filter(i).sort();
17
17
  });
18
18
  }
19
19
  function s(e) {
@@ -25,8 +25,8 @@ function c(e) {
25
25
  function l(e) {
26
26
  return e.reduce((e, t) => (e[a(t)] = t, e), {});
27
27
  }
28
- function u(t, n) {
29
- return e.resolve(n?.baseDir ?? process.cwd(), t);
28
+ function u(e, n) {
29
+ return t.resolve(n?.baseDir ?? process.cwd(), e);
30
30
  }
31
31
  function d(e) {
32
32
  let t = e?.ssrEntries;
@@ -1,12 +1,12 @@
1
1
  import { resolveRunPath as e } from "../ssrSharedData/outputPaths.js";
2
- import t from "path";
3
- import * as n from "glob";
2
+ import * as t from "glob";
3
+ import n from "path";
4
4
  import { existsSync as r } from "fs";
5
5
  import i from "@tailwindcss/vite";
6
6
  import { createRequire as a } from "module";
7
7
  import { fileURLToPath as o } from "url";
8
8
  //#region bundler/feSharedConfig.ts
9
- var s = typeof __filename == "string" ? __filename : o(import.meta.url), c = t.dirname(s), l = a(s), u = [
9
+ var s = typeof __filename == "string" ? __filename : o(import.meta.url), c = n.dirname(s), l = a(s), u = [
10
10
  "",
11
11
  ".ts",
12
12
  ".tsx",
@@ -14,14 +14,14 @@ var s = typeof __filename == "string" ? __filename : o(import.meta.url), c = t.d
14
14
  ".jsx"
15
15
  ];
16
16
  function d() {
17
- let e = t.resolve(c, "../"), i = t.resolve(e, "../"), a = t.resolve(e, "./ssr"), o = t.resolve(i, "./fe/ssr"), s = t.resolve(o, "./apps"), l = n.sync(t.resolve(s, "**/*.entry.*")).length > 0, u = l ? o : a, d = t.resolve(e, "./frontend"), f = t.resolve(i, "./fe/frontend"), p = t.resolve(e, "./packages/react"), m = t.resolve(i, "./fe/packages/react"), h = t.resolve(e, "./packages/react/core/hooks"), g = t.resolve(i, "./fe/packages/react/core/hooks"), _ = t.resolve(e, "./packages/common"), v = t.resolve(i, "./fe/packages/common");
17
+ let e = n.resolve(c, "../"), i = n.resolve(e, "../"), a = n.resolve(e, "./ssr"), o = n.resolve(i, "./fe/ssr"), s = n.resolve(o, "./apps"), l = t.sync(n.resolve(s, "**/*.entry.*")).length > 0, u = l ? o : a, d = n.resolve(e, "./frontend"), f = n.resolve(i, "./fe/frontend"), p = n.resolve(e, "./packages/react"), m = n.resolve(i, "./fe/packages/react"), h = n.resolve(e, "./packages/react/core/hooks"), g = n.resolve(i, "./fe/packages/react/core/hooks"), _ = n.resolve(e, "./packages/common"), v = n.resolve(i, "./fe/packages/common");
18
18
  return {
19
19
  currentDir: c,
20
20
  frameNodePath: e,
21
21
  framePackagePath: i,
22
22
  frameFEPath: r(f) ? f : d,
23
23
  frameSSRPath: u,
24
- frameSSRAppsPath: t.resolve(u, "./apps"),
24
+ frameSSRAppsPath: n.resolve(u, "./apps"),
25
25
  frameReactUIPath: r(m) ? m : p,
26
26
  frameReactHooksPath: r(g) ? g : h,
27
27
  frameCommonPath: r(v) ? v : _,
@@ -29,7 +29,7 @@ function d() {
29
29
  };
30
30
  }
31
31
  function f(e) {
32
- return t.dirname(l.resolve(`${e}/package.json`));
32
+ return n.dirname(l.resolve(`${e}/package.json`));
33
33
  }
34
34
  function p() {
35
35
  return {
@@ -37,8 +37,8 @@ function p() {
37
37
  "react-dom": f("react-dom")
38
38
  };
39
39
  }
40
- function m(e, n) {
41
- return e.reduce((e, [i, a, o, s = "./defaultAlias"]) => (e[i] = u.map((e) => t.resolve(o, a + e)).find((e) => r(e)) ?? t.resolve(n.currentDir, s), e), {});
40
+ function m(e, t) {
41
+ return e.reduce((e, [i, a, o, s = "./defaultAlias"]) => (e[i] = u.map((e) => n.resolve(o, a + e)).find((e) => r(e)) ?? n.resolve(t.currentDir, s), e), {});
42
42
  }
43
43
  function h(e, t) {
44
44
  return m([
@@ -76,54 +76,54 @@ function h(e, t) {
76
76
  ], t);
77
77
  }
78
78
  function g(e) {
79
- let { runFEPath: n, paths: r, includeSourceOnlyAliases: i = !1 } = e;
79
+ let { runFEPath: t, paths: r, includeSourceOnlyAliases: i = !1 } = e;
80
80
  return {
81
81
  ...p(),
82
82
  ...i ? {
83
83
  "@fe": r.frameFEPath,
84
- "@": t.resolve(r.frameFEPath, "./src"),
84
+ "@": n.resolve(r.frameFEPath, "./src"),
85
85
  "@ssr": r.frameSSRPath,
86
- "@model": t.resolve(r.frameNodePath, "./models/types"),
87
- typings: t.resolve(r.frameNodePath, "./typings")
86
+ "@model": n.resolve(r.frameNodePath, "./models/types"),
87
+ typings: n.resolve(r.frameNodePath, "./typings")
88
88
  } : {},
89
89
  "@tc/common": r.frameCommonPath,
90
- "@tc/ui-react/core": t.resolve(r.frameReactUIPath, "./core"),
91
- "@tc/ui-react/overlays": t.resolve(r.frameReactUIPath, "./overlays"),
92
- "@tc/ui-react/forms": t.resolve(r.frameReactUIPath, "./forms"),
93
- "@tc/ui-react/i18n": t.resolve(r.frameReactUIPath, "./i18n"),
94
- "@tc/ui-react/components": t.resolve(r.frameReactUIPath, "./ui/components"),
90
+ "@tc/ui-react/core": n.resolve(r.frameReactUIPath, "./core"),
91
+ "@tc/ui-react/overlays": n.resolve(r.frameReactUIPath, "./overlays"),
92
+ "@tc/ui-react/forms": n.resolve(r.frameReactUIPath, "./forms"),
93
+ "@tc/ui-react/i18n": n.resolve(r.frameReactUIPath, "./i18n"),
94
+ "@tc/ui-react/components": n.resolve(r.frameReactUIPath, "./ui/components"),
95
95
  "@tc/ui-react/hooks": r.frameReactHooksPath,
96
- "@tc/ui-react/lib": t.resolve(r.frameReactUIPath, "./core/lib"),
97
- "@tc/ui-react/stores": t.resolve(r.frameReactUIPath, "./core/stores"),
98
- "@tc/ui-react/types": t.resolve(r.frameReactUIPath, "./core/types"),
99
- "@tc/ui-react/ui": t.resolve(r.frameReactUIPath, "./ui"),
100
- "@tc/ui-react/styles.css": t.resolve(r.frameReactUIPath, "./styles.css"),
101
- "@tc/ui-react/index.css": t.resolve(r.frameReactUIPath, "./styles.css"),
102
- "@tc/ui-react/index": t.resolve(r.frameReactUIPath, "./index"),
103
- "@tc/ui-react": t.resolve(r.frameReactUIPath, "./index"),
104
- "@tc/schema-page-call-com/builtIn": t.resolve(r.frameFEPath, "./src/defaultPages/SchemaPage/components/CallCom/builtIn"),
105
- ...h(n, r)
96
+ "@tc/ui-react/lib": n.resolve(r.frameReactUIPath, "./core/lib"),
97
+ "@tc/ui-react/stores": n.resolve(r.frameReactUIPath, "./core/stores"),
98
+ "@tc/ui-react/types": n.resolve(r.frameReactUIPath, "./core/types"),
99
+ "@tc/ui-react/ui": n.resolve(r.frameReactUIPath, "./ui"),
100
+ "@tc/ui-react/styles.css": n.resolve(r.frameReactUIPath, "./styles.css"),
101
+ "@tc/ui-react/index.css": n.resolve(r.frameReactUIPath, "./styles.css"),
102
+ "@tc/ui-react/index": n.resolve(r.frameReactUIPath, "./index"),
103
+ "@tc/ui-react": n.resolve(r.frameReactUIPath, "./index"),
104
+ "@tc/schema-page-call-com/builtIn": n.resolve(r.frameFEPath, "./src/defaultPages/SchemaPage/components/CallCom/builtIn"),
105
+ ...h(t, r)
106
106
  };
107
107
  }
108
- function _(n, r) {
108
+ function _(t, r) {
109
109
  let i = e(r);
110
110
  return {
111
111
  ...g({
112
- runFEPath: t.resolve(i, "./frontend"),
113
- paths: n
112
+ runFEPath: n.resolve(i, "./frontend"),
113
+ paths: t
114
114
  }),
115
- "@fe": n.frameFEPath,
116
- "@": t.resolve(n.frameFEPath, "./src"),
117
- "@ssr": n.frameSSRPath,
118
- "@store": t.resolve(n.frameFEPath, "./src/stores"),
119
- "@model": t.resolve(n.frameNodePath, "./models/types"),
120
- typings: t.resolve(n.frameNodePath, "./typings")
115
+ "@fe": t.frameFEPath,
116
+ "@": n.resolve(t.frameFEPath, "./src"),
117
+ "@ssr": t.frameSSRPath,
118
+ "@store": n.resolve(t.frameFEPath, "./src/stores"),
119
+ "@model": n.resolve(t.frameNodePath, "./models/types"),
120
+ typings: n.resolve(t.frameNodePath, "./typings")
121
121
  };
122
122
  }
123
- function v(n, r) {
123
+ function v(t, r) {
124
124
  return g({
125
- runFEPath: t.resolve(e(r), "./frontend"),
126
- paths: n,
125
+ runFEPath: n.resolve(e(r), "./frontend"),
126
+ paths: t,
127
127
  includeSourceOnlyAliases: !0
128
128
  });
129
129
  }
@@ -135,8 +135,8 @@ var y = [
135
135
  "react/jsx-runtime",
136
136
  "react/jsx-dev-runtime"
137
137
  ];
138
- function b(e, n) {
139
- let r = t.basename(e.framePackagePath), i = t.basename(t.dirname(e.framePackagePath)), a = i.startsWith("@") ? `${i}/${r}` : r;
138
+ function b(e, t) {
139
+ let r = n.basename(e.framePackagePath), i = n.basename(n.dirname(e.framePackagePath)), a = i.startsWith("@") ? `${i}/${r}` : r;
140
140
  return [...new Set([
141
141
  a,
142
142
  `${a}/fe`,
@@ -145,7 +145,7 @@ function b(e, n) {
145
145
  "tailwind-merge",
146
146
  "@babel/runtime",
147
147
  "async-validator",
148
- ...n ?? []
148
+ ...t ?? []
149
149
  ])];
150
150
  }
151
151
  function x() {