@kevisual/cli 0.1.11 → 0.1.13

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.js CHANGED
@@ -27476,6 +27476,13 @@ var envKevisualDir = process.env.ASSISTANT_CONFIG_DIR;
27476
27476
  if (envKevisualDir) {
27477
27477
  kevisualDir = envKevisualDir;
27478
27478
  logger.debug("使用环境变量 ASSISTANT_CONFIG_DIR 作为 kevisual 目录:", kevisualDir);
27479
+ } else {
27480
+ if (!kevisualDir) {
27481
+ const isCNB = process.env.CNB_GROUP_SLUG;
27482
+ if (isCNB) {
27483
+ kevisualDir = path.join("/workspace/kevisual");
27484
+ }
27485
+ }
27479
27486
  }
27480
27487
  var HomeConfigDir = path.join(kevisualDir, "assistant-app");
27481
27488
  function parseArgs(args) {
@@ -28799,6 +28806,7 @@ class AssistantConfig {
28799
28806
  }
28800
28807
  getDefaultInitAssistantConfig() {
28801
28808
  const id = randomId();
28809
+ const isCNB = !!useKey("CNB");
28802
28810
  return {
28803
28811
  app: {
28804
28812
  url: "https://kevisual.cn",
@@ -28806,7 +28814,7 @@ class AssistantConfig {
28806
28814
  },
28807
28815
  description: "助手配置文件",
28808
28816
  docs: "https://kevisual.cn/root/cli/docs/",
28809
- home: "/root/home",
28817
+ home: isCNB ? "/root/cli-center" : "/root/home",
28810
28818
  proxy: [],
28811
28819
  share: {
28812
28820
  enabled: true,
@@ -36741,7 +36749,7 @@ class RemoteApp {
36741
36749
  this.emitter.emit("message", data);
36742
36750
  }
36743
36751
  onError(error2) {
36744
- console.error("远程应用错误:", this.id, error2);
36752
+ console.error(`[remote-app] 远程应用错误: ${this.id}`, error2);
36745
36753
  this.isError = true;
36746
36754
  this.emitter.emit("error", error2);
36747
36755
  }
@@ -36811,7 +36819,7 @@ class RemoteApp {
36811
36819
  }
36812
36820
  }
36813
36821
 
36814
- // ../node_modules/.pnpm/@kevisual+query@0.0.49/node_modules/@kevisual/query/dist/query-browser.js
36822
+ // ../node_modules/.pnpm/@kevisual+query@0.0.52/node_modules/@kevisual/query/dist/query-browser.js
36815
36823
  var isTextForContentType = (contentType) => {
36816
36824
  if (!contentType)
36817
36825
  return false;
@@ -51106,7 +51114,7 @@ function filter(data, query) {
51106
51114
  return executor.execute(ast, data);
51107
51115
  }
51108
51116
 
51109
- // ../node_modules/.pnpm/@kevisual+api@0.0.59_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/query/query-proxy/router-api-proxy.ts
51117
+ // ../node_modules/.pnpm/@kevisual+api@0.0.60_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/query/query-proxy/router-api-proxy.ts
51110
51118
  var initApi = async (opts) => {
51111
51119
  const router = opts?.router;
51112
51120
  const item = opts?.item;
@@ -70653,7 +70661,7 @@ var source_default = chalk;
70653
70661
  // src/module/chalk.ts
70654
70662
  var chalk2 = new Chalk({ level: 3 });
70655
70663
 
70656
- // ../node_modules/.pnpm/@kevisual+query@0.0.49/node_modules/@kevisual/query/dist/query.js
70664
+ // ../node_modules/.pnpm/@kevisual+query@0.0.52/node_modules/@kevisual/query/dist/query.js
70657
70665
  var isTextForContentType2 = (contentType) => {
70658
70666
  if (!contentType)
70659
70667
  return false;
@@ -71254,7 +71262,7 @@ ${line}`;
71254
71262
  }
71255
71263
  }
71256
71264
 
71257
- // ../node_modules/.pnpm/@kevisual+api@0.0.59_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/dist/query-login-node.js
71265
+ // ../node_modules/.pnpm/@kevisual+api@0.0.60_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/dist/query-login-node.js
71258
71266
  import { homedir as homedir2 } from "node:os";
71259
71267
  import { join, dirname } from "node:path";
71260
71268
  import fs12 from "node:fs";
@@ -71570,6 +71578,15 @@ class BaseQuery {
71570
71578
  return this.query.get(data, options);
71571
71579
  }
71572
71580
  }
71581
+ var defaultCacheData = {
71582
+ loginUsers: [],
71583
+ user: undefined,
71584
+ id: undefined,
71585
+ accessToken: undefined,
71586
+ refreshToken: undefined,
71587
+ accessTokenExpiresIn: undefined,
71588
+ createdAt: undefined
71589
+ };
71573
71590
 
71574
71591
  class LoginCacheStore {
71575
71592
  cache;
@@ -71580,13 +71597,7 @@ class LoginCacheStore {
71580
71597
  throw new Error("cache is required");
71581
71598
  }
71582
71599
  this.cache = opts.cache;
71583
- this.cacheData = {
71584
- loginUsers: [],
71585
- user: undefined,
71586
- id: undefined,
71587
- accessToken: undefined,
71588
- refreshToken: undefined
71589
- };
71600
+ this.cacheData = { ...defaultCacheData };
71590
71601
  this.name = opts.name;
71591
71602
  }
71592
71603
  async setValue(value) {
@@ -71596,27 +71607,13 @@ class LoginCacheStore {
71596
71607
  }
71597
71608
  async delValue() {
71598
71609
  await this.cache.del();
71599
- this.cacheData = {
71600
- loginUsers: [],
71601
- user: undefined,
71602
- id: undefined,
71603
- accessToken: undefined,
71604
- refreshToken: undefined
71605
- };
71610
+ this.cacheData = { ...defaultCacheData };
71606
71611
  }
71607
71612
  getValue() {
71608
71613
  return this.cache.get(this.name);
71609
71614
  }
71610
71615
  async init() {
71611
- const defaultData = {
71612
- loginUsers: [],
71613
- user: undefined,
71614
- id: undefined,
71615
- accessToken: undefined,
71616
- refreshToken: undefined,
71617
- accessTokenExpiresIn: undefined,
71618
- createdAt: undefined
71619
- };
71616
+ const defaultData = { ...this.cacheData };
71620
71617
  if (this.cache.init) {
71621
71618
  try {
71622
71619
  const cacheData = await this.cache.init();
@@ -71629,18 +71626,18 @@ class LoginCacheStore {
71629
71626
  }
71630
71627
  return this.cacheData;
71631
71628
  }
71632
- async setLoginUser(user) {
71633
- const has = this.cacheData.loginUsers.find((u) => u.id === user.id);
71629
+ async setLoginUser(loginUser) {
71630
+ const has = this.cacheData.loginUsers.find((u) => u.id === loginUser.id);
71634
71631
  if (has) {
71635
- this.cacheData.loginUsers = this.cacheData?.loginUsers?.filter((u) => u?.id && u.id !== user.id);
71636
- }
71637
- this.cacheData.loginUsers.push(user);
71638
- this.cacheData.user = user.user;
71639
- this.cacheData.id = user.id;
71640
- this.cacheData.accessToken = user.accessToken;
71641
- this.cacheData.refreshToken = user.refreshToken;
71642
- this.cacheData.accessTokenExpiresIn = user.accessTokenExpiresIn;
71643
- this.cacheData.createdAt = user.createdAt;
71632
+ this.cacheData.loginUsers = this.cacheData?.loginUsers?.filter((u) => u?.id && u.id !== loginUser.id);
71633
+ }
71634
+ this.cacheData.loginUsers.push(loginUser);
71635
+ this.cacheData.user = loginUser.user;
71636
+ this.cacheData.id = loginUser.id;
71637
+ this.cacheData.accessToken = loginUser.accessToken;
71638
+ this.cacheData.refreshToken = loginUser.refreshToken;
71639
+ this.cacheData.accessTokenExpiresIn = loginUser.accessTokenExpiresIn;
71640
+ this.cacheData.createdAt = loginUser.createdAt;
71644
71641
  await this.setValue(this.cacheData);
71645
71642
  }
71646
71643
  getCurrentUser() {
@@ -71676,22 +71673,22 @@ class LoginCacheStore {
71676
71673
  if (has) {
71677
71674
  this.cacheData.loginUsers = this.cacheData?.loginUsers?.filter((u) => u?.id && u.id !== user.id);
71678
71675
  }
71679
- this.cacheData.user = undefined;
71680
- this.cacheData.id = undefined;
71681
- this.cacheData.accessToken = undefined;
71682
- this.cacheData.refreshToken = undefined;
71683
- this.cacheData.accessTokenExpiresIn = undefined;
71684
- this.cacheData.createdAt = undefined;
71676
+ const hasOther = this.cacheData.loginUsers.length > 0;
71677
+ const current = this.cacheData.loginUsers[this.cacheData.loginUsers.length - 1];
71678
+ if (hasOther && current) {
71679
+ this.cacheData.user = current.user;
71680
+ this.cacheData.id = current.id;
71681
+ this.cacheData.accessToken = current.accessToken;
71682
+ this.cacheData.refreshToken = current.refreshToken;
71683
+ this.cacheData.accessTokenExpiresIn = current.accessTokenExpiresIn;
71684
+ this.cacheData.createdAt = current.createdAt;
71685
+ } else {
71686
+ this.cacheData = { ...defaultCacheData };
71687
+ }
71685
71688
  await this.setValue(this.cacheData);
71686
71689
  }
71687
71690
  async clearAll() {
71688
- this.cacheData.loginUsers = [];
71689
- this.cacheData.user = undefined;
71690
- this.cacheData.id = undefined;
71691
- this.cacheData.accessToken = undefined;
71692
- this.cacheData.refreshToken = undefined;
71693
- this.cacheData.accessTokenExpiresIn = undefined;
71694
- this.cacheData.createdAt = undefined;
71691
+ this.cacheData = { ...defaultCacheData };
71695
71692
  await this.setValue(this.cacheData);
71696
71693
  }
71697
71694
  }
@@ -72279,7 +72276,7 @@ class QueryLogin extends BaseQuery {
72279
72276
  async queryRefreshToken(opts) {
72280
72277
  const refreshToken = opts?.refreshToken;
72281
72278
  let accessToken = opts?.accessToken;
72282
- const _refreshToken = refreshToken || await this.cacheStore.getRefreshToken();
72279
+ const _refreshToken = refreshToken ?? await this.cacheStore.getRefreshToken();
72283
72280
  let data = {};
72284
72281
  if (accessToken) {
72285
72282
  data.accessToken = accessToken;
@@ -72390,6 +72387,7 @@ class QueryLogin extends BaseQuery {
72390
72387
  }
72391
72388
  const isExpired = await this.cacheStore.getIsExpired();
72392
72389
  if (isExpired) {
72390
+ console.log("token过期,正在刷新token", this.cacheStore.cacheData);
72393
72391
  const res = await this.refreshLoginUser();
72394
72392
  if (res.code === 200) {
72395
72393
  return res.data?.accessToken || null;
@@ -87231,7 +87229,7 @@ class AssistantApp extends Manager2 {
87231
87229
  app: this.mainApp,
87232
87230
  autoReconnect: true,
87233
87231
  reconnectDelay: 5000,
87234
- maxReconnectAttempts: Infinity,
87232
+ maxReconnectAttempts: 50,
87235
87233
  enableBackoff: true
87236
87234
  });
87237
87235
  remoteApp.isConnect();
@@ -87251,7 +87249,7 @@ class AssistantApp extends Manager2 {
87251
87249
  logger.info("[remote-app] 远程连接已关闭,自动重连机制正在处理...");
87252
87250
  });
87253
87251
  remoteApp.on("maxReconnectAttemptsReached", () => {
87254
- logger.error("远程应用重连达到最大次数,停止重连");
87252
+ logger.error("[remote-app] 远程应用重连达到最大次数,停止重连");
87255
87253
  });
87256
87254
  this.remoteApp = remoteApp;
87257
87255
  } else {
package/dist/envision.js CHANGED
@@ -22312,8 +22312,8 @@ InitEnv.init();
22312
22312
  var version = useContextKey("version", () => {
22313
22313
  let version2 = "0.0.64";
22314
22314
  try {
22315
- if ("0.1.11")
22316
- version2 = "0.1.11";
22315
+ if ("0.1.13")
22316
+ version2 = "0.1.13";
22317
22317
  } catch (e) {}
22318
22318
  return version2;
22319
22319
  });
@@ -25149,7 +25149,7 @@ var dist_default6 = createPrompt((config, done) => {
25149
25149
  var import_md5 = __toESM(require_md5(), 1);
25150
25150
  var import_jsonwebtoken = __toESM(require_jsonwebtoken(), 1);
25151
25151
 
25152
- // node_modules/.pnpm/@kevisual+query@0.0.49/node_modules/@kevisual/query/dist/query.js
25152
+ // node_modules/.pnpm/@kevisual+query@0.0.52/node_modules/@kevisual/query/dist/query.js
25153
25153
  var isTextForContentType = (contentType) => {
25154
25154
  if (!contentType)
25155
25155
  return false;
@@ -25437,7 +25437,7 @@ class Query {
25437
25437
  }
25438
25438
  }
25439
25439
 
25440
- // node_modules/.pnpm/@kevisual+query@0.0.49/node_modules/@kevisual/query/dist/query-browser.js
25440
+ // node_modules/.pnpm/@kevisual+query@0.0.52/node_modules/@kevisual/query/dist/query-browser.js
25441
25441
  var isTextForContentType2 = (contentType) => {
25442
25442
  if (!contentType)
25443
25443
  return false;
@@ -25750,7 +25750,17 @@ class BaseQuery {
25750
25750
  }
25751
25751
  }
25752
25752
 
25753
- // node_modules/.pnpm/@kevisual+api@0.0.59_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/query/query-login/login-cache.ts
25753
+ // node_modules/.pnpm/@kevisual+api@0.0.60_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/query/query-login/login-cache.ts
25754
+ var defaultCacheData = {
25755
+ loginUsers: [],
25756
+ user: undefined,
25757
+ id: undefined,
25758
+ accessToken: undefined,
25759
+ refreshToken: undefined,
25760
+ accessTokenExpiresIn: undefined,
25761
+ createdAt: undefined
25762
+ };
25763
+
25754
25764
  class LoginCacheStore {
25755
25765
  cache;
25756
25766
  name;
@@ -25760,13 +25770,7 @@ class LoginCacheStore {
25760
25770
  throw new Error("cache is required");
25761
25771
  }
25762
25772
  this.cache = opts.cache;
25763
- this.cacheData = {
25764
- loginUsers: [],
25765
- user: undefined,
25766
- id: undefined,
25767
- accessToken: undefined,
25768
- refreshToken: undefined
25769
- };
25773
+ this.cacheData = { ...defaultCacheData };
25770
25774
  this.name = opts.name;
25771
25775
  }
25772
25776
  async setValue(value) {
@@ -25776,27 +25780,13 @@ class LoginCacheStore {
25776
25780
  }
25777
25781
  async delValue() {
25778
25782
  await this.cache.del();
25779
- this.cacheData = {
25780
- loginUsers: [],
25781
- user: undefined,
25782
- id: undefined,
25783
- accessToken: undefined,
25784
- refreshToken: undefined
25785
- };
25783
+ this.cacheData = { ...defaultCacheData };
25786
25784
  }
25787
25785
  getValue() {
25788
25786
  return this.cache.get(this.name);
25789
25787
  }
25790
25788
  async init() {
25791
- const defaultData = {
25792
- loginUsers: [],
25793
- user: undefined,
25794
- id: undefined,
25795
- accessToken: undefined,
25796
- refreshToken: undefined,
25797
- accessTokenExpiresIn: undefined,
25798
- createdAt: undefined
25799
- };
25789
+ const defaultData = { ...this.cacheData };
25800
25790
  if (this.cache.init) {
25801
25791
  try {
25802
25792
  const cacheData = await this.cache.init();
@@ -25809,18 +25799,18 @@ class LoginCacheStore {
25809
25799
  }
25810
25800
  return this.cacheData;
25811
25801
  }
25812
- async setLoginUser(user) {
25813
- const has = this.cacheData.loginUsers.find((u) => u.id === user.id);
25802
+ async setLoginUser(loginUser) {
25803
+ const has = this.cacheData.loginUsers.find((u) => u.id === loginUser.id);
25814
25804
  if (has) {
25815
- this.cacheData.loginUsers = this.cacheData?.loginUsers?.filter((u) => u?.id && u.id !== user.id);
25816
- }
25817
- this.cacheData.loginUsers.push(user);
25818
- this.cacheData.user = user.user;
25819
- this.cacheData.id = user.id;
25820
- this.cacheData.accessToken = user.accessToken;
25821
- this.cacheData.refreshToken = user.refreshToken;
25822
- this.cacheData.accessTokenExpiresIn = user.accessTokenExpiresIn;
25823
- this.cacheData.createdAt = user.createdAt;
25805
+ this.cacheData.loginUsers = this.cacheData?.loginUsers?.filter((u) => u?.id && u.id !== loginUser.id);
25806
+ }
25807
+ this.cacheData.loginUsers.push(loginUser);
25808
+ this.cacheData.user = loginUser.user;
25809
+ this.cacheData.id = loginUser.id;
25810
+ this.cacheData.accessToken = loginUser.accessToken;
25811
+ this.cacheData.refreshToken = loginUser.refreshToken;
25812
+ this.cacheData.accessTokenExpiresIn = loginUser.accessTokenExpiresIn;
25813
+ this.cacheData.createdAt = loginUser.createdAt;
25824
25814
  await this.setValue(this.cacheData);
25825
25815
  }
25826
25816
  getCurrentUser() {
@@ -25856,22 +25846,22 @@ class LoginCacheStore {
25856
25846
  if (has) {
25857
25847
  this.cacheData.loginUsers = this.cacheData?.loginUsers?.filter((u) => u?.id && u.id !== user.id);
25858
25848
  }
25859
- this.cacheData.user = undefined;
25860
- this.cacheData.id = undefined;
25861
- this.cacheData.accessToken = undefined;
25862
- this.cacheData.refreshToken = undefined;
25863
- this.cacheData.accessTokenExpiresIn = undefined;
25864
- this.cacheData.createdAt = undefined;
25849
+ const hasOther = this.cacheData.loginUsers.length > 0;
25850
+ const current = this.cacheData.loginUsers[this.cacheData.loginUsers.length - 1];
25851
+ if (hasOther && current) {
25852
+ this.cacheData.user = current.user;
25853
+ this.cacheData.id = current.id;
25854
+ this.cacheData.accessToken = current.accessToken;
25855
+ this.cacheData.refreshToken = current.refreshToken;
25856
+ this.cacheData.accessTokenExpiresIn = current.accessTokenExpiresIn;
25857
+ this.cacheData.createdAt = current.createdAt;
25858
+ } else {
25859
+ this.cacheData = { ...defaultCacheData };
25860
+ }
25865
25861
  await this.setValue(this.cacheData);
25866
25862
  }
25867
25863
  async clearAll() {
25868
- this.cacheData.loginUsers = [];
25869
- this.cacheData.user = undefined;
25870
- this.cacheData.id = undefined;
25871
- this.cacheData.accessToken = undefined;
25872
- this.cacheData.refreshToken = undefined;
25873
- this.cacheData.accessTokenExpiresIn = undefined;
25874
- this.cacheData.createdAt = undefined;
25864
+ this.cacheData = { ...defaultCacheData };
25875
25865
  await this.setValue(this.cacheData);
25876
25866
  }
25877
25867
  }
@@ -26326,7 +26316,7 @@ class BaseLoad3 {
26326
26316
  }
26327
26317
  }
26328
26318
 
26329
- // node_modules/.pnpm/@kevisual+api@0.0.59_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/query/query-login/query-login.ts
26319
+ // node_modules/.pnpm/@kevisual+api@0.0.60_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/query/query-login/query-login.ts
26330
26320
  class QueryLogin extends BaseQuery {
26331
26321
  cacheStore;
26332
26322
  isBrowser;
@@ -26462,7 +26452,7 @@ class QueryLogin extends BaseQuery {
26462
26452
  async queryRefreshToken(opts) {
26463
26453
  const refreshToken = opts?.refreshToken;
26464
26454
  let accessToken = opts?.accessToken;
26465
- const _refreshToken = refreshToken || await this.cacheStore.getRefreshToken();
26455
+ const _refreshToken = refreshToken ?? await this.cacheStore.getRefreshToken();
26466
26456
  let data = {};
26467
26457
  if (accessToken) {
26468
26458
  data.accessToken = accessToken;
@@ -26573,6 +26563,7 @@ class QueryLogin extends BaseQuery {
26573
26563
  }
26574
26564
  const isExpired = await this.cacheStore.getIsExpired();
26575
26565
  if (isExpired) {
26566
+ console.log("token过期,正在刷新token", this.cacheStore.cacheData);
26576
26567
  const res = await this.refreshLoginUser();
26577
26568
  if (res.code === 200) {
26578
26569
  return res.data?.accessToken || null;
@@ -26717,7 +26708,7 @@ class QueryLogin extends BaseQuery {
26717
26708
  }
26718
26709
  }
26719
26710
 
26720
- // node_modules/.pnpm/@kevisual+api@0.0.59_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/query/query-login/login-node-cache.ts
26711
+ // node_modules/.pnpm/@kevisual+api@0.0.60_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/query/query-login/login-node-cache.ts
26721
26712
  import { homedir } from "node:os";
26722
26713
  import { join, dirname } from "node:path";
26723
26714
  import fs4 from "node:fs";
@@ -26861,7 +26852,7 @@ class LoginNodeCache {
26861
26852
  }
26862
26853
  }
26863
26854
 
26864
- // node_modules/.pnpm/@kevisual+api@0.0.59_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/query/query-login/query-login-node.ts
26855
+ // node_modules/.pnpm/@kevisual+api@0.0.60_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/query/query-login/query-login-node.ts
26865
26856
  var cache = new LoginNodeCache;
26866
26857
 
26867
26858
  class QueryLoginNode extends QueryLogin {
@@ -30574,7 +30565,7 @@ var download = new Command("download").option("-d --dir <dir>", "配置目录").
30574
30565
  command8.addCommand(download);
30575
30566
  program.addCommand(command8);
30576
30567
 
30577
- // node_modules/.pnpm/@kevisual+api@0.0.59_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/dist/query-config.js
30568
+ // node_modules/.pnpm/@kevisual+api@0.0.60_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/dist/query-config.js
30578
30569
  var isTextForContentType3 = (contentType) => {
30579
30570
  if (!contentType)
30580
30571
  return false;
@@ -31010,7 +31001,7 @@ command9.addCommand(updateCommand);
31010
31001
  command9.addCommand(deleteCommand);
31011
31002
  program.addCommand(command9);
31012
31003
 
31013
- // node_modules/.pnpm/@kevisual+api@0.0.59_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/dist/query-secret.js
31004
+ // node_modules/.pnpm/@kevisual+api@0.0.60_@types+react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@kevisual/api/dist/query-secret.js
31014
31005
  var isTextForContentType4 = (contentType) => {
31015
31006
  if (!contentType)
31016
31007
  return false;
@@ -34327,7 +34318,7 @@ var getJWKS = new Command("get").description("获取 JWKS 内容").option("-d ,
34327
34318
  jwksCmd.addCommand(getJWKS);
34328
34319
  program.addCommand(jwksCmd);
34329
34320
 
34330
- // node_modules/.pnpm/@kevisual+cnb@0.0.28_dotenv@17.3.1_idb-keyval@6.2.2_ioredis@5.9.3/node_modules/@kevisual/cnb/dist/keep.js
34321
+ // node_modules/.pnpm/@kevisual+cnb@0.0.32_dotenv@17.3.1_idb-keyval@6.2.2_ioredis@5.9.3/node_modules/@kevisual/cnb/dist/keep.js
34331
34322
  import { createRequire as createRequire3 } from "node:module";
34332
34323
  var __create3 = Object.create;
34333
34324
  var __getProtoOf3 = Object.getPrototypeOf;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kevisual/cli",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "envision 命令行工具",
5
5
  "type": "module",
6
6
  "basename": "/root/cli",
@@ -46,7 +46,7 @@
46
46
  "@kevisual/auth": "^2.0.3",
47
47
  "@kevisual/context": "^0.0.8",
48
48
  "@kevisual/use-config": "^1.0.30",
49
- "@opencode-ai/sdk": "^1.2.10",
49
+ "@opencode-ai/sdk": "^1.2.14",
50
50
  "@types/busboy": "^1.5.4",
51
51
  "busboy": "^1.6.0",
52
52
  "eventemitter3": "^5.0.4",
@@ -59,12 +59,12 @@
59
59
  "unstorage": "^1.17.4"
60
60
  },
61
61
  "devDependencies": {
62
- "@kevisual/api": "^0.0.59",
63
- "@kevisual/cnb": "^0.0.28",
62
+ "@kevisual/api": "^0.0.60",
63
+ "@kevisual/cnb": "^0.0.32",
64
64
  "@kevisual/dts": "^0.0.4",
65
65
  "@kevisual/load": "^0.0.6",
66
66
  "@kevisual/logger": "^0.0.4",
67
- "@kevisual/query": "0.0.49",
67
+ "@kevisual/query": "0.0.52",
68
68
  "@types/bun": "^1.3.9",
69
69
  "@types/crypto-js": "^4.2.2",
70
70
  "@types/jsonwebtoken": "^9.0.10",