Commit Graph
100 Commits
Author SHA1 Message Date
Turtle 7239a2201e Merge pull request #976 from deepseek-harness/fix/nodeboot-dep
fix(cli): expose source-launch activation errors
2026-07-31 10:40:43 +08:00
Turtle 1332360d53 Merge pull request #1013 from deepseek-harness/fix/node26-vitest-webstorage
fix(test): isolate jsdom storage on Node 26
2026-07-31 10:31:59 +08:00
Turtle aa39d6c6ed Merge remote-tracking branch 'origin/master' into fix/node26-vitest-webstorage
# Conflicts:
#	scripts/run-gates.spec.ts
#	vitest.config.ts
2026-07-31 10:26:05 +08:00
Turtle 7f1c724165 merge: update origin/master 2026-07-30 21:49:51 +08:00
Turtle f04b35c6a4 fix(test): isolate jsdom storage on Node 26 2026-07-30 21:49:33 +08:00
Turtle 37116d0b0a test(scripts): gate source-plane resolution of configured plugins
verify-cordis-config now requires every configured specifier of a local
workspace package to resolve through the tsconfig.base.json paths facade
to a .ts/.tsx source file. A failed resolution or a .d.ts hit (the exports
fallback into built lib/types) fails the gate, so a missing paths mapping
is a red gate instead of a clean-tree-only startup crash masked by built
trees in CI. Removing the dsh-tui/prompt mapping reproduces the failure.

Agent Note records the decision and alternatives.
2026-07-30 21:47:13 +08:00
Turtle 30cda487ea fix(cli): map @deepseek-ai/dsh-tui/prompt to source in tsconfig paths
The tui.cordis.yml entry for @deepseek-ai/dsh-tui/prompt had no tsconfig
paths mapping: the @deepseek-ai/dsh-* wildcard substitutes tui/prompt whole
into nonexistent candidates, so the tsx source launch fell back to package
exports and required built lib/prompt.js. pnpm dsh failed at startup on
every clean tree (fresh worktrees) with 'plugin(s) failed to load'.
2026-07-30 21:34:15 +08:00
Turtle e3be0c5195 Merge remote-tracking branch 'origin/feature/shared-cli-config-foundation' into feature/shared-cli-config-foundation 2026-07-30 17:22:39 +08:00
Turtle 873d3cee57 chore(docs): re-record generated artifacts after the master merge 2026-07-30 17:17:49 +08:00
Turtle 3c620a0cb6 Merge remote-tracking branch 'origin/master' into feature/shared-cli-config-foundation
# Conflicts:
#	docs/cordis-catalog/services.md
#	packages/host/apiproxy/README.i18n.yaml
2026-07-30 16:53:55 +08:00
Turtle 9c5a515501 fix(example): drop the never-activated bash stack from the inheritance fixture
dsh-bash-local injects `subprocess`, which this tree never mounted, so the bash
chain sat PENDING and the bundle's tool-bash waited with it. The shared boot()
all-ACTIVE assertion now surfaces that as a load failure.

The scenario probes filesystem confinement only, so the rows are removed and the
bundle opts out with `toolBash: false`. The recorded transcript is unchanged
because bash never reached the model.
2026-07-30 16:52:14 +08:00
Turtle 674c25a6a2 Merge remote-tracking branch 'origin/master' into feature/shared-cli-config-foundation
# Conflicts:
#	docs/tool-catalog.md
#	examples/package.json
#	packages/examples/agent-spine-demo/README.i18n.yaml
#	packages/examples/agent-spine-demo/README.zh.md
#	pnpm-lock.yaml
2026-07-30 16:11:21 +08:00
Turtle 42ba71b4f2 test(tui): pin transient query access 2026-07-30 15:37:03 +08:00
Turtle 0b1aaa4b12 test(tui): remove erased enum import 2026-07-30 15:30:59 +08:00
Turtle da5f1878c0 Merge remote-tracking branch 'origin/master' into feature/shared-cli-config-foundation 2026-07-30 15:29:47 +08:00
Turtle d0bf9091f1 fix(cli): preserve active query access 2026-07-30 15:28:58 +08:00
Turtle 39efc3dd73 Merge remote-tracking branch 'origin/master' into feature/shared-cli-config-foundation
# Conflicts:
#	.agents/notes/implemented/testing/2026-07-24-web-gui-browser-e2e-lane.i18n.yaml
#	docs/testing.i18n.yaml
2026-07-30 15:00:42 +08:00
Turtle 36f6d8fd05 Merge remote-tracking branch 'origin/master' into feature/shared-cli-config-foundation
# Conflicts:
#	packages/ui/tui/README.i18n.yaml
2026-07-30 14:58:10 +08:00
Turtle a51143bded fix(cli): close shared config review gaps 2026-07-30 14:56:39 +08:00
Turtle 5a490553bc Merge remote-tracking branch 'origin/master' into feature/shared-cli-config-foundation
# Conflicts:
#	docs/event-producer-consumer.md
#	packages/host/apiproxy/README.i18n.yaml
#	tsconfig.base.json
2026-07-30 12:00:15 +08:00
Turtle 208944645c fix(cli): align shared config lifecycle docs 2026-07-30 11:34:46 +08:00
Turtle 9691c90b1c test(docs): refresh translation prompt snapshot 2026-07-30 11:21:01 +08:00
Turtle cd100a81f1 fix(cli): harden launcher lifecycle 2026-07-30 11:14:18 +08:00
Turtle 93748e5b47 fix(cli): preserve DSH home fallback in config 2026-07-30 11:00:59 +08:00
Turtle f224bc347b test(cli): follow consolidated config tree 2026-07-30 10:59:56 +08:00
Turtle efcffa0495 fix(cli): evaluate session root in config context 2026-07-30 10:53:43 +08:00
Turtle 59bd220215 docs: repair links to consolidated CLI 2026-07-30 10:45:08 +08:00
Turtle 6b57be3371 docs: keep host package unchanged 2026-07-30 10:39:35 +08:00
Turtle f2746a7115 docs: keep todo package unchanged 2026-07-30 10:38:54 +08:00
Turtle c086de2074 fix(docs): align catalogs with consolidated CLI 2026-07-30 10:34:21 +08:00
Turtle 83360c3dca fix(cli): default session root in shipped config 2026-07-30 10:24:04 +08:00
Turtle 5111a292b4 refactor: drop unrelated ACP snapshot changes 2026-07-30 10:17:51 +08:00
Turtle 545878c6a7 docs: restore unrelated todo READMEs 2026-07-30 10:15:57 +08:00
Turtle 96b874c98f test(web): follow relocated CLI configs 2026-07-30 10:12:38 +08:00
Turtle 5dbcedfbba Merge origin/master into feature/shared-cli-config-foundation 2026-07-30 10:11:38 +08:00
Turtle 9e9653202c docs: restore unrelated translated READMEs 2026-07-30 10:04:23 +08:00
Turtle 7e36758cd6 docs: remove code mode example 2026-07-30 10:03:49 +08:00
Turtle c3b253db28 docs: drop unrelated README changes 2026-07-30 10:02:36 +08:00
Turtle 3685740179 test(cli): move skill policy snapshot fixture 2026-07-30 00:23:58 +08:00
Turtle 7dfead7799 test(cli): keep file completion in source plane 2026-07-30 00:09:03 +08:00
Turtle 131470faa0 Revert "fix(tui): avoid blocking reference autocomplete"
This reverts commit f565ce44db708f1186354526a170513d48b07a2c.
2026-07-30 00:07:21 +08:00
Turtle c00a54d334 Merge remote-tracking branch 'origin/master' into feature/shared-cli-config-foundation
# Conflicts:
#	packages/host/apiproxy/README.i18n.yaml
2026-07-30 00:01:13 +08:00
Turtle 2adb9a5416 fix(tui): avoid blocking reference autocomplete 2026-07-29 23:59:52 +08:00
Turtle 74f75e9005 test(cli): align autocomplete test deadline 2026-07-29 23:47:46 +08:00
Turtle 19fc1575f3 Merge remote-tracking branch 'origin/master' into feature/shared-cli-config-foundation
# Conflicts:
#	packages/host/apiproxy/README.i18n.yaml
2026-07-29 23:41:20 +08:00
Turtle c19facf9db refactor(cli): share app boot driver 2026-07-29 23:39:09 +08:00
Turtle d2270eefcd fix(cli): align personal overlay semantics 2026-07-29 23:36:58 +08:00
Turtle 5b35132e62 test(cli): allow artifact PTY startup contention 2026-07-29 22:28:34 +08:00
Turtle 6b2ed3e24d test(tui): scope unreachable resume coverage branches 2026-07-29 22:06:54 +08:00
Turtle 3d3a261793 docs(cli): remove stale composition references 2026-07-29 21:59:44 +08:00
Turtle 3d446da9c7 docs(web): align bilingual composition wording 2026-07-29 21:57:54 +08:00
Turtle 2994342f23 docs(web): align browser roster composition 2026-07-29 21:56:55 +08:00
Turtle 87c5c46249 docs(i18n): remove unrelated terminology 2026-07-29 21:54:51 +08:00
Turtle 915121ff40 docs(cli): remove stale source config ownership 2026-07-29 21:53:38 +08:00
Turtle dfca95e93f fix(tui): remove disposable query index on exit 2026-07-29 21:51:22 +08:00
Turtle f6a16e48f2 docs(cli): record restored web and index behavior 2026-07-29 21:49:20 +08:00
Turtle c20f94335a docs(user): explain CLI overlay precedence 2026-07-29 21:47:20 +08:00
Turtle bdc2b4667f refactor(cli): keep hmr in shared base 2026-07-29 21:43:33 +08:00
Turtle ff126751d8 refactor(cli): keep migrate out of scope 2026-07-29 21:41:51 +08:00
Turtle d8e4fd3b75 fix(cli): align meta invocation contract 2026-07-29 21:39:38 +08:00
Turtle 7135703a5e fix(gates): scope CLI dependencies to shipped trees 2026-07-29 21:38:03 +08:00
Turtle adacacaa4f docs(client): point registration at web overlay 2026-07-29 21:37:18 +08:00
Turtle b7401d064a docs(ui): drop unrelated translation churn 2026-07-29 21:36:07 +08:00
Turtle 0a2ed84665 docs(tui): explain non-strict sibling service lookup 2026-07-29 21:33:58 +08:00
Turtle a01c1bccd6 fix(docs): parse inserted composition rows 2026-07-29 21:30:51 +08:00
Turtle b1697ffd29 fix(web): assemble and package the shipped overlay 2026-07-29 21:28:05 +08:00
Turtle b6552fcf3e Merge remote-tracking branch 'origin/master' into feature/shared-cli-config-foundation
# Conflicts:
#	packages/context/README.i18n.yaml
#	packages/context/README.md
#	packages/context/README.zh.md
2026-07-29 21:24:46 +08:00
Turtle bddf659111 chore: trigger CI after coverage fix 2026-07-29 21:23:33 +08:00
Turtle b9fb7ef6d2 test(agent-loop): cover launcher-owned identities 2026-07-29 21:21:58 +08:00
Turtle d2c7aaddc7 fix(rebase): restore consolidated documentation state 2026-07-29 21:16:31 +08:00
Turtle 9970f60969 test: cover overlays and refresh translation snapshot 2026-07-29 21:15:48 +08:00
Turtle 291d6d2772 docs: refresh module graph after query dependency 2026-07-29 21:15:48 +08:00
Turtle fa1ca61cfd fix(hygiene): remove stale session registry fragment 2026-07-29 21:15:48 +08:00
Turtle 9bbaea45fd docs(cli): explain config overlay modes 2026-07-29 21:15:48 +08:00
Turtle 984830c940 fix(tui): isolate each process query index 2026-07-29 21:15:48 +08:00
Turtle fdd113ce5e fix(tui): read mounted session query during sibling activation 2026-07-29 21:15:48 +08:00
Turtle d44fce8a39 fix(cli): keep meta as a fresh-session command 2026-07-29 21:15:48 +08:00
Turtle 857a4941be fix(cli): restore shipped surface capabilities 2026-07-29 21:15:48 +08:00
Turtle bee0a77aad chore: refresh generated review records 2026-07-29 21:15:48 +08:00
Turtle 33286a0ff5 docs(cordis): remove registry API remnants 2026-07-29 21:15:48 +08:00
Turtle 030b044350 fix(cli): reject leaked config replacement flags 2026-07-29 21:15:48 +08:00
Turtle ea9315841f refactor(session): exclude live-session registry foundation 2026-07-29 21:15:48 +08:00
Turtle 991c1f14b6 docs: remove retired TUI demo graph row 2026-07-29 21:15:48 +08:00
Turtle 9e3383f727 docs: regenerate catalogs after feature exclusions 2026-07-29 21:15:48 +08:00
Turtle 9e2c3d3093 refactor(cli): exclude tmux context and source guard 2026-07-29 21:15:48 +08:00
Turtle c1324ee896 fix(cli): preserve overlays without session registration 2026-07-29 21:15:42 +08:00
Turtle 8f2f6ef0ac refactor(cli): exclude live-session registry surface 2026-07-29 21:15:42 +08:00
Turtle a459a918e2 fix(cli): remove obsolete resolver dependencies 2026-07-29 21:15:42 +08:00
Turtle 98086a88d5 docs(host): update config-tree link pairing 2026-07-29 21:15:42 +08:00
Turtle 571562788d chore: reconcile extracted foundation with current master 2026-07-29 21:15:42 +08:00
Turtle 10ff76de9c fix(cli): declare every plugin the shipped config trees name
The Loader resolves each config row against the composing app, so moving the
TUI composition from examples/ into apps/cli left eleven rows unresolvable from
the built bin: `node apps/cli/lib/bin.js` died at boot with "plugin(s) failed to
load". Source-mode runs hid it, because tsconfig paths resolve the whole
workspace regardless of who declares what.

Also declares `dsh-llm-pi-ai` and `dsh-tmux-context`, which a personal
`~/.dsh/config.yaml` inserts to swap the model adapter. Those previously
resolved only because the config lived under examples/, whose package.json
declares the union of every leaf's plugins.

Caught by running the built bin from a scratch directory, which is how a user
actually starts it.
2026-07-29 21:15:42 +08:00
Turtle f290a8b851 refactor(cli)!: one shared base config with per-surface overlays
`dsh` shipped two config trees that were 43 rows the same: apps/cli/cordis.yml
composed web as 74 flat rows, while the TUI booted examples/tui-agent/cordis.yml
whose single `@deepseek-ai/dsh-tui-demo` row mounted twelve plugins behind a
twenty-key pass-through Config. Neither file was what its location claimed —
apps/cli hardcoded the "example" as the product default and the "demo" bundle
was the application — and every capability change had to be made twice.

- apps/cli/base.cordis.yml holds the 43 shared rows; tui.cordis.yml and
  web.cordis.yml are patch lists stating only what differs per surface
- overlays apply as SIBLING patch lists at one include level, because include
  patches never cross an include boundary. Precedence: base < surface <
  (--config | personal ~/.dsh/config.yaml) < launcher flag/profile patches
- `--config` now applies an overlay INSTEAD OF the personal one, so a demo or
  test tree never inherits the user's route; new `--config-replace` boots a file
  as the entire tree (the old `--config` behaviour). Both survive /resume
- vendor/include: index each `insert`ed row as it is added so a later patch can
  configure or disable it. Upstream built the id index once before the patch
  loop, leaving every surface-only row — the whole TUI front door — silently
  unpatchable from user config. Logged as local modification 8
- session identity moves to dsh-agent-loop's CONFIGURED_AGENT_IDENTITIES_KEY;
  dsh-tui's MAIN_SESSION_ID_KEY is deleted (only the bundle read it)
- delete examples/tui-agent, examples/cordis-agent, packages/examples/tui-demo;
  TUI tests → apps/cli/tests, cordis e2e → packages/cordis/tool-cordis/tests,
  examples/code-mode survives as an overlay leaf
- `dsh web` gains --config, threaded into AppCLIEntry as an extra overlay

Three latent defects surfaced and are fixed here: the TUI captured the optional
sessionQuery service once at construction and could permanently disable /resume
when it won the mount race; the session-store root silently reverted to a
project-local ./.sessions; --config-replace was dropped by the resume handoff.

Verified by booting each tree through the real Loader (TUI 55 entries, web 75,
zero unsettled) rather than reading YAML. All eight terminal snapshots replay
byte-identically; 14/14 PTY smoke, 112/112 snapshots, 25/25 doc-sync, hygiene
and lint clean.
2026-07-29 21:15:42 +08:00
Turtle e7c0a5b794 Merge origin/master: web permission sandbox, default pi-ai providers 2026-07-29 21:15:34 +08:00
Turtle 42e3cceb64 feat(paths): add resolveSessionsRoot as the one shared session-store root
Every surface that persists or lists sessions resolves one directory under
the Harness home, so history is shared across working directories instead
of scattered per project.
2026-07-29 21:14:49 +08:00
Turtle 203767cd37 test: prove ESLint to Oxlint rule parity 2026-07-29 14:47:50 +08:00
Turtle 2e6c4e23ab Merge remote-tracking branch 'origin/master' into codex/migrate-to-oxlint 2026-07-29 14:35:39 +08:00
Turtle 7ad0849155 style: migrate merged Oxlint directives 2026-07-29 14:34:20 +08:00
Turtle 711efc0a8e Merge remote-tracking branch 'origin/master' into codex/migrate-to-oxlint 2026-07-29 14:32:21 +08:00
Turtle 95a995968b refactor: migrate linting to Oxlint 2026-07-29 14:32:11 +08:00
Turtle d554ae3019 Merge pull request #848 from deepseek-harness/worktree/default-pi-ai-providers
feat(apps): add default OpenAI and Anthropic providers
2026-07-29 13:31:20 +08:00