genlayer 0.13.0 → 0.14.1
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/.env.example +6 -0
- package/.github/workflows/publish-beta.yml +1 -1
- package/.github/workflows/publish.yml +1 -1
- package/.github/workflows/validate-code.yml +1 -1
- package/CHANGELOG.md +8 -0
- package/dist/index.js +17 -4
- package/docker-compose.yml +2 -2
- package/package.json +4 -4
- package/src/lib/config/simulator.ts +14 -2
- package/templates/default/app/package.json +2 -2
- package/templates/default/package-lock.json +4 -4
- package/templates/default/package.json +1 -1
- package/templates/default/requirements.txt +5 -5
- package/templates/default/app/package-lock.json +0 -4920
package/.env.example
CHANGED
|
@@ -63,6 +63,12 @@ HEURISTAIURL='https://llm-gateway.heurist.xyz'
|
|
|
63
63
|
HEURISTAIMODELSURL='https://raw.githubusercontent.com/heurist-network/heurist-models/main/models.json'
|
|
64
64
|
HEURISTAIAPIKEY='<add_your_heuristai_api_key_here>'
|
|
65
65
|
|
|
66
|
+
# If you want to use Google AI LLMs, add your key here
|
|
67
|
+
GEMINI_API_KEY= '<add_your_gemini_api_key_here>'
|
|
68
|
+
|
|
69
|
+
# If you want to use XAI LLMs, add your key here
|
|
70
|
+
XAI_API_KEY= '<add_your_xai_api_key_here>'
|
|
71
|
+
|
|
66
72
|
# Validator Configuration
|
|
67
73
|
# JSON array of initial validators to be created on startup.
|
|
68
74
|
# Example: VALIDATORS_CONFIG_JSON = '[{"stake": 100, "provider": "openai", "model": "gpt-4o", "amount": 2}, {"stake": 200, "provider": "anthropic", "model": "claude-3-haiku-20240307", "amount": 1}]'
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.14.1 (2025-04-25)
|
|
4
|
+
|
|
5
|
+
## 0.14.0 (2025-04-25)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* adding gemini and XAI ([#216](https://github.com/yeagerai/genlayer-cli/issues/216)) ([01310b2](https://github.com/yeagerai/genlayer-cli/commit/01310b2c4856880d8b4209a8b659445bf6d4d501))
|
|
10
|
+
|
|
3
11
|
## 0.13.0 (2025-04-24)
|
|
4
12
|
|
|
5
13
|
### Features
|
package/dist/index.js
CHANGED
|
@@ -16853,7 +16853,7 @@ var require_semver2 = __commonJS({
|
|
|
16853
16853
|
import { program } from "commander";
|
|
16854
16854
|
|
|
16855
16855
|
// package.json
|
|
16856
|
-
var version = "0.
|
|
16856
|
+
var version = "0.14.1";
|
|
16857
16857
|
var package_default = {
|
|
16858
16858
|
name: "genlayer",
|
|
16859
16859
|
version,
|
|
@@ -16891,7 +16891,7 @@ var package_default = {
|
|
|
16891
16891
|
},
|
|
16892
16892
|
homepage: "https://github.com/yeagerai/genlayer-cli#readme",
|
|
16893
16893
|
devDependencies: {
|
|
16894
|
-
"@release-it/conventional-changelog": "^10.0.
|
|
16894
|
+
"@release-it/conventional-changelog": "^10.0.1",
|
|
16895
16895
|
"@types/dockerode": "^3.3.31",
|
|
16896
16896
|
"@types/fs-extra": "^11.0.4",
|
|
16897
16897
|
"@types/inquirer": "^9.0.7",
|
|
@@ -16905,11 +16905,11 @@ var package_default = {
|
|
|
16905
16905
|
esbuild: ">=0.25.0",
|
|
16906
16906
|
eslint: "^9.0.0",
|
|
16907
16907
|
"eslint-config-prettier": "^10.0.0",
|
|
16908
|
-
"eslint-import-resolver-typescript": "^
|
|
16908
|
+
"eslint-import-resolver-typescript": "^4.0.0",
|
|
16909
16909
|
"eslint-plugin-import": "^2.29.1",
|
|
16910
16910
|
jsdom: "^26.0.0",
|
|
16911
16911
|
prettier: "^3.2.5",
|
|
16912
|
-
"release-it": "^
|
|
16912
|
+
"release-it": "^19.0.0",
|
|
16913
16913
|
"ts-node": "^10.9.2",
|
|
16914
16914
|
typescript: "^5.4.5"
|
|
16915
16915
|
},
|
|
@@ -16982,6 +16982,18 @@ var AI_PROVIDERS_CONFIG = {
|
|
|
16982
16982
|
hint: '(You will need to provide an API key. Get free API credits at https://dev-api-form.heurist.ai/ with referral code: "genlayer")',
|
|
16983
16983
|
envVar: "HEURISTAIAPIKEY",
|
|
16984
16984
|
cliOptionValue: "heuristai"
|
|
16985
|
+
},
|
|
16986
|
+
geminiai: {
|
|
16987
|
+
name: "Gemini",
|
|
16988
|
+
hint: "(You will need to provide an API key.)",
|
|
16989
|
+
envVar: "GEMINI_API_KEY",
|
|
16990
|
+
cliOptionValue: "geminiai"
|
|
16991
|
+
},
|
|
16992
|
+
xai: {
|
|
16993
|
+
name: "XAI",
|
|
16994
|
+
hint: "(You will need to provide an API key)",
|
|
16995
|
+
envVar: "XAI_API_KEY",
|
|
16996
|
+
cliOptionValue: "xai"
|
|
16985
16997
|
}
|
|
16986
16998
|
};
|
|
16987
16999
|
|
|
@@ -28201,6 +28213,7 @@ var baseOpen = async (options) => {
|
|
|
28201
28213
|
"firefox.desktop": "firefox",
|
|
28202
28214
|
"com.microsoft.msedge": "edge",
|
|
28203
28215
|
"com.microsoft.edge": "edge",
|
|
28216
|
+
"com.microsoft.edgemac": "edge",
|
|
28204
28217
|
"microsoft-edge.desktop": "edge"
|
|
28205
28218
|
};
|
|
28206
28219
|
const flags = {
|
package/docker-compose.yml
CHANGED
|
@@ -93,7 +93,7 @@ services:
|
|
|
93
93
|
max-file: "3"
|
|
94
94
|
|
|
95
95
|
ollama:
|
|
96
|
-
image: ollama/ollama:0.
|
|
96
|
+
image: ollama/ollama:0.6.6
|
|
97
97
|
ports:
|
|
98
98
|
- 11434:11434
|
|
99
99
|
container_name: ollama
|
|
@@ -108,7 +108,7 @@ services:
|
|
|
108
108
|
max-file: "3"
|
|
109
109
|
|
|
110
110
|
postgres:
|
|
111
|
-
image: postgres:
|
|
111
|
+
image: postgres:17-alpine
|
|
112
112
|
ports:
|
|
113
113
|
- "${DBPORT:-5432}:5432"
|
|
114
114
|
environment:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genlayer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"description": "GenLayer Command Line Tool",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/yeagerai/genlayer-cli#readme",
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@release-it/conventional-changelog": "^10.0.
|
|
38
|
+
"@release-it/conventional-changelog": "^10.0.1",
|
|
39
39
|
"@types/dockerode": "^3.3.31",
|
|
40
40
|
"@types/fs-extra": "^11.0.4",
|
|
41
41
|
"@types/inquirer": "^9.0.7",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"esbuild": ">=0.25.0",
|
|
50
50
|
"eslint": "^9.0.0",
|
|
51
51
|
"eslint-config-prettier": "^10.0.0",
|
|
52
|
-
"eslint-import-resolver-typescript": "^
|
|
52
|
+
"eslint-import-resolver-typescript": "^4.0.0",
|
|
53
53
|
"eslint-plugin-import": "^2.29.1",
|
|
54
54
|
"jsdom": "^26.0.0",
|
|
55
55
|
"prettier": "^3.2.5",
|
|
56
|
-
"release-it": "^
|
|
56
|
+
"release-it": "^19.0.0",
|
|
57
57
|
"ts-node": "^10.9.2",
|
|
58
58
|
"typescript": "^5.4.5"
|
|
59
59
|
},
|
|
@@ -23,8 +23,8 @@ export type RunningPlatform = (typeof AVAILABLE_PLATFORMS)[number];
|
|
|
23
23
|
export const STARTING_TIMEOUT_WAIT_CYLCE = 2000;
|
|
24
24
|
export const STARTING_TIMEOUT_ATTEMPTS = 120;
|
|
25
25
|
|
|
26
|
-
export type AiProviders = "ollama" | "openai" | "heuristai";
|
|
27
|
-
export type AiProvidersEnvVars = "ollama" | "OPENAIKEY" | "HEURISTAIAPIKEY";
|
|
26
|
+
export type AiProviders = "ollama" | "openai" | "heuristai" | "geminiai" | "xai";
|
|
27
|
+
export type AiProvidersEnvVars = "ollama" | "OPENAIKEY" | "HEURISTAIAPIKEY" | "GEMINI_API_KEY" | "XAI_API_KEY";
|
|
28
28
|
export type AiProvidersConfigType = {
|
|
29
29
|
[key in AiProviders]: {name: string; hint: string; envVar?: AiProvidersEnvVars; cliOptionValue: string};
|
|
30
30
|
};
|
|
@@ -47,4 +47,16 @@ export const AI_PROVIDERS_CONFIG: AiProvidersConfigType = {
|
|
|
47
47
|
envVar: "HEURISTAIAPIKEY",
|
|
48
48
|
cliOptionValue: "heuristai",
|
|
49
49
|
},
|
|
50
|
+
geminiai: {
|
|
51
|
+
name: "Gemini",
|
|
52
|
+
hint: '(You will need to provide an API key.)',
|
|
53
|
+
envVar: "GEMINI_API_KEY",
|
|
54
|
+
cliOptionValue: "geminiai",
|
|
55
|
+
},
|
|
56
|
+
xai: {
|
|
57
|
+
name: "XAI",
|
|
58
|
+
hint: '(You will need to provide an API key)',
|
|
59
|
+
envVar: "XAI_API_KEY",
|
|
60
|
+
cliOptionValue: "xai",
|
|
61
|
+
},
|
|
50
62
|
};
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"": {
|
|
7
7
|
"name": "genlayer-project",
|
|
8
8
|
"devDependencies": {
|
|
9
|
-
"genlayer-js": "^0.
|
|
9
|
+
"genlayer-js": "^0.9.0"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
"node_modules/@adraffy/ens-normalize": {
|
|
@@ -1403,9 +1403,9 @@
|
|
|
1403
1403
|
}
|
|
1404
1404
|
},
|
|
1405
1405
|
"node_modules/genlayer-js": {
|
|
1406
|
-
"version": "0.
|
|
1407
|
-
"resolved": "https://registry.npmjs.org/genlayer-js/-/genlayer-js-0.
|
|
1408
|
-
"integrity": "sha512-
|
|
1406
|
+
"version": "0.9.0",
|
|
1407
|
+
"resolved": "https://registry.npmjs.org/genlayer-js/-/genlayer-js-0.9.0.tgz",
|
|
1408
|
+
"integrity": "sha512-PBG9k7g9/uvl33DIs9bVTb+bdaHnbmXwphsh4fAUmv5CLTLKQtfLqQ7+OXFFVq56txs9geldr+g7ulgd8YtCGQ==",
|
|
1409
1409
|
"dev": true,
|
|
1410
1410
|
"license": "MIT",
|
|
1411
1411
|
"dependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
requests==2.
|
|
2
|
-
python-dotenv==1.0
|
|
3
|
-
pytest==8.
|
|
1
|
+
requests==2.32.2
|
|
2
|
+
python-dotenv==1.1.0
|
|
3
|
+
pytest==8.3.5
|
|
4
4
|
pytest-mock==3.14.0
|
|
5
|
-
eth-account==0.13.
|
|
6
|
-
eth-utils==5.
|
|
5
|
+
eth-account==0.13.7
|
|
6
|
+
eth-utils==5.3.0
|