feat(coding): add model tools and device packages
This commit is contained in:
@@ -881,7 +881,7 @@ describe('CodingConversationTimeline', () => {
|
||||
expect(screen.queryByText(/回滚|revert/i)).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('renders receipt-unavailable as a generic billing state without parsing Web Search payloads', async () => {
|
||||
it('renders receipt-unavailable as a generic hosted-plugin billing state', async () => {
|
||||
const { codingConversationStore } = await import('@/stores/coding-conversations');
|
||||
const { CodingConversationTimeline } = await import(
|
||||
'@/pages/Chat/CodingConversationTimeline'
|
||||
@@ -893,25 +893,25 @@ describe('CodingConversationTimeline', () => {
|
||||
kind: 'tool' as const,
|
||||
id: 'tool-web-search-billing',
|
||||
toolCallId: 'call-web-search-billing',
|
||||
toolName: 'makelore_web_search',
|
||||
title: '搜索网络',
|
||||
inputText: '{"query":"Makelore"}',
|
||||
toolName: 'game_resource_generate',
|
||||
title: '生成游戏资源',
|
||||
inputText: '{"kind":"sprite"}',
|
||||
status: 'error' as const,
|
||||
output: [],
|
||||
details: {
|
||||
schema: 'makelore-capability.v1' as const,
|
||||
plugin_id: 'makelore.web-search',
|
||||
plugin_id: 'makelore.game-resource',
|
||||
plugin_version: '1.0.0',
|
||||
capability_id: 'web-search.search',
|
||||
operation: 'search',
|
||||
capability_id: 'game-resource.generate',
|
||||
operation: 'generate',
|
||||
request_id: 'pi:run-a:resource-a',
|
||||
success: false,
|
||||
status: 503,
|
||||
code: 'plugin_receipt_unavailable',
|
||||
error: 'Web Search billing status could not be synchronized',
|
||||
error: 'Billing status could not be synchronized',
|
||||
retryable: false,
|
||||
billing: { mode: 'platform_metered' as const, status: 'receipt_unavailable' as const },
|
||||
payload_schema: 'web-search.v1',
|
||||
payload_schema: 'game-resource.v1',
|
||||
data: null,
|
||||
},
|
||||
}],
|
||||
|
||||
Reference in New Issue
Block a user