egatari 0.6.7-rc.1 → 0.6.7
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 +92 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,96 @@ 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.7] - 2026-11-09
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- Editor app: **File ▾ → Export ▸ → Make a video (MP4)…** (backlog #131). A short dialog says videos are made in Google Colab, asks you to upload this lesson's file (`<name>.ega.html`) there,
|
|
16
|
+
and that the Egatari file plays without making a video. **Open Colab** opens the video notebook (`colab/egatari-video.ipynb`) in a new tab; with unsaved changes the button is **Save and open Colab**,
|
|
17
|
+
in a working folder not exported yet **Save as Egatari file and open Colab** (save or export first, then open). If steps need their audio updated, one line gives the count.
|
|
18
|
+
When the new tab is blocked, a link to the notebook
|
|
19
|
+
- `colabVideoUrl()` and `COLAB.videoNotebook` (`kit/core/colab-core.mjs`)
|
|
20
|
+
- Video: optional background music, `tools/video.mjs … --music <file>` (`render.mjs --music`): one track under the whole video, 12 dB quieter while the script is spoken, faded out at the end. Nothing to set (no seconds, no beat sync); the levels come from the script windows, so the same input gives the same audio (#131)
|
|
21
|
+
- Colab: a video notebook `colab/egatari-video.ipynb` (CPU runtime, generated by `tools/make-colab-notebook.mjs`): upload the lesson's `.ega.html` (and, optionally, the background music), it runs `tools/video.mjs` and downloads `full.mp4` (and the chapters as a ZIP) (#131)
|
|
22
|
+
- SCORM 1.2 package for LMSs ([binding](https://github.com/egatari/egatari-spec/blob/main/bindings/scorm12.md), backlog #182):
|
|
23
|
+
`egatari build <working folder> --scorm` writes `<lesson title>.scorm.zip`, and the editor has **File ▾ → Export ▸ For an LMS
|
|
24
|
+
(SCORM)…** with a dialog that says what the LMS records and when the lesson counts as completed (`metadata.completion` in plain
|
|
25
|
+
words), then **Download**. The zip holds `imsmanifest.xml` (one SCO, `egatari-<docId>`, the lesson title) and the play-only copy as
|
|
26
|
+
`index.html`, byte for byte what `--play-only` writes. Fixed order and times, no compression: the same lesson gives the same bytes.
|
|
27
|
+
No masteryscore: the player reports completed by `metadata.completion` and sends no score. Refused when `deck-meta.tracking` has no
|
|
28
|
+
`scorm12` or the resume data could exceed 4096 characters (`kit/core/scorm.mjs`)
|
|
29
|
+
- A small dependency-free ZIP writer shared by the CLI and the editor (`kit/core/zip-write.mjs`); the AI instructions' skill zip now
|
|
30
|
+
uses it too (same bytes as before)
|
|
31
|
+
- Tests: `tools/test-scorm.mjs` (zip layout and determinism, the manifest against the binding's rules, refusals, and the package
|
|
32
|
+
launched in a frame under a parent page with a fake SCORM 1.2 API for each completion rule) and `tools/test-app-scorm.mjs` (the
|
|
33
|
+
export dialog in ja and en, Cancel, the downloaded zip, unsaved changes)
|
|
34
|
+
- Quality check: `balance` (R-balance, phase 1, info only). On each slide's final step the body (`.body`) is rasterised and the pixels that differ from the slide background are measured: the vertical offset of their centre of mass from the optical centre (45% from the top), the horizontal offset from the middle, and the one-sided empty band (the largest difference between opposite margins) with its side. A slide is reported only when its body has a visual (an `m-*` part, `svg`, `img`, `table` or `.katex-display`) with the empty band right below the lowest one (the figure could be taller); text-only slides are not reported, since lessons start at the top. The content must also sit high (centre of mass more than 10% of the body height above the optical centre) and the band below is more than 25% larger than the band above (`layout-tate`: content to the right and the left empty, also only with a visual). Even margins all round score about 0. The message gives the numbers only. Cover, section divider and `static` slides are skipped; the conclusion line is outside the body and not measured. The finding never counts as an error or warning and is left out of fix requests (`kit/core/fill-measure.mjs`, `kit/fill-scan.mjs`)
|
|
35
|
+
- `node tools/fill-report.mjs <deck.html | folder …> [--json]` prints whether the slide has a visual, the vertical and horizontal offsets, the one-sided band and its side and whether the slide is flagged, per slide, for tuning the thresholds on a set of lessons
|
|
36
|
+
- Font subsetting keeps the characters each part used declares it draws itself (`glyphs`: in the parts library record, the `egatariParts.define` meta or `static glyphs`; a string, or per language `{ja, en}` of which the lesson's language is used), such as the island names of m-map-japan.
|
|
37
|
+
- The quality checker reports `fontNotCovered` (info) when visible characters are in no embedded font (they show in the device's font); `node tools/font-coverage.mjs <built.html>` lists them.
|
|
38
|
+
- Editor, New…: a third entry on its first screen, next to **Paste the AI’s output**: **Make one based on this sample**
|
|
39
|
+
(このサンプルを参考に作る), with “Keeps its structure, theme and parts; the content is new, from your topic.” under it. It opens a picker with
|
|
40
|
+
the same samples as the first screen (**Choose** on each) and then New… from that sample, exactly as the sample window’s button does
|
|
41
|
+
- Build: `metadata.offer` in `egatari.json` (format spec §1.2) is copied into `deck-meta.offer` by every build (the working
|
|
42
|
+
folder's `out/deck.html`, the Egatari file and its play-only copy) and into the index's `metadata.offer`, together with
|
|
43
|
+
`metadata.primary`; a former `learn` is written as `talk`, unknown values are dropped. Reading a file accepts the former `learn`
|
|
44
|
+
|
|
45
|
+
### Changed
|
|
46
|
+
|
|
47
|
+
- Components 2.0 lessons use egatari/components **v2.4.4** by default. `m-map-japan` and `m-map-world` 2.0.3: in an English lesson (`ctx.lang` not `ja`) name and value chips are as tall as the English font's text box (Source Sans 3: 1.43 em), fixing a 3 px `svgTextBox` overflow; `m-map-japan` also writes its built-in island names and inset captions in English (Takeshima, Senkaku Islands, Okinotorishima, Minamitorishima, Chichijima, Iwo To, Nansei Islands, Ogasawara Islands) instead of overflowing their label boxes in the English font. Both parts now declare `static glyphs` so a built lesson keeps those built-in characters (including the English names) when it subsets its fonts. Japanese lessons draw as before. No other part changes version. The AI instructions are unchanged apart from their version line
|
|
48
|
+
- Components 2.0 lessons use egatari/components **v2.5.0** by default. `m-cards` 2.0.3: the card frames stay where they were and each card's content is centred vertically in the spare height of the card; the cards README gains guidance on using cards instead of bullets (short steps as cards with arrows). `m-map-japan` 2.0.4: prefecture and region names, the legend, the readable summary and the default `aria-label` are written in English when `ctx.lang` is not `ja` (romanisation after MLIT/GSI; data keys unchanged). `m-fishbone` and `m-tree` 2.0.3: their note for the AI instructions has English and Japanese text, so the English instructions no longer carry Japanese lines. `m-compare` stays 2.0.2 (top-aligned). Japanese lessons draw as before apart from the cards. No other part changes version
|
|
49
|
+
- Embedded fonts are subset to the characters the lesson uses (#178): each `@fontsource` chunk the lesson needs is cut down with harfbuzz (wasm, `harfbuzzjs` 1.6.4) and re-encoded as woff2 (`wawoff2` 2.0.1), with `unicode-range` set to exactly the characters the subset font maps. This applies to `build`, `--portable`, `--play-only`, the bundled examples and the editor's save and export (the editor loads the subsetter, `font-subset.js`, on the first export; its fonts are byte-identical to the command line). The output is byte-stable across runs and operating systems. The rashomon example goes from 12.2 MB to 2.4 MB. Fonts with a Reserved Font Name (Source Sans 3, Source Serif 4, Source Code Pro) are embedded unchanged. `EGATARI_FONT_SUBSET=0` turns it off.
|
|
50
|
+
- Editor, tier A saves: new characters in the script or the book get a font supplement in every embedded font (BIZ UDPMincho and the chosen Japanese fonts too, not only BIZ UDPGothic and Source Sans 3), cut down to those characters. Without the font files (the offline `editor.html` has no Mincho) the editor saves anyway and names the characters that will show in the device's font, instead of refusing.
|
|
51
|
+
- Components 2.0 lessons use egatari/components **v2.4.3** by default: the 16 standard parts (bars, curves, cards, flow, compare, fishbone, menu, pie, cycle, predict, scatter, venn, tree, quad, kpi, timeline) gain English docs (`README.en.md`); no part's code or version changes
|
|
52
|
+
- English AI instructions now describe those 16 parts from their English docs (summary, steps, prop meanings, example data, notes) instead of the Japanese README; each part's English text is checked to be no longer than its Japanese one, and the English example data must have the same shape as the part's own example.
|
|
53
|
+
English packs get smaller in bytes (free standard 35.4 → 29.5 KB, paid standard 71.0 → 47.7 KB, paid every set 131.0 → 106.9 KB)
|
|
54
|
+
- On the free plan, some English single-set instructions now leave out one more standard part to fit the paste length: math also leaves out `m-pie`, maps `m-fishbone`, kokugo `m-cycle`, science `m-tree` (stats is unchanged).
|
|
55
|
+
The Japanese instructions are unchanged apart from their version line and the parts' docs link (v2.4.3)
|
|
56
|
+
- `?from-sample=<name>` (the names in `examples.json`, e.g. `kokugo-kanbun`; combines with `?lang=`) with an unknown name now opens New…
|
|
57
|
+
as usual with one line at the top, “Sample “…” not found. New… is open.”, instead of a notice on the first screen. The sample list is built
|
|
58
|
+
into each version, so the link opens that version’s samples at the site root, inside a frozen copy (`/vX.Y.Z/`) and in the offline editor
|
|
59
|
+
- Editor, New… step 4: the question no longer asks for the chat AI's plan (free or paid); it asks **Choose the instructions for the AI**
|
|
60
|
+
(AI に渡す指示を選んでください): **Light (any AI)**, marked “If unsure” (the default), or **Detailed (for paid AI plans)**, each with a
|
|
61
|
+
line saying what it is (owner's decision, 2026-11-07). The line “Egatari is free. This asks about your chat AI's plan.” is gone
|
|
62
|
+
- The answered line, the shortening notice and the size hint name the instructions (“Instructions: Light · 15 parts · copied”, “To fit the
|
|
63
|
+
light instructions, …”); the attach-as-a-file line reads “Gemini may cut a copy-and-paste at about 30,000 characters”. The internal names
|
|
64
|
+
(`plan: free | paid`, `--plan`, `studio.newDeck.plan`) and the instructions themselves are byte for byte unchanged
|
|
65
|
+
- Glossary: light instructions (軽量の指示) and detailed instructions (詳細の指示) replace free plan and paid plan; 無料のプラン, 有料のプラン
|
|
66
|
+
and 無制限 (the detailed instructions have a 150 KB cap) are avoid words. README, the editor docs, the AI-instruction docs' preamble and size
|
|
67
|
+
table, the make skill and `node kit/llm-pack.mjs --help` use the new words
|
|
68
|
+
- Editor app: the preview always passes the chosen mode (`?mode=talk` or `video`), so a lesson's `offer.open` does not change
|
|
69
|
+
what the preview shows; a former `learn` preview mode is read as the slide show
|
|
70
|
+
- Docs: reference, contract and editor describe playback in the slide show and the offered modes and faces instead of the
|
|
71
|
+
`learn` mode; the termbase replaces the undecided self-study row with Play / Pause and Playback speed
|
|
72
|
+
- Egatari Player 1.4.0 (the bundled player that files carry, `player` in the index and `deck-meta`): minor release. Self-study is
|
|
73
|
+
the slide show with playback, for a file opened directly or in an LMS: the toolbar starts with previous, **Play** / **Pause**,
|
|
74
|
+
next and **Playback speed** (0.75–2×, pitch kept; `<` / `>`), and keeps the presenter tools. Pausing resumes from the same point;
|
|
75
|
+
while playing, the toolbar's previous / next, digits + Enter and the overview keep playing, while the presenter's step keys pause
|
|
76
|
+
- Egatari Player 1.4.0: `deck-meta.offer` (format §1.2, Player P1) is applied. The lesson opens in `offer.open` {mode, face}
|
|
77
|
+
(order: `?mode` / `?layout` / embedding, the viewer's remembered layout, `offer.open`, `metadata.primary`, `<html data-mode>`,
|
|
78
|
+
defaults), and faces not in `offer.faces` are left out of View, `r` and Read in the book. Embedding answers `{egatari:"mode"}`
|
|
79
|
+
- Egatari Player 1.4.0: `video` opened by a person (through `offer.open.mode` or `?mode=video` outside the export) shows one
|
|
80
|
+
**Play** button; pressing it plays the lesson along the timeline to the end with no other controls (Player P1, spec 609e145).
|
|
81
|
+
The video export runs in an automated browser and is unchanged (same clips, byte for byte)
|
|
82
|
+
- Egatari Player 1.4.0: in an LMS with SCORM 1.2, every commit also writes `cmi.core.session_time` and `cmi.core.exit`, and the
|
|
83
|
+
player commits on `beforeunload` too, so resume and time spent reach LMSs that store with synchronous requests (ILIAS) (`kit/track.js`)
|
|
84
|
+
|
|
85
|
+
### Removed
|
|
86
|
+
|
|
87
|
+
- Egatari Player 1.4.0: the `learn` mode (Player P1, spec 60eda15). A `?mode=learn`, a `learn` in `deck-meta.offer`, in
|
|
88
|
+
`<html data-mode>` or in an embedding `{egatari:"mode"}` command is read as `talk`; parts get `ctx.mode` `talk` or `video` only
|
|
89
|
+
|
|
90
|
+
### Fixed
|
|
91
|
+
|
|
92
|
+
- Video export (`render/render.mjs`): the audio is now one continuous 48 kHz track for the whole lesson, with each step's audio at its exact sample position on the cumulative timeline. `--full` used to join the clips' AAC audio and encode it again, so each seam was off by up to ±8 ms (the clips' lengths are rounded to frames) and could click, and the whole track was 1024 samples (23 ms) late; the video of `full.mp4` was also 21 ms late. Now the seams are exact (within 1 sample in the new test), and `full.mp4` and `chapter_NN.mp4` are in sync with the timeline within 1 ms. A clip's audio is the slice of the same track between its frames. Checked by `tools/test-render-audio.mjs` (CI tier2)
|
|
93
|
+
- SCORM 1.2 resume and time spent on LMSs that store with synchronous requests (seen on ILIAS): the player now writes
|
|
94
|
+
`cmi.core.session_time` and `cmi.core.exit` (`suspend`, or `""` once completed) with every commit, and also commits on
|
|
95
|
+
`beforeunload`, not only on `pagehide`. Chrome and Safari block synchronous requests while a page goes away, so the final
|
|
96
|
+
commit in `pagehide` never reached ILIAS: `exit` stayed unset (the next launch started from the first slide) and the time spent
|
|
97
|
+
stayed 0. `session_time` is counted in whole hundredths of a second, so it never reads `:60.00`. `tools/test-scorm.mjs` closes and
|
|
98
|
+
reopens the package under a strict SCORM 1.2 model (value formats, read-only elements, `entry` from the stored `exit`, stores
|
|
99
|
+
lost while the page goes away) (`kit/track.js`)
|
|
100
|
+
|
|
11
101
|
## [0.6.6] - 2026-11-08
|
|
12
102
|
|
|
13
103
|
### Added
|
|
@@ -1301,7 +1391,8 @@ First public release.
|
|
|
1301
1391
|
- 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
|
|
1302
1392
|
- Tests (`npm test`) and GitHub Actions running them on Node 22 and 24, plus a TTS dry-run through video export
|
|
1303
1393
|
|
|
1304
|
-
[Unreleased]: https://github.com/egatari/egatari-studio/compare/v0.6.
|
|
1394
|
+
[Unreleased]: https://github.com/egatari/egatari-studio/compare/v0.6.7...HEAD
|
|
1395
|
+
[0.6.7]: https://github.com/egatari/egatari-studio/compare/v0.6.6...v0.6.7
|
|
1305
1396
|
[0.6.6]: https://github.com/egatari/egatari-studio/compare/v0.6.5...v0.6.6
|
|
1306
1397
|
[0.6.5]: https://github.com/egatari/egatari-studio/compare/v0.6.4...v0.6.5
|
|
1307
1398
|
[0.6.4]: https://github.com/egatari/egatari-studio/compare/v0.6.3...v0.6.4
|