feat: companion 作息、主動發話、適應度與外部素材 #52

Merged
jiantw83 merged 1 commits from issue-46 into main 2026-10-14 09:35:56 +00:00
Contributor

摘要

  • 作息與疲勞(精力基準位移)、想念累積與時間感;主動發話沿用 care.ts 的冷卻、日限、靜音,新增 miss_you、homesick、news 三種觸發
  • 想家與適應度(9.13):每日成長、本地第一次事件 +2、想家基準隨適應度下降
  • 外部素材:獨立腳本 scripts/fetch-materials.mjs 由系統排程執行並寫入快取;hook 只讀、不連網;只存標題、摘要、連結、時間;天氣 6 小時、新聞 24 小時過期,缺失或過期當作沒查
  • Open-Meteo 天氣、使用者自設 RSS(預設空清單);需 setup location= 才啟用;新增 /jsc-mod-companion:materials
  • 天氣微調心情基準;新聞依適應度、每天最多 2 則,說出口後寫入情節記憶
  • 版本 0.0.5,與第 9 章的差異記在 README

測試

  • hooks/companion/world.test.ts:快取過期與缺失、hook 內不呼叫 fetch、作息、想念、適應度、新聞配額、指令
  • scripts/fetch-materials.test.mjs(node --test):腳本可單獨執行

註:議題內文沒有核取方塊,因此沒有項目可勾選。

Closes #46

🤖 Generated with Claude Code

## 摘要 - 作息與疲勞(精力基準位移)、想念累積與時間感;主動發話沿用 care.ts 的冷卻、日限、靜音,新增 miss_you、homesick、news 三種觸發 - 想家與適應度(9.13):每日成長、本地第一次事件 +2、想家基準隨適應度下降 - 外部素材:獨立腳本 scripts/fetch-materials.mjs 由系統排程執行並寫入快取;hook 只讀、不連網;只存標題、摘要、連結、時間;天氣 6 小時、新聞 24 小時過期,缺失或過期當作沒查 - Open-Meteo 天氣、使用者自設 RSS(預設空清單);需 setup location= 才啟用;新增 /jsc-mod-companion:materials - 天氣微調心情基準;新聞依適應度、每天最多 2 則,說出口後寫入情節記憶 - 版本 0.0.5,與第 9 章的差異記在 README ## 測試 - hooks/companion/world.test.ts:快取過期與缺失、hook 內不呼叫 fetch、作息、想念、適應度、新聞配額、指令 - scripts/fetch-materials.test.mjs(node --test):腳本可單獨執行 註:議題內文沒有核取方塊,因此沒有項目可勾選。 Closes #46 🤖 Generated with [Claude Code](https://claude.com/claude-code)
admin added 1 commit 2026-10-14 09:30:02 +00:00
- 作息與疲勞、想念累積與時間感,主動發話沿用 care.ts 的冷卻、日限、靜音
- 想家與適應度(9.13)
- 獨立腳本 fetch-materials.mjs 由系統排程寫入快取,hook 只讀、不連網
- 新增 /jsc-mod-companion:materials 與 setup location=、feeds=
- 天氣微調心情基準,新聞依適應度每天最多 2 則並寫入情節記憶
- 版本 0.0.5

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
jiantw83 merged commit 8459330cb9 into main 2026-10-14 09:35:56 +00:00
jiantw83 deleted branch issue-46 2026-10-14 09:35:57 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jiantw83/jsc-marketplace#52