@vnejs/docs 0.2.80 → 0.2.81

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 (38) hide show
  1. package/README.md +1 -1
  2. package/architecture/backends.md +7 -7
  3. package/architecture/bridge.md +22 -0
  4. package/architecture/build.md +7 -7
  5. package/architecture/bundles.md +5 -5
  6. package/architecture/cli.md +7 -7
  7. package/architecture/configs.md +9 -9
  8. package/architecture/contracts.md +12 -12
  9. package/architecture/dependencies.md +35 -35
  10. package/architecture/editor.md +4 -4
  11. package/architecture/games.md +7 -7
  12. package/architecture/helpers.md +5 -5
  13. package/architecture/model.md +14 -14
  14. package/architecture/modules.md +35 -35
  15. package/architecture/packages.md +16 -16
  16. package/architecture/plugins.md +15 -15
  17. package/architecture/shared.md +15 -15
  18. package/architecture/uis.md +8 -8
  19. package/changelog/0.2.81.md +3 -0
  20. package/changelog/README.md +1 -0
  21. package/manifest.json +1 -1
  22. package/package.json +1 -1
  23. package/plugins/controls/cursor.md +1 -1
  24. package/plugins/controls/gamepad.md +2 -2
  25. package/plugins/scenario/choose.md +14 -14
  26. package/plugins/scenario/fastforward.md +1 -1
  27. package/plugins/scenario/history.md +7 -7
  28. package/plugins/scenario/point_and_click.md +5 -5
  29. package/plugins/scenario/qte.md +6 -6
  30. package/plugins/text/smooth.md +4 -4
  31. package/plugins/text/text.md +10 -10
  32. package/plugins/views.scenario/choose.md +1 -1
  33. package/plugins/views.scenario/interface.md +8 -8
  34. package/plugins/views.scenario/point_and_click.md +4 -4
  35. package/plugins/views.scenario/qte.md +5 -5
  36. package/scenario.guide/choose.md +1 -1
  37. package/scenario.guide/qte-random.md +1 -1
  38. package/architecture/compatibility.md +0 -22
@@ -1,8 +1,8 @@
1
1
  # packages/
2
2
 
3
- **Runtime-основа движка** — публикуемые npm-пакеты `@vnejs/*`, на которых держатся `plugins/`, `bundles/` и `VneCore`.
3
+ **Runtime base of the engine.** Published npm packages `@vnejs/*`. `plugins/`, `bundles/`, and `VneCore` stand on them.
4
4
 
5
- ### Состав и зависимости
5
+ ### Contents and dependencies
6
6
 
7
7
  ```mermaid
8
8
  flowchart BT
@@ -25,19 +25,19 @@ flowchart BT
25
25
  SH --> ME
26
26
  ```
27
27
 
28
- | Пакет | Назначение |
29
- | ------------------------ | ----------------------------------------------------------------------------------------------------------------------- |
30
- | **`@vnejs/registry`** | Реестр **`VNE`**, массив **`VNE_MODULES`**, **`regPlugin`** / **`regModule`**, типы для module augmentation |
31
- | **`@vnejs/observer`** | **`Observer`** — pub/sub: `subscribe` / `emit` с `priority` (группы по возрастанию), `emitOne`, `emitReal`, `emitReals` |
32
- | **`@vnejs/core`** | **`VneCore`**: модули из `VNE_MODULES`, lifecycle, загрузка `mods.json` / `media_info/`, `reset` |
33
- | **`@vnejs/constants`** | Общие константы-заглушки (`EMPTY_OBJECT`, `EMPTY_ARRAY`) |
34
- | **`@vnejs/sources-set`** | **`SourcesSet`** — управление множеством «источников» (text и связанная логика) |
35
- | **`@vnejs/semaphore`** | **`Semaphore`** — очередь задач с весами и ограничением параллелизма |
36
- | **`@vnejs/test-utils`** | Harness для тестов модулей: observer stubs, `createTestModule`, spies, DOM mocks |
28
+ | Package | Role |
29
+ | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
30
+ | **`@vnejs/registry`** | Registry **`VNE`**, array **`VNE_MODULES`**, **`regPlugin`** / **`regModule`**, types for module augmentation |
31
+ | **`@vnejs/observer`** | **`Observer`** — pub/sub: `subscribe` / `emit` with `priority` (groups in ascending order), `emitOne`, `emitReal`, `emitReals` |
32
+ | **`@vnejs/core`** | **`VneCore`**: modules from `VNE_MODULES`, lifecycle, load `mods.json` / `media_info/`, `reset` |
33
+ | **`@vnejs/constants`** | Shared stub constants (`EMPTY_OBJECT`, `EMPTY_ARRAY`) |
34
+ | **`@vnejs/sources-set`** | **`SourcesSet`** — manage a set of sources (text and related logic) |
35
+ | **`@vnejs/semaphore`** | **`Semaphore`** — a task queue with weights and a concurrency limit |
36
+ | **`@vnejs/test-utils`** | Harness for module tests: observer stubs, `createTestModule`, spies, DOM mocks |
37
37
 
38
- ### Принципы
38
+ ### Principles
39
39
 
40
- - **`registry` + `observer`** — фундамент; почти все плагины и модули зависят от них.
41
- - **`core`** — точка сборки runtime; `games/` создают `new VneCore()` после импорта `bundles/`.
42
- - **`test-utils`** — только для тестов workspace-пакетов; не часть игрового runtime.
43
- - Пакеты **не содержат** игровой логики и **не привязаны** к конкретному `bundles/`.
40
+ - **`registry` + `observer`** are the base. Almost every plugin and module depends on them.
41
+ - **`core`** is the runtime assembly point. `games/` create `new VneCore()` after they import `bundles/`.
42
+ - **`test-utils`** is only for tests of workspace packages. It is not part of the game runtime.
43
+ - Packages hold no game logic. They are not tied to one `bundles/` package.
@@ -1,36 +1,36 @@
1
1
  # plugins/
2
2
 
3
- **Плагин** — реализация поведения, описанного в `contracts/`.
3
+ A **plugin** is the behavior described in `contracts/`.
4
4
 
5
- ### Регистрация
5
+ ### Registration
6
6
 
7
- 1. Импорт контракта из `contracts/`.
7
+ 1. Import the contract from `contracts/`.
8
8
  2. `regPlugin(PLUGIN_NAME, { constants, events, params, settings }, [ModuleClasses])`.
9
- 3. Классы попадают в `VNE_MODULES` через `regModule`.
9
+ 3. Classes land in `VNE_MODULES` through `regModule`.
10
10
 
11
- ### Модули и lifecycle
11
+ ### Modules and lifecycle
12
12
 
13
- Плагин — **набор модулей** с уникальным `name`. После `new VneCore()`:
13
+ A plugin is a **set of modules**, each with a unique `name`. After `new VneCore()`:
14
14
 
15
- 1. **`inject`** — observer, global state, shared, media. В конце, если метод есть, вызывается `postinject`.
16
- 2. **`subscribe`** — подписки на события.
17
- 3. **`setup`** — подготовка до `init` (все `setup` завершаются раньше любого `init`).
18
- 4. **`init`** — асинхронная инициализация.
19
- 5. **`start`** — после всех `init` (все `init` завершаются раньше любого `start`).
15
+ 1. **`inject`** — observer, global state, shared, media. At the end, if the method exists, `postinject` runs.
16
+ 2. **`subscribe`** — event subscriptions.
17
+ 3. **`setup`** — prepare before `init` (every `setup` finishes before any `init`).
18
+ 4. **`init`** — async initialization.
19
+ 5. **`start`** — after every `init` (every `init` finishes before any `start`).
20
20
 
21
21
  ```mermaid
22
22
  sequenceDiagram
23
- participant A as Модуль plugins/ A
23
+ participant A as Module plugins/ A
24
24
  participant OBS as Observer
25
- participant B as Модуль plugins/ B
25
+ participant B as Module plugins/ B
26
26
 
27
27
  A->>OBS: emit(EVENT_A.DONE, payload)
28
28
  OBS->>B: handler
29
29
  B->>OBS: emit(EVENT_B.START)
30
30
  ```
31
31
 
32
- Пакеты из `plugins/` **не импортируют** код соседних плагинов — только контракт и `VNE`.
32
+ Packages in `plugins/` **do not import** code from a neighbor plugin. They import the contract and `VNE`.
33
33
 
34
- ### Зависимости
34
+ ### Dependencies
35
35
 
36
36
  - `contracts/`, **`@vnejs/module.*`**, **`@vnejs/helpers`**, **`@vnejs/uis.*`** (view).
@@ -1,16 +1,16 @@
1
1
  # shared/
2
2
 
3
- **Пресеты настройки плагинов** — функции, из которых игра собирает параметры. Не плагин, не контракт, не реализация на шине.
3
+ **Plugin setup presets.** Functions the game uses to build parameters. Not a plugin, not a contract, and not behavior on the bus.
4
4
 
5
- Имя: `shared/views.screens/gamemenu/` → **`@vnejs/shared.views.screens.gamemenu`**. Голое **`@vnejs/shared`** не используем: так раньше назывался реестр, сейчас это **`@vnejs/registry`**.
5
+ Name: `shared/views.screens/gamemenu/` → **`@vnejs/shared.views.screens.gamemenu`**. Do not use a bare **`@vnejs/shared`**. That name used to mean the registry. The registry is now **`@vnejs/registry`**.
6
6
 
7
- ### Состав
7
+ ### Contents
8
8
 
9
- | Пакет | Назначение |
10
- | ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
- | **`@vnejs/shared.views.screens.gamemenu`** | Функции пунктов игрового меню. Каждая возвращает `GameMenuItemFactory`. `locKey` обязателен. Необязательные `cbBefore` и `cbAfter` вызываются вокруг клика. |
12
- | **`@vnejs/shared.views.screens.mainmenu`** | Функции пунктов главного меню. Каждая возвращает `MainMenuItemFactory`. `locKey` обязателен. Необязательные `cbBefore` и `cbAfter` вызываются вокруг клика. |
13
- | **`@vnejs/shared.views.settings`** | Функции экшенов и полей настроек. Экшен с подтверждением принимает `locKey`, `locKeyAccept` и `locKeyDecline`. Без подтверждения вызывается без аргументов. `createFieldToggle` принимает `locKey` и `settingKey` и возвращает поле `toggle`. `createFieldRangeX` и `createFieldRangeS` принимают `locKey`, `settingKey`, `min`, `max`, `step` и необязательный `valueMap` и возвращают поле `range` с постфиксом `x` или `s`. `createFieldVolume` принимает `locKey` и `settingKey` и возвращает поле `range` от 0 до 100 с шагом 1 и постфиксом `%`. `createFieldQuality` принимает `locKey`, флажок на каждый ключ `CONST.LAYER.QUALITIES` и необязательный `optionsWidthModifier`. `createFieldFilter` принимает `locKey`, `optionsWidthModifier` и массив значений. Первым пунктом идёт пустое значение с ключом `locKey.off`. `createFieldLang` принимает `locKey` и массив значений. Пункт получает ключ `locKey` плюс точка и значение. `createFieldActions` принимает `locKey` и массив значений. Пункт получает ключ `locKey` плюс точка и значение, а `action` равен этому значению. |
9
+ | Package | Role |
10
+ | ------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
11
+ | **`@vnejs/shared.views.screens.gamemenu`** | Functions for game-menu items. Each one returns `GameMenuItemFactory`. `locKey` is required. Optional `cbBefore` and `cbAfter` run around the click. |
12
+ | **`@vnejs/shared.views.screens.mainmenu`** | Functions for main-menu items. Each one returns `MainMenuItemFactory`. `locKey` is required. Optional `cbBefore` and `cbAfter` run around the click. |
13
+ | **`@vnejs/shared.views.settings`** | Functions for settings actions and fields. A confirm action takes `locKey`, `locKeyAccept`, and `locKeyDecline`. An action without confirm takes no arguments. `createFieldToggle` takes `locKey` and `settingKey` and returns a `toggle` field. `createFieldRangeX` and `createFieldRangeS` take `locKey`, `settingKey`, `min`, `max`, `step`, and an optional `valueMap`. They return a `range` field with suffix `x` or `s`. `createFieldVolume` takes `locKey` and `settingKey` and returns a `range` field from 0 to 100, step 1, suffix `%`. `createFieldQuality` takes `locKey`, a flag for each key of `CONST.LAYER.QUALITIES`, and an optional `optionsWidthModifier`. `createFieldFilter` takes `locKey`, `optionsWidthModifier`, and an array of values. The first item is an empty value with key `locKey.off`. `createFieldLang` takes `locKey` and an array of values. An item key is `locKey`, a dot, and the value. `createFieldActions` takes `locKey` and an array of values. An item key is `locKey`, a dot, and the value. `action` equals that value. |
14
14
 
15
15
  ```mermaid
16
16
  flowchart TD
@@ -28,11 +28,11 @@ flowchart TD
28
28
  SH --> CT
29
29
  ```
30
30
 
31
- ### Принципы
31
+ ### Principles
32
32
 
33
- - Пакет импортирует **`@vnejs/registry`** и нужные **`contracts/`**. Реализации из **`plugins/`** не импортирует.
34
- - Один пакет может зависеть от нескольких контрактов: клик пункта связывает события разных плагинов.
35
- - Функция возвращает фабрику `(module) => item`. Она ничего не пишет в `VNE.PARAMS`.
36
- - Бандл, который зависит от плагина, записывает соответствующий `@vnejs/shared.*` в `dependencies`. Исходники бандла фабрики не импортируют и не реэкспортируют.
37
- - Игра импортирует `@vnejs/shared.*` в скрипте и сама собирает `PARAMS.ITEMS`. В `package.json` игры этой зависимости нет.
38
- - **`plugins/`** пакеты **`shared/`** не импортируют.
33
+ - The package imports **`@vnejs/registry`** and the **`contracts/`** it needs. It does not import implementations from **`plugins/`**.
34
+ - One package may depend on several contracts. A menu-item click ties events from different plugins.
35
+ - A function returns a factory `(module) => item`. It does not write to `VNE.PARAMS`.
36
+ - A bundle that depends on a plugin lists the matching `@vnejs/shared.*` in `dependencies`. Bundle source does not import or re-export the factories.
37
+ - The game imports `@vnejs/shared.*` in a script and builds `PARAMS.ITEMS` itself. The game `package.json` does not list that dependency.
38
+ - **`plugins/`** do not import **`shared/`** packages.
@@ -1,17 +1,17 @@
1
1
  # uis/
2
2
 
3
- **Презентационный слой** для view-плагинов — не плагин, не в `VNE`.
3
+ **Presentation layer** for view plugins. Not a plugin. Not in `VNE`.
4
4
 
5
- | Часть | Назначение |
5
+ | Part | Role |
6
6
  | --------------------------- | ----------------------------- |
7
7
  | **`uis/utils/`** | `cn`, `injectStyles`, `sel` |
8
- | **`uis/react/primitives/`** | Атомы (button, text, icon, …) |
9
- | **`uis/react/composites/`** | Составные компоненты |
10
- | **`uis/react/complex/`** | Крупные UI-блоки |
11
- | **`uis/react/hooks/`** | React-хуки |
8
+ | **`uis/react/primitives/`** | Atoms (button, text, icon, …) |
9
+ | **`uis/react/composites/`** | Composite components |
10
+ | **`uis/react/complex/`** | Large UI blocks |
11
+ | **`uis/react/hooks/`** | React hooks |
12
12
  | **`uis/react/base/`** | Barrel **`@vnejs/uis.react`** |
13
13
 
14
- View-плагины в `plugins/`: **`ModuleView`** + render на компонентах из `uis/`.
14
+ View plugins in `plugins/` use **`ModuleView`** and render with components from `uis/`.
15
15
 
16
16
  ```mermaid
17
17
  flowchart TD
@@ -19,5 +19,5 @@ flowchart TD
19
19
  VP --> UIR["@vnejs/uis.react"]
20
20
  VP --> UU["@vnejs/uis.utils"]
21
21
  VP --> OBS[Observer]
22
- UIR -.->|"не использует"| VNE
22
+ UIR -.->|"does not use"| VNE
23
23
  ```
@@ -0,0 +1,3 @@
1
+ # 0.2.81
2
+
3
+ - `bridge/` — replaces `compatibility/`. A package is `@vnejs/bridge.plugins.<one>.plugins.<two>`. `regPlugin` uses namespace `BRIDGE_PLUGIN_<PLUGIN_NAME_1>_PLUGIN_<PLUGIN_NAME_2>` and an empty shape. There is no bridge contract. The module class lives in `src/modules/`. Six pairs follow the plugins the module actually uses: `plugins.text` + `plugins.canvas.child.sprite.speak`, `plugins.text` + `plugins.canvas.child.bg.speak`, `plugins.text.smooth` + `plugins.scenario.fastforward`, `plugins.settings.potato` + `plugins.text.smooth`, `plugins.canvas.child.bg` + `plugins.views.screens.gallery`, `plugins.scenario.autoread` + `plugins.audio.voice`.
@@ -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.81](./0.2.81.md)
5
6
  - [0.2.80](./0.2.80.md)
6
7
  - [0.2.79](./0.2.79.md)
7
8
  - [0.2.78](./0.2.78.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/compatibility.md",
46
+ "architecture/bridge.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.80",
3
+ "version": "0.2.81",
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 `compatibility.controls.gamepad-with-controls.cursor`: left → `SHIFT`, right → `SCROLL`; device type (xbox|ps) — `controls.gamepad.device`
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`
@@ -42,7 +42,7 @@ After the poll yields logical name `button_N`, `controls.gamepad.buttons` emits
42
42
  | `button_4` | LB / L1 | `TAB_PREV` |
43
43
  | `button_5` | RB / R1 | `TAB_NEXT` |
44
44
  | `button_6` | LT / L2 | `FASTFORWARD_START` / `FASTFORWARD_FINISH` |
45
- | `button_7` | RT / R2 | (cursor click via compatibility) |
45
+ | `button_7` | RT / R2 | (cursor click via bridge) |
46
46
  | `button_8` | View / Select | `GAMEMENU` |
47
47
  | `button_9` | Menu / Start | `MENU` |
48
48
  | `button_12`…`15` | D-pad | `ARROW_*` |
@@ -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 `compatibility.controls.gamepad-with-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 `bridge/plugins.controls.gamepad/plugins.controls.cursor`: left stick (axes 0–1) → `CURSOR.SHIFT`, right stick (axes 2–3) → `CURSOR.SCROLL`; RT → `CURSOR.CLICK`
@@ -84,29 +84,29 @@ None.
84
84
  | `choose.scenario.option` | Register `% choose.option`: skip unchosen branches. |
85
85
  | `choose.scenario.module` | Register `$ choose`: action `repeat`. |
86
86
 
87
- ## Compatibility
87
+ ## Bridge
88
88
 
89
- ### `compatibility/scenario.choose/scenario.fastforward/`
89
+ ### `bridge/plugins.scenario.choose/plugins.scenario.fastforward/`
90
90
 
91
- Package: `@vnejs/compatibility.scenario.choose-with-scenario.fastforward`
91
+ Package: `@vnejs/bridge.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
- ### `compatibility/scenario.choose/scenario.history/`
95
+ ### `bridge/plugins.scenario.choose/plugins.scenario.history/`
96
96
 
97
- Package: `@vnejs/compatibility.scenario.choose-with-scenario.history`
97
+ Package: `@vnejs/bridge.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
- ### `compatibility/scenario.choose/scenario.qte/`
101
+ ### `bridge/plugins.scenario.choose/plugins.scenario.qte/`
102
102
 
103
- Package: `@vnejs/compatibility.scenario.choose-with-scenario.qte`
103
+ Package: `@vnejs/bridge.plugins.scenario.choose.plugins.scenario.qte`
104
104
 
105
- On `OPTION_REPLACE` runs QTE when the option has `qte: <id>` (see [qte.md](./qte.md#compatibility)). 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`.
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
- ### `compatibility/scenario.choose/text/`
107
+ ### `bridge/plugins.scenario.choose/plugins.text/`
108
108
 
109
- Package: `@vnejs/compatibility.scenario.choose-with-text`
109
+ Package: `@vnejs/bridge.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
 
@@ -120,9 +120,9 @@ In `init` registers an `OPTION_TEXT` handler that returns `TEXT.REPLACE`. `text.
120
120
 
121
121
  ### Other
122
122
 
123
- - [text.md](../text/text.md) — `TEXT`: `OPTION_TEXT` → `REPLACE` (compatibility above)
124
- - [qte.md](./qte.md) — `QTE`: link via `OPTION_REPLACE` (compatibility above)
125
- - [fastforward.md](./fastforward.md) — `FASTFORWARD`: link via `OPTION` at `OPTION_PRIORITY.BEFORE` (compatibility above)
126
- - [history.md](./history.md) — `HISTORY`: link via `OPTION` at `OPTION_PRIORITY.BEFORE` → `ADD` with `locKey` (compatibility above)
123
+ - [text.md](../text/text.md) — `TEXT`: `OPTION_TEXT` → `REPLACE` (bridge above)
124
+ - [qte.md](./qte.md) — `QTE`: link via `OPTION_REPLACE` (bridge above)
125
+ - [fastforward.md](./fastforward.md) — `FASTFORWARD`: link via `OPTION` at `OPTION_PRIORITY.BEFORE` (bridge above)
126
+ - [history.md](./history.md) — `HISTORY`: link via `OPTION` at `OPTION_PRIORITY.BEFORE` → `ADD` with `locKey` (bridge above)
127
127
  - [views.scenario/choose.md](../views.scenario/choose.md) — `CHOOSE_VIEW`: choice UI (listens SHOW / HIDE)
128
128
  - [scenario/point_and_click.md](./point_and_click.md) — same `repeat` / `SKIP` / `SHOW` / `HIDE` / `STATE_UPDATE` pattern
@@ -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 `compatibility/scenario.choose/scenario.fastforward` (`OPTION` at `OPTION_PRIORITY.BEFORE` → `FASTFORWARD.CHECK`)
74
+ - [choose.md](./choose.md) — `CHOOSE`: linked via `bridge/plugins.scenario.choose/plugins.scenario.fastforward` (`OPTION` at `OPTION_PRIORITY.BEFORE` → `FASTFORWARD.CHECK`)
@@ -47,17 +47,17 @@ None.
47
47
 
48
48
  Log state belongs to module `history` (`globalState.history`). Snapshots in `MEMORY` use module name `history.memory`.
49
49
 
50
- ## Compatibility
50
+ ## Bridge
51
51
 
52
- ### `compatibility/text/scenario.history/`
52
+ ### `bridge/plugins.text/plugins.scenario.history/`
53
53
 
54
- Package: `@vnejs/compatibility.text-with-scenario.history`
54
+ Package: `@vnejs/bridge.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
- ### `compatibility/scenario.choose/scenario.history/`
58
+ ### `bridge/plugins.scenario.choose/plugins.scenario.history/`
59
59
 
60
- Package: `@vnejs/compatibility.scenario.choose-with-scenario.history`
60
+ Package: `@vnejs/bridge.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,6 +72,6 @@ On `CHOOSE.OPTION` at `CONST.CHOOSE.OPTION_PRIORITY.BEFORE` emits `HISTORY.ADD`
72
72
 
73
73
  ### Other
74
74
 
75
- - [text.md](../text/text.md) — `TEXT`: `EMIT_NEXT` → `ADD` (compatibility above)
76
- - [choose.md](./choose.md) — `CHOOSE`: `OPTION` at `OPTION_PRIORITY.BEFORE` → `ADD` (compatibility above)
75
+ - [text.md](../text/text.md) — `TEXT`: `EMIT_NEXT` → `ADD` (bridge above)
76
+ - [choose.md](./choose.md) — `CHOOSE`: `OPTION` at `OPTION_PRIORITY.BEFORE` → `ADD` (bridge above)
77
77
  - [views.screens/history.md](../views.screens/history.md) — `HISTORY_VIEW`: log screen (`SHOW` / `HIDE`); reads `GET` / `KEYS` / `LOAD`
@@ -70,17 +70,17 @@ None.
70
70
  | `point_and_click.scenario.option` | Register `% point-and-click.option`: skip unchosen branches. |
71
71
  | `point_and_click.scenario.module` | Register `$ point-and-click`: action `repeat`. |
72
72
 
73
- ## Compatibility
73
+ ## Bridge
74
74
 
75
- ### `compatibility/scenario.point_and_click/vars.flags/`
75
+ ### `bridge/plugins.scenario.point_and_click/plugins.vars.flags/`
76
76
 
77
- Package: `@vnejs/compatibility.scenario.point_and_click-with-vars.flags`
77
+ Package: `@vnejs/bridge.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
- ### `compatibility/scenario.point_and_click/vars.counters/`
81
+ ### `bridge/plugins.scenario.point_and_click/plugins.vars.counters/`
82
82
 
83
- Package: `@vnejs/compatibility.scenario.point_and_click-with-vars.counters`
83
+ Package: `@vnejs/bridge.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
 
@@ -21,7 +21,7 @@ Handler payloads and results are typed through module augmentation of the contra
21
21
 
22
22
  | Key | Meaning |
23
23
  | ---------------------------- | -------------------------------------------------------------------------------------------------- |
24
- | `LINE_KEYWORDS.QTE_FALLBACK` | `"qte-fallback"`: keyword on `% choose.option` for QTE fail branch (via choose↔qte compatibility). |
24
+ | `LINE_KEYWORDS.QTE_FALLBACK` | `"qte-fallback"`: keyword on `% choose.option` for QTE fail branch (via choose↔qte bridge). |
25
25
  | `LOGS_ACTIONS` | Log labels: `EMIT` (`emit`), `RESULT` (`result`), `MISSING` (`missing`). |
26
26
 
27
27
  ## Parameters
@@ -68,13 +68,13 @@ None.
68
68
 
69
69
  ## Embedded (`skipScenario`)
70
70
 
71
- On `EMIT` with `skipScenario: true` sets `shared.qteScenarioSkip`; on `RESULT` module `qte.result` does **not** change `curLine` and does **not** call `emit SCENARIO.NEXT` — only `CLOSED`. Used by choose↔qte compatibility so branching stays with choose. In `qte` module `postinject` the flag is `false`.
71
+ On `EMIT` with `skipScenario: true` sets `shared.qteScenarioSkip`; on `RESULT` module `qte.result` does **not** change `curLine` and does **not** call `emit SCENARIO.NEXT` — only `CLOSED`. Used by choose↔qte bridge so branching stays with choose. In `qte` module `postinject` the flag is `false`.
72
72
 
73
- ## Compatibility
73
+ ## Bridge
74
74
 
75
- ### `compatibility/scenario.choose/scenario.qte/`
75
+ ### `bridge/plugins.scenario.choose/plugins.scenario.qte/`
76
76
 
77
- Package: `@vnejs/compatibility.scenario.choose-with-scenario.qte`
77
+ Package: `@vnejs/bridge.plugins.scenario.choose.plugins.scenario.qte`
78
78
 
79
79
  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`).
80
80
 
@@ -101,4 +101,4 @@ Wired in `bundles/vn.base`.
101
101
  ### Other
102
102
 
103
103
  - [views.scenario/qte.md](../views.scenario/qte.md) — `QTE_VIEW`: round UI (listens OPENED / CLOSED)
104
- - [choose.md](./choose.md) — `CHOOSE`: OPTION_REPLACE; link via compatibility above
104
+ - [choose.md](./choose.md) — `CHOOSE`: OPTION_REPLACE; link via bridge above
@@ -41,11 +41,11 @@ None.
41
41
  | `text.smooth.cycle` | Handles SMOOTH, PROCESS_CANCEL, EMIT_END, CLEAR. |
42
42
  | `text.smooth.emit.end` | Handles EMIT_END, RECALC_DONE. |
43
43
 
44
- ## Compatibility
44
+ ## Bridge
45
45
 
46
- ### `compatibility/views.scenario.interface/text.smooth/`
46
+ ### `bridge/plugins.views.scenario.interface/plugins.text.smooth/`
47
47
 
48
- Package: `@vnejs/compatibility.views.scenario.interface-with-text.smooth`
48
+ Package: `@vnejs/bridge.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
 
@@ -59,4 +59,4 @@ Link to [interface.md](../views.scenario/interface.md): `CHANGED` → `INTERFACE
59
59
  ### Other
60
60
 
61
61
  - [text.md](./text.md) — `TEXT`: EVENTS.PROCESS_CANCEL, EVENTS.EMIT_END, EVENTS.RECALC_DONE, EVENTS.EMIT_PROCESS
62
- - [interface.md](../views.scenario/interface.md) — `INTERFACE`: link via compatibility above
62
+ - [interface.md](../views.scenario/interface.md) — `INTERFACE`: link via bridge above
@@ -63,23 +63,23 @@ Handler payloads and results are typed through module augmentation of the contra
63
63
  | `text.speaker` | SPEAKER_INFO_UPDATE, CLEAR, SET; on `EMIT` at `EMIT_PRIORITY.BEFORE + 1` — speaker. |
64
64
  | `text` | STATE_UPDATE, STATE_CHANGED, SET, CLEAR. `STATE.SET` → `TEXT.EMIT` with `isKeepProcessState`. `STATE.CLEAR` resets state and sends `TEXT.CHANGED`, no `TEXT.EMIT`. |
65
65
 
66
- ## Compatibility
66
+ ## Bridge
67
67
 
68
- ### `compatibility/views.scenario.interface/text/`
68
+ ### `bridge/plugins.views.scenario.interface/plugins.text/`
69
69
 
70
- Package: `@vnejs/compatibility.views.scenario.interface-with-text`
70
+ Package: `@vnejs/bridge.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
- ### `compatibility/text/scenario.history/`
74
+ ### `bridge/plugins.text/plugins.scenario.history/`
75
75
 
76
- Package: `@vnejs/compatibility.text-with-scenario.history`
76
+ Package: `@vnejs/bridge.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
- ### `compatibility/scenario.choose/text/`
80
+ ### `bridge/plugins.scenario.choose/plugins.text/`
81
81
 
82
- Package: `@vnejs/compatibility.scenario.choose-with-text`
82
+ Package: `@vnejs/bridge.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
 
@@ -94,6 +94,6 @@ Link to [choose.md](../scenario/choose.md): `OPTION_TEXT` handler returns `TEXT.
94
94
 
95
95
  ### Other
96
96
 
97
- - [interface.md](../views.scenario/interface.md) — `INTERFACE`: link via compatibility above
98
- - [history.md](../scenario/history.md) — `HISTORY`: `EMIT_NEXT` → `ADD` (compatibility above)
99
- - [choose.md](../scenario/choose.md) — `CHOOSE`: `OPTION_TEXT` → `REPLACE` (compatibility above)
97
+ - [interface.md](../views.scenario/interface.md) — `INTERFACE`: link via bridge above
98
+ - [history.md](../scenario/history.md) — `HISTORY`: `EMIT_NEXT` → `ADD` (bridge above)
99
+ - [choose.md](../scenario/choose.md) — `CHOOSE`: `OPTION_TEXT` → `REPLACE` (bridge above)
@@ -81,5 +81,5 @@ sequenceDiagram
81
81
  ### Other
82
82
 
83
83
  - [controls.md](../controls/controls.md) — `CONTROLS`: arrows, ACCEPT, INTERACT
84
- - [interface.md](interface.md) — compatibility hides interface on `CHOOSE_VIEW.SHOW` (`LIFECYCLE_PRIORITY.SHOW.BEFORE`)
84
+ - [interface.md](interface.md) — bridge hides interface on `CHOOSE_VIEW.SHOW` (`LIFECYCLE_PRIORITY.SHOW.BEFORE`)
85
85
  - [qte.md](./qte.md) — `QTE_VIEW`: option with `qte:` opens above choose (z-index 1300 > 1200)
@@ -64,17 +64,17 @@ None.
64
64
  | `interface.actions.show` | Subscribes to `SHOW` and `HIDE`. On `GATE` (`breakFollowing`): if the interface is already in the target state or a show/hide cycle is running, other subscribers on these events are not called. Showing a hidden layer sends `VISIBLE`. |
65
65
  | `interface.view` | `isForce` reaches `SmoothText` in `InterfaceViewDialog`, `InterfaceViewLine`, and `InterfaceViewWall`. Inactive views pass a stable empty tokens array so `SmoothText` memo can skip. |
66
66
 
67
- ## Compatibility
67
+ ## Bridge
68
68
 
69
- ### `compatibility/views.scenario.interface/text/`
69
+ ### `bridge/plugins.views.scenario.interface/plugins.text/`
70
70
 
71
- Package: `@vnejs/compatibility.views.scenario.interface-with-text`
71
+ Package: `@vnejs/bridge.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
- ### `compatibility/views.scenario.interface/text.smooth/`
75
+ ### `bridge/plugins.views.scenario.interface/plugins.text.smooth/`
76
76
 
77
- Package: `@vnejs/compatibility.views.scenario.interface-with-text.smooth`
77
+ Package: `@vnejs/bridge.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
 
@@ -89,6 +89,6 @@ On `TEXT_SMOOTH.CHANGED` emits `INTERFACE.TEXT_CHANGED` with `tokens` from `glob
89
89
  ### Other
90
90
 
91
91
  - [controls.md](../controls/controls.md) — `CONTROLS`: EVENTS.POP, EVENTS.PUSH
92
- - [text.md](../text/text.md) — `TEXT`: link via compatibility above (`CHANGED`, `SPEAKER_CHANGED`, `EMIT`)
93
- - [choose.md](./choose.md) — compatibility hides interface on `CHOOSE_VIEW.SHOW` (`LIFECYCLE_PRIORITY.SHOW.BEFORE`)
94
- - [qte.md](./qte.md) — compatibility hides interface on `QTE_VIEW.SHOW` (`LIFECYCLE_PRIORITY.SHOW.BEFORE`)
92
+ - [text.md](../text/text.md) — `TEXT`: link via bridge above (`CHANGED`, `SPEAKER_CHANGED`, `EMIT`)
93
+ - [choose.md](./choose.md) — bridge hides interface on `CHOOSE_VIEW.SHOW` (`LIFECYCLE_PRIORITY.SHOW.BEFORE`)
94
+ - [qte.md](./qte.md) — bridge hides interface on `QTE_VIEW.SHOW` (`LIFECYCLE_PRIORITY.SHOW.BEFORE`)
@@ -64,11 +64,11 @@ sequenceDiagram
64
64
  BR->>OBS: INTERFACE.TEXT_HIDE then VIEW.HIDE
65
65
  ```
66
66
 
67
- ## Compatibility
67
+ ## Bridge
68
68
 
69
- ### `compatibility/views.scenario.point_and_click/views.scenario.interface/`
69
+ ### `bridge/plugins.views.scenario.point_and_click/plugins.views.scenario.interface/`
70
70
 
71
- Package: `@vnejs/compatibility.views.scenario.point_and_click-with-views.scenario.interface`
71
+ Package: `@vnejs/bridge.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
 
@@ -85,5 +85,5 @@ On `POINT_AND_CLICK_VIEW.SHOW` with `CONST.COMPONENTS.LIFECYCLE_PRIORITY.SHOW.BE
85
85
  ### Other
86
86
 
87
87
  - [controls.md](../controls/controls.md) — `CONTROLS`: via `PARAMS.CONTROLS_EXTENSIONS`
88
- - [interface.md](interface.md) — compatibility hides interface on `SHOW` (`LIFECYCLE_PRIORITY.SHOW.BEFORE`); bridge calls `TEXT_HIDE` on hide
88
+ - [interface.md](interface.md) — the bridge hides the interface on `SHOW` (`LIFECYCLE_PRIORITY.SHOW.BEFORE`) and calls `TEXT_HIDE` on hide
89
89
  - [layer.md](../canvas/layer.md) — `LAYER`: SETTINGS.QUALITY for media icons
@@ -4,7 +4,7 @@ Package: `@vnejs/plugins.views.scenario.qte` · namespace: `QTE_VIEW`
4
4
 
5
5
  React UI for Quick Time Events: animation phases, success zone in percent, ACCEPT / INTERACT. Depends on the scenario plugin [qte.md](../scenario/qte.md) (`QTE`): listens to `OPENED` / `CLOSED`, emits `RESULT` from round outcome.
6
6
 
7
- Round state is **not** written to save — only in controller/view; on `SHOW` with `CONST.COMPONENTS.LIFECYCLE_PRIORITY.SHOW.BEFORE` the interface hides (compatibility).
7
+ Round state is **not** written to save — only in controller/view; on `SHOW` with `CONST.COMPONENTS.LIFECYCLE_PRIORITY.SHOW.BEFORE` the interface hides (bridge).
8
8
 
9
9
  ## Events
10
10
 
@@ -81,11 +81,11 @@ sequenceDiagram
81
81
  VC->>OBS: vne:qte_view:hide
82
82
  ```
83
83
 
84
- ## Compatibility
84
+ ## Bridge
85
85
 
86
- ### `compatibility/views.scenario.qte/views.scenario.interface/`
86
+ ### `bridge/plugins.views.scenario.qte/plugins.views.scenario.interface/`
87
87
 
88
- Package: `@vnejs/compatibility.views.scenario.qte-with-views.scenario.interface`
88
+ Package: `@vnejs/bridge.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
 
@@ -102,5 +102,5 @@ On `QTE_VIEW.SHOW` with `CONST.COMPONENTS.LIFECYCLE_PRIORITY.SHOW.BEFORE` emits
102
102
  ### Other
103
103
 
104
104
  - [controls.md](../controls/controls.md) — `CONTROLS`: ACCEPT, INTERACT
105
- - [interface.md](interface.md) — compatibility hides interface on `QTE_VIEW.SHOW` (`LIFECYCLE_PRIORITY.SHOW.BEFORE`)
105
+ - [interface.md](interface.md) — bridge hides interface on `QTE_VIEW.SHOW` (`LIFECYCLE_PRIORITY.SHOW.BEFORE`)
106
106
  - [locs.md](../text/locs.md) — status text via `LOC_LABEL`
@@ -43,7 +43,7 @@ Optional on the block: `title: "…"` — a title above the options (drawn by `v
43
43
  ```
44
44
 
45
45
  - **`hided:`** / **`disabled:`** — visibility and availability conditions.
46
- - **`qte: <id>`** — run a QTE before entering the branch (the bundle needs choose↔qte compatibility).
46
+ - **`qte: <id>`** — run a QTE before entering the branch (the bundle needs choose↔qte bridge).
47
47
  - **`| qte-fallback`** — the branch used when the QTE fails.
48
48
 
49
49
  ## The "look around, then menu" loop
@@ -19,7 +19,7 @@ The UI is [`../plugins/views.scenario/qte.md`](../plugins/views.scenario/qte.md)
19
19
 
20
20
  ### QTE on a choose option
21
21
 
22
- The bundle needs choose↔qte compatibility:
22
+ The bundle needs choose↔qte bridge:
23
23
 
24
24
  ```vne
25
25
  % choose