@kevisual/cli 0.1.0 → 0.1.1
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.js +28174 -9043
- package/dist/assistant-server.js +26609 -6727
- package/dist/assistant.js +21009 -12025
- package/dist/envision.js +46 -15
- package/package.json +4 -4
package/dist/envision.js
CHANGED
|
@@ -3140,12 +3140,12 @@ var require_jwa = __commonJS((exports, module) => {
|
|
|
3140
3140
|
};
|
|
3141
3141
|
}
|
|
3142
3142
|
var bufferEqual;
|
|
3143
|
-
var timingSafeEqual = "timingSafeEqual" in crypto2 ? function
|
|
3143
|
+
var timingSafeEqual = "timingSafeEqual" in crypto2 ? function timingSafeEqual(a, b) {
|
|
3144
3144
|
if (a.byteLength !== b.byteLength) {
|
|
3145
3145
|
return false;
|
|
3146
3146
|
}
|
|
3147
3147
|
return crypto2.timingSafeEqual(a, b);
|
|
3148
|
-
} : function
|
|
3148
|
+
} : function timingSafeEqual(a, b) {
|
|
3149
3149
|
if (!bufferEqual) {
|
|
3150
3150
|
bufferEqual = require_buffer_equal_constant_time();
|
|
3151
3151
|
}
|
|
@@ -20416,6 +20416,17 @@ var require_db = __commonJS((exports, module) => {
|
|
|
20416
20416
|
};
|
|
20417
20417
|
});
|
|
20418
20418
|
|
|
20419
|
+
// node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/index.js
|
|
20420
|
+
var require_mime_db = __commonJS((exports, module) => {
|
|
20421
|
+
/*!
|
|
20422
|
+
* mime-db
|
|
20423
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
20424
|
+
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
|
20425
|
+
* MIT Licensed
|
|
20426
|
+
*/
|
|
20427
|
+
module.exports = require_db();
|
|
20428
|
+
});
|
|
20429
|
+
|
|
20419
20430
|
// node_modules/.pnpm/mime-types@2.1.35/node_modules/mime-types/index.js
|
|
20420
20431
|
var require_mime_types = __commonJS((exports) => {
|
|
20421
20432
|
/*!
|
|
@@ -20424,7 +20435,7 @@ var require_mime_types = __commonJS((exports) => {
|
|
|
20424
20435
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
20425
20436
|
* MIT Licensed
|
|
20426
20437
|
*/
|
|
20427
|
-
var db =
|
|
20438
|
+
var db = require_mime_db();
|
|
20428
20439
|
var extname = __require("path").extname;
|
|
20429
20440
|
var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
|
|
20430
20441
|
var TEXT_TYPE_REGEXP = /^text\//i;
|
|
@@ -20771,7 +20782,7 @@ var require_round = __commonJS((exports, module) => {
|
|
|
20771
20782
|
|
|
20772
20783
|
// node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js
|
|
20773
20784
|
var require_isNaN = __commonJS((exports, module) => {
|
|
20774
|
-
module.exports = Number.isNaN || function
|
|
20785
|
+
module.exports = Number.isNaN || function isNaN(a) {
|
|
20775
20786
|
return a !== a;
|
|
20776
20787
|
};
|
|
20777
20788
|
});
|
|
@@ -20905,7 +20916,7 @@ var require_implementation = __commonJS((exports, module) => {
|
|
|
20905
20916
|
var toStr = Object.prototype.toString;
|
|
20906
20917
|
var max = Math.max;
|
|
20907
20918
|
var funcType = "[object Function]";
|
|
20908
|
-
var concatty = function
|
|
20919
|
+
var concatty = function concatty(a, b) {
|
|
20909
20920
|
var arr = [];
|
|
20910
20921
|
for (var i = 0;i < a.length; i += 1) {
|
|
20911
20922
|
arr[i] = a[i];
|
|
@@ -20915,7 +20926,7 @@ var require_implementation = __commonJS((exports, module) => {
|
|
|
20915
20926
|
}
|
|
20916
20927
|
return arr;
|
|
20917
20928
|
};
|
|
20918
|
-
var slicy = function
|
|
20929
|
+
var slicy = function slicy(arrLike, offset) {
|
|
20919
20930
|
var arr = [];
|
|
20920
20931
|
for (var i = offset || 0, j = 0;i < arrLike.length; i += 1, j += 1) {
|
|
20921
20932
|
arr[j] = arrLike[i];
|
|
@@ -20956,7 +20967,7 @@ var require_implementation = __commonJS((exports, module) => {
|
|
|
20956
20967
|
}
|
|
20957
20968
|
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
20958
20969
|
if (target.prototype) {
|
|
20959
|
-
var Empty = function
|
|
20970
|
+
var Empty = function Empty() {};
|
|
20960
20971
|
Empty.prototype = target.prototype;
|
|
20961
20972
|
bound.prototype = new Empty;
|
|
20962
20973
|
Empty.prototype = null;
|
|
@@ -21195,7 +21206,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
21195
21206
|
}
|
|
21196
21207
|
}
|
|
21197
21208
|
var errorProto;
|
|
21198
|
-
var doEval = function
|
|
21209
|
+
var doEval = function doEval(name) {
|
|
21199
21210
|
var value;
|
|
21200
21211
|
if (name === "%AsyncFunction%") {
|
|
21201
21212
|
value = getEvalledConstructor("async function () {}");
|
|
@@ -21204,12 +21215,12 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
21204
21215
|
} else if (name === "%AsyncGeneratorFunction%") {
|
|
21205
21216
|
value = getEvalledConstructor("async function* () {}");
|
|
21206
21217
|
} else if (name === "%AsyncGenerator%") {
|
|
21207
|
-
var fn =
|
|
21218
|
+
var fn = doEval("%AsyncGeneratorFunction%");
|
|
21208
21219
|
if (fn) {
|
|
21209
21220
|
value = fn.prototype;
|
|
21210
21221
|
}
|
|
21211
21222
|
} else if (name === "%AsyncIteratorPrototype%") {
|
|
21212
|
-
var gen =
|
|
21223
|
+
var gen = doEval("%AsyncGenerator%");
|
|
21213
21224
|
if (gen && getProto) {
|
|
21214
21225
|
value = getProto(gen.prototype);
|
|
21215
21226
|
}
|
|
@@ -21280,7 +21291,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
21280
21291
|
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
21281
21292
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
21282
21293
|
var reEscapeChar = /\\(\\)?/g;
|
|
21283
|
-
var stringToPath = function
|
|
21294
|
+
var stringToPath = function stringToPath(string) {
|
|
21284
21295
|
var first = $strSlice(string, 0, 1);
|
|
21285
21296
|
var last = $strSlice(string, -1);
|
|
21286
21297
|
if (first === "%" && last !== "%") {
|
|
@@ -21294,7 +21305,7 @@ var require_get_intrinsic = __commonJS((exports, module) => {
|
|
|
21294
21305
|
});
|
|
21295
21306
|
return result;
|
|
21296
21307
|
};
|
|
21297
|
-
var getBaseIntrinsic = function
|
|
21308
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
21298
21309
|
var intrinsicName = name;
|
|
21299
21310
|
var alias;
|
|
21300
21311
|
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
@@ -22316,8 +22327,8 @@ InitEnv.init();
|
|
|
22316
22327
|
var version = useContextKey("version", () => {
|
|
22317
22328
|
let version2 = "0.0.64";
|
|
22318
22329
|
try {
|
|
22319
|
-
if ("0.1.
|
|
22320
|
-
version2 = "0.1.
|
|
22330
|
+
if ("0.1.1")
|
|
22331
|
+
version2 = "0.1.1";
|
|
22321
22332
|
} catch (e) {}
|
|
22322
22333
|
return version2;
|
|
22323
22334
|
});
|
|
@@ -23578,7 +23589,7 @@ var effectScheduler = {
|
|
|
23578
23589
|
// node_modules/.pnpm/@inquirer+core@11.1.1_@types+node@25.2.0/node_modules/@inquirer/core/dist/lib/use-state.js
|
|
23579
23590
|
function useState(defaultValue) {
|
|
23580
23591
|
return withPointer((pointer) => {
|
|
23581
|
-
const setState = AsyncResource2.bind(function
|
|
23592
|
+
const setState = AsyncResource2.bind(function setState(newValue) {
|
|
23582
23593
|
if (pointer.get() !== newValue) {
|
|
23583
23594
|
pointer.set(newValue);
|
|
23584
23595
|
handleChange();
|
|
@@ -29011,6 +29022,26 @@ var install = new Command("install").option("-n, --noproxy", "no proxy").descrip
|
|
|
29011
29022
|
}
|
|
29012
29023
|
});
|
|
29013
29024
|
command5.addCommand(install);
|
|
29025
|
+
var patch = new Command("patch").description("npm patch 发布补丁版本").action(async () => {
|
|
29026
|
+
const cwd = process.cwd();
|
|
29027
|
+
const packageJson = path5.resolve(cwd, "package.json");
|
|
29028
|
+
if (fileIsExist2(packageJson)) {
|
|
29029
|
+
const pkg = fs9.readFileSync(packageJson, "utf-8");
|
|
29030
|
+
const pkgJson = parseIfJson(pkg);
|
|
29031
|
+
const version2 = pkgJson?.version;
|
|
29032
|
+
if (version2) {
|
|
29033
|
+
const versionArr = String(version2).split(".");
|
|
29034
|
+
if (versionArr.length === 3) {
|
|
29035
|
+
const patchVersion = Number(versionArr[2]) + 1;
|
|
29036
|
+
const newVersion = `${versionArr[0]}.${versionArr[1]}.${patchVersion}`;
|
|
29037
|
+
pkgJson.version = newVersion;
|
|
29038
|
+
fs9.writeFileSync(packageJson, JSON.stringify(pkgJson, null, 2));
|
|
29039
|
+
console.log(chalk2.green(`${pkgJson?.name} 更新到版本: ${newVersion}`));
|
|
29040
|
+
}
|
|
29041
|
+
}
|
|
29042
|
+
}
|
|
29043
|
+
});
|
|
29044
|
+
command5.addCommand(patch);
|
|
29014
29045
|
program.addCommand(command5);
|
|
29015
29046
|
|
|
29016
29047
|
// src/command/publish.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kevisual/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "envision 命令行工具",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"basename": "/root/cli",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@kevisual/auth": "^2.0.3",
|
|
50
50
|
"@kevisual/context": "^0.0.4",
|
|
51
51
|
"@kevisual/use-config": "^1.0.30",
|
|
52
|
-
"@opencode-ai/sdk": "^1.1.
|
|
52
|
+
"@opencode-ai/sdk": "^1.1.49",
|
|
53
53
|
"@types/busboy": "^1.5.4",
|
|
54
54
|
"busboy": "^1.6.0",
|
|
55
55
|
"eventemitter3": "^5.0.4",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"unstorage": "^1.17.4"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@kevisual/api": "^0.0.
|
|
65
|
+
"@kevisual/api": "^0.0.44",
|
|
66
66
|
"@kevisual/dts": "^0.0.3",
|
|
67
67
|
"@kevisual/load": "^0.0.6",
|
|
68
68
|
"@kevisual/logger": "^0.0.4",
|
|
@@ -92,4 +92,4 @@
|
|
|
92
92
|
"publishConfig": {
|
|
93
93
|
"access": "public"
|
|
94
94
|
}
|
|
95
|
-
}
|
|
95
|
+
}
|