egatari 0.6.9-rc.1 → 0.6.9
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/CHANGELOG.md +37 -1
- package/kit/check.mjs +9 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,41 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
8
8
|
|
|
9
9
|
<!-- Unreleased changes are fragments in changes/*.md (see CONTRIBUTING.md "Changelog"); node tools/changelog.mjs --release X.Y.Z moves them here. -->
|
|
10
10
|
|
|
11
|
+
## [0.6.9] - 2026-11-11
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- New part set `data` (情報・データサイエンス / Data science and code; components 2.6.0, candidate): `m-mapping` (random variable mapping), `m-sampling` (sampling), `m-ci` (confidence intervals), `m-folds` (cross-validation), `m-balance` (expectation as a balance point) and `m-code` (code walkthrough). It has its own AI instructions (`docs/llm-parts/data(.ja).md`), is listed after stats wherever part sets are offered (New…, Insert slide's full instructions, `node kit/llm-pack.mjs --sets data`), and is suggested in New… for words such as data science, programming or cross-validation
|
|
16
|
+
- Egatari Player 1.5.0: an embedded lesson (`?embed=1`) takes the remaining Player P8 commands. `{egatari:"seek", id?, slide, step, t}` (slide key or index from 0, step key, seconds or `null` for the final state) moves there, keeping the playing state, and replies `{egatari:"seeked", id?, slideKey, stepKey, t}` after the `position`;
|
|
17
|
+
`{egatari:"preview", id?, on}` and `{egatari:"controls", id?, visible}` switch the faint preview of later steps and the player's own controls at run time and reply in the same shape
|
|
18
|
+
- Egatari Player 1.5.0: an embedded lesson sends `{egatari:"stepEnded", slideKey, stepKey}` when playback has played a step to its end (not for skipped steps or when paused) and `{egatari:"ended"}` after the last step.
|
|
19
|
+
`snapshot` (OPTIONAL in Player P8) and unknown commands reply `{egatari:"error", id, code:"unsupported"}`; bad arguments reply `error` with the command's name as `code`, as `mode`, `rate` and `layout` already did
|
|
20
|
+
- Themes: eleven object colours `--obj-white`, `--obj-black`, `--obj-red`, `--obj-green`, `--obj-yellow`, `--obj-blue`, `--obj-brown`, `--obj-purple`, `--obj-pink`, `--obj-orange` and `--obj-gray`, for colours that are themselves the content (balls in a bag, litmus paper, traffic lights; format spec §8.4). They are always shown with the colour's name or initial, and white, black and colours near the background with an outline; a part that uses one gives a fallback, which may be a literal colour of that name. Every bundled theme sets all eleven: `default` (1.4.0) `#FFFFFF` `#222222` `#E0242B` `#2E9E44` `#F5D90A` `#1E6FD9` `#8B5A2B` `#8E44AD` `#F27BB0` `#F28C1A` `#8C8C8C`, the same in `sumi`, `kokugo`, `tokiwa`, `murasaki` and `business`; `kogecha` a little less saturated and `asagi` a little brighter (each 1.2.0). No existing colour changes; earlier versions stay in `vendor/themes/`
|
|
21
|
+
`node tools/test-themes.mjs` checks each colour's OKLCH hue window, lightness and chroma, that adjacent names (red–orange, blue–purple, brown–red, gray–white …) are at least ΔE00 20 apart, and prints each colour's contrast with `--bg`
|
|
22
|
+
- Quality check: a literal fallback in `var(--obj-…, …)` is not reported as a colour outside the theme's vocabulary (`colorOutside`), since the format lets an object colour fall back to a literal colour of that name
|
|
23
|
+
- Egatari Viewer: markup, stage 1. Highlight text in a lesson's book in three colours (drawn in the Viewer's own layer in the book's scrolling box; the lesson's text and markup unchanged), practise recall (暗記: the chosen colours hidden, revealed one at a time), and a list with colour filters and names. Highlights are kept on this device only (IndexedDB, one record per docId, not on a shared device) and re-attach after the lesson is revised (egatari-spec annotations.md, Highlight record).
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- Editor site (studio.egatari.org): it now hosts the current version and only the one release before it (`/vX.Y.Z/`), instead of every release since v0.6.0; each release moves the window. Older versions show the short “no longer hosted” page linking to their GitHub release, where the whole site can still be downloaded
|
|
28
|
+
- Components 2.0 lessons use egatari/components **v2.6.0** (candidate) by default. `m-curves` 2.2.0 adds `area` / `areaLabel`: shade between a line and the x-axis over one or several spans (rejection regions, p-values, probabilities), with a label above each span. The new part set `data` (see Added) comes with this release. No other part changes version
|
|
29
|
+
- `egatari check --json`: the stale-audio finding's code is now `audioStale` (was `audio: stale`); the message is unchanged.
|
|
30
|
+
- Egatari Player 1.5.0 (the bundled player that files carry, `player` in the index and `deck-meta`): minor release. Hosts can now drive an embedded lesson with every required Player P8 command and follow playback through `stepEnded` and `ended`. The presenter view's top-right pane is now **Next slide** (「次のスライド」): it shows the next slide in its final state, with all its steps, even while the current slide still has steps to go (with animation, the old pane showed only the next step). On the last slide it shows a plain “End” (「終わり」). The script pane still shows the next step's script under “Next step”
|
|
31
|
+
- Egatari Player 1.5.0: the presenter view's current pane always shows the slide's later steps faintly, like `l` and the preview (at the theme's `--preview-opacity`). This is the presenter's own view: the main window does not change. `l` and its button in the presenter view now turn showing later steps faintly on or off on the main window only, and the button shows the main window's state. No keys were added
|
|
32
|
+
- Format spec copy (`vendor/egatari-spec`): the snapshot **wd-2026-11-10** (egatari-spec 6d93c49). Conforms to WD 2026-11-10 except §8.2 language spans ({lang:…|…}). Not implemented yet, planned for v0.6.10. Files that use spans get a different inputHash from the §5.4 rule until then, so their audio will be regenerated once after the upgrade.
|
|
33
|
+
|
|
34
|
+
### Fixed
|
|
35
|
+
|
|
36
|
+
- `egatari check` (and `node kit/check.mjs`) refuses a built `.ega.html` with exit code 2 and the message “.ega.html is a built file. Run the quality check on the source instead (the working folder or deck.html)”; with `--json` it prints `status: "refused"` and no results. It used to read the built file as a deck source and report false overflows, missing narration and overlaps. Checking the source embedded in a `.ega.html` is planned for v0.6.10.
|
|
37
|
+
- Editor app: the quality check now reports raw math left in the slides (`rawMath`, such as a leftover `$…$` in an English lesson) as an error, with the same message as `npm run check`, and includes it in the fix request with the R-math standard
|
|
38
|
+
- Editor app: the quality check now also runs the other checks that `npm run check` had alone and that need no screenshots or files on disk: です・ます and mixed punctuation, script that reads a formula, broken `{note:}`, long turns and the script language, links to slides, emphasis targets, morphs, image and figure names, slide ids and legacy keys, source outside the 1.0 vocabulary and colours outside the theme's vocabulary (info). Findings the fix request did not map to a standard now take it from the check messages (`ruleOf`)
|
|
39
|
+
- `tools/test-check-parity.mjs` (in `npm test`) fails when `npm run check` reports a code that the editor's check lacks, unless it is on `CLI_ONLY` in `kit/core/check-parity.mjs` with its reason
|
|
40
|
+
- Editor app: the Japanese quote template now reads 「引用する文をここに書く」 (plain form), so a new quote slide no longer trips the です・ます check; the earlier text is still found as template text
|
|
41
|
+
- The narration check (`narrFormula`, R-formula) no longer reports code identifiers joined with `_` (`cross_val_score`, `random_state`, `train_test_split`) as an equation read aloud. A name counts as an identifier when one of its parts is a word of three letters or more; subscripts such as `x_1`, `x_t`, `a_ij` and `\alpha_t` are still reported. Hyphenated words such as `scikit-learn` were never reported
|
|
42
|
+
- The same check reads a reading `{x|よみ}` by its spoken form: a single symbol with its reading (`{E_i|イーアイ}`, `{θ|シータ}`), which R-reading allows, is no longer reported, and an expression under one reading (`{E_i + E_j|…}`) is left to `readingExpr` instead of being reported twice
|
|
43
|
+
- Editor app: after **Create** with a pasted AI output (also from a sample) and **Replace** on an Egatari file, the wait logo shows
|
|
44
|
+
“Creating the lesson…” / “Replacing…” until the lesson appears, instead of the start screen (or the old lesson) with no sign of progress for 1–2 seconds
|
|
45
|
+
|
|
11
46
|
## [0.6.8] - 2026-11-10
|
|
12
47
|
|
|
13
48
|
### Added
|
|
@@ -1412,7 +1447,8 @@ First public release.
|
|
|
1412
1447
|
- Docs: README (English and Japanese), the contract (`docs/contract.md`), a reference of every option, syntax and key (`docs/reference.md`, `docs/reference.ja.md`), guides for the dev server and video, CONTRIBUTING, SECURITY, issue forms
|
|
1413
1448
|
- Tests (`npm test`) and GitHub Actions running them on Node 22 and 24, plus a TTS dry-run through video export
|
|
1414
1449
|
|
|
1415
|
-
[Unreleased]: https://github.com/egatari/egatari-studio/compare/v0.6.
|
|
1450
|
+
[Unreleased]: https://github.com/egatari/egatari-studio/compare/v0.6.9...HEAD
|
|
1451
|
+
[0.6.9]: https://github.com/egatari/egatari-studio/compare/v0.6.8...v0.6.9
|
|
1416
1452
|
[0.6.8]: https://github.com/egatari/egatari-studio/compare/v0.6.7...v0.6.8
|
|
1417
1453
|
[0.6.7]: https://github.com/egatari/egatari-studio/compare/v0.6.6...v0.6.7
|
|
1418
1454
|
[0.6.6]: https://github.com/egatari/egatari-studio/compare/v0.6.5...v0.6.6
|
package/kit/check.mjs
CHANGED
|
@@ -68,6 +68,15 @@ if (!arg0) {
|
|
|
68
68
|
console.error('usage: node kit/check.mjs <deck.html | working folder> [--theme name] [--lang ja|en] [--json]');
|
|
69
69
|
process.exit(1);
|
|
70
70
|
}
|
|
71
|
+
// 組み立てた後の 1 ファイル(.ega.html)は原稿ではない:デッキとして読むと、はみ出し・台本なし・重なりを誤って出す。断る(終了コード 2:
|
|
72
|
+
// 「エラー 0」でも「指摘あり」でもない、検査していない)。中に入った原稿を取り出して検査するのは v0.6.10
|
|
73
|
+
if (/\.ega\.html?$/i.test(arg0)) {
|
|
74
|
+
const ja = '.ega.html は組み立てた後のファイルです。品質チェックは原稿(フォルダか deck.html)にかけてください';
|
|
75
|
+
const en = '.ega.html is a built file. Run the quality check on the source instead (the working folder or deck.html)';
|
|
76
|
+
console.error(`check: ${langArg === 'en' ? en : langArg === 'ja' ? ja : ja + '\n ' + en}`);
|
|
77
|
+
if (asJson) console.log(JSON.stringify({ ok: false, status: 'refused', reason: 'egaFile', lang: langArg === 'en' ? 'en' : 'ja', counts: { error: 0, warn: 0, info: 0 }, results: [] }, null, 2));
|
|
78
|
+
process.exit(2);
|
|
79
|
+
}
|
|
71
80
|
// 作業フォルダを渡したら、その中の deck.html(組み立てと同じ。フォルダは「通常のファイルでない」と紛らわしく断られていた)
|
|
72
81
|
let src;
|
|
73
82
|
try { src = resolveDeckArg(arg0); } catch (e) { console.error(`check: ${e.message}`); process.exit(1); }
|