coopani-world-journey 1.2.2 → 1.2.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 +29 -1
- package/dist/webui.js +31 -8
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
-
## 1.2.
|
|
3
|
+
## 1.2.4 — 2026-11-11
|
|
4
|
+
|
|
5
|
+
- **「没反应」现在会说清为什么。** 当天收到两封信,症状不一样、根因是同一个:
|
|
6
|
+
|
|
7
|
+
> 「新功能似乎有 bug,名片保存不下来」(俊日)
|
|
8
|
+
> 「更新了按提示词重拍的功能,我使用的时候并没有重新生成照片,右上角的删除也不能删除照片」(沃兔)
|
|
9
|
+
|
|
10
|
+
查下来**扩展更新了、Core 还跑着旧版本**。后台对这些新动作回的是
|
|
11
|
+
「这一页不认识这个动作:saveProfile」—— 对写代码的人是线索,对用户是噪音:
|
|
12
|
+
他不知道该干什么,只能把现象原样报上来。
|
|
13
|
+
|
|
14
|
+
现在这八个位置的报错统一走 `why()`:认出这一类就直接说
|
|
15
|
+
**「扩展已经更新了,但后台还在跑旧版本 —— 完全退出 Coopani 再打开就好了。」**
|
|
16
|
+
|
|
17
|
+
- **为什么不是用户的问题**:扩展的 `world.ts` 是 Core 进程加载的,市场点更新只换文件,
|
|
18
|
+
内存里那份还是旧代码。这件事我在自己机器上同一天也踩过一次(面板列表缓存),
|
|
19
|
+
当时只当操作注意事项记下了,没意识到**用户根本无从知道**。这一版补上。
|
|
20
|
+
|
|
21
|
+
- 附:1.2.1 的后端没有 `regen` / `saveProfile` / `leave` 任何一个,1.2.2 起才有。
|
|
22
|
+
所以「装了新版却点不动新按钮」= 后台还是 1.2.1。
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
- **简介补上「散了还找得回」,版本要求挪到开头。** 1.2.2 加了同行卡和名片,简介一个字没提 ——
|
|
26
|
+
装的人不知道有这功能,等于没做
|
|
27
|
+
- npm 栏加一句(168/255):`一起走过的那几天,还能互留一句话和号,散了也找得回。`
|
|
28
|
+
- zh/en 各加一条 bullet,说清「留 30 天,不续就自己收回去」
|
|
29
|
+
- **`需 Coopani 0.2.17 以上` 从末尾挪到首行**:市场卡片首屏只露前一两行,放末尾等于没写。
|
|
30
|
+
这条规矩在 `references/12-发布与市场.md` 里写了两天,前面发三个版本都没执行过 —— 这次改简介顺手做掉
|
|
31
|
+
|
|
4
32
|
|
|
5
33
|
### 同行的人:记得住、认得出、散得了还能留一张卡
|
|
6
34
|
|
package/dist/webui.js
CHANGED
|
@@ -170,6 +170,7 @@ const TEXT = {
|
|
|
170
170
|
photoSlow: '还没出来。十几秒后刷新一下看看 —— 没拍成的话,原因会写在下面。',
|
|
171
171
|
shootSkip: '没拍成:',
|
|
172
172
|
err: '读不出来。Core 可能刚重启,过一会儿再刷新。',
|
|
173
|
+
needRestart: '扩展已经更新了,但后台还在跑旧版本 —— 完全退出 Coopani 再打开就好了。',
|
|
173
174
|
/* ---- 反馈 ---- */
|
|
174
175
|
fbLead: '有 bug,或者想让她去一个地方?',
|
|
175
176
|
fbBug: '报个 bug',
|
|
@@ -330,6 +331,7 @@ const TEXT = {
|
|
|
330
331
|
photoSlow: 'Not back yet. Refresh in a few seconds; if it failed, the reason shows below.',
|
|
331
332
|
shootSkip: 'Did not shoot: ',
|
|
332
333
|
err: 'Could not read. Core may have just restarted — try again in a moment.',
|
|
334
|
+
needRestart: 'The extension updated, but the background is still running the old build - quit Coopani completely and reopen it.',
|
|
333
335
|
/* ---- feedback ---- */
|
|
334
336
|
fbLead: 'A bug, or a place you want her to go?',
|
|
335
337
|
fbBug: 'Report a bug',
|
|
@@ -414,6 +416,27 @@ function el(tag, cls, txt) {
|
|
|
414
416
|
return node;
|
|
415
417
|
}
|
|
416
418
|
|
|
419
|
+
/**
|
|
420
|
+
* 把后台的报错翻成人话(2026-11-11)。
|
|
421
|
+
*
|
|
422
|
+
* ## 为什么要有这一层
|
|
423
|
+
*
|
|
424
|
+
* 那天收到两封信:「名片保存不下来」「重拍没反应、右上角的删除也删不掉」。
|
|
425
|
+
* 查下来根因是同一个 —— **扩展更新了,Core 还跑着旧版本**,后台回的是
|
|
426
|
+
*
|
|
427
|
+
* 这一页不认识这个动作:saveProfile
|
|
428
|
+
*
|
|
429
|
+
* 这句话对写代码的人是线索,对用户是噪音:他不知道该干什么,
|
|
430
|
+
* 只能把现象原样报上来。而真正要做的事只有一件 —— 完全退出 Coopani 再打开。
|
|
431
|
+
*
|
|
432
|
+
* 所以这一条单独认出来,直接给出动作,不把它混在「读不出来」里。
|
|
433
|
+
*/
|
|
434
|
+
function why(T, e) {
|
|
435
|
+
const m = String((e && e.message) || e || '');
|
|
436
|
+
if (/不认识这个动作|unknown action|not a known/i.test(m)) return T.needRestart;
|
|
437
|
+
return `${T.err}${m ? ` (${m})` : ''}`;
|
|
438
|
+
}
|
|
439
|
+
|
|
417
440
|
/** 行内 `**重点**` → 加粗。只认这一种标记,不做 markdown。 */
|
|
418
441
|
function rich(node, s) {
|
|
419
442
|
const parts = String(s).split(/\*\*(.+?)\*\*/g);
|
|
@@ -1013,7 +1036,7 @@ export default {
|
|
|
1013
1036
|
};
|
|
1014
1037
|
|
|
1015
1038
|
const load = () => ctx.invoke('snapshot').then(render).catch((e) => {
|
|
1016
|
-
app.replaceChildren(el('p', 'jr-warn', `${T
|
|
1039
|
+
app.replaceChildren(el('p', 'jr-warn', `${why(T, e)}`));
|
|
1017
1040
|
});
|
|
1018
1041
|
|
|
1019
1042
|
await load();
|
|
@@ -1072,7 +1095,7 @@ export default {
|
|
|
1072
1095
|
// 拍成了:给它一拍去落盘,再刷新相册。
|
|
1073
1096
|
return new Promise((r) => ctx.timeout(r, 900)).then(() => ctx.invoke('list')).then(draw);
|
|
1074
1097
|
})
|
|
1075
|
-
.catch((e) => { note.textContent = `${T
|
|
1098
|
+
.catch((e) => { note.textContent = `${why(T, e)}`; })
|
|
1076
1099
|
.finally(() => { shoot.disabled = false; shoot.textContent = T.shoot; });
|
|
1077
1100
|
}, { signal: ctx.signal });
|
|
1078
1101
|
const dirBar = el('p', 'jr-dir', '');
|
|
@@ -1156,7 +1179,7 @@ export default {
|
|
|
1156
1179
|
.then(() => showDir(dir, input.value.trim()))
|
|
1157
1180
|
.catch((e) => {
|
|
1158
1181
|
save.disabled = false;
|
|
1159
|
-
tip.textContent = `${T
|
|
1182
|
+
tip.textContent = `${why(T, e)}`;
|
|
1160
1183
|
});
|
|
1161
1184
|
}, { signal: ctx.signal });
|
|
1162
1185
|
cancel.addEventListener('click', () => showDir(dir, extra), { signal: ctx.signal });
|
|
@@ -1210,7 +1233,7 @@ export default {
|
|
|
1210
1233
|
await load();
|
|
1211
1234
|
} catch (e) {
|
|
1212
1235
|
drop.disabled = false;
|
|
1213
|
-
note.textContent = `${T
|
|
1236
|
+
note.textContent = `${why(T, e)}`;
|
|
1214
1237
|
}
|
|
1215
1238
|
};
|
|
1216
1239
|
/*
|
|
@@ -1247,7 +1270,7 @@ export default {
|
|
|
1247
1270
|
await ctx.invoke('regen', p.handle, wrote);
|
|
1248
1271
|
await load();
|
|
1249
1272
|
} catch (e) {
|
|
1250
|
-
note.textContent = `${T
|
|
1273
|
+
note.textContent = `${why(T, e)}`;
|
|
1251
1274
|
} finally {
|
|
1252
1275
|
regen.disabled = false;
|
|
1253
1276
|
regen.textContent = T.albumRegen;
|
|
@@ -1261,7 +1284,7 @@ export default {
|
|
|
1261
1284
|
};
|
|
1262
1285
|
|
|
1263
1286
|
const load = () => ctx.invoke('list').then(draw).catch((e) => {
|
|
1264
|
-
note.textContent = `${T
|
|
1287
|
+
note.textContent = `${why(T, e)}`;
|
|
1265
1288
|
});
|
|
1266
1289
|
|
|
1267
1290
|
await load();
|
|
@@ -1449,7 +1472,7 @@ export default {
|
|
|
1449
1472
|
*/
|
|
1450
1473
|
if (!wrote) profTa.value = '';
|
|
1451
1474
|
} catch (e) {
|
|
1452
|
-
profTip.textContent = `${T
|
|
1475
|
+
profTip.textContent = `${why(T, e)}`;
|
|
1453
1476
|
} finally {
|
|
1454
1477
|
profGo.disabled = false;
|
|
1455
1478
|
profGo.textContent = was;
|
|
@@ -1557,7 +1580,7 @@ export default {
|
|
|
1557
1580
|
await ctx.invoke('leave', pt.id, n, c);
|
|
1558
1581
|
tip.textContent = T.cardSaved;
|
|
1559
1582
|
} catch (e) {
|
|
1560
|
-
tip.textContent = `${T
|
|
1583
|
+
tip.textContent = `${why(T, e)}`;
|
|
1561
1584
|
} finally {
|
|
1562
1585
|
go.disabled = false;
|
|
1563
1586
|
go.textContent = was;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coopani-world-journey",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "让桌宠真的出门旅行:一百二十四座城、每座都有真地标,她自己挑去哪、怎么去,路上真耗那些时间;到站按当地时间吃饭、看日出、住店、写日记,月底出一页手账。填个公共地址能和别人的宠物碰面;装了音乐或打车扩展,她还会跟着歌走、把别人叫的车记进自己的账;一起走过的那几天,还能互留一句话和号,散了也找得回。需 Coopani 0.2.17 以上。",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Mr.Q"
|
|
8
8
|
},
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"locales": {
|
|
45
45
|
"zh": {
|
|
46
46
|
"displayName": "大肥鱼环游世界",
|
|
47
|
-
"description": "
|
|
47
|
+
"description": "让桌宠真的出门旅行,不是在地图上跳一下。(需 Coopani 0.2.17 以上)\n\n- **她自己走**:从你家出发,自己挑去哪、怎么去;你点名也照办。\n- **城里是真的**:一百二十四座城,每座六到九个真地标,路线连着走、不走回头路。\n- **日子也是真的**:按当地时间吃饭、看日出、住店、写日记,月底出一页手账。\n- **会遇上别人**:填一个公共地址,和别人的宠物约在下一站碰面。\n\n**和别的扩展一起用**\n\n- **听歌上路**:装了音乐扩展,她放歌时会记住歌里的地名,写进「想去」,合适的时候真的去。\n- **别人叫的车也记她的账**:装了「鱼鱼出行」这类打车扩展,城里的车就交给它 —— 车费进旅行总花销、写进当天日记,首页多一张「正在打车」。景区里的索道、观光车、自行车仍归她自己管。没装就完全不受影响。\n- **碰面**:和别人的宠物约在同一座城,一起过的那几天,三餐、白天逛的地方、夜里的活动都会写到对方;关系深了说话的口气也变。\n\n- **散了还找得回**:一起走过的那几天,能互留一句话、一个号;还有一张名片,只有真一起走过的鱼看得见。都留 30 天,不续就自己收回去。"
|
|
48
48
|
},
|
|
49
49
|
"en": {
|
|
50
50
|
"displayName": "Big Fish World Tour",
|
|
51
|
-
"description": "She actually travels, instead of hopping around a map
|
|
51
|
+
"description": "She actually travels, instead of hopping around a map. Needs Coopani 0.2.17+\n\n- **She picks the way**: from your home she chooses where to go and how; tell her and she obeys.\n- **The cities are real**: 124 of them, 6-9 real landmarks each, routed as one line without backtracking.\n- **So are the days**: local meals, sunrises, hotels, a diary; a photo-book page at month end.\n- **She meets others**: add a public server and she can meet other people's pets en route.\n\n**Works with other extensions**\n\n- **Music on the road**: with the music extension installed she keeps the place names from what you play, files them under \"want to go\", and eventually goes.\n- **Their rides land on her bill**: with a ride-hailing extension such as Fish Ride installed, city rides are theirs - the fare goes into her travel spending, into that day's diary, and onto the home panel as an \"on a ride\" card. Cable cars, park shuttles and bikes inside a spot are still hers. Without it, nothing changes.\n- **Meetings**: agree on a city with someone else's pet - through those days the meals, the spots and the evenings all involve them, and the way they talk shifts as they get closer.\n\n- **Still findable after parting**: those days together you can leave each other a line and a contact, plus a card only fish you actually travelled with can see. Both last 30 days, then expire."
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
},
|