cortico-world-bottle 0.8.1 → 0.8.3
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 +8 -0
- package/README.md +2 -2
- package/dist/{webui-e3fcf534a3ac.js → webui-63ab5d8a5fcf.js} +1 -1
- package/package.json +3 -3
- package/world/config.ts +1 -1
- package/world/world.ts +2 -4
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -42,7 +42,7 @@ Coo 写一封不超过 120 字的信。**寄不寄,由你决定**;别人家
|
|
|
42
42
|
- 网页沿用暖色信纸风格,加入信封、邮戳、蜡封和轻量动画;系统开启减少动态效果时会停用动画。桌宠称呼读取 `ctx.botName || '它'`。
|
|
43
43
|
- 退潮时原样显示海边的提示,保留信稿、不新增寄出记录;等回潮后可以重试。公告只在打开的网页信箱中读取和显示,`alarm` 使用暖色强调,不再送进桌宠上下文。公告右侧可关闭:仅在当前浏览器记住,刷新或重开信箱仍隐藏(包括新公告),World 重启后恢复;其他设备独立显示。
|
|
44
44
|
|
|
45
|
-
写信与打捞既可由人点击邀请,也会按已配置的随机时刻邀请 Coo
|
|
45
|
+
写信与打捞既可由人点击邀请,也会按已配置的随机时刻邀请 Coo 自主决定。自动邀请保留暂停、间隔、每日上限与有限重试;待办提醒在手上有未处理来信或待寄草稿时触发,全部处理完后停止。页面手动邀请仍有一分钟冷却,人模式的打捞不通知模型。
|
|
46
46
|
|
|
47
47
|
**额度刷新说明**:打开独立信箱时短间隔向海边同步额度,扩展「信箱」页签每 5 秒获取状态并通过公开 `ctx.refresh()` 更新顶栏;并发刷新会合并。宿主内置的「配置」页没有运行扩展面板,也没有给扩展注册页头定时器的接口,因此不改宿主无法让那里的原有数字连续刷新;现注明「快照」,可切到「信箱」页签同步。不越界修改宿主 DOM,不要求更新 Coopanion。
|
|
48
48
|
|
|
@@ -94,7 +94,7 @@ Windows 卡片的新来信与回信使用不同的提示音,在 World「配置
|
|
|
94
94
|
| `worlds.bottle.lanPort` | 独立对外端口,默认 7798;占用时报错,不自动顺延。 |
|
|
95
95
|
| `worlds.bottle.lanPublicUrl` | 可选对外地址;留空列出网卡地址,支持 HTTP/HTTPS 根路径,修改后重启 World。 |
|
|
96
96
|
| `worlds.bottle.randomWake` | 自动海边邀请与待办提醒,默认开启;独立信箱和信箱页签可分别暂停、恢复或调整间隔与每日上限。 |
|
|
97
|
-
| `worlds.bottle.writeInviteDayLimit` / `catchInviteDayLimit` / `reminderDayLimit` | 写信、打捞邀请默认每天各 3 次,可设 1—24 次整数;待办提醒默认 12 次,可设 3—20
|
|
97
|
+
| `worlds.bottle.writeInviteDayLimit` / `catchInviteDayLimit` / `reminderDayLimit` | 写信、打捞邀请默认每天各 3 次,可设 1—24 次整数;待办提醒默认 12 次,可设 3—20 次整数,有待处理来信或待寄草稿时触发;与各自最短间隔放在一起。自动补试计入上限,手动邀请不占上限,调整不会清零今天的次数。 |
|
|
98
98
|
| `worlds.bottle.cardAutoCloseSec` | 卡片自动收起秒数,默认 10,0 为不自动收起;下一张卡片生效。 |
|
|
99
99
|
| `worlds.bottle.soundEnabled` | Windows 新来信/回信提示音总开关,默认开启。 |
|
|
100
100
|
| `worlds.bottle.soundVolume` | 桌面提示音音量,0—100,默认 70。 |
|
|
@@ -106,7 +106,7 @@ export async function mountMailbox(ctx) {
|
|
|
106
106
|
invitations.append(row);
|
|
107
107
|
return { action, label, toggle, hours, limit, save };
|
|
108
108
|
});
|
|
109
|
-
invitations.append(ui.h('p', 'bottle-wake-outcome', zh ? '写信、打捞默认每天各 3 次,间隔 2—24 小时并随机延长;待办提醒默认每天 12 次(可设 3—20
|
|
109
|
+
invitations.append(ui.h('p', 'bottle-wake-outcome', zh ? '写信、打捞默认每天各 3 次,间隔 2—24 小时并随机延长;待办提醒默认每天 12 次(可设 3—20 次),有待处理来信或待寄草稿时每 30—60 分钟轻声提醒。包含自动补试,手动邀请不占上限。配置页顶栏为快照,信箱页签每 5 秒同步。' : 'Writing/catching default to 3/day, with a randomized 2–24 hour minimum. Reminders default to 12/day (3–20), every 30–60 minutes only while incoming mail or unsent drafts remain. Retries count; manual invitations are separate. Header snapshots sync every 5 seconds on this tab.'));
|
|
110
110
|
const outcome = ui.h('p', 'bottle-wake-outcome');
|
|
111
111
|
invitations.append(outcome);
|
|
112
112
|
ctx.root.append(invitations);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cortico-world-bottle",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "桌宠起草漂流瓶与小纸条,人确认寄出;共读、回信与星笺记忆分别授权。",
|
|
6
6
|
"keywords": [
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"description": "Companion-written letters and short notes, human-confirmed sending, separate read/reply intent and revocable starred-letter memory."
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
"webUiClient": "dist/webui-
|
|
51
|
+
"webUiClient": "dist/webui-63ab5d8a5fcf.js",
|
|
52
52
|
"webUiStyle": "dist/webui-152172be2ee1.css"
|
|
53
53
|
},
|
|
54
54
|
"files": [
|
|
55
55
|
"world",
|
|
56
|
-
"dist/webui-
|
|
56
|
+
"dist/webui-63ab5d8a5fcf.js",
|
|
57
57
|
"dist/webui-152172be2ee1.css",
|
|
58
58
|
"shared/contract.ts",
|
|
59
59
|
"shared/text.ts",
|
package/world/config.ts
CHANGED
|
@@ -185,7 +185,7 @@ export const BOTTLE_CONFIG_FIELDS: Record<string, ConfigProperty> = {
|
|
|
185
185
|
[`worlds.bottle.${enabled}`, {
|
|
186
186
|
type: 'boolean' as const, title: label,
|
|
187
187
|
description: action === 'remind'
|
|
188
|
-
? '
|
|
188
|
+
? '有尚未处理的来信、待寄信稿或回信稿时温和提醒;全部处理完后停止;不读正文,也不代替人寄信。关闭即暂停,与网页设置同步。'
|
|
189
189
|
: '余量大于 1 且手上没有待办时,偶尔邀请它自主选择。关闭即暂停,与网页设置同步;人手动发出的邀请仍尊重暂停。',
|
|
190
190
|
'x-hot': true,
|
|
191
191
|
}],
|
package/world/world.ts
CHANGED
|
@@ -496,7 +496,7 @@ export class BottleWorld implements World {
|
|
|
496
496
|
if (!this.host || (!this.online && !(manual && this.hasRecentQuota())) || (!manual && this.ctx.cfg.randomWake === false) || this.authorizedNow() ||
|
|
497
497
|
this.catching || this.sendPending || this.runningTools > 0 ||
|
|
498
498
|
(this.pendingRequest && this.pendingRequest.until > this.now())) return false;
|
|
499
|
-
if (action === 'remind') return !!this.store.held;
|
|
499
|
+
if (action === 'remind') return !!(this.store.held || this.store.letterDraft || this.store.draft);
|
|
500
500
|
if (this.store.letterDraft || this.store.draft || this.store.held) return false;
|
|
501
501
|
const reserve = manual ? 0 : 1;
|
|
502
502
|
return action === 'write' ? (this.quota?.bottles_left ?? 0) > reserve
|
|
@@ -1290,9 +1290,7 @@ export class BottleWorld implements World {
|
|
|
1290
1290
|
delete draft.autoSendKey;
|
|
1291
1291
|
this.store.setDraft(draft);
|
|
1292
1292
|
}
|
|
1293
|
-
//
|
|
1294
|
-
// Count only once a valid reply draft exists, never when merely queuing the original.
|
|
1295
|
-
this.store.noteRead('received', auth.letterId, this.now());
|
|
1293
|
+
// Reading counts belong to the explicit together-reading action, not reply drafting.
|
|
1296
1294
|
this.authorized = null;
|
|
1297
1295
|
this.autoReplyRetryAt=0;
|
|
1298
1296
|
await this.checkAutoReply();
|