Commit Graph
1170 Commits
Author SHA1 Message Date
lsdsjy d51d623bfc feat(account): 接入通用通知接口并统一账号服务 (#7550)
将赠金专用提示迁移到通用通知 list、content 和 events 接口,支持轮询、语言刷新及单次交互上报。

统一账号服务和 Remote,通知 UI 放入侧栏并保持独立生命周期。

Refs #6373
2026-11-06 17:40:24 +08:00
Magolor 2f9d5d083c Show server-masked credential previews by Unicode code point 2026-11-06 16:59:29 +08:00
Magolor ef3a02167a fix(settings): preserve saved API key mask length 2026-11-06 16:59:27 +08:00
Magolor 86247d664b fix(settings): protect saved keys and preserve clear failure state 2026-11-06 16:58:59 +08:00
Magolor 8b50763c0d test(credentials): expect masked metadata after provider restart 2026-11-06 16:58:49 +08:00
Jiawei Song 7f98d178d1 Merge pull request #7966 from deepseek-harness/refactor/tool-errors-foundation
feat(tools): structured error identity for registry-owned tool failures
2026-11-06 13:11:06 +08:00
sjw1231 71cb6c739a refactor(error): move HarnessError to the dependency-free dsh-error package
dsh-llm depends on dsh-attachment and dsh-typert-protocol, so classes in
those packages could not extend a base defined in dsh-llm without a
project-reference cycle. HarnessError now lives in @deepseek-ai/dsh-error,
which has no dependencies; dsh-llm declares it as a peer and re-exports
the same class, so existing imports and instanceof checks keep working.
The Agent Note records why the original leaf-package placement no longer
holds.

Refs #7869
2026-11-05 21:26:38 +08:00
TurtleandLegGasai d9768b2517 fix(ui-settings-models): require a key and the four Gemini reasoning levels
A Gemini API route cannot authenticate without a key, so the create card
and the editor require one. Its models offer only minimal, low, medium,
and high, each sent under its own name, with no Off.

Co-authored-by: LegGasai <[email protected]>
2026-11-05 21:05:37 +08:00
TurtleandLegGasai d2c00f2554 feat(llm-pi-ai): support the Gemini protocol for custom model APIs
Add pi-ai's google-generative-ai protocol to hand-declared routes, read
Gemini's native model listing during discovery, and offer it as "Gemini
API" in the Custom model API form.

Refs #7978

Co-authored-by: LegGasai <[email protected]>
2026-11-05 19:41:07 +08:00
Turtle 1e0ca162d9 Merge pull request #7583 from deepseek-harness/turtle/compact-opus-hang-2d6253c47af9
fix(llm-pi-ai): omit Anthropic thinking whose request prefix changed
2026-11-05 15:06:51 +08:00
imccyu 6b8d868008 chore(deps): unify zod to 4.6.6
Raise all 88 workspace zod declarations to exact 4.6.6 and move @browserbasehq/stagehand to 4.4.0, which pins the same version, so the lock keeps a single zod copy. Test expectations and the Typert consumer's node types follow the new declarations; pnpm-workspace.yaml records the release-age exemption for [email protected].
2026-11-05 11:27:26 +08:00
Turtle 7be4511492 Merge pull request #7010 from deepseek-harness/turtle/retry-policy-ui-fb23c6dee798
feat(ui-settings-models): edit the provider retry policy in Models settings
2026-11-05 00:35:41 +08:00
Turtle 38c7a9fbf4 feat(release): publish package source, declaration maps, and documentation (#5884)
* feat(release): publish package source, declaration maps, and documentation

Every release member publishes its TypeScript source and the declaration
maps that resolve into it, and @deepseek-ai/dsh publishes the repository
Markdown documentation staged from docs/ at prepack time.

The ./src/* export most members already declared now resolves for an
installed consumer, and a consumer editor follows a declaration to the
implementation. Bundled JavaScript maps stay unpublished; the vendored
family and the Desktop runtime file policy are unchanged.

Rationale: .agents/notes/implemented/process/2026-10-08-published-source-and-docs.md

* feat(release): publish JavaScript maps and compress bundles

Every emitted JavaScript map ships beside the bundle it describes, and the
workspace build and the client preset compress bundles without mangling
identifiers.

The documentation payload now mirrors the website publication manifest and
is removed again by `postpack`; Desktop and the Python executable exclude
the published source, documentation, and maps; `clean` removes a staged
copy. Typert's publication contract gains the Remote declaration map.

* fix(release): keep node bundles readable for the worker image

The browser worker image lowers `yield*` only as a whole statement and
rewrites `for await` loops by their source layout, so compressed node-side
entries either fail that lowering or lower to unparseable code. Only the
browser bundles keep compression, which removes about a third of their text.

The bundle-purity assertion now matches the module-loader call regardless of
the quote style compression picks, and the release-pack fixture exercises
the installed package's new documentation requirement.

* feat(release): publish the whole documentation tree

`@deepseek-ai/dsh` copies `docs/` in full instead of the website's page
set: the maintainer documents, the generated migration records, the
translation guidelines, and the `*.i18n.yaml` consistency records ship
with the installed package, so the documentation's own links resolve
without a checkout.

* feat(release): publish the upgrade guides with the documentation

The staged documentation keeps the website's page set and adds every
`docs/upgrade-guide/` document, which is what an installed reader consults
when a released change breaks something. The rest of the maintainer tree
stays out.

* test(release): expect source and maps in master's new payload cases

* feat(release): keep installed docs and source readable in Desktop

Desktop keeps the published src/ and docs/ trees inside app.asar, and
every model shell call receives DSH_INSTALL_DIR and DSH_NODE_EXECUTABLE
so an agent can read them through Electron's Node mode. Staging also
generates docs/upgrade-guide/README.md, an index of the upgrade guides
grouped by the release they upgrade from.

Minified client bundles print string literals with backticks: the
worker image packer now recognizes those chunk requests, client license
banners are prepended after minification so their text survives, and
the affected artifact tests accept either quote.

* test(desktop): read archived docs through the Windows PowerShell form

Regenerate the config catalog for the shifted shell-env source line.

* test(desktop): wait for the GUI-subsystem Electron process from PowerShell

* build(release): publish source and maps from the message-quotes package

* build(release): publish source and maps from packages new on master

* build(release): publish source and maps from the tool-office package
2026-11-05 00:22:36 +08:00
imccyu abc0e7092b Merge remote-tracking branch 'origin/release/dsh-0.2.2' into merge/release-dsh-0.2.2-rc.1-to-master
# Conflicts:
#	packages/client/ui-agent-team/package.json
#	packages/client/ui-brand-official/package.json
#	packages/client/ui-open-in-app/package.json
#	packages/client/ui-settings-web-search/package.json
#	packages/experimental/agent-team-profile/package.json
#	packages/team/agent-team/package.json
#	packages/web/web-search-exa/package.json
#	packages/web/web-search-perplexity/package.json
2026-11-04 15:59:50 +08:00
imccyu 2f97f60455 release(dsh): 0.2.2-rc.1 2026-11-04 15:50:06 +08:00
Turtle b685ec0ddb Merge remote-tracking branch 'origin/master' into turtle/retry-policy-ui-fb23c6dee798
# Conflicts:
#	docs/event-producer-consumer.md
#	docs/event-producer-consumer.zh.md
2026-11-03 17:11:52 +08:00
Turtle 035ef9b37d feat(llm): define built-in failure codes once and offer retry choices through the schema
Refs #7005
2026-11-03 16:29:23 +08:00
imccyu f590c13c92 Merge master into worktree-sync-dsh-0.2.2-to-master-1103b 2026-11-03 15:10:23 +08:00
imccyu 1c78d475bf release(dsh): 0.2.2-alpha.3 2026-11-03 13:37:26 +08:00
yudshj 3859913c68 feat(web): 网页搜索与获取设置页分开选择 Search 与 Fetch,Search 默认改为 DeepSeek Search API 2026-11-03 13:04:26 +08:00
Turtle 6c2b349f42 Merge remote-tracking branch 'origin/master' into turtle/retry-policy-ui-fb23c6dee798
# Conflicts:
#	packages/client/ui-settings-models/README.i18n.yaml
#	packages/client/ui-settings-models/src/client/ProviderEditor.tsx
2026-11-03 12:44:49 +08:00
Turtle 1d49fe6336 Merge remote-tracking branch 'origin/master' into turtle/retry-policy-ui-fb23c6dee798 2026-11-03 12:06:35 +08:00
imccyu aa4774e685 Merge master into worktree-sync-dsh-0.2.2-to-master 2026-11-03 12:05:47 +08:00
imccyu ef5f28d0fb Merge master into worktree-sync-dsh-0.2.2-to-master 2026-11-03 11:47:40 +08:00
imccyu eb1713f856 fix(session-projection): keep released units in checkpoints (#7754)
* fix(session-projection): keep released units in checkpoints

Since the Cordis rc.11 teardown order unloads the Web layer before the
base layer, Session Controller and harness-dev-context release their
projection units before their live Sessions detach. The projection
cache is still alive at that point and wrote a checkpoint holding only
the units that were still registered, replacing the complete record.
A blank Session then lost sessionListMetadata and listed as an untitled
conversation after every graceful restart.

A released unit now stays in the registry as a predecessor: it leaves
event drives, snapshots, restores, and change notifications, while
checkpoint() keeps each Session's last cell of it without advancing it.
Registering the same key again replaces the predecessor and refolds
the log. The projection cache keeps replacing whole records.

* test(session-projection): assert frozen released units across unload tests

Update the remaining unload tests that still expected a released unit
to vanish from checkpoint(): user-approval, agent-loop inbox and scope
lifecycle, time-context, and the agent registry now assert that the
same Session keeps its pre-unload row, that a later event does not
advance it, and that a Session created after the unload has no row.
The token-meter and goal unload tests also append an event after the
unload.

Document that a retained handle read still advances a released cell
that checkpoint() serves, and that restore() folds only live units, so
its refreshed rows omit released units.

* docs(session-projection): sync the ProjectionHandle type-equiv block

* docs(session-projection): record frozen released units and their upgrade

Add the upgrade guide for checkpoint() keeping a released unit's last
row, update the registration-handles Agent Note with the frozen-cell
decision and the retained predecessor, list both consequences under the
registry README's known limitations, note in the projection cache README
that a stored row can be frozen at its unit's release, and say that
restoreFloor() ignores released predecessors.

Update the agent-loop resource-lifecycle unload test, which read
checkpoints through an alias, to the frozen-row semantics.

* docs(upgrade-guide): mark the released-checkpoint snippet ignore-check

* docs(session-projection): state the retained-handle path and narrow a rejected alternative

* docs(upgrade-guide): re-record the released-checkpoint guide pairing
2026-11-03 11:07:09 +08:00
Yixiang Tu 624c3e91a9 fix(llm-deepseek): expose all-deferred request failures 2026-11-02 22:04:53 +08:00
Yixiang Tu 1f3bc8b22b fix(llm): rebuild tool history for additions to an empty set 2026-11-02 20:30:57 +08:00
Yixiang Tu 523e741a31 test(llm-deepseek): cover all-deferred requests and separate tool updates 2026-11-02 20:30:57 +08:00
Yixiang Tu 9d53909bcf docs(llm): clarify deferred tool activation and placeholder effects 2026-11-02 20:30:57 +08:00
Yixiang Tu be6ed7f0aa fix(llm): rebuild addition-only history on every removal 2026-11-02 20:30:57 +08:00
Yixiang Tu f8217a4fe1 fix(llm): rebuild addition-only baselines after tool removals 2026-11-02 20:30:56 +08:00
Yixiang Tu 156dad153d fix(llm-deepseek): anchor all-deferred tools with a placeholder
Preserve deferred activation when every initial tool has been removed. Add serializer, provider, live-API, and recorded-session regression coverage.

Fixes #6953
2026-11-02 20:30:56 +08:00
Turtle db9de7da60 refactor(ui-settings-models): build retry-policy fields from the provider schema 2026-11-02 18:03:17 +08:00
imccyu d3f7b8abe7 Merge pull request #7701 from deepseek-harness/fix/empty-session-sidebar-0.2.2
[0.2.2] fix(session-projection): compute exactly the requested projections for hot session summaries
2026-11-02 17:05:09 +08:00
Turtle bda06ec251 Merge remote-tracking branch 'origin/master' into turtle/compact-opus-hang-2d6253c47af9
Co-authored-by: LegGasai <[email protected]>

# Conflicts:
#	packages/llm/llm-pi-ai/README.i18n.yaml
#	packages/llm/llm-pi-ai/README.md
#	packages/llm/llm-pi-ai/README.zh.md
2026-10-31 19:42:27 +08:00
Dudu-0223 fe9cd80b28 revert: remove follow-up CI repairs 2026-10-31 10:40:31 +08:00
Dudu-0223 5a17181af2 perf(llm): avoid copying unchanged request histories 2026-10-31 01:32:46 +08:00
Dudu-0223 71676cbc21 Merge master into the ID-only subagent and Team core 2026-10-30 14:57:57 +08:00
Turtle b46adf9f64 fix(llm-pi-ai): offload count overflow in steps and document the default
Add imageOffloadCountQuantum (default 10) so a saturated route rewrites its
request prefix once per ten new images, cite the Azure OpenAI 50-image limit
for the default, report the overflow without naming both bounds, split the
adapter count test, and add an upgrade guide.

Refs #7605
2026-10-30 12:53:58 +08:00
Turtle 1abd104891 fix(llm-pi-ai): offload old images when a request exceeds the image-count bound
Add a per-route maxRequestImages bound (default 50) to the pi-ai request-image
budget. A history with more retained images now fails with
IMAGE_OFFLOAD_REQUIRED so dsh-compaction-image-offload offloads the oldest
images, instead of the provider rejecting every later request.

Refs #7605
2026-10-30 12:36:49 +08:00
TurtleandLegGasai 018689a59b fix(llm-pi-ai): narrow Anthropic thinking omission to signed blocks
Keep stale thinking on the open tool round only when the request enables
manual thinking and the round continues with tool results; omit only
signed or redacted thinking; report omissions only when there are any;
own PrefixDigests in prefix-binding; document consumer gaps under Known
Limitations.

Co-authored-by: LegGasai <[email protected]>
2026-10-30 02:38:47 +08:00
TurtleandLegGasai 5824871706 fix(llm-pi-ai): report thinking omissions on every Anthropic request
Co-authored-by: LegGasai <[email protected]>
2026-10-30 01:52:38 +08:00
TurtleandLegGasai 052c6c9c53 test(llm-pi-ai): type the prefix digest matcher
Co-authored-by: LegGasai <[email protected]>
2026-10-30 01:37:17 +08:00
TurtleandLegGasai 83a8d0a0bf fix(llm-pi-ai): omit Anthropic thinking whose request prefix changed
Anthropic binds signed thinking to the system prompt, tools, and earlier
messages. Compaction and tool-result pruning rewrite that prefix, so
retained responses replayed stale signatures and enforcing endpoints
rejected every later request. Record a prefix digest with each Anthropic
Messages response and drop thinking from replayed responses whose prefix
digest changed or was never recorded.

Fixes #7582

Co-authored-by: LegGasai <[email protected]>
2026-10-30 01:23:04 +08:00
Dudu-0223 11c02855e1 Merge master into subagent runtime stack base 2026-10-29 17:55:40 +08:00
Yichen Jiang d54475a681 fix(llm): preserve header overrides and safe failure diagnostics 2026-10-29 15:52:41 +08:00
Yichen Jiang a05a0d02fa feat(llm): allow plugins to prepare pi-ai request headers 2026-10-29 14:42:09 +08:00
Shigma 1aead808e2 chore(cordis): merge master into cordis-core-rc11 2026-10-28 17:27:40 +08:00
Yichen Jiang 9170c7b285 Merge remote-tracking branch 'origin/master' into worktree/issue-7150-investigation-4fc2ca
# Conflicts:
#	docs/capability-seams.i18n.yaml
#	docs/persistence-catalog.i18n.yaml
#	docs/persistence-schema.json
2026-10-28 12:39:39 +08:00
imccyu 00d541438b release(dsh): 0.2.2-alpha.2 2026-10-28 02:03:15 +08:00