@vnejs/docs 0.2.83 → 0.2.84

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 CHANGED
@@ -40,7 +40,7 @@ The package has two scenario entries. Compare them and pick one. Both link to `p
40
40
  | [`contracts/`](./architecture/contracts.md) | Public API of plugins and bridge |
41
41
  | [`shared/`](./architecture/shared.md) | Plugin setup presets |
42
42
  | [`plugins/`](./architecture/plugins.md) | Behavior on the bus |
43
- | [`bridge/`](./architecture/bridge.md) | Link between plugins |
43
+ | [`bridges/`](./architecture/bridges.md) | Link between plugins |
44
44
  | [`bundles/`](./architecture/bundles.md) | Plugin set for a game |
45
45
  | [`helpers/`](./architecture/helpers.md) | Utils with no engine tie |
46
46
  | [`uis/`](./architecture/uis.md) | React components for view plugins |
@@ -1,24 +1,24 @@
1
- # bridge/
1
+ # bridges/
2
2
 
3
3
  **Optional integration** between independent plugins. A `bundles/` package turns it on. It is not hard-wired inside `plugins/`.
4
4
 
5
5
  - One module. It extends `ModuleCore`. The class lives in `src/modules/`. `src/index.ts` only imports and calls `regPlugin`.
6
6
  - In **`subscribe`** it listens to A and emits B.
7
- - A contract in `contracts/bridge/` mirrors this package. `PLUGIN_NAME` is the namespace `BRIDGE_PLUGIN_{PLUGIN_NAME_1}_PLUGIN_{PLUGIN_NAME_2}`.
7
+ - A contract in `contracts/bridges/` mirrors this package. `PLUGIN_NAME` is the namespace `BRIDGE_PLUGIN_{PLUGIN_NAME_1}_PLUGIN_{PLUGIN_NAME_2}`.
8
8
  - **`regPlugin`** takes the shape from that contract. The shape is empty when the bridge adds no constants, events, params, or settings. When it owns some, it passes those fields. The choose↔qte bridge passes `constants` and extends `ChooseOption` with `qte`.
9
9
  - It depends on its contract and on the contracts of the plugins it links. It does not import implementations from `plugins/`.
10
10
 
11
- Naming: `@vnejs/bridge.plugins.{package-1}.plugins.{package-2}` → path `bridge/plugins.{package-1}/plugins.{package-2}/`. The contract is `@vnejs/contracts.bridge.plugins.{package-1}.plugins.{package-2}` at `contracts/bridge/plugins.{package-1}/plugins.{package-2}/`. The two segments are the real plugin package names, without the `@vnejs/` scope.
11
+ Naming: `@vnejs/bridges.plugins.{package-1}.plugins.{package-2}` → path `bridges/plugins.{package-1}/plugins.{package-2}/`. The contract is `@vnejs/contracts.bridges.plugins.{package-1}.plugins.{package-2}` at `contracts/bridges/plugins.{package-1}/plugins.{package-2}/`. The two segments are the real plugin package names, without the `@vnejs/` scope.
12
12
 
13
13
  ```mermaid
14
14
  flowchart LR
15
15
  PA[plugins/ A] -->|"emit EVENT_A"| OBS[Observer]
16
- OBS --> BR[bridge/]
16
+ OBS --> BR[bridges/]
17
17
  BR -->|"emit EVENT_B"| OBS
18
18
  OBS --> PB[plugins/ B]
19
19
 
20
20
  PA -.->|"does not import"| PB
21
- BR --> CT[contracts/bridge]
21
+ BR --> CT[contracts/bridges]
22
22
  BR --> CTA[contracts/ A]
23
23
  BR --> CTB[contracts/ B]
24
24
  ```
@@ -9,7 +9,7 @@ flowchart TD
9
9
  CT[contracts/]
10
10
  SH[shared/]
11
11
  PL[plugins/]
12
- CP[bridge/]
12
+ CP[bridges/]
13
13
  BD[bundles/]
14
14
  CL[cli/]
15
15
  end
@@ -34,7 +34,7 @@ flowchart TD
34
34
  ART --> PLAY[Browser / Electron]
35
35
  ```
36
36
 
37
- 1. `bundles/` registers `plugins/` and `bridge/` in `VNE` and lists the matching `@vnejs/shared.*` in `dependencies`. The game script imports factories from `shared/`.
37
+ 1. `bundles/` registers `plugins/` and `bridges/` in `VNE` and lists the matching `@vnejs/shared.*` in `dependencies`. The game script imports factories from `shared/`.
38
38
  2. `cli/` builds the scenario to JSON and the client to `dist/`.
39
39
  3. `new VneCore().init()` — modules, media, and the lifecycle up to `start`.
40
- 4. The game runs on bus events. Cross-plugin links go through `bridge/` from `bundles/`.
40
+ 4. The game runs on bus events. Cross-plugin links go through `bridges/` from `bundles/`.
@@ -1,6 +1,6 @@
1
1
  # bundles/
2
2
 
3
- **Composition** with no business logic. A chain of side-effect imports from `plugins/` and `bridge/`.
3
+ **Composition** with no business logic. A chain of side-effect imports from `plugins/` and `bridges/`.
4
4
 
5
5
  - Sets the **ability set** for `games/`.
6
6
  - Exports **`VneCore`**.
@@ -17,4 +17,4 @@ flowchart BT
17
17
  CORE --> CANVAS --> SKEL --> BASE --> GAME
18
18
  ```
19
19
 
20
- Entry point: re-export `VneCore` → import `plugins/` → import `bridge/`.
20
+ Entry point: re-export `VneCore` → import `plugins/` → import `bridges/`.
@@ -2,15 +2,15 @@
2
2
 
3
3
  **Shared build configs.** Reusable TypeScript settings. Not runtime.
4
4
 
5
- | Package | Role |
6
- | ------------------------------ | ----------------------------------------------------------------------------------------------------------- |
7
- | **`@vnejs/configs.ts-common`** | tsconfig for `plugins/`, `bridge/`, `contracts/`, `packages/`, `modules_extensions/`, `helpers/`, `shared/` |
8
- | **`@vnejs/configs.ts-uis`** | tsconfig for `uis/react/` and view code in `games/` (JSX, React types) |
9
- | **`@vnejs/configs.vitest`** | Shared Vitest config (`create-config.js`, `setup.js`) for packages with tests |
5
+ | Package | Role |
6
+ | ------------------------------ | ------------------------------------------------------------------------------------------------------------ |
7
+ | **`@vnejs/configs.ts-common`** | tsconfig for `plugins/`, `bridges/`, `contracts/`, `packages/`, `modules_extensions/`, `helpers/`, `shared/` |
8
+ | **`@vnejs/configs.ts-uis`** | tsconfig for `uis/react/` and view code in `games/` (JSX, React types) |
9
+ | **`@vnejs/configs.vitest`** | Shared Vitest config (`create-config.js`, `setup.js`) for packages with tests |
10
10
 
11
11
  ```mermaid
12
12
  flowchart LR
13
- TC[configs.ts-common] --> PL[plugins/ / bridge/ / contracts/ / packages/ / shared/]
13
+ TC[configs.ts-common] --> PL[plugins/ / bridges/ / contracts/ / packages/ / shared/]
14
14
  TU[configs.ts-uis] --> UI[uis/react/]
15
15
  TU --> GM[games/]
16
16
  TV[configs.vitest] --> TEST[packages with vitest]
@@ -18,15 +18,15 @@ A contract extends types through `declare module`:
18
18
 
19
19
  ### Principles
20
20
 
21
- - One contract matches **one plugin** in `plugins/` or **one bridge** in `bridge/` (1:1).
22
- - A contract **does not import** an implementation from `plugins/` or `bridge/`.
21
+ - One contract matches **one plugin** in `plugins/` or **one bridge** in `bridges/` (1:1).
22
+ - A contract **does not import** an implementation from `plugins/` or `bridges/`.
23
23
  - Plugin contracts mirror the `plugins/` taxonomy (`contracts/text/text/` for `plugins/text/text/`).
24
- - Bridge contracts live under `contracts/bridge/` and mirror the `bridge/` path.
24
+ - Bridge contracts live under `contracts/bridges/` and mirror the `bridges/` path.
25
25
 
26
26
  ```mermaid
27
27
  flowchart LR
28
28
  CT[contracts/] -->|"declare module"| TS[VNE / Module types]
29
- CT -->|"CONSTANTS, EVENTS, PARAMS"| REG[regPlugin when plugins/ or bridge/ load]
29
+ CT -->|"CONSTANTS, EVENTS, PARAMS"| REG[regPlugin when plugins/ or bridges/ load]
30
30
  PL[plugins/] -->|"import"| CT
31
- BR[bridge/] -->|"import"| CT
31
+ BR[bridges/] -->|"import"| CT
32
32
  ```
@@ -6,7 +6,7 @@ flowchart TD
6
6
  G --> CLI[cli/]
7
7
  G -.->|HTTP| BE[backends/]
8
8
  B --> P[plugins/]
9
- B --> C[bridge/]
9
+ B --> C[bridges/]
10
10
  B --> SH[shared/]
11
11
  G --> SH
12
12
  SH --> CT[contracts/]
@@ -29,12 +29,12 @@ flowchart TD
29
29
  | ---------- | ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
30
30
  | `games/` | `bundles/`, `cli/`, `shared/` | Build goes through `cli/`. The game script imports `shared/` factories. The game `package.json` does not list them |
31
31
  | `games/` | `backends/` | HTTP to the token and label workers. No package import |
32
- | `bundles/` | `plugins/`, `bridge/` | The plugin set |
32
+ | `bundles/` | `plugins/`, `bridges/` | The plugin set |
33
33
  | `bundles/` | `shared/` | The bundle lists `@vnejs/shared.*` in `dependencies` when it includes that plugin. The bundle does not re-export factories |
34
34
  | `shared/` | `contracts/` | Setup factories read events, not implementations |
35
35
  | `plugins/` | `contracts/` | The implementation follows the declared API |
36
36
  | `plugins/` | `modules_extensions/` → `packages/` | Modules extend bases. Bases rest on registry and observer |
37
- | `bridge/` | `contracts/` | Its contract in `contracts/bridge/`, plus the plugin contracts it links. No import of implementations |
37
+ | `bridges/` | `contracts/` | Its contract in `contracts/bridges/`, plus the plugin contracts it links. No import of implementations |
38
38
  | `plugins/` | `helpers/`, `uis/` | Shared utils and UI |
39
39
  | `plugins/` | — another `plugins/` | **No direct dependency** |
40
40
  | `configs/` | workspace packages | Shared tsconfig. Not runtime |
@@ -49,7 +49,7 @@ flowchart TD
49
49
  | **`contracts/`** | Plugin and bridge API |
50
50
  | **`shared/`** | Plugin setup presets |
51
51
  | **`plugins/`** | Behavior on the bus |
52
- | **`bridge/`** | Opt-in link between two plugins |
52
+ | **`bridges/`** | Opt-in link between two plugins |
53
53
  | **`bundles/`** | A set of abilities for a game |
54
54
  | **`helpers/`** | Utils with no engine tie |
55
55
  | **`uis/`** | React UI for views |
@@ -58,4 +58,4 @@ flowchart TD
58
58
  | **`backends/`** | Workers: Steam token and label JSON |
59
59
  | **`vs_code_extensions/`** | `.vne` highlight |
60
60
 
61
- **Main rule:** `plugins/` do not know each other. Integration goes through events in `contracts/` and an explicit `bridge/` package in `bundles/`.
61
+ **Main rule:** `plugins/` do not know each other. Integration goes through events in `contracts/` and an explicit `bridges/` package in `bundles/`.
@@ -37,9 +37,9 @@ flowchart LR
37
37
  ```
38
38
  plugins/core/system/ → @vnejs/plugins.core.system
39
39
  contracts/text/text/ → @vnejs/contracts.text
40
- contracts/bridge/plugins.text/plugins.scenario.autoread/ → @vnejs/contracts.bridge.plugins.text.plugins.scenario.autoread
40
+ contracts/bridges/plugins.text/plugins.scenario.autoread/ → @vnejs/contracts.bridges.plugins.text.plugins.scenario.autoread
41
41
  shared/views.screens/gamemenu/ → @vnejs/shared.views.screens.gamemenu
42
- bridge/plugins.text/plugins.scenario.autoread/ → @vnejs/bridge.plugins.text.plugins.scenario.autoread
42
+ bridges/plugins.text/plugins.scenario.autoread/ → @vnejs/bridges.plugins.text.plugins.scenario.autoread
43
43
  ```
44
44
 
45
- A slash in the path becomes a dot in the name. `bridge/` repeats `plugins.` so the two plugin packages stay visible.
45
+ A slash in the path becomes a dot in the name. `bridges/` repeats `plugins.` so the two plugin packages stay visible.
@@ -78,7 +78,7 @@ flowchart TD
78
78
 
79
79
  - A plugin takes the base it needs (`ModuleCore`, `ModuleView`, `ModuleLayerController`, …). It does not extend `Module` directly.
80
80
  - Bases pull **contracts** from `contracts/`. That is how `EVENTS` / `CONST` are typed.
81
- - **`ModuleCore`** is for `plugins/core/` and `bridge/`. **`ModuleView` / `ModuleLayer*`** are for view and canvas, plus **`@vnejs/uis.react`**.
81
+ - **`ModuleCore`** is for `plugins/core/` and `bridges/`. **`ModuleView` / `ModuleLayer*`** are for view and canvas, plus **`@vnejs/uis.react`**.
82
82
 
83
83
  | | `packages/` | `modules_extensions/` |
84
84
  | ----------------- | -------------------------- | ---------------------------- |
@@ -0,0 +1,3 @@
1
+ # 0.2.84
2
+
3
+ - `bridges/` — the layer moved from `bridge/`. Use `@vnejs/bridges.*` and `@vnejs/contracts.bridges.*` instead of `@vnejs/bridge.*` and `@vnejs/contracts.bridge.*`. `PLUGIN_NAME` stays `BRIDGE_PLUGIN_*`.
@@ -2,6 +2,7 @@
2
2
 
3
3
  Engine and public API changes. One file per `@vnejs/docs` release. Newest first.
4
4
 
5
+ - [0.2.84](./0.2.84.md)
5
6
  - [0.2.82](./0.2.82.md)
6
7
  - [0.2.81](./0.2.81.md)
7
8
  - [0.2.80](./0.2.80.md)
package/manifest.json CHANGED
@@ -43,7 +43,7 @@
43
43
  "architecture/contracts.md",
44
44
  "architecture/shared.md",
45
45
  "architecture/plugins.md",
46
- "architecture/bridge.md",
46
+ "architecture/bridges.md",
47
47
  "architecture/bundles.md",
48
48
  "architecture/helpers.md",
49
49
  "architecture/uis.md",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/docs",
3
- "version": "0.2.83",
3
+ "version": "0.2.84",
4
4
  "description": "VNEJS documentation for engine consumers and coding agents",
5
5
  "files": [
6
6
  "*.md",
@@ -71,4 +71,4 @@ None.
71
71
  ### Other
72
72
 
73
73
  - [controls.md](./controls.md) — `CONTROLS`: EVENTS.DEVICE_SET (mousemove → keyboard)
74
- - [gamepad.md](./gamepad.md) — sticks via `bridge/plugins.controls.gamepad/plugins.controls.cursor`: left → `SHIFT`, right → `SCROLL`; device type (xbox|ps) — `controls.gamepad.device`
74
+ - [gamepad.md](./gamepad.md) — sticks via `bridges/plugins.controls.gamepad/plugins.controls.cursor`: left → `SHIFT`, right → `SCROLL`; device type (xbox|ps) — `controls.gamepad.device`
@@ -101,4 +101,4 @@ All mappings — object `CUSTOM_BUTTON_MAPPING` in `plugins/controls/gamepad/src
101
101
  ### Other
102
102
 
103
103
  - [controls.md](./controls.md) — `CONTROLS`: EVENTS.EMIT, EVENTS.DEVICE_SET (via `controls.gamepad.device` → xbox|playstation), CONST.BUTTONS, CONST.DEVICES
104
- - [cursor.md](./cursor.md) — via `bridge/plugins.controls.gamepad/plugins.controls.cursor`: left stick (axes 0–1) → `CURSOR.SHIFT`, right stick (axes 2–3) → `CURSOR.SCROLL`; RT → `CURSOR.CLICK`
104
+ - [cursor.md](./cursor.md) — via `bridges/plugins.controls.gamepad/plugins.controls.cursor`: left stick (axes 0–1) → `CURSOR.SHIFT`, right stick (axes 2–3) → `CURSOR.SCROLL`; RT → `CURSOR.CLICK`
@@ -86,27 +86,27 @@ None.
86
86
 
87
87
  ## Bridge
88
88
 
89
- ### `bridge/plugins.scenario.choose/plugins.scenario.fastforward/`
89
+ ### `bridges/plugins.scenario.choose/plugins.scenario.fastforward/`
90
90
 
91
- Package: `@vnejs/bridge.plugins.scenario.choose.plugins.scenario.fastforward`
91
+ Package: `@vnejs/bridges.plugins.scenario.choose.plugins.scenario.fastforward`
92
92
 
93
93
  In `subscribe` listens to `OPTION` at `OPTION_PRIORITY.BEFORE`: on option pick emits `FASTFORWARD.CHECK` (before `HIDE` / `OPTION_REPLACE`).
94
94
 
95
- ### `bridge/plugins.scenario.choose/plugins.scenario.history/`
95
+ ### `bridges/plugins.scenario.choose/plugins.scenario.history/`
96
96
 
97
- Package: `@vnejs/bridge.plugins.scenario.choose.plugins.scenario.history`
97
+ Package: `@vnejs/bridges.plugins.scenario.choose.plugins.scenario.history`
98
98
 
99
99
  In `subscribe` listens to `OPTION` at `OPTION_PRIORITY.BEFORE`: on option pick emits `HISTORY.ADD` with `{ locKey: "choice" }` (no speaker/text). Line text comes from history screen localization (`history.json`). Wired in `bundles/vn.skeleton`.
100
100
 
101
- ### `bridge/plugins.scenario.choose/plugins.scenario.qte/`
101
+ ### `bridges/plugins.scenario.choose/plugins.scenario.qte/`
102
102
 
103
- Package: `@vnejs/bridge.plugins.scenario.choose.plugins.scenario.qte`
103
+ Package: `@vnejs/bridges.plugins.scenario.choose.plugins.scenario.qte`
104
104
 
105
105
  On `OPTION_REPLACE` runs QTE when the option has `qte: <id>` (see [qte.md](./qte.md#bridge)). Field `qte` is added to `ChooseOption` via this package’s module augmentation; `qte-fallback` — keyword on the option line (`% choose.option "…" | qte-fallback`), lands in `ChooseOption.keywords`.
106
106
 
107
- ### `bridge/plugins.scenario.choose/plugins.text/`
107
+ ### `bridges/plugins.scenario.choose/plugins.text/`
108
108
 
109
- Package: `@vnejs/bridge.plugins.scenario.choose.plugins.text`
109
+ Package: `@vnejs/bridges.plugins.scenario.choose.plugins.text`
110
110
 
111
111
  In `init` registers an `OPTION_TEXT` handler that returns `TEXT.REPLACE`. `text.locs` and `text.inject` stay on that chain. Without this package the option keeps the literal from the scenario line. Wired in `bundles/vn.skeleton`.
112
112
 
@@ -71,4 +71,4 @@ Handler payloads and results are typed through module augmentation of the contra
71
71
 
72
72
  ### Other
73
73
 
74
- - [choose.md](./choose.md) — `CHOOSE`: linked via `bridge/plugins.scenario.choose/plugins.scenario.fastforward` (`OPTION` at `OPTION_PRIORITY.BEFORE` → `FASTFORWARD.CHECK`)
74
+ - [choose.md](./choose.md) — `CHOOSE`: linked via `bridges/plugins.scenario.choose/plugins.scenario.fastforward` (`OPTION` at `OPTION_PRIORITY.BEFORE` → `FASTFORWARD.CHECK`)
@@ -49,15 +49,15 @@ Log state belongs to module `history` (`globalState.history`). Snapshots in `MEM
49
49
 
50
50
  ## Bridge
51
51
 
52
- ### `bridge/plugins.text/plugins.scenario.history/`
52
+ ### `bridges/plugins.text/plugins.scenario.history/`
53
53
 
54
- Package: `@vnejs/bridge.plugins.text.plugins.scenario.history`
54
+ Package: `@vnejs/bridges.plugins.text.plugins.scenario.history`
55
55
 
56
56
  On `TEXT.EMIT_NEXT` emits `HISTORY.ADD` with `{ label, text, args, speaker, speakerInfo }`. `text` — scenario line as-is, including `{…}` markers: that is the localization key. Wired in `bundles/vn.skeleton`.
57
57
 
58
- ### `bridge/plugins.scenario.choose/plugins.scenario.history/`
58
+ ### `bridges/plugins.scenario.choose/plugins.scenario.history/`
59
59
 
60
- Package: `@vnejs/bridge.plugins.scenario.choose.plugins.scenario.history`
60
+ Package: `@vnejs/bridges.plugins.scenario.choose.plugins.scenario.history`
61
61
 
62
62
  On `CHOOSE.OPTION` at `CONST.CHOOSE.OPTION_PRIORITY.BEFORE` emits `HISTORY.ADD` with `{ locKey: "choice" }`. Line translation — key `choice` in the screen `history.json`. Wired in `bundles/vn.skeleton`.
63
63
 
@@ -72,15 +72,15 @@ None.
72
72
 
73
73
  ## Bridge
74
74
 
75
- ### `bridge/plugins.scenario.point_and_click/plugins.vars.flags/`
75
+ ### `bridges/plugins.scenario.point_and_click/plugins.vars.flags/`
76
76
 
77
- Package: `@vnejs/bridge.plugins.scenario.point_and_click.plugins.vars.flags`
77
+ Package: `@vnejs/bridges.plugins.scenario.point_and_click.plugins.vars.flags`
78
78
 
79
79
  In `init` registers handler on `EXEC_REG` for flags module → `VARS_FLAGS.EXEC_CHECK`.
80
80
 
81
- ### `bridge/plugins.scenario.point_and_click/plugins.vars.counters/`
81
+ ### `bridges/plugins.scenario.point_and_click/plugins.vars.counters/`
82
82
 
83
- Package: `@vnejs/bridge.plugins.scenario.point_and_click.plugins.vars.counters`
83
+ Package: `@vnejs/bridges.plugins.scenario.point_and_click.plugins.vars.counters`
84
84
 
85
85
  In `init` registers handler on `EXEC_REG` for counters module → `VARS_COUNTERS.EXEC_CHECK`.
86
86
 
@@ -72,11 +72,11 @@ On `EMIT` with `skipScenario: true` sets `shared.qteScenarioSkip`; on `RESULT` m
72
72
 
73
73
  ## Bridge
74
74
 
75
- ### `bridge/plugins.scenario.choose/plugins.scenario.qte/`
75
+ ### `bridges/plugins.scenario.choose/plugins.scenario.qte/`
76
76
 
77
- Package: `@vnejs/bridge.plugins.scenario.choose.plugins.scenario.qte`
77
+ Package: `@vnejs/bridges.plugins.scenario.choose.plugins.scenario.qte`
78
78
 
79
- Contract: `@vnejs/contracts.bridge.plugins.scenario.choose.plugins.scenario.qte` · namespace: `BRIDGE_PLUGIN_CHOOSE_PLUGIN_QTE`
79
+ Contract: `@vnejs/contracts.bridges.plugins.scenario.choose.plugins.scenario.qte` · namespace: `BRIDGE_PLUGIN_CHOOSE_PLUGIN_QTE`
80
80
 
81
81
  On `CHOOSE.OPTION_REPLACE`: when the option has `qte: <id>`, runs QTE with `skipScenario: true`. Success — same option index; fail — index of the option whose `keywords` include `LINE_KEYWORDS.QTE_FALLBACK` (`qte-fallback`; if none — original index + `EVENTS.LOGS.EMIT`).
82
82
 
@@ -43,9 +43,9 @@ None.
43
43
 
44
44
  ## Bridge
45
45
 
46
- ### `bridge/plugins.views.scenario.interface/plugins.text.smooth/`
46
+ ### `bridges/plugins.views.scenario.interface/plugins.text.smooth/`
47
47
 
48
- Package: `@vnejs/bridge.plugins.views.scenario.interface.plugins.text.smooth`
48
+ Package: `@vnejs/bridges.plugins.views.scenario.interface.plugins.text.smooth`
49
49
 
50
50
  Link to [interface.md](../views.scenario/interface.md): `CHANGED` → `INTERFACE.TEXT_CHANGED` (`tokens` from `globalState.text`, `tokensVisible`, `uid`). `start` resets `shared.interfaceTextShowAllTokensOnChange`.
51
51
 
@@ -65,21 +65,21 @@ Handler payloads and results are typed through module augmentation of the contra
65
65
 
66
66
  ## Bridge
67
67
 
68
- ### `bridge/plugins.views.scenario.interface/plugins.text/`
68
+ ### `bridges/plugins.views.scenario.interface/plugins.text/`
69
69
 
70
- Package: `@vnejs/bridge.plugins.views.scenario.interface.plugins.text`
70
+ Package: `@vnejs/bridges.plugins.views.scenario.interface.plugins.text`
71
71
 
72
72
  Link to [interface.md](../views.scenario/interface.md): `CHANGED` / `SPEAKER_CHANGED` / `EMIT` (`EMIT_PRIORITY.BEFORE`) → `INTERFACE.TEXT_CHANGED` / `SPEAKER_CHANGED` / `SHOW`. In `postinject` sets `shared.interfaceTextShowAllTokensOnChange`.
73
73
 
74
- ### `bridge/plugins.text/plugins.scenario.history/`
74
+ ### `bridges/plugins.text/plugins.scenario.history/`
75
75
 
76
- Package: `@vnejs/bridge.plugins.text.plugins.scenario.history`
76
+ Package: `@vnejs/bridges.plugins.text.plugins.scenario.history`
77
77
 
78
78
  On `EMIT_NEXT` emits `HISTORY.ADD` with text from the last line. `{…}` markers in the line stay: translation is looked up by them. Wired in `bundles/vn.skeleton`.
79
79
 
80
- ### `bridge/plugins.scenario.choose/plugins.text/`
80
+ ### `bridges/plugins.scenario.choose/plugins.text/`
81
81
 
82
- Package: `@vnejs/bridge.plugins.scenario.choose.plugins.text`
82
+ Package: `@vnejs/bridges.plugins.scenario.choose.plugins.text`
83
83
 
84
84
  Link to [choose.md](../scenario/choose.md): `OPTION_TEXT` handler returns `TEXT.REPLACE`. Wired in `bundles/vn.skeleton`.
85
85
 
@@ -66,15 +66,15 @@ None.
66
66
 
67
67
  ## Bridge
68
68
 
69
- ### `bridge/plugins.views.scenario.interface/plugins.text/`
69
+ ### `bridges/plugins.views.scenario.interface/plugins.text/`
70
70
 
71
- Package: `@vnejs/bridge.plugins.views.scenario.interface.plugins.text`
71
+ Package: `@vnejs/bridges.plugins.views.scenario.interface.plugins.text`
72
72
 
73
73
  On `TEXT.CHANGED` emits `INTERFACE.TEXT_CHANGED` (`tokensVisible` = token length when `shared.interfaceTextShowAllTokensOnChange`). On `TEXT.SPEAKER_CHANGED` — `INTERFACE.SPEAKER_CHANGED`. In `postinject` sets the flag to `true`; in `subscribe` registers `TEXT.EMIT` (`CONST.TEXT.EMIT_PRIORITY.BEFORE`) → `INTERFACE.SHOW`. Wired in `bundles/vn.skeleton`.
74
74
 
75
- ### `bridge/plugins.views.scenario.interface/plugins.text.smooth/`
75
+ ### `bridges/plugins.views.scenario.interface/plugins.text.smooth/`
76
76
 
77
- Package: `@vnejs/bridge.plugins.views.scenario.interface.plugins.text.smooth`
77
+ Package: `@vnejs/bridges.plugins.views.scenario.interface.plugins.text.smooth`
78
78
 
79
79
  On `TEXT_SMOOTH.CHANGED` emits `INTERFACE.TEXT_CHANGED` with `tokens` from `globalState.text`, `tokensVisible`, and `uid`. In `start` sets `shared.interfaceTextShowAllTokensOnChange` to `false`.
80
80
 
@@ -66,9 +66,9 @@ sequenceDiagram
66
66
 
67
67
  ## Bridge
68
68
 
69
- ### `bridge/plugins.views.scenario.point_and_click/plugins.views.scenario.interface/`
69
+ ### `bridges/plugins.views.scenario.point_and_click/plugins.views.scenario.interface/`
70
70
 
71
- Package: `@vnejs/bridge.plugins.views.scenario.point_and_click.plugins.views.scenario.interface`
71
+ Package: `@vnejs/bridges.plugins.views.scenario.point_and_click.plugins.views.scenario.interface`
72
72
 
73
73
  On `POINT_AND_CLICK_VIEW.SHOW` with `CONST.COMPONENTS.LIFECYCLE_PRIORITY.SHOW.BEFORE` emits `INTERFACE.HIDE`.
74
74
 
@@ -83,9 +83,9 @@ sequenceDiagram
83
83
 
84
84
  ## Bridge
85
85
 
86
- ### `bridge/plugins.views.scenario.qte/plugins.views.scenario.interface/`
86
+ ### `bridges/plugins.views.scenario.qte/plugins.views.scenario.interface/`
87
87
 
88
- Package: `@vnejs/bridge.plugins.views.scenario.qte.plugins.views.scenario.interface`
88
+ Package: `@vnejs/bridges.plugins.views.scenario.qte.plugins.views.scenario.interface`
89
89
 
90
90
  On `QTE_VIEW.SHOW` with `CONST.COMPONENTS.LIFECYCLE_PRIORITY.SHOW.BEFORE` emits `INTERFACE.HIDE`. Wired in `bundles/vn.base`.
91
91