feat(coding): add model tools and device packages

This commit is contained in:
2026-09-02 18:35:26 +08:00
parent 841273b433
commit 664b8823a0
60 changed files with 3847 additions and 2068 deletions

View File

@@ -437,12 +437,12 @@ describe('effective plugin resolver', () => {
it('materializes an acquired code-owned bundled hosted Plugin without Package Store bytes', async () => {
const bundled: CodingPluginDefinition = {
...serverDefinition,
id: 'makelore.web-search',
releaseId: '00000000-0000-4000-8000-000000000204',
provenance: { source: 'bundled', packageRoot: 'web-search' },
id: 'makelore.game-resource',
releaseId: '00000000-0000-4000-8000-000000000105',
provenance: { source: 'bundled', packageRoot: 'game-resource' },
skills: [{
id: 'makelore-web-search',
entryPath: 'skills/makelore-web-search/SKILL.md',
id: 'game-resource',
entryPath: 'skills/game-resource/SKILL.md',
grants: ['remote.read'],
}],
};
@@ -469,14 +469,14 @@ describe('effective plugin resolver', () => {
await expect(effective.resolve({
projectId: 'project-a',
projectPath: 'C:/project-a',
assignedSkillIds: ['makelore-web-search'],
assignedSkillIds: ['game-resource'],
role: 'parent',
})).resolves.toMatchObject({
pluginReleaseIds: [bundled.releaseId],
effectiveSkillIds: ['makelore-web-search'],
effectiveSkillIds: ['game-resource'],
skillEntries: [{
id: 'makelore-web-search',
entryPath: 'skills/makelore-web-search/SKILL.md',
id: 'game-resource',
entryPath: 'skills/game-resource/SKILL.md',
}],
toolDefinitions: [{ name: 'remote_read' }],
unavailableReasons: [],