Repository navigation
Commit a2779d6
committed
refactor(config-generator): move preview descriptions into the outputs DSL
Raise the configuration DSL to version 5 and remove the separate
config-desc block. Per-line preview explanations now live on the output
tree: `description` is a common attribute on output nodes, and an
`<enum options="field">` output shows the selected option's description,
falling back to the node's own. The preview walks the declared outputs
against the projected value, so annotations match the generated structure
exactly instead of being matched heuristically.
Rewrite dsl/description.rs as dsl/preview.rs, dropping conditions and the
config-desc parser, and expose Document::preview_lines. Snapshot keeps the
preview_lines contract, so the Svelte side is unchanged. Remove the
ConfigDescription types and the wire variants for config-desc, and make
version 5 mandatory.
Migrate the TUIC server and client schemas, the reuse example, and the
legacy fixture: move descriptions onto output nodes and enum options, and
delete their config-desc blocks. Update the DSL, schema, session, and
reuse tests accordingly.
Rewrite the Config DSL RFC (Chinese and English) as a structural reference
covering each element, its attributes, defaults, and constraints, and
reduce the generator guide to a summary that points at it.
Assisted-by: opencode:deepseek-v4-flash1 parent e890961 commit a2779d6
17 files changed
Lines changed: 1447 additions & 2395 deletions
File tree
- config-generator
- schema
- src
- dsl
- session
- tests
- fixtures
- wind/docs
- specs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 41 | | |
60 | 42 | | |
61 | | - | |
62 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
63 | 51 | | |
64 | 52 | | |
65 | | - | |
| 53 | + | |
66 | 54 | | |
67 | | - | |
| 55 | + | |
68 | 56 | | |
69 | 57 | | |
0 commit comments