fix: load ejclaw mcp tools on claude first turn

This commit is contained in:
Eyejoker
2026-05-23 09:30:06 +09:00
committed by GitHub
parent 262534cac9
commit 763828e4f5
6 changed files with 101 additions and 18 deletions

View File

@@ -0,0 +1,19 @@
import fs from 'fs';
import path from 'path';
import { describe, expect, it } from 'vitest';
describe('runner shared package exports', () => {
it('points runtime imports at built JavaScript for node-launched MCP servers', () => {
const packageJson = JSON.parse(
fs.readFileSync(
path.resolve(import.meta.dirname, '../package.json'),
'utf8',
),
) as { exports: { '.': { default: string; types: string } } };
expect(packageJson.exports['.']).toEqual({
types: './src/index.ts',
default: './dist/index.js',
});
});
});