Skip to content

fix: memos-local-openclaw-plugin@1.0.10 打包缺少 dist/ 目錄,無法在 OpenClaw 2026.5.x 使用 #1675

@winnerpython

Description

@winnerpython

Pre-submission checklist | 提交前检查

  • I have searched existing issues and this hasn't been mentioned before | 我已搜索现有问题,确认此问题尚未被提及
  • I have read the project documentation and confirmed this issue doesn't already exist | 我已阅读项目文档并确认此问题尚未存在
  • This issue is specific to MemOS and not a general software issue | 该问题是针对 MemOS 的,而不是一般软件问题

Bug Description | 问题描述

問題描述
OpenClaw 2026.5.x 要求插件有編譯後的 JavaScript 文件(dist/index.js),
但 npm 包只有 TypeScript 源碼(index.ts),導致插件無法載入。

package.jsonprepublishOnly 設置為 "echo 'Source-only publish — no build needed.'"
但新版 OpenClaw 不再接受純 TypeScript 插件。

How to Reproduce | 如何重现

期望行為

npm 包應包含編譯後的 dist/index.js 文件,或提供兼容 OpenClaw 2026.5.x 的入口點。

補充

手動執行 npm run build 失敗,因為:

  1. 缺少 tsconfig.json(npm 包中沒有)
  2. 使用 moduleResolution: "NodeNext" 時,導入路徑缺少 .js 擴展名

Environment | 环境信息

環境
OpenClaw: 2026.5.7
插件版本: @memtensor/memos-local-openclaw-plugin@1.0.10
Node: v24.14.0
OS: Linux x64

Additional Context | 其他信息

No response

Willingness to Implement | 实现意愿

  • I'm willing to implement this myself | 我愿意自己解决
  • I would like someone else to implement this | 我希望其他人来解决

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpendingPending items to be addressed | 待解决事项。

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions