diff --git a/test/tool-registry.test.js b/test/tool-registry.test.js index 3919500..1da8931 100644 --- a/test/tool-registry.test.js +++ b/test/tool-registry.test.js @@ -19,15 +19,19 @@ function createRegistry(profile, projectPath = path.resolve('/tmp/funplay-cocos- test('core profile exposes the documented focused tool set', () => { const tools = createRegistry('core').listTools(); - assert.equal(tools.length, 19); + assert.equal(tools.length, 22); assert.equal(tools.some((tool) => tool.name === 'execute_javascript'), true); + assert.equal(tools.some((tool) => tool.name === 'get_editor_state'), true); + assert.equal(tools.some((tool) => tool.name === 'set_selection'), true); assert.equal(tools.some((tool) => tool.name === 'write_file'), false); }); test('full profile exposes all built-in tools', () => { const tools = createRegistry('full').listTools(); - assert.equal(tools.length, 67); + assert.equal(tools.length, 70); assert.equal(tools.some((tool) => tool.name === 'write_file'), true); + assert.equal(tools.some((tool) => tool.name === 'get_editor_state'), true); + assert.equal(tools.some((tool) => tool.name === 'set_selection'), true); }); test('file tools reject writes outside the project root', async () => {