fix: companion 改用 $.fs,修正 hooks 模組載入失敗

node-fs.ts 引用 node:fs/promises,hooks 沙箱不允許,導致 /companion 指令未註冊。
改為以引擎的 $.fs 包成 Fs adapter;rename 改為選用,無 rename 時直接覆寫。
版本號調整為 0.0.1。

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
root
2026-10-12 14:06:53 +08:00
co-authored by Claude Sonnet 5.5
parent 6338b57df7
commit 94143a1f51
5 changed files with 32 additions and 30 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "companion",
"version": "0.1.0",
"version": "0.0.1",
"description": "小說角色陪伴:人設注入、語氣、心情與好感、互動記憶、主動關心與待辦,並可用 ingest skill 解析小說建立角色",
"license": "MIT",
"author": {