@kevisual/cli 0.1.32 → 0.1.33

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/dist/envision.js CHANGED
@@ -22530,8 +22530,8 @@ InitEnv.init();
22530
22530
  var version = useContextKey("version", () => {
22531
22531
  let version2 = "0.0.64";
22532
22532
  try {
22533
- if ("0.1.31")
22534
- version2 = "0.1.31";
22533
+ if (ENVISION_VERSION)
22534
+ version2 = ENVISION_VERSION;
22535
22535
  } catch (e) {}
22536
22536
  return version2;
22537
22537
  });
@@ -27703,7 +27703,7 @@ var pick = (obj, keys) => {
27703
27703
  }, {});
27704
27704
  };
27705
27705
  var loginCommand = new Command("login").description("Login to the application").option("-u, --username <username>", "Specify username").option("-p, --password <password>", "Specify password").option("-f, --force", "Force login").option("-w, --web", "Login on the web").option("-e, --env", "Login from KEVISUAL_TOKEN environment variable").action(async (options) => {
27706
- let { username, password: password2 } = options;
27706
+ let { username, password } = options;
27707
27707
  if (options.web) {
27708
27708
  await loginInCommand();
27709
27709
  return;
@@ -27727,8 +27727,8 @@ var loginCommand = new Command("login").description("Login to the application").
27727
27727
  message: "Enter your username:"
27728
27728
  });
27729
27729
  }
27730
- if (!password2) {
27731
- password2 = await password2({
27730
+ if (!password) {
27731
+ password = await password({
27732
27732
  message: "Enter your password:"
27733
27733
  });
27734
27734
  }
@@ -27745,7 +27745,7 @@ var loginCommand = new Command("login").description("Login to the application").
27745
27745
  }
27746
27746
  const res = await queryLogin.login({
27747
27747
  username,
27748
- password: password2
27748
+ password
27749
27749
  }).catch((err) => {
27750
27750
  return { code: 500, message: err.message || "" };
27751
27751
  });
@@ -37845,7 +37845,7 @@ var downloadFiles = async (files, opts) => {
37845
37845
  };
37846
37846
  };
37847
37847
 
37848
- // src/index.ts
37848
+ // src/oldindex.ts
37849
37849
  var runParser = async (argv) => {
37850
37850
  program.parse(argv);
37851
37851
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kevisual/cli",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "description": "envision 命令行工具",
5
5
  "type": "module",
6
6
  "basename": "/root/cli",
@@ -15,6 +15,7 @@
15
15
  "bin": {
16
16
  "envision": "bin/envision.js",
17
17
  "ev": "bin/envision.js",
18
+ "ev-next": "bin/cli.js",
18
19
  "assistant": "bin/assistant.js",
19
20
  "assistant-server": "bin/assistant-server.js",
20
21
  "asst": "bin/assistant.js",
@@ -26,12 +27,12 @@
26
27
  "files": [
27
28
  "dist",
28
29
  "bin",
29
- "bun.config.mjs"
30
+ "bun.config.ts"
30
31
  ],
31
32
  "scripts": {
32
- "dev": "bun src/run.ts ",
33
+ "dev": "bun src/cli.ts ",
33
34
  "dev:server": "cd assistant && bun --watch src/run-server.ts ",
34
- "build": "rimraf dist && bun run bun.config.mjs",
35
+ "build": "rimraf dist && bun run bun.config.ts",
35
36
  "deploy": "ev pack -u -p -m no",
36
37
  "postbuild": "cd assistant && pnpm build "
37
38
  },
@@ -58,11 +59,13 @@
58
59
  "nanoid": "^5.1.7",
59
60
  "pm2": "latest",
60
61
  "semver": "^7.7.4",
61
- "unstorage": "^1.17.4"
62
+ "unstorage": "^1.17.4",
63
+ "zod": "^4.3.6"
62
64
  },
63
65
  "devDependencies": {
64
66
  "@kevisual/api": "^0.0.65",
65
67
  "@kevisual/cnb": "^0.0.60",
68
+ "@kevisual/code-builder": "^0.0.6",
66
69
  "@kevisual/dts": "^0.0.4",
67
70
  "@kevisual/load": "^0.0.6",
68
71
  "@kevisual/logger": "^0.0.4",
@@ -76,13 +79,14 @@
76
79
  "chalk": "^5.6.2",
77
80
  "commander": "^14.0.3",
78
81
  "crypto-js": "^4.2.0",
82
+ "es-toolkit": "^1.45.1",
79
83
  "fast-glob": "^3.3.3",
80
84
  "filesize": "^11.0.13",
81
85
  "form-data": "^4.0.5",
82
86
  "ignore": "^7.0.5",
83
87
  "jsonwebtoken": "^9.0.3",
84
88
  "pm2": "^6.0.14",
85
- "tar": "^7.5.12",
89
+ "tar": "^7.5.13",
86
90
  "zustand": "^5.0.12"
87
91
  },
88
92
  "engines": {
package/bun.config.mjs DELETED
@@ -1,19 +0,0 @@
1
- // @ts-check
2
- // https://bun.sh/docs/bundler
3
- // @ts-ignore
4
- import pkg from './package.json';
5
- // bun run src/index.ts --
6
- const external = ['bun'];
7
- await Bun.build({
8
- target: 'node',
9
- format: 'esm',
10
- entrypoints: ['./src/index.ts'],
11
- outdir: './dist',
12
- naming: {
13
- entry: 'envision.js',
14
- },
15
- external: external,
16
- define: {
17
- ENVISION_VERSION: JSON.stringify(pkg.version),
18
- },
19
- });