mirror of
https://ghproxy.cflmy.top/https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-12-01 01:29:35 +08:00
The editor had one write, `edit()`, which replaces the config of a row whose plugin is running. Nothing added a row to the profile patch or removed one, and `edit()` rejects a row that is switched off or failed, so a config that makes a row fail could not be corrected through the editor. `insert()` appends a row to the profile patch and starts it. `remove()` deletes a row that the profile patch inserted, together with the patch's override items for that row, and `configuration()` marks such a row as `inserted`. `editRow()` replaces a row's config as `edit()` does and also accepts a row that is switched off or failed: that row stores the config as given, and its plugin validates it at the next start. A written row that is switched on must be active after the reconciliation. Otherwise the file gets its prior content back, and the call rejects with the activation diagnostic. The four writes share the lock, the higher-layer check, the atomic write, and the restore. `edit()` keeps its checks and changes in two cases. When an edit resets an override to the inherited config and deletes the emptied patch item, the comment above that item stays in the file; for the first item it is the file header. When the reconciliation with the prior patches rejects after a rejected write, the caller receives the rejection of its own write, and the second rejection is logged as a warning. The editor reads the root context in one place, so its entry in the root-read baseline drops from 3 to 1. Refs #9155
description, kind
| description | kind |
|---|---|
| The boot package group: how dsh app bins start — environment loading, profile and patch layers, clear startup failures, and app-owned command lines. | package-group |
boot/ — shared app-bin boot glue
English | 中文
Summary
The boot group launches profile applications and manages their installed composition. app-boot resolves configuration and starts the Loader, cmdline supplies application arguments, and plugin-manager exposes current-profile operations shared with the CLI. Each package README owns its details.
Table of Contents
Packages
| Package | Role | ctx key |
|---|---|---|
app-boot |
Boots a dsh app from a cordis.yml: loads .env, applies profile and patch layers, and reports startup failures clearly |
(library for the bins) |
cmdline |
Lets the app own its flags, --help, and exit code; passes everything after the launcher's flags through verbatim |
cmdlineArgs, appExit |
hmr |
Coordinates module and configuration reloads with package mutations | hmr |
config-editor |
Persists active profile configuration through Loader reconciliation | configEditor |
plugin-manager |
Manages current-profile plugins and bundle packages through shared CLI operations | pluginManager |
plugin-market |
Reads the plugin indexes the user configures for Discover and the plugin_market tool |
pluginMarket |
Related documentation
-
dsh app — the
dshbin that consumes these helpers for its boot sequence. -
Profile bundles — installable patch layers that
dsh --profilecompositions mount. -
dsh-home-paths — the harness-home resolver both packages build on.
-
dsh-cmdline — how an app owns its flag family instead of the launcher.
-
Profile management — service methods and result records.
Dev Note
None.