@sagmans/dsh-tui 0.10.0 → 0.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/.agents/skills/dsh-tui-dogfood/SKILL.md +6 -1
  2. package/.agents/skills/dsh-tui-update-models/references/model-wiring.md +2 -2
  3. package/README.md +31 -22
  4. package/cordis.patch.yml +23 -100
  5. package/lib/agent/presets.d.ts.map +1 -1
  6. package/lib/agent/presets.js +8 -3
  7. package/lib/agent/presets.js.map +1 -1
  8. package/lib/compat/probe.js +1 -1
  9. package/lib/compat/probe.js.map +1 -1
  10. package/lib/compat/section.d.ts +8 -1
  11. package/lib/compat/section.d.ts.map +1 -1
  12. package/lib/compat/section.js +3 -2
  13. package/lib/compat/section.js.map +1 -1
  14. package/lib/config.d.ts +29 -29
  15. package/lib/config.d.ts.map +1 -1
  16. package/lib/host/preset-files.d.ts +27 -0
  17. package/lib/host/preset-files.d.ts.map +1 -0
  18. package/lib/host/preset-files.js +40 -0
  19. package/lib/host/preset-files.js.map +1 -0
  20. package/lib/host/roster.d.ts +17 -0
  21. package/lib/host/roster.d.ts.map +1 -0
  22. package/lib/host/roster.js +42 -0
  23. package/lib/host/roster.js.map +1 -0
  24. package/lib/host/runner.d.ts +15 -0
  25. package/lib/host/runner.d.ts.map +1 -0
  26. package/lib/host/runner.js +17 -0
  27. package/lib/host/runner.js.map +1 -0
  28. package/lib/index.d.ts +4 -1
  29. package/lib/index.d.ts.map +1 -1
  30. package/lib/index.js +5 -2
  31. package/lib/index.js.map +1 -1
  32. package/lib/input/keymap-settings.d.ts +5 -5
  33. package/lib/input/keymap-settings.d.ts.map +1 -1
  34. package/lib/surface/appearance-preferences.d.ts.map +1 -1
  35. package/lib/surface/appearance-preferences.js +3 -2
  36. package/lib/surface/appearance-preferences.js.map +1 -1
  37. package/lib/surface/preset-choice.d.ts.map +1 -1
  38. package/lib/surface/preset-choice.js +38 -2
  39. package/lib/surface/preset-choice.js.map +1 -1
  40. package/lib/theme-schema.d.ts +78 -78
  41. package/lib/theme-schema.d.ts.map +1 -1
  42. package/lib/theme-settings.d.ts +153 -153
  43. package/lib/theme-settings.d.ts.map +1 -1
  44. package/lib/todo-guard.d.ts +17 -0
  45. package/lib/todo-guard.d.ts.map +1 -1
  46. package/lib/todo-guard.js +3 -1
  47. package/lib/todo-guard.js.map +1 -1
  48. package/lib/transcript/tool-calls.d.ts.map +1 -1
  49. package/lib/transcript/tool-calls.js +16 -2
  50. package/lib/transcript/tool-calls.js.map +1 -1
  51. package/package.json +41 -30
  52. package/presets/cordis.patch.yml +14 -0
  53. package/presets/minimal.patch.yml +14 -0
  54. package/presets/ptc.patch.yml +24 -0
  55. package/presets/standard.patch.yml +14 -0
  56. package/themes/marine-static.yaml +201 -0
  57. package/themes/pine-slope.yaml +203 -0
  58. package/themes/wine-thicket.yaml +205 -0
@@ -24,7 +24,7 @@ the bundle once if absent from the cloned profile, updates only its dependency,
24
24
  restores local links from `link:` specifications, and launches
25
25
  `dsh --profile tui` by default. For this TUI, the packaged helper checks
26
26
  the launcher against compatible releases in the checkout’s `package.json` before
27
- cloning. This checkout uses installed `dsh 0.1.5-rc.3` for PTY tests. Never
27
+ cloning. This checkout uses the installed `dsh 0.2.0-rc.2` line for PTY tests. Never
28
28
  substitute `pnpm dsh` or a `--dsh` path from a Harness source checkout: that
29
29
  host may migrate the cloned `settings.yaml`. The legacy
30
30
  `scripts/dogfood/run-tui-from-worktree.sh` remains available in dsh-tui and
@@ -63,6 +63,11 @@ state through a package link.
63
63
  The old dsh-tui entry point still requires a prelisted bundle. Do not use
64
64
  `dsh plugin add` on a cloned profile with other bundles; it can drop them.
65
65
 
66
+ Use the active model in current session for dogfooding: pass `--model` and
67
+ `--provider` through to the run, because a fixed route either has no credit and
68
+ stops at `error: Insufficient Balance` after the surface is ready, or bills work
69
+ only the plugin under test needed.
70
+
66
71
  Use `--status` to verify the existing bundles and the checkout `link:`
67
72
  dependency. In dsh-tui, drive a cloned profile with:
68
73
 
@@ -188,8 +188,8 @@ host ignores its `reasoningEffort`, so effort is chosen in the surface.
188
188
  `saveSelection(next)` validates first, then writes through the host's
189
189
  `configEditor.edit(entry, updater)` so only `catalog.default` changes and
190
190
  membership is re-checked inside the editor's lock. A host with no addressable
191
- entry or no such editor rejects with `CONFIG_PERSISTENCE_UNAVAILABLE` - the
192
- released `0.1.5-rc.2` host does - and nothing falls back to legacy
191
+ entry or no such editor rejects with `CONFIG_PERSISTENCE_UNAVAILABLE` - a host older
192
+ than the supported line does - and nothing falls back to legacy
193
193
  `agent-default-model` settings. Edit the profile patch there.
194
194
 
195
195
  `compileCatalog(config)` and `buildCatalogProfile(provider)` are public: the
package/README.md CHANGED
@@ -108,7 +108,7 @@ The profile then keeps `@deepseek-ai/dsh-base` and no application, so `dsh --pro
108
108
 
109
109
  ### Use the installed Harness launcher
110
110
 
111
- Run `dsh --version` and confirm `0.1.5-rc.3` before launching this plugin. `pnpm dsh` from a Harness source checkout runs its development host, not the installed release. That host can migrate `settings.yaml` and is outside this plugin's supported range; do not use it for TUI dogfooding.
111
+ Run `dsh --version` and confirm the release is inside the supported window (`>=0.2.0-rc.2 <0.3.0`) before launching this plugin. `pnpm dsh` from a Harness source checkout runs its development host, not the installed release. That host can migrate `settings.yaml` and is outside this plugin's supported range; do not use it for TUI dogfooding.
112
112
 
113
113
  ## Troubleshooting
114
114
 
@@ -127,7 +127,7 @@ Two facts explain most failures.
127
127
  | `dsh-tui: both stdin and stdout must be TTYs` | stdin or stdout is a pipe, a file, or a CI runner | run the command from a terminal |
128
128
  | Node warnings, such as `ExperimentalWarning: stripTypeScriptTypes …`, appear after exit | the TUI holds runtime warnings until it returns the terminal to your shell; startup warnings remain visible before the TUI starts | read the warnings in your shell after exit; no warning-suppression flag is needed |
129
129
  | Changes under `src/` have no effect | a linked profile loads `lib/`, not `src/` | `pnpm run build` in the plugin checkout |
130
- | TUI preferences disappear after launching a Harness source checkout | that host treats `settings.yaml` as migration input, not live preferences | use installed `dsh 0.1.5-rc.3` with a cloned home; preserve the original settings file |
130
+ | TUI preferences disappear after launching a Harness source checkout | that host treats `settings.yaml` as migration input, not live preferences | use an installed release inside the supported window with a cloned home; preserve the original settings file |
131
131
  | `--preset <id>` is refused, because the session's agent preset is fixed | a session keeps the mode that composed it, and this session already took a turn | `/preset <id>` before the first turn, or resume without `--preset` |
132
132
  | `--resume <id>` starts a new session | the id is a bare UUID | pass the stored id, `tui-session-…` included; a bare `--resume` opens the picker |
133
133
  | `dsh: profile "tui" does not exist` | the profile is not created yet | the `add` command creates it |
@@ -480,16 +480,18 @@ opt-outs and copy only the intended legacy fields into the actual TUI entry's
480
480
  `config`. Keep the original file for rollback.
481
481
 
482
482
  Live Config edits require the loaded schema runtime to create native volatile
483
- references. The released schemastery 3.18.2 implementation used by this checkout's
484
- unit tests lacks that API. A source host can resolve a different implementation
485
- with the same version label. TUI checks the loaded implementation and actual
486
- references, not the package version or CLI identity.
483
+ references. This plugin therefore declares the schemastery release that provides
484
+ the API, because an implementation without it wraps nothing: every preference
485
+ field stays ordinary data and a Config-backed write never reaches the document
486
+ the reader is looking at. TUI checks the loaded implementation and the actual
487
+ references, not the package version or CLI identity, so a host that resolves an
488
+ older copy gets the refusal instead of an import that silently does nothing.
487
489
 
488
490
  If the loaded schema runtime lacks native support, TUI exports ordinary fields
489
491
  rather than unsupported live metadata. TUI then rejects Config-backed writes,
490
492
  and the host cannot import preferences through its volatile-field settings API.
491
- Reading row preferences still works, and ordinary profile changes use the host's
492
- reload lifecycle. Native schema-backed hosts can apply live preference updates.
493
+ Reading row preferences still works, and an ordinary profile change - the entry's
494
+ own `config` in a profile patch - is applied by the host's reload lifecycle.
493
495
 
494
496
  Every field is optional, so a section that changes one shade is enough. The
495
497
  document is hot-reloaded: an edit restyles a running session and re-arms the
@@ -559,12 +561,17 @@ leaving a gap, and `NO_COLOR` draws the fence as plain text. `/export` and the
559
561
  session file still keep the fence exactly as the model wrote it.
560
562
 
561
563
  A theme restyles the whole surface by name, and a theme is a file. The package
562
- ships three: `violet-orbit`, a port of pi's theme of that name — its palette,
564
+ ships six: `violet-orbit`, a port of pi's theme of that name — its palette,
563
565
  plus the elements it draws its own way — `deepseek-blue`, the table written out
564
- in full in the colours the project answers to, and `polar-drift`, that table
565
- anchored on the cyan `#27CFF5`, with every neutral tinted through it and the
566
- semantic shades left where a reader already reads them. `violet-orbit` is also
567
- what a
566
+ in full in the colours the project answers to, `polar-drift`, that table anchored
567
+ on the cyan `#27CFF5`, `pine-slope`, the same table around the pine `#173802`,
568
+ `wine-thicket`, the same table around the plum `#240413`, and `marine-static`,
569
+ the same table around the deep teal `#041F21`. The pine, the plum, and the teal
570
+ are dark enough that they mark the band under a selected row by hue alone, while
571
+ the accent is lifted out of their own hue to where text reads. Each of them tints
572
+ its neutrals through that hue, holds the same relative ladder of shades, and
573
+ leaves the semantic shades where a reader already reads them. `violet-orbit` is
574
+ also what a
568
575
  document naming no theme draws, so the default look is a file you can read, list,
569
576
  and copy rather than a table compiled in. Your own themes live in
570
577
  `$DSH_HOME/themes/`, which the surface creates at start-up and watches, so saving
@@ -724,16 +731,18 @@ alone.
724
731
 
725
732
  ## Modes
726
733
 
727
- A mode is an **agent preset**: the plugin composition an agent's own scope joins. It decides that agent's tools, prompt sections, skills, and planning rows, which is why a mode is fixed once a session has produced a turn — it is what composed the agent that answered.
734
+ A mode is an **agent preset**: the seat an agent's own scope takes in this profile's roster. The rows that make up that agent — its tools, prompt sections, skills, and planning — belong to the bundle shipping each of them, and the profile's own layers compose them, so a mode names a composition rather than assembling one. A mode is fixed once a session has produced a turn, because the log records the seat the agent that answered ran in.
728
735
 
729
736
  Four ship, under the ids a session log records:
730
737
 
731
- | `--preset` | Mode | What the agent gets |
738
+ | `--preset` | Mode | What this bundle makes of the id |
732
739
  |---|---|---|
733
- | `ptc` | PTC (default) | the same agent, reaching its tools through one TypeScript program |
734
- | `standard` | standard | full agent: editing, shell, search, skills, planning, goals, subagents, workflows |
735
- | `minimal` | minimal | one tool: a persistent shell |
736
- | `cordis` | creator | harness authoring: runtime inspection and composition guidance |
740
+ | `ptc` | PTC (default) | the agent this profile composes, with its tools reached through one TypeScript program |
741
+ | `standard` | standard | the same agent, its tools called directly |
742
+ | `minimal` | minimal | the same agent, as this profile composes it |
743
+ | `cordis` | creator | the same agent, for authoring the composition itself |
744
+
745
+ Only PTC declares anything of its own: the presentation its tools take. The other three ids are the harness's own mode names, kept so a session log reads the same here as in the browser profile, and what each of them runs is the profile's composition — a profile that wants a smaller `minimal` declares that composition in its own layers.
737
746
 
738
747
  A session takes its mode from the first of these that applies:
739
748
 
@@ -748,8 +757,8 @@ The mode is re-read rather than remembered: resuming mounts what that session's
748
757
  The package is a Cordis plugin bundle that stacks over `@deepseek-ai/dsh-base`:
749
758
 
750
759
  - `@sagmans/dsh-tui/startup` parses this app's own flags and publishes the launch identity.
751
- - `@deepseek-ai/dsh-agent-presets` is the roster of modes, holding the id a session starts in when nobody names one.
752
- - `@deepseek-ai/dsh-code-runtime-worker-thread` and `@deepseek-ai/dsh-cordis-host-runner` are the host machinery PTC mode and creator mode need; only the Web bundle shipped them, so a terminal profile has to mount them to offer those modes at all.
760
+ - The roster of modes holds the id a session starts in when nobody names one: `@deepseek-ai/dsh-agent-preset-registry` owns that service on the supported line, and each mode arrives as a row of `@deepseek-ai/dsh-agent-preset`, so this bundle declares the four modes itself. Both are mounted through this bundle's own `host/roster` entry point, because a patch row is applied before any service exists and the registry and the modes arrive with the harness's own agent services — after the surface that needs the roster. A mode names a selection rather than a composition: the plugins an agent runs on belong to the bundle shipping each of them, and the profile's own layers compose them, so a mode here declares no plugin row and the patch disables none. The one row a mode does own is its presentation: `ptc` mounts `@deepseek-ai/dsh-agent-tool-presentation` with `mode: ptc`, because the form an agent's tools take is declared per agent — a session's own row cannot say it, and a mode without the row presents natively whatever its id says.
761
+ - `@deepseek-ai/dsh-cordis-host-runner` is the host machinery creator mode needs, and the base mounts no such row, so a terminal profile mounts it through this bundle's own `host/runner` entry point. The code runtime PTC mode runs programs against is a base row of its own (`ptc-runtime`) on the supported line, so this bundle mounts none of its own. Both packages are plain dependencies: a profile resolves exactly one copy of each, and the harness reads its runtime version off the runner it mounts.
753
762
  - `@sagmans/dsh-tui` owns the terminal: it creates or resumes one agent through `ctx.agents`, folds `session/event` into transcript rows and work state, renders them with `@earendil-works/pi-tui`, and releases the terminal on exit, on a boot failure, and on a signal.
754
763
  - `@sagmans/dsh-tui/todo-guard` is the one advisory row this bundle adds to the agent plane: it watches the harness's own `todos` and `plan` projections and rides the next tool result with a reminder when a plan ages. See [Todo discipline](#todo-discipline).
755
764
 
@@ -835,7 +844,7 @@ pnpm test
835
844
  pnpm run build
836
845
  ```
837
846
 
838
- **A linked profile loads the built entry point**, so edits under `src/` are invisible to `dsh --profile tui` until `pnpm run build` runs. The PTY driver rebuilds, checks nested links in the isolated `--home`, and rejects launchers other than `dsh 0.1.5-rc.3`.
847
+ **A linked profile loads the built entry point**, so edits under `src/` are invisible to `dsh --profile tui` until `pnpm run build` runs. The PTY driver rebuilds, checks nested links in the isolated `--home`, and rejects a launcher whose version `dsh.compatibility.dshReleases` does not list.
839
848
 
840
849
  Clone your configured home with the dogfood helper for realistic runs. A minimal throwaway home can also expose startup failures without touching your real state:
841
850
 
package/cordis.patch.yml CHANGED
@@ -1,86 +1,30 @@
1
1
  # dsh-tui — the terminal agent plane, over dsh-base.
2
2
  #
3
- # Every row this bundle INSERTS is owned by the plugin: no row names a package
4
- # the plugin does not depend on. The rows it DISABLES are the base's global
5
- # agent rows, because from here on an agent's tools, prompt sections, skills,
6
- # and planning rows come from the agent preset its own session mounts — the
7
- # composition the Web bundle composes for the same reason. Leaving them mounted
8
- # would register the same tool names in two layers, double every prompt section
9
- # and command they own, and provide the same services twice, which fails.
10
- #
11
- # The ids are exactly the base rows the shipped presets supply: standard, ptc,
12
- # and cordis provide every one of them, while minimal supplies its own
13
- # persistent-terminal set instead, which is the point of that mode.
14
- - id: agent-instructions
15
- disabled: true
16
-
17
- - id: command-compact
18
- disabled: true
19
-
20
- - id: command-goal
21
- disabled: true
22
-
23
- - id: compaction-basic
24
- disabled: true
25
-
26
- - id: plan-mode
27
- disabled: true
28
-
29
- - id: skill-filesystem
30
- disabled: true
31
-
32
- - id: tool-bash
33
- disabled: true
34
-
35
- - id: tool-fs
36
- disabled: true
37
-
38
- - id: tool-fs-search
39
- disabled: true
40
-
41
- - id: tool-goal
42
- disabled: true
43
-
44
- - id: tool-jobs
45
- disabled: true
46
-
47
- - id: tool-pwsh
48
- disabled: true
49
-
50
- - id: tool-ralph
51
- disabled: true
52
-
53
- - id: tool-result-pruner
54
- disabled: true
55
-
56
- - id: tool-skill
57
- disabled: true
58
-
59
- - id: tool-subagent
60
- disabled: true
61
-
62
- - id: tool-subagent-control
63
- disabled: true
64
-
65
- - id: tool-subagent-fork
66
- disabled: true
67
-
68
- - id: tool-subagent-list-agents
69
- disabled: true
70
-
71
- - id: tool-todo
72
- disabled: true
73
-
74
- - id: tool-web
75
- disabled: true
3
+ # This layer inserts only rows that mount this plugin's own entry points, and it
4
+ # disables no base row. The agent plane itself — the tools, prompt sections,
5
+ # skills, commands, and planning rows a session runs on — belongs to the bundle
6
+ # that ships each of those plugins, and the profile's own bundle layers compose
7
+ # it. A row mounted from here would register what the profile already
8
+ # registered, which is the "already registered" wall this file used to produce
9
+ # once the profile's own layer supplied the same plugins.
10
+ - insert:
11
+ # The two rows below sit ahead of the surface on purpose: a row applies as
12
+ # soon as its own dependencies are up, the surface builds as soon as the
13
+ # harness's agent services are up, and the roster arrives only after settings
14
+ # — later than both.
76
15
 
77
- - id: tool-workflow
78
- disabled: true
16
+ # The roster of agent compositions, and the mode a session starts in when
17
+ # nobody names one. PTC leads because a flagless run should reach every tool
18
+ # through one program rather than one shell call at a time.
19
+ - id: agent-presets
20
+ name: '@sagmans/dsh-tui/host/roster'
79
21
 
80
- - id: workflow-worker-thread
81
- disabled: true
22
+ # Creator mode inspects and re-composes the running harness, which needs the
23
+ # host half of the dynamic-plugin runner. Only the Web bundle ships this
24
+ # row, so a terminal profile has to mount it to offer that mode at all.
25
+ - id: cordis-host-runner
26
+ name: '@sagmans/dsh-tui/host/runner'
82
27
 
83
- - insert:
84
28
  - id: tui-startup
85
29
  name: '@sagmans/dsh-tui/startup'
86
30
 
@@ -111,29 +55,8 @@
111
55
  maxRemindersPerTurn: 3
112
56
  previewItems: 5
113
57
 
114
- # The roster of agent compositions, and the mode a session starts in when
115
- # nobody names one. PTC leads because a flagless run should reach every tool
116
- # through one program rather than one shell call at a time. A profile patch
117
- # may override this row's config.
118
- - id: agent-presets
119
- name: '@deepseek-ai/dsh-agent-presets'
120
- config:
121
- default: ptc
122
-
123
58
  # A preset's subagent tool samples its delegation model from this host-owned
124
59
  # settings row. It is host machinery rather than agent plane, which is why
125
- # the Web bundle inserts it too instead of leaving it to the preset.
60
+ # the Web bundle inserts it too instead of leaving it to a preset.
126
61
  - id: subagent-model-selection-settings
127
62
  name: '@deepseek-ai/dsh-tool-subagent/model-selection-settings'
128
-
129
- # Creator mode inspects and re-composes the running harness, which needs the
130
- # host half of the dynamic-plugin runner. Only the Web bundle ships this
131
- # row, so a terminal profile has to mount it to offer that mode at all.
132
- - id: cordis-host-runner
133
- name: '@deepseek-ai/dsh-cordis-host-runner'
134
-
135
- # PTC mode runs its programs against a code runtime. The Web bundle mounts
136
- # this at host level for the same reason: the runtime is machinery, while
137
- # the preset decides whether an agent uses it.
138
- - id: code-runtime
139
- name: '@deepseek-ai/dsh-code-runtime-worker-thread'
@@ -1 +1 @@
1
- {"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../src/agent/presets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAGhD;;;;;;;;GAQG;AAEH,6CAA6C;AAC7C,MAAM,WAAW,aAAa;IAC5B,QAAQ,C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;;;;;OAMG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,IAAI,IAAI,OAAO,CAAC,SAAS,aAAa,EAAE,CAAC,CAAA;IACzC,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAA;IACvD;;;;;OAKG;IACH,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACnD,yEAAyE;IACzE,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IACnD,iEAAiE;IACjE,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;IAC7C;;;;;;OAMG;IACH,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAA;CACnC;AAED,qEAAqE;AACrE,eAAO,MAAM,gBAAgB,gBAAgB,CAAA;AAwC7C;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,YAAY,GAAG,SAAS,CAwCzE"}
@@ -15,12 +15,17 @@ export function parsePresetArgument(argument) {
15
15
  * The Web app translates the same four ids from its own locale bundle; a
16
16
  * terminal has no such bundle, so the copy lives here. A preset this table does
17
17
  * not name is not ours to describe: it speaks for itself through its metadata.
18
+ *
19
+ * A gloss says what this bundle makes of an id, not what the harness's own
20
+ * bundles once composed for it: the agent plane belongs to the profile's own
21
+ * layers, so `standard`, `minimal`, and `cordis` are seats in one composition
22
+ * rather than three, and PTC is the one id whose tools are presented differently.
18
23
  */
19
24
  const SHIPPED_GLOSS = {
20
- standard: 'full agent: editing, shell, search, skills, planning, goals, subagents, workflows',
25
+ standard: 'the agent this profile composes, its tools called directly',
21
26
  ptc: 'the same agent, with its tools reached through one TypeScript program',
22
- minimal: 'one tool: a persistent shell',
23
- cordis: 'harness authoring: runtime inspection and composition guidance',
27
+ minimal: 'the same agent, as this profile composes it',
28
+ cordis: 'the same agent, for authoring the composition itself',
24
29
  };
25
30
  /** How one preset appears in the picker. */
26
31
  export function describePreset(preset, currentId) {
@@ -1 +1 @@
1
- {"version":3,"file":"presets.js","sourceRoot":"","sources":["../../src/agent/presets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AA4BrE;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,QAAgB;IAClD,MAAM,EAAE,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAA;IAC1B,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAA;AAC9D,CAAC;AAED;;;;;;GAMG;AACH,MAAM,aAAa,GAAqC;IACtD,QAAQ,EAAE,mFAAmF;IAC7F,GAAG,EAAE,uEAAuE;IAC5E,OAAO,EAAE,8BAA8B;IACvC,MAAM,EAAE,gEAAgE;CACzE,CAAA;AAED,4CAA4C;AAC5C,MAAM,UAAU,cAAc,CAAC,MAAqB,EAAE,SAA6B;IACjF,MAAM,KAAK,GAAG,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;IACtC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,KAAK,SAAS;QAC3C,CAAC,CAAC,iBAAiB,MAAM,CAAC,MAAM,EAAE;QAClC,CAAC,CAAC,CAAC,KAAK,IAAI,MAAM,CAAC,IAAI,EAAE,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS;YACzE,MAAM,CAAC,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;aACrD,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,K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EAAE,EAAE,EAAE;YAC1B,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;YAC7B,IAAI,OAAO,MAAM,KAAK,UAAU;gBAAE,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAA;YACtG,OAAO,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,CAAC,CAAA;QAC9C,CAAC;QACD,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,gBAAgB,CAAC;QACpE,OAAO,EAAE,OAAO,CAAC,EAAE;YACjB,MAAM,QAAQ,GAAG,gBAAgB,CAAC,GAAG,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAA;YAClE,IAAI,QAAQ,KAAK,SAAS;gBAAE,OAAO,KAAK,CAAA;YACxC,MAAM,IAAI,GAAG,QAAQ,CAAC,gBAAgB,CAAA;YACtC,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS;gBAAE,OAAO,IAAI,CAAA;YACpD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAA;QAC/C,CAAC;KACF,CAAA;AACH,CAAC"}
@@ -16,7 +16,7 @@ export const REQUIRED_CAPABILITIES = [
16
16
  {
17
17
  service: 'agentPresets',
18
18
  use: 'choosing the composition an agent runs, which owns its tools and prompt',
19
- fix: 'mount @deepseek-ai/dsh-agent-presets, which this bundle inserts',
19
+ fix: 'mount @deepseek-ai/dsh-agent-presets or @deepseek-ai/dsh-agent-preset-registry, which this bundle inserts for the host line',
20
20
  },
21
21
  {
22
22
  service: 'appExit',
@@ -1 +1 @@
1
- {"version":3,"file":"probe.js","sourceRoot":"","sources":["../../src/compat/probe.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAYH,mDAAmD;AACnD,MAAM,CAAC,MAAM,qBAAqB,GAA0B;IAC1D;QACE,OAAO,E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unsupported';
6
6
  get(): unknown;
7
7
  update(patch: object): Promise<void>;
8
- /** Raw opt-outs can precede a valid commit and therefore never reach get() or notifications. */
8
+ /**
9
+ * Raw opt-outs can precede a valid commit and therefore never reach get() or notifications.
10
+ *
11
+ * A row the document holds no section for reads as `undefined`, the same as a
12
+ * row whose section is empty: neither is an opt-out, and the switches a Config
13
+ * patch or the entry itself declares stand. Only a section the service cannot
14
+ * describe at all is unreadable, which is a refusal rather than an absence.
15
+ */
9
16
  readUser(): {
10
17
  readonly value: unknown;
11
18
  readonly revision: number;
@@ -1 +1 @@
1
- {"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../src/compat/section.ts"],"names":[],"mappings":"AAAA,+FAA+F;AAC/F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAMlD,oFAAoF;AACpF,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,gBAAgB,GAAG,UAAU,GAAG,QAAQ,GAAG,aAAa,CAAA;IACvE,GAAG,IAAI,OAAO,CAAA;IACd,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACpC,gGAAgG;IAChG,QAAQ,IAAI;QAAE,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAA;CAC/E;AAyBD,iFAAiF;AACjF,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAA;IACjB,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAA;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,G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EAAE,OAAO,CAAA;KAAE,CAAA;CAC3G;AAED,mFAAmF;AACnF,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,YAAY,CAqEzF"}
@@ -9,9 +9,10 @@ export function openSection(service, request) {
9
9
  if (typeof settings.describe !== 'function')
10
10
  return undefined;
11
11
  const descriptor = settings.describe().find(row => row.ns === ns);
12
- if (descriptor === undefined || !Number.isSafeInteger(descriptor.revision) || descriptor.revision < 0) {
12
+ if (descriptor === undefined)
13
+ return undefined;
14
+ if (!Number.isSafeInteger(descriptor.revision) || descriptor.revision < 0)
13
15
  throw new Error(READ_UNSUPPORTED);
14
- }
15
16
  return { value: descriptor.user, revision: descriptor.revision };
16
17
  };
17
18
  if (typeof settings.installSection === 'function') {
@@ -1 +1 @@
1
- {"version":3,"file":"section.js","sourceRoot":"","sources":["../../src/compat/section.ts"],"names":[],"mappings":"AAGA,MAAM,gBAAgB,GAAG,wEAAwE,CAAA;AACjG,MAAM,iBAAiB,GAAG,0EAA0E,CAAA;AACpG,MAAM,eAAe,GAAG,mGAAmG,CAAA;AA4C3H,mFAAmF;AACnF,MAAM,UAAU,WAAW,CAAI,OAAgB,EAAE,OAA0B;IACzE,MAAM,QAAQ,GAAG,CAAC,OAAO,IAAI,EAAE,CAAiB,CAAA;IAChD,MAAM,WAAW,GAAG,GAAmB,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAA;IACtF,MAAM,QAAQ,GAAG,CAAC,EAAsB,EAAwC,EAAE;QAChF,IAAI,OAAO,QAAQ,CAAC,QAAQ,KAAK,UAAU;YAAE,OAAO,SAAS,CAAA;QAC7D,MAAM,UAAU,GAAG,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;QACjE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AA;IACH,CAAC;IACD,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,QAAQ,EAAE,GAAG,EAAE,GAAG,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAA,CAAC,CAAC;QACrD,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAA,CAAC,CAAC;QAChD,MAAM,EAAE,WAAW;KACpB,CAAA;AACH,CAAC"}
package/lib/config.d.ts CHANGED
@@ -1,35 +1,35 @@
1
1
  import z from '@deepseek-ai/schemastery';
2
2
  import type { TuiRowConfig } from './contracts.ts';
3
3
  /** Keep launch identity fixed while source hosts expose preferences as live Config fields. */
4
- export declare const Config: z<Schemastery.ObjectS<{
5
- sessionId: z<string, string>;
6
- resume: z<boolean, boolean>;
7
- resumePicker: z<boolean, boolean>;
8
- model: z<string, string>;
9
- provider: z<string, string>;
10
- preset: z<string, string>;
11
- color: z<boolean, boolean>;
12
- bell: z<boolean, boolean>;
13
- stash: z<Schemastery.ObjectS<{
14
- scope: z<"path" | "session", "path" | "session">;
15
- }>, Schemastery.ObjectT<{
16
- scope: z<"path" | "session", "path" | "session">;
17
- }>>;
18
- }>, Schemastery.ObjectT<{
19
- sessionId: z<string, string>;
20
- resume: z<boolean, boolean>;
21
- resumePicker: z<boolean, boolean>;
22
- model: z<string, string>;
23
- provider: z<string, string>;
24
- preset: z<string, string>;
25
- color: z<boolean, boolean>;
26
- bell: z<boolean, boolean>;
27
- stash: z<Schemastery.ObjectS<{
28
- scope: z<"path" | "session", "path" | "session">;
29
- }>, Schemastery.ObjectT<{
30
- scope: z<"path" | "session", "path" | "session">;
31
- }>>;
32
- }>>;
4
+ export declare const Config: z<Schemastery.ObjectS<NoInfer<{
5
+ sessionId: z<string, string, "defined">;
6
+ resume: z<boolean, boolean, "defined">;
7
+ resumePicker: z<boolean, boolean, "defined">;
8
+ model: z<string, string, "plain">;
9
+ provider: z<string, string, "plain">;
10
+ preset: z<string, string, "plain">;
11
+ color: z<boolean, boolean, "defined">;
12
+ bell: z<boolean, boolean, "defined">;
13
+ stash: z<Schemastery.ObjectS<NoInfer<{
14
+ scope: z<"path" | "session", "path" | "session", "defined">;
15
+ }>>, Schemastery.ObjectT<NoInfer<{
16
+ scope: z<"path" | "session", "path" | "session", "defined">;
17
+ }>>, "defined">;
18
+ }>>, Schemastery.ObjectT<NoInfer<{
19
+ sessionId: z<string, string, "defined">;
20
+ resume: z<boolean, boolean, "defined">;
21
+ resumePicker: z<boolean, boolean, "defined">;
22
+ model: z<string, string, "plain">;
23
+ provider: z<string, string, "plain">;
24
+ preset: z<string, string, "plain">;
25
+ color: z<boolean, boolean, "defined">;
26
+ bell: z<boolean, boolean, "defined">;
27
+ stash: z<Schemastery.ObjectS<NoInfer<{
28
+ scope: z<"path" | "session", "path" | "session", "defined">;
29
+ }>>, Schemastery.ObjectT<NoInfer<{
30
+ scope: z<"path" | "session", "path" | "session", "defined">;
31
+ }>>, "defined">;
32
+ }>>, "plain">;
33
33
  /** Metadata alone makes source Loader skip remounts; writes require actual native references too. */
34
34
  export declare function hasLiveRowSettings(raw: unknown): boolean;
35
35
  /** Preserve raw malformed fields for the appearance owner to diagnose without losing opt-outs. */
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAExC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAalD,8FAA8F;AAC9F,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgBjB,CAAA;AAUF,qGAAqG;AACrG,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAQxD;AAED,kGAAkG;AAClG,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAOrD;AAED,sFAAsF;AACtF,qBAAa,cAAe,SAAQ,KAAK;CAAG;AAiC5C;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,YAAY,CAiBxD"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAExC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAalD,8FAA8F;AAC9F,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAgBjB,CAAA;AAUF,qGAAqG;AACrG,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAQxD;AAED,kGAAkG;AAClG,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAOrD;AAED,sFAAsF;AACtF,qBAAa,cAAe,SAAQ,KAAK;CAAG;AAiC5C;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,YAAY,CAiBxD"}
@@ -0,0 +1,27 @@
1
+ import type { PresetDefinition } from '@deepseek-ai/dsh-agent-preset-registry';
2
+ /**
3
+ * The agent modes this bundle ships, read from the same files the harness's own
4
+ * bundles declare.
5
+ *
6
+ * A mode names a selection, not a composition: the rows that make up an agent's
7
+ * tools, prompt sections, skills, and planning belong to the bundle shipping
8
+ * each of them, so a mode that listed them would mount plugins this bundle does
9
+ * not own — a second registration of what the profile already composed. These
10
+ * files therefore carry the preset declaration alone.
11
+ *
12
+ * The harness keeps one row per mode, and each surface bundle owns its own rows:
13
+ * the browser bundle keeps them in its patch layer. A patch row here would be
14
+ * mounted before any service exists, so the files travel with this package and
15
+ * are parsed at the moment the roster row applies them to the hosting registry.
16
+ */
17
+ /** Modes this bundle ships, in the order the picker lists them. */
18
+ export declare const PRESET_FILES: readonly ["standard", "ptc", "minimal", "cordis"];
19
+ /**
20
+ * Read every shipped mode.
21
+ *
22
+ * A parse failure is not swallowed: a mode that cannot be read would vanish from
23
+ * the roster without saying so, and a session that starts in it would fail with
24
+ * no cause on screen.
25
+ */
26
+ export declare function loadPresetDefinitions(): readonly PresetDefinition[];
27
+ //# sourceMappingURL=preset-files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-files.d.ts","sourceRoot":"","sources":["../../src/host/preset-files.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AAG9E;;;;;;;;;;;;;;GAcG;AAEH,mEAAmE;AACnE,eAAO,MAAM,YAAY,mDAAoD,CAAA;AAK7E;;;;;;GAMG;AACH,wBAAgB,qBAAqB,IAAI,SAAS,gBAAgB,EAAE,CAQnE"}
@@ -0,0 +1,40 @@
1
+ import { readFileSync } from 'node:fs';
2
+ import { fileURLToPath } from 'node:url';
3
+ import { load as parseYaml } from 'js-yaml';
4
+ /**
5
+ * The agent modes this bundle ships, read from the same files the harness's own
6
+ * bundles declare.
7
+ *
8
+ * A mode names a selection, not a composition: the rows that make up an agent's
9
+ * tools, prompt sections, skills, and planning belong to the bundle shipping
10
+ * each of them, so a mode that listed them would mount plugins this bundle does
11
+ * not own — a second registration of what the profile already composed. These
12
+ * files therefore carry the preset declaration alone.
13
+ *
14
+ * The harness keeps one row per mode, and each surface bundle owns its own rows:
15
+ * the browser bundle keeps them in its patch layer. A patch row here would be
16
+ * mounted before any service exists, so the files travel with this package and
17
+ * are parsed at the moment the roster row applies them to the hosting registry.
18
+ */
19
+ /** Modes this bundle ships, in the order the picker lists them. */
20
+ export const PRESET_FILES = ['standard', 'ptc', 'minimal', 'cordis'];
21
+ /** Where a packed install keeps them: beside `lib`, as the manifest declares. */
22
+ const presetDirectory = new URL('../../presets/', import.meta.url);
23
+ /**
24
+ * Read every shipped mode.
25
+ *
26
+ * A parse failure is not swallowed: a mode that cannot be read would vanish from
27
+ * the roster without saying so, and a session that starts in it would fail with
28
+ * no cause on screen.
29
+ */
30
+ export function loadPresetDefinitions() {
31
+ return PRESET_FILES.map((mode) => {
32
+ const file = fileURLToPath(new URL(`${mode}.patch.yml`, presetDirectory));
33
+ const document = parseYaml(readFileSync(file, 'utf8'));
34
+ const rows = document.flatMap((entry) => entry?.insert ?? []);
35
+ if (rows.length !== 1)
36
+ throw new Error(`${file}: expected one preset row, found ${rows.length}`);
37
+ return rows[0]?.config;
38
+ });
39
+ }
40
+ //# sourceMappingURL=preset-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-files.js","sourceRoot":"","sources":["../../src/host/preset-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,MAAM,SAAS,CAAA;AAE3C;;;;;;;;;;;;;;GAcG;AAEH,mEAAmE;AACnE,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAA;AAE7E,iFAAiF;AACjF,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAElE;;;;;;GAMG;AACH,MAAM,UAAU,qBAAqB;IACnC,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QAC/B,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,GAAG,CAAC,GAAG,IAAI,YAAY,EAAE,eAAe,CAAC,CAAC,CAAA;QACzE,MAAM,QAAQ,GAAG,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAA4D,CAAA;QACjH,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,IAAI,EAAE,CAAC,CAAA;QAC7D,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,GAAG,IAAI,oCAAoC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAA;QAChG,OAAO,IAAI,CAAC,CAAC,CAAC,EAAE,MAA0B,CAAA;IAC5C,CAAC,CAAC,CAAA;AACJ,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { Context } from '@deepseek-ai/cordis';
2
+ /**
3
+ * The roster of agent modes, mounted for the supported harness line.
4
+ *
5
+ * This bundle owns the modes a terminal profile offers, and the line keeps them in
6
+ * two places: a registry row owns the `agentPresets` service, and one row per mode
7
+ * declares the mode itself. The patch layer cannot mount either of them: a patch
8
+ * row is mounted before any service exists, and the modes arrive as the harness's
9
+ * own agent services come up, so the surface that waits on the roster would be
10
+ * built before it. Mounting from this row keeps the surface's check honest — the
11
+ * composition either publishes the roster or reports which service never arrived.
12
+ */
13
+ export declare const name = "tui-host-roster";
14
+ /** The mode a session runs when nobody names one, as the shipped modes order them. */
15
+ export declare const DEFAULT_PRESET = "ptc";
16
+ export declare function apply(ctx: Context): Promise<void>;
17
+ //# sourceMappingURL=roster.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roster.d.ts","sourceRoot":"","sources":["../../src/host/roster.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAGlD;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,IAAI,oBAAoB,CAAA;AAErC,sFAAsF;AACtF,eAAO,MAAM,cAAc,QAAQ,CAAA;AAiBnC,wBAAsB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAWvD"}