@agentforge-io/nest 0.2.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 (255) hide show
  1. package/README.md +486 -0
  2. package/dist/agent-forge.module.d.ts +21 -0
  3. package/dist/agent-forge.module.js +144 -0
  4. package/dist/agent-forge.module.js.map +1 -0
  5. package/dist/auth/current-user.decorator.d.ts +8 -0
  6. package/dist/auth/current-user.decorator.js +9 -0
  7. package/dist/auth/current-user.decorator.js.map +1 -0
  8. package/dist/auth/public.decorator.d.ts +2 -0
  9. package/dist/auth/public.decorator.js +8 -0
  10. package/dist/auth/public.decorator.js.map +1 -0
  11. package/dist/constants.d.ts +2 -0
  12. package/dist/constants.js +9 -0
  13. package/dist/constants.js.map +1 -0
  14. package/dist/core/agent-runner.service.d.ts +1 -0
  15. package/dist/core/agent-runner.service.js +6 -0
  16. package/dist/core/agent-runner.service.js.map +1 -0
  17. package/dist/core/orchestrator.service.d.ts +2 -0
  18. package/dist/core/orchestrator.service.js +7 -0
  19. package/dist/core/orchestrator.service.js.map +1 -0
  20. package/dist/core/tool-registry.service.d.ts +1 -0
  21. package/dist/core/tool-registry.service.js +6 -0
  22. package/dist/core/tool-registry.service.js.map +1 -0
  23. package/dist/database/entities/auth-identity.entity.d.ts +1 -0
  24. package/dist/database/entities/auth-identity.entity.js +6 -0
  25. package/dist/database/entities/auth-identity.entity.js.map +1 -0
  26. package/dist/database/entities/conversation.entity.d.ts +1 -0
  27. package/dist/database/entities/conversation.entity.js +6 -0
  28. package/dist/database/entities/conversation.entity.js.map +1 -0
  29. package/dist/database/entities/email-token.entity.d.ts +1 -0
  30. package/dist/database/entities/email-token.entity.js +6 -0
  31. package/dist/database/entities/email-token.entity.js.map +1 -0
  32. package/dist/database/entities/index.d.ts +7 -0
  33. package/dist/database/entities/index.js +16 -0
  34. package/dist/database/entities/index.js.map +1 -0
  35. package/dist/database/entities/message.entity.d.ts +1 -0
  36. package/dist/database/entities/message.entity.js +6 -0
  37. package/dist/database/entities/message.entity.js.map +1 -0
  38. package/dist/database/entities/refresh-token.entity.d.ts +1 -0
  39. package/dist/database/entities/refresh-token.entity.js +6 -0
  40. package/dist/database/entities/refresh-token.entity.js.map +1 -0
  41. package/dist/database/entities/subscription.entity.d.ts +1 -0
  42. package/dist/database/entities/subscription.entity.js +6 -0
  43. package/dist/database/entities/subscription.entity.js.map +1 -0
  44. package/dist/database/entities/usage-record.entity.d.ts +1 -0
  45. package/dist/database/entities/usage-record.entity.js +6 -0
  46. package/dist/database/entities/usage-record.entity.js.map +1 -0
  47. package/dist/database/entities/user.entity.d.ts +1 -0
  48. package/dist/database/entities/user.entity.js +6 -0
  49. package/dist/database/entities/user.entity.js.map +1 -0
  50. package/dist/decorators/agent-tool.decorator.d.ts +21 -0
  51. package/dist/decorators/agent-tool.decorator.js +12 -0
  52. package/dist/decorators/agent-tool.decorator.js.map +1 -0
  53. package/dist/decorators/rate-limit.decorator.d.ts +9 -0
  54. package/dist/decorators/rate-limit.decorator.js +11 -0
  55. package/dist/decorators/rate-limit.decorator.js.map +1 -0
  56. package/dist/decorators/require-plan.decorator.d.ts +2 -0
  57. package/dist/decorators/require-plan.decorator.js +8 -0
  58. package/dist/decorators/require-plan.decorator.js.map +1 -0
  59. package/dist/filters/agentforge-exception.filter.d.ts +5 -0
  60. package/dist/filters/agentforge-exception.filter.js +40 -0
  61. package/dist/filters/agentforge-exception.filter.js.map +1 -0
  62. package/dist/guards/rate-limit.guard.d.ts +10 -0
  63. package/dist/guards/rate-limit.guard.js +73 -0
  64. package/dist/guards/rate-limit.guard.js.map +1 -0
  65. package/dist/guards/usage-limit.guard.d.ts +11 -0
  66. package/dist/guards/usage-limit.guard.js +57 -0
  67. package/dist/guards/usage-limit.guard.js.map +1 -0
  68. package/dist/index.d.ts +16 -0
  69. package/dist/index.js +35 -0
  70. package/dist/index.js.map +1 -0
  71. package/dist/interceptors/usage-tracking.interceptor.d.ts +6 -0
  72. package/dist/interceptors/usage-tracking.interceptor.js +30 -0
  73. package/dist/interceptors/usage-tracking.interceptor.js.map +1 -0
  74. package/dist/modules/admin/admin-plans.controller.d.ts +11 -0
  75. package/dist/modules/admin/admin-plans.controller.js +97 -0
  76. package/dist/modules/admin/admin-plans.controller.js.map +1 -0
  77. package/dist/modules/admin/admin-tenant-agents.controller.d.ts +61 -0
  78. package/dist/modules/admin/admin-tenant-agents.controller.js +424 -0
  79. package/dist/modules/admin/admin-tenant-agents.controller.js.map +1 -0
  80. package/dist/modules/admin/admin-tenant-billing.controller.d.ts +51 -0
  81. package/dist/modules/admin/admin-tenant-billing.controller.js +119 -0
  82. package/dist/modules/admin/admin-tenant-billing.controller.js.map +1 -0
  83. package/dist/modules/admin/admin-tenants.controller.d.ts +43 -0
  84. package/dist/modules/admin/admin-tenants.controller.js +178 -0
  85. package/dist/modules/admin/admin-tenants.controller.js.map +1 -0
  86. package/dist/modules/admin/admin-users.controller.d.ts +41 -0
  87. package/dist/modules/admin/admin-users.controller.js +121 -0
  88. package/dist/modules/admin/admin-users.controller.js.map +1 -0
  89. package/dist/modules/admin/admin.module.d.ts +2 -0
  90. package/dist/modules/admin/admin.module.js +26 -0
  91. package/dist/modules/admin/admin.module.js.map +1 -0
  92. package/dist/modules/admin/platform-admin.guard.d.ts +7 -0
  93. package/dist/modules/admin/platform-admin.guard.js +52 -0
  94. package/dist/modules/admin/platform-admin.guard.js.map +1 -0
  95. package/dist/modules/agent/agent.controller.d.ts +34 -0
  96. package/dist/modules/agent/agent.controller.js +178 -0
  97. package/dist/modules/agent/agent.controller.js.map +1 -0
  98. package/dist/modules/agent/agent.module.d.ts +2 -0
  99. package/dist/modules/agent/agent.module.js +23 -0
  100. package/dist/modules/agent/agent.module.js.map +1 -0
  101. package/dist/modules/agent/agent.service.d.ts +2 -0
  102. package/dist/modules/agent/agent.service.js +7 -0
  103. package/dist/modules/agent/agent.service.js.map +1 -0
  104. package/dist/modules/agent/dto/create-conversation.dto.d.ts +8 -0
  105. package/dist/modules/agent/dto/create-conversation.dto.js +48 -0
  106. package/dist/modules/agent/dto/create-conversation.dto.js.map +1 -0
  107. package/dist/modules/agent/dto/send-message.dto.d.ts +12 -0
  108. package/dist/modules/agent/dto/send-message.dto.js +42 -0
  109. package/dist/modules/agent/dto/send-message.dto.js.map +1 -0
  110. package/dist/modules/agent/in-memory-prepared-stream.store.d.ts +1 -0
  111. package/dist/modules/agent/in-memory-prepared-stream.store.js +6 -0
  112. package/dist/modules/agent/in-memory-prepared-stream.store.js.map +1 -0
  113. package/dist/modules/agent/prepared-stream.service.d.ts +1 -0
  114. package/dist/modules/agent/prepared-stream.service.js +7 -0
  115. package/dist/modules/agent/prepared-stream.service.js.map +1 -0
  116. package/dist/modules/agent/prepared-stream.types.d.ts +1 -0
  117. package/dist/modules/agent/prepared-stream.types.js +6 -0
  118. package/dist/modules/agent/prepared-stream.types.js.map +1 -0
  119. package/dist/modules/agent/redis-prepared-stream.store.d.ts +9 -0
  120. package/dist/modules/agent/redis-prepared-stream.store.js +48 -0
  121. package/dist/modules/agent/redis-prepared-stream.store.js.map +1 -0
  122. package/dist/modules/auth/auth.controller.d.ts +63 -0
  123. package/dist/modules/auth/auth.controller.js +255 -0
  124. package/dist/modules/auth/auth.controller.js.map +1 -0
  125. package/dist/modules/auth/auth.module.d.ts +4 -0
  126. package/dist/modules/auth/auth.module.js +71 -0
  127. package/dist/modules/auth/auth.module.js.map +1 -0
  128. package/dist/modules/auth/auth.service.d.ts +2 -0
  129. package/dist/modules/auth/auth.service.js +7 -0
  130. package/dist/modules/auth/auth.service.js.map +1 -0
  131. package/dist/modules/auth/decorators/current-user.decorator.d.ts +8 -0
  132. package/dist/modules/auth/decorators/current-user.decorator.js +12 -0
  133. package/dist/modules/auth/decorators/current-user.decorator.js.map +1 -0
  134. package/dist/modules/auth/decorators/public.decorator.d.ts +2 -0
  135. package/dist/modules/auth/decorators/public.decorator.js +8 -0
  136. package/dist/modules/auth/decorators/public.decorator.js.map +1 -0
  137. package/dist/modules/auth/dto/login.dto.d.ts +4 -0
  138. package/dist/modules/auth/dto/login.dto.js +29 -0
  139. package/dist/modules/auth/dto/login.dto.js.map +1 -0
  140. package/dist/modules/auth/dto/register.dto.d.ts +5 -0
  141. package/dist/modules/auth/dto/register.dto.js +36 -0
  142. package/dist/modules/auth/dto/register.dto.js.map +1 -0
  143. package/dist/modules/auth/guards/jwt-auth.guard.d.ts +9 -0
  144. package/dist/modules/auth/guards/jwt-auth.guard.js +37 -0
  145. package/dist/modules/auth/guards/jwt-auth.guard.js.map +1 -0
  146. package/dist/modules/auth/guards/local-auth.guard.d.ts +4 -0
  147. package/dist/modules/auth/guards/local-auth.guard.js +18 -0
  148. package/dist/modules/auth/guards/local-auth.guard.js.map +1 -0
  149. package/dist/modules/auth/guards/oauth-configured.guard.d.ts +11 -0
  150. package/dist/modules/auth/guards/oauth-configured.guard.js +51 -0
  151. package/dist/modules/auth/guards/oauth-configured.guard.js.map +1 -0
  152. package/dist/modules/auth/oauth.controller.d.ts +20 -0
  153. package/dist/modules/auth/oauth.controller.js +208 -0
  154. package/dist/modules/auth/oauth.controller.js.map +1 -0
  155. package/dist/modules/auth/refresh-token.service.d.ts +2 -0
  156. package/dist/modules/auth/refresh-token.service.js +7 -0
  157. package/dist/modules/auth/refresh-token.service.js.map +1 -0
  158. package/dist/modules/auth/strategies/github.strategy.d.ts +12 -0
  159. package/dist/modules/auth/strategies/github.strategy.js +57 -0
  160. package/dist/modules/auth/strategies/github.strategy.js.map +1 -0
  161. package/dist/modules/auth/strategies/google.strategy.d.ts +19 -0
  162. package/dist/modules/auth/strategies/google.strategy.js +56 -0
  163. package/dist/modules/auth/strategies/google.strategy.js.map +1 -0
  164. package/dist/modules/auth/strategies/jwt.strategy.d.ts +18 -0
  165. package/dist/modules/auth/strategies/jwt.strategy.js +49 -0
  166. package/dist/modules/auth/strategies/jwt.strategy.js.map +1 -0
  167. package/dist/modules/auth/strategies/local.strategy.d.ts +11 -0
  168. package/dist/modules/auth/strategies/local.strategy.js +31 -0
  169. package/dist/modules/auth/strategies/local.strategy.js.map +1 -0
  170. package/dist/modules/billing/adapters/billing-adapter.interface.d.ts +1 -0
  171. package/dist/modules/billing/adapters/billing-adapter.interface.js +6 -0
  172. package/dist/modules/billing/adapters/billing-adapter.interface.js.map +1 -0
  173. package/dist/modules/billing/adapters/stripe/stripe.adapter.d.ts +19 -0
  174. package/dist/modules/billing/adapters/stripe/stripe.adapter.js +118 -0
  175. package/dist/modules/billing/adapters/stripe/stripe.adapter.js.map +1 -0
  176. package/dist/modules/billing/billing.controller.d.ts +54 -0
  177. package/dist/modules/billing/billing.controller.js +180 -0
  178. package/dist/modules/billing/billing.controller.js.map +1 -0
  179. package/dist/modules/billing/billing.module.d.ts +2 -0
  180. package/dist/modules/billing/billing.module.js +57 -0
  181. package/dist/modules/billing/billing.module.js.map +1 -0
  182. package/dist/modules/billing/billing.service.d.ts +2 -0
  183. package/dist/modules/billing/billing.service.js +7 -0
  184. package/dist/modules/billing/billing.service.js.map +1 -0
  185. package/dist/modules/billing/usage.service.d.ts +2 -0
  186. package/dist/modules/billing/usage.service.js +6 -0
  187. package/dist/modules/billing/usage.service.js.map +1 -0
  188. package/dist/modules/connectors/connectors.controller.d.ts +16 -0
  189. package/dist/modules/connectors/connectors.controller.js +142 -0
  190. package/dist/modules/connectors/connectors.controller.js.map +1 -0
  191. package/dist/modules/connectors/connectors.module.d.ts +2 -0
  192. package/dist/modules/connectors/connectors.module.js +20 -0
  193. package/dist/modules/connectors/connectors.module.js.map +1 -0
  194. package/dist/modules/conversation/conversation.module.d.ts +2 -0
  195. package/dist/modules/conversation/conversation.module.js +17 -0
  196. package/dist/modules/conversation/conversation.module.js.map +1 -0
  197. package/dist/modules/conversation/conversation.service.d.ts +1 -0
  198. package/dist/modules/conversation/conversation.service.js +7 -0
  199. package/dist/modules/conversation/conversation.service.js.map +1 -0
  200. package/dist/modules/email/adapters/email-adapter.interface.d.ts +1 -0
  201. package/dist/modules/email/adapters/email-adapter.interface.js +6 -0
  202. package/dist/modules/email/adapters/email-adapter.interface.js.map +1 -0
  203. package/dist/modules/email/adapters/noop.adapter.d.ts +1 -0
  204. package/dist/modules/email/adapters/noop.adapter.js +6 -0
  205. package/dist/modules/email/adapters/noop.adapter.js.map +1 -0
  206. package/dist/modules/email/adapters/resend.adapter.d.ts +1 -0
  207. package/dist/modules/email/adapters/resend.adapter.js +6 -0
  208. package/dist/modules/email/adapters/resend.adapter.js.map +1 -0
  209. package/dist/modules/email/email.module.d.ts +2 -0
  210. package/dist/modules/email/email.module.js +17 -0
  211. package/dist/modules/email/email.module.js.map +1 -0
  212. package/dist/modules/email/email.service.d.ts +1 -0
  213. package/dist/modules/email/email.service.js +6 -0
  214. package/dist/modules/email/email.service.js.map +1 -0
  215. package/dist/modules/email/templates/transactional.template.d.ts +18 -0
  216. package/dist/modules/email/templates/transactional.template.js +43 -0
  217. package/dist/modules/email/templates/transactional.template.js.map +1 -0
  218. package/dist/modules/mcp/mcp-admin.controller.d.ts +35 -0
  219. package/dist/modules/mcp/mcp-admin.controller.js +111 -0
  220. package/dist/modules/mcp/mcp-admin.controller.js.map +1 -0
  221. package/dist/modules/mcp/mcp.module.d.ts +8 -0
  222. package/dist/modules/mcp/mcp.module.js +38 -0
  223. package/dist/modules/mcp/mcp.module.js.map +1 -0
  224. package/dist/modules/public-chat/public-chat.controller.d.ts +54 -0
  225. package/dist/modules/public-chat/public-chat.controller.js +279 -0
  226. package/dist/modules/public-chat/public-chat.controller.js.map +1 -0
  227. package/dist/modules/public-chat/public-chat.module.d.ts +2 -0
  228. package/dist/modules/public-chat/public-chat.module.js +20 -0
  229. package/dist/modules/public-chat/public-chat.module.js.map +1 -0
  230. package/dist/modules/queue/jobs.controller.d.ts +23 -0
  231. package/dist/modules/queue/jobs.controller.js +98 -0
  232. package/dist/modules/queue/jobs.controller.js.map +1 -0
  233. package/dist/modules/queue/processors/agent.processor.d.ts +12 -0
  234. package/dist/modules/queue/processors/agent.processor.js +65 -0
  235. package/dist/modules/queue/processors/agent.processor.js.map +1 -0
  236. package/dist/modules/queue/queue.module.d.ts +5 -0
  237. package/dist/modules/queue/queue.module.js +55 -0
  238. package/dist/modules/queue/queue.module.js.map +1 -0
  239. package/dist/modules/queue/queue.service.d.ts +15 -0
  240. package/dist/modules/queue/queue.service.js +86 -0
  241. package/dist/modules/queue/queue.service.js.map +1 -0
  242. package/dist/providers/repositories.providers.d.ts +3 -0
  243. package/dist/providers/repositories.providers.js +35 -0
  244. package/dist/providers/repositories.providers.js.map +1 -0
  245. package/dist/providers/services.providers.d.ts +4 -0
  246. package/dist/providers/services.providers.js +142 -0
  247. package/dist/providers/services.providers.js.map +1 -0
  248. package/dist/redis/redis.provider.d.ts +3 -0
  249. package/dist/redis/redis.provider.js +48 -0
  250. package/dist/redis/redis.provider.js.map +1 -0
  251. package/dist/tsconfig.build.tsbuildinfo +1 -0
  252. package/dist/types/index.d.ts +1 -0
  253. package/dist/types/index.js +18 -0
  254. package/dist/types/index.js.map +1 -0
  255. package/package.json +63 -0
@@ -0,0 +1 @@
1
+ export * from '@agentforge-io/core';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("@agentforge-io/core"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGA,sDAAoC"}
package/package.json ADDED
@@ -0,0 +1,63 @@
1
+ {
2
+ "name": "@agentforge-io/nest",
3
+ "version": "0.2.0",
4
+ "description": "NestJS bindings for AgentForge — `AgentForgeModule.forRoot/forRootAsync` plus controllers, guards and decorators. Wraps @agentforge-io/core.",
5
+ "license": "MIT",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "build": "tsc -p tsconfig.build.json",
13
+ "build:watch": "tsc -p tsconfig.build.json --watch",
14
+ "clean": "rm -rf dist *.tgz"
15
+ },
16
+ "peerDependencies": {
17
+ "@nestjs/common": "^10.0.0",
18
+ "@nestjs/core": "^10.0.0",
19
+ "@nestjs/platform-express": "^10.0.0",
20
+ "reflect-metadata": "^0.1.13",
21
+ "rxjs": "^7.0.0"
22
+ },
23
+ "dependencies": {
24
+ "@agentforge-io/core": "^0.2.0",
25
+ "@agentforge-io/typeorm": "^0.2.0",
26
+ "@anthropic-ai/sdk": "^0.32.0",
27
+ "@nestjs/bull": "^10.0.0",
28
+ "@nestjs/bullmq": "^10.0.0",
29
+ "@nestjs/config": "^3.0.0",
30
+ "@nestjs/jwt": "^10.0.0",
31
+ "@nestjs/passport": "^11.0.5",
32
+ "@nestjs/schedule": "^4.0.0",
33
+ "@nestjs/swagger": "^7.0.0",
34
+ "@nestjs/typeorm": "^10.0.0",
35
+ "bcryptjs": "^3.0.3",
36
+ "bull": "^4.12.0",
37
+ "bullmq": "^5.0.0",
38
+ "class-transformer": "^0.5.1",
39
+ "class-validator": "^0.14.0",
40
+ "ioredis": "^5.10.1",
41
+ "passport": "^0.7.0",
42
+ "passport-jwt": "^4.0.1",
43
+ "passport-local": "^1.0.0",
44
+ "pg": "^8.11.0",
45
+ "resend": "^6.12.3",
46
+ "stripe": "^14.0.0",
47
+ "typeorm": "^0.3.17",
48
+ "uuid": "^9.0.0",
49
+ "zod": "^3.22.0"
50
+ },
51
+ "devDependencies": {
52
+ "@nestjs/testing": "^10.0.0",
53
+ "@types/bcryptjs": "^2.4.6",
54
+ "@types/bull": "^4.10.0",
55
+ "@types/express": "^4.17.21",
56
+ "@types/node": "^20.0.0",
57
+ "@types/passport-jwt": "^4.0.1",
58
+ "@types/passport-local": "^1.0.38",
59
+ "@types/pg": "^8.10.0",
60
+ "@types/uuid": "^9.0.0",
61
+ "typescript": "^5.0.0"
62
+ }
63
+ }