feat(coding): add model tools and device packages

This commit is contained in:
brother7 committed 2026-09-02 18:46:21 +08:00
1 parent 841273b433
commit 664b8823a0
60 files changed
+3847 -2068

No files matched your search

+1 -9
View File
@@ -41,7 +41,6 @@ async function fixtureRoot(): Promise<{
mkdir(path.join(skillsDir, 'agent-browser'), { recursive: true }),
mkdir(path.join(path.dirname(skillsDir), 'coding-plugins', 'data-service', 'skills', 'data-service'), { recursive: true }),
mkdir(path.join(path.dirname(skillsDir), 'coding-plugins', 'game-resource', 'skills', 'game-resource'), { recursive: true }),
mkdir(path.join(path.dirname(skillsDir), 'coding-plugins', 'web-search', 'skills', 'makelore-web-search'), { recursive: true }),
]);
await Promise.all([
writeFile(path.join(projectDir, '.pi', 'skills', 'untrusted-project-skill', 'SKILL.md'), 'untrusted', 'utf8'),
@@ -58,11 +57,6 @@ async function fixtureRoot(): Promise<{
'---\nname: game-resource\n---\n',
'utf8',
),
writeFile(
path.join(path.dirname(skillsDir), 'coding-plugins', 'web-search', 'skills', 'makelore-web-search', 'SKILL.md'),
'---\nname: makelore-web-search\n---\n',
'utf8',
),
]);
return { root, userDataDir, projectDir, skillsDir };
}
@@ -175,18 +169,16 @@ describe('Pi managed resource loader', () => {
skillEntries: [
{ id: 'data-service', entryPath: 'skills/data-service/SKILL.md' },
{ id: 'game-resource', entryPath: 'skills/game-resource/SKILL.md' },
{ id: 'makelore-web-search', entryPath: 'skills/makelore-web-search/SKILL.md' },
],
catalogRevision: 13,
bundledSkillsDir: fixture.skillsDir,
revision: { provider: 1, resources: 1 },
});
expect(resources.skillIds).toEqual(['data-service', 'game-resource', 'makelore-web-search']);
expect(resources.skillIds).toEqual(['data-service', 'game-resource']);
expect(resources.skillPaths).toEqual([
path.join(path.dirname(fixture.skillsDir), 'coding-plugins', 'data-service', 'skills', 'data-service', 'SKILL.md'),
path.join(path.dirname(fixture.skillsDir), 'coding-plugins', 'game-resource', 'skills', 'game-resource', 'SKILL.md'),
path.join(path.dirname(fixture.skillsDir), 'coding-plugins', 'web-search', 'skills', 'makelore-web-search', 'SKILL.md'),
]);
expect(resources.catalogRevision).toBe(13);
});