dsh-multigameassistant 2.1.0 → 2.2.0
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 +38 -82
- package/lib/browser.js +1 -1
- package/lib/{chunk-77ZYHRN7.js → chunk-26JIEF6M.js} +153 -5
- package/lib/{chunk-SHTX4AGU.js → chunk-6DSSLS7I.js} +26 -0
- package/lib/{chunk-YG4B5G7F.js → chunk-B4UT4NYH.js} +1 -0
- package/lib/{chunk-EOWM56PA.js → chunk-EKTA4OYC.js} +3 -3
- package/lib/{chunk-TWUATN5X.js → chunk-I4NHWXKH.js} +3 -3
- package/lib/{chunk-FH64SAZU.js → chunk-ICJLH3DP.js} +1 -1
- package/lib/chunk-J4QJC6UZ.js +22944 -0
- package/lib/chunk-J4QJC6UZ.js.LEGAL.txt +8 -0
- package/lib/{chunk-MEKSHT6V.js → chunk-KTOQFJ7R.js} +387 -38
- package/lib/{chunk-V2X4PLF5.js → chunk-NEUZQ7TI.js} +264 -20
- package/lib/emulator.js +3 -3
- package/lib/feishu.js +5 -5
- package/lib/game-intel.js +454 -57
- package/lib/gateway.js +16 -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 -3558
- package/lib/webapi-GDSF5EWP.js +2481 -0
- package/package.json +1 -1
- package/skills/game-intel.md +9 -1
- package/skills/script-analysis.md +30 -3
- package/skills/web-reading.md +7 -2
- package/web/assets/index-C5cMI4PK.css +1 -0
- package/web/assets/index-ClYIoZUR.js +244 -0
- package/web/assets/index-ClYIoZUR.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-C-csjWiw.js +0 -244
- package/web/assets/index-C-csjWiw.js.map +0 -1
- package/web/assets/index-CjtVfcDS.css +0 -1
|
@@ -1,216 +0,0 @@
|
|
|
1
|
-
# March7thAssistant (崩坏:星穹铁道), a command-line program (family cli):
|
|
2
|
-
# `March7th Assistant.exe <task>`. The full package bundles Python and its
|
|
3
|
-
# dependencies. The zip is preferred over the smaller 7z: Windows' built-in tar
|
|
4
|
-
# may lack the LZMA2 decoder 7z archives usually use.
|
|
5
|
-
id: march7th
|
|
6
|
-
name: 三月七小助手(星穹铁道)
|
|
7
|
-
description: 崩坏:星穹铁道自动化:清体力、每日实训、模拟宇宙等;操作 PC 版游戏,占用鼠标键盘
|
|
8
|
-
family: cli
|
|
9
|
-
source:
|
|
10
|
-
github: moesnow/March7thAssistant
|
|
11
|
-
homepage: https://m7a.top
|
|
12
|
-
release:
|
|
13
|
-
asset: ['March7thAssistant_full.zip', 'March7thAssistant_full.7z']
|
|
14
|
-
# Uploaded once for every platform: asked without os and arch.
|
|
15
|
-
mirrorchyan:
|
|
16
|
-
rid: March7thAssistant
|
|
17
|
-
platform: false
|
|
18
|
-
config:
|
|
19
|
-
files:
|
|
20
|
-
- path: config.yaml
|
|
21
|
-
format: yaml
|
|
22
|
-
detect:
|
|
23
|
-
files: [March7th Assistant.exe]
|
|
24
|
-
launch:
|
|
25
|
-
exe: March7th Assistant.exe
|
|
26
|
-
# The task program runs a full job when started without arguments; settings live in the launcher.
|
|
27
|
-
settings:
|
|
28
|
-
exe: March7th Launcher.exe
|
|
29
|
-
# March7th starts the game itself (game_path in its config.yaml).
|
|
30
|
-
game:
|
|
31
|
-
name: 崩坏:星穹铁道
|
|
32
|
-
pc:
|
|
33
|
-
process: StarRail.exe
|
|
34
|
-
keywords: [StarRail, Star Rail, 星穹铁道, HoYoPlay, miHoYo, 米哈游]
|
|
35
|
-
selfLaunch: always
|
|
36
|
-
tasks:
|
|
37
|
-
- id: main
|
|
38
|
-
title: 完整运行
|
|
39
|
-
description: 启动游戏,按设置里开启的功能完整跑一轮:兑换码、活动、清体力、每日实训,以及开启了的模拟宇宙、差分宇宙、货币战争、锄大地、混沌回忆等,最后领取奖励。
|
|
40
|
-
utterances: [完整运行, 星穹铁道全部, 三月七跑一遍, 星铁日常全套]
|
|
41
|
-
args: ['main']
|
|
42
|
-
resources: { input: desktop, account: starrail }
|
|
43
|
-
expectedDuration: 90m
|
|
44
|
-
- id: routine
|
|
45
|
-
title: 日常
|
|
46
|
-
description: 只做日常这部分(按设置里开启的:兑换码、活动、历战余响、清体力、每日实训),不管今天是否已经跑过,最后领取奖励。
|
|
47
|
-
utterances: [星铁日常, 星穹铁道日常]
|
|
48
|
-
args: ['routine']
|
|
49
|
-
resources: { input: desktop, account: starrail }
|
|
50
|
-
expectedDuration: 45m
|
|
51
|
-
- id: daily
|
|
52
|
-
title: 每日实训
|
|
53
|
-
description: 完成每日实训里能自动完成的项目,再领取奖励。
|
|
54
|
-
utterances: [每日实训]
|
|
55
|
-
args: ['daily']
|
|
56
|
-
resources: { input: desktop, account: starrail }
|
|
57
|
-
- id: power
|
|
58
|
-
title: 清体力
|
|
59
|
-
description: 按设置里的副本类型和体力计划用掉开拓力。
|
|
60
|
-
utterances: [清体力, 刷开拓力, 用掉体力]
|
|
61
|
-
args: ['power']
|
|
62
|
-
resources: { input: desktop, account: starrail }
|
|
63
|
-
- id: universe
|
|
64
|
-
title: 模拟宇宙
|
|
65
|
-
description: 运行模拟宇宙(三月七自带的模拟宇宙程序),类型和次数按设置。
|
|
66
|
-
args: ['universe']
|
|
67
|
-
resources: { input: desktop, account: starrail }
|
|
68
|
-
- id: divergent
|
|
69
|
-
title: 差分宇宙
|
|
70
|
-
description: 运行差分宇宙,模式和难度按设置。
|
|
71
|
-
args: ['divergent']
|
|
72
|
-
resources: { input: desktop, account: starrail }
|
|
73
|
-
- id: currencywars
|
|
74
|
-
title: 货币战争
|
|
75
|
-
description: 运行货币战争,模式和职级难度按设置。
|
|
76
|
-
args: ['currencywars']
|
|
77
|
-
resources: { input: desktop, account: starrail }
|
|
78
|
-
- id: fight
|
|
79
|
-
title: 锄大地
|
|
80
|
-
description: 锄大地:自动跑大世界路线清怪(三月七自带的锄大地程序),优先星球和地图版本按设置。
|
|
81
|
-
args: ['fight']
|
|
82
|
-
resources: { input: desktop, account: starrail }
|
|
83
|
-
- id: forgottenhall
|
|
84
|
-
title: 混沌回忆
|
|
85
|
-
description: 挑战混沌回忆,关卡范围和队伍按设置。
|
|
86
|
-
args: ['forgottenhall']
|
|
87
|
-
resources: { input: desktop, account: starrail }
|
|
88
|
-
- id: purefiction
|
|
89
|
-
title: 虚构叙事
|
|
90
|
-
description: 挑战虚构叙事,关卡范围和队伍按设置。
|
|
91
|
-
args: ['purefiction']
|
|
92
|
-
resources: { input: desktop, account: starrail }
|
|
93
|
-
- id: apocalyptic
|
|
94
|
-
title: 末日幻影
|
|
95
|
-
description: 挑战末日幻影,关卡范围和队伍按设置。
|
|
96
|
-
args: ['apocalyptic']
|
|
97
|
-
resources: { input: desktop, account: starrail }
|
|
98
|
-
- id: redemption
|
|
99
|
-
title: 兑换码
|
|
100
|
-
description: 兑换兑换码。
|
|
101
|
-
args: ['redemption']
|
|
102
|
-
resources: { input: desktop, account: starrail }
|
|
103
|
-
- id: game_update
|
|
104
|
-
title: 更新游戏
|
|
105
|
-
description: 通过启动器更新星穹铁道。
|
|
106
|
-
args: ['game_update']
|
|
107
|
-
logs:
|
|
108
|
-
sources:
|
|
109
|
-
- stdout: true
|
|
110
|
-
# Console lines are "time | LEVEL | message" (its utils/logger). Its errors are
|
|
111
|
-
# often retried inside the task, so they are warnings; the exit code decides.
|
|
112
|
-
rules:
|
|
113
|
-
- { match: '\| (ERROR|CRITICAL) \|', level: warning, tag: script-error }
|
|
114
|
-
# The user guide (the 脚本 page): from its README, main.py's tasks and the
|
|
115
|
-
# comments in assets/config/config.example.yaml.
|
|
116
|
-
guide:
|
|
117
|
-
overview: 三月七小助手自动做崩坏:星穹铁道的日常和周常:清体力、每日实训、领取奖励、委托、锄大地、模拟宇宙、差分宇宙、货币战争、混沌回忆、虚构叙事、末日幻影等。它操作 PC 版游戏窗口,运行时会占用电脑的鼠标键盘,不能和其他占用鼠标的脚本同时跑。它自己会启动游戏;做哪些事、刷哪个副本都由它的设置(config.yaml)决定。
|
|
118
|
-
setup:
|
|
119
|
-
- 在「配置」里点「打开脚本修改设置」打开三月七小助手的设置窗口,设置游戏路径,开启要做的功能(清体力、每日实训、领取奖励、模拟宇宙、锄大地等),选好副本类型和队伍。
|
|
120
|
-
- 把「任务完成后的操作」设成无操作或退出程序,不要选循环执行或关机;最好关掉「成功后暂停程序」,让它跑完就退出。
|
|
121
|
-
- 关掉设置窗口,设置会保存到本应用用的那份配置里。
|
|
122
|
-
checks:
|
|
123
|
-
- 运行期间不要动鼠标键盘,游戏窗口会被切到前台。
|
|
124
|
-
- 同一时间只能跑一个占用鼠标键盘的脚本,本应用会让它们排队。
|
|
125
|
-
features:
|
|
126
|
-
- title: 清体力
|
|
127
|
-
description: 按副本类型和体力计划用掉开拓力。
|
|
128
|
-
enable: 在设置里打开清体力,选副本类型(拟造花萼(金)、拟造花萼(赤)、凝滞虚影、侵蚀隧洞等)。
|
|
129
|
-
config:
|
|
130
|
-
- { file: config.yaml, path: [power_enable], value: true }
|
|
131
|
-
tasks: [main, routine, power]
|
|
132
|
-
- title: 每日实训
|
|
133
|
-
enable: 在设置里打开每日实训。
|
|
134
|
-
config:
|
|
135
|
-
- { file: config.yaml, path: [daily_enable], value: true }
|
|
136
|
-
tasks: [main, routine, daily]
|
|
137
|
-
- title: 领取奖励
|
|
138
|
-
description: 领取委托、邮件、支援、每日实训、无名勋礼、兑换码等奖励,每一种可以单独开关。
|
|
139
|
-
enable: 在设置里打开领取奖励,再勾选要领的种类。
|
|
140
|
-
config:
|
|
141
|
-
- { file: config.yaml, path: [reward_enable], value: true }
|
|
142
|
-
tasks: [main, routine, daily]
|
|
143
|
-
- title: 历战余响
|
|
144
|
-
description: 体力优先打满每周 3 次历战余响。
|
|
145
|
-
enable: 在设置里打开历战余响,选从周几开始打。
|
|
146
|
-
config:
|
|
147
|
-
- { file: config.yaml, path: [echo_of_war_enable], value: true }
|
|
148
|
-
tasks: [main, routine]
|
|
149
|
-
- title: 模拟宇宙 / 差分宇宙
|
|
150
|
-
enable: 在设置里打开模拟宇宙,选类型(差分宇宙或模拟宇宙)、运行频率和次数。
|
|
151
|
-
config:
|
|
152
|
-
- { file: config.yaml, path: [universe_enable], value: true }
|
|
153
|
-
tasks: [main, universe, divergent]
|
|
154
|
-
- title: 货币战争
|
|
155
|
-
description: 打货币战争拿每周积分奖励。
|
|
156
|
-
enable: 在设置里打开货币战争,选模式和职级难度。
|
|
157
|
-
config:
|
|
158
|
-
- { file: config.yaml, path: [currencywars_enable], value: true }
|
|
159
|
-
tasks: [main, currencywars]
|
|
160
|
-
- title: 锄大地
|
|
161
|
-
enable: 在设置里打开锄大地,选优先星球和地图版本。
|
|
162
|
-
config:
|
|
163
|
-
- { file: config.yaml, path: [fight_enable], value: true }
|
|
164
|
-
tasks: [main, fight]
|
|
165
|
-
- title: 混沌回忆、虚构叙事、末日幻影
|
|
166
|
-
enable: 在设置里分别打开它们,设置允许挑战的关卡范围和队伍。
|
|
167
|
-
config:
|
|
168
|
-
- { file: config.yaml, path: [forgottenhall_enable], value: true }
|
|
169
|
-
- { file: config.yaml, path: [purefiction_enable], value: true }
|
|
170
|
-
- { file: config.yaml, path: [apocalyptic_enable], value: true }
|
|
171
|
-
tasks: [main, forgottenhall, purefiction, apocalyptic]
|
|
172
|
-
config:
|
|
173
|
-
- file: config.yaml
|
|
174
|
-
about: 三月七小助手的全部设置,一个键一项,文件里每个键后面都有中文注释。设置窗口改的就是它。
|
|
175
|
-
keys:
|
|
176
|
-
- path: [game_path]
|
|
177
|
-
meaning: 游戏程序 StarRail.exe 的位置
|
|
178
|
-
advice: 打开了「自动配置游戏路径」(auto_set_game_path_enable)时三月七会自己找。
|
|
179
|
-
- path: [after_finish]
|
|
180
|
-
meaning: 任务完成后做什么
|
|
181
|
-
values: None(无操作)、Exit(退出程序)、Loop(循环执行)、Shutdown(关机)
|
|
182
|
-
default: None
|
|
183
|
-
advice: 用 None 或 Exit;Loop 会让它一直不结束,Shutdown 会关机。
|
|
184
|
-
- path: [pause_after_success]
|
|
185
|
-
meaning: 成功后是否暂停程序(不循环时)
|
|
186
|
-
values: true 暂停,false 直接退出
|
|
187
|
-
default: true
|
|
188
|
-
advice: 设为 false,跑完就退出。
|
|
189
|
-
- path: [exit_after_failure]
|
|
190
|
-
meaning: 失败后是否直接退出
|
|
191
|
-
values: true 直接退出,false 暂停程序
|
|
192
|
-
default: false
|
|
193
|
-
advice: 设为 true,失败时也能马上结束。
|
|
194
|
-
- path: [instance_type]
|
|
195
|
-
meaning: 清体力打的副本类型
|
|
196
|
-
values: 拟造花萼(金)、拟造花萼(赤)、凝滞虚影、侵蚀隧洞等
|
|
197
|
-
default: 拟造花萼(金)
|
|
198
|
-
- path: [use_reserved_trailblaze_power]
|
|
199
|
-
meaning: 清体力时是否使用后备开拓力
|
|
200
|
-
values: true 或 false
|
|
201
|
-
default: false
|
|
202
|
-
- path: [use_fuel]
|
|
203
|
-
meaning: 清体力时是否使用燃料
|
|
204
|
-
values: true 或 false
|
|
205
|
-
default: false
|
|
206
|
-
troubleshooting:
|
|
207
|
-
- problem: 日志里有「| ERROR |」
|
|
208
|
-
cause: 三月七记录了一个错误;它常在任务里自己重试,不一定失败。
|
|
209
|
-
fix: 以这次运行的结果为准;运行失败时在运行记录里看出错前后的日志。
|
|
210
|
-
tag: script-error
|
|
211
|
-
- problem: 日志出现「截图失败:没有找到游戏窗口」
|
|
212
|
-
cause: 游戏没有打开,或者窗口标题和设置里的不一样。
|
|
213
|
-
fix: 检查设置里的游戏路径和游戏窗口标题(game_title_name),确认游戏能正常打开。
|
|
214
|
-
- problem: 跑完了却一直不结束
|
|
215
|
-
cause: 「任务完成后的操作」选了循环执行,或者开着「成功后暂停程序」。
|
|
216
|
-
fix: 把 after_finish 改成 None 或 Exit,把 pause_after_success 设为 false。
|