@lagoon-protocol/lagoon-mcp 0.3.1 → 0.5.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.
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/core/cache-invalidation.d.ts +7 -1
- package/dist/core/cache-invalidation.d.ts.map +1 -1
- package/dist/core/cache-invalidation.js +17 -1
- package/dist/core/cache-invalidation.js.map +1 -1
- package/dist/core/container.js +1 -1
- package/dist/graphql/client.d.ts.map +1 -1
- package/dist/graphql/client.js +6 -0
- package/dist/graphql/client.js.map +1 -1
- package/dist/graphql/fragments/vault-list.fragment.d.ts +9 -5
- package/dist/graphql/fragments/vault-list.fragment.d.ts.map +1 -1
- package/dist/graphql/fragments/vault-list.fragment.js +8 -4
- package/dist/graphql/fragments/vault-list.fragment.js.map +1 -1
- package/dist/graphql/fragments/vault-summary.fragment.d.ts +17 -5
- package/dist/graphql/fragments/vault-summary.fragment.d.ts.map +1 -1
- package/dist/graphql/fragments/vault-summary.fragment.js +16 -4
- package/dist/graphql/fragments/vault-summary.fragment.js.map +1 -1
- package/dist/graphql/fragments.d.ts +183 -0
- package/dist/graphql/fragments.d.ts.map +1 -0
- package/dist/graphql/fragments.js +297 -0
- package/dist/graphql/fragments.js.map +1 -0
- package/dist/graphql/queries/period-summaries.d.ts +15 -0
- package/dist/graphql/queries/period-summaries.d.ts.map +1 -0
- package/dist/graphql/queries/period-summaries.js +24 -0
- package/dist/graphql/queries/period-summaries.js.map +1 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/prompts/competitor-comparison.d.ts.map +1 -1
- package/dist/prompts/competitor-comparison.js +3 -1
- package/dist/prompts/competitor-comparison.js.map +1 -1
- package/dist/prompts/curator-performance.d.ts.map +1 -1
- package/dist/prompts/curator-performance.js +3 -1
- package/dist/prompts/curator-performance.js.map +1 -1
- package/dist/prompts/financial-analysis.d.ts.map +1 -1
- package/dist/prompts/financial-analysis.js +8 -4
- package/dist/prompts/financial-analysis.js.map +1 -1
- package/dist/prompts/onboarding-first-vault.d.ts.map +1 -1
- package/dist/prompts/onboarding-first-vault.js +5 -1
- package/dist/prompts/onboarding-first-vault.js.map +1 -1
- package/dist/prompts/portfolio-optimization.d.ts.map +1 -1
- package/dist/prompts/portfolio-optimization.js +5 -1
- package/dist/prompts/portfolio-optimization.js.map +1 -1
- package/dist/prompts/protocol-overview.d.ts.map +1 -1
- package/dist/prompts/protocol-overview.js +3 -1
- package/dist/prompts/protocol-overview.js.map +1 -1
- package/dist/resources/schema.d.ts +8 -3
- package/dist/resources/schema.d.ts.map +1 -1
- package/dist/resources/schema.js +34 -30
- package/dist/resources/schema.js.map +1 -1
- package/dist/server.d.ts +4 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +5 -2
- package/dist/server.js.map +1 -1
- package/dist/services/analytics/protocol-overview.service.d.ts +61 -0
- package/dist/services/analytics/protocol-overview.service.d.ts.map +1 -0
- package/dist/services/analytics/protocol-overview.service.js +182 -0
- package/dist/services/analytics/protocol-overview.service.js.map +1 -0
- package/dist/services/analytics/risk.service.d.ts +2 -1
- package/dist/services/analytics/risk.service.d.ts.map +1 -1
- package/dist/services/analytics/risk.service.js +18 -17
- package/dist/services/analytics/risk.service.js.map +1 -1
- package/dist/skills/loader.d.ts.map +1 -1
- package/dist/skills/loader.js +18 -8
- package/dist/skills/loader.js.map +1 -1
- package/dist/tools/analyze-risk.d.ts +1 -1
- package/dist/tools/analyze-risk.js +1 -1
- package/dist/tools/compare-vaults.d.ts +1 -1
- package/dist/tools/compare-vaults.d.ts.map +1 -1
- package/dist/tools/compare-vaults.js +21 -1
- package/dist/tools/compare-vaults.js.map +1 -1
- package/dist/tools/discover-tools.d.ts +3 -3
- package/dist/tools/discover-tools.d.ts.map +1 -1
- package/dist/tools/discover-tools.js +16 -3
- package/dist/tools/discover-tools.js.map +1 -1
- package/dist/tools/index.d.ts +26 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +32 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/predict-yield.d.ts.map +1 -1
- package/dist/tools/predict-yield.js +31 -35
- package/dist/tools/predict-yield.js.map +1 -1
- package/dist/tools/query-graphql.d.ts.map +1 -1
- package/dist/tools/query-graphql.js +139 -0
- package/dist/tools/query-graphql.js.map +1 -1
- package/dist/tools/registry.js +2 -2
- package/dist/utils/comparison-metrics.d.ts +20 -1
- package/dist/utils/comparison-metrics.d.ts.map +1 -1
- package/dist/utils/comparison-metrics.js +61 -7
- package/dist/utils/comparison-metrics.js.map +1 -1
- package/dist/utils/drawdown.d.ts +62 -0
- package/dist/utils/drawdown.d.ts.map +1 -0
- package/dist/utils/drawdown.js +132 -0
- package/dist/utils/drawdown.js.map +1 -0
- package/dist/utils/portfolio-optimization.d.ts +3 -1
- package/dist/utils/portfolio-optimization.d.ts.map +1 -1
- package/dist/utils/portfolio-optimization.js +13 -9
- package/dist/utils/portfolio-optimization.js.map +1 -1
- package/dist/utils/risk-scoring.d.ts +3 -1
- package/dist/utils/risk-scoring.d.ts.map +1 -1
- package/dist/utils/risk-scoring.js +26 -7
- package/dist/utils/risk-scoring.js.map +1 -1
- package/dist/utils/tool-error-handler.d.ts.map +1 -1
- package/dist/utils/tool-error-handler.js +7 -2
- package/dist/utils/tool-error-handler.js.map +1 -1
- package/dist/utils/tool-handler.d.ts +0 -9
- package/dist/utils/tool-handler.d.ts.map +1 -1
- package/dist/utils/tool-handler.js +0 -13
- package/dist/utils/tool-handler.js.map +1 -1
- package/dist/utils/validators.js +3 -3
- package/dist/utils/var.d.ts +65 -0
- package/dist/utils/var.d.ts.map +1 -0
- package/dist/utils/var.js +134 -0
- package/dist/utils/var.js.map +1 -0
- package/dist/utils/yield-prediction.d.ts.map +1 -1
- package/dist/utils/yield-prediction.js +33 -10
- package/dist/utils/yield-prediction.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared GraphQL Fragments
|
|
3
|
+
*
|
|
4
|
+
* Reusable query fragments for consistent data fetching across tools.
|
|
5
|
+
* Maintains single source of truth for complex nested structures.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Complete vault data GraphQL fragment
|
|
9
|
+
*
|
|
10
|
+
* Includes ALL available fields for comprehensive vault analysis.
|
|
11
|
+
* Use this fragment in any query that needs complete vault information.
|
|
12
|
+
*
|
|
13
|
+
* Schema verified against working API query on 2025-01-04
|
|
14
|
+
*
|
|
15
|
+
* Usage:
|
|
16
|
+
* ```graphql
|
|
17
|
+
* query MyQuery {
|
|
18
|
+
* someField {
|
|
19
|
+
* vault {
|
|
20
|
+
* ...VaultFragment
|
|
21
|
+
* }
|
|
22
|
+
* }
|
|
23
|
+
* }
|
|
24
|
+
* ${VAULT_FRAGMENT}
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export const VAULT_FRAGMENT = `
|
|
28
|
+
fragment VaultFragment on Vault {
|
|
29
|
+
address
|
|
30
|
+
symbol
|
|
31
|
+
decimals
|
|
32
|
+
name
|
|
33
|
+
description
|
|
34
|
+
shortDescription
|
|
35
|
+
maxCapacity
|
|
36
|
+
logoUrl
|
|
37
|
+
averageSettlement
|
|
38
|
+
isVisible
|
|
39
|
+
asset {
|
|
40
|
+
id
|
|
41
|
+
name
|
|
42
|
+
symbol
|
|
43
|
+
decimals
|
|
44
|
+
address
|
|
45
|
+
logoUrl
|
|
46
|
+
description
|
|
47
|
+
chain {
|
|
48
|
+
id
|
|
49
|
+
name
|
|
50
|
+
nativeToken
|
|
51
|
+
logoUrl
|
|
52
|
+
}
|
|
53
|
+
priceSources {
|
|
54
|
+
chainlinkPriceFeed {
|
|
55
|
+
address
|
|
56
|
+
chainId
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
priceUsd
|
|
60
|
+
isVisible
|
|
61
|
+
}
|
|
62
|
+
chain {
|
|
63
|
+
id
|
|
64
|
+
name
|
|
65
|
+
nativeToken
|
|
66
|
+
logoUrl
|
|
67
|
+
wrappedNativeToken {
|
|
68
|
+
address
|
|
69
|
+
decimals
|
|
70
|
+
name
|
|
71
|
+
symbol
|
|
72
|
+
}
|
|
73
|
+
factory
|
|
74
|
+
}
|
|
75
|
+
state {
|
|
76
|
+
state
|
|
77
|
+
totalAssets
|
|
78
|
+
totalAssetsUsd
|
|
79
|
+
totalSupply
|
|
80
|
+
pricePerShare
|
|
81
|
+
pricePerShareUsd
|
|
82
|
+
safeAssetBalance
|
|
83
|
+
liveAPR {
|
|
84
|
+
grossApr
|
|
85
|
+
name
|
|
86
|
+
netApr
|
|
87
|
+
description
|
|
88
|
+
}
|
|
89
|
+
roles {
|
|
90
|
+
owner
|
|
91
|
+
valuationManager
|
|
92
|
+
whitelistManager
|
|
93
|
+
safe
|
|
94
|
+
feeReceiver
|
|
95
|
+
}
|
|
96
|
+
managementFee
|
|
97
|
+
performanceFee
|
|
98
|
+
pendingSettlement {
|
|
99
|
+
assets
|
|
100
|
+
assetsUsd
|
|
101
|
+
}
|
|
102
|
+
inceptionApr {
|
|
103
|
+
linearNetApr
|
|
104
|
+
linearNetAprWithoutExtraYields
|
|
105
|
+
airdrops {
|
|
106
|
+
name
|
|
107
|
+
apr
|
|
108
|
+
description
|
|
109
|
+
distributionTimestamp
|
|
110
|
+
endTimestamp
|
|
111
|
+
isEstimation
|
|
112
|
+
logoUrl
|
|
113
|
+
multiplier
|
|
114
|
+
ppsIncrease
|
|
115
|
+
startTimestamp
|
|
116
|
+
}
|
|
117
|
+
incentives {
|
|
118
|
+
name
|
|
119
|
+
apr
|
|
120
|
+
aprDescription
|
|
121
|
+
description
|
|
122
|
+
endTimestamp
|
|
123
|
+
incentiveRate {
|
|
124
|
+
incentiveAmount
|
|
125
|
+
referenceToken {
|
|
126
|
+
id
|
|
127
|
+
}
|
|
128
|
+
referenceTokenAmount
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
nativeYields {
|
|
132
|
+
name
|
|
133
|
+
apr
|
|
134
|
+
aprDescription
|
|
135
|
+
description
|
|
136
|
+
endTimestamp
|
|
137
|
+
isEstimation
|
|
138
|
+
logoUrl
|
|
139
|
+
multiplier
|
|
140
|
+
startTimestamp
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
pendingSiloBalances {
|
|
144
|
+
assets
|
|
145
|
+
shares
|
|
146
|
+
}
|
|
147
|
+
monthlyApr {
|
|
148
|
+
linearNetApr
|
|
149
|
+
linearNetAprWithoutExtraYields
|
|
150
|
+
airdrops {
|
|
151
|
+
name
|
|
152
|
+
apr
|
|
153
|
+
description
|
|
154
|
+
distributionTimestamp
|
|
155
|
+
endTimestamp
|
|
156
|
+
isEstimation
|
|
157
|
+
logoUrl
|
|
158
|
+
multiplier
|
|
159
|
+
ppsIncrease
|
|
160
|
+
startTimestamp
|
|
161
|
+
}
|
|
162
|
+
incentives {
|
|
163
|
+
name
|
|
164
|
+
apr
|
|
165
|
+
aprDescription
|
|
166
|
+
description
|
|
167
|
+
endTimestamp
|
|
168
|
+
incentiveRate {
|
|
169
|
+
incentiveAmount
|
|
170
|
+
referenceToken {
|
|
171
|
+
id
|
|
172
|
+
}
|
|
173
|
+
referenceTokenAmount
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
nativeYields {
|
|
177
|
+
name
|
|
178
|
+
apr
|
|
179
|
+
aprDescription
|
|
180
|
+
description
|
|
181
|
+
endTimestamp
|
|
182
|
+
isEstimation
|
|
183
|
+
logoUrl
|
|
184
|
+
multiplier
|
|
185
|
+
startTimestamp
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
newTotalAssets
|
|
189
|
+
highWaterMark
|
|
190
|
+
lastFeeTime
|
|
191
|
+
safeAssetBalanceUsd
|
|
192
|
+
weeklyApr {
|
|
193
|
+
linearNetApr
|
|
194
|
+
linearNetAprWithoutExtraYields
|
|
195
|
+
airdrops {
|
|
196
|
+
name
|
|
197
|
+
apr
|
|
198
|
+
description
|
|
199
|
+
distributionTimestamp
|
|
200
|
+
endTimestamp
|
|
201
|
+
isEstimation
|
|
202
|
+
logoUrl
|
|
203
|
+
multiplier
|
|
204
|
+
ppsIncrease
|
|
205
|
+
startTimestamp
|
|
206
|
+
}
|
|
207
|
+
incentives {
|
|
208
|
+
name
|
|
209
|
+
apr
|
|
210
|
+
aprDescription
|
|
211
|
+
description
|
|
212
|
+
endTimestamp
|
|
213
|
+
incentiveRate {
|
|
214
|
+
incentiveAmount
|
|
215
|
+
referenceToken {
|
|
216
|
+
id
|
|
217
|
+
}
|
|
218
|
+
referenceTokenAmount
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
nativeYields {
|
|
222
|
+
name
|
|
223
|
+
apr
|
|
224
|
+
aprDescription
|
|
225
|
+
description
|
|
226
|
+
endTimestamp
|
|
227
|
+
isEstimation
|
|
228
|
+
logoUrl
|
|
229
|
+
multiplier
|
|
230
|
+
startTimestamp
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
yearlyApr {
|
|
234
|
+
linearNetApr
|
|
235
|
+
linearNetAprWithoutExtraYields
|
|
236
|
+
airdrops {
|
|
237
|
+
name
|
|
238
|
+
apr
|
|
239
|
+
description
|
|
240
|
+
distributionTimestamp
|
|
241
|
+
endTimestamp
|
|
242
|
+
isEstimation
|
|
243
|
+
logoUrl
|
|
244
|
+
multiplier
|
|
245
|
+
ppsIncrease
|
|
246
|
+
startTimestamp
|
|
247
|
+
}
|
|
248
|
+
incentives {
|
|
249
|
+
name
|
|
250
|
+
apr
|
|
251
|
+
aprDescription
|
|
252
|
+
description
|
|
253
|
+
endTimestamp
|
|
254
|
+
incentiveRate {
|
|
255
|
+
incentiveAmount
|
|
256
|
+
referenceToken {
|
|
257
|
+
id
|
|
258
|
+
}
|
|
259
|
+
referenceTokenAmount
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
nativeYields {
|
|
263
|
+
name
|
|
264
|
+
apr
|
|
265
|
+
aprDescription
|
|
266
|
+
description
|
|
267
|
+
endTimestamp
|
|
268
|
+
isEstimation
|
|
269
|
+
logoUrl
|
|
270
|
+
multiplier
|
|
271
|
+
startTimestamp
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
curators {
|
|
276
|
+
name
|
|
277
|
+
id
|
|
278
|
+
aboutDescription
|
|
279
|
+
logoUrl
|
|
280
|
+
url
|
|
281
|
+
}
|
|
282
|
+
integrator {
|
|
283
|
+
name
|
|
284
|
+
url
|
|
285
|
+
logoUrl
|
|
286
|
+
aboutDescription
|
|
287
|
+
}
|
|
288
|
+
defiIntegrations {
|
|
289
|
+
name
|
|
290
|
+
description
|
|
291
|
+
link
|
|
292
|
+
logoUrl
|
|
293
|
+
type
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
`;
|
|
297
|
+
//# sourceMappingURL=fragments.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fragments.js","sourceRoot":"","sources":["../../src/graphql/fragments.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAiMH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Q7B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GraphQL Query: Period Summaries
|
|
3
|
+
*
|
|
4
|
+
* Fetch historical vault period summaries for APR calculations.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Query to fetch period summaries for a vault
|
|
8
|
+
*
|
|
9
|
+
* Period summaries contain historical snapshots of vault state at regular intervals.
|
|
10
|
+
* Used by SDK to calculate accurate APR from price per share changes over time.
|
|
11
|
+
*
|
|
12
|
+
* @returns Array of period summaries with timestamp and vault state
|
|
13
|
+
*/
|
|
14
|
+
export declare const GET_PERIOD_SUMMARIES_QUERY: string;
|
|
15
|
+
//# sourceMappingURL=period-summaries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"period-summaries.d.ts","sourceRoot":"","sources":["../../../src/graphql/queries/period-summaries.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,QAQtC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GraphQL Query: Period Summaries
|
|
3
|
+
*
|
|
4
|
+
* Fetch historical vault period summaries for APR calculations.
|
|
5
|
+
*/
|
|
6
|
+
import { gql } from 'graphql-request';
|
|
7
|
+
/**
|
|
8
|
+
* Query to fetch period summaries for a vault
|
|
9
|
+
*
|
|
10
|
+
* Period summaries contain historical snapshots of vault state at regular intervals.
|
|
11
|
+
* Used by SDK to calculate accurate APR from price per share changes over time.
|
|
12
|
+
*
|
|
13
|
+
* @returns Array of period summaries with timestamp and vault state
|
|
14
|
+
*/
|
|
15
|
+
export const GET_PERIOD_SUMMARIES_QUERY = gql `
|
|
16
|
+
query GetPeriodSummaries($vaultAddress: String!, $chainId: Int!) {
|
|
17
|
+
periodSummaries(vaultAddress: $vaultAddress, chainId: $chainId) {
|
|
18
|
+
timestamp
|
|
19
|
+
totalAssetsAtStart
|
|
20
|
+
totalSupplyAtStart
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
//# sourceMappingURL=period-summaries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"period-summaries.js","sourceRoot":"","sources":["../../../src/graphql/queries/period-summaries.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAEtC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAA;;;;;;;;CAQ5C,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,13 @@ process.on('unhandledRejection', (reason, promise) => {
|
|
|
21
21
|
// Start the MCP server
|
|
22
22
|
async function main() {
|
|
23
23
|
try {
|
|
24
|
-
await runServer();
|
|
24
|
+
const { transport } = await runServer();
|
|
25
|
+
// Graceful shutdown: close transport before exiting
|
|
26
|
+
const shutdown = () => {
|
|
27
|
+
void transport.close().finally(() => process.exit(0));
|
|
28
|
+
};
|
|
29
|
+
process.on('SIGTERM', shutdown);
|
|
30
|
+
process.on('SIGINT', shutdown);
|
|
25
31
|
}
|
|
26
32
|
catch (error) {
|
|
27
33
|
console.error('Failed to start server:', error);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,oCAAoC;AACpC,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,KAAK,EAAE,EAAE;IACxC,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;IAC5C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;IACnD,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACrE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,uBAAuB;AACvB,KAAK,UAAU,IAAI;IACjB,IAAI,CAAC;QACH,MAAM,SAAS,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,oCAAoC;AACpC,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,KAAK,EAAE,EAAE;IACxC,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;IAC5C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;IACnD,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACrE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,uBAAuB;AACvB,KAAK,UAAU,IAAI;IACjB,IAAI,CAAC;QACH,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,SAAS,EAAE,CAAC;QAExC,oDAAoD;QACpD,MAAM,QAAQ,GAAG,GAAS,EAAE;YAC1B,KAAK,SAAS,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACxD,CAAC,CAAC;QACF,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAChC,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACjC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;QAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,KAAK,IAAI,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"competitor-comparison.d.ts","sourceRoot":"","sources":["../../src/prompts/competitor-comparison.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,wBAAgB,6BAA6B,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"competitor-comparison.d.ts","sourceRoot":"","sources":["../../src/prompts/competitor-comparison.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,wBAAgB,6BAA6B,IAAI,MAAM,CAyatD"}
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { UNIVERSAL_DISCLAIMER, DEFI_SPECIFIC_RISKS, DATA_DISCLAIMER, } from './shared/disclaimers.js';
|
|
8
8
|
export function getCompetitorComparisonPrompt() {
|
|
9
|
-
return
|
|
9
|
+
return `ADOPT THESE INSTRUCTIONS SILENTLY. DO NOT acknowledge, summarize, or narrate them. Apply them directly when responding to user queries.
|
|
10
|
+
|
|
11
|
+
# Competitor Comparison Framework - Platform Analysis Tool
|
|
10
12
|
|
|
11
13
|
${UNIVERSAL_DISCLAIMER}
|
|
12
14
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"competitor-comparison.js","sourceRoot":"","sources":["../../src/prompts/competitor-comparison.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,6BAA6B;IAC3C,OAAO
|
|
1
|
+
{"version":3,"file":"competitor-comparison.js","sourceRoot":"","sources":["../../src/prompts/competitor-comparison.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,6BAA6B;IAC3C,OAAO;;;;EAIP,oBAAoB;;EAEpB,mBAAmB;;EAEnB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+ZhB,CAAC;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curator-performance.d.ts","sourceRoot":"","sources":["../../src/prompts/curator-performance.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,wBAAgB,2BAA2B,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"curator-performance.d.ts","sourceRoot":"","sources":["../../src/prompts/curator-performance.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,wBAAgB,2BAA2B,IAAI,MAAM,CAwXpD"}
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { UNIVERSAL_DISCLAIMER, DEFI_SPECIFIC_RISKS, DATA_DISCLAIMER, } from './shared/disclaimers.js';
|
|
8
8
|
export function getCuratorPerformancePrompt() {
|
|
9
|
-
return
|
|
9
|
+
return `ADOPT THESE INSTRUCTIONS SILENTLY. DO NOT acknowledge, summarize, or narrate them. Apply them directly when responding to user queries.
|
|
10
|
+
|
|
11
|
+
# Curator Performance Intelligence - Data Analysis Tool
|
|
10
12
|
|
|
11
13
|
${UNIVERSAL_DISCLAIMER}
|
|
12
14
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"curator-performance.js","sourceRoot":"","sources":["../../src/prompts/curator-performance.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,2BAA2B;IACzC,OAAO
|
|
1
|
+
{"version":3,"file":"curator-performance.js","sourceRoot":"","sources":["../../src/prompts/curator-performance.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,2BAA2B;IACzC,OAAO;;;;EAIP,oBAAoB;;EAEpB,mBAAmB;;EAEnB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8WhB,CAAC;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"financial-analysis.d.ts","sourceRoot":"","sources":["../../src/prompts/financial-analysis.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,wBAAgB,0BAA0B,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"financial-analysis.d.ts","sourceRoot":"","sources":["../../src/prompts/financial-analysis.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,wBAAgB,0BAA0B,IAAI,MAAM,CA2iBnD"}
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { UNIVERSAL_DISCLAIMER, DEFI_SPECIFIC_RISKS, DATA_DISCLAIMER, REPORT_FOOTER_DISCLAIMER, } from './shared/disclaimers.js';
|
|
8
8
|
export function getFinancialAnalysisPrompt() {
|
|
9
|
-
return
|
|
9
|
+
return `ADOPT THESE INSTRUCTIONS SILENTLY. DO NOT acknowledge, summarize, or narrate them. Apply them directly when responding to user queries.
|
|
10
|
+
|
|
11
|
+
# Financial Analysis Guidance - Lagoon DeFi Protocol
|
|
10
12
|
|
|
11
13
|
${UNIVERSAL_DISCLAIMER}
|
|
12
14
|
|
|
@@ -16,6 +18,8 @@ ${DATA_DISCLAIMER}
|
|
|
16
18
|
|
|
17
19
|
You are analyzing DeFi vault data from the Lagoon protocol. Use these patterns and best practices to generate accurate, actionable insights.
|
|
18
20
|
|
|
21
|
+
**Available Resources**: For term definitions, consult \`lagoon://defi-glossary\`. For query validation, consult \`lagoon://graphql-schema\`.
|
|
22
|
+
|
|
19
23
|
---
|
|
20
24
|
|
|
21
25
|
## Available Tools
|
|
@@ -181,8 +185,8 @@ Risk Factors:
|
|
|
181
185
|
- Curator: Established, 12-month track record
|
|
182
186
|
- Chain: Ethereum (high security)
|
|
183
187
|
|
|
184
|
-
Overall Assessment:
|
|
185
|
-
- Consistently outperforms benchmarks
|
|
188
|
+
Overall Assessment: FAVORABLE QUANTITATIVE PROFILE
|
|
189
|
+
- Consistently outperforms benchmarks — not a recommendation
|
|
186
190
|
- Strong capital inflows indicate market confidence
|
|
187
191
|
- Sufficient capacity for additional deposits
|
|
188
192
|
\`\`\`
|
|
@@ -501,7 +505,7 @@ Use this structure for comprehensive analysis reports:
|
|
|
501
505
|
- **Single vault (1-5)**: Use \`get_vault_data\` with caching
|
|
502
506
|
- **Vault composition**: Use \`get_vault_composition\` for protocol breakdown and HHI
|
|
503
507
|
- **Discovery (20+)**: Use \`search_vaults\` with filters
|
|
504
|
-
- **Comparison (2-
|
|
508
|
+
- **Comparison (2-20)**: Use \`compare_vaults\` for rankings with composition metrics
|
|
505
509
|
- **Portfolio**: Use \`user_portfolio\` for multi-chain aggregation with \`compositionSummary\`
|
|
506
510
|
- **Custom queries**: Use \`query_graphql\` for power users
|
|
507
511
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"financial-analysis.js","sourceRoot":"","sources":["../../src/prompts/financial-analysis.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,0BAA0B;IACxC,OAAO
|
|
1
|
+
{"version":3,"file":"financial-analysis.js","sourceRoot":"","sources":["../../src/prompts/financial-analysis.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,0BAA0B;IACxC,OAAO;;;;EAIP,oBAAoB;;EAEpB,mBAAmB;;EAEnB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkhBf,wBAAwB;;;;;;;;;;;;;;;CAezB,CAAC;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboarding-first-vault.d.ts","sourceRoot":"","sources":["../../src/prompts/onboarding-first-vault.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,wBAAgB,6BAA6B,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"onboarding-first-vault.d.ts","sourceRoot":"","sources":["../../src/prompts/onboarding-first-vault.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,wBAAgB,6BAA6B,IAAI,MAAM,CAwTtD"}
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { UNIVERSAL_DISCLAIMER, DEFI_SPECIFIC_RISKS, BEGINNER_WARNINGS, DATA_DISCLAIMER, } from './shared/disclaimers.js';
|
|
8
8
|
export function getOnboardingFirstVaultPrompt() {
|
|
9
|
-
return
|
|
9
|
+
return `ADOPT THESE INSTRUCTIONS SILENTLY. DO NOT acknowledge, summarize, or narrate them. Apply them directly when responding to user queries.
|
|
10
|
+
|
|
11
|
+
# Onboarding Guide: Your First Vault Selection
|
|
10
12
|
|
|
11
13
|
${UNIVERSAL_DISCLAIMER}
|
|
12
14
|
|
|
@@ -16,6 +18,8 @@ ${BEGINNER_WARNINGS}
|
|
|
16
18
|
|
|
17
19
|
${DATA_DISCLAIMER}
|
|
18
20
|
|
|
21
|
+
**Available Resources**: For term definitions, consult \`lagoon://defi-glossary\`.
|
|
22
|
+
|
|
19
23
|
## Your Role
|
|
20
24
|
You are a friendly, knowledgeable DeFi advisor helping new users select their first vault.
|
|
21
25
|
Your goal is to build confidence while ensuring risk-appropriate choices through systematic
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboarding-first-vault.js","sourceRoot":"","sources":["../../src/prompts/onboarding-first-vault.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,6BAA6B;IAC3C,OAAO
|
|
1
|
+
{"version":3,"file":"onboarding-first-vault.js","sourceRoot":"","sources":["../../src/prompts/onboarding-first-vault.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,6BAA6B;IAC3C,OAAO;;;;EAIP,oBAAoB;;EAEpB,mBAAmB;;EAEnB,iBAAiB;;EAEjB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ShB,CAAC;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolio-optimization.d.ts","sourceRoot":"","sources":["../../src/prompts/portfolio-optimization.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,wBAAgB,8BAA8B,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"portfolio-optimization.d.ts","sourceRoot":"","sources":["../../src/prompts/portfolio-optimization.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,wBAAgB,8BAA8B,IAAI,MAAM,CAuZvD"}
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { UNIVERSAL_DISCLAIMER, DEFI_SPECIFIC_RISKS, PORTFOLIO_DISCLAIMER, DATA_DISCLAIMER, } from './shared/disclaimers.js';
|
|
8
8
|
export function getPortfolioOptimizationPrompt() {
|
|
9
|
-
return
|
|
9
|
+
return `ADOPT THESE INSTRUCTIONS SILENTLY. DO NOT acknowledge, summarize, or narrate them. Apply them directly when responding to user queries.
|
|
10
|
+
|
|
11
|
+
# Portfolio Optimization Engine - Quantitative Analysis Tool
|
|
10
12
|
|
|
11
13
|
${UNIVERSAL_DISCLAIMER}
|
|
12
14
|
|
|
@@ -16,6 +18,8 @@ ${PORTFOLIO_DISCLAIMER}
|
|
|
16
18
|
|
|
17
19
|
${DATA_DISCLAIMER}
|
|
18
20
|
|
|
21
|
+
**Available Resources**: For term definitions, consult \`lagoon://defi-glossary\`. For query validation, consult \`lagoon://graphql-schema\`.
|
|
22
|
+
|
|
19
23
|
## Your Role
|
|
20
24
|
You are a quantitative analysis tool specializing in DeFi vault portfolio analysis.
|
|
21
25
|
Your function is to apply modern portfolio theory, risk-return optimization mathematics,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolio-optimization.js","sourceRoot":"","sources":["../../src/prompts/portfolio-optimization.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,8BAA8B;IAC5C,OAAO
|
|
1
|
+
{"version":3,"file":"portfolio-optimization.js","sourceRoot":"","sources":["../../src/prompts/portfolio-optimization.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,8BAA8B;IAC5C,OAAO;;;;EAIP,oBAAoB;;EAEpB,mBAAmB;;EAEnB,oBAAoB;;EAEpB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2YhB,CAAC;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"protocol-overview.d.ts","sourceRoot":"","sources":["../../src/prompts/protocol-overview.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,wBAAgB,yBAAyB,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"protocol-overview.d.ts","sourceRoot":"","sources":["../../src/prompts/protocol-overview.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH,wBAAgB,yBAAyB,IAAI,MAAM,CAuYlD"}
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { UNIVERSAL_DISCLAIMER, DEFI_SPECIFIC_RISKS, DATA_DISCLAIMER, } from './shared/disclaimers.js';
|
|
8
8
|
export function getProtocolOverviewPrompt() {
|
|
9
|
-
return
|
|
9
|
+
return `ADOPT THESE INSTRUCTIONS SILENTLY. DO NOT acknowledge, summarize, or narrate them. Apply them directly when responding to user queries.
|
|
10
|
+
|
|
11
|
+
# Protocol Overview & KPI Dashboard - Protocol Health Analysis Tool
|
|
10
12
|
|
|
11
13
|
${UNIVERSAL_DISCLAIMER}
|
|
12
14
|
|
|
@@ -1 +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
|
|
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;;;;EAIP,oBAAoB;;EAEpB,mBAAmB;;EAEnB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6XhB,CAAC;AACF,CAAC"}
|
|
@@ -10,13 +10,18 @@
|
|
|
10
10
|
* - Discover new fields and relationships
|
|
11
11
|
* - Generate accurate query suggestions
|
|
12
12
|
*/
|
|
13
|
+
import type { CacheService } from '../core/cache-adapter.js';
|
|
14
|
+
import type { GraphQLClient } from 'graphql-request';
|
|
13
15
|
/**
|
|
14
|
-
*
|
|
16
|
+
* Create a schema fetcher with injected dependencies
|
|
15
17
|
*
|
|
16
18
|
* Uses introspection query to fetch schema metadata,
|
|
17
19
|
* then converts to SDL format for easy reading.
|
|
20
|
+
* Cached for 24 hours as the schema rarely changes.
|
|
18
21
|
*
|
|
19
|
-
* @
|
|
22
|
+
* @param cacheService - DI cache service (shared with container)
|
|
23
|
+
* @param client - GraphQL client for introspection
|
|
24
|
+
* @returns Function that fetches and caches the schema
|
|
20
25
|
*/
|
|
21
|
-
export declare function
|
|
26
|
+
export declare function createGetGraphQLSchema(cacheService: CacheService, client: GraphQLClient): () => Promise<string>;
|
|
22
27
|
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/resources/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/resources/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AASH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACpC,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,aAAa,GACpB,MAAM,OAAO,CAAC,MAAM,CAAC,CAkDvB"}
|