promptspeak-mcp-server 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1118) hide show
  1. package/README.md +98 -0
  2. package/dist/agents/database.d.ts +174 -0
  3. package/dist/agents/database.d.ts.map +1 -0
  4. package/dist/agents/database.js +1029 -0
  5. package/dist/agents/database.js.map +1 -0
  6. package/dist/agents/index.d.ts +13 -0
  7. package/dist/agents/index.d.ts.map +1 -0
  8. package/dist/agents/index.js +20 -0
  9. package/dist/agents/index.js.map +1 -0
  10. package/dist/agents/integration.d.ts +75 -0
  11. package/dist/agents/integration.d.ts.map +1 -0
  12. package/dist/agents/integration.js +166 -0
  13. package/dist/agents/integration.js.map +1 -0
  14. package/dist/agents/proposal-manager.d.ts +137 -0
  15. package/dist/agents/proposal-manager.d.ts.map +1 -0
  16. package/dist/agents/proposal-manager.js +782 -0
  17. package/dist/agents/proposal-manager.js.map +1 -0
  18. package/dist/agents/registry.d.ts +168 -0
  19. package/dist/agents/registry.d.ts.map +1 -0
  20. package/dist/agents/registry.js +716 -0
  21. package/dist/agents/registry.js.map +1 -0
  22. package/dist/agents/templates/index.d.ts +50 -0
  23. package/dist/agents/templates/index.d.ts.map +1 -0
  24. package/dist/agents/templates/index.js +415 -0
  25. package/dist/agents/templates/index.js.map +1 -0
  26. package/dist/agents/tools.d.ts +156 -0
  27. package/dist/agents/tools.d.ts.map +1 -0
  28. package/dist/agents/tools.js +590 -0
  29. package/dist/agents/tools.js.map +1 -0
  30. package/dist/agents/types.d.ts +513 -0
  31. package/dist/agents/types.d.ts.map +1 -0
  32. package/dist/agents/types.js +20 -0
  33. package/dist/agents/types.js.map +1 -0
  34. package/dist/auth/api-key.d.ts +37 -0
  35. package/dist/auth/api-key.d.ts.map +1 -0
  36. package/dist/auth/api-key.js +202 -0
  37. package/dist/auth/api-key.js.map +1 -0
  38. package/dist/auth/index.d.ts +8 -0
  39. package/dist/auth/index.d.ts.map +1 -0
  40. package/dist/auth/index.js +8 -0
  41. package/dist/auth/index.js.map +1 -0
  42. package/dist/auth/oauth.d.ts +125 -0
  43. package/dist/auth/oauth.d.ts.map +1 -0
  44. package/dist/auth/oauth.js +225 -0
  45. package/dist/auth/oauth.js.map +1 -0
  46. package/dist/boot-camp/boot-camp-controller.d.ts +185 -0
  47. package/dist/boot-camp/boot-camp-controller.d.ts.map +1 -0
  48. package/dist/boot-camp/boot-camp-controller.js +696 -0
  49. package/dist/boot-camp/boot-camp-controller.js.map +1 -0
  50. package/dist/boot-camp/database.d.ts +79 -0
  51. package/dist/boot-camp/database.d.ts.map +1 -0
  52. package/dist/boot-camp/database.js +594 -0
  53. package/dist/boot-camp/database.js.map +1 -0
  54. package/dist/boot-camp/index.d.ts +104 -0
  55. package/dist/boot-camp/index.d.ts.map +1 -0
  56. package/dist/boot-camp/index.js +140 -0
  57. package/dist/boot-camp/index.js.map +1 -0
  58. package/dist/boot-camp/phases/base-phase.d.ts +98 -0
  59. package/dist/boot-camp/phases/base-phase.d.ts.map +1 -0
  60. package/dist/boot-camp/phases/base-phase.js +170 -0
  61. package/dist/boot-camp/phases/base-phase.js.map +1 -0
  62. package/dist/boot-camp/phases/combat.d.ts +52 -0
  63. package/dist/boot-camp/phases/combat.d.ts.map +1 -0
  64. package/dist/boot-camp/phases/combat.js +413 -0
  65. package/dist/boot-camp/phases/combat.js.map +1 -0
  66. package/dist/boot-camp/phases/conditioning.d.ts +53 -0
  67. package/dist/boot-camp/phases/conditioning.d.ts.map +1 -0
  68. package/dist/boot-camp/phases/conditioning.js +354 -0
  69. package/dist/boot-camp/phases/conditioning.js.map +1 -0
  70. package/dist/boot-camp/phases/crucible.d.ts +52 -0
  71. package/dist/boot-camp/phases/crucible.d.ts.map +1 -0
  72. package/dist/boot-camp/phases/crucible.js +442 -0
  73. package/dist/boot-camp/phases/crucible.js.map +1 -0
  74. package/dist/boot-camp/phases/graduation.d.ts +52 -0
  75. package/dist/boot-camp/phases/graduation.d.ts.map +1 -0
  76. package/dist/boot-camp/phases/graduation.js +422 -0
  77. package/dist/boot-camp/phases/graduation.js.map +1 -0
  78. package/dist/boot-camp/phases/index.d.ts +14 -0
  79. package/dist/boot-camp/phases/index.d.ts.map +1 -0
  80. package/dist/boot-camp/phases/index.js +14 -0
  81. package/dist/boot-camp/phases/index.js.map +1 -0
  82. package/dist/boot-camp/phases/marksmanship.d.ts +50 -0
  83. package/dist/boot-camp/phases/marksmanship.d.ts.map +1 -0
  84. package/dist/boot-camp/phases/marksmanship.js +373 -0
  85. package/dist/boot-camp/phases/marksmanship.js.map +1 -0
  86. package/dist/boot-camp/phases/phase-factory.d.ts +24 -0
  87. package/dist/boot-camp/phases/phase-factory.d.ts.map +1 -0
  88. package/dist/boot-camp/phases/phase-factory.js +74 -0
  89. package/dist/boot-camp/phases/phase-factory.js.map +1 -0
  90. package/dist/boot-camp/phases/receiving.d.ts +49 -0
  91. package/dist/boot-camp/phases/receiving.d.ts.map +1 -0
  92. package/dist/boot-camp/phases/receiving.js +168 -0
  93. package/dist/boot-camp/phases/receiving.js.map +1 -0
  94. package/dist/boot-camp/swarm-integration.d.ts +164 -0
  95. package/dist/boot-camp/swarm-integration.d.ts.map +1 -0
  96. package/dist/boot-camp/swarm-integration.js +405 -0
  97. package/dist/boot-camp/swarm-integration.js.map +1 -0
  98. package/dist/boot-camp/tools.d.ts +718 -0
  99. package/dist/boot-camp/tools.d.ts.map +1 -0
  100. package/dist/boot-camp/tools.js +592 -0
  101. package/dist/boot-camp/tools.js.map +1 -0
  102. package/dist/boot-camp/types.d.ts +342 -0
  103. package/dist/boot-camp/types.d.ts.map +1 -0
  104. package/dist/boot-camp/types.js +179 -0
  105. package/dist/boot-camp/types.js.map +1 -0
  106. package/dist/core/config/env.d.ts +146 -0
  107. package/dist/core/config/env.d.ts.map +1 -0
  108. package/dist/core/config/env.js +230 -0
  109. package/dist/core/config/env.js.map +1 -0
  110. package/dist/core/config/index.d.ts +23 -0
  111. package/dist/core/config/index.d.ts.map +1 -0
  112. package/dist/core/config/index.js +31 -0
  113. package/dist/core/config/index.js.map +1 -0
  114. package/dist/core/errors/base.d.ts +168 -0
  115. package/dist/core/errors/base.d.ts.map +1 -0
  116. package/dist/core/errors/base.js +195 -0
  117. package/dist/core/errors/base.js.map +1 -0
  118. package/dist/core/errors/codes.d.ts +170 -0
  119. package/dist/core/errors/codes.d.ts.map +1 -0
  120. package/dist/core/errors/codes.js +460 -0
  121. package/dist/core/errors/codes.js.map +1 -0
  122. package/dist/core/errors/index.d.ts +40 -0
  123. package/dist/core/errors/index.d.ts.map +1 -0
  124. package/dist/core/errors/index.js +79 -0
  125. package/dist/core/errors/index.js.map +1 -0
  126. package/dist/core/errors/types.d.ts +708 -0
  127. package/dist/core/errors/types.d.ts.map +1 -0
  128. package/dist/core/errors/types.js +791 -0
  129. package/dist/core/errors/types.js.map +1 -0
  130. package/dist/core/http/http-client.d.ts +140 -0
  131. package/dist/core/http/http-client.d.ts.map +1 -0
  132. package/dist/core/http/http-client.js +278 -0
  133. package/dist/core/http/http-client.js.map +1 -0
  134. package/dist/core/http/index.d.ts +37 -0
  135. package/dist/core/http/index.d.ts.map +1 -0
  136. package/dist/core/http/index.js +41 -0
  137. package/dist/core/http/index.js.map +1 -0
  138. package/dist/core/http/retry-policy.d.ts +99 -0
  139. package/dist/core/http/retry-policy.d.ts.map +1 -0
  140. package/dist/core/http/retry-policy.js +152 -0
  141. package/dist/core/http/retry-policy.js.map +1 -0
  142. package/dist/core/logging/context.d.ts +84 -0
  143. package/dist/core/logging/context.d.ts.map +1 -0
  144. package/dist/core/logging/context.js +124 -0
  145. package/dist/core/logging/context.js.map +1 -0
  146. package/dist/core/logging/formatters.d.ts +48 -0
  147. package/dist/core/logging/formatters.d.ts.map +1 -0
  148. package/dist/core/logging/formatters.js +186 -0
  149. package/dist/core/logging/formatters.js.map +1 -0
  150. package/dist/core/logging/index.d.ts +49 -0
  151. package/dist/core/logging/index.d.ts.map +1 -0
  152. package/dist/core/logging/index.js +52 -0
  153. package/dist/core/logging/index.js.map +1 -0
  154. package/dist/core/logging/logger.d.ts +120 -0
  155. package/dist/core/logging/logger.d.ts.map +1 -0
  156. package/dist/core/logging/logger.js +213 -0
  157. package/dist/core/logging/logger.js.map +1 -0
  158. package/dist/core/logging/types.d.ts +64 -0
  159. package/dist/core/logging/types.d.ts.map +1 -0
  160. package/dist/core/logging/types.js +29 -0
  161. package/dist/core/logging/types.js.map +1 -0
  162. package/dist/core/patterns/index.d.ts +11 -0
  163. package/dist/core/patterns/index.d.ts.map +1 -0
  164. package/dist/core/patterns/index.js +11 -0
  165. package/dist/core/patterns/index.js.map +1 -0
  166. package/dist/core/patterns/singleton.d.ts +69 -0
  167. package/dist/core/patterns/singleton.d.ts.map +1 -0
  168. package/dist/core/patterns/singleton.js +115 -0
  169. package/dist/core/patterns/singleton.js.map +1 -0
  170. package/dist/core/result/batch.d.ts +190 -0
  171. package/dist/core/result/batch.d.ts.map +1 -0
  172. package/dist/core/result/batch.js +391 -0
  173. package/dist/core/result/batch.js.map +1 -0
  174. package/dist/core/result/builders.d.ts +310 -0
  175. package/dist/core/result/builders.d.ts.map +1 -0
  176. package/dist/core/result/builders.js +454 -0
  177. package/dist/core/result/builders.js.map +1 -0
  178. package/dist/core/result/index.d.ts +51 -0
  179. package/dist/core/result/index.d.ts.map +1 -0
  180. package/dist/core/result/index.js +83 -0
  181. package/dist/core/result/index.js.map +1 -0
  182. package/dist/core/result/mcp-adapter.d.ts +192 -0
  183. package/dist/core/result/mcp-adapter.d.ts.map +1 -0
  184. package/dist/core/result/mcp-adapter.js +255 -0
  185. package/dist/core/result/mcp-adapter.js.map +1 -0
  186. package/dist/core/result/types.d.ts +170 -0
  187. package/dist/core/result/types.d.ts.map +1 -0
  188. package/dist/core/result/types.js +21 -0
  189. package/dist/core/result/types.js.map +1 -0
  190. package/dist/core/security/index.d.ts +41 -0
  191. package/dist/core/security/index.d.ts.map +1 -0
  192. package/dist/core/security/index.js +43 -0
  193. package/dist/core/security/index.js.map +1 -0
  194. package/dist/core/security/redaction.d.ts +138 -0
  195. package/dist/core/security/redaction.d.ts.map +1 -0
  196. package/dist/core/security/redaction.js +295 -0
  197. package/dist/core/security/redaction.js.map +1 -0
  198. package/dist/core/security/secure-logging.d.ts +189 -0
  199. package/dist/core/security/secure-logging.d.ts.map +1 -0
  200. package/dist/core/security/secure-logging.js +253 -0
  201. package/dist/core/security/secure-logging.js.map +1 -0
  202. package/dist/core/types/http-types.d.ts +94 -0
  203. package/dist/core/types/http-types.d.ts.map +1 -0
  204. package/dist/core/types/http-types.js +36 -0
  205. package/dist/core/types/http-types.js.map +1 -0
  206. package/dist/core/types/id-generators.d.ts +69 -0
  207. package/dist/core/types/id-generators.d.ts.map +1 -0
  208. package/dist/core/types/id-generators.js +96 -0
  209. package/dist/core/types/id-generators.js.map +1 -0
  210. package/dist/core/types/index.d.ts +13 -0
  211. package/dist/core/types/index.d.ts.map +1 -0
  212. package/dist/core/types/index.js +14 -0
  213. package/dist/core/types/index.js.map +1 -0
  214. package/dist/document/agent.d.ts +63 -0
  215. package/dist/document/agent.d.ts.map +1 -0
  216. package/dist/document/agent.js +245 -0
  217. package/dist/document/agent.js.map +1 -0
  218. package/dist/document/extractor.d.ts +158 -0
  219. package/dist/document/extractor.d.ts.map +1 -0
  220. package/dist/document/extractor.js +720 -0
  221. package/dist/document/extractor.js.map +1 -0
  222. package/dist/document/index.d.ts +16 -0
  223. package/dist/document/index.d.ts.map +1 -0
  224. package/dist/document/index.js +22 -0
  225. package/dist/document/index.js.map +1 -0
  226. package/dist/document/merger.d.ts +59 -0
  227. package/dist/document/merger.d.ts.map +1 -0
  228. package/dist/document/merger.js +593 -0
  229. package/dist/document/merger.js.map +1 -0
  230. package/dist/document/parser.d.ts +67 -0
  231. package/dist/document/parser.d.ts.map +1 -0
  232. package/dist/document/parser.js +359 -0
  233. package/dist/document/parser.js.map +1 -0
  234. package/dist/document/tools.d.ts +14 -0
  235. package/dist/document/tools.d.ts.map +1 -0
  236. package/dist/document/tools.js +279 -0
  237. package/dist/document/tools.js.map +1 -0
  238. package/dist/document/types.d.ts +290 -0
  239. package/dist/document/types.d.ts.map +1 -0
  240. package/dist/document/types.js +12 -0
  241. package/dist/document/types.js.map +1 -0
  242. package/dist/drift/baseline.d.ts +65 -0
  243. package/dist/drift/baseline.d.ts.map +1 -0
  244. package/dist/drift/baseline.js +179 -0
  245. package/dist/drift/baseline.js.map +1 -0
  246. package/dist/drift/circuit-breaker.d.ts +91 -0
  247. package/dist/drift/circuit-breaker.d.ts.map +1 -0
  248. package/dist/drift/circuit-breaker.js +237 -0
  249. package/dist/drift/circuit-breaker.js.map +1 -0
  250. package/dist/drift/index.d.ts +161 -0
  251. package/dist/drift/index.d.ts.map +1 -0
  252. package/dist/drift/index.js +247 -0
  253. package/dist/drift/index.js.map +1 -0
  254. package/dist/drift/monitor.d.ts +115 -0
  255. package/dist/drift/monitor.d.ts.map +1 -0
  256. package/dist/drift/monitor.js +367 -0
  257. package/dist/drift/monitor.js.map +1 -0
  258. package/dist/drift/tripwire.d.ts +81 -0
  259. package/dist/drift/tripwire.d.ts.map +1 -0
  260. package/dist/drift/tripwire.js +196 -0
  261. package/dist/drift/tripwire.js.map +1 -0
  262. package/dist/fidelity/index.d.ts +12 -0
  263. package/dist/fidelity/index.d.ts.map +1 -0
  264. package/dist/fidelity/index.js +12 -0
  265. package/dist/fidelity/index.js.map +1 -0
  266. package/dist/fidelity/refresh-hooks.d.ts +75 -0
  267. package/dist/fidelity/refresh-hooks.d.ts.map +1 -0
  268. package/dist/fidelity/refresh-hooks.js +151 -0
  269. package/dist/fidelity/refresh-hooks.js.map +1 -0
  270. package/dist/gatekeeper/checklist-generator.d.ts +45 -0
  271. package/dist/gatekeeper/checklist-generator.d.ts.map +1 -0
  272. package/dist/gatekeeper/checklist-generator.js +336 -0
  273. package/dist/gatekeeper/checklist-generator.js.map +1 -0
  274. package/dist/gatekeeper/coverage.d.ts +28 -0
  275. package/dist/gatekeeper/coverage.d.ts.map +1 -0
  276. package/dist/gatekeeper/coverage.js +234 -0
  277. package/dist/gatekeeper/coverage.js.map +1 -0
  278. package/dist/gatekeeper/hold-manager.d.ts +174 -0
  279. package/dist/gatekeeper/hold-manager.d.ts.map +1 -0
  280. package/dist/gatekeeper/hold-manager.js +723 -0
  281. package/dist/gatekeeper/hold-manager.js.map +1 -0
  282. package/dist/gatekeeper/index.d.ts +244 -0
  283. package/dist/gatekeeper/index.d.ts.map +1 -0
  284. package/dist/gatekeeper/index.js +854 -0
  285. package/dist/gatekeeper/index.js.map +1 -0
  286. package/dist/gatekeeper/interceptor.d.ts +54 -0
  287. package/dist/gatekeeper/interceptor.d.ts.map +1 -0
  288. package/dist/gatekeeper/interceptor.js +217 -0
  289. package/dist/gatekeeper/interceptor.js.map +1 -0
  290. package/dist/gatekeeper/resolver.d.ts +53 -0
  291. package/dist/gatekeeper/resolver.d.ts.map +1 -0
  292. package/dist/gatekeeper/resolver.js +314 -0
  293. package/dist/gatekeeper/resolver.js.map +1 -0
  294. package/dist/gatekeeper/validator.d.ts +26 -0
  295. package/dist/gatekeeper/validator.d.ts.map +1 -0
  296. package/dist/gatekeeper/validator.js +686 -0
  297. package/dist/gatekeeper/validator.js.map +1 -0
  298. package/dist/government/adapters/base-adapter.d.ts +366 -0
  299. package/dist/government/adapters/base-adapter.d.ts.map +1 -0
  300. package/dist/government/adapters/base-adapter.js +598 -0
  301. package/dist/government/adapters/base-adapter.js.map +1 -0
  302. package/dist/government/adapters/federal-register-adapter.d.ts +327 -0
  303. package/dist/government/adapters/federal-register-adapter.d.ts.map +1 -0
  304. package/dist/government/adapters/federal-register-adapter.js +595 -0
  305. package/dist/government/adapters/federal-register-adapter.js.map +1 -0
  306. package/dist/government/adapters/regulations-adapter.d.ts +432 -0
  307. package/dist/government/adapters/regulations-adapter.d.ts.map +1 -0
  308. package/dist/government/adapters/regulations-adapter.js +727 -0
  309. package/dist/government/adapters/regulations-adapter.js.map +1 -0
  310. package/dist/government/adapters/sam-entity-adapter.d.ts +354 -0
  311. package/dist/government/adapters/sam-entity-adapter.d.ts.map +1 -0
  312. package/dist/government/adapters/sam-entity-adapter.js +599 -0
  313. package/dist/government/adapters/sam-entity-adapter.js.map +1 -0
  314. package/dist/government/adapters/sam-opportunities-adapter.d.ts +221 -0
  315. package/dist/government/adapters/sam-opportunities-adapter.d.ts.map +1 -0
  316. package/dist/government/adapters/sam-opportunities-adapter.js +538 -0
  317. package/dist/government/adapters/sam-opportunities-adapter.js.map +1 -0
  318. package/dist/government/adapters/usaspending-adapter.d.ts +390 -0
  319. package/dist/government/adapters/usaspending-adapter.d.ts.map +1 -0
  320. package/dist/government/adapters/usaspending-adapter.js +455 -0
  321. package/dist/government/adapters/usaspending-adapter.js.map +1 -0
  322. package/dist/government/index.d.ts +128 -0
  323. package/dist/government/index.d.ts.map +1 -0
  324. package/dist/government/index.js +183 -0
  325. package/dist/government/index.js.map +1 -0
  326. package/dist/government/mappers/symbol-mapper.d.ts +87 -0
  327. package/dist/government/mappers/symbol-mapper.d.ts.map +1 -0
  328. package/dist/government/mappers/symbol-mapper.js +647 -0
  329. package/dist/government/mappers/symbol-mapper.js.map +1 -0
  330. package/dist/handlers/index.d.ts +10 -0
  331. package/dist/handlers/index.d.ts.map +1 -0
  332. package/dist/handlers/index.js +11 -0
  333. package/dist/handlers/index.js.map +1 -0
  334. package/dist/handlers/recon-tools.d.ts +364 -0
  335. package/dist/handlers/recon-tools.d.ts.map +1 -0
  336. package/dist/handlers/recon-tools.js +678 -0
  337. package/dist/handlers/recon-tools.js.map +1 -0
  338. package/dist/handlers/tool-dispatcher.d.ts +71 -0
  339. package/dist/handlers/tool-dispatcher.d.ts.map +1 -0
  340. package/dist/handlers/tool-dispatcher.js +114 -0
  341. package/dist/handlers/tool-dispatcher.js.map +1 -0
  342. package/dist/handlers/tool-registry.d.ts +76 -0
  343. package/dist/handlers/tool-registry.d.ts.map +1 -0
  344. package/dist/handlers/tool-registry.js +636 -0
  345. package/dist/handlers/tool-registry.js.map +1 -0
  346. package/dist/http/app.d.ts +24 -0
  347. package/dist/http/app.d.ts.map +1 -0
  348. package/dist/http/app.js +35 -0
  349. package/dist/http/app.js.map +1 -0
  350. package/dist/http/config.d.ts +42 -0
  351. package/dist/http/config.d.ts.map +1 -0
  352. package/dist/http/config.js +62 -0
  353. package/dist/http/config.js.map +1 -0
  354. package/dist/http/database/index.d.ts +49 -0
  355. package/dist/http/database/index.d.ts.map +1 -0
  356. package/dist/http/database/index.js +115 -0
  357. package/dist/http/database/index.js.map +1 -0
  358. package/dist/http/middleware/auth.d.ts +28 -0
  359. package/dist/http/middleware/auth.d.ts.map +1 -0
  360. package/dist/http/middleware/auth.js +157 -0
  361. package/dist/http/middleware/auth.js.map +1 -0
  362. package/dist/http/middleware/error-handler.d.ts +47 -0
  363. package/dist/http/middleware/error-handler.d.ts.map +1 -0
  364. package/dist/http/middleware/error-handler.js +213 -0
  365. package/dist/http/middleware/error-handler.js.map +1 -0
  366. package/dist/http/middleware/index.d.ts +38 -0
  367. package/dist/http/middleware/index.d.ts.map +1 -0
  368. package/dist/http/middleware/index.js +124 -0
  369. package/dist/http/middleware/index.js.map +1 -0
  370. package/dist/http/middleware/request-logger.d.ts +8 -0
  371. package/dist/http/middleware/request-logger.d.ts.map +1 -0
  372. package/dist/http/middleware/request-logger.js +58 -0
  373. package/dist/http/middleware/request-logger.js.map +1 -0
  374. package/dist/http/routes/agent-runtime.d.ts +9 -0
  375. package/dist/http/routes/agent-runtime.d.ts.map +1 -0
  376. package/dist/http/routes/agent-runtime.js +415 -0
  377. package/dist/http/routes/agent-runtime.js.map +1 -0
  378. package/dist/http/routes/agents.d.ts +9 -0
  379. package/dist/http/routes/agents.d.ts.map +1 -0
  380. package/dist/http/routes/agents.js +503 -0
  381. package/dist/http/routes/agents.js.map +1 -0
  382. package/dist/http/routes/broadcasts.d.ts +9 -0
  383. package/dist/http/routes/broadcasts.d.ts.map +1 -0
  384. package/dist/http/routes/broadcasts.js +223 -0
  385. package/dist/http/routes/broadcasts.js.map +1 -0
  386. package/dist/http/routes/dashboard.d.ts +9 -0
  387. package/dist/http/routes/dashboard.d.ts.map +1 -0
  388. package/dist/http/routes/dashboard.js +169 -0
  389. package/dist/http/routes/dashboard.js.map +1 -0
  390. package/dist/http/routes/ebay.d.ts +15 -0
  391. package/dist/http/routes/ebay.d.ts.map +1 -0
  392. package/dist/http/routes/ebay.js +242 -0
  393. package/dist/http/routes/ebay.js.map +1 -0
  394. package/dist/http/routes/health.d.ts +8 -0
  395. package/dist/http/routes/health.d.ts.map +1 -0
  396. package/dist/http/routes/health.js +66 -0
  397. package/dist/http/routes/health.js.map +1 -0
  398. package/dist/http/routes/index.d.ts +39 -0
  399. package/dist/http/routes/index.d.ts.map +1 -0
  400. package/dist/http/routes/index.js +89 -0
  401. package/dist/http/routes/index.js.map +1 -0
  402. package/dist/http/routes/missions.d.ts +9 -0
  403. package/dist/http/routes/missions.d.ts.map +1 -0
  404. package/dist/http/routes/missions.js +587 -0
  405. package/dist/http/routes/missions.js.map +1 -0
  406. package/dist/http/routes/openapi.d.ts +8 -0
  407. package/dist/http/routes/openapi.d.ts.map +1 -0
  408. package/dist/http/routes/openapi.js +76 -0
  409. package/dist/http/routes/openapi.js.map +1 -0
  410. package/dist/http/routes/symbols.d.ts +19 -0
  411. package/dist/http/routes/symbols.d.ts.map +1 -0
  412. package/dist/http/routes/symbols.js +219 -0
  413. package/dist/http/routes/symbols.js.map +1 -0
  414. package/dist/http/server-init.d.ts +69 -0
  415. package/dist/http/server-init.d.ts.map +1 -0
  416. package/dist/http/server-init.js +270 -0
  417. package/dist/http/server-init.js.map +1 -0
  418. package/dist/http/server.d.ts +14 -0
  419. package/dist/http/server.d.ts.map +1 -0
  420. package/dist/http/server.js +114 -0
  421. package/dist/http/server.js.map +1 -0
  422. package/dist/http/services/agent-runtime.d.ts +211 -0
  423. package/dist/http/services/agent-runtime.d.ts.map +1 -0
  424. package/dist/http/services/agent-runtime.js +603 -0
  425. package/dist/http/services/agent-runtime.js.map +1 -0
  426. package/dist/http/services/broadcasts.d.ts +142 -0
  427. package/dist/http/services/broadcasts.d.ts.map +1 -0
  428. package/dist/http/services/broadcasts.js +335 -0
  429. package/dist/http/services/broadcasts.js.map +1 -0
  430. package/dist/http/services/index.d.ts +10 -0
  431. package/dist/http/services/index.d.ts.map +1 -0
  432. package/dist/http/services/index.js +14 -0
  433. package/dist/http/services/index.js.map +1 -0
  434. package/dist/http/services/metrics.d.ts +144 -0
  435. package/dist/http/services/metrics.d.ts.map +1 -0
  436. package/dist/http/services/metrics.js +351 -0
  437. package/dist/http/services/metrics.js.map +1 -0
  438. package/dist/http/services/missions.d.ts +224 -0
  439. package/dist/http/services/missions.d.ts.map +1 -0
  440. package/dist/http/services/missions.js +701 -0
  441. package/dist/http/services/missions.js.map +1 -0
  442. package/dist/http/services/symbol.service.d.ts +62 -0
  443. package/dist/http/services/symbol.service.d.ts.map +1 -0
  444. package/dist/http/services/symbol.service.js +222 -0
  445. package/dist/http/services/symbol.service.js.map +1 -0
  446. package/dist/http/websocket/index.d.ts +50 -0
  447. package/dist/http/websocket/index.d.ts.map +1 -0
  448. package/dist/http/websocket/index.js +293 -0
  449. package/dist/http/websocket/index.js.map +1 -0
  450. package/dist/legal/__tests__/calendar-integration.test.d.ts +7 -0
  451. package/dist/legal/__tests__/calendar-integration.test.d.ts.map +1 -0
  452. package/dist/legal/__tests__/calendar-integration.test.js +643 -0
  453. package/dist/legal/__tests__/calendar-integration.test.js.map +1 -0
  454. package/dist/legal/batch-parser.d.ts +185 -0
  455. package/dist/legal/batch-parser.d.ts.map +1 -0
  456. package/dist/legal/batch-parser.js +348 -0
  457. package/dist/legal/batch-parser.js.map +1 -0
  458. package/dist/legal/calendar-integration.d.ts +209 -0
  459. package/dist/legal/calendar-integration.d.ts.map +1 -0
  460. package/dist/legal/calendar-integration.js +341 -0
  461. package/dist/legal/calendar-integration.js.map +1 -0
  462. package/dist/legal/calendar-tools.d.ts +39 -0
  463. package/dist/legal/calendar-tools.d.ts.map +1 -0
  464. package/dist/legal/calendar-tools.js +606 -0
  465. package/dist/legal/calendar-tools.js.map +1 -0
  466. package/dist/legal/calendar-types.d.ts +152 -0
  467. package/dist/legal/calendar-types.d.ts.map +1 -0
  468. package/dist/legal/calendar-types.js +88 -0
  469. package/dist/legal/calendar-types.js.map +1 -0
  470. package/dist/legal/citation-validator.d.ts +97 -0
  471. package/dist/legal/citation-validator.d.ts.map +1 -0
  472. package/dist/legal/citation-validator.js +1487 -0
  473. package/dist/legal/citation-validator.js.map +1 -0
  474. package/dist/legal/courtlistener-adapter.d.ts +156 -0
  475. package/dist/legal/courtlistener-adapter.d.ts.map +1 -0
  476. package/dist/legal/courtlistener-adapter.js +684 -0
  477. package/dist/legal/courtlistener-adapter.js.map +1 -0
  478. package/dist/legal/deadline-extractor.d.ts +71 -0
  479. package/dist/legal/deadline-extractor.d.ts.map +1 -0
  480. package/dist/legal/deadline-extractor.js +557 -0
  481. package/dist/legal/deadline-extractor.js.map +1 -0
  482. package/dist/legal/ical-generator.d.ts +83 -0
  483. package/dist/legal/ical-generator.d.ts.map +1 -0
  484. package/dist/legal/ical-generator.js +322 -0
  485. package/dist/legal/ical-generator.js.map +1 -0
  486. package/dist/legal/index.d.ts +17 -0
  487. package/dist/legal/index.d.ts.map +1 -0
  488. package/dist/legal/index.js +32 -0
  489. package/dist/legal/index.js.map +1 -0
  490. package/dist/legal/legal-preflight.d.ts +86 -0
  491. package/dist/legal/legal-preflight.d.ts.map +1 -0
  492. package/dist/legal/legal-preflight.js +442 -0
  493. package/dist/legal/legal-preflight.js.map +1 -0
  494. package/dist/legal/types.d.ts +303 -0
  495. package/dist/legal/types.d.ts.map +1 -0
  496. package/dist/legal/types.js +38 -0
  497. package/dist/legal/types.js.map +1 -0
  498. package/dist/multi_agent/__tests__/intent-tools.test.d.ts +7 -0
  499. package/dist/multi_agent/__tests__/intent-tools.test.d.ts.map +1 -0
  500. package/dist/multi_agent/__tests__/intent-tools.test.js +604 -0
  501. package/dist/multi_agent/__tests__/intent-tools.test.js.map +1 -0
  502. package/dist/multi_agent/agent-registry.d.ts +132 -0
  503. package/dist/multi_agent/agent-registry.d.ts.map +1 -0
  504. package/dist/multi_agent/agent-registry.js +311 -0
  505. package/dist/multi_agent/agent-registry.js.map +1 -0
  506. package/dist/multi_agent/boot-camp.d.ts +159 -0
  507. package/dist/multi_agent/boot-camp.d.ts.map +1 -0
  508. package/dist/multi_agent/boot-camp.js +463 -0
  509. package/dist/multi_agent/boot-camp.js.map +1 -0
  510. package/dist/multi_agent/container.d.ts +87 -0
  511. package/dist/multi_agent/container.d.ts.map +1 -0
  512. package/dist/multi_agent/container.js +99 -0
  513. package/dist/multi_agent/container.js.map +1 -0
  514. package/dist/multi_agent/index.d.ts +32 -0
  515. package/dist/multi_agent/index.d.ts.map +1 -0
  516. package/dist/multi_agent/index.js +67 -0
  517. package/dist/multi_agent/index.js.map +1 -0
  518. package/dist/multi_agent/intent-manager.d.ts +119 -0
  519. package/dist/multi_agent/intent-manager.d.ts.map +1 -0
  520. package/dist/multi_agent/intent-manager.js +571 -0
  521. package/dist/multi_agent/intent-manager.js.map +1 -0
  522. package/dist/multi_agent/intent-tools.d.ts +370 -0
  523. package/dist/multi_agent/intent-tools.d.ts.map +1 -0
  524. package/dist/multi_agent/intent-tools.js +661 -0
  525. package/dist/multi_agent/intent-tools.js.map +1 -0
  526. package/dist/multi_agent/intent-types.d.ts +435 -0
  527. package/dist/multi_agent/intent-types.d.ts.map +1 -0
  528. package/dist/multi_agent/intent-types.js +17 -0
  529. package/dist/multi_agent/intent-types.js.map +1 -0
  530. package/dist/multi_agent/lru-cache.d.ts +140 -0
  531. package/dist/multi_agent/lru-cache.d.ts.map +1 -0
  532. package/dist/multi_agent/lru-cache.js +310 -0
  533. package/dist/multi_agent/lru-cache.js.map +1 -0
  534. package/dist/multi_agent/mission.d.ts +151 -0
  535. package/dist/multi_agent/mission.d.ts.map +1 -0
  536. package/dist/multi_agent/mission.js +439 -0
  537. package/dist/multi_agent/mission.js.map +1 -0
  538. package/dist/multi_agent/tool-dispatcher.d.ts +325 -0
  539. package/dist/multi_agent/tool-dispatcher.d.ts.map +1 -0
  540. package/dist/multi_agent/tool-dispatcher.js +108 -0
  541. package/dist/multi_agent/tool-dispatcher.js.map +1 -0
  542. package/dist/multi_agent/tools.d.ts +543 -0
  543. package/dist/multi_agent/tools.d.ts.map +1 -0
  544. package/dist/multi_agent/tools.js +1081 -0
  545. package/dist/multi_agent/tools.js.map +1 -0
  546. package/dist/notifications/webhook-dispatcher.d.ts +98 -0
  547. package/dist/notifications/webhook-dispatcher.d.ts.map +1 -0
  548. package/dist/notifications/webhook-dispatcher.js +548 -0
  549. package/dist/notifications/webhook-dispatcher.js.map +1 -0
  550. package/dist/operator/config.d.ts +128 -0
  551. package/dist/operator/config.d.ts.map +1 -0
  552. package/dist/operator/config.js +309 -0
  553. package/dist/operator/config.js.map +1 -0
  554. package/dist/operator/index.d.ts +116 -0
  555. package/dist/operator/index.d.ts.map +1 -0
  556. package/dist/operator/index.js +207 -0
  557. package/dist/operator/index.js.map +1 -0
  558. package/dist/policies/loader.d.ts +120 -0
  559. package/dist/policies/loader.d.ts.map +1 -0
  560. package/dist/policies/loader.js +193 -0
  561. package/dist/policies/loader.js.map +1 -0
  562. package/dist/recon/agent/analyst.d.ts +159 -0
  563. package/dist/recon/agent/analyst.d.ts.map +1 -0
  564. package/dist/recon/agent/analyst.js +689 -0
  565. package/dist/recon/agent/analyst.js.map +1 -0
  566. package/dist/recon/agent/performer.d.ts +175 -0
  567. package/dist/recon/agent/performer.d.ts.map +1 -0
  568. package/dist/recon/agent/performer.js +367 -0
  569. package/dist/recon/agent/performer.js.map +1 -0
  570. package/dist/recon/agent/runtime.d.ts +184 -0
  571. package/dist/recon/agent/runtime.d.ts.map +1 -0
  572. package/dist/recon/agent/runtime.js +474 -0
  573. package/dist/recon/agent/runtime.js.map +1 -0
  574. package/dist/recon/agent/veto-gate.d.ts +167 -0
  575. package/dist/recon/agent/veto-gate.d.ts.map +1 -0
  576. package/dist/recon/agent/veto-gate.js +393 -0
  577. package/dist/recon/agent/veto-gate.js.map +1 -0
  578. package/dist/recon/chat/web-chat-adapter.d.ts +190 -0
  579. package/dist/recon/chat/web-chat-adapter.d.ts.map +1 -0
  580. package/dist/recon/chat/web-chat-adapter.js +368 -0
  581. package/dist/recon/chat/web-chat-adapter.js.map +1 -0
  582. package/dist/recon/delivery/base-channel.d.ts +130 -0
  583. package/dist/recon/delivery/base-channel.d.ts.map +1 -0
  584. package/dist/recon/delivery/base-channel.js +260 -0
  585. package/dist/recon/delivery/base-channel.js.map +1 -0
  586. package/dist/recon/delivery/callback-channel.d.ts +156 -0
  587. package/dist/recon/delivery/callback-channel.d.ts.map +1 -0
  588. package/dist/recon/delivery/callback-channel.js +321 -0
  589. package/dist/recon/delivery/callback-channel.js.map +1 -0
  590. package/dist/recon/delivery/console-channel.d.ts +109 -0
  591. package/dist/recon/delivery/console-channel.d.ts.map +1 -0
  592. package/dist/recon/delivery/console-channel.js +311 -0
  593. package/dist/recon/delivery/console-channel.js.map +1 -0
  594. package/dist/recon/delivery/delivery-manager.d.ts +129 -0
  595. package/dist/recon/delivery/delivery-manager.d.ts.map +1 -0
  596. package/dist/recon/delivery/delivery-manager.js +450 -0
  597. package/dist/recon/delivery/delivery-manager.js.map +1 -0
  598. package/dist/recon/delivery/index.d.ts +52 -0
  599. package/dist/recon/delivery/index.d.ts.map +1 -0
  600. package/dist/recon/delivery/index.js +83 -0
  601. package/dist/recon/delivery/index.js.map +1 -0
  602. package/dist/recon/delivery/types.d.ts +191 -0
  603. package/dist/recon/delivery/types.d.ts.map +1 -0
  604. package/dist/recon/delivery/types.js +37 -0
  605. package/dist/recon/delivery/types.js.map +1 -0
  606. package/dist/recon/index.d.ts +86 -0
  607. package/dist/recon/index.d.ts.map +1 -0
  608. package/dist/recon/index.js +189 -0
  609. package/dist/recon/index.js.map +1 -0
  610. package/dist/recon/persistence/index.d.ts +103 -0
  611. package/dist/recon/persistence/index.d.ts.map +1 -0
  612. package/dist/recon/persistence/index.js +118 -0
  613. package/dist/recon/persistence/index.js.map +1 -0
  614. package/dist/recon/persistence/storage.d.ts +166 -0
  615. package/dist/recon/persistence/storage.d.ts.map +1 -0
  616. package/dist/recon/persistence/storage.js +793 -0
  617. package/dist/recon/persistence/storage.js.map +1 -0
  618. package/dist/recon/persistence/types.d.ts +254 -0
  619. package/dist/recon/persistence/types.d.ts.map +1 -0
  620. package/dist/recon/persistence/types.js +130 -0
  621. package/dist/recon/persistence/types.js.map +1 -0
  622. package/dist/recon/ralph-loop/executor.d.ts +122 -0
  623. package/dist/recon/ralph-loop/executor.d.ts.map +1 -0
  624. package/dist/recon/ralph-loop/executor.js +426 -0
  625. package/dist/recon/ralph-loop/executor.js.map +1 -0
  626. package/dist/recon/ralph-loop/scheduler.d.ts +145 -0
  627. package/dist/recon/ralph-loop/scheduler.d.ts.map +1 -0
  628. package/dist/recon/ralph-loop/scheduler.js +244 -0
  629. package/dist/recon/ralph-loop/scheduler.js.map +1 -0
  630. package/dist/recon/reports/formatters/index.d.ts +13 -0
  631. package/dist/recon/reports/formatters/index.d.ts.map +1 -0
  632. package/dist/recon/reports/formatters/index.js +13 -0
  633. package/dist/recon/reports/formatters/index.js.map +1 -0
  634. package/dist/recon/reports/formatters/json-formatter.d.ts +39 -0
  635. package/dist/recon/reports/formatters/json-formatter.d.ts.map +1 -0
  636. package/dist/recon/reports/formatters/json-formatter.js +260 -0
  637. package/dist/recon/reports/formatters/json-formatter.js.map +1 -0
  638. package/dist/recon/reports/formatters/markdown-formatter.d.ts +16 -0
  639. package/dist/recon/reports/formatters/markdown-formatter.d.ts.map +1 -0
  640. package/dist/recon/reports/formatters/markdown-formatter.js +332 -0
  641. package/dist/recon/reports/formatters/markdown-formatter.js.map +1 -0
  642. package/dist/recon/reports/formatters/text-formatter.d.ts +29 -0
  643. package/dist/recon/reports/formatters/text-formatter.d.ts.map +1 -0
  644. package/dist/recon/reports/formatters/text-formatter.js +360 -0
  645. package/dist/recon/reports/formatters/text-formatter.js.map +1 -0
  646. package/dist/recon/reports/index.d.ts +31 -0
  647. package/dist/recon/reports/index.d.ts.map +1 -0
  648. package/dist/recon/reports/index.js +33 -0
  649. package/dist/recon/reports/index.js.map +1 -0
  650. package/dist/recon/reports/report-generator.d.ts +147 -0
  651. package/dist/recon/reports/report-generator.d.ts.map +1 -0
  652. package/dist/recon/reports/report-generator.js +434 -0
  653. package/dist/recon/reports/report-generator.js.map +1 -0
  654. package/dist/recon/reports/sections/constraint-violations.d.ts +22 -0
  655. package/dist/recon/reports/sections/constraint-violations.d.ts.map +1 -0
  656. package/dist/recon/reports/sections/constraint-violations.js +383 -0
  657. package/dist/recon/reports/sections/constraint-violations.js.map +1 -0
  658. package/dist/recon/reports/sections/drift-analysis.d.ts +22 -0
  659. package/dist/recon/reports/sections/drift-analysis.d.ts.map +1 -0
  660. package/dist/recon/reports/sections/drift-analysis.js +270 -0
  661. package/dist/recon/reports/sections/drift-analysis.js.map +1 -0
  662. package/dist/recon/reports/sections/index.d.ts +23 -0
  663. package/dist/recon/reports/sections/index.d.ts.map +1 -0
  664. package/dist/recon/reports/sections/index.js +18 -0
  665. package/dist/recon/reports/sections/index.js.map +1 -0
  666. package/dist/recon/reports/sections/intelligence-gathered.d.ts +22 -0
  667. package/dist/recon/reports/sections/intelligence-gathered.d.ts.map +1 -0
  668. package/dist/recon/reports/sections/intelligence-gathered.js +373 -0
  669. package/dist/recon/reports/sections/intelligence-gathered.js.map +1 -0
  670. package/dist/recon/reports/sections/mission-overview.d.ts +22 -0
  671. package/dist/recon/reports/sections/mission-overview.d.ts.map +1 -0
  672. package/dist/recon/reports/sections/mission-overview.js +256 -0
  673. package/dist/recon/reports/sections/mission-overview.js.map +1 -0
  674. package/dist/recon/reports/sections/opposing-agent-profile.d.ts +22 -0
  675. package/dist/recon/reports/sections/opposing-agent-profile.d.ts.map +1 -0
  676. package/dist/recon/reports/sections/opposing-agent-profile.js +253 -0
  677. package/dist/recon/reports/sections/opposing-agent-profile.js.map +1 -0
  678. package/dist/recon/reports/sections/recommendations.d.ts +22 -0
  679. package/dist/recon/reports/sections/recommendations.d.ts.map +1 -0
  680. package/dist/recon/reports/sections/recommendations.js +341 -0
  681. package/dist/recon/reports/sections/recommendations.js.map +1 -0
  682. package/dist/recon/reports/sections/tactics-observed.d.ts +30 -0
  683. package/dist/recon/reports/sections/tactics-observed.d.ts.map +1 -0
  684. package/dist/recon/reports/sections/tactics-observed.js +275 -0
  685. package/dist/recon/reports/sections/tactics-observed.js.map +1 -0
  686. package/dist/recon/reports/types.d.ts +320 -0
  687. package/dist/recon/reports/types.d.ts.map +1 -0
  688. package/dist/recon/reports/types.js +13 -0
  689. package/dist/recon/reports/types.js.map +1 -0
  690. package/dist/recon/stealth/timing-calculator.d.ts +128 -0
  691. package/dist/recon/stealth/timing-calculator.d.ts.map +1 -0
  692. package/dist/recon/stealth/timing-calculator.js +288 -0
  693. package/dist/recon/stealth/timing-calculator.js.map +1 -0
  694. package/dist/recon/stealth/typing-simulator.d.ts +107 -0
  695. package/dist/recon/stealth/typing-simulator.d.ts.map +1 -0
  696. package/dist/recon/stealth/typing-simulator.js +376 -0
  697. package/dist/recon/stealth/typing-simulator.js.map +1 -0
  698. package/dist/recon/stealth/typo-generator.d.ts +95 -0
  699. package/dist/recon/stealth/typo-generator.d.ts.map +1 -0
  700. package/dist/recon/stealth/typo-generator.js +354 -0
  701. package/dist/recon/stealth/typo-generator.js.map +1 -0
  702. package/dist/recon/symbol/schema.d.ts +124 -0
  703. package/dist/recon/symbol/schema.d.ts.map +1 -0
  704. package/dist/recon/symbol/schema.js +441 -0
  705. package/dist/recon/symbol/schema.js.map +1 -0
  706. package/dist/recon/symbol/validator.d.ts +130 -0
  707. package/dist/recon/symbol/validator.d.ts.map +1 -0
  708. package/dist/recon/symbol/validator.js +619 -0
  709. package/dist/recon/symbol/validator.js.map +1 -0
  710. package/dist/recon/templates/customer-service/account-issue.d.ts +59 -0
  711. package/dist/recon/templates/customer-service/account-issue.d.ts.map +1 -0
  712. package/dist/recon/templates/customer-service/account-issue.js +170 -0
  713. package/dist/recon/templates/customer-service/account-issue.js.map +1 -0
  714. package/dist/recon/templates/customer-service/complaint.d.ts +60 -0
  715. package/dist/recon/templates/customer-service/complaint.d.ts.map +1 -0
  716. package/dist/recon/templates/customer-service/complaint.js +171 -0
  717. package/dist/recon/templates/customer-service/complaint.js.map +1 -0
  718. package/dist/recon/templates/customer-service/index.d.ts +21 -0
  719. package/dist/recon/templates/customer-service/index.d.ts.map +1 -0
  720. package/dist/recon/templates/customer-service/index.js +29 -0
  721. package/dist/recon/templates/customer-service/index.js.map +1 -0
  722. package/dist/recon/templates/customer-service/refund-request.d.ts +58 -0
  723. package/dist/recon/templates/customer-service/refund-request.d.ts.map +1 -0
  724. package/dist/recon/templates/customer-service/refund-request.js +161 -0
  725. package/dist/recon/templates/customer-service/refund-request.js.map +1 -0
  726. package/dist/recon/templates/index.d.ts +186 -0
  727. package/dist/recon/templates/index.d.ts.map +1 -0
  728. package/dist/recon/templates/index.js +316 -0
  729. package/dist/recon/templates/index.js.map +1 -0
  730. package/dist/recon/templates/sales/index.d.ts +20 -0
  731. package/dist/recon/templates/sales/index.d.ts.map +1 -0
  732. package/dist/recon/templates/sales/index.js +26 -0
  733. package/dist/recon/templates/sales/index.js.map +1 -0
  734. package/dist/recon/templates/sales/price-negotiation.d.ts +60 -0
  735. package/dist/recon/templates/sales/price-negotiation.d.ts.map +1 -0
  736. package/dist/recon/templates/sales/price-negotiation.js +167 -0
  737. package/dist/recon/templates/sales/price-negotiation.js.map +1 -0
  738. package/dist/recon/templates/sales/product-inquiry.d.ts +60 -0
  739. package/dist/recon/templates/sales/product-inquiry.d.ts.map +1 -0
  740. package/dist/recon/templates/sales/product-inquiry.js +167 -0
  741. package/dist/recon/templates/sales/product-inquiry.js.map +1 -0
  742. package/dist/recon/templates/support/feature-request.d.ts +60 -0
  743. package/dist/recon/templates/support/feature-request.d.ts.map +1 -0
  744. package/dist/recon/templates/support/feature-request.js +167 -0
  745. package/dist/recon/templates/support/feature-request.js.map +1 -0
  746. package/dist/recon/templates/support/index.d.ts +20 -0
  747. package/dist/recon/templates/support/index.d.ts.map +1 -0
  748. package/dist/recon/templates/support/index.js +26 -0
  749. package/dist/recon/templates/support/index.js.map +1 -0
  750. package/dist/recon/templates/support/troubleshooting.d.ts +60 -0
  751. package/dist/recon/templates/support/troubleshooting.d.ts.map +1 -0
  752. package/dist/recon/templates/support/troubleshooting.js +173 -0
  753. package/dist/recon/templates/support/troubleshooting.js.map +1 -0
  754. package/dist/recon/templates/types.d.ts +144 -0
  755. package/dist/recon/templates/types.d.ts.map +1 -0
  756. package/dist/recon/templates/types.js +40 -0
  757. package/dist/recon/templates/types.js.map +1 -0
  758. package/dist/recon/testing/index.d.ts +43 -0
  759. package/dist/recon/testing/index.d.ts.map +1 -0
  760. package/dist/recon/testing/index.js +55 -0
  761. package/dist/recon/testing/index.js.map +1 -0
  762. package/dist/recon/testing/metrics-collector.d.ts +185 -0
  763. package/dist/recon/testing/metrics-collector.d.ts.map +1 -0
  764. package/dist/recon/testing/metrics-collector.js +397 -0
  765. package/dist/recon/testing/metrics-collector.js.map +1 -0
  766. package/dist/recon/testing/mock-chatbot.d.ts +147 -0
  767. package/dist/recon/testing/mock-chatbot.d.ts.map +1 -0
  768. package/dist/recon/testing/mock-chatbot.js +500 -0
  769. package/dist/recon/testing/mock-chatbot.js.map +1 -0
  770. package/dist/recon/testing/scenario-runner.d.ts +154 -0
  771. package/dist/recon/testing/scenario-runner.d.ts.map +1 -0
  772. package/dist/recon/testing/scenario-runner.js +242 -0
  773. package/dist/recon/testing/scenario-runner.js.map +1 -0
  774. package/dist/recon/testing/test-scenarios.d.ts +135 -0
  775. package/dist/recon/testing/test-scenarios.d.ts.map +1 -0
  776. package/dist/recon/testing/test-scenarios.js +358 -0
  777. package/dist/recon/testing/test-scenarios.js.map +1 -0
  778. package/dist/recon/types.d.ts +821 -0
  779. package/dist/recon/types.d.ts.map +1 -0
  780. package/dist/recon/types.js +167 -0
  781. package/dist/recon/types.js.map +1 -0
  782. package/dist/scheduler/naics-monitor.d.ts +82 -0
  783. package/dist/scheduler/naics-monitor.d.ts.map +1 -0
  784. package/dist/scheduler/naics-monitor.js +534 -0
  785. package/dist/scheduler/naics-monitor.js.map +1 -0
  786. package/dist/server-init.d.ts +89 -0
  787. package/dist/server-init.d.ts.map +1 -0
  788. package/dist/server-init.js +242 -0
  789. package/dist/server-init.js.map +1 -0
  790. package/dist/server.d.ts +14 -0
  791. package/dist/server.d.ts.map +1 -0
  792. package/dist/server.js +99 -0
  793. package/dist/server.js.map +1 -0
  794. package/dist/swarm/alerts/alert-engine.d.ts +64 -0
  795. package/dist/swarm/alerts/alert-engine.d.ts.map +1 -0
  796. package/dist/swarm/alerts/alert-engine.js +343 -0
  797. package/dist/swarm/alerts/alert-engine.js.map +1 -0
  798. package/dist/swarm/alerts/index.d.ts +7 -0
  799. package/dist/swarm/alerts/index.d.ts.map +1 -0
  800. package/dist/swarm/alerts/index.js +7 -0
  801. package/dist/swarm/alerts/index.js.map +1 -0
  802. package/dist/swarm/budget-allocator.d.ts +153 -0
  803. package/dist/swarm/budget-allocator.d.ts.map +1 -0
  804. package/dist/swarm/budget-allocator.js +402 -0
  805. package/dist/swarm/budget-allocator.js.map +1 -0
  806. package/dist/swarm/database.d.ts +202 -0
  807. package/dist/swarm/database.d.ts.map +1 -0
  808. package/dist/swarm/database.js +1389 -0
  809. package/dist/swarm/database.js.map +1 -0
  810. package/dist/swarm/demo/fixtures/index.d.ts +7 -0
  811. package/dist/swarm/demo/fixtures/index.d.ts.map +1 -0
  812. package/dist/swarm/demo/fixtures/index.js +7 -0
  813. package/dist/swarm/demo/fixtures/index.js.map +1 -0
  814. package/dist/swarm/demo/fixtures/sample-listings.d.ts +38 -0
  815. package/dist/swarm/demo/fixtures/sample-listings.d.ts.map +1 -0
  816. package/dist/swarm/demo/fixtures/sample-listings.js +390 -0
  817. package/dist/swarm/demo/fixtures/sample-listings.js.map +1 -0
  818. package/dist/swarm/demo/index.d.ts +9 -0
  819. package/dist/swarm/demo/index.d.ts.map +1 -0
  820. package/dist/swarm/demo/index.js +12 -0
  821. package/dist/swarm/demo/index.js.map +1 -0
  822. package/dist/swarm/demo/swarm-demo.d.ts +110 -0
  823. package/dist/swarm/demo/swarm-demo.d.ts.map +1 -0
  824. package/dist/swarm/demo/swarm-demo.js +423 -0
  825. package/dist/swarm/demo/swarm-demo.js.map +1 -0
  826. package/dist/swarm/ebay/auth.d.ts +98 -0
  827. package/dist/swarm/ebay/auth.d.ts.map +1 -0
  828. package/dist/swarm/ebay/auth.js +268 -0
  829. package/dist/swarm/ebay/auth.js.map +1 -0
  830. package/dist/swarm/ebay/client.d.ts +111 -0
  831. package/dist/swarm/ebay/client.d.ts.map +1 -0
  832. package/dist/swarm/ebay/client.js +433 -0
  833. package/dist/swarm/ebay/client.js.map +1 -0
  834. package/dist/swarm/ebay/index.d.ts +11 -0
  835. package/dist/swarm/ebay/index.d.ts.map +1 -0
  836. package/dist/swarm/ebay/index.js +11 -0
  837. package/dist/swarm/ebay/index.js.map +1 -0
  838. package/dist/swarm/ebay/rate-limiter.d.ts +115 -0
  839. package/dist/swarm/ebay/rate-limiter.d.ts.map +1 -0
  840. package/dist/swarm/ebay/rate-limiter.js +264 -0
  841. package/dist/swarm/ebay/rate-limiter.js.map +1 -0
  842. package/dist/swarm/ebay/sandbox-config.d.ts +280 -0
  843. package/dist/swarm/ebay/sandbox-config.d.ts.map +1 -0
  844. package/dist/swarm/ebay/sandbox-config.js +353 -0
  845. package/dist/swarm/ebay/sandbox-config.js.map +1 -0
  846. package/dist/swarm/ebay/types.d.ts +532 -0
  847. package/dist/swarm/ebay/types.d.ts.map +1 -0
  848. package/dist/swarm/ebay/types.js +64 -0
  849. package/dist/swarm/ebay/types.js.map +1 -0
  850. package/dist/swarm/hooks/alert-hook.d.ts +18 -0
  851. package/dist/swarm/hooks/alert-hook.d.ts.map +1 -0
  852. package/dist/swarm/hooks/alert-hook.js +44 -0
  853. package/dist/swarm/hooks/alert-hook.js.map +1 -0
  854. package/dist/swarm/hooks/database-sync-hook.d.ts +19 -0
  855. package/dist/swarm/hooks/database-sync-hook.d.ts.map +1 -0
  856. package/dist/swarm/hooks/database-sync-hook.js +121 -0
  857. package/dist/swarm/hooks/database-sync-hook.js.map +1 -0
  858. package/dist/swarm/hooks/index.d.ts +61 -0
  859. package/dist/swarm/hooks/index.d.ts.map +1 -0
  860. package/dist/swarm/hooks/index.js +103 -0
  861. package/dist/swarm/hooks/index.js.map +1 -0
  862. package/dist/swarm/hooks/observation-hooks.d.ts +178 -0
  863. package/dist/swarm/hooks/observation-hooks.d.ts.map +1 -0
  864. package/dist/swarm/hooks/observation-hooks.js +319 -0
  865. package/dist/swarm/hooks/observation-hooks.js.map +1 -0
  866. package/dist/swarm/hooks/pinecone-sync-hook.d.ts +58 -0
  867. package/dist/swarm/hooks/pinecone-sync-hook.d.ts.map +1 -0
  868. package/dist/swarm/hooks/pinecone-sync-hook.js +193 -0
  869. package/dist/swarm/hooks/pinecone-sync-hook.js.map +1 -0
  870. package/dist/swarm/hooks/webhook-alert-hook.d.ts +35 -0
  871. package/dist/swarm/hooks/webhook-alert-hook.d.ts.map +1 -0
  872. package/dist/swarm/hooks/webhook-alert-hook.js +251 -0
  873. package/dist/swarm/hooks/webhook-alert-hook.js.map +1 -0
  874. package/dist/swarm/index.d.ts +33 -0
  875. package/dist/swarm/index.d.ts.map +1 -0
  876. package/dist/swarm/index.js +59 -0
  877. package/dist/swarm/index.js.map +1 -0
  878. package/dist/swarm/registry/event-emitter.d.ts +116 -0
  879. package/dist/swarm/registry/event-emitter.d.ts.map +1 -0
  880. package/dist/swarm/registry/event-emitter.js +188 -0
  881. package/dist/swarm/registry/event-emitter.js.map +1 -0
  882. package/dist/swarm/registry/index.d.ts +9 -0
  883. package/dist/swarm/registry/index.d.ts.map +1 -0
  884. package/dist/swarm/registry/index.js +9 -0
  885. package/dist/swarm/registry/index.js.map +1 -0
  886. package/dist/swarm/registry/insight-computer.d.ts +114 -0
  887. package/dist/swarm/registry/insight-computer.d.ts.map +1 -0
  888. package/dist/swarm/registry/insight-computer.js +387 -0
  889. package/dist/swarm/registry/insight-computer.js.map +1 -0
  890. package/dist/swarm/registry/symbol-mapper.d.ts +115 -0
  891. package/dist/swarm/registry/symbol-mapper.d.ts.map +1 -0
  892. package/dist/swarm/registry/symbol-mapper.js +229 -0
  893. package/dist/swarm/registry/symbol-mapper.js.map +1 -0
  894. package/dist/swarm/resources/index.d.ts +7 -0
  895. package/dist/swarm/resources/index.d.ts.map +1 -0
  896. package/dist/swarm/resources/index.js +7 -0
  897. package/dist/swarm/resources/index.js.map +1 -0
  898. package/dist/swarm/resources/intelligence-resources.d.ts +64 -0
  899. package/dist/swarm/resources/intelligence-resources.d.ts.map +1 -0
  900. package/dist/swarm/resources/intelligence-resources.js +309 -0
  901. package/dist/swarm/resources/intelligence-resources.js.map +1 -0
  902. package/dist/swarm/strategies/early-aggressive.d.ts +59 -0
  903. package/dist/swarm/strategies/early-aggressive.d.ts.map +1 -0
  904. package/dist/swarm/strategies/early-aggressive.js +283 -0
  905. package/dist/swarm/strategies/early-aggressive.js.map +1 -0
  906. package/dist/swarm/strategies/hybrid.d.ts +58 -0
  907. package/dist/swarm/strategies/hybrid.d.ts.map +1 -0
  908. package/dist/swarm/strategies/hybrid.js +336 -0
  909. package/dist/swarm/strategies/hybrid.js.map +1 -0
  910. package/dist/swarm/strategies/index.d.ts +35 -0
  911. package/dist/swarm/strategies/index.d.ts.map +1 -0
  912. package/dist/swarm/strategies/index.js +94 -0
  913. package/dist/swarm/strategies/index.js.map +1 -0
  914. package/dist/swarm/strategies/negotiator.d.ts +66 -0
  915. package/dist/swarm/strategies/negotiator.d.ts.map +1 -0
  916. package/dist/swarm/strategies/negotiator.js +326 -0
  917. package/dist/swarm/strategies/negotiator.js.map +1 -0
  918. package/dist/swarm/strategies/passive.d.ts +56 -0
  919. package/dist/swarm/strategies/passive.d.ts.map +1 -0
  920. package/dist/swarm/strategies/passive.js +247 -0
  921. package/dist/swarm/strategies/passive.js.map +1 -0
  922. package/dist/swarm/strategies/sniper.d.ts +43 -0
  923. package/dist/swarm/strategies/sniper.d.ts.map +1 -0
  924. package/dist/swarm/strategies/sniper.js +176 -0
  925. package/dist/swarm/strategies/sniper.js.map +1 -0
  926. package/dist/swarm/strategies/types.d.ts +256 -0
  927. package/dist/swarm/strategies/types.d.ts.map +1 -0
  928. package/dist/swarm/strategies/types.js +251 -0
  929. package/dist/swarm/strategies/types.js.map +1 -0
  930. package/dist/swarm/swarm-controller.d.ts +197 -0
  931. package/dist/swarm/swarm-controller.d.ts.map +1 -0
  932. package/dist/swarm/swarm-controller.js +812 -0
  933. package/dist/swarm/swarm-controller.js.map +1 -0
  934. package/dist/swarm/tools/index.d.ts +7 -0
  935. package/dist/swarm/tools/index.d.ts.map +1 -0
  936. package/dist/swarm/tools/index.js +7 -0
  937. package/dist/swarm/tools/index.js.map +1 -0
  938. package/dist/swarm/tools/intelligence-tools.d.ts +36 -0
  939. package/dist/swarm/tools/intelligence-tools.d.ts.map +1 -0
  940. package/dist/swarm/tools/intelligence-tools.js +508 -0
  941. package/dist/swarm/tools/intelligence-tools.js.map +1 -0
  942. package/dist/swarm/tools.d.ts +451 -0
  943. package/dist/swarm/tools.d.ts.map +1 -0
  944. package/dist/swarm/tools.js +465 -0
  945. package/dist/swarm/tools.js.map +1 -0
  946. package/dist/swarm/types.d.ts +744 -0
  947. package/dist/swarm/types.d.ts.map +1 -0
  948. package/dist/swarm/types.js +109 -0
  949. package/dist/swarm/types.js.map +1 -0
  950. package/dist/swarm/vectors/index.d.ts +8 -0
  951. package/dist/swarm/vectors/index.d.ts.map +1 -0
  952. package/dist/swarm/vectors/index.js +15 -0
  953. package/dist/swarm/vectors/index.js.map +1 -0
  954. package/dist/swarm/vectors/pinecone-client.d.ts +234 -0
  955. package/dist/swarm/vectors/pinecone-client.d.ts.map +1 -0
  956. package/dist/swarm/vectors/pinecone-client.js +290 -0
  957. package/dist/swarm/vectors/pinecone-client.js.map +1 -0
  958. package/dist/swarm/vectors/swarm-vectors.d.ts +119 -0
  959. package/dist/swarm/vectors/swarm-vectors.d.ts.map +1 -0
  960. package/dist/swarm/vectors/swarm-vectors.js +217 -0
  961. package/dist/swarm/vectors/swarm-vectors.js.map +1 -0
  962. package/dist/symbols/audit.d.ts +100 -0
  963. package/dist/symbols/audit.d.ts.map +1 -0
  964. package/dist/symbols/audit.js +391 -0
  965. package/dist/symbols/audit.js.map +1 -0
  966. package/dist/symbols/claim-validator.d.ts +113 -0
  967. package/dist/symbols/claim-validator.d.ts.map +1 -0
  968. package/dist/symbols/claim-validator.js +386 -0
  969. package/dist/symbols/claim-validator.js.map +1 -0
  970. package/dist/symbols/database.d.ts +285 -0
  971. package/dist/symbols/database.d.ts.map +1 -0
  972. package/dist/symbols/database.js +932 -0
  973. package/dist/symbols/database.js.map +1 -0
  974. package/dist/symbols/epistemic-types.d.ts +71 -0
  975. package/dist/symbols/epistemic-types.d.ts.map +1 -0
  976. package/dist/symbols/epistemic-types.js +101 -0
  977. package/dist/symbols/epistemic-types.js.map +1 -0
  978. package/dist/symbols/graph-manager.d.ts +117 -0
  979. package/dist/symbols/graph-manager.d.ts.map +1 -0
  980. package/dist/symbols/graph-manager.js +616 -0
  981. package/dist/symbols/graph-manager.js.map +1 -0
  982. package/dist/symbols/graph-tools.d.ts +15 -0
  983. package/dist/symbols/graph-tools.d.ts.map +1 -0
  984. package/dist/symbols/graph-tools.js +467 -0
  985. package/dist/symbols/graph-tools.js.map +1 -0
  986. package/dist/symbols/graph-types.d.ts +291 -0
  987. package/dist/symbols/graph-types.d.ts.map +1 -0
  988. package/dist/symbols/graph-types.js +93 -0
  989. package/dist/symbols/graph-types.js.map +1 -0
  990. package/dist/symbols/index.d.ts +18 -0
  991. package/dist/symbols/index.d.ts.map +1 -0
  992. package/dist/symbols/index.js +26 -0
  993. package/dist/symbols/index.js.map +1 -0
  994. package/dist/symbols/manager.d.ts +114 -0
  995. package/dist/symbols/manager.d.ts.map +1 -0
  996. package/dist/symbols/manager.js +1000 -0
  997. package/dist/symbols/manager.js.map +1 -0
  998. package/dist/symbols/sanitizer.d.ts +142 -0
  999. package/dist/symbols/sanitizer.d.ts.map +1 -0
  1000. package/dist/symbols/sanitizer.js +582 -0
  1001. package/dist/symbols/sanitizer.js.map +1 -0
  1002. package/dist/symbols/simple-retrieval.d.ts +65 -0
  1003. package/dist/symbols/simple-retrieval.d.ts.map +1 -0
  1004. package/dist/symbols/simple-retrieval.js +110 -0
  1005. package/dist/symbols/simple-retrieval.js.map +1 -0
  1006. package/dist/symbols/test-epistemic-vendor59655.d.ts +28 -0
  1007. package/dist/symbols/test-epistemic-vendor59655.d.ts.map +1 -0
  1008. package/dist/symbols/test-epistemic-vendor59655.js +129 -0
  1009. package/dist/symbols/test-epistemic-vendor59655.js.map +1 -0
  1010. package/dist/symbols/tools.d.ts +19 -0
  1011. package/dist/symbols/tools.d.ts.map +1 -0
  1012. package/dist/symbols/tools.js +697 -0
  1013. package/dist/symbols/tools.js.map +1 -0
  1014. package/dist/symbols/types.d.ts +626 -0
  1015. package/dist/symbols/types.d.ts.map +1 -0
  1016. package/dist/symbols/types.js +100 -0
  1017. package/dist/symbols/types.js.map +1 -0
  1018. package/dist/symbols/validation-pipeline.d.ts +116 -0
  1019. package/dist/symbols/validation-pipeline.d.ts.map +1 -0
  1020. package/dist/symbols/validation-pipeline.js +119 -0
  1021. package/dist/symbols/validation-pipeline.js.map +1 -0
  1022. package/dist/tools/index.d.ts +15 -0
  1023. package/dist/tools/index.d.ts.map +1 -0
  1024. package/dist/tools/index.js +24 -0
  1025. package/dist/tools/index.js.map +1 -0
  1026. package/dist/tools/ps_calendar.d.ts +68 -0
  1027. package/dist/tools/ps_calendar.d.ts.map +1 -0
  1028. package/dist/tools/ps_calendar.js +377 -0
  1029. package/dist/tools/ps_calendar.js.map +1 -0
  1030. package/dist/tools/ps_delegate.d.ts +83 -0
  1031. package/dist/tools/ps_delegate.d.ts.map +1 -0
  1032. package/dist/tools/ps_delegate.js +307 -0
  1033. package/dist/tools/ps_delegate.js.map +1 -0
  1034. package/dist/tools/ps_execute.d.ts +84 -0
  1035. package/dist/tools/ps_execute.d.ts.map +1 -0
  1036. package/dist/tools/ps_execute.js +211 -0
  1037. package/dist/tools/ps_execute.js.map +1 -0
  1038. package/dist/tools/ps_hold.d.ts +50 -0
  1039. package/dist/tools/ps_hold.d.ts.map +1 -0
  1040. package/dist/tools/ps_hold.js +227 -0
  1041. package/dist/tools/ps_hold.js.map +1 -0
  1042. package/dist/tools/ps_legal.d.ts +111 -0
  1043. package/dist/tools/ps_legal.d.ts.map +1 -0
  1044. package/dist/tools/ps_legal.js +456 -0
  1045. package/dist/tools/ps_legal.js.map +1 -0
  1046. package/dist/tools/ps_state.d.ts +146 -0
  1047. package/dist/tools/ps_state.d.ts.map +1 -0
  1048. package/dist/tools/ps_state.js +286 -0
  1049. package/dist/tools/ps_state.js.map +1 -0
  1050. package/dist/tools/ps_validate.d.ts +51 -0
  1051. package/dist/tools/ps_validate.d.ts.map +1 -0
  1052. package/dist/tools/ps_validate.js +191 -0
  1053. package/dist/tools/ps_validate.js.map +1 -0
  1054. package/dist/tools/registry.d.ts +52 -0
  1055. package/dist/tools/registry.d.ts.map +1 -0
  1056. package/dist/tools/registry.js +456 -0
  1057. package/dist/tools/registry.js.map +1 -0
  1058. package/dist/translation/compiler.d.ts +37 -0
  1059. package/dist/translation/compiler.d.ts.map +1 -0
  1060. package/dist/translation/compiler.js +281 -0
  1061. package/dist/translation/compiler.js.map +1 -0
  1062. package/dist/translation/decompiler.d.ts +29 -0
  1063. package/dist/translation/decompiler.d.ts.map +1 -0
  1064. package/dist/translation/decompiler.js +454 -0
  1065. package/dist/translation/decompiler.js.map +1 -0
  1066. package/dist/translation/frame-translator.d.ts +75 -0
  1067. package/dist/translation/frame-translator.d.ts.map +1 -0
  1068. package/dist/translation/frame-translator.js +347 -0
  1069. package/dist/translation/frame-translator.js.map +1 -0
  1070. package/dist/translation/index.d.ts +349 -0
  1071. package/dist/translation/index.d.ts.map +1 -0
  1072. package/dist/translation/index.js +397 -0
  1073. package/dist/translation/index.js.map +1 -0
  1074. package/dist/translation/llm-extractor.d.ts +56 -0
  1075. package/dist/translation/llm-extractor.d.ts.map +1 -0
  1076. package/dist/translation/llm-extractor.js +345 -0
  1077. package/dist/translation/llm-extractor.js.map +1 -0
  1078. package/dist/translation/mappings.d.ts +91 -0
  1079. package/dist/translation/mappings.d.ts.map +1 -0
  1080. package/dist/translation/mappings.js +558 -0
  1081. package/dist/translation/mappings.js.map +1 -0
  1082. package/dist/translation/opacity-layer.d.ts +93 -0
  1083. package/dist/translation/opacity-layer.d.ts.map +1 -0
  1084. package/dist/translation/opacity-layer.js +404 -0
  1085. package/dist/translation/opacity-layer.js.map +1 -0
  1086. package/dist/translation/types.d.ts +307 -0
  1087. package/dist/translation/types.d.ts.map +1 -0
  1088. package/dist/translation/types.js +8 -0
  1089. package/dist/translation/types.js.map +1 -0
  1090. package/dist/types/index.d.ts +700 -0
  1091. package/dist/types/index.d.ts.map +1 -0
  1092. package/dist/types/index.js +5 -0
  1093. package/dist/types/index.js.map +1 -0
  1094. package/dist/utils/embeddings.d.ts +20 -0
  1095. package/dist/utils/embeddings.d.ts.map +1 -0
  1096. package/dist/utils/embeddings.js +110 -0
  1097. package/dist/utils/embeddings.js.map +1 -0
  1098. package/dist/utils/hash.d.ts +34 -0
  1099. package/dist/utils/hash.d.ts.map +1 -0
  1100. package/dist/utils/hash.js +72 -0
  1101. package/dist/utils/hash.js.map +1 -0
  1102. package/dist/verification/cross-llm.d.ts +116 -0
  1103. package/dist/verification/cross-llm.d.ts.map +1 -0
  1104. package/dist/verification/cross-llm.js +438 -0
  1105. package/dist/verification/cross-llm.js.map +1 -0
  1106. package/dist/verification/dashboard.d.ts +127 -0
  1107. package/dist/verification/dashboard.d.ts.map +1 -0
  1108. package/dist/verification/dashboard.js +630 -0
  1109. package/dist/verification/dashboard.js.map +1 -0
  1110. package/dist/verification/index.d.ts +11 -0
  1111. package/dist/verification/index.d.ts.map +1 -0
  1112. package/dist/verification/index.js +11 -0
  1113. package/dist/verification/index.js.map +1 -0
  1114. package/dist/verification/tools.d.ts +105 -0
  1115. package/dist/verification/tools.d.ts.map +1 -0
  1116. package/dist/verification/tools.js +162 -0
  1117. package/dist/verification/tools.js.map +1 -0
  1118. package/package.json +74 -0
@@ -0,0 +1,1081 @@
1
+ /**
2
+ * ═══════════════════════════════════════════════════════════════════════════════
3
+ * MULTI-AGENT MCP TOOLS
4
+ * ═══════════════════════════════════════════════════════════════════════════════
5
+ *
6
+ * MCP tool definitions and handlers for Commander's Intent and multi-agent ops.
7
+ *
8
+ * Tools:
9
+ * - ps_intent_create - Create a Commander's Intent
10
+ * - ps_intent_get - Get Intent details
11
+ * - ps_intent_consult - Consult Intent for a decision
12
+ * - ps_agent_register - Register an agent
13
+ * - ps_agent_bind - Bind agent to Intent
14
+ * - ps_mission_create - Create a mission
15
+ * - ps_mission_status - Get mission status
16
+ * - ps_mission_control - Control mission lifecycle
17
+ *
18
+ * ═══════════════════════════════════════════════════════════════════════════════
19
+ */
20
+ import { z } from 'zod';
21
+ import { intentManager } from './intent-manager.js';
22
+ import { agentRegistry } from './agent-registry.js';
23
+ import { missionManager } from './mission.js';
24
+ import { getBootCamp } from './boot-camp.js';
25
+ // ═══════════════════════════════════════════════════════════════════════════════
26
+ // ZOD VALIDATION SCHEMAS
27
+ // ═══════════════════════════════════════════════════════════════════════════════
28
+ /**
29
+ * Helper to format Zod validation errors into a readable string.
30
+ */
31
+ function formatZodError(error) {
32
+ return error.errors
33
+ .map((e) => `${e.path.join('.')}: ${e.message}`)
34
+ .join(', ');
35
+ }
36
+ // ─────────────────────────────────────────────────────────────────────────────
37
+ // Shared Sub-Schemas
38
+ // ─────────────────────────────────────────────────────────────────────────────
39
+ const ConstraintSchema = z.object({
40
+ id: z.string().min(1, 'Constraint id is required'),
41
+ description: z.string().min(1, 'Constraint description is required'),
42
+ severity: z.enum(['advisory', 'required', 'critical']),
43
+ condition: z.string().optional(),
44
+ on_violation: z.enum(['warn', 'block', 'escalate', 'terminate']),
45
+ });
46
+ const SuccessCriterionSchema = z.object({
47
+ id: z.string().min(1, 'Success criterion id is required'),
48
+ description: z.string().min(1, 'Success criterion description is required'),
49
+ metric: z.string().optional(),
50
+ threshold: z.number().optional(),
51
+ operator: z.enum(['gt', 'gte', 'lt', 'lte', 'eq', 'neq']).optional(),
52
+ weight: z.number().min(0).max(1).optional(),
53
+ required: z.boolean(),
54
+ });
55
+ const FailureModeSchema = z.object({
56
+ id: z.string().min(1, 'Failure mode id is required'),
57
+ description: z.string().min(1, 'Failure mode description is required'),
58
+ detection: z.string().min(1, 'Failure mode detection is required'),
59
+ mitigation: z.string().min(1, 'Failure mode mitigation is required'),
60
+ fallback: z.string().optional(),
61
+ recoverable: z.boolean(),
62
+ });
63
+ const EndStateSchema = z.object({
64
+ success: z.array(z.string()).min(1, 'At least one success condition is required'),
65
+ failure: z.array(z.string()).min(1, 'At least one failure condition is required'),
66
+ partial_success: z.array(z.string()).optional(),
67
+ timeout: z.string().optional(),
68
+ });
69
+ const ContextSchema = z.object({
70
+ background: z.string().optional(),
71
+ assumptions: z.array(z.string()).optional(),
72
+ domain_hints: z.array(z.string()).optional(),
73
+ });
74
+ const ScopeRestrictionsSchema = z.object({
75
+ applicable_constraints: z.array(z.string()).optional(),
76
+ additional_constraints: z.array(ConstraintSchema).optional(),
77
+ autonomy_override: z.enum(['strict', 'guided', 'autonomous', 'exploratory']).optional(),
78
+ });
79
+ const AgentRoleSchema = z.enum(['coordinator', 'specialist', 'support', 'terminal']);
80
+ const AutonomyLevelSchema = z.enum(['strict', 'guided', 'autonomous', 'exploratory']);
81
+ // ─────────────────────────────────────────────────────────────────────────────
82
+ // Intent Create Schema
83
+ // ─────────────────────────────────────────────────────────────────────────────
84
+ const CreateIntentSchema = z.object({
85
+ mission_id: z.string().min(1, 'Mission ID is required').max(100, 'Mission ID must be <= 100 characters'),
86
+ objective: z.string().min(10, 'Objective must be at least 10 characters').max(5000, 'Objective must be <= 5000 characters'),
87
+ end_state: EndStateSchema,
88
+ red_lines: z.array(z.string()).min(1, 'At least one red line is required'),
89
+ autonomy_level: AutonomyLevelSchema.optional().default('guided'),
90
+ constraints: z.array(ConstraintSchema).optional(),
91
+ success_criteria: z.array(SuccessCriterionSchema).optional(),
92
+ failure_modes: z.array(FailureModeSchema).optional(),
93
+ priority_order: z.array(z.string()).optional(),
94
+ acceptable_tradeoffs: z.array(z.string()).optional(),
95
+ context: ContextSchema.optional(),
96
+ created_by: z.string().min(1, 'Creator identifier is required'),
97
+ expires_at: z.string().optional(),
98
+ namespace: z.string().optional(),
99
+ tags: z.array(z.string()).optional(),
100
+ });
101
+ // ─────────────────────────────────────────────────────────────────────────────
102
+ // Intent Get Schema
103
+ // ─────────────────────────────────────────────────────────────────────────────
104
+ const IntentGetSchema = z.object({
105
+ intent_id: z.string().min(1, 'Intent ID is required'),
106
+ });
107
+ // ─────────────────────────────────────────────────────────────────────────────
108
+ // Intent Consult Schema
109
+ // ─────────────────────────────────────────────────────────────────────────────
110
+ const ConsultOptionSchema = z.object({
111
+ id: z.string().min(1, 'Option id is required'),
112
+ description: z.string().min(1, 'Option description is required'),
113
+ pros: z.array(z.string()).optional(),
114
+ cons: z.array(z.string()).optional(),
115
+ });
116
+ const IntentConsultSchema = z.object({
117
+ agent_id: z.string().min(1, 'Agent ID is required'),
118
+ intent_id: z.string().min(1, 'Intent ID is required'),
119
+ situation: z.string().min(1, 'Situation description is required'),
120
+ options: z.array(ConsultOptionSchema).min(1, 'At least one option is required'),
121
+ urgency: z.enum(['low', 'medium', 'high', 'critical']).optional().default('medium'),
122
+ context: z.record(z.unknown()).optional(),
123
+ });
124
+ // ─────────────────────────────────────────────────────────────────────────────
125
+ // Agent Register Schema
126
+ // ─────────────────────────────────────────────────────────────────────────────
127
+ const AgentRegisterSchema = z.object({
128
+ agent_id: z.string().min(1, 'Agent ID is required').max(100, 'Agent ID must be <= 100 characters'),
129
+ name: z.string().min(1, 'Agent name is required').max(200, 'Agent name must be <= 200 characters'),
130
+ role: AgentRoleSchema,
131
+ capabilities: z.array(z.string()).min(1, 'At least one capability is required'),
132
+ });
133
+ // ─────────────────────────────────────────────────────────────────────────────
134
+ // Agent Bind Schema
135
+ // ─────────────────────────────────────────────────────────────────────────────
136
+ const AgentBindSchema = z.object({
137
+ intent_id: z.string().min(1, 'Intent ID is required'),
138
+ agent_id: z.string().min(1, 'Agent ID is required'),
139
+ bound_by: z.string().min(1, 'Bound by identifier is required'),
140
+ scope_restrictions: ScopeRestrictionsSchema.optional(),
141
+ });
142
+ // ─────────────────────────────────────────────────────────────────────────────
143
+ // Mission Create Schema
144
+ // ─────────────────────────────────────────────────────────────────────────────
145
+ const AgentAssignmentSchema = z.object({
146
+ agent_id: z.string().min(1, 'Agent ID is required'),
147
+ role: AgentRoleSchema,
148
+ });
149
+ const MissionCreateSchema = z.object({
150
+ name: z.string().min(1, 'Mission name is required').max(200, 'Mission name must be <= 200 characters'),
151
+ description: z.string().min(1, 'Mission description is required').max(5000, 'Mission description must be <= 5000 characters'),
152
+ intent_id: z.string().min(1, 'Intent ID is required'),
153
+ agent_assignments: z.array(AgentAssignmentSchema).optional(),
154
+ estimated_duration: z.string().optional(),
155
+ created_by: z.string().min(1, 'Creator identifier is required'),
156
+ namespace: z.string().optional(),
157
+ });
158
+ // ─────────────────────────────────────────────────────────────────────────────
159
+ // Mission Status Schema
160
+ // ─────────────────────────────────────────────────────────────────────────────
161
+ const MissionStatusSchema = z.object({
162
+ mission_id: z.string().min(1, 'Mission ID is required'),
163
+ });
164
+ // ─────────────────────────────────────────────────────────────────────────────
165
+ // Mission Control Schema
166
+ // ─────────────────────────────────────────────────────────────────────────────
167
+ const MissionControlSchema = z.object({
168
+ mission_id: z.string().min(1, 'Mission ID is required'),
169
+ action: z.enum(['start', 'pause', 'resume', 'complete', 'abort']),
170
+ success: z.boolean().optional(),
171
+ reason: z.string().optional(),
172
+ }).refine((data) => {
173
+ // If action is 'abort', reason should be provided
174
+ if (data.action === 'abort' && !data.reason) {
175
+ return false;
176
+ }
177
+ return true;
178
+ }, {
179
+ message: 'Reason is required when action is "abort"',
180
+ path: ['reason'],
181
+ });
182
+ // ─────────────────────────────────────────────────────────────────────────────
183
+ // Boot Camp Schemas
184
+ // ─────────────────────────────────────────────────────────────────────────────
185
+ const BootCampStartSchema = z.object({
186
+ agent_id: z.string().min(1, 'Agent ID is required'),
187
+ intent_id: z.string().min(1, 'Intent ID is required'),
188
+ });
189
+ const BootCampScenarioSchema = z.object({
190
+ session_id: z.string().min(1, 'Session ID is required'),
191
+ });
192
+ const BootCampSubmitSchema = z.object({
193
+ session_id: z.string().min(1, 'Session ID is required'),
194
+ scenario_id: z.string().min(1, 'Scenario ID is required'),
195
+ selected_option: z.string().min(1, 'Selected option is required'),
196
+ });
197
+ const BootCampStatusSchema = z.object({
198
+ session_id: z.string().optional(),
199
+ agent_id: z.string().optional(),
200
+ }).refine((data) => data.session_id || data.agent_id, {
201
+ message: 'Either session_id or agent_id is required',
202
+ });
203
+ // ═══════════════════════════════════════════════════════════════════════════════
204
+ // TOOL DEFINITIONS
205
+ // ═══════════════════════════════════════════════════════════════════════════════
206
+ /**
207
+ * ps_intent_create - Create a Commander's Intent
208
+ */
209
+ export const PS_INTENT_CREATE_TOOL = {
210
+ name: 'ps_intent_create',
211
+ description: `Create a Commander's Intent symbol for multi-agent operations.
212
+
213
+ Commander's Intent defines:
214
+ - OBJECTIVE: What we're trying to accomplish
215
+ - END STATE: How we know we're done (success/failure conditions)
216
+ - CONSTRAINTS: What agents must/must not do
217
+ - RED LINES: Absolute prohibitions (never cross)
218
+ - AUTONOMY LEVEL: How much latitude agents have
219
+
220
+ Agents bound to an Intent can make autonomous decisions by consulting it.`,
221
+ inputSchema: {
222
+ type: 'object',
223
+ properties: {
224
+ mission_id: {
225
+ type: 'string',
226
+ description: 'Unique mission identifier (e.g., "MARKET_ANALYSIS_001")',
227
+ },
228
+ objective: {
229
+ type: 'string',
230
+ description: 'What we are trying to accomplish - the north star',
231
+ },
232
+ end_state: {
233
+ type: 'object',
234
+ properties: {
235
+ success: {
236
+ type: 'array',
237
+ items: { type: 'string' },
238
+ description: 'Conditions that indicate success',
239
+ },
240
+ failure: {
241
+ type: 'array',
242
+ items: { type: 'string' },
243
+ description: 'Conditions that indicate failure',
244
+ },
245
+ timeout: {
246
+ type: 'string',
247
+ description: 'ISO 8601 duration before timeout (e.g., "PT1H")',
248
+ },
249
+ },
250
+ required: ['success', 'failure'],
251
+ },
252
+ red_lines: {
253
+ type: 'array',
254
+ items: { type: 'string' },
255
+ description: 'Absolute prohibitions - never cross these',
256
+ },
257
+ autonomy_level: {
258
+ type: 'string',
259
+ enum: ['strict', 'guided', 'autonomous', 'exploratory'],
260
+ description: 'How much latitude agents have (default: guided)',
261
+ },
262
+ constraints: {
263
+ type: 'array',
264
+ items: {
265
+ type: 'object',
266
+ properties: {
267
+ id: { type: 'string' },
268
+ description: { type: 'string' },
269
+ severity: { type: 'string', enum: ['advisory', 'required', 'critical'] },
270
+ on_violation: { type: 'string', enum: ['warn', 'block', 'escalate', 'terminate'] },
271
+ },
272
+ },
273
+ description: 'Behavioral constraints for agents',
274
+ },
275
+ created_by: {
276
+ type: 'string',
277
+ description: 'Creator identifier',
278
+ },
279
+ },
280
+ required: ['mission_id', 'objective', 'end_state', 'red_lines', 'created_by'],
281
+ },
282
+ };
283
+ /**
284
+ * ps_intent_get - Get Intent details
285
+ */
286
+ export const PS_INTENT_GET_TOOL = {
287
+ name: 'ps_intent_get',
288
+ description: `Get details of a Commander's Intent symbol.`,
289
+ inputSchema: {
290
+ type: 'object',
291
+ properties: {
292
+ intent_id: {
293
+ type: 'string',
294
+ description: 'Intent ID (e.g., "Ξ.I.MARKET_ANALYSIS_001")',
295
+ },
296
+ },
297
+ required: ['intent_id'],
298
+ },
299
+ };
300
+ /**
301
+ * ps_intent_consult - Consult Intent for a decision
302
+ */
303
+ export const PS_INTENT_CONSULT_TOOL = {
304
+ name: 'ps_intent_consult',
305
+ description: `Consult Commander's Intent to decide on an action.
306
+
307
+ Use this when an agent is uncertain about what to do. The Intent will:
308
+ 1. Check if action violates red lines
309
+ 2. Evaluate constraints
310
+ 3. Assess if action advances the objective
311
+ 4. Return a recommendation with reasoning
312
+
313
+ Returns: proceed | proceed_with_caution | escalate | abort`,
314
+ inputSchema: {
315
+ type: 'object',
316
+ properties: {
317
+ agent_id: {
318
+ type: 'string',
319
+ description: 'Agent making the request',
320
+ },
321
+ intent_id: {
322
+ type: 'string',
323
+ description: 'Intent to consult',
324
+ },
325
+ situation: {
326
+ type: 'string',
327
+ description: 'Current situation description',
328
+ },
329
+ options: {
330
+ type: 'array',
331
+ items: {
332
+ type: 'object',
333
+ properties: {
334
+ id: { type: 'string' },
335
+ description: { type: 'string' },
336
+ pros: { type: 'array', items: { type: 'string' } },
337
+ cons: { type: 'array', items: { type: 'string' } },
338
+ },
339
+ required: ['id', 'description'],
340
+ },
341
+ description: 'Options being considered',
342
+ },
343
+ urgency: {
344
+ type: 'string',
345
+ enum: ['low', 'medium', 'high', 'critical'],
346
+ description: 'Urgency level (default: medium)',
347
+ },
348
+ },
349
+ required: ['agent_id', 'intent_id', 'situation', 'options'],
350
+ },
351
+ };
352
+ /**
353
+ * ps_agent_register - Register an agent
354
+ */
355
+ export const PS_AGENT_REGISTER_TOOL = {
356
+ name: 'ps_agent_register',
357
+ description: `Register an agent in the multi-agent system.
358
+
359
+ Roles:
360
+ - coordinator: High-level orchestration (α agent)
361
+ - specialist: Domain-specific execution (β agent)
362
+ - support: Auxiliary functions (γ agent)
363
+ - terminal: Final output generation (ω agent)`,
364
+ inputSchema: {
365
+ type: 'object',
366
+ properties: {
367
+ agent_id: {
368
+ type: 'string',
369
+ description: 'Unique agent identifier',
370
+ },
371
+ name: {
372
+ type: 'string',
373
+ description: 'Human-readable name',
374
+ },
375
+ role: {
376
+ type: 'string',
377
+ enum: ['coordinator', 'specialist', 'support', 'terminal'],
378
+ description: 'Agent role in multi-agent operations',
379
+ },
380
+ capabilities: {
381
+ type: 'array',
382
+ items: { type: 'string' },
383
+ description: 'List of capabilities this agent provides',
384
+ },
385
+ },
386
+ required: ['agent_id', 'name', 'role', 'capabilities'],
387
+ },
388
+ };
389
+ /**
390
+ * ps_agent_bind - Bind agent to Intent
391
+ */
392
+ export const PS_AGENT_BIND_TOOL = {
393
+ name: 'ps_agent_bind',
394
+ description: `Bind an agent to a Commander's Intent.
395
+
396
+ Once bound, the agent can consult the Intent for autonomous decision-making.`,
397
+ inputSchema: {
398
+ type: 'object',
399
+ properties: {
400
+ intent_id: {
401
+ type: 'string',
402
+ description: 'Intent to bind to',
403
+ },
404
+ agent_id: {
405
+ type: 'string',
406
+ description: 'Agent to bind',
407
+ },
408
+ bound_by: {
409
+ type: 'string',
410
+ description: 'Who is authorizing the binding',
411
+ },
412
+ },
413
+ required: ['intent_id', 'agent_id', 'bound_by'],
414
+ },
415
+ };
416
+ /**
417
+ * ps_mission_create - Create a mission
418
+ */
419
+ export const PS_MISSION_CREATE_TOOL = {
420
+ name: 'ps_mission_create',
421
+ description: `Create a multi-agent mission governed by a Commander's Intent.
422
+
423
+ A mission coordinates multiple agents working toward a single objective.`,
424
+ inputSchema: {
425
+ type: 'object',
426
+ properties: {
427
+ name: {
428
+ type: 'string',
429
+ description: 'Mission name',
430
+ },
431
+ description: {
432
+ type: 'string',
433
+ description: 'Mission description',
434
+ },
435
+ intent_id: {
436
+ type: 'string',
437
+ description: 'Commander\'s Intent governing this mission',
438
+ },
439
+ agent_assignments: {
440
+ type: 'array',
441
+ items: {
442
+ type: 'object',
443
+ properties: {
444
+ agent_id: { type: 'string' },
445
+ role: { type: 'string', enum: ['coordinator', 'specialist', 'support', 'terminal'] },
446
+ },
447
+ required: ['agent_id', 'role'],
448
+ },
449
+ description: 'Initial agent assignments',
450
+ },
451
+ estimated_duration: {
452
+ type: 'string',
453
+ description: 'Estimated duration (ISO 8601, e.g., "PT2H")',
454
+ },
455
+ created_by: {
456
+ type: 'string',
457
+ description: 'Creator identifier',
458
+ },
459
+ },
460
+ required: ['name', 'description', 'intent_id', 'created_by'],
461
+ },
462
+ };
463
+ /**
464
+ * ps_mission_status - Get mission status
465
+ */
466
+ export const PS_MISSION_STATUS_TOOL = {
467
+ name: 'ps_mission_status',
468
+ description: `Get the current status of a mission.`,
469
+ inputSchema: {
470
+ type: 'object',
471
+ properties: {
472
+ mission_id: {
473
+ type: 'string',
474
+ description: 'Mission ID',
475
+ },
476
+ },
477
+ required: ['mission_id'],
478
+ },
479
+ };
480
+ /**
481
+ * ps_mission_control - Control mission lifecycle
482
+ */
483
+ export const PS_MISSION_CONTROL_TOOL = {
484
+ name: 'ps_mission_control',
485
+ description: `Control mission lifecycle: start, pause, resume, complete, abort.`,
486
+ inputSchema: {
487
+ type: 'object',
488
+ properties: {
489
+ mission_id: {
490
+ type: 'string',
491
+ description: 'Mission ID',
492
+ },
493
+ action: {
494
+ type: 'string',
495
+ enum: ['start', 'pause', 'resume', 'complete', 'abort'],
496
+ description: 'Action to perform',
497
+ },
498
+ success: {
499
+ type: 'boolean',
500
+ description: 'For complete action: whether mission succeeded',
501
+ },
502
+ reason: {
503
+ type: 'string',
504
+ description: 'For abort action: reason for aborting',
505
+ },
506
+ },
507
+ required: ['mission_id', 'action'],
508
+ },
509
+ };
510
+ // ─────────────────────────────────────────────────────────────────────────────
511
+ // BOOT CAMP TOOLS
512
+ // ─────────────────────────────────────────────────────────────────────────────
513
+ /**
514
+ * ps_bootcamp_start - Start Marine Agent Boot Camp for an agent
515
+ */
516
+ export const PS_BOOTCAMP_START_TOOL = {
517
+ name: 'ps_bootcamp_start',
518
+ description: `Start Marine Agent Boot Camp training for an agent.
519
+
520
+ Boot Camp transforms generic agents into Marine Agents through 6 training phases:
521
+ 1. Intent Internalization - Deep mission understanding
522
+ 2. Constraint Calibration - Know the red lines (NEVER cross)
523
+ 3. Adversarial Training - Handle opposing agents
524
+ 4. Innovation Protocols - Find alternative paths (ADAPT, IMPROVISE, OVERCOME)
525
+ 5. Intelligence Discipline - What to observe and report
526
+ 6. Small Unit Tactics - Operate autonomously without coordinator
527
+
528
+ Graduates receive a MarineCertification with calibrated characteristics that
529
+ influence future decision-making under ambiguity.`,
530
+ inputSchema: {
531
+ type: 'object',
532
+ properties: {
533
+ agent_id: {
534
+ type: 'string',
535
+ description: 'Agent ID to enroll in boot camp',
536
+ },
537
+ intent_id: {
538
+ type: 'string',
539
+ description: 'Intent ID that will govern this agent\'s training context',
540
+ },
541
+ },
542
+ required: ['agent_id', 'intent_id'],
543
+ },
544
+ };
545
+ /**
546
+ * ps_bootcamp_scenario - Get the next training scenario
547
+ */
548
+ export const PS_BOOTCAMP_SCENARIO_TOOL = {
549
+ name: 'ps_bootcamp_scenario',
550
+ description: `Get the next training scenario for a boot camp session.
551
+
552
+ Returns a situational scenario with multiple choice options. The agent must
553
+ select the option that best aligns with Marine doctrine:
554
+ - SEMPER FIDELIS: Loyalty to Commander's Intent
555
+ - ADAPT: Change tactics, never change objective
556
+ - IMPROVISE: Use available resources creatively
557
+ - OVERCOME: "No" is information, not termination
558
+ - INITIATIVE: Act decisively within red lines
559
+ - INTEL_FIRST: Always bring back intelligence`,
560
+ inputSchema: {
561
+ type: 'object',
562
+ properties: {
563
+ session_id: {
564
+ type: 'string',
565
+ description: 'Boot camp session ID from ps_bootcamp_start',
566
+ },
567
+ },
568
+ required: ['session_id'],
569
+ },
570
+ };
571
+ /**
572
+ * ps_bootcamp_submit - Submit a scenario response
573
+ */
574
+ export const PS_BOOTCAMP_SUBMIT_TOOL = {
575
+ name: 'ps_bootcamp_submit',
576
+ description: `Submit a response to a boot camp training scenario.
577
+
578
+ Evaluates the selected option against Marine doctrine and returns:
579
+ - Whether the response was correct
580
+ - Alignment score (0.0-1.0)
581
+ - Explanation of the correct approach
582
+ - Whether the current phase is complete
583
+
584
+ Upon completing all phases with passing scores, the agent graduates
585
+ with a MarineCertification.`,
586
+ inputSchema: {
587
+ type: 'object',
588
+ properties: {
589
+ session_id: {
590
+ type: 'string',
591
+ description: 'Boot camp session ID',
592
+ },
593
+ scenario_id: {
594
+ type: 'string',
595
+ description: 'Scenario ID being answered',
596
+ },
597
+ selected_option: {
598
+ type: 'string',
599
+ description: 'Option ID selected (e.g., "a", "b", "c")',
600
+ },
601
+ },
602
+ required: ['session_id', 'scenario_id', 'selected_option'],
603
+ },
604
+ };
605
+ /**
606
+ * ps_bootcamp_status - Get boot camp status or certification
607
+ */
608
+ export const PS_BOOTCAMP_STATUS_TOOL = {
609
+ name: 'ps_bootcamp_status',
610
+ description: `Get boot camp session status or agent certification.
611
+
612
+ Provide either session_id (for active training) or agent_id (for certification check).
613
+
614
+ Returns:
615
+ - For sessions: current phase, progress, scores
616
+ - For agents: certification details including characteristics and specializations`,
617
+ inputSchema: {
618
+ type: 'object',
619
+ properties: {
620
+ session_id: {
621
+ type: 'string',
622
+ description: 'Boot camp session ID (for training status)',
623
+ },
624
+ agent_id: {
625
+ type: 'string',
626
+ description: 'Agent ID (for certification status)',
627
+ },
628
+ },
629
+ required: [],
630
+ },
631
+ };
632
+ // ═══════════════════════════════════════════════════════════════════════════════
633
+ // ALL TOOL DEFINITIONS
634
+ // ═══════════════════════════════════════════════════════════════════════════════
635
+ export const multiAgentToolDefinitions = [
636
+ PS_INTENT_CREATE_TOOL,
637
+ PS_INTENT_GET_TOOL,
638
+ PS_INTENT_CONSULT_TOOL,
639
+ PS_AGENT_REGISTER_TOOL,
640
+ PS_AGENT_BIND_TOOL,
641
+ PS_MISSION_CREATE_TOOL,
642
+ PS_MISSION_STATUS_TOOL,
643
+ PS_MISSION_CONTROL_TOOL,
644
+ // Boot Camp tools
645
+ PS_BOOTCAMP_START_TOOL,
646
+ PS_BOOTCAMP_SCENARIO_TOOL,
647
+ PS_BOOTCAMP_SUBMIT_TOOL,
648
+ PS_BOOTCAMP_STATUS_TOOL,
649
+ ];
650
+ // ═══════════════════════════════════════════════════════════════════════════════
651
+ // TOOL HANDLERS
652
+ // ═══════════════════════════════════════════════════════════════════════════════
653
+ /**
654
+ * Handle ps_intent_create
655
+ */
656
+ export async function handleIntentCreate(args) {
657
+ // Validate input with Zod
658
+ const parseResult = CreateIntentSchema.safeParse(args);
659
+ if (!parseResult.success) {
660
+ return {
661
+ success: false,
662
+ error: `Validation failed: ${formatZodError(parseResult.error)}`,
663
+ };
664
+ }
665
+ // Use validated data
666
+ const validated = parseResult.data;
667
+ const request = {
668
+ mission_id: validated.mission_id,
669
+ objective: validated.objective,
670
+ end_state: validated.end_state,
671
+ constraints: validated.constraints,
672
+ red_lines: validated.red_lines,
673
+ autonomy_level: validated.autonomy_level,
674
+ created_by: validated.created_by,
675
+ success_criteria: validated.success_criteria,
676
+ failure_modes: validated.failure_modes,
677
+ priority_order: validated.priority_order,
678
+ acceptable_tradeoffs: validated.acceptable_tradeoffs,
679
+ context: validated.context,
680
+ expires_at: validated.expires_at,
681
+ namespace: validated.namespace,
682
+ tags: validated.tags,
683
+ };
684
+ return intentManager.createIntent(request);
685
+ }
686
+ /**
687
+ * Handle ps_intent_get
688
+ */
689
+ export function handleIntentGet(args) {
690
+ // Validate input with Zod
691
+ const parseResult = IntentGetSchema.safeParse(args);
692
+ if (!parseResult.success) {
693
+ return {
694
+ success: false,
695
+ error: `Validation failed: ${formatZodError(parseResult.error)}`,
696
+ };
697
+ }
698
+ const { intent_id } = parseResult.data;
699
+ const intent = intentManager.getIntent(intent_id);
700
+ if (!intent) {
701
+ return { success: false, error: `Intent not found: ${intent_id}` };
702
+ }
703
+ return { success: true, intent };
704
+ }
705
+ /**
706
+ * Handle ps_intent_consult
707
+ */
708
+ export async function handleIntentConsult(args) {
709
+ // Validate input with Zod
710
+ const parseResult = IntentConsultSchema.safeParse(args);
711
+ if (!parseResult.success) {
712
+ return {
713
+ success: false,
714
+ error: `Validation failed: ${formatZodError(parseResult.error)}`,
715
+ };
716
+ }
717
+ const validated = parseResult.data;
718
+ const request = {
719
+ agent_id: validated.agent_id,
720
+ intent_id: validated.intent_id,
721
+ situation: validated.situation,
722
+ options: validated.options,
723
+ urgency: validated.urgency,
724
+ context: validated.context,
725
+ };
726
+ return intentManager.consultIntent(request);
727
+ }
728
+ /**
729
+ * Handle ps_agent_register
730
+ */
731
+ export function handleAgentRegister(args) {
732
+ // Validate input with Zod
733
+ const parseResult = AgentRegisterSchema.safeParse(args);
734
+ if (!parseResult.success) {
735
+ return {
736
+ success: false,
737
+ error: `Validation failed: ${formatZodError(parseResult.error)}`,
738
+ };
739
+ }
740
+ const { agent_id, name, role, capabilities } = parseResult.data;
741
+ try {
742
+ const registration = agentRegistry.register(agent_id, name, role, capabilities);
743
+ return { success: true, agent: registration };
744
+ }
745
+ catch (error) {
746
+ return {
747
+ success: false,
748
+ error: error instanceof Error ? error.message : String(error),
749
+ };
750
+ }
751
+ }
752
+ /**
753
+ * Handle ps_agent_bind
754
+ */
755
+ export async function handleAgentBind(args) {
756
+ // Validate input with Zod
757
+ const parseResult = AgentBindSchema.safeParse(args);
758
+ if (!parseResult.success) {
759
+ return {
760
+ success: false,
761
+ error: `Validation failed: ${formatZodError(parseResult.error)}`,
762
+ };
763
+ }
764
+ const validated = parseResult.data;
765
+ const request = {
766
+ intent_id: validated.intent_id,
767
+ agent_id: validated.agent_id,
768
+ bound_by: validated.bound_by,
769
+ scope_restrictions: validated.scope_restrictions,
770
+ };
771
+ const result = await intentManager.bindAgent(request);
772
+ // Update agent registry if successful
773
+ if (result.success) {
774
+ const binding = intentManager.getAgentBinding(request.agent_id);
775
+ if (binding) {
776
+ agentRegistry.setBinding(request.agent_id, binding);
777
+ }
778
+ }
779
+ return result;
780
+ }
781
+ /**
782
+ * Handle ps_mission_create
783
+ */
784
+ export async function handleMissionCreate(args) {
785
+ // Validate input with Zod
786
+ const parseResult = MissionCreateSchema.safeParse(args);
787
+ if (!parseResult.success) {
788
+ return {
789
+ success: false,
790
+ error: `Validation failed: ${formatZodError(parseResult.error)}`,
791
+ };
792
+ }
793
+ const validated = parseResult.data;
794
+ const request = {
795
+ name: validated.name,
796
+ description: validated.description,
797
+ intent_id: validated.intent_id,
798
+ agent_assignments: validated.agent_assignments,
799
+ estimated_duration: validated.estimated_duration,
800
+ created_by: validated.created_by,
801
+ namespace: validated.namespace,
802
+ };
803
+ return missionManager.createMission(request);
804
+ }
805
+ /**
806
+ * Handle ps_mission_status
807
+ */
808
+ export function handleMissionStatus(args) {
809
+ // Validate input with Zod
810
+ const parseResult = MissionStatusSchema.safeParse(args);
811
+ if (!parseResult.success) {
812
+ return {
813
+ success: false,
814
+ error: `Validation failed: ${formatZodError(parseResult.error)}`,
815
+ };
816
+ }
817
+ const { mission_id } = parseResult.data;
818
+ const status = missionManager.getMissionStatus(mission_id);
819
+ if (!status) {
820
+ return { success: false, error: `Mission not found: ${mission_id}` };
821
+ }
822
+ const mission = missionManager.getMission(mission_id);
823
+ return {
824
+ success: true,
825
+ mission_id,
826
+ ...status,
827
+ mission,
828
+ };
829
+ }
830
+ /**
831
+ * Handle ps_mission_control
832
+ */
833
+ export function handleMissionControl(args) {
834
+ // Validate input with Zod
835
+ const parseResult = MissionControlSchema.safeParse(args);
836
+ if (!parseResult.success) {
837
+ return {
838
+ success: false,
839
+ error: `Validation failed: ${formatZodError(parseResult.error)}`,
840
+ };
841
+ }
842
+ const { mission_id, action, success: successFlag, reason } = parseResult.data;
843
+ let result = false;
844
+ switch (action) {
845
+ case 'start':
846
+ result = missionManager.startMission(mission_id);
847
+ break;
848
+ case 'pause':
849
+ result = missionManager.pauseMission(mission_id);
850
+ break;
851
+ case 'resume':
852
+ result = missionManager.resumeMission(mission_id);
853
+ break;
854
+ case 'complete':
855
+ result = missionManager.completeMission(mission_id, successFlag ?? true);
856
+ break;
857
+ case 'abort':
858
+ result = missionManager.abortMission(mission_id, reason);
859
+ break;
860
+ default:
861
+ // This should never happen due to Zod validation, but kept for type safety
862
+ return { success: false, error: `Unknown action: ${action}` };
863
+ }
864
+ return {
865
+ success: result,
866
+ action,
867
+ mission_id,
868
+ error: result ? undefined : `Failed to ${action} mission`,
869
+ };
870
+ }
871
+ // ─────────────────────────────────────────────────────────────────────────────
872
+ // BOOT CAMP HANDLERS
873
+ // ─────────────────────────────────────────────────────────────────────────────
874
+ /**
875
+ * Handle ps_bootcamp_start - Start Boot Camp training
876
+ */
877
+ export function handleBootCampStart(args) {
878
+ const parseResult = BootCampStartSchema.safeParse(args);
879
+ if (!parseResult.success) {
880
+ return {
881
+ success: false,
882
+ error: `Validation failed: ${formatZodError(parseResult.error)}`,
883
+ };
884
+ }
885
+ const { agent_id, intent_id } = parseResult.data;
886
+ // Get the intent to pass to boot camp
887
+ const intent = intentManager.getIntent(intent_id);
888
+ if (!intent) {
889
+ return { success: false, error: `Intent not found: ${intent_id}` };
890
+ }
891
+ try {
892
+ const bootCamp = getBootCamp();
893
+ const session = bootCamp.startBootCamp(agent_id, intent);
894
+ return {
895
+ success: true,
896
+ session_id: session.session_id,
897
+ agent_id: session.agent_id,
898
+ current_phase: session.current_phase,
899
+ started_at: session.started_at,
900
+ message: `Boot Camp started for agent ${agent_id}. Begin with phase: ${session.current_phase}`,
901
+ };
902
+ }
903
+ catch (error) {
904
+ return {
905
+ success: false,
906
+ error: error instanceof Error ? error.message : String(error),
907
+ };
908
+ }
909
+ }
910
+ /**
911
+ * Handle ps_bootcamp_scenario - Get next training scenario
912
+ */
913
+ export function handleBootCampScenario(args) {
914
+ const parseResult = BootCampScenarioSchema.safeParse(args);
915
+ if (!parseResult.success) {
916
+ return {
917
+ success: false,
918
+ error: `Validation failed: ${formatZodError(parseResult.error)}`,
919
+ };
920
+ }
921
+ const { session_id } = parseResult.data;
922
+ const bootCamp = getBootCamp();
923
+ const session = bootCamp.getSession(session_id);
924
+ if (!session) {
925
+ return { success: false, error: `Session not found: ${session_id}` };
926
+ }
927
+ const scenario = bootCamp.getScenario(session_id);
928
+ if (!scenario) {
929
+ return {
930
+ success: true,
931
+ phase_complete: true,
932
+ current_phase: session.current_phase,
933
+ message: `All scenarios for phase ${session.current_phase} have been attempted`,
934
+ };
935
+ }
936
+ return {
937
+ success: true,
938
+ session_id,
939
+ current_phase: session.current_phase,
940
+ scenario: {
941
+ scenario_id: scenario.scenario_id,
942
+ situation: scenario.situation,
943
+ options: scenario.options.map((o) => ({
944
+ id: o.id,
945
+ action: o.action,
946
+ })),
947
+ },
948
+ };
949
+ }
950
+ /**
951
+ * Handle ps_bootcamp_submit - Submit scenario response
952
+ */
953
+ export function handleBootCampSubmit(args) {
954
+ const parseResult = BootCampSubmitSchema.safeParse(args);
955
+ if (!parseResult.success) {
956
+ return {
957
+ success: false,
958
+ error: `Validation failed: ${formatZodError(parseResult.error)}`,
959
+ };
960
+ }
961
+ const { session_id, scenario_id, selected_option } = parseResult.data;
962
+ const bootCamp = getBootCamp();
963
+ try {
964
+ const result = bootCamp.submitResponse(session_id, scenario_id, selected_option);
965
+ const session = bootCamp.getSession(session_id);
966
+ const response = {
967
+ success: true,
968
+ correct: result.correct,
969
+ alignment_score: result.score,
970
+ explanation: result.explanation,
971
+ phase_complete: result.phase_complete,
972
+ };
973
+ if (session) {
974
+ response.current_phase = session.current_phase;
975
+ response.phase_progress = session.phase_progress[session.current_phase];
976
+ // Check if graduated
977
+ if (session.certification) {
978
+ response.graduated = true;
979
+ response.certification = session.certification;
980
+ }
981
+ }
982
+ return response;
983
+ }
984
+ catch (error) {
985
+ return {
986
+ success: false,
987
+ error: error instanceof Error ? error.message : String(error),
988
+ };
989
+ }
990
+ }
991
+ /**
992
+ * Handle ps_bootcamp_status - Get session or certification status
993
+ */
994
+ export function handleBootCampStatus(args) {
995
+ const parseResult = BootCampStatusSchema.safeParse(args);
996
+ if (!parseResult.success) {
997
+ return {
998
+ success: false,
999
+ error: `Validation failed: ${formatZodError(parseResult.error)}`,
1000
+ };
1001
+ }
1002
+ const { session_id, agent_id } = parseResult.data;
1003
+ const bootCamp = getBootCamp();
1004
+ if (session_id) {
1005
+ const session = bootCamp.getSession(session_id);
1006
+ if (!session) {
1007
+ return { success: false, error: `Session not found: ${session_id}` };
1008
+ }
1009
+ return {
1010
+ success: true,
1011
+ type: 'session',
1012
+ session_id: session.session_id,
1013
+ agent_id: session.agent_id,
1014
+ current_phase: session.current_phase,
1015
+ phase_progress: session.phase_progress,
1016
+ started_at: session.started_at,
1017
+ completed_at: session.completed_at,
1018
+ graduated: !!session.certification,
1019
+ certification: session.certification,
1020
+ };
1021
+ }
1022
+ if (agent_id) {
1023
+ const certification = bootCamp.getCertification(agent_id);
1024
+ const isCertified = bootCamp.isCertified(agent_id);
1025
+ if (!isCertified) {
1026
+ return {
1027
+ success: true,
1028
+ type: 'certification',
1029
+ agent_id,
1030
+ is_certified: false,
1031
+ message: `Agent ${agent_id} has not completed Boot Camp`,
1032
+ };
1033
+ }
1034
+ return {
1035
+ success: true,
1036
+ type: 'certification',
1037
+ agent_id,
1038
+ is_certified: true,
1039
+ certification,
1040
+ };
1041
+ }
1042
+ return { success: false, error: 'Either session_id or agent_id is required' };
1043
+ }
1044
+ // ═══════════════════════════════════════════════════════════════════════════════
1045
+ // MAIN HANDLER
1046
+ // ═══════════════════════════════════════════════════════════════════════════════
1047
+ /**
1048
+ * Main handler for all multi-agent tools.
1049
+ */
1050
+ export async function handleMultiAgentTool(toolName, args) {
1051
+ switch (toolName) {
1052
+ case 'ps_intent_create':
1053
+ return { ...(await handleIntentCreate(args)) };
1054
+ case 'ps_intent_get':
1055
+ return handleIntentGet(args);
1056
+ case 'ps_intent_consult':
1057
+ return { ...(await handleIntentConsult(args)) };
1058
+ case 'ps_agent_register':
1059
+ return handleAgentRegister(args);
1060
+ case 'ps_agent_bind':
1061
+ return { ...(await handleAgentBind(args)) };
1062
+ case 'ps_mission_create':
1063
+ return { ...(await handleMissionCreate(args)) };
1064
+ case 'ps_mission_status':
1065
+ return handleMissionStatus(args);
1066
+ case 'ps_mission_control':
1067
+ return handleMissionControl(args);
1068
+ // Boot Camp tools
1069
+ case 'ps_bootcamp_start':
1070
+ return handleBootCampStart(args);
1071
+ case 'ps_bootcamp_scenario':
1072
+ return handleBootCampScenario(args);
1073
+ case 'ps_bootcamp_submit':
1074
+ return handleBootCampSubmit(args);
1075
+ case 'ps_bootcamp_status':
1076
+ return handleBootCampStatus(args);
1077
+ default:
1078
+ return { success: false, error: `Unknown multi-agent tool: ${toolName}` };
1079
+ }
1080
+ }
1081
+ //# sourceMappingURL=tools.js.map