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:
@@ -25,7 +25,7 @@
|
|||||||
},
|
},
|
||||||
"repoRoot": {
|
"repoRoot": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Repository root containing .mosaic/orchestrator. Defaults to ~/src/mosaic-mono-v1."
|
"description": "Repository root containing .mosaic/orchestrator. Defaults to ~/src/mosaic-stack-new."
|
||||||
},
|
},
|
||||||
"orchDir": {
|
"orchDir": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
@@ -4,12 +4,12 @@ import * as path from 'node:path';
|
|||||||
import {
|
import {
|
||||||
registerAcpRuntimeBackend,
|
registerAcpRuntimeBackend,
|
||||||
unregisterAcpRuntimeBackend,
|
unregisterAcpRuntimeBackend,
|
||||||
} from '/home/jarvis/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/acp-runtime.js';
|
} from '/home/woltjejason/.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';
|
import type { OpenClawPluginApi } from '/home/woltjejason/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/index.js';
|
||||||
import type {
|
import type {
|
||||||
OpenClawPluginService,
|
OpenClawPluginService,
|
||||||
OpenClawPluginServiceContext,
|
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';
|
import { MacpRuntime } from './macp-runtime.js';
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ function resolveConfig(pluginConfig?: Record<string, unknown>, stateDir?: string
|
|||||||
const config = (pluginConfig ?? {}) as PluginConfig;
|
const config = (pluginConfig ?? {}) as PluginConfig;
|
||||||
const repoRoot = config.repoRoot?.trim()
|
const repoRoot = config.repoRoot?.trim()
|
||||||
? path.resolve(expandHome(config.repoRoot))
|
? path.resolve(expandHome(config.repoRoot))
|
||||||
: path.resolve('/home/jarvis/src/mosaic-mono-v1');
|
: path.resolve('/home/woltjejason/src/mosaic-stack-new');
|
||||||
return {
|
return {
|
||||||
defaultModel: config.defaultModel?.trim() || 'openai/gpt-5-mini',
|
defaultModel: config.defaultModel?.trim() || 'openai/gpt-5-mini',
|
||||||
systemPrompt: config.systemPrompt ?? '',
|
systemPrompt: config.systemPrompt ?? '',
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import type {
|
|||||||
AcpRuntimeHandle,
|
AcpRuntimeHandle,
|
||||||
AcpRuntimeStatus,
|
AcpRuntimeStatus,
|
||||||
AcpRuntimeTurnInput,
|
AcpRuntimeTurnInput,
|
||||||
} from '/home/jarvis/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/acp-runtime.js';
|
} from '/home/woltjejason/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/acp-runtime.js';
|
||||||
|
|
||||||
export interface MacpRuntimeConfig {
|
export interface MacpRuntimeConfig {
|
||||||
defaultModel: string;
|
defaultModel: string;
|
||||||
@@ -80,9 +80,9 @@ const MACP_CAPABILITIES: AcpRuntimeCapabilities = {
|
|||||||
controls: [],
|
controls: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
const DEFAULT_REPO_ROOT = '~/src/mosaic-mono-v1';
|
const DEFAULT_REPO_ROOT = '~/src/mosaic-stack-new';
|
||||||
const ORCHESTRATOR_RUN_PATH = '~/.config/mosaic/bin/mosaic-orchestrator-run';
|
const ORCHESTRATOR_RUN_PATH = '~/.config/mosaic/bin/mosaic-orchestrator-run';
|
||||||
const PI_RUNNER_PATH = '/home/jarvis/src/mosaic-mono-v1/tools/macp/dispatcher/pi_runner.ts';
|
const PI_RUNNER_PATH = '/home/woltjejason/src/mosaic-stack-new/tools/macp/dispatcher/pi_runner.ts';
|
||||||
|
|
||||||
function expandHome(rawPath: string): string {
|
function expandHome(rawPath: string): string {
|
||||||
if (rawPath === '~') {
|
if (rawPath === '~') {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
import os from 'node:os';
|
import os from 'node:os';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'node:fs';
|
import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'node:fs';
|
||||||
import type { OpenClawPluginApi } from '/home/jarvis/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/index.js';
|
import type { OpenClawPluginApi } from '/home/woltjejason/.npm-global/lib/node_modules/openclaw/dist/plugin-sdk/index.js';
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// Config types
|
// Config types
|
||||||
|
|||||||
Reference in New Issue
Block a user