eitri-cli 1.32.0 → 1.33.0

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.
@@ -20,7 +20,8 @@
20
20
  "uuid",
21
21
  "vegvisir",
22
22
  "Vegvisir",
23
- "walkdir"
23
+ "walkdir",
24
+ "webbrowser"
24
25
  ],
25
26
  "rust-analyzer.showUnlinkedFileNotification": false,
26
27
  "cSpell.language": "en,pt,pt-BR"
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "baseUrl": ".",
4
+ "paths": {
5
+ "eitri-test-1729704642332-shared": [
6
+ "./eitri-test-1729704642332-shared/src/export.js"
7
+ ]
8
+ }
9
+ },
10
+ "include": [
11
+ "./**/*"
12
+ ]
13
+ }
@@ -51,6 +51,7 @@ base64 = "0.22.1"
51
51
  dialoguer = "0.11.0"
52
52
  sysinfo = "0.31.2"
53
53
  ratatui = "0.28.1"
54
+ webbrowser = "1.0.2"
54
55
 
55
56
  [dependencies.uuid]
56
57
  version = "1.8.0"
@@ -19,6 +19,10 @@ export interface EitriLibsArguments {
19
19
  bifrost?: boolean
20
20
  luminus?: boolean
21
21
  }
22
+ export interface LoginArgs {
23
+ verbose?: boolean
24
+ yes?: boolean
25
+ }
22
26
  export interface PushArgs {
23
27
  verbose?: boolean
24
28
  shared?: boolean
@@ -39,6 +43,7 @@ export declare function updateChecker(): void
39
43
  export declare function gpt(): Promise<void>
40
44
  export declare function connectionCheck(): Promise<void>
41
45
  export declare function pushVersion(args: PushArgs): Promise<void>
46
+ export declare function login(args: LoginArgs): Promise<void>
42
47
  export declare namespace app {
43
48
  export function start(args: StartArguments): Promise<void>
44
49
  export function appLogs(): 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, gpt, connectionCheck, pushVersion, app, workspace } = nativeBinding
313
+ const { publish, runTest, eitriLibs, doctor, start, create, updateChecker, gpt, connectionCheck, pushVersion, login, app, workspace } = nativeBinding
314
314
 
315
315
  module.exports.publish = publish
316
316
  module.exports.runTest = runTest
@@ -322,5 +322,6 @@ module.exports.updateChecker = updateChecker
322
322
  module.exports.gpt = gpt
323
323
  module.exports.connectionCheck = connectionCheck
324
324
  module.exports.pushVersion = pushVersion
325
+ module.exports.login = login
325
326
  module.exports.app = app
326
327
  module.exports.workspace = workspace
package/index.js CHANGED
@@ -75,10 +75,9 @@ const run = async () => {
75
75
  .option("--yes", "Aceita o redirecionamento para o console")
76
76
  .option("-v, --verbose", "Exibe mais logs")
77
77
  .action(async (cmdObj) => {
78
- const isLoginV1 = process.env.FT_LOGIN_V1
79
- if (isLoginV1) {
80
- console.log("\n\n Iniciando login (@deprecated) \n");
81
- require("./src/cmd/login")(cmdObj);
78
+ const isLoginV3 = process.env.FT_LOGIN_V3
79
+ if (isLoginV3 === 'true') {
80
+ await globalEitriCLIV2.login(cmdObj)
82
81
  return
83
82
  }
84
83
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.32.0",
3
+ "version": "1.33.0",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {