MemOS icon indicating copy to clipboard operation
MemOS copied to clipboard

[Feedback] memos-local TS source not compiled — write/share tools unavailable

Open 17329971 opened this issue 6 months ago • 1 comments

环境

  • OpenClaw 5.3 (2026.5.3)
  • @memtensor/memos-local-openclaw-plugin v1.0.10
  • Windows 10 x64 / Node.js v24.14.1

现象

插件基础功能正常:memory_search、memory_get 可用,auto-recall 工作。

但这些工具不可用:

  • memory_write_public
  • memory_share / memory_unshare
  • task_share / task_unshare
  • skill_publish / skill_unpublish

OpenClaw 日志反复警告:

installed plugin package requires compiled runtime output for TypeScript entry index.ts

排查

  1. openclaw.plugin.json 里 contracts.tools 声明了 20 个工具
  2. 插件目录有 index.ts (114KB),但没有编译产物
  3. npm run build 执行 tsc 失败——缺少 tsconfig.json
  4. package.json 的 "main": "index.ts" 指向 TS 源文件

建议

  1. 加 tsconfig.json,让 npm run build 正常工作
  2. npm 发布时包含预编译的 dist/ 目录
  3. 或在 openclaw.plugin.json 声明所需运行时

搜索和 auto-recall 做得很好,希望能补上写工具这一块 🙏

17329971 avatar May 05 '26 03:05 17329971

感谢详细反馈。

这里提到的 TypeScript 源码未编译、缺少编译产物的问题,已经由 #1820 修复;它和 #1619 追踪的是同一个根因。现在插件包会把真实的 OpenClaw 入口编译到 dist/index.js,并且 package.json / openclaw.plugin.json 也已经改为指向编译后的入口,同时发布包中会包含 dist/ 编译产物。

因此,这应该可以解决下面这个加载告警:

installed plugin package requires compiled runtime output for TypeScript entry index.ts

也应该恢复那些因为插件入口无法正确加载而不可用的工具。

如果你在重新安装或升级到包含 #1820 的版本后,仍然发现 memory_write_public、memory_share、task_share 或 skill_publish 等工具不可用,请继续在这里补充插件版本、OpenClaw 版本和启动日志。我们可以据此重新打开这个 issue,或者把剩余的 tool contract / 工具暴露问题单独追踪。

CarltonXiang avatar Jul 08 '26 02:07 CarltonXiang