fix(coding): remediate ML-07 plugin authority
This commit is contained in:
@@ -7,6 +7,7 @@ import {
|
||||
BUNDLED_CODING_PLUGIN_ROOTS,
|
||||
CodingPluginManifestError,
|
||||
loadBundledCodingPluginDefinitions,
|
||||
loadBundledCodingPluginDefinitionsSync,
|
||||
loadCodingPluginDefinition,
|
||||
parseCodingPluginManifest,
|
||||
parseAgentPluginsRootManifest,
|
||||
@@ -30,6 +31,7 @@ async function packageManifests(): Promise<{ root: Record<string, unknown>; capa
|
||||
describe('bundled coding plugin manifests', () => {
|
||||
it('loads the fixed Data Service package and immutable declarations', async () => {
|
||||
const definitions = await loadBundledCodingPluginDefinitions(path.resolve('resources/coding-plugins'));
|
||||
const startupDefinitions = loadBundledCodingPluginDefinitionsSync(path.resolve('resources/coding-plugins'));
|
||||
expect(BUNDLED_CODING_PLUGIN_ROOTS).toEqual(['data-service']);
|
||||
expect(resolveBundledCodingPluginRootPaths(path.resolve('resources/coding-plugins'))).toEqual([PACKAGE_ROOT]);
|
||||
expect(definitions).toHaveLength(1);
|
||||
@@ -40,6 +42,11 @@ describe('bundled coding plugin manifests', () => {
|
||||
skills: [{ id: 'data-service', entryPath: 'skills/data-service/SKILL.md' }],
|
||||
});
|
||||
expect(definitions[0]?.tools.map(({ name }) => name)).toEqual(DATA_SERVICE_TOOL_NAMES);
|
||||
expect(definitions).toEqual([DATA_SERVICE_PLUGIN_DEFINITION]);
|
||||
expect(startupDefinitions).toEqual(definitions);
|
||||
expect(Object.isFrozen(startupDefinitions)).toBe(true);
|
||||
expect(Object.isFrozen(startupDefinitions[0]?.operations)).toBe(true);
|
||||
expect(definitions[0]?.operations).toHaveLength(14);
|
||||
expect(Object.isFrozen(definitions[0])).toBe(true);
|
||||
expect(Object.isFrozen(definitions[0]?.tools)).toBe(true);
|
||||
expect(DATA_SERVICE_PLUGIN_DEFINITION.tools).toHaveLength(10);
|
||||
|
||||
Reference in New Issue
Block a user