* 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
* 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]>
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.
The bundle package inserted one row once #8080 composed the connector account surfaces in the Web app, so `@deepseek-ai/dsh-wecom-cli` becomes `@deepseek-ai/dsh-wecom` and inserts itself through its own `cordis.patch.yml`, as the MCP connectors and the self-inserting bundles on master do. The merged README, the connector group row, the package policies, the `skills` files exception, the Host solution, the generated catalogs, and the `wecom-skills` snapshot composition name the one package; the Web E2E installs the same directory.
Port the existing Windows CUA implementation from feat/cua-windows in deepseek-harness2 to the current branch, with adapters for the current app/window interfaces and Windows-only bundle activation. Retain the native Shell/UWP implementation for later interface work.
* feat(gates): reject value exports on function plugin entries
A function plugin entry may export only the Loader fields (name, inject,
Config, apply), types, and classes whose instances extend Cordis Service or
Error, as docs/defensive-patterns/package-surface.md requires. The new
verify-plugin-entry-exports gate reads every packages/*/*/src/index.ts that
exports a value apply through the Host and then the Client compiler face,
and rejects any other value export, including a default export beside
apply, values that arrive through export *, and exports that do not resolve.
Exports that predate the gate are listed per package in
scripts/plugin-entry-existing-exports.ts. A listed export passes; a line
fails when its package has no function plugin entry, its list is empty or
repeats a name, or it names an export the entry no longer reports.
* docs(gates): mark new existing-export lines as rule exceptions
A line added to scripts/plugin-entry-existing-exports.ts after the gate's
introduction is an exception under the plugin entry rule in
docs/defensive-patterns/package-surface.md, which requires the domain
owner's confirmation.
* fix(gates): report a default export beside apply even when it is a class
The class allowance also covered the default export, so a function plugin
entry that default-exported a class extending Cordis Service or Error beside
apply passed the gate. The Loader then loads that default export instead of
the module namespace, which is the mixed plugin form the rule forbids. A
default export beside apply is now reported whatever it holds.
* fix(gates): judge plugin entry exports by their run-time export paths
The gate read TypeScript's export table, which differs from what the entry
exports at run time in two forms. An `export type { x }` hid a value that
`export *` brings in under the same name, although the type-only export is
erased and the value stays. A name that a nested `export type *` reaches was
reported as a value, although nothing reaches the entry at run time.
The gate now walks the emitted export forms: type-only exports and declare
declarations emit nothing, a re-export emits only a run-time export of its
target, and `export *` brings in every run-time name of its target except
default and the names the module exports itself. An `export *` whose module
does not resolve is reported as `*`.
* feat(gates): check service plugin entries for value exports
The plugin entry rule in docs/defensive-patterns/package-surface.md covers
both entry forms: a function plugin exports the Loader fields, a service
plugin default-exports its plugin class, and beyond those a Host entry may
export only Service Definition classes and error types. The gate checked
only function plugins, so a value on a service plugin entry, which another
package imports past the Loader row just the same, went unreported, and an
entry could escape the gate by default-exporting a class.
An entry without apply whose default export is a class the Loader can
construct is now a service plugin. Its default class passes under any name,
as do types and classes extending Cordis Service or Error; name, inject,
Config, and every other value are reported. Libraries, a default export
that is not a class, and an abstract default class, which defines a
capability seam, stay unchecked. The corpus guard now requires both forms.
The existing-export list is regenerated to cover the service plugin
entries' current value exports.
* fix(gates): admit the plugin entry export list as a plugin record name
The plugin entry export list now records the session service entry's
existing value exports, appendPluginRecord among them. Like the published
dependency policy, the list names the function without calling it, so the
plugin record caller gate admits it.
* chore(gates): list the plugin entry exports that landed on master
Master gained value exports on the plugin-manager, llm, and subagent
service entries and renamed office-to-pdf to office-kit before the gate
lands. They predate the gate, so the existing-export list records them.
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].
master now rejects the @deepseek-ai/dsh-experimental- prefix for new
experimental packages, so the unreleased sidebar terminal backend becomes
@deepseek-ai/dsh-terminal-panel with plugin name terminal-panel, and its
directory joins EXPERIMENTAL_PACKAGE_NAME_EXCEPTIONS. The terminal bundle,
root devDependencies, generators, catalogs, snapshot composition and
upgrade guide use the new name; the hand-written tsconfig alias gives way
to the generated one.
The parent branch now carries master through #6426.
- The root manifest keeps the forge packages and master's action cards.
- The event matrix and the experimental persistence catalog are
regenerated, and the capability-seams and experimental README pairings
are recorded again.
The four packages keep their directories under packages/experimental and
are registered as experimental name exceptions:
- @deepseek-ai/dsh-action-cards
- @deepseek-ai/dsh-client-ui-action-cards
- @deepseek-ai/dsh-creation-recommendations
- @deepseek-ai/dsh-client-ui-creation-recommendations
Loader row ids, plugin record names, message source kinds, the Remote
service name and locale namespaces are unchanged. Generated catalogs are
regenerated, and the page card Web fixture records the renamed bundle in
the skill's plugin catalog.