Merge branch 'master' into fix/forge-ptc-binding

This commit is contained in:
Yichen Jiang authored and GitHub committed 2026-11-11 17:41:54 +08:00
commit 72c2a4cb01
213 files changed
+643 -410

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ import { afterAll, beforeAll, describe, expect, it, onTestFailed, onTestFinished
import type {} from '@deepseek-ai/dsh-agent-team'
import type { SessionId } from '@deepseek-ai/dsh-session'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/types'
import { createMessage, createUserMessage } from '@deepseek-ai/dsh-llm'
import {
acknowledgeReloadConnectionLoss, assertFixtureInventory, captureStableAria, compareOrRefreshGolden,
+70 -2
View File
@@ -17,16 +17,18 @@
//
// Zero model calls: a fresh workspace's blank session already carries a live
// composer, and the scenario only types into it. A stray stream would fail loud
// with NO_ADAPTER.
// with NO_ADAPTER. The Home and End case types into a seeded long chat instead,
// whose conversation scrollport can move.
import { fileURLToPath } from 'node:url'
import { join } from 'node:path'
import type { Browser, Page } from 'playwright'
import { chromium } from 'playwright'
import { afterAll, beforeAll, describe, expect, it, onTestFailed } from 'vitest'
import {
assertFixtureInventory, compareOrRefreshGolden, launchWebScaffold, watchConsole,
assertFixtureInventory, compareOrRefreshGolden, launchWebScaffold, seedSession, watchConsole,
webSnapshotMode, type WebScaffold,
} from './scaffold.ts'
import { createChatScrollFixture } from './chat-scroll-fixture.ts'
import { connectFreshWorkspace, newEnglishPage, saveFailureShot } from './support.ts'
const SNAPSHOT_DIR = fileURLToPath(new URL('./expected/composer-draft-scroll', import.meta.url))
@@ -50,12 +52,39 @@ const DRAFT_ROWS = Array.from({ length: DRAFT_LINES }, (_unused, index) => {
if (index === DRAFT_LINES - 1) return LAST_MARKER
return `draft line ${String(index + 1).padStart(2, '0')}`
})
/** A seeded chat long enough that its conversation scrollport scrolls. */
const HISTORY = createChatScrollFixture({ markerPrefix: 'COMPOSER_HOME_END', title: 'Composer Home and End', turns: 8 })
/** Two lines separated by a line break, far shorter than the wrap width on every platform. */
const LINE_ROWS = ['first line of the draft', 'second line of the draft'] as const
/** The live composer surface. */
function surface(page: Page): ReturnType<Page['locator']> {
return page.locator('[data-composer-input][contenteditable="true"]').first()
}
/**
* Read the draft as plain text.
* @param page - the page under test.
* @returns the draft with each paragraph boundary and line break as `\n`.
*/
function draftText(page: Page): Promise<string> {
return surface(page).evaluate(element => Array.from(element.children, block =>
Array.from(block.childNodes, node => node.nodeName === 'BR' ? '\n' : node.textContent ?? '').join('')).join('\n'))
}
/**
* Measure the conversation scrollport that holds the composer.
* @param page - the page under test.
* @returns its scroll offset and whether its content overflows it.
*/
function conversationScroll(page: Page): Promise<{ top: number; scrollable: boolean }> {
return surface(page).evaluate((element) => {
const scroller = element.closest<HTMLElement>('[data-conversation-scroll]')
if (scroller === null) throw new Error('the composer surface is not inside a conversation scrollport')
return { top: scroller.scrollTop, scrollable: scroller.scrollHeight > scroller.clientHeight }
})
}
/**
* Replace the draft through real gestures: select-all, delete, then insert
* the rows with soft line breaks (the composer's Enter submits).
@@ -196,6 +225,7 @@ describe('web e2e: composer draft scrolling', () => {
beforeAll(async () => {
scaffold = await launchWebScaffold({})
await seedSession(scaffold, HISTORY.log, 'composer-draft-scroll-home-end')
browser = await chromium.launch()
page = await newEnglishPage(browser)
tripwire = watchConsole(page)
@@ -325,6 +355,44 @@ describe('web e2e: composer draft scrolling', () => {
expect(tripwire.pageErrors).toEqual([])
}, 60_000)
it('Home and End move the caret to its line ends without scrolling a long conversation', async () => {
onTestFailed(() => saveFailureShot(page, 'web-e2e-composer-draft-scroll-home-end'))
// macOS key bindings map Home and End to scrolling the document, which in
// the composer scrolled the conversation instead of moving the caret.
// Other platforms move the caret natively, so the case holds everywhere.
await page.getByRole('button', { name: 'Search sessions' }).click()
await page.getByRole('textbox', { name: 'Search session names', exact: true }).fill(HISTORY.markers.user(1))
const result = page.getByRole('tree', { name: 'Search results' }).getByRole('treeitem')
await expect.poll(() => result.count(), { timeout: 60_000 }).toBe(1)
await result.click()
await page.getByText(HISTORY.markers.assistant(HISTORY.turns), { exact: false }).last().waitFor()
// A line break rather than wrapping keeps both line ends independent of font metrics.
await typeDraft(page, LINE_ROWS)
const [first, second] = LINE_ROWS
for (let index = 0; index < Math.floor(second.length / 2); index++) await page.keyboard.press('ArrowLeft')
// Measure only once the opened chat holds one offset across two reads.
let previous: number | undefined
await expect.poll(async () => {
const { top } = await conversationScroll(page)
const still = top === previous
previous = top
return still
}, { interval: 250, timeout: 10_000 }).toBe(true)
const before = await conversationScroll(page)
// Vacuity guard: the conversation must be able to scroll toward its top.
expect(before.scrollable).toBe(true)
expect(before.top).toBeGreaterThan(0)
await page.keyboard.press('Home')
await page.keyboard.insertText('[')
await expect.poll(() => draftText(page)).toBe(`${first}\n[${second}`)
expect((await conversationScroll(page)).top).toBe(before.top)
await page.keyboard.press('End')
await page.keyboard.insertText(']')
await expect.poll(() => draftText(page)).toBe(`${first}\n[${second}]`)
expect((await conversationScroll(page)).top).toBe(before.top)
expect(tripwire.pageErrors).toEqual([])
}, 90_000)
it('commits exactly the fixtures it reads', async () => {
// Zero model calls, so the scenario records no session fixture: the geometry
// golden is the whole inventory.
+1 -1
View File
@@ -6,7 +6,7 @@ import type { Browser, Page } from 'playwright'
import { chromium } from 'playwright'
import { afterAll, beforeAll, describe, expect, it } from 'vitest'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/types'
import type { ReplayEntry } from '@deepseek-ai/dsh-llm-replay'
import type {} from '@deepseek-ai/dsh-tool-executor-ptc/types'
import type { SessionEvent } from '@deepseek-ai/dsh-session'
@@ -2,7 +2,7 @@
import { performance } from 'node:perf_hooks'
import { AssistantStreamAccumulator } from '@deepseek-ai/dsh-llm/assistant-stream'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { LlmAttemptId } from '@deepseek-ai/dsh-llm/brand'
import type { LlmAttemptId } from '@deepseek-ai/dsh-llm/types'
import type { SessionAssistantStreamBaseline } from '@deepseek-ai/dsh-api-session-controller/types'
// The Client implementation has no plain-Node export; only this adapter is bundled.
import { ClientAssistantStream } from '../../packages/api/session-controller/src/client/sessions/assistant-stream.ts'
@@ -4,7 +4,7 @@ import { performance } from 'node:perf_hooks'
import { Context } from '@deepseek-ai/cordis'
import { AssistantStreamAccumulator } from '@deepseek-ai/dsh-llm/assistant-stream'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { LlmAttemptId, ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { LlmAttemptId, ToolCallId } from '@deepseek-ai/dsh-llm/types'
import type { StreamChunk } from '@deepseek-ai/dsh-llm'
import type { SessionEvent } from '@deepseek-ai/dsh-session/types'
import type { ChatNode, ChatSnapshot } from '@deepseek-ai/dsh-client-ui-chat/client'
+1 -1
View File
@@ -11,7 +11,7 @@ Application listeners are outside this package matrix. Desktop Host subscribes t
| Event | Mode | Declared in | Dispatchers | Listeners |
| --- | --- | --- | --- | --- |
| `agent-loop/config-start-failed` | `emit` | [`packages/core/agent-loop/src/index.ts:198`](../packages/core/agent-loop/src/index.ts) | [`agent-loop`](../packages/core/agent-loop) (`events.dispatch`) | - |
| `agent-preset/selected` | `emit` | [`packages/preset/agent-preset-registry/src/types.ts:66`](../packages/preset/agent-preset-registry/src/types.ts) | [`agent-preset-registry`](../packages/preset/agent-preset-registry) (`emit`) | [`cua`](../packages/experimental/cua), `remotes` |
| `agent-preset/selected` | `emit` | [`packages/preset/agent-preset-registry/src/types.ts:90`](../packages/preset/agent-preset-registry/src/types.ts) | [`agent-preset-registry`](../packages/preset/agent-preset-registry) (`emit`) | [`cua`](../packages/experimental/cua), `remotes` |
| `agent/assistant-stream` | `emit` | [`packages/core/agent/src/runtime-types.ts:400`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`emit`) | [`headless`](../packages/bundle/headless), `session-controller` |
| `agent/created` | `serial` | [`packages/core/agent/src/runtime-types.ts:291`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`serial`) | [`agent-team`](../packages/team/agent-team), `browser-use-runtime`, `claude-code-mods`, [`creation-recommendations`](../packages/experimental/creation-recommendations), [`cua`](../packages/experimental/cua), [`file-reference-local`](../packages/context/file-reference-local), [`goal`](../packages/goal/goal), [`goal-round-driver`](../packages/goal/goal-round-driver), [`hooks-claude-code`](../packages/experimental/hooks-claude-code), [`hooks-codex`](../packages/experimental/hooks-codex), `liveshare`, [`loader-smoke`](../packages/test-support/loader-smoke), [`permission-presets`](../packages/interaction/permission-presets), `session-controller`, [`tool-subagent`](../packages/subagent/tool-subagent) |
| `agent/disposed` | `emit` | [`packages/core/agent/src/runtime-types.ts:300`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`events.dispatch`) | [`action-cards`](../packages/experimental/action-cards), [`agent-loop`](../packages/core/agent-loop), `claude-code-mods`, [`creation-recommendations`](../packages/experimental/creation-recommendations), [`file-reference-local`](../packages/context/file-reference-local), [`goal-round-driver`](../packages/goal/goal-round-driver), `server`, `session-controller`, [`subagent`](../packages/subagent/subagent), [`tool-office`](../packages/document/tool-office), [`tool-subagent-control`](../packages/subagent/tool-subagent-control) |
+1 -1
View File
@@ -13,7 +13,7 @@
| Event | Mode | Declared in | Dispatchers | Listeners |
| --- | --- | --- | --- | --- |
| `agent-loop/config-start-failed` | `emit` | [`packages/core/agent-loop/src/index.ts:198`](../packages/core/agent-loop/src/index.ts) | [`agent-loop`](../packages/core/agent-loop) (`events.dispatch`) | - |
| `agent-preset/selected` | `emit` | [`packages/preset/agent-preset-registry/src/types.ts:66`](../packages/preset/agent-preset-registry/src/types.ts) | [`agent-preset-registry`](../packages/preset/agent-preset-registry) (`emit`) | [`cua`](../packages/experimental/cua), `remotes` |
| `agent-preset/selected` | `emit` | [`packages/preset/agent-preset-registry/src/types.ts:90`](../packages/preset/agent-preset-registry/src/types.ts) | [`agent-preset-registry`](../packages/preset/agent-preset-registry) (`emit`) | [`cua`](../packages/experimental/cua), `remotes` |
| `agent/assistant-stream` | `emit` | [`packages/core/agent/src/runtime-types.ts:400`](../packages/core/agent/src/runtime-types.ts) | [`agent-loop`](../packages/core/agent-loop) (`emit`) | [`headless`](../packages/bundle/headless), `session-controller` |
| `agent/created` | `serial` | [`packages/core/agent/src/runtime-types.ts:291`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`serial`) | [`agent-team`](../packages/team/agent-team), `browser-use-runtime`, `claude-code-mods`, [`creation-recommendations`](../packages/experimental/creation-recommendations), [`cua`](../packages/experimental/cua), [`file-reference-local`](../packages/context/file-reference-local), [`goal`](../packages/goal/goal), [`goal-round-driver`](../packages/goal/goal-round-driver), [`hooks-claude-code`](../packages/experimental/hooks-claude-code), [`hooks-codex`](../packages/experimental/hooks-codex), `liveshare`, [`loader-smoke`](../packages/test-support/loader-smoke), [`permission-presets`](../packages/interaction/permission-presets), `session-controller`, [`tool-subagent`](../packages/subagent/tool-subagent) |
| `agent/disposed` | `emit` | [`packages/core/agent/src/runtime-types.ts:300`](../packages/core/agent/src/runtime-types.ts) | [`agent`](../packages/core/agent) (`events.dispatch`) | [`action-cards`](../packages/experimental/action-cards), [`agent-loop`](../packages/core/agent-loop), `claude-code-mods`, [`creation-recommendations`](../packages/experimental/creation-recommendations), [`file-reference-local`](../packages/context/file-reference-local), [`goal-round-driver`](../packages/goal/goal-round-driver), `server`, `session-controller`, [`subagent`](../packages/subagent/subagent), [`tool-office`](../packages/document/tool-office), [`tool-subagent-control`](../packages/subagent/tool-subagent-control) |
+40 -40
View File
@@ -993,17 +993,17 @@
en: 5341a464a13a03e4
zh: 24646b10e58ba2cd
/session-persistence-event-catalog/resolved-persistence-types/assistantmessage:
en: 2a8bc13a30855b26
zh: 87f1f5fd2882a411
en: 6256529c68fa8a4a
zh: c6b36aa7ed6a6561
/session-persistence-event-catalog/resolved-persistence-types/assistantstreamrecord:
en: 144fc40c557c39fb
zh: 93edf73620f690bc
en: 06ea09d614a94006
zh: 03ebd4893c9ac303
/session-persistence-event-catalog/resolved-persistence-types/assistantstreamrecord~2:
en: e393deed01de3665
zh: 0fa98ad93c22ce79
/session-persistence-event-catalog/resolved-persistence-types/commandsource:
en: 459a6f8c8800d3e5
zh: f1b2626c08c62b4d
en: 7130f07ad7ae38b4
zh: 18a5ab4fbd7c767d
/session-persistence-event-catalog/resolved-persistence-types/compactioncheckpointsource:
en: 0795c7736e079322
zh: b95c1b8790851588
@@ -1017,8 +1017,8 @@
en: 9207aa0489ccf8db
zh: 850dd92da6769998
/session-persistence-event-catalog/resolved-persistence-types/contextsnapshotsection:
en: 09c25cb603f1253e
zh: be9ac4ac394dc1fc
en: b1ee86f2cffbf211
zh: c829b0ddfef06ea8
/session-persistence-event-catalog/resolved-persistence-types/contextsnapshotsection~2:
en: 6e11a7855b002f20
zh: d752566bb2b75948
@@ -1029,8 +1029,8 @@
en: 8cc704c4048167a7
zh: d27823620065ad25
/session-persistence-event-catalog/resolved-persistence-types/developermessage:
en: b91fd6f924b6d84e
zh: c74abb179c889ed6
en: 103da29240708c4d
zh: b4b7d45cd6e458e5
/session-persistence-event-catalog/resolved-persistence-types/epochheader:
en: 3bdc8ecd0bdf0c9c
zh: 0fe5b75c174ebab4
@@ -1128,11 +1128,11 @@
en: d2a3b6594fc71ea0
zh: a5a7df42594fdb57
/session-persistence-event-catalog/resolved-persistence-types/llmcallconfig:
en: 620752606b81ad3b
zh: 336903c12d1d3bdc
en: 2f81218010fc1150
zh: db716025bc33f483
/session-persistence-event-catalog/resolved-persistence-types/llmcallconfigadapterdefaults:
en: 8f669d7819805099
zh: 391d51d7835afe02
en: e977e22261e0761c
zh: 4b2a6434d475dfe3
/session-persistence-event-catalog/resolved-persistence-types/llmfailure:
en: 1c1591ce9b3cc186
zh: 74ebe1b8c58e87d7
@@ -1143,8 +1143,8 @@
en: fdd00b0eb42e499d
zh: a6dc05d9a0a8f39e
/session-persistence-event-catalog/resolved-persistence-types/message:
en: 0a728ea7fb7a297e
zh: 9539ccd702170fa6
en: 56f33deeab3f3c80
zh: 872475dd48fe13a1
/session-persistence-event-catalog/resolved-persistence-types/messagefeedbackdelete:
en: c582953270d4ca44
zh: 966ccfe2e7660a2a
@@ -1158,14 +1158,14 @@
en: 1918aad92fd51fc9
zh: c36696f1b77baa7d
/session-persistence-event-catalog/resolved-persistence-types/messagesource:
en: 80d51b79557bc4d8
zh: e7a9721b8b3ea9f3
en: c8eb3f3f75734433
zh: 9c4dd71eaab4a5bc
/session-persistence-event-catalog/resolved-persistence-types/message~2:
en: 7106ebd39f6cd290
zh: 4e36b5377d222a0a
/session-persistence-event-catalog/resolved-persistence-types/modelmessagesource:
en: 5f9154ca34235ab9
zh: a833105910ebfa82
en: 65a618e2ec94bbc4
zh: 622197f4b127068b
/session-persistence-event-catalog/resolved-persistence-types/modelselection:
en: 6e301c0ea35d9e0e
zh: 6fbf1d318db9a4e0
@@ -1260,11 +1260,11 @@
en: 737806b6ec54263d
zh: b4e44293950ddf8c
/session-persistence-event-catalog/resolved-persistence-types/systemmessage:
en: 94876079d6696df9
zh: d25c7ad9f5054eb7
en: f689bc49f7561a5d
zh: c5eeb6590dcdf42d
/session-persistence-event-catalog/resolved-persistence-types/systempromptmessagesource:
en: 967c82dcda03d0d4
zh: ad590611be701d97
en: d325b34f94e9c4e8
zh: 11db81c2aba9d275
/session-persistence-event-catalog/resolved-persistence-types/teammemberphase:
en: bf78ae1a14d64469
zh: 0d5c34aff23a133c
@@ -1302,8 +1302,8 @@
en: d7478804801b52a4
zh: 27287739a5874fdd
/session-persistence-event-catalog/resolved-persistence-types/toolmessagesource:
en: 036b2595215410bb
zh: 41792808ebac1fa3
en: f3f2db82e7eb5668
zh: 8e159d1f8122156f
/session-persistence-event-catalog/resolved-persistence-types/toolremovalblock:
en: 0080c345c319a4b5
zh: de1a8b3ed621ce21
@@ -1311,8 +1311,8 @@
en: b2488366535b5fdc
zh: b64d50345521eb99
/session-persistence-event-catalog/resolved-persistence-types/toolresultmessage:
en: 2258683c3cfa4ce3
zh: 5663aa76c911761b
en: 49fcbb63c824347e
zh: 187486d676edfe0e
/session-persistence-event-catalog/resolved-persistence-types/toolschema:
en: afa1e3fd9ccdd95b
zh: 7af667e3ebac25e8
@@ -1338,8 +1338,8 @@
en: 50736659a0e79990
zh: 34ebfd42a70069e3
/session-persistence-event-catalog/resolved-persistence-types/usermessage:
en: 92cc51a395ca7c7b
zh: 4bd6029ea1241e25
en: e623e26208294712
zh: d3c837902528211a
/session-persistence-event-catalog/resolved-persistence-types/usermessage~2:
en: f36c65420460fcf1
zh: 4208e6734c0672df
@@ -1368,8 +1368,8 @@
en: 7660c41e4129b466
zh: bcbb1b15cb872214
/session-persistence-event-catalog/resolved-persistence-types/string:
en: e855396a65482550
zh: 0729e0b86b4d9681
en: 0bd8cec4019a5ad5
zh: c6cc79ce5aa844c4
/session-persistence-event-catalog/resolved-persistence-types/string~2:
en: 0089620bf4638263
zh: 1922bef1713094bb
@@ -2013,8 +2013,8 @@
en: 56230efa41e79869
zh: 9ca4b8990a28d4d9
/session-persistence-event-catalog/resolved-persistence-types/type-chunk:
en: 2186ede3e9917aea
zh: 0cfef64045dce95b
en: 4b0ed1fe2caa26fb
zh: 8fffdc4f8c3deb79
/session-persistence-event-catalog/resolved-persistence-types/type-command-done:
en: 1a28f9fcd1818880
zh: 6d1ed0ec06272e65
@@ -2088,8 +2088,8 @@
en: 8cfacba0b814f1aa
zh: a9ee7804452fef23
/session-persistence-event-catalog/resolved-persistence-types/type-reasoning-chunks:
en: 34e5591d75322649
zh: a216839f305c9796
en: 4bf62582902829c5
zh: c9da9d11402ee1c4
/session-persistence-event-catalog/resolved-persistence-types/type-reasoning-delta:
en: a3f08ffda3526201
zh: e599517be130ff99
@@ -2151,8 +2151,8 @@
en: 722aa2e9b1ce6425
zh: b18eb3b53d619e85
/session-persistence-event-catalog/resolved-persistence-types/type-text-chunks:
en: 1484738718de5312
zh: 3e6fbe9c64068225
en: 28bab22053eabff2
zh: 54c0e424fcb99c05
/session-persistence-event-catalog/resolved-persistence-types/type-text-delta:
en: 5f30a603fab07135
zh: 3b7e2076351a1473
@@ -2160,8 +2160,8 @@
en: 2fa7ba77598a95b4
zh: 50972b51d77e9155
/session-persistence-event-catalog/resolved-persistence-types/type-tool-call-chunks:
en: 32f732b97739e4d2
zh: f288e48e356969c0
en: 45ff4145d9e2c7d4
zh: 36a346ff729c4b84
/session-persistence-event-catalog/resolved-persistence-types/type-tool-call-delta:
en: 0e907728f330a8c7
zh: d9d1400d4c468ab2
+20 -20
View File
@@ -3237,7 +3237,7 @@ One of:
SHA-256: `fa87537f4a9c1e25602990a8bf686b383e9e00352ec8946e16ae24ba7c1625be`
Sources: [`packages/llm/llm/src/message.ts:167`](../packages/llm/llm/src/message.ts)
Sources: [`packages/llm/llm/src/message.ts:166`](../packages/llm/llm/src/message.ts)
| Property | Presence | Type |
|---|---|---|
@@ -3256,7 +3256,7 @@ Sources: [`packages/llm/llm/src/message.ts:167`](../packages/llm/llm/src/message
SHA-256: `33341aac09312300de5a178e6cc6f6544a4876f7f710cfea55eda473c8d329ef`
Sources: [`packages/llm/llm/src/assistant-stream.ts:20`](../packages/llm/llm/src/assistant-stream.ts)
Sources: [`packages/llm/llm/src/assistant-stream.ts:19`](../packages/llm/llm/src/assistant-stream.ts)
One of:
@@ -3283,7 +3283,7 @@ Array of [`AssistantStreamRecord`](#persistence-type-sha256-33341aac09312300de5a
SHA-256: `ada310bf0bdb8fed51f3b56ea63f6ea6b18bbd587f04fccb63a14ab0b2a24e05`
Sources: [`packages/core/session/src/types.ts:195`](../packages/core/session/src/types.ts) · [`packages/interaction/commands/src/types.ts:75`](../packages/interaction/commands/src/types.ts) · [`packages/interaction/commands/src/types.ts:79`](../packages/interaction/commands/src/types.ts) · [`packages/llm/llm/src/message.ts:111`](../packages/llm/llm/src/message.ts) · [`packages/session/session-title/src/types.ts:35`](../packages/session/session-title/src/types.ts)
Sources: [`packages/core/session/src/types.ts:195`](../packages/core/session/src/types.ts) · [`packages/interaction/commands/src/types.ts:75`](../packages/interaction/commands/src/types.ts) · [`packages/interaction/commands/src/types.ts:79`](../packages/interaction/commands/src/types.ts) · [`packages/llm/llm/src/message.ts:110`](../packages/llm/llm/src/message.ts) · [`packages/session/session-title/src/types.ts:35`](../packages/session/session-title/src/types.ts)
| Property | Presence | Type |
|---|---|---|
@@ -3369,7 +3369,7 @@ Array of [`ContentBlock`](#persistence-type-sha256-8064c03c87c357fd1575cb9395ce8
SHA-256: `86e1e384495ee09ac2d60c9db3610f1f1fddac2d248f6f1d6000e78054680219`
Sources: [`packages/llm/llm/src/message.ts:70`](../packages/llm/llm/src/message.ts)
Sources: [`packages/llm/llm/src/message.ts:69`](../packages/llm/llm/src/message.ts)
| Property | Presence | Type |
|---|---|---|
@@ -3436,7 +3436,7 @@ Sources: [`packages/web/web-search-deepseek/src/provider.ts:55`](../packages/web
SHA-256: `824b1d4d4f007bdaa5eee7994a5db3ede7707c6cd2bf8e2509be176c7609e3bc`
Sources: [`packages/llm/llm/src/message.ts:157`](../packages/llm/llm/src/message.ts)
Sources: [`packages/llm/llm/src/message.ts:156`](../packages/llm/llm/src/message.ts)
| Property | Presence | Type |
|---|---|---|
@@ -4057,7 +4057,7 @@ Sources: [`packages/schedule/schedule/src/types.ts:185`](../packages/schedule/sc
SHA-256: `67d5f73ceae82f5265258142ad6cf172de2c1fef93ba551b7f0454e0a93bffe0`
Sources: [`packages/llm/llm/src/call-config.ts:31`](../packages/llm/llm/src/call-config.ts)
Sources: [`packages/llm/llm/src/call-config.ts:30`](../packages/llm/llm/src/call-config.ts)
| Property | Presence | Type |
|---|---|---|
@@ -4078,7 +4078,7 @@ Sources: [`packages/llm/llm/src/call-config.ts:31`](../packages/llm/llm/src/call
SHA-256: `326a9bfda27dda5882fb3cbe6e715df41dae2298fdae3d66437457268a665693`
Sources: [`packages/llm/llm/src/call-config.ts:54`](../packages/llm/llm/src/call-config.ts)
Sources: [`packages/llm/llm/src/call-config.ts:53`](../packages/llm/llm/src/call-config.ts)
| Property | Presence | Type |
|---|---|---|
@@ -4152,7 +4152,7 @@ Sources: [`packages/llm/llm-retry/src/types.ts:43`](../packages/llm/llm-retry/sr
SHA-256: `c51f0d0a405bb96fcb008c0dc560a512dcd8c3919b6b446937f449ea2f7d21d8`
Sources: [`packages/llm/llm/src/message.ts:196`](../packages/llm/llm/src/message.ts)
Sources: [`packages/llm/llm/src/message.ts:195`](../packages/llm/llm/src/message.ts)
One of:
@@ -4245,7 +4245,7 @@ One of:
SHA-256: `dca3ba43188095fa7342e49e6c206d4685125497d4767595bf12a62ea2fd73ce`
Sources: [`packages/llm/llm/src/message.ts:136`](../packages/llm/llm/src/message.ts)
Sources: [`packages/llm/llm/src/message.ts:135`](../packages/llm/llm/src/message.ts)
| kind | Form property | Other required fields | Full definition |
|---|---|---|---|
@@ -4387,7 +4387,7 @@ Array of [`Message`](#persistence-type-sha256-c51f0d0a405bb96fcb008c0dc560a512dc
SHA-256: `719c51f67074f97034a6c94297fe1f4b5d3c8d392c57586dab732aa5398c7a91`
Sources: [`packages/llm/llm/src/message.ts:24`](../packages/llm/llm/src/message.ts)
Sources: [`packages/llm/llm/src/message.ts:23`](../packages/llm/llm/src/message.ts)
| Property | Presence | Type |
|---|---|---|
@@ -4977,7 +4977,7 @@ One of:
SHA-256: `09f3f8dc417f278257202714132f98ba7b52957d7b558c4a04456603890eb363`
Sources: [`packages/llm/llm/src/message.ts:151`](../packages/llm/llm/src/message.ts)
Sources: [`packages/llm/llm/src/message.ts:150`](../packages/llm/llm/src/message.ts)
| Property | Presence | Type |
|---|---|---|
@@ -4996,7 +4996,7 @@ Sources: [`packages/llm/llm/src/message.ts:151`](../packages/llm/llm/src/message
SHA-256: `65a8400e451e667e5b6e34df72ceb81fca8c12330330fa72083ad40279b189ad`
Sources: [`packages/llm/llm/src/message.ts:35`](../packages/llm/llm/src/message.ts)
Sources: [`packages/llm/llm/src/message.ts:34`](../packages/llm/llm/src/message.ts)
| Property | Presence | Type |
|---|---|---|
@@ -5235,7 +5235,7 @@ Sources: [`packages/llm/llm/src/types.ts:112`](../packages/llm/llm/src/types.ts)
SHA-256: `d9c462b9f62fdd3efc76a44b9524dc8781f6b91cd9c7e584b17d971defafebab`
Sources: [`packages/llm/llm/src/message.ts:29`](../packages/llm/llm/src/message.ts)
Sources: [`packages/llm/llm/src/message.ts:28`](../packages/llm/llm/src/message.ts)
| Property | Presence | Type |
|---|---|---|
@@ -5286,7 +5286,7 @@ Sources: [`packages/core/tools/src/contracts.ts:395`](../packages/core/tools/src
SHA-256: `4b259f7f8f0a44ad5e90b70a73553ced1df27012d126921d397ff403b6c86731`
Sources: [`packages/llm/llm/src/message.ts:173`](../packages/llm/llm/src/message.ts)
Sources: [`packages/llm/llm/src/message.ts:172`](../packages/llm/llm/src/message.ts)
| Property | Presence | Type |
|---|---|---|
@@ -5448,7 +5448,7 @@ Sources: [`packages/core/session/src/types.ts:238`](../packages/core/session/src
SHA-256: `74e0e5885d2ddf04530ddf341b25cd65e1f85c00b30a88bd992f11fc06615a0c`
Sources: [`packages/llm/llm/src/message.ts:162`](../packages/llm/llm/src/message.ts)
Sources: [`packages/llm/llm/src/message.ts:161`](../packages/llm/llm/src/message.ts)
| Property | Presence | Type |
|---|---|---|
@@ -5657,7 +5657,7 @@ Array of `number`.
SHA-256: `4cd48f3e5108bd6ebedf7301c3638839b8b2b9db8dbd493974177fbdeb91a01b`
Sources: [`packages/api/session-controller/src/types.ts:391`](../packages/api/session-controller/src/types.ts) · [`packages/attachment/attachment/src/brand.ts:6`](../packages/attachment/attachment/src/brand.ts) · [`packages/compaction/compaction/src/brand.ts:4`](../packages/compaction/compaction/src/brand.ts) · [`packages/core/session/src/types.ts:21`](../packages/core/session/src/types.ts) · [`packages/experimental/webhook/src/brand.ts:12`](../packages/experimental/webhook/src/brand.ts) · [`packages/experimental/webhook/src/brand.ts:6`](../packages/experimental/webhook/src/brand.ts) · [`packages/experimental/webhook/src/brand.ts:9`](../packages/experimental/webhook/src/brand.ts) · [`packages/feedback/message-feedback/src/types.ts:14`](../packages/feedback/message-feedback/src/types.ts) · [`packages/goal/goal/src/types.ts:17`](../packages/goal/goal/src/types.ts) · [`packages/interaction/commands/src/brand.ts:31`](../packages/interaction/commands/src/brand.ts) · [`packages/interaction/user-approval/src/types.ts:17`](../packages/interaction/user-approval/src/types.ts) · [`packages/jobs/jobs/src/brand.ts:19`](../packages/jobs/jobs/src/brand.ts) · [`packages/llm/llm-retry/src/brand.ts:4`](../packages/llm/llm-retry/src/brand.ts) · [`packages/llm/llm/src/brand.ts:16`](../packages/llm/llm/src/brand.ts) · [`packages/llm/llm/src/brand.ts:31`](../packages/llm/llm/src/brand.ts) · [`packages/llm/llm/src/brand.ts:43`](../packages/llm/llm/src/brand.ts) · [`packages/llm/llm/src/brand.ts:67`](../packages/llm/llm/src/brand.ts) · [`packages/schedule/schedule/src/types.ts:14`](../packages/schedule/schedule/src/types.ts) · [`packages/session/session-title/src/types.ts:17`](../packages/session/session-title/src/types.ts) · [`packages/team/agent-team/src/types.ts:20`](../packages/team/agent-team/src/types.ts) · [`packages/team/agent-team/src/types.ts:32`](../packages/team/agent-team/src/types.ts) · [`packages/team/agent-team/src/types.ts:8`](../packages/team/agent-team/src/types.ts) · [`packages/workflow/workflow/src/types.ts:14`](../packages/workflow/workflow/src/types.ts)
Sources: [`packages/api/session-controller/src/types.ts:391`](../packages/api/session-controller/src/types.ts) · [`packages/attachment/attachment/src/brand.ts:6`](../packages/attachment/attachment/src/brand.ts) · [`packages/compaction/compaction/src/brand.ts:4`](../packages/compaction/compaction/src/brand.ts) · [`packages/core/session/src/types.ts:21`](../packages/core/session/src/types.ts) · [`packages/experimental/webhook/src/brand.ts:12`](../packages/experimental/webhook/src/brand.ts) · [`packages/experimental/webhook/src/brand.ts:6`](../packages/experimental/webhook/src/brand.ts) · [`packages/experimental/webhook/src/brand.ts:9`](../packages/experimental/webhook/src/brand.ts) · [`packages/feedback/message-feedback/src/types.ts:14`](../packages/feedback/message-feedback/src/types.ts) · [`packages/goal/goal/src/types.ts:17`](../packages/goal/goal/src/types.ts) · [`packages/interaction/commands/src/brand.ts:22`](../packages/interaction/commands/src/brand.ts) · [`packages/interaction/user-approval/src/types.ts:17`](../packages/interaction/user-approval/src/types.ts) · [`packages/jobs/jobs/src/brand.ts:9`](../packages/jobs/jobs/src/brand.ts) · [`packages/llm/llm-retry/src/brand.ts:4`](../packages/llm/llm-retry/src/brand.ts) · [`packages/llm/llm/src/brand.ts:16`](../packages/llm/llm/src/brand.ts) · [`packages/llm/llm/src/brand.ts:31`](../packages/llm/llm/src/brand.ts) · [`packages/llm/llm/src/brand.ts:43`](../packages/llm/llm/src/brand.ts) · [`packages/llm/llm/src/brand.ts:67`](../packages/llm/llm/src/brand.ts) · [`packages/schedule/schedule/src/types.ts:14`](../packages/schedule/schedule/src/types.ts) · [`packages/session/session-title/src/types.ts:17`](../packages/session/session-title/src/types.ts) · [`packages/team/agent-team/src/types.ts:20`](../packages/team/agent-team/src/types.ts) · [`packages/team/agent-team/src/types.ts:32`](../packages/team/agent-team/src/types.ts) · [`packages/team/agent-team/src/types.ts:8`](../packages/team/agent-team/src/types.ts) · [`packages/workflow/workflow/src/types.ts:14`](../packages/workflow/workflow/src/types.ts)
`string`
@@ -8342,7 +8342,7 @@ Sources: [`packages/llm/llm/src/types.ts:497`](../packages/llm/llm/src/types.ts)
SHA-256: `487b65c37bfedb8b72088c4107a0a90a6249701f6b26745f6d98f9b8a22b07c7`
Sources: [`packages/llm/llm/src/assistant-stream.ts:44`](../packages/llm/llm/src/assistant-stream.ts)
Sources: [`packages/llm/llm/src/assistant-stream.ts:43`](../packages/llm/llm/src/assistant-stream.ts)
| Property | Presence | Type |
|---|---|---|
@@ -8736,7 +8736,7 @@ SHA-256: `a7cf43ce7c2a4c038feed1885cd7a00d5c6ee2d90a7e0d56b46f78a3e1ca327f`
SHA-256: `71bb3254ec8f1e491ce63b762a7b5f18709de23aa4e8abcc8b886f4b6ce051dd`
Sources: [`packages/llm/llm/src/assistant-stream.ts:28`](../packages/llm/llm/src/assistant-stream.ts)
Sources: [`packages/llm/llm/src/assistant-stream.ts:27`](../packages/llm/llm/src/assistant-stream.ts)
| Property | Presence | Type |
|---|---|---|
@@ -9072,7 +9072,7 @@ SHA-256: `bca0f9cb63d8620b6954bb045b07bb07cb557513a7f0e2e177f5e87f704e7ba7`
SHA-256: `e72269f931559e901e5e8fe1cfcbd0669fb795f43cc038ff39fba62f60403c33`
Sources: [`packages/llm/llm/src/assistant-stream.ts:21`](../packages/llm/llm/src/assistant-stream.ts)
Sources: [`packages/llm/llm/src/assistant-stream.ts:20`](../packages/llm/llm/src/assistant-stream.ts)
| Property | Presence | Type |
|---|---|---|
@@ -9118,7 +9118,7 @@ SHA-256: `b978cff734e62143eb56c9125423ec275405eda969802d42aaf73ecb987d3b26`
SHA-256: `3860b4757d512a2869be833acb0faf834335b1b056bf3f83df5474dce95f8fa6`
Sources: [`packages/llm/llm/src/assistant-stream.ts:35`](../packages/llm/llm/src/assistant-stream.ts)
Sources: [`packages/llm/llm/src/assistant-stream.ts:34`](../packages/llm/llm/src/assistant-stream.ts)
| Property | Presence | Type |
|---|---|---|
+20 -20
View File
@@ -3239,7 +3239,7 @@ SHA-256: `05d2ae1e0c7f8770f83f9a09047afb39a335d8ac986df3193659aa1e581472cf`
SHA-256: `fa87537f4a9c1e25602990a8bf686b383e9e00352ec8946e16ae24ba7c1625be`
来源:[`packages/llm/llm/src/message.ts:167`](../packages/llm/llm/src/message.ts)
来源:[`packages/llm/llm/src/message.ts:166`](../packages/llm/llm/src/message.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
@@ -3258,7 +3258,7 @@ SHA-256: `fa87537f4a9c1e25602990a8bf686b383e9e00352ec8946e16ae24ba7c1625be`
SHA-256: `33341aac09312300de5a178e6cc6f6544a4876f7f710cfea55eda473c8d329ef`
来源:[`packages/llm/llm/src/assistant-stream.ts:20`](../packages/llm/llm/src/assistant-stream.ts)
来源:[`packages/llm/llm/src/assistant-stream.ts:19`](../packages/llm/llm/src/assistant-stream.ts)
以下类型之一:
@@ -3285,7 +3285,7 @@ SHA-256: `84bbfdce7d2eab5b0c53e72ff7406db856c8bfd621b965b72fd86598ba493bf7`
SHA-256: `ada310bf0bdb8fed51f3b56ea63f6ea6b18bbd587f04fccb63a14ab0b2a24e05`
来源:[`packages/core/session/src/types.ts:195`](../packages/core/session/src/types.ts) · [`packages/interaction/commands/src/types.ts:75`](../packages/interaction/commands/src/types.ts) · [`packages/interaction/commands/src/types.ts:79`](../packages/interaction/commands/src/types.ts) · [`packages/llm/llm/src/message.ts:111`](../packages/llm/llm/src/message.ts) · [`packages/session/session-title/src/types.ts:35`](../packages/session/session-title/src/types.ts)
来源:[`packages/core/session/src/types.ts:195`](../packages/core/session/src/types.ts) · [`packages/interaction/commands/src/types.ts:75`](../packages/interaction/commands/src/types.ts) · [`packages/interaction/commands/src/types.ts:79`](../packages/interaction/commands/src/types.ts) · [`packages/llm/llm/src/message.ts:110`](../packages/llm/llm/src/message.ts) · [`packages/session/session-title/src/types.ts:35`](../packages/session/session-title/src/types.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
@@ -3371,7 +3371,7 @@ SHA-256: `b52f215a6cd691058a3413c12f161fa3b563a2f4895adb3df6f744ec4b0a6ef1`
SHA-256: `86e1e384495ee09ac2d60c9db3610f1f1fddac2d248f6f1d6000e78054680219`
来源:[`packages/llm/llm/src/message.ts:70`](../packages/llm/llm/src/message.ts)
来源:[`packages/llm/llm/src/message.ts:69`](../packages/llm/llm/src/message.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
@@ -3438,7 +3438,7 @@ SHA-256: `abd6ca62a5ab166553848324a23fef90eed7f59c8021bd63e7ea5bc6fd666b0c`
SHA-256: `824b1d4d4f007bdaa5eee7994a5db3ede7707c6cd2bf8e2509be176c7609e3bc`
来源:[`packages/llm/llm/src/message.ts:157`](../packages/llm/llm/src/message.ts)
来源:[`packages/llm/llm/src/message.ts:156`](../packages/llm/llm/src/message.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
@@ -4059,7 +4059,7 @@ SHA-256: `4b1e632e05776982a2d21c25a50c7c04c199d311c5675218fa73ff9fe30d22cd`
SHA-256: `67d5f73ceae82f5265258142ad6cf172de2c1fef93ba551b7f0454e0a93bffe0`
来源:[`packages/llm/llm/src/call-config.ts:31`](../packages/llm/llm/src/call-config.ts)
来源:[`packages/llm/llm/src/call-config.ts:30`](../packages/llm/llm/src/call-config.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
@@ -4080,7 +4080,7 @@ SHA-256: `67d5f73ceae82f5265258142ad6cf172de2c1fef93ba551b7f0454e0a93bffe0`
SHA-256: `326a9bfda27dda5882fb3cbe6e715df41dae2298fdae3d66437457268a665693`
来源:[`packages/llm/llm/src/call-config.ts:54`](../packages/llm/llm/src/call-config.ts)
来源:[`packages/llm/llm/src/call-config.ts:53`](../packages/llm/llm/src/call-config.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
@@ -4154,7 +4154,7 @@ SHA-256: `6f72ece8f317cd080c4f20a93f1bf709965f5b81ac4669528f5a023191cfcf20`
SHA-256: `c51f0d0a405bb96fcb008c0dc560a512dcd8c3919b6b446937f449ea2f7d21d8`
来源:[`packages/llm/llm/src/message.ts:196`](../packages/llm/llm/src/message.ts)
来源:[`packages/llm/llm/src/message.ts:195`](../packages/llm/llm/src/message.ts)
以下类型之一:
@@ -4247,7 +4247,7 @@ SHA-256: `390eed1028aba02774f14408647acec10ec5516e97d4f15ecde2b9989d5a69f2`
SHA-256: `dca3ba43188095fa7342e49e6c206d4685125497d4767595bf12a62ea2fd73ce`
来源:[`packages/llm/llm/src/message.ts:136`](../packages/llm/llm/src/message.ts)
来源:[`packages/llm/llm/src/message.ts:135`](../packages/llm/llm/src/message.ts)
| kind | form 属性 | 其他必需字段 | 完整定义 |
|---|---|---|---|
@@ -4389,7 +4389,7 @@ SHA-256: `42e2ff61928fb7dfaf0f057d61686f3a32ff713da419d12d4f250efc96733fe0`
SHA-256: `719c51f67074f97034a6c94297fe1f4b5d3c8d392c57586dab732aa5398c7a91`
来源:[`packages/llm/llm/src/message.ts:24`](../packages/llm/llm/src/message.ts)
来源:[`packages/llm/llm/src/message.ts:23`](../packages/llm/llm/src/message.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
@@ -4979,7 +4979,7 @@ SHA-256: `335e242de1fcc17b6ca920fc420d71bec2d76e53e37955c00948b65ab77f05c5`
SHA-256: `09f3f8dc417f278257202714132f98ba7b52957d7b558c4a04456603890eb363`
来源:[`packages/llm/llm/src/message.ts:151`](../packages/llm/llm/src/message.ts)
来源:[`packages/llm/llm/src/message.ts:150`](../packages/llm/llm/src/message.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
@@ -4998,7 +4998,7 @@ SHA-256: `09f3f8dc417f278257202714132f98ba7b52957d7b558c4a04456603890eb363`
SHA-256: `65a8400e451e667e5b6e34df72ceb81fca8c12330330fa72083ad40279b189ad`
来源:[`packages/llm/llm/src/message.ts:35`](../packages/llm/llm/src/message.ts)
来源:[`packages/llm/llm/src/message.ts:34`](../packages/llm/llm/src/message.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
@@ -5237,7 +5237,7 @@ SHA-256: `c1f0f17b6493b85db6453bb30e01b208d703731b25bc1e68e5d4fc72eea9cdea`
SHA-256: `d9c462b9f62fdd3efc76a44b9524dc8781f6b91cd9c7e584b17d971defafebab`
来源:[`packages/llm/llm/src/message.ts:29`](../packages/llm/llm/src/message.ts)
来源:[`packages/llm/llm/src/message.ts:28`](../packages/llm/llm/src/message.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
@@ -5288,7 +5288,7 @@ SHA-256: `3cfc3a56502da1f8c6153c2c56657bab4b749056968634dd0991d325ec1c919f`
SHA-256: `4b259f7f8f0a44ad5e90b70a73553ced1df27012d126921d397ff403b6c86731`
来源:[`packages/llm/llm/src/message.ts:173`](../packages/llm/llm/src/message.ts)
来源:[`packages/llm/llm/src/message.ts:172`](../packages/llm/llm/src/message.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
@@ -5450,7 +5450,7 @@ SHA-256: `f1687f982fa3d41ef29e159feed154ecd13af4dd209acaee16038f223f2e9402`
SHA-256: `74e0e5885d2ddf04530ddf341b25cd65e1f85c00b30a88bd992f11fc06615a0c`
来源:[`packages/llm/llm/src/message.ts:162`](../packages/llm/llm/src/message.ts)
来源:[`packages/llm/llm/src/message.ts:161`](../packages/llm/llm/src/message.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
@@ -5659,7 +5659,7 @@ SHA-256: `5d03ba38734809bcbd2a55221bd938b3b3fc34b49bb686c6113e9e4931e3aa78`
SHA-256: `4cd48f3e5108bd6ebedf7301c3638839b8b2b9db8dbd493974177fbdeb91a01b`
来源:[`packages/api/session-controller/src/types.ts:391`](../packages/api/session-controller/src/types.ts) · [`packages/attachment/attachment/src/brand.ts:6`](../packages/attachment/attachment/src/brand.ts) · [`packages/compaction/compaction/src/brand.ts:4`](../packages/compaction/compaction/src/brand.ts) · [`packages/core/session/src/types.ts:21`](../packages/core/session/src/types.ts) · [`packages/experimental/webhook/src/brand.ts:12`](../packages/experimental/webhook/src/brand.ts) · [`packages/experimental/webhook/src/brand.ts:6`](../packages/experimental/webhook/src/brand.ts) · [`packages/experimental/webhook/src/brand.ts:9`](../packages/experimental/webhook/src/brand.ts) · [`packages/feedback/message-feedback/src/types.ts:14`](../packages/feedback/message-feedback/src/types.ts) · [`packages/goal/goal/src/types.ts:17`](../packages/goal/goal/src/types.ts) · [`packages/interaction/commands/src/brand.ts:31`](../packages/interaction/commands/src/brand.ts) · [`packages/interaction/user-approval/src/types.ts:17`](../packages/interaction/user-approval/src/types.ts) · [`packages/jobs/jobs/src/brand.ts:19`](../packages/jobs/jobs/src/brand.ts) · [`packages/llm/llm-retry/src/brand.ts:4`](../packages/llm/llm-retry/src/brand.ts) · [`packages/llm/llm/src/brand.ts:16`](../packages/llm/llm/src/brand.ts) · [`packages/llm/llm/src/brand.ts:31`](../packages/llm/llm/src/brand.ts) · [`packages/llm/llm/src/brand.ts:43`](../packages/llm/llm/src/brand.ts) · [`packages/llm/llm/src/brand.ts:67`](../packages/llm/llm/src/brand.ts) · [`packages/schedule/schedule/src/types.ts:14`](../packages/schedule/schedule/src/types.ts) · [`packages/session/session-title/src/types.ts:17`](../packages/session/session-title/src/types.ts) · [`packages/team/agent-team/src/types.ts:20`](../packages/team/agent-team/src/types.ts) · [`packages/team/agent-team/src/types.ts:32`](../packages/team/agent-team/src/types.ts) · [`packages/team/agent-team/src/types.ts:8`](../packages/team/agent-team/src/types.ts) · [`packages/workflow/workflow/src/types.ts:14`](../packages/workflow/workflow/src/types.ts)
来源:[`packages/api/session-controller/src/types.ts:391`](../packages/api/session-controller/src/types.ts) · [`packages/attachment/attachment/src/brand.ts:6`](../packages/attachment/attachment/src/brand.ts) · [`packages/compaction/compaction/src/brand.ts:4`](../packages/compaction/compaction/src/brand.ts) · [`packages/core/session/src/types.ts:21`](../packages/core/session/src/types.ts) · [`packages/experimental/webhook/src/brand.ts:12`](../packages/experimental/webhook/src/brand.ts) · [`packages/experimental/webhook/src/brand.ts:6`](../packages/experimental/webhook/src/brand.ts) · [`packages/experimental/webhook/src/brand.ts:9`](../packages/experimental/webhook/src/brand.ts) · [`packages/feedback/message-feedback/src/types.ts:14`](../packages/feedback/message-feedback/src/types.ts) · [`packages/goal/goal/src/types.ts:17`](../packages/goal/goal/src/types.ts) · [`packages/interaction/commands/src/brand.ts:22`](../packages/interaction/commands/src/brand.ts) · [`packages/interaction/user-approval/src/types.ts:17`](../packages/interaction/user-approval/src/types.ts) · [`packages/jobs/jobs/src/brand.ts:9`](../packages/jobs/jobs/src/brand.ts) · [`packages/llm/llm-retry/src/brand.ts:4`](../packages/llm/llm-retry/src/brand.ts) · [`packages/llm/llm/src/brand.ts:16`](../packages/llm/llm/src/brand.ts) · [`packages/llm/llm/src/brand.ts:31`](../packages/llm/llm/src/brand.ts) · [`packages/llm/llm/src/brand.ts:43`](../packages/llm/llm/src/brand.ts) · [`packages/llm/llm/src/brand.ts:67`](../packages/llm/llm/src/brand.ts) · [`packages/schedule/schedule/src/types.ts:14`](../packages/schedule/schedule/src/types.ts) · [`packages/session/session-title/src/types.ts:17`](../packages/session/session-title/src/types.ts) · [`packages/team/agent-team/src/types.ts:20`](../packages/team/agent-team/src/types.ts) · [`packages/team/agent-team/src/types.ts:32`](../packages/team/agent-team/src/types.ts) · [`packages/team/agent-team/src/types.ts:8`](../packages/team/agent-team/src/types.ts) · [`packages/workflow/workflow/src/types.ts:14`](../packages/workflow/workflow/src/types.ts)
`string`
@@ -8344,7 +8344,7 @@ SHA-256: `3bec87f9e6ab3da03346f49923d3c51621debc0159df68605e543c3b2a026f90`
SHA-256: `487b65c37bfedb8b72088c4107a0a90a6249701f6b26745f6d98f9b8a22b07c7`
来源:[`packages/llm/llm/src/assistant-stream.ts:44`](../packages/llm/llm/src/assistant-stream.ts)
来源:[`packages/llm/llm/src/assistant-stream.ts:43`](../packages/llm/llm/src/assistant-stream.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
@@ -8738,7 +8738,7 @@ SHA-256: `a7cf43ce7c2a4c038feed1885cd7a00d5c6ee2d90a7e0d56b46f78a3e1ca327f`
SHA-256: `71bb3254ec8f1e491ce63b762a7b5f18709de23aa4e8abcc8b886f4b6ce051dd`
来源:[`packages/llm/llm/src/assistant-stream.ts:28`](../packages/llm/llm/src/assistant-stream.ts)
来源:[`packages/llm/llm/src/assistant-stream.ts:27`](../packages/llm/llm/src/assistant-stream.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
@@ -9074,7 +9074,7 @@ SHA-256: `bca0f9cb63d8620b6954bb045b07bb07cb557513a7f0e2e177f5e87f704e7ba7`
SHA-256: `e72269f931559e901e5e8fe1cfcbd0669fb795f43cc038ff39fba62f60403c33`
来源:[`packages/llm/llm/src/assistant-stream.ts:21`](../packages/llm/llm/src/assistant-stream.ts)
来源:[`packages/llm/llm/src/assistant-stream.ts:20`](../packages/llm/llm/src/assistant-stream.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
@@ -9120,7 +9120,7 @@ SHA-256: `b978cff734e62143eb56c9125423ec275405eda969802d42aaf73ecb987d3b26`
SHA-256: `3860b4757d512a2869be833acb0faf834335b1b056bf3f83df5474dce95f8fa6`
来源:[`packages/llm/llm/src/assistant-stream.ts:35`](../packages/llm/llm/src/assistant-stream.ts)
来源:[`packages/llm/llm/src/assistant-stream.ts:34`](../packages/llm/llm/src/assistant-stream.ts)
| 属性 | 存在性 | 类型 |
|---|---|---|
+20 -20
View File
@@ -83,7 +83,7 @@
{"digest":"07e1a58c58b593f507b8e7f25723bb0aa42baae6e00f5ecfddf28cb1e64d3235","names":["packages/session/session-title/src/types.ts#SessionTitleModelIdentity","packages/subagent/tool-subagent/src/model-selection.ts#AllowedModelRoute"],"sources":["packages/session/session-title/src/types.ts:20","packages/subagent/tool-subagent/src/model-selection.ts:12"]},
{"digest":"07eccc9ea2f9b5439d76cc77d5e062936677d43f07a23da749819b0a22ee36b7","names":[],"sources":[]},
{"digest":"09655b34d7f3cf1e9005974de2357de2d4a60deea165d16dac1eadaa6ec539a8","names":[],"sources":[]},
{"digest":"09f3f8dc417f278257202714132f98ba7b52957d7b558c4a04456603890eb363","names":["packages/llm/llm/src/message.ts#SystemMessage"],"sources":["packages/llm/llm/src/message.ts:151"]},
{"digest":"09f3f8dc417f278257202714132f98ba7b52957d7b558c4a04456603890eb363","names":["packages/llm/llm/src/message.ts#SystemMessage"],"sources":["packages/llm/llm/src/message.ts:150"]},
{"digest":"0a30c3be336cdd4f8f34e66543a3d46d611c43986edd9b3ce6cbb9b721d3b5d3","names":[],"sources":["packages/core/session/src/types.ts:209"]},
{"digest":"0a8a062bc9c3c0d97fd97742262f2ea53dd32297f834e81114870d38ac3dc6da","names":[],"sources":[]},
{"digest":"0a92c5bdfa06c2e2615b777728f3aa95f408d43b9012e7b754568311251db623","names":[],"sources":["packages/experimental/liveshare/src/host/viewer-principal.ts:29"]},
@@ -196,9 +196,9 @@
{"digest":"312aee2f0c42aabbae6cc60d92d596d8453c0aeb061c5868d1755a69ef49e69a","names":[],"sources":[]},
{"digest":"31907de9563751822af6d9be02bafaf26faa098bbd1cb412524134d577cc1648","names":["packages/compaction/compaction/src/checkpoint.ts#CompactionCheckpointSource"],"sources":["packages/compaction/compaction/src/checkpoint.ts:21"]},
{"digest":"3247e566f4340029325b70e4366b56fa9719977f1e39033b769a2ec221ab22a9","names":[],"sources":[]},
{"digest":"326a9bfda27dda5882fb3cbe6e715df41dae2298fdae3d66437457268a665693","names":["packages/llm/llm/src/call-config.ts#LlmCallConfigAdapterDefaults"],"sources":["packages/llm/llm/src/call-config.ts:54"]},
{"digest":"326a9bfda27dda5882fb3cbe6e715df41dae2298fdae3d66437457268a665693","names":["packages/llm/llm/src/call-config.ts#LlmCallConfigAdapterDefaults"],"sources":["packages/llm/llm/src/call-config.ts:53"]},
{"digest":"3305a4bb6b6c29b482ba91d59c60b47e8f98282d3dacc8c29e4a4c2712209bdd","names":[],"sources":[]},
{"digest":"33341aac09312300de5a178e6cc6f6544a4876f7f710cfea55eda473c8d329ef","names":["packages/llm/llm/src/assistant-stream.ts#AssistantStreamRecord"],"sources":["packages/llm/llm/src/assistant-stream.ts:20"]},
{"digest":"33341aac09312300de5a178e6cc6f6544a4876f7f710cfea55eda473c8d329ef","names":["packages/llm/llm/src/assistant-stream.ts#AssistantStreamRecord"],"sources":["packages/llm/llm/src/assistant-stream.ts:19"]},
{"digest":"335e242de1fcc17b6ca920fc420d71bec2d76e53e37955c00948b65ab77f05c5","names":["packages/core/session/src/types.ts#SurfaceOp"],"sources":["packages/core/session/src/types.ts:470"]},
{"digest":"347de3380f2da308d0c74e08821f9e85559f55af4c5010795b110d00f7fc9dbd","names":[],"sources":[]},
{"digest":"34d1ab5c5df378186d6054b1a1beea9a41e41965d6f336f0bc0025c441a82e66","names":[],"sources":[]},
@@ -210,7 +210,7 @@
{"digest":"37cbc9cf06d494cfe5c67f078af1605eacb8e4c2c853e9e26455b73de0ee7ccf","names":[],"sources":[]},
{"digest":"37ff65426bcf130f045d3a59ef2a4648eb170cd30280cbd024108a2e9b4401d1","names":[],"sources":["packages/web/web-search-deepseek/src/provider.ts:82"]},
{"digest":"383cf73ae4748e5beb281ae74857ba1ffb92ae01075b9fbf51af78b666007a8f","names":[],"sources":[]},
{"digest":"3860b4757d512a2869be833acb0faf834335b1b056bf3f83df5474dce95f8fa6","names":[],"sources":["packages/llm/llm/src/assistant-stream.ts:35"]},
{"digest":"3860b4757d512a2869be833acb0faf834335b1b056bf3f83df5474dce95f8fa6","names":[],"sources":["packages/llm/llm/src/assistant-stream.ts:34"]},
{"digest":"390eed1028aba02774f14408647acec10ec5516e97d4f15ecde2b9989d5a69f2","names":["packages/feedback/message-feedback/src/types.ts#MessageFeedbackRating"],"sources":["packages/feedback/message-feedback/src/types.ts:17"]},
{"digest":"39cf2d3ff8bac81c62d49ac2ba38a095b18e80f3ad700819fa1f650a4e60197f","names":["packages/jobs/jobs/src/types.ts#JobToolCall"],"sources":["packages/jobs/jobs/src/types.ts:16"]},
{"digest":"3b04790e08b35241ffa0d38f6d7e4f8788aa921341f6c0d7574a329397c59408","names":[],"sources":[]},
@@ -246,7 +246,7 @@
{"digest":"477614bca595a9e7adb5a1870be446b9a8684f3ba8950259d6289f2d3b74f028","names":[],"sources":["packages/compaction/compaction-image-offload/src/projection.ts:25"]},
{"digest":"47e5d84f1a93450a78c7f3954b43990d0f629af7c034a56313e5deb63e772c1b","names":[],"sources":[]},
{"digest":"47e9095591ae36e7c39ee62553097772f2bfa16304536a72dbbc3f691f605180","names":["packages/llm/llm/src/types.ts#StreamChunk"],"sources":["packages/llm/llm/src/types.ts:496"]},
{"digest":"487b65c37bfedb8b72088c4107a0a90a6249701f6b26745f6d98f9b8a22b07c7","names":[],"sources":["packages/llm/llm/src/assistant-stream.ts:44"]},
{"digest":"487b65c37bfedb8b72088c4107a0a90a6249701f6b26745f6d98f9b8a22b07c7","names":[],"sources":["packages/llm/llm/src/assistant-stream.ts:43"]},
{"digest":"48e5c9861f16ac07e78cb7b5ae9dabdf7bb85c58baed5a51b4ad275050ea58e3","names":[],"sources":[]},
{"digest":"48f9c19417a1abbedfa59f4667bba36b93ac2db407adf5e84cb3ba0de30942cb","names":[],"sources":[]},
{"digest":"4991dfc415c9efebc36fa6969e1798c7d2e42396cc1e6e0ac7d7c89c5c5c4aea","names":[],"sources":[]},
@@ -256,10 +256,10 @@
{"digest":"4ae007ed190a72c92138b22d059b83208079c7551ca13fb59ae8cf5e23693964","names":[],"sources":[]},
{"digest":"4aed17ec726b5397c29f6cb4bcd7905dc1a12bb6140f1657f073cd24380f2af8","names":[],"sources":[]},
{"digest":"4b1e632e05776982a2d21c25a50c7c04c199d311c5675218fa73ff9fe30d22cd","names":["packages/schedule/schedule/src/types.ts#LegacyScheduleRecord"],"sources":["packages/schedule/schedule/src/types.ts:185"]},
{"digest":"4b259f7f8f0a44ad5e90b70a73553ced1df27012d126921d397ff403b6c86731","names":["packages/llm/llm/src/message.ts#ToolResultMessage"],"sources":["packages/llm/llm/src/message.ts:173"]},
{"digest":"4b259f7f8f0a44ad5e90b70a73553ced1df27012d126921d397ff403b6c86731","names":["packages/llm/llm/src/message.ts#ToolResultMessage"],"sources":["packages/llm/llm/src/message.ts:172"]},
{"digest":"4b7ddaf3710b88ff9b8df66304f5f97bf03688fd19730eedc2e9535203c820ea","names":[],"sources":[]},
{"digest":"4bb451330ff699f36b45539ceb0eb2606ead72084e2c5bb637c36cc80e2252db","names":[],"sources":["packages/core/session/src/types.ts:198"]},
{"digest":"4cd48f3e5108bd6ebedf7301c3638839b8b2b9db8dbd493974177fbdeb91a01b","names":["packages/api/session-controller/src/types.ts#SessionRequestId","packages/attachment/attachment/src/brand.ts#AttachmentId","packages/compaction/compaction/src/brand.ts#CompactionId","packages/core/session/src/types.ts#SessionId","packages/experimental/webhook/src/brand.ts#WebhookDeliveryId","packages/experimental/webhook/src/brand.ts#WebhookRuleId","packages/experimental/webhook/src/brand.ts#WebhookSourceId","packages/feedback/message-feedback/src/types.ts#MessageFeedbackVersion","packages/goal/goal/src/types.ts#GoalId","packages/interaction/commands/src/brand.ts#CommandId","packages/interaction/user-approval/src/types.ts#ApprovalRequestId","packages/jobs/jobs/src/brand.ts#JobId","packages/llm/llm-retry/src/brand.ts#RetryId","packages/llm/llm/src/brand.ts#MessageId","packages/llm/llm/src/brand.ts#ProviderRequestId","packages/llm/llm/src/brand.ts#ReasoningEffortId","packages/llm/llm/src/brand.ts#ToolCallId","packages/schedule/schedule/src/types.ts#ScheduleId","packages/session/session-title/src/types.ts#SessionTitleProviderId","packages/team/agent-team/src/types.ts#TeamId","packages/team/agent-team/src/types.ts#TeamMessageId","packages/team/agent-team/src/types.ts#TeamTaskId","packages/workflow/workflow/src/types.ts#WorkflowRunId"],"sources":["packages/api/session-controller/src/types.ts:391","packages/attachment/attachment/src/brand.ts:6","packages/compaction/compaction/src/brand.ts:4","packages/core/session/src/types.ts:21","packages/experimental/webhook/src/brand.ts:12","packages/experimental/webhook/src/brand.ts:6","packages/experimental/webhook/src/brand.ts:9","packages/feedback/message-feedback/src/types.ts:14","packages/goal/goal/src/types.ts:17","packages/interaction/commands/src/brand.ts:31","packages/interaction/user-approval/src/types.ts:17","packages/jobs/jobs/src/brand.ts:19","packages/llm/llm-retry/src/brand.ts:4","packages/llm/llm/src/brand.ts:16","packages/llm/llm/src/brand.ts:31","packages/llm/llm/src/brand.ts:43","packages/llm/llm/src/brand.ts:67","packages/schedule/schedule/src/types.ts:14","packages/session/session-title/src/types.ts:17","packages/team/agent-team/src/types.ts:20","packages/team/agent-team/src/types.ts:32","packages/team/agent-team/src/types.ts:8","packages/workflow/workflow/src/types.ts:14"]},
{"digest":"4cd48f3e5108bd6ebedf7301c3638839b8b2b9db8dbd493974177fbdeb91a01b","names":["packages/api/session-controller/src/types.ts#SessionRequestId","packages/attachment/attachment/src/brand.ts#AttachmentId","packages/compaction/compaction/src/brand.ts#CompactionId","packages/core/session/src/types.ts#SessionId","packages/experimental/webhook/src/brand.ts#WebhookDeliveryId","packages/experimental/webhook/src/brand.ts#WebhookRuleId","packages/experimental/webhook/src/brand.ts#WebhookSourceId","packages/feedback/message-feedback/src/types.ts#MessageFeedbackVersion","packages/goal/goal/src/types.ts#GoalId","packages/interaction/commands/src/brand.ts#CommandId","packages/interaction/user-approval/src/types.ts#ApprovalRequestId","packages/jobs/jobs/src/brand.ts#JobId","packages/llm/llm-retry/src/brand.ts#RetryId","packages/llm/llm/src/brand.ts#MessageId","packages/llm/llm/src/brand.ts#ProviderRequestId","packages/llm/llm/src/brand.ts#ReasoningEffortId","packages/llm/llm/src/brand.ts#ToolCallId","packages/schedule/schedule/src/types.ts#ScheduleId","packages/session/session-title/src/types.ts#SessionTitleProviderId","packages/team/agent-team/src/types.ts#TeamId","packages/team/agent-team/src/types.ts#TeamMessageId","packages/team/agent-team/src/types.ts#TeamTaskId","packages/workflow/workflow/src/types.ts#WorkflowRunId"],"sources":["packages/api/session-controller/src/types.ts:391","packages/attachment/attachment/src/brand.ts:6","packages/compaction/compaction/src/brand.ts:4","packages/core/session/src/types.ts:21","packages/experimental/webhook/src/brand.ts:12","packages/experimental/webhook/src/brand.ts:6","packages/experimental/webhook/src/brand.ts:9","packages/feedback/message-feedback/src/types.ts:14","packages/goal/goal/src/types.ts:17","packages/interaction/commands/src/brand.ts:22","packages/interaction/user-approval/src/types.ts:17","packages/jobs/jobs/src/brand.ts:9","packages/llm/llm-retry/src/brand.ts:4","packages/llm/llm/src/brand.ts:16","packages/llm/llm/src/brand.ts:31","packages/llm/llm/src/brand.ts:43","packages/llm/llm/src/brand.ts:67","packages/schedule/schedule/src/types.ts:14","packages/session/session-title/src/types.ts:17","packages/team/agent-team/src/types.ts:20","packages/team/agent-team/src/types.ts:32","packages/team/agent-team/src/types.ts:8","packages/workflow/workflow/src/types.ts:14"]},
{"digest":"4d60dddaa65d3da8d4cd014d85ce3d2c2875664dd0433e331d8e9d395289686b","names":["packages/experimental/liveshare/src/host/viewer-principal.ts#ShareViewerPrincipal"],"sources":["packages/experimental/liveshare/src/host/viewer-principal.ts:24"]},
{"digest":"4e011753f8263f436efaabfbb3b4db53a98fc55342c5ded2daf7208b217be159","names":[],"sources":[]},
{"digest":"4e44c9118152f6829634bfd508e47669ab0497caffa380c94b4be91f9390d35d","names":[],"sources":[]},
@@ -321,11 +321,11 @@
{"digest":"63ba8895cc09e4693cf0819fdcd18c084bef195febda5b6a23af279b3852be36","names":[],"sources":[]},
{"digest":"6487b10ba7542f3c447b1e41a1c6a590b7bfafe0b9b66b49f34028da85bb970f","names":["packages/subagent/subagent/src/descriptor.ts#ContinuableSubagentDescriptorData"],"sources":["packages/subagent/subagent/src/descriptor.ts:72"]},
{"digest":"6598cd6da253948d6b207c6374a45335804c79b576866d6215649c2d1bc85e25","names":["packages/team/agent-team/src/types.ts#TeamMemberSnapshot"],"sources":["packages/team/agent-team/src/types.ts:50"]},
{"digest":"65a8400e451e667e5b6e34df72ceb81fca8c12330330fa72083ad40279b189ad","names":["packages/llm/llm/src/message.ts#SystemPromptMessageSource"],"sources":["packages/llm/llm/src/message.ts:35"]},
{"digest":"65a8400e451e667e5b6e34df72ceb81fca8c12330330fa72083ad40279b189ad","names":["packages/llm/llm/src/message.ts#SystemPromptMessageSource"],"sources":["packages/llm/llm/src/message.ts:34"]},
{"digest":"65d583e66518c5236015e0846470fb32efcf92375ed306aef14e50a9d2cd2099","names":["packages/skill/tool-skill/src/index.ts#SkillCatalogSource"],"sources":["packages/skill/tool-skill/src/index.ts:35"]},
{"digest":"66ba70f6f068da443f969a0b947a013c3addd776b9b60a0a393759c19825e9a2","names":["packages/llm/llm/src/types.ts#ToolSchema"],"sources":["packages/llm/llm/src/types.ts:517"]},
{"digest":"672c4aa2a9b736e3d6e5da6346d2e2ed5e3573f2d0baafa18e7407c9f3fee3db","names":["packages/skill/skill/src/index.ts#SkillInvocationSource"],"sources":["packages/skill/skill/src/index.ts:146"]},
{"digest":"67d5f73ceae82f5265258142ad6cf172de2c1fef93ba551b7f0454e0a93bffe0","names":["packages/llm/llm/src/call-config.ts#LlmCallConfig"],"sources":["packages/llm/llm/src/call-config.ts:31"]},
{"digest":"67d5f73ceae82f5265258142ad6cf172de2c1fef93ba551b7f0454e0a93bffe0","names":["packages/llm/llm/src/call-config.ts#LlmCallConfig"],"sources":["packages/llm/llm/src/call-config.ts:30"]},
{"digest":"68141cbe3994a5ffcd064c07c75996538437fd9dbf77ce8a2927e89ec577fabe","names":[],"sources":[]},
{"digest":"688e853dc149f0d30b31765c12ec7e3be74169bdf1a4c6463a10b945d50cc1b8","names":[],"sources":[]},
{"digest":"68f44f59e91c41395076cb77265981a601680ec8a381bbbeb6ab754ffdc94573","names":[],"sources":[]},
@@ -354,11 +354,11 @@
{"digest":"6f9e00383836275e46c0a9915767f9bb561be5fc30aae490174908a93e99a912","names":[],"sources":[]},
{"digest":"70b082fe78991edf13cf66e1b4d06cd2dcff9cacfd76f8cfb996bfb61939e7b2","names":[],"sources":[]},
{"digest":"7180844e1066230c5e891f1b9ccd942423b0fe48aac6ded7eef2a285b288a732","names":[],"sources":[]},
{"digest":"719c51f67074f97034a6c94297fe1f4b5d3c8d392c57586dab732aa5398c7a91","names":["packages/llm/llm/src/message.ts#ModelMessageSource"],"sources":["packages/llm/llm/src/message.ts:24"]},
{"digest":"71bb3254ec8f1e491ce63b762a7b5f18709de23aa4e8abcc8b886f4b6ce051dd","names":[],"sources":["packages/llm/llm/src/assistant-stream.ts:28"]},
{"digest":"719c51f67074f97034a6c94297fe1f4b5d3c8d392c57586dab732aa5398c7a91","names":["packages/llm/llm/src/message.ts#ModelMessageSource"],"sources":["packages/llm/llm/src/message.ts:23"]},
{"digest":"71bb3254ec8f1e491ce63b762a7b5f18709de23aa4e8abcc8b886f4b6ce051dd","names":[],"sources":["packages/llm/llm/src/assistant-stream.ts:27"]},
{"digest":"72ec79127a9c0d0241b1106a74cc2b24c81ce467170f1c3c93f7b71a9496d227","names":[],"sources":[]},
{"digest":"7382c4fc95fe8c5db65ca4d9da572b115d0dbb818b7f32c22ab040318ffbb4bc","names":[],"sources":[]},
{"digest":"74e0e5885d2ddf04530ddf341b25cd65e1f85c00b30a88bd992f11fc06615a0c","names":["packages/llm/llm/src/message.ts#UserMessage"],"sources":["packages/llm/llm/src/message.ts:162"]},
{"digest":"74e0e5885d2ddf04530ddf341b25cd65e1f85c00b30a88bd992f11fc06615a0c","names":["packages/llm/llm/src/message.ts#UserMessage"],"sources":["packages/llm/llm/src/message.ts:161"]},
{"digest":"750a2b129d67704df675c06823c20c80b65cbae89d5aaa914fd5a72e3df395b5","names":["packages/jobs/jobs/src/types.ts#JobSettleCause"],"sources":["packages/jobs/jobs/src/types.ts:247"]},
{"digest":"7554565be416b0342053ee6a46256c9dab07c487349b4a5f10bab1edc151c619","names":[],"sources":[]},
{"digest":"756b5e23a5cb2c7f486f366a828f7461c88902af21125bd6810881f4ccbff6cc","names":[],"sources":[]},
@@ -389,7 +389,7 @@
{"digest":"814d9434e1ddf9078612b3b34322f26e9363b469213335007f7e9ba7fee9464e","names":["packages/llm/llm/src/types.ts#ReasoningBlock"],"sources":["packages/llm/llm/src/types.ts:75"]},
{"digest":"82470020b5bfcb1a843e2aa05602af7d37df99e82d01f015c7c589ba054fd89d","names":[],"sources":[]},
{"digest":"824a4aad44a54e245c67196817d67946734a2dc0eee0b0b6834a5b2a6ef352ce","names":[],"sources":[]},
{"digest":"824b1d4d4f007bdaa5eee7994a5db3ede7707c6cd2bf8e2509be176c7609e3bc","names":["packages/llm/llm/src/message.ts#DeveloperMessage"],"sources":["packages/llm/llm/src/message.ts:157"]},
{"digest":"824b1d4d4f007bdaa5eee7994a5db3ede7707c6cd2bf8e2509be176c7609e3bc","names":["packages/llm/llm/src/message.ts#DeveloperMessage"],"sources":["packages/llm/llm/src/message.ts:156"]},
{"digest":"825ca23416b1ea9d81442afead5cf9229a6fa05842f042135cc3aa9710a6a2d8","names":[],"sources":[]},
{"digest":"829a2fb3be6efd4ba36aef8ed2d381a4c6fb2a0aaf50c823a6f3f8290786b809","names":[],"sources":[]},
{"digest":"83079c8a3f733ac3fa603eefa0fbb4737ca4d8b69e7e2e7298b60f9ac4098693","names":[],"sources":["packages/skill/tool-skill/src/index.ts:43"]},
@@ -407,7 +407,7 @@
{"digest":"8620189c8e33582708ece48fd2d20dc4d57912486a17bdbb9aea4c44f7018062","names":[],"sources":[]},
{"digest":"866f7b2dbdc5b421eab3e629312d1c839b75c259633b4b43b50d23bac44d92a0","names":[],"sources":[]},
{"digest":"86d1d0e9cfebb240421187e3dc37fb71cc38a1501885cf32f8f9adef7b0a2bde","names":["packages/subagent/subagent/src/descriptor.ts#SubagentDescriptorData"],"sources":["packages/subagent/subagent/src/descriptor.ts:89"]},
{"digest":"86e1e384495ee09ac2d60c9db3610f1f1fddac2d248f6f1d6000e78054680219","names":["packages/llm/llm/src/message.ts#ContextSnapshotSection"],"sources":["packages/llm/llm/src/message.ts:70"]},
{"digest":"86e1e384495ee09ac2d60c9db3610f1f1fddac2d248f6f1d6000e78054680219","names":["packages/llm/llm/src/message.ts#ContextSnapshotSection"],"sources":["packages/llm/llm/src/message.ts:69"]},
{"digest":"871bfd6f7bb91061246768d3377f3fd58d6b8ea7c31f44c714ae7ab215650d62","names":[],"sources":[]},
{"digest":"87b1a33564b9a4d63b00988a524c12259243953aebb9c9a05127d87b27464df9","names":[],"sources":[]},
{"digest":"88841202942c7683b3b7e5ea6a796047ec326b6701ac23e58cc236d85613b9fa","names":[],"sources":[]},
@@ -507,7 +507,7 @@
{"digest":"ad22a5ca5bbaab2e1440779cd3648e85ddfc6f73b5207394eda699555cf31430","names":[],"sources":[]},
{"digest":"ad3b56aa2fc1ad4250e7399295d34a8eae592e1907e85852e2291b2e498a30bc","names":[],"sources":[]},
{"digest":"ad92f473a03ae72599ff26c86e897c25e16269519ad2a87340f0bea946517af8","names":[],"sources":[]},
{"digest":"ada310bf0bdb8fed51f3b56ea63f6ea6b18bbd587f04fccb63a14ab0b2a24e05","names":["packages/interaction/commands/src/types.ts#CommandSource"],"sources":["packages/core/session/src/types.ts:195","packages/interaction/commands/src/types.ts:75","packages/interaction/commands/src/types.ts:79","packages/llm/llm/src/message.ts:111","packages/session/session-title/src/types.ts:35"]},
{"digest":"ada310bf0bdb8fed51f3b56ea63f6ea6b18bbd587f04fccb63a14ab0b2a24e05","names":["packages/interaction/commands/src/types.ts#CommandSource"],"sources":["packages/core/session/src/types.ts:195","packages/interaction/commands/src/types.ts:75","packages/interaction/commands/src/types.ts:79","packages/llm/llm/src/message.ts:110","packages/session/session-title/src/types.ts:35"]},
{"digest":"ade057f4fdc387aec6426f48704a1f9359cfc6fee13f27735b07f9b215ec16ca","names":[],"sources":[]},
{"digest":"ae63d9d1080ed8945031594d93f8d96651d7101b848719cc3e1475875cd3d649","names":[],"sources":[]},
{"digest":"aec150797b655c5f15ebb7a501454b0c208fbaccec9ace49d7de2171fc02f47d","names":[],"sources":[]},
@@ -573,7 +573,7 @@
{"digest":"c2deb7c9183735d4e0fffddf5c623f4e34daa1c8e96b111982e957dfcbbcf896","names":["packages/workflow/workflow/src/types.ts#WorkflowAgentOutcome"],"sources":["packages/workflow/workflow/src/types.ts:116"]},
{"digest":"c2f49004d9ae38a964e80850c87bc6849d6a872091a1d43e99eedf00c641e2a3","names":[],"sources":[]},
{"digest":"c43b119ce579b3e9983a0d3adc4ba402ebb9ba773d89738a2dab01ecf5813943","names":[],"sources":[]},
{"digest":"c51f0d0a405bb96fcb008c0dc560a512dcd8c3919b6b446937f449ea2f7d21d8","names":["packages/llm/llm/src/message.ts#Message"],"sources":["packages/llm/llm/src/message.ts:196"]},
{"digest":"c51f0d0a405bb96fcb008c0dc560a512dcd8c3919b6b446937f449ea2f7d21d8","names":["packages/llm/llm/src/message.ts#Message"],"sources":["packages/llm/llm/src/message.ts:195"]},
{"digest":"c5228b7a55498d84f529591744a0ab26e0b93ade18a70a26db1377a1ecfa6b49","names":[],"sources":[]},
{"digest":"c55827fba7018198772c50e37cb7d3f60a3d8bb6e94b07de72dee0d9f8968005","names":[],"sources":["packages/interaction/user-questions/src/types.ts:134"]},
{"digest":"c5687b1313206a6ff334066047b6a0681611467dc4df8c5a8e71d0b6df39311f","names":[],"sources":[]},
@@ -605,7 +605,7 @@
{"digest":"d85590a5675c6e2fd8164e5792a6cceac714605b8ac228adae5ee668facb1490","names":[],"sources":[]},
{"digest":"d8a476d2c6fd30df6ec0e799f91716d1518c780d23b4121dce545abfcfb7c5a5","names":[],"sources":[]},
{"digest":"d9196086e41e4dd5c2ce87f5c25529c8112a1731d258cf0728747d41a9ee3241","names":[],"sources":[]},
{"digest":"d9c462b9f62fdd3efc76a44b9524dc8781f6b91cd9c7e584b17d971defafebab","names":["packages/llm/llm/src/message.ts#ToolMessageSource"],"sources":["packages/llm/llm/src/message.ts:29"]},
{"digest":"d9c462b9f62fdd3efc76a44b9524dc8781f6b91cd9c7e584b17d971defafebab","names":["packages/llm/llm/src/message.ts#ToolMessageSource"],"sources":["packages/llm/llm/src/message.ts:28"]},
{"digest":"d9edf1862e4471d6ad8a106a3f4160e0643874368707d50ecd8e27e5ee7a2567","names":[],"sources":[]},
{"digest":"da60ed58a8fa23d7aa4920ab5c1f4e3d28109cb0797ef9e5c8b125721b847582","names":[],"sources":["packages/session/working-directory/src/index.ts:55"]},
{"digest":"dacf3d5f3e4ff619c1320e64a48dec5e7ecd7870bece65fbd449a0e63adfa521","names":[],"sources":[]},
@@ -614,7 +614,7 @@
{"digest":"db874d463b0fdec77e9da1c4568f37cb70bd6596781eb93800db44fb8a116965","names":[],"sources":[]},
{"digest":"dba54c09c6e7aafc9acbed7792ecc920d99f92d0784aeeed10af55f7fe0bc8cd","names":[],"sources":["packages/core/tool-executor-ptc/src/types.ts:68"]},
{"digest":"dbdafceb9a900183cccc80596498d386f3bf7bddead2b8cfde68453aa4739edc","names":[],"sources":[]},
{"digest":"dca3ba43188095fa7342e49e6c206d4685125497d4767595bf12a62ea2fd73ce","names":["packages/llm/llm/src/message.ts#MessageSource"],"sources":["packages/llm/llm/src/message.ts:136"]},
{"digest":"dca3ba43188095fa7342e49e6c206d4685125497d4767595bf12a62ea2fd73ce","names":["packages/llm/llm/src/message.ts#MessageSource"],"sources":["packages/llm/llm/src/message.ts:135"]},
{"digest":"dd00cdccd0ba487b92362ef67db58cd264f48c1bfd368291424a1da9a899489a","names":[],"sources":[]},
{"digest":"dd2780e7e07684332f7a9ab047237798d260e7eaffb1321cb38eca695d184c3d","names":[],"sources":[]},
{"digest":"dd5ee8762bd8a14b6c6bffedd1753e4e78505bb0f9ea1621018d03a54eef59d5","names":[],"sources":[]},
@@ -644,7 +644,7 @@
{"digest":"e5d3828df1ec3e2a66879de0659e0f4866d9cfffc00825ee731a66f8a0c03d98","names":[],"sources":[]},
{"digest":"e6063d0451dc02026fd9b54ad3f77c7b1b6392ad3e872a7737ac84e13ca72344","names":["packages/schedule/schedule/src/types.ts#EveryScheduleDispatchChange"],"sources":["packages/schedule/schedule/src/types.ts:220"]},
{"digest":"e6411b09c1d982f789bf741ca74e2bea69df56029847f86a6148e722039ee732","names":[],"sources":[]},
{"digest":"e72269f931559e901e5e8fe1cfcbd0669fb795f43cc038ff39fba62f60403c33","names":[],"sources":["packages/llm/llm/src/assistant-stream.ts:21"]},
{"digest":"e72269f931559e901e5e8fe1cfcbd0669fb795f43cc038ff39fba62f60403c33","names":[],"sources":["packages/llm/llm/src/assistant-stream.ts:20"]},
{"digest":"e75916628f3f10c2d50658bd143052a46285fbf1a9a700ba54947614603d26b4","names":[],"sources":[]},
{"digest":"e7ce49f12953583fad217bf80fb9f1463acff2c3e9471a823782661675fb124c","names":[],"sources":[]},
{"digest":"e7e154d47d5fbc5366330fb4dade1f108c6dfe4335044d21ded14b7bf1dce084","names":[],"sources":[]},
@@ -691,7 +691,7 @@
{"digest":"f90eb4ab2d3897bc20c521a038e3119d581f791ec974b1a0004f63a8ab9e232d","names":[],"sources":["packages/core/session/src/types.ts:294","packages/deliverables/workspace-changes/src/types.ts:106"]},
{"digest":"f97f47b0eb87905ed77cc27c5e4ed75ef805cb372c98905253709de1aab9b63c","names":[],"sources":[]},
{"digest":"f9cfc89e8fe085b4fcc9cd32b74b6f103608c54d7d8cd97b47c01de34f252ba3","names":[],"sources":[]},
{"digest":"fa87537f4a9c1e25602990a8bf686b383e9e00352ec8946e16ae24ba7c1625be","names":["packages/llm/llm/src/message.ts#AssistantMessage"],"sources":["packages/llm/llm/src/message.ts:167"]},
{"digest":"fa87537f4a9c1e25602990a8bf686b383e9e00352ec8946e16ae24ba7c1625be","names":["packages/llm/llm/src/message.ts#AssistantMessage"],"sources":["packages/llm/llm/src/message.ts:166"]},
{"digest":"fab2bb09bc5e3b9db0685e8f5500b029af1a2b33e70bc703c1d5d0f596fbc1fd","names":["packages/sandbox/sandbox/src/index.ts#SandboxMode"],"sources":["packages/sandbox/sandbox/src/index.ts:38"]},
{"digest":"fab35c4520883c0d69e42d079c9f543fc5ac7a2d15b537b5572fcd99059c7018","names":[],"sources":[]},
{"digest":"fb5e0517050d2c6d40e5b8145db1f7c5ca7044d5d50fada6ff80e0b22c6ca973","names":[],"sources":[]},
@@ -0,0 +1,16 @@
# Bilingual-pair consistency record for guide.md (docs/i18n/README.md): per heading
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
# After editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write docs/upgrade-guide/v0.2.2-rc.2/package-export-cleanup/guide.md
/:
en: 339d7b0b02737b51
zh: 838c1190f28a0565
/update-removed-package-subpath-imports:
en: 1adc7e7bb2f8b4e9
zh: 4bb7adb66c934614
/update-removed-package-subpath-imports/change:
en: 600dde54ce4b5132
zh: 1b64aaf2a34628e2
/update-removed-package-subpath-imports/migration:
en: 9077ae29fb66d460
zh: a07779cf73666b1d
@@ -0,0 +1,36 @@
---
kind: upgrade-guide
description: Update removed package subpaths; retained identity constructors remain available.
---
# Update removed package subpath imports
English | [中文](guide.zh.md)
## Change
Upgrading from v0.2.2-rc.2 removes the seven package subpaths below. Existing identity-only string constructors remain available at retained entrypoints; their implementations and branded type definitions are preserved. The `/types` entries re-export those types without runtime values. Persisted strings, Session formats, validation and ID generation do not change.
| Removed subpath | Type import or supported replacement |
|---|---|
| `@deepseek-ai/dsh-commands/brand` | `@deepseek-ai/dsh-commands/types` |
| `@deepseek-ai/dsh-browser-use/brand` | `@deepseek-ai/dsh-browser-use/types` |
| `@deepseek-ai/dsh-computer-use/brand` | `@deepseek-ai/dsh-computer-use/types` |
| `@deepseek-ai/dsh-jobs/brand` | `@deepseek-ai/dsh-jobs/types` |
| `@deepseek-ai/dsh-llm/brand` | `@deepseek-ai/dsh-llm/types` |
| `@deepseek-ai/dsh-tools/presentation` | Type imports from `@deepseek-ai/dsh-tools` |
| `@deepseek-ai/dsh-file-reference-local/search` | The `fileReferences` service; no replacement public search helper |
## Migration
1. Move identifier type imports from the five `/brand` paths to the corresponding `/types` entries, using `import type`. These entries do not replace runtime constructor imports.
2. For existing constructor calls from the removed paths, commands, jobs and LLM callers can import the retained constructor from the package root. Browser/computer provider-name constructors were not root exports; use `brandString<ProviderName>(value)` with the type from `/types`. Add `@deepseek-ai/dsh-brand` as a direct dependency when importing its runtime helper. Keep validation and UUID/counter generation where they already occur.
```ts
import { brandString } from '@deepseek-ai/dsh-brand'
import type { BrowserUseProviderName } from '@deepseek-ai/dsh-browser-use/types'
const providerName = brandString<BrowserUseProviderName>('my-browser-provider')
```
3. Compile and run your plugin/SDK tests, then load plain-JavaScript fixtures under Node. Check for `ERR_PACKAGE_PATH_NOT_EXPORTED` and missing named-export errors; TypeScript checking alone does not cover `.mjs` consumers.
@@ -0,0 +1,36 @@
---
kind: upgrade-guide
description: 更新已移除的包子路径;保留入口上的标识符构造函数仍可用。
---
# 更新已移除的包子路径导入
[English](guide.md) | 中文
## 变更
从 v0.2.2-rc.2 升级会移除下列七个包子路径。既有字符串恒等构造函数在保留的入口上仍然可用,其实现和品牌类型定义均保留。`/types` 入口仅再导出这些类型,不导出运行时值。持久化字符串、Session 格式、校验和 ID 生成行为不变。
| 已移除子路径 | 类型导入或受支持的替代方式 |
|---|---|
| `@deepseek-ai/dsh-commands/brand` | `@deepseek-ai/dsh-commands/types` |
| `@deepseek-ai/dsh-browser-use/brand` | `@deepseek-ai/dsh-browser-use/types` |
| `@deepseek-ai/dsh-computer-use/brand` | `@deepseek-ai/dsh-computer-use/types` |
| `@deepseek-ai/dsh-jobs/brand` | `@deepseek-ai/dsh-jobs/types` |
| `@deepseek-ai/dsh-llm/brand` | `@deepseek-ai/dsh-llm/types` |
| `@deepseek-ai/dsh-tools/presentation` | 从 `@deepseek-ai/dsh-tools` 导入类型 |
| `@deepseek-ai/dsh-file-reference-local/search` | 使用 `fileReferences` 服务;没有替代的公开搜索辅助值 |
## 迁移
1. 将标识符类型导入从五个 `/brand` 路径移至对应 `/types` 入口,并使用 `import type`。这些入口不能替代运行时构造函数导入。
2. 对原来从已移除路径调用构造函数的代码,commands、jobs 和 LLM 调用方可以改从包根入口导入保留的构造函数。Browser/computer provider-name 构造函数原本不是根出口,应使用 `brandString<ProviderName>(value)` 并从 `/types` 导入类型。导入这个运行时辅助函数时,应将 `@deepseek-ai/dsh-brand` 加为直接依赖。保留原有位置上的校验和 UUID/计数器生成操作。
```ts
import { brandString } from '@deepseek-ai/dsh-brand'
import type { BrowserUseProviderName } from '@deepseek-ai/dsh-browser-use/types'
const providerName = brandString<BrowserUseProviderName>('my-browser-provider')
```
3. 编译并运行插件/SDK 测试,再用 Node 加载纯 JavaScript fixture。检查是否出现 `ERR_PACKAGE_PATH_NOT_EXPORTED` 或缺少具名出口错误;仅靠 TypeScript 检查覆盖不到 `.mjs` 消费者。
@@ -7,7 +7,7 @@
*/
import { notifySubscribers } from '@deepseek-ai/dsh-client-store'
import type { JobId } from '@deepseek-ai/dsh-jobs/brand'
import type { JobId } from '@deepseek-ai/dsh-jobs/types'
import type { JobView } from '@deepseek-ai/dsh-jobs/view'
import type { SessionId } from '@deepseek-ai/dsh-session/types'
import type { JobFollowFrame } from '../types.ts'
@@ -10,7 +10,7 @@
import { Service, type Context } from '@deepseek-ai/cordis'
import { RemoteStreamCarrierError, type ClientRemote } from '@deepseek-ai/dsh-api-gateway/client'
import type { RemoteResult } from '@deepseek-ai/dsh-typert-protocol'
import type { JobId } from '@deepseek-ai/dsh-jobs/brand'
import type { JobId } from '@deepseek-ai/dsh-jobs/types'
import type { SessionId } from '@deepseek-ai/dsh-session/types'
import type { JobKillRequest, JobKillValue, JobFollowFrame, JobFollowRequest, JobListFrame, JobListRequest } from '../types.ts'
import type { ClientJobsModel, JobsSource } from './model.ts'
+1 -1
View File
@@ -1,6 +1,6 @@
/** Per-job observation generations: anchor, coalesced output, terminal status. */
import type { JobId } from '@deepseek-ai/dsh-jobs/brand'
import type { JobId } from '@deepseek-ai/dsh-jobs/types'
import type { JobChunk, JobRegistry, JobStatus, JobView } from '@deepseek-ai/dsh-jobs'
import type { JobFollowFrame, JobFollowRequest } from './types.ts'
import { OutputWaiter, sleep } from './wake.ts'
+1 -1
View File
@@ -5,7 +5,7 @@
* @module @deepseek-ai/dsh-api-job-controller/types
*/
import type { JobId } from '@deepseek-ai/dsh-jobs/brand'
import type { JobId } from '@deepseek-ai/dsh-jobs/types'
import type { JobChunk, JobView } from '@deepseek-ai/dsh-jobs/view'
import type { SessionId } from '@deepseek-ai/dsh-session/types'
@@ -1,6 +1,6 @@
import { describe, expect, it, vi } from 'vitest'
import { Context } from '@deepseek-ai/cordis'
import type { JobId } from '@deepseek-ai/dsh-jobs/brand'
import type { JobId } from '@deepseek-ai/dsh-jobs/types'
import type { SessionId } from '@deepseek-ai/dsh-session/types'
import { ClientJobsModel } from '../src/client/model.ts'
import { ClientJobs } from '../src/client/service.ts'
@@ -8,7 +8,7 @@
* invisible out here.
*/
import type { FileAttachmentRef, ImageAttachmentRef } from '@deepseek-ai/dsh-attachment'
import type { MessageId } from '@deepseek-ai/dsh-llm/brand'
import type { MessageId } from '@deepseek-ai/dsh-llm/types'
import type { SessionId, SessionSeq } from '@deepseek-ai/dsh-session/types'
import type { RemoteResult } from '@deepseek-ai/dsh-typert-protocol'
import type { ObservableSnapshot } from '@deepseek-ai/dsh-client-store'
@@ -6,7 +6,7 @@ import type {
} from '../../types.ts'
import { expandAssistantStream } from '@deepseek-ai/dsh-llm/assistant-stream'
import type { AssistantStreamRecord } from '@deepseek-ai/dsh-llm/assistant-stream'
import type { LlmAttemptId } from '@deepseek-ai/dsh-llm/brand'
import type { LlmAttemptId } from '@deepseek-ai/dsh-llm/types'
import type {
SessionAssistantSettlementEntry,
SessionEventLikeEntry,
@@ -5,7 +5,7 @@ import type { InboxState, InboxTarget } from '@deepseek-ai/dsh-agent/types'
import { randomUUID } from '@deepseek-ai/dsh-util-crypto'
import type { FileAttachmentRef, ImageAttachmentRef } from '@deepseek-ai/dsh-attachment'
import type { SubagentAddress } from '@deepseek-ai/dsh-subagent/client'
import type { MessageId } from '@deepseek-ai/dsh-llm/brand'
import type { MessageId } from '@deepseek-ai/dsh-llm/types'
import type { UserMessage } from '@deepseek-ai/dsh-llm/types'
import { SessionLogOffset, SessionSeq, type SessionId } from '@deepseek-ai/dsh-session/types'
import { SessionEventStream } from '../transport.ts'
+1 -1
View File
@@ -6,7 +6,7 @@ import type {
ImageAttachmentLimits, ImageAttachmentRef, ImageMediaType,
} from '@deepseek-ai/dsh-attachment'
import type { Branded } from '@deepseek-ai/dsh-brand'
import type { LlmAttemptId, MessageId } from '@deepseek-ai/dsh-llm/brand'
import type { LlmAttemptId, MessageId } from '@deepseek-ai/dsh-llm/types'
import type { LlmModelBadge, TextBlock } from '@deepseek-ai/dsh-llm'
import type { SessionId, SessionSeq, SessionSeqCursor } from '@deepseek-ai/dsh-session/types'
import type { SessionProjectionMap, SessionProjectionSummaryExcluded, SessionProjectionSummaryValues } from '@deepseek-ai/dsh-session-projection/types'
@@ -6,7 +6,7 @@ import {
type SessionLiveEventEntry, type SessionTransientEventEntry,
} from '../src/client/contract/events.ts'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { LlmAttemptId } from '@deepseek-ai/dsh-llm/brand'
import type { LlmAttemptId } from '@deepseek-ai/dsh-llm/types'
import type { ISession } from '../src/client/contract/session.ts'
import type { ProjectionsBaseline } from '../src/client/sessions/projection-store.ts'
import { ProjectionValueStore } from '../src/client/sessions/projection-store.ts'
@@ -2,7 +2,7 @@
import { describe, expect, it } from 'vitest'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/types'
import type { SessionHistoryRecord } from '../src/types.ts'
import {
historyEntries,
@@ -24,7 +24,7 @@ import SessionStore, { SessionSeq } from '@deepseek-ai/dsh-session'
import type { Session, SessionEvent, SessionId } from '@deepseek-ai/dsh-session'
import * as JsonlSessionPersistence from '@deepseek-ai/dsh-session-persistence-jsonl'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/types'
// Side-effect type imports: the configuration-event SessionEventMap merges.
import type {} from '@deepseek-ai/dsh-permission-presets'
import type {} from '@deepseek-ai/dsh-sandbox-policy'
@@ -6,7 +6,7 @@ import { Context } from '@deepseek-ai/cordis'
import SystemPrompt from '@deepseek-ai/dsh-system-prompt'
import ToolRuntime, { type ToolExecutionResult } from '@deepseek-ai/dsh-tools'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/types'
import type { Agent } from '@deepseek-ai/dsh-agent'
import SandboxPolicy from '@deepseek-ai/dsh-sandbox-policy'
import { Session, type SessionId, SESSION_FORMAT_VERSION } from '@deepseek-ai/dsh-session'
@@ -5,7 +5,7 @@ import { Context, Service } from '@deepseek-ai/cordis'
import SystemPrompt from '@deepseek-ai/dsh-system-prompt'
import ToolRuntime from '@deepseek-ai/dsh-tools'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/types'
import { afterEach, expect, it, onTestFinished, vi } from 'vitest'
import PluginMarket from '../src/index.ts'
import * as tool from '../src/tools.ts'
@@ -15,8 +15,8 @@
en: d152484eb41ac6b4
zh: f14f34fce35a8d90
/deepseek-ai-dsh-browser-use/use-this-package:
en: 10aeb1a586a0fabe
zh: c8613a3a57591d6a
en: 2a4ece799bdfbbd6
zh: cdea47ec3e8fe51e
/deepseek-ai-dsh-browser-use/understand-the-implementation:
en: c4d9ec0df22a30ea
zh: 06057e2a56cebbb9
+1 -1
View File
@@ -31,7 +31,7 @@ Mount the service once beside the chosen provider in a Cordis composition:
- name: '@deepseek-ai/dsh-browser-use'
```
The service has no configuration. Provider plugins inject `browserUse` and call `ctx.browserUse.register(brandString<BrowserUseProviderName>(name))`, using `brandString` from `@deepseek-ai/dsh-brand` and the type from `@deepseek-ai/dsh-browser-use/brand`. The returned effect disposer releases that registration.
The service has no configuration. Provider plugins inject `browserUse` and call `ctx.browserUse.register(brandString<BrowserUseProviderName>(name))`, using `brandString` from `@deepseek-ai/dsh-brand` and the type from `@deepseek-ai/dsh-browser-use/types`. The returned effect disposer releases that registration.
Providers stop admitting tool calls, close their resources, and await owned work before releasing the registration. `ctx.browserUse.providerName` reports the registered name until release.
@@ -31,7 +31,7 @@ kind: "package-reference"
- name: '@deepseek-ai/dsh-browser-use'
```
服务没有配置。提供方插件注入 `browserUse` 并调用 `ctx.browserUse.register(brandString<BrowserUseProviderName>(name))`,其中 `brandString` 来自 `@deepseek-ai/dsh-brand`,类型来自 `@deepseek-ai/dsh-browser-use/brand`。返回的 effect 清理器释放该注册。
服务没有配置。提供方插件注入 `browserUse` 并调用 `ctx.browserUse.register(brandString<BrowserUseProviderName>(name))`,其中 `brandString` 来自 `@deepseek-ai/dsh-brand`,类型来自 `@deepseek-ai/dsh-browser-use/types`。返回的 effect 清理器释放该注册。
提供方 在释放注册前停止接收工具调用、关闭资源并等待自己拥有的工作结束。`ctx.browserUse.providerName` 在释放之前持续报告已注册名称。
@@ -21,9 +21,9 @@
"./src/*": "./src/*",
"./locale/*.json": "./locale/*.json",
"./package.json": "./package.json",
"./brand": {
"types": "./lib/types/brand.d.ts",
"default": "./lib/types/brand.js"
"./types": {
"types": "./lib/types/types.d.ts",
"default": "./lib/types/types.js"
}
},
"files": [
@@ -1,4 +1,4 @@
/** Browser-use provider identities. @module @deepseek-ai/dsh-browser-use/brand */
/** Browser-use provider identities. @module @deepseek-ai/dsh-browser-use/src/brand.ts */
import type { Branded } from '@deepseek-ai/dsh-brand'
@@ -4,7 +4,7 @@
*/
import { Context, Service } from '@deepseek-ai/cordis'
import type { BrowserUseProviderName } from './brand.ts'
import type { BrowserUseProviderName } from './types.ts'
declare module '@deepseek-ai/cordis' {
interface Context {
@@ -0,0 +1,2 @@
/** Public type-only entry for browser-use identities. */
export type { BrowserUseProviderName } from './brand.ts'
@@ -2,7 +2,7 @@ import { Context } from '@deepseek-ai/cordis'
import { describe, expect, it } from 'vitest'
import BrowserUseRegistry from '../src/index.ts'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { BrowserUseProviderName } from '../src/brand.ts'
import type { BrowserUseProviderName } from '../src/types.ts'
const MCP = brandString<BrowserUseProviderName>('playwright-mcp')
const NATIVE = brandString<BrowserUseProviderName>('stagehand')
+1 -1
View File
@@ -10,7 +10,7 @@ export type {
} from '../rpc.ts'
export { RpcId, transportError } from '../rpc.ts'
export type { SessionId, SessionEvent } from '@deepseek-ai/dsh-session/types'
export type { MessageId } from '@deepseek-ai/dsh-llm/brand'
export type { MessageId } from '@deepseek-ai/dsh-llm/types'
export type { ContentBlock, StreamChunk } from '@deepseek-ai/dsh-llm/types'
import type { RpcResponse, RpcResult } from '../rpc.ts'
@@ -1,6 +1,6 @@
/** Desktop analytics fields selected by product event owners. */
import type { SessionId } from '@deepseek-ai/dsh-session/types'
import type { MessageId } from '@deepseek-ai/dsh-llm/brand'
import type { MessageId } from '@deepseek-ai/dsh-llm/types'
/** Event names and their selected product attributes. */
export interface ProductEventMap {
@@ -124,7 +124,7 @@ export const zh: Record<AgentPresetSettingsKey, string> = {
// re-exported here so every surface in this plugin reads one path; the
// Settings plugin list inlines the same fold over this plugin's dictionaries.
export { isBuiltInPreset, presetDisplayText } from '@deepseek-ai/dsh-agent-preset-registry/display'
export type { PresetDisplaySource, PresetDisplayText } from '@deepseek-ai/dsh-agent-preset-registry/display'
export type { PresetDisplaySource, PresetDisplayText } from '@deepseek-ai/dsh-agent-preset-registry/types'
/** Japanese copy, checked against the English keys. */
export const ja = {
@@ -2,7 +2,7 @@
import { afterEach, describe, expect, it } from 'vitest'
import { cleanup, fireEvent, render } from '@testing-library/react'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/types'
import { makeTranslate } from '@deepseek-ai/dsh-client-test-runtime'
import { IconUsersOutlineRegular } from '@deepseek-ai/dsh-client-ui-primitives'
import { TeamCommandRow, type TeamCommandRowProps } from '../src/client/TeamCommandRow.tsx'
@@ -1,6 +1,6 @@
/** Chat-owned Slot declarations and composed component props. */
import type { RefObject } from 'react'
import type { MessageId } from '@deepseek-ai/dsh-llm/brand'
import type { MessageId } from '@deepseek-ai/dsh-llm/types'
import type { SessionId, SessionSeq } from '@deepseek-ai/dsh-session/types'
import type { PendingSubmission } from '@deepseek-ai/dsh-api-session-controller/client'
import type { FileAttachmentRef } from '@deepseek-ai/dsh-attachment'
@@ -1,5 +1,5 @@
import type { AssistantNodeInjected } from '../src/client/chat/AssistantNodeView.tsx'
import type { MessageId } from '@deepseek-ai/dsh-llm/brand'
import type { MessageId } from '@deepseek-ai/dsh-llm/types'
import { apply as applyMenus, inject as injectMenus } from '@deepseek-ai/dsh-client-ui-context-menu/client'
// @vitest-environment jsdom
/** Chat inject factories exercised over independently mounted Conversation and Chat plugins. */
@@ -5,7 +5,7 @@ import { ChatViewport } from '../src/client/chat/use-chat-viewport.ts'
import type { ProcessGroupData } from '../src/client/contract/process-groups.ts'
import type { InboxState } from '@deepseek-ai/dsh-agent/types'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { MessageId } from '@deepseek-ai/dsh-llm/brand'
import type { MessageId } from '@deepseek-ai/dsh-llm/types'
import type { GlobalStandardProps, PropsRenderFactories, PropsRenderSlots } from '@deepseek-ai/dsh-client-ui-slots'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import { act, cleanup, fireEvent, render, screen, waitFor, within } from '@testing-library/react'
@@ -1,6 +1,6 @@
import { describe, expect, it } from 'vitest'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/types'
import type { ChatNode } from '../src/client/contract/chat-nodes.ts'
import { isVisibleChatNode } from '../src/client/contract/chat-visibility.ts'
@@ -14,7 +14,7 @@ import type { SessionEvent } from '@deepseek-ai/dsh-session/types'
import { inspectSystemPrompt } from '../../ui-conversation/src/client/contract/system-prompt.ts'
import { AssistantStreamAccumulator } from '@deepseek-ai/dsh-llm/assistant-stream'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { LlmAttemptId, ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { LlmAttemptId, ToolCallId } from '@deepseek-ai/dsh-llm/types'
import type { StreamChunk } from '@deepseek-ai/dsh-llm'
import { hasAssistantReplyContent } from '../src/client/contract/assistant-content.ts'
import { assistantDefinition } from '../src/client/conversation-nodes/assistant.ts'
@@ -11,7 +11,7 @@ import { SlotTestRuntime, stubConfigForm, usePinnedBrowserLanguages } from '@dee
import { apply as applyConversation, inject as injectConversation } from '@deepseek-ai/dsh-client-ui-conversation/client'
import { apply as applyChat, inject as injectChat } from '@deepseek-ai/dsh-client-ui-chat/client'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { LlmAttemptId, MessageId } from '@deepseek-ai/dsh-llm/brand'
import type { LlmAttemptId, MessageId } from '@deepseek-ai/dsh-llm/types'
import { SessionSeq, type SessionId } from '@deepseek-ai/dsh-session/types'
import type { WorkspaceId } from '@deepseek-ai/dsh-workspace/types'
import { CHAT_SETTINGS_NAMESPACE, type ChatSettings } from '../src/chat-settings.ts'
@@ -1,6 +1,6 @@
import { describe, expect, it, vi } from 'vitest'
import { SessionSeq } from '@deepseek-ai/dsh-session/types'
import type { MessageId } from '@deepseek-ai/dsh-llm/brand'
import type { MessageId } from '@deepseek-ai/dsh-llm/types'
import type { ConversationTimelineSnapshot, TurnLocation } from '@deepseek-ai/dsh-client-ui-conversation/client'
import { PartialArguments } from '@deepseek-ai/dsh-util-values'
import type { ChatConversationViewNode, ChatNode } from '../src/client/contract/chat-nodes.ts'
@@ -8,7 +8,7 @@
import { describe, expect, it } from 'vitest'
import type { SessionId } from '@deepseek-ai/dsh-api-remotes/client'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { CommandDefinitionId } from '@deepseek-ai/dsh-commands/brand'
import type { CommandDefinitionId } from '@deepseek-ai/dsh-commands/types'
import type { CommandDescriptor } from '../src/client/directory.ts'
import { CommandDirectory } from '../src/client/directory.ts'
@@ -10,8 +10,7 @@
import { Context } from '@deepseek-ai/cordis'
import { describe, expect, it, onTestFinished, vi } from 'vitest'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { CommandDefinitionId } from '@deepseek-ai/dsh-commands/brand'
import type { CommandResult } from '@deepseek-ai/dsh-commands/types'
import type { CommandDefinitionId, CommandResult } from '@deepseek-ai/dsh-commands/types'
import { scopeOf } from '@deepseek-ai/dsh-api-session-controller/client'
import type { SessionId } from '@deepseek-ai/dsh-session/types'
import { RemoteError, TestRemote, TestSessions } from '@deepseek-ai/dsh-client-test-runtime'
@@ -21,8 +21,8 @@
en: 4a094cd97426ad18
zh: 5faadddb7e2b0a43
/deepseek-ai-dsh-client-ui-conversation/shell-and-standard-props:
en: 7c45c9c9767b3184
zh: 290037aa8a71b1df
en: 25dd776b1c1562f1
zh: 1efe8e6e56e73153
/deepseek-ai-dsh-client-ui-conversation/temporary-composer-entries:
en: 59cd63057dfb6eeb
zh: b2e2c86e810b7bb8
+1 -1
View File
@@ -120,7 +120,7 @@ Active transcripts in the main occurrence expose content-width drag handles in t
The width-handle indicator follows the pointer only during a captured drag; ordinary hover leaves its position unchanged.
The resident composer survives no-Session and Session transitions. Whitespace hides its placeholder; a whitespace-only draft without attachments cannot be sent. The no-Session state keeps the same composer surface mounted but inert while the Workspace picker connects a blank Session. The surface is a shell-owned Lexical editor: reference chips are atomic decorator nodes carrying the owner's serialization identity (submission expands them through the owner codec), the claimed slash command is an atomic leading chip that carries its claim, folder text references carry the folder glyph as an icon prefix, and the draft's text and semantic references are persisted by the per-Session Conversation store. QueueDock reads `next-turn` from the Session `inbox` projection, including cold recovered messages, and excludes only requestIds still owned by local transcript submissions. Other queued rows retain their normal display and actions. Queue operations address exact queue occurrences through the scoped `ctx.conversation` service; queue previews use the [UserText Factory](#sent-user-text) (wire session forms fold to their label) and show local or durable images and files in original attachment order. Images use thumbnails; files use compact name-and-size cards. An edit exposes the literal sent text in the ui-primitives `InlineEditor`, so line breaks survive re-editing. Durable thumbnails resolve through the session image URL cache. Busy Enter behavior is stored in the Host-backed `ui-conversation` settings namespace. The composer keymap arbitrates the trigger menu's keys through the slash pipeline — Tab settles the highlighted completion (or drills a drillable one), Escape and Shift+Tab leave the menu without settling — and leaves every other key to the editor. An overlay that takes the keyboard hands it back through `SessionInput.focus()`, which rides Lexical's own focus so the caret returns where the draft left it rather than at the start.
The resident composer survives no-Session and Session transitions. Whitespace hides its placeholder; a whitespace-only draft without attachments cannot be sent. The no-Session state keeps the same composer surface mounted but inert while the Workspace picker connects a blank Session. The surface is a shell-owned Lexical editor: reference chips are atomic decorator nodes carrying the owner's serialization identity (submission expands them through the owner codec), the claimed slash command is an atomic leading chip that carries its claim, folder text references carry the folder glyph as an icon prefix, and the draft's text and semantic references are persisted by the per-Session Conversation store. QueueDock reads `next-turn` from the Session `inbox` projection, including cold recovered messages, and excludes only requestIds still owned by local transcript submissions. Other queued rows retain their normal display and actions. Queue operations address exact queue occurrences through the scoped `ctx.conversation` service; queue previews use the [UserText Factory](#sent-user-text) (wire session forms fold to their label) and show local or durable images and files in original attachment order. Images use thumbnails; files use compact name-and-size cards. An edit exposes the literal sent text in the ui-primitives `InlineEditor`, so line breaks survive re-editing. Durable thumbnails resolve through the session image URL cache. Busy Enter behavior is stored in the Host-backed `ui-conversation` settings namespace. The composer keymap arbitrates the trigger menu's keys through the slash pipeline — Tab settles the highlighted completion (or drills a drillable one), Escape and Shift+Tab leave the menu without settling — and leaves every other key to the editor. On Apple platforms, Home and End move the caret to the start or end of the current visual line instead of scrolling the conversation, and Shift extends the selection; End immediately before a quote takes the same path as Cmd+Right to the end of that line. An overlay that takes the keyboard hands it back through `SessionInput.focus()`, which rides Lexical's own focus so the caret returns where the draft left it rather than at the start.
In narrow browser settings, the busy-state Enter preference uses a smaller label gutter. Windows and macOS desktop windows retain the standard spacing.
+1 -1
View File
@@ -120,7 +120,7 @@ Session 首次绑定或缓存的 Session 成为 current 时,shell 会在渲染
宽度拖拽条的指示线只在已捕获指针的拖拽期间跟随指针,普通悬停不改变其位置。
常驻 composer 在无 Session 与有 Session 之间保持挂载。输入空白字符会隐藏占位提示;没有附件的纯空白草稿无法发送。无 Session 时,同一个编辑器表面保持 inert,Workspace picker 连接 blank Session。该表面是 shell 所有的 Lexical 编辑器:引用 chip 是携带 owner 序列化身份的原子 decorator 节点(提交时经 owner codec 展开),已认领的 slash command 是携带认领的行首原子 chip,文件夹文本引用以图标前缀携带文件夹图形,草稿文字和引用语义字段由逐 Session Conversation store 持久化。QueueDock 从 Session 的 `inbox` 投影读取 `next-turn`,包含从冷状态恢复的消息,仅排除仍由本地 transcript 提交承接的 requestId。其他排队行保留正常展示和操作。Queue 操作通过 scoped `ctx.conversation` service 寻址准确的 queue occurrence;queue 预览使用 [UserText Factory](#sent-user-text)(wire 会话形式折叠为其标签),并按原始附件顺序展示本地或持久化的图片和文件。图片使用缩略图,文件使用紧凑的名称与大小卡片。编辑态在 ui-primitives 的 `InlineEditor` 中展示字面发送文本,因此重新编辑不会丢失换行。持久化缩略图通过会话图片 URL 缓存解析。繁忙时 Enter 行为保存在 Host-backed `ui-conversation` settings namespace。 composer 键盘映射经斜杠流水线裁决触发菜单的按键——Tab 确认高亮补全项(可下钻项则下钻),Escape 与 Shift+Tab 离开菜单且不选定——其余按键交给编辑器自身。 接管键盘的浮层通过 `SessionInput.focus()` 把键盘还回来,该路径走 Lexical 自己的 focus,因此光标回到草稿原来的位置而不是开头。
常驻 composer 在无 Session 与有 Session 之间保持挂载。输入空白字符会隐藏占位提示;没有附件的纯空白草稿无法发送。无 Session 时,同一个编辑器表面保持 inert,Workspace picker 连接 blank Session。该表面是 shell 所有的 Lexical 编辑器:引用 chip 是携带 owner 序列化身份的原子 decorator 节点(提交时经 owner codec 展开),已认领的 slash command 是携带认领的行首原子 chip,文件夹文本引用以图标前缀携带文件夹图形,草稿文字和引用语义字段由逐 Session Conversation store 持久化。QueueDock 从 Session 的 `inbox` 投影读取 `next-turn`,包含从冷状态恢复的消息,仅排除仍由本地 transcript 提交承接的 requestId。其他排队行保留正常展示和操作。Queue 操作通过 scoped `ctx.conversation` service 寻址准确的 queue occurrence;queue 预览使用 [UserText Factory](#sent-user-text)(wire 会话形式折叠为其标签),并按原始附件顺序展示本地或持久化的图片和文件。图片使用缩略图,文件使用紧凑的名称与大小卡片。编辑态在 ui-primitives 的 `InlineEditor` 中展示字面发送文本,因此重新编辑不会丢失换行。持久化缩略图通过会话图片 URL 缓存解析。繁忙时 Enter 行为保存在 Host-backed `ui-conversation` settings namespace。 composer 键盘映射经斜杠流水线裁决触发菜单的按键——Tab 确认高亮补全项(可下钻项则下钻),Escape 与 Shift+Tab 离开菜单且不选定——其余按键交给编辑器自身。 在 Apple 平台上,Home 与 End 把光标移到当前视觉行的行首或行末,而不是滚动对话,按住 Shift 时扩展选区;光标紧贴在 quote 左侧时,End 与 Cmd+Right 走同一路径移到该行末尾。 接管键盘的浮层通过 `SessionInput.focus()` 把键盘还回来,该路径走 Lexical 自己的 focus,因此光标回到草稿原来的位置而不是开头。
窄屏浏览器设置中,繁忙时 Enter 偏好的标签与控件间距缩小;Windows 和 macOS 桌面窗口保留标准间距。
@@ -2,8 +2,8 @@
// substructure references. Stable node and location stores make old snapshots
// live readers rather than time-point views.
import type { CommandId } from '@deepseek-ai/dsh-commands/brand'
import type { MessageId } from '@deepseek-ai/dsh-llm/brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/types'
import type { MessageId } from '@deepseek-ai/dsh-llm/types'
import type { ContentBlock } from '@deepseek-ai/dsh-llm/types'
import type { ImageAttachmentRef } from '@deepseek-ai/dsh-attachment'
import type { LlmRetryEventData } from '@deepseek-ai/dsh-llm-retry/types'
@@ -1,7 +1,7 @@
import type {
SessionAssistantSettlementEntry, SessionEventLikeEntry, SessionTransientEventEntry,
} from '@deepseek-ai/dsh-api-session-controller/client'
import type { LlmAttemptId } from '@deepseek-ai/dsh-llm/brand'
import type { LlmAttemptId } from '@deepseek-ai/dsh-llm/types'
import type {
ConversationContextReader, ConversationLocationData, ConversationMatch, ConversationMatchResult,
ConversationNodeContext, ConversationNodeDefinition, ConversationPreviousContext,
@@ -142,8 +142,6 @@ function moveBeforeQuote(editor: LexicalEditor, event: KeyboardEvent): boolean {
/** Move from immediately before a quote to the end of its hard line. */
function movePastQuote(editor: LexicalEditor, event: KeyboardEvent): boolean {
if (!isApplePlatform() || event.key !== 'ArrowRight' || !event.metaKey
|| event.ctrlKey || event.altKey || event.shiftKey) return false
const quote = adjacentQuote(editor, false)
if (quote === null) return false
const block = quote.getParent()
@@ -167,6 +165,32 @@ function movePastQuote(editor: LexicalEditor, event: KeyboardEvent): boolean {
return true
}
/**
* Move the caret to the start or end of its visual line for Home or End, with
* Shift extending the selection. Apple key bindings map Home and End to
* scrolling the document, which in the composer scrolls the conversation
* instead of moving the caret; other platforms already move to the line
* boundary. End immediately before a quote takes Cmd+Right's path to the end
* of the quote's hard line, because the browser's line-boundary movement
* stops before a quote that starts a line. Returns false and leaves the key
* to the browser for any other key, on other platforms, with Ctrl, Cmd, or
* Alt held, during IME composition, and when the editor has no root element
* or its document has no selection.
*/
function moveToLineBoundary(editor: LexicalEditor, event: KeyboardEvent, recentlyComposing: () => boolean): boolean {
if (event.key !== 'Home' && event.key !== 'End') return false
if (!isApplePlatform() || event.ctrlKey || event.metaKey || event.altKey
|| isComposingEvent(event, recentlyComposing)) return false
if (event.key === 'End' && !event.shiftKey && movePastQuote(editor, event)) return true
const root = editor.getRootElement()
if (root === null) return false
const selection = root.ownerDocument.getSelection()
if (selection === null) return false
event.preventDefault()
selection.modify(event.shiftKey ? 'extend' : 'move', event.key === 'Home' ? 'backward' : 'forward', 'lineboundary')
return true
}
/**
* Register the composer keymap on one editor.
* @param editor - the shell-owned editor.
@@ -218,12 +242,17 @@ export function registerComposerKeymap(editor: LexicalEditor, handlers: Composer
syncComposition()
}),
editor.registerCommand(KEY_DOWN_COMMAND, (event) => {
if (moveToLineBoundary(editor, event, recentlyComposing)) return true
if (!isApplePlatform() || !event.ctrlKey || event.metaKey || event.altKey || event.shiftKey) return false
const key = event.key.toLowerCase()
if (key === 'a') return moveBeforeQuote(editor, event)
return false
}, COMMAND_PRIORITY_CRITICAL),
editor.registerCommand(MOVE_TO_END, event => movePastQuote(editor, event), COMMAND_PRIORITY_CRITICAL),
editor.registerCommand(MOVE_TO_END, (event) => {
if (!isApplePlatform() || event.key !== 'ArrowRight' || !event.metaKey
|| event.ctrlKey || event.altKey || event.shiftKey) return false
return movePastQuote(editor, event)
}, COMMAND_PRIORITY_CRITICAL),
editor.registerUpdateListener(syncComposition),
editor.registerCommand(KEY_ARROW_UP_COMMAND, arrow('up'), COMMAND_PRIORITY_CRITICAL),
editor.registerCommand(KEY_ARROW_DOWN_COMMAND, arrow('down'), COMMAND_PRIORITY_CRITICAL),
@@ -10,7 +10,7 @@ import {
} from '@deepseek-ai/dsh-client-ui-primitives'
import type { InboxState } from '@deepseek-ai/dsh-agent/types'
import type { QueueAction } from '@deepseek-ai/dsh-api-session-controller/types'
import type { MessageId } from '@deepseek-ai/dsh-llm/brand'
import type { MessageId } from '@deepseek-ai/dsh-llm/types'
import type { UserTextFacts } from '../index.ts'
import { NS } from '../locales.ts'
import css from './QueueDock.module.css'
@@ -25,7 +25,7 @@ import type {
ComposerAttachment, ComposerFileAttachment, ComposerImageAttachment, DraftFileUpload,
} from './contract/slots.ts'
import type { QueueAction } from '@deepseek-ai/dsh-api-session-controller/types'
import type { MessageId } from '@deepseek-ai/dsh-llm/brand'
import type { MessageId } from '@deepseek-ai/dsh-llm/types'
import type { ComposerBlocks } from './contract/composer-blocks.ts'
import type {
DraftAttachmentId, DraftAttachmentSerializationResult, SessionInputResolver, SubmitAttachment, SubmitOutcome,
@@ -3,7 +3,7 @@ import type {
SessionEventLike, SessionEventLikeEntry, SessionLiveEventEntry,
} from '@deepseek-ai/dsh-api-session-controller/client'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { LlmAttemptId, ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { LlmAttemptId, ToolCallId } from '@deepseek-ai/dsh-llm/types'
import type { StreamChunk } from '@deepseek-ai/dsh-llm'
import { SessionSeq } from '@deepseek-ai/dsh-session/types'
import type { SessionEvent } from '@deepseek-ai/dsh-session/types'
@@ -6,9 +6,11 @@
*/
import { describe, expect, it, onTestFinished, vi } from 'vitest'
import { fireEvent } from '@testing-library/react'
import { $createParagraphNode, $createTextNode, $getRoot, createEditor } from 'lexical'
import type { LexicalEditor } from 'lexical'
import { $createParagraphNode, $createTextNode, $getRoot, $getSelection, $isRangeSelection, createEditor } from 'lexical'
import { registerPlainText } from '@lexical/plain-text'
import { registerComposerKeymap } from '../src/client/input/editor/keymap.ts'
import { $createQuoteNode, QuoteNode } from '../src/client/input/editor/QuoteNode.tsx'
describe('keymap keydown routing', () => {
it('clears composition presentation on root swaps and unregisters pending callbacks', async () => {
@@ -141,4 +143,89 @@ describe('keymap keydown routing', () => {
fireEvent.keyDown(root, { key: 'Tab', keyCode: 9, shiftKey: true })
expect(arbitrate).toHaveBeenLastCalledWith('tabBack', false)
})
describe('Home and End', () => {
function lineBoundaryBench(platform: string) {
const descriptor = Object.getOwnPropertyDescriptor(navigator, 'platform')
Object.defineProperty(navigator, 'platform', { configurable: true, value: platform })
// jsdom has no Selection.modify; the browser performs the caret movement.
const modify = vi.fn()
Object.defineProperty(Selection.prototype, 'modify', { configurable: true, value: modify })
onTestFinished(() => {
if (descriptor === undefined) Reflect.deleteProperty(navigator, 'platform')
else Object.defineProperty(navigator, 'platform', descriptor)
Reflect.deleteProperty(Selection.prototype, 'modify')
})
const editor = createEditor({ namespace: 'line-boundary', nodes: [QuoteNode], onError: (error) => { throw error } })
const root = document.createElement('div')
root.contentEditable = 'true'
document.body.appendChild(root)
onTestFinished(() => { editor.setRootElement(null); root.remove() })
editor.setRootElement(root)
onTestFinished(registerPlainText(editor))
onTestFinished(registerComposerKeymap(editor, {
arbitrate: () => 'pass', space: () => false, dismissPopup: () => {}, canSubmit: () => true,
submit: () => {}, intakeFiles: () => {}, pasteText: () => {},
}))
return { editor, root, modify }
}
/** A draft line that starts with a quote, with both carets before the quote. */
function caretBeforeLeadingQuote(editor: LexicalEditor, root: HTMLElement): void {
editor.update(() => {
const paragraph = $createParagraphNode()
paragraph.append($createQuoteNode('quoted source', { remove: 'Remove quote' }), $createTextNode(' follow-up'))
$getRoot().append(paragraph)
paragraph.select(0, 0)
}, { discrete: true })
document.getSelection()!.collapse(root.firstChild, 0)
}
const caret = (editor: LexicalEditor): string | null => editor.read(() => {
const selection = $getSelection()
if (!$isRangeSelection(selection) || !selection.isCollapsed()) return null
const node = selection.focus.getNode()
return `${selection.focus.type === 'element' ? node.getType() : node.getTextContent()}@${String(selection.focus.offset)}`
})
it.each([
{ key: 'Home', shiftKey: false, alter: 'move', direction: 'backward' },
{ key: 'End', shiftKey: false, alter: 'move', direction: 'forward' },
{ key: 'Home', shiftKey: true, alter: 'extend', direction: 'backward' },
{ key: 'End', shiftKey: true, alter: 'extend', direction: 'forward' },
])('moves to the line boundary on Apple platforms: $key, shift $shiftKey', ({ key, shiftKey, alter, direction }) => {
const { root, modify } = lineBoundaryBench('MacIntel')
expect(fireEvent.keyDown(root, { key, shiftKey })).toBe(false) // default prevented: no document scroll
expect(modify).toHaveBeenCalledExactlyOnceWith(alter, direction, 'lineboundary')
})
it.each([
{ platform: 'Win32', init: { key: 'Home' } },
{ platform: 'MacIntel', init: { key: 'End', metaKey: true } },
{ platform: 'MacIntel', init: { key: 'Home', ctrlKey: true } },
{ platform: 'MacIntel', init: { key: 'End', altKey: true } },
{ platform: 'MacIntel', init: { key: 'Home', keyCode: 229 } },
{ platform: 'MacIntel', init: { key: 'ArrowLeft' } },
])('leaves $init on $platform to the browser', ({ platform, init }) => {
const { root, modify } = lineBoundaryBench(platform)
expect(fireEvent.keyDown(root, init)).toBe(true)
expect(modify).not.toHaveBeenCalled()
})
it('moves End from before a line-leading quote to the end of its hard line', () => {
const { editor, root, modify } = lineBoundaryBench('MacIntel')
caretBeforeLeadingQuote(editor, root)
expect(fireEvent.keyDown(root, { key: 'End' })).toBe(false)
expect(modify).not.toHaveBeenCalled()
expect(caret(editor)).toBe('paragraph@2')
})
it('extends Shift+End from before a line-leading quote through the browser', () => {
const { editor, root, modify } = lineBoundaryBench('MacIntel')
caretBeforeLeadingQuote(editor, root)
expect(fireEvent.keyDown(root, { key: 'End', shiftKey: true })).toBe(false)
expect(modify).toHaveBeenCalledExactlyOnceWith('extend', 'forward', 'lineboundary')
expect(caret(editor)).toBe('paragraph@0')
})
})
})
@@ -13,7 +13,7 @@ import type {
} from '@deepseek-ai/dsh-api-session-controller/client'
import type { InboxState } from '@deepseek-ai/dsh-agent/types'
import type { UserMessage } from '@deepseek-ai/dsh-llm/types'
import type { MessageId } from '@deepseek-ai/dsh-llm/brand'
import type { MessageId } from '@deepseek-ai/dsh-llm/types'
import type { SessionId } from '@deepseek-ai/dsh-session/types'
import type { SnapshotSelectorHook } from '@deepseek-ai/dsh-client-ui-slots'
import { createSnapshotStore } from '@deepseek-ai/dsh-client-store'
@@ -4,7 +4,7 @@
// service's scopeOf/binding path runs against production resolution (no local
// tag probe).
import type { UserMessage } from '@deepseek-ai/dsh-llm/types'
import type { MessageId } from '@deepseek-ai/dsh-llm/brand'
import type { MessageId } from '@deepseek-ai/dsh-llm/types'
import { Context } from '@deepseek-ai/cordis'
import { describe, expect, it, vi } from 'vitest'
import { makeTranslate, RemoteError, SlotTestRuntime } from '@deepseek-ai/dsh-client-test-runtime'
@@ -1,7 +1,7 @@
/** Validate declared workspace paths and address their native-open actions. */
import type { PresentedFile } from '@deepseek-ai/dsh-tool-present/types'
import type { SessionId } from '@deepseek-ai/dsh-session/types'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/types'
/** Authenticated POST route for opening a workspace file on the Host desktop. */
export const PRESENT_OPEN_PATH = '/api/present.open'
@@ -1,6 +1,5 @@
import type { SessionEvent } from '@deepseek-ai/dsh-session/types'
import type { CommandId } from '@deepseek-ai/dsh-commands/brand'
import type {} from '@deepseek-ai/dsh-commands/types'
import type { CommandId } from '@deepseek-ai/dsh-commands/types'
import type {
ConversationNodeDefinition,
} from '@deepseek-ai/dsh-client-ui-conversation/client'
+1 -1
View File
@@ -5,7 +5,7 @@
* holds no transport state of its own.
*/
import type { Context as ClientContext } from '@deepseek-ai/cordis'
import type { JobId } from '@deepseek-ai/dsh-jobs/brand'
import type { JobId } from '@deepseek-ai/dsh-jobs/types'
import { JobListAction } from './JobListAction.tsx'
import type { JobListInjected } from './JobListAction.tsx'
import type {} from '@deepseek-ai/dsh-api-job-controller/client'
@@ -5,7 +5,7 @@
*/
import { createSnapshotStore } from '@deepseek-ai/dsh-client-store'
import { Context } from '@deepseek-ai/cordis'
import type { JobId } from '@deepseek-ai/dsh-jobs/brand'
import type { JobId } from '@deepseek-ai/dsh-jobs/types'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { SessionId } from '@deepseek-ai/dsh-session/types'
import { describe, expect, it } from 'vitest'
@@ -18,7 +18,7 @@ import { RemoteError, TestRemote } from '@deepseek-ai/dsh-client-test-runtime'
import type { ModelSelection } from '@deepseek-ai/dsh-agent/types'
import type { ModelSelectionProjection } from '@deepseek-ai/dsh-agent/types'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { ReasoningEffortId } from '@deepseek-ai/dsh-llm/brand'
import type { ReasoningEffortId } from '@deepseek-ai/dsh-llm/types'
import type { CommandContribution, PopupSelectSpec, SelectOption } from '@deepseek-ai/dsh-client-ui-commands/client'
import type { ModelSelectInjected } from '../src/client/slots.ts'
import { apply, inject } from '../src/client/index.ts'
@@ -5,7 +5,7 @@ import type { ObservableSnapshot } from '@deepseek-ai/dsh-client-store'
import type { SubmittedPlan } from './plan.ts'
import type {} from './plan-definition.ts'
import type { HostObservable, InjectFace, PropsLocale, PropsRuntime, PropsStore } from '@deepseek-ai/dsh-client-ui-slots'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/types'
import type { SessionId } from '@deepseek-ai/dsh-session/types'
import type {} from '@deepseek-ai/dsh-client-ui-user-questions/client'
import type { createPlanReviewStore } from './review-store.ts'
+1 -1
View File
@@ -1,6 +1,6 @@
/** Plan text and resource identities derived from logged native or PTC calls. */
import type {} from '@deepseek-ai/dsh-tool-executor-ptc/client'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/types'
import type { SessionId } from '@deepseek-ai/dsh-session/types'
import type { SessionAddress } from '@deepseek-ai/dsh-api-session-controller/types'
@@ -1,7 +1,7 @@
/** Question composer props and one pending Remote waterfall response. */
import type { InjectFace, PropsLocale, PropsRenderSlots, PropsRuntime, PropsStore } from '@deepseek-ai/dsh-client-ui-slots'
// The client module declares the conversation.composer SlotMap entry required by PropsRuntime.
import type { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/types'
import type { SessionId } from '@deepseek-ai/dsh-session/types'
import type {
AskUserQuestionAnswer, AskUserQuestionAnswerItem, AskUserQuestionItem, UserQuestionState,
@@ -5,7 +5,7 @@ import { afterEach, describe, expect, it, vi } from 'vitest'
import { cleanup, fireEvent, render, screen } from '@testing-library/react'
import { allowAllAccess } from '@deepseek-ai/dsh-client-test-runtime'
import type { SessionId } from '@deepseek-ai/dsh-session/types'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/types'
import {
createWaterfallRequest, PendingQuestion, planReviewOf, type QuestionComposerProps, type QuestionWait,
} from '../src/client/contract/slots.ts'
@@ -5,7 +5,7 @@
import type { Context } from '@deepseek-ai/cordis'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { CommandDefinitionId } from '@deepseek-ai/dsh-commands/brand'
import type { CommandDefinitionId } from '@deepseek-ai/dsh-commands/types'
import { ManualCompactionError } from '@deepseek-ai/dsh-compaction'
import type { CommandInvocation, CommandResult } from '@deepseek-ai/dsh-commands'
@@ -13,7 +13,7 @@ import { CONTEXT_WINDOW_EXCEEDED_CODE, LlmError } from '@deepseek-ai/dsh-llm'
import type { LlmCallConfig } from '@deepseek-ai/dsh-llm'
import { assertNever } from '@deepseek-ai/dsh-util-values'
import type { Agent, PreStepDecision } from '@deepseek-ai/dsh-agent'
import type { CommandId } from '@deepseek-ai/dsh-commands/brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/types'
// Type-only: makes the optional sibling service available to `ctx.get()`.
import type {} from '@deepseek-ai/dsh-compaction-tool-result-pruner'
import {
@@ -16,7 +16,7 @@ import {
toolPairingBalancedBefore,
} from '@deepseek-ai/dsh-compaction'
import type { CompactionResult } from '@deepseek-ai/dsh-compaction'
import type { CommandId } from '@deepseek-ai/dsh-commands/brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/types'
import { createUserMessage, errorChain } from '@deepseek-ai/dsh-llm'
import type { Message, UserMessage } from '@deepseek-ai/dsh-llm'
import type { TokenMeasurement, TokenMeter } from '@deepseek-ai/dsh-token-meter'
@@ -4,7 +4,7 @@ import { Context } from '@deepseek-ai/cordis'
import AgentLoop from '@deepseek-ai/dsh-agent-loop'
import { mountAgentLoopTestDependencies } from '@deepseek-ai/dsh-agent-loop-testkit'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/types'
import { BasicCompactionEngine } from '@deepseek-ai/dsh-compaction-basic'
import type { CompactionId } from '@deepseek-ai/dsh-compaction/types'
import { isCompactCheckpointSource, ManualCompactionError } from '@deepseek-ai/dsh-compaction'
@@ -12,7 +12,7 @@
*/
import type { MessageSource } from '@deepseek-ai/dsh-llm/message'
import type { CommandId } from '@deepseek-ai/dsh-commands/brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/types'
import type { CompactionId } from './brand.ts'
const COMPACT_CHECKPOINT_MARKER = Object.freeze({ kind: 'compact-checkpoint' } as const)
+1 -1
View File
@@ -9,7 +9,7 @@
import { Context, Service } from '@deepseek-ai/cordis'
import type { Session, SessionSeq } from '@deepseek-ai/dsh-session'
import type { CommandId } from '@deepseek-ai/dsh-commands/brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/types'
import type { CompactionResult } from './types.ts'
import type { CompactionCheckpointSource } from './checkpoint.ts'
+1 -1
View File
@@ -8,7 +8,7 @@
*/
import type { ContentBlock, TokenUsage } from '@deepseek-ai/dsh-llm'
import type { CommandId } from '@deepseek-ai/dsh-commands/brand'
import type { CommandId } from '@deepseek-ai/dsh-commands/types'
import type { SessionSeq } from '@deepseek-ai/dsh-session/types'
import type { CompactionId } from './brand.ts'
@@ -15,8 +15,8 @@
en: d152484eb41ac6b4
zh: 405b30feaf48c087
/deepseek-ai-dsh-computer-use/use-this-package:
en: 8f22c8f8753dbb98
zh: 34a000c400b52cea
en: 66ffc2bb7d3fde41
zh: 4066645e046da98a
/deepseek-ai-dsh-computer-use/understand-the-implementation:
en: 181679887837591a
zh: cc2e96766ce0aa63
+1 -1
View File
@@ -31,7 +31,7 @@ Mount the service once beside the chosen provider in a Cordis composition:
- name: '@deepseek-ai/dsh-computer-use'
```
The service has no configuration. Provider plugins inject `computerUse` and call `ctx.computerUse.register(brandString<ComputerUseProviderName>(name))`, using `brandString` from `@deepseek-ai/dsh-brand` and the type from `@deepseek-ai/dsh-computer-use/brand`. The returned effect disposer releases that registration.
The service has no configuration. Provider plugins inject `computerUse` and call `ctx.computerUse.register(brandString<ComputerUseProviderName>(name))`, using `brandString` from `@deepseek-ai/dsh-brand` and the type from `@deepseek-ai/dsh-computer-use/types`. The returned effect disposer releases that registration.
Providers stop admitting tool calls, close their resources, and await owned work before releasing the registration. `ctx.computerUse.providerName` reports the registered name until release.
@@ -31,7 +31,7 @@ kind: "package-reference"
- name: '@deepseek-ai/dsh-computer-use'
```
服务没有配置项。提供方插件注入 `computerUse` 并调用 `ctx.computerUse.register(brandString<ComputerUseProviderName>(name))`,其中 `brandString` 来自 `@deepseek-ai/dsh-brand`,类型来自 `@deepseek-ai/dsh-computer-use/brand`。返回的 effect 清理函数释放此次注册。
服务没有配置项。提供方插件注入 `computerUse` 并调用 `ctx.computerUse.register(brandString<ComputerUseProviderName>(name))`,其中 `brandString` 来自 `@deepseek-ai/dsh-brand`,类型来自 `@deepseek-ai/dsh-computer-use/types`。返回的 effect 清理函数释放此次注册。
提供方先停止接收工具调用、关闭资源并等待自有工作结束,再释放注册。释放前,`ctx.computerUse.providerName` 始终报告已注册的名称。
@@ -21,9 +21,9 @@
"./src/*": "./src/*",
"./locale/*.json": "./locale/*.json",
"./package.json": "./package.json",
"./brand": {
"types": "./lib/types/brand.d.ts",
"default": "./lib/types/brand.js"
"./types": {
"types": "./lib/types/types.d.ts",
"default": "./lib/types/types.js"
}
},
"files": [
@@ -1,4 +1,4 @@
/** Computer-use provider identities. @module @deepseek-ai/dsh-computer-use/brand */
/** Computer-use provider identities. @module @deepseek-ai/dsh-computer-use/src/brand.ts */
import type { Branded } from '@deepseek-ai/dsh-brand'
@@ -4,7 +4,7 @@
*/
import { Context, Service } from '@deepseek-ai/cordis'
import type { ComputerUseProviderName } from './brand.ts'
import type { ComputerUseProviderName } from './types.ts'
declare module '@deepseek-ai/cordis' {
interface Context {
@@ -0,0 +1,2 @@
/** Public type-only entry for computer-use identities. */
export type { ComputerUseProviderName } from './brand.ts'
@@ -2,7 +2,7 @@ import { Context } from '@deepseek-ai/cordis'
import { describe, expect, it } from 'vitest'
import ComputerUseRegistry from '../src/index.ts'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { ComputerUseProviderName } from '../src/brand.ts'
import type { ComputerUseProviderName } from '../src/types.ts'
const MCP = brandString<ComputerUseProviderName>('cua-driver-mcp')
const NATIVE = brandString<ComputerUseProviderName>('cua-driver-native')
@@ -18,10 +18,6 @@
"types": "./lib/types/index.d.ts",
"default": "./lib/index.js"
},
"./search": {
"types": "./lib/types/search.d.ts",
"default": "./lib/types/search.js"
},
"./src/*": "./src/*",
"./package.json": "./package.json",
"./locale/*.json": "./locale/*.json"
@@ -29,7 +25,6 @@
"files": [
"locale/*.json",
"lib/index.js",
"lib/types/**/*.js",
"lib/types/**/*.d.ts",
"lib/types/**/*.d.ts.map",
"lib/**/*.js.map",
@@ -3,7 +3,7 @@
* only: selected values remain ordinary prompt text and file contents stay
* behind the model-facing `read` tool.
*
* @module @deepseek-ai/dsh-file-reference-local/search
* @module @deepseek-ai/dsh-file-reference-local/src/search
*/
import { lstat, readdir } from 'node:fs/promises'
@@ -33,8 +33,8 @@
en: 191332951f81b136
zh: 8336659a9ffa20f1
/deepseek-ai-dsh-file-reference/understand-the-implementation/source-map:
en: 7ca26c752fab5c46
zh: 961bc4283792155d
en: ca79028d30496fde
zh: 58db2bd6a66db1f8
/deepseek-ai-dsh-file-reference/understand-the-implementation/main-flow:
en: fd65f309c940de96
zh: c1517e592d646d6c
+1 -1
View File
@@ -59,7 +59,7 @@ The package separates an abstract discovery service from a shared, browser-safe
|---|---|
| [`src/index.ts`](src/index.ts) | Abstract `FileReferenceService` and `FILE_REFERENCE_PROMPT` |
| [`src/grammar.ts`](src/grammar.ts) | `activeAtToken` recognition and `formatFileMention` rendering |
| [`src/types.ts`](src/types.ts) | `FileReferenceCandidate` path-only result type |
| [`src/types.ts`](src/types.ts) | Path-only `FileReferenceCandidate` results and `ActiveAtToken` mention-token records |
### Main flow
+1 -1
View File
@@ -59,7 +59,7 @@ kind: "package-reference"
|---|---|
| [`src/index.ts`](src/index.ts) | 抽象 `FileReferenceService` 与 `FILE_REFERENCE_PROMPT` |
| [`src/grammar.ts`](src/grammar.ts) | `activeAtToken` 识别与 `formatFileMention` 渲染 |
| [`src/types.ts`](src/types.ts) | 仅含路径的结果类型 `FileReferenceCandidate` |
| [`src/types.ts`](src/types.ts) | 仅含路径的 `FileReferenceCandidate` 结果和 `ActiveAtToken` 提及词元记录 |
### 主要流程
+1 -11
View File
@@ -4,17 +4,7 @@
* @module @deepseek-ai/dsh-file-reference/grammar
*/
import type { FileReferenceCandidate } from './types.ts'
/** Active `@` token ending at the editor cursor. */
export interface ActiveAtToken {
/** Complete token replaced when the user accepts a completion. */
prefix: string
/** Path query after `@` or `@"`. */
query: string
/** Whether the user opened a quoted path. */
quoted: boolean
}
import type { ActiveAtToken, FileReferenceCandidate } from './types.ts'
/**
* Extract an `@path` or `@"path with spaces` token at the cursor. An `@`
+1 -2
View File
@@ -10,8 +10,7 @@ import type { Agent } from '@deepseek-ai/dsh-agent'
import type { FileReferenceCandidate } from './types.ts'
export { activeAtToken, formatFileMention } from './grammar.ts'
export type { ActiveAtToken } from './grammar.ts'
export type { FileReferenceCandidate } from './types.ts'
export type { ActiveAtToken, FileReferenceCandidate } from './types.ts'
/** Model guidance for path-only references selected by a user interface. */
export const FILE_REFERENCE_PROMPT = 'Tokens prefixed with @ are paths the user explicitly referenced. Relative paths resolve from the workspace root; absolute paths identify files or directories on the host. A trailing slash marks a directory: list it when its contents matter. Anything else is a file: use the read tool when its contents are needed, and do not claim to have inspected it before reading. @"..." quotes a path containing spaces.'
+11 -1
View File
@@ -1,9 +1,19 @@
/**
* Public file-reference discovery records. This module contains types only so
* Public file-reference discovery and mention-token records. This module contains types only so
* generated Remote clients can consume it without Host runtime code.
* @module @deepseek-ai/dsh-file-reference/types
*/
/** Active `@` token ending at the editor cursor. */
export interface ActiveAtToken {
/** Complete token replaced when the user accepts a completion. */
prefix: string
/** Path query after `@` or `@"`. */
query: string
/** Whether the user opened a quoted path. */
quoted: boolean
}
/** One path-only completion candidate inside the target session cwd. */
export interface FileReferenceCandidate {
/** User-facing path accepted by normal prompts and filesystem tools. */
+1 -1
View File
@@ -6,7 +6,7 @@ import type { Model, AgentOptions, PreStepDecision } from './runtime-types.ts'
import type { ModelSelection } from './types.ts'
import { boundContextSummary, createUserMessage, type ContextFormed } from '@deepseek-ai/dsh-llm'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { ReasoningEffortId } from '@deepseek-ai/dsh-llm/brand'
import type { ReasoningEffortId } from '@deepseek-ai/dsh-llm/types'
import type { Session, EpochHeader } from '@deepseek-ai/dsh-session'
import type { ProjectionDefinition } from '@deepseek-ai/dsh-session-projection'
import { z } from 'zod'
+1 -1
View File
@@ -4,7 +4,7 @@
* @module @deepseek-ai/dsh-agent/types
*/
import type { ReasoningEffortId } from '@deepseek-ai/dsh-llm/brand'
import type { ReasoningEffortId } from '@deepseek-ai/dsh-llm/types'
import type { UserMessage } from '@deepseek-ai/dsh-llm/types'
// Type-only: the Workspace registry's archive-admission family map this registry merges `turn` into.
import type {} from '@deepseek-ai/dsh-workspace/types'
+1 -1
View File
@@ -4,7 +4,7 @@
* @module @deepseek-ai/dsh-tool-executor-ptc/types
*/
import type { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/types'
import type { ContentBlock } from '@deepseek-ai/dsh-llm/types'
import type { JsonValue } from '@deepseek-ai/dsh-util-values'
-5
View File
@@ -18,10 +18,6 @@
"types": "./lib/types/index.d.ts",
"default": "./lib/index.js"
},
"./presentation": {
"types": "./lib/types/presentation.d.ts",
"default": "./lib/types/presentation.js"
},
"./src/*": "./src/*",
"./package.json": "./package.json",
"./locale/*.json": "./locale/*.json",
@@ -35,7 +31,6 @@
"lib/index.js",
"lib/pipeline.js",
"lib/shared-*.js",
"lib/types/**/*.js",
"lib/types/**/*.d.ts",
"lib/types/**/*.d.ts.map",
"lib/**/*.js.map",
@@ -1,5 +1,5 @@
/** Durable file deliveries produced by the present tool. */
import type { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/types'
/** A declared filesystem file whose current contents remain at its source path. */
export interface PresentedFile {
@@ -1,6 +1,6 @@
/** Card proposals, recorded decisions and user-action results shared by every action kind. */
import type { ContextFormed } from '@deepseek-ai/dsh-llm'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/brand'
import type { ToolCallId } from '@deepseek-ai/dsh-llm/types'
import type { SessionSeq } from '@deepseek-ai/dsh-session/types'
import type { SessionProjectionSummaryExcluded } from '@deepseek-ai/dsh-session-projection/types'
import type { JsonValue } from '@deepseek-ai/dsh-util-values'
@@ -4,7 +4,7 @@ import type { Context } from '@deepseek-ai/cordis'
import type { Agent } from '@deepseek-ai/dsh-agent'
import Schema from '@deepseek-ai/schemastery'
import { brandString } from '@deepseek-ai/dsh-brand'
import type { BrowserUseProviderName } from '@deepseek-ai/dsh-browser-use/brand'
import type { BrowserUseProviderName } from '@deepseek-ai/dsh-browser-use/types'
import * as McpClient from '@deepseek-ai/dsh-mcp-client'
import { createScope } from '@deepseek-ai/dsh-scope'
import type { Scope } from '@deepseek-ai/dsh-scope'
Loaded 100 of 213 files, more files were not shown because too many files have changed in this diff. Show more