Skip to content

Build: Prepare OpenClaw memory plugin for npm publish#58

Merged
hungtranphamminh merged 4 commits intodevfrom
feat/publish-oc-memwal
Mar 30, 2026
Merged

Build: Prepare OpenClaw memory plugin for npm publish#58
hungtranphamminh merged 4 commits intodevfrom
feat/publish-oc-memwal

Conversation

@hungtranphamminh
Copy link
Copy Markdown
Collaborator

@hungtranphamminh hungtranphamminh commented Mar 29, 2026

Summary

Why

The plugin needs to be distributed as a compiled npm package so users can install it directly from npm.

What

Prepare packages/openclaw-memory-memwal for npm publishing under @mysten-incubation/oc-memwal.

Solution

  • Rename package to @mysten-incubation/oc-memwal
  • Add tsconfig.json for TypeScript compilation to dist/
  • Add main, types, exports, files fields to package.json
  • Add build/clean/prepublishOnly scripts (cross-platform)
  • Add @types/node and typescript as devDependencies
  • Add engines: node >= 20
  • Point openclaw.extensions to ./dist/index.js
  • Remove private: true to allow publishing

Types of Changes

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Performance optimization (non-breaking change which addresses a performance issue)
  • Refactor (non-breaking change which does not change existing behavior or add new functionality)
  • Library update (non-breaking change that will update one or more libraries to newer versions)
  • Documentation (non-breaking change that doesn't change code behavior, can skip testing)
  • Test (non-breaking change related to testing)
  • Security awareness (changes that affect permission scope, security scenarios)

Testing

  • I have tested this code locally
  • I have added/updated unit tests
  • I have added/updated integration tests
  • I have tested in multiple browsers (if applicable)

Checklist

  • My code follows the code style of this project
  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Screenshots/Recordings

N/A

Additional Notes

N/A

Related Issues

N/A

Rename to @mysten-incubation/oc-memwal, add tsconfig, build scripts,
exports, types, and engine requirements. Compiled JS output in dist/.
…nces

Replace manual symlink install with openclaw plugins install command.
Update config examples to use oc-memwal. Remove TEE from relayer labels.
Auto-publish on push to main/staging/dev when plugin code changes.
Uses OIDC provenance, auto-increments dev/rc versions per branch.
Add typecheck script. Reset base version to 0.0.1.
Replace app.memwal.com with memwal.ai in plugin uiHints.
Fix relative Mintlify links to use full docs.memwal.ai URLs.
@hungtranphamminh hungtranphamminh merged commit 5d2538a into dev Mar 30, 2026
3 checks passed
hungtranphamminh added a commit that referenced this pull request Mar 30, 2026
* Build: Prepare OpenClaw memory plugin for npm publish (#58)

* build(openclaw-plugin): prepare package for npm publish

Rename to @mysten-incubation/oc-memwal, add tsconfig, build scripts,
exports, types, and engine requirements. Compiled JS output in dist/.

* docs(openclaw-plugin): update install flow for npm, remove TEE references

Replace manual symlink install with openclaw plugins install command.
Update config examples to use oc-memwal. Remove TEE from relayer labels.

* ci(openclaw-plugin): add release workflow for npm publish

Auto-publish on push to main/staging/dev when plugin code changes.
Uses OIDC provenance, auto-increments dev/rc versions per branch.
Add typecheck script. Reset base version to 0.0.1.

* fix(openclaw-plugin): update outdated links in manifest and README

Replace app.memwal.com with memwal.ai in plugin uiHints.
Fix relative Mintlify links to use full docs.memwal.ai URLs.

* fix(openclaw-plugin): add repository field for npm OIDC provenance (#59)

* fix(openclaw-plugin): remove openclaw peer dep, downgrade zod to v3 (#60)

Remove openclaw peer dependency that causes install failures via
openclaw plugins install. Downgrade zod from v4 to v3 for monorepo
compatibility. No API changes.
hungtranphamminh added a commit that referenced this pull request Mar 30, 2026
* Build: Prepare OpenClaw memory plugin for npm publish (#58)

* build(openclaw-plugin): prepare package for npm publish

Rename to @mysten-incubation/oc-memwal, add tsconfig, build scripts,
exports, types, and engine requirements. Compiled JS output in dist/.

* docs(openclaw-plugin): update install flow for npm, remove TEE references

Replace manual symlink install with openclaw plugins install command.
Update config examples to use oc-memwal. Remove TEE from relayer labels.

* ci(openclaw-plugin): add release workflow for npm publish

Auto-publish on push to main/staging/dev when plugin code changes.
Uses OIDC provenance, auto-increments dev/rc versions per branch.
Add typecheck script. Reset base version to 0.0.1.

* fix(openclaw-plugin): update outdated links in manifest and README

Replace app.memwal.com with memwal.ai in plugin uiHints.
Fix relative Mintlify links to use full docs.memwal.ai URLs.

* fix(openclaw-plugin): add repository field for npm OIDC provenance (#59)

* fix(openclaw-plugin): remove openclaw peer dep, downgrade zod to v3 (#60)

Remove openclaw peer dependency that causes install failures via
openclaw plugins install. Downgrade zod from v4 to v3 for monorepo
compatibility. No API changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants