@wy35002/dsh-model-fallback-ui 0.1.2-alpha.3

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.
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # ui-model-fallback
2
+
3
+ Client settings panel for the model-fallback auto-switch plugin. It composes
4
+ into the existing settings surface as the **Model fallback** section and edits
5
+ the `model-fallback` settings namespace that the host plugin reads on every
6
+ turn.
7
+
8
+ ## What it does
9
+
10
+ Two modes, resolved automatically from the namespace:
11
+
12
+ - **Auto (default).** No chain configured. The panel exposes *free-model
13
+ overrides* (mark specific model ids free, beyond the plugin's built-in
14
+ community table) and a *trust-whole-provider* list (every unknown model of a
15
+ checked provider counts as free).
16
+ - **Manual.** An explicit, ordered fallback chain (provider / model id /
17
+ tier), with reorder, add, and remove. Shown only when the chain is
18
+ non-empty.
19
+
20
+ It also exposes the switching policy (`paidSwitchPolicy`: `ask` / `auto` /
21
+ `never`), the quota-skip toggle, and the `switchableCodes` list. The current
22
+ mode is shown at the top of the section.
23
+
24
+ ## Discovery scope
25
+
26
+ Both the **free-model overrides** row and each **manual chain entry** offer a
27
+ **Load models** button: pick a provider, load its actually-configured models
28
+ (over the remote `llm` namespace), and click one to select it — no guessing
29
+ ids. The Models settings page or the `model-fallback-discover` tool lists what
30
+ each provider offers.
31
+
32
+ ## Model Experience
33
+
34
+ Indirectly, through the model-fallback host plugin, which reads the `model-fallback` settings namespace and rebuilds the retry request header on a switchable failure.
35
+
36
+ #### KV Cache effect
37
+
38
+ None; this panel neither assembles nor sends a provider request.
39
+
40
+ ## Known Limitations and Deferred Work
41
+
42
+ - The **Load models** list shows models the user configured for the provider
43
+ (the `listModels` remote surface); it cannot show the adapter's full
44
+ universe or models the user never added.
45
+ - Per-session fallback chains are a planned professional-tier feature, not
46
+ this panel.
@@ -0,0 +1,7 @@
1
+ # Bundle patch: insert the model-fallback settings panel into a profile's layer stack.
2
+ # The client half is additionally auto-discovered through the `dsh.client` manifest
3
+ # in package.json; this row declares the host-side entry point so the Loader can
4
+ # wire the bundle.
5
+ - insert:
6
+ - id: model-fallback-ui
7
+ name: '@wy35002/dsh-model-fallback-ui'