@ai.ntellect/core 0.6.11 → 0.6.13
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/app/README.md +36 -0
- package/app/app/favicon.ico +0 -0
- package/app/app/globals.css +21 -0
- package/app/app/gun.ts +0 -0
- package/app/app/layout.tsx +18 -0
- package/app/app/page.tsx +321 -0
- package/app/eslint.config.mjs +16 -0
- package/app/next.config.ts +7 -0
- package/app/package-lock.json +5912 -0
- package/app/package.json +31 -0
- package/app/pnpm-lock.yaml +4031 -0
- package/app/postcss.config.mjs +8 -0
- package/app/public/file.svg +1 -0
- package/app/public/globe.svg +1 -0
- package/app/public/next.svg +1 -0
- package/app/public/vercel.svg +1 -0
- package/app/public/window.svg +1 -0
- package/app/tailwind.config.ts +18 -0
- package/app/tsconfig.json +27 -0
- package/dist/graph/controller.js +30 -41
- package/dist/graph/graph.js +167 -0
- package/dist/index.js +3 -2
- package/dist/memory/adapters/meilisearch/index.js +39 -63
- package/dist/utils/experimental-graph-rag.js +152 -0
- package/dist/utils/stringifiy-zod-schema.js +7 -6
- package/graph/controller.ts +57 -52
- package/graph/graph.ts +198 -0
- package/index.ts +3 -2
- package/memory/adapters/meilisearch/index.ts +41 -76
- package/package.json +2 -2
- package/tsconfig.json +1 -1
- package/types/index.ts +35 -38
- package/utils/experimental-graph-rag.ts +170 -0
- package/utils/stringifiy-zod-schema.ts +6 -6
- package/create-llm-to-select-multiple-graph copy.ts +0 -237
- package/create-llm-to-select-multiple-graph.ts +0 -148
- package/dist/create-llm-to-select-multiple-graph copy.js +0 -171
- package/dist/create-llm-to-select-multiple-graph.js +0 -142
- package/dist/graph/engine.js +0 -646
- package/dist/index copy.js +0 -76
- package/dist/utils/setup-graphs.js +0 -28
- package/graph/engine.ts +0 -805
- package/index copy.ts +0 -81
- package/utils/setup-graphs.ts +0 -45
package/dist/index copy.js
DELETED
@@ -1,76 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getRouterAddress = exports.ROUTER_ADDRESSES = exports.getNetworkProvider = exports.networkConfigs = void 0;
|
4
|
-
exports.networkConfigs = {
|
5
|
-
ethereum: {
|
6
|
-
name: "Ethereum Mainnet",
|
7
|
-
id: 1,
|
8
|
-
rpc: "https://eth.llamarpc.com",
|
9
|
-
explorerUrl: "https://etherscan.io",
|
10
|
-
nativeToken: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
|
11
|
-
},
|
12
|
-
polygon: {
|
13
|
-
name: "Polygon Mainnet",
|
14
|
-
id: 137,
|
15
|
-
rpc: "https://polygon.llamarpc.com",
|
16
|
-
explorerUrl: "https://polygonscan.com",
|
17
|
-
nativeToken: "0x0000000000000000000000000000000000001010",
|
18
|
-
},
|
19
|
-
arbitrum: {
|
20
|
-
name: "Arbitrum Mainnet",
|
21
|
-
id: 42161,
|
22
|
-
rpc: "https://arbitrum.llamarpc.com",
|
23
|
-
explorerUrl: "https://arbiscan.io",
|
24
|
-
nativeToken: "0x82af49447d8a07e3bd95bd0d56f35241523fbab1",
|
25
|
-
},
|
26
|
-
base: {
|
27
|
-
name: "Base Mainnet",
|
28
|
-
id: 8453,
|
29
|
-
rpc: "https://base.llamarpc.com",
|
30
|
-
explorerUrl: "https://basescan.org",
|
31
|
-
nativeToken: "0x4200000000000000000000000000000000000006",
|
32
|
-
},
|
33
|
-
solana: {
|
34
|
-
name: "Solana Mainnet",
|
35
|
-
rpc: "https://api.mainnet-beta.solana.com",
|
36
|
-
explorerUrl: "https://solscan.io",
|
37
|
-
nativeToken: "So11111111111111111111111111111111111111112",
|
38
|
-
},
|
39
|
-
sepolia: {
|
40
|
-
name: "Sepolia Testnet",
|
41
|
-
id: 11155111,
|
42
|
-
rpc: "https://rpc.sepolia.ethpandaops.io",
|
43
|
-
explorerUrl: "https://sepolia.etherscan.io",
|
44
|
-
nativeToken: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
|
45
|
-
},
|
46
|
-
baseSepolia: {
|
47
|
-
name: "Base Sepolia Testnet",
|
48
|
-
id: 84532,
|
49
|
-
rpc: "https://base-sepolia-rpc.publicnode.com",
|
50
|
-
explorerUrl: "https://sepolia.basescan.org",
|
51
|
-
nativeToken: "0x4200000000000000000000000000000000000006",
|
52
|
-
},
|
53
|
-
};
|
54
|
-
const getNetworkProvider = (networkName) => {
|
55
|
-
const config = exports.networkConfigs[networkName.toLowerCase()];
|
56
|
-
if (!config) {
|
57
|
-
throw new Error(`Network ${networkName} not supported`);
|
58
|
-
}
|
59
|
-
return { config };
|
60
|
-
};
|
61
|
-
exports.getNetworkProvider = getNetworkProvider;
|
62
|
-
exports.ROUTER_ADDRESSES = {
|
63
|
-
ethereum: "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
|
64
|
-
sepolia: "0xeE567Fe1712Faf6149d80dA1E6934E354124CfE3",
|
65
|
-
arbitrum: "0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24",
|
66
|
-
polygon: "0xedf6066a2b290C185783862C7F4776A2C8077AD1",
|
67
|
-
base: "0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24",
|
68
|
-
optimism: "0x4A7b5Da61326A6379179b40d00F57E5bbDC962c2",
|
69
|
-
blast: "0xBB66Eb1c5e875933D44DAe661dbD80e5D9B03035",
|
70
|
-
zora: "0xa00F34A632630EFd15223B1968358bA4845bEEC7",
|
71
|
-
worldchain: "0x541aB7c31A119441eF3575F6973277DE0eF460bd",
|
72
|
-
};
|
73
|
-
const getRouterAddress = (networkName) => {
|
74
|
-
return exports.ROUTER_ADDRESSES[networkName.toLowerCase()];
|
75
|
-
};
|
76
|
-
exports.getRouterAddress = getRouterAddress;
|
@@ -1,28 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.setupGraphsWithActions = setupGraphsWithActions;
|
4
|
-
const engine_1 = require("../graph/engine");
|
5
|
-
function setupGraphsWithActions(actions, baseStateMapping, graphMaps) {
|
6
|
-
const initialStates = actions.map((action) => {
|
7
|
-
const parametersObject = Object.fromEntries(action.parameters.map((param) => [
|
8
|
-
param.name,
|
9
|
-
param.value !== undefined ? param.value : null,
|
10
|
-
]) // Handle optional values
|
11
|
-
);
|
12
|
-
const baseState = baseStateMapping[action.name] || {};
|
13
|
-
return Object.assign(Object.assign({}, baseState), parametersObject);
|
14
|
-
});
|
15
|
-
const selectedGraphs = actions
|
16
|
-
.map((action) => graphMaps.find((graph) => graph.name === action.name))
|
17
|
-
.filter((graph) => graph !== undefined);
|
18
|
-
if (selectedGraphs.length !== actions.length) {
|
19
|
-
throw new Error("Graph not found");
|
20
|
-
}
|
21
|
-
const startNodes = selectedGraphs.map((graph) => graph.entryNode);
|
22
|
-
const graphEngines = selectedGraphs.map((graph) => new engine_1.GraphEngine(graph));
|
23
|
-
return {
|
24
|
-
initialStates: initialStates,
|
25
|
-
graphs: graphEngines,
|
26
|
-
startNodes,
|
27
|
-
};
|
28
|
-
}
|