feat(plugins): move game resources behind marketplace
This commit is contained in:
@@ -392,30 +392,6 @@ describe('PI-090 product tools', () => {
|
||||
}));
|
||||
});
|
||||
|
||||
it('loads game asset review state through the vendor-neutral product module', async () => {
|
||||
const root = await temporaryRoot('makelore-pi-game-tool-');
|
||||
await writeFile(path.join(root, 'ASSET_PLAN.md'), [
|
||||
'```json',
|
||||
JSON.stringify({ assets: [{ id: 'hero', name: 'Hero', category: 'visual', status: 'candidate' }] }),
|
||||
'```',
|
||||
].join('\n'), 'utf8');
|
||||
const tools = new PiProductTools({
|
||||
browser: {} as AgentBrowserModule,
|
||||
attachments: new CodingAttachmentStore(path.join(root, 'attachments')),
|
||||
bundledSkillsDir: path.resolve('resources/coding-skills'),
|
||||
});
|
||||
const result = await tools.execute('game_asset_browser', {
|
||||
conversationId: 'conversation-a', runId: 'run-a', resourceId: 'review-a',
|
||||
projectId: 'project-a', projectPath: root, skillIds: [],
|
||||
}, {});
|
||||
expect(result.details).toEqual({
|
||||
schema: 'game-assets.v1', invocationId: 'review-a', candidateIds: ['hero'],
|
||||
status: 'pending', pendingAssetIds: ['hero'], approvedAssetIds: [], discardedAssetIds: [],
|
||||
});
|
||||
expect(JSON.stringify(result)).not.toContain(root);
|
||||
expect(JSON.stringify(result)).not.toContain('data:');
|
||||
});
|
||||
|
||||
it('dispatches all Data Service tools only through the capability registry', async () => {
|
||||
const root = await temporaryRoot('makelore-pi-data-tools-');
|
||||
const invoke = vi.fn().mockImplementation(({ toolName, context }) => Promise.resolve({
|
||||
|
||||
Reference in New Issue
Block a user