feat: Implement team artifacts feature with tree navigation and file preview

This commit is contained in:
catlog22
2026-02-15 18:14:07 +08:00
parent 0d56396710
commit 4ddd2e9f17
26 changed files with 1250 additions and 3038 deletions

View File

@@ -788,17 +788,22 @@ export class JsonLinesParser implements IOutputParser {
// Default: treat as stdout/stderr based on fallback
if (json.content || json.message || json.text) {
const rawContent = json.content || json.message || json.text;
// Safely convert to string: content may be an array (e.g. Claude API content blocks) or object
const contentStr = typeof rawContent === 'string'
? rawContent
: JSON.stringify(rawContent);
this.debugLog('mapJsonToIR_fallback_stdout', {
type: json.type,
fallbackType: fallbackStreamType,
hasContent: !!json.content,
hasMessage: !!json.message,
hasText: !!json.text,
contentPreview: (json.content || json.message || json.text || '').substring(0, 100)
contentPreview: contentStr.substring(0, 100)
});
return {
type: fallbackStreamType,
content: json.content || json.message || json.text,
content: contentStr,
timestamp
};
}