7 Commits
Author SHA1 Message Date
resec 27289a0c84 fix(dsh): stand the host-plane /compact command down on a bili-owned lane (#7154)
/compact drives the host's own compaction call — the same envelope bili's wire
guard refuses unconditionally (#1729) — so on a bili-owned lane the command has
no outcome except failure. dsh reports that failure as "Compaction could not
produce a useful summary", blaming the model for a policy refusal, and every
retry fails identically because the refusal is terminal.

Disable the command entry in both patch carriers (persistent bundle + launcher
overlay) with the same static semantics as the adjacent compaction-basic
auto:false row. Escape hatch: a profile-level `disabled: false` for the same
id brings it back; invocations are still refused at the wire.
2026-11-18 20:28:23 +08:00
awork 9cd10f1ed0 fix: keep dsh presets bootable when bili-native is disabled (#3662)
Disabling or kill-switching the dsh plugin removed the only provider of
biliBasicCompactionPolicy while the bundle patch kept gating all four
web-profile presets on it — every preset stayed pending forever and new/
resumed sessions failed with "Unknown agent preset: standard".

The load-time overlay + gate service now live in their own always-on
cordis entry (bili-compaction-gate), mounted alongside bili-native by
both patch carriers (dsh.bundle.patch.yml, launcher overlay). The entry
registers the transform and provides the service atomically (the #3354
ordering guarantee survives the split); whether it disables the preset
compaction rows is decided per process by a verdict bili-native sets
from apply() — an absent verdict (entry disabled, kill-switched, module
failed to load) leaves every row stock.

Behavior changes:
- disabling/kill-switching bili-native: presets used to pend forever
  (session creation bricked); they now boot with STOCK native compaction
  — compression off, dsh fully usable.
- bili-native module failing to load: previously a deliberate fail-safe
  brick; now falls back to stock with the #1729 wire-level refusal guard
  as backstop (availability over fail-safe-brick).
- new visible cordis entry bili-compaction-gate; disabling IT re-creates
  the pending state (documented in bundle patch header + CLIENTS /
  CONFIGURATION en+zh). Full uninstall: remove billion-context from
  dsh.profile.bundles.

Closes #3662
2026-10-21 22:07:48 +08:00
awork 4253b41b66 feat(dsh): stand down dsh native compaction at load time in web profiles (#3354) 2026-10-17 04:32:33 +08:00
ework-agent ba70cc19d4 fix: retry MALFORMED_RESPONSE on DSH built-in DeepSeek routes (#2605)
Both bili-owned dsh patch carriers (dsh.bundle.patch.yml and the launcher .bili-acp.patch.yml overlay) now add MALFORMED_RESPONSE to the built-in DeepSeek routes' retry whitelist. Each row restates every default code because a cordis patch replaces the targeted row's whole config rather than deep-merging it. Rows carry mode: normal only, so DSH's default budget/backoff (5 retries, 500ms->10s, jitter 0.1) flows through unchanged. Rows absent on other DSH versions are skipped with a warning, never a boot failure.
2026-10-10 15:00:17 +08:00
awork 5dbea23be1 fix(dsh): #1772 conclusion correction — profile-layer full-snapshot patch CAN switch off web-profile native auto-compaction (#2474)
The #1772 boot warning ended in a dead end ('no patch layer can reach'). Verified live against dsh 0.2.1-alpha.1: preset-standard is an ordinary bundle-layer entry; a profile-level cordis.patch.yml row (applied after every bundle) replaces its config WHOLESALE, so a full-snapshot override carrying auto:false under compaction-basic switches off native auto-compaction. The once-per-process warning now names that recipe plus both verified traps (a partial snippet drops everything not restated — other plugins AND the preset's id/order identity; - insert: with the same id appends a dead duplicate row); launcher stderr, config doc, bundle-patch header and CLIENTS(en/zh)/README(en/zh) corrected to match; the regression test pins the exit pointer. Snapshot-freeze walkthrough lives in the companion CONFIGURATION.md PR (#2476). Supersedes #1786's dead recipe (.agent-presets user root removed in dsh 0.1.7+).

Refs #2474
2026-10-09 15:05:48 +08:00
ranxianglei 3e838ab306 fix: dsh client scanner drops subpath entry names — bare package root for both lanes (#1590)
dsh's client-module scanner (dsh-client-modules, CLI 0.1.5-rc.x and desktop
0.2.0-rc.2 alike) requires an entry NAME to be a package-root specifier:
exactPackageSpecifier returns undefined for any non-scoped specifier
containing '/', so the graph row is silently dropped and the browser half
never loads. The host half was unaffected (loader import resolves subpaths
fine), which is why the injection worked while the settings entry never
appeared.

- launcher --patch entry + shim: bare 'billion-context'; shim exports gain
  '.' (root import = host half). dshPluginEntry now probes that the ROOT
  specifier resolves to a file ending agent/dsh-native.js — a foreign or
  stale install whose '.' points elsewhere degrades to the legacy file URL
  instead of importing the wrong module into dsh.
- market-install lane: dsh.bundle.patch.yml name -> bare root, and the
  package exports['.'] moves from the CLI entry to the dsh host half (the
  dsh loader imports the bare root). opencode is unaffected either way:
  1.18.x resolvePackageEntrypoint only reads exports['./server'] when the
  exports map is a record, and 2.x Host.resolve tries ['server',''] in
  order — the root is never reached while ./server exists.
- browser bundle banner id matches the graph row id (package name).
- tests: launcher fixtures + negative case (shim '.' -> other file falls
  back to file URL), settings-ui registration id, index-entry-guard pins
  exports['.'] to the dsh host half and its import inertness.
2026-09-30 22:46:42 +08:00
Sisyphus 8eca91f322 feat: dsh-side install channel — 'dsh plugin --profile <name> add billion-context' (#949)
- exports["./dsh"] -> dist/agent/dsh-native.js; manifest dsh.bundle.patch
  declaration; dsh.bundle.patch.yml bundled (insert bili-native +
  compaction-basic auto:false)
- dshBundleInstalled(): profile manifests listing billion-context in
  dsh.profile.bundles are skipped by install/remove (cordis rejects
  duplicate entry ids across layers) with pointers to the dsh-side
  commands; status reports bundle installs; dshNativeInstalled() (the
  'bili dsh' launcher overlay gate) recognizes them
- README/README.zh-CN: dsh-side install lane
- verified end-to-end against dsh 0.1.5-rc.2: pnpm install, bundle
  reconcile, --dump-config layer stack, live boot self-spawning the proxy
  (bili.log) + parent-pid watchdog teardown
2026-09-18 21:58:28 +08:00