Zero hardcoded /home/ paths in any plugin source file.
Approach:
plugins/macp/src/index.ts: uses createRequire + dynamic import() to resolve the OC plugin SDK at runtime from wherever openclaw is globally installed
plugins/macp/src/acp-runtime-types.ts: local TypeScript interface definitions mirroring the OC ACP runtime contract — compiles without the SDK present
plugins/macp/src/macp-runtime.ts: DEFAULT_REPO_ROOT and PI_RUNNER_PATH use os.homedir() + path.join() instead of literal paths
plugins/mosaic-framework/src/index.ts: SDK type import replaced with local type
This plugin will now compile and run on any machine with openclaw installed globally via npm.
**Zero hardcoded `/home/` paths in any plugin source file.**
Approach:
- `plugins/macp/src/index.ts`: uses `createRequire` + dynamic `import()` to resolve the OC plugin SDK at runtime from wherever `openclaw` is globally installed
- `plugins/macp/src/acp-runtime-types.ts`: local TypeScript interface definitions mirroring the OC ACP runtime contract — compiles without the SDK present
- `plugins/macp/src/macp-runtime.ts`: `DEFAULT_REPO_ROOT` and `PI_RUNNER_PATH` use `os.homedir()` + `path.join()` instead of literal paths
- `plugins/mosaic-framework/src/index.ts`: SDK type import replaced with local type
This plugin will now compile and run on any machine with `openclaw` installed globally via npm.
- plugins/macp/src/index.ts: use createRequire + dynamic import() for OC SDK
- plugins/macp/src/acp-runtime-types.ts: local ACP runtime type definitions
- plugins/macp/src/macp-runtime.ts: DEFAULT_REPO_ROOT and PI_RUNNER_PATH use
os.homedir() instead of hardcoded /home/user/
- plugins/mosaic-framework/src/index.ts: removed hardcoded SDK import
- No hardcoded /home/ paths remain in any plugin source file
- Plugin works on any machine with openclaw installed globally
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Zero hardcoded
/home/paths in any plugin source file.Approach:
plugins/macp/src/index.ts: usescreateRequire+ dynamicimport()to resolve the OC plugin SDK at runtime from whereveropenclawis globally installedplugins/macp/src/acp-runtime-types.ts: local TypeScript interface definitions mirroring the OC ACP runtime contract — compiles without the SDK presentplugins/macp/src/macp-runtime.ts:DEFAULT_REPO_ROOTandPI_RUNNER_PATHuseos.homedir()+path.join()instead of literal pathsplugins/mosaic-framework/src/index.ts: SDK type import replaced with local typeThis plugin will now compile and run on any machine with
openclawinstalled globally via npm.