chain-insights 0.19.0 → 0.22.2
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/README.md +44 -121
- package/bin/cli.js +4 -4
- package/bin/install.cjs +137 -113
- package/bin/mcp-proxy.cjs +7 -5
- package/dist/{action-log-Dfe88TwV.cjs → action-log-HniMMF7f.cjs} +1 -1
- package/dist/action-log-diTHyMbV.mjs.map +1 -1
- package/dist/active-BQopLul8.mjs.map +1 -1
- package/dist/{active-Bj6dohpc.cjs → active-Bc13hJIm.cjs} +1 -1
- package/dist/{app-CJwx_2Rr.mjs → app-7NRCqx_Q.mjs} +2 -2
- package/dist/app-7NRCqx_Q.mjs.map +1 -0
- package/dist/{app-D4Cm69ob.cjs → app-l9JE6bt3.cjs} +5 -5
- package/dist/{artifact-server-sJBFGcum.cjs → artifact-server-CH-asxF5.cjs} +3 -2
- package/dist/{artifact-server-D1D-_t5l.mjs → artifact-server-DoxJr0z8.mjs} +4 -3
- package/dist/artifact-server-DoxJr0z8.mjs.map +1 -0
- package/dist/{capabilities-CxvK7LKZ.mjs → capabilities-BZI6qROg.mjs} +2 -2
- package/dist/capabilities-BZI6qROg.mjs.map +1 -0
- package/dist/{capabilities-CZYijWbg.cjs → capabilities-CPcrxodx.cjs} +2 -2
- package/dist/cli.cjs +42 -216
- package/dist/cli.mjs +36 -210
- package/dist/cli.mjs.map +1 -1
- package/dist/{client-Bjxo7AEa.cjs → client-CqAzD519.cjs} +4 -4
- package/dist/{client-i3WtsKA4.mjs → client-D4aM4bzP.mjs} +4 -4
- package/dist/client-D4aM4bzP.mjs.map +1 -0
- package/dist/{config-DE0dUT3P.cjs → config-BVFf3v8-.cjs} +2 -2
- package/dist/{config-DA6KRx60.mjs → config-CnNMdt4M.mjs} +2 -2
- package/dist/config-CnNMdt4M.mjs.map +1 -0
- package/dist/graph-normalizer-BA3Rbd6l.mjs.map +1 -1
- package/dist/graph-reports-B6yoYbPq.mjs.map +1 -1
- package/dist/{graph-reports-DSHSp5HL.cjs → graph-reports-_gqzxvvs.cjs} +2 -2
- package/dist/{html-generator-Ui29DLSD.cjs → html-generator-B9f_GIi2.cjs} +4 -3
- package/dist/{html-generator-ClysZjfY.mjs → html-generator-D2BDzLED.mjs} +3 -2
- package/dist/{html-generator-ClysZjfY.mjs.map → html-generator-D2BDzLED.mjs.map} +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.d.cts +3 -0
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/{init-BT3STWBv.mjs → init-Djhml4ih.mjs} +3 -3
- package/dist/init-Djhml4ih.mjs.map +1 -0
- package/dist/{init-BR4SRTAY.cjs → init-DvrKxK15.cjs} +3 -3
- package/dist/limits-D3Mn-gig.mjs.map +1 -1
- package/dist/mcp-endpoint-DbWtLcba.mjs.map +1 -1
- package/dist/mcp-proxy.cjs +19 -18
- package/dist/mcp-proxy.d.cts.map +1 -1
- package/dist/mcp-proxy.d.mts.map +1 -1
- package/dist/mcp-proxy.mjs +13 -12
- package/dist/mcp-proxy.mjs.map +1 -1
- package/dist/{merge-CJRZpuZ4.mjs → merge-BZw-pMPN.mjs} +2 -2
- package/dist/merge-BZw-pMPN.mjs.map +1 -0
- package/dist/{merge-B_5kxbGv.cjs → merge-C52eaAGU.cjs} +1 -1
- package/dist/{output-root-C1PFNCqb.cjs → output-root-BewoQaTx.cjs} +2 -2
- package/dist/{public-tools-CgiKgYgf.cjs → public-tools-BFs_7U_Z.cjs} +8 -7
- package/dist/{public-tools-B9_wXs2o.mjs → public-tools-BjqZGGAC.mjs} +7 -6
- package/dist/public-tools-BjqZGGAC.mjs.map +1 -0
- package/dist/{rolldown-runtime-DakpK96I.cjs → rolldown-runtime-C0BPl7ul.cjs} +1 -1
- package/dist/{schema-DF0aOXII.cjs → schema-BpeV3xDV.cjs} +5 -2
- package/dist/{schema-0BVyF-aL.mjs → schema-DOJA2nNi.mjs} +5 -2
- package/dist/schema-DOJA2nNi.mjs.map +1 -0
- package/dist/{schema-cache-DwDvPy4e.mjs → schema-cache-DJdU4MIP.mjs} +2 -2
- package/dist/{schema-cache-DwDvPy4e.mjs.map → schema-cache-DJdU4MIP.mjs.map} +1 -1
- package/dist/{schema-cache-CX0r2UQp.cjs → schema-cache-n7Gbhvsj.cjs} +2 -2
- package/dist/{server-ta1oyJ2a.cjs → server-CmvzYu7v.cjs} +4 -3
- package/dist/{server-BXj6BRI1.mjs → server-mDSRgk1X.mjs} +4 -3
- package/dist/server-mDSRgk1X.mjs.map +1 -0
- package/dist/tool-visibility-C0ALejXI.mjs.map +1 -1
- package/dist/{tool-visibility-DMIEexib.cjs → tool-visibility-DZBAP62b.cjs} +1 -1
- package/dist/{tools-CWwX4yth.mjs → tools-BKLnlBG1.mjs} +8 -6
- package/dist/tools-BKLnlBG1.mjs.map +1 -0
- package/dist/{tools-BPfUpCUR.cjs → tools-lPY6k-vJ.cjs} +8 -6
- package/dist/{topup-server-VGl8-Fz5.cjs → topup-server-DAqmAuu1.cjs} +23 -21
- package/dist/{topup-server-D2X7My7i.mjs → topup-server-rqI7bqem.mjs} +23 -21
- package/dist/topup-server-rqI7bqem.mjs.map +1 -0
- package/dist/update-CJUfGCxs.mjs.map +1 -1
- package/dist/{usage-status-H1xgCu99.cjs → usage-status-BdwwgYsu.cjs} +2 -2
- package/dist/{usage-status-D2uosC7s.mjs → usage-status-CHiOPA-2.mjs} +2 -2
- package/dist/usage-status-CHiOPA-2.mjs.map +1 -0
- package/dist/version-BA3J8hu4.mjs.map +1 -1
- package/dist/{viz-HSwLcKr6.cjs → viz-BJ_kyRjI.cjs} +7 -5
- package/dist/{viz-Cq1jSWSH.mjs → viz-Uh_EF-qB.mjs} +6 -4
- package/dist/viz-Uh_EF-qB.mjs.map +1 -0
- package/dist/{wallet-C2yVjcSY.cjs → wallet-BEvHrHi3.cjs} +3 -2
- package/dist/{wallet-BrTTnf7w.mjs → wallet-fMbhvKXT.mjs} +3 -2
- package/dist/wallet-fMbhvKXT.mjs.map +1 -0
- package/docs/architecture.md +18 -18
- package/docs/debugging.md +2 -42
- package/docs/development.md +0 -27
- package/docs/graph-query-compatibility.md +66 -57
- package/docs/graph-tools.md +6 -6
- package/docs/investigation-workspaces.md +0 -35
- package/docs/mcp-proxy.md +8 -9
- package/docs/search-limits.md +8 -8
- package/docs/stability.md +4 -5
- package/package.json +1 -5
- package/skills/chain-insights-cypher/SKILL.md +7 -7
- package/skills/chain-insights-cypher/agents/openai.yaml +3 -3
- package/skills/chain-insights-schema-bittensor/SKILL.md +26 -26
- package/skills/chain-insights-schema-evm/SKILL.md +37 -37
- package/dist/app-CJwx_2Rr.mjs.map +0 -1
- package/dist/artifact-server-D1D-_t5l.mjs.map +0 -1
- package/dist/capabilities-CxvK7LKZ.mjs.map +0 -1
- package/dist/cases-C1XewLdx.mjs +0 -155
- package/dist/cases-C1XewLdx.mjs.map +0 -1
- package/dist/cases-CVtc7Rf8.cjs +0 -160
- package/dist/client-i3WtsKA4.mjs.map +0 -1
- package/dist/config-CwIb-tav.mjs +0 -33
- package/dist/config-CwIb-tav.mjs.map +0 -1
- package/dist/config-Cy-qzx4W.cjs +0 -33
- package/dist/config-DA6KRx60.mjs.map +0 -1
- package/dist/init-9jY5rCcH.cjs +0 -24
- package/dist/init-BT3STWBv.mjs.map +0 -1
- package/dist/init-BiRfMQcA.mjs +0 -26
- package/dist/init-BiRfMQcA.mjs.map +0 -1
- package/dist/lock-Cs-a3Ng1.cjs +0 -38
- package/dist/lock-D_sWGS7W.mjs +0 -40
- package/dist/lock-D_sWGS7W.mjs.map +0 -1
- package/dist/merge-CJRZpuZ4.mjs.map +0 -1
- package/dist/paths-CffVTUCv.cjs +0 -31
- package/dist/paths-_3isihzD.mjs +0 -21
- package/dist/paths-_3isihzD.mjs.map +0 -1
- package/dist/public-tools-B9_wXs2o.mjs.map +0 -1
- package/dist/render-TmSq0f4f.cjs +0 -207
- package/dist/render-mxE0Tdsf.mjs +0 -206
- package/dist/render-mxE0Tdsf.mjs.map +0 -1
- package/dist/report-BFXFrJmj.mjs +0 -36
- package/dist/report-BFXFrJmj.mjs.map +0 -1
- package/dist/report-BwKQqOCR.cjs +0 -36
- package/dist/runner-CSss8Hvy.mjs +0 -33
- package/dist/runner-CSss8Hvy.mjs.map +0 -1
- package/dist/runner-aErdz2zn.cjs +0 -31
- package/dist/schema-0BVyF-aL.mjs.map +0 -1
- package/dist/server-BXj6BRI1.mjs.map +0 -1
- package/dist/tools-CWwX4yth.mjs.map +0 -1
- package/dist/topup-server-D2X7My7i.mjs.map +0 -1
- package/dist/usage-status-D2uosC7s.mjs.map +0 -1
- package/dist/viz-Cq1jSWSH.mjs.map +0 -1
- package/dist/wallet-BrTTnf7w.mjs.map +0 -1
- package/docs/monitoring.md +0 -277
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_config = require("./config-
|
|
3
|
-
const require_app = require("./app-
|
|
4
|
-
const require_server = require("./server-
|
|
5
|
-
const require_wallet = require("./wallet-
|
|
6
|
-
const require_tools = require("./tools-
|
|
7
|
-
const require_topup_server = require("./topup-server-
|
|
8
|
-
const require_client = require("./client-
|
|
9
|
-
const require_merge = require("./merge-
|
|
10
|
-
const require_viz = require("./viz-
|
|
2
|
+
const require_config = require("./config-BVFf3v8-.cjs");
|
|
3
|
+
const require_app = require("./app-l9JE6bt3.cjs");
|
|
4
|
+
const require_server = require("./server-CmvzYu7v.cjs");
|
|
5
|
+
const require_wallet = require("./wallet-BEvHrHi3.cjs");
|
|
6
|
+
const require_tools = require("./tools-lPY6k-vJ.cjs");
|
|
7
|
+
const require_topup_server = require("./topup-server-DAqmAuu1.cjs");
|
|
8
|
+
const require_client = require("./client-CqAzD519.cjs");
|
|
9
|
+
const require_merge = require("./merge-C52eaAGU.cjs");
|
|
10
|
+
const require_viz = require("./viz-BJ_kyRjI.cjs");
|
|
11
11
|
exports.buildTopupInfo = require_tools.buildTopupInfo;
|
|
12
12
|
exports.createApp = require_app.createApp;
|
|
13
13
|
exports.createMcpFetchClient = require_client.createMcpFetchClient;
|
package/dist/index.d.cts
CHANGED
|
@@ -15,6 +15,9 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
15
15
|
version: z.ZodDefault<z.ZodString>;
|
|
16
16
|
limits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
17
17
|
networkLimits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
|
|
18
|
+
truthIngressCertPath: z.ZodOptional<z.ZodString>;
|
|
19
|
+
truthIngressKeyPath: z.ZodOptional<z.ZodString>;
|
|
20
|
+
truthIngressCaPath: z.ZodOptional<z.ZodString>;
|
|
18
21
|
}, z.core.$strip>;
|
|
19
22
|
type InvestigatorConfig = z.infer<typeof ConfigSchema>;
|
|
20
23
|
//#endregion
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/config/schema.ts","../src/config/index.ts","../src/server/app.ts","../src/server/index.ts","../src/wallet/index.ts","../src/wallet/tools.ts","../src/wallet/mcp-proxy/topup-server.ts","../src/wallet/topup-server.ts","../src/mcp/client.ts","../src/federation/merge.ts","../src/viz/graph-model.ts","../src/viz/index.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/config/schema.ts","../src/config/index.ts","../src/server/app.ts","../src/server/index.ts","../src/wallet/index.ts","../src/wallet/tools.ts","../src/wallet/mcp-proxy/topup-server.ts","../src/wallet/topup-server.ts","../src/mcp/client.ts","../src/federation/merge.ts","../src/viz/graph-model.ts","../src/viz/index.ts"],"mappings":";;;;cA4Da,cAAY,EAAA;;;;;;;;;;;;;;;;GAcvB,EAAA,KAAA;KAEU,qBAAqB,EAAE,aAAa;;;iBC3B1B,cAAc,QAAQ;iBAMtB,WAAW,SAAS,QAAQ,sBAAsB;iBAclD,oBAAoB;;;iBCgD1B,aAAa;;;iBClHb,YAAY;;;iBCsBZ,0BAA0B,gBAAgB;iBAO1C,4BAA4B,qBAAqB;;;;;;;;iBAW3C,WAAW,qBAAqB;UAwBrC;;EAEf;;;;;;;;iBAuCoB,oBACpB,oBACA,UAAS,6BACR,QAAQ;;;;;;;iBA2BW,cAAc;;;;;iBAwCd,sBAAsB;;;cCpK/B;cACA;UAgDI;EACf,SAAS;EACT,YAAY;;UAGG;EACf;EACA;EACA,iBAAiB;EACjB;EACA,uBAAuB;EACvB;;UAoDe;EACf,SAAS;EACT;EACA;EACA,iBAAiB;EACjB;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;IACE,QAAQ;;;iBAIU,oBAAoB,QAAQ;iBAa5B,eACpB,SAAS,kBACT,8BACC;iBAsBmB,cACpB,SAAS,kBACT,8BACC;iBAsQa,oBACd,iBACA,qBACA;iBAaoB,uBACpB,UAAU,uBACT,QAAQ;iBAyBK,0BAA0B,QAAQ;iBAK5B,qBAAqB,UAAU,uBAAuB;iBAI5D,eAAe,iBAAiB,oBAAoB;;;iBCvWpD,qBAAqB,4BAA4B;;;iBCpCjD;iBAcM,iBAAiB,SAAS,gCAAgC;;;;;;;;;;;;;;;iBC4JhE,qBAAqB,2BAA2B,4BAAkB;;;;;;;;;;;;;;KCxQtE,WAAW;EAA4B;;UAElC;EACf;IAAY;IAAa;;EACzB;EACA,WAAW,MAAM;;;;;;;;EAQjB;;;;EAIA;;UAGe;EACf,MAAM,MAAM;;;;;EAKZ,UAAU,eAAe,MAAM;EAC/B;;iBA8Jc,eAAe,MAAM,YAAY,OAAM,eAAoB;;;cC5L9D,WAAS,EAAA;;;;;;;;;;;;;;;;;;;;;;;;GAUpB,EAAA,KAAA;KACU,YAAY,EAAE,aAAa;cAE1B,WAAS,EAAA;;;;;;;;GAUpB,EAAA,KAAA;KACU,YAAY,EAAE,aAAa;cAE1B,WAAS,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUpB,EAAA,KAAA;KACU,YAAY,EAAE,aAAa;;;iBChBjB,sBAAsB;EAC1C;EACA;IACE;EAAU;EAAe"}
|
package/dist/index.d.mts
CHANGED
|
@@ -15,6 +15,9 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
15
15
|
version: z.ZodDefault<z.ZodString>;
|
|
16
16
|
limits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
17
17
|
networkLimits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodNumber>>>;
|
|
18
|
+
truthIngressCertPath: z.ZodOptional<z.ZodString>;
|
|
19
|
+
truthIngressKeyPath: z.ZodOptional<z.ZodString>;
|
|
20
|
+
truthIngressCaPath: z.ZodOptional<z.ZodString>;
|
|
18
21
|
}, z.core.$strip>;
|
|
19
22
|
type InvestigatorConfig = z.infer<typeof ConfigSchema>;
|
|
20
23
|
//#endregion
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/config/schema.ts","../src/config/index.ts","../src/server/app.ts","../src/server/index.ts","../src/wallet/index.ts","../src/wallet/tools.ts","../src/wallet/mcp-proxy/topup-server.ts","../src/wallet/topup-server.ts","../src/mcp/client.ts","../src/federation/merge.ts","../src/viz/graph-model.ts","../src/viz/index.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/config/schema.ts","../src/config/index.ts","../src/server/app.ts","../src/server/index.ts","../src/wallet/index.ts","../src/wallet/tools.ts","../src/wallet/mcp-proxy/topup-server.ts","../src/wallet/topup-server.ts","../src/mcp/client.ts","../src/federation/merge.ts","../src/viz/graph-model.ts","../src/viz/index.ts"],"mappings":";;;;cA4Da,cAAY,EAAA;;;;;;;;;;;;;;;;GAcvB,EAAA,KAAA;KAEU,qBAAqB,EAAE,aAAa;;;iBC3B1B,cAAc,QAAQ;iBAMtB,WAAW,SAAS,QAAQ,sBAAsB;iBAclD,oBAAoB;;;iBCgD1B,aAAa;;;iBClHb,YAAY;;;iBCsBZ,0BAA0B,gBAAgB;iBAO1C,4BAA4B,qBAAqB;;;;;;;;iBAW3C,WAAW,qBAAqB;UAwBrC;;EAEf;;;;;;;;iBAuCoB,oBACpB,oBACA,UAAS,6BACR,QAAQ;;;;;;;iBA2BW,cAAc;;;;;iBAwCd,sBAAsB;;;cCpK/B;cACA;UAgDI;EACf,SAAS;EACT,YAAY;;UAGG;EACf;EACA;EACA,iBAAiB;EACjB;EACA,uBAAuB;EACvB;;UAoDe;EACf,SAAS;EACT;EACA;EACA,iBAAiB;EACjB;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;IACE,QAAQ;;;iBAIU,oBAAoB,QAAQ;iBAa5B,eACpB,SAAS,kBACT,8BACC;iBAsBmB,cACpB,SAAS,kBACT,8BACC;iBAsQa,oBACd,iBACA,qBACA;iBAaoB,uBACpB,UAAU,uBACT,QAAQ;iBAyBK,0BAA0B,QAAQ;iBAK5B,qBAAqB,UAAU,uBAAuB;iBAI5D,eAAe,iBAAiB,oBAAoB;;;iBCvWpD,qBAAqB,4BAA4B;;;iBCpCjD;iBAcM,iBAAiB,SAAS,gCAAgC;;;;;;;;;;;;;;;iBC4JhE,qBAAqB,2BAA2B,4BAAkB;;;;;;;;;;;;;;KCxQtE,WAAW;EAA4B;;UAElC;EACf;IAAY;IAAa;;EACzB;EACA,WAAW,MAAM;;;;;;;;EAQjB;;;;EAIA;;UAGe;EACf,MAAM,MAAM;;;;;EAKZ,UAAU,eAAe,MAAM;EAC/B;;iBA8Jc,eAAe,MAAM,YAAY,OAAM,eAAoB;;;cC5L9D,WAAS,EAAA;;;;;;;;;;;;;;;;;;;;;;;;GAUpB,EAAA,KAAA;KACU,YAAY,EAAE,aAAa;cAE1B,WAAS,EAAA;;;;;;;;GAUpB,EAAA,KAAA;KACU,YAAY,EAAE,aAAa;cAE1B,WAAS,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUpB,EAAA,KAAA;KACU,YAAY,EAAE,aAAa;;;iBChBjB,sBAAsB;EAC1C;EACA;IACE;EAAU;EAAe"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { i as saveConfig, n as loadConfig, r as resetConfigCache } from "./config-
|
|
2
|
-
import { t as createApp } from "./app-
|
|
3
|
-
import { n as startServer } from "./server-
|
|
4
|
-
import { a as setWalletPrivateKey, i as normalizeWalletPrivateKey, n as encryptKey, o as walletAddressFromPrivateKey, r as isWalletConfigured, t as decryptKey } from "./wallet-
|
|
5
|
-
import { a as formatWalletBalanceResult, c as getWalletAccount, i as formatWalletBalance, l as getWalletBalanceResult, o as getBalanceEth, r as buildTopupInfo, s as getBalanceUsdc, u as getWalletBalanceText } from "./tools-
|
|
6
|
-
import { i as generateArtifactHtml, n as startTopupServer, t as getTopupUrl } from "./topup-server-
|
|
7
|
-
import { i as createMcpFetchClient } from "./client-
|
|
8
|
-
import { t as mergeShardRows } from "./merge-
|
|
9
|
-
import { t as generateVisualization } from "./viz-
|
|
1
|
+
import { i as saveConfig, n as loadConfig, r as resetConfigCache } from "./config-CnNMdt4M.mjs";
|
|
2
|
+
import { t as createApp } from "./app-7NRCqx_Q.mjs";
|
|
3
|
+
import { n as startServer } from "./server-mDSRgk1X.mjs";
|
|
4
|
+
import { a as setWalletPrivateKey, i as normalizeWalletPrivateKey, n as encryptKey, o as walletAddressFromPrivateKey, r as isWalletConfigured, t as decryptKey } from "./wallet-fMbhvKXT.mjs";
|
|
5
|
+
import { a as formatWalletBalanceResult, c as getWalletAccount, i as formatWalletBalance, l as getWalletBalanceResult, o as getBalanceEth, r as buildTopupInfo, s as getBalanceUsdc, u as getWalletBalanceText } from "./tools-BKLnlBG1.mjs";
|
|
6
|
+
import { i as generateArtifactHtml, n as startTopupServer, t as getTopupUrl } from "./topup-server-rqI7bqem.mjs";
|
|
7
|
+
import { i as createMcpFetchClient } from "./client-D4aM4bzP.mjs";
|
|
8
|
+
import { t as mergeShardRows } from "./merge-BZw-pMPN.mjs";
|
|
9
|
+
import { t as generateVisualization } from "./viz-Uh_EF-qB.mjs";
|
|
10
10
|
export { buildTopupInfo, createApp, createMcpFetchClient, decryptKey, encryptKey, formatWalletBalance, formatWalletBalanceResult, generateArtifactHtml, generateVisualization, getBalanceEth, getBalanceUsdc, getTopupUrl, getWalletAccount, getWalletBalanceResult, getWalletBalanceText, isWalletConfigured, loadConfig, mergeShardRows, normalizeWalletPrivateKey, resetConfigCache, saveConfig, setWalletPrivateKey, startServer, startTopupServer, walletAddressFromPrivateKey };
|
|
@@ -27,7 +27,7 @@ function workspaceJson(workspaceRoot) {
|
|
|
27
27
|
schema: "chain-insights.workspace.v1",
|
|
28
28
|
name: "Chain Insights Workspace",
|
|
29
29
|
workspace_root: workspaceRoot,
|
|
30
|
-
default_network: "
|
|
30
|
+
default_network: "robinhood",
|
|
31
31
|
graph_mcp_endpoint: LOCAL_GRAPH_MCP_ENDPOINT,
|
|
32
32
|
artifacts_dir: "artifacts",
|
|
33
33
|
imports_dir: "imports",
|
|
@@ -256,7 +256,7 @@ const SCHEMA_README = `# Runtime Schema Captures
|
|
|
256
256
|
Store graph schema captures here, for example:
|
|
257
257
|
|
|
258
258
|
\`\`\`text
|
|
259
|
-
|
|
259
|
+
robinhood.graph-schema.json
|
|
260
260
|
\`\`\`
|
|
261
261
|
|
|
262
262
|
Schema captures should be generated before the first graph workflow in a fresh
|
|
@@ -316,4 +316,4 @@ async function initWorkspace(options) {
|
|
|
316
316
|
//#endregion
|
|
317
317
|
export { initWorkspace };
|
|
318
318
|
|
|
319
|
-
//# sourceMappingURL=init-
|
|
319
|
+
//# sourceMappingURL=init-Djhml4ih.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init-Djhml4ih.mjs","names":[],"sources":["../src/workspace/init.ts"],"sourcesContent":["import { access, mkdir, writeFile } from 'node:fs/promises'\nimport path from 'node:path'\nimport { LOCAL_GRAPH_MCP_ENDPOINT } from '../config/mcp-endpoint.js'\n\nexport interface InitWorkspaceOptions {\n targetDir: string\n force?: boolean\n}\n\nexport interface InitWorkspaceResult {\n workspaceRoot: string\n filesWritten: string[]\n}\n\nconst WORKSPACE_DIRS = [\n '.chain-insights',\n '.chain-insights/schema',\n '.chain-insights/runtime',\n '.chain-insights/runtime/logs',\n '.chain-insights/runtime-skill',\n 'artifacts',\n 'entities',\n 'imports',\n 'reports',\n 'reports/graphs',\n 'reports/tables',\n 'sessions',\n 'templates',\n 'published',\n]\n\nconst DEFAULT_DOMAIN_HINTS = ['aml']\n\nfunction todayIso(): string {\n return new Date().toISOString().slice(0, 10)\n}\n\nfunction workspaceJson(workspaceRoot: string): string {\n return (\n JSON.stringify(\n {\n schema: 'chain-insights.workspace.v1',\n name: 'Chain Insights Workspace',\n workspace_root: workspaceRoot,\n default_network: 'robinhood',\n graph_mcp_endpoint: LOCAL_GRAPH_MCP_ENDPOINT,\n artifacts_dir: 'artifacts',\n imports_dir: 'imports',\n reports_dir: 'reports',\n templates_dir: 'templates',\n domain_hints: DEFAULT_DOMAIN_HINTS,\n created_at: todayIso(),\n },\n null,\n 2\n ) + '\\n'\n )\n}\n\nconst README = `# Chain Insights Workspace\n\nThis is a generic Chain Insights workspace.\nUse any editor or agent tooling you want to review reports, artifacts, entity\nnotes, graphs, and published bundles alongside the Chain Insights runtime\nmetadata.\n\n## Start\n\n\\`\\`\\`bash\nchain-insights mcp tools --refresh\nchain-insights wallet ready --check-only\n\\`\\`\\`\n\n## Layout\n\n\\`\\`\\`text\n.chain-insights/ Workspace metadata\nartifacts/ Tool-generated artifacts and durable workspace records\nentities/ Entity notes and indexes\nimports/ External reports, CSVs, screenshots, raw notes\nreports/ Final or interim analyst reports\nreports/graphs/ Graph JSON for visualization\nreports/tables/ Compact tabular extracts\nsessions/ Optional session notes\ntemplates/ Reusable workspace templates\npublished/ Published bundles and handoff-ready exports\n.chain-insights/schema/ Runtime graph schema captures\n.chain-insights/runtime/ Workspace-local runtime process state and debug logs\n.chain-insights/runtime-skill/ Workspace-specific agent schema notes\n\\`\\`\\`\n`\n\nconst AGENTS = `# Agent Instructions\n\nYou are operating inside a Chain Insights workspace.\n\n- Read README.md first.\n- If this directory is not initialized, run \\`cia init .\\` before persistence-producing commands.\n- Do not rerun init in an existing workspace unless replacing scaffolding with \\`--force\\`.\n- Read .chain-insights/runtime-skill/SKILL.md before graph queries.\n- Preserve full blockchain addresses exactly.\n- Do not guess the network for graph queries.\n- Capture or refresh graph schema before the first graph workflow.\n- \\`domain_hints\\` in \\`.chain-insights/workspace.json\\` are optional advisory workflow\n preferences (for example \\`[\"aml\"]\\`) and should guide, not constrain,\n tool selection.\n- Save compact artifacts with original graph field names.\n- Put canonical graph JSON in reports/graphs/ and analyst tables in reports/tables/.\n- Markdown reports should summarize and point to graph/table outputs; do not paste large raw JSON blobs into reports.\n- Workspace output must stay in this initialized workspace.\n- Never write artifacts, reports, graph JSON, HTML, schema captures, or logs to ~/.chain-insights.\n- Keep theories lightweight until evidence supports them.\n`\n\nconst CLAUDE = AGENTS\n\nconst CASE_BRIEF = `# Workspace Brief\n\n## Summary\n\nStatus:\nNetwork:\nCurrent Assessment:\n\n## Known Addresses\n\n## Claims To Validate\n\n## Evidence\n\n## Next Steps\n`\n\nconst IMPORTS_README = `# External Investigation Inputs\n\nPut user-provided or third-party material here before turning it into durable\nworkspace outputs.\n\nExamples:\n\n- Exchange support exports\n- CSV extracts\n- Screenshots\n- Raw notes\n- Partner reports\n\nFiles in this directory are inputs, not verified evidence. When an import\nsupports a claim, summarize it into a workspace report or artifact note and\nreference the original file path.\n`\n\nconst TEMPLATES_README = `# Reusable Workspace Templates\n\nStore local report, prompt, artifact, and note templates here.\n\nTemplates are optional workspace helpers. They are not evidence and should not\nbe treated as durable workspace state until copied into an artifact, report,\nentity note, or session note.\n`\n\nconst RUNTIME_SKILL = `---\nname: chain-insights-runtime-schema\ndescription: Workspace-local Chain Insights runtime schema notes. Refresh this after connecting to a graph MCP endpoint.\n---\n\n# Runtime Graph Schema\n\nBefore the first investigation query, capture the live graph schema into:\n\n\\`\\`\\`text\n.chain-insights/schema/<network>.graph-schema.json\n\\`\\`\\`\n\nUse \\`graph_query_batch\\` for schema capture. Prefix topology reads with\n\\`USE topology\\` (address/FLOWS_TO/LINKED graph, unified recent+historical)\nand fact reads with \\`USE facts\\`, for example:\n\n\\`\\`\\`bash\ncia mcp call graph_query_batch network=<network> 'queries=[{\"id\":\"node_labels\",\"query\":\"USE topology MATCH (n:Address) RETURN \\\"Address\\\" AS node_label, count(n) AS sample_count LIMIT 1\"},{\"id\":\"flow_sample\",\"query\":\"USE topology MATCH (:Address)-[f:FLOWS_TO]->(:Address) RETURN f.amount_usd_sum AS amount_usd_sum, f.tx_count AS tx_count LIMIT 20\"},{\"id\":\"linked_sample\",\"query\":\"USE topology MATCH (a:Address)-[l:LINKED]-(b:Address) RETURN a.address AS address, b.address AS linked_address, l.basis AS basis, l.confidence AS confidence LIMIT 20\"}]'\n\\`\\`\\`\n\nThen update this file with observed labels, relationship types, and allowed\nproperty names for the active network.\n\nThe address-grain graph schema:\n\n- Call \\`meta_network_capabilities\\` first. Pass \\`network=\\` exactly as\n GraphRAG advertised it. CIA does not pick a default network.\n Address format follows that network. Every topology node is\n \\`(:Address {address, network})\\`, keyed by the raw chain-native\n \\`address\\`. There is no separate identity key and no member-address\n satellite: the address IS the graph node.\n- \\`(:Address)-[:LINKED]-(:Address)\\` is an **undirected** ownership-overlay\n edge (\\`basis\\` \\`derived\\`/\\`associated\\`, plus \\`confidence\\`,\n \\`source_event\\`, \\`declared_owner\\`) asserting the two addresses are\n controlled by the same actor. \\`LINKED\\` is the ownership edge within the\n advertised network — a same-network query traces\n (\\`LINKED\\` or \\`FLOWS_TO\\`) with no network switch. Walk\n one visible \\`LINKED\\` hop to surface actor-level exposure; never treat\n linked addresses\n as a single collapsed node. \\`LINKED\\` is served on the topology graph\n only.\n- Other Address properties: \\`labels\\` (array) and \\`is_exchange\\`\n (sparse true/null traversal hint). Labels and per-label risk live on the\n address node: \\`label_risk\\` is a list of \\`{label, risk_level,\n updated_timestamp}\\` maps, one per current label row.\n- Address nodes carry a risk verdict for quick triage\n (\\`risk_score\\` float, \\`risk_level\\` string) plus base activity rollups:\n \\`degree_in\\`/\\`degree_out\\`/\\`degree_total\\` (distinct counterparty\n addresses), \\`tx_in_count\\`/\\`tx_out_count\\`/\\`tx_total_count\\`,\n \\`total_in_usd\\`/\\`total_out_usd\\`/\\`total_volume_usd\\`, \\`net_flow_usd\\`\n (in minus out; positive = net receiver) — all computed from external\n flows only — and \\`first_activity_timestamp\\`/\n \\`last_activity_timestamp\\`/\\`activity_span_days\\`, which include all\n flows (self-loops included). FLOWS_TO edges carry \\`tx_count\\`,\n \\`amount_usd_sum\\`, \\`avg_tx_size_usd\\` (understates when\n \\`price_coverage_ratio\\` < 1), \\`first_seen_timestamp\\`/\n \\`last_seen_timestamp\\`, \\`first_tx_id\\`/\\`last_tx_id\\`, and\n \\`price_coverage_ratio\\`.\n Lifetime aggregates are the only serving window.\n- Money flow is \\`(:Address)-[:FLOWS_TO]->(:Address)\\`. Public AML tools\n accept the raw blockchain address directly — there is no resolution step.\n- The risk verdict lives on topology nodes (\\`risk_score\\`/\\`risk_level\\`),\n and labels and per-label risk live on the address node (\\`labels\\` array\n + \\`label_risk\\` entries). \\`USE facts\\` serves bounded individual\n transfer rows and, until P3, address features. Facts address keys match\n topology \\`address\\` values exactly. Do not read \\`ml_*\\`,\n \\`confluence_score\\`, or \\`pattern_flags\\` off topology nodes — those\n properties do not exist.\n- \\`(from:Address)-[t:TRANSFER]->(to:Address)\\` on \\`USE facts\\` returns\n individual transfer rows (not aggregates) from \\`facts_transfers_view\\`,\n with edge properties \\`amount\\`, \\`amount_usd\\`, \\`asset_symbol\\`,\n \\`asset_contract\\`, \\`tx_id\\`, \\`block_height\\`, \\`block_timestamp\\`,\n \\`event_index\\`, \\`edge_index\\`, \\`price_usd\\`, and \\`price_missing\\`.\n Every TRANSFER query (row-select or a \\`count()\\`/\\`sum()\\` aggregate)\n requires an indexed predicate — address equality on either endpoint or\n \\`WHERE t.tx_id = \"...\"\\` — a bare \\`LIMIT\\` alone is rejected. Lifetime\n address metrics (degrees, totals, activity window) are node properties on\n \\`USE topology\\`.\n\nRules:\n\n- Prefer \\`graph_query\\` and \\`graph_query_batch\\` for graph-language reads.\n- The graph choice stays inside the query via \\`USE ...\\`; there is no\n tool argument to select a graph.\n- Use \\`USE topology\\` for topology (the address/FLOWS_TO/LINKED graph,\n covering unified recent and full historical activity in one graph, plus\n the node \\`risk_score\\`/\\`risk_level\\` verdict, and labels + per-label\n risk) and \\`USE facts\\` for features, assets, and enrichment.\n The \\`LINKED\\` ownership overlay is served on the topology graph only.\n- Preserve source schema field names in generated data files.\n- Do not rename, reinterpret, or add unit labels to graph fields unless the\n schema or query result explicitly supports that interpretation.\n- Keep persisted outputs compact: select only the fields needed to support the claim.\n Avoid storing whole node or relationship property blobs unless\n the purpose of the query is schema discovery or debugging.\n- When using BFS, fixed-depth traversal fallbacks, or any manual \\`FLOWS_TO\\`\n traversal, treat exchange hot wallets as terminal endpoints only. Do not\n expand from, through, or classify exchange nodes as deposit, suspect, or\n intermediate candidates. In Cypher, require every non-terminal traversal node\n to satisfy \\`is_exchange IS NULL\\`; only the final exchange endpoint should\n satisfy \\`is_exchange IS NOT NULL\\`.\n- Keep analysis products separate from summary notes: graph JSON belongs under\n \\`reports/graphs/\\`, tabular extracts under \\`reports/tables/\\`, and analyst\n narrative under \\`reports/\\`.\n- Markdown reports should be short provenance records with key facts and\n pointers. Large JSON belongs in \\`reports/tables/\\`, not inline in reports.\n\nAML tool guidance:\n\n1. Use \\`aml_address_risk\\` for single-address enrichment and optional\n comparison with another address.\n2. Use \\`graph_query_batch\\` only when the high-level tools do not answer the\n exact question, and \\`graph_query\\` for single read-only queries.\n\n\\`aml_address_risk\\` takes a raw blockchain address as input directly — there\nis no identity-resolution step — and returns \\`chain-insights.result.v1\\`. Preserve\nfull blockchain addresses in the summary and all workspace artifacts.\n`\n\nconst SCHEMA_README = `# Runtime Schema Captures\n\nStore graph schema captures here, for example:\n\n\\`\\`\\`text\nrobinhood.graph-schema.json\n\\`\\`\\`\n\nSchema captures should be generated before the first graph workflow in a fresh\nworkspace, then referenced by artifacts, reports, and runtime skill notes.\n`\n\nfunction workspaceFiles(workspaceRoot: string): Array<[string, string]> {\n return [\n ['.chain-insights/workspace.json', workspaceJson(workspaceRoot)],\n ['README.md', README],\n ['AGENTS.md', AGENTS],\n ['CLAUDE.md', CLAUDE],\n ['imports/README.md', IMPORTS_README],\n ['templates/README.md', TEMPLATES_README],\n ['templates/workspace-brief.md', CASE_BRIEF],\n ['.chain-insights/runtime-skill/SKILL.md', RUNTIME_SKILL],\n ['.chain-insights/schema/README.md', SCHEMA_README],\n ['.chain-insights/runtime/.keep', ''],\n ['.chain-insights/runtime/logs/.keep', ''],\n ]\n}\n\nasync function assertNoFileCollisions(workspaceRoot: string): Promise<void> {\n for (const [relativePath] of workspaceFiles(workspaceRoot)) {\n const filePath = path.join(workspaceRoot, relativePath)\n try {\n await access(filePath)\n throw new Error(\n `Refusing to overwrite ${filePath}. Re-run with --force to replace workspace files.`\n )\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code === 'ENOENT') {\n continue\n }\n throw err\n }\n }\n}\n\nexport async function initWorkspace(options: InitWorkspaceOptions): Promise<InitWorkspaceResult> {\n const workspaceRoot = path.resolve(options.targetDir)\n if (!options.force) {\n await assertNoFileCollisions(workspaceRoot)\n }\n\n for (const dir of WORKSPACE_DIRS) {\n await mkdir(path.join(workspaceRoot, dir), { recursive: true })\n }\n\n const filesWritten: string[] = []\n const flag = options.force ? 'w' : 'wx'\n for (const [relativePath, content] of workspaceFiles(workspaceRoot)) {\n const filePath = path.join(workspaceRoot, relativePath)\n try {\n await writeFile(filePath, content, { mode: 0o600, flag })\n filesWritten.push(relativePath)\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code === 'EEXIST') {\n throw new Error(\n `Refusing to overwrite ${filePath}. Re-run with --force to replace workspace files.`\n )\n }\n throw err\n }\n }\n\n return { workspaceRoot, filesWritten }\n}\n"],"mappings":";;;;AAcA,MAAM,iBAAiB;CACrB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,uBAAuB,CAAC,KAAK;AAEnC,SAAS,WAAmB;CAC1B,wBAAO,IAAI,KAAK,EAAA,CAAE,YAAY,CAAC,CAAC,MAAM,GAAG,EAAE;AAC7C;AAEA,SAAS,cAAc,eAA+B;CACpD,OACE,KAAK,UACH;EACE,QAAQ;EACR,MAAM;EACN,gBAAgB;EAChB,iBAAiB;EACjB,oBAAoB;EACpB,eAAe;EACf,aAAa;EACb,aAAa;EACb,eAAe;EACf,cAAc;EACd,YAAY,SAAS;CACvB,GACA,MACA,CACF,IAAI;AAER;AAEA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCf,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;AAsBf,MAAM,SAAS;AAEf,MAAM,aAAa;;;;;;;;;;;;;;;;AAiBnB,MAAM,iBAAiB;;;;;;;;;;;;;;;;;AAkBvB,MAAM,mBAAmB;;;;;;;;AASzB,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwHtB,MAAM,gBAAgB;;;;;;;;;;;AAYtB,SAAS,eAAe,eAAgD;CACtE,OAAO;EACL,CAAC,kCAAkC,cAAc,aAAa,CAAC;EAC/D,CAAC,aAAa,MAAM;EACpB,CAAC,aAAa,MAAM;EACpB,CAAC,aAAa,MAAM;EACpB,CAAC,qBAAqB,cAAc;EACpC,CAAC,uBAAuB,gBAAgB;EACxC,CAAC,gCAAgC,UAAU;EAC3C,CAAC,0CAA0C,aAAa;EACxD,CAAC,oCAAoC,aAAa;EAClD,CAAC,iCAAiC,EAAE;EACpC,CAAC,sCAAsC,EAAE;CAC3C;AACF;AAEA,eAAe,uBAAuB,eAAsC;CAC1E,KAAK,MAAM,CAAC,iBAAiB,eAAe,aAAa,GAAG;EAC1D,MAAM,WAAW,KAAK,KAAK,eAAe,YAAY;EACtD,IAAI;GACF,MAAM,OAAO,QAAQ;GACrB,MAAM,IAAI,MACR,yBAAyB,SAAS,kDACpC;EACF,SAAS,KAAK;GACZ,IAAK,IAA8B,SAAS,UAC1C;GAEF,MAAM;EACR;CACF;AACF;AAEA,eAAsB,cAAc,SAA6D;CAC/F,MAAM,gBAAgB,KAAK,QAAQ,QAAQ,SAAS;CACpD,IAAI,CAAC,QAAQ,OACX,MAAM,uBAAuB,aAAa;CAG5C,KAAK,MAAM,OAAO,gBAChB,MAAM,MAAM,KAAK,KAAK,eAAe,GAAG,GAAG,EAAE,WAAW,KAAK,CAAC;CAGhE,MAAM,eAAyB,CAAC;CAChC,MAAM,OAAO,QAAQ,QAAQ,MAAM;CACnC,KAAK,MAAM,CAAC,cAAc,YAAY,eAAe,aAAa,GAAG;EACnE,MAAM,WAAW,KAAK,KAAK,eAAe,YAAY;EACtD,IAAI;GACF,MAAM,UAAU,UAAU,SAAS;IAAE,MAAM;IAAO;GAAK,CAAC;GACxD,aAAa,KAAK,YAAY;EAChC,SAAS,KAAK;GACZ,IAAK,IAA8B,SAAS,UAC1C,MAAM,IAAI,MACR,yBAAyB,SAAS,kDACpC;GAEF,MAAM;EACR;CACF;CAEA,OAAO;EAAE;EAAe;CAAa;AACvC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
2
2
|
const require_mcp_endpoint = require("./mcp-endpoint-BIWrUOFG.cjs");
|
|
3
3
|
let node_path = require("node:path");
|
|
4
4
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
@@ -29,7 +29,7 @@ function workspaceJson(workspaceRoot) {
|
|
|
29
29
|
schema: "chain-insights.workspace.v1",
|
|
30
30
|
name: "Chain Insights Workspace",
|
|
31
31
|
workspace_root: workspaceRoot,
|
|
32
|
-
default_network: "
|
|
32
|
+
default_network: "robinhood",
|
|
33
33
|
graph_mcp_endpoint: require_mcp_endpoint.LOCAL_GRAPH_MCP_ENDPOINT,
|
|
34
34
|
artifacts_dir: "artifacts",
|
|
35
35
|
imports_dir: "imports",
|
|
@@ -258,7 +258,7 @@ const SCHEMA_README = `# Runtime Schema Captures
|
|
|
258
258
|
Store graph schema captures here, for example:
|
|
259
259
|
|
|
260
260
|
\`\`\`text
|
|
261
|
-
|
|
261
|
+
robinhood.graph-schema.json
|
|
262
262
|
\`\`\`
|
|
263
263
|
|
|
264
264
|
Schema captures should be generated before the first graph workflow in a fresh
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limits-D3Mn-gig.mjs","names":[],"sources":["../src/config/limits.ts"],"sourcesContent":["// Tunable search bounds for investigation and detection tools.\n//\n// Every hardcoded search cap in this repo used to be a bare `const` compiled\n// into one call site. That is wrong for two reasons at once: a value that is\n// right for a small chain is far too high for a busy one, and a value that is\n// right for a routine sweep is far too low for an analyst working a single\n// live case. A real high-fan-in deposit made the cost of that concrete — at\n// the old 500-row reverse-deposit cap the victim origin was NOT reachable at\n// four hops, and at 5000 rows the same four-hop trace closed the full\n// deposit -> victim chain in six seconds. The cap, not the depth, was the\n// binding constraint.\n//\n// This module generalizes the per-network default-table pattern (a\n// `resolve*Config(network, params)` function) into ONE registry the whole\n// codebase shares, so a knob is declared once with its default, its floor, and\n// its hard ceiling.\n//\n// ── Precedence (highest wins) ──────────────────────────────────────────────\n// 1. per-call — an argument on the MCP tool / CLI flag\n// 2. config file — `networkLimits[network][key]` in ~/.chain-insights/config.json\n// 3. config file — `limits[key]` (all networks)\n// 4. per-network — NETWORK_LIMIT_DEFAULTS[network].defaults[key]\n// 5. built-in — LIMIT_SPECS[key].builtin\n//\n// ── Ceilings ───────────────────────────────────────────────────────────────\n// An unbounded limit is a denial-of-service against the graph and against the\n// caller's metered spend, so every knob carries a hard ceiling. The ceiling is\n// NOT itself reachable from the per-call layer: a per-network entry may LOWER\n// a ceiling for a chain that cannot afford the work, but nothing outside this\n// file can RAISE the absolute maximum. Raising it is a code change, on\n// purpose.\n//\n// ── Rejection, not silent clamping ─────────────────────────────────────────\n// An over-ceiling request throws LimitRangeError naming the knob and its\n// ceiling. Silently clamping would hand an analyst a result that reads as\n// exhaustive when it is not — the same class of failure as the arbitrary row\n// truncation this registry exists to fix.\n\nexport interface LimitSpec {\n /** Value used when no layer overrides it. Chosen to preserve historical behaviour exactly. */\n builtin: number\n /** Lowest accepted value. */\n min: number\n /** Absolute maximum. Only a code change to this file may raise it. */\n ceiling: number\n /** What the knob bounds, for docs and error messages. */\n description: string\n}\n\n// Row/frontier ceilings are generous because their cost is close to linear\n// in the value; the exponential hop caps (corridor/attribution and the\n// aml_trace_* tools) were removed with the retired detection realm.\nexport const LIMIT_SPECS = {\n // ── viz/graph-model.ts ──\n viz_max_nodes: {\n builtin: 100,\n min: 1,\n ceiling: 2_000,\n description: 'Nodes rendered in a generated graph view before truncation.',\n },\n} as const satisfies Record<string, LimitSpec>\n\nexport type LimitKey = keyof typeof LIMIT_SPECS\nexport const LIMIT_KEYS = Object.keys(LIMIT_SPECS) as LimitKey[]\n\nexport function isLimitKey(key: string): key is LimitKey {\n return Object.prototype.hasOwnProperty.call(LIMIT_SPECS, key)\n}\n\nexport interface NetworkLimitOverride {\n /** Per-network default values. Must sit inside the built-in [min, ceiling]. */\n defaults?: Partial<Record<LimitKey, number>>\n /**\n * Per-network ceilings. May only LOWER the built-in ceiling; a higher value\n * is ignored so no chain can widen the absolute maximum from data.\n */\n ceilings?: Partial<Record<LimitKey, number>>\n}\n\n// Per-network defaults. Empty today: every chain currently starts on the\n// built-in values, which is exactly what keeps this change behaviour-neutral.\n// A chain that needs different economics adds an entry here (or an operator\n// sets `networkLimits` in the config file) without touching a call site.\nexport const NETWORK_LIMIT_DEFAULTS: Record<string, NetworkLimitOverride> = {}\n\n/** Config-file layer, as parsed from ~/.chain-insights/config.json. */\nexport interface LimitConfig {\n limits?: Partial<Record<LimitKey, number>>\n networkLimits?: Record<string, Partial<Record<LimitKey, number>>>\n}\n\nexport class LimitRangeError extends Error {\n readonly code = 'LIMIT_OUT_OF_RANGE'\n constructor(\n readonly key: LimitKey,\n readonly requested: number,\n readonly min: number,\n readonly ceiling: number,\n readonly source: string,\n ) {\n super(\n `${key} must be an integer between ${min} and ${ceiling} (got ${requested} from ${source}). ` +\n `${LIMIT_SPECS[key].description} The ceiling is a hard bound and cannot be raised per call.`,\n )\n this.name = 'LimitRangeError'\n }\n}\n\n/**\n * The maximum this network will accept. A per-network entry may lower it;\n * nothing may raise it above the built-in ceiling.\n */\nexport function limitCeiling(key: LimitKey, network?: string): number {\n const builtinCeiling = LIMIT_SPECS[key].ceiling\n const networkCeiling = network ? NETWORK_LIMIT_DEFAULTS[network]?.ceilings?.[key] : undefined\n if (networkCeiling === undefined || !Number.isFinite(networkCeiling)) return builtinCeiling\n return Math.min(builtinCeiling, Math.trunc(networkCeiling))\n}\n\nexport interface ResolveLimitContext {\n network?: string\n config?: LimitConfig\n}\n\n/**\n * The value used when the caller passes nothing: config file, then per-network\n * default, then built-in. Always inside [min, ceiling] for the network.\n */\nexport function limitDefault(key: LimitKey, ctx: ResolveLimitContext = {}): number {\n const spec = LIMIT_SPECS[key]\n const ceiling = limitCeiling(key, ctx.network)\n const candidates = [\n ctx.network ? ctx.config?.networkLimits?.[ctx.network]?.[key] : undefined,\n ctx.config?.limits?.[key],\n ctx.network ? NETWORK_LIMIT_DEFAULTS[ctx.network]?.defaults?.[key] : undefined,\n ]\n for (const candidate of candidates) {\n if (candidate === undefined || !Number.isFinite(candidate)) continue\n const value = Math.trunc(candidate)\n if (value < spec.min || value > ceiling) {\n throw new LimitRangeError(key, value, spec.min, ceiling, 'configuration')\n }\n return value\n }\n // The built-in is clamped rather than rejected: a per-network entry that\n // lowers a ceiling below the built-in default is a deliberate tightening of\n // that chain, not an operator error to fail on.\n return Math.min(spec.builtin, ceiling)\n}\n\n/** What a knob resolved to, and what the caller asked for. Emitted so a bounded search is visible without reading warnings. */\nexport interface LimitResolution {\n key: LimitKey\n /** What the caller passed, if anything. */\n requested?: number\n /** What the run actually used. */\n used: number\n /** The value that would have been used with no per-call override. */\n fallback: number\n /** The hard maximum for this network. */\n ceiling: number\n}\n\n/**\n * Resolve one knob. `requested` is the per-call layer; undefined/null/NaN\n * means \"no override\" and falls through to limitDefault.\n *\n * Throws LimitRangeError for a non-integer, below-min, or above-ceiling\n * request. Rejecting is deliberate: see the header note on silent clamping.\n */\nexport function resolveLimitDetail(\n key: LimitKey,\n requested: number | undefined | null,\n ctx: ResolveLimitContext = {},\n): LimitResolution {\n const spec = LIMIT_SPECS[key]\n const ceiling = limitCeiling(key, ctx.network)\n const fallback = limitDefault(key, ctx)\n if (requested === undefined || requested === null) {\n return { key, used: fallback, fallback, ceiling }\n }\n if (!Number.isFinite(requested) || !Number.isInteger(requested)) {\n throw new LimitRangeError(key, Number(requested), spec.min, ceiling, 'the call')\n }\n if (requested < spec.min || requested > ceiling) {\n throw new LimitRangeError(key, requested, spec.min, ceiling, 'the call')\n }\n return { key, requested, used: requested, fallback, ceiling }\n}\n\n/** resolveLimitDetail, when only the number is wanted. */\nexport function resolveLimit(\n key: LimitKey,\n requested: number | undefined | null,\n ctx: ResolveLimitContext = {},\n): number {\n return resolveLimitDetail(key, requested, ctx).used\n}\n\n/**\n * Renders resolved knobs for a tool response, so the effective depth/breadth\n * of a search is visible in the structured output without reading warnings.\n * `requested` is present only when the caller actually passed a value, which\n * makes \"I asked for 4 and got 4\" and \"I asked for nothing and got 3\"\n * distinguishable at a glance.\n */\nexport function limitsReport(resolutions: LimitResolution[]): Record<string, {\n requested?: number\n used: number\n default: number\n ceiling: number\n}> {\n return Object.fromEntries(resolutions.map((resolution) => [resolution.key, {\n ...(resolution.requested !== undefined ? { requested: resolution.requested } : {}),\n used: resolution.used,\n default: resolution.fallback,\n ceiling: resolution.ceiling,\n }]))\n}\n\n/**\n * Integer-safe rendering for a value that is interpolated into a query.\n *\n * Cypher cannot parameterize a LIMIT, so the number is inlined — but ONLY\n * after resolveLimit has proven it is an integer inside a bounded range, and\n * this function re-proves it at the interpolation site. A recent CodeQL high\n * came from hand-interpolating an unvalidated value into query text; this is\n * the one sanctioned path.\n */\nexport function limitLiteral(value: number): string {\n if (!Number.isInteger(value) || value < 0) {\n throw new Error(`limit literal must be a non-negative integer (got ${String(value)})`)\n }\n return String(value)\n}\n\n"],"mappings":";AAoDA,MAAa,cAAc,EAEzB,eAAe;CACb,SAAS;CACT,KAAK;CACL,SAAS;CACT,aAAa;AACf,EACF;AAG0B,OAAO,KAAK,WAAW;AAEjD,SAAgB,WAAW,KAA8B;CACvD,OAAO,OAAO,UAAU,eAAe,KAAK,aAAa,GAAG;AAC9D;AAgBA,MAAa,yBAA+D,CAAC;AAQ7E,IAAa,kBAAb,cAAqC,MAAM;CAG9B;CACA;CACA;CACA;CACA;CANX,OAAgB;CAChB,YACE,KACA,WACA,KACA,SACA,QACA;EACA,MACE,GAAG,IAAI,8BAA8B,IAAI,OAAO,QAAQ,QAAQ,UAAU,QAAQ,OAAO,KACtF,YAAY,IAAI,CAAC,YAAY,4DAClC;EATS,KAAA,MAAA;EACA,KAAA,YAAA;EACA,KAAA,MAAA;EACA,KAAA,UAAA;EACA,KAAA,SAAA;EAMT,KAAK,OAAO;CACd;AACF;;;;;AAMA,SAAgB,aAAa,KAAe,SAA0B;CACpE,MAAM,iBAAiB,YAAY,IAAI,CAAC;CACxC,MAAM,iBAAiB,UAAU,uBAAuB,QAAQ,EAAE,WAAW,OAAO,KAAA;CACpF,IAAI,mBAAmB,KAAA,KAAa,CAAC,OAAO,SAAS,cAAc,GAAG,OAAO;CAC7E,OAAO,KAAK,IAAI,gBAAgB,KAAK,MAAM,cAAc,CAAC;AAC5D;;;;;AAWA,SAAgB,aAAa,KAAe,MAA2B,CAAC,GAAW;CACjF,MAAM,OAAO,YAAY;CACzB,MAAM,UAAU,aAAa,KAAK,IAAI,OAAO;CAC7C,MAAM,aAAa;EACjB,IAAI,UAAU,IAAI,QAAQ,gBAAgB,IAAI,QAAQ,GAAG,OAAO,KAAA;EAChE,IAAI,QAAQ,SAAS;EACrB,IAAI,UAAU,uBAAuB,IAAI,QAAQ,EAAE,WAAW,OAAO,KAAA;CACvE;CACA,KAAK,MAAM,aAAa,YAAY;EAClC,IAAI,cAAc,KAAA,KAAa,CAAC,OAAO,SAAS,SAAS,GAAG;EAC5D,MAAM,QAAQ,KAAK,MAAM,SAAS;EAClC,IAAI,QAAQ,KAAK,OAAO,QAAQ,SAC9B,MAAM,IAAI,gBAAgB,KAAK,OAAO,KAAK,KAAK,SAAS,eAAe;EAE1E,OAAO;CACT;CAIA,OAAO,KAAK,IAAI,KAAK,SAAS,OAAO;AACvC;;;;;;;;AAsBA,SAAgB,mBACd,KACA,WACA,MAA2B,CAAC,GACX;CACjB,MAAM,OAAO,YAAY;CACzB,MAAM,UAAU,aAAa,KAAK,IAAI,OAAO;CAC7C,MAAM,WAAW,aAAa,KAAK,GAAG;CACtC,IAAI,cAAc,KAAA,KAAa,cAAc,MAC3C,OAAO;EAAE;EAAK,MAAM;EAAU;EAAU;CAAQ;CAElD,IAAI,CAAC,OAAO,SAAS,SAAS,KAAK,CAAC,OAAO,UAAU,SAAS,GAC5D,MAAM,IAAI,gBAAgB,KAAK,OAAO,SAAS,GAAG,KAAK,KAAK,SAAS,UAAU;CAEjF,IAAI,YAAY,KAAK,OAAO,YAAY,SACtC,MAAM,IAAI,gBAAgB,KAAK,WAAW,KAAK,KAAK,SAAS,UAAU;CAEzE,OAAO;EAAE;EAAK;EAAW,MAAM;EAAW;EAAU;CAAQ;AAC9D;;AAGA,SAAgB,aACd,KACA,WACA,MAA2B,CAAC,GACpB;CACR,OAAO,mBAAmB,KAAK,WAAW,GAAG,CAAC,CAAC;AACjD"}
|
|
1
|
+
{"version":3,"file":"limits-D3Mn-gig.mjs","names":[],"sources":["../src/config/limits.ts"],"sourcesContent":["// Tunable search bounds for investigation and detection tools.\n//\n// Every hardcoded search cap in this repo used to be a bare `const` compiled\n// into one call site. That is wrong for two reasons at once: a value that is\n// right for a small chain is far too high for a busy one, and a value that is\n// right for a routine sweep is far too low for an analyst working a single\n// live case. A real high-fan-in deposit made the cost of that concrete — at\n// the old 500-row reverse-deposit cap the victim origin was NOT reachable at\n// four hops, and at 5000 rows the same four-hop trace closed the full\n// deposit -> victim chain in six seconds. The cap, not the depth, was the\n// binding constraint.\n//\n// This module generalizes the per-network default-table pattern (a\n// `resolve*Config(network, params)` function) into ONE registry the whole\n// codebase shares, so a knob is declared once with its default, its floor, and\n// its hard ceiling.\n//\n// ── Precedence (highest wins) ──────────────────────────────────────────────\n// 1. per-call — an argument on the MCP tool / CLI flag\n// 2. config file — `networkLimits[network][key]` in ~/.chain-insights/config.json\n// 3. config file — `limits[key]` (all networks)\n// 4. per-network — NETWORK_LIMIT_DEFAULTS[network].defaults[key]\n// 5. built-in — LIMIT_SPECS[key].builtin\n//\n// ── Ceilings ───────────────────────────────────────────────────────────────\n// An unbounded limit is a denial-of-service against the graph and against the\n// caller's metered spend, so every knob carries a hard ceiling. The ceiling is\n// NOT itself reachable from the per-call layer: a per-network entry may LOWER\n// a ceiling for a chain that cannot afford the work, but nothing outside this\n// file can RAISE the absolute maximum. Raising it is a code change, on\n// purpose.\n//\n// ── Rejection, not silent clamping ─────────────────────────────────────────\n// An over-ceiling request throws LimitRangeError naming the knob and its\n// ceiling. Silently clamping would hand an analyst a result that reads as\n// exhaustive when it is not — the same class of failure as the arbitrary row\n// truncation this registry exists to fix.\n\nexport interface LimitSpec {\n /** Value used when no layer overrides it. Chosen to preserve historical behaviour exactly. */\n builtin: number\n /** Lowest accepted value. */\n min: number\n /** Absolute maximum. Only a code change to this file may raise it. */\n ceiling: number\n /** What the knob bounds, for docs and error messages. */\n description: string\n}\n\n// Row/frontier ceilings are generous because their cost is close to linear\n// in the value; the exponential hop caps (corridor/attribution and the\n// aml_trace_* tools) were removed with the retired detection realm.\nexport const LIMIT_SPECS = {\n // ── viz/graph-model.ts ──\n viz_max_nodes: {\n builtin: 100,\n min: 1,\n ceiling: 2_000,\n description: 'Nodes rendered in a generated graph view before truncation.',\n },\n} as const satisfies Record<string, LimitSpec>\n\nexport type LimitKey = keyof typeof LIMIT_SPECS\nexport const LIMIT_KEYS = Object.keys(LIMIT_SPECS) as LimitKey[]\n\nexport function isLimitKey(key: string): key is LimitKey {\n return Object.prototype.hasOwnProperty.call(LIMIT_SPECS, key)\n}\n\nexport interface NetworkLimitOverride {\n /** Per-network default values. Must sit inside the built-in [min, ceiling]. */\n defaults?: Partial<Record<LimitKey, number>>\n /**\n * Per-network ceilings. May only LOWER the built-in ceiling; a higher value\n * is ignored so no chain can widen the absolute maximum from data.\n */\n ceilings?: Partial<Record<LimitKey, number>>\n}\n\n// Per-network defaults. Empty today: every chain currently starts on the\n// built-in values, which is exactly what keeps this change behaviour-neutral.\n// A chain that needs different economics adds an entry here (or an operator\n// sets `networkLimits` in the config file) without touching a call site.\nexport const NETWORK_LIMIT_DEFAULTS: Record<string, NetworkLimitOverride> = {}\n\n/** Config-file layer, as parsed from ~/.chain-insights/config.json. */\nexport interface LimitConfig {\n limits?: Partial<Record<LimitKey, number>>\n networkLimits?: Record<string, Partial<Record<LimitKey, number>>>\n}\n\nexport class LimitRangeError extends Error {\n readonly code = 'LIMIT_OUT_OF_RANGE'\n constructor(\n readonly key: LimitKey,\n readonly requested: number,\n readonly min: number,\n readonly ceiling: number,\n readonly source: string\n ) {\n super(\n `${key} must be an integer between ${min} and ${ceiling} (got ${requested} from ${source}). ` +\n `${LIMIT_SPECS[key].description} The ceiling is a hard bound and cannot be raised per call.`\n )\n this.name = 'LimitRangeError'\n }\n}\n\n/**\n * The maximum this network will accept. A per-network entry may lower it;\n * nothing may raise it above the built-in ceiling.\n */\nexport function limitCeiling(key: LimitKey, network?: string): number {\n const builtinCeiling = LIMIT_SPECS[key].ceiling\n const networkCeiling = network ? NETWORK_LIMIT_DEFAULTS[network]?.ceilings?.[key] : undefined\n if (networkCeiling === undefined || !Number.isFinite(networkCeiling)) return builtinCeiling\n return Math.min(builtinCeiling, Math.trunc(networkCeiling))\n}\n\nexport interface ResolveLimitContext {\n network?: string\n config?: LimitConfig\n}\n\n/**\n * The value used when the caller passes nothing: config file, then per-network\n * default, then built-in. Always inside [min, ceiling] for the network.\n */\nexport function limitDefault(key: LimitKey, ctx: ResolveLimitContext = {}): number {\n const spec = LIMIT_SPECS[key]\n const ceiling = limitCeiling(key, ctx.network)\n const candidates = [\n ctx.network ? ctx.config?.networkLimits?.[ctx.network]?.[key] : undefined,\n ctx.config?.limits?.[key],\n ctx.network ? NETWORK_LIMIT_DEFAULTS[ctx.network]?.defaults?.[key] : undefined,\n ]\n for (const candidate of candidates) {\n if (candidate === undefined || !Number.isFinite(candidate)) continue\n const value = Math.trunc(candidate)\n if (value < spec.min || value > ceiling) {\n throw new LimitRangeError(key, value, spec.min, ceiling, 'configuration')\n }\n return value\n }\n // The built-in is clamped rather than rejected: a per-network entry that\n // lowers a ceiling below the built-in default is a deliberate tightening of\n // that chain, not an operator error to fail on.\n return Math.min(spec.builtin, ceiling)\n}\n\n/** What a knob resolved to, and what the caller asked for. Emitted so a bounded search is visible without reading warnings. */\nexport interface LimitResolution {\n key: LimitKey\n /** What the caller passed, if anything. */\n requested?: number\n /** What the run actually used. */\n used: number\n /** The value that would have been used with no per-call override. */\n fallback: number\n /** The hard maximum for this network. */\n ceiling: number\n}\n\n/**\n * Resolve one knob. `requested` is the per-call layer; undefined/null/NaN\n * means \"no override\" and falls through to limitDefault.\n *\n * Throws LimitRangeError for a non-integer, below-min, or above-ceiling\n * request. Rejecting is deliberate: see the header note on silent clamping.\n */\nexport function resolveLimitDetail(\n key: LimitKey,\n requested: number | undefined | null,\n ctx: ResolveLimitContext = {}\n): LimitResolution {\n const spec = LIMIT_SPECS[key]\n const ceiling = limitCeiling(key, ctx.network)\n const fallback = limitDefault(key, ctx)\n if (requested === undefined || requested === null) {\n return { key, used: fallback, fallback, ceiling }\n }\n if (!Number.isFinite(requested) || !Number.isInteger(requested)) {\n throw new LimitRangeError(key, Number(requested), spec.min, ceiling, 'the call')\n }\n if (requested < spec.min || requested > ceiling) {\n throw new LimitRangeError(key, requested, spec.min, ceiling, 'the call')\n }\n return { key, requested, used: requested, fallback, ceiling }\n}\n\n/** resolveLimitDetail, when only the number is wanted. */\nexport function resolveLimit(\n key: LimitKey,\n requested: number | undefined | null,\n ctx: ResolveLimitContext = {}\n): number {\n return resolveLimitDetail(key, requested, ctx).used\n}\n\n/**\n * Renders resolved knobs for a tool response, so the effective depth/breadth\n * of a search is visible in the structured output without reading warnings.\n * `requested` is present only when the caller actually passed a value, which\n * makes \"I asked for 4 and got 4\" and \"I asked for nothing and got 3\"\n * distinguishable at a glance.\n */\nexport function limitsReport(resolutions: LimitResolution[]): Record<\n string,\n {\n requested?: number\n used: number\n default: number\n ceiling: number\n }\n> {\n return Object.fromEntries(\n resolutions.map((resolution) => [\n resolution.key,\n {\n ...(resolution.requested !== undefined ? { requested: resolution.requested } : {}),\n used: resolution.used,\n default: resolution.fallback,\n ceiling: resolution.ceiling,\n },\n ])\n )\n}\n\n/**\n * Integer-safe rendering for a value that is interpolated into a query.\n *\n * Cypher cannot parameterize a LIMIT, so the number is inlined — but ONLY\n * after resolveLimit has proven it is an integer inside a bounded range, and\n * this function re-proves it at the interpolation site. A recent CodeQL high\n * came from hand-interpolating an unvalidated value into query text; this is\n * the one sanctioned path.\n */\nexport function limitLiteral(value: number): string {\n if (!Number.isInteger(value) || value < 0) {\n throw new Error(`limit literal must be a non-negative integer (got ${String(value)})`)\n }\n return String(value)\n}\n"],"mappings":";AAoDA,MAAa,cAAc,EAEzB,eAAe;CACb,SAAS;CACT,KAAK;CACL,SAAS;CACT,aAAa;AACf,EACF;AAG0B,OAAO,KAAK,WAAW;AAEjD,SAAgB,WAAW,KAA8B;CACvD,OAAO,OAAO,UAAU,eAAe,KAAK,aAAa,GAAG;AAC9D;AAgBA,MAAa,yBAA+D,CAAC;AAQ7E,IAAa,kBAAb,cAAqC,MAAM;CAG9B;CACA;CACA;CACA;CACA;CANX,OAAgB;CAChB,YACE,KACA,WACA,KACA,SACA,QACA;EACA,MACE,GAAG,IAAI,8BAA8B,IAAI,OAAO,QAAQ,QAAQ,UAAU,QAAQ,OAAO,KACpF,YAAY,IAAI,CAAC,YAAY,4DACpC;EATS,KAAA,MAAA;EACA,KAAA,YAAA;EACA,KAAA,MAAA;EACA,KAAA,UAAA;EACA,KAAA,SAAA;EAMT,KAAK,OAAO;CACd;AACF;;;;;AAMA,SAAgB,aAAa,KAAe,SAA0B;CACpE,MAAM,iBAAiB,YAAY,IAAI,CAAC;CACxC,MAAM,iBAAiB,UAAU,uBAAuB,QAAQ,EAAE,WAAW,OAAO,KAAA;CACpF,IAAI,mBAAmB,KAAA,KAAa,CAAC,OAAO,SAAS,cAAc,GAAG,OAAO;CAC7E,OAAO,KAAK,IAAI,gBAAgB,KAAK,MAAM,cAAc,CAAC;AAC5D;;;;;AAWA,SAAgB,aAAa,KAAe,MAA2B,CAAC,GAAW;CACjF,MAAM,OAAO,YAAY;CACzB,MAAM,UAAU,aAAa,KAAK,IAAI,OAAO;CAC7C,MAAM,aAAa;EACjB,IAAI,UAAU,IAAI,QAAQ,gBAAgB,IAAI,QAAQ,GAAG,OAAO,KAAA;EAChE,IAAI,QAAQ,SAAS;EACrB,IAAI,UAAU,uBAAuB,IAAI,QAAQ,EAAE,WAAW,OAAO,KAAA;CACvE;CACA,KAAK,MAAM,aAAa,YAAY;EAClC,IAAI,cAAc,KAAA,KAAa,CAAC,OAAO,SAAS,SAAS,GAAG;EAC5D,MAAM,QAAQ,KAAK,MAAM,SAAS;EAClC,IAAI,QAAQ,KAAK,OAAO,QAAQ,SAC9B,MAAM,IAAI,gBAAgB,KAAK,OAAO,KAAK,KAAK,SAAS,eAAe;EAE1E,OAAO;CACT;CAIA,OAAO,KAAK,IAAI,KAAK,SAAS,OAAO;AACvC;;;;;;;;AAsBA,SAAgB,mBACd,KACA,WACA,MAA2B,CAAC,GACX;CACjB,MAAM,OAAO,YAAY;CACzB,MAAM,UAAU,aAAa,KAAK,IAAI,OAAO;CAC7C,MAAM,WAAW,aAAa,KAAK,GAAG;CACtC,IAAI,cAAc,KAAA,KAAa,cAAc,MAC3C,OAAO;EAAE;EAAK,MAAM;EAAU;EAAU;CAAQ;CAElD,IAAI,CAAC,OAAO,SAAS,SAAS,KAAK,CAAC,OAAO,UAAU,SAAS,GAC5D,MAAM,IAAI,gBAAgB,KAAK,OAAO,SAAS,GAAG,KAAK,KAAK,SAAS,UAAU;CAEjF,IAAI,YAAY,KAAK,OAAO,YAAY,SACtC,MAAM,IAAI,gBAAgB,KAAK,WAAW,KAAK,KAAK,SAAS,UAAU;CAEzE,OAAO;EAAE;EAAK;EAAW,MAAM;EAAW;EAAU;CAAQ;AAC9D;;AAGA,SAAgB,aACd,KACA,WACA,MAA2B,CAAC,GACpB;CACR,OAAO,mBAAmB,KAAK,WAAW,GAAG,CAAC,CAAC;AACjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-endpoint-DbWtLcba.mjs","names":[],"sources":["../src/config/mcp-endpoint.ts"],"sourcesContent":["import { isIP } from 'node:net'\n\nconst LOOPBACK_HOSTS = new Set(['localhost', '127.0.0.1', '::1', '[::1]'])\n\nexport const LOCAL_GRAPH_MCP_ENDPOINT = 'http://127.0.0.1:8012/mcp'\n\nfunction isLoopbackHost(hostname: string): boolean {\n const normalized = hostname.toLowerCase().replace(/^\\[(.*)\\]$/, '$1')\n if (LOOPBACK_HOSTS.has(normalized)) return true\n if (isIP(normalized) !== 4) return false\n return normalized.split('.')[0] === '127'\n}\n\nfunction isKubernetesServiceHost(hostname: string): boolean {\n return hostname.toLowerCase().endsWith('.svc.cluster.local')\n}\n\nexport function graphMcpEndpointEnvOverride(): string | undefined {\n const envEndpoint
|
|
1
|
+
{"version":3,"file":"mcp-endpoint-DbWtLcba.mjs","names":[],"sources":["../src/config/mcp-endpoint.ts"],"sourcesContent":["import { isIP } from 'node:net'\n\nconst LOOPBACK_HOSTS = new Set(['localhost', '127.0.0.1', '::1', '[::1]'])\n\nexport const LOCAL_GRAPH_MCP_ENDPOINT = 'http://127.0.0.1:8012/mcp'\n\nfunction isLoopbackHost(hostname: string): boolean {\n const normalized = hostname.toLowerCase().replace(/^\\[(.*)\\]$/, '$1')\n if (LOOPBACK_HOSTS.has(normalized)) return true\n if (isIP(normalized) !== 4) return false\n return normalized.split('.')[0] === '127'\n}\n\nfunction isKubernetesServiceHost(hostname: string): boolean {\n return hostname.toLowerCase().endsWith('.svc.cluster.local')\n}\n\nexport function graphMcpEndpointEnvOverride(): string | undefined {\n const envEndpoint =\n process.env.CHAIN_INSIGHTS_GRAPH_MCP_ENDPOINT?.trim() || process.env.GRAPH_MCP_ENDPOINT?.trim()\n return envEndpoint ? validateMcpEndpoint(envEndpoint, 'graphMcpEndpoint') : undefined\n}\n\nexport function validateMcpEndpoint(value: string, key: string): string {\n const trimmed = value.trim()\n if (!trimmed) {\n throw new Error(`${key} must be a non-empty absolute URL.`)\n }\n\n let parsed: URL\n try {\n parsed = new URL(trimmed)\n } catch {\n throw new Error(\n `${key} must be an absolute URL (example: https://mcp.example.com/mcp or http://127.0.0.1:8012/mcp).`\n )\n }\n\n if (parsed.username || parsed.password) {\n throw new Error(`${key} must not include URL credentials.`)\n }\n if (parsed.search || parsed.hash) {\n throw new Error(`${key} must not include query parameters or URL fragments.`)\n }\n if (parsed.protocol !== 'https:' && parsed.protocol !== 'http:') {\n throw new Error(`${key} must use either https:// or http://.`)\n }\n if (\n parsed.protocol === 'http:' &&\n !isLoopbackHost(parsed.hostname) &&\n !isKubernetesServiceHost(parsed.hostname)\n ) {\n throw new Error(\n `${key} must use https:// for remote hosts. http:// is allowed only for localhost, loopback addresses, or Kubernetes *.svc.cluster.local service DNS.`\n )\n }\n\n return trimmed\n}\n"],"mappings":";;AAEA,MAAM,iCAAiB,IAAI,IAAI;CAAC;CAAa;CAAa;CAAO;AAAO,CAAC;AAEzE,MAAa,2BAA2B;AAExC,SAAS,eAAe,UAA2B;CACjD,MAAM,aAAa,SAAS,YAAY,CAAC,CAAC,QAAQ,cAAc,IAAI;CACpE,IAAI,eAAe,IAAI,UAAU,GAAG,OAAO;CAC3C,IAAI,KAAK,UAAU,MAAM,GAAG,OAAO;CACnC,OAAO,WAAW,MAAM,GAAG,CAAC,CAAC,OAAO;AACtC;AAEA,SAAS,wBAAwB,UAA2B;CAC1D,OAAO,SAAS,YAAY,CAAC,CAAC,SAAS,oBAAoB;AAC7D;AAEA,SAAgB,8BAAkD;CAChE,MAAM,cACJ,QAAQ,IAAI,mCAAmC,KAAK,KAAK,QAAQ,IAAI,oBAAoB,KAAK;CAChG,OAAO,cAAc,oBAAoB,aAAa,kBAAkB,IAAI,KAAA;AAC9E;AAEA,SAAgB,oBAAoB,OAAe,KAAqB;CACtE,MAAM,UAAU,MAAM,KAAK;CAC3B,IAAI,CAAC,SACH,MAAM,IAAI,MAAM,GAAG,IAAI,mCAAmC;CAG5D,IAAI;CACJ,IAAI;EACF,SAAS,IAAI,IAAI,OAAO;CAC1B,QAAQ;EACN,MAAM,IAAI,MACR,GAAG,IAAI,8FACT;CACF;CAEA,IAAI,OAAO,YAAY,OAAO,UAC5B,MAAM,IAAI,MAAM,GAAG,IAAI,mCAAmC;CAE5D,IAAI,OAAO,UAAU,OAAO,MAC1B,MAAM,IAAI,MAAM,GAAG,IAAI,qDAAqD;CAE9E,IAAI,OAAO,aAAa,YAAY,OAAO,aAAa,SACtD,MAAM,IAAI,MAAM,GAAG,IAAI,sCAAsC;CAE/D,IACE,OAAO,aAAa,WACpB,CAAC,eAAe,OAAO,QAAQ,KAC/B,CAAC,wBAAwB,OAAO,QAAQ,GAExC,MAAM,IAAI,MACR,GAAG,IAAI,+IACT;CAGF,OAAO;AACT"}
|
package/dist/mcp-proxy.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_rolldown_runtime = require("./rolldown-runtime-
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
3
3
|
const require_version = require("./version-CO9Or_YV.cjs");
|
|
4
|
-
const require_client = require("./client-
|
|
5
|
-
const require_tool_visibility = require("./tool-visibility-
|
|
6
|
-
const require_usage_status = require("./usage-status-
|
|
7
|
-
const require_capabilities = require("./capabilities-
|
|
8
|
-
const require_action_log = require("./action-log-
|
|
4
|
+
const require_client = require("./client-CqAzD519.cjs");
|
|
5
|
+
const require_tool_visibility = require("./tool-visibility-DZBAP62b.cjs");
|
|
6
|
+
const require_usage_status = require("./usage-status-BdwwgYsu.cjs");
|
|
7
|
+
const require_capabilities = require("./capabilities-CPcrxodx.cjs");
|
|
8
|
+
const require_action_log = require("./action-log-HniMMF7f.cjs");
|
|
9
9
|
let node_url = require("node:url");
|
|
10
10
|
let node_path = require("node:path");
|
|
11
11
|
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
@@ -52,7 +52,7 @@ const KNOWN_PUBLIC_TOOL_DESCRIPTIONS = {
|
|
|
52
52
|
const FALLBACK_GRAPH_PRIMITIVE_TOOL_NAMES = ["graph_query", "graph_query_batch"];
|
|
53
53
|
const NETWORK_SCHEMA = zod.string().min(1).describe("Network to query. Call meta_network_capabilities first and pass a name GraphRAG advertised. CIA does not pick a default network.");
|
|
54
54
|
const EMPTY_INPUT_SCHEMA = zod.strictObject({});
|
|
55
|
-
const REMOTE_GRAPH_TOOL_REQUEST_TIMEOUT_MS =
|
|
55
|
+
const REMOTE_GRAPH_TOOL_REQUEST_TIMEOUT_MS = 9e5;
|
|
56
56
|
const CHAIN_INSIGHTS_WORKFLOW = [
|
|
57
57
|
"Workflow:",
|
|
58
58
|
"1. Chain Insights workspaces are append-only local working directories. Bootstrap with cia init before workflows that persist artifacts.",
|
|
@@ -481,8 +481,8 @@ async function normalizeRemoteToolResult(result, config, toolName = "remote-grap
|
|
|
481
481
|
const graphPayload = getRemoteGraphPayload(result);
|
|
482
482
|
const meta = { ...result._meta ?? {} };
|
|
483
483
|
if (graphPayload && includeAttachments) {
|
|
484
|
-
const { writeGraphReport } = await Promise.resolve().then(() => require("./graph-reports-
|
|
485
|
-
const { ensureArtifactServer } = await Promise.resolve().then(() => require("./artifact-server-
|
|
484
|
+
const { writeGraphReport } = await Promise.resolve().then(() => require("./graph-reports-_gqzxvvs.cjs"));
|
|
485
|
+
const { ensureArtifactServer } = await Promise.resolve().then(() => require("./artifact-server-CH-asxF5.cjs"));
|
|
486
486
|
const report = await writeGraphReport(graphPayload, {
|
|
487
487
|
serverPort: config.serverPort,
|
|
488
488
|
slug: toolName || "remote-graph"
|
|
@@ -508,8 +508,8 @@ function shouldIncludeAttachments(args, workspaceArtifactsEnabled) {
|
|
|
508
508
|
}
|
|
509
509
|
async function writeLocalGraphMeta(graphData, config, slug, includeAttachments) {
|
|
510
510
|
if (!includeAttachments) return void 0;
|
|
511
|
-
const { writeGraphReport } = await Promise.resolve().then(() => require("./graph-reports-
|
|
512
|
-
const { ensureArtifactServer } = await Promise.resolve().then(() => require("./artifact-server-
|
|
511
|
+
const { writeGraphReport } = await Promise.resolve().then(() => require("./graph-reports-_gqzxvvs.cjs"));
|
|
512
|
+
const { ensureArtifactServer } = await Promise.resolve().then(() => require("./artifact-server-CH-asxF5.cjs"));
|
|
513
513
|
const report = await writeGraphReport(graphData, {
|
|
514
514
|
serverPort: config.serverPort,
|
|
515
515
|
slug
|
|
@@ -527,11 +527,12 @@ function cleanNetworkCapabilities(value) {
|
|
|
527
527
|
const structuredContent = isRecord(value) ? value.structuredContent : void 0;
|
|
528
528
|
const facts = isRecord(structuredContent) ? structuredContent.facts : void 0;
|
|
529
529
|
const capabilities = isRecord(facts) ? facts.capabilities : void 0;
|
|
530
|
+
const networks = isRecord(capabilities) && Array.isArray(capabilities.networks) ? capabilities.networks : [];
|
|
530
531
|
return {
|
|
531
532
|
schema: "chain-insights.result.v1",
|
|
532
533
|
tool: "meta_network_capabilities",
|
|
533
534
|
hint: null,
|
|
534
|
-
facts: { capabilities: require_capabilities.mirrorGraphNetworkCapabilities({ networks
|
|
535
|
+
facts: { capabilities: require_capabilities.mirrorGraphNetworkCapabilities({ networks }) }
|
|
535
536
|
};
|
|
536
537
|
}
|
|
537
538
|
function jsonTextResult(structuredContent) {
|
|
@@ -552,10 +553,10 @@ function jsonTextResult(structuredContent) {
|
|
|
552
553
|
* All diagnostic output goes to console.error() or process.stderr.write().
|
|
553
554
|
*/
|
|
554
555
|
async function createProxy() {
|
|
555
|
-
const { loadConfig } = await Promise.resolve().then(() => require("./config-
|
|
556
|
-
const { activeDataDir, findActiveWorkspace } = await Promise.resolve().then(() => require("./active-
|
|
557
|
-
const { createConfiguredGraphMcpFetch, resolveGraphMcpEndpoint } = await Promise.resolve().then(() => require("./client-
|
|
558
|
-
const { loadSchema, saveSchema } = await Promise.resolve().then(() => require("./schema-cache-
|
|
556
|
+
const { loadConfig } = await Promise.resolve().then(() => require("./config-BVFf3v8-.cjs")).then((n) => n.config_exports);
|
|
557
|
+
const { activeDataDir, findActiveWorkspace } = await Promise.resolve().then(() => require("./active-Bc13hJIm.cjs")).then((n) => n.active_exports);
|
|
558
|
+
const { createConfiguredGraphMcpFetch, resolveGraphMcpEndpoint } = await Promise.resolve().then(() => require("./client-CqAzD519.cjs")).then((n) => n.client_exports);
|
|
559
|
+
const { loadSchema, saveSchema } = await Promise.resolve().then(() => require("./schema-cache-n7Gbhvsj.cjs"));
|
|
559
560
|
const proxyMode = resolveMcpProxyMode();
|
|
560
561
|
const workspaceArtifactsEnabled = proxyMode === "workspace";
|
|
561
562
|
const loadedConfig = await loadConfig();
|
|
@@ -743,7 +744,7 @@ async function createProxy() {
|
|
|
743
744
|
}
|
|
744
745
|
}, async () => {
|
|
745
746
|
try {
|
|
746
|
-
const { formatWalletBalanceResult, getWalletAccount, getWalletBalanceResult } = await Promise.resolve().then(() => require("./tools-
|
|
747
|
+
const { formatWalletBalanceResult, getWalletAccount, getWalletBalanceResult } = await Promise.resolve().then(() => require("./tools-lPY6k-vJ.cjs")).then((n) => n.tools_exports);
|
|
747
748
|
const structuredContent = await getWalletBalanceResult(await getWalletAccount());
|
|
748
749
|
return {
|
|
749
750
|
content: [{
|
|
@@ -803,7 +804,7 @@ async function createProxy() {
|
|
|
803
804
|
}],
|
|
804
805
|
isError: true
|
|
805
806
|
};
|
|
806
|
-
const { addressRisk } = await Promise.resolve().then(() => require("./public-tools-
|
|
807
|
+
const { addressRisk } = await Promise.resolve().then(() => require("./public-tools-BFs_7U_Z.cjs"));
|
|
807
808
|
const result = await addressRisk(remoteClient, {
|
|
808
809
|
address,
|
|
809
810
|
network,
|
package/dist/mcp-proxy.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-proxy.d.cts","names":[],"sources":["../src/mcp/proxy.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"mcp-proxy.d.cts","names":[],"sources":["../src/mcp/proxy.ts"],"mappings":";;KAuCY;iBAEI,oBAAoB,MAAK,OAAO,aAA2B;KAsBtE,iBAAiB,eAAe,EAAE;iBAkIvB,2BAA2B,mBAAmB;;;;;;;;iBAwoBxC,eAAe"}
|
package/dist/mcp-proxy.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-proxy.d.mts","names":[],"sources":["../src/mcp/proxy.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"mcp-proxy.d.mts","names":[],"sources":["../src/mcp/proxy.ts"],"mappings":";;KAuCY;iBAEI,oBAAoB,MAAK,OAAO,aAA2B;KAsBtE,iBAAiB,eAAe,EAAE;iBAkIvB,2BAA2B,mBAAmB;;;;;;;;iBAwoBxC,eAAe"}
|
package/dist/mcp-proxy.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as PACKAGE_VERSION } from "./version-BA3J8hu4.mjs";
|
|
2
|
-
import { t as PaymentRequiredError } from "./client-
|
|
2
|
+
import { t as PaymentRequiredError } from "./client-D4aM4bzP.mjs";
|
|
3
3
|
import { n as PUBLIC_MCP_TOOL_ALLOWED_ARGS, r as PUBLIC_MCP_TOOL_REQUIRED_ARGS, t as HIDDEN_REMOTE_TOOL_NAMES } from "./tool-visibility-C0ALejXI.mjs";
|
|
4
|
-
import { t as primitiveBackendUsageStatus } from "./usage-status-
|
|
5
|
-
import { n as mirrorGraphNetworkCapabilities } from "./capabilities-
|
|
4
|
+
import { t as primitiveBackendUsageStatus } from "./usage-status-CHiOPA-2.mjs";
|
|
5
|
+
import { n as mirrorGraphNetworkCapabilities } from "./capabilities-BZI6qROg.mjs";
|
|
6
6
|
import { r as appendActionLog, t as actionLogSignalsFromResult } from "./action-log-diTHyMbV.mjs";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
import path from "node:path";
|
|
@@ -48,7 +48,7 @@ const KNOWN_PUBLIC_TOOL_DESCRIPTIONS = {
|
|
|
48
48
|
const FALLBACK_GRAPH_PRIMITIVE_TOOL_NAMES = ["graph_query", "graph_query_batch"];
|
|
49
49
|
const NETWORK_SCHEMA = z.string().min(1).describe("Network to query. Call meta_network_capabilities first and pass a name GraphRAG advertised. CIA does not pick a default network.");
|
|
50
50
|
const EMPTY_INPUT_SCHEMA = z.strictObject({});
|
|
51
|
-
const REMOTE_GRAPH_TOOL_REQUEST_TIMEOUT_MS =
|
|
51
|
+
const REMOTE_GRAPH_TOOL_REQUEST_TIMEOUT_MS = 9e5;
|
|
52
52
|
const CHAIN_INSIGHTS_WORKFLOW = [
|
|
53
53
|
"Workflow:",
|
|
54
54
|
"1. Chain Insights workspaces are append-only local working directories. Bootstrap with cia init before workflows that persist artifacts.",
|
|
@@ -478,7 +478,7 @@ async function normalizeRemoteToolResult(result, config, toolName = "remote-grap
|
|
|
478
478
|
const meta = { ...result._meta ?? {} };
|
|
479
479
|
if (graphPayload && includeAttachments) {
|
|
480
480
|
const { writeGraphReport } = await import("./graph-reports-B6yoYbPq.mjs");
|
|
481
|
-
const { ensureArtifactServer } = await import("./artifact-server-
|
|
481
|
+
const { ensureArtifactServer } = await import("./artifact-server-DoxJr0z8.mjs");
|
|
482
482
|
const report = await writeGraphReport(graphPayload, {
|
|
483
483
|
serverPort: config.serverPort,
|
|
484
484
|
slug: toolName || "remote-graph"
|
|
@@ -505,7 +505,7 @@ function shouldIncludeAttachments(args, workspaceArtifactsEnabled) {
|
|
|
505
505
|
async function writeLocalGraphMeta(graphData, config, slug, includeAttachments) {
|
|
506
506
|
if (!includeAttachments) return void 0;
|
|
507
507
|
const { writeGraphReport } = await import("./graph-reports-B6yoYbPq.mjs");
|
|
508
|
-
const { ensureArtifactServer } = await import("./artifact-server-
|
|
508
|
+
const { ensureArtifactServer } = await import("./artifact-server-DoxJr0z8.mjs");
|
|
509
509
|
const report = await writeGraphReport(graphData, {
|
|
510
510
|
serverPort: config.serverPort,
|
|
511
511
|
slug
|
|
@@ -523,11 +523,12 @@ function cleanNetworkCapabilities(value) {
|
|
|
523
523
|
const structuredContent = isRecord(value) ? value.structuredContent : void 0;
|
|
524
524
|
const facts = isRecord(structuredContent) ? structuredContent.facts : void 0;
|
|
525
525
|
const capabilities = isRecord(facts) ? facts.capabilities : void 0;
|
|
526
|
+
const networks = isRecord(capabilities) && Array.isArray(capabilities.networks) ? capabilities.networks : [];
|
|
526
527
|
return {
|
|
527
528
|
schema: "chain-insights.result.v1",
|
|
528
529
|
tool: "meta_network_capabilities",
|
|
529
530
|
hint: null,
|
|
530
|
-
facts: { capabilities: mirrorGraphNetworkCapabilities({ networks
|
|
531
|
+
facts: { capabilities: mirrorGraphNetworkCapabilities({ networks }) }
|
|
531
532
|
};
|
|
532
533
|
}
|
|
533
534
|
function jsonTextResult(structuredContent) {
|
|
@@ -548,10 +549,10 @@ function jsonTextResult(structuredContent) {
|
|
|
548
549
|
* All diagnostic output goes to console.error() or process.stderr.write().
|
|
549
550
|
*/
|
|
550
551
|
async function createProxy() {
|
|
551
|
-
const { loadConfig } = await import("./config-
|
|
552
|
+
const { loadConfig } = await import("./config-CnNMdt4M.mjs").then((n) => n.t);
|
|
552
553
|
const { activeDataDir, findActiveWorkspace } = await import("./active-BQopLul8.mjs").then((n) => n.t);
|
|
553
|
-
const { createConfiguredGraphMcpFetch, resolveGraphMcpEndpoint } = await import("./client-
|
|
554
|
-
const { loadSchema, saveSchema } = await import("./schema-cache-
|
|
554
|
+
const { createConfiguredGraphMcpFetch, resolveGraphMcpEndpoint } = await import("./client-D4aM4bzP.mjs").then((n) => n.r);
|
|
555
|
+
const { loadSchema, saveSchema } = await import("./schema-cache-DJdU4MIP.mjs");
|
|
555
556
|
const proxyMode = resolveMcpProxyMode();
|
|
556
557
|
const workspaceArtifactsEnabled = proxyMode === "workspace";
|
|
557
558
|
const loadedConfig = await loadConfig();
|
|
@@ -739,7 +740,7 @@ async function createProxy() {
|
|
|
739
740
|
}
|
|
740
741
|
}, async () => {
|
|
741
742
|
try {
|
|
742
|
-
const { formatWalletBalanceResult, getWalletAccount, getWalletBalanceResult } = await import("./tools-
|
|
743
|
+
const { formatWalletBalanceResult, getWalletAccount, getWalletBalanceResult } = await import("./tools-BKLnlBG1.mjs").then((n) => n.p);
|
|
743
744
|
const structuredContent = await getWalletBalanceResult(await getWalletAccount());
|
|
744
745
|
return {
|
|
745
746
|
content: [{
|
|
@@ -799,7 +800,7 @@ async function createProxy() {
|
|
|
799
800
|
}],
|
|
800
801
|
isError: true
|
|
801
802
|
};
|
|
802
|
-
const { addressRisk } = await import("./public-tools-
|
|
803
|
+
const { addressRisk } = await import("./public-tools-BjqZGGAC.mjs");
|
|
803
804
|
const result = await addressRisk(remoteClient, {
|
|
804
805
|
address,
|
|
805
806
|
network,
|