Commit Graph
26888 Commits
Author SHA1 Message Date
LegGasai 3c5d888751 Merge remote-tracking branch 'origin/master' into feat/session-panel
# Conflicts:
#	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
#	packages/client/README.i18n.yaml
#	packages/preset/agent-preset/skills/dsh-doc/references/packages.md
#	pnpm-lock.yaml
2026-11-11 16:16:28 +08:00
_Kerman f34250ca9b Merge pull request #8307 from deepseek-harness/xtr/remove-python-ptc-runner
refactor(ptc): remove the experimental Python runtime
2026-11-11 16:03:49 +08:00
Jiawei Song bc45c6c17c Merge pull request #8057 from deepseek-harness/refactor/tool-errors-agent
feat(subagent,workflow,plan): give delegation, workflow, plan, and interaction tool failures error codes
2026-11-11 15:53:22 +08:00
Turtle b3e8a77bdf Merge pull request #8051 from deepseek-harness/turtle/snapshot-diff-viewer-127358e84afe
ci(preview): publish a snapshot diff page with each PR preview
2026-11-11 15:49:48 +08:00
CreatixChu 9e6fd09813 Merge pull request #8285 from deepseek-harness/cleanup/platform-package-names
按平台区分 CUA helper 的 Actions 工作流和产物
2026-11-11 07:48:52 +00:00
Turtle cd25788e5c Merge pull request #8222 from deepseek-harness/turtle/update-notes-43ec0dc7e41b
docs(automation): deliver every event candidate as a normal turn
2026-11-11 15:48:33 +08:00
sjw1231 3524a7a3e5 Merge remote-tracking branch 'origin/master' into refactor/tool-errors-agent
Resolves import conflicts with the brand-export split (#8214): value
brand factories are now brandString<T>() calls, and dsh-workflow's
WorkflowRunId is imported from its types entry. Generated persistence
and config catalogs are regenerated.
2026-11-11 15:40:30 +08:00
_Kerman f141464b59 docs(ptc): clarify remaining extension support and migration 2026-11-11 15:37:46 +08:00
creatixchu 27bbae4a59 Sync master into the CUA helper packaging workflows 2026-11-11 15:37:16 +08:00
creatixchu 1cd79de4e8 Explain missing macOS helper jobs and verify artifact name selection 2026-11-11 15:35:08 +08:00
Turtle 2099 ca7e7f4018 Merge pull request #8010 from deepseek-harness/turtle/subagent-fork-divider-20436572857c
feat(web): divide a forked session's inherited history from its own messages
2026-11-11 15:32:21 +08:00
_Kerman 5ea79d1fe7 fix(ci): prune retired Python PTC catch entries 2026-11-11 15:29:39 +08:00
_Kerman da91532aaa merge: sync master into Python PTC removal 2026-11-11 15:27:25 +08:00
imccyu 455f7a38a6 Merge pull request #8214 from deepseek-harness/split-exports-brand-strings
refactor(brand): migrate internal identity construction
2026-11-11 15:15:26 +08:00
creatixchu 29de5f9e04 Keep the existing Desktop packaging workflow names 2026-11-11 15:14:28 +08:00
creatixchu 1d5e1d7757 Name helper artifacts and packaging workflows by platform 2026-11-11 15:12:02 +08:00
CreatixChu a660c1c048 Merge pull request #8284 from deepseek-harness/cleanup/cua-macos-naming
统一 macOS Computer Use 后端的包名和配置行 ID
2026-11-11 15:11:59 +08:00
sjw1231 9557a247a8 fix(tool-schedule): keep the reason for an invalid delegation depth
Moving the delegation-depth read inside the operation's catch turned an
invalid runtime subagentDepth into a reasonless internal_error, so the
tool result lost the message that master still reported. The read is
back before the catch; delegationDepthOf now throws SubagentError
INVALID_DEPTH, so the tool result keeps the message and records that
name and code.

Refs #7869
2026-11-11 15:09:27 +08:00
_Kerman d1cf1dede1 refactor(ptc): remove the experimental Python runtime 2026-11-11 15:07:01 +08:00
Turtle 303bcb4137 Merge pull request #4862 from deepseek-harness/turtle/catch-disposition
feat(infra): reject silent empty catch clauses
2026-11-11 15:06:58 +08:00
creatixchu fd00ac248a Sync master after the API policy notes merged 2026-11-11 14:51:36 +08:00
Turtle 312cbc0308 Merge pull request #8075 from deepseek-harness/agent/stable-api-policy-research-a98aa8f04ee6
docs(notes): propose stable API policy
2026-11-11 14:48:31 +08:00
creatixchu 3f4704cb6d Merge master into the macOS CUA naming change 2026-11-11 14:47:24 +08:00
sjw1231 e93e8e266a test(workflow-ptc): use the output field in the fatal-code fixture
Master renamed PtcRunResult.logs to output, so the fatal-code run-result
fixture no longer type-checked after merging it.

Refs #7869
2026-11-11 14:46:41 +08:00
creatixchu a7df022dae Quote the entry ID as printed by the CLI 2026-11-11 14:44:19 +08:00
creatixchu ce1b5182bc Clarify macOS CUA migration and provider diagnostics 2026-11-11 14:43:07 +08:00
sjw1231 4ffad712fc Merge remote-tracking branch 'origin/master' into refactor/tool-errors-agent 2026-11-11 14:39:22 +08:00
imccyu 7b5dd54e94 Merge pull request #8130 from deepseek-harness/worktree-sesion-status-readstate
refactor(session): move session status into ui-session-status
2026-11-11 14:19:10 +08:00
Turtle 2548bca817 Merge remote-tracking branch 'origin/master' into turtle/stable-api-policy-research-a98aa8f04ee6 2026-11-11 14:08:55 +08:00
Turtle 1b7b0d8cb4 docs(notes): keep manifestVersion unchanged for seam API members
Refs #8074
2026-11-11 13:58:29 +08:00
sjw1231 1784d23da9 fix(workflow): keep the fatal code that ended a failed run
A fatal WorkflowError such as AGENT_CAP or ITEM_CAP was rendered to text
inside the PTC guest, so the workflow tool could only report RUN_FAILED.
WorkflowResult and the workflow/end payload now carry errorCode, the
code of the fatal error that ended an error run; the host validates it
at the process boundary and the tool fails with that code. RUN_FAILED
remains only for an error run without one: the script's own exception or
an engine runtime failure. WorkflowError narrows code to
WorkflowErrorCode.

Refs #7869
2026-11-11 13:10:55 +08:00
Turtle 603ed7e7d0 docs(error-handling): explain empty catch rules with examples 2026-11-11 12:47:01 +08:00
Turtle 33e2285547 docs(infra): record the empty catch gate decision 2026-11-11 12:47:01 +08:00
Turtle 62cce39c06 fix(infra): drop --record and treat a new defect on a recorded empty catch as new 2026-11-11 12:47:01 +08:00
turtle1999 9dc86febb6 feat(infra): point empty catch rejections at the error-handling guidance 2026-11-11 12:47:01 +08:00
turtle1999 4cfd7e0257 fix(infra): read the empty catch rule the way its authors write it
Review of the gate found the reason-comment span too narrow: a comment on the
line above `catch`, or trailing the closing brace, was rejected, so the natural
place to explain a clause did not count. The span now starts at the preceding
token and ends with the line closing the clause.

A binding pattern that names nothing (`catch ({})`, `catch ([])`,
`catch ({ _ })`) counted as naming the error. The gate now requires one bound
name other than `_`.

`--record REF` writes the inventory for a merged tree and refuses any clause the
named revision does not already carry, so no command allows a clause this branch
introduced; a merge that lands recorded clauses is the only case that adds
entries. The no-op body boundary (`catch { "use strict" }`) and the tolerance
for a file the parser cannot read past are stated in the module docblock and
pinned by specification rows.
2026-11-11 12:47:01 +08:00
turtle1999 6572c8a63b chore(infra): record the clauses master added before this gate
The merge brings apps/desktop/src/client/WelcomePage.tsx:132,
apps/desktop/src/preload-platform-account.ts:26,
packages/credentials/deepseek-account-platform/src/index.ts:432, and
packages/credentials/deepseek-account-platform/src/logout.ts:33 into the
recorded inventory, so the gate passes on the merged tree. The two wide `try`
clauses need their owners' judgement: narrowing one changes which failures its
clause discards.
2026-11-11 12:47:01 +08:00
turtle1999 a51a1fc79c fix(infra): read a body of empty statements as an empty catch
`catch { ; }` counted as a handled clause because the block held one
statement. A block whose statements are all bare `;` handles nothing, so both
the clause body and its `try` now count only statements that do something.
2026-11-11 12:47:00 +08:00
turtle1999 05883ff6b5 feat(infra): reject silent empty catch clauses
AGENTS.md requires an empty `catch` to name the discarded error, state why it
needs no handling, and keep its `try` to one statement, but nothing enforced
it: 119 clauses break a condition today.

The new `verify-empty-catch` gate scans tracked and non-ignored untracked
first-party source with the TypeScript syntax tree. It records those 119 legacy
clauses by path, syntax fingerprint, and count in
`scripts/empty-catch.baseline.json`, so enforcement starts without a
repository-wide edit. A new or changed clause fails the gate, and fixing a
recorded clause requires `--prune` to retire its allowance; no command adds
one.

The recorded-inventory bookkeeping shared with `verify-no-unknown-casts` moves
to `scripts/baseline-inventory.ts`, which keeps one copy of baseline
validation, counting, pruning, and the command itself.
2026-11-11 12:47:00 +08:00
sjw1231 d2d79aae65 fix(subagent): give SubagentError a closed code union and stop reusing codes
Route refusals from the Session model-selection policy reused
UNAUTHORIZED, which existing consumers such as tool-office, team, and the
SDK server read as a failed caller-identity check, and an unregistered
LLM provider reused NO_PROVIDER, which means no subagent provider. They
now use MODEL_ROUTE_NOT_ALLOWED and LLM_PROVIDER_NOT_FOUND.

SubagentError's code is typed by the closed SubagentErrorCode union,
each member documented with its condition, so a new failure cannot
silently reuse an existing code.

Refs #7869
2026-11-11 12:46:48 +08:00
imccyu c20bbda218 📝 chore(client): regenerate the slot catalog after rebasing 2026-11-11 12:21:38 +08:00
imccyu 13fd88d429 🔖 chore(session): align ui-session-status with 0.2.2-rc.2
Match the new package version to the root release version and move its
upgrade guide into the v0.2.2-rc.2 directory.
2026-11-11 12:16:40 +08:00
imccyu aad0cc94e5 🐛 fix(session): reload useSessionStatus consumers with the status table
Add 'uiSession.sessionStatus' to the Cordis inject of ui-conversation,
ui-workspace, ui-subagent, and ui-workflow-run, whose components call
useSessionStatus. Unloading or reloading ui-session-status now stops these
plugins and starts them again instead of leaving their components calling
a missing hook. A whole-client test disables and re-enables the status
entry and checks that the Workspace browser and Conversation shell leave
and render again without errors.

Address the documentation, comment, and test review points: the status
class JSDoc states only its contract and links the README, the ctx.slots
type merge moves to the module that reads ctx.slots, the upgrade guide
separates type-only dependencies from hook consumers, and the
stop-shortcut test name states the invariant it guards.

Refs #4076
2026-11-11 12:16:40 +08:00
imccyu eab6beacb9 🚚 refactor(session): move Session status into client/ui-session-status
Move packages/api/session-status (@deepseek-ai/dsh-api-session-status) to
packages/client/ui-session-status (@deepseek-ai/dsh-client-ui-session-status):
the package has no Remote or Host behavior and depends on ui-session, so it
belongs to the Client group. The uiSession.sessionStatus service,
ctx.uiSession.sessionStatus, useSessionStatus, and UiSessionService keep
their names.

Add the package to the Web client's required boot entries, so startup is
rejected when the status table cannot be imported or fails to apply, as it
was when the table lived in the required ui-session entry.

Refs #4076
2026-11-11 12:16:39 +08:00
imccyu cb2910ef09 ♻️ refactor(session): move Session status into api-session-status
Move the Client Session status table (running state, the effective
pending interaction, and completion reminders) and the useSessionStatus
root hook out of ui-session into the new @deepseek-ai/dsh-api-session-status
package. The UiSessionStatus service is provided as uiSession.sessionStatus
and read as ctx.uiSession.sessionStatus through the mergeable
UiSessionService type of ctx.uiSession.

Pending-interaction registration, precedence, withdrawal, and teardown
delegation stay in ui-session unchanged; ui-session now exposes the
effective requests read-only as ctx.uiSession.pendingInteractions, which
the status table and the Conversation stop shortcut consume. ui-session no
longer depends on api-remotes.

Refs #4076
2026-11-11 12:16:37 +08:00
Yichen Jiang 8c192ad810 Merge pull request #8228 from deepseek-harness/feat/forge-extension-api
feat(forge): open change request review to plugins with lenses, line annotations, and slots
2026-11-11 12:07:19 +08:00
creatixchu 3d862135b7 Refresh provider references in the generated event index 2026-11-11 11:46:52 +08:00
creatixchu e7950b0ca8 Align the macOS Computer Use provider package and entry names 2026-11-11 11:43:44 +08:00
Yichen Jiang f1f987c4c2 docs(forge): name what review changes reread, when annotations draw, and brand lens ids 2026-11-11 11:34:04 +08:00
Yichen Jiang 8c8122ffb0 fix(forge-panel): settle lens runs with their plugins and keep review state through lenses
A lens registration's disposer now waits for the classification itself,
and a run whose registration ended or whose caller left before it started
never reaches the lens; changesLens refuses a lens withdrawn while the
files were read and a local result whose files changed during the run.
The extension state names each lens's version, so the view keys results
by source, files, lens, and version. Hunks holding an open comment form
or a saved browser comment stay unfolded, the view reads threads and
viewed marks again on reviewRevision, a thread jump clears a lens that
hides its file, and the Client entry re-exports the lens types.
2026-11-11 11:34:03 +08:00