node-karin 1.8.5 → 1.8.6
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/CHANGELOG.md +13 -0
- package/dist/cli/index.cjs +1 -1
- package/dist/cli/index.mjs +14 -17
- package/dist/index.d.ts +51 -5
- package/dist/index.mjs +68 -21
- package/dist/web/assets/css/index-2KMNnJRA.css.br +0 -0
- package/dist/web/assets/js/components-SKlAGqzh.js.br +0 -0
- package/dist/web/assets/js/entry-vKz092kA.js.br +0 -0
- package/dist/web/assets/js/hooks-Cx1Yu0OX.js.br +0 -0
- package/dist/web/assets/js/page-404.tsx-BXEV4NBF.js +1 -0
- package/dist/web/assets/js/page-dashboard-BU7cB7ZI.js.br +0 -0
- package/dist/web/assets/js/page-loading.tsx-CJaYj8cR.js.br +0 -0
- package/dist/web/assets/js/page-login.tsx-CfavJf9W.js.br +0 -0
- package/dist/web/assets/js/{utils-qrmq67Xg.js → utils-x5AKiszG.js} +1 -1
- package/dist/web/assets/js/vendor-heroui-D6FhP6a0.js.br +0 -0
- package/dist/web/assets/js/vendor-others-B6NXaB-r.js.br +0 -0
- package/dist/web/assets/js/vendor-react-Hg1DVPZt.js.br +0 -0
- package/dist/web/assets/js/vendor-visual-mzxhMYK3.js.br +0 -0
- package/dist/web/index.html +10 -10
- package/package.json +4 -4
- package/dist/web/assets/css/index-BrG42AwU.css.br +0 -0
- package/dist/web/assets/js/components-CxadY39V.js.br +0 -0
- package/dist/web/assets/js/entry-CHFt_H9g.js.br +0 -0
- package/dist/web/assets/js/hooks-DCwZcclx.js.br +0 -0
- package/dist/web/assets/js/page-404.tsx-DuSCXxgV.js +0 -1
- package/dist/web/assets/js/page-dashboard-DeOjlIBI.js.br +0 -0
- package/dist/web/assets/js/page-loading.tsx-DGpPkY1i.js.br +0 -0
- package/dist/web/assets/js/page-login.tsx-Uw_-NauC.js.br +0 -0
- package/dist/web/assets/js/vendor-heroui-CWZ6Mu45.js.br +0 -0
- package/dist/web/assets/js/vendor-others-BM6DakDu.js.br +0 -0
- package/dist/web/assets/js/vendor-react-BFjuLQyM.js.br +0 -0
- package/dist/web/assets/js/vendor-visual-CzYP84zg.js.br +0 -0
package/dist/cli/index.mjs
CHANGED
|
@@ -6643,7 +6643,6 @@ const createDir = (isDev, dir) => {
|
|
|
6643
6643
|
};
|
|
6644
6644
|
const npmrc = (dir) => {
|
|
6645
6645
|
const list = [
|
|
6646
|
-
"package-lock=false",
|
|
6647
6646
|
"public-hoist-pattern[]=*sqlite3*",
|
|
6648
6647
|
"public-hoist-pattern[]=*express*",
|
|
6649
6648
|
"sqlite3_binary_host_mirror=https://registry.npmmirror.com/-/binary/sqlite3",
|
|
@@ -6672,6 +6671,9 @@ const npmrc = (dir) => {
|
|
|
6672
6671
|
const key = item.split("=")[0];
|
|
6673
6672
|
return !data.includes(key);
|
|
6674
6673
|
});
|
|
6674
|
+
if (data.includes("package-lock=false")) {
|
|
6675
|
+
fs.writeFileSync(npmrc2, data.replace(/^package-lock=false.*\n?/gm, ""));
|
|
6676
|
+
}
|
|
6675
6677
|
if (newEntries.length > 0) {
|
|
6676
6678
|
fs.appendFileSync(npmrc2, "\n" + newEntries.join("\n"));
|
|
6677
6679
|
}
|
|
@@ -6809,21 +6811,17 @@ const createWorkspace = (isDev, dir) => {
|
|
|
6809
6811
|
...data.publicHoistPattern
|
|
6810
6812
|
];
|
|
6811
6813
|
data.publicHoistPattern = dedupe(publicHoistPattern);
|
|
6812
|
-
fs.writeFileSync(
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
)
|
|
6824
|
-
),
|
|
6825
|
-
"utf-8"
|
|
6826
|
-
);
|
|
6814
|
+
fs.writeFileSync(workspace, YAML.stringify(
|
|
6815
|
+
Object.assign(
|
|
6816
|
+
{
|
|
6817
|
+
lockfile: false,
|
|
6818
|
+
packages: [],
|
|
6819
|
+
publicHoistPattern: [],
|
|
6820
|
+
onlyBuiltDependencies: []
|
|
6821
|
+
},
|
|
6822
|
+
data
|
|
6823
|
+
)
|
|
6824
|
+
), "utf-8");
|
|
6827
6825
|
};
|
|
6828
6826
|
const createConfigFile = (dir) => {
|
|
6829
6827
|
const pkgDir = fileURLToPath(new URL$1("../..", import.meta.url));
|
|
@@ -6924,7 +6922,6 @@ const init = async (force) => {
|
|
|
6924
6922
|
createEntryFile(isDev, dir);
|
|
6925
6923
|
createOrUpdateEnv(dir);
|
|
6926
6924
|
if (fs.existsSync(path.join(dir, "pnpm-lock.yaml"))) {
|
|
6927
|
-
fs.rmSync(path.join(dir, "pnpm-lock.yaml"));
|
|
6928
6925
|
execSync$1("pnpm install -f", {
|
|
6929
6926
|
stdio: "inherit",
|
|
6930
6927
|
cwd: dir
|
package/dist/index.d.ts
CHANGED
|
@@ -2820,6 +2820,14 @@ declare abstract class AdapterBase<T = any> implements AdapterType<T> {
|
|
|
2820
2820
|
* @returns 包含历史消息的数组
|
|
2821
2821
|
*/
|
|
2822
2822
|
getHistoryMsg(_contact: Contact, _startMsgId: string, _count: number): Promise<Array<MessageResponse>>;
|
|
2823
|
+
/**
|
|
2824
|
+
* 获取msgSeq获取历史消息
|
|
2825
|
+
* @param _contact 目标信息
|
|
2826
|
+
* @param _startMsgSeq 起始消息序列号
|
|
2827
|
+
* @param _count 获取消息数量 默认为1
|
|
2828
|
+
* @returns 包含历史消息的数组
|
|
2829
|
+
*/
|
|
2830
|
+
getHistoryMsg(_contact: Contact, _startMsgSeq: number, _count: number): Promise<Array<MessageResponse>>;
|
|
2823
2831
|
/**
|
|
2824
2832
|
* 获取合并转发消息
|
|
2825
2833
|
* @param _resId 资源ID
|
|
@@ -3269,7 +3277,7 @@ declare abstract class AdapterOneBot extends AdapterBase {
|
|
|
3269
3277
|
* @param count 获取消息数量 默认为1
|
|
3270
3278
|
* @returns 包含历史消息的数组
|
|
3271
3279
|
*/
|
|
3272
|
-
getHistoryMsg(contact: Contact, startMsgId: string, count: number): Promise<{
|
|
3280
|
+
getHistoryMsg(contact: Contact, startMsgId: string | number, count: number): Promise<{
|
|
3273
3281
|
time: number;
|
|
3274
3282
|
messageId: string;
|
|
3275
3283
|
messageSeq: number;
|
|
@@ -3516,7 +3524,13 @@ declare abstract class AdapterOneBot extends AdapterBase {
|
|
|
3516
3524
|
buf?: Record<string, unknown>;
|
|
3517
3525
|
};
|
|
3518
3526
|
extOnlineBusinessInfo?: {
|
|
3519
|
-
buf
|
|
3527
|
+
buf
|
|
3528
|
+
/**
|
|
3529
|
+
* @deprecated 已废弃,请使用`setGroupMute`
|
|
3530
|
+
*/
|
|
3531
|
+
? /**
|
|
3532
|
+
* @deprecated 已废弃,请使用`setGroupMute`
|
|
3533
|
+
*/: Record<string, unknown>;
|
|
3520
3534
|
customStatus?: string | null;
|
|
3521
3535
|
videoBizInfo?: {
|
|
3522
3536
|
cid?: string;
|
|
@@ -3628,7 +3642,13 @@ declare abstract class AdapterOneBot extends AdapterBase {
|
|
|
3628
3642
|
buf?: Record<string, unknown>;
|
|
3629
3643
|
};
|
|
3630
3644
|
extOnlineBusinessInfo?: {
|
|
3631
|
-
buf
|
|
3645
|
+
buf
|
|
3646
|
+
/**
|
|
3647
|
+
* @deprecated 已废弃,请使用`setGroupMute`
|
|
3648
|
+
*/
|
|
3649
|
+
? /**
|
|
3650
|
+
* @deprecated 已废弃,请使用`setGroupMute`
|
|
3651
|
+
*/: Record<string, unknown>;
|
|
3632
3652
|
customStatus?: string | null;
|
|
3633
3653
|
videoBizInfo?: {
|
|
3634
3654
|
cid?: string;
|
|
@@ -3738,7 +3758,13 @@ declare abstract class AdapterOneBot extends AdapterBase {
|
|
|
3738
3758
|
buf?: Record<string, unknown>;
|
|
3739
3759
|
};
|
|
3740
3760
|
extOnlineBusinessInfo?: {
|
|
3741
|
-
buf
|
|
3761
|
+
buf
|
|
3762
|
+
/**
|
|
3763
|
+
* @deprecated 已废弃,请使用`setGroupMute`
|
|
3764
|
+
*/
|
|
3765
|
+
? /**
|
|
3766
|
+
* @deprecated 已废弃,请使用`setGroupMute`
|
|
3767
|
+
*/: Record<string, unknown>;
|
|
3742
3768
|
customStatus?: string | null;
|
|
3743
3769
|
videoBizInfo?: {
|
|
3744
3770
|
cid?: string;
|
|
@@ -3846,7 +3872,13 @@ declare abstract class AdapterOneBot extends AdapterBase {
|
|
|
3846
3872
|
buf?: Record<string, unknown>;
|
|
3847
3873
|
};
|
|
3848
3874
|
extOnlineBusinessInfo?: {
|
|
3849
|
-
buf
|
|
3875
|
+
buf
|
|
3876
|
+
/**
|
|
3877
|
+
* @deprecated 已废弃,请使用`setGroupMute`
|
|
3878
|
+
*/
|
|
3879
|
+
? /**
|
|
3880
|
+
* @deprecated 已废弃,请使用`setGroupMute`
|
|
3881
|
+
*/: Record<string, unknown>;
|
|
3850
3882
|
customStatus?: string | null;
|
|
3851
3883
|
videoBizInfo?: {
|
|
3852
3884
|
cid?: string;
|
|
@@ -4348,6 +4380,14 @@ interface AdapterType<T = any> {
|
|
|
4348
4380
|
* @returns MessageResponse对象
|
|
4349
4381
|
*/
|
|
4350
4382
|
getMsg(contact: Contact, messageId: string): Promise<MessageResponse>;
|
|
4383
|
+
/**
|
|
4384
|
+
* 获取msgId获取历史消息
|
|
4385
|
+
* @param contact 目标信息
|
|
4386
|
+
* @param startMsgSeq 起始消息序列号
|
|
4387
|
+
* @param count 获取消息数量 默认为1
|
|
4388
|
+
* @returns 包含历史消息的数组
|
|
4389
|
+
*/
|
|
4390
|
+
getHistoryMsg(contact: Contact, startMsgSeq: number, count: number): Promise<Array<MessageResponse>>;
|
|
4351
4391
|
/**
|
|
4352
4392
|
* 获取msgId获取历史消息
|
|
4353
4393
|
* @param contact 目标信息
|
|
@@ -8912,6 +8952,8 @@ interface AddDependenciesParams extends DependenciesManageBase {
|
|
|
8912
8952
|
location: 'dependencies' | 'devDependencies' | 'optionalDependencies';
|
|
8913
8953
|
/** 依赖版本 */
|
|
8914
8954
|
version?: string;
|
|
8955
|
+
/** 允许pnpm在安装期间执行安装的包名列表 */
|
|
8956
|
+
allowBuild?: string[];
|
|
8915
8957
|
};
|
|
8916
8958
|
}
|
|
8917
8959
|
/** 升级依赖请求参数 */
|
|
@@ -8969,6 +9011,8 @@ interface PluginAdminCustomInstallNpm extends PluginAdminCustomInstallBase {
|
|
|
8969
9011
|
version?: string;
|
|
8970
9012
|
/** 指定registry源 */
|
|
8971
9013
|
registry?: string;
|
|
9014
|
+
/** 允许pnpm在安装期间执行安装的包名列表 */
|
|
9015
|
+
allowBuild?: string[];
|
|
8972
9016
|
}
|
|
8973
9017
|
/**
|
|
8974
9018
|
* 自定义安装git仓库任务参数
|
|
@@ -9052,6 +9096,8 @@ interface PluginAdminMarketInstallApp extends PluginAdminMarketInstallBaase {
|
|
|
9052
9096
|
*/
|
|
9053
9097
|
interface PluginAdminMarketInstallNpm extends PluginAdminMarketInstallBaase {
|
|
9054
9098
|
pluginType: 'npm';
|
|
9099
|
+
/** 允许pnpm在安装期间执行脚本的包名列表 */
|
|
9100
|
+
allowBuild?: string[];
|
|
9055
9101
|
}
|
|
9056
9102
|
/**
|
|
9057
9103
|
* git类型插件市场安装任务参数
|
package/dist/index.mjs
CHANGED
|
@@ -12,6 +12,7 @@ import require$$1$3 from 'net';
|
|
|
12
12
|
import fs7, { promises, existsSync as existsSync$1, createWriteStream } from 'node:fs';
|
|
13
13
|
import chalk2 from 'chalk';
|
|
14
14
|
import YAML, { isMap, isSeq, isPair } from 'yaml';
|
|
15
|
+
import { spawn, execSync, exec as exec$2 } from 'node:child_process';
|
|
15
16
|
import path4, { join } from 'node:path';
|
|
16
17
|
import chokidar from 'chokidar';
|
|
17
18
|
import axios9, { AxiosError } from 'axios';
|
|
@@ -25,7 +26,6 @@ import { EventEmitter } from 'node:events';
|
|
|
25
26
|
import { isPromise } from 'util/types';
|
|
26
27
|
import { exec as exec$1, spawn as spawn$1 } from 'child_process';
|
|
27
28
|
import os, { homedir } from 'node:os';
|
|
28
|
-
import { spawn, execSync, exec as exec$2 } from 'node:child_process';
|
|
29
29
|
import { lookup } from 'dns/promises';
|
|
30
30
|
import sqlite3 from 'sqlite3';
|
|
31
31
|
import WebSocket$1, { WebSocket, WebSocketServer } from 'ws';
|
|
@@ -6916,13 +6916,27 @@ var init_logger = __esm({
|
|
|
6916
6916
|
};
|
|
6917
6917
|
}
|
|
6918
6918
|
});
|
|
6919
|
-
var isWin, isDev, isTsx, isTs, isWorkspace, setProcessEnv, setVersion, setRuntime, getModuleType;
|
|
6919
|
+
var IS_PNPM10, isWin, isDev, isTsx, isTs, isPnpm10, isWorkspace, setProcessEnv, setVersion, setRuntime, getModuleType;
|
|
6920
6920
|
var init_env = __esm({
|
|
6921
6921
|
"src/env/env/index.ts"() {
|
|
6922
|
+
IS_PNPM10 = null;
|
|
6922
6923
|
isWin = () => process.platform === "win32";
|
|
6923
6924
|
isDev = () => process.env.NODE_ENV === "development";
|
|
6924
6925
|
isTsx = () => process.env.RUNTIME === "tsx";
|
|
6925
6926
|
isTs = () => isTsx();
|
|
6927
|
+
isPnpm10 = () => {
|
|
6928
|
+
try {
|
|
6929
|
+
if (IS_PNPM10 === null) {
|
|
6930
|
+
const version2 = execSync("pnpm -v").toString().trim();
|
|
6931
|
+
const majorVersion = parseInt(version2.split(".")[0], 10);
|
|
6932
|
+
IS_PNPM10 = !isNaN(majorVersion) && majorVersion >= 10;
|
|
6933
|
+
}
|
|
6934
|
+
return IS_PNPM10;
|
|
6935
|
+
} catch {
|
|
6936
|
+
IS_PNPM10 = false;
|
|
6937
|
+
return false;
|
|
6938
|
+
}
|
|
6939
|
+
};
|
|
6926
6940
|
isWorkspace = () => {
|
|
6927
6941
|
const workspace = fs7.existsSync(`${process.cwd()}/pnpm-workspace.yaml`);
|
|
6928
6942
|
if (!workspace) return false;
|
|
@@ -14363,8 +14377,8 @@ var init_base3 = __esm({
|
|
|
14363
14377
|
init_message5();
|
|
14364
14378
|
init_notice3();
|
|
14365
14379
|
init_request3();
|
|
14366
|
-
init_convert();
|
|
14367
14380
|
init_event3();
|
|
14381
|
+
init_convert();
|
|
14368
14382
|
AdapterOneBot = class extends AdapterBase {
|
|
14369
14383
|
constructor() {
|
|
14370
14384
|
super();
|
|
@@ -14593,7 +14607,7 @@ var init_base3 = __esm({
|
|
|
14593
14607
|
* @param messageId 消息ID
|
|
14594
14608
|
*/
|
|
14595
14609
|
async getMsg(contact3, messageId) {
|
|
14596
|
-
const result = await this.sendApi("get_msg" /* getMsg */, { message_id: Number(messageId) });
|
|
14610
|
+
const result = await this.sendApi("get_msg" /* getMsg */, { message_id: Number(messageId) || messageId });
|
|
14597
14611
|
const userId = result.sender.user_id + "";
|
|
14598
14612
|
const messageSeq = result.message_seq || result.message_id;
|
|
14599
14613
|
const messageID = result.message_id + "";
|
|
@@ -14635,22 +14649,43 @@ var init_base3 = __esm({
|
|
|
14635
14649
|
* @returns 包含历史消息的数组
|
|
14636
14650
|
*/
|
|
14637
14651
|
async getHistoryMsg(contact3, startMsgId, count3) {
|
|
14638
|
-
|
|
14639
|
-
|
|
14640
|
-
|
|
14641
|
-
|
|
14642
|
-
|
|
14643
|
-
|
|
14644
|
-
|
|
14645
|
-
|
|
14646
|
-
|
|
14647
|
-
|
|
14648
|
-
|
|
14649
|
-
|
|
14652
|
+
const getHistoryMsgSeq = async (startMsgId2, count4) => {
|
|
14653
|
+
if (contact3.scene === "group") {
|
|
14654
|
+
return this.sendApi("get_group_msg_history" /* getGroupMsgHistory */, { message_seq: startMsgId2, count: count4, group_id: Number(contact3.peer) });
|
|
14655
|
+
}
|
|
14656
|
+
return this.sendApi("get_friend_msg_history" /* getFriendMsgHistory */, { message_seq: startMsgId2, count: count4, user_id: Number(contact3.peer) });
|
|
14657
|
+
};
|
|
14658
|
+
const getSeq = async (msgId) => {
|
|
14659
|
+
const result = await this.getMsg(contact3, msgId);
|
|
14660
|
+
return result.message_seq;
|
|
14661
|
+
};
|
|
14662
|
+
const getLglHistoryMsg = async (startMsgId2, count4) => {
|
|
14663
|
+
const options = { message_id: Number(startMsgId2), count: count4 };
|
|
14664
|
+
if (contact3.scene === "group") {
|
|
14665
|
+
options.group_id = Number(contact3.peer);
|
|
14666
|
+
return this.sendApi("get_group_msg_history" /* getGroupMsgHistory */, options);
|
|
14667
|
+
}
|
|
14650
14668
|
options.user_id = Number(contact3.peer);
|
|
14651
|
-
|
|
14652
|
-
}
|
|
14669
|
+
return this.sendApi("get_friend_msg_history" /* getFriendMsgHistory */, options);
|
|
14670
|
+
};
|
|
14671
|
+
const getHistory = async () => {
|
|
14672
|
+
if (typeof startMsgId === "number") {
|
|
14673
|
+
if (this.adapter.name === "Lagrange.OneBot") {
|
|
14674
|
+
throw new Error("Lagrange.OneBot\u4E0D\u652F\u6301\u901A\u8FC7seq\u83B7\u53D6\u5386\u53F2\u6D88\u606F");
|
|
14675
|
+
}
|
|
14676
|
+
return getHistoryMsgSeq(startMsgId, count3);
|
|
14677
|
+
}
|
|
14678
|
+
if (typeof startMsgId === "string") {
|
|
14679
|
+
if (this.adapter.name === "Lagrange.OneBot") {
|
|
14680
|
+
return getLglHistoryMsg(startMsgId, count3);
|
|
14681
|
+
}
|
|
14682
|
+
const seq2 = await getSeq(startMsgId);
|
|
14683
|
+
return getHistoryMsgSeq(seq2, count3);
|
|
14684
|
+
}
|
|
14685
|
+
throw new Error("startMsgId\u7C7B\u578B\u9519\u8BEF");
|
|
14686
|
+
};
|
|
14653
14687
|
const all = [];
|
|
14688
|
+
const res = await getHistory();
|
|
14654
14689
|
for (const v of res.messages) {
|
|
14655
14690
|
const userId = v.sender.user_id + "" || "";
|
|
14656
14691
|
const messageId = String(v.message_id) || "";
|
|
@@ -28197,6 +28232,9 @@ var init_installMarket = __esm({
|
|
|
28197
28232
|
return installApp(res, plugin, data, ip);
|
|
28198
28233
|
}
|
|
28199
28234
|
if (data.pluginType === "npm" && plugin.type === "npm") {
|
|
28235
|
+
if (Array.isArray(plugin.allowBuild) && plugin.allowBuild.length) {
|
|
28236
|
+
data.allowBuild = plugin.allowBuild;
|
|
28237
|
+
}
|
|
28200
28238
|
return installNpm(res, plugin, data, ip);
|
|
28201
28239
|
}
|
|
28202
28240
|
if (data.pluginType === "git" && plugin.type === "git") {
|
|
@@ -28214,6 +28252,9 @@ var init_installMarket = __esm({
|
|
|
28214
28252
|
async (_2, emitLog) => {
|
|
28215
28253
|
const args = ["add", data.target, "--save"];
|
|
28216
28254
|
if (isWorkspace()) args.push("-w");
|
|
28255
|
+
if (Array.isArray(data.allowBuild) && data.allowBuild.length && isPnpm10()) {
|
|
28256
|
+
data.allowBuild.forEach((pkg2) => args.unshift(`--allow-build=${pkg2}`));
|
|
28257
|
+
}
|
|
28217
28258
|
let IS_ERR_PNPM_PUBLIC_HOIST_PATTERN_DIFF = false;
|
|
28218
28259
|
await spawnProcess("pnpm", args, {}, emitLog, () => {
|
|
28219
28260
|
IS_ERR_PNPM_PUBLIC_HOIST_PATTERN_DIFF = true;
|
|
@@ -28396,6 +28437,9 @@ var init_installCustom = __esm({
|
|
|
28396
28437
|
const args = ["add", pkg2, "--save"];
|
|
28397
28438
|
if (isWorkspace()) args.push("-w");
|
|
28398
28439
|
if (data.registry) args.push(`--registry=${data.registry}`);
|
|
28440
|
+
if (Array.isArray(data.allowBuild) && data.allowBuild.length && isPnpm10()) {
|
|
28441
|
+
data.allowBuild.forEach((pkg3) => args.unshift(`--allow-build=${pkg3}`));
|
|
28442
|
+
}
|
|
28399
28443
|
let IS_ERR_PNPM_PUBLIC_HOIST_PATTERN_DIFF = false;
|
|
28400
28444
|
await spawnProcess("pnpm", args, {}, emitLog, () => {
|
|
28401
28445
|
IS_ERR_PNPM_PUBLIC_HOIST_PATTERN_DIFF = true;
|
|
@@ -28861,16 +28905,19 @@ var init_manage2 = __esm({
|
|
|
28861
28905
|
if (!dependencies.name || !dependencies.location) {
|
|
28862
28906
|
return handleReturn2(res, false, "\u65E0\u6548\u8BF7\u6C42\uFF1A\u7F3A\u5C11\u5FC5\u8981\u53C2\u6570");
|
|
28863
28907
|
}
|
|
28864
|
-
const
|
|
28908
|
+
const name = `${dependencies.name}@${dependencies.version || "latest"}`;
|
|
28865
28909
|
const id = await taskSystem.add(
|
|
28866
28910
|
{
|
|
28867
28911
|
type: "add-dependencies",
|
|
28868
28912
|
name: "\u4F9D\u8D56\u65B0\u589E",
|
|
28869
|
-
target:
|
|
28913
|
+
target: name,
|
|
28870
28914
|
operatorIp: ip
|
|
28871
28915
|
},
|
|
28872
28916
|
async (_, emitLog) => {
|
|
28873
|
-
const args = ["add",
|
|
28917
|
+
const args = ["add", name];
|
|
28918
|
+
if (Array.isArray(dependencies.allowBuild) && dependencies.allowBuild.length && isPnpm10()) {
|
|
28919
|
+
dependencies.allowBuild.forEach((pkg2) => args.unshift(`--allow-build=${pkg2}`));
|
|
28920
|
+
}
|
|
28874
28921
|
if (dependencies.location === "devDependencies") {
|
|
28875
28922
|
args.push("-D");
|
|
28876
28923
|
} else if (dependencies.location === "optionalDependencies") {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t}from"./vendor-react-Hg1DVPZt.js";import{P as r}from"./components-SKlAGqzh.js";import"./vendor-others-B6NXaB-r.js";import"./vendor-editor-B8hjWfkw.js";import"./vendor-ui-utils-5rYIvRjL.js";import"./vendor-heroui-D6FhP6a0.js";import"./page-dashboard-BU7cB7ZI.js";import"./hooks-Cx1Yu0OX.js";import"./utils-x5AKiszG.js";import"./vendor-visual-mzxhMYK3.js";const x=()=>t.jsx("div",{className:"min-h-screen flex items-center justify-center",children:t.jsx(r,{})});export{x as default};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{V as p}from"./vendor-react-
|
|
1
|
+
import{V as p}from"./vendor-react-Hg1DVPZt.js";import{a5 as g}from"./components-SKlAGqzh.js";const k=async(t,n,e,r)=>{const{setIsLogModalOpen:i,setTaskId:c,setTaskLogs:o,setTaskName:f}=n;f("更新插件");const a=["开始创建更新任务...",`options: ${JSON.stringify(t)}`];o(a);try{const s=await g(t);if(s.success&&s.taskId)c(s.taskId),o([...a,`
|
|
2
2
|
任务创建成功!`,`任务ID: ${s.taskId}`,"正在连接任务执行日志..."]),i(!0),typeof e=="function"&&e(),typeof r=="function"&&r();else throw new Error(s.message||"未知错误")}catch(s){console.error("更新失败:",s),p.error(`更新失败: ${s.message}`)}};export{k as c};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/web/index.html
CHANGED
|
@@ -14,21 +14,21 @@
|
|
|
14
14
|
content="viewport-fit=cover, width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
|
|
15
15
|
name="viewport" />
|
|
16
16
|
<link href="/web/assets/ico/favicon-BoqZd694.ico" rel="icon" />
|
|
17
|
-
<script type="module" crossorigin src="/web/assets/js/entry-
|
|
17
|
+
<script type="module" crossorigin src="/web/assets/js/entry-vKz092kA.js"></script>
|
|
18
18
|
<link rel="modulepreload" crossorigin href="/web/assets/js/vendor-editor-B8hjWfkw.js">
|
|
19
|
-
<link rel="modulepreload" crossorigin href="/web/assets/js/vendor-others-
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/web/assets/js/vendor-others-B6NXaB-r.js">
|
|
20
20
|
<link rel="modulepreload" crossorigin href="/web/assets/js/vendor-ui-utils-5rYIvRjL.js">
|
|
21
|
-
<link rel="modulepreload" crossorigin href="/web/assets/js/vendor-react-
|
|
22
|
-
<link rel="modulepreload" crossorigin href="/web/assets/js/vendor-heroui-
|
|
23
|
-
<link rel="modulepreload" crossorigin href="/web/assets/js/hooks-
|
|
24
|
-
<link rel="modulepreload" crossorigin href="/web/assets/js/vendor-visual-
|
|
25
|
-
<link rel="modulepreload" crossorigin href="/web/assets/js/components-
|
|
26
|
-
<link rel="modulepreload" crossorigin href="/web/assets/js/utils-
|
|
27
|
-
<link rel="modulepreload" crossorigin href="/web/assets/js/page-dashboard-
|
|
21
|
+
<link rel="modulepreload" crossorigin href="/web/assets/js/vendor-react-Hg1DVPZt.js">
|
|
22
|
+
<link rel="modulepreload" crossorigin href="/web/assets/js/vendor-heroui-D6FhP6a0.js">
|
|
23
|
+
<link rel="modulepreload" crossorigin href="/web/assets/js/hooks-Cx1Yu0OX.js">
|
|
24
|
+
<link rel="modulepreload" crossorigin href="/web/assets/js/vendor-visual-mzxhMYK3.js">
|
|
25
|
+
<link rel="modulepreload" crossorigin href="/web/assets/js/components-SKlAGqzh.js">
|
|
26
|
+
<link rel="modulepreload" crossorigin href="/web/assets/js/utils-x5AKiszG.js">
|
|
27
|
+
<link rel="modulepreload" crossorigin href="/web/assets/js/page-dashboard-BU7cB7ZI.js">
|
|
28
28
|
<link rel="stylesheet" crossorigin href="/web/assets/css/vendor-editor-CFbL2ovg.css">
|
|
29
29
|
<link rel="stylesheet" crossorigin href="/web/assets/css/vendor-others-ZgkIHsf0.css">
|
|
30
30
|
<link rel="stylesheet" crossorigin href="/web/assets/css/components-ep7vm38G.css">
|
|
31
|
-
<link rel="stylesheet" crossorigin href="/web/assets/css/index-
|
|
31
|
+
<link rel="stylesheet" crossorigin href="/web/assets/css/index-2KMNnJRA.css">
|
|
32
32
|
</head>
|
|
33
33
|
|
|
34
34
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-karin",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.6",
|
|
4
4
|
"description": "Lightweight, efficient, concise, and stable robot framework.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"node",
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
},
|
|
160
160
|
"dependencies": {
|
|
161
161
|
"art-template": "npm:@karinjs/art-template@1.1.0",
|
|
162
|
-
"axios": "npm:@karinjs/axios@1.1.
|
|
162
|
+
"axios": "npm:@karinjs/axios@1.1.8",
|
|
163
163
|
"chalk": "5.4.1",
|
|
164
164
|
"chokidar": "4.0.3",
|
|
165
165
|
"express": "npm:@karinjs/express@1.0.3",
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
"devDependencies": {
|
|
175
175
|
"@karinjs/node-pty": "^1.1.0",
|
|
176
176
|
"@karinjs/plugin-webui-network-monitor": "^1.0.3",
|
|
177
|
-
"@karinjs/plugins-list": "^1.
|
|
177
|
+
"@karinjs/plugins-list": "^1.7.0",
|
|
178
178
|
"@types/express": "^5.0.1",
|
|
179
179
|
"@types/lodash": "^4.17.16",
|
|
180
180
|
"cross-env": "^7.0.3",
|
|
@@ -189,5 +189,5 @@
|
|
|
189
189
|
"access": "public",
|
|
190
190
|
"registry": "https://registry.npmjs.org"
|
|
191
191
|
},
|
|
192
|
-
"time": "2025-05-03T19:55:
|
|
192
|
+
"time": "2025-05-03T19:55:55.123Z"
|
|
193
193
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as t}from"./vendor-react-BFjuLQyM.js";import{P as r}from"./components-CxadY39V.js";import"./vendor-others-BM6DakDu.js";import"./vendor-editor-B8hjWfkw.js";import"./vendor-ui-utils-5rYIvRjL.js";import"./vendor-heroui-CWZ6Mu45.js";import"./page-dashboard-DeOjlIBI.js";import"./hooks-DCwZcclx.js";import"./utils-qrmq67Xg.js";import"./vendor-visual-CzYP84zg.js";const x=()=>t.jsx("div",{className:"min-h-screen flex items-center justify-center",children:t.jsx(r,{})});export{x as default};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|