veryfront 0.1.215 → 0.1.217

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 (305) hide show
  1. package/README.md +1 -1
  2. package/esm/cli/commands/extension/command-help.d.ts +3 -0
  3. package/esm/cli/commands/extension/command-help.d.ts.map +1 -0
  4. package/esm/cli/commands/extension/command-help.js +16 -0
  5. package/esm/cli/commands/extension/handler.d.ts +3 -0
  6. package/esm/cli/commands/extension/handler.d.ts.map +1 -0
  7. package/esm/cli/commands/extension/handler.js +36 -0
  8. package/esm/cli/commands/extension/init-command.d.ts +19 -0
  9. package/esm/cli/commands/extension/init-command.d.ts.map +1 -0
  10. package/esm/cli/commands/extension/init-command.js +122 -0
  11. package/esm/cli/commands/extension/validate-command.d.ts +13 -0
  12. package/esm/cli/commands/extension/validate-command.d.ts.map +1 -0
  13. package/esm/cli/commands/extension/validate-command.js +62 -0
  14. package/esm/cli/commands/generate/integration-generator-helpers.d.ts +35 -0
  15. package/esm/cli/commands/generate/integration-generator-helpers.d.ts.map +1 -0
  16. package/esm/cli/commands/generate/integration-generator-helpers.js +123 -0
  17. package/esm/cli/commands/generate/integration-generator.d.ts +1 -2
  18. package/esm/cli/commands/generate/integration-generator.d.ts.map +1 -1
  19. package/esm/cli/commands/generate/integration-generator.js +1 -123
  20. package/esm/cli/commands/knowledge/command-helpers.d.ts +48 -0
  21. package/esm/cli/commands/knowledge/command-helpers.d.ts.map +1 -0
  22. package/esm/cli/commands/knowledge/command-helpers.js +216 -0
  23. package/esm/cli/commands/knowledge/command.d.ts +12 -17
  24. package/esm/cli/commands/knowledge/command.d.ts.map +1 -1
  25. package/esm/cli/commands/knowledge/command.js +26 -214
  26. package/esm/cli/help/command-definitions.d.ts.map +1 -1
  27. package/esm/cli/help/command-definitions.js +2 -0
  28. package/esm/cli/mcp/remote-file-tool-helpers.d.ts +5 -0
  29. package/esm/cli/mcp/remote-file-tool-helpers.d.ts.map +1 -0
  30. package/esm/cli/mcp/remote-file-tool-helpers.js +22 -0
  31. package/esm/cli/mcp/remote-file-tools.d.ts.map +1 -1
  32. package/esm/cli/mcp/remote-file-tools.js +1 -22
  33. package/esm/cli/router.d.ts.map +1 -1
  34. package/esm/cli/router.js +2 -0
  35. package/esm/cli/templates/integration-loader-helpers.d.ts +8 -0
  36. package/esm/cli/templates/integration-loader-helpers.d.ts.map +1 -0
  37. package/esm/cli/templates/integration-loader-helpers.js +29 -0
  38. package/esm/cli/templates/integration-loader.d.ts.map +1 -1
  39. package/esm/cli/templates/integration-loader.js +5 -21
  40. package/esm/cli/templates/manifest.d.ts +1 -0
  41. package/esm/cli/templates/manifest.js +2 -1
  42. package/esm/deno.d.ts +3 -0
  43. package/esm/deno.js +5 -2
  44. package/esm/src/agent/runtime/index.d.ts.map +1 -1
  45. package/esm/src/agent/runtime/index.js +48 -90
  46. package/esm/src/chat/ag-ui-helpers.d.ts +17 -0
  47. package/esm/src/chat/ag-ui-helpers.d.ts.map +1 -0
  48. package/esm/src/chat/ag-ui-helpers.js +111 -0
  49. package/esm/src/chat/ag-ui.d.ts.map +1 -1
  50. package/esm/src/chat/ag-ui.js +1 -111
  51. package/esm/src/config/schemas/config.schema.d.ts +1 -0
  52. package/esm/src/config/schemas/config.schema.d.ts.map +1 -1
  53. package/esm/src/config/schemas/config.schema.js +11 -0
  54. package/esm/src/config/schemas/index.d.ts +11 -1
  55. package/esm/src/config/schemas/index.d.ts.map +1 -1
  56. package/esm/src/errors/error-registry-helpers.d.ts +6 -0
  57. package/esm/src/errors/error-registry-helpers.d.ts.map +1 -0
  58. package/esm/src/errors/error-registry-helpers.js +9 -0
  59. package/esm/src/errors/error-registry.d.ts.map +1 -1
  60. package/esm/src/errors/error-registry.js +4 -3
  61. package/esm/src/extensions/capabilities.d.ts +20 -0
  62. package/esm/src/extensions/capabilities.d.ts.map +1 -0
  63. package/esm/src/extensions/capabilities.js +77 -0
  64. package/esm/src/extensions/contracts.d.ts +10 -0
  65. package/esm/src/extensions/contracts.d.ts.map +1 -0
  66. package/esm/src/extensions/contracts.js +28 -0
  67. package/esm/src/extensions/discovery.d.ts +48 -0
  68. package/esm/src/extensions/discovery.d.ts.map +1 -0
  69. package/esm/src/extensions/discovery.js +179 -0
  70. package/esm/src/extensions/errors.d.ts +10 -0
  71. package/esm/src/extensions/errors.d.ts.map +1 -0
  72. package/esm/src/extensions/errors.js +34 -0
  73. package/esm/src/extensions/factory-loader.d.ts +29 -0
  74. package/esm/src/extensions/factory-loader.d.ts.map +1 -0
  75. package/esm/src/extensions/factory-loader.js +63 -0
  76. package/esm/src/extensions/index.d.ts +37 -0
  77. package/esm/src/extensions/index.d.ts.map +1 -0
  78. package/esm/src/extensions/index.js +41 -0
  79. package/esm/src/extensions/interfaces/ai-model-provider.d.ts +94 -0
  80. package/esm/src/extensions/interfaces/ai-model-provider.d.ts.map +1 -0
  81. package/esm/src/extensions/interfaces/ai-model-provider.js +8 -0
  82. package/esm/src/extensions/interfaces/auth-provider.d.ts +49 -0
  83. package/esm/src/extensions/interfaces/auth-provider.d.ts.map +1 -0
  84. package/esm/src/extensions/interfaces/auth-provider.js +8 -0
  85. package/esm/src/extensions/interfaces/bundler.d.ts +118 -0
  86. package/esm/src/extensions/interfaces/bundler.d.ts.map +1 -0
  87. package/esm/src/extensions/interfaces/bundler.js +8 -0
  88. package/esm/src/extensions/interfaces/cache-store.d.ts +27 -0
  89. package/esm/src/extensions/interfaces/cache-store.d.ts.map +1 -0
  90. package/esm/src/extensions/interfaces/cache-store.js +8 -0
  91. package/esm/src/extensions/interfaces/code-parser.d.ts +76 -0
  92. package/esm/src/extensions/interfaces/code-parser.d.ts.map +1 -0
  93. package/esm/src/extensions/interfaces/code-parser.js +8 -0
  94. package/esm/src/extensions/interfaces/content-transformer.d.ts +40 -0
  95. package/esm/src/extensions/interfaces/content-transformer.d.ts.map +1 -0
  96. package/esm/src/extensions/interfaces/content-transformer.js +8 -0
  97. package/esm/src/extensions/interfaces/css-processor.d.ts +38 -0
  98. package/esm/src/extensions/interfaces/css-processor.d.ts.map +1 -0
  99. package/esm/src/extensions/interfaces/css-processor.js +8 -0
  100. package/esm/src/extensions/interfaces/database-client.d.ts +31 -0
  101. package/esm/src/extensions/interfaces/database-client.d.ts.map +1 -0
  102. package/esm/src/extensions/interfaces/database-client.js +8 -0
  103. package/esm/src/extensions/interfaces/embedding-provider.d.ts +37 -0
  104. package/esm/src/extensions/interfaces/embedding-provider.d.ts.map +1 -0
  105. package/esm/src/extensions/interfaces/embedding-provider.js +8 -0
  106. package/esm/src/extensions/interfaces/index.d.ts +21 -0
  107. package/esm/src/extensions/interfaces/index.d.ts.map +1 -0
  108. package/esm/src/extensions/interfaces/index.js +9 -0
  109. package/esm/src/extensions/interfaces/node-compat.d.ts +25 -0
  110. package/esm/src/extensions/interfaces/node-compat.d.ts.map +1 -0
  111. package/esm/src/extensions/interfaces/node-compat.js +8 -0
  112. package/esm/src/extensions/interfaces/schema-validator.d.ts +46 -0
  113. package/esm/src/extensions/interfaces/schema-validator.d.ts.map +1 -0
  114. package/esm/src/extensions/interfaces/schema-validator.js +8 -0
  115. package/esm/src/extensions/interfaces/tracing-exporter.d.ts +44 -0
  116. package/esm/src/extensions/interfaces/tracing-exporter.d.ts.map +1 -0
  117. package/esm/src/extensions/interfaces/tracing-exporter.js +8 -0
  118. package/esm/src/extensions/loader.d.ts +33 -0
  119. package/esm/src/extensions/loader.d.ts.map +1 -0
  120. package/esm/src/extensions/loader.js +209 -0
  121. package/esm/src/extensions/orchestrate.d.ts +54 -0
  122. package/esm/src/extensions/orchestrate.d.ts.map +1 -0
  123. package/esm/src/extensions/orchestrate.js +116 -0
  124. package/esm/src/extensions/recommendations.d.ts +7 -0
  125. package/esm/src/extensions/recommendations.d.ts.map +1 -0
  126. package/esm/src/extensions/recommendations.js +22 -0
  127. package/esm/src/extensions/types.d.ts +47 -0
  128. package/esm/src/extensions/types.d.ts.map +1 -0
  129. package/esm/src/extensions/types.js +6 -0
  130. package/esm/src/extensions/validation.d.ts +44 -0
  131. package/esm/src/extensions/validation.d.ts.map +1 -0
  132. package/esm/src/extensions/validation.js +115 -0
  133. package/esm/src/html/styles-builder/plugin-loader.d.ts.map +1 -1
  134. package/esm/src/html/styles-builder/plugin-loader.js +23 -0
  135. package/esm/src/html/styles-builder/tailwind-plugin-allowlist.d.ts +29 -0
  136. package/esm/src/html/styles-builder/tailwind-plugin-allowlist.d.ts.map +1 -0
  137. package/esm/src/html/styles-builder/tailwind-plugin-allowlist.js +48 -0
  138. package/esm/src/modules/react-loader/ssr-module-loader/loader-helpers.d.ts +15 -0
  139. package/esm/src/modules/react-loader/ssr-module-loader/loader-helpers.d.ts.map +1 -0
  140. package/esm/src/modules/react-loader/ssr-module-loader/loader-helpers.js +22 -0
  141. package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts +0 -2
  142. package/esm/src/modules/react-loader/ssr-module-loader/loader.d.ts.map +1 -1
  143. package/esm/src/modules/react-loader/ssr-module-loader/loader.js +4 -24
  144. package/esm/src/platform/adapters/fs/veryfront/adapter-helpers.d.ts +19 -0
  145. package/esm/src/platform/adapters/fs/veryfront/adapter-helpers.d.ts.map +1 -0
  146. package/esm/src/platform/adapters/fs/veryfront/adapter-helpers.js +26 -0
  147. package/esm/src/platform/adapters/fs/veryfront/adapter.d.ts.map +1 -1
  148. package/esm/src/platform/adapters/fs/veryfront/adapter.js +4 -20
  149. package/esm/src/platform/adapters/fs/veryfront/read-operations-helpers.d.ts +1 -0
  150. package/esm/src/platform/adapters/fs/veryfront/read-operations-helpers.d.ts.map +1 -1
  151. package/esm/src/platform/adapters/fs/veryfront/read-operations-helpers.js +3 -0
  152. package/esm/src/platform/adapters/fs/veryfront/read-operations.d.ts.map +1 -1
  153. package/esm/src/platform/adapters/fs/veryfront/read-operations.js +4 -7
  154. package/esm/src/platform/adapters/fs/veryfront/websocket-manager-helpers.d.ts +28 -0
  155. package/esm/src/platform/adapters/fs/veryfront/websocket-manager-helpers.d.ts.map +1 -0
  156. package/esm/src/platform/adapters/fs/veryfront/websocket-manager-helpers.js +41 -0
  157. package/esm/src/platform/adapters/fs/veryfront/websocket-manager.d.ts +1 -4
  158. package/esm/src/platform/adapters/fs/veryfront/websocket-manager.d.ts.map +1 -1
  159. package/esm/src/platform/adapters/fs/veryfront/websocket-manager.js +7 -40
  160. package/esm/src/platform/compat/process/command.d.ts +31 -0
  161. package/esm/src/platform/compat/process/command.d.ts.map +1 -0
  162. package/esm/src/platform/compat/process/command.js +193 -0
  163. package/esm/src/platform/compat/process/env.d.ts +31 -0
  164. package/esm/src/platform/compat/process/env.d.ts.map +1 -0
  165. package/esm/src/platform/compat/process/env.js +175 -0
  166. package/esm/src/platform/compat/process/lifecycle.d.ts +98 -0
  167. package/esm/src/platform/compat/process/lifecycle.d.ts.map +1 -0
  168. package/esm/src/platform/compat/process/lifecycle.js +305 -0
  169. package/esm/src/platform/compat/process/runtime-process.d.ts +10 -0
  170. package/esm/src/platform/compat/process/runtime-process.d.ts.map +1 -0
  171. package/esm/src/platform/compat/process/runtime-process.js +24 -0
  172. package/esm/src/platform/compat/process.d.ts +4 -165
  173. package/esm/src/platform/compat/process.d.ts.map +1 -1
  174. package/esm/src/platform/compat/process.js +4 -682
  175. package/esm/src/platform/index.d.ts +1 -1
  176. package/esm/src/platform/index.d.ts.map +1 -1
  177. package/esm/src/provider/runtime-loader/provider-endpoints.d.ts +8 -0
  178. package/esm/src/provider/runtime-loader/provider-endpoints.d.ts.map +1 -0
  179. package/esm/src/provider/runtime-loader/provider-endpoints.js +27 -0
  180. package/esm/src/provider/runtime-loader/provider-request-init.d.ts +32 -0
  181. package/esm/src/provider/runtime-loader/provider-request-init.d.ts.map +1 -0
  182. package/esm/src/provider/runtime-loader/provider-request-init.js +67 -0
  183. package/esm/src/provider/runtime-loader/tool-input-status.d.ts +17 -0
  184. package/esm/src/provider/runtime-loader/tool-input-status.d.ts.map +1 -0
  185. package/esm/src/provider/runtime-loader/tool-input-status.js +155 -0
  186. package/esm/src/provider/runtime-loader.d.ts +2 -3
  187. package/esm/src/provider/runtime-loader.d.ts.map +1 -1
  188. package/esm/src/provider/runtime-loader.js +92 -291
  189. package/esm/src/proxy/handler.d.ts.map +1 -1
  190. package/esm/src/proxy/handler.js +14 -0
  191. package/esm/src/rendering/orchestrator/pipeline-helpers.d.ts +8 -0
  192. package/esm/src/rendering/orchestrator/pipeline-helpers.d.ts.map +1 -0
  193. package/esm/src/rendering/orchestrator/pipeline-helpers.js +20 -0
  194. package/esm/src/rendering/orchestrator/pipeline.d.ts +0 -3
  195. package/esm/src/rendering/orchestrator/pipeline.d.ts.map +1 -1
  196. package/esm/src/rendering/orchestrator/pipeline.js +4 -22
  197. package/esm/src/routing/api/module-loader/loader-helpers.d.ts +10 -0
  198. package/esm/src/routing/api/module-loader/loader-helpers.d.ts.map +1 -0
  199. package/esm/src/routing/api/module-loader/loader-helpers.js +62 -0
  200. package/esm/src/routing/api/module-loader/loader.d.ts +1 -1
  201. package/esm/src/routing/api/module-loader/loader.d.ts.map +1 -1
  202. package/esm/src/routing/api/module-loader/loader.js +2 -60
  203. package/esm/src/server/bootstrap.d.ts +22 -2
  204. package/esm/src/server/bootstrap.d.ts.map +1 -1
  205. package/esm/src/server/bootstrap.js +67 -5
  206. package/esm/src/server/dev-ui/manifest.d.ts +2 -0
  207. package/esm/src/server/dev-ui/manifest.js +3 -1
  208. package/esm/src/server/handlers/request/api/project-discovery.d.ts.map +1 -1
  209. package/esm/src/server/handlers/request/api/project-discovery.js +14 -8
  210. package/esm/src/server/production-server.js +1 -1
  211. package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.d.ts.map +1 -1
  212. package/esm/src/server/services/rsc/endpoints/rsc-bundles.generated.js +2 -2
  213. package/esm/src/server/utils/domain-parser.d.ts.map +1 -1
  214. package/esm/src/server/utils/domain-parser.js +4 -0
  215. package/esm/src/studio/bridge/bridge-bundle.generated.d.ts.map +1 -1
  216. package/esm/src/studio/bridge/bridge-bundle.generated.js +1 -1
  217. package/esm/src/tool/index.d.ts +1 -1
  218. package/esm/src/tool/index.d.ts.map +1 -1
  219. package/esm/src/tool/types.d.ts +20 -0
  220. package/esm/src/tool/types.d.ts.map +1 -1
  221. package/esm/src/utils/version-constant.d.ts +1 -1
  222. package/esm/src/utils/version-constant.js +1 -1
  223. package/package.json +7 -1
  224. package/src/cli/commands/extension/command-help.ts +18 -0
  225. package/src/cli/commands/extension/handler.ts +41 -0
  226. package/src/cli/commands/extension/init-command.ts +140 -0
  227. package/src/cli/commands/extension/validate-command.ts +78 -0
  228. package/src/cli/commands/generate/integration-generator-helpers.ts +185 -0
  229. package/src/cli/commands/generate/integration-generator.ts +12 -168
  230. package/src/cli/commands/knowledge/command-helpers.ts +295 -0
  231. package/src/cli/commands/knowledge/command.ts +34 -261
  232. package/src/cli/help/command-definitions.ts +2 -0
  233. package/src/cli/mcp/remote-file-tool-helpers.ts +27 -0
  234. package/src/cli/mcp/remote-file-tools.ts +6 -28
  235. package/src/cli/router.ts +2 -0
  236. package/src/cli/templates/integration-loader-helpers.ts +49 -0
  237. package/src/cli/templates/integration-loader.ts +10 -28
  238. package/src/cli/templates/manifest.js +2 -1
  239. package/src/deno.js +5 -2
  240. package/src/src/agent/runtime/index.ts +77 -94
  241. package/src/src/chat/ag-ui-helpers.ts +139 -0
  242. package/src/src/chat/ag-ui.ts +11 -139
  243. package/src/src/config/schemas/config.schema.ts +11 -0
  244. package/src/src/config/schemas/index.ts +15 -1
  245. package/src/src/errors/error-registry-helpers.ts +23 -0
  246. package/src/src/errors/error-registry.ts +8 -3
  247. package/src/src/extensions/capabilities.ts +97 -0
  248. package/src/src/extensions/contracts.ts +36 -0
  249. package/src/src/extensions/discovery.ts +221 -0
  250. package/src/src/extensions/errors.ts +39 -0
  251. package/src/src/extensions/factory-loader.ts +76 -0
  252. package/src/src/extensions/index.ts +79 -0
  253. package/src/src/extensions/interfaces/ai-model-provider.ts +100 -0
  254. package/src/src/extensions/interfaces/auth-provider.ts +52 -0
  255. package/src/src/extensions/interfaces/bundler.ts +116 -0
  256. package/src/src/extensions/interfaces/cache-store.ts +27 -0
  257. package/src/src/extensions/interfaces/code-parser.ts +84 -0
  258. package/src/src/extensions/interfaces/content-transformer.ts +38 -0
  259. package/src/src/extensions/interfaces/css-processor.ts +40 -0
  260. package/src/src/extensions/interfaces/database-client.ts +35 -0
  261. package/src/src/extensions/interfaces/embedding-provider.ts +39 -0
  262. package/src/src/extensions/interfaces/index.ts +81 -0
  263. package/src/src/extensions/interfaces/node-compat.ts +25 -0
  264. package/src/src/extensions/interfaces/schema-validator.ts +51 -0
  265. package/src/src/extensions/interfaces/tracing-exporter.ts +42 -0
  266. package/src/src/extensions/loader.ts +245 -0
  267. package/src/src/extensions/orchestrate.ts +184 -0
  268. package/src/src/extensions/recommendations.ts +24 -0
  269. package/src/src/extensions/types.ts +57 -0
  270. package/src/src/extensions/validation.ts +147 -0
  271. package/src/src/html/styles-builder/plugin-loader.ts +32 -0
  272. package/src/src/html/styles-builder/tailwind-plugin-allowlist.ts +51 -0
  273. package/src/src/modules/react-loader/ssr-module-loader/loader-helpers.ts +37 -0
  274. package/src/src/modules/react-loader/ssr-module-loader/loader.ts +8 -39
  275. package/src/src/platform/adapters/fs/veryfront/adapter-helpers.ts +43 -0
  276. package/src/src/platform/adapters/fs/veryfront/adapter.ts +8 -22
  277. package/src/src/platform/adapters/fs/veryfront/read-operations-helpers.ts +4 -0
  278. package/src/src/platform/adapters/fs/veryfront/read-operations.ts +4 -7
  279. package/src/src/platform/adapters/fs/veryfront/websocket-manager-helpers.ts +73 -0
  280. package/src/src/platform/adapters/fs/veryfront/websocket-manager.ts +29 -44
  281. package/src/src/platform/compat/process/command.ts +297 -0
  282. package/src/src/platform/compat/process/env.ts +227 -0
  283. package/src/src/platform/compat/process/lifecycle.ts +330 -0
  284. package/src/src/platform/compat/process/runtime-process.ts +27 -0
  285. package/src/src/platform/compat/process.ts +37 -870
  286. package/src/src/platform/index.ts +1 -0
  287. package/src/src/provider/runtime-loader/provider-endpoints.ts +50 -0
  288. package/src/src/provider/runtime-loader/provider-request-init.ts +101 -0
  289. package/src/src/provider/runtime-loader/tool-input-status.ts +210 -0
  290. package/src/src/provider/runtime-loader.ts +113 -368
  291. package/src/src/proxy/handler.ts +16 -0
  292. package/src/src/rendering/orchestrator/pipeline-helpers.ts +35 -0
  293. package/src/src/rendering/orchestrator/pipeline.ts +8 -35
  294. package/src/src/routing/api/module-loader/loader-helpers.ts +68 -0
  295. package/src/src/routing/api/module-loader/loader.ts +8 -65
  296. package/src/src/server/bootstrap.ts +88 -7
  297. package/src/src/server/dev-ui/manifest.js +3 -1
  298. package/src/src/server/handlers/request/api/project-discovery.ts +19 -8
  299. package/src/src/server/production-server.ts +1 -1
  300. package/src/src/server/services/rsc/endpoints/rsc-bundles.generated.ts +2 -2
  301. package/src/src/server/utils/domain-parser.ts +4 -0
  302. package/src/src/studio/bridge/bridge-bundle.generated.ts +1 -1
  303. package/src/src/tool/index.ts +1 -0
  304. package/src/src/tool/types.ts +21 -0
  305. package/src/src/utils/version-constant.ts +1 -1
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Contract interface for AI/LLM model providers.
3
+ *
4
+ * Default implementation: `@veryfront/ext-openai`
5
+ *
6
+ * @module extensions/interfaces/ai-model-provider
7
+ */
8
+ /** A single part of a multi-modal message (text or image). */
9
+ export interface ContentPart {
10
+ /** Part type. */
11
+ type: "text" | "image";
12
+ /** Text content (when `type` is `"text"`). */
13
+ text?: string;
14
+ /** Image URL or base64 data (when `type` is `"image"`). */
15
+ imageUrl?: string;
16
+ }
17
+ /** A chat message in a conversation. */
18
+ export interface ChatMessage {
19
+ /** Message role. */
20
+ role: "system" | "user" | "assistant" | "tool";
21
+ /** Simple text content. */
22
+ content?: string;
23
+ /** Multi-modal content parts (used instead of `content`). */
24
+ parts?: ContentPart[];
25
+ /** Tool call ID this message responds to (for `tool` role). */
26
+ toolCallId?: string;
27
+ }
28
+ /** Definition of a tool the model may invoke. */
29
+ export interface ToolDefinition {
30
+ /** Tool name. */
31
+ name: string;
32
+ /** Human-readable description of what the tool does. */
33
+ description: string;
34
+ /** JSON Schema describing the tool's parameters. */
35
+ parameters: Record<string, unknown>;
36
+ }
37
+ /** Options passed to {@link AIModelProvider.complete} and {@link AIModelProvider.stream}. */
38
+ export interface CompletionOptions {
39
+ /** Model identifier (e.g. `"gpt-4o"`, `"claude-sonnet-4-20250514"`). */
40
+ model: string;
41
+ /** Conversation messages. */
42
+ messages: ChatMessage[];
43
+ /** Sampling temperature. */
44
+ temperature?: number;
45
+ /** Maximum tokens to generate. */
46
+ maxTokens?: number;
47
+ /** Available tools for function calling. */
48
+ tools?: ToolDefinition[];
49
+ /** Additional provider-specific options. */
50
+ [key: string]: unknown;
51
+ }
52
+ /** Result returned from {@link AIModelProvider.complete}. */
53
+ export interface CompletionResult {
54
+ /** Generated text content. */
55
+ content: string;
56
+ /** Tool calls requested by the model, if any. */
57
+ toolCalls?: Array<{
58
+ id: string;
59
+ name: string;
60
+ arguments: string;
61
+ }>;
62
+ /** Token usage statistics. */
63
+ usage?: {
64
+ promptTokens: number;
65
+ completionTokens: number;
66
+ totalTokens: number;
67
+ };
68
+ }
69
+ /** A chunk emitted during streaming completion. */
70
+ export interface StreamChunk {
71
+ /** Incremental text delta. */
72
+ content?: string;
73
+ /** Incremental tool call delta. */
74
+ toolCallDelta?: {
75
+ id?: string;
76
+ name?: string;
77
+ arguments?: string;
78
+ };
79
+ /** Whether this is the final chunk. */
80
+ done: boolean;
81
+ }
82
+ /**
83
+ * AIModelProvider contract interface.
84
+ *
85
+ * Implementations provide chat completion and streaming capabilities
86
+ * against large language models.
87
+ */
88
+ export interface AIModelProvider {
89
+ /** Generate a complete response for the given conversation. */
90
+ complete(options: CompletionOptions): Promise<CompletionResult>;
91
+ /** Stream a response token-by-token. */
92
+ stream(options: CompletionOptions): AsyncIterable<StreamChunk>;
93
+ }
94
+ //# sourceMappingURL=ai-model-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-model-provider.d.ts","sourceRoot":"","sources":["../../../../src/src/extensions/interfaces/ai-model-provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,8DAA8D;AAC9D,MAAM,WAAW,WAAW;IAC1B,iBAAiB;IACjB,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wCAAwC;AACxC,MAAM,WAAW,WAAW;IAC1B,oBAAoB;IACpB,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,WAAW,GAAG,MAAM,CAAC;IAC/C,2BAA2B;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,iDAAiD;AACjD,MAAM,WAAW,cAAc;IAC7B,iBAAiB;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,wDAAwD;IACxD,WAAW,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AAED,6FAA6F;AAC7F,MAAM,WAAW,iBAAiB;IAChC,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,4BAA4B;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kCAAkC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;IACzB,4CAA4C;IAC5C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,6DAA6D;AAC7D,MAAM,WAAW,gBAAgB;IAC/B,8BAA8B;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,SAAS,CAAC,EAAE,KAAK,CAAC;QAChB,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC,CAAC;IACH,8BAA8B;IAC9B,KAAK,CAAC,EAAE;QACN,YAAY,EAAE,MAAM,CAAC;QACrB,gBAAgB,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,mDAAmD;AACnD,MAAM,WAAW,WAAW;IAC1B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,aAAa,CAAC,EAAE;QACd,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,uCAAuC;IACvC,IAAI,EAAE,OAAO,CAAC;CACf;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,+DAA+D;IAC/D,QAAQ,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAChE,wCAAwC;IACxC,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC;CAChE"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Contract interface for AI/LLM model providers.
3
+ *
4
+ * Default implementation: `@veryfront/ext-openai`
5
+ *
6
+ * @module extensions/interfaces/ai-model-provider
7
+ */
8
+ export {};
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Contract interface for authentication token providers.
3
+ *
4
+ * Default implementation: `@veryfront/ext-jwt`
5
+ *
6
+ * @module extensions/interfaces/auth-provider
7
+ */
8
+ /** Payload data stored within a signed token. */
9
+ export interface TokenPayload {
10
+ /** Subject identifier (typically a user ID). */
11
+ sub: string;
12
+ /** Expiration time as a Unix timestamp (seconds). */
13
+ exp?: number;
14
+ /** Issued-at time as a Unix timestamp (seconds). */
15
+ iat?: number;
16
+ /** Additional claims. */
17
+ [key: string]: unknown;
18
+ }
19
+ /** Options for signing a token. */
20
+ export interface SignOptions {
21
+ /** Token lifetime (e.g. `"1h"`, `"7d"`, or seconds as a number). */
22
+ expiresIn?: string | number;
23
+ /** Signing algorithm (e.g. `"HS256"`, `"RS256"`). */
24
+ algorithm?: string;
25
+ /** Additional implementation-specific options. */
26
+ [key: string]: unknown;
27
+ }
28
+ /** Options for verifying a token. */
29
+ export interface VerifyOptions {
30
+ /** Expected algorithms to accept. */
31
+ algorithms?: string[];
32
+ /** Additional implementation-specific options. */
33
+ [key: string]: unknown;
34
+ }
35
+ /**
36
+ * AuthProvider contract interface.
37
+ *
38
+ * Implementations sign, verify, and decode authentication tokens
39
+ * (e.g. JWTs) for request authentication.
40
+ */
41
+ export interface AuthProvider {
42
+ /** Sign a payload into a token string. */
43
+ sign(payload: TokenPayload, options?: SignOptions): Promise<string>;
44
+ /** Verify a token and return its decoded payload. Throws on invalid tokens. */
45
+ verify(token: string, options?: VerifyOptions): Promise<TokenPayload>;
46
+ /** Decode a token without verifying its signature. */
47
+ decode(token: string): TokenPayload | undefined;
48
+ }
49
+ //# sourceMappingURL=auth-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth-provider.d.ts","sourceRoot":"","sources":["../../../../src/src/extensions/interfaces/auth-provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,iDAAiD;AACjD,MAAM,WAAW,YAAY;IAC3B,gDAAgD;IAChD,GAAG,EAAE,MAAM,CAAC;IACZ,qDAAqD;IACrD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,yBAAyB;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,mCAAmC;AACnC,MAAM,WAAW,WAAW;IAC1B,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,qCAAqC;AACrC,MAAM,WAAW,aAAa;IAC5B,qCAAqC;IACrC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,kDAAkD;IAClD,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,0CAA0C;IAC1C,IAAI,CAAC,OAAO,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACpE,+EAA+E;IAC/E,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACtE,sDAAsD;IACtD,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAAC;CACjD"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Contract interface for authentication token providers.
3
+ *
4
+ * Default implementation: `@veryfront/ext-jwt`
5
+ *
6
+ * @module extensions/interfaces/auth-provider
7
+ */
8
+ export {};
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Contract interface for module bundlers.
3
+ *
4
+ * Default implementation: `@veryfront/ext-esbuild`
5
+ *
6
+ * @module extensions/interfaces/bundler
7
+ */
8
+ /** Options passed to {@link Bundler.bundle}. */
9
+ export interface BundleOptions {
10
+ /** Entry point file paths. */
11
+ entryPoints: string[];
12
+ /** Output directory. */
13
+ outdir: string;
14
+ /** Bundle format (`esm`, `cjs`, `iife`). */
15
+ format?: "esm" | "cjs" | "iife";
16
+ /** Target environment(s). */
17
+ target?: string | string[];
18
+ /** Enable minification. */
19
+ minify?: boolean;
20
+ /** Enable source maps. */
21
+ sourcemap?: boolean | "inline" | "external";
22
+ /** Enable code splitting. */
23
+ splitting?: boolean;
24
+ /** Additional plugins. */
25
+ plugins?: BundlerPlugin[];
26
+ /** Extra implementation-specific options. */
27
+ [key: string]: unknown;
28
+ }
29
+ /** A single output file produced by a bundle operation. */
30
+ export interface BundleOutput {
31
+ /** Absolute path to the output file. */
32
+ path: string;
33
+ /** Raw byte content. */
34
+ contents: Uint8Array;
35
+ }
36
+ /** Result returned from {@link Bundler.bundle}. */
37
+ export interface BundleResult {
38
+ /** Output files produced by the bundle. */
39
+ outputs: BundleOutput[];
40
+ /** Warnings emitted during bundling. */
41
+ warnings: string[];
42
+ /** Errors encountered during bundling. */
43
+ errors: string[];
44
+ }
45
+ /** Options passed to {@link Bundler.transform}. */
46
+ export interface TransformOptions {
47
+ /** Source code to transform. */
48
+ code: string;
49
+ /** Loader hint (`ts`, `tsx`, `jsx`, `css`, etc.). */
50
+ loader?: string;
51
+ /** Output format. */
52
+ format?: "esm" | "cjs" | "iife";
53
+ /** Target environment(s). */
54
+ target?: string | string[];
55
+ /** Enable minification. */
56
+ minify?: boolean;
57
+ /** Enable source maps. */
58
+ sourcemap?: boolean | "inline" | "external";
59
+ /** Extra implementation-specific options. */
60
+ [key: string]: unknown;
61
+ }
62
+ /** Result returned from {@link Bundler.transform}. */
63
+ export interface TransformResult {
64
+ /** Transformed source code. */
65
+ code: string;
66
+ /** Source map, if requested. */
67
+ map?: string;
68
+ /** Warnings emitted during transformation. */
69
+ warnings: string[];
70
+ }
71
+ /** Build context exposed to bundler plugins. */
72
+ export interface BundlerPluginBuild {
73
+ /** Register a resolver callback for the given filter. */
74
+ onResolve(options: {
75
+ filter: RegExp;
76
+ namespace?: string;
77
+ }, callback: (args: {
78
+ path: string;
79
+ namespace: string;
80
+ }) => {
81
+ path?: string;
82
+ namespace?: string;
83
+ external?: boolean;
84
+ } | undefined): void;
85
+ /** Register a loader callback for the given filter. */
86
+ onLoad(options: {
87
+ filter: RegExp;
88
+ namespace?: string;
89
+ }, callback: (args: {
90
+ path: string;
91
+ namespace: string;
92
+ }) => {
93
+ contents?: string;
94
+ loader?: string;
95
+ } | undefined): void;
96
+ }
97
+ /** A bundler plugin that hooks into the build pipeline. */
98
+ export interface BundlerPlugin {
99
+ /** Unique plugin name. */
100
+ name: string;
101
+ /** Called once when the plugin is registered. */
102
+ setup(build: BundlerPluginBuild): void;
103
+ }
104
+ /**
105
+ * Bundler contract interface.
106
+ *
107
+ * Implementations compile and bundle application source code into
108
+ * optimized output suitable for deployment or development.
109
+ */
110
+ export interface Bundler {
111
+ /** Bundle one or more entry points into output files. */
112
+ bundle(options: BundleOptions): Promise<BundleResult>;
113
+ /** Transform a single source string without writing to disk. */
114
+ transform(options: TransformOptions): Promise<TransformResult>;
115
+ /** Release bundler resources (child processes, watchers, etc.). */
116
+ stop?(): Promise<void>;
117
+ }
118
+ //# sourceMappingURL=bundler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../../../src/src/extensions/interfaces/bundler.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Contract interface for module bundlers.
3
+ *
4
+ * Default implementation: `@veryfront/ext-esbuild`
5
+ *
6
+ * @module extensions/interfaces/bundler
7
+ */
8
+ export {};
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Contract interface for key-value cache stores.
3
+ *
4
+ * Default implementation: `@veryfront/ext-redis`
5
+ *
6
+ * @module extensions/interfaces/cache-store
7
+ */
8
+ /**
9
+ * CacheStore contract interface.
10
+ *
11
+ * Implementations provide key-value caching with optional TTL support.
12
+ */
13
+ export interface CacheStore {
14
+ /** Retrieve a cached value by key. Returns `undefined` on miss. */
15
+ get<T = unknown>(key: string): Promise<T | undefined>;
16
+ /** Store a value under the given key with an optional TTL in seconds. */
17
+ set<T = unknown>(key: string, value: T, ttl?: number): Promise<void>;
18
+ /** Delete a cached entry. */
19
+ delete(key: string): Promise<void>;
20
+ /** Check whether a key exists in the cache. */
21
+ has(key: string): Promise<boolean>;
22
+ /** Remove all entries from the cache. */
23
+ clear(): Promise<void>;
24
+ /** Close connections and release resources. */
25
+ disconnect?(): Promise<void>;
26
+ }
27
+ //# sourceMappingURL=cache-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-store.d.ts","sourceRoot":"","sources":["../../../../src/src/extensions/interfaces/cache-store.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,mEAAmE;IACnE,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;IACtD,yEAAyE;IACzE,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,6BAA6B;IAC7B,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,+CAA+C;IAC/C,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACnC,yCAAyC;IACzC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,+CAA+C;IAC/C,UAAU,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Contract interface for key-value cache stores.
3
+ *
4
+ * Default implementation: `@veryfront/ext-redis`
5
+ *
6
+ * @module extensions/interfaces/cache-store
7
+ */
8
+ export {};
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Contract interface for code parsing and AST manipulation.
3
+ *
4
+ * Default implementation: `@veryfront/ext-babel`
5
+ *
6
+ * @module extensions/interfaces/code-parser
7
+ */
8
+ /** A single node in an abstract syntax tree. */
9
+ export interface ASTNode {
10
+ /** Node type identifier (e.g. `"Identifier"`, `"CallExpression"`). */
11
+ type: string;
12
+ /** Start character offset in the source. */
13
+ start?: number;
14
+ /** End character offset in the source. */
15
+ end?: number;
16
+ /** Child nodes and properties. */
17
+ [key: string]: unknown;
18
+ }
19
+ /** Wrapper providing traversal context for a visited node. */
20
+ export interface NodePath<T extends ASTNode = ASTNode> {
21
+ /** The AST node at this path. */
22
+ node: T;
23
+ /** The parent path, if any. */
24
+ parent: NodePath | undefined;
25
+ /** Replace this node with one or more new nodes. */
26
+ replaceWith(node: ASTNode): void;
27
+ /** Remove this node from the tree. */
28
+ remove(): void;
29
+ }
30
+ /** Visitor callbacks keyed by node type. */
31
+ export interface TraverseVisitor {
32
+ [nodeType: string]: ((path: NodePath) => void) | {
33
+ enter?(path: NodePath): void;
34
+ exit?(path: NodePath): void;
35
+ };
36
+ }
37
+ /** Options passed to {@link CodeParser.parse}. */
38
+ export interface ParseOptions {
39
+ /** Source code to parse. */
40
+ code: string;
41
+ /** File path hint for parser configuration (e.g. `.tsx`). */
42
+ filePath?: string;
43
+ /** Additional parser-specific options. */
44
+ [key: string]: unknown;
45
+ }
46
+ /** Options passed to {@link CodeParser.generate}. */
47
+ export interface GenerateOptions {
48
+ /** Include source maps in the output. */
49
+ sourceMaps?: boolean;
50
+ /** Minify the generated code. */
51
+ minified?: boolean;
52
+ /** Additional generator-specific options. */
53
+ [key: string]: unknown;
54
+ }
55
+ /** Result returned from {@link CodeParser.generate}. */
56
+ export interface GenerateResult {
57
+ /** Generated source code. */
58
+ code: string;
59
+ /** Source map, if requested. */
60
+ map?: string;
61
+ }
62
+ /**
63
+ * CodeParser contract interface.
64
+ *
65
+ * Implementations parse source code into ASTs, traverse/transform
66
+ * nodes, and generate code back from modified trees.
67
+ */
68
+ export interface CodeParser {
69
+ /** Parse source code into an abstract syntax tree. */
70
+ parse(options: ParseOptions): Promise<ASTNode>;
71
+ /** Walk the AST calling visitor callbacks for matching node types. */
72
+ traverse(ast: ASTNode, visitor: TraverseVisitor): void;
73
+ /** Generate source code from an AST. */
74
+ generate(ast: ASTNode, options?: GenerateOptions): Promise<GenerateResult>;
75
+ }
76
+ //# sourceMappingURL=code-parser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-parser.d.ts","sourceRoot":"","sources":["../../../../src/src/extensions/interfaces/code-parser.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,gDAAgD;AAChD,MAAM,WAAW,OAAO;IACtB,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kCAAkC;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,8DAA8D;AAC9D,MAAM,WAAW,QAAQ,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO;IACnD,iCAAiC;IACjC,IAAI,EAAE,CAAC,CAAC;IACR,+BAA+B;IAC/B,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC7B,oDAAoD;IACpD,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IACjC,sCAAsC;IACtC,MAAM,IAAI,IAAI,CAAC;CAChB;AAED,4CAA4C;AAC5C,MAAM,WAAW,eAAe;IAC9B,CAAC,QAAQ,EAAE,MAAM,GACb,CAAC,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC,GAC1B;QACA,KAAK,CAAC,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;KAC7B,CAAC;CACL;AAED,kDAAkD;AAClD,MAAM,WAAW,YAAY;IAC3B,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,qDAAqD;AACrD,MAAM,WAAW,eAAe;IAC9B,yCAAyC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6CAA6C;IAC7C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,wDAAwD;AACxD,MAAM,WAAW,cAAc;IAC7B,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB,sDAAsD;IACtD,KAAK,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC/C,sEAAsE;IACtE,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;IACvD,wCAAwC;IACxC,QAAQ,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CAC5E"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Contract interface for code parsing and AST manipulation.
3
+ *
4
+ * Default implementation: `@veryfront/ext-babel`
5
+ *
6
+ * @module extensions/interfaces/code-parser
7
+ */
8
+ export {};
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Contract interface for content transformation pipelines.
3
+ *
4
+ * Default implementation: `@veryfront/ext-mdx`
5
+ *
6
+ * @module extensions/interfaces/content-transformer
7
+ */
8
+ /** Options passed to {@link ContentTransformer.transform}. */
9
+ export interface ContentTransformOptions {
10
+ /** Raw source content (e.g. MDX, Markdown). */
11
+ source: string;
12
+ /** File path hint for the source content. */
13
+ filePath?: string;
14
+ /** Additional remark/rehype plugins or processor-specific settings. */
15
+ [key: string]: unknown;
16
+ }
17
+ /** Result returned from {@link ContentTransformer.transform}. */
18
+ export interface ContentTransformResult {
19
+ /** Transformed output code. */
20
+ code: string;
21
+ /** Front-matter or metadata extracted from the source. */
22
+ frontmatter?: Record<string, unknown>;
23
+ /** Extracted table-of-contents headings. */
24
+ headings?: Array<{
25
+ depth: number;
26
+ text: string;
27
+ slug: string;
28
+ }>;
29
+ }
30
+ /**
31
+ * ContentTransformer contract interface.
32
+ *
33
+ * Implementations transform authoring formats (MDX, Markdown, etc.)
34
+ * into renderable code or HTML.
35
+ */
36
+ export interface ContentTransformer {
37
+ /** Transform source content into its processed form. */
38
+ transform(options: ContentTransformOptions): Promise<ContentTransformResult>;
39
+ }
40
+ //# sourceMappingURL=content-transformer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-transformer.d.ts","sourceRoot":"","sources":["../../../../src/src/extensions/interfaces/content-transformer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,8DAA8D;AAC9D,MAAM,WAAW,uBAAuB;IACtC,+CAA+C;IAC/C,MAAM,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,iEAAiE;AACjE,MAAM,WAAW,sBAAsB;IACrC,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,0DAA0D;IAC1D,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjE;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,wDAAwD;IACxD,SAAS,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAC9E"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Contract interface for content transformation pipelines.
3
+ *
4
+ * Default implementation: `@veryfront/ext-mdx`
5
+ *
6
+ * @module extensions/interfaces/content-transformer
7
+ */
8
+ export {};
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Contract interface for CSS processing engines.
3
+ *
4
+ * Default implementation: `@veryfront/ext-tailwind`
5
+ *
6
+ * @module extensions/interfaces/css-processor
7
+ */
8
+ /** Options passed to {@link CSSProcessor.process}. */
9
+ export interface CSSProcessOptions {
10
+ /** Raw CSS or utility-class input. */
11
+ content: string;
12
+ /** Paths to source files used for scanning class usage. */
13
+ sources?: string[];
14
+ /** Enable minification of the output. */
15
+ minify?: boolean;
16
+ /** Extra implementation-specific options. */
17
+ [key: string]: unknown;
18
+ }
19
+ /** Result returned from {@link CSSProcessor.process}. */
20
+ export interface CSSProcessResult {
21
+ /** Processed CSS output. */
22
+ css: string;
23
+ /** Source map, if generated. */
24
+ map?: string;
25
+ }
26
+ /**
27
+ * CSSProcessor contract interface.
28
+ *
29
+ * Implementations compile utility classes or raw CSS into optimized
30
+ * stylesheets ready for the browser.
31
+ */
32
+ export interface CSSProcessor {
33
+ /** Process CSS input and return the compiled result. */
34
+ process(options: CSSProcessOptions): Promise<CSSProcessResult>;
35
+ /** Merge class names using the processor's conflict-resolution strategy. */
36
+ mergeClasses?(...classes: string[]): string;
37
+ }
38
+ //# sourceMappingURL=css-processor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css-processor.d.ts","sourceRoot":"","sources":["../../../../src/src/extensions/interfaces/css-processor.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,sDAAsD;AACtD,MAAM,WAAW,iBAAiB;IAChC,sCAAsC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,yCAAyC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6CAA6C;IAC7C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,yDAAyD;AACzD,MAAM,WAAW,gBAAgB;IAC/B,4BAA4B;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,gCAAgC;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,wDAAwD;IACxD,OAAO,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC/D,4EAA4E;IAC5E,YAAY,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;CAC7C"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Contract interface for CSS processing engines.
3
+ *
4
+ * Default implementation: `@veryfront/ext-tailwind`
5
+ *
6
+ * @module extensions/interfaces/css-processor
7
+ */
8
+ export {};
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Contract interface for database clients.
3
+ *
4
+ * Default implementation: `@veryfront/ext-postgres`
5
+ *
6
+ * @module extensions/interfaces/database-client
7
+ */
8
+ /** Result returned from {@link DatabaseClient.query}. */
9
+ export interface QueryResult<T = Record<string, unknown>> {
10
+ /** Array of rows returned by the query. */
11
+ rows: T[];
12
+ /** Number of rows affected by the statement. */
13
+ rowCount: number;
14
+ }
15
+ /**
16
+ * DatabaseClient contract interface.
17
+ *
18
+ * Implementations provide parameterized query execution against a
19
+ * relational or document database.
20
+ */
21
+ export interface DatabaseClient {
22
+ /** Run a read query and return the matching rows. */
23
+ query<T = Record<string, unknown>>(sql: string, params?: unknown[]): Promise<QueryResult<T>>;
24
+ /** Execute a write statement and return the affected row count. */
25
+ execute(sql: string, params?: unknown[]): Promise<QueryResult>;
26
+ /** Open or initialize the database connection. */
27
+ connect(): Promise<void>;
28
+ /** Close the database connection and release resources. */
29
+ disconnect(): Promise<void>;
30
+ }
31
+ //# sourceMappingURL=database-client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"database-client.d.ts","sourceRoot":"","sources":["../../../../src/src/extensions/interfaces/database-client.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,yDAAyD;AACzD,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACtD,2CAA2C;IAC3C,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,gDAAgD;IAChD,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,qDAAqD;IACrD,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,OAAO,EAAE,GACjB,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3B,mEAAmE;IACnE,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAC/D,kDAAkD;IAClD,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACzB,2DAA2D;IAC3D,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Contract interface for database clients.
3
+ *
4
+ * Default implementation: `@veryfront/ext-postgres`
5
+ *
6
+ * @module extensions/interfaces/database-client
7
+ */
8
+ export {};
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Contract interface for text embedding providers.
3
+ *
4
+ * Default implementation: `@veryfront/ext-embeddings`
5
+ *
6
+ * @module extensions/interfaces/embedding-provider
7
+ */
8
+ /** Options passed to {@link EmbeddingProvider.embed}. */
9
+ export interface EmbeddingOptions {
10
+ /** Model identifier (e.g. `"text-embedding-3-small"`). */
11
+ model: string;
12
+ /** Input texts to embed. */
13
+ input: string[];
14
+ /** Additional provider-specific options. */
15
+ [key: string]: unknown;
16
+ }
17
+ /** Result returned from {@link EmbeddingProvider.embed}. */
18
+ export interface EmbeddingResult {
19
+ /** One embedding vector per input string. */
20
+ embeddings: number[][];
21
+ /** Token usage statistics. */
22
+ usage?: {
23
+ promptTokens: number;
24
+ totalTokens: number;
25
+ };
26
+ }
27
+ /**
28
+ * EmbeddingProvider contract interface.
29
+ *
30
+ * Implementations convert text inputs into dense vector embeddings
31
+ * for similarity search and retrieval-augmented generation.
32
+ */
33
+ export interface EmbeddingProvider {
34
+ /** Generate embedding vectors for the given input texts. */
35
+ embed(options: EmbeddingOptions): Promise<EmbeddingResult>;
36
+ }
37
+ //# sourceMappingURL=embedding-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"embedding-provider.d.ts","sourceRoot":"","sources":["../../../../src/src/extensions/interfaces/embedding-provider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,yDAAyD;AACzD,MAAM,WAAW,gBAAgB;IAC/B,0DAA0D;IAC1D,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,4CAA4C;IAC5C,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,4DAA4D;AAC5D,MAAM,WAAW,eAAe;IAC9B,6CAA6C;IAC7C,UAAU,EAAE,MAAM,EAAE,EAAE,CAAC;IACvB,8BAA8B;IAC9B,KAAK,CAAC,EAAE;QACN,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAChC,4DAA4D;IAC5D,KAAK,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CAC5D"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Contract interface for text embedding providers.
3
+ *
4
+ * Default implementation: `@veryfront/ext-embeddings`
5
+ *
6
+ * @module extensions/interfaces/embedding-provider
7
+ */
8
+ export {};