Merge remote-tracking branch 'origin/master' into worktree/process-plugin-streaming-72f9b3

# Conflicts:
#	docs/event-producer-consumer.i18n.yaml
#	docs/event-producer-consumer.md
#	docs/event-producer-consumer.zh.md
#	docs/module-graph.i18n.yaml
#	docs/module-graph.md
#	docs/module-graph.zh.md
#	packages/api/remotes/package.json
#	packages/api/remotes/src/client/index.ts
#	packages/api/session-controller/README.i18n.yaml
#	packages/api/session-controller/README.md
#	packages/api/session-controller/README.zh.md
#	packages/api/session-controller/tsconfig.host.json
#	packages/client/ui-approval/src/client/contract/slots.ts
#	packages/client/ui-chat/src/client/chat/MessageItem.tsx
#	packages/client/ui-chat/src/client/conversation-nodes/assistant.ts
#	packages/client/ui-chat/src/client/conversation-nodes/partial.ts
#	packages/client/ui-chat/src/client/conversation-nodes/tool.ts
#	packages/client/ui-chat/src/client/model/tool-call-tree.ts
This commit is contained in:
Yichen Jiang committed 2026-09-04 17:28:12 +08:00
commit d3b1f2d1bc
461 files changed
+12176 -1942

No files matched your search

+17
View File
@@ -75,6 +75,7 @@ export const SERVICE_PAGE: Record<string, string> = {
deepseekLlmApiExtensions: 'llm-streaming.md',
dynamicCordisRunner: 'extensions.md',
e2b: 'subprocess.md',
fileUploads: 'attachment.md',
fileReferences: 'session-reference.md',
fs: 'filesystem.md',
goals: 'goal.md',
@@ -154,6 +155,7 @@ export const SERVICE_WALK_EXEMPTIONS: Record<string, string> = {
dshHomePath: 'not a service: boot-provided root accessor function (typeof dshHomePath | undefined) for Loader !!js config expressions — packages/boot/app-boot/README.md owns the boot contract',
launchEnvironment: 'not a service: launcher-provided root accessor value (LaunchEnvironmentSnapshot | undefined) — packages/util/launch-environment/README.md owns this launcher contract',
connection: 'interface-typed (HostConnectionHandle); implementing class HostConnectionService is declared in rpc-host.ts — packages/client/connection/README.md owns the API',
fileUpload: 'client-side browser upload service — packages/client/file-upload/README.md owns the API',
uiRenderer: 'client-side interface-typed browser service — packages/client/ui-renderer/README.md owns the API',
uiSession: 'client-side Session source adapter — packages/client/ui-session/README.md owns the API',
uiConversation: 'client-side Conversation registries and assembler — packages/client/ui-conversation/README.md owns the API',
@@ -344,6 +346,11 @@ export const LINK_MAP: Readonly<Record<string, string>> = {
SessionSummary: 'session.md',
SessionUpdateQueueRequest: 'session.md',
SessionUpdateQueueValue: 'session.md',
EncodedFileUploadRequest: 'attachment.md',
AgentResolver: 'attachment.md',
PromptFileBinding: 'attachment.md',
FileUploadReceiptId: 'attachment.md',
FileUploadValue: 'attachment.md',
SessionStartSource: 'core.md',
SessionLogSnapshot: 'session-query.md',
SessionSurfaceSnapshot: 'session-query.md',
@@ -353,10 +360,18 @@ export const LINK_MAP: Readonly<Record<string, string>> = {
ApprovalRequestEvent: 'approval.md',
ApprovalService: 'approval.md',
AskUserQuestionRequestEvent: 'user-questions.md',
AdmittedPromptContentPart: 'attachment.md',
AttachmentAdmissionPart: 'attachment.md',
AttachmentError: 'attachment.md',
EncodedFileAttachment: 'attachment.md',
EncodedImageAttachment: 'attachment.md',
FileAttachmentRef: 'attachment.md',
SaveFileAttachment: 'attachment.md',
SaveFileStreamAttachment: 'attachment.md',
ImageAttachmentAccess: 'llm-streaming.md',
ImageAttachmentRef: 'attachment.md',
ImageRequestPolicy: 'attachment.md',
PromptContentPart: 'attachment.md',
RequestImageAttachment: 'attachment.md',
SaveImageAttachment: 'attachment.md',
StoredImageAttachment: 'attachment.md',
@@ -398,8 +413,10 @@ export const LINK_MAP: Readonly<Record<string, string>> = {
CreateGoalResult: 'goal.md',
CommandDefinition: 'commands.md',
CommandDescriptor: 'commands.md',
CommandFileReceiptResolver: 'commands.md',
CommandId: 'commands.md',
CommandResult: 'commands.md',
CommandSubmitAttachment: 'commands.md',
CommandSurface: 'commands.md',
LspProvider: 'lsp.md',
LspQueryRequest: 'lsp.md',
+8
View File
@@ -107,6 +107,14 @@ const SERVICE_ROLES: ServiceRole[] = [
consumers: ['api-session-controller', 'tool-fs', 'llm-pi-ai', 'llm-deepseek'],
note: 'The host commits accepted images before session events; provider adapters resolve authorized durable references into provider-native content.',
},
{
key: 'fileUploads',
pkg: 'client-file-upload',
title: 'Agent-scoped staged file uploads',
mode: 'core',
consumers: ['api-session-controller'],
note: 'Owns streaming intake, durable storage, and staged receipt lifetime; the Session controller binds receipts to accepted submissions.',
},
{
key: 'llm',
pkg: 'llm',
+2
View File
@@ -74,6 +74,8 @@ const OVERRIDES: Record<string, { license?: string; repo?: string }> = {
'@modelcontextprotocol/server-filesystem': { license: 'MIT / Apache-2.0', repo: 'https://github.com/modelcontextprotocol/servers' },
// No repository field in the published manifest.
'node-addon-require-builtin': { repo: 'https://www.npmjs.com/package/node-addon-require-builtin' },
// No `license` field in the published manifest; the tarball's LICENSE.txt is the MIT text.
'fs-ext': { license: 'MIT' },
}
/**
+15
View File
@@ -951,6 +951,21 @@
"symbol": "ImageAttachmentLimits",
"source": "packages/attachment/attachment/src/types.ts"
},
{
"doc": "docs/subsystems/attachment.md",
"symbol": "PromptContentPart",
"source": "packages/attachment/attachment/src/types.ts"
},
{
"doc": "docs/subsystems/attachment.md",
"symbol": "AttachmentAdmissionPart",
"source": "packages/attachment/attachment/src/types.ts"
},
{
"doc": "docs/subsystems/attachment.md",
"symbol": "AdmittedPromptContentPart",
"source": "packages/attachment/attachment/src/types.ts"
},
{
"doc": "docs/subsystems/attachment.md",
"symbol": "EncodedImageAttachment",
+3
View File
@@ -35,8 +35,11 @@ const COPY_ATTRIBUTE_SUFFIX = /(?:Aria|Copy|Description|Heading|Label|Message|Pl
const COPY_NAME = /(?:^|_)(?:aria|copy|description|empty|heading|label|message|placeholder|summary|text|title|tooltip)(?:s|_.*)?$/i
const COPY_SUFFIX = /(?:aria|copy|description|empty|heading|label|labels|message|placeholder|summary|text|title|tooltip|tabs)$/i
const IMMUTABLE_LANGUAGE_TOKENS = new Set([
'B',
'Function',
'GB',
'K',
'KB',
'M',
'MB',
'Symbol',
@@ -79,6 +79,7 @@ const SENTENCE_MODEL_EXPERIENCE: Readonly<Record<string, SentenceContract>> = {
'packages/client/ui-renderer': { kind: 'none', reason: 'Browser-side render assembly; registers nothing model-facing.' },
'packages/client/ui-session': { kind: 'none', reason: 'Browser-side Session adapter; registers nothing model-facing.' },
'packages/client/connection': { kind: 'none', reason: 'Browser-side UI plugin layer; registers nothing model-facing.' },
'packages/client/file-upload': { kind: 'none', reason: 'Browser-side request-body transport; registers nothing model-facing.' },
'packages/api/remotes': { kind: 'none', reason: 'The Remote BFF selects business methods and forwarded events; selected services own any model-visible effect.' },
'packages/experimental/agent-team-web-profile': { kind: 'indirect', reason: 'The private Web layer delegates model composition to the Host-side Agent Teams profile.' },
'packages/experimental/client-ui-agent-team': { kind: 'none', reason: 'The browser projection and task controls register no model-facing input.' },