eitri-cli 1.27.1 → 1.28.0-beta.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.
@@ -3,6 +3,7 @@
3
3
  "bifrost",
4
4
  "development_deeplink",
5
5
  "developmentDeeplink",
6
+ "dialoguer",
6
7
  "eitri",
7
8
  "github",
8
9
  "httpmock",
@@ -45,6 +45,7 @@ fs_extra = "1.3.0"
45
45
  base64 = "0.22.1"
46
46
  dialoguer = "0.11.0"
47
47
  sysinfo = "0.31.2"
48
+ ratatui = "0.28.1"
48
49
 
49
50
  [dependencies.uuid]
50
51
  version = "1.8.0"
@@ -78,3 +78,7 @@ commons_get_version = "/eitri-commons/versions/index.json"
78
78
  url = "https://cdn.83io.com.br/library"
79
79
  bifrost_versions = "/eitri-bifrost/versions/index.json"
80
80
  luminus_ui_versions = "/luminus-ui/versions/index.json"
81
+
82
+ [eitri_gpt]
83
+ url = "https://api.eitri.tech"
84
+ gpt_path = "/eitri-gpt-api/gpt"
@@ -79,3 +79,7 @@ commons_get_version = "/eitri-commons/versions/index.json"
79
79
  url = "https://cdn.83io.com.br/library"
80
80
  bifrost_versions = "/eitri-bifrost/versions/index.json"
81
81
  luminus_ui_versions = "/luminus-ui/versions/index.json"
82
+
83
+ [eitri_gpt]
84
+ url = "https://api.eitri.tech"
85
+ gpt_path = "/eitri-gpt-api/gpt"
@@ -74,3 +74,7 @@ commons_get_version = "/eitri-commons/versions/index.json"
74
74
  url = "https://cdn.83io.com.br/library"
75
75
  bifrost_versions = "/eitri-bifrost/versions/index.json"
76
76
  luminus_ui_versions = "/luminus-ui/versions/index.json"
77
+
78
+ [eitri_gpt]
79
+ url = "https://api.eitri.tech"
80
+ gpt_path = "/eitri-gpt-api/gpt"
@@ -79,3 +79,7 @@ url = "https://cdn.83io.com.br/library"
79
79
  bifrost_versions = "/eitri-bifrost/versions/index.json"
80
80
  luminus_ui_versions = "/luminus-ui/versions/index.json"
81
81
  commons_get_version = "/eitri-commons/versions/index.json"
82
+
83
+ [eitri_gpt]
84
+ url = "https://api.eitri.tech"
85
+ gpt_path = "/eitri-gpt-api/gpt"
@@ -25,6 +25,7 @@ export declare function doctor(): Promise<void>
25
25
  export declare function start(args: StartArguments): Promise<void>
26
26
  export declare function create(args: CreateArguments): Promise<void>
27
27
  export declare function updateChecker(): void
28
+ export declare function gpt(): Promise<void>
28
29
  export declare function connectionCheck(): Promise<void>
29
30
  export declare namespace app {
30
31
  export function start(args: StartArguments): Promise<void>
@@ -310,7 +310,7 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { publish, runTest, eitriLibs, doctor, start, create, updateChecker, connectionCheck, app, workspace } = nativeBinding
313
+ const { publish, runTest, eitriLibs, doctor, start, create, updateChecker, gpt, connectionCheck, app, workspace } = nativeBinding
314
314
 
315
315
  module.exports.publish = publish
316
316
  module.exports.runTest = runTest
@@ -319,6 +319,7 @@ module.exports.doctor = doctor
319
319
  module.exports.start = start
320
320
  module.exports.create = create
321
321
  module.exports.updateChecker = updateChecker
322
+ module.exports.gpt = gpt
322
323
  module.exports.connectionCheck = connectionCheck
323
324
  module.exports.app = app
324
325
  module.exports.workspace = workspace
package/index.js CHANGED
@@ -218,6 +218,16 @@ const run = async () => {
218
218
  return require("./src/cmd/runTests")(cmdObj);
219
219
  });
220
220
 
221
+ program
222
+ .command("gpt")
223
+ .description(
224
+ "Fornece um prompt para geração de Views com o Eitri-GPT."
225
+ )
226
+ .action(async (cmdObj) => {
227
+ const eitriCLIV2 = require("./eitri-cli-v2/index.js");
228
+ return await eitriCLIV2.gpt();
229
+ });
230
+
221
231
  program.addCommand(VegvisirCommand());
222
232
  program.addCommand(AppCommand());
223
233
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.27.1",
3
+ "version": "1.28.0-beta.2",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {