eitri-cli 1.46.0 → 1.47.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.
@@ -10,6 +10,7 @@
10
10
  "eitri",
11
11
  "github",
12
12
  "httpmock",
13
+ "hugin",
13
14
  "luminus",
14
15
  "meitri",
15
16
  "miniapp",
@@ -25,8 +25,8 @@ clean_path = "/sources"
25
25
  shared_tags_json_path = "/user/:workspaceId/index.json"
26
26
  setup = "/v2/workspace/setup"
27
27
  version = "/version"
28
- upload_all = "/uploadAll"
29
- file_upload = "/fileupload"
28
+ upload_all = "/file-upload/uploadAll"
29
+ file_upload = "/file-upload/single"
30
30
  setup_app = "/v2/workspace/setup-app"
31
31
  publish = "/publish"
32
32
 
@@ -25,8 +25,8 @@ clean_path = "/sources"
25
25
  shared_tags_json_path = "/user/:workspaceId/index.json"
26
26
  setup = "/v2/workspace/setup"
27
27
  version = "/version"
28
- upload_all = "/uploadAll"
29
- file_upload = "/fileupload"
28
+ upload_all = "/file-upload/uploadAll"
29
+ file_upload = "/file-upload/single"
30
30
  setup_app = "/v2/workspace/setup-app"
31
31
  publish = "/publish"
32
32
 
@@ -25,8 +25,8 @@ clean_path = "/sources"
25
25
  shared_tags_json_path = "/user/:workspaceId/index.json"
26
26
  setup = "/v2/workspace/setup"
27
27
  version = "/version"
28
- upload_all = "/uploadAll"
29
- file_upload = "/fileupload"
28
+ upload_all = "/file-upload/uploadAll"
29
+ file_upload = "/file-upload/single"
30
30
  setup_app = "/v2/workspace/setup-app"
31
31
  publish = "/publish"
32
32
 
@@ -9,7 +9,7 @@ clean_path = "/sources"
9
9
  shared_tags_json_path = "/user/:workspaceId/index.json"
10
10
  setup = "/v2/workspace/setup"
11
11
  version = "/version"
12
- upload_all = "/uploadAll"
13
- file_upload = "/fileupload"
12
+ upload_all = "/file-upload/uploadAll"
13
+ file_upload = "/file-upload/single"
14
14
  setup_app = "/v2/workspace/setup-app"
15
15
  publish = "/publish"
@@ -25,8 +25,8 @@ clean_path = "/sources"
25
25
  shared_tags_json_path = "/user/:workspaceId/index.json"
26
26
  setup = "/v2/workspace/setup"
27
27
  version = "/version"
28
- upload_all = "/uploadAll"
29
- file_upload = "/fileupload"
28
+ upload_all = "/file-upload/uploadAll"
29
+ file_upload = "/file-upload/single"
30
30
  setup_app = "/v2/workspace/setup-app"
31
31
  publish = "/publish"
32
32
 
@@ -54,6 +54,12 @@ export interface TestingArgs {
54
54
  verbose?: boolean
55
55
  watch?: boolean
56
56
  }
57
+ export interface SetupVariablesArgs {
58
+ env?: string
59
+ llm?: string
60
+ apiKey?: string
61
+ model?: string
62
+ }
57
63
  export declare function publish(args: PublishArgs): Promise<void>
58
64
  export declare function runTest(args: TestingArgs): Promise<void>
59
65
  export declare function eitriLibs(eitriLibsArgs: EitriLibsArguments): Promise<void>
@@ -84,3 +90,6 @@ export declare namespace workspace {
84
90
  */
85
91
  export function select(args: SelectArgs): Promise<void>
86
92
  }
93
+ export declare namespace agents {
94
+ export function setup(args: SetupVariablesArgs): Promise<void>
95
+ }
@@ -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, selfUpdate, gpt, connectionCheck, pushVersion, login, version, app, workspace } = nativeBinding
313
+ const { publish, runTest, eitriLibs, doctor, start, create, updateChecker, selfUpdate, gpt, connectionCheck, pushVersion, login, version, app, workspace, agents } = nativeBinding
314
314
 
315
315
  module.exports.publish = publish
316
316
  module.exports.runTest = runTest
@@ -327,3 +327,4 @@ module.exports.login = login
327
327
  module.exports.version = version
328
328
  module.exports.app = app
329
329
  module.exports.workspace = workspace
330
+ module.exports.agents = agents
package/index.js CHANGED
@@ -8,6 +8,7 @@ const AppCommand = require("./src/modules/app/AppCommand");
8
8
  const debug = require("debug")("eitri:run");
9
9
 
10
10
  const globalEitriCLIV2 = require("./eitri-cli-v2/index.js");
11
+ const AgentsCommands = require("./src/modules/agents/AgentsCommands");
11
12
 
12
13
  const checkVerbose = () => {
13
14
 
@@ -207,6 +208,7 @@ const run = async () => {
207
208
 
208
209
  program.addCommand(VegvisirCommand());
209
210
  program.addCommand(AppCommand());
211
+ program.addCommand(AgentsCommands());
210
212
 
211
213
  if (
212
214
  process.argv.length > 2 &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.46.0",
3
+ "version": "1.47.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": {
@@ -0,0 +1,24 @@
1
+ const commander = require("commander");
2
+ const eitriCLIV2 = require("../../../eitri-cli-v2/index.js");
3
+
4
+ module.exports = function AgentsCommand() {
5
+
6
+ const agentsCommand = commander
7
+ .command("agents")
8
+ .description(
9
+ "Gerencia os agentes de IA do Eitri-App"
10
+ );
11
+
12
+ agentsCommand
13
+ .command("setup")
14
+ .description("Faz o setup das variáveis de ambiente, seja do Workspace ou de Produção")
15
+ .option("-e, --env <env>", "Ambiente de produção ou workspace. Default: workspace. Options: workspace, production")
16
+ .option("-l, --llm <llm>", "Nome do LLM")
17
+ .option("-k, --api-key <api-key>", "Chave de API do LLM")
18
+ .option("-m, --model <model>", "Modelo do LLM")
19
+ .action(async (cmdObj) => {
20
+ await eitriCLIV2.agents.setup(cmdObj)
21
+ });
22
+
23
+ return agentsCommand
24
+ }