issue-6
main
在 plugins/hud/hooks/companion/ 新增三個純核心模組(檔案系統與時鐘皆注入):
plugins/hud/hooks/companion/
care.ts
quiet
todo.ts
memory.ts
care.test.ts
memory.test.ts
共 33 項測試通過(以 esbuild 打包後用 node --test 執行,使用 node:test,因本環境無 claude-code/testing)。
node --test
node:test
claude-code/testing
/cockpit quiet|reflect
Closes #6
- care:事件式關心(冷卻、每日上限、靜音、回覆中/輸入中不彈出),toast 與注入兩種輸出,台詞依觸發 × 個性 × 好感階段 - todo:新增、完成、承諾事項與到期提醒 - memory:檢索評分、遺忘曲線、鞏固與反思、金鑰過濾 - 以假時鐘與記憶體檔案系統測試核心接縫 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jiantw83 notify:feat: M4 主動關心、待辦與記憶鞏固
No dependencies set.
The note is not visible to the blocked user.
摘要
在
plugins/hud/hooks/companion/新增三個純核心模組(檔案系統與時鐘皆注入):care.ts:會話開始、閒置回來、連續工作 2 小時、深夜、連續工具失敗、額度警告、待辦到期;每種關心有冷卻、每日上限(受好感階段與外向性影響,並受使用者上限封頂)、quiet靜音與靜音時段、回覆中/輸入中不彈出(且不消耗冷卻)。輸出分 toast 模板句與下次送出訊息時注入的情境;台詞依觸發 × 個性屬性 × 好感階段,並測試不含責備或愧疚勒索。todo.ts:新增、完成、承諾事項與到期提醒(只提醒一次)。memory.ts:檢索評分(半衰期 72 小時、權重 1/1/2/0.5、前 6 筆)、穩定度遺忘曲線、重要度門檻/手動 reflect 的鞏固與反思、金鑰過濾。驗收對應
care.test.ts(假時鐘)memory.test.ts共 33 項測試通過(以 esbuild 打包後用
node --test執行,使用node:test,因本環境無claude-code/testing)。備註
/cockpit quiet|reflect指令;待 M0–M3 合併後再做薄轉接。Closes #6
@jiantw83 notify:feat: M4 主動關心、待辦與記憶鞏固
@jiantw83 notify:feat: M4 主動關心、待辦與記憶鞏固