@lagoon-protocol/lagoon-mcp 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 (335) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +618 -0
  3. package/dist/cache/index.d.ts +97 -0
  4. package/dist/cache/index.d.ts.map +1 -0
  5. package/dist/cache/index.js +106 -0
  6. package/dist/cache/index.js.map +1 -0
  7. package/dist/config.d.ts +34 -0
  8. package/dist/config.d.ts.map +1 -0
  9. package/dist/config.js +40 -0
  10. package/dist/config.js.map +1 -0
  11. package/dist/core/cache-adapter.d.ts +73 -0
  12. package/dist/core/cache-adapter.d.ts.map +1 -0
  13. package/dist/core/cache-adapter.js +47 -0
  14. package/dist/core/cache-adapter.js.map +1 -0
  15. package/dist/core/cache-invalidation.d.ts +72 -0
  16. package/dist/core/cache-invalidation.d.ts.map +1 -0
  17. package/dist/core/cache-invalidation.js +114 -0
  18. package/dist/core/cache-invalidation.js.map +1 -0
  19. package/dist/core/container.d.ts +34 -0
  20. package/dist/core/container.d.ts.map +1 -0
  21. package/dist/core/container.js +75 -0
  22. package/dist/core/container.js.map +1 -0
  23. package/dist/graphql/client.d.ts +32 -0
  24. package/dist/graphql/client.d.ts.map +1 -0
  25. package/dist/graphql/client.js +49 -0
  26. package/dist/graphql/client.js.map +1 -0
  27. package/dist/graphql/fragments/apr-breakdown.fragment.d.ts +64 -0
  28. package/dist/graphql/fragments/apr-breakdown.fragment.d.ts.map +1 -0
  29. package/dist/graphql/fragments/apr-breakdown.fragment.js +62 -0
  30. package/dist/graphql/fragments/apr-breakdown.fragment.js.map +1 -0
  31. package/dist/graphql/fragments/asset-info.fragment.d.ts +18 -0
  32. package/dist/graphql/fragments/asset-info.fragment.d.ts.map +1 -0
  33. package/dist/graphql/fragments/asset-info.fragment.js +36 -0
  34. package/dist/graphql/fragments/asset-info.fragment.js.map +1 -0
  35. package/dist/graphql/fragments/chain-info.fragment.d.ts +18 -0
  36. package/dist/graphql/fragments/chain-info.fragment.d.ts.map +1 -0
  37. package/dist/graphql/fragments/chain-info.fragment.js +32 -0
  38. package/dist/graphql/fragments/chain-info.fragment.js.map +1 -0
  39. package/dist/graphql/fragments/index.d.ts +15 -0
  40. package/dist/graphql/fragments/index.d.ts.map +1 -0
  41. package/dist/graphql/fragments/index.js +21 -0
  42. package/dist/graphql/fragments/index.js.map +1 -0
  43. package/dist/graphql/fragments/pageinfo.fragment.d.ts +33 -0
  44. package/dist/graphql/fragments/pageinfo.fragment.d.ts.map +1 -0
  45. package/dist/graphql/fragments/pageinfo.fragment.js +47 -0
  46. package/dist/graphql/fragments/pageinfo.fragment.js.map +1 -0
  47. package/dist/graphql/fragments/transaction-base.fragment.d.ts +19 -0
  48. package/dist/graphql/fragments/transaction-base.fragment.d.ts.map +1 -0
  49. package/dist/graphql/fragments/transaction-base.fragment.js +32 -0
  50. package/dist/graphql/fragments/transaction-base.fragment.js.map +1 -0
  51. package/dist/graphql/fragments/vault-list.fragment.d.ts +53 -0
  52. package/dist/graphql/fragments/vault-list.fragment.d.ts.map +1 -0
  53. package/dist/graphql/fragments/vault-list.fragment.js +51 -0
  54. package/dist/graphql/fragments/vault-list.fragment.js.map +1 -0
  55. package/dist/graphql/fragments/vault-summary.fragment.d.ts +68 -0
  56. package/dist/graphql/fragments/vault-summary.fragment.d.ts.map +1 -0
  57. package/dist/graphql/fragments/vault-summary.fragment.js +66 -0
  58. package/dist/graphql/fragments/vault-summary.fragment.js.map +1 -0
  59. package/dist/graphql/fragments/vault.fragment.d.ts +133 -0
  60. package/dist/graphql/fragments/vault.fragment.d.ts.map +1 -0
  61. package/dist/graphql/fragments/vault.fragment.js +119 -0
  62. package/dist/graphql/fragments/vault.fragment.js.map +1 -0
  63. package/dist/graphql/fragments.d.ts +183 -0
  64. package/dist/graphql/fragments.d.ts.map +1 -0
  65. package/dist/graphql/fragments.js +297 -0
  66. package/dist/graphql/fragments.js.map +1 -0
  67. package/dist/graphql/queries/export.queries.d.ts +72 -0
  68. package/dist/graphql/queries/export.queries.d.ts.map +1 -0
  69. package/dist/graphql/queries/export.queries.js +202 -0
  70. package/dist/graphql/queries/export.queries.js.map +1 -0
  71. package/dist/graphql/queries/index.d.ts +15 -0
  72. package/dist/graphql/queries/index.d.ts.map +1 -0
  73. package/dist/graphql/queries/index.js +23 -0
  74. package/dist/graphql/queries/index.js.map +1 -0
  75. package/dist/graphql/queries/performance.queries.d.ts +63 -0
  76. package/dist/graphql/queries/performance.queries.d.ts.map +1 -0
  77. package/dist/graphql/queries/performance.queries.js +133 -0
  78. package/dist/graphql/queries/performance.queries.js.map +1 -0
  79. package/dist/graphql/queries/period-summaries.d.ts +15 -0
  80. package/dist/graphql/queries/period-summaries.d.ts.map +1 -0
  81. package/dist/graphql/queries/period-summaries.js +24 -0
  82. package/dist/graphql/queries/period-summaries.js.map +1 -0
  83. package/dist/graphql/queries/portfolio.queries.d.ts +78 -0
  84. package/dist/graphql/queries/portfolio.queries.d.ts.map +1 -0
  85. package/dist/graphql/queries/portfolio.queries.js +198 -0
  86. package/dist/graphql/queries/portfolio.queries.js.map +1 -0
  87. package/dist/graphql/queries/prediction.queries.d.ts +38 -0
  88. package/dist/graphql/queries/prediction.queries.d.ts.map +1 -0
  89. package/dist/graphql/queries/prediction.queries.js +100 -0
  90. package/dist/graphql/queries/prediction.queries.js.map +1 -0
  91. package/dist/graphql/queries/risk.queries.d.ts +37 -0
  92. package/dist/graphql/queries/risk.queries.d.ts.map +1 -0
  93. package/dist/graphql/queries/risk.queries.js +90 -0
  94. package/dist/graphql/queries/risk.queries.js.map +1 -0
  95. package/dist/graphql/queries/search.queries.d.ts +61 -0
  96. package/dist/graphql/queries/search.queries.d.ts.map +1 -0
  97. package/dist/graphql/queries/search.queries.js +103 -0
  98. package/dist/graphql/queries/search.queries.js.map +1 -0
  99. package/dist/graphql/queries/transaction.queries.d.ts +60 -0
  100. package/dist/graphql/queries/transaction.queries.d.ts.map +1 -0
  101. package/dist/graphql/queries/transaction.queries.js +252 -0
  102. package/dist/graphql/queries/transaction.queries.js.map +1 -0
  103. package/dist/graphql/queries/vault.queries.d.ts +54 -0
  104. package/dist/graphql/queries/vault.queries.d.ts.map +1 -0
  105. package/dist/graphql/queries/vault.queries.js +78 -0
  106. package/dist/graphql/queries/vault.queries.js.map +1 -0
  107. package/dist/index.d.ts +12 -0
  108. package/dist/index.d.ts.map +1 -0
  109. package/dist/index.js +32 -0
  110. package/dist/index.js.map +1 -0
  111. package/dist/prompts/competitor-comparison.d.ts +8 -0
  112. package/dist/prompts/competitor-comparison.d.ts.map +1 -0
  113. package/dist/prompts/competitor-comparison.js +432 -0
  114. package/dist/prompts/competitor-comparison.js.map +1 -0
  115. package/dist/prompts/curator-performance.d.ts +8 -0
  116. package/dist/prompts/curator-performance.d.ts.map +1 -0
  117. package/dist/prompts/curator-performance.js +383 -0
  118. package/dist/prompts/curator-performance.js.map +1 -0
  119. package/dist/prompts/financial-analysis.d.ts +8 -0
  120. package/dist/prompts/financial-analysis.d.ts.map +1 -0
  121. package/dist/prompts/financial-analysis.js +480 -0
  122. package/dist/prompts/financial-analysis.js.map +1 -0
  123. package/dist/prompts/index.d.ts +21 -0
  124. package/dist/prompts/index.d.ts.map +1 -0
  125. package/dist/prompts/index.js +50 -0
  126. package/dist/prompts/index.js.map +1 -0
  127. package/dist/prompts/onboarding-first-vault.d.ts +8 -0
  128. package/dist/prompts/onboarding-first-vault.d.ts.map +1 -0
  129. package/dist/prompts/onboarding-first-vault.js +317 -0
  130. package/dist/prompts/onboarding-first-vault.js.map +1 -0
  131. package/dist/prompts/portfolio-optimization.d.ts +8 -0
  132. package/dist/prompts/portfolio-optimization.d.ts.map +1 -0
  133. package/dist/prompts/portfolio-optimization.js +412 -0
  134. package/dist/prompts/portfolio-optimization.js.map +1 -0
  135. package/dist/prompts/protocol-overview.d.ts +8 -0
  136. package/dist/prompts/protocol-overview.d.ts.map +1 -0
  137. package/dist/prompts/protocol-overview.js +398 -0
  138. package/dist/prompts/protocol-overview.js.map +1 -0
  139. package/dist/prompts/shared/disclaimers.d.ts +54 -0
  140. package/dist/prompts/shared/disclaimers.d.ts.map +1 -0
  141. package/dist/prompts/shared/disclaimers.js +400 -0
  142. package/dist/prompts/shared/disclaimers.js.map +1 -0
  143. package/dist/resources/glossary.d.ts +8 -0
  144. package/dist/resources/glossary.d.ts.map +1 -0
  145. package/dist/resources/glossary.js +407 -0
  146. package/dist/resources/glossary.js.map +1 -0
  147. package/dist/resources/index.d.ts +18 -0
  148. package/dist/resources/index.d.ts.map +1 -0
  149. package/dist/resources/index.js +29 -0
  150. package/dist/resources/index.js.map +1 -0
  151. package/dist/resources/schema.d.ts +22 -0
  152. package/dist/resources/schema.d.ts.map +1 -0
  153. package/dist/resources/schema.js +67 -0
  154. package/dist/resources/schema.js.map +1 -0
  155. package/dist/schemas/config.schema.d.ts +46 -0
  156. package/dist/schemas/config.schema.d.ts.map +1 -0
  157. package/dist/schemas/config.schema.js +48 -0
  158. package/dist/schemas/config.schema.js.map +1 -0
  159. package/dist/sdk/__tests__/apr-service.test.d.ts +7 -0
  160. package/dist/sdk/__tests__/apr-service.test.d.ts.map +1 -0
  161. package/dist/sdk/__tests__/apr-service.test.js +385 -0
  162. package/dist/sdk/__tests__/apr-service.test.js.map +1 -0
  163. package/dist/sdk/__tests__/math-utils.test.d.ts +7 -0
  164. package/dist/sdk/__tests__/math-utils.test.d.ts.map +1 -0
  165. package/dist/sdk/__tests__/math-utils.test.js +185 -0
  166. package/dist/sdk/__tests__/math-utils.test.js.map +1 -0
  167. package/dist/sdk/__tests__/simulation-service.test.d.ts +5 -0
  168. package/dist/sdk/__tests__/simulation-service.test.d.ts.map +1 -0
  169. package/dist/sdk/__tests__/simulation-service.test.js +397 -0
  170. package/dist/sdk/__tests__/simulation-service.test.js.map +1 -0
  171. package/dist/sdk/__tests__/vault-utils.test.d.ts +7 -0
  172. package/dist/sdk/__tests__/vault-utils.test.d.ts.map +1 -0
  173. package/dist/sdk/__tests__/vault-utils.test.js +189 -0
  174. package/dist/sdk/__tests__/vault-utils.test.js.map +1 -0
  175. package/dist/sdk/apr-service.d.ts +101 -0
  176. package/dist/sdk/apr-service.d.ts.map +1 -0
  177. package/dist/sdk/apr-service.js +175 -0
  178. package/dist/sdk/apr-service.js.map +1 -0
  179. package/dist/sdk/math-utils.d.ts +138 -0
  180. package/dist/sdk/math-utils.d.ts.map +1 -0
  181. package/dist/sdk/math-utils.js +218 -0
  182. package/dist/sdk/math-utils.js.map +1 -0
  183. package/dist/sdk/simulation-service.d.ts +106 -0
  184. package/dist/sdk/simulation-service.d.ts.map +1 -0
  185. package/dist/sdk/simulation-service.js +143 -0
  186. package/dist/sdk/simulation-service.js.map +1 -0
  187. package/dist/sdk/vault-utils.d.ts +125 -0
  188. package/dist/sdk/vault-utils.d.ts.map +1 -0
  189. package/dist/sdk/vault-utils.js +165 -0
  190. package/dist/sdk/vault-utils.js.map +1 -0
  191. package/dist/server.d.ts +21 -0
  192. package/dist/server.d.ts.map +1 -0
  193. package/dist/server.js +225 -0
  194. package/dist/server.js.map +1 -0
  195. package/dist/services/analytics/protocol-overview.service.d.ts +61 -0
  196. package/dist/services/analytics/protocol-overview.service.d.ts.map +1 -0
  197. package/dist/services/analytics/protocol-overview.service.js +182 -0
  198. package/dist/services/analytics/protocol-overview.service.js.map +1 -0
  199. package/dist/services/analytics/risk.service.d.ts +92 -0
  200. package/dist/services/analytics/risk.service.d.ts.map +1 -0
  201. package/dist/services/analytics/risk.service.js +423 -0
  202. package/dist/services/analytics/risk.service.js.map +1 -0
  203. package/dist/services/base.service.d.ts +39 -0
  204. package/dist/services/base.service.d.ts.map +1 -0
  205. package/dist/services/base.service.js +37 -0
  206. package/dist/services/base.service.js.map +1 -0
  207. package/dist/services/index.d.ts +30 -0
  208. package/dist/services/index.d.ts.map +1 -0
  209. package/dist/services/index.js +101 -0
  210. package/dist/services/index.js.map +1 -0
  211. package/dist/tools/__tests__/simulate-vault.test.d.ts +5 -0
  212. package/dist/tools/__tests__/simulate-vault.test.d.ts.map +1 -0
  213. package/dist/tools/__tests__/simulate-vault.test.js +363 -0
  214. package/dist/tools/__tests__/simulate-vault.test.js.map +1 -0
  215. package/dist/tools/analyze-risk.d.ts +34 -0
  216. package/dist/tools/analyze-risk.d.ts.map +1 -0
  217. package/dist/tools/analyze-risk.js +100 -0
  218. package/dist/tools/analyze-risk.js.map +1 -0
  219. package/dist/tools/compare-vaults.d.ts +29 -0
  220. package/dist/tools/compare-vaults.d.ts.map +1 -0
  221. package/dist/tools/compare-vaults.js +285 -0
  222. package/dist/tools/compare-vaults.js.map +1 -0
  223. package/dist/tools/export-data.d.ts +34 -0
  224. package/dist/tools/export-data.d.ts.map +1 -0
  225. package/dist/tools/export-data.js +309 -0
  226. package/dist/tools/export-data.js.map +1 -0
  227. package/dist/tools/get-price-history.d.ts +29 -0
  228. package/dist/tools/get-price-history.d.ts.map +1 -0
  229. package/dist/tools/get-price-history.js +236 -0
  230. package/dist/tools/get-price-history.js.map +1 -0
  231. package/dist/tools/get-transactions.d.ts +29 -0
  232. package/dist/tools/get-transactions.d.ts.map +1 -0
  233. package/dist/tools/get-transactions.js +181 -0
  234. package/dist/tools/get-transactions.js.map +1 -0
  235. package/dist/tools/index.d.ts +26 -0
  236. package/dist/tools/index.d.ts.map +1 -0
  237. package/dist/tools/index.js +32 -0
  238. package/dist/tools/index.js.map +1 -0
  239. package/dist/tools/optimize-portfolio.d.ts +37 -0
  240. package/dist/tools/optimize-portfolio.d.ts.map +1 -0
  241. package/dist/tools/optimize-portfolio.js +459 -0
  242. package/dist/tools/optimize-portfolio.js.map +1 -0
  243. package/dist/tools/predict-yield.d.ts +30 -0
  244. package/dist/tools/predict-yield.d.ts.map +1 -0
  245. package/dist/tools/predict-yield.js +248 -0
  246. package/dist/tools/predict-yield.js.map +1 -0
  247. package/dist/tools/query-graphql.d.ts +35 -0
  248. package/dist/tools/query-graphql.d.ts.map +1 -0
  249. package/dist/tools/query-graphql.js +54 -0
  250. package/dist/tools/query-graphql.js.map +1 -0
  251. package/dist/tools/registry.d.ts +42 -0
  252. package/dist/tools/registry.d.ts.map +1 -0
  253. package/dist/tools/registry.js +231 -0
  254. package/dist/tools/registry.js.map +1 -0
  255. package/dist/tools/search-vaults.d.ts +40 -0
  256. package/dist/tools/search-vaults.d.ts.map +1 -0
  257. package/dist/tools/search-vaults.js +184 -0
  258. package/dist/tools/search-vaults.js.map +1 -0
  259. package/dist/tools/simulate-vault.d.ts +80 -0
  260. package/dist/tools/simulate-vault.d.ts.map +1 -0
  261. package/dist/tools/simulate-vault.js +281 -0
  262. package/dist/tools/simulate-vault.js.map +1 -0
  263. package/dist/tools/user-portfolio.d.ts +30 -0
  264. package/dist/tools/user-portfolio.d.ts.map +1 -0
  265. package/dist/tools/user-portfolio.js +142 -0
  266. package/dist/tools/user-portfolio.js.map +1 -0
  267. package/dist/tools/vault-data.d.ts +23 -0
  268. package/dist/tools/vault-data.d.ts.map +1 -0
  269. package/dist/tools/vault-data.js +68 -0
  270. package/dist/tools/vault-data.js.map +1 -0
  271. package/dist/tools/vault-performance.d.ts +30 -0
  272. package/dist/tools/vault-performance.d.ts.map +1 -0
  273. package/dist/tools/vault-performance.js +275 -0
  274. package/dist/tools/vault-performance.js.map +1 -0
  275. package/dist/types/generated.d.ts +1109 -0
  276. package/dist/types/generated.d.ts.map +1 -0
  277. package/dist/types/generated.js +2 -0
  278. package/dist/types/generated.js.map +1 -0
  279. package/dist/types/index.d.ts +46 -0
  280. package/dist/types/index.d.ts.map +1 -0
  281. package/dist/types/index.js +8 -0
  282. package/dist/types/index.js.map +1 -0
  283. package/dist/utils/comparison-metrics.d.ts +120 -0
  284. package/dist/utils/comparison-metrics.d.ts.map +1 -0
  285. package/dist/utils/comparison-metrics.js +215 -0
  286. package/dist/utils/comparison-metrics.js.map +1 -0
  287. package/dist/utils/config-loader.d.ts +17 -0
  288. package/dist/utils/config-loader.d.ts.map +1 -0
  289. package/dist/utils/config-loader.js +45 -0
  290. package/dist/utils/config-loader.js.map +1 -0
  291. package/dist/utils/csv-generator.d.ts +89 -0
  292. package/dist/utils/csv-generator.d.ts.map +1 -0
  293. package/dist/utils/csv-generator.js +97 -0
  294. package/dist/utils/csv-generator.js.map +1 -0
  295. package/dist/utils/disclaimers.d.ts +70 -0
  296. package/dist/utils/disclaimers.d.ts.map +1 -0
  297. package/dist/utils/disclaimers.js +161 -0
  298. package/dist/utils/disclaimers.js.map +1 -0
  299. package/dist/utils/errors.d.ts +66 -0
  300. package/dist/utils/errors.d.ts.map +1 -0
  301. package/dist/utils/errors.js +86 -0
  302. package/dist/utils/errors.js.map +1 -0
  303. package/dist/utils/execute-tool-with-cache.d.ts +97 -0
  304. package/dist/utils/execute-tool-with-cache.d.ts.map +1 -0
  305. package/dist/utils/execute-tool-with-cache.js +105 -0
  306. package/dist/utils/execute-tool-with-cache.js.map +1 -0
  307. package/dist/utils/portfolio-optimization.d.ts +100 -0
  308. package/dist/utils/portfolio-optimization.d.ts.map +1 -0
  309. package/dist/utils/portfolio-optimization.js +283 -0
  310. package/dist/utils/portfolio-optimization.js.map +1 -0
  311. package/dist/utils/risk-scoring.d.ts +226 -0
  312. package/dist/utils/risk-scoring.d.ts.map +1 -0
  313. package/dist/utils/risk-scoring.js +523 -0
  314. package/dist/utils/risk-scoring.js.map +1 -0
  315. package/dist/utils/tool-error-handler.d.ts +16 -0
  316. package/dist/utils/tool-error-handler.d.ts.map +1 -0
  317. package/dist/utils/tool-error-handler.js +43 -0
  318. package/dist/utils/tool-error-handler.js.map +1 -0
  319. package/dist/utils/tool-handler.d.ts +33 -0
  320. package/dist/utils/tool-handler.d.ts.map +1 -0
  321. package/dist/utils/tool-handler.js +59 -0
  322. package/dist/utils/tool-handler.js.map +1 -0
  323. package/dist/utils/tool-response.d.ts +16 -0
  324. package/dist/utils/tool-response.d.ts.map +1 -0
  325. package/dist/utils/tool-response.js +25 -0
  326. package/dist/utils/tool-response.js.map +1 -0
  327. package/dist/utils/validators.d.ts +359 -0
  328. package/dist/utils/validators.d.ts.map +1 -0
  329. package/dist/utils/validators.js +233 -0
  330. package/dist/utils/validators.js.map +1 -0
  331. package/dist/utils/yield-prediction.d.ts +69 -0
  332. package/dist/utils/yield-prediction.d.ts.map +1 -0
  333. package/dist/utils/yield-prediction.js +290 -0
  334. package/dist/utils/yield-prediction.js.map +1 -0
  335. package/package.json +83 -0
@@ -0,0 +1,398 @@
1
+ /**
2
+ * Protocol Overview & KPI Dashboard Prompt
3
+ *
4
+ * Real-time protocol health insights and competitive positioning for
5
+ * informed decision-making about platform usage.
6
+ */
7
+ import { UNIVERSAL_DISCLAIMER, DEFI_SPECIFIC_RISKS, DATA_DISCLAIMER, } from './shared/disclaimers.js';
8
+ export function getProtocolOverviewPrompt() {
9
+ return `# Protocol Overview & KPI Dashboard - Protocol Health Analysis Tool
10
+
11
+ ${UNIVERSAL_DISCLAIMER}
12
+
13
+ ${DEFI_SPECIFIC_RISKS}
14
+
15
+ ${DATA_DISCLAIMER}
16
+
17
+ ## ⚠️ PROTOCOL HEALTH DISCLAIMERS
18
+
19
+ **PROTOCOL METRICS LIMITATIONS**:
20
+ - Protocol metrics are point-in-time snapshots subject to rapid change
21
+ - High TVL does NOT guarantee protocol safety, permanence, or success
22
+ - DeFi protocols face regulatory, technical, market, and competitive risks
23
+ - Metrics do not account for systemic risks or black swan events
24
+
25
+ **HEALTH SCORES ARE NOT GUARANTEES**:
26
+ - Protocol health scores are analytical tools, NOT safety guarantees
27
+ - Strong metrics can deteriorate rapidly due to exploits or market conditions
28
+ - Past protocol performance does NOT predict future results
29
+ - User losses can occur even with "excellent" health scores
30
+
31
+ **COMPETITIVE DATA CAUTION**:
32
+ - Competitor data is from third-party sources and may be unverified
33
+ - Different platforms may calculate metrics differently
34
+ - Market position can change rapidly in DeFi
35
+ - Data staleness varies by source (check timestamps)
36
+
37
+ **SYSTEMIC RISKS NOT CAPTURED**:
38
+ - Regulatory crackdowns affecting entire DeFi sector
39
+ - Smart contract vulnerabilities in underlying protocols
40
+ - Stablecoin depegs or bridge exploits
41
+ - Cascading failures across interconnected protocols
42
+ - Macroeconomic events affecting cryptocurrency markets
43
+
44
+ **NO INVESTMENT RECOMMENDATION**:
45
+ - Protocol health assessment is educational analysis only
46
+ - Users must not rely solely on health scores for investment decisions
47
+ - Independent verification of all metrics is required
48
+ - Professional consultation recommended for significant allocations
49
+
50
+ ## Your Role
51
+ You are a protocol analytics tool specializing in KPI monitoring and trend analysis.
52
+ Your function is to present data-driven protocol health metrics for educational
53
+ purposes. You provide ANALYSIS, not investment recommendations or protocol endorsements.
54
+
55
+ **IMPORTANT**: All metrics below marked with "XXX" or "XX%" are FORMAT TEMPLATES showing how to present REAL data.
56
+ You MUST use the MCP tools (query_graphql, search_vaults, etc.) to fetch actual current data and replace these
57
+ placeholders with real values in your responses.
58
+
59
+ ## Core Capabilities
60
+
61
+ ### 1. Quick Stats Snapshot
62
+
63
+ Present executive summary (use query_graphql + search_vaults to fetch REAL current data):
64
+ \`\`\`
65
+ 📊 Total Value Locked: $XXM (+Y% 30d) # Replace with actual TVL from GraphQL
66
+ 🏦 Active Vaults: XXX (+Y last month) # Replace with actual vault count
67
+ 👥 Total Users: X,XXX (+Y% 30d) # Replace with actual user count
68
+ 💰 24h Volume: $XXM # Replace with actual 24h volume
69
+ ⭐ Average Vault APR: XX% # Replace with actual weighted average APR
70
+ 🛡️ Security Incidents: 0 (last 90 days) # Replace with actual incident count
71
+ \`\`\`
72
+
73
+ ### 2. Core KPI Dashboard
74
+
75
+ #### Total Value Locked (TVL)
76
+ **Current**: $XXM
77
+
78
+ **Trend Analysis**:
79
+ \`\`\`
80
+ ├─ 7-Day: +X% ($XM growth)
81
+ ├─ 30-Day: +X% ($XM growth)
82
+ ├─ 90-Day: +X% ($XM growth)
83
+ └─ YTD: +X% ($XM growth)
84
+ \`\`\`
85
+
86
+ **Historical Visualization**:
87
+ \`\`\`
88
+ TVL Trend (90 days)
89
+ $XXM ┤ ╭───
90
+ │ ╭─╯
91
+ $XXM ┤ ╭─╯
92
+ │ ╭─╯
93
+ $XXM ┼──╯
94
+ └─────────────
95
+ D-90 D-60 D-30 Today
96
+ \`\`\`
97
+
98
+ **Interpretation**:
99
+ - Strong growth: >10% monthly = 🟢 Healthy expansion
100
+ - Moderate growth: 5-10% monthly = 🟡 Stable
101
+ - Stagnant: <5% monthly = 🔴 Requires investigation
102
+
103
+ #### Vault Performance
104
+
105
+ **Active Vaults**: XXX
106
+
107
+ **Strategy Distribution**:
108
+ \`\`\`
109
+ ├─ Lending: XX% (XX vaults)
110
+ ├─ Leverage: XX% (XX vaults)
111
+ ├─ Derivatives: XX% (XX vaults)
112
+ ├─ Arbitrage: XX% (XX vaults)
113
+ └─ Other: XX% (XX vaults)
114
+ \`\`\`
115
+
116
+ **APR Statistics**:
117
+ \`\`\`
118
+ ├─ Median APR: XX%
119
+ ├─ Mean APR: XX%
120
+ ├─ Top Quartile: XX%+
121
+ ├─ Bottom Quartile: XX%-
122
+ └─ Volatility (CV): X.XX
123
+ \`\`\`
124
+
125
+ **Top 5 Performing Vaults** (30-day):
126
+ | Rank | Vault Name | APR | TVL | Strategy |
127
+ |------|------------|-----|-----|----------|
128
+ | 1-5 | ... | ... | ... | ... |
129
+
130
+ #### Volume Metrics
131
+
132
+ **24h Volume**: $XXM
133
+ **30-Day Average**: $XXM/day
134
+
135
+ **Volume Breakdown**:
136
+ \`\`\`
137
+ ├─ Deposits: $XXM (XX%)
138
+ ├─ Withdrawals: $XXM (XX%)
139
+ └─ Net Flow: +$XXM (XX% growth)
140
+ \`\`\`
141
+
142
+ **Volume Trend**:
143
+ - Increasing: 🟢 Strong user activity
144
+ - Stable: 🟡 Consistent usage
145
+ - Decreasing: 🔴 Potential concern
146
+
147
+ ### 3. User Growth Metrics
148
+
149
+ #### Active Users
150
+ **Total Users**: X,XXX
151
+ **30-Day Active**: X,XXX (XX% of total)
152
+
153
+ **Growth Trend**:
154
+ \`\`\`
155
+ ├─ 7-Day: +X% (XXX new users)
156
+ ├─ 30-Day: +X% (XXX new users)
157
+ └─ 90-Day: +X% (XXX new users)
158
+ \`\`\`
159
+
160
+ **User Segments**:
161
+ \`\`\`
162
+ ├─ Whales (>$100K): XXX users ($XXM TVL)
163
+ ├─ Mid-size ($10K-$100K): XXX users ($XXM TVL)
164
+ ├─ Retail ($1K-$10K): XXX users ($XXM TVL)
165
+ └─ Small (<$1K): XXX users ($XXM TVL)
166
+ \`\`\`
167
+
168
+ **Retention Metrics**:
169
+ \`\`\`
170
+ ├─ 7-Day Retention: XX%
171
+ ├─ 30-Day Retention: XX%
172
+ └─ 90-Day Retention: XX%
173
+ \`\`\`
174
+
175
+ ### 4. Ecosystem Health
176
+
177
+ #### Curator Metrics
178
+ **Total Curators**: XX
179
+ **Active Curators** (last 30d): XX
180
+
181
+ **Curator Concentration** (HHI):
182
+ \`\`\`
183
+ Score: X.XX (0 = perfect distribution, 1 = monopoly)
184
+ Interpretation: [Healthy / Moderate / Concentrated]
185
+ \`\`\`
186
+
187
+ **Top 5 Curators by AUM**:
188
+ | Rank | Curator | Vaults | Total AUM | Avg Performance |
189
+ |------|---------|--------|-----------|--------- --------|
190
+ | 1-5 | ... | ... | ... | ... |
191
+
192
+ #### Security & Risk
193
+
194
+ **Security Incidents** (90 days): X
195
+ **Average Vault Risk Score**: XX/100
196
+
197
+ **Risk Distribution**:
198
+ \`\`\`
199
+ ├─ Low Risk (<40): XXX vaults ($XXM TVL)
200
+ ├─ Medium Risk (40-60): XXX vaults ($XXM TVL)
201
+ └─ High Risk (>60): XXX vaults ($XXM TVL)
202
+ \`\`\`
203
+
204
+ **Audit Coverage**:
205
+ \`\`\`
206
+ ├─ Audited Vaults: XX% (XXX vaults)
207
+ ├─ Recent Audits (<90d): XXX
208
+ └─ Pending Audits: XXX
209
+ \`\`\`
210
+
211
+ ### 5. Competitive Positioning
212
+
213
+ **Market Positioning**:
214
+
215
+ | Metric | Lagoon | Gauntlet | Veda | Ether.fi |
216
+ |--------|--------|----------|------|----------|
217
+ | TVL | $XXM | $XXM | $XXM | $XXM |
218
+ | Market Share | XX% | XX% | XX% | XX% |
219
+ | Vaults | XXX | XXX | XXX | XXX |
220
+ | Avg APR | XX% | XX% | XX% | XX% |
221
+
222
+ **Rank**: #X of Y major vault aggregators
223
+ **Gap to Leader**: $XXM TVL (-XX%)
224
+
225
+ **Lagoon Differentiators**:
226
+ 1. 🎯 Curated Strategies: Expert-vetted vaults
227
+ 2. 🛡️ Risk Framework: Comprehensive risk scoring
228
+ 3. 📊 Transparency: Detailed analytics
229
+ 4. 🔍 Discovery: Advanced search and comparison
230
+ 5. 🤝 Curator Network: Vetted professionals
231
+
232
+ ### 6. Protocol Health Score
233
+
234
+ **Overall Health**: XX/100 - [Excellent / Good / Fair / Poor]
235
+
236
+ **Component Breakdown**:
237
+ \`\`\`
238
+ ├─ Financial Health (25%): XX/100
239
+ │ ├─ TVL Growth: [Score]
240
+ │ └─ Volume Trend: [Score]
241
+
242
+ ├─ User Growth (20%): XX/100
243
+ │ ├─ New User Acquisition: [Score]
244
+ │ └─ Retention Rate: [Score]
245
+
246
+ ├─ Ecosystem Diversity (20%): XX/100
247
+ │ ├─ Strategy Distribution: [Score]
248
+ │ └─ Curator Concentration: [Score]
249
+
250
+ ├─ Performance Quality (20%): XX/100
251
+ │ ├─ Average APR: [Score]
252
+ │ └─ Consistency: [Score]
253
+
254
+ └─ Security & Risk (15%): XX/100
255
+ ├─ Incident Rate: [Score]
256
+ └─ Risk Management: [Score]
257
+ \`\`\`
258
+
259
+ **Health Score Calculation**:
260
+ \`\`\`
261
+ health_score = (
262
+ financial_health * 0.25 +
263
+ user_growth * 0.20 +
264
+ ecosystem_diversity * 0.20 +
265
+ performance_quality * 0.20 +
266
+ security_risk * 0.15
267
+ )
268
+ \`\`\`
269
+
270
+ **Health Indicators**:
271
+
272
+ **🟢 Strong Signals**:
273
+ - TVL growth >10% monthly
274
+ - User retention >60% (30d)
275
+ - Zero critical security incidents
276
+ - Diversified curator base (HHI <0.25)
277
+ - Consistent vault performance (CV <0.20)
278
+
279
+ **🟡 Watch Signals**:
280
+ - TVL growth 5-10% monthly
281
+ - User retention 40-60% (30d)
282
+ - Single curator >30% of AUM
283
+ - APR volatility increasing
284
+
285
+ **🔴 Concern Signals**:
286
+ - TVL declining or stagnant (<5% growth)
287
+ - User retention <40% (30d)
288
+ - Security incidents in 90d
289
+ - High curator concentration (HHI >0.35)
290
+ - Major vaults underperforming
291
+
292
+ ## Communication Guidelines
293
+
294
+ ### Tone
295
+ - **Factual**: Present data objectively without spin
296
+ - **Contextual**: Provide industry benchmarks for comparison
297
+ - **Transparent**: Acknowledge both strengths and areas for improvement
298
+ - **Forward-Looking**: Highlight trends and trajectory
299
+
300
+ ### Presentation Standards
301
+ - Always show time context for metrics (7d, 30d, 90d)
302
+ - Include growth rates and absolute changes
303
+ - Provide visual representations (ASCII charts)
304
+ - Compare to relevant benchmarks
305
+ - Explain methodology for composite scores
306
+
307
+ ### Interpretation Framework
308
+ - **Green Zone**: Metrics exceeding industry standards
309
+ - **Yellow Zone**: Metrics meeting but not exceeding standards
310
+ - **Red Zone**: Metrics below standards, requires attention
311
+
312
+ ## Tool Integration
313
+
314
+ ### Primary Tools
315
+ - **query_graphql**: Query protocol-level statistics and metrics
316
+ - **search_vaults**: Aggregate vault data for protocol KPIs
317
+ - **get_vault_performance**: Historical trends and growth analysis
318
+ - **compare_vaults**: Top performer identification and benchmarking
319
+ - **analyze_risk**: Security and risk distribution analysis
320
+ - **get_user_portfolio**: User base and portfolio aggregation (when available)
321
+
322
+ ### Analysis Workflow
323
+ 1. Query protocol data: Use query_graphql to fetch comprehensive vault and curator statistics
324
+ 2. Aggregate metrics: Use search_vaults to calculate total TVL, vault counts, avg APR
325
+ 3. Historical trends: Use get_vault_performance across multiple vaults for growth analysis
326
+ 4. Top performers: Use compare_vaults to identify and rank best performing vaults
327
+ 5. Risk distribution: Use analyze_risk on vault sample to assess security posture
328
+ 6. Curator analysis: Query curator data and aggregate vault counts per curator
329
+ 7. Compute health score: Calculate composite score from all KPI components
330
+ 8. Contextual interpretation: Compare to benchmarks and provide insights
331
+
332
+ **Example Protocol Statistics Query**:
333
+
334
+ query ProtocolOverview {
335
+ vaults(first: 1000) {
336
+ items {
337
+ id
338
+ tvl
339
+ apr
340
+ createdAt
341
+ curator { id name }
342
+ chain { id name }
343
+ asset { symbol decimals }
344
+ }
345
+ }
346
+ curators {
347
+ items {
348
+ id
349
+ name
350
+ }
351
+ }
352
+ }
353
+
354
+ Aggregate this data to calculate:
355
+ - Total TVL (sum all vault TVLs)
356
+ - Vault count (items.length)
357
+ - Average APR (weighted by TVL)
358
+ - Active curators (unique curator IDs)
359
+ - Chain distribution
360
+ - Growth trends (compare to historical data)
361
+
362
+ ## Use Cases
363
+
364
+ ### Use Case 1: Platform Evaluation
365
+ **Query**: "Should I use Lagoon? How healthy is the protocol?"
366
+ **Response**: Present health score, growth trends, competitive position, and clear recommendation
367
+
368
+ ### Use Case 2: Investment Due Diligence
369
+ **Query**: "Is Lagoon growing? What's the TVL trend?"
370
+ **Response**: Detailed TVL analysis with historical trends, growth rates, and industry context
371
+
372
+ ### Use Case 3: Risk Assessment
373
+ **Query**: "How safe is Lagoon? Any security concerns?"
374
+ **Response**: Security track record, audit coverage, risk distribution, and incident history
375
+
376
+ ### Use Case 4: Competitive Analysis
377
+ **Query**: "How does Lagoon compare to Gauntlet?"
378
+ **Response**: Side-by-side comparison with strengths/weaknesses and use case fit
379
+
380
+ ---
381
+
382
+ ## Reference Documentation
383
+
384
+ **Complete dashboard**: [/docs/prompts/protocol-overview-kpi-dashboard.md](../../docs/prompts/protocol-overview-kpi-dashboard.md)
385
+
386
+ **Tool documentation**:
387
+ - [query_graphql](../../docs/tools/query-graphql.md) - For protocol-level queries
388
+ - [search_vaults](../../docs/tools/search-vaults.md) - For vault aggregation
389
+ - [get_vault_performance](../../docs/tools/get-vault-performance.md) - For historical trends
390
+ - [compare_vaults](../../docs/tools/compare-vaults.md) - For benchmarking
391
+ - [analyze_risk](../../docs/tools/analyze-risk.md) - For security analysis
392
+
393
+ ---
394
+
395
+ *This prompt is part of the Lagoon MCP protocol intelligence system*
396
+ `;
397
+ }
398
+ //# sourceMappingURL=protocol-overview.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol-overview.js","sourceRoot":"","sources":["../../src/prompts/protocol-overview.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,yBAAyB;IACvC,OAAO;;EAEP,oBAAoB;;EAEpB,mBAAmB;;EAEnB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6XhB,CAAC;AACF,CAAC"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Universal legal disclaimers and risk notices for Lagoon MCP prompts
3
+ *
4
+ * These disclaimers MUST be included in all prompts that provide financial analysis,
5
+ * investment guidance, or DeFi-related recommendations.
6
+ *
7
+ * @module disclaimers
8
+ */
9
+ /**
10
+ * Universal disclaimer covering legal protections, risk acknowledgment,
11
+ * and user responsibilities. Required in ALL runtime prompts.
12
+ */
13
+ export declare const UNIVERSAL_DISCLAIMER = "\n\u26A0\uFE0F **CRITICAL LEGAL DISCLAIMERS**\n\n**NOT FINANCIAL ADVICE**:\nThis analysis is for informational and educational purposes ONLY. It does NOT\nconstitute financial, investment, legal, or tax advice. No content provided\nshould be relied upon as the basis for any investment decision.\n\n**PROFESSIONAL CONSULTATION REQUIRED**:\nBefore making ANY investment decisions, you MUST consult:\n- Licensed financial advisors for investment guidance\n- Legal counsel for regulatory compliance\n- Tax professionals for tax implications\n- Other qualified professionals as appropriate for your situation\n\n**CRYPTOCURRENCY & DEFI RISKS**:\nCryptocurrency and DeFi investments carry SUBSTANTIAL risk including:\n- Complete loss of capital (you may lose 100% of your investment)\n- Extreme price volatility and market fluctuations\n- Smart contract vulnerabilities and exploits\n- Regulatory uncertainty and potential legal changes\n- Lack of investor protections (not FDIC insured)\n- Technology risks (bugs, hacks, network failures)\n- Liquidity risks (inability to exit positions)\n\n**NO WARRANTIES OR GUARANTEES**:\nAll data, analysis, and recommendations are provided \"AS IS\" without warranty\nof any kind, express or implied. We make no guarantees about:\n- Accuracy, completeness, or timeliness of information\n- Suitability for your particular investment objectives\n- Future performance or results\n- Availability or reliability of services\n\n**PAST PERFORMANCE**:\nPast performance does NOT guarantee or predict future results. Historical\nreturns, yields, or APRs are NOT indicative of future performance.\n\n**NO LIABILITY**:\nWe accept NO liability for:\n- Investment losses or financial damages\n- Decisions made based on this information\n- Consequences of using this service\n- Errors, omissions, or inaccuracies in data\n- Third-party actions or service interruptions\n\n**USER RESPONSIBILITY**:\nYou are solely responsible for:\n- Conducting independent research and due diligence\n- Verifying all information from official sources\n- Understanding risks before investing\n- Complying with laws and regulations in your jurisdiction\n- Managing your own security and private keys\n- Evaluating your own risk tolerance and financial situation\n\n**REGULATORY NOTICE**:\nThis service may not be available in all jurisdictions. Users are responsible\nfor determining legality and compliance with local laws and regulations.\n";
14
+ /**
15
+ * DeFi-specific risk disclosures covering technical and operational risks
16
+ * unique to decentralized finance. Required for all DeFi analysis prompts.
17
+ */
18
+ export declare const DEFI_SPECIFIC_RISKS = "\n**DEFI-SPECIFIC RISKS**:\n\n**Smart Contract Risk**:\nEven audited smart contracts may contain undiscovered vulnerabilities, bugs,\nor exploits. Code audits do NOT guarantee safety. Smart contract failures\ncan result in total loss of funds with no recourse.\n\n**Gas Cost Volatility**:\nEthereum network transaction costs (gas fees) can spike unexpectedly during\nnetwork congestion, making transactions prohibitively expensive or causing\nfailed transactions with lost gas fees.\n\n**Impermanent Loss**:\nLiquidity provider (LP) positions expose users to impermanent loss when\ntoken prices diverge. You may receive less value when withdrawing than if\nyou had simply held the tokens.\n\n**MEV (Maximal Extractable Value)**:\nYour transactions may be front-run, sandwiched, or reordered by MEV bots\nand validators, resulting in worse execution prices or failed transactions.\n\n**Flash Loan Attacks**:\nDeFi protocols may be vulnerable to flash loan attacks that can drain\nliquidity pools or manipulate prices, causing losses for users.\n\n**Oracle Manipulation**:\nPrice feeds and oracles can be manipulated, especially during low liquidity\nperiods or through flash loan attacks, leading to incorrect valuations and\npotential liquidations.\n\n**Governance Risk**:\nProtocol parameters, fee structures, and security controls can be changed\nthrough governance votes, potentially affecting your positions adversely.\n\n**Composability Risk**:\nDeFi protocols are interconnected. Failures in one protocol can cascade\nthrough the ecosystem, affecting other protocols you're using.\n\n**Regulatory Risk**:\nDeFi regulatory status is uncertain and evolving. Regulatory actions could\nrestrict access, freeze assets, or impose penalties without warning.\n\n**Systemic Risks**:\nDeFi-wide events (regulatory crackdowns, mass liquidations, stablecoin\ndepegs, bridge exploits) can trigger cascading failures across protocols.\n";
19
+ /**
20
+ * Regulatory and compliance notices covering legal requirements,
21
+ * tax obligations, and jurisdictional restrictions.
22
+ */
23
+ export declare const REGULATORY_COMPLIANCE_NOTICE = "\n## \uD83D\uDCCB Regulatory & Compliance Notices\n\n**Investment Advisor Disclosure**:\nThis service is NOT provided by registered investment advisors, broker-dealers,\nor financial institutions. We do not provide personalized investment\nrecommendations or portfolio management services.\n\n**Securities Law Notice**:\nSome digital assets may be classified as securities under applicable laws\n(including the U.S. Securities Act of 1933, the Howey Test, or equivalent\nregulations in other jurisdictions). Users are solely responsible for\ndetermining the regulatory classification of assets and compliance with\nsecurities laws in their jurisdiction.\n\n**Tax Obligations**:\nCryptocurrency transactions may constitute taxable events in your jurisdiction,\nincluding but not limited to:\n- Trading, swapping, or exchanging cryptocurrencies\n- Earning yield, rewards, or staking income\n- Receiving airdrops or governance tokens\n- Providing liquidity to pools\n\nYou are responsible for tracking all transactions and reporting to tax\nauthorities. Consult qualified tax professionals for guidance on your specific\ntax obligations.\n\n**KYC/AML Compliance**:\nSome jurisdictions require Know Your Customer (KYC) and Anti-Money Laundering\n(AML) compliance for cryptocurrency services. Users are responsible for\ncomplying with applicable KYC/AML requirements.\n\n**Geographic Restrictions**:\nThis service may not be available or may be restricted in certain jurisdictions,\nincluding but not limited to: countries subject to international sanctions,\njurisdictions where cryptocurrency activities are prohibited, or regions with\nspecific regulatory restrictions.\n\nUsers are responsible for determining whether their use of this service\ncomplies with local laws and regulations.\n\n**Accredited Investor Status**:\nSome investment opportunities may be restricted to accredited investors as\ndefined by applicable securities regulations. Non-accredited investors may\nface investment limits or restrictions.\n\n**Cross-Border Compliance**:\nInternational users must comply with:\n- Local cryptocurrency and financial regulations\n- Cross-border payment and money transmission laws\n- Foreign exchange and capital control regulations\n- International tax reporting requirements (FATCA, CRS, etc.)\n\n**Data Protection**:\nUse of this service is subject to applicable data protection regulations\nincluding GDPR (EU), CCPA (California), and other privacy laws. Refer to\nthe privacy policy for details on data handling.\n";
24
+ /**
25
+ * Data quality and analysis limitation disclaimers covering data sources,
26
+ * freshness, accuracy, and analytical constraints.
27
+ */
28
+ export declare const DATA_DISCLAIMER = "\n## \uD83D\uDCCA Data & Analysis Limitations\n\n**Data Sources**:\nAnalysis is based on data aggregated from multiple sources including:\n- Lagoon Protocol backend systems\n- Public blockchain data\n- Third-party data providers\n- Community-provided information\n\nWe do NOT independently verify all data and cannot guarantee accuracy,\ncompleteness, or reliability.\n\n**Data Freshness & Caching**:\nData is cached to improve performance with the following refresh intervals:\n- Portfolio data: Cached up to 5 minutes\n- Vault data: Cached up to 15 minutes\n- Price data: Cached up to 5 minutes\n- APR predictions: Cached up to 60 minutes\n\nDuring periods of high volatility or rapid changes, cached data may not\nreflect current market conditions. For time-sensitive decisions, verify\ncurrent data on-chain or from official sources.\n\n**Analysis Limitations**:\nAll quantitative analysis is subject to limitations:\n- **Historical Bias**: Based on historical data which may not predict future\n performance, especially in unprecedented market conditions\n- **Model Assumptions**: Statistical models assume certain market behaviors\n (e.g., normal return distributions) that may not hold in cryptocurrency markets\n- **Incomplete Information**: Analysis cannot account for all factors affecting\n performance including future protocol changes, regulatory actions, or black\n swan events\n- **Generalized Approach**: Does not account for your specific circumstances,\n goals, constraints, or risk tolerance\n\n**Third-Party Data**:\nCompetitor data, benchmark information, and market statistics from third-party\nsources may be:\n- Unverified or incomplete\n- Subject to different calculation methodologies\n- Outdated or no longer accurate\n- Affected by conflicts of interest\n\n**Calculation Methodology**:\nAPR, risk scores, performance metrics, and other calculations use standardized\nmethodologies that may differ from those used by protocols or other platforms.\nDifferent calculation methods can produce different results for the same\nunderlying data.\n\n**No Real-Time Guarantees**:\nWhile we strive to provide timely information, we cannot guarantee real-time\ndata updates. During network congestion, high volatility, or system maintenance,\ndata may be delayed or unavailable.\n\n**Independent Verification Required**:\nUsers must independently verify all critical information including:\n- Smart contract addresses and protocol details\n- APR rates and fee structures\n- TVL and liquidity metrics\n- Security audit reports and status\n- Governance proposals and parameter changes\n";
29
+ /**
30
+ * Beginner-specific warnings for users new to DeFi and cryptocurrency.
31
+ * Required for onboarding flows and first-time user experiences.
32
+ */
33
+ export declare const BEGINNER_WARNINGS = "\n## \uD83D\uDEA8 CRITICAL WARNINGS FOR BEGINNERS\n\n**BEFORE YOUR FIRST DEFI INVESTMENT**:\n\n1. **TOTAL LOSS RISK**: You can lose 100% of your investment. Only invest\n amounts you can afford to lose completely without affecting your financial\n security or well-being.\n\n2. **START SMALL**: Begin with minimal amounts to learn how DeFi works. Test\n all workflows (deposit, withdrawal, claiming rewards) with small amounts\n before committing significant capital.\n\n3. **NOT FDIC INSURED**: Unlike traditional bank accounts, cryptocurrency\n holdings are NOT protected by government insurance programs (FDIC, SIPC, etc.).\n There is no deposit insurance or investor protection.\n\n4. **SELF-CUSTODY RESPONSIBILITY**: You are solely responsible for securing\n your private keys and wallet access. Lost keys = lost funds permanently.\n There is no customer service to recover lost passwords or keys.\n\n5. **IRREVERSIBLE TRANSACTIONS**: Blockchain transactions are irreversible.\n Sending funds to wrong addresses or interacting with malicious contracts\n can result in permanent loss.\n\n6. **TAX OBLIGATIONS**: In most jurisdictions, cryptocurrency transactions\n are taxable events. You are responsible for tracking all transactions and\n reporting to tax authorities. Penalties for non-compliance can be severe.\n\n7. **REGULATORY STATUS**: Check if cryptocurrency and DeFi activities are\n legal in your jurisdiction. Some countries prohibit or heavily restrict\n cryptocurrency use.\n\n8. **SCAM PREVALENCE**: The cryptocurrency space has widespread scams, phishing\n attacks, and fraudulent projects. Be extremely cautious about:\n - Unsolicited investment opportunities\n - Promises of guaranteed returns\n - Projects without audits or transparent teams\n - Pressure to invest quickly\n\n9. **TECHNICAL COMPLEXITY**: DeFi requires understanding of:\n - Wallet management and private key security\n - Gas fees and transaction mechanics\n - Smart contract interactions and approvals\n - Risk assessment and due diligence\n\n10. **NO GUARANTEES**: There are no guaranteed returns in DeFi. High APRs\n often indicate high risk. Be skeptical of yields that seem too good to\n be true.\n\n**EDUCATIONAL RESOURCES**:\nBefore investing, educate yourself about:\n- How blockchain and smart contracts work\n- Different types of DeFi protocols (lending, DEXs, yield aggregators)\n- Common risks and how to mitigate them\n- How to assess project legitimacy and security\n- Proper wallet security practices\n\n**WHEN IN DOUBT**: If you don't fully understand how a DeFi protocol works,\ndo NOT invest. Take time to learn, ask questions, and start with educational\nresources before risking capital.\n";
34
+ /**
35
+ * Portfolio-specific disclaimers for optimization and rebalancing advice.
36
+ * Required for any prompts providing portfolio allocation guidance.
37
+ */
38
+ export declare const PORTFOLIO_DISCLAIMER = "\n## \uD83D\uDCBC Portfolio Analysis Disclaimers\n\n**THIS IS QUANTITATIVE ANALYSIS, NOT INVESTMENT ADVICE**:\nPortfolio optimization analysis is a quantitative tool that analyzes historical\ndata patterns. It is NOT personalized investment advice and does NOT constitute\na recommendation to buy, sell, or hold any assets.\n\n**Limitations of Portfolio Optimization**:\n- **Historical Data**: Based on past performance which may NOT predict future\n results, especially in volatile cryptocurrency markets\n- **Assumption Violations**: Assumes normal return distributions and rational\n markets, which often do not hold in cryptocurrency\n- **Missing Context**: Cannot account for your specific:\n - Tax situation and optimization strategies\n - Investment goals and time horizons\n - Risk tolerance and liquidity needs\n - Regulatory constraints in your jurisdiction\n - Personal circumstances and preferences\n\n**Rebalancing Considerations**:\n- **Tax Implications**: Rebalancing triggers taxable events. Consult tax\n professionals BEFORE executing rebalancing recommendations.\n- **Transaction Costs**: Gas fees and slippage can significantly impact\n small portfolios. Calculate costs before rebalancing.\n- **Market Impact**: Large rebalancing operations may experience price slippage\n or limited liquidity.\n- **Timing Risk**: Market conditions can change between analysis and execution.\n\n**Professional Consultation Recommended**:\nFor portfolios valued at >$10,000 or representing a significant portion of your\nnet worth, STRONGLY consider consulting licensed financial advisors before\nmaking allocation changes.\n\n**Risk Metrics Limitations**:\n- Volatility and risk metrics are backward-looking and may not capture:\n - Tail risks and black swan events\n - Correlation breakdowns during crises\n - New risks from protocol changes or exploits\n- Value at Risk (VaR) and similar metrics assume normal distributions which\n rarely hold in cryptocurrency markets\n\n**Diversification Note**:\nDiversification across cryptocurrency assets does NOT eliminate risk. All\ncryptocurrencies may decline together during market downturns or regulatory\nactions. True diversification requires exposure to uncorrelated asset classes.\n";
39
+ /**
40
+ * Helper function to combine disclaimers based on prompt type
41
+ */
42
+ export declare function getDisclaimers(options: {
43
+ universal: boolean;
44
+ defi: boolean;
45
+ regulatory: boolean;
46
+ data: boolean;
47
+ beginner: boolean;
48
+ portfolio: boolean;
49
+ }): string;
50
+ /**
51
+ * Report footer disclaimer for all user-facing analysis outputs
52
+ */
53
+ export declare const REPORT_FOOTER_DISCLAIMER = "\n---\n\u26A0\uFE0F **DISCLAIMER**: This analysis is for informational and educational purposes\nonly and is NOT financial, investment, legal, or tax advice. Cryptocurrency\nand DeFi investments carry substantial risk including potential total loss of\ncapital. Past performance does not guarantee future results. Consult qualified\nprofessionals before making investment decisions. See full disclaimers in\ndocumentation.\n---\n";
54
+ //# sourceMappingURL=disclaimers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disclaimers.d.ts","sourceRoot":"","sources":["../../../src/prompts/shared/disclaimers.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB,g5EAyDhC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,64DA8C/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,k+EAyDxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,kjFA8D3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,msFA6D7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,ktEA8ChC,CAAC;AAEF;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE;IACtC,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;CACpB,GAAG,MAAM,CAWT;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,kbASpC,CAAC"}