Merge remote-tracking branch 'origin/master' into dev/4.11.x

# Conflicts:
#	src/langbot/pkg/pipeline/preproc/preproc.py
#	src/langbot/pkg/pipeline/process/handlers/chat.py
#	src/langbot/pkg/provider/runners/localagent.py
#	src/langbot/pkg/provider/tools/toolmgr.py
#	src/langbot/templates/metadata/pipeline/ai.yaml
#	tests/unit_tests/test_preproc.py
#	web/src/app/home/components/dynamic-form/DynamicFormComponent.tsx
#	web/src/app/home/pipelines/components/pipeline-form/PipelineFormComponent.tsx
This commit is contained in:
Junyan Qin
2026-06-30 21:07:13 +08:00
167 changed files with 16186 additions and 1722 deletions
+61
View File
@@ -618,6 +618,11 @@ export interface MCPServerRuntimeInfo {
* server runs inside Box. Absent when Box is unavailable. */
box_session_id?: string;
box_enabled?: boolean;
resource_count: number;
resources: MCPResource[];
resource_template_count?: number;
resource_templates?: MCPResourceTemplate[];
resource_capabilities?: Record<string, unknown>;
}
export type MCPServer =
@@ -672,11 +677,67 @@ export interface MCPTool {
parameters?: object;
}
export interface MCPResource {
uri: string;
name: string;
title?: string;
description: string;
mime_type: string;
size?: number;
icons?: object[];
annotations?: Record<string, unknown>;
_meta?: Record<string, unknown>;
}
export interface MCPResourceTemplate {
uri_template: string;
name: string;
title?: string;
description: string;
mime_type: string;
icons?: object[];
annotations?: Record<string, unknown>;
_meta?: Record<string, unknown>;
}
export interface MCPResourceContent {
uri: string;
mime_type: string;
type: 'text' | 'blob';
text?: string;
blob?: string | null;
bytes?: number;
truncated?: boolean;
binary_omitted?: boolean;
_meta?: Record<string, unknown>;
}
export interface ApiRespMCPResources {
resources: MCPResource[];
resource_templates?: MCPResourceTemplate[];
resource_capabilities?: Record<string, unknown>;
}
export interface ApiRespMCPResourceContents {
contents: MCPResourceContent[];
server_name?: string;
server_uuid?: string;
uri?: string;
source?: string;
bytes?: number;
truncated?: boolean;
cache_hit?: boolean;
warnings?: string[];
}
export interface PluginTool {
name: string;
description: string;
human_desc: string;
parameters: object;
source?: 'builtin' | 'plugin' | 'mcp' | 'skill';
source_name?: string;
source_id?: string;
}
export interface ApiRespTools {