dsh-multigameassistant 2.1.1 → 2.2.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/cordis.patch.yml +16 -1
- package/lib/analyzer.js +37 -81
- package/lib/browser.js +1 -1
- package/lib/{chunk-FBDVN6Q2.js → chunk-52LYI7WP.js} +1 -1
- package/lib/{chunk-SHTX4AGU.js → chunk-6DSSLS7I.js} +26 -0
- package/lib/{chunk-VOTN4IHB.js → chunk-EOZKHLHK.js} +3 -3
- package/lib/{chunk-NM6H6WCQ.js → chunk-F7ZQE7BT.js} +291 -18
- package/lib/{chunk-5PDYWE24.js → chunk-IBPJC6DX.js} +153 -5
- package/lib/chunk-NOZCFSQP.js +22944 -0
- package/lib/chunk-NOZCFSQP.js.LEGAL.txt +8 -0
- package/lib/{chunk-MQG5FLOG.js → chunk-OFVGRKTD.js} +667 -39
- package/lib/{chunk-UQLHGLMP.js → chunk-YSTZL6HE.js} +11 -3
- package/lib/emulator.js +2 -2
- package/lib/feishu.js +5 -5
- package/lib/game-intel.js +531 -67
- package/lib/gateway.js +14 -6
- package/lib/guard.js +2 -2
- package/lib/intervene.js +8 -6
- package/lib/low-context.js +3 -3
- package/lib/monitor.js +4 -4
- package/lib/notify.js +5 -5
- package/lib/orchestrator.js +8 -8
- package/lib/qqbot.js +5 -5
- package/lib/runner.js +4 -4
- package/lib/scheduler.js +2 -2
- package/lib/script-registry.js +33 -3705
- package/lib/webapi-GDSF5EWP.js +2481 -0
- package/package.json +1 -1
- package/skills/game-intel.md +12 -3
- package/skills/script-analysis.md +30 -3
- package/skills/web-reading.md +52 -15
- package/web/assets/index-BBPTH2CM.css +1 -0
- package/web/assets/index-DRxvDcu6.js +245 -0
- package/web/assets/index-DRxvDcu6.js.map +1 -0
- package/web/index.html +2 -2
- package/lib/chunk-RFCFA5P5.js +0 -11
- package/lib/games/arknights/game.yaml +0 -36
- package/lib/games/endfield/game.yaml +0 -25
- package/lib/games/starrail/game.yaml +0 -33
- package/lib/packs/maa/adg.script.yaml +0 -220
- package/lib/packs/maaend/adg.script.yaml +0 -160
- package/lib/packs/march7th/adg.script.yaml +0 -216
- package/web/assets/index-CL3SeTW9.css +0 -1
- package/web/assets/index-GYwpGP3f.js +0 -244
- package/web/assets/index-GYwpGP3f.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __adgCreateRequire } from 'node:module'; import { dirname as __adgDirname } from 'node:path'; import { fileURLToPath as __adgFileURLToPath } from 'node:url'; const require = __adgCreateRequire(import.meta.url); const __filename = __adgFileURLToPath(import.meta.url); const __dirname = __adgDirname(__filename);
|
|
2
2
|
import {
|
|
3
3
|
convertRecord
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OFVGRKTD.js";
|
|
5
5
|
import {
|
|
6
6
|
writeFileAtomic
|
|
7
7
|
} from "./chunk-RESS7WVY.js";
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
threadMessage,
|
|
21
21
|
threadReminder,
|
|
22
22
|
threadsBetween
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-F7ZQE7BT.js";
|
|
24
24
|
import {
|
|
25
25
|
external_exports
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6DSSLS7I.js";
|
|
27
27
|
|
|
28
28
|
// packages/notify/lib/index.js
|
|
29
29
|
import { readFile } from "node:fs/promises";
|
|
@@ -599,12 +599,15 @@ async function workReply(iterator, requestId, text, turn, settled) {
|
|
|
599
599
|
let cut = false;
|
|
600
600
|
const turns = [];
|
|
601
601
|
let reply = new TurnReply();
|
|
602
|
+
let switched = false;
|
|
602
603
|
const take = (frame) => {
|
|
603
604
|
if (frame.type !== "event")
|
|
604
605
|
return false;
|
|
605
606
|
const event = convertRecord(frame);
|
|
606
607
|
if (event === null)
|
|
607
608
|
return false;
|
|
609
|
+
const afterSwitch = switched;
|
|
610
|
+
switched = event.type === "unknown" && event.upstreamType === "model/selection";
|
|
608
611
|
if (event.type === "user/message") {
|
|
609
612
|
const body = event.content.map((p) => p.type === "text" ? p.text : "").join("");
|
|
610
613
|
if (event.requestId === requestId || event.requestId === void 0 && !mine && body.trim() === text.trim())
|
|
@@ -620,6 +623,11 @@ async function workReply(iterator, requestId, text, turn, settled) {
|
|
|
620
623
|
}
|
|
621
624
|
if (event.type === "tool/call" && SUB_AGENT_TOOLS.has(event.name))
|
|
622
625
|
opened = true;
|
|
626
|
+
if (event.type === "turn/end" && event.reason.kind === "error" && afterSwitch) {
|
|
627
|
+
turns.push(reply.reply);
|
|
628
|
+
reply = new TurnReply();
|
|
629
|
+
return false;
|
|
630
|
+
}
|
|
623
631
|
if (event.type === "turn/end" && event.reason.kind !== "completed" && event.reason.kind !== "stop")
|
|
624
632
|
cut = true;
|
|
625
633
|
if (!reply.add(event))
|
package/lib/emulator.js
CHANGED
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
EMULATORS_CAPABILITY,
|
|
11
11
|
EmulatorSettings
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-F7ZQE7BT.js";
|
|
13
13
|
import {
|
|
14
14
|
external_exports
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6DSSLS7I.js";
|
|
16
16
|
import "./chunk-2UFLGPDY.js";
|
|
17
17
|
|
|
18
18
|
// packages/emulator/lib/index.js
|
package/lib/feishu.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createRequire as __adgCreateRequire } from 'node:module'; import { dirn
|
|
|
2
2
|
import {
|
|
3
3
|
replyMarkdown,
|
|
4
4
|
replyPlain
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YSTZL6HE.js";
|
|
6
6
|
import {
|
|
7
7
|
require_extension,
|
|
8
8
|
require_permessage_deflate,
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
require_subprotocol,
|
|
13
13
|
require_websocket,
|
|
14
14
|
require_websocket_server
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-OFVGRKTD.js";
|
|
16
|
+
import "./chunk-52LYI7WP.js";
|
|
17
17
|
import {
|
|
18
18
|
writeFileAtomic
|
|
19
19
|
} from "./chunk-RESS7WVY.js";
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
FEISHU_SECRET_REF,
|
|
23
23
|
FeishuPending,
|
|
24
24
|
FeishuSettings
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-F7ZQE7BT.js";
|
|
26
26
|
import {
|
|
27
27
|
external_exports
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-6DSSLS7I.js";
|
|
29
29
|
import {
|
|
30
30
|
__commonJS,
|
|
31
31
|
__require,
|