Commit Graph
671 Commits
Author SHA1 Message Date
gengruilin 0c42669b9c docs(upgrade-guide): upstream-skills base row in compositions without the skill row 2026-11-17 14:56:08 +08:00
LegGasai 58d8ccc11f Merge pull request #8256 from deepseek-harness/refactor/llm-route-credential
refactor(llm): publish DeepSeek route credentials through ctx.llm
2026-11-17 11:09:59 +08:00
Shigma 897de8769b fix(app-boot): audit rejected entry options and isolate dump snapshots 2026-11-16 17:11:48 +08:00
Shigma a85b27fdd4 fix(cordis): address loader rc.9 review and CI findings 2026-11-16 15:46:58 +08:00
Shigma dd892782af Merge remote-tracking branch 'origin/master' into chore/cordis-loader-rc9 2026-11-16 15:32:28 +08:00
LegGasai a1c0299977 Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential 2026-11-16 15:17:39 +08:00
LegGasai 8eda7cfb7c Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
# Conflicts:
#	scripts/empty-catch.baseline.json
2026-11-16 14:36:05 +08:00
LegGasai 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.
2026-11-15 13:00:24 +08:00
Turtle 3e3aa697ca fix(ptc): fall back safely when program image substitution fails
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
2026-11-14 17:14:41 +08:00
Turtle d74405a2c8 fix(ptc): return MCP screenshots to programs as Image values
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
2026-11-14 16:57:28 +08:00
LegGasai 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.
2026-11-13 19:51:35 +08:00
Turtle 616f4d0a5d Merge pull request #8447 from deepseek-harness/feat/ptc-inspect-tool-render
feat(ptc): inspect tool results with their rendered text
2026-11-13 19:30:18 +08:00
Shigma ed4f31876c Merge pull request #8136 from deepseek-harness/feat/hmr-watch-patch-overlays
feat(hmr): reload --patch overlay files with the profile
2026-11-13 19:13:45 +08:00
turtle1999 18f492edbc chore: merge master into ptc inspection branch 2026-11-13 18:58:46 +08:00
turtle1999 f3ed11c1a3 fix(ptc): preserve inspection across array changes and images 2026-11-13 18:41:03 +08:00
Turtle 18178318e9 Merge pull request #8038 from deepseek-harness/feat/standard-cordis-context
feat(preset): 合并 Cordis 检查工具并在标准模式启用
2026-11-13 17:54:46 +08:00
Shigma 05f0ec5ef3 docs(upgrade-guide): move profile-context-overlay-paths guide to v0.2.2-rc.3 2026-11-13 17:41:15 +08:00
Shigma 245f37b9ef Merge remote-tracking branch 'origin/master' into feat/hmr-watch-patch-overlays 2026-11-13 17:39:47 +08:00
turtle1999 500dcf94be feat(ptc): inspect tool results with their rendered text 2026-11-13 17:21:11 +08:00
LegGasai 51fc5804ab Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
# Conflicts:
#	packages/llm/llm-deepseek/src/adapter.ts
2026-11-13 16:56:23 +08:00
CreatixChu d5974a9eda Merge pull request #8296 from deepseek-harness/feat/files-upload-retries
DeepSeek 图片上传支持 3 并发和 429 重试
2026-11-13 16:49:40 +08:00
Shigma 1ae70efcde chore(cordis): sync loader 1.0.0-rc.9 and include 1.2.0 2026-11-13 16:45:54 +08:00
LegGasai 1142963202 Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
# Conflicts:
#	docs/capability-seams.i18n.yaml
2026-11-13 16:33:33 +08:00
creatixchu 9d33fae5d4 Merge commit 'c9cd70aba9c' into feat/files-upload-retries 2026-11-13 16:12:17 +08:00
TurtleandLegGasai 81aef2ec2d feat(client): show plugin settings on the Plugins page
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]>
2026-11-13 16:06:36 +08:00
LegGasai 639c558fd3 Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential
# Conflicts:
#	docs/capability-seams.i18n.yaml
2026-11-13 16:02:53 +08:00
LegGasai 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
2026-11-13 07:56:57 +00:00
creatixchu 17280dfe22 Sync master and move the Files upload upgrade guide to v0.2.2-rc.3 2026-11-13 15:54:14 +08:00
LegGasai 76d7a49e9f docs(upgrade-guide): move the route credential guide 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.
2026-11-13 15:52:07 +08:00
turtle1999 5dfda6a5f3 refactor(cordis): unify runtime inspection tool 2026-11-13 15:45:04 +08:00
LegGasai 17da980349 Merge remote-tracking branch 'origin/master' into refactor/llm-route-credential 2026-11-13 15:42:52 +08:00
LegGasai 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.
2026-11-13 15:30:20 +08:00
creatixchu 2a60df0944 Merge master and apply upload timeout backoff once per model request 2026-11-13 15:07:21 +08:00
LegGasai 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
2026-11-13 14:40:18 +08:00
LegGasai 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.
2026-11-13 14:13:41 +08:00
Shigma e7a31d7517 Merge remote-tracking branch 'origin/master' into chore/cordis-core-rc12
# Conflicts:
#	packages/bundle/web-app/src/index.ts
#	packages/client/connection/src/index.ts
2026-11-13 14:08:25 +08:00
Turtle 8c328900d1 Merge pull request #6705 from deepseek-harness/search-fuzzy-converge
refactor(client): converge search lists on shared multilingual fuzzy filter
2026-11-13 05:56:41 +00:00
turtle1999 a5bdc28238 refactor(client): converge search lists on shared multilingual fuzzy filter
Fixes #6681
2026-11-13 13:05:16 +08:00
Turtle 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
2026-11-13 12:39:48 +08:00
LegGasai 6a82fdba51 fix(web-deepseek-api): accept only a route's own credential kind
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.
2026-11-13 11:47:46 +08:00
creatixchu bbd971ba80 Reset Files backoff in completion order and count the first uncached image 2026-11-13 11:22:24 +08:00
imccyu 695f640063 Merge pull request #8133 from deepseek-harness/discuss-client-iframe
refactor(client): add client module js realm (with module manifest and style operation)
2026-11-13 10:11:54 +08:00
imccyu 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
2026-11-12 23:14:32 +08:00
Yichen Jiang d9b1b1e2c4 Merge remote-tracking branch 'origin/master' into worktree/sdk-cua-program-tool-600e33
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
2026-11-12 19:52:06 +08:00
Dudu-0223 ed3b88d211 Merge pull request #8356 from deepseek-harness/fix/cua-partial-ax
fix(cua): isolate invalid AX branches during observation
2026-11-12 19:47:05 +08:00
Yichen Jiang f53238b554 Merge remote-tracking branch 'origin/master' into worktree/sdk-cua-program-tool-600e33
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
2026-11-12 18:39:16 +08:00
creatixchu 669b998fd0 Merge macOS system-pointer drag into AX observation recovery 2026-11-12 18:01:07 +08:00
_Kerman c1e490b7b5 fix(ptc): reject unsupported providers without native fallback 2026-11-12 17:46:53 +08:00
Dudu-0223 ad6b8956c6 fix(cua): isolate invalid AX roots during scope discovery 2026-11-12 17:11:03 +08:00
_Kerman 656533bde1 refactor(ptc)!: remove all Python PTC support 2026-11-12 17:09:15 +08:00