style: fix prettier formatting in plugins/macp (consolidation follow-up)
This commit is contained in:
@@ -9,10 +9,14 @@ const ocRequire = createRequire(import.meta.url);
|
|||||||
const sdkRoot = path.dirname(ocRequire.resolve('openclaw/dist/plugin-sdk/index.js'));
|
const sdkRoot = path.dirname(ocRequire.resolve('openclaw/dist/plugin-sdk/index.js'));
|
||||||
|
|
||||||
// Dynamic imports for runtime SDK functions
|
// Dynamic imports for runtime SDK functions
|
||||||
const { registerAcpRuntimeBackend, unregisterAcpRuntimeBackend } = await import(
|
const { registerAcpRuntimeBackend, unregisterAcpRuntimeBackend } = (await import(
|
||||||
`${sdkRoot}/acp-runtime.js`
|
`${sdkRoot}/acp-runtime.js`
|
||||||
) as {
|
)) as {
|
||||||
registerAcpRuntimeBackend: (backend: { id: string; runtime: any; healthy: () => boolean }) => void;
|
registerAcpRuntimeBackend: (backend: {
|
||||||
|
id: string;
|
||||||
|
runtime: any;
|
||||||
|
healthy: () => boolean;
|
||||||
|
}) => void;
|
||||||
unregisterAcpRuntimeBackend: (id: string) => void;
|
unregisterAcpRuntimeBackend: (id: string) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,15 @@ const MACP_CAPABILITIES: AcpRuntimeCapabilities = {
|
|||||||
|
|
||||||
const DEFAULT_REPO_ROOT = '~/src/mosaic-stack';
|
const DEFAULT_REPO_ROOT = '~/src/mosaic-stack';
|
||||||
const ORCHESTRATOR_RUN_PATH = '~/.config/mosaic/bin/mosaic-orchestrator-run';
|
const ORCHESTRATOR_RUN_PATH = '~/.config/mosaic/bin/mosaic-orchestrator-run';
|
||||||
const PI_RUNNER_PATH = path.join(os.homedir(), 'src', 'mosaic-stack', 'tools', 'macp', 'dispatcher', 'pi_runner.ts');
|
const PI_RUNNER_PATH = path.join(
|
||||||
|
os.homedir(),
|
||||||
|
'src',
|
||||||
|
'mosaic-stack',
|
||||||
|
'tools',
|
||||||
|
'macp',
|
||||||
|
'dispatcher',
|
||||||
|
'pi_runner.ts',
|
||||||
|
);
|
||||||
|
|
||||||
function expandHome(rawPath: string): string {
|
function expandHome(rawPath: string): string {
|
||||||
if (rawPath === '~') {
|
if (rawPath === '~') {
|
||||||
|
|||||||
Reference in New Issue
Block a user