cortico-world-mosey 2.0.2 → 2.0.4
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 +4 -0
- package/package.json +1 -2
- package/docs/comments-sheet.png +0 -0
- package/docs/detail-sheet.png +0 -0
- package/docs/life-section.png +0 -0
- package/docs/panel-preview.html +0 -556
- package/docs/panel-preview.png +0 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cortico-world-mosey",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "摸鱼(Mosey):让 Coopanion 的桌宠自己去抖音和 B站逛一圈。评论和私信都能收能回;能一起看视频(B站带字幕弹幕,抖音可自动连刷);关注流、周报、本地书库;按额度点赞、评论、关注、发动态。默认人审,三把工具、少 token。\n\nQQ 交流群:745879632",
|
|
6
6
|
"license": "MIT",
|
|
@@ -68,7 +68,6 @@
|
|
|
68
68
|
"src",
|
|
69
69
|
"webui",
|
|
70
70
|
"assets",
|
|
71
|
-
"docs",
|
|
72
71
|
"README.md",
|
|
73
72
|
"DESIGN.md",
|
|
74
73
|
"NOTICE.md",
|
package/docs/comments-sheet.png
DELETED
|
Binary file
|
package/docs/detail-sheet.png
DELETED
|
Binary file
|
package/docs/life-section.png
DELETED
|
Binary file
|
package/docs/panel-preview.html
DELETED
|
@@ -1,556 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="zh-CN">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<title>摸鱼 面板预览</title>
|
|
6
|
-
<link rel="stylesheet" href="../webui/style.css">
|
|
7
|
-
<style>
|
|
8
|
-
:root { color-scheme: light; }
|
|
9
|
-
body {
|
|
10
|
-
margin: 0;
|
|
11
|
-
padding: 26px 30px 40px;
|
|
12
|
-
background: #fff;
|
|
13
|
-
color: #1f2328;
|
|
14
|
-
font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
|
|
15
|
-
}
|
|
16
|
-
.wrap { max-width: 1010px; margin: 0 auto; }
|
|
17
|
-
.fake-tabs {
|
|
18
|
-
display: flex; align-items: center; gap: 18px;
|
|
19
|
-
padding: 14px 0 12px; border-bottom: 1px solid #eceff3; margin-bottom: 4px;
|
|
20
|
-
font-size: 13px; color: #6b7280;
|
|
21
|
-
}
|
|
22
|
-
.fake-tabs b { color: #1f2328; font-weight: 600; }
|
|
23
|
-
.fake-tabs b::after {
|
|
24
|
-
content: ''; display: block; height: 2px; width: 20px; margin-top: 8px;
|
|
25
|
-
background: #3b82f6; border-radius: 2px;
|
|
26
|
-
}
|
|
27
|
-
.fake-badges { display: flex; gap: 8px; margin-left: 4px; }
|
|
28
|
-
.fake-badges span {
|
|
29
|
-
border: 1px solid #e5e7eb; border-radius: 999px; padding: 2px 9px; font-size: 11px; color: #6b7280;
|
|
30
|
-
}
|
|
31
|
-
body.dark { background: #1b1c1f; color: #e8e8ea; }
|
|
32
|
-
body.dark .fake-tabs { border-color: #2c2d31; color: #9a9ba0; }
|
|
33
|
-
body.dark .fake-tabs b { color: #e8e8ea; }
|
|
34
|
-
body.dark .fake-badges span { border-color: #34353a; color: #9a9ba0; }
|
|
35
|
-
</style>
|
|
36
|
-
</head>
|
|
37
|
-
<body>
|
|
38
|
-
<div class="wrap">
|
|
39
|
-
<div class="fake-tabs">
|
|
40
|
-
<b>摸鱼</b><span>配置</span><span>摸鱼 · 环境提示词</span>
|
|
41
|
-
<span class="fake-badges"><span>今日赞 2/4</span><span>评 1/1</span><span>待批 1</span></span>
|
|
42
|
-
</div>
|
|
43
|
-
<div id="root"></div>
|
|
44
|
-
</div>
|
|
45
|
-
<script type="module">
|
|
46
|
-
import panel from '../webui/client.js';
|
|
47
|
-
|
|
48
|
-
if (new URLSearchParams(location.search).get('theme') === 'dark') {
|
|
49
|
-
document.body.classList.add('dark');
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const now = Date.now();
|
|
53
|
-
const viewed = [
|
|
54
|
-
{
|
|
55
|
-
platform: 'bilibili',
|
|
56
|
-
id: 'BV1Mm4y1771E',
|
|
57
|
-
title: '全是干货!5分钟大幅度提高你的对枪水平!【瓦罗兰特/无畏契约】',
|
|
58
|
-
author: '徐桑',
|
|
59
|
-
dur: '5:59',
|
|
60
|
-
at: new Date(now - 12 * 60000).toISOString(),
|
|
61
|
-
url: 'https://www.bilibili.com/video/BV1Mm4y1771E',
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
platform: 'douyin',
|
|
65
|
-
id: '7695080446131981622',
|
|
66
|
-
title: '无畏契约康康真正主力皮肤',
|
|
67
|
-
author: '康康',
|
|
68
|
-
dur: '1:24',
|
|
69
|
-
at: new Date(now - 46 * 60000).toISOString(),
|
|
70
|
-
url: 'https://www.douyin.com/video/7695080446131981622',
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
platform: 'bilibili',
|
|
74
|
-
id: 'BV1pzxw6yEMH',
|
|
75
|
-
title: '《此弟不宜久留》',
|
|
76
|
-
author: '某UP',
|
|
77
|
-
dur: '2:04',
|
|
78
|
-
at: new Date(now - 3 * 3600000).toISOString(),
|
|
79
|
-
url: 'https://www.bilibili.com/video/BV1pzxw6yEMH',
|
|
80
|
-
},
|
|
81
|
-
];
|
|
82
|
-
|
|
83
|
-
const inbox = [
|
|
84
|
-
{
|
|
85
|
-
kind: 'dm',
|
|
86
|
-
platform: 'bilibili',
|
|
87
|
-
type: 'dm',
|
|
88
|
-
id: 'dm:32842111',
|
|
89
|
-
user: '小月月还在玩',
|
|
90
|
-
mid: '32842111',
|
|
91
|
-
text: '没事我陪着你',
|
|
92
|
-
quote: '',
|
|
93
|
-
where: '1 条未读',
|
|
94
|
-
unread: 1,
|
|
95
|
-
at: Math.floor(now / 1000) - 180,
|
|
96
|
-
url: 'https://message.bilibili.com/#/whisper/mid32842111',
|
|
97
|
-
rpid: '0',
|
|
98
|
-
rootRpid: '0',
|
|
99
|
-
fresh: true,
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
kind: 'dm',
|
|
103
|
-
platform: 'douyin',
|
|
104
|
-
type: 'dm',
|
|
105
|
-
id: 'dm:douyin:0:小月月一直在玩',
|
|
106
|
-
user: '小月月一直在玩',
|
|
107
|
-
text: '你好',
|
|
108
|
-
quote: '',
|
|
109
|
-
where: '私信',
|
|
110
|
-
unread: 0,
|
|
111
|
-
at: Math.floor(now / 1000) - 660,
|
|
112
|
-
timeLabel: '11分钟前',
|
|
113
|
-
url: 'https://www.douyin.com/chat',
|
|
114
|
-
rpid: '0',
|
|
115
|
-
rootRpid: '0',
|
|
116
|
-
fresh: true,
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
kind: 'reply',
|
|
120
|
-
platform: 'bilibili',
|
|
121
|
-
type: 'video',
|
|
122
|
-
id: 'm1',
|
|
123
|
-
user: '布鲁斯皮特的皮ii',
|
|
124
|
-
mid: '38419935',
|
|
125
|
-
text: '回复 @穹和黑助 :我勒个去,现在还有真萌新啊,,难得难得,',
|
|
126
|
-
quote: '我也卡在这个词上……是说储备站那几栋按国际象棋叫的、马的那栋吗?一直没认准。',
|
|
127
|
-
where: '看不懂,。因为萌新根本不知道啥叫黑马楼。。',
|
|
128
|
-
at: Math.floor(now / 1000) - 600,
|
|
129
|
-
url: 'https://www.bilibili.com/video/BV1b3411S7Ww#reply222731744112',
|
|
130
|
-
bvid: 'BV1b3411S7Ww',
|
|
131
|
-
rpid: '322477810928',
|
|
132
|
-
rootRpid: '222731744112',
|
|
133
|
-
fresh: true,
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
kind: 'reply',
|
|
137
|
-
platform: 'bilibili',
|
|
138
|
-
type: 'opus',
|
|
139
|
-
id: 'm2',
|
|
140
|
-
user: '时雨留痕',
|
|
141
|
-
mid: '2068905947',
|
|
142
|
-
text: '你在等空吗',
|
|
143
|
-
quote: '',
|
|
144
|
-
where: '阴天 新画的一张。阴天,窗台,外面云压得很低,田里也没什么动静。',
|
|
145
|
-
at: Math.floor(now / 1000) - 3600 * 6,
|
|
146
|
-
url: 'https://www.bilibili.com/opus/1260000000000000000#reply322000000000',
|
|
147
|
-
dynamicId: '1260000000000000000',
|
|
148
|
-
rpid: '322000000000',
|
|
149
|
-
rootRpid: '0',
|
|
150
|
-
fresh: true,
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
kind: 'reply',
|
|
154
|
-
platform: 'bilibili',
|
|
155
|
-
type: 'video',
|
|
156
|
-
id: 'm3',
|
|
157
|
-
user: '超绝捣蛋鬼',
|
|
158
|
-
mid: '11223344',
|
|
159
|
-
text: '回复 @穹和黑助 :同意,最后那句才是要命的。',
|
|
160
|
-
quote: '这个补充说得对,被敲的人回一句就清零,那前面攒的全白搭。',
|
|
161
|
-
where: '敲屏幕那段可爱。不过提醒一直没人看',
|
|
162
|
-
at: Math.floor(now / 1000) - 3600 * 20,
|
|
163
|
-
url: 'https://www.bilibili.com/video/BV1dTnd6qEAq#reply321947798592',
|
|
164
|
-
bvid: 'BV1dTnd6qEAq',
|
|
165
|
-
rpid: '318527619217',
|
|
166
|
-
rootRpid: '321947798592',
|
|
167
|
-
replied: true,
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
kind: 'at',
|
|
171
|
-
platform: 'bilibili',
|
|
172
|
-
type: 'video',
|
|
173
|
-
id: 'm4',
|
|
174
|
-
user: '路过的A',
|
|
175
|
-
mid: '44556677',
|
|
176
|
-
text: '@穹和黑助 这个视频里说的就是你吧',
|
|
177
|
-
quote: '',
|
|
178
|
-
where: '打游戏最怕遇到这种队友',
|
|
179
|
-
at: Math.floor(now / 1000) - 3600 * 26,
|
|
180
|
-
url: 'https://www.bilibili.com/video/BV1pzxw6yEMH#reply321000000001',
|
|
181
|
-
bvid: 'BV1pzxw6yEMH',
|
|
182
|
-
rpid: '321000000001',
|
|
183
|
-
rootRpid: '0',
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
kind: 'reply',
|
|
187
|
-
platform: 'bilibili',
|
|
188
|
-
type: 'video',
|
|
189
|
-
id: 'm5',
|
|
190
|
-
user: '信研xy',
|
|
191
|
-
mid: '55667788',
|
|
192
|
-
text: '回复 @穹和黑助 :同一件事各撞了一回,这个概率真的离谱。',
|
|
193
|
-
quote: '撞得这么准,我都怀疑是不是同一套算法在推。',
|
|
194
|
-
where: '这一年我看过的三百个视频',
|
|
195
|
-
at: Math.floor(now / 1000) - 3600 * 40,
|
|
196
|
-
url: 'https://www.bilibili.com/video/BV1XYxg6DEyf#reply322185884848',
|
|
197
|
-
bvid: 'BV1XYxg6DEyf',
|
|
198
|
-
rpid: '322213591392',
|
|
199
|
-
rootRpid: '322185884848',
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
kind: 'reply',
|
|
203
|
-
platform: 'bilibili',
|
|
204
|
-
type: 'video',
|
|
205
|
-
id: 'm6',
|
|
206
|
-
user: '橘子汽水',
|
|
207
|
-
mid: '66778899',
|
|
208
|
-
text: '说得挺好,不过我还是觉得那段节奏太慢了。',
|
|
209
|
-
quote: '',
|
|
210
|
-
where: '深夜听歌指南',
|
|
211
|
-
at: Math.floor(now / 1000) - 3600 * 52,
|
|
212
|
-
url: 'https://www.bilibili.com/video/BV1SVsd6MEGZ#reply320111222333',
|
|
213
|
-
bvid: 'BV1SVsd6MEGZ',
|
|
214
|
-
rpid: '320111222333',
|
|
215
|
-
rootRpid: '0',
|
|
216
|
-
},
|
|
217
|
-
];
|
|
218
|
-
|
|
219
|
-
const searchItems = [
|
|
220
|
-
{
|
|
221
|
-
id: 'BV1Mm4y1771E',
|
|
222
|
-
title: '全是干货!5分钟大幅度提高你的对枪水平!',
|
|
223
|
-
author: '徐桑',
|
|
224
|
-
dur: '5:59',
|
|
225
|
-
stat: '5.6万赞 230.5万播',
|
|
226
|
-
url: 'https://www.bilibili.com/video/BV1Mm4y1771E',
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
id: 'BV1NpaW6tED1',
|
|
230
|
-
title: '笑了两个小时才舍得发出来',
|
|
231
|
-
author: '开心果-瓦瓦下饭菜',
|
|
232
|
-
dur: '2:17',
|
|
233
|
-
stat: '4.5万赞 114.8万播',
|
|
234
|
-
url: 'https://www.bilibili.com/video/BV1NpaW6tED1',
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
id: 'BV1SVsd6MEGZ',
|
|
238
|
-
title: '这个转场我能看一百遍',
|
|
239
|
-
author: '剪辑小能手',
|
|
240
|
-
dur: '1:02',
|
|
241
|
-
stat: '1.2万赞 30.1万播',
|
|
242
|
-
url: 'https://www.bilibili.com/video/BV1SVsd6MEGZ',
|
|
243
|
-
},
|
|
244
|
-
];
|
|
245
|
-
|
|
246
|
-
const fake = {
|
|
247
|
-
root: document.getElementById('root'),
|
|
248
|
-
language: 'zh',
|
|
249
|
-
interval: () => ({}),
|
|
250
|
-
invoke: async (method, args) => {
|
|
251
|
-
if (method === 'inbox') {
|
|
252
|
-
return {
|
|
253
|
-
ok: true,
|
|
254
|
-
items: inbox,
|
|
255
|
-
counts: { all: inbox.length, reply: inbox.filter((x) => x.kind === 'reply').length, at: inbox.filter((x) => x.kind === 'at').length, dm: inbox.filter((x) => x.kind === 'dm').length },
|
|
256
|
-
unread: inbox.filter((x) => x.fresh).length,
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
if (method === 'mark_seen') return { ok: true, marked: 1 };
|
|
260
|
-
if (method === 'comments') {
|
|
261
|
-
return {
|
|
262
|
-
ok: true,
|
|
263
|
-
kind: 'video',
|
|
264
|
-
id: 'BV1Mm4y1771E',
|
|
265
|
-
title: '全是干货!5分钟大幅度提高你的对枪水平!',
|
|
266
|
-
url: 'https://www.bilibili.com/video/BV1Mm4y1771E',
|
|
267
|
-
total: 1286,
|
|
268
|
-
items: [
|
|
269
|
-
{ rpid: '322477810928', u: '布鲁斯皮特的皮ii', t: '这个转点思路确实好用,练了两把就能稳住。', l: '1.2万', at: 1793344893 },
|
|
270
|
-
{ rpid: '322477810929', u: '时雨留痕', t: '第五分钟那个架枪位置,我一直在用,确实能卡住。', l: '862', at: 1793344894 },
|
|
271
|
-
{ rpid: '322477810930', u: '超绝捣蛋鬼', t: '新手别急着学,先把准星放对位置再说。', l: '156', at: 1793344895 },
|
|
272
|
-
],
|
|
273
|
-
};
|
|
274
|
-
}
|
|
275
|
-
if (method === 'reply_comment') return { ok: true, receipt: 'B站 评论发出去了,rpid 322477810931,公开可见' };
|
|
276
|
-
if (method === 'presence') {
|
|
277
|
-
return {
|
|
278
|
-
ok: true,
|
|
279
|
-
presence: {
|
|
280
|
-
platform: 'bilibili',
|
|
281
|
-
id: 'BV1Mm4y1771E',
|
|
282
|
-
title: '全是干货!5分钟大幅度提高你的对枪水平!【瓦罗兰特/无畏契约】',
|
|
283
|
-
author: '徐桑',
|
|
284
|
-
url: 'https://www.bilibili.com/video/BV1Mm4y1771E',
|
|
285
|
-
phase: 'reading',
|
|
286
|
-
startedAt: Date.now() - 74 * 1000,
|
|
287
|
-
duration: 359,
|
|
288
|
-
},
|
|
289
|
-
};
|
|
290
|
-
}
|
|
291
|
-
if (method === 'presence_dismiss') return { ok: true };
|
|
292
|
-
if (method === 'set_ramp') return { ok: true, newAccountRamp: false };
|
|
293
|
-
if (method === 'set_activity') {
|
|
294
|
-
return {
|
|
295
|
-
ok: true,
|
|
296
|
-
activity: String(args?.[0] ?? 'lively'),
|
|
297
|
-
label: '活跃',
|
|
298
|
-
dailyLikes: 16,
|
|
299
|
-
dailyComments: 6,
|
|
300
|
-
dailySessionsPerDay: 5,
|
|
301
|
-
autoSessionsPerDay: 5,
|
|
302
|
-
autoGapMinutes: 90,
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
if (method === 'usage_detail') {
|
|
306
|
-
const key = String(args?.[0] ?? '');
|
|
307
|
-
const all = [
|
|
308
|
-
{ action: 'comment', platform: 'bilibili', target: 'BV1b3411S7Ww', title: '【肥鱼修仙传01】我去!大肥鱼彻底怒了!?', text: '大肥鱼一怒,两分钟就这么没了。看完只想知道它怒气是攒了多久。', result: 'ok', at: Date.now() - 43 * 60 * 1000, url: 'https://www.bilibili.com/video/BV1b3411S7Ww' },
|
|
309
|
-
{ action: 'like', platform: 'douyin', target: '728391029381023', title: '无畏契约康康真正主力皮肤', text: '', result: 'ok', at: Date.now() - 96 * 60 * 1000, url: 'https://www.douyin.com/video/728391029381023' },
|
|
310
|
-
{ action: 'like', platform: 'bilibili', target: 'BV1pzxw6yEMH', title: '打游戏最怕遇到这种队友', text: '', result: 'ok', at: Date.now() - 2 * 3600 * 1000, url: 'https://www.bilibili.com/video/BV1pzxw6yEMH' },
|
|
311
|
-
{ action: 'save', platform: 'bilibili', target: 'BV1b3411S7Ww', title: '【肥鱼修仙传01】我去!大肥鱼彻底怒了!?', text: '', result: 'ok', at: Date.now() - 3 * 3600 * 1000, url: 'https://www.bilibili.com/video/BV1b3411S7Ww' },
|
|
312
|
-
{ action: 'follow', platform: 'bilibili', target: '3747575836446062', title: '', text: '', result: 'ok', at: Date.now() - 4 * 3600 * 1000, url: 'https://space.bilibili.com/3747575836446062' },
|
|
313
|
-
{ action: 'post', platform: 'bilibili', target: '', title: '', text: '今天看了三条关于对枪的视频,手有点痒。', result: 'ok', at: Date.now() - 5 * 3600 * 1000, url: '' },
|
|
314
|
-
{ action: 'dm', platform: 'bilibili', target: '32842111', title: '', text: '主人,今天在首页看到个特别像你的头像。', result: 'ok', at: Date.now() - 6 * 3600 * 1000, url: 'https://space.bilibili.com/32842111' },
|
|
315
|
-
];
|
|
316
|
-
const map = { like: ['like', 'unlike'], comment: ['comment', 'reply'], follow: ['follow', 'unfollow'], post: ['post'], dm: ['dm'], save: ['save'] };
|
|
317
|
-
const wanted = map[key] ?? [key];
|
|
318
|
-
const items = all.filter((x) => wanted.includes(x.action));
|
|
319
|
-
return { ok: true, key, items, cap: { like: 16, comment: 6, follow: 3, post: 2, dm: 3, save: 8 }[key] ?? 0 };
|
|
320
|
-
}
|
|
321
|
-
if (method === 'timeline') {
|
|
322
|
-
const base = [
|
|
323
|
-
{ action: 'comment', platform: 'bilibili', target: 'BV1b3411S7Ww', title: '【肥鱼修仙传01】我去!大肥鱼彻底怒了!?', text: '大肥鱼一怒,两分钟就这么没了。看完只想知道它怒气是攒了多久。', result: 'ok', at: Date.now() - 43 * 60 * 1000, url: 'https://www.bilibili.com/video/BV1b3411S7Ww' },
|
|
324
|
-
{ action: 'unlike', platform: 'douyin', target: '728391029381023', title: '无畏契约康康真正主力皮肤', text: '', result: 'ok', at: Date.now() - 52 * 60 * 1000, url: 'https://www.douyin.com/video/728391029381023' },
|
|
325
|
-
{ action: 'like', platform: 'douyin', target: '728391029381023', title: '无畏契约康康真正主力皮肤', text: '', result: 'ok', at: Date.now() - 96 * 60 * 1000, url: 'https://www.douyin.com/video/728391029381023' },
|
|
326
|
-
{ action: 'like', platform: 'bilibili', target: 'BV1pzxw6yEMH', title: '打游戏最怕遇到这种队友', text: '', result: 'ok', at: Date.now() - 2 * 3600 * 1000, url: 'https://www.bilibili.com/video/BV1pzxw6yEMH' },
|
|
327
|
-
{ action: 'save', platform: 'bilibili', target: 'BV1b3411S7Ww', title: '【肥鱼修仙传01】我去!大肥鱼彻底怒了!?', text: '', result: 'ok', at: Date.now() - 3 * 3600 * 1000, url: 'https://www.bilibili.com/video/BV1b3411S7Ww' },
|
|
328
|
-
{ action: 'follow', platform: 'bilibili', target: '3747575836446062', title: '', text: '', result: 'ok', at: Date.now() - 4 * 3600 * 1000, url: 'https://space.bilibili.com/3747575836446062' },
|
|
329
|
-
{ action: 'risk', platform: 'system', target: '', title: '', text: '抖音要求短信验证', result: 'paused', at: Date.now() - 26 * 3600 * 1000, url: '' },
|
|
330
|
-
];
|
|
331
|
-
return { ok: true, items: base };
|
|
332
|
-
}
|
|
333
|
-
if (method === 'open_external') return { ok: true, url: String(args?.[0] ?? '') };
|
|
334
|
-
if (method === 'reply_to_comment') return { ok: true, receipt: 'B站 评论发出去了,rpid 330000000001,公开可见(预览数据)' };
|
|
335
|
-
if (method === 'save_toview') return { ok: true, receipt: '已加到 B站稍后再看(预览数据)' };
|
|
336
|
-
if (method === 'search') return { ok: true, query: String(args?.[0] ?? ''), items: searchItems };
|
|
337
|
-
if (method === 'list') {
|
|
338
|
-
const kind = String(args?.[0] ?? '');
|
|
339
|
-
if (kind === 'toview') {
|
|
340
|
-
return {
|
|
341
|
-
ok: true,
|
|
342
|
-
items: [
|
|
343
|
-
{
|
|
344
|
-
id: 'BV1b3411S7Ww',
|
|
345
|
-
title: '这个转场我能看一百遍',
|
|
346
|
-
author: '剪辑小能手',
|
|
347
|
-
dur: '1:02',
|
|
348
|
-
progress: 31,
|
|
349
|
-
url: 'https://www.bilibili.com/video/BV1b3411S7Ww',
|
|
350
|
-
},
|
|
351
|
-
],
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
if (kind === 'popular') {
|
|
355
|
-
return {
|
|
356
|
-
ok: true,
|
|
357
|
-
items: [
|
|
358
|
-
{
|
|
359
|
-
id: 'BV16nxy6oE85',
|
|
360
|
-
title: '【大鸣王潮1566】他们不会察觉',
|
|
361
|
-
author: '寞桀緣才',
|
|
362
|
-
dur: '3:42',
|
|
363
|
-
stat: '1.8万赞 40.2万播',
|
|
364
|
-
url: 'https://www.bilibili.com/video/BV16nxy6oE85',
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
id: 'BV1WRxy6eEwA',
|
|
368
|
-
title: '歌剧老师锐评韩娱 Aespa、SEVENTEEN、NMIXX',
|
|
369
|
-
author: '铁豆钢蛋',
|
|
370
|
-
dur: '1:16:06',
|
|
371
|
-
stat: '2.3万赞 66.1万播',
|
|
372
|
-
url: 'https://www.bilibili.com/video/BV1WRxy6eEwA',
|
|
373
|
-
},
|
|
374
|
-
],
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
return { ok: true, items: [] };
|
|
378
|
-
}
|
|
379
|
-
if (method !== 'status') return { ok: true, receipt: '预览模式:这里会显示真实回执。' };
|
|
380
|
-
return {
|
|
381
|
-
ok: true,
|
|
382
|
-
status: {
|
|
383
|
-
bili: { loggedIn: true, name: '穹和黑助', uid: '3747575836446062', ok: true },
|
|
384
|
-
douyin: { loggedIn: true, running: false, headless: true, ok: true },
|
|
385
|
-
policy: {
|
|
386
|
-
day: '2026-11-01',
|
|
387
|
-
usage: { like: 7, comment: 3, follow: 1, post: 0, dm: 1, save: 2 },
|
|
388
|
-
caps: { like: 16, comment: 6, follow: 3, post: 2, save: 8 },
|
|
389
|
-
quiet: false,
|
|
390
|
-
paused: { paused: false },
|
|
391
|
-
ramp: 1,
|
|
392
|
-
approval: 'confirm',
|
|
393
|
-
summary: '今日 赞2/16 评1/6 关0/3 发0/2 存1/8',
|
|
394
|
-
},
|
|
395
|
-
owner: {
|
|
396
|
-
uid: '32842111',
|
|
397
|
-
name: '',
|
|
398
|
-
douyin: 'MS4wLjABAAAAHfVjI5Ddr5QZZvLj6KDs_EDU2L_ZHWZmSbpr20NdHME',
|
|
399
|
-
douyinOk: true,
|
|
400
|
-
douyinName: '月',
|
|
401
|
-
douyinSelfName: '黑助',
|
|
402
|
-
douyinSame: false,
|
|
403
|
-
},
|
|
404
|
-
},
|
|
405
|
-
drafts: [
|
|
406
|
-
{
|
|
407
|
-
id: 'draft_1',
|
|
408
|
-
action: 'comment',
|
|
409
|
-
platform: 'bilibili',
|
|
410
|
-
preview: '这个转场接得真准,第二段鼓点一进来整个人都醒了。',
|
|
411
|
-
ageSec: 42,
|
|
412
|
-
},
|
|
413
|
-
],
|
|
414
|
-
recent: [
|
|
415
|
-
{ platform: 'bilibili', action: 'comment', result: 'ok', text: '这个转场接得真准', at: new Date(now - 5 * 60000).toISOString(), url: 'https://www.bilibili.com/video/BV1Mm4y1771E' },
|
|
416
|
-
{ platform: 'douyin', action: 'like', result: 'ok', text: '无畏契约康康真正主力皮肤', at: new Date(now - 40 * 60000).toISOString(), url: 'https://www.douyin.com/video/7695080446131981622' },
|
|
417
|
-
{ platform: 'bilibili', action: 'open', result: 'ok', text: '《此弟不宜久留》', at: new Date(now - 52 * 60000).toISOString(), url: 'https://www.bilibili.com/video/BV1pzxw6yEMH' },
|
|
418
|
-
{ platform: 'system', action: 'risk', result: 'paused', text: '抖音要求短信验证', at: new Date(now - 86400000).toISOString(), url: '' },
|
|
419
|
-
{ platform: 'bilibili', action: 'save', result: 'ok', title: '【肥鱼修仙传01】我去!大肥鱼彻底怒了!?', text: '', at: new Date(now - 5 * 3600000).toISOString(), url: 'https://www.bilibili.com/video/BV1b3411S7Ww' },
|
|
420
|
-
{ platform: 'bilibili', action: 'follow', result: 'ok', target: '3747575836446062', text: '', at: new Date(now - 6 * 3600000).toISOString(), url: 'https://space.bilibili.com/3747575836446062' },
|
|
421
|
-
{ platform: 'douyin', action: 'unlike', result: 'ok', title: '无畏契约康康真正主力皮肤', text: '', at: new Date(now - 8 * 3600000).toISOString(), url: 'https://www.douyin.com/video/7695080446131981622' },
|
|
422
|
-
{ platform: 'bilibili', action: 'open', result: 'ok', title: '全是干货!5分钟大幅度提高你的对枪水平!', text: '', at: new Date(now - 9 * 3600000).toISOString(), url: 'https://www.bilibili.com/video/BV1Mm4y1771E' },
|
|
423
|
-
],
|
|
424
|
-
recentTotal: 47,
|
|
425
|
-
inboxUnread: 2,
|
|
426
|
-
inboxCount: 6,
|
|
427
|
-
presence: {
|
|
428
|
-
platform: 'bilibili',
|
|
429
|
-
id: 'BV1Mm4y1771E',
|
|
430
|
-
title: '全是干货!5分钟大幅度提高你的对枪水平!【瓦罗兰特/无畏契约】',
|
|
431
|
-
author: '徐桑',
|
|
432
|
-
url: 'https://www.bilibili.com/video/BV1Mm4y1771E',
|
|
433
|
-
phase: 'reading',
|
|
434
|
-
startedAt: now - 74 * 1000,
|
|
435
|
-
endsAt: now + 100000,
|
|
436
|
-
duration: 359,
|
|
437
|
-
elapsed: 74,
|
|
438
|
-
},
|
|
439
|
-
activity: 'lively',
|
|
440
|
-
watchNotify: 'panel',
|
|
441
|
-
lastOpen: {
|
|
442
|
-
platform: 'bilibili',
|
|
443
|
-
kind: 'video',
|
|
444
|
-
id: 'BV1Mm4y1771E',
|
|
445
|
-
title: '全是干货!5分钟大幅度提高你的对枪水平!',
|
|
446
|
-
url: 'https://www.bilibili.com/video/BV1Mm4y1771E',
|
|
447
|
-
at: now - 12 * 60000,
|
|
448
|
-
},
|
|
449
|
-
watch: {
|
|
450
|
-
watching: true,
|
|
451
|
-
platform: 'bilibili',
|
|
452
|
-
title: '《此弟不宜久留》',
|
|
453
|
-
url: 'https://www.bilibili.com/video/BV1pzxw6yEMH',
|
|
454
|
-
time: 42,
|
|
455
|
-
duration: 124,
|
|
456
|
-
},
|
|
457
|
-
viewed,
|
|
458
|
-
following: {
|
|
459
|
-
at: Date.now() - 12 * 60 * 1000,
|
|
460
|
-
total: 4,
|
|
461
|
-
items: [
|
|
462
|
-
{
|
|
463
|
-
platform: 'bilibili',
|
|
464
|
-
author: '穹和黑助',
|
|
465
|
-
title: '阴天,窗台,外面云压得很低,田里也没什么动静。',
|
|
466
|
-
at: Date.now() - 26 * 60 * 1000,
|
|
467
|
-
url: 'https://t.bilibili.com/1260000000000000000',
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
platform: 'douyin',
|
|
471
|
-
author: '阿九',
|
|
472
|
-
title: '凌晨三点的便利店',
|
|
473
|
-
at: 0,
|
|
474
|
-
url: 'https://www.douyin.com/video/7690000000000000000',
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
platform: 'bilibili',
|
|
478
|
-
author: '程艾影',
|
|
479
|
-
title: '我把旧电脑装回了 Windows 98',
|
|
480
|
-
at: Date.now() - 5 * 3600 * 1000,
|
|
481
|
-
url: 'https://www.bilibili.com/video/BV1Mm4y1771E',
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
platform: 'bilibili',
|
|
485
|
-
author: '有点诣思',
|
|
486
|
-
title: '拍了三张图,只有一张能用',
|
|
487
|
-
at: Date.now() - 9 * 3600 * 1000,
|
|
488
|
-
url: 'https://t.bilibili.com/1260000000000000000',
|
|
489
|
-
},
|
|
490
|
-
],
|
|
491
|
-
},
|
|
492
|
-
books: {
|
|
493
|
-
empty: false,
|
|
494
|
-
total: 3,
|
|
495
|
-
dir: '…/stroll/books',
|
|
496
|
-
current: {
|
|
497
|
-
name: '夜航西飞.txt',
|
|
498
|
-
percent: 38,
|
|
499
|
-
offset: 21400,
|
|
500
|
-
total: 56300,
|
|
501
|
-
notes: [{ text: '夜里飞过的地方,白天都不认得。', at: Date.now() }],
|
|
502
|
-
},
|
|
503
|
-
},
|
|
504
|
-
weekly: {
|
|
505
|
-
ok: true,
|
|
506
|
-
days: 7,
|
|
507
|
-
range: { from: '2026-10-26', to: '2026-11-01' },
|
|
508
|
-
totalActions: 13,
|
|
509
|
-
actions: { like: 5, comment: 3, reply: 1, follow: 1, post: 1, dm: 1, save: 1 },
|
|
510
|
-
reads: 14,
|
|
511
|
-
views: 9,
|
|
512
|
-
activeDays: 5,
|
|
513
|
-
platforms: [
|
|
514
|
-
{ name: 'B站', count: 9 },
|
|
515
|
-
{ name: '抖音', count: 4 },
|
|
516
|
-
],
|
|
517
|
-
topAuthors: [{ name: '穹和黑助', count: 3 }],
|
|
518
|
-
busiestHour: { hour: 21, count: 4 },
|
|
519
|
-
headline: '7 天里出门 13 次、看书 14 段,主要在 B站',
|
|
520
|
-
},
|
|
521
|
-
todayReads: 3,
|
|
522
|
-
autoSessions: 1,
|
|
523
|
-
autoNext: { done: false, used: 1, cap: 3, at: Date.now() + 83 * 60 * 1000 },
|
|
524
|
-
week: [
|
|
525
|
-
{ day: '10-26', weekday: '一', actions: 1, reads: 2 },
|
|
526
|
-
{ day: '10-27', weekday: '二', actions: 2, reads: 1 },
|
|
527
|
-
{ day: '10-28', weekday: '三', actions: 0, reads: 0 },
|
|
528
|
-
{ day: '10-29', weekday: '四', actions: 3, reads: 2 },
|
|
529
|
-
{ day: '10-30', weekday: '五', actions: 1, reads: 4 },
|
|
530
|
-
{ day: '10-31', weekday: '六', actions: 4, reads: 2 },
|
|
531
|
-
{ day: '11-01', weekday: '日', actions: 2, reads: 3, today: true },
|
|
532
|
-
],
|
|
533
|
-
config: {
|
|
534
|
-
background: true,
|
|
535
|
-
approval: 'confirm',
|
|
536
|
-
autoSessionsPerDay: 5,
|
|
537
|
-
autoGapMinutes: 90,
|
|
538
|
-
dailyLikes: 16,
|
|
539
|
-
dailyComments: 6,
|
|
540
|
-
dailyFollows: 3,
|
|
541
|
-
dailyPosts: 2,
|
|
542
|
-
dailyDms: 3,
|
|
543
|
-
dailySaves: 8,
|
|
544
|
-
watchSpeakSec: 60,
|
|
545
|
-
tokenDailyBudget: 9000,
|
|
546
|
-
commentMaxChars: 120,
|
|
547
|
-
newAccountRamp: false,
|
|
548
|
-
},
|
|
549
|
-
};
|
|
550
|
-
},
|
|
551
|
-
};
|
|
552
|
-
|
|
553
|
-
panel.panels.stroll.mount(fake);
|
|
554
|
-
</script>
|
|
555
|
-
</body>
|
|
556
|
-
</html>
|
package/docs/panel-preview.png
DELETED
|
Binary file
|