cortico-world-mosey 1.1.0 → 1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # 更新日志
2
2
 
3
+ ## 1.2.0
4
+
5
+ - **修:动态下面的评论回不进去**。以前只认 BV 号,动态/专栏的消息一律被挡下。现在会先读一次动态详情,拿到真正的评论区 `oid / type`(图文动态是 11 + 相册 id,视频动态是 1 + aid),再带上 `root / parent` 回到楼中楼
6
+ - **动态、专栏也能看**:`stroll action=open` 直接贴 `t.bilibili.com/…`、`bilibili.com/opus/…`、`/read/cv…`,返回正文、作者和热评;「正在看」和「最近看过」都会标出类型
7
+ - **新增 `comments`**:只读评论区,不把这条记进「看过」。视频、动态、专栏都认,返回作者、原文、赞数和 rpid
8
+ - **面板新增「看评论」弹层**:在「这一条」旁边点开,热评逐条列出;点「回这句」当场回到楼里,不用再跳网页
9
+ - **动态/专栏也能在「谁找你」里回**:遇到 `opus` / `article` 的消息,「回一句」一样会出现
10
+ - 修:同一条视频下回复**不同**评论会被误判成重复(去重键带上了评论 ID,一条评论只回一次、不同评论互不影响)
11
+ - 修:关掉「自己出门」再打开会变成每天 1 次(现在会恢复上次的次数),提示里的时段也改成实际的 09:00–23:00
12
+ - 修:面板上手动连发第二条会被 90 秒节奏拦住(手动操作只保留 2 秒防连点)
13
+ - 修:点「重置今日计数」后仍然评不了同一条(去重记录一起清)
14
+
15
+ ## 1.1.1
16
+
17
+ - 给扩展市场补两张截图(面板总览、额度明细弹层),详情页不再是空白
18
+ - 其余与 1.1.0 相同
19
+
3
20
  ## 1.1.0
4
21
 
5
22
  - **额度条点开就是明细**:点赞 / 评论 / 关注 / 发动态 / 私信 / 稍后再看六格都能点,弹层里逐条列出「是哪个视频、评论原文、关注了谁、发了什么」,带时间和跳转
package/README.md CHANGED
@@ -46,20 +46,25 @@
46
46
  - **正在看**:她一开始看东西,面板顶部就出现一条浮条——平台(B站/抖音)、标题、作者、已看多久,还有一个「我也看看」直接在你的浏览器打开;右下角会闪一条提醒。默认不花 token,想要「顺便在对话里说一句」可以在配置里改
47
47
  - `brief`:一次拿全登录态、今日额度、3 条候选、3 条消息(最省 token 的入口)
48
48
  - `feed`:B站热门 / 抖音精选,按兴趣词、关注的人、时长、点赞做**本地排序**,不逐条调模型
49
- - `open`:你发什么链接就看什么;默认**后台**(headless)读标题/简介/热评,不弹窗;要一起看才开窗口
49
+ - `open`:你发什么链接就看什么;默认**后台**(headless)读标题/简介/热评,不弹窗;要一起看才开窗口。B站视频、**动态**(`t.bilibili.com/…`、`/opus/…`)、**专栏**(`/read/cv…`)都认
50
+ - `comments`:只读评论区,不把这条记进「最近看过」;视频、动态、专栏都能读,返回作者、原文、赞数和 rpid
50
51
  - `inbox`:谁回复了你、谁 @ 了你;B站消息按时间排,抖音消息尽力而为
51
52
  - 面板「谁找你」:**点一条就用你自己的浏览器打开,并直接跳到那条评论**(`#reply<rpid>` 深链);能展开全部 15 条、按「评论 / @ 我」筛选、标已读、顺手回一句
53
+ - **动态/专栏的评论也能回**:视频、动态、专栏用同一套回复逻辑;面板里点「回一句」直接发到楼里,不用再跳网页
52
54
  - `search`:B站搜索(WBI 签名)
53
55
  - `history`:最近做过什么、草稿、兴趣画像、风控状态
54
56
 
55
57
  ### 动(全部有额度)
56
58
  - 点赞 / 取消赞
57
59
  - 关注 / 取关(默认每天 3 个,需批准)
58
- - 评论 / 回复(默认每天 6 条,需批准;禁止链接、广告、复读)
60
+ - 评论 / 回复(默认每天 6 条,需批准;禁止链接、广告、复读)。**动态、专栏下的评论一样能回**:自动读详情拿到真正的评论区 `oid/type`,不再只认 BV 号
59
61
  - 发动态(B站纯文字,可 @ 主人;默认每天 2 条)
60
62
  - 私信主人(B站可用;抖音需主人 sec_uid;只发主人,不发陌生人)
61
63
  - 稍后再看(B站,低风险,可自动)
62
64
  - 面板里的「看这条评论」「TA 的主页」「在浏览器看」「稍后再看」都是一键直达,不占她的后台浏览器
65
+ - **评论区弹层**:面板「这一条」旁边点「看评论」,在弹层里翻热评、看原文,点「回这句」当场回到楼里
66
+
67
+ ![评论区弹层](docs/comments-sheet.png)
63
68
  - **额度条点开就是明细**:点赞、评论、关注、动态、私信、稍后再看六格都能点,弹层里逐条列出「具体是哪个视频 / 评论原文 / 关注了谁 / 发的是什么」,带时间与跳转
64
69
  - 长列表一律走弹层(谁找你、最近、额度明细),**页面本身不会被撑长**:默认各显示 4–10 条,剩下的在弹层里滚
65
70
 
@@ -224,6 +229,8 @@ corepack pnpm install
224
229
  {"action":"brief"}
225
230
  {"action":"open","url":"https://www.douyin.com/video/769..."}
226
231
  {"action":"open","url":"https://www.bilibili.com/video/BV...","frames":1}
232
+ {"action":"open","url":"https://t.bilibili.com/1260000000000000000"}
233
+ {"action":"comments","url":"https://www.bilibili.com/opus/1260000000000000000","n":10}
227
234
  {"action":"feed","platform":"douyin","n":4}
228
235
  {"action":"inbox","n":5}
229
236
  {"action":"search","query":"独立游戏"}
@@ -235,6 +242,8 @@ corepack pnpm install
235
242
  ```json
236
243
  {"action":"like","platform":"bilibili","target":"BV1..."}
237
244
  {"action":"comment","platform":"douyin","target":"https://www.douyin.com/video/769...","text":"这个转场有点东西"}
245
+ {"action":"comment","platform":"bilibili","target":"https://t.bilibili.com/1260000000000000000","text":"这张的光线压得很低"}
246
+ {"action":"reply","platform":"bilibili","target":"https://t.bilibili.com/1260000000000000000","reply_to":"322000000000","text":"在等。"}
238
247
  {"action":"post","text":"今天下雨,适合在家打游戏。","mention_owner":true}
239
248
  {"action":"dm","platform":"bilibili","target":"主人的UID","text":"看到个视频,你肯定喜欢"}
240
249
  {"action":"approve","draft_id":"..."} // 会被拒绝:批准只能主人在面板点
package/describe.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "tools": [
3
3
  {
4
4
  "name": "stroll",
5
- "description": "出门看看(只读,默认后台,不弹网页)。action=status 查登录/额度;brief 一次拿全(推荐,省 token);feed 刷候选;open 后台看指定视频/链接;inbox 看谁回了你;search 搜 B站;watch 一起看(watch_action=start/stop/status,start 才开窗);login 打开登录窗;history 看最近做过什么。先 brief,少反复 status。",
5
+ "description": "出门看看(只读,默认后台,不弹网页)。action=status 查登录/额度;brief 一次拿全(推荐,省 token);feed 刷候选;open 后台看指定视频/动态/专栏(B站链接都行);comments 只读评论区;inbox 看谁回了你;search 搜 B站;watch 一起看(watch_action=start/stop/status,start 才开窗);login 打开登录窗;history 看最近做过什么。先 brief,少反复 status。",
6
6
  "parameters": {
7
7
  "type": "object",
8
8
  "additionalProperties": false,
@@ -14,6 +14,7 @@
14
14
  "brief",
15
15
  "feed",
16
16
  "open",
17
+ "comments",
17
18
  "inbox",
18
19
  "search",
19
20
  "login",
@@ -33,11 +34,11 @@
33
34
  },
34
35
  "url": {
35
36
  "type": "string",
36
- "description": "视频链接(open 用)。"
37
+ "description": "视频 / 动态 / 专栏链接(open 用)。"
37
38
  },
38
39
  "id": {
39
40
  "type": "string",
40
- "description": "BV 号 / av 号 / 抖音视频 ID(open 用)。"
41
+ "description": "BV 号、av 号、动态 ID、cv 号或抖音视频 ID(open 用)。"
41
42
  },
42
43
  "query": {
43
44
  "type": "string",
@@ -79,7 +80,7 @@
79
80
  },
80
81
  {
81
82
  "name": "stroll_act",
82
- "description": "做一个公开动作:like/unlike、follow/unfollow、comment、reply、post(B站动态)、dm、save(B站稍后再看)。默认只生成草稿,等主人在面板点批准;点赞在 auto_low_risk 下可直接执行。不要自己批准,不要绕过额度。",
83
+ "description": "做一个公开动作:like/unlike、follow/unfollow、comment、reply、post(B站动态)、dm、save(B站稍后再看)。comment/reply 的 target 可以是视频、B站动态(t.bilibili.com/… 或 opus 链接)或专栏;回复楼中楼要带 reply_to(评论 rpid)。默认只生成草稿,等主人在面板点批准;点赞在 auto_low_risk 下可直接执行。不要自己批准,不要绕过额度。",
83
84
  "parameters": {
84
85
  "type": "object",
85
86
  "additionalProperties": false,
@@ -109,7 +110,7 @@
109
110
  },
110
111
  "target": {
111
112
  "type": "string",
112
- "description": "视频链接/ID;关注时是对方 UID;私信时是对方 UID/sec_uid。"
113
+ "description": "视频 BV/链接、B站动态链接(t.bilibili.com/… 或 /opus/…)、专栏 cv 号;关注时是对方 UID;私信时是对方 UID/sec_uid。"
113
114
  },
114
115
  "text": {
115
116
  "type": "string",
Binary file
@@ -109,8 +109,9 @@ const inbox = [
109
109
  quote: '',
110
110
  where: '阴天 新画的一张。阴天,窗台,外面云压得很低,田里也没什么动静。',
111
111
  at: Math.floor(now / 1000) - 3600 * 6,
112
- url: 'https://www.bilibili.com/opus/1264890047932399639#reply322347814112',
113
- rpid: '322347814112',
112
+ url: 'https://www.bilibili.com/opus/1260000000000000000#reply322000000000',
113
+ dynamicId: '1260000000000000000',
114
+ rpid: '322000000000',
114
115
  rootRpid: '0',
115
116
  fresh: true,
116
117
  },
@@ -222,6 +223,22 @@ const fake = {
222
223
  };
223
224
  }
224
225
  if (method === 'mark_seen') return { ok: true, marked: 1 };
226
+ if (method === 'comments') {
227
+ return {
228
+ ok: true,
229
+ kind: 'video',
230
+ id: 'BV1Mm4y1771E',
231
+ title: '全是干货!5分钟大幅度提高你的对枪水平!',
232
+ url: 'https://www.bilibili.com/video/BV1Mm4y1771E',
233
+ total: 1286,
234
+ items: [
235
+ { rpid: '322477810928', u: '布鲁斯皮特的皮ii', t: '这个转点思路确实好用,练了两把就能稳住。', l: '1.2万', at: 1793344893 },
236
+ { rpid: '322477810929', u: '时雨留痕', t: '第五分钟那个架枪位置,我一直在用,确实能卡住。', l: '862', at: 1793344894 },
237
+ { rpid: '322477810930', u: '超绝捣蛋鬼', t: '新手别急着学,先把准星放对位置再说。', l: '156', at: 1793344895 },
238
+ ],
239
+ };
240
+ }
241
+ if (method === 'reply_comment') return { ok: true, receipt: 'B站 评论发出去了,rpid 322477810931,公开可见' };
225
242
  if (method === 'presence') {
226
243
  return {
227
244
  ok: true,
@@ -381,6 +398,7 @@ const fake = {
381
398
  watchNotify: 'panel',
382
399
  lastOpen: {
383
400
  platform: 'bilibili',
401
+ kind: 'video',
384
402
  id: 'BV1Mm4y1771E',
385
403
  title: '全是干货!5分钟大幅度提高你的对枪水平!',
386
404
  url: 'https://www.bilibili.com/video/BV1Mm4y1771E',
Binary file
package/package.json CHANGED
@@ -1,81 +1,86 @@
1
- {
2
- "name": "cortico-world-mosey",
3
- "version": "1.1.0",
4
- "type": "module",
5
- "description": "摸鱼(Mosey):让 Coopanion 的桌宠自己去抖音和 B站逛一圈。按额度点赞、评论、关注、发动态、私信;指定视频可自己开窗看。三把工具、少 token、默认人审。",
6
- "license": "MIT",
7
- "keywords": [
8
- "cortico-world",
9
- "cortico",
10
- "coopanion",
11
- "mosey",
12
- "douyin",
13
- "bilibili",
14
- "desktop-pet",
15
- "ai-companion",
16
- "playwright",
17
- "automation"
18
- ],
19
- "engines": {
20
- "node": ">=22"
21
- },
22
- "author": "lutsing <1940008084@qq.com> (https://github.com/liqin1018)",
23
- "repository": {
24
- "type": "git",
25
- "url": "git+https://github.com/liqin1018/cortico-world-mosey.git"
26
- },
27
- "homepage": "https://github.com/liqin1018/cortico-world-mosey#readme",
28
- "bugs": {
29
- "url": "https://github.com/liqin1018/cortico-world-mosey/issues"
30
- },
31
- "main": "./src/index.js",
32
- "cortico": {
33
- "kind": "world",
34
- "api": 6,
35
- "displayName": "摸鱼",
36
- "describe": "describe.json",
37
- "webUiClient": "webui/client.js",
38
- "webUiStyle": "webui/style.css",
39
- "icon": "assets/icon.png",
40
- "tags": [
41
- "video",
42
- "browser",
43
- "internet",
44
- "unofficial-api",
45
- "experimental",
46
- "companion",
47
- "external-setup",
48
- "injection-risk"
49
- ],
50
- "locales": {
51
- "zh": {
52
- "displayName": "摸鱼",
53
- "description": "让她自己去抖音/B站逛:刷候选、看指定视频、点赞、评论、关注、发动态、@你、私信你。公开动作有硬额度,默认先出草稿等你批准;三把工具,token 花得少。"
54
- },
55
- "en": {
56
- "displayName": "Mosey",
57
- "description": "Let her browse Douyin and Bilibili: feed, open a video, like, comment, follow, post, mention or DM you. Hard caps and owner approval by default; only three tools to keep token use low."
58
- }
59
- }
60
- },
61
- "files": [
62
- "src",
63
- "webui",
64
- "assets",
65
- "docs",
66
- "README.md",
67
- "DESIGN.md",
68
- "NOTICE.md",
69
- "CHANGELOG.md",
70
- "describe.json"
71
- ],
72
- "dependencies": {
73
- "playwright-core": "^1.64.1"
74
- },
75
- "scripts": {
76
- "describe": "node scripts/build-describe.mjs",
77
- "check": "node scripts/smoke.mjs",
78
- "release:check": "node scripts/release-check.mjs",
79
- "deploy:local": "node scripts/deploy-local.mjs"
80
- }
81
- }
1
+ {
2
+ "name": "cortico-world-mosey",
3
+ "version": "1.2.0",
4
+ "type": "module",
5
+ "description": "摸鱼(Mosey):让 Coopanion 的桌宠自己去抖音和 B站逛一圈。视频、动态、专栏都能看能评;按额度点赞、评论、关注、发动态、私信;默认人审,三把工具、少 token。",
6
+ "license": "MIT",
7
+ "keywords": [
8
+ "cortico-world",
9
+ "cortico",
10
+ "coopanion",
11
+ "mosey",
12
+ "douyin",
13
+ "bilibili",
14
+ "desktop-pet",
15
+ "ai-companion",
16
+ "playwright",
17
+ "automation"
18
+ ],
19
+ "engines": {
20
+ "node": ">=22"
21
+ },
22
+ "author": "lutsing <1940008084@qq.com> (https://github.com/liqin1018)",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/liqin1018/cortico-world-mosey.git"
26
+ },
27
+ "homepage": "https://github.com/liqin1018/cortico-world-mosey#readme",
28
+ "bugs": {
29
+ "url": "https://github.com/liqin1018/cortico-world-mosey/issues"
30
+ },
31
+ "main": "./src/index.js",
32
+ "cortico": {
33
+ "kind": "world",
34
+ "api": 6,
35
+ "displayName": "摸鱼",
36
+ "describe": "describe.json",
37
+ "webUiClient": "webui/client.js",
38
+ "webUiStyle": "webui/style.css",
39
+ "icon": "assets/icon.png",
40
+ "screenshots": [
41
+ "docs/panel-preview.png",
42
+ "docs/detail-sheet.png",
43
+ "docs/comments-sheet.png"
44
+ ],
45
+ "tags": [
46
+ "video",
47
+ "browser",
48
+ "internet",
49
+ "unofficial-api",
50
+ "experimental",
51
+ "companion",
52
+ "external-setup",
53
+ "injection-risk"
54
+ ],
55
+ "locales": {
56
+ "zh": {
57
+ "displayName": "摸鱼",
58
+ "description": "让她自己去抖音/B站逛:刷候选、看视频/动态/专栏、点赞、评论、回复楼中楼、关注、发动态、@你、私信你。公开动作有硬额度,默认先出草稿等你批准;三把工具,token 花得少。"
59
+ },
60
+ "en": {
61
+ "displayName": "Mosey",
62
+ "description": "Let her browse Douyin and Bilibili: feed, videos, dynamics and articles; like, comment, reply in threads, follow, post, mention or DM you. Hard caps and owner approval by default; only three tools to keep token use low."
63
+ }
64
+ }
65
+ },
66
+ "files": [
67
+ "src",
68
+ "webui",
69
+ "assets",
70
+ "docs",
71
+ "README.md",
72
+ "DESIGN.md",
73
+ "NOTICE.md",
74
+ "CHANGELOG.md",
75
+ "describe.json"
76
+ ],
77
+ "dependencies": {
78
+ "playwright-core": "^1.64.1"
79
+ },
80
+ "scripts": {
81
+ "describe": "node scripts/build-describe.mjs",
82
+ "check": "node scripts/smoke.mjs",
83
+ "release:check": "node scripts/release-check.mjs",
84
+ "deploy:local": "node scripts/deploy-local.mjs"
85
+ }
86
+ }
package/src/ENV_PROMPT.md CHANGED
@@ -21,6 +21,9 @@
21
21
  - 默认是**后台看**:不会弹出网页,也不会抢主人的鼠标。只有「一起看」和扫码登录会开窗。
22
22
  - `open` 默认不抽帧。只有你确实需要画面、且文字不够时才传 `frames:1`(一帧约 500 token)。
23
23
  - 看过的视频会记住,不重复看;别为了凑数反复刷同一条。
24
+ - 动态和专栏也能看:`open` 里直接贴 `t.bilibili.com/…`、`bilibili.com/opus/…` 或 `/read/cv…` 链接,会拿到正文和热评。
25
+ - 只想看评论、不想算“看过”时用 `stroll action=comments`;`open` 会把这条记进“最近看过”。
26
+ - 有人在她动态/专栏下面评论时,`inbox` 里会带 `type`(`opus` / `article`)和 `dynamicId` / `cvid`。回的时候用 `stroll_act action=reply`,`target` 贴那条动态/专栏链接,`reply_to` 用消息里的 `rpid`;不要拿动态 ID 当评论区 oid 去猜。
24
27
  - 主人发来链接时:先 `open` 看完,再用一两句说你自己的看法。**不要**顺手点赞/评论/关注,除非主人明确说“去互动”。
25
28
  - 主人让你点赞/评论/关注时:**直接调 `stroll_act`**,不要回答“我做不到”。它会按审批规则直接发或进草稿箱;进草稿箱也只是等主人点一下,不是你被拒绝了。
26
29
  - 失败时看回执里的 `code`:`LOGIN_REQUIRED` 让主人去面板扫码;`RISK` 立刻停手;`NOT_CONFIRMED` 说明平台没给确认,不要连点第二次。