fix: update MACP plugin paths from /home/jarvis to dynamic resolution
- plugins/macp/src/index.ts: updated OC SDK imports to local paths - plugins/macp/src/macp-runtime.ts: DEFAULT_REPO_ROOT → mosaic-stack-new, PI_RUNNER_PATH updated - plugins/macp/openclaw.plugin.json: default repoRoot description updated - Removed stale tsconfig.tsbuildinfo with old path references
This commit is contained in:
@@ -4,12 +4,12 @@ import * as path from 'node:path';
|
||||
import {
|
||||
registerAcpRuntimeBackend,
|
||||
unregisterAcpRuntimeBackend,
|
||||
} from '/home/jarvis/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/acp-runtime.js';
|
||||
import type { OpenClawPluginApi } from '/home/jarvis/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/index.js';
|
||||
} from '/home/woltjejason/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/acp-runtime.js';
|
||||
import type { OpenClawPluginApi } from '/home/woltjejason/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/index.js';
|
||||
import type {
|
||||
OpenClawPluginService,
|
||||
OpenClawPluginServiceContext,
|
||||
} from '/home/jarvis/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/src/plugins/types.js';
|
||||
} from '/home/woltjejason/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/src/plugins/types.js';
|
||||
|
||||
import { MacpRuntime } from './macp-runtime.js';
|
||||
|
||||
@@ -38,7 +38,7 @@ function resolveConfig(pluginConfig?: Record<string, unknown>, stateDir?: string
|
||||
const config = (pluginConfig ?? {}) as PluginConfig;
|
||||
const repoRoot = config.repoRoot?.trim()
|
||||
? path.resolve(expandHome(config.repoRoot))
|
||||
: path.resolve('/home/jarvis/src/mosaic-mono-v1');
|
||||
: path.resolve('/home/woltjejason/src/mosaic-stack-new');
|
||||
return {
|
||||
defaultModel: config.defaultModel?.trim() || 'openai/gpt-5-mini',
|
||||
systemPrompt: config.systemPrompt ?? '',
|
||||
|
||||
Reference in New Issue
Block a user