@kevisual/cli 0.0.88 → 0.0.90
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/assistant-opencode.d.ts +5 -0
- package/dist/assistant-opencode.js +80063 -0
- package/dist/assistant-server.js +26102 -11089
- package/dist/assistant.js +19 -10
- package/dist/envision.js +2 -2
- package/package.json +9 -4
package/dist/assistant.js
CHANGED
|
@@ -19682,7 +19682,7 @@ var require_out4 = __commonJS((exports, module) => {
|
|
|
19682
19682
|
module.exports = FastGlob;
|
|
19683
19683
|
});
|
|
19684
19684
|
|
|
19685
|
-
// ../node_modules/.pnpm/eventemitter3@5.0.
|
|
19685
|
+
// ../node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.js
|
|
19686
19686
|
var require_eventemitter3 = __commonJS((exports, module) => {
|
|
19687
19687
|
var has = Object.prototype.hasOwnProperty;
|
|
19688
19688
|
var prefix = "~";
|
|
@@ -36914,7 +36914,7 @@ var require_throttle = __commonJS((exports) => {
|
|
|
36914
36914
|
throttled === null || throttled === undefined || throttled.unsubscribe();
|
|
36915
36915
|
throttled = null;
|
|
36916
36916
|
if (trailing) {
|
|
36917
|
-
|
|
36917
|
+
send();
|
|
36918
36918
|
isComplete && subscriber.complete();
|
|
36919
36919
|
}
|
|
36920
36920
|
};
|
|
@@ -36925,7 +36925,7 @@ var require_throttle = __commonJS((exports) => {
|
|
|
36925
36925
|
var startThrottle = function(value) {
|
|
36926
36926
|
return throttled = innerFrom_1.innerFrom(durationSelector(value)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling));
|
|
36927
36927
|
};
|
|
36928
|
-
var
|
|
36928
|
+
var send = function() {
|
|
36929
36929
|
if (hasValue) {
|
|
36930
36930
|
hasValue = false;
|
|
36931
36931
|
var value = sendValue;
|
|
@@ -36937,7 +36937,7 @@ var require_throttle = __commonJS((exports) => {
|
|
|
36937
36937
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
|
36938
36938
|
hasValue = true;
|
|
36939
36939
|
sendValue = value;
|
|
36940
|
-
!(throttled && !throttled.closed) && (leading ?
|
|
36940
|
+
!(throttled && !throttled.closed) && (leading ? send() : startThrottle(value));
|
|
36941
36941
|
}, function() {
|
|
36942
36942
|
isComplete = true;
|
|
36943
36943
|
!(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();
|
|
@@ -44250,6 +44250,7 @@ function parseArgs(args) {
|
|
|
44250
44250
|
}
|
|
44251
44251
|
var parseHomeArg = (homedir2) => {
|
|
44252
44252
|
const args = process.argv.slice(2);
|
|
44253
|
+
const execPath = process.execPath;
|
|
44253
44254
|
const options = parseArgs(args);
|
|
44254
44255
|
let _configDir = undefined;
|
|
44255
44256
|
if (options.home && homedir2) {
|
|
@@ -44257,7 +44258,10 @@ var parseHomeArg = (homedir2) => {
|
|
|
44257
44258
|
} else if (options.root) {
|
|
44258
44259
|
_configDir = options.root;
|
|
44259
44260
|
}
|
|
44261
|
+
const checkUrl = [".opencode", "bin/opencode", "opencode.exe"];
|
|
44262
|
+
const isOpencode = checkUrl.some((item) => execPath.includes(item));
|
|
44260
44263
|
return {
|
|
44264
|
+
isOpencode,
|
|
44261
44265
|
options,
|
|
44262
44266
|
configDir: _configDir
|
|
44263
44267
|
};
|
|
@@ -44278,11 +44282,8 @@ var isDeno = typeof Deno !== "undefined" && Deno?.version != null && Deno?.versi
|
|
|
44278
44282
|
// src/module/assistant/proxy/s3.ts
|
|
44279
44283
|
var mapS3 = new Map;
|
|
44280
44284
|
|
|
44281
|
-
// src/module/assistant/proxy/file-proxy.ts
|
|
44282
|
-
var import_send = __toESM(require_send(), 1);
|
|
44283
|
-
|
|
44284
44285
|
// src/module/assistant/proxy/index.ts
|
|
44285
|
-
var
|
|
44286
|
+
var import_send = __toESM(require_send(), 1);
|
|
44286
44287
|
// ../node_modules/.pnpm/@kevisual+local-app-manager@0.1.32_supports-color@10.2.2/node_modules/@kevisual/local-app-manager/dist/manager.mjs
|
|
44287
44288
|
var exports_manager = {};
|
|
44288
44289
|
__export(exports_manager, {
|
|
@@ -54023,7 +54024,7 @@ var import_fast_glob2 = __toESM(require_out4(), 1);
|
|
|
54023
54024
|
import path6 from "node:path";
|
|
54024
54025
|
import fs7 from "node:fs";
|
|
54025
54026
|
|
|
54026
|
-
// ../node_modules/.pnpm/eventemitter3@5.0.
|
|
54027
|
+
// ../node_modules/.pnpm/eventemitter3@5.0.4/node_modules/eventemitter3/index.mjs
|
|
54027
54028
|
var import__2 = __toESM(require_eventemitter3(), 1);
|
|
54028
54029
|
|
|
54029
54030
|
// src/module/remote-app/remote-app.ts
|
|
@@ -55101,12 +55102,14 @@ var randomId = () => Math.random().toString(36).substring(2, 8);
|
|
|
55101
55102
|
|
|
55102
55103
|
class AssistantInit extends AssistantConfig {
|
|
55103
55104
|
#query;
|
|
55105
|
+
initWorkspace = false;
|
|
55104
55106
|
constructor(opts) {
|
|
55105
55107
|
const configDir3 = opts?.path || process.cwd();
|
|
55106
55108
|
super({
|
|
55107
55109
|
configDir: configDir3,
|
|
55108
55110
|
init: false
|
|
55109
55111
|
});
|
|
55112
|
+
this.initWorkspace = opts?.initWorkspace ?? true;
|
|
55110
55113
|
if (opts?.init) {
|
|
55111
55114
|
this.init();
|
|
55112
55115
|
}
|
|
@@ -55118,8 +55121,14 @@ class AssistantInit extends AssistantConfig {
|
|
|
55118
55121
|
if (!this.checkConfigPath()) {
|
|
55119
55122
|
console.log(chalk2.blue("助手路径不存在,正在创建..."));
|
|
55120
55123
|
super.init(configDir3);
|
|
55124
|
+
if (!this.initWorkspace) {
|
|
55125
|
+
return;
|
|
55126
|
+
}
|
|
55121
55127
|
} else {
|
|
55122
55128
|
super.init(configDir3);
|
|
55129
|
+
if (!this.initWorkspace) {
|
|
55130
|
+
return;
|
|
55131
|
+
}
|
|
55123
55132
|
const assistantConfig3 = this;
|
|
55124
55133
|
console.log(chalk2.yellow("助手路径已存在"), chalk2.green(assistantConfig3.configDir));
|
|
55125
55134
|
}
|
|
@@ -58739,7 +58748,7 @@ var stop5 = new Command("stop").description("获取package.json中app参数并
|
|
|
58739
58748
|
});
|
|
58740
58749
|
program.addCommand(stop5);
|
|
58741
58750
|
|
|
58742
|
-
// ../node_modules/.pnpm/@kevisual+ai@0.0.
|
|
58751
|
+
// ../node_modules/.pnpm/@kevisual+ai@0.0.21/node_modules/@kevisual/ai/dist/ai-provider.js
|
|
58743
58752
|
import { createRequire as createRequire3 } from "node:module";
|
|
58744
58753
|
var __create3 = Object.create;
|
|
58745
58754
|
var __getProtoOf3 = Object.getPrototypeOf;
|
package/dist/envision.js
CHANGED
|
@@ -22327,8 +22327,8 @@ InitEnv.init();
|
|
|
22327
22327
|
var version = useContextKey("version", () => {
|
|
22328
22328
|
let version2 = "0.0.64";
|
|
22329
22329
|
try {
|
|
22330
|
-
if ("0.0.
|
|
22331
|
-
version2 = "0.0.
|
|
22330
|
+
if ("0.0.90")
|
|
22331
|
+
version2 = "0.0.90";
|
|
22332
22332
|
} catch (e) {}
|
|
22333
22333
|
return version2;
|
|
22334
22334
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kevisual/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.90",
|
|
4
4
|
"description": "envision 命令行工具",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"basename": "/root/cli",
|
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
"asst": "bin/assistant.js",
|
|
21
21
|
"asst-server": "bin/assistant-server.js"
|
|
22
22
|
},
|
|
23
|
+
"exports": {
|
|
24
|
+
".": "./dist/assistant-opencode.js"
|
|
25
|
+
},
|
|
23
26
|
"files": [
|
|
24
27
|
"dist",
|
|
25
28
|
"bin",
|
|
@@ -45,17 +48,18 @@
|
|
|
45
48
|
"@kevisual/app": "^0.0.2",
|
|
46
49
|
"@kevisual/context": "^0.0.4",
|
|
47
50
|
"@kevisual/use-config": "^1.0.28",
|
|
51
|
+
"@opencode-ai/sdk": "^1.1.26",
|
|
48
52
|
"@types/busboy": "^1.5.4",
|
|
49
53
|
"busboy": "^1.6.0",
|
|
50
|
-
"eventemitter3": "^5.0.
|
|
54
|
+
"eventemitter3": "^5.0.4",
|
|
51
55
|
"lowdb": "^7.0.1",
|
|
56
|
+
"pm2": "latest",
|
|
52
57
|
"lru-cache": "^11.2.4",
|
|
53
58
|
"micromatch": "^4.0.8",
|
|
54
59
|
"semver": "^7.7.3",
|
|
55
60
|
"unstorage": "^1.17.4"
|
|
56
61
|
},
|
|
57
62
|
"devDependencies": {
|
|
58
|
-
"pm2": "^6.0.14",
|
|
59
63
|
"@kevisual/dts": "^0.0.3",
|
|
60
64
|
"@kevisual/load": "^0.0.6",
|
|
61
65
|
"@kevisual/logger": "^0.0.4",
|
|
@@ -75,7 +79,8 @@
|
|
|
75
79
|
"form-data": "^4.0.5",
|
|
76
80
|
"ignore": "^7.0.5",
|
|
77
81
|
"jsonwebtoken": "^9.0.3",
|
|
78
|
-
"
|
|
82
|
+
"pm2": "^6.0.14",
|
|
83
|
+
"tar": "^7.5.4",
|
|
79
84
|
"zustand": "^5.0.10"
|
|
80
85
|
},
|
|
81
86
|
"engines": {
|