genlayer 0.0.21 → 0.0.22
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/CHANGELOG.md +7 -0
- package/dist/index.js +7 -7
- package/package.json +1 -1
- package/src/commands/general/init.ts +3 -3
- package/src/lib/config/simulator.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## 0.0.22 (2024-04-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* running on windows ([#18](https://github.com/yeagerai/genlayer-cli/issues/18)) ([5017bb6](https://github.com/yeagerai/genlayer-cli/commit/5017bb68b7cbfd1f18b73cf36db9f925207a708d))
|
|
9
|
+
|
|
3
10
|
## 0.0.21 (2024-04-30)
|
|
4
11
|
|
|
5
12
|
## 0.0.20 (2024-04-26)
|
package/dist/index.js
CHANGED
|
@@ -39895,7 +39895,7 @@ var {
|
|
|
39895
39895
|
} = import_index.default;
|
|
39896
39896
|
|
|
39897
39897
|
// package.json
|
|
39898
|
-
var version = "0.0.
|
|
39898
|
+
var version = "0.0.22";
|
|
39899
39899
|
|
|
39900
39900
|
// src/lib/config/text.ts
|
|
39901
39901
|
var CLI_DESCRIPTION = "GenLayer CLI is a development environment for the GenLayer ecosystem. It allows developers to interact with the protocol by creating accounts, sending transactions, and working with Intelligent Contracts by testing, debugging, and deploying them.";
|
|
@@ -42492,17 +42492,17 @@ var DEFAULT_JSON_RPC_URL = "http://localhost:4000/api";
|
|
|
42492
42492
|
var DEFAULT_REPO_GH_URL = "git@github.com:yeagerai/genlayer-simulator.git";
|
|
42493
42493
|
var DEFAULT_CONFIG_SIMULATOR_COMMAND = (simulatorLocation) => ({
|
|
42494
42494
|
darwin: `cd ${simulatorLocation} && cp .env.example .env`,
|
|
42495
|
-
win32: `cd ${simulatorLocation} && xcopy .env.example .env`,
|
|
42495
|
+
win32: `cd /d ${simulatorLocation} && xcopy .env.example .env /Y`,
|
|
42496
42496
|
linux: `cd ${simulatorLocation} && cp .env.example .env`
|
|
42497
42497
|
});
|
|
42498
42498
|
var DEFAULT_RUN_SIMULATOR_COMMAND = (simulatorLocation) => ({
|
|
42499
42499
|
darwin: `osascript -e 'tell application "Terminal" to do script "cd ${simulatorLocation} && docker compose build && docker compose up"'`,
|
|
42500
|
-
win32: `start cmd.exe /
|
|
42500
|
+
win32: `start cmd.exe /c "cd /d ${simulatorLocation} && docker compose build && docker compose up"`,
|
|
42501
42501
|
linux: `x-terminal-emulator -e bash -c 'cd ${simulatorLocation} && docker compose build && docker compose up; echo "Press enter to exit"; read'`
|
|
42502
42502
|
});
|
|
42503
42503
|
var DEFAULT_RUN_OLLAMA_COMMAND = (simulatorLocation) => ({
|
|
42504
42504
|
darwin: `osascript -e 'tell application "Terminal" to do script "cd ${simulatorLocation} && docker exec -it ollama ollama run llama2"'`,
|
|
42505
|
-
win32: `start cmd.exe /k "cd ${simulatorLocation} && docker exec -it ollama ollama run llama2"`,
|
|
42505
|
+
win32: `start cmd.exe /k "cd /d ${simulatorLocation} && docker exec -it ollama ollama run llama2"`,
|
|
42506
42506
|
linux: `x-terminal-emulator -e bash -c 'cd ${simulatorLocation} && docker exec -it ollama ollama run llama2; echo "Press enter to exit"; read'`
|
|
42507
42507
|
});
|
|
42508
42508
|
var AVAILABLE_PLATFORMS = ["darwin", "win32", "linux"];
|
|
@@ -44188,7 +44188,7 @@ function initAction(options) {
|
|
|
44188
44188
|
}
|
|
44189
44189
|
console.log("Running the GenLayer Simulator...");
|
|
44190
44190
|
try {
|
|
44191
|
-
|
|
44191
|
+
runSimulator();
|
|
44192
44192
|
} catch (error) {
|
|
44193
44193
|
console.error(error);
|
|
44194
44194
|
return;
|
|
@@ -44201,7 +44201,7 @@ function initAction(options) {
|
|
|
44201
44201
|
}
|
|
44202
44202
|
if (!initialized && error === "TIMEOUT") {
|
|
44203
44203
|
console.error(
|
|
44204
|
-
"The simulator is taking too
|
|
44204
|
+
"The simulator is taking too long to initialize. Please try again after the simulator is ready."
|
|
44205
44205
|
);
|
|
44206
44206
|
return;
|
|
44207
44207
|
}
|
|
@@ -44211,7 +44211,7 @@ function initAction(options) {
|
|
|
44211
44211
|
return;
|
|
44212
44212
|
}
|
|
44213
44213
|
if (selectedLlmProviders.includes("ollama")) {
|
|
44214
|
-
|
|
44214
|
+
runOllamaModel();
|
|
44215
44215
|
}
|
|
44216
44216
|
console.log("Initializing the database...");
|
|
44217
44217
|
try {
|
package/package.json
CHANGED
|
@@ -130,7 +130,7 @@ export async function initAction(options: InitActionOptions) {
|
|
|
130
130
|
// Run the GenLayer Simulator
|
|
131
131
|
console.log("Running the GenLayer Simulator...");
|
|
132
132
|
try {
|
|
133
|
-
|
|
133
|
+
runSimulator();
|
|
134
134
|
} catch (error) {
|
|
135
135
|
console.error(error);
|
|
136
136
|
return;
|
|
@@ -144,7 +144,7 @@ export async function initAction(options: InitActionOptions) {
|
|
|
144
144
|
}
|
|
145
145
|
if (!initialized && error === "TIMEOUT") {
|
|
146
146
|
console.error(
|
|
147
|
-
"The simulator is taking too
|
|
147
|
+
"The simulator is taking too long to initialize. Please try again after the simulator is ready.",
|
|
148
148
|
);
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
@@ -156,7 +156,7 @@ export async function initAction(options: InitActionOptions) {
|
|
|
156
156
|
|
|
157
157
|
// Ollama doesn't need changes in configuration, we just run it
|
|
158
158
|
if (selectedLlmProviders.includes("ollama")) {
|
|
159
|
-
|
|
159
|
+
runOllamaModel();
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
// Initialize the database
|
|
@@ -2,17 +2,17 @@ export const DEFAULT_JSON_RPC_URL = "http://localhost:4000/api";
|
|
|
2
2
|
export const DEFAULT_REPO_GH_URL = "git@github.com:yeagerai/genlayer-simulator.git";
|
|
3
3
|
export const DEFAULT_CONFIG_SIMULATOR_COMMAND = (simulatorLocation: string) => ({
|
|
4
4
|
darwin: `cd ${simulatorLocation} && cp .env.example .env`,
|
|
5
|
-
win32: `cd ${simulatorLocation} && xcopy .env.example .env`,
|
|
5
|
+
win32: `cd /d ${simulatorLocation} && xcopy .env.example .env /Y`,
|
|
6
6
|
linux: `cd ${simulatorLocation} && cp .env.example .env`,
|
|
7
7
|
});
|
|
8
8
|
export const DEFAULT_RUN_SIMULATOR_COMMAND = (simulatorLocation: string) => ({
|
|
9
9
|
darwin: `osascript -e 'tell application "Terminal" to do script "cd ${simulatorLocation} && docker compose build && docker compose up"'`,
|
|
10
|
-
win32: `start cmd.exe /
|
|
10
|
+
win32: `start cmd.exe /c "cd /d ${simulatorLocation} && docker compose build && docker compose up"`,
|
|
11
11
|
linux: `x-terminal-emulator -e bash -c 'cd ${simulatorLocation} && docker compose build && docker compose up; echo "Press enter to exit"; read'`,
|
|
12
12
|
});
|
|
13
13
|
export const DEFAULT_RUN_OLLAMA_COMMAND = (simulatorLocation: string) => ({
|
|
14
14
|
darwin: `osascript -e 'tell application "Terminal" to do script "cd ${simulatorLocation} && docker exec -it ollama ollama run llama2"'`,
|
|
15
|
-
win32: `start cmd.exe /k "cd ${simulatorLocation} && docker exec -it ollama ollama run llama2"`,
|
|
15
|
+
win32: `start cmd.exe /k "cd /d ${simulatorLocation} && docker exec -it ollama ollama run llama2"`,
|
|
16
16
|
linux: `x-terminal-emulator -e bash -c 'cd ${simulatorLocation} && docker exec -it ollama ollama run llama2; echo "Press enter to exit"; read'`,
|
|
17
17
|
});
|
|
18
18
|
export const AVAILABLE_PLATFORMS = ["darwin", "win32", "linux"] as const;
|