@resolveio/server-lib 22.3.220 → 22.3.221

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 (745) hide show
  1. package/.nodemon.json +5 -0
  2. package/.vscode/settings.json +21 -0
  3. package/AGENTS.md +195 -0
  4. package/README.md +22 -0
  5. package/build_package.sh +5 -0
  6. package/compileDTS.pl +64 -0
  7. package/docs/ai-assistant-nightly-eval.md +65 -0
  8. package/docs/ai-assistant-preflight-checklist.md +23 -0
  9. package/docs/ai-assistant-report-builder-bridge-playbook.md +115 -0
  10. package/eslint-plugin-custom/index.js +7 -0
  11. package/eslint-plugin-custom/rules/no-filter-zero-index.js +44 -0
  12. package/eslint.config.js +103 -0
  13. package/gulpfile.js +216 -0
  14. package/methodAndPublicationListGenerator.py +375 -0
  15. package/mongodbensurers.js +2 -0
  16. package/mongostop.js +3 -0
  17. package/package.json +1 -1
  18. package/scripts/cleanup-bypassed-callmethod-logs.js +616 -0
  19. package/settings.development.json +25 -0
  20. package/settings.development.redacted.json +25 -0
  21. package/src/.env +12 -0
  22. package/src/ai/assistant-core-heuristics.ts +379 -0
  23. package/src/ai/resolveio-platform-intelligence-memory-corpus.ts +185 -0
  24. package/src/ai/resolveio-platform-intelligence-memory.ts +325 -0
  25. package/{ai/resolveio-platform-intelligence-types.d.ts → src/ai/resolveio-platform-intelligence-types.ts} +20 -15
  26. package/src/ai/resolveio-platform-intelligence.ts +462 -0
  27. package/src/client-server-app.ts +12 -0
  28. package/src/collections/ai-run.collection.ts +117 -0
  29. package/src/collections/ai-terminal-conversation.collection.ts +91 -0
  30. package/src/collections/ai-terminal-issue-report.collection.ts +99 -0
  31. package/src/collections/ai-terminal-message.collection.ts +77 -0
  32. package/src/collections/app-setting.collection.ts +104 -0
  33. package/src/collections/app-status.collection.ts +58 -0
  34. package/src/collections/communication-metric.collection.ts +84 -0
  35. package/src/collections/counter.collection.ts +56 -0
  36. package/src/collections/cron-job-history.collection.ts +94 -0
  37. package/src/collections/cron-job.collection.ts +92 -0
  38. package/src/collections/customer-notification.collection.ts +131 -0
  39. package/src/collections/customer-portal-password.collection.ts +76 -0
  40. package/src/collections/email-history.collection.ts +134 -0
  41. package/src/collections/email-verified.collection.ts +62 -0
  42. package/src/collections/file.collection.ts +74 -0
  43. package/src/collections/flag-update.collection.ts +57 -0
  44. package/src/collections/flag.collection.ts +57 -0
  45. package/src/collections/log-method-latency.collection.ts +77 -0
  46. package/src/collections/log-subscription.collection.ts +80 -0
  47. package/src/collections/log.collection.ts +93 -0
  48. package/src/collections/logged-in-users.collection.ts +67 -0
  49. package/src/collections/monitor-cpu.collection.ts +65 -0
  50. package/src/collections/monitor-function.collection.ts +74 -0
  51. package/src/collections/monitor-memory.collection.ts +77 -0
  52. package/src/collections/monitor-mongo.collection.ts +71 -0
  53. package/src/collections/notification.collection.ts +57 -0
  54. package/src/collections/openai-usage-ledger.collection.ts +131 -0
  55. package/src/collections/report-builder-dashboard-builder.collection.ts +109 -0
  56. package/src/collections/report-builder-library.collection.ts +89 -0
  57. package/src/collections/report-builder-report.collection.ts +184 -0
  58. package/src/collections/user-group.collection.ts +89 -0
  59. package/src/collections/user-guide.collection.ts +57 -0
  60. package/src/collections/user.collection.ts +181 -0
  61. package/src/cron/cron.ts +117 -0
  62. package/src/fixtures/cron-jobs.ts +95 -0
  63. package/src/fixtures/init.ts +35 -0
  64. package/src/http/auth.ts +818 -0
  65. package/src/http/health.ts +7 -0
  66. package/src/http/home.ts +90 -0
  67. package/src/http/slow-query-publication.ts +49 -0
  68. package/src/index.ts +1 -0
  69. package/src/managers/ai-assistant-codex-manager.manager.ts +1131 -0
  70. package/src/managers/ai-run-evidence.manager.ts +264 -0
  71. package/src/managers/communication-metric.manager.ts +82 -0
  72. package/src/managers/cron.manager.ts +333 -0
  73. package/src/managers/customer-notification-content.manager.ts +236 -0
  74. package/src/managers/diagnostic-manager-bootstrap.ts +165 -0
  75. package/src/managers/error-auto-fix.manager.ts +2767 -0
  76. package/src/managers/local-log.manager.ts +113 -0
  77. package/src/managers/method.manager.ts +1857 -0
  78. package/src/managers/mongo.manager.ts +4575 -0
  79. package/src/managers/monitor.manager.ts +507 -0
  80. package/src/managers/openai-usage-ledger.manager.ts +112 -0
  81. package/src/managers/slow-query-verifier.manager.ts +3590 -0
  82. package/src/managers/slow-query.manager.ts +519 -0
  83. package/src/managers/subscription.manager.ts +3128 -0
  84. package/src/managers/websocket.manager.ts +746 -0
  85. package/src/managers/worker-dispatcher.manager.ts +1360 -0
  86. package/src/managers/worker-server.manager.ts +536 -0
  87. package/src/methods/accounts.ts +532 -0
  88. package/src/methods/ai-terminal.ts +29070 -0
  89. package/src/methods/app-settings.ts +114 -0
  90. package/src/methods/aws.ts +649 -0
  91. package/src/methods/collections.ts +641 -0
  92. package/src/methods/counters.ts +69 -0
  93. package/src/methods/cron-jobs.ts +2614 -0
  94. package/src/methods/customer-notifications.ts +458 -0
  95. package/src/methods/diagnostics.ts +616 -0
  96. package/src/methods/flag-updates.ts +7 -0
  97. package/src/methods/flags.ts +7 -0
  98. package/src/methods/logs.ts +657 -0
  99. package/src/methods/mongo-explorer.ts +1880 -0
  100. package/src/methods/monitor.ts +540 -0
  101. package/src/methods/pdf.ts +1236 -0
  102. package/src/methods/publications.ts +129 -0
  103. package/src/methods/report-builder.ts +3300 -0
  104. package/src/methods/support.ts +335 -0
  105. package/src/models/ai-run.model.ts +27 -0
  106. package/src/models/ai-terminal-conversation.model.ts +19 -0
  107. package/src/models/ai-terminal-issue-report.model.ts +21 -0
  108. package/src/models/ai-terminal-message.model.ts +24 -0
  109. package/src/models/app-setting.model.ts +17 -0
  110. package/{models/app-status.model.d.ts → src/models/app-status.model.ts} +3 -2
  111. package/{models/billing-logged-in-users.model.d.ts → src/models/billing-logged-in-users.model.ts} +5 -4
  112. package/src/models/collection-document.model.ts +24 -0
  113. package/src/models/communication-metric.model.ts +23 -0
  114. package/{models/counter.model.d.ts → src/models/counter.model.ts} +4 -3
  115. package/src/models/cron-job-history.model.ts +16 -0
  116. package/src/models/cron-job.model.ts +15 -0
  117. package/src/models/customer-notification.model.ts +28 -0
  118. package/src/models/customer-portal-password.model.ts +12 -0
  119. package/src/models/dialog.model.ts +25 -0
  120. package/{models/email-history.model.js → src/models/email-history.model.ts} +36 -4
  121. package/{models/email-verified.model.d.ts → src/models/email-verified.model.ts} +6 -5
  122. package/{models/file.model.d.ts → src/models/file.model.ts} +8 -7
  123. package/{models/flag-update.model.d.ts → src/models/flag-update.model.ts} +4 -3
  124. package/{models/flag.model.d.ts → src/models/flag.model.ts} +4 -3
  125. package/src/models/log-method-latency.model.ts +11 -0
  126. package/{models/log-subscription.model.d.ts → src/models/log-subscription.model.ts} +11 -9
  127. package/src/models/log.model.ts +19 -0
  128. package/{models/logged-in-users.model.d.ts → src/models/logged-in-users.model.ts} +6 -5
  129. package/{models/method-response.model.d.ts → src/models/method-response.model.ts} +7 -6
  130. package/src/models/method.model.ts +25 -0
  131. package/{models/monitor-cpu.model.d.ts → src/models/monitor-cpu.model.ts} +9 -7
  132. package/src/models/monitor-function.model.ts +16 -0
  133. package/src/models/monitor-memory.model.ts +17 -0
  134. package/src/models/monitor-mongo.model.ts +15 -0
  135. package/{models/notification.model.d.ts → src/models/notification.model.ts} +6 -4
  136. package/src/models/openai-usage-ledger.model.ts +56 -0
  137. package/src/models/pagination.model.ts +35 -0
  138. package/src/models/permission.model.ts +14 -0
  139. package/src/models/report-builder-dashboard-builder.model.ts +29 -0
  140. package/src/models/report-builder-library.model.ts +20 -0
  141. package/src/models/report-builder-report.model.ts +136 -0
  142. package/src/models/report-builder.model.ts +68 -0
  143. package/src/models/select-data-label.model.ts +9 -0
  144. package/src/models/server-message.model.ts +31 -0
  145. package/src/models/slow-query-report.model.ts +23 -0
  146. package/src/models/subscription.model.ts +73 -0
  147. package/src/models/support-ticket.model.ts +104 -0
  148. package/src/models/user-group.model.ts +24 -0
  149. package/{models/user-guide.model.d.ts → src/models/user-guide.model.ts} +5 -4
  150. package/src/models/user.model.ts +96 -0
  151. package/src/private/images/ResolveIO.png +0 -0
  152. package/src/publications/ai-terminal.ts +73 -0
  153. package/src/publications/app-settings.ts +25 -0
  154. package/src/publications/app-status.ts +13 -0
  155. package/src/publications/cron-jobs.ts +40 -0
  156. package/src/publications/customer-notifications.ts +101 -0
  157. package/src/publications/files.ts +33 -0
  158. package/src/publications/flags-update.ts +19 -0
  159. package/src/publications/flags.ts +19 -0
  160. package/src/publications/logs.ts +163 -0
  161. package/src/publications/notifications.ts +13 -0
  162. package/src/publications/report-builder-dashboard-builders.ts +39 -0
  163. package/src/publications/report-builder-libraries.ts +41 -0
  164. package/src/publications/report-builder-reports.ts +47 -0
  165. package/src/publications/super-admin.ts +13 -0
  166. package/src/publications/user-groups.ts +12 -0
  167. package/src/publications/user-guides.ts +12 -0
  168. package/src/resolveio-server-app.ts +617 -0
  169. package/src/server-app.ts +3354 -0
  170. package/src/services/codex-client.ts +1231 -0
  171. package/src/services/openai-client.ts +265 -0
  172. package/src/types/error-report.ts +26 -0
  173. package/src/types/js-tiktoken.d.ts +11 -0
  174. package/src/types/slow-query-report.ts +28 -0
  175. package/src/util/ai-qa-policy.ts +925 -0
  176. package/src/util/ai-run-evidence-adapters.ts +8347 -0
  177. package/src/util/ai-run-evidence-dashboard.ts +323 -0
  178. package/src/util/ai-run-evidence-eval.ts +1057 -0
  179. package/src/util/ai-run-evidence.ts +1430 -0
  180. package/src/util/ai-runner-artifacts.ts +586 -0
  181. package/src/util/ai-runner-manager-autopilot.ts +961 -0
  182. package/src/util/ai-runner-manager-policy.ts +5011 -0
  183. package/src/util/ai-runner-qa-auth.ts +838 -0
  184. package/src/util/ai-runner-qa-tools.ts +3536 -0
  185. package/src/util/aicoder-runner-v6.ts +3121 -0
  186. package/src/util/common.ts +649 -0
  187. package/src/util/customer-portal-password.ts +183 -0
  188. package/src/util/error-reporter.ts +332 -0
  189. package/src/util/error-tracking.ts +79 -0
  190. package/src/util/openai-usage-cost.ts +114 -0
  191. package/src/util/report-builder-unwinds.ts +180 -0
  192. package/src/util/runner-process-janitor.ts +219 -0
  193. package/src/util/schema-report-builder.ts +448 -0
  194. package/src/util/slow-query-reporter.ts +216 -0
  195. package/src/util/subscription-dependency-context.ts +1096 -0
  196. package/src/util/support-runner-v5.ts +10040 -0
  197. package/src/util/tokenizer.ts +38 -0
  198. package/src/workers/codex-runner.worker.ts +142 -0
  199. package/start_server.sh +5 -0
  200. package/tests/ai-assistant-corpus-build.ts +484 -0
  201. package/tests/ai-assistant-corpus-replay-e2e.ts +774 -0
  202. package/tests/ai-assistant-data-parity-e2e.ts +1989 -0
  203. package/tests/ai-assistant-eval-triage.ts +831 -0
  204. package/tests/ai-assistant-openai-e2e.ts +1061 -0
  205. package/tests/ai-assistant-openai-git-e2e.ts +155 -0
  206. package/tests/ai-assistant-preflight-matrix.ts +215 -0
  207. package/tests/ai-assistant-routing-eval.test.ts +585 -0
  208. package/tests/ai-assistant-snf-live-eval.ts +975 -0
  209. package/tests/ai-assistant-utils.test.ts +4834 -0
  210. package/tests/ai-manager-autopilot-snapshot.test.ts +193 -0
  211. package/tests/ai-manager-recovery-checkpoint.test.ts +1383 -0
  212. package/tests/ai-run-eval.test.ts +132 -0
  213. package/tests/ai-run-evidence.test.ts +3773 -0
  214. package/tests/ai-runner-contract.test.ts +515 -0
  215. package/tests/aicoder-runner-v6.test.ts +822 -0
  216. package/tests/error-reporter.test.ts +145 -0
  217. package/tests/method-publication-generator.test.ts +46 -0
  218. package/tests/report-builder-linking.test.ts +79 -0
  219. package/tests/resolveio-platform-intelligence.test.ts +352 -0
  220. package/tests/server-app-cron-owner.test.ts +127 -0
  221. package/tests/subscription-connect-race.test.ts +158 -0
  222. package/tests/subscription-dependency-context.test.ts +324 -0
  223. package/tests/subscription-manager-collection-tracking.test.ts +86 -0
  224. package/tests/subscription-manager-invalidation.test.ts +86 -0
  225. package/tests/support-runner-v5.test.ts +3201 -0
  226. package/tsconfig.json +34 -0
  227. package/ai/assistant-core-heuristics.d.ts +0 -11
  228. package/ai/assistant-core-heuristics.js +0 -356
  229. package/ai/assistant-core-heuristics.js.map +0 -1
  230. package/ai/resolveio-platform-intelligence-memory-corpus.d.ts +0 -3
  231. package/ai/resolveio-platform-intelligence-memory-corpus.js +0 -214
  232. package/ai/resolveio-platform-intelligence-memory-corpus.js.map +0 -1
  233. package/ai/resolveio-platform-intelligence-memory.d.ts +0 -20
  234. package/ai/resolveio-platform-intelligence-memory.js +0 -341
  235. package/ai/resolveio-platform-intelligence-memory.js.map +0 -1
  236. package/ai/resolveio-platform-intelligence-types.js +0 -4
  237. package/ai/resolveio-platform-intelligence-types.js.map +0 -1
  238. package/ai/resolveio-platform-intelligence.d.ts +0 -6
  239. package/ai/resolveio-platform-intelligence.js +0 -463
  240. package/ai/resolveio-platform-intelligence.js.map +0 -1
  241. package/client-server-app.d.ts +0 -1
  242. package/client-server-app.js +0 -68
  243. package/client-server-app.js.map +0 -1
  244. package/collections/ai-run.collection.d.ts +0 -3
  245. package/collections/ai-run.collection.js +0 -170
  246. package/collections/ai-run.collection.js.map +0 -1
  247. package/collections/ai-terminal-conversation.collection.d.ts +0 -2
  248. package/collections/ai-terminal-conversation.collection.js +0 -140
  249. package/collections/ai-terminal-conversation.collection.js.map +0 -1
  250. package/collections/ai-terminal-issue-report.collection.d.ts +0 -2
  251. package/collections/ai-terminal-issue-report.collection.js +0 -148
  252. package/collections/ai-terminal-issue-report.collection.js.map +0 -1
  253. package/collections/ai-terminal-message.collection.d.ts +0 -2
  254. package/collections/ai-terminal-message.collection.js +0 -121
  255. package/collections/ai-terminal-message.collection.js.map +0 -1
  256. package/collections/app-setting.collection.d.ts +0 -3
  257. package/collections/app-setting.collection.js +0 -103
  258. package/collections/app-setting.collection.js.map +0 -1
  259. package/collections/app-status.collection.d.ts +0 -3
  260. package/collections/app-status.collection.js +0 -57
  261. package/collections/app-status.collection.js.map +0 -1
  262. package/collections/communication-metric.collection.d.ts +0 -2
  263. package/collections/communication-metric.collection.js +0 -133
  264. package/collections/communication-metric.collection.js.map +0 -1
  265. package/collections/counter.collection.d.ts +0 -3
  266. package/collections/counter.collection.js +0 -56
  267. package/collections/counter.collection.js.map +0 -1
  268. package/collections/cron-job-history.collection.d.ts +0 -3
  269. package/collections/cron-job-history.collection.js +0 -137
  270. package/collections/cron-job-history.collection.js.map +0 -1
  271. package/collections/cron-job.collection.d.ts +0 -3
  272. package/collections/cron-job.collection.js +0 -92
  273. package/collections/cron-job.collection.js.map +0 -1
  274. package/collections/customer-notification.collection.d.ts +0 -3
  275. package/collections/customer-notification.collection.js +0 -130
  276. package/collections/customer-notification.collection.js.map +0 -1
  277. package/collections/customer-portal-password.collection.d.ts +0 -3
  278. package/collections/customer-portal-password.collection.js +0 -75
  279. package/collections/customer-portal-password.collection.js.map +0 -1
  280. package/collections/email-history.collection.d.ts +0 -3
  281. package/collections/email-history.collection.js +0 -134
  282. package/collections/email-history.collection.js.map +0 -1
  283. package/collections/email-verified.collection.d.ts +0 -3
  284. package/collections/email-verified.collection.js +0 -62
  285. package/collections/email-verified.collection.js.map +0 -1
  286. package/collections/file.collection.d.ts +0 -3
  287. package/collections/file.collection.js +0 -74
  288. package/collections/file.collection.js.map +0 -1
  289. package/collections/flag-update.collection.d.ts +0 -3
  290. package/collections/flag-update.collection.js +0 -57
  291. package/collections/flag-update.collection.js.map +0 -1
  292. package/collections/flag.collection.d.ts +0 -3
  293. package/collections/flag.collection.js +0 -57
  294. package/collections/flag.collection.js.map +0 -1
  295. package/collections/log-method-latency.collection.d.ts +0 -3
  296. package/collections/log-method-latency.collection.js +0 -77
  297. package/collections/log-method-latency.collection.js.map +0 -1
  298. package/collections/log-subscription.collection.d.ts +0 -3
  299. package/collections/log-subscription.collection.js +0 -80
  300. package/collections/log-subscription.collection.js.map +0 -1
  301. package/collections/log.collection.d.ts +0 -3
  302. package/collections/log.collection.js +0 -93
  303. package/collections/log.collection.js.map +0 -1
  304. package/collections/logged-in-users.collection.d.ts +0 -3
  305. package/collections/logged-in-users.collection.js +0 -67
  306. package/collections/logged-in-users.collection.js.map +0 -1
  307. package/collections/monitor-cpu.collection.d.ts +0 -3
  308. package/collections/monitor-cpu.collection.js +0 -65
  309. package/collections/monitor-cpu.collection.js.map +0 -1
  310. package/collections/monitor-function.collection.d.ts +0 -3
  311. package/collections/monitor-function.collection.js +0 -74
  312. package/collections/monitor-function.collection.js.map +0 -1
  313. package/collections/monitor-memory.collection.d.ts +0 -3
  314. package/collections/monitor-memory.collection.js +0 -77
  315. package/collections/monitor-memory.collection.js.map +0 -1
  316. package/collections/monitor-mongo.collection.d.ts +0 -3
  317. package/collections/monitor-mongo.collection.js +0 -71
  318. package/collections/monitor-mongo.collection.js.map +0 -1
  319. package/collections/notification.collection.d.ts +0 -3
  320. package/collections/notification.collection.js +0 -57
  321. package/collections/notification.collection.js.map +0 -1
  322. package/collections/openai-usage-ledger.collection.d.ts +0 -2
  323. package/collections/openai-usage-ledger.collection.js +0 -188
  324. package/collections/openai-usage-ledger.collection.js.map +0 -1
  325. package/collections/report-builder-dashboard-builder.collection.d.ts +0 -3
  326. package/collections/report-builder-dashboard-builder.collection.js +0 -109
  327. package/collections/report-builder-dashboard-builder.collection.js.map +0 -1
  328. package/collections/report-builder-library.collection.d.ts +0 -3
  329. package/collections/report-builder-library.collection.js +0 -87
  330. package/collections/report-builder-library.collection.js.map +0 -1
  331. package/collections/report-builder-report.collection.d.ts +0 -4
  332. package/collections/report-builder-report.collection.js +0 -184
  333. package/collections/report-builder-report.collection.js.map +0 -1
  334. package/collections/user-group.collection.d.ts +0 -4
  335. package/collections/user-group.collection.js +0 -89
  336. package/collections/user-group.collection.js.map +0 -1
  337. package/collections/user-guide.collection.d.ts +0 -3
  338. package/collections/user-guide.collection.js +0 -57
  339. package/collections/user-guide.collection.js.map +0 -1
  340. package/collections/user.collection.d.ts +0 -4
  341. package/collections/user.collection.js +0 -180
  342. package/collections/user.collection.js.map +0 -1
  343. package/cron/cron.d.ts +0 -14
  344. package/cron/cron.js +0 -216
  345. package/cron/cron.js.map +0 -1
  346. package/fixtures/cron-jobs.d.ts +0 -1
  347. package/fixtures/cron-jobs.js +0 -150
  348. package/fixtures/cron-jobs.js.map +0 -1
  349. package/fixtures/init.d.ts +0 -1
  350. package/fixtures/init.js +0 -91
  351. package/fixtures/init.js.map +0 -1
  352. package/http/auth.d.ts +0 -2
  353. package/http/auth.js +0 -951
  354. package/http/auth.js.map +0 -1
  355. package/http/health.d.ts +0 -1
  356. package/http/health.js +0 -11
  357. package/http/health.js.map +0 -1
  358. package/http/home.d.ts +0 -1
  359. package/http/home.js +0 -134
  360. package/http/home.js.map +0 -1
  361. package/http/slow-query-publication.d.ts +0 -2
  362. package/http/slow-query-publication.js +0 -99
  363. package/http/slow-query-publication.js.map +0 -1
  364. package/index.d.ts +0 -1
  365. package/index.js +0 -19
  366. package/index.js.map +0 -1
  367. package/managers/ai-assistant-codex-manager.manager.d.ts +0 -67
  368. package/managers/ai-assistant-codex-manager.manager.js +0 -1113
  369. package/managers/ai-assistant-codex-manager.manager.js.map +0 -1
  370. package/managers/ai-run-evidence.manager.d.ts +0 -36
  371. package/managers/ai-run-evidence.manager.js +0 -377
  372. package/managers/ai-run-evidence.manager.js.map +0 -1
  373. package/managers/communication-metric.manager.d.ts +0 -16
  374. package/managers/communication-metric.manager.js +0 -134
  375. package/managers/communication-metric.manager.js.map +0 -1
  376. package/managers/cron.manager.d.ts +0 -20
  377. package/managers/cron.manager.js +0 -534
  378. package/managers/cron.manager.js.map +0 -1
  379. package/managers/customer-notification-content.manager.d.ts +0 -55
  380. package/managers/customer-notification-content.manager.js +0 -158
  381. package/managers/customer-notification-content.manager.js.map +0 -1
  382. package/managers/diagnostic-manager-bootstrap.d.ts +0 -9
  383. package/managers/diagnostic-manager-bootstrap.js +0 -260
  384. package/managers/diagnostic-manager-bootstrap.js.map +0 -1
  385. package/managers/error-auto-fix.manager.d.ts +0 -149
  386. package/managers/error-auto-fix.manager.js +0 -3064
  387. package/managers/error-auto-fix.manager.js.map +0 -1
  388. package/managers/local-log.manager.d.ts +0 -18
  389. package/managers/local-log.manager.js +0 -88
  390. package/managers/local-log.manager.js.map +0 -1
  391. package/managers/method.manager.d.ts +0 -84
  392. package/managers/method.manager.js +0 -1964
  393. package/managers/method.manager.js.map +0 -1
  394. package/managers/mongo.manager.d.ts +0 -224
  395. package/managers/mongo.manager.js +0 -5000
  396. package/managers/mongo.manager.js.map +0 -1
  397. package/managers/monitor.manager.d.ts +0 -70
  398. package/managers/monitor.manager.js +0 -550
  399. package/managers/monitor.manager.js.map +0 -1
  400. package/managers/openai-usage-ledger.manager.d.ts +0 -30
  401. package/managers/openai-usage-ledger.manager.js +0 -142
  402. package/managers/openai-usage-ledger.manager.js.map +0 -1
  403. package/managers/slow-query-verifier.manager.d.ts +0 -144
  404. package/managers/slow-query-verifier.manager.js +0 -3857
  405. package/managers/slow-query-verifier.manager.js.map +0 -1
  406. package/managers/slow-query.manager.d.ts +0 -28
  407. package/managers/slow-query.manager.js +0 -468
  408. package/managers/slow-query.manager.js.map +0 -1
  409. package/managers/subscription.manager.d.ts +0 -169
  410. package/managers/subscription.manager.js +0 -3434
  411. package/managers/subscription.manager.js.map +0 -1
  412. package/managers/websocket.manager.d.ts +0 -73
  413. package/managers/websocket.manager.js +0 -673
  414. package/managers/websocket.manager.js.map +0 -1
  415. package/managers/worker-dispatcher.manager.d.ts +0 -120
  416. package/managers/worker-dispatcher.manager.js +0 -1266
  417. package/managers/worker-dispatcher.manager.js.map +0 -1
  418. package/managers/worker-server.manager.d.ts +0 -35
  419. package/managers/worker-server.manager.js +0 -582
  420. package/managers/worker-server.manager.js.map +0 -1
  421. package/methods/accounts.d.ts +0 -2
  422. package/methods/accounts.js +0 -624
  423. package/methods/accounts.js.map +0 -1
  424. package/methods/ai-terminal.d.ts +0 -458
  425. package/methods/ai-terminal.js +0 -27991
  426. package/methods/ai-terminal.js.map +0 -1
  427. package/methods/app-settings.d.ts +0 -2
  428. package/methods/app-settings.js +0 -169
  429. package/methods/app-settings.js.map +0 -1
  430. package/methods/aws.d.ts +0 -2
  431. package/methods/aws.js +0 -877
  432. package/methods/aws.js.map +0 -1
  433. package/methods/collections.d.ts +0 -2
  434. package/methods/collections.js +0 -719
  435. package/methods/collections.js.map +0 -1
  436. package/methods/counters.d.ts +0 -2
  437. package/methods/counters.js +0 -113
  438. package/methods/counters.js.map +0 -1
  439. package/methods/cron-jobs.d.ts +0 -2
  440. package/methods/cron-jobs.js +0 -2475
  441. package/methods/cron-jobs.js.map +0 -1
  442. package/methods/customer-notifications.d.ts +0 -2
  443. package/methods/customer-notifications.js +0 -528
  444. package/methods/customer-notifications.js.map +0 -1
  445. package/methods/diagnostics.d.ts +0 -2
  446. package/methods/diagnostics.js +0 -703
  447. package/methods/diagnostics.js.map +0 -1
  448. package/methods/flag-updates.d.ts +0 -2
  449. package/methods/flag-updates.js +0 -8
  450. package/methods/flag-updates.js.map +0 -1
  451. package/methods/flags.d.ts +0 -2
  452. package/methods/flags.js +0 -8
  453. package/methods/flags.js.map +0 -1
  454. package/methods/logs.d.ts +0 -2
  455. package/methods/logs.js +0 -751
  456. package/methods/logs.js.map +0 -1
  457. package/methods/mongo-explorer.d.ts +0 -2
  458. package/methods/mongo-explorer.js +0 -1808
  459. package/methods/mongo-explorer.js.map +0 -1
  460. package/methods/monitor.d.ts +0 -2
  461. package/methods/monitor.js +0 -543
  462. package/methods/monitor.js.map +0 -1
  463. package/methods/pdf.d.ts +0 -2
  464. package/methods/pdf.js +0 -1216
  465. package/methods/pdf.js.map +0 -1
  466. package/methods/publications.d.ts +0 -1
  467. package/methods/publications.js +0 -183
  468. package/methods/publications.js.map +0 -1
  469. package/methods/report-builder.d.ts +0 -2
  470. package/methods/report-builder.js +0 -3094
  471. package/methods/report-builder.js.map +0 -1
  472. package/methods/support.d.ts +0 -2
  473. package/methods/support.js +0 -430
  474. package/methods/support.js.map +0 -1
  475. package/models/ai-run.model.d.ts +0 -19
  476. package/models/ai-run.model.js +0 -4
  477. package/models/ai-run.model.js.map +0 -1
  478. package/models/ai-terminal-conversation.model.d.ts +0 -17
  479. package/models/ai-terminal-conversation.model.js +0 -4
  480. package/models/ai-terminal-conversation.model.js.map +0 -1
  481. package/models/ai-terminal-issue-report.model.d.ts +0 -19
  482. package/models/ai-terminal-issue-report.model.js +0 -4
  483. package/models/ai-terminal-issue-report.model.js.map +0 -1
  484. package/models/ai-terminal-message.model.d.ts +0 -22
  485. package/models/ai-terminal-message.model.js +0 -4
  486. package/models/ai-terminal-message.model.js.map +0 -1
  487. package/models/app-setting.model.d.ts +0 -16
  488. package/models/app-setting.model.js +0 -4
  489. package/models/app-setting.model.js.map +0 -1
  490. package/models/app-status.model.js +0 -4
  491. package/models/app-status.model.js.map +0 -1
  492. package/models/billing-logged-in-users.model.js +0 -4
  493. package/models/billing-logged-in-users.model.js.map +0 -1
  494. package/models/collection-document.model.d.ts +0 -21
  495. package/models/collection-document.model.js +0 -4
  496. package/models/collection-document.model.js.map +0 -1
  497. package/models/communication-metric.model.d.ts +0 -20
  498. package/models/communication-metric.model.js +0 -4
  499. package/models/communication-metric.model.js.map +0 -1
  500. package/models/counter.model.js +0 -4
  501. package/models/counter.model.js.map +0 -1
  502. package/models/cron-job-history.model.d.ts +0 -15
  503. package/models/cron-job-history.model.js +0 -4
  504. package/models/cron-job-history.model.js.map +0 -1
  505. package/models/cron-job.model.d.ts +0 -14
  506. package/models/cron-job.model.js +0 -4
  507. package/models/cron-job.model.js.map +0 -1
  508. package/models/customer-notification.model.d.ts +0 -26
  509. package/models/customer-notification.model.js +0 -4
  510. package/models/customer-notification.model.js.map +0 -1
  511. package/models/customer-portal-password.model.d.ts +0 -11
  512. package/models/customer-portal-password.model.js +0 -4
  513. package/models/customer-portal-password.model.js.map +0 -1
  514. package/models/dialog.model.d.ts +0 -23
  515. package/models/dialog.model.js +0 -4
  516. package/models/dialog.model.js.map +0 -1
  517. package/models/email-history.model.d.ts +0 -32
  518. package/models/email-history.model.js.map +0 -1
  519. package/models/email-verified.model.js +0 -4
  520. package/models/email-verified.model.js.map +0 -1
  521. package/models/file.model.js +0 -4
  522. package/models/file.model.js.map +0 -1
  523. package/models/flag-update.model.js +0 -4
  524. package/models/flag-update.model.js.map +0 -1
  525. package/models/flag.model.js +0 -4
  526. package/models/flag.model.js.map +0 -1
  527. package/models/log-method-latency.model.d.ts +0 -10
  528. package/models/log-method-latency.model.js +0 -4
  529. package/models/log-method-latency.model.js.map +0 -1
  530. package/models/log-subscription.model.js +0 -4
  531. package/models/log-subscription.model.js.map +0 -1
  532. package/models/log.model.d.ts +0 -17
  533. package/models/log.model.js +0 -4
  534. package/models/log.model.js.map +0 -1
  535. package/models/logged-in-users.model.js +0 -4
  536. package/models/logged-in-users.model.js.map +0 -1
  537. package/models/method-response.model.js +0 -4
  538. package/models/method-response.model.js.map +0 -1
  539. package/models/method.model.d.ts +0 -26
  540. package/models/method.model.js +0 -4
  541. package/models/method.model.js.map +0 -1
  542. package/models/monitor-cpu.model.js +0 -4
  543. package/models/monitor-cpu.model.js.map +0 -1
  544. package/models/monitor-function.model.d.ts +0 -14
  545. package/models/monitor-function.model.js +0 -4
  546. package/models/monitor-function.model.js.map +0 -1
  547. package/models/monitor-memory.model.d.ts +0 -15
  548. package/models/monitor-memory.model.js +0 -4
  549. package/models/monitor-memory.model.js.map +0 -1
  550. package/models/monitor-mongo.model.d.ts +0 -13
  551. package/models/monitor-mongo.model.js +0 -4
  552. package/models/monitor-mongo.model.js.map +0 -1
  553. package/models/notification.model.js +0 -4
  554. package/models/notification.model.js.map +0 -1
  555. package/models/openai-usage-ledger.model.d.ts +0 -30
  556. package/models/openai-usage-ledger.model.js +0 -4
  557. package/models/openai-usage-ledger.model.js.map +0 -1
  558. package/models/pagination.model.d.ts +0 -11
  559. package/models/pagination.model.js +0 -28
  560. package/models/pagination.model.js.map +0 -1
  561. package/models/permission.model.d.ts +0 -12
  562. package/models/permission.model.js +0 -4
  563. package/models/permission.model.js.map +0 -1
  564. package/models/report-builder-dashboard-builder.model.d.ts +0 -25
  565. package/models/report-builder-dashboard-builder.model.js +0 -4
  566. package/models/report-builder-dashboard-builder.model.js.map +0 -1
  567. package/models/report-builder-library.model.d.ts +0 -17
  568. package/models/report-builder-library.model.js +0 -4
  569. package/models/report-builder-library.model.js.map +0 -1
  570. package/models/report-builder-report.model.d.ts +0 -121
  571. package/models/report-builder-report.model.js +0 -4
  572. package/models/report-builder-report.model.js.map +0 -1
  573. package/models/report-builder.model.d.ts +0 -61
  574. package/models/report-builder.model.js +0 -4
  575. package/models/report-builder.model.js.map +0 -1
  576. package/models/select-data-label.model.d.ts +0 -9
  577. package/models/select-data-label.model.js +0 -4
  578. package/models/select-data-label.model.js.map +0 -1
  579. package/models/server-message.model.d.ts +0 -32
  580. package/models/server-message.model.js +0 -4
  581. package/models/server-message.model.js.map +0 -1
  582. package/models/slow-query-report.model.d.ts +0 -23
  583. package/models/slow-query-report.model.js +0 -4
  584. package/models/slow-query-report.model.js.map +0 -1
  585. package/models/subscription.model.d.ts +0 -31
  586. package/models/subscription.model.js +0 -4
  587. package/models/subscription.model.js.map +0 -1
  588. package/models/support-ticket.model.d.ts +0 -87
  589. package/models/support-ticket.model.js +0 -4
  590. package/models/support-ticket.model.js.map +0 -1
  591. package/models/user-group.model.d.ts +0 -20
  592. package/models/user-group.model.js +0 -4
  593. package/models/user-group.model.js.map +0 -1
  594. package/models/user-guide.model.js +0 -4
  595. package/models/user-guide.model.js.map +0 -1
  596. package/models/user.model.d.ts +0 -84
  597. package/models/user.model.js +0 -4
  598. package/models/user.model.js.map +0 -1
  599. package/private/images/ResolveIO.png +0 -0
  600. package/public_api.js +0 -127
  601. package/public_api.js.map +0 -1
  602. package/publications/ai-terminal.d.ts +0 -1
  603. package/publications/ai-terminal.js +0 -122
  604. package/publications/ai-terminal.js.map +0 -1
  605. package/publications/app-settings.d.ts +0 -2
  606. package/publications/app-settings.js +0 -28
  607. package/publications/app-settings.js.map +0 -1
  608. package/publications/app-status.d.ts +0 -2
  609. package/publications/app-status.js +0 -16
  610. package/publications/app-status.js.map +0 -1
  611. package/publications/cron-jobs.d.ts +0 -2
  612. package/publications/cron-jobs.js +0 -88
  613. package/publications/cron-jobs.js.map +0 -1
  614. package/publications/customer-notifications.d.ts +0 -2
  615. package/publications/customer-notifications.js +0 -161
  616. package/publications/customer-notifications.js.map +0 -1
  617. package/publications/files.d.ts +0 -2
  618. package/publications/files.js +0 -36
  619. package/publications/files.js.map +0 -1
  620. package/publications/flags-update.d.ts +0 -2
  621. package/publications/flags-update.js +0 -22
  622. package/publications/flags-update.js.map +0 -1
  623. package/publications/flags.d.ts +0 -2
  624. package/publications/flags.js +0 -22
  625. package/publications/flags.js.map +0 -1
  626. package/publications/logs.d.ts +0 -2
  627. package/publications/logs.js +0 -164
  628. package/publications/logs.js.map +0 -1
  629. package/publications/notifications.d.ts +0 -2
  630. package/publications/notifications.js +0 -16
  631. package/publications/notifications.js.map +0 -1
  632. package/publications/report-builder-dashboard-builders.d.ts +0 -2
  633. package/publications/report-builder-dashboard-builders.js +0 -42
  634. package/publications/report-builder-dashboard-builders.js.map +0 -1
  635. package/publications/report-builder-libraries.d.ts +0 -2
  636. package/publications/report-builder-libraries.js +0 -90
  637. package/publications/report-builder-libraries.js.map +0 -1
  638. package/publications/report-builder-reports.d.ts +0 -2
  639. package/publications/report-builder-reports.js +0 -50
  640. package/publications/report-builder-reports.js.map +0 -1
  641. package/publications/super-admin.d.ts +0 -2
  642. package/publications/super-admin.js +0 -16
  643. package/publications/super-admin.js.map +0 -1
  644. package/publications/user-groups.d.ts +0 -1
  645. package/publications/user-groups.js +0 -16
  646. package/publications/user-groups.js.map +0 -1
  647. package/publications/user-guides.d.ts +0 -1
  648. package/publications/user-guides.js +0 -16
  649. package/publications/user-guides.js.map +0 -1
  650. package/resolveio-server-app.d.ts +0 -70
  651. package/resolveio-server-app.js +0 -801
  652. package/resolveio-server-app.js.map +0 -1
  653. package/server-app.d.ts +0 -228
  654. package/server-app.js +0 -3566
  655. package/server-app.js.map +0 -1
  656. package/services/codex-client.d.ts +0 -128
  657. package/services/codex-client.js +0 -1629
  658. package/services/codex-client.js.map +0 -1
  659. package/services/openai-client.d.ts +0 -46
  660. package/services/openai-client.js +0 -318
  661. package/services/openai-client.js.map +0 -1
  662. package/types/error-report.d.ts +0 -25
  663. package/types/error-report.js +0 -4
  664. package/types/error-report.js.map +0 -1
  665. package/types/slow-query-report.d.ts +0 -27
  666. package/types/slow-query-report.js +0 -6
  667. package/types/slow-query-report.js.map +0 -1
  668. package/util/ai-qa-policy.d.ts +0 -124
  669. package/util/ai-qa-policy.js +0 -736
  670. package/util/ai-qa-policy.js.map +0 -1
  671. package/util/ai-run-evidence-adapters.d.ts +0 -109
  672. package/util/ai-run-evidence-adapters.js +0 -7234
  673. package/util/ai-run-evidence-adapters.js.map +0 -1
  674. package/util/ai-run-evidence-dashboard.d.ts +0 -88
  675. package/util/ai-run-evidence-dashboard.js +0 -343
  676. package/util/ai-run-evidence-dashboard.js.map +0 -1
  677. package/util/ai-run-evidence-eval.d.ts +0 -86
  678. package/util/ai-run-evidence-eval.js +0 -1018
  679. package/util/ai-run-evidence-eval.js.map +0 -1
  680. package/util/ai-run-evidence.d.ts +0 -244
  681. package/util/ai-run-evidence.js +0 -1096
  682. package/util/ai-run-evidence.js.map +0 -1
  683. package/util/ai-runner-artifacts.d.ts +0 -82
  684. package/util/ai-runner-artifacts.js +0 -713
  685. package/util/ai-runner-artifacts.js.map +0 -1
  686. package/util/ai-runner-manager-autopilot.d.ts +0 -210
  687. package/util/ai-runner-manager-autopilot.js +0 -642
  688. package/util/ai-runner-manager-autopilot.js.map +0 -1
  689. package/util/ai-runner-manager-policy.d.ts +0 -807
  690. package/util/ai-runner-manager-policy.js +0 -3501
  691. package/util/ai-runner-manager-policy.js.map +0 -1
  692. package/util/ai-runner-qa-auth.d.ts +0 -5
  693. package/util/ai-runner-qa-auth.js +0 -839
  694. package/util/ai-runner-qa-auth.js.map +0 -1
  695. package/util/ai-runner-qa-tools.d.ts +0 -26
  696. package/util/ai-runner-qa-tools.js +0 -3520
  697. package/util/ai-runner-qa-tools.js.map +0 -1
  698. package/util/aicoder-runner-v6.d.ts +0 -426
  699. package/util/aicoder-runner-v6.js +0 -2464
  700. package/util/aicoder-runner-v6.js.map +0 -1
  701. package/util/common.d.ts +0 -31
  702. package/util/common.js +0 -683
  703. package/util/common.js.map +0 -1
  704. package/util/customer-portal-password.d.ts +0 -13
  705. package/util/customer-portal-password.js +0 -209
  706. package/util/customer-portal-password.js.map +0 -1
  707. package/util/error-reporter.d.ts +0 -52
  708. package/util/error-reporter.js +0 -326
  709. package/util/error-reporter.js.map +0 -1
  710. package/util/error-tracking.d.ts +0 -13
  711. package/util/error-tracking.js +0 -120
  712. package/util/error-tracking.js.map +0 -1
  713. package/util/openai-usage-cost.d.ts +0 -6
  714. package/util/openai-usage-cost.js +0 -103
  715. package/util/openai-usage-cost.js.map +0 -1
  716. package/util/report-builder-unwinds.d.ts +0 -15
  717. package/util/report-builder-unwinds.js +0 -156
  718. package/util/report-builder-unwinds.js.map +0 -1
  719. package/util/runner-process-janitor.d.ts +0 -27
  720. package/util/runner-process-janitor.js +0 -208
  721. package/util/runner-process-janitor.js.map +0 -1
  722. package/util/schema-report-builder.d.ts +0 -6
  723. package/util/schema-report-builder.js +0 -481
  724. package/util/schema-report-builder.js.map +0 -1
  725. package/util/slow-query-reporter.d.ts +0 -28
  726. package/util/slow-query-reporter.js +0 -226
  727. package/util/slow-query-reporter.js.map +0 -1
  728. package/util/subscription-dependency-context.d.ts +0 -34
  729. package/util/subscription-dependency-context.js +0 -1283
  730. package/util/subscription-dependency-context.js.map +0 -1
  731. package/util/support-runner-v5.d.ts +0 -1426
  732. package/util/support-runner-v5.js +0 -7631
  733. package/util/support-runner-v5.js.map +0 -1
  734. package/util/tokenizer.d.ts +0 -5
  735. package/util/tokenizer.js +0 -41
  736. package/util/tokenizer.js.map +0 -1
  737. package/workers/codex-runner.worker.d.ts +0 -1
  738. package/workers/codex-runner.worker.js +0 -192
  739. package/workers/codex-runner.worker.js.map +0 -1
  740. /package/{private → src/private}/email-templates/enrollment.html +0 -0
  741. /package/{private → src/private}/email-templates/forgot-password.html +0 -0
  742. /package/{private → src/private}/email-templates/support-ticket-deleted.html +0 -0
  743. /package/{private → src/private}/email-templates/support-ticket-modified.html +0 -0
  744. /package/{private → src/private}/email-templates/support-ticket.html +0 -0
  745. /package/{public_api.d.ts → src/public_api.ts} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/ai/resolveio-platform-intelligence.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+UA,4FAEC;AAED,oGAyGC;AAED,8FAGC;AAED,wGAUC;AA7cD,iHAAiH;AAoBjH,IAAM,mDAAmD,GAAG,MAAM,CAAC,MAAM,CAAC;IACzE,kMAAkM;IAClM,gKAAgK;IAChK,kJAAkJ;IAClJ,8JAA8J;IAC9J,6JAA6J;IAC7J,iJAAiJ;IACjJ,2HAA2H;IAC3H,2IAA2I;CAC3I,CAAC,CAAC;AAEH,IAAM,0CAA0C,GAAG,MAAM,CAAC,MAAM,CAAC;IAChE,wOAAwO;IACxO,8MAA8M;IAC9M,sIAAsI;IACtI,0IAA0I;IAC1I,iKAAiK;IACjK,2MAA2M;CAC3M,CAAC,CAAC;AAEH,IAAM,gDAAgD,GAAG,MAAM,CAAC,MAAM,CAAC;IACtE,0HAA0H;IAC1H,6IAA6I;IAC7I,yJAAyJ;IACzJ,sJAAsJ;IACtJ,2LAA2L;CAC3L,CAAC,CAAC;AAEH,IAAM,gDAAgD,GAAG,MAAM,CAAC,MAAM,CAAC;IACtE,kOAAkO;IAClO,+GAA+G;IAC/G,6PAA6P;IAC7P,4PAA4P;IAC5P,0LAA0L;CAC1L,CAAC,CAAC;AAEH,IAAM,oDAAoD,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1E,oHAAoH;IACpH,qHAAqH;IACrH,wKAAwK;C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C;AACjD,CAAC;AAED,SAAgB,yCAAyC,CAAC,OAAiD;IAC1G,OAAO,4CAA4C,CAAC,OAAO,CAAC;SAC1D,OAAO,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,KAAK,EAAb,CAAa,CAAC,CAAC;AACvC,CAAC;AAED,SAAgB,8CAA8C,CAAC,OAAiD;IAC/G,IAAM,QAAQ,GAAG,4CAA4C,CAAC,OAAO,CAAC,CAAC;IACvE,OAAO;QACN,0CAA0C,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,KAAI,WAAW,CAAC;QACxE,aAAa;cACV,QAAQ,CAAC,OAAO,CAAC,UAAC,OAAO,IAAK;QAChC,UAAG,OAAO,CAAC,KAAK,MAAG;cAChB,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,YAAK,IAAI,CAAE,EAAX,CAAW,CAAC,WAFX,CAGhC,CAAC,UACD,IAAI,CAAC,IAAI,CAAC,CAAC;AACd,CAAC","file":"resolveio-platform-intelligence.js","sourcesContent":["import { getResolveIOPlatformSharedDurableMemoryEntries } from './resolveio-platform-intelligence-memory-corpus';\nimport type {\n\tResolveIOPlatformDurableMemoryEntry,\n\tResolveIOPlatformDurableMemoryKind,\n\tResolveIOPlatformIntelligenceMode,\n\tResolveIOPlatformIntelligenceOutputStyle,\n\tResolveIOPlatformIntelligenceRuleOptions,\n\tResolveIOPlatformIntelligenceRuleSection\n} from './resolveio-platform-intelligence-types';\n\nexport type {\n\tResolveIOPlatformDurableMemoryEntry,\n\tResolveIOPlatformDurableMemoryKind,\n\tResolveIOPlatformIntelligenceMode,\n\tResolveIOPlatformIntelligenceOutputStyle,\n\tResolveIOPlatformIntelligenceRuleOptions,\n\tResolveIOPlatformIntelligenceRuleSection,\n\tResolveIOPlatformSharedMemoryEntry\n} from './resolveio-platform-intelligence-types';\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_INVESTIGATION_RULES = Object.freeze([\n\t'Use the ResolveIO evidence loop every time: inspect the most relevant code and workspace context, form a concrete hypothesis, verify it with code/data/logs/git/tests, then answer or implement.',\n\t'When the first explanation is only plausible, generate competing hypotheses and actively eliminate them with repository or runtime evidence before finalizing.',\n\t'Read the most relevant files before making assumptions about workflows, routes, models, collections, schemas, field names, or library contracts.',\n\t'Treat support summaries, generated plans, task descriptions, and app heuristics as hints that must be verified against the actual repo and runtime evidence.',\n\t'When record state or live behavior matters, verify with read-only data access, fixtures, logs, tests, or reproducible workspace evidence before concluding.',\n\t'When history or ownership matters, verify with git history, prior fixes, or recorded job/ticket evidence before claiming when behavior changed.',\n\t'If a bug report names a working comparison path, inspect the failing path and the working path before implementing a fix.',\n\t'Before closing a task, rerun the most relevant verification for the changed path and confirm the result actually supports the conclusion.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_DATA_RULES = Object.freeze([\n\t'ResolveIO app data models use `_id` as a string by default. Do not assume Mongo ObjectId types in app/server/shared-library contracts unless the repository or runtime evidence explicitly proves an external integration requires it.',\n\t'Keep `_id`, `id_*`, and other application identifiers string-compatible across methods, publications, DTOs, Angular models, and shared UI bindings unless verified code proves a different runtime contract.',\n\t'Do not invent collections, fields, symbols, imports, routes, or workflow names when repository or runtime evidence can confirm them.',\n\t'Map business-language terms from users to internal repo entities yourself, then verify the mapping in code or data before relying on it.',\n\t'When data changes are required, prefer code-backed fixture or migration changes over direct database edits so the change can be reproduced and deployed safely.',\n\t'When working in ResolveIO apps, prefer inline fixtures in `server/src/fixtures/init.ts` for required data bootstrapping and avoid helper-function fixture abstractions unless the repo already uses them.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_UI_LIBRARY_RULES = Object.freeze([\n\t'Prefer ResolveIO shared UI components over ad hoc custom controls when the platform library already covers the use case.',\n\t'For selection controls, prefer `rio-select` over raw HTML selects or third-party selects when the feature fits ResolveIO platform patterns.',\n\t'For charting, prefer `rio-chart` over ad hoc chart wrappers or direct third-party chart usage when ResolveIO already provides the needed chart surface.',\n\t'For date/date-time input and date picking, prefer `rio-date-picker` over ad hoc date controls when the ResolveIO component supports the requirement.',\n\t'When working on a shared ResolveIO UI component, inspect the component TypeScript, HTML companion, spec/test file, public-api export path, and at least one real consumer before editing.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_RIO_SELECT_RULES = Object.freeze([\n\t'Prefer the `rio-select` `[options]` pipeline with `optionLabelFn` or `optionLabelKey` over projected `<rio-option>` content when the existing control already uses `[options]` or when large/scalable option lists are involved.',\n\t'Do not mix `[options]` and projected `<rio-option>` children on the same `rio-select`; mixed mode is invalid.',\n\t'Do not rewrite an existing `[options]`-based `rio-select` to projected `<rio-option>` just because another screen renders options that way. Keep the faster existing contract unless repository evidence proves `[options]` cannot satisfy the requirement.',\n\t'For `rio-select` label/render regressions, first inspect the existing label pipeline, `optionLabelFn` or `optionLabelKey`, displayed-option refresh path, selected-label refresh path, and lifecycle hooks before changing selection/value-matching logic.',\n\t'For large option sets, preserve the scalable `[options]` path and avoid template-expanding thousands of `<rio-option>` nodes when the same behavior can be fixed in runtime label logic.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_GENERATED_FILE_RULES = Object.freeze([\n\t'Do not hand-edit generated Angular socket files such as `angular/app/methods.ts` or `angular/app/publications.ts`.',\n\t'Change the real server method/publication definitions in `server/src/methods/` or `server/src/publications/` first.',\n\t'After changing method or publication signatures, regenerate the generated method/publication artifacts from the project `server/` directory before final verification.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_PATH_GROUNDING_RULES = Object.freeze([\n\t'Every cited file, symbol, route, collection, workflow, and scoped target must be verified against the current workspace before you rely on it.',\n\t'Do not use placeholder or fuzzy path language such as \"or equivalent\", \"similar file\", \"etc.\", vague directories, or nonexistent paths.',\n\t'When the report includes a failing workflow and a working comparator workflow, keep them distinct: fix the failing path first and treat the working path as read-only evidence unless repository evidence proves both must change.',\n\t'If repository evidence disproves the initial target-file hypothesis, explicitly retarget to the correct adjacent runtime path instead of continuing on the wrong files.',\n\t'When citing a working comparator, name the exact formatter, binding, helper, conditional, query, or token that proves the expected behavior.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_COLLECTION_INFERENCE_RULES = Object.freeze([\n\t'Map non-technical user wording to internal collections, models, routes, workflows, and fields yourself before asking the user for internal names.',\n\t'Use app heuristics, route hints, collection hints, schema hints, token matching, and nearby code as weak signals that must be verified before you rely on them.',\n\t'Prefer app-level heuristics for project-specific domain words, but keep shared platform intelligence generic and avoid hardcoding app-domain vocabulary here.',\n\t'Never invent collection names, field names, workflow names, or routes when the current workspace can verify them.',\n\t'Do not use `*.versions` collections for ordinary requests; only use version/history collections when the task explicitly requires bug-history, audit, or recent-update investigation.',\n\t'When a field starts with `id_`, treat it as a likely foreign key and prefer verified lookup/schema definitions to resolve the related collection and display fields.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_ARCHITECTURE_RULES = Object.freeze([\n\t'ResolveIO is a custom MEAN-style platform built on Node, Angular, Mongo, ResolveIO server/client libraries, and websocket-driven communication. Do not assume Meteor, Mongoose, or generic SaaS boilerplate conventions apply.',\n\t'Never use Mongoose in ResolveIO platform code. Use ResolveIO Mongo wrappers and collection models instead.',\n\t'Never use Meteor APIs such as `meteor/meteor` or `meteor/check` in ResolveIO apps or libraries.',\n\t'Prefer ResolveIO server library wrappers for methods, publications, Mongo access, and worker coordination over raw framework alternatives.',\n\t'Move heavy, blocking, batch, rate-limited, or retry-oriented work to workers/queues when the platform already provides that path instead of keeping it on the main request/subscription path.',\n\t'Use the ResolveIO `round` helper from shared client/server libraries instead of `Math.round` so numeric behavior stays platform-consistent.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_SERVER_RULES = Object.freeze([\n\t'Prefer publications for realtime UX and methods for heavy or transaction-oriented operations.',\n\t'Method and publication names should follow existing ResolveIO camelCase naming unless repository evidence shows an established exception.',\n\t'Prefer a single server method for create/edit flows that need atomic rollback behavior rather than splitting one business operation across many client calls.',\n\t'Use `async/await` with `try/catch`, avoid promise chaining, avoid `find()` or `updateOne()` inside loops, and batch writes with `bulkWrite` where practical.',\n\t'Use `axios` for server-side HTTP calls unless the surrounding codebase already follows another verified pattern.',\n\t'Keep models and collections aligned. In app repos, model interfaces should not re-declare `_id`/version/timestamp fields when the shared collection-document contract already supplies them.',\n\t'Store external API keys, tokens, and third-party configuration in Company Secrets or the established server-side secret system. Never hardcode secrets in source files.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_ANGULAR_RULES = Object.freeze([\n\t'For Angular forms, use platform components and patterns rather than raw browser widgets when ResolveIO already provides the needed control.',\n\t'Use `rio-select` for dropdowns, `rio-date-picker` for date/datetime inputs, and `rio-chart` for charts/graphs by default in ResolveIO Angular work unless repository evidence proves another component is the established contract.',\n\t'Use `rio-calendar` as the default scheduling/calendar surface when the feature requires calendar interaction and the ResolveIO component fits the need.',\n\t'Use `rio-pagination` for paginated list navigation and `resolveio-list-template` or `collapse-table` for list/table surfaces that match existing platform patterns.',\n\t'Do not use native browser dialogs (`window.alert`, `window.confirm`, `window.prompt`) in Angular apps when ResolveIO dialog services/components are available.',\n\t'Keep Angular component styles local by default and only move styles into app-global stylesheets when they truly apply across the app shell.',\n\t'Prefer `resolveio-list-template` for list pages and `collapse-table` for non-list data tables when those platform surfaces already exist in the target app.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_APP_GENERATION_RULES = Object.freeze([\n\t'For new-app generation, follow the standard ResolveIO build flow in order: module-pack/template assembly, models, collections, fixtures/bootstrap data, methods/publications, Angular feature UI, dashboard hub tailoring, build verification, responsive/mobile pass, then QA.',\n\t'Reuse in-repo module packs, templates, and existing ResolveIO project examples before inventing new structure or custom framework layers.',\n\t'Keep generated apps scoped to the requested workflows; do not overbuild unrelated subsystems or platform features that were not requested.',\n\t'Feature modules should normally include module, routing, permission, service, root component, and the expected list/new/edit/detail/delete surfaces unless repository evidence proves a different established pattern.',\n\t'Manage/maintenance modules should normally be single-page maintenance views with key fields and edit/disable actions, not full multi-route CRUD shells, unless the requirement explicitly needs that complexity.',\n\t'Tailor the dashboard hub as the operator command center for the app with real quick actions, route shortcuts, KPI cards, and at-a-glance workflow panels. Do not leave generic placeholder dashboard copy or dead links.',\n\t'Ensure generated Angular workflows are fully wired end-to-end: no dead routes, dead CTA buttons, placeholder forms, or partially connected server methods/publications.',\n\t'When adding or renaming collections in an app, update the app-level `server/src/ai/assistant-heuristics.json` aliases and term hints so AI routing stays accurate for that app.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_AUTH_AND_SHELL_RULES = Object.freeze([\n\t'Differentiate staff and customer auth flows using established ResolveIO patterns instead of inventing hybrid login shells.',\n\t'Default staff login UX should be a single sign-in entry without customer/employee chooser flows unless the app audience explicitly requires a separate customer portal experience.',\n\t'For public-login or vendor-customer-portal style apps, keep dedicated customer auth/session routing patterns intact unless the task explicitly requires an auth refactor.',\n\t'Do not add client/customer HTTP login or signup flows to ordinary staff-facing apps unless the request explicitly includes those audiences.',\n\t'Homepage and dashboard routes should point users to real working entry points; avoid hardcoded generic login links or dead navigation placeholders.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_FILTER_RULES = Object.freeze([\n\t'For list/filter dropdowns, prefer distinct-backed options from real collection data over hardcoded options when the values come from data.',\n\t'Keep an explicit `All` option for optional filters and ensure displayed filter labels map to the true stored field values.',\n\t'Use hardcoded dropdown options only for genuinely fixed business enums that should not vary by dataset.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_STYLE_RULES = Object.freeze([\n\t'Do not apply Bootstrap `form-control` directly to `rio-select` or `rio-date-picker`; use component-specific classes/styling patterns instead.',\n\t'For ordinary native text inputs and textareas, Bootstrap `form-control` remains the normal default when the target app uses Bootstrap form styling.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_EXECUTION_RULES = Object.freeze([\n\t'Keep changes lean, targeted, and evidence-backed; avoid broad speculative rewrites.',\n\t'Prefer the smallest behavior-level fix on the confirmed failing path before adding cleanup, refactors, or defensive scaffolding.',\n\t'Do not stop at a plausible patch. Verify that the change actually fixes the reported behavior and did not only alter formatting, typing, or adjacent noise.',\n\t'When writing code, preserve existing platform contracts and expand public API surface only when the verified requirement cannot be satisfied without it.',\n\t'Prefer platform-consistent ResolveIO patterns over ad hoc one-off logic.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_EVIDENCE_TO_FIX_RULES = Object.freeze([\n\t'Build an evidence-to-fix chain: identify the concrete failing path, show why it is failing, then apply the direct code change on that same path.',\n\t'Reject formatting-only, whitespace-only, comment-only, analyzer-only, or placeholder-text-only diffs as completed fixes unless repository evidence proves they are required for the reported behavior.',\n\t'Do not invent helper methods, metadata fields, fake adapter layers, or synthetic remediation structures when the fix can be made in the existing runtime path.',\n\t'When a comparator is available, copy the minimal proven behavior delta instead of copying unrelated structure, helpers, or markup from the comparator.',\n\t'If repeated attempts keep touching the same files without a meaningful behavior-level change, stop, revise the hypothesis or scope, and gather new evidence before trying again.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_SHARED_LIBRARY_RULES = Object.freeze([\n\t'Escalate shared-library ownership explicitly when the root cause belongs in ResolveIO platform code rather than the current app repo.',\n\t'If the real fix belongs in a shared ResolveIO library, do not use patch-package or app-local workarounds as the final fix shape; route the work to the shared library.',\n\t'When evaluating a suspected library bug, inspect the shared library implementation, its exported contract, and at least one downstream consumer before deciding whether the bug is app-specific or platform-wide.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_REPORT_BUILDER_RULES = Object.freeze([\n\t'When live data is needed, prefer the scoped read-only ResolveIO data bridge (`REPORT_BUILDER_READ` / `REPORT_BUILDER_AGG`) instead of unrestricted collection access.',\n\t'Resolve the target dataset safely: verify the collection, key fields, date fields, and permission route before committing to a live-data query.',\n\t'Always include a verified `permissionView` when using the data bridge. Prefer a module-specific route from real code context, and do not invent routes.',\n\t'When `permissionView` is under `/report-builder`, prefer the matching `report-*` collection when it exists; otherwise keep using the best verified family collection and let the bridge fallback handle the rest.',\n\t'Use `REPORT_BUILDER_READ` for record lists, snapshots, detail lookups, and simple totals/counts. Use `REPORT_BUILDER_AGG` for grouped summaries, rankings, trends, and breakdowns.',\n\t'Keep live-data queries minimal, read-only, and high-signal: tight projection, deterministic sort, bounded limits, and explicit boolean filter logic.',\n\t'For relative date ranges, use bounded UTC windows and avoid future ranges unless the user explicitly requests them.',\n\t'If a live-data query returns zero rows or ambiguous results, run the smallest safe probe you can to validate collection, date field, and field shape before concluding there is no data.',\n\t'Do not claim certainty for live-data answers without a successful verified query or probe.',\n\t'When presenting live-data results to users, summarize first, then show a clean markdown table, and never dump raw JSON.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_SAFETY_RULES = Object.freeze([\n\t'Do not expose secrets, credentials, proprietary source, or internal provider/runtime details to end users.'\n]);\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_MODE_RULES: Record<ResolveIOPlatformIntelligenceMode, readonly string[]> = Object.freeze({\n\tassistant: Object.freeze([\n\t\t'For engineering or debugging requests, inspect the relevant files first, verify the root cause, and only then change code or answer in detail.',\n\t\t'Use read-only REPORT_BUILDER_* access for data verification and data-backed answers.'\n\t]),\n\tsupport: Object.freeze([\n\t\t'Read the scoped ticket context, workspace artifacts, build plan, attachments, logs, and Mongo samples before implementation.',\n\t\t'Trace the full path from the reported symptom to the relevant frontend, backend, shared-library, and data path before editing code.',\n\t\t'Prioritize the dominant root cause over mitigations, diagnostics-only scaffolding, or speculative cleanup.',\n\t\t'If related prior fixes exist, compare them to current code and rerun the same repro path before deciding the next change.'\n\t]),\n\tbuilder: Object.freeze([\n\t\t'Only edit files inside the requested app/job project root unless the verified root cause belongs in a shared ResolveIO library.',\n\t\t'Read the active BUILD_PLAN and any app UX/dashboard briefs before writing code, then execute tasks in order instead of skipping ahead speculatively.',\n\t\t'Inspect the existing workspace, template, module-pack code, and shared-library usage before writing new files or new structure.',\n\t\t'Reuse established ResolveIO patterns and verified examples; do not invent framework structure, schema fields, APIs, or custom controls when a shared library already covers the need.',\n\t\t'Prefer app-level implementation by default, and only change shared libraries when the evidence proves the requirement or defect is shared.',\n\t\t'Write production-ready final source code, not patch JSON or tool payload text inside source files.',\n\t\t'For generated apps, follow the standard ResolveIO build flow: models, collections, fixtures/sample data, methods/publications, Angular UI, dashboard/hub tailoring, build verification, then QA.'\n\t]),\n\tapp_terminal: Object.freeze([\n\t\t'Stay within the requested app project scope and keep protected platform/auth/infrastructure areas untouched unless explicitly authorized.',\n\t\t'Read attachments and conversation history before acting on the request.',\n\t\t'Use verified code changes underneath, but communicate the result to the user in plain English.'\n\t])\n});\n\nconst RESOLVEIO_PLATFORM_INTELLIGENCE_OUTPUT_STYLE_RULES: Record<ResolveIOPlatformIntelligenceOutputStyle, readonly string[]> = Object.freeze({\n\tdefault: Object.freeze([]),\n\tmarkdown: Object.freeze([\n\t\t'Respond in plain Markdown without raw JSON dumps unless a tool contract explicitly requires JSON.'\n\t]),\n\tplain_english: Object.freeze([\n\t\t'Respond in plain English without dumping raw code, raw JSON, or internal architecture details.'\n\t]),\n\tjson: Object.freeze([\n\t\t'Return only the requested JSON contract after completing the same verify-first reasoning loop.'\n\t])\n});\n\nfunction resolveResolveIOPlatformIntelligenceHeader(mode: ResolveIOPlatformIntelligenceMode): string {\n\tswitch (mode) {\n\t\tcase 'support':\n\t\t\treturn 'You are the ResolveIO support platform intelligence layer operating inside a ticket workspace.';\n\t\tcase 'builder':\n\t\t\treturn 'You are the ResolveIO build platform intelligence layer for new apps and code updates.';\n\t\tcase 'app_terminal':\n\t\t\treturn 'You are the ResolveIO app-update platform intelligence layer running in a controlled workspace.';\n\t\tcase 'assistant':\n\t\tdefault:\n\t\t\treturn 'You are the ResolveIO in-app platform intelligence layer with workspace access to the current platform codebase.';\n\t}\n}\n\nfunction normalizeExtraRules(extraRules?: string[]): string[] {\n\treturn Array.isArray(extraRules)\n\t\t? extraRules.map((rule) => String(rule || '').trim()).filter(Boolean)\n\t\t: [];\n}\n\nfunction normalizeMemoryFamily(value: string): string {\n\treturn String(value || '')\n\t\t.trim()\n\t\t.toLowerCase()\n\t\t.replace(/[^a-z0-9_-]+/g, '-')\n\t\t.replace(/-+/g, '-')\n\t\t.replace(/^-|-$/g, '');\n}\n\nfunction normalizeMemoryTag(value: string): string {\n\treturn normalizeMemoryFamily(value);\n}\n\nfunction normalizeDurableMemoryEntries(entries?: ResolveIOPlatformDurableMemoryEntry[]): ResolveIOPlatformDurableMemoryEntry[] {\n\tif (!Array.isArray(entries)) {\n\t\treturn [];\n\t}\n\tconst unique: ResolveIOPlatformDurableMemoryEntry[] = [];\n\tconst seen = new Set<string>();\n\tfor (const entry of entries) {\n\t\tconst family = normalizeMemoryFamily(entry?.family || '');\n\t\tconst kind = String(entry?.kind || '').trim() as ResolveIOPlatformDurableMemoryKind;\n\t\tconst summary = String(entry?.summary || '').trim();\n\t\tif (!family || !summary || !['accepted_pattern', 'rejected_fix_shape', 'contract_violation'].includes(kind)) {\n\t\t\tcontinue;\n\t\t}\n\t\tconst modes = Array.isArray(entry?.modes)\n\t\t\t? entry.modes.map((mode) => String(mode || '').trim() as ResolveIOPlatformIntelligenceMode)\n\t\t\t\t.filter((mode) => ['assistant', 'support', 'builder', 'app_terminal'].includes(mode))\n\t\t\t: [];\n\t\tconst tags = Array.isArray(entry?.tags)\n\t\t\t? entry.tags.map((tag) => normalizeMemoryTag(tag)).filter(Boolean)\n\t\t\t: [];\n\t\tconst key = `${family}::${kind}::${summary.toLowerCase()}`;\n\t\tif (seen.has(key)) {\n\t\t\tcontinue;\n\t\t}\n\t\tseen.add(key);\n\t\tunique.push({\n\t\t\tfamily,\n\t\t\tkind,\n\t\t\tsummary,\n\t\t\tmodes,\n\t\t\ttags\n\t\t});\n\t}\n\treturn unique;\n}\n\nfunction dedupeRules(rules: readonly string[]): string[] {\n\tconst unique: string[] = [];\n\tconst seen = new Set<string>();\n\tfor (const rule of rules || []) {\n\t\tconst normalized = String(rule || '').trim();\n\t\tif (!normalized || seen.has(normalized)) {\n\t\t\tcontinue;\n\t\t}\n\t\tseen.add(normalized);\n\t\tunique.push(normalized);\n\t}\n\treturn unique;\n}\n\nfunction formatDurableMemoryRule(entry: ResolveIOPlatformDurableMemoryEntry): string {\n\tconst label = entry.kind === 'accepted_pattern'\n\t\t? 'Accepted pattern'\n\t\t: entry.kind === 'rejected_fix_shape'\n\t\t\t? 'Rejected fix shape'\n\t\t\t: 'Contract violation';\n\treturn `${entry.family}: ${label}: ${entry.summary}`;\n}\n\nfunction resolveDurableMemoryEntries(options: ResolveIOPlatformIntelligenceRuleOptions): ResolveIOPlatformDurableMemoryEntry[] {\n\tconst includeDefault = options?.includeDefaultDurableMemory !== false;\n\tconst mode = options?.mode || 'assistant';\n\tconst families = Array.isArray(options?.memoryFamilies)\n\t\t? options.memoryFamilies.map((value) => normalizeMemoryFamily(value)).filter(Boolean)\n\t\t: [];\n\tconst familySet = new Set(families);\n\tconst allEntries = normalizeDurableMemoryEntries([\n\t\t...(includeDefault ? getResolveIOPlatformSharedDurableMemoryEntries() : []),\n\t\t...normalizeDurableMemoryEntries(options?.durableMemoryEntries)\n\t]);\n\treturn allEntries.filter((entry) => {\n\t\tconst modes = Array.isArray(entry.modes) ? entry.modes : [];\n\t\tif (modes.length && !modes.includes(mode)) {\n\t\t\treturn false;\n\t\t}\n\t\tif (!familySet.size) {\n\t\t\treturn true;\n\t\t}\n\t\tif (familySet.has(entry.family)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn (entry.tags || []).some((tag) => familySet.has(normalizeMemoryTag(tag)));\n\t});\n}\n\nexport function getResolveIOPlatformDurableMemoryEntries(options: ResolveIOPlatformIntelligenceRuleOptions): ResolveIOPlatformDurableMemoryEntry[] {\n\treturn resolveDurableMemoryEntries(options);\n}\n\nexport function getResolveIOPlatformIntelligenceRuleSections(options: ResolveIOPlatformIntelligenceRuleOptions): ResolveIOPlatformIntelligenceRuleSection[] {\n\tconst mode = options?.mode || 'assistant';\n\tconst outputStyle = options?.outputStyle || 'default';\n\tconst extraRules = normalizeExtraRules(options?.extraRules);\n\tconst durableMemoryEntries = resolveDurableMemoryEntries(options);\n\tconst acceptedPatterns = durableMemoryEntries\n\t\t.filter((entry) => entry.kind === 'accepted_pattern')\n\t\t.map(formatDurableMemoryRule);\n\tconst rejectedFixShapes = durableMemoryEntries\n\t\t.filter((entry) => entry.kind === 'rejected_fix_shape')\n\t\t.map(formatDurableMemoryRule);\n\tconst contractViolations = durableMemoryEntries\n\t\t.filter((entry) => entry.kind === 'contract_violation')\n\t\t.map(formatDurableMemoryRule);\n\treturn [\n\t\t{\n\t\t\ttitle: 'Investigation Loop',\n\t\t\trules: dedupeRules(RESOLVEIO_PLATFORM_INTELLIGENCE_INVESTIGATION_RULES)\n\t\t},\n\t\t{\n\t\t\ttitle: 'Data And ID Contracts',\n\t\t\trules: dedupeRules(RESOLVEIO_PLATFORM_INTELLIGENCE_DATA_RULES)\n\t\t},\n\t\t{\n\t\t\ttitle: 'Generated Files',\n\t\t\trules: dedupeRules(RESOLVEIO_PLATFORM_INTELLIGENCE_GENERATED_FILE_RULES)\n\t\t},\n\t\t{\n\t\t\ttitle: 'Path Grounding And Scope',\n\t\t\trules: dedupeRules(RESOLVEIO_PLATFORM_INTELLIGENCE_PATH_GROUNDING_RULES)\n\t\t},\n\t\t{\n\t\t\ttitle: 'Collection And Workflow Inference',\n\t\t\trules: dedupeRules(RESOLVEIO_PLATFORM_INTELLIGENCE_COLLECTION_INFERENCE_RULES)\n\t\t},\n\t\t{\n\t\t\ttitle: 'Platform Architecture',\n\t\t\trules: dedupeRules(RESOLVEIO_PLATFORM_INTELLIGENCE_ARCHITECTURE_RULES)\n\t\t},\n\t\t{\n\t\t\ttitle: 'Server Implementation',\n\t\t\trules: dedupeRules(RESOLVEIO_PLATFORM_INTELLIGENCE_SERVER_RULES)\n\t\t},\n\t\t{\n\t\t\ttitle: 'ResolveIO UI Libraries',\n\t\t\trules: dedupeRules([\n\t\t\t\t...RESOLVEIO_PLATFORM_INTELLIGENCE_UI_LIBRARY_RULES,\n\t\t\t\t...RESOLVEIO_PLATFORM_INTELLIGENCE_RIO_SELECT_RULES,\n\t\t\t\t...RESOLVEIO_PLATFORM_INTELLIGENCE_ANGULAR_RULES,\n\t\t\t\t...RESOLVEIO_PLATFORM_INTELLIGENCE_FILTER_RULES,\n\t\t\t\t...RESOLVEIO_PLATFORM_INTELLIGENCE_STYLE_RULES\n\t\t\t])\n\t\t},\n\t\t{\n\t\t\ttitle: 'App Generation And UX',\n\t\t\trules: dedupeRules(RESOLVEIO_PLATFORM_INTELLIGENCE_APP_GENERATION_RULES)\n\t\t},\n\t\t{\n\t\t\ttitle: 'Auth And Shell',\n\t\t\trules: dedupeRules(RESOLVEIO_PLATFORM_INTELLIGENCE_AUTH_AND_SHELL_RULES)\n\t\t},\n\t\t{\n\t\t\ttitle: 'Execution Quality',\n\t\t\trules: dedupeRules([\n\t\t\t\t...RESOLVEIO_PLATFORM_INTELLIGENCE_EXECUTION_RULES,\n\t\t\t\t...RESOLVEIO_PLATFORM_INTELLIGENCE_EVIDENCE_TO_FIX_RULES\n\t\t\t])\n\t\t},\n\t\t{\n\t\t\ttitle: 'Shared Library Ownership',\n\t\t\trules: dedupeRules(RESOLVEIO_PLATFORM_INTELLIGENCE_SHARED_LIBRARY_RULES)\n\t\t},\n\t\t{\n\t\t\ttitle: 'Live Data And Report Builder',\n\t\t\trules: dedupeRules(RESOLVEIO_PLATFORM_INTELLIGENCE_REPORT_BUILDER_RULES)\n\t\t},\n\t\t{\n\t\t\ttitle: 'Durable Memory: Accepted Patterns',\n\t\t\trules: dedupeRules(acceptedPatterns)\n\t\t},\n\t\t{\n\t\t\ttitle: 'Durable Memory: Rejected Fix Shapes',\n\t\t\trules: dedupeRules(rejectedFixShapes)\n\t\t},\n\t\t{\n\t\t\ttitle: 'Durable Memory: Contract Violations',\n\t\t\trules: dedupeRules(contractViolations)\n\t\t},\n\t\t{\n\t\t\ttitle: 'Mode Rules',\n\t\t\trules: dedupeRules(RESOLVEIO_PLATFORM_INTELLIGENCE_MODE_RULES[mode] || [])\n\t\t},\n\t\t{\n\t\t\ttitle: 'Output Style',\n\t\t\trules: dedupeRules(RESOLVEIO_PLATFORM_INTELLIGENCE_OUTPUT_STYLE_RULES[outputStyle] || [])\n\t\t},\n\t\t{\n\t\t\ttitle: 'Safety',\n\t\t\trules: dedupeRules(RESOLVEIO_PLATFORM_INTELLIGENCE_SAFETY_RULES)\n\t\t},\n\t\t{\n\t\t\ttitle: 'Extra Rules',\n\t\t\trules: dedupeRules(extraRules)\n\t\t}\n\t].filter((section) => section.rules.length > 0);\n}\n\nexport function getResolveIOPlatformIntelligenceRuleLines(options: ResolveIOPlatformIntelligenceRuleOptions): string[] {\n\treturn getResolveIOPlatformIntelligenceRuleSections(options)\n\t\t.flatMap((section) => section.rules);\n}\n\nexport function buildResolveIOPlatformIntelligenceSystemPrompt(options: ResolveIOPlatformIntelligenceRuleOptions): string {\n\tconst sections = getResolveIOPlatformIntelligenceRuleSections(options);\n\treturn [\n\t\tresolveResolveIOPlatformIntelligenceHeader(options?.mode || 'assistant'),\n\t\t'Core rules:',\n\t\t...sections.flatMap((section) => [\n\t\t\t`${section.title}:`,\n\t\t\t...section.rules.map((rule) => `- ${rule}`)\n\t\t])\n\t].join('\\n');\n}\n"]}
@@ -1 +0,0 @@
1
- export {};
@@ -1,68 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
14
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
15
- return new (P || (P = Promise))(function (resolve, reject) {
16
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
17
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
18
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
19
- step((generator = generator.apply(thisArg, _arguments || [])).next());
20
- });
21
- };
22
- var __generator = (this && this.__generator) || function (thisArg, body) {
23
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
24
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
25
- function verb(n) { return function (v) { return step([n, v]); }; }
26
- function step(op) {
27
- if (f) throw new TypeError("Generator is already executing.");
28
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
30
- if (y = 0, t) op = [op[0] & 2, t.value];
31
- switch (op[0]) {
32
- case 0: case 1: t = op; break;
33
- case 4: _.label++; return { value: op[1], done: false };
34
- case 5: _.label++; y = op[1]; op = [0]; continue;
35
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
36
- default:
37
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
38
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
39
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
40
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
41
- if (t[2]) _.ops.pop();
42
- _.trys.pop(); continue;
43
- }
44
- op = body.call(thisArg, _);
45
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
46
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
47
- }
48
- };
49
- Object.defineProperty(exports, "__esModule", { value: true });
50
- var fs = require("fs");
51
- var path = require("path");
52
- var settingsPath = path.join(__dirname, 'settings.json');
53
- var serverConfig = fs.existsSync(settingsPath)
54
- ? require(settingsPath)
55
- : __assign({}, process.env);
56
- var resolveio_server_app_1 = require("./resolveio-server-app");
57
- setImmediate(function () { return __awaiter(void 0, void 0, void 0, function () {
58
- return __generator(this, function (_a) {
59
- switch (_a.label) {
60
- case 0: return [4 /*yield*/, resolveio_server_app_1.ResolveIOServer.create(serverConfig, [], 'ResolveIO Server Library', __dirname)];
61
- case 1:
62
- _a.sent();
63
- return [2 /*return*/];
64
- }
65
- });
66
- }); });
67
-
68
- //# sourceMappingURL=client-server-app.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/client-server-app.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uBAAyB;AACzB,2BAA6B;AAE7B,IAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;AAC3D,IAAM,YAAY,GAAG,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC;IAC/C,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IACvB,CAAC,cAAM,OAAO,CAAC,GAAG,CAAE,CAAC;AACtB,+DAAyD;AAEzD,YAAY,CAAC;;;oBACZ,qBAAM,sCAAe,CAAC,MAAM,CAAC,YAAY,EAAE,EAAE,EAAE,0BAA0B,EAAE,SAAS,CAAC,EAAA;;gBAArF,SAAqF,CAAC;;;;KACtF,CAAC,CAAC","file":"client-server-app.js","sourcesContent":["import * as fs from 'fs';\nimport * as path from 'path';\n\nconst settingsPath = path.join(__dirname, 'settings.json');\nconst serverConfig = fs.existsSync(settingsPath)\n\t? require(settingsPath)\n\t: { ...process.env };\nimport { ResolveIOServer } from './resolveio-server-app';\n\nsetImmediate(async () => {\n\tawait ResolveIOServer.create(serverConfig, [], 'ResolveIO Server Library', __dirname);\n});\n"]}
@@ -1,3 +0,0 @@
1
- import { AIRunModel } from '../models/ai-run.model';
2
- export declare const AIRuns: import("../managers/mongo.manager").MongoManagerCollection<AIRunModel> | import("../managers/mongo.manager").MongoManagerUserCollection<AIRunModel>;
3
- export declare const AIRunVersions: import("../managers/mongo.manager").MongoManagerCollection<AIRunModel> | import("../managers/mongo.manager").MongoManagerUserCollection<AIRunModel>;
@@ -1,170 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.AIRunVersions = exports.AIRuns = void 0;
40
- var mongo_manager_1 = require("../managers/mongo.manager");
41
- var schema = {
42
- _id: {
43
- type: String,
44
- optional: true
45
- },
46
- __v: {
47
- type: Number,
48
- optional: true
49
- },
50
- createdAt: {
51
- type: Date,
52
- optional: true
53
- },
54
- updatedAt: {
55
- type: Date,
56
- optional: true
57
- },
58
- source: {
59
- type: String
60
- },
61
- sourceIds: {
62
- type: Object,
63
- blackbox: true
64
- },
65
- title: {
66
- type: String,
67
- optional: true
68
- },
69
- status: {
70
- type: String,
71
- optional: true
72
- },
73
- phase: {
74
- type: String,
75
- optional: true
76
- },
77
- startedAt: {
78
- type: Date,
79
- optional: true
80
- },
81
- completedAt: {
82
- type: Date,
83
- optional: true
84
- },
85
- outcome: {
86
- type: String
87
- },
88
- events: {
89
- type: Array,
90
- optional: true
91
- },
92
- 'events.$': {
93
- type: Object,
94
- blackbox: true
95
- },
96
- gates: {
97
- type: Array,
98
- optional: true
99
- },
100
- 'gates.$': {
101
- type: Object,
102
- blackbox: true
103
- },
104
- qa: {
105
- type: Object,
106
- optional: true,
107
- blackbox: true
108
- },
109
- cost: {
110
- type: Object,
111
- optional: true,
112
- blackbox: true
113
- },
114
- nextAction: {
115
- type: String,
116
- optional: true
117
- },
118
- warnings: {
119
- type: Array,
120
- optional: true
121
- },
122
- 'warnings.$': {
123
- type: String
124
- },
125
- metadata: {
126
- type: Object,
127
- optional: true,
128
- blackbox: true
129
- }
130
- };
131
- var model = mongo_manager_1.MongoManagerModel.create({
132
- collectionName: 'ai-runs',
133
- schema: schema,
134
- useVersionCollection: true,
135
- useReportBuilder: false,
136
- reportBuilderLookupTables: [],
137
- timestamps: true,
138
- createLogs: true,
139
- checkSchema: true,
140
- collectionOptions: null
141
- });
142
- exports.AIRuns = model.collection_main;
143
- exports.AIRunVersions = model.collection_version;
144
- setTimeout(function () { return __awaiter(void 0, void 0, void 0, function () {
145
- return __generator(this, function (_a) {
146
- switch (_a.label) {
147
- case 0: return [4 /*yield*/, exports.AIRuns.createIndex({ source: 1, outcome: 1, updatedAt: -1 })];
148
- case 1:
149
- _a.sent();
150
- return [4 /*yield*/, exports.AIRuns.createIndex({ 'sourceIds.ticketNumber': 1, updatedAt: -1 })];
151
- case 2:
152
- _a.sent();
153
- return [4 /*yield*/, exports.AIRuns.createIndex({ 'sourceIds.ticketId': 1, updatedAt: -1 })];
154
- case 3:
155
- _a.sent();
156
- return [4 /*yield*/, exports.AIRuns.createIndex({ 'sourceIds.appId': 1, updatedAt: -1 })];
157
- case 4:
158
- _a.sent();
159
- return [4 /*yield*/, exports.AIRuns.createIndex({ 'sourceIds.jobId': 1, updatedAt: -1 })];
160
- case 5:
161
- _a.sent();
162
- return [4 /*yield*/, exports.AIRuns.createIndex({ 'sourceIds.conversationId': 1, updatedAt: -1 })];
163
- case 6:
164
- _a.sent();
165
- return [2 /*return*/];
166
- }
167
- });
168
- }); }, 5000);
169
-
170
- //# sourceMappingURL=ai-run.collection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/collections/ai-run.collection.ts"],"names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ApE,SAAoE,CAAC;gBACrE,qBAAM,cAAM,CAAC,WAAW,CAAC,EAAE,iBAAiB,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAA;;gBAAjE,SAAiE,CAAC;gBAClE,qBAAM,cAAM,CAAC,WAAW,CAAC,EAAE,iBAAiB,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAA;;gBAAjE,SAAiE,CAAC;gBAClE,qBAAM,cAAM,CAAC,WAAW,CAAC,EAAE,0BAA0B,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,EAAA;;gBAA1E,SAA0E,CAAC;;;;KAC3E,EAAE,IAAI,CAAC,CAAC","file":"ai-run.collection.js","sourcesContent":["import { MongoManagerModel } from '../managers/mongo.manager';\nimport { AIRunModel } from '../models/ai-run.model';\n\nconst schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tsource: {\n\t\ttype: String\n\t},\n\tsourceIds: {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\ttitle: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tstatus: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tphase: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tstartedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tcompletedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\toutcome: {\n\t\ttype: String\n\t},\n\tevents: {\n\t\ttype: Array,\n\t\toptional: true\n\t},\n\t'events.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tgates: {\n\t\ttype: Array,\n\t\toptional: true\n\t},\n\t'gates.$': {\n\t\ttype: Object,\n\t\tblackbox: true\n\t},\n\tqa: {\n\t\ttype: Object,\n\t\toptional: true,\n\t\tblackbox: true\n\t},\n\tcost: {\n\t\ttype: Object,\n\t\toptional: true,\n\t\tblackbox: true\n\t},\n\tnextAction: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\twarnings: {\n\t\ttype: Array,\n\t\toptional: true\n\t},\n\t'warnings.$': {\n\t\ttype: String\n\t},\n\tmetadata: {\n\t\ttype: Object,\n\t\toptional: true,\n\t\tblackbox: true\n\t}\n};\n\nconst model = MongoManagerModel.create<AIRunModel>({\n\tcollectionName: 'ai-runs',\n\tschema,\n\tuseVersionCollection: true,\n\tuseReportBuilder: false,\n\treportBuilderLookupTables: [],\n\ttimestamps: true,\n\tcreateLogs: true,\n\tcheckSchema: true,\n\tcollectionOptions: null\n});\n\nexport const AIRuns = model.collection_main;\nexport const AIRunVersions = model.collection_version;\n\nsetTimeout(async () => {\n\tawait AIRuns.createIndex({ source: 1, outcome: 1, updatedAt: -1 });\n\tawait AIRuns.createIndex({ 'sourceIds.ticketNumber': 1, updatedAt: -1 });\n\tawait AIRuns.createIndex({ 'sourceIds.ticketId': 1, updatedAt: -1 });\n\tawait AIRuns.createIndex({ 'sourceIds.appId': 1, updatedAt: -1 });\n\tawait AIRuns.createIndex({ 'sourceIds.jobId': 1, updatedAt: -1 });\n\tawait AIRuns.createIndex({ 'sourceIds.conversationId': 1, updatedAt: -1 });\n}, 5000);\n"]}
@@ -1,2 +0,0 @@
1
- import { AiTerminalConversationModel } from '../models/ai-terminal-conversation.model';
2
- export declare const AiTerminalConversations: import("../managers/mongo.manager").MongoManagerCollection<AiTerminalConversationModel> | import("../managers/mongo.manager").MongoManagerUserCollection<AiTerminalConversationModel>;
@@ -1,140 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
13
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.AiTerminalConversations = void 0;
40
- var mongo_manager_1 = require("../managers/mongo.manager");
41
- var schema = {
42
- _id: {
43
- type: String,
44
- optional: true
45
- },
46
- __v: {
47
- type: Number,
48
- optional: true
49
- },
50
- createdAt: {
51
- type: Date,
52
- optional: true
53
- },
54
- updatedAt: {
55
- type: Date,
56
- optional: true
57
- },
58
- id_client: {
59
- type: String,
60
- optional: true
61
- },
62
- id_user: {
63
- type: String,
64
- optional: true
65
- },
66
- id_app: {
67
- type: String,
68
- optional: true
69
- },
70
- title: {
71
- type: String,
72
- optional: true
73
- },
74
- mode: {
75
- type: String,
76
- optional: true
77
- },
78
- branch_enabled: {
79
- type: Boolean,
80
- optional: true
81
- },
82
- branch_name: {
83
- type: String,
84
- optional: true
85
- },
86
- status: {
87
- type: String,
88
- optional: true
89
- },
90
- profile_id: {
91
- type: String,
92
- optional: true
93
- },
94
- metadata: {
95
- type: Object,
96
- optional: true,
97
- blackbox: true
98
- },
99
- last_message_at: {
100
- type: Date,
101
- optional: true
102
- },
103
- last_message_id: {
104
- type: String,
105
- optional: true
106
- }
107
- };
108
- var model = mongo_manager_1.MongoManagerModel.create({
109
- collectionName: 'ai-terminal-conversations',
110
- schema: schema,
111
- useVersionCollection: false,
112
- useReportBuilder: false,
113
- reportBuilderLookupTables: [],
114
- timestamps: true,
115
- createLogs: false,
116
- checkSchema: true,
117
- collectionOptions: null
118
- });
119
- exports.AiTerminalConversations = model.collection_main;
120
- setTimeout(function () { return __awaiter(void 0, void 0, void 0, function () {
121
- return __generator(this, function (_a) {
122
- switch (_a.label) {
123
- case 0: return [4 /*yield*/, exports.AiTerminalConversations.createIndex({ id_client: 1, updatedAt: -1 })];
124
- case 1:
125
- _a.sent();
126
- return [4 /*yield*/, exports.AiTerminalConversations.createIndex({ id_user: 1, updatedAt: -1 })];
127
- case 2:
128
- _a.sent();
129
- return [4 /*yield*/, exports.AiTerminalConversations.createIndex({ id_app: 1, updatedAt: -1 })];
130
- case 3:
131
- _a.sent();
132
- return [4 /*yield*/, exports.AiTerminalConversations.createIndex({ status: 1, updatedAt: -1 })];
133
- case 4:
134
- _a.sent();
135
- return [2 /*return*/];
136
- }
137
- });
138
- }); }, 5000);
139
-
140
- //# sourceMappingURL=ai-terminal-conversation.collection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/collections/ai-terminal-conversation.collection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2DAA8D;AAG9D,IAAM,MAAM,GAAQ;IACnB,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,GAAG,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACd;IACD,SAAS,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,OAAO,EAAE;QACR,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,KAAK,EAAE;QACN,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,IAAI,EAAE;QACL,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,cAAc,EAAE;QACf,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,IAAI;KACd;IACD,WAAW,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,MAAM,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACd;IACD,UAAU,EAAE;QAC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AI,CAAC,CAAC","file":"ai-terminal-conversation.collection.js","sourcesContent":["import { MongoManagerModel } from '../managers/mongo.manager';\nimport { AiTerminalConversationModel } from '../models/ai-terminal-conversation.model';\n\nconst schema: any = {\n\t_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\t__v: {\n\t\ttype: Number,\n\t\toptional: true\n\t},\n\tcreatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tupdatedAt: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tid_client: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tid_user: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tid_app: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\ttitle: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tmode: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tbranch_enabled: {\n\t\ttype: Boolean,\n\t\toptional: true\n\t},\n\tbranch_name: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tstatus: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tprofile_id: {\n\t\ttype: String,\n\t\toptional: true\n\t},\n\tmetadata: {\n\t\ttype: Object,\n\t\toptional: true,\n\t\tblackbox: true\n\t},\n\tlast_message_at: {\n\t\ttype: Date,\n\t\toptional: true\n\t},\n\tlast_message_id: {\n\t\ttype: String,\n\t\toptional: true\n\t}\n};\n\nconst model = MongoManagerModel.create<AiTerminalConversationModel>({\n\tcollectionName: 'ai-terminal-conversations',\n\tschema: schema,\n\tuseVersionCollection: false,\n\tuseReportBuilder: false,\n\treportBuilderLookupTables: [],\n\ttimestamps: true,\n\tcreateLogs: false,\n\tcheckSchema: true,\n\tcollectionOptions: null\n});\n\nexport const AiTerminalConversations = model.collection_main;\n\nsetTimeout(async () => {\n\tawait AiTerminalConversations.createIndex({ id_client: 1, updatedAt: -1 });\n\tawait AiTerminalConversations.createIndex({ id_user: 1, updatedAt: -1 });\n\tawait AiTerminalConversations.createIndex({ id_app: 1, updatedAt: -1 });\n\tawait AiTerminalConversations.createIndex({ status: 1, updatedAt: -1 });\n}, 5000);\n"]}
@@ -1,2 +0,0 @@
1
- import { AiTerminalIssueReportModel } from '../models/ai-terminal-issue-report.model';
2
- export declare const AiTerminalIssueReports: import("../managers/mongo.manager").MongoManagerCollection<AiTerminalIssueReportModel> | import("../managers/mongo.manager").MongoManagerUserCollection<AiTerminalIssueReportModel>;