@vnejs/docs 0.2.3 → 0.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnejs/docs",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "VNEJS documentation for engine consumers and coding agents",
5
5
  "files": [
6
6
  "*.md",
@@ -35,13 +35,20 @@
35
35
 
36
36
  Нет.
37
37
 
38
+ ## Shared
39
+
40
+ | Поле | Тип | Смысл |
41
+ |------|-----|--------|
42
+ | `shouldAutostartScenario` | `boolean` | На `SYSTEM.STARTED` модуль `scenario.autostart` эмитит `LABEL_GET` (init) и `NEXT`, только если не `false`. В `init` ставится `true` через `??=`; другие плагины могут выставить `false`. `STATE.CLEAR` по-прежнему грузит init label в `scenario.label` без этого гейта. |
43
+
38
44
  ## Модули
39
45
 
40
46
  | Модуль | Зона ответственности |
41
47
  |--------|----------------------|
42
- | `scenario` | Главный цикл `NEXT`, exec строк, sync state, старт на `SYSTEM.STARTED`. |
48
+ | `scenario` | Главный цикл `NEXT`, exec строк, sync state. |
49
+ | `scenario.autostart` | Дефолт `shared.shouldAutostartScenario`; на `SYSTEM.STARTED` — init label + `emitNext` при включённом флаге. |
43
50
  | `scenario.exec` | Dispatch `$module` / `%block`, registry handlers, `EXEC_DELAY`. |
44
- | `scenario.label` | `LABEL_GET`, preload меток, init label на старте/clear. |
51
+ | `scenario.label` | `LABEL_GET`, preload меток; init label на `STATE.CLEAR`. |
45
52
  | `scenario.line` | `LINE_LOAD` / `LINE_GET`, registry preload handlers. |
46
53
  | `scenario.lines` | Fetch `label.*.json` с `HOST`. |
47
54
 
@@ -60,4 +67,4 @@
60
67
 
61
68
  ### Остальные
62
69
 
63
- — нет
70
+ - [electron.md](../platform/electron.md) — `ELECTRON`: при reload выставляет `shared.shouldAutostartScenario = false`
@@ -24,13 +24,14 @@
24
24
 
25
25
  | Модуль | Зона ответственности |
26
26
  |--------|----------------------|
27
- | `electron` | Обрабатывает CHANGED, STARTED, CLOSE_BEFORE. |
27
+ | `electron` | Синхронизирует remote storage; при изменении и cooldown ≥ 10 с (метка в `sessionStorage`) ставит `shouldReload` + `shared.shouldAutostartScenario = false`; на `STARTED` эмитит `RELOAD`; обрабатывает CHANGED / CLOSE_BEFORE. |
28
28
 
29
29
  ## Близкие плагины
30
30
 
31
31
  ### plugins/core/
32
32
 
33
33
  - [platforms.md](../core/platforms.md) — `PLATFORMS`: CONST.ELECTRON, PARAMS.CURRENT_PLATFORM
34
+ - [scenario.md](../core/scenario.md) — `SCENARIO`: `shared.shouldAutostartScenario` (отключает автостарт перед reload)
34
35
  - [storage.md](../core/storage.md) — `STORAGE`: EVENTS.CHANGED, EVENTS.SET_ALL, EVENTS.GET_ALL
35
36
  - [system.md](../core/system.md) — `SYSTEM`: EVENTS.STARTED, EVENTS.CLOSE_BEFORE, EVENTS.RELOAD, CONST.HOST
36
37
  - [vendors.md](../core/vendors.md) — `VENDORS`: EVENTS.DEBOUNCE