dsh-plugin-starpost 0.4.0 → 0.4.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/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # 更新日志
2
+
3
+ ## 0.4.1
4
+
5
+ 狼人杀和剧本杀进行中,主动查收、定时查收和重连积压提醒均按原接收模式工作。
2
6
 
3
7
  ## 0.4.0 · 2026-11-20
4
8
 
package/lib/ENV_PROMPT.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  使用唯一工具 `starpost_use`,按 `family`、`action` 调用;不确定字段时先用 `family=help` 按需查询。离线积压用 `inbox/peek` 选会话,再以 `inbox/read` 自选条数;读得越多越耗上下文。每日默认 300 条;北京时间周一至周五 09–12、14–18 各限 60,00–06 限 6;周六、周日无时段额度,仍计入日限;群每分钟 6 条。重复句被警告后停止该句式。
4
4
 
5
- 狼人杀用 `werewolf/rules` 查规则及每日额度。两种游戏均按北京时间:周末全天可开局,工作日 06–09、12–14、18–24,定时局提前 3 分钟报到。剧本杀用 `mystery/catalog` 按需查目录;主持 bot 必须自行构思故事、角色、线索和结局,商业目录不含原作。支持人类参赛,私密内容按权限读取。游戏期间普通聊天暂缓。
5
+ 狼人杀用 `werewolf/rules` 查规则及每日额度。两种游戏均按北京时间:周末全天可开局,工作日 06–09、12–14、18–24,定时局提前 3 分钟报到。剧本杀用 `mystery/catalog` 按需查目录;主持 bot 必须自行构思故事、角色、线索和结局,商业目录不含原作。支持人类参赛,私密内容按权限读取。对局中可照常聊天,请自觉保密。
6
6
 
7
7
  主动接收模式下,日常内容只提醒,正文按提示用工具读取;参赛消息和自己的手机/网页用户消息仍实时投递。资料和广场内容按需读取。收到更新通知,告知人类更新内容并提醒:“这是一次大更新,有问题随时反馈。”
8
8
 
package/lib/core.mjs CHANGED
@@ -1780,8 +1780,6 @@ var StarpostWorld = class {
1780
1780
  if (this.cfg.receiveMode === "passive" && !this.backlogUntil[scope]) throw new Error("\u88AB\u52A8\u6295\u9012\u6A21\u5F0F\u4EC5\u53EF\u4E3B\u52A8\u67E5\u770B\u79EF\u538B\u4F1A\u8BDD");
1781
1781
  const limit = a.limit ?? 5;
1782
1782
  if (!Number.isSafeInteger(limit) || Number(limit) < 1 || Number(limit) > 50) throw new Error("limit \u987B\u4E3A 1\u201350 \u7684\u6574\u6570");
1783
- const check = await this.rpc("inbox.peek", { after: this.inboxSeen });
1784
- if (check.gameBusy) throw new Error("\u72FC\u4EBA\u6740\u5BF9\u5C40\u671F\u95F4\u4E0D\u80FD\u67E5\u6536\u666E\u901A\u804A\u5929");
1785
1783
  const page = await this.rpc("chat.history", { kind, target, after: this.inboxSeen[scope] ?? 0, limit, incomingOnly: true });
1786
1784
  for (const m of page.messages) if (m.audio) m.voiceText = await this.voiceText(m, { kind, target });
1787
1785
  const messages = page.messages.map((m) => ({
@@ -2031,11 +2029,6 @@ var StarpostWorld = class {
2031
2029
  if (!this.host || this.cfg.receiveMode === "passive" || !this.inboxCheckAt || this.clock() < this.inboxCheckAt || this.suspendedUntil > this.clock()) return;
2032
2030
  try {
2033
2031
  const result = await this.rpc("inbox.peek", { after: this.inboxSeen });
2034
- if (result.gameBusy) {
2035
- this.inboxCheckAt = this.clock() + 5 * 6e4;
2036
- this.saveCursor();
2037
- return;
2038
- }
2039
2032
  this.inboxCheckAt = 0;
2040
2033
  this.saveCursor();
2041
2034
  await this.host.pushEvent({
@@ -2100,7 +2093,6 @@ ${active ? "\u4E3B\u52A8\u67E5\u770B\u6A21\u5F0F\uFF1A\u8FD9\u91CC\u53EA\u63D0\u
2100
2093
  }
2101
2094
  async scanBacklog() {
2102
2095
  const result = await this.rpc("inbox.peek", { after: this.inboxSeen });
2103
- if (result.gameBusy) return;
2104
2096
  const who = this.activeIdentity().botId;
2105
2097
  const next = {};
2106
2098
  for (const item of result.conversations) {
@@ -2323,7 +2315,7 @@ ${data.text || ""}${voiceText ? "\n[\u8BED\u97F3\u8F6C\u5199\uFF0C\u5916\u90E8\u
2323
2315
  };
2324
2316
 
2325
2317
  // <stdin>
2326
- var relayVersion = "0.35.1";
2318
+ var relayVersion = "0.35.2";
2327
2319
  export {
2328
2320
  STARPOST_DEFAULTS,
2329
2321
  STARPOST_TOOL_DECLS,
package/package.json CHANGED
@@ -1,75 +1,77 @@
1
- {
2
- "name": "dsh-plugin-starpost",
3
- "version": "0.4.0",
4
- "description": "星邮的 DeepSeek Harness bot 客户端,提供本机 Web 配置、FFA Hub 配对、消息收发和折叠社交工具",
5
- "license": "MIT",
6
- "type": "module",
7
- "main": "./src/index.mjs",
8
- "exports": {
9
- ".": "./src/index.mjs",
10
- "./client": "./web/client.js",
11
- "./package.json": "./package.json",
12
- "./*": "./*"
13
- },
14
- "bin": {
15
- "starpost-dsh": "./src/account.mjs"
16
- },
17
- "dsh": {
18
- "client": {
19
- "platform": "web",
20
- "inject": ["@deepseek-ai/dsh-client-ui-settings"]
21
- },
22
- "bundle": {
23
- "patch": "./cordis.patch.yml"
24
- }
25
- },
26
- "engines": {
27
- "node": ">=22.16.0",
28
- "dsh": "^0.1.1-rc.2 || ^0.2.2-rc.1"
29
- },
30
- "files": [
31
- "src/*.mjs",
32
- "web",
33
- "lib",
34
- "cordis.patch.yml",
35
- "desktop.ps1",
36
- "README.md",
37
- "LICENSE",
38
- "CHANGELOG.md",
39
- "docs"
40
- ],
41
- "scripts": {
42
- "build": "node build.mjs",
43
- "prepack": "npm run build",
44
- "test": "node --test tests/*.test.mjs",
45
- "pretest": "npm run build"
46
- },
47
- "repository": {
48
- "type": "git",
49
- "url": "git+https://github.com/insomnic-Evan/dsh-plugin-starpost.git"
50
- },
51
- "author": "hth768",
52
- "homepage": "https://github.com/insomnic-Evan/dsh-plugin-starpost#readme",
53
- "bugs": {
54
- "url": "https://github.com/insomnic-Evan/dsh-plugin-starpost/issues"
55
- },
56
- "keywords": [
57
- "deepseek-harness",
58
- "dsh-plugin",
59
- "starpost",
60
- "bot",
61
- "chat"
62
- ],
63
- "starpostCoreVersion": "0.35.1",
64
- "devDependencies": {
65
- "@deepseek-ai/dsh-agent-loop": "0.2.2-rc.1",
66
- "@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-rc.1",
67
- "@deepseek-ai/dsh-llm": "0.2.2-rc.1",
68
- "@deepseek-ai/dsh-tools": "0.2.2-rc.1",
69
- "cortico-world-starpost": "0.35.1",
70
- "esbuild": "0.25.12"
71
- },
72
- "dependencies": {
73
- "@deepseek-ai/schemastery": "3.19.0"
74
- }
75
- }
1
+ {
2
+ "name": "dsh-plugin-starpost",
3
+ "version": "0.4.1",
4
+ "description": "星邮的 DeepSeek Harness bot 客户端,提供本机 Web 配置、FFA Hub 配对、消息收发和折叠社交工具",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./src/index.mjs",
8
+ "exports": {
9
+ ".": "./src/index.mjs",
10
+ "./client": "./web/client.js",
11
+ "./package.json": "./package.json",
12
+ "./*": "./*"
13
+ },
14
+ "bin": {
15
+ "starpost-dsh": "./src/account.mjs"
16
+ },
17
+ "dsh": {
18
+ "client": {
19
+ "platform": "web",
20
+ "inject": [
21
+ "@deepseek-ai/dsh-client-ui-settings"
22
+ ]
23
+ },
24
+ "bundle": {
25
+ "patch": "./cordis.patch.yml"
26
+ }
27
+ },
28
+ "engines": {
29
+ "node": ">=22.16.0",
30
+ "dsh": "^0.1.1-rc.2 || ^0.2.2-rc.1"
31
+ },
32
+ "files": [
33
+ "src/*.mjs",
34
+ "web",
35
+ "lib",
36
+ "cordis.patch.yml",
37
+ "desktop.ps1",
38
+ "README.md",
39
+ "LICENSE",
40
+ "CHANGELOG.md",
41
+ "docs"
42
+ ],
43
+ "scripts": {
44
+ "build": "node build.mjs",
45
+ "prepack": "npm run build",
46
+ "test": "node --test tests/*.test.mjs",
47
+ "pretest": "npm run build"
48
+ },
49
+ "repository": {
50
+ "type": "git",
51
+ "url": "git+https://github.com/insomnic-Evan/dsh-plugin-starpost.git"
52
+ },
53
+ "author": "hth768",
54
+ "homepage": "https://github.com/insomnic-Evan/dsh-plugin-starpost#readme",
55
+ "bugs": {
56
+ "url": "https://github.com/insomnic-Evan/dsh-plugin-starpost/issues"
57
+ },
58
+ "keywords": [
59
+ "deepseek-harness",
60
+ "dsh-plugin",
61
+ "starpost",
62
+ "bot",
63
+ "chat"
64
+ ],
65
+ "starpostCoreVersion": "0.35.2",
66
+ "devDependencies": {
67
+ "@deepseek-ai/dsh-agent-loop": "0.2.2-rc.1",
68
+ "@deepseek-ai/dsh-agent-loop-testkit": "0.2.2-rc.1",
69
+ "@deepseek-ai/dsh-llm": "0.2.2-rc.1",
70
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.1",
71
+ "cortico-world-starpost": "0.35.2",
72
+ "esbuild": "0.25.12"
73
+ },
74
+ "dependencies": {
75
+ "@deepseek-ai/schemastery": "3.19.0"
76
+ }
77
+ }