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.
Contain any substitution failure, including deep values, in the ordered
commit lane, state the all-or-nothing contract and text delivery in the
docs, and describe the raw-block fallback in the MCP declaration.
Refs #8468
Admitted MCP image blocks now carry their attachment reference. PTC
turns value entries that reference finalized result images into
program Images, as native CUA screenshots are, so inspect shows the
picture instead of base64 and the picture is not attached twice.
Refs #8468
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.
Plugin settings pages registered through `settings.section` stay in the
Settings dialog. The Plugins page also shows such a page on the bundle row,
or bundle, whose package registered it when that row or bundle has no
configuration of its own. Both surfaces render the page through the new
`settings.section.view` Factory, which declares `settings.section`; the slot
runtime records the registering package on each entry.
Settings replaces the Built-in plugins section with a Plugins entry that
opens the Plugins page. The two packages behind that section are removed,
and the page-local client sync notice moves to the Plugins page.
Co-authored-by: LegGasai <[email protected]>
* 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
master released 0.2.2-rc.3, which freezes docs/upgrade-guide/v0.2.2-rc.2.
The guide of this unmerged change moves to the directory of the current
root version, and the route credential Agent Note links to its new path.
The guide text is unchanged.
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.
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.
Search and Fetch picked a route credential by route id without comparing
its kind, so an adapter registered as deepseek-official that publishes an
account credential had that credential sent under API-key billing, and
the reverse held for deepseek-account. A credential whose kind differs
from the route's counts as no route, as an adapter publishing no
credential already does: API-key billing falls back to DEEPSEEK_API_KEY
at the official base, and account billing asks the account service.
Readiness and dispatch share the source, so both follow the same rule.
Both sides changed the macOS README, so its pairing record is recorded
again from the merged text.
# Conflicts:
# packages/experimental/cua-macos/README.i18n.yaml
Both sides changed the CUA and macOS READMEs, so their pairing records are
recorded again from the merged text.
Master added a CUA guidance line and changed the cua_run_code description.
The prompt and schema sidecars of the SDK cua-run-code scenario and the
prompt sidecar of the headless cua-run-code-ptc scenario are refreshed to
match.
# Conflicts:
# packages/experimental/cua-macos/README.i18n.yaml
# packages/experimental/cua/README.i18n.yaml