a1c02999775615c4ff86d052d4d052922425dfc9
2345
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
a1c0299977 | Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential | ||
|
|
8eda7cfb7c |
Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
# Conflicts: # scripts/empty-catch.baseline.json |
||
|
|
bd99b1e062 |
Merge branch 'feat/session-panel' into feat/session-panel-sections
Brings master (through feat/session-panel) into this branch. Master changed
controls this branch had moved into the Session panel, so its changes are
carried over to their new homes:
- Jobs: master hides the stop control without `job/kill` access in the
header list this branch removed; the panel's Background jobs section now
reads `useAccess('job/kill')` the same way.
- Forge: master takes the sign-in command from the provider
(`readiness.signIn`) in the sidebar tab this branch removed; the panel's
sign-in row now does, for any code host, instead of building a GitHub
command itself.
- Agent team: the team settings pane and its copy from master, with this
branch's Shared tasks section registration.
- Tests: master's helpers for the team settings pane and its numbered
reference helper are combined with this branch's panel steps; the
status fixture gains master's `completionFailed`.
- READMEs of ui-agent-team and client-ui-forge are merged sentence by
sentence; generated catalogs, the persistence schema, and pairing
records are regenerated.
The upgrade guide moves to docs/upgrade-guide/v0.2.2-rc.3, the root
version after master's release.
|
||
|
|
ae7adb5d47 |
Merge remote-tracking branch 'origin/master' into feat/session-panel
Conflicts were all in generated files and pairing records: the config catalog, the dsh-doc package list, and the README records of packages/client and ui-conversation. Each takes master's side and is then regenerated, so it differs from master only by this branch's entries. Also in this merge: - ui-session-panel follows master's release to 0.2.2-rc.3, and the lockfile is master's plus this package. - The web-fetch-failure-row header capture, added on master, gains the Session panel toggle. |
||
|
|
da7f9b4c5a |
feat(liveshare): open the viewer capabilities a share can serve (#8304)
* feat(liveshare): open reader capabilities the share can serve (cherry picked from commit 3c893b488900fff776a21eebee4eb2d95b878764) * feat(liveshare): let a reader run the session's slash commands (cherry picked from commit ae02bcc0f819e55ebf066de7581d4d89994930a4) * fix(liveshare): allow a reader to list the workspace file references (cherry picked from commit fffaa864b9d790a0aab30da639d5ef50ff8f303c) * fix(liveshare): bind the job endpoints to their session resource (cherry picked from commit 357d1f6efe5b161a4ce1b616e66599c4e75a6ab1) * chore: refresh the Cordis surface catalog (cherry picked from commit 88f88b225f0fcff0a5a88f09b0f555749dd62756) * test(job-controller): read the Session resources the Remote methods declare The job roster, the follow stream, and a kill each declare the request's Session as the resource they touch, and an unowned job's follow names none. Read those declarations off the mounted Controller and pin what they answer. (cherry picked from commit fa3f92427a6bd56ad2a949dc74315505cb75533b) * feat(liveshare): offer a shareable core component to viewers The terminal controller reaches the catalog from a core profile bundle, which the catalog excludes so no application plumbing is offered. Mark such a component shareable: PluginMetadata gains the mark, and the host names the packages that carry it, so a marked core component enters the catalog and every other core component stays out. The terminal namespace leaves the exclusion list for the same reason, and the marked component carries the title its dialog row shows. (cherry picked from commit b0e9e390719aab519fd82cf39c85c60e4f77b588) * fix(liveshare): classify the terminal methods as owner-selected The nine terminal methods leave owner-only for plugin-offered: the owner picks them in the share dialog, no reader role grants one, and a share that names none still refuses every terminal call. (cherry picked from commit 718c1b45a1b01320cbe9be46ece9deca37225fe2) * docs(liveshare): state that terminals open per method Terminals are no longer unconditionally owner-only: the share dialog offers the terminal controller's methods and opens none until the owner picks them. (cherry picked from commit 505c1193571b16431731f69bd5ca1b59a1059a13) * test(liveshare): cover a viewer reaching the Session's terminals The end-to-end case mounts a real terminal controller beside the share host: the catalog offers it as a shareable core component, a share that selects nothing refuses every terminal call, and a selected terminal/create through the reader's own Peer binds the shell to the Session its agentId names. (cherry picked from commit 25955a936dc5b58ebfd8e1d24f495d62d59f7b70) * fix(workspace-files): confine non-owner reads to the session workspace A non-owner Peer now reads and watches files only inside the connected Session workspace. stat, read, readBytes (including baseFile) and changes resolve the target canonically and refuse an outside one with workspace-file/outside-workspace before reporting its kind. Owner and trusted in-process callers keep the filesystem read authority. (cherry picked from commit 7ae855e12ba6c5bc99c7ae75d65d984661f3bbb5) * refactor(workspace-files): name the file access confinement Replace the contain boolean with a named FileConfinement carried by the service, and move the outside-workspace refusal into one helper shared by file reads and watches. No Remote interface or behavior changes. (cherry picked from commit 1c4dbd68220df7c559f84cf2782f9626c5b2ef4b) * refactor(workspace-files): name the path mode PathScope Replace the FileConfinement/confinement vocabulary with PathScope, and rename its module and test. The values and behavior are unchanged. # Conflicts: # packages/api/workspace-files/src/index.ts # packages/api/workspace-files/tsconfig.host.json (cherry picked from commit 5d3f7b31dc6a1dbcf44c5fdd59295402bf40cf76) * refactor(workspace-files): accept several workspace roots in the path check The confinement helper and change feed now take several resolved roots; the current scope still supplies one. WorkspaceFileScope.workspaceRoot remains the primary root, so a future multi-workspace Session can add optional roots without changing endpoint signatures, path arguments, or the client address. (cherry picked from commit 73fd59be92c421c378b7fe5606d8d7c5806b13cb) * fix(workspace-files): keep the multi-root watch check covered Pass the primary watch root separately and iterate the roots list, so the feed keeps full coverage for the multi-root preparation. Add braces to the multi-root test arrow for the lint rule. (cherry picked from commit 1286aac6a6d93e693dbb33f2feaa71e6252424e0) * test(workspace-files): assert a refusal never reports the target kind The outside-workspace failure carries only the path, so a share reader learns nothing about what it was refused. stat, read, readBytes, list, and a relative escape are each asserted not to carry a kind. (cherry picked from commit a9495de0ff63a1aac325d1cb62b8111c188ae8a5) * test(workspace-files): keep the search caps in the shared harness config Rebasing over the search endpoint left configOf() without the search limits the master harness passed inline, so every search call reached the subprocess provider with an undefined graceMs. configOf and peer() now take Caps and supply the suite defaults. (cherry picked from commit 70cecb9b352ce5c1e17482429b1539483e101d60) * docs(workspace-files): describe the read confinement against the search-era structure The master README added the search section and rewrote the file-read checks without a workspace-containment check. Those paragraphs now state which caller the check applies to, the change feed mentions the non-owner watch, and the source map lists path-scope.ts. Bilingual hashes re-recorded with verify-translation-pairing --write. (cherry picked from commit e61fdabaf2fb9b0c0bc507ef5ceea0f213f70683) * fix(liveshare): keep workspaceFiles/search in the reader session-read role The classification table is the single source for POLICY_DECIDED_ACTIONS, so the new search endpoint must also appear in the read role's actions. (cherry picked from commit 665093b07cfee87be105fdc71a7d58fe25974788) * docs(catalog): regenerate the client and config catalogs Removing the viewer share-path tab drops its client slot entry, and the workspace file import shifts the Config source line. (cherry picked from commit 7bb9295a18b011971b4338171a60d16ff82eebd1) * docs(catalog): regenerate the config catalog source line (cherry picked from commit 2d98a59afc8aa6e2a9ac268d4446bcd8cd5eeb26) * fix(liveshare): let share readers preview workspace files The served page keeps the shipped Sidebar and now reads the shared Session workspace through workspaceFiles: stat, read, readBytes, list and changes join the Session read role, while the file service confines every non-owner read to that workspace root. The viewer tab type that answered each file address with "a share hands over paths, not contents" is removed, so the shipped document preview opens the file. Refs #7901 (cherry picked from 5e0ceac3faa)(partial: liveshare files only) * fix(ui-jobs): offer the stop control only with job/kill access (cherry picked from commit 804956ece9c09b2fac6180cd78da7aa7393ae0de) * fix(ui-chat): attribute a reader's steering row while it is pending Chat declared the message-source seat on the user node registration, so an admitted steering row rendered the shared bubble without asking for it and a Host-pending steering occurrence carried no source to ask with. Move the seat to the flow: it renders user rows, admitted steering rows, and pending steering occurrences, and hands the same renderer to each. Liveshare's selector now elects a share-viewer source of either kind, so a reader's interjection states its author from the moment it is sent. (cherry picked from c802aef8392)(partial: liveshare client files only) * docs(liveshare): state when a reader's interjection shows its author A local submission echo carries no source, so the author line appears once the Host records the input in the Inbox, not when the reader sends it. (cherry picked from 42001b1294d)(partial: liveshare client files only) * docs(liveshare): describe the seat source arriving as row props (cherry picked from commit 466e25328c5c42c792bfb30bba05ff790259bf99) * fix(liveshare): refuse /permission to share readers The commands executor runs a command handler inside the owner Host with no reader-specific narrowing, so a reader line such as `/permission danger-full-access` left the shared Session unconfined with no approval. The read role's condition now parses the `commands/execute` line and refuses the owner-only command names, starting with `/permission`, with the new `command-owner-only` reason the viewer page classifies. Every other command keeps following visibility. * feat(permission-presets): add the permissionPresets/set Remote The `/permission` command switches a Session's sandbox mode and approval policy inside the owner Host's own handler, which gives a share reader that reaches `commands/execute` no endpoint decision to meet. The switch now has a Remote face: `permissionPresets/set` names the Session it writes as its `session` resource, so the Gateway decides who may call it before any preset is resolved or any knob changes. The request carries the Session id and the preset name only. An unknown preset and a Session this process does not hold live both refuse with `gateway/bad-request` before writing. The call reports the selection the Session reads back after the switch. The command reaches the same switch, keeping its ordering and its `success` and `error` text. Because a Remote parameter cannot carry an Agent, the command supplies the approval write itself so its model-visible policy notice still follows the switch. Co-Authored-By: DeepSeek Harness <[email protected]> * fix(liveshare): classify permissionPresets/set owner-only The new preset endpoint writes the source Session's sandbox mode and approval policy, so no share reader role may reach it at any tier. The viewer endpoint classification records it as owner-only, and the viewer access policy spec proves a reader is refused on the shared Session, on its own forks, and on a Session outside the share, and that no reader grant carries the action. The owner-only command whitelist stays as the second defense: the commands handler runs inside the owner Host, so a reader line must not depend on that handler continuing to route through the endpoint. Co-Authored-By: DeepSeek Harness <[email protected]> * test(liveshare): keep every permission preset endpoint owner-only The classification table's completeness gate proves a new generated endpoint has a row, but not that the row keeps a reader out. This case reads the table and fails when any `permissionPresets/*` endpoint is classified as anything other than owner-only, so an endpoint added there without its class checked turns the suite red instead of widening a reader's reach. Co-Authored-By: DeepSeek Harness <[email protected]> * docs(catalog): regenerate for the preset set Remote The new `permissionPresets/set` Remote adds its signature and its request type to the generated service and type catalogs, maps the request type to the permission presets subsystem page, and shifts the permission preset config source line. The permission presets subsystem pages describe the write path and its Remote face on both sides. Co-Authored-By: DeepSeek Harness <[email protected]> * test: construct SessionId values and keep the approval notice lock The rebased specs called SessionId as a value while importing it as a type, so every case threw ReferenceError. Construct the ids the way the packages already do, and keep the /permission case that locks the single model-visible approval notice. * test(liveshare): load the terminal controller without a built artifact The spec resolved a generated typert artifact at module load, so a clean checkout failed before any case ran. * docs(liveshare): state the reader limits the review asked about Marks the answer path's dependence on timed asks, records that @ mentions list every host session, and explains which commands stay owner-only. * feat(liveshare): let a viewer manage the goal of a visible Session The goal is Session data, not the workspace sandbox, so the same visibility rule that already covers goals/get and goals/edit applies to create, pause, resume, complete and clear. The /goal command reaches the same service, so the endpoint and the command now agree. # Conflicts: # packages/experimental/liveshare/README.i18n.yaml * fix(liveshare): keep the terminal component titles The shareable mark's localized titles were spread onto the metadata record, which put `en` and `zh` at the top level instead of in the `titles` field the catalog reads. A core bundle without display metadata therefore offered the terminal with no product name at all. * fix(workspace-files): decide the path scope before stat A non-owner read probed the path with `lstat` before it checked containment, so reading an absent path outside the workspace answered `not-found` while an existing one answered `outside-workspace`. That let a share reader probe whether any path on the owner's machine exists. Every confined read now resolves and confines its target first: `read`, `stat`, `readBytes` (including a path relative to a base file) and `list`. The final `lstat` still reports the component's own kind, and the owner keeps the filesystem's authority, including its previous answer for an absent path. * docs(liveshare): drop the queue-verb mention `session/updateQueue` is not in the viewer Session read role, and viewer queue management is not part of this change. The role's rationale now names the reach it actually carries, and the workspace file actions no longer leak whether a path outside the workspace exists. * test(liveshare): describe the terminal suite's actual coverage * chore: regenerate the catalogs the viewer capability change moves session-reference, user-questions and the permission presets all feed the Cordis, persistence and doc-graph generators, so their artifacts were stale. * fix(liveshare): keep the command refusal copy paired and cover the file paths The English notice read "/permission on", which the locale gate tokenised together while the translations kept the command alone. The workspace-file and preset paths the coverage lane flagged now have cases of their own. * test(workspace-files): accept either refusal code for a UNC base Windows resolves an unreachable UNC host through the local backend's ancestor walk, which reports an IO failure instead of the not-found POSIX reads. Both refuse the read; the code belongs to that backend, not to the path-scope decision this case covers. * refactor(liveshare): leave the command surface to its own change Running a slash command is a separate decision from what a reader may read: the executor wraps several capabilities in one opaque call, so the endpoint that admits it is not the place to decide them. This change keeps the reader capabilities and the preset endpoint, and returns the command wiring when the command surface itself is reshaped. * refactor(liveshare): leave the workspace file preview and terminal grant out Reading a Session's data and reaching into the owner's workspace or shell are different promises: the first follows visibility, the second changes what the owner's machine does. This change keeps the reader capabilities that describe Session data and returns the other two for their own discussion. * refactor(jobs): let the session resolver name the job endpoints' Session The session resource resolver already reads a top-level sessionId, so the explicit readers restated what it derives. Removing them keeps one rule for how a Session resource is named. * test(liveshare): drop the workspace preview stubs the strip left behind The viewer shell no longer opens workspace files, so the fixture route and the assertion about it no longer describe anything. * fix(jobs): bind the job endpoints to the Session they name The session resolver reads a top-level sessionId, but these methods take a request object and no lookup parameter, so the request fell through to the global resource and a reader was refused. The explicit readers state the Session the Gateway must authorise. * refactor(jobs): let the session resolver name the job endpoints' Session The session controller's resolver already reads the sessionId of the first object argument, so an explicit reader on these methods restated a rule the Gateway already applies. The tests now install the session controller and assert the resource the production composition produces. * refactor(session-controller): take the resolve input as one argument An exported function cannot destructure its parameters, because the JSDoc gate names them one by one. * docs(liveshare): describe the capabilities this change actually opens The workspace file preview, the terminal grant and the command surface moved out of this change, so the package reference and the PR description now state what remains. * docs(persistence): refresh the catalog after the preset JSDoc edit The permission-presets module doc grew a line, so the recorded source line for its persisted event moved from 60 to 61. --------- Co-authored-by: DeepSeek Harness <[email protected]> |
||
|
|
fc0abf3f37 |
refactor(llm): rename routeCredential to providerCredential
Reviewers found `routeCredential` unclear. The method takes a provider route id, as `providerInfo()` and `providerRetryPolicy()` on the same adapter do, so the method and its types now carry that prefix: `LlmAdapter.providerCredential()`, `LlmRuntime.providerCredential()`, `ProviderCredential`, `ProviderCredentialGrant`, and `DeepSeekProviderCredentialOptions`. Behavior is unchanged. master never had the old names, so no released surface is renamed; the upgrade guide for this change names the new ones. |
||
|
|
18f492edbc | chore: merge master into ptc inspection branch | ||
|
|
f3ed11c1a3 | fix(ptc): preserve inspection across array changes and images | ||
|
|
18178318e9 |
Merge pull request #8038 from deepseek-harness/feat/standard-cordis-context
feat(preset): 合并 Cordis 检查工具并在标准模式启用 |
||
|
|
500dcf94be | feat(ptc): inspect tool results with their rendered text | ||
|
|
639c558fd3 |
Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
# Conflicts: # docs/capability-seams.i18n.yaml |
||
|
|
cb44a3c2ee |
feat(forge): read, review, and bind GitLab merge requests (#8317)
* feat(forge): let providers declare their hosts, names, sign-in, and review decisions Prepare the forge contract for a second provider: - ForgeProvider lists the hosts it serves and names itself (label, changeRequestNoun); registering a provider that lists a host another registered provider lists throws, so each URL has at most one provider. ctx.forge.describe(forge) returns the family's ForgeDescription. - ForgeReadiness carries the sign-in command, which the panel's sign-in banner shows instead of building `gh auth login` for the github family. - ForgeReviewData lists the review decisions the host lets the reader record; the review dialog offers only those instead of hardcoding the GitHub rule that a pull request's author may only comment. - ForgeReviewThread.original may name a later commit the host carried the thread to while its lines stayed unchanged. - The changes view names the code host and its word for a change request from the entry's ForgeDescription instead of hardcoding GitHub and PR. The GitHub provider declares its configured hosts, GitHub, pull requests, `gh auth login --hostname <host>`, and reads viewerDidAuthor for the review decisions. Upgrade guide: forge-provider-hosts. * feat(forge-gitlab): read GitLab merge requests through the GitLab CLI Add the experimental forge-gitlab provider. It serves the configured GitLab hosts through glab: status batches over GraphQL, head-pinned patches from merge request diff versions, commit listings, merge bases, pipeline jobs, closing issues, and review threads mapped from REST discussions, including outdated threads' hunks. The forge bundle composes the provider, disabled by default. * feat(forge-gitlab): write GitLab reviews, retry pipelines, request reviews, and rebase The GitLab provider now writes through glab as well as reading: comments start discussions at positions derived from the head's diff version, pending replies and comments are draft notes that a review publishes with its summary and review state, and approving checks the head through GitLab's sha parameter. Review reads carry the signed-in user's rights from GraphQL, their draft notes as the pending review, and the decisions GitLab lets them record. Snapshots name the head pipeline as every job's rerun, offer rebase as the branch update, and follow GitLab's permissions for reruns and review requests. updateBranch's contract now states how a provider whose host takes no expected head checks it. * feat(forge): let forge providers register the commands that bind change requests forge-session no longer recognizes gh commands by itself. A provider now registers a declarative ForgeCommandRule through ctx.forgeSession.registerCommands: its executable, creation and reference subcommands, change request page path, JSON URL members, declared options, and a pure select that maps one parsed reference command to a URL or a read-only lookup. forge-github registers gh and forge-gitlab registers glab, which adds glab mr create, view, update, and checkout, including numbers with -R: a full project URL binds directly, and other repository forms resolve through glab mr view in the call's shell. forge-session keeps the shared parts: the literal shell tokenizer, option parsing, output reading, lookups, and the projection. The forgeChangeRequests state version derives from the recognized rules, so a changed rule set refolds every Session, including commands that ran before the provider loaded. Ending a registration keeps its rule recognized until restart, so unloading providers at shutdown does not rewrite every checkpoint. * refactor(forge-gitlab): publish the GitLab provider as @deepseek-ai/dsh-forge-gitlab New experimental packages omit the experimental prefix so that promotion keeps their npm name. Register the directory in EXPERIMENTAL_PACKAGE_NAME_EXCEPTIONS instead of growing the legacy prefixed list, and rename every dependency, configuration row, path mapping, and document that names the package. * fix(forge-gitlab): keep review writes, comment positions, and reads within GitLab's facts and the limits - After GitLab refuses a publication, read the drafts again: delete them only when all remain, since GitLab can publish them before it refuses the summary, and report the outcome as unknown otherwise. A rollback that leaves drafts reports how many may remain. - Place comments on files GitLab collapsed through the diff compared from their texts, and let a file's new path name it over another file's old path after chained renames. - Keep the final newline of raw file reads. - Apply maxOutputBytes to the complete review result, and report a read whose rights stop early or skip a discussion's later notes as truncated. - Serve a version over maxCachedVersionBytes without keeping it. - Resolve uploaded avatars GitLab names by their path on the host. - Schedule bounded reads through p-limit. * fix(forge-session): run lookups only for live command rules and keep the projection registered - Reference lookups use the rules of live registrations, so a disposed provider's rule still folds but starts no gh or glab process. - A failed re-registration registers the projection again with the earlier rules, so clients keep its view; an error is logged only when that fails too. - Document the startup re-registration, test that the checkpointed state version survives a real Loader start, shutdown, and restart, and record that starting without a provider removes the bindings only its commands made. - Describe the changes view's pending review and single comment without naming GitHub, which keeps its own rule in forge-github, and render registerCommands as code in the generated service reference. * fix(forge-bundle): name GitLab merge requests in the bundle description The bundle now follows GitLab merge requests as well as GitHub pull requests, so the description's first sentence in every locale names both kinds of change request. * feat(forge): bind the change requests that gh api and glab api requests name Models often read a merge request through `glab api` or a pull request through `gh api` instead of `glab mr view` or `gh pr view`, which left the change request unbound. A command rule now declares raw API request subcommands beside its reference subcommands, each group with its own options, since `-f` is a value of `gh api` and a flag of `gh pr checkout`. An API request binds, as referenced, only the change request its REST path names, such as `projects/group%2Fapp/merge_requests/7/changes` or `repos/octo/demo/pulls/7/files`; its output is not read, since one request can list many change requests. A path whose host the command names binds directly, and one without a host, or with the current repository's placeholders, resolves through the CLI's view command in the call's shell. The gh and glab rules move to version 2. * docs(forge): add forge-gitlab and the forge-session peers to the module graph Regenerate docs/module-graph for the renamed GitLab provider and the optional forge-session peer of both providers. * test(web): refresh the forge bundle description in the recommended plugin catalog The creation recommendation recording carries every recommended plugin's description; refresh it for the forge bundle description that now names GitLab merge requests and the glab sign-in. * chore(forge-gitlab): carry the 0.2.2-rc.3 release version and move upgrade guides to v0.2.2-rc.3 |
||
|
|
5dfda6a5f3 | refactor(cordis): unify runtime inspection tool | ||
|
|
1baaf819d7 |
docs(llm-route-credential): use the established Chinese term for a withdrawn credential
The Chinese pages of the route credential change rendered "withdraw" as 收回. The bilingual pages on master render it as 撤回 in most places, so the seven pages this branch edited now use that term. The English pages are unchanged; only the Chinese hashes of the pairing records move. |
||
|
|
b203bc06d0 |
Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
# Conflicts: # docs/capability-seams.i18n.yaml |
||
|
|
564dfa8623 |
Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
# Conflicts: # apps/desktop/README.i18n.yaml # docs/AGENTS.md # docs/capability-seams.i18n.yaml # docs/event-producer-consumer.md # docs/event-producer-consumer.zh.md # docs/persistence-catalog.i18n.yaml # docs/persistence-schema.json # packages/account/deepseek-account/README.i18n.yaml # pnpm-lock.yaml # scripts/doc-budgets.manifest.json |
||
|
|
eba84b96cf | Merge branch 'master' into sync branch | ||
|
|
1966a5e2bb |
fix(llm-deepseek-account): end requests whose account credential is signed out
Unloading the account route removed its sign-out listener and running-task report while a model request it had dispatched kept streaming, so a later sign-out neither closed that request nor cancelled its turn. A route credential grant now carries an optional `revoked` signal. The account service aborts it at each sign-out, after the deepseek-account/signed-out listeners return, and the shared transport runs the model request and its file operations under it. The route plugin names that end ACCOUNT_SIGN_IN_REQUIRED and cancels the route's running Agents from the request's own failure callback, so a turn whose route was disabled mid-turn still ends with the signed-out cause, and disabling the route never waits for a turn. The Search and Fetch API providers and Messages search run their request under the same signal and report WEB_PROVIDER_ERROR with sign-in guidance, keeping WEB_ABORTED for caller cancellation. Account model requests outside an Agent turn and account-billed web requests therefore end at sign-out as well. The web-search-account-signout recorded scenario pins the failure the model sees. While the route is disabled, a task it started that is executing a tool is not reported to the sign-out confirmation and ends at its next model request, which fails because the route is no longer registered. The API-key route README Summary exceeded its 100-word limit; the origin detail moves to the usage section. |
||
|
|
8c328900d1 |
Merge pull request #6705 from deepseek-harness/search-fuzzy-converge
refactor(client): converge search lists on shared multilingual fuzzy filter |
||
|
|
cd5a4950c3 | Merge branch 'release/dsh-0.2.2' into master | ||
|
|
b8c33a1504 |
feat(experimental): 导入 DeepSeek 官网对话导出为会话 (#8342)
* feat(session-query): import DeepSeek chat exports as Sessions Add @deepseek-ai/dsh-deepseek-chat-import: the browser uploads a deepseek_data-*.zip export, the Host buffers it in memory (bounded by maxUploadBytes, default 512 MiB), linearizes each conversation tree to its newest leaf, keeps the most recent maxSessions conversations, and stores one Session per conversation in the chosen Workspace with original titles and times. Reasoning, answers, web search/open fragments, and exported images map to native events and attachments; withdrawn, failed, and templated replies end their turn with an error and stay out of model context. Also add the sidebar.session.action slot beside New session, publish the New-session Workspace menu as the reusable workspace.picker Factory (with a directory-flow hole both directory pickers fill), and add an upload icon. * refactor(experimental): ship DeepSeek chat import as an optional bundle Move @deepseek-ai/dsh-deepseek-chat-import from packages/session-query to packages/experimental under its unprefixed name (recorded in EXPERIMENTAL_PACKAGE_NAME_EXCEPTIONS). The Web composition no longer mounts it: the package now declares dsh.bundle.patch with its own deepseek-chat-import row, an icon, and localized display metadata, and joins OPTIONAL_BUNDLES, MORE_BUNDLES, and EXPERIMENTAL_BUNDLES, so the Plugins page offers it switched off under More with the Experimental badge. The dsh installation carries it as an optional-bundle dependency. Also fix the test typings that failed the aggregate build:check (branded SessionId keys, the generic renderFactorySlot stub, an ArrayBuffer-backed Request body), the lines oxlint rejected, and regenerate the config catalog, module graph, and dsh-doc package list. * docs(experimental): document DeepSeek chat import as an optional bundle Rewrite the DeepSeek chat export import Agent Note for the current design, add its English counterpart and pairing record: browser upload to an owner-only exact route, in-memory unzip bounded by maxUploadBytes, one import at a time, a Workspace chosen through workspace.picker, the closed failure reasons, and delivery as an experimental optional bundle. Record the rejected host-path input, Workspace file listing, and disk staging alternatives. Add the package README pair in the package-bundle layout (enabling from the Plugins page, Config fields, results, failures, implementation, Model Experience, limitations), list the package in the experimental group tables, and re-record the ui-sidebar README pair whose sidebar.session.action paragraph changed on both sides without a new record. * fix(experimental): import DeepSeek chat exports one conversation at a time Address the review of the DeepSeek chat import route and importer: - Decompress with fflate's asynchronous unzip, one entry per request, and refuse any entry whose declared uncompressed size exceeds the new maxEntryBytes (default 256 MiB) before inflating it. A first pass keeps only each conversation's entry, id, title, and last-message time; a second pass imports the selected conversations oldest first, one at a time, yielding to the event loop between them. - Fill the Session limit with the next older conversation when a selected one fails; omittedByLimit counts only conversations never attempted. - Check that the Workspace still exists before each write; a Session stored but not attached is reported in skipped with its id. - Stream the route answer as NDJSON progress lines and one outcome line; the dialog shows a progress bar and "Importing n/K". - The service owns the single import slot and an AbortController per request; unloading cancels the running import and waits for it to stop. - Buffer the upload once, sized from content-length; drop the unreachable 405 branch. - limits() refuses non-owner callers. - Normalize titles with normalizeSessionTitle (new maxTitleBytes, default 80); fixed error codes for unfinished replies with DEEPSEEK_EXPORT_UNFINISHED_REPLY for unknown statuses; an empty user message becomes "[empty message]"; a question whose reply was withdrawn by content filtering is left out together with the reply. - The plugin entry exports only the Service class, error classes, and types. - The dialog shows thrown errors, refreshes the Session list after every attempt without turning a success into a failure, and chooses singular or plural summary lines. * docs(experimental): document and test the per-conversation chat import Move the DeepSeek chat export import Agent Note to implemented/feature with the Decision/Consequences skeleton and describe the shipped design: two passes over the in-memory archive, the maxEntryBytes and maxTitleBytes limits, NDJSON progress, the service-owned import slot and unload cancellation, owner-only limits(), filling the limit, the per-conversation validation guarantee, attach failures without a persistence delete, the [empty message] placeholder, dropped content-filtered rounds, fixed error codes, and branch selection that ignores current_message_id. Update the package README pair to match, rewrite the unit tests for the new importer, route, archive, and client behavior (including a declared-size zip bomb, a misdeclared entry, buffer sizing, owner-only limits, and unloading during a paused import through the real Loader composition) at 100% per-file coverage, classify normalizeSessionTitle as a peer-required Host export, record the Session exports the importer already uses in the dependency policy spec, fix the lines oxlint rejected, and regenerate the config catalog and module graph. * fix(experimental): give imported Sessions a protected empty system head An imported seed had no system/message, so a resumed Agent appended its system prompt after the imported history. The released Session format accepts a system/message only as surface node 0 or after such a head, and the JSONL reader checks this on every read, so a continued imported Session failed to open again with SessionPersistenceCorruptionError. The first imported turn now writes an empty system/message as surface node 0. It derives no model message and renders no prompt card; on resume the Agent replaces it with the real prompt. The resume test asserts the single replacement, one system message in the model request, and a successful read of the stored log after the turn. * test(web): record a DeepSeek chat import snapshot Add the keyless Web snapshot case snapshots/web/deepseek-chat-import with its driver apps/web/tests/deepseek-chat-import.e2e.ts. The driver enables the optional bundle in the scaffold profile, uploads a synthetic export through the owner route (two conversations: a branch, reasoning, a web_search/web_fetch pair, a content-filtered round, and an incomplete reply), opens the imported Session in the browser, and continues it with one recorded model turn. The persisted log shows the empty system head replaced by the real prompt and replays without a key. Register the driver in the Host program and out of the Web Client program, and point the package README pair and the Agent Note at the case. * fix(experimental): classify the chat import service in the doc gates The chat import service surfaces in the Cordis catalog, the capability-seam graph, and the plugin manager inventory, but none of the three gates knew about it: doc graphs threw on the missing role classification, the catalog gate rejected the unclassified `DeepseekChatImportLimits` and the service without a subsystems page, and the Web inventory expectation predated the bundle. Map `ctx.deepseekChatImport` to persistence.md and classify the limits type and service role, then regenerate the catalog and graph docs. The two Web replay fixtures were recorded before the bundle was listed, so regenerate them against the current catalog and plugin inventory. * fix(experimental): upload chat imports through the page transport carrier A page whose Host runs in another execution context has no HTTP server: the preview answers the archive POST with 405. Send the export through the pre-boot `__DSH_TRANSPORT__.fetch` carrier when a shell installed one, and keep XMLHttpRequest on served pages so the browser still reports upload progress. * test(experimental): cover the chat import upload carrier path Cover the page-transport branch of the export upload, which the previous commit left untested: the carrier request, a streamed NDJSON answer, an answer without a body, non-200/JSON/result failures, and cancellation before and during the request. Both upload paths now share one answer collector, so the XHR path keeps its behavior with fewer branches. Resolve the generated `./remote` contribution through a stand-in when this package has no built `lib/`, as the LiveShare suite does: on a clean checkout Vite transforms the client entry before `vi.mock` can answer that import, which failed the jsdom assembly suite in CI. Record the Chinese capability-seams row and the pair after the generated English row, so the bilingual pairing gate passes. * feat(experimental): import the 2026-11-12 DeepSeek chat export structure The 2026-11-12 exporter keeps `export_format_version: 3` while adding `current_message_id`, `stage_id`, tool statuses, plaintext `READ_LINK` fields, and exported `TOOL_FIND.pattern`. Read the added fields as optional so a structurally older archive still imports. - Select the branch ending at `current_message_id`, falling back to the greatest message id when the field is absent, null, or unknown. - Split steps at a `stage_id` change; fragments without one keep the reasoning-or-text-after-a-tool-call rule. - Replay a `FAILED` search as an error result, skip `WIP`, and treat a missing `status` as `FINISHED`. - Write placeholder lines for opened pages without an address, links, image searches, partial file reads, tips, and page finds instead of dropping them; keep `CONTENT_RISK` dropped. - Cover the new fields with a synthetic archive test, update the Web snapshot driver to the new structure, and refresh its fixture. * docs(experimental): record the 2026-11-12 chat import structure Update the package README pair and the Agent Note pair for the branch rule (`current_message_id` with the greatest-id fallback), the new fragment mappings, the `TOOL_FIND` pattern, the `stage_id` step rule, and the limitation that only the 2026-11-12 structure is supported. Re-record both translation-pairing records. * fix(experimental): reject duplicate and misdeclared archive entries A ZIP may list several entries under one name, and read() selects by name, so duplicates decompressed every match at once and bypassed maxEntryBytes. Reject a directory with duplicate names while opening the archive. A ZIP_STORED entry is copied by its compressed size, not by originalSize, so a stored entry could declare 16 bytes and deliver a megabyte. Require the declared and stored sizes to agree and bound both by maxEntryBytes before anything is copied. * fix(experimental): validate the chat import answer lines parseLine cast decoded JSON to the line union, so a null or any other valid JSON threw when the reader read line.type. In the XHR path that throw happened inside onload/onprogress, leaving the upload promise unsettled and the dialog on "importing". Validate the decoded value against the union with typed guards: an object of a known type with that type's fields. An invalid line now fails the answer as "the server answered with invalid JSON". Covered on both the XHR and carrier paths. * fix(experimental): keep call-less chat import steps open and bracket tips A stage_id change split a step even when it held only placeholder text, so a placeholder-only step became an assistant message without a call and the resumed history carried two adjacent assistant messages, which the live agent loop never produces. Split only when the open step already holds a tool call; otherwise update its stage. A TIP is a website notice attributed to the assistant, so write it as the bracketed placeholder [tip: ...] like the other non-model records. * fix(experimental): report the import limit the Host applied The pre-check limit (maxUploadBytes) was attached to every Host failure, and failureText printed only that limit, so a manifest over maxEntryBytes was reported as "the file is too large: the limit is 512MB". Attach the pre-check limit only to the browser's own too-large outcome and show the Host's message when it reports too-large, which names the real limit. * fix(client): fade the imported sidebar action in with the rail The rail-in fade targeted .newSessionRow > *, whose slot entry is the renderer's display: contents anchor: it has no box, so the imported button appeared without fading next to New session. Hit the anchor's child too and assert the selector keeps the rail-in animation. * docs(experimental): describe the chat import upload carrier A page whose Host runs in another execution context, such as the static Cloudflare Pages preview, supplies __DSH_TRANSPORT__.fetch and carries the archive over it with no byte progress, straight to the reading and importing phases; a served page uses XMLHttpRequest. Record that in the README and the Agent Note, and list the missing upload percentage under Known Limitations. Also record the bracketed [tip: ...] placeholder, the stage-split rule that keeps call-less steps merged, the within-step block order, and why dsh-client-file-upload is not reused. Re-record both i18n pairs. * fix(client): fade only the slot entry with the rail The rail-in rule reached every child below the row's slot anchor, which also matched the label mask and shortcut inside the New session button: the button ran the animation twice, so its icon was clipped and then slid in from the edge. Target the renderer's `data-slot` anchor child, which is the registered session action alone, and assert that no rule under the row reaches into the button. * feat(experimental): stream the chat import from the export index `chat_session_index.json` now selects the conversations: the newest `maxSessions` by its `updated_at` (ties by `inserted_at`, then id) are imported, and a missing or unreadable index fails with the new `missing-index` reason instead of falling back to a scan. The selected conversations are handled in one streaming pass over the archive. Each conversation is parsed, converted, and written as it arrives; one that waits for its images is held until they stream past or the archive ends, and images that never arrive stay placeholders. No conversation the index does not select is inflated, and a failure pulls the next older indexed conversation by name. The pass reports a stored entry whose declared size differs from the bytes it holds as damage, not as an oversized entry, and reports actual bytes above `maxEntryBytes` as oversized. * refactor(client): wrap the New-session row with the session-action slot Make `sidebar.session.action` an HOC layer instead of a list: the shell passes the New-session Tooltip and button as `children` and an occupant returns them together with its own controls. No wrapper element is added, the per-entry anchors are gone, and an occupant that adds nothing (or may not act) returns `children` unchanged. The rail-in fade now targets the outlet anchor's children, because the renderer's `display: contents` anchor has no box of its own; the style spec asserts the rule matches both buttons and nothing inside them. * fix(experimental): read chat-import images by name Resolve each selected conversation's images by name through the archive's targeted read instead of holding the conversation until its image entries stream past. Archive entry order no longer decides whether an image is attached, and an image rejected for size or corruption reports its own reason. A replacement conversation now runs image planning and reads inside its per-conversation failure handling, so an invalid candidate is skipped instead of aborting the import. * docs(experimental): record chat-import residual risks Document the synchronous inflation that outlives the entry size bound, duplicate local file headers, partial writes after a mid-pass archive failure, by-name read truncation, and attachments stored for withdrawn rounds. Explain the session-action HOC layering and the children obligation in the Agent Note, and align both language pairs. * docs(experimental): give the chat import a plugin detail page The Plugins page renders `meta.detail` rather than the README, so the package now ships `docs/DETAIL.md` and `docs/DETAIL.zh.md` beside Chinese and English preview images of the import dialog. Every locale names its detail document, and `docs` joins the published files. * fix(experimental): store chat-import images in one archive pass Pass 1 stores every image entry of a conversation the index chooses, before any conversation is parsed, and records the reference or the reason it stayed a placeholder. Pass 2 converts and writes each chosen conversation from those references, so the main path no longer re-parses the central directory once per image. A replacement conversation is still read by name once, and its images come from one further image pass. Correct the convertWithStoredImages JSDoc and the Known Limitations entry: the images-first order makes validate-before-store impossible, so images of a withdrawn round, a dropped branch, or a conversation that fails conversion or Session.create seed validation stay stored without a referencing event. Neither SessionPersistence nor the attachment store offers a removal. Settle the browser answer on the first invalid NDJSON line in both the XHR and page-carrier paths, cancel the rest of the stream, and prevent a later outcome from replacing the failure. * fix(experimental): drop image searches and address-less opens from the chat import The website shows neither of these in a reply, so the import no longer writes a line for them: - `TOOL_IMAGE_SEARCH` replays as nothing. The searched image is not in the export and the reply's reasoning already states what the model took from the results, so the `[image search: n results]` line carried no information a reader could act on. - A `TOOL_OPEN` without an address is the all-null record the exporter writes beside the real page opens of a stage, carrying only `stage_id` and `group_id`; it names no page and replaces the line `[opened page: the export recorded no address]` with nothing. A constructed archive with a pictured question, an image search, two opened pages, and the all-null record now imports to the image, the two fetch cards, the reasoning, and the answer. * feat(experimental): show imported files as cards instead of placeholder text The website shows none of these records as reply text, so the import now matches it: - A non-image file, and an image the archive cannot store, become a synthetic file card: the standard card renders its icon, name, and exported size, and no bytes exist behind the reference. - A `READ_LINK` record becomes one Markdown link line per linked page. - A `TOOL_FIND`, `PARTIAL_FILE_READ`, `TIP`, or `TOOL_IMAGE_SEARCH` record leaves no trace in the reply. - A user message without any content keeps one empty text block instead of `[empty message]`. `file_size` is optional in the export schema so an archive without it still imports. * fix(session-query): keep the session-log export when an attachment is gone A reference whose stored object was deleted failed the whole ZIP download. Each attachment is now read inside the entry that needs it: a missing object is recorded in `attachments-missing.txt` with its archive path and reason, while every other read failure still fails the export. A file's first chunk is pulled before its entry is yielded, so an absent object no longer breaks the download halfway through. * fix(experimental): take attachment brands and error codes from their owners The import package now builds the synthetic file reference with `brandString<AttachmentId>` from dsh-brand instead of importing the attachment package's runtime helper, so dsh-attachment stays type-only and dsh-brand becomes its one runtime dependency. The log export matches the missing-object code on the error instead of importing the class, which keeps that class its owner's peer. The recorded web snapshot follows the new link line. * fix(session-query): release an abandoned attachment stream and accept invalid references A consumer that stops early left the open file iterator to the garbage collector: the entry's stream is now closed by the entry owner too, so a cancelled download releases it. A reference the backend rejects as invalid joins a missing object as a reported skip rather than failing the download. The chat import documents that an empty question's text block is dropped by DeepSeek request serialization, so that Turn's question stays out of the model context. * docs(experimental): drop a duplicated clause from the import note * fix(session-query): close abandoned attachment streams without masking failures Closing one stream must not keep the others open or replace the failure in flight: the streams live in a set that removes each entry as it closes, and the drain settles every close. The chat import converts a pictured conversation once, resolving its references first, and states both possible model handles for a synthetic card. |
||
|
|
a5bdc28238 |
refactor(client): converge search lists on shared multilingual fuzzy filter
Fixes #6681 |
||
|
|
2ec306eacb |
Merge pull request #8073 from deepseek-harness/turtle/fix-web-fetch-error-58da60e9770f
feat(web-fetch-http): classify transport failures and show readable causes |
||
|
|
d997173e45 |
feat(timeline): integrate Timeline as an experimental plugin (#7973)
* Add Timeline as an experimental Harness plugin * fix(timeline): align prompt counters and release inactive views * fix(timeline): refine frontend motion and document features * test(timeline): refresh recorded context after upstream update * fix(timeline): satisfy UI locale and module graph checks * test(timeline): align integration checks with CI test lanes * docs(timeline): document exported locale dictionaries * fix(timeline): use session records and native client interfaces * fix(timeline): mount edit RPC and align integration checks * fix(timeline): follow Harness theme rules * test(timeline): cover session recovery and client interactions * fix(timeline): address integration review findings * fix(timeline): isolate forked plan continuation * docs(timeline): record the 0.4.0 integration changes * docs(timeline): clarify the plugin description * test(timeline): cover integration behavior and recovery edges * fix(timeline): align dependency metadata and test lint * fix(timeline): isolate scoped work and harden replay * docs(timeline): refresh persistence catalog source links * docs(timeline): document planning ownership predicate * test(timeline): refresh the recommendation description snapshot * build(timeline): classify Host dependency exports * test(web): pace the Goal queue snapshot replay * feat(timeline): make sidebar auto-open configurable * docs(timeline): clarify sibling task weights * fix(timeline): harden report updates and checkpoint recovery * refactor(timeline): share detail view props * fix(timeline): clarify progress, reports, and sidebar settings (#8347) * fix(timeline): align the integration with current Harness contracts * fix(timeline): preserve navigation when removing a task tree * Reduce Timeline report replay allocations Reuse the discussion list when report retention leaves its targets intact. Clarify that the integrated package follows the Harness release version. Node 24.21.0 on macOS arm64, median of three measured replays after warmup. With 17,640 reports, replay took 5650 ms before and 804 ms after. Peak RSS fell from 343 MiB to 288 MiB. Retained heap stayed near 33 MiB. The serialized view stayed at 5,297,849 bytes. --------- Co-authored-by: ZiyaZhang <[email protected]> |
||
|
|
695f640063 |
Merge pull request #8133 from deepseek-harness/discuss-client-iframe
refactor(client): add client module js realm (with module manifest and style operation) |
||
|
|
71753fdf91 |
refactor(connection): add connection auth provider for remote connection (#8266)
* refactor(connection): extract peer authentication providers * test(connection): cover provider lifecycle and satisfy package gates * fix(packaging): publish authentication provider locale resources * test(auth): use runtime login output and cover gateway admission * fix(auth): preserve Worker requests and migrate Desktop fixtures * refactor(auth): centralize route admission with required policy * fix(release): align authentication providers with rc.2 * refactor(connection): keep peer lookup and source policy private * test(gateway): cover centralized upgrade rejections * fix(ci): authenticate homepage compression probe * refactor(auth): let Token own API socket lifecycle * fix(auth): prevent caching admission refusals and clarify ownership * refactor(web): collect provider entry URLs after readiness * refactor(webserver): name the shared entry URL event * refactor(connection): provide authentication as a nested service * fix(web-app): restore startup publication defaults * fix(auth): scope web events and preserve callback flows * docs(auth): record the implemented provider architecture * fix(auth): require owner access for administrative routes |
||
|
|
52e3256e78 | Merge remote-tracking branch 'origin/master' into docs/feedback-exported-logs | ||
|
|
1848364e29 |
Merge pull request #8380 from deepseek-harness/xtr/remove-python-ptc
refactor(ptc)!: remove all Python PTC support |
||
|
|
0789f36a26 |
docs(compaction): address review comments on summary-route wording and the snapshot fixture
State the fallback order consistently, qualify it for sessions without an assistant message, document the unavailable-answering-model limit and the tool-declaration source, share the system prompt sidecar, and align the recorded task with the scenario. |
||
|
|
c1e490b7b5 | fix(ptc): reject unsupported providers without native fallback | ||
|
|
77e491f9b0 |
refactor(compaction): record the answered route in a private projection
Review feedback: the summary route and its restorable state belong to compaction-basic. A host-only projection now records the provider/model of each assistant message source, replacing the tokenMeter.answeredRoute() service method, which had one caller. |
||
|
|
656533bde1 | refactor(ptc)!: remove all Python PTC support | ||
|
|
65b3c2f6e0 | Merge remote-tracking branch 'origin/master' into worktree/model-switch-compact-overflow-dc62bb | ||
|
|
9ebb02afb7 |
fix(compaction): summarize on the model that last answered
A request that overflows still commits its request header, so overflow recovery, /compact, and the next model-switch check sent the summary to the model that had just rejected the history. Summaries without a configured target now use the route of the latest assistant message, read from the token meter's existing measurement anchor. |
||
|
|
99208d19d9 |
Merge pull request #8303 from deepseek-harness/feat/liveshare-owner-state-claim
fix(liveshare): claim the owner state per running host |
||
|
|
d670015cd6 |
docs(feedback): keep only feedback-specific rules for exported logs
Link the OTel backend and session-telemetry pages for record fields, deduplication, and redaction instead of restating them. Limit the inherited-event exclusion to feedback counting so a seeded Session's rated reply stays locatable, name the messageId paths, and drop the format-based plugin heuristics in favor of the no-actor fact. Refs #8366 |
||
|
|
f07ccacb9a |
docs(feedback): describe reading feedback from exported session logs
Document the OTel session-log record fields, the three feedback events, deduplication, fork-inherited events, current-value reduction, locating the rated reply, and recognizing plugin-written feedback fields. Refs #8366 |
||
|
|
a25c389f07 |
Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
master gained the Session reading status service (#6858) and the model picker controls (#8067) while the previous merge was being verified. Conflicts: - docs/capability-seams.i18n.yaml: both sides recorded the pairing of the seam table again. The documents merged without conflict: master's ctx.sessionStatus rows and edges and this branch's deepseekAccount and llm consumer edges coexist in both languages, and the record is recorded again from the merged pair. |
||
|
|
c3953b65d7 |
Merge remote-tracking branch 'origin/master' into claude/tool-errors-experimental-c89252
# Conflicts: # packages/experimental/cua/README.i18n.yaml # packages/experimental/cua/README.md # packages/experimental/cua/README.zh.md # packages/experimental/cua/src/index.ts |
||
|
|
f4ac78bb34 |
Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
master moved internal identity construction to brandString (#8214) and added the empty-catch gate with its recorded baseline (#4862); both touch files this branch changes or moves. Conflicts: - packages/llm/llm-deepseek/tests/adapter.spec.ts, packages/llm/llm-deepseek-account/tests/provider.spec.ts, packages/experimental/translator/tests/paid-fixture.ts, and packages/web/web-search-deepseek/tests/deepseek.spec.ts: master rewrote the id constructor calls to brandString<T>() with type-only imports, while this branch replaced the hand-built account stand-ins with accountStub. The result keeps master's id construction and imports and this branch's stand-ins; the one Session this branch's own search test creates follows master's construction. - packages/web/web-deepseek-api/package.json and packages/web/web-search-deepseek/package.json: this branch's sorted devDependencies plus master's dsh-brand entry. - docs/capability-seams.md and docs/capability-seams.zh.md: master's cuaPrograms consumer edge and this branch's deepseekAccount consumer edges coexist; the pairing record is recorded again from the merged pair. - docs/module-graph.md, docs/module-graph.zh.md, docs/persistence-schema.json, and pnpm-lock.yaml: regenerated from the merged sources. Beyond the conflicts: - scripts/empty-catch.baseline.json: master recorded two clauses under packages/credentials/deepseek-account, which this branch moves to packages/account/deepseek-account. The two keys are renamed with the files, as the gate requires for a moved file. - AGENTS.md: master's checker link and this branch's account/ layout row together exceeded the frozen 2,080-word ceiling by one word, so the row reads "account/ DeepSeek". |
||
|
|
a39d44b5dc |
feat(session): add host reading status to SessionStatus (#6858)
* ✨ feat(session): persist and synchronize read state * 🌐 fix(client): complete Japanese labels after base update * 📝 docs: refresh session read-state dependency graph * 🧪 test(web): align session menu and read-state snapshots * 🌐 fix(session): complete Japanese plugin metadata * 🧪 test(web): distinguish unread from pending user input * 🐛 修复会话阅读状态的故障隔离与生命周期 * 🐛 修复阅读状态依赖检查并补齐自动已读覆盖 * 🐛 恢复会话绿点并移除未读标题加粗 * ♻️ Keep shared session reading state in Host memory * 🌐 Complete reading-state metadata for supported locales * 📝 Refresh module graph after removing storage dependency * 🧹 Move storage dependency policy out of memory-only reading * 🐛 Wait for sidebar catalog before replay navigation * 🔧 Give Host TypeScript checks 8 GiB of heap * ✅ Align Host heap checks and Windows diagnostics * ♻️ Keep CI repairs outside the session reading PR * 🐛 Show failed unread turns with an error indicator * 🔧 Adjust npm layout budget for the reading package * 🧪 Scope projection stream assertions to observed units * 🧪 Scope permission and title assertions to their projections * ♻️ Simplify session reading updates to explicit positions * 🐛 Align session reading package with release version * 🧪 Load reading state in LiveShare viewer fixtures * 🧹 Remove persistence-only type link from memory PR * 🧪 Align context menu expectations with reading actions * 🐛 Sync reading package with the release version * 🧪 Include turn boundaries in session summary expectations * ♻️ Derive reading failure facts from Host events instead of a projection The reading service took each completion from the Agent turn-boundary projection, which forced a stateVersion bump and put that projection's whole internal state on the wire for every Session list row. The service now records `turn/end` itself, so `core/agent` and the persisted projection schema are untouched. History that ended before the service started raises no reminder, which keeps "existing history reads as read" without a startup scan. The failure flag therefore describes only turns this Host observed: marking a Session whose last turn failed before a restart shows the ordinary unread reminder. * 🐛 Preserve manual unread until explicit Session interaction * 🧪 Align cold Session reading snapshot with unloaded title * 🔖 chore(session): align session-read-state with 0.2.2-rc.2 Master moved the root and every released manifest to 0.2.2-rc.2, but the new dsh-session-read-state package still declared 0.2.2-rc.1, failing constraints, verify-version-sync, verify-npm-install-layout, and release:verify after the master merge. * ♻️ refactor(gateway): recognize Remote stream carrier loss by error code RemoteStream now decides whether a generation end or failure is a retryable carrier loss by the stable code 'gateway/carrier-lost' instead of `instanceof RemoteStreamCarrierError`. RemoteStreamCarrierError keeps working and carries that code, so existing callers are unchanged, while a Client feature package can return a coded Error from `ended` without importing the class. The new RemoteStreamCarrierFailure type describes such errors; terminal-controller classifies disconnects the same way. * ♻️ refactor(session): move Session reading into ui-session-status Fold the reading feature into the single package packages/client/ui-session-status and delete session-read-state. - Host face: SessionStatusService keeps in-memory reading records and serves the sessionStatus Remote namespace (mark, follow) with session-status/* error codes; its service key is registered only for Gateway discovery and is not declared on Context. - Client face: a package-internal reading model follows the Host stream through RemoteSnapshotStream; ctx.uiSession.sessionStatus folds the records into completionUnread and completionFailed and exposes mark and readingReady; main-view acknowledgement and the session-status/read-intent event live here. No reading service or type is exported. - verify-client-packages lets a packages/client feature package request packages/api rows through dsh.client.external; feature-to-feature requests stay rejected. - ui-workspace, ui-conversation, bundles, remotes, LiveShare, the client test runtime, docs, Agent Notes, and the upgrade guide follow. * ♻️ refactor(session): clear manual unread only when the main view switches to the Session Remove the session-status/read-intent event. ui-session-status now clears an existing manual unread mark when the main view switches to a different Session, including the first selection after a page load, once the reading baseline is ready and the body arrives. Window focus, visibility changes, a replaced binding for the same Session, and activity in the open Session preserve manual unread. ui-conversation returns to master (only the ui-session-status client tsconfig reference remains), and ui-workspace navigation no longer emits the event. Tests, the session-reading Web e2e case, READMEs, and the reading Agent Note follow the new rule. * 🐛 fix(session): address the Session status review findings - Open the reading stream only while ctx.remoteAccess allows sessionStatus/follow, so a LiveShare viewer opens no owner-only stream, keeps readingReady false, and logs no synchronization failure; access changes start or stop the stream. - Hide the unacknowledged completion of the Session the visible, focused main view retains; manual marks stay visible, completionFailed follows completionUnread, and the reminder returns on blur, hiding, or a switch. - Declare ctx.sessionStatus on Context and restore its SERVICE_PAGE and SERVICE_ROLES entries; the service and SessionRead* types document on docs/subsystems/web-client.md, which now owns the reading section with the failed field. - Document that a Host plugin reload can leave the Client with a terminal error until a page reload; drop the redundant types import and the unused publish() result. - Archived Sessions read as read and offer no reading mark in the row menu or the toggle-read shortcut. - session.toggleRead names the open dialog, open panel, or archived Session that blocks it instead of asking to select a Session. - isRemoteStreamCarrierFailure rejects a RemoteError from the Host even when it carries gateway/carrier-lost; the code is Client-local. - ./types is types-only like ui-trajectory, and files no longer ship lib/types JavaScript. * 🐛 fix(session): close the remaining Session status review gaps - The Gateway Client exports isRemoteStreamCarrierFailure, and the terminal view uses it, so a Host RemoteError carrying the carrier code shows as failed rather than disconnected. - Each access grant's reading stream carries a token: frames a revoked or superseded stream still delivers are discarded, and cleanup waits for disposal before leaving reading unavailable unless a newer grant is active. - The status table hides the viewed Session's natural reminder only while that Session is open; the panel case is a documented limitation. - The README limitation and the upgrade guide state that only the main-view switch rule, including a reload restore, clears manual unread automatically. - Add the missing blank line before the next heading in the web-client reading section. * ♻️ refactor(session): install reading under the Session status table - apply returns to master's form plus one line: UiSessionStatus is the root, published as the useSessionStatus source, and installReading() from the new src/client/read.ts follows Host reading records into it. UiSessionStatus takes master's three constructor parameters and creates its own SessionReadModel as the package-internal `reading` member; installSessionStatus is removed and acknowledge.ts stays a separate file. - The viewed Session's snapshot subscription republishes the table only when its openState changes, so streamed events do not rebuild it. - Remove the obsolete Dev Note sentence about failure outcomes. - session.toggleRead passes when the Peer may not mark reading, matching the row menu, and reports readingUnavailable only while unsynchronized. --------- Co-authored-by: imccyu <[email protected]> Co-authored-by: imccyu <[email protected]> |
||
|
|
3ca18d169f |
fix(account): invalidate a rejected token on the account service mounted at rejection
- deepseek-account: the request credential's reject() re-resolves the account service through the resolving context, so a reload between a request and the destination's HTTP 401 still removes the stored grant; without a mounted service the grant stays for the next one to reject. resolveToken and rejectToken become private; the e2e sign-in stand-in and the generated API catalog follow. - llm-deepseek: routeCredential().resolve() publishes the grant's headers, value, and rejection only, keeping the adapter's onRequestError behind the seam. - web-deepseek-api: a route publishing an unparsable base URL becomes a misconfigured source instead of throwing from readiness or dispatch. |
||
|
|
cf92ab9aac | Merge remote-tracking branch 'origin/master' into claude/tool-errors-experimental-c89252 | ||
|
|
7d83af645c |
docs(llm): fix route credential contracts and the package index budget
- RouteCredential.configured: the owner may read its store to answer; the contract no longer claims "without reading the credential's value". Same text in the source JSDoc, both llm-streaming type-equiv blocks, and the seam Agent Note. - llm-deepseek README: replace the stale resolveAuth(connection) summary with the resolveAuth(connection, endpoint) contract. - llm-deepseek-account README: the listing cache is keyed by a SHA-256 of the credential headers, not of the token. - web-deepseek-api tests/routes.ts: note that composition.spec.ts covers the real route plugins. - packages/README: restore the document/, credentials/, and util/ rows and raise the verify-doc-budgets ceiling to 1,060 for the account/ row. |
||
|
|
c4dd37eb53 | Merge remote-tracking branch 'origin/master' into feat/cua-mcp | ||
|
|
d5e02356ea |
refactor(cua-mcp): reset by releasing the program environment through the runtime's owner release
cua_reset keeps its effect: only the program process is replaced, while the connection's Agent, its native connection, and its consent decisions stay. The PTC program-tool factory no longer carries a reset operation, so packages/core/tool-executor-ptc is unchanged against master. ctx.cuaPrograms exposes release(agent), the owner release of the provider's program runtime, and the MCP frontend orders its own calls around it: it cancels the running program, releases the environment, answers after the cancelled program has settled, and holds back programs that arrive during a reset. A failed release answers with an error that asks for another cua_reset; the runtime rejects programs until a release succeeds. The reset result names cua.getApp for selecting applications again. |
||
|
|
0b8ee3b709 |
Merge pull request #8168 from deepseek-harness/refactor/tool-errors-mcp
feat(mcp,web,skill,cordis,plugin,ptc): give MCP, web, skill, inspect, plugin, and run_code tool failures error codes |
||
|
|
75f9f6ef98 |
Merge remote-tracking branch 'origin/master' into feat/cua-mcp
master removed the Python PTC runtime (#8307) and rewrote three bilingual documents this branch also edits. Conflicts: - docs/capability-seams.i18n.yaml, packages/core/tool-executor-ptc/README.i18n.yaml, and packages/experimental/README.i18n.yaml: both sides re-recorded the translation pairing records. The merged documents were reviewed in both languages and the three records recorded again from them. |
||
|
|
74c20de23f |
Merge remote-tracking branch 'origin/master' into fix/forge-ptc-binding
# Conflicts: # packages/experimental/forge-session/tests/loader-composition.spec.ts |
||
|
|
7bd01e1e29 |
Merge remote-tracking branch 'origin/master' into feat/session-panel-sections
# Conflicts: # apps/web/tests/jobs-panel-layering.e2e.ts # apps/web/tests/sidebar-subagent-activity.e2e.ts # apps/web/tests/subagent-conversation.e2e.ts # apps/web/tests/support.ts # docs/config-catalog.md # docs/config-catalog.zh.md # docs/event-producer-consumer.md # docs/event-producer-consumer.zh.md # docs/module-graph.md # docs/module-graph.zh.md # docs/subsystems/forge.i18n.yaml # packages/client/README.i18n.yaml # packages/client/ui-jobs/package.json # packages/client/ui-subagent/package.json # packages/client/ui-subagent/src/client/index.ts # packages/client/ui-subagent/tests/conversation-ui.client.spec.tsx # packages/client/ui-subagent/tsconfig.json # packages/experimental/client-ui-forge/README.i18n.yaml # packages/experimental/client-ui-forge/README.md # packages/experimental/client-ui-forge/README.zh.md # packages/experimental/client-ui-forge/package.json # packages/experimental/client-ui-forge/src/client/ChangeRequestCard.tsx # packages/experimental/client-ui-forge/src/client/ChangesTab.tsx # packages/experimental/client-ui-forge/src/client/ForgeTab.tsx # packages/experimental/client-ui-forge/src/client/mount.ts # packages/experimental/client-ui-forge/tests/forge-tab.client.spec.tsx # packages/experimental/client-ui-forge/tests/mount.client.spec.ts # packages/extensions/cordis-client-runner/src/client/slot-catalog.ts # packages/preset/agent-preset/skills/dsh-doc/references/packages.md # pnpm-lock.yaml |