@t4r71/dsh-dual-axis-ui 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 T4R71
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,78 @@
1
+ # @t4r71/dsh-dual-axis-ui
2
+
3
+ The browser half of the dual-axis access-mode bundle: the General-settings row
4
+ that edits the two axis seeds, and the two read/write axis dropdowns above the
5
+ composer.
6
+
7
+ ## Install this together with the host half
8
+
9
+ This package is **half** of the bundle. It renders and submits axis values; it
10
+ enforces nothing and stores nothing. The host half
11
+ (`@t4r71/dsh-dual-axis`) owns the per-session axis pair, the read fence, the
12
+ `/axis` command and the model-facing range paragraph. Installing this package
13
+ alone produces a page that writes settings nothing reads: the dropdowns appear
14
+ and save, and no access decision changes.
15
+
16
+ Install the host half, and add it to the profile's `dsh.profile.bundles`:
17
+
18
+ ```json
19
+ {
20
+ "dependencies": {
21
+ "@t4r71/dsh-dual-axis": "file:.../t4r71-dsh-dual-axis.tgz",
22
+ "@t4r71/dsh-dual-axis-ui": "file:.../t4r71-dsh-dual-axis-ui.tgz"
23
+ },
24
+ "dsh": {
25
+ "profile": {
26
+ "bundles": [
27
+ "@deepseek-ai/dsh-base",
28
+ "@deepseek-ai/dsh-web-app",
29
+ "@t4r71/dsh-dual-axis"
30
+ ]
31
+ }
32
+ }
33
+ }
34
+ ```
35
+
36
+ Only the host half is listed under `dsh.profile.bundles`: it is the bundle, and
37
+ its `cordis.patch.yml` carries the row that mounts this client half. This
38
+ package ships no bundle patch of its own.
39
+
40
+ ## ⚠ This bundle disables an official UI row
41
+
42
+ Installing the bundle turns OFF the upstream row `ui-permission`
43
+ (`@deepseek-ai/dsh-client-ui-permission-presets`, declared in
44
+ `@deepseek-ai/dsh-web-app`'s `cordis.patch.yml`). That is a deliberate
45
+ replacement: this bundle's client half registers the same
46
+ `conversation.input.permission` slot, so the two cannot both be active, and
47
+ leaving both registered makes the client hang on "Loading plugins".
48
+
49
+ **The full statement — what is replaced, which two mechanisms collide, what
50
+ behaviour changes, and how to get the official UI back — lives in the host
51
+ package's README**, section "This bundle disables an official UI row". It is
52
+ not repeated here, so the two copies cannot drift.
53
+
54
+ If you installed only this package, you have that disable applied by nothing and
55
+ the upstream row still active; both are covered by the section above.
56
+
57
+ ## Layout
58
+
59
+ | Path | Role |
60
+ | --- | --- |
61
+ | `src/client/index.ts` | The client entry: mounts both registered surfaces |
62
+ | `src/client/row/index.ts` | The `plugins.row.config` row: both axes, the rule-group library, one atomic save |
63
+ | `src/client/row/axes.ts` | The axis draft/value conversion and label text, shared by every surface |
64
+ | `src/client/row/groups.ts` | The rule-group library document and its validation keys |
65
+ | `src/client/permission/session-axes.ts` | Reads the axis pair currently in force for the open session |
66
+ | `src/client/permission/session-axes-seed.ts` | Recomputes the host's seed for a session with no stored record |
67
+ | `src/client/permission/PermissionSelect.tsx` | The two composer dropdowns |
68
+ | `src/client/permission/settings-store.ts` | The settings document the dropdowns write |
69
+
70
+ `session-axes-seed.ts` deliberately shares no import with the host half, which
71
+ recomputes the same seed independently; the host's `tests/seed-parity.spec.ts`
72
+ feeds both the same rows and asserts identical bytes, key order included.
73
+
74
+ ## Building
75
+
76
+ The package resolves every `@deepseek-ai/*` import from its own
77
+ `node_modules`: `pnpm install` then `tsc -b tsconfig.json && tsdown` work in a
78
+ tree containing nothing but this package.