egatari 0.6.19 → 0.6.20-rc.1

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 (29) hide show
  1. package/README.ja.md +7 -2
  2. package/README.md +7 -2
  3. package/components.lock.json +6 -3
  4. package/components2.lock.json +172 -1
  5. package/kit/check-messages.mjs +2 -2
  6. package/kit/check.mjs +5 -3
  7. package/kit/core/bookmark.mjs +13 -0
  8. package/kit/core/llm-pack-assemble.mjs +13 -8
  9. package/kit/core/llm-pack-data.mjs +48 -20
  10. package/kit/core/llm-pack.mjs +2 -1
  11. package/kit/core/script-unclosed.mjs +25 -8
  12. package/kit/instruction-version.json +1 -1
  13. package/kit/player.json +1 -1
  14. package/kit/player.lock.json +2 -2
  15. package/kit/templates/new-deck.mjs +1 -1
  16. package/kit/tools.js +136 -4
  17. package/package.json +1 -1
  18. package/server/script-field.js +1 -1
  19. package/vendor/components/CATALOG.md +3 -3
  20. package/vendor/components/sha256/8a9215c7fea15265c2f3038f3d01a2f72441fc1e931245dee46dcaacf3548a98/README.en.md +38 -0
  21. package/vendor/components/sha256/8a9215c7fea15265c2f3038f3d01a2f72441fc1e931245dee46dcaacf3548a98/index.js +414 -0
  22. package/vendor/components/sha256/91be5c714c046244436569ecac24d9d1eb84504b3e28d8899fc89a5865e8d955/README.en.md +40 -0
  23. package/vendor/components/sha256/91be5c714c046244436569ecac24d9d1eb84504b3e28d8899fc89a5865e8d955/index.js +355 -0
  24. package/vendor/components/sha256/9a426812105a44446e8b3f98e0ccfdb6701e8386c08e8aa201b69cb5b52a4c1f/index.js +278 -0
  25. package/vendor/components/sha256/ad4d42a34eff125d8ccd7caf9ac329b7a8092960e7ee872fdeb853bd9c57942f/README.en.md +54 -0
  26. package/vendor/components/sha256/ad4d42a34eff125d8ccd7caf9ac329b7a8092960e7ee872fdeb853bd9c57942f/index.js +470 -0
  27. package/vendor/components/sha256/b35d01e480a203dc27aa18b0d341cc1cbc2dcca69235e909919484f1545b371f/README.en.md +23 -0
  28. package/vendor/components/sha256/b35d01e480a203dc27aa18b0d341cc1cbc2dcca69235e909919484f1545b371f/index.js +150 -0
  29. package/vendor/components-2/manifest-2.22.0.json +3240 -0
package/README.ja.md CHANGED
@@ -1,4 +1,4 @@
1
- <!-- i18n: pair=README.md sha256=f4d702f8466fb1cf -->
1
+ <!-- i18n: pair=README.md sha256=a6505cab9d80da45 -->
2
2
  <p align="center">
3
3
  <picture>
4
4
  <source media="(prefers-color-scheme: dark)" srcset="assets/logo/egatari-dark.svg">
@@ -12,6 +12,11 @@
12
12
 
13
13
  [English](README.md) | 日本語
14
14
 
15
+ <p align="center">
16
+ <a href="https://egatari.org/assets/video/egatari-intro-30s.mp4"><img src="https://egatari.org/assets/video/egatari-intro-30s-poster.jpg" width="640" alt="30 秒でわかる Egatari(動画)"></a><br>
17
+ <sub>30 秒でわかる Egatari(動画)。押すと再生します。</sub>
18
+ </p>
19
+
15
20
  Egatari は、スライド・台本・音声・本を 1 つの HTML ファイルにまとめる形式です。ブラウザで再生でき、生成 AI で作成・修正できます。Egatari Studio は、その Egatari ファイルを作成・編集するツール。
16
21
 
17
22
  Egatari ファイルは自己完結した 1 つの HTML で、ステップ表示とパーツで説明の順を見せる。1 組のスライドと台本(`deck.html` と `narration.md`)から、スライドショー(先のステップを薄く見せることもできる)・PDF、そして必要なら TTS の動画まで作る。[Claude Code](https://claude.com/claude-code) のスキル(`skills/`)で動かす前提で作ってあるが、どの手順も Node のコマンドなので、Claude Code なしでも使える。
@@ -85,7 +90,7 @@ Node.js 22.23.4 以上が要る([要るもの](#requirements))。ほかの
85
90
  - **台本の音声を 1 ステップずつ:** 「音声」でステップの音声を聞き、作った後に台本が変わっていれば「古い」と示す。マイクから録音する(入力レベルの表示つき)、ファイルから取り込む、AI 音声をこの PC で作る(日本語は読み辞書つきの Irodori-TTS、英語は Kokoro。WebGPU が要り、モデルは初回だけ取得)で作り直すのどれかをして、「この音声を使う」。録音し直した音声は `tts/core.py` と同じく整え(無音を削り −20 LUFS)、出どころと一緒に MP3 で保存する([詳しく](docs/editor.ja.md#台本の音声音声のパネル))。Egatari ファイルでは再ビルドせずに保存する
86
91
  - **AI エージェントと一緒に:** ほかのもの(Claude Code・Codex・テキストエディタ)がファイルを変えると、2 秒ほどで気づいて再ビルドし、同じスライド・ステップのまま表示する。ビルドに失敗したら、修正されるまでプレビューの上にエラーを表示する
87
92
  - **言語:** ふだんはブラウザの言語に合わせる。右上の **English / 日本語** のボタン(または `?lang=en`・`?lang=ja`)で切り替える
88
- - **ツールの列:** ファイル ▾(新規作成…・開く…・保存・名前を付けて保存…・エクスポート ▸ 参加者用(再生専用)…/スライドを印刷/本を印刷(本のないファイルは台本を印刷)・ファイルの情報…・フォルダで作業する…)、スライド ▾(スライドの挿入…・複製・削除・修正…)、品質チェック(警告の数)、プレビュー ▾(スライドショー・動画で確認、発表者ビュー(台本と次のステップを表示するウィンドウ)で確認)
93
+ - **ツールの列:** ファイル ▾(新規作成…・開く…・保存・名前を付けて保存…・エクスポート ▸ 参加者用(再生専用)…/スライドを印刷・PDF に保存/本を印刷(本のないファイルは台本を印刷)・ファイルの情報…・フォルダで作業する…)、スライド ▾(スライドの挿入…・複製・削除・修正…)、品質チェック(警告の数)、プレビュー ▾(スライドショー・動画で確認、発表者ビュー(台本と次のステップを表示するウィンドウ)で確認)
89
94
 
90
95
  できないこと:自分の参照音声での TTS(`tts/synth.py`)・動画・`npm run check`(品質チェックのコマンド版)・`tools/pdf.mjs` はコマンドで行い、プレビューはフォルダの音声を鳴らさない(鳴らすのは音声のパネル)。ブラウザ版の品質チェックは一部の項目(はみ出し・文字の大きさ・字数・台本の抜け・コントラスト)だけで、目安にとどまる(全部は `npm run check`)。エクスポートするファイルは、コマンドでビルドしたものと同じくフォントをサブセット化する(サブセット化のツール、約 2 MB は初めてのエクスポートで読み込む)。リポジトリのパーツとテーマはアプリをビルドしたときのもの。作業フォルダの中のパーツ・テーマはフォルダから読む。
91
96
 
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- <!-- i18n: pair=README.ja.md sha256=c5ab07dbd39dbb27 -->
1
+ <!-- i18n: pair=README.ja.md sha256=2f238a5f66f28f8d -->
2
2
  <p align="center">
3
3
  <picture>
4
4
  <source media="(prefers-color-scheme: dark)" srcset="assets/logo/egatari-dark.svg">
@@ -12,6 +12,11 @@
12
12
 
13
13
  English | [日本語](README.ja.md)
14
14
 
15
+ <p align="center">
16
+ <a href="https://egatari.org/assets/video/egatari-intro-30s.mp4"><img src="https://egatari.org/assets/video/egatari-intro-30s-poster.jpg" width="640" alt="Egatari in 30 seconds (video, Japanese)"></a><br>
17
+ <sub>Egatari in 30 seconds (video, Japanese). Click to play.</sub>
18
+ </p>
19
+
15
20
  Egatari is a format that bundles slides, script, audio and a book into a single HTML file. It plays in any browser, and generative AI can write and edit it. Egatari Studio is the tool that makes and edits Egatari files.
16
21
 
17
22
  An Egatari file is one self-contained HTML file, with step-by-step reveals and parts that follow the order of your explanation. One set of slides and script (`deck.html` + `narration.md`) gives you a live talk (with later steps shown faintly if you like), a PDF, and, optionally, a narrated video made with TTS. It is designed to be driven by [Claude Code](https://claude.com/claude-code) through the skills in `skills/`, but every step is a plain Node command and works without it.
@@ -84,7 +89,7 @@ The same editing as the dev server, as a web page that opens an Egatari file (`.
84
89
  - **Script audio, one step at a time:** “Audio” plays the step's audio and marks it stale when the script changed after it was made; record a take from the microphone (with a level meter), import a file, or regenerate the step with “Make AI voice on this computer” (Irodori-TTS for Japanese with the reading dictionary, Kokoro for English; needs WebGPU, the model is downloaded once), then “Use this take”. Takes are processed like `tts/core.py` (trimmed, −20 LUFS) and saved as MP3 with where they came from ([details](docs/editor.md#script-audio-audio-panel)). In an Egatari file this is saved without rebuilding
85
90
  - **Work with an AI agent:** when anything else changes the files (Claude Code, Codex, a text editor), the editor notices within about 2 seconds, rebuilds, and stays on the same slide and step. A build error is shown over the preview until it is fixed.
86
91
  - **Language:** the editor follows your browser language; the **English / 日本語** button at the top right (or `?lang=en` / `?lang=ja`) switches it.
87
- - **Toolbar:** File ▾ (New…, Open…, Save, Save as…, Export ▸ For participants (play-only)… / Print slides / Print book (Print script without a book), File info…, Work in a folder…), Slide ▾ (Insert slide…, Duplicate, Delete, Revise…), Quality check (with a warning count), Preview ▾ (check as a slide show or as a video, show later steps faintly, or in presenter view with the script and the next step).
92
+ - **Toolbar:** File ▾ (New…, Open…, Save, Save as…, Export ▸ For participants (play-only)… / Print slides / Save as PDF / Print book (Print script without a book), File info…, Work in a folder…), Slide ▾ (Insert slide…, Duplicate, Delete, Revise…), Quality check (with a warning count), Preview ▾ (check as a slide show or as a video, show later steps faintly, or in presenter view with the script and the next step).
88
93
 
89
94
  Limits: TTS with your own reference voices (`tts/synth.py`), video, `npm run check` (the command quality checker) and `tools/pdf.mjs` stay on the command line, and the preview does not play the folder's audio (the Audio panel does). The browser quality checker covers a subset (overflow, font size, length, missing narration, contrast) and is only a hint; the full quality check is `npm run check`. Exported files subset the fonts exactly as a command-line build does (the subsetter, about 2 MB, is loaded on the first export). Repository parts and themes are the ones bundled when the editor was built; parts and themes inside the working folder are read from the folder.
90
95
 
@@ -1035,7 +1035,8 @@
1035
1035
  "2.0.4",
1036
1036
  "2.0.5",
1037
1037
  "2.1.0",
1038
- "2.1.1"
1038
+ "2.1.1",
1039
+ "2.1.2"
1039
1040
  ],
1040
1041
  "sha256": {
1041
1042
  "1.0.0": "20be414e2dc3b813150887bb93041140b99b2b61352165bb50b74e9b664982a1",
@@ -1067,7 +1068,8 @@
1067
1068
  "2.0.4": "db5f113e49ce3a2904a4db7665f7637a0409f77445bcfd89f02077dc1276035f",
1068
1069
  "2.0.5": "79bdf9fcf92579e664d5a2a94d802a5f3537ba5d61fb04fc94bc0f5ee8ade68e",
1069
1070
  "2.1.0": "4100140fb1239cbd2924267f245fad5a08da18bb719c7face730aebacf3eae8e",
1070
- "2.1.1": "44a290445e562b6742cf28db9ad3ec9d9c7cbd9ccbc02a2fd6795180e3086eb8"
1071
+ "2.1.1": "44a290445e562b6742cf28db9ad3ec9d9c7cbd9ccbc02a2fd6795180e3086eb8",
1072
+ "2.1.2": "1558ae5843cdc0e717751059f2d0692405517fee094ee9bc76a032b33e220e53"
1071
1073
  },
1072
1074
  "crlfSha256": {
1073
1075
  "1.0.0": "b7329ff977d28502ea6bf6d478383f422fd138d956b3910a6edf4129f69e1642",
@@ -1123,7 +1125,8 @@
1123
1125
  "2.0.4": "1d10fec0552198e3926b3d960046606668fa7f42f562cea539c6a16cc3e83338",
1124
1126
  "2.0.5": "0e5458deb63e32aefdbf8722fa156fd44cd90d5d8f9d6a25a636007b4b599450",
1125
1127
  "2.1.0": "a426e6a3f8f4593403ba63ecc4a3f1f41064f4016fd9fb8d51e7876bf8c6f573",
1126
- "2.1.1": "95583538da2982ec5f508217a8f2821796e6a34cf755baa66f2aaeb1c6dae814"
1128
+ "2.1.1": "95583538da2982ec5f508217a8f2821796e6a34cf755baa66f2aaeb1c6dae814",
1129
+ "2.1.2": "91be5c714c046244436569ecac24d9d1eb84504b3e28d8899fc89a5865e8d955"
1127
1130
  }
1128
1131
  },
1129
1132
  "gendai": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "source": "https://github.com/egatari/components",
3
- "default": "2.21.0",
3
+ "default": "2.22.0",
4
4
  "catalogues": {
5
5
  "2.0.0": {
6
6
  "tag": "v2.0.0",
@@ -2094,6 +2094,157 @@
2094
2094
  "venn": "218d88998b70f0732c18d91ccc238b2d63f6b0aaa483883b83685a25468f214a"
2095
2095
  }
2096
2096
  },
2097
+ "2.22.0": {
2098
+ "tag": "v2.22.0",
2099
+ "tarballSha256": "e5860e130a0b6389e163dc6ee17da26c98ba0475afde91f5c8eee2020e4eda1d",
2100
+ "manifestSha256": "7d18a779f37b2a283a9172bc9fe55f98d0cd41d95805a73b8554ed303dbd97cc",
2101
+ "parts": {
2102
+ "balance": "2.0.2",
2103
+ "bars": "2.1.1",
2104
+ "base": "1.3.0",
2105
+ "boxplot": "2.0.7",
2106
+ "boxplot-core": "1.0.0",
2107
+ "callout": "2.1.0",
2108
+ "cards": "2.1.0",
2109
+ "checklist": "2.0.1",
2110
+ "ci": "2.0.2",
2111
+ "classify2d": "2.0.1",
2112
+ "code": "2.2.1",
2113
+ "code-core": "1.0.1",
2114
+ "codetree": "2.1.0",
2115
+ "codetree-core": "1.0.0",
2116
+ "collect": "2.1.0",
2117
+ "compare": "2.0.5",
2118
+ "contour": "2.0.1",
2119
+ "contour-core": "1.0.0",
2120
+ "contrast": "2.0.0",
2121
+ "ctable": "2.0.1",
2122
+ "curves": "2.4.0",
2123
+ "cycle": "2.1.0",
2124
+ "diverge": "2.0.1",
2125
+ "expr": "1.0.0",
2126
+ "fishbone": "2.1.2",
2127
+ "flow": "2.1.2",
2128
+ "folds": "2.1.2",
2129
+ "gendai": "2.0.4",
2130
+ "heatmap": "2.1.3",
2131
+ "heatmap-core": "1.0.0",
2132
+ "hissan": "2.0.4",
2133
+ "hist": "2.0.7",
2134
+ "hist-core": "1.0.0",
2135
+ "icons": "1.0.0",
2136
+ "kakijun": "2.1.0",
2137
+ "kanbun": "2.0.4",
2138
+ "kanbun-core": "1.0.0",
2139
+ "keyboard": "2.0.6",
2140
+ "kobun": "2.0.4",
2141
+ "kpi": "2.0.6",
2142
+ "map-japan": "2.3.0",
2143
+ "map-world": "2.3.0",
2144
+ "mapping": "2.1.0",
2145
+ "market": "2.1.0",
2146
+ "markup-reader": "1.0.3",
2147
+ "matrix": "2.1.0",
2148
+ "menu": "2.0.5",
2149
+ "network": "2.2.0",
2150
+ "nnet": "2.1.0",
2151
+ "numberline": "2.1.0",
2152
+ "orbit": "2.0.7",
2153
+ "particles": "2.0.3",
2154
+ "pie": "2.1.0",
2155
+ "plot": "1.1.3",
2156
+ "predict": "2.3.0",
2157
+ "quad": "2.1.2",
2158
+ "sampling": "2.0.2",
2159
+ "scatter": "2.1.0",
2160
+ "score": "2.1.3",
2161
+ "scroll": "2.0.0",
2162
+ "seq": "2.2.0",
2163
+ "shape": "1.0.0",
2164
+ "sweep": "2.2.0",
2165
+ "syntax": "2.0.4",
2166
+ "tape": "2.1.0",
2167
+ "timeline": "2.1.0",
2168
+ "timer": "2.0.7",
2169
+ "trace": "2.0.1",
2170
+ "tree": "2.2.0",
2171
+ "vector": "2.1.0",
2172
+ "venn": "2.1.0"
2173
+ },
2174
+ "content": {
2175
+ "balance": "5521b5b40a43c48c5ae5a50ce87afb3d47bb23b133b16841086d8322364cdd5e",
2176
+ "bars": "ad4d42a34eff125d8ccd7caf9ac329b7a8092960e7ee872fdeb853bd9c57942f",
2177
+ "base": "aeb0b9b5991a5c1df7191c397780a699f2c7310123ca210a58486c0a23e44006",
2178
+ "boxplot": "beeb180c0e2250bb04490b092c0a235cae47fca2ed1de2d9ef078a5c14b1a963",
2179
+ "boxplot-core": "728576c57a5ccb39531ad4cb8074fce95480f01603a77dbf57dca0e52199f7c4",
2180
+ "callout": "b35d01e480a203dc27aa18b0d341cc1cbc2dcca69235e909919484f1545b371f",
2181
+ "cards": "7a5adf73fc053b9f2ca56643b5683b42589edb0f63c845ecb7ae7e6b87eccc30",
2182
+ "checklist": "8db9c936c36b79b9e3b2be37639487b15502a6937f411ed714621a8091437e9b",
2183
+ "ci": "832556ea9c82c292a3ba9e1b332f2405c5c2f969ff8157c91ed80226ec8ac62e",
2184
+ "classify2d": "7ab483e7fb05f646b062340d70f2749d070b4f64fed7acc0b8a7754d9ef9fded",
2185
+ "code": "8a9215c7fea15265c2f3038f3d01a2f72441fc1e931245dee46dcaacf3548a98",
2186
+ "code-core": "631f4c4b90c9a41c0f26c9600d5cf2d6447251d04a20f08f48a85aeb4cb0f6fb",
2187
+ "codetree": "b9443e1cdac4850b1ead9f8449a3061678bbb77fbc53eb9b23d01e1cf50750c3",
2188
+ "codetree-core": "da267bc65fde0a9279127d5a82f6c253ad74984da6fb11391f00604ad9ffe80d",
2189
+ "collect": "4c8cae404d551a1bb021e8345af5aa45d4f412f13497aa84b142f11a29a365dc",
2190
+ "compare": "a744049fc56e0a5d5b1638bef597a4e65f99d0776a35d830a389f216f314f1bc",
2191
+ "contour": "fa6442fa3c5082cf161c29308fe0ecbd85fa33e8e4bad08c12e7961b46b1365b",
2192
+ "contour-core": "a1c2b2fa06e4229815ab82a9202c266ec887a67632a175854c7d136a92389ca3",
2193
+ "contrast": "277ac772315f93737a094cd0f0842726f2435d352d9a90822aebfe0d5d7e79a1",
2194
+ "ctable": "3a7962fa87c670447eed54aca08604ef03cd26bf2c334b4667190060e6a17965",
2195
+ "curves": "3be5f64deb1951327b614b29a9b632878fab362687c76e3f48f3af1d1ebbb1cf",
2196
+ "cycle": "000cc8b85d22854d93587d53fe07585e0d9f0abee86d863c5ed1f6c53967912b",
2197
+ "diverge": "f4100076a37dbde6046d85969d651feffc925bd984ffe9f333ea9bd2b6816918",
2198
+ "expr": "c5fd7713e55e96d75824a21146c0251896d7d9dd028b4d169191433135a97981",
2199
+ "fishbone": "3f2f66da34496213cf6140ae041122c31f13c77e5ee18ad11a3390fbc4a6ecca",
2200
+ "flow": "91be5c714c046244436569ecac24d9d1eb84504b3e28d8899fc89a5865e8d955",
2201
+ "folds": "2787e410e533e4ad48b0a3c2b652579cf5797f9c51fcf32f5478212a7acef95f",
2202
+ "gendai": "13c9ce43396b2f5693ce430a924dae4ddcd1e8a4ad0c9b9e724ff52acb874d0c",
2203
+ "heatmap": "8e5e90c90cb6b06a790b0420e43d79d7da663f1cc19ff06d381ec849b4a8fc57",
2204
+ "heatmap-core": "711cf58fa946c9c0abc953b2f695d02bf5a5a7f73851b09f834e894baf88be38",
2205
+ "hissan": "e27d517f39eb554c7a9ecea7b59fcf1d347c4deeb3fe2250797aa233bfb7e2b0",
2206
+ "hist": "701f1deef79fe05eeb18e1119e5a5c4d60a9dfe265e93a4dff79223bc598dbf0",
2207
+ "hist-core": "8a4b6dce84d7a69aaafeb75c1c572fe7904fd49e3169c1c85851ccaeae2a7b11",
2208
+ "icons": "b10183a66b58b827a1410cf8b0117af567647684464d5777529dc66f0cea343a",
2209
+ "kakijun": "0dd302b82925f35743a893d5c271898ada3659aa0de2d3249ef45936aad10ae0",
2210
+ "kanbun": "b53bfa03d1e9feb3cb492f440bf9d100c96eb4fe6b76c42b512a56e9158829cd",
2211
+ "kanbun-core": "df3fdb2aed487d4f6e60a8abab1fe0d1e9fa2a4193fd162edf3c384ea8db5a1b",
2212
+ "keyboard": "af3355efd6739a56c6cb53990100f41703361c475c123b9b2762421c68509036",
2213
+ "kobun": "9a426812105a44446e8b3f98e0ccfdb6701e8386c08e8aa201b69cb5b52a4c1f",
2214
+ "kpi": "ce0a52fa13ae579020d1172845647daee9ba78e070736e47740f2d2feabffe7e",
2215
+ "map-japan": "0c25d49d23529879054737aa181951519fe585c4728fd505e0e3c8869953eac7",
2216
+ "map-world": "2a011338d0fc3c77e102eaa57cde2b6e3726bc279f133174b0b8c9a654263cbc",
2217
+ "mapping": "6749f44ed6476a05d4e3026373c188a0e1a19b77a5836579813f62a1477ac35e",
2218
+ "market": "208175d05b37d326855fad792b10137f785e5d05d91a2cde119d0dbd69d2ed98",
2219
+ "markup-reader": "8bb511cb90902bc7721e59ca08685b26adbf33539e36a4a45172485d6d3d455b",
2220
+ "matrix": "a5b032657720d3beb64f0b3699954e13b0eb985f36161b9ae046c83fd6048ff5",
2221
+ "menu": "109c302247e0c62720872be35392a73bea72804b0ed421ef8ced3f030f72e537",
2222
+ "network": "2579bcb46b6525902763cd15a2e08fc5ebd9a2695cdaba63438e5b47907a47e0",
2223
+ "nnet": "e31f6b058503f7980597c89b3e964c512ee08de7cba3fa99904d499abbb5d0e8",
2224
+ "numberline": "b348ea64cc19632df96a91dfd7c435e4a62095aede72b504d03537be70d6d930",
2225
+ "orbit": "1a0f21def0efbbdef64461cafa40f3883bc7f7122adf79d01f09ca4a245e5dcb",
2226
+ "particles": "c61987e9994940fc668ed8a010e575ee52027b54ed9c5dd1cc9fdf67649092b3",
2227
+ "pie": "42450c6b36404d66641568f6d6f55e42a4a036d4d9cdf308f709464913b32fe9",
2228
+ "plot": "2fce5ab0c31dca0aa1586a2c69237870a9cce46c0bc6ab7392c27968d016bd15",
2229
+ "predict": "15306d854d67d52ca2b1d66135f0d3296882e6b21fd85c029399b8077c8a7f9d",
2230
+ "quad": "47f7ea3e2551abb250a9f5883716791026f0f54ae9cca6d82fabdb92478c69ae",
2231
+ "sampling": "0840322bf51eeb3c8188ce21ad70af17c13974ac0151065a39c430a3813ee07f",
2232
+ "scatter": "7c7b0373cfd38fd5ecb4169021e0b908f0a17be1a29b14f85dd89fdb92e7bf81",
2233
+ "score": "7dea2c3728b85122b04515aa06ab198657529e7cd101b9ab34d4ecb2905ce94e",
2234
+ "scroll": "7af6e5e6dffb618b39f27d883c691ca128f3af06040ee505e75c79c678bfdcfe",
2235
+ "seq": "12ef6a11055407f5cddc40154a49cf2737b0786429fe0fcc94ee1d8245597b40",
2236
+ "shape": "76bdb63c3e5e14fbb4816bc9f235490817bb5d7be990a826f5077aa08226702c",
2237
+ "sweep": "038f9d32c89c8212ab25d6e3180023b6fe024a53053ab2ef1443ecab92e3ce43",
2238
+ "syntax": "dea36cd7010991a572ef394ee32b5e17564aeff09d3ec4ed3820d7e43c9a58be",
2239
+ "tape": "aac2f8a23cb1b606e9635061cb288f006588c80a7258540cae846ae677f55ff5",
2240
+ "timeline": "b28d136dffb03a3e855b2ff959712a143da9a84c3a4fd13a1126d7711083a2d6",
2241
+ "timer": "bc1e2a02c959ac203819d03c0d25b3776a6a9a4290aae860b26cbbe3d29e876d",
2242
+ "trace": "45cea6c1abfb3467e3e3dbe7fec58647716999a0c39cf7163531ae389f898d29",
2243
+ "tree": "9c5dd0bc0c3279c5f0fea3fdb9d0735870880aef96e8bbf9ecdd77dff0f5ddc8",
2244
+ "vector": "0e9e92df8d70eb6d9fcf10916c361769c7cd37baacece8d7eb96bbbc7fbcf942",
2245
+ "venn": "218d88998b70f0732c18d91ccc238b2d63f6b0aaa483883b83685a25468f214a"
2246
+ }
2247
+ },
2097
2248
  "2.3.0": {
2098
2249
  "tag": "v2.3.0",
2099
2250
  "tarballSha256": "46480ea715b73ef01bed807501316df96f5aacb63a96fa01af5cf14ede7f0f39",
@@ -5158,6 +5309,26 @@
5158
5309
  }
5159
5310
  },
5160
5311
  "license": "MIT"
5312
+ },
5313
+ "2.1.2": {
5314
+ "sha256": "1558ae5843cdc0e717751059f2d0692405517fee094ee9bc76a032b33e220e53",
5315
+ "kind": "element",
5316
+ "tag": "m-flow",
5317
+ "requires": {
5318
+ "base": "1.3.0",
5319
+ "markup-reader": "1.0.3"
5320
+ },
5321
+ "build": {
5322
+ "fields": {
5323
+ "nodes[].tex": "katex"
5324
+ },
5325
+ "options": {
5326
+ "katex": {
5327
+ "output": "html"
5328
+ }
5329
+ }
5330
+ },
5331
+ "license": "MIT"
5161
5332
  }
5162
5333
  },
5163
5334
  "folds": {
@@ -401,8 +401,8 @@ export const MESSAGES = {
401
401
  en: (a) => `${compName(a, false)} has data it cannot draw: ${compWhat(a, false)}${compHow(a, false) ? `. Write it like this: ${compHow(a, false)}` : ''}` },
402
402
  // 閉じていない <script>(kit/core/script-unclosed.mjs、handoff #96):後ろのスライドが <script> の中の文字になる。見出しは 4 つまで並べる
403
403
  scriptUnclosed: { rule: 'R-components',
404
- ja: (a) => `${a.line} 行目の <script> に </script> がない:その後ろの${a.n ? `スライド ${a.n} 枚(${(a.headings || []).slice(0, 4).map((h) => quoteJa(h || '見出しなし')).join('')}${a.n > 4 ? '…' : ''})` : 'すべて'}が <script> の中の文字になり、スライドとして読めない(台本の節も結べない)。<script> の中身(JSON など)のすぐ後ろに </script> を書く`,
405
- en: (a) => `the <script> on line ${a.line} has no </script>: everything after it${a.n ? `, including ${a.n} slide${a.n === 1 ? '' : 's'} (${(a.headings || []).slice(0, 4).map((h) => `“${h || 'no heading'}”`).join(', ')}${a.n > 4 ? ', …' : ''}),` : ''} is read as script text, not as slides (and their sections in narration.md match no slide). Write </script> right after the script's content (the JSON)` },
404
+ ja: (a) => `${a.line} 行目の <script> に </script> がない。そのため後ろの${a.n ? `スライド ${a.n} 枚(${(a.headings || []).slice(0, 4).map((h) => quoteJa(h || '見出しなし')).join('')}${a.n > 4 ? '…' : ''})` : 'すべて'}が <script> の中の文字になり、スライドとして読めない(台本の節も結べない)。<script> の中身(JSON など)のすぐ後ろに </script> を書く`,
405
+ en: (a) => `the <script> on line ${a.line} has no </script>. So ${a.n ? `the ${a.n === 1 ? '' : `${a.n} `}${plural(a.n, 'slide')} after it (${(a.headings || []).slice(0, 4).map((h) => `“${h || 'no heading'}”`).join(', ')}${a.n > 4 ? ', …' : ''}) ${a.n === 1 ? 'is' : 'are'}` : 'everything after it is'} read as script text, ${a.n === 1 ? 'not as a slide (and its section in narration.md matches no slide)' : 'not as slides (and their sections in narration.md match no slide)'}. Write </script> right after the script's content (the JSON)` },
406
406
  consoleError: { ja: (a) => `コンソールエラー:${a.e}(スライドのパーツやスクリプトを修正する)`, en: (a) => `console error: ${a.e} (fix the slides’ part or script)` },
407
407
  };
408
408
 
package/kit/check.mjs CHANGED
@@ -66,7 +66,7 @@ import { kickerFindings } from './core/kicker.mjs';
66
66
  import { cautionFindings } from './core/caution.mjs';
67
67
  import { bookmarkFindings } from './core/bookmark.mjs';
68
68
  import { tateMixFindings } from './core/tate-mix.mjs';
69
- import { scriptUnclosedFindings } from './core/script-unclosed.mjs';
69
+ import { scriptUnclosedFindings, withoutSwallowed } from './core/script-unclosed.mjs';
70
70
  import { imageSizeFindings } from './core/image-size.mjs';
71
71
  import { predictStepProblems } from './core/predict-steps.mjs';
72
72
  import { FONTS_EXTRA_WARN, FONTS_EXTRA_PKG, FONTS_EXTRA_INSTALL } from './core/build-core.mjs';
@@ -156,7 +156,9 @@ for (const f of imageSizeFindings(built.html)) report(f.i, f.sev, f.code, f.a);
156
156
  const themeInfo = built.theme || { name: built.stats.theme, metrics: null, declared: false };
157
157
  const metricsWarn = [];
158
158
  const extraMissing = []; // 別の包み @egatari/fonts-extra の字体で、その包みがないので入らなかったもの(kit/core/build-core.mjs の fontCss)
159
- for (const w of built.stats.warn) {
159
+ // 閉じていない <script>(#96):飲み込まれたスライドの節の「スライドが見つからない」は出さない(直し方は </script>。編集アプリと同じ関数)
160
+ const unclosed = scriptUnclosedFindings(readRegular(src, { max: READ_LIMITS.source }).toString('utf8'));
161
+ for (const w of withoutSwallowed(built.stats.warn, unclosed)) {
160
162
  if (w.startsWith(FONTS_EXTRA_WARN)) { const m = w.match(/「([^」]+)」/); if (m) extraMissing.push(m[1]); continue; }
161
163
  // 目印の有無は F で、部品が作った要素も含めて実際の画面で調べる(build は原稿の文字列だけを見る)
162
164
  if (/^mark: 目印/.test(w)) continue;
@@ -204,7 +206,7 @@ if (extraMissing.length) report(null, 'error', 'fontsExtraMissing', { fonts: ext
204
206
  { const text = readRegular(src, { max: READ_LIMITS.source }).toString('utf8');
205
207
  for (const f of bookmarkFindings(text)) report(f.i, f.sev, f.code, f.a);
206
208
  for (const f of tateMixFindings(text)) report(f.i, f.sev, f.code, f.a); // 縦と横の入れ替わり(#70。kit/core/tate-mix.mjs)
207
- for (const f of scriptUnclosedFindings(text)) report(f.i, f.sev, f.code, f.a); } // 閉じていない <script>(#96。kit/core/script-unclosed.mjs)
209
+ for (const f of unclosed) report(f.i, f.sev, f.code, f.a); } // 閉じていない <script>(#96。kit/core/script-unclosed.mjs)
208
210
  // {#id} で指したスライドの見出しと、narration.md の見出しの文字列が違う(id が勝つので、知らせるだけ)
209
211
  const byKey = new Map(built.slides.map((s, i) => [s.key, { ...s, i }]));
210
212
  for (const sec of built.segs.sections || []) {
@@ -2,6 +2,8 @@
2
2
  // BOOKMARK_MAX 名前の字数の上限(20。字は code point で数える)
3
3
  // bookmarkName(v) 属性の値 → 見せる名前(空白を 1 つにして前後を除く。なければ '')
4
4
  // bookmarkLength(name) 字数(code point)
5
+ // bookmarkDefault(heading, taken) しおりを付けるときの既定の名前:見出しを 20 字で切ったもの。taken(ほかのスライドのしおりの名前)と
6
+ // 同じなら、後ろに「 2」「 3」…を足して 20 字に収める(同じ名前が並ばない:bookmarkDup を出さない)。見出しがなければ ''
5
7
  // bookmarkFindings(src) 原稿の文字列 → [{i, sev, code, a}]。品質チェックのコマンド版(kit/check.mjs)と編集アプリ(kit/core/check-source.mjs)が同じものを出す
6
8
  // bookmarkDup:同じ名前のしおりが 2 枚以上(名前ごとに 1 つ、最初のスライドに。a = {name, n})
7
9
  // bookmarkLong:名前が 20 字を超える(スライドごと。a = {name, n})
@@ -10,6 +12,17 @@ import { analyzeSlideIds } from './build-core.mjs';
10
12
  export const BOOKMARK_MAX = 20;
11
13
  export const bookmarkName = (v) => String(v == null ? '' : v).replace(/\s+/g, ' ').trim();
12
14
  export const bookmarkLength = (name) => [...String(name)].length;
15
+ const cutTo = (s, n) => [...s].slice(0, Math.max(0, n)).join('').trim();
16
+ export function bookmarkDefault(heading, taken = []) {
17
+ const base = cutTo(bookmarkName(heading), BOOKMARK_MAX);
18
+ if (!base) return '';
19
+ const used = new Set([...taken].map(bookmarkName));
20
+ if (!used.has(base)) return base;
21
+ for (let k = 2; ; k++) {
22
+ const suf = ' ' + k, n = cutTo(base, BOOKMARK_MAX - bookmarkLength(suf)) + suf;
23
+ if (!used.has(n)) return n;
24
+ }
25
+ }
13
26
 
14
27
  export function bookmarkFindings(src) {
15
28
  const out = [];
@@ -77,13 +77,15 @@ export const partSpans = (text, exclude = []) => text.replace(/<!--part:([a-z0-9
77
77
  // gone:組み立てに入らない部品(説明の中でその名前を出す所を除く。<!--part:…--> は make-llm-guide の markRefs が付ける)。
78
78
  // brief:一覧の 1 行だけの部品(説明の節を出さない)
79
79
  // free:無料のプラン。部品に無料のプランの説明(free。tools/make-llm-guide.mjs の FREE_EDITS)があればそれを使う
80
- function catalog(D, names, gone = [], brief = [], free = false) {
80
+ // freeRows:無料のプランの一覧の行(freeRow:「データの形」の欄から、step・at・tone を 3 つとも受け付ける項目からその 3 つを外し、印 † を付けた行。handoff #95)を使う
81
+ // fieldsNote:一覧の上に、その印の 1 行(材料の fieldsNote)を書く(共通の本体の一覧だけ。束の一覧は §3 の決まりに従う)
82
+ function catalog(D, names, gone = [], brief = [], { free = false, freeRows = false, fieldsNote = false } = {}) {
81
83
  if (!names.length) return '';
82
- const rows = names.map((n) => partSpans(D.components[n].row, gone)).join('\n');
84
+ const rows = names.map((n) => partSpans((freeRows && D.components[n].freeRow) || D.components[n].row, gone)).join('\n');
83
85
  const full = names.filter((n) => !brief.includes(n));
84
86
  const sup = full.some((n) => D.components[n].sup);
85
87
  const short = names.length > full.length;
86
- return D.tableHead + '\n' + rows + '\n\n' + (short ? D.briefNote + '\n\n' : '') + (sup ? D.supNote + '\n\n' : '') + full.map((n) => partSpans((free && D.components[n].free) || D.components[n].entry, gone)).join('\n\n');
88
+ return (fieldsNote && D.fieldsNote ? D.fieldsNote + '\n\n' : '') + D.tableHead + '\n' + rows + '\n\n' + (short ? D.briefNote + '\n\n' : '') + (sup ? D.supNote + '\n\n' : '') + full.map((n) => partSpans((free && D.components[n].free) || D.components[n].entry, gone)).join('\n\n');
87
89
  }
88
90
  function extensions(D, set, exclude = [], gone = exclude) {
89
91
  return Object.keys(D.components).sort().filter((n) => !exclude.includes(n) && D.components[n].ext && D.components[n].ext[set])
@@ -108,14 +110,17 @@ export function commonOf(data, lang, { exclude: exclude0 = [], sets = [], off =
108
110
  const gone = goneParts(data, lang, exclude, ss);
109
111
  const table = () => (data.purposes ? purposesTable(data.purposes, data.parts || [], lang, data.partsSrc || '', { exclude, sets: ss, off, ...(ranked ? { named } : {}) }) : '');
110
112
  return tidy(partSpans(planSpans(D.common, plan), exclude).replace('{{PURPOSES}}', table)
111
- .replace('{{CATALOG}}', () => catalog(D, membersOf(D, STANDARD).filter((n) => !exclude.includes(n)), gone, ranked ? [] : briefParts(data, plan, short, full), planName(plan) === 'free')));
113
+ .replace('{{CATALOG}}', () => { const free = planName(plan) === 'free'; const cat = catalog(D, membersOf(D, STANDARD).filter((n) => !exclude.includes(n)), gone, ranked ? [] : briefParts(data, plan, short, full), { free, freeRows: free, fieldsNote: free });
114
+ // 標準のパーツがすべて外れても、束の一覧(freeRow)のために 1 行は書く
115
+ return cat || (free && ss.length && D.fieldsNote ? D.fieldsNote : ''); }));
112
116
  }
113
- // 1 つの束の指示。sets:一緒に入る束(説明の中の名前を残す部品を決める。既定はこの束だけ)
114
- export function partOf(data, name, lang, { exclude = [], sets = [name] } = {}) {
117
+ // 1 つの束の指示。sets:一緒に入る束(説明の中の名前を残す部品を決める。既定はこの束だけ)。
118
+ // plan:既定は 'paid'(docs/llm-parts の全体の指示)。'free' では束の見本(<!--paid-->)を除き、一覧は無料のプランの行(freeRow)にする(handoff #95)
119
+ export function partOf(data, name, lang, { exclude = [], sets = [name], plan = 'paid' } = {}) {
115
120
  const D = langOf(data, lang);
116
121
  if (!D.sets[name]) throw new Error(`llm-pack: unknown part set "${name}"`);
117
122
  const gone = goneParts(data, lang, exclude, [...new Set([name, ...sets])]);
118
- return tidy(partSpans(D.sets[name], exclude).replace('{{CATALOG}}', () => catalog(D, membersOf(D, name).filter((n) => !exclude.includes(n)), gone)).replace('{{EXTENSIONS}}', () => extensions(D, name, exclude, gone)));
123
+ return tidy(partSpans(planSpans(D.sets[name], plan), exclude).replace('{{CATALOG}}', () => catalog(D, membersOf(D, name).filter((n) => !exclude.includes(n)), gone, [], { freeRows: planName(plan) === 'free' })).replace('{{EXTENSIONS}}', () => extensions(D, name, exclude, gone)));
119
124
  }
120
125
 
121
126
  // 利用者が埋める「頼みたいこと」(記入欄の付いた頼み方。新しく作る/渡した資料と話し合いの内容で)。いちばん最後に付く
@@ -124,7 +129,7 @@ export const requestOf = (data, lang) => tidy(langOf(data, lang).request || '');
124
129
  // sets:選んだ束('a,b'・配列・'all')。plan:'free'(既定)| 'paid'(詳しさだけが変わる)
125
130
  export function packParts(data, { sets = [], lang = 'en', exclude = [], off = [], plan = 'free', short = false, full = null, named = null } = {}) {
126
131
  const ss = normalizeSets(sets, data);
127
- return [commonOf(data, lang, { exclude, sets: ss, off, plan, short, full, named }), ...ss.map((s) => partOf(data, s, lang, { exclude, sets: ss }))];
132
+ return [commonOf(data, lang, { exclude, sets: ss, off, plan, short, full, named }), ...ss.map((s) => partOf(data, s, lang, { exclude, sets: ss, plan: planName(plan) }))];
128
133
  }
129
134
  export function assemble(data, { sets = [], lang = 'en', exclude = [], off = [], plan = 'free', short = false, full = null, named = null } = {}) {
130
135
  const parts = [...packParts(data, { sets, lang, exclude, off, plan, short, full, named }), requestOf(data, lang)].filter(Boolean);