@kubohiroya/turbowarp-bubble 0.12.0 → 0.13.0

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/README.ja.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  `@kubohiroya/turbowarp-bubble`は、TurboWarp上の`say`/`think`表示を、文字、キャラクター表情、入力待ちアイコンに分けて管理するunsandboxed機能拡張です。同じ機能をアプリから直接利用するためのcomposition APIも提供します。
6
6
 
7
- 現在のリリースはBubble 0.12.0です。既定の描画経路はSVG Text 0.10.0を使うskin非依存のSVG overlayです。TurboWarpですべての機能を使う場合、現在の推奨組み合わせはAsset Manager 0.15.0、Async Input 0.7.0、Runtime Expression 0.6.0です。READMEとversion整合検査については[0.11.0 release notes](docs/release-notes-0.11.0.md)、再利用可能な名前付きclose policyについては[0.10.0 release notes](docs/release-notes-0.10.0.md)、組み込み`say`/`think` styleについては[0.9.0 release notes](docs/release-notes-0.9.0.md)を参照してください。
7
+ 現在のリリースはBubble 0.13.0です。既定の描画経路はSVG Text 0.10.0を使うskin非依存のSVG overlayです。TurboWarpですべての機能を使う場合、現在の推奨組み合わせはAsset Cache 0.1.0、Async Input 0.7.0、Runtime Expression 0.6.0です。Asset Cacheへの移行については[0.13.0 release notes](docs/release-notes-0.13.0.md)、再利用可能な名前付きclose policyについては[0.10.0 release notes](docs/release-notes-0.10.0.md)、組み込み`say`/`think` styleについては[0.9.0 release notes](docs/release-notes-0.9.0.md)を参照してください。
8
8
 
9
9
  ## READMEの読み方
10
10
 
@@ -36,14 +36,14 @@ flowchart LR
36
36
 
37
37
  次の表は0.11.0の機能と公開entry pointの対応です。standalone機能拡張は33定義から31個のpaletteブロックを公開し、保存済みprojectの互換性のため旧styled say/think 2定義を非表示で維持します。表示される全ブロックは[提供ブロック](#提供ブロック)に掲載しています。
38
38
 
39
- | 領域 | このREADMEで説明する内容 | 公開entry point |
40
- | ----------------------------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------ |
41
- | 文字描画・改行 | `BubbleTextCapability`、名前付きstyle、実測幅、`maxWidth`、UAX #14準拠の改行 | `composition`、`turbowarp-adapter`、機能拡張ブロック |
42
- | 逐次表示 | `CHARACTER`/`WORD`/`LINE`/`BLOCK`、区切り文字、単位ごとの効果音、finish条件 | `composition`、軽量な`reveal` entry、機能拡張ブロック |
43
- | portrait | ベース画像、`blink`、`lip-sync`の独立レイヤー | Asset Managerを介したComposition APIと機能拡張ブロック |
44
- | Bubble外形 | `NORMAL`等のvisual style、placement、tail、offset、scale | Composition API、TurboWarp adapter、機能拡張ブロック |
45
- | 表示mode | `talking`/`awaiting-continue`/`idle` | `BubbleHandle.setAnimationMode()`と対応ブロック |
46
- | 表示開始・表示中・表示終了animation | `fadeIn`、`floatIn`、`shake`、`animateBubbleShape`等 | style設定、`BubbleHandle.animate()`、機能拡張ブロック |
39
+ | 領域 | このREADMEで説明する内容 | 公開entry point |
40
+ | ----------------------------------- | ------------------------------------------------------------------------------ | ----------------------------------------------------- |
41
+ | 文字描画・改行 | `BubbleTextCapability`、名前付きstyle、実測幅、`maxWidth`、UAX #14準拠の改行 | `composition`、`turbowarp-adapter`、機能拡張ブロック |
42
+ | 逐次表示 | `CHARACTER`/`WORD`/`LINE`/`BLOCK`、区切り文字、単位ごとの効果音、finish条件 | `composition`、軽量な`reveal` entry、機能拡張ブロック |
43
+ | portrait | ベース画像、`blink`、`lip-sync`の独立レイヤー | Asset Cacheを介したComposition APIと機能拡張ブロック |
44
+ | Bubble外形 | `NORMAL`等のvisual style、placement、tail、offset、scale | Composition API、TurboWarp adapter、機能拡張ブロック |
45
+ | 表示mode | `talking`/`awaiting-continue`/`idle` | `BubbleHandle.setAnimationMode()`と対応ブロック |
46
+ | 表示開始・表示中・表示終了animation | `fadeIn`、`floatIn`、`shake`、`animateBubbleShape`等 | style設定、`BubbleHandle.animate()`、機能拡張ブロック |
47
47
 
48
48
  ## 概念と表示仕様
49
49
 
@@ -71,16 +71,16 @@ flowchart TB
71
71
  extension -."optional".-> input
72
72
  ```
73
73
 
74
- この構成では、Bubble coreが`BubbleTextCapability`というホスト非依存の契約だけを参照します。TurboWarp adapterの既定経路は直接依存する`@kubohiroya/turbowarp-svg-text@0.10.0`の`createSvgTextLayoutComposition().layoutText()`を使い、SVG skinを生成せず行layoutと文字幅を得ます。standalone SVG Text 0.10.0が既にロードされている場合は、その公開`getLayoutCapability()`を利用し、project blockで定義済みのfont、色、size、alignmentを維持します。吹き出しの外枠、tail、portraitの配置、表示開始・表示終了animationはSVG Textの責務に含めません。Composition APIのhostは別の実装を`textCapability`として注入できます。画像解決、音声再生、入力、条件評価もCapabilityとして切り離し、Asset Manager、Async Input、Runtime Expressionは対応機能を使う場合だけ接続します。
74
+ この構成では、Bubble coreが`BubbleTextCapability`というホスト非依存の契約だけを参照します。TurboWarp adapterの既定経路は直接依存する`@kubohiroya/turbowarp-svg-text@0.10.0`の`createSvgTextLayoutComposition().layoutText()`を使い、SVG skinを生成せず行layoutと文字幅を得ます。standalone SVG Text 0.10.0が既にロードされている場合は、その公開`getLayoutCapability()`を利用し、project blockで定義済みのfont、色、size、alignmentを維持します。吹き出しの外枠、tail、portraitの配置、表示開始・表示終了animationはSVG Textの責務に含めません。Composition APIのhostは別の実装を`textCapability`として注入できます。画像解決、音声再生、入力、条件評価もCapabilityとして切り離し、Asset Cache、Async Input、Runtime Expressionは対応機能を使う場合だけ接続します。
75
75
 
76
76
  ### 描画backend(SVG overlayが既定)
77
77
 
78
78
  `bubbleRenderBackend`を省略した場合の既定値は`"svg-overlay"`です。`renderer.addOverlay(root, "scale")`でstage canvas上に共有SVG rootを置き、body、tail、text、portrait、corner clip、continue indicatorをDOM要素として描画します。文字にはstandalone拡張の共有named-style registry、またはBubble内包compositionから得るSVG Text 0.10.0のhost-neutral layoutを使います。この既定経路ではBubbleの表示、text更新、style更新、animationのために`createDrawable()`、`createSVGSkin()`、`createBitmapSkin()`を呼ばず、Bubble由来の処理はscratch-renderの`SVGSkin`/`Silhouette`経路へ入りません。`"scratch-render"`は互換性とロールバックのため明示指定時だけ使用します。
79
79
 
80
- TurboWarpでstock Asset Manager 0.15.0をBubbleより先に読み込むと、Bubbleはportrait等を初めて使う時に`runtime.ext_kubohiroyaassetmanager.getDOMImageCapability()`を呼び、Asset Managerブロックで登録された同じregistryへ遅延接続します。文字だけを使う場合はAsset Managerを読み込みません。Composition APIのhostは、次のようにcapabilityを明示注入できます。
80
+ TurboWarpでstock Asset Cache 0.1.0をBubbleより先に読み込むと、Bubbleはportrait等を初めて使う時に`runtime.ext_kubohiroyaassetcache.getDOMImageCapability()`を呼び、Asset Cacheブロックで登録された同じregistryへ遅延接続します。文字だけを使う場合はAsset Cacheを読み込みません。Composition APIのhostは、次のようにcapabilityを明示注入できます。
81
81
 
82
82
  ```ts
83
- import { createAssetManagerComposition } from "@kubohiroya/turbowarp-asset-manager/composition";
83
+ import { createAssetManagerComposition } from "@kubohiroya/turbowarp-asset-cache/composition";
84
84
  import { createSvgTextLayoutComposition } from "@kubohiroya/turbowarp-svg-text/composition";
85
85
  import {
86
86
  createAssetManagerSvgOverlayImageCapability,
@@ -107,11 +107,11 @@ const bubbles = createTurboWarpBubbleComposition(runtime, {
107
107
  });
108
108
  ```
109
109
 
110
- `svgOverlayTextCapability`を省略し、standalone SVG Text 0.10.0がロード済みの場合、Bubbleはfrozenな`getLayoutCapability()`を取得し、SVG Text blockが更新する同じnamed-style registryを解決します。standaloneがない場合だけ、BubbleはSVG Text 0.10.0のlayout compositionを生成し、`default`および初めて参照されたtext-style名を背景透明の既定styleで初期化します。公開handoffがない古いstandaloneが存在する場合はproject styleを黙って置換せず`BUBBLE-RUNTIME-004`を返し、`svgOverlayUnsupportedBehavior: "fallback"`を明示した場合だけscratch-renderへ戻ります。capabilityを明示注入すると両方の自動経路を置換できます。portrait等を使う場合、Bubble所有の`createAssetManagerSvgOverlayImageCapability()`がAsset Managerの汎用DOM resourceをBubbleの画像契約へ変換します。依存方向はBubbleからAsset Managerへの一方向であり、Asset ManagerはBubbleの型やsecurity markerを参照しません。adapterは両者が許可するMIME typeだけを公開し、検証済みMIME type、intrinsic size、`blob:` URL、`release()`を引き継ぎ、Asset ManagerがsanitizeしたSVGへBubble側のmetadataを付与します。Bubbleは任意SVG文字列を挿入せず、canonical bodyから`path`、`group`等の許可要素・属性だけを`createElementNS()`で再構築します。`script`、event handler、`foreignObject`、外部URLは受け付けません。overlay rootは`pointer-events: none`、`aria-hidden="true"`です。
110
+ `svgOverlayTextCapability`を省略し、standalone SVG Text 0.10.0がロード済みの場合、Bubbleはfrozenな`getLayoutCapability()`を取得し、SVG Text blockが更新する同じnamed-style registryを解決します。standaloneがない場合だけ、BubbleはSVG Text 0.10.0のlayout compositionを生成し、`default`および初めて参照されたtext-style名を背景透明の既定styleで初期化します。公開handoffがない古いstandaloneが存在する場合はproject styleを黙って置換せず`BUBBLE-RUNTIME-004`を返し、`svgOverlayUnsupportedBehavior: "fallback"`を明示した場合だけscratch-renderへ戻ります。capabilityを明示注入すると両方の自動経路を置換できます。portrait等を使う場合、Bubble所有の`createAssetManagerSvgOverlayImageCapability()`がAsset Cacheの汎用DOM resourceをBubbleの画像契約へ変換します。依存方向はBubbleからAsset Cacheへの一方向であり、Asset CacheはBubbleの型やsecurity markerを参照しません。adapterは両者が許可するMIME typeだけを公開し、検証済みMIME type、intrinsic size、`blob:` URL、`release()`を引き継ぎ、Asset CacheがsanitizeしたSVGへBubble側のmetadataを付与します。Bubbleは任意SVG文字列を挿入せず、canonical bodyから`path`、`group`等の許可要素・属性だけを`createElementNS()`で再構築します。`script`、event handler、`foreignObject`、外部URLは受け付けません。overlay rootは`pointer-events: none`、`aria-hidden="true"`です。
111
111
 
112
- 既定文字providerは直接依存するSVG Text 0.10.0です。別にロードしたstock SVG Textのstyleを維持するには0.8.1の`getLayoutCapability()`が必要です。stock画像拡張同士の自動接続には`getDOMImageCapability()`を公開するAsset Manager 0.15.0以降が必要です。Composition APIから`resolveDOMImageResource()`を明示注入する低レベル経路はAsset Manager 0.12.0以降で利用できます。
112
+ 既定文字providerは直接依存するSVG Text 0.10.0です。別にロードしたstock SVG Textのstyleを維持するには0.8.1の`getLayoutCapability()`が必要です。stock画像拡張同士の自動接続には`getDOMImageCapability()`を公開するAsset Cache 0.1.0以降が必要です。Composition APIから`resolveDOMImageResource()`を明示注入する低レベル経路はAsset Cache 0.1.0以降で利用できます。
113
113
 
114
- SVG Text/Asset Managerのskin非依存契約は[turbowarp-svg-text#26](https://github.com/kubohiroya/turbowarp-svg-text/issues/26)、[turbowarp-asset-manager#103](https://github.com/kubohiroya/turbowarp-asset-manager/issues/103)、stock registry handoffの[turbowarp-asset-manager#106](https://github.com/kubohiroya/turbowarp-asset-manager/issues/106)で公開済みです。Bubbleは上流の公開APIだけを利用し、private field参照やskinからの抽出では代替しません。overlay APIがないhostで`svg-overlay`を選ぶと`BUBBLE-RUNTIME-004`を返します。画像使用時にAsset Manager 0.15.0の公開capabilityも明示注入もない場合は`BUBBLE-RUNTIME-002`を返します。`svgOverlayUnsupportedBehavior: "fallback"`を明示した場合だけ、overlay API非対応hostで`scratch-render`へ戻ります。
114
+ SVG Text/Asset Cacheのskin非依存契約は[turbowarp-svg-text#26](https://github.com/kubohiroya/turbowarp-svg-text/issues/26)、[turbowarp-asset-manager#103](https://github.com/kubohiroya/turbowarp-asset-manager/issues/103)、stock registry handoffの[turbowarp-asset-manager#106](https://github.com/kubohiroya/turbowarp-asset-manager/issues/106)で公開済みです。Bubbleは上流の公開APIだけを利用し、private field参照やskinからの抽出では代替しません。overlay APIがないhostで`svg-overlay`を選ぶと`BUBBLE-RUNTIME-004`を返します。画像使用時にAsset Cache 0.1.0の公開capabilityも明示注入もない場合は`BUBBLE-RUNTIME-002`を返します。`svgOverlayUnsupportedBehavior: "fallback"`を明示した場合だけ、overlay API非対応hostで`scratch-render`へ戻ります。
115
115
 
116
116
  | host/取得方法 | `scratch-render` | `svg-overlay` |
117
117
  | ----------------------------------------- | ---------------- | ------------------------------------------------------ |
@@ -193,7 +193,7 @@ finish [CHARACTER / WORD / LINE / BLOCK]
193
193
 
194
194
  `finish`は公開Composition APIの`handle.finish({ unit, condition, timeoutSeconds })`と、TurboWarpの`finish [UNIT] ...`ブロックで利用できます。これは逐次表示を最後まで進め、条件成立またはtimeoutで音声と待機状態を確定します。
195
195
 
196
- Asset Managerを音声providerとして接続すると、次の音声を同じ表示ライフサイクルに関連付けられます。
196
+ Asset Cacheを音声providerとして接続すると、次の音声を同じ表示ライフサイクルに関連付けられます。
197
197
 
198
198
  - 表示開始時のフルボイス
199
199
  - `CHARACTER`/`WORD`/`LINE`/`BLOCK`を一つ進めるごとの効果音
@@ -205,7 +205,7 @@ Asset Managerを音声providerとして接続すると、次の音声を同じ
205
205
 
206
206
  | パッケージ | 責務 |
207
207
  | ------------------------------------------ | ------------------------------------------------------------------------------ |
208
- | `@kubohiroya/turbowarp-asset-manager` | 任意のImage/Audio capabilityをTurboWarp assetへ接続(画像解決・音声再生) |
208
+ | `@kubohiroya/turbowarp-asset-cache` | 任意のImage/Audio capabilityをTurboWarp assetへ接続(画像解決・音声再生) |
209
209
  | Bubble core(`composition`) | `BubbleTextCapability`契約、吹き出しsurface、配置、逐次表示、animation |
210
210
  | `@kubohiroya/turbowarp-svg-text` | 0.8.1のhost-neutralなplain/ruby layout、stock named-style handoff、文字幅計測 |
211
211
  | `@kubohiroya/turbowarp-async-input` | キー入力・タップをTemporary Variablesのruntime変数へ反映 |
@@ -213,7 +213,7 @@ Asset Managerを音声providerとして接続すると、次の音声を同じ
213
213
  | `@kubohiroya/turbowarp-bubble` | 吹き出しsurface、配置、逐次表示、say/think、表情レイヤー、animation、入力待機 |
214
214
  | アプリ/host | 必要に応じたアプリ固有の入力からcomposition APIへの変換 |
215
215
 
216
- Bubbleは依存パッケージを再exportしません。低レベルComposition APIは`textCapability`を必須の契約として受け取り、SVG Textに限定されません。TurboWarp adapterはstandalone SVG Text 0.10.0があればnamed-style handoffを使い、なければ直接依存するlayout compositionをproviderとして生成します。画像・音声・入力・条件評価はCapabilityとして差し替えられ、TurboWarp adapterではAsset Managerを遅延接続し、Composition APIでは`imageResolver`/`audio`をhostが任意に実装できます。Asset Managerを使う機能は画像だけでなく、フルボイス、タイプライター音、行・段落ごとの効果音などの外部メディアも対象にします。
216
+ Bubbleは依存パッケージを再exportしません。低レベルComposition APIは`textCapability`を必須の契約として受け取り、SVG Textに限定されません。TurboWarp adapterはstandalone SVG Text 0.10.0があればnamed-style handoffを使い、なければ直接依存するlayout compositionをproviderとして生成します。画像・音声・入力・条件評価はCapabilityとして差し替えられ、TurboWarp adapterではAsset Cacheを遅延接続し、Composition APIでは`imageResolver`/`audio`をhostが任意に実装できます。Asset Cacheを使う機能は画像だけでなく、フルボイス、タイプライター音、行・段落ごとの効果音などの外部メディアも対象にします。
217
217
 
218
218
  ### 自動改行と禁則処理の基盤
219
219
 
@@ -286,20 +286,20 @@ const reveal = normalizeBubbleReveal({ unit: "CHARACTER" });
286
286
  const chunks = splitBubbleText("A👩‍🚀B", reveal);
287
287
  ```
288
288
 
289
- SVG Text 0.10.0は既定のskin非依存文字providerとして通常dependencyに含まれます。別途インストールは不要です。standalone SVG Text 0.10.0を先に読み込むことは任意ですが、読み込むとproject blockで定義したstyleを公開handoff経由で再利用します。Bubbleが宣言するoptional peer dependencyの範囲はAsset Managerが`>=0.7.0 <1`、Async InputとRuntime Expressionがそれぞれ`>=0.3.0 <1`のままです。現在公開中の推奨版はAsset Manager 0.15.0、Async Input 0.7.0、Runtime Expression 0.6.0です。hostが独自の`svgOverlayTextCapability`を注入する場合も、Bubble自身が利用するSVG Text dependencyは0.8.1に固定されます。
289
+ SVG Text 0.10.0は既定のskin非依存文字providerとして通常dependencyに含まれます。別途インストールは不要です。standalone SVG Text 0.10.0を先に読み込むことは任意ですが、読み込むとproject blockで定義したstyleを公開handoff経由で再利用します。Bubbleが宣言するoptional peer dependencyの範囲はAsset Cacheが`>=0.1.0 <1`、Async InputとRuntime Expressionがそれぞれ`>=0.3.0 <1`のままです。現在公開中の推奨版はAsset Cache 0.1.0、Async Input 0.7.0、Runtime Expression 0.6.0です。hostが独自の`svgOverlayTextCapability`を注入する場合も、Bubble自身が利用するSVG Text dependencyは0.8.1に固定されます。
290
290
 
291
291
  `bubbleRenderBackend: "scratch-render"`へrollbackした場合も、standalone SVG Text拡張が未ロードなら同じ0.8.1 dependencyからskin版providerを生成します。standalone SVG Text拡張が既にロードされているhostでは、互換性のためその既存providerを引き続き使用します。
292
292
 
293
- 画像portrait、lip-sync、continue indicator、または音声アセットを使う場合はAsset Managerを追加します。`finish [UNIT] ...`ブロックにはRuntime Expressionが必要です。統合待機ブロック`wait with this bubble ...`にはAsync InputとRuntime Expressionの両方が必要です。
293
+ 画像portrait、lip-sync、continue indicator、または音声アセットを使う場合はAsset Cacheを追加します。`finish [UNIT] ...`ブロックにはRuntime Expressionが必要です。統合待機ブロック`wait with this bubble ...`にはAsync InputとRuntime Expressionの両方が必要です。
294
294
 
295
295
  ```sh
296
- pnpm add @kubohiroya/turbowarp-asset-manager \
296
+ pnpm add @kubohiroya/turbowarp-asset-cache \
297
297
  @kubohiroya/turbowarp-async-input \
298
298
  @kubohiroya/turbowarp-runtime-expression
299
299
  ```
300
300
 
301
301
  ```sh
302
- npm install @kubohiroya/turbowarp-asset-manager \
302
+ npm install @kubohiroya/turbowarp-asset-cache \
303
303
  @kubohiroya/turbowarp-async-input \
304
304
  @kubohiroya/turbowarp-runtime-expression
305
305
  ```
@@ -316,15 +316,15 @@ TurboWarp Bubbleの`dist/turbowarp-bubble.js`は、TurboWarpのrendererとtarget
316
316
 
317
317
  1. 入力待ちの例を使う場合は、TurboWarp Editorでプロジェクトを開き、拡張機能の追加からTemporary Variablesを追加します。
318
318
  2. 「カスタム拡張機能」を選び、サンドボックスなし(Run without sandbox)で実行できる状態にします。
319
- 3. portrait、blink、lip-sync、continue frames、音声を使う場合はAsset Manager 0.15.0を読み込みます。
319
+ 3. portrait、blink、lip-sync、continue frames、音声を使う場合はAsset Cache 0.1.0を読み込みます。
320
320
  4. `finish [UNIT] ...`にはRuntime Expression 0.6.0、conditionを使う待機またはclose policyにはAsync Input 0.7.0とRuntime Expression 0.6.0を読み込みます。timeoutだけのclose policyにはどちらも不要です。
321
- 5. 最後にBubble 0.12.0を読み込みます。SVG Text 0.10.0のlayout providerはBubble bundleに含まれます。
321
+ 5. 最後にBubble 0.13.0を読み込みます。SVG Text 0.10.0のlayout providerはBubble bundleに含まれます。
322
322
 
323
- 文字だけの最小構成はBubbleです。Temporary Variables、Asset Manager、Async Input、Runtime Expressionは、対応する機能を使わなければ追加しなくても構いません。Bubbleを読み込むと、基本の`say [MESSAGE]`/`think [MESSAGE]`ブロックはstyle定義なしですぐ使えます。それぞれ組み込みBubble style `say`/`think`を選び、各styleが本体形状とtail/trail形状を不可分な1つの外観として持ちます。どちらも予約text profile `default`を使います。named custom styleが必要な場合だけ`define bubble style`と`show [MESSAGE] with bubble style [STYLE]`を使います。それ以外のnamed text styleや、外形・配置・media・reveal・motionの明示設定はcustom profileになります。
323
+ 文字だけの最小構成はBubbleです。Temporary Variables、Asset Cache、Async Input、Runtime Expressionは、対応する機能を使わなければ追加しなくても構いません。Bubbleを読み込むと、基本の`say [MESSAGE]`/`think [MESSAGE]`ブロックはstyle定義なしですぐ使えます。それぞれ組み込みBubble style `say`/`think`を選び、各styleが本体形状とtail/trail形状を不可分な1つの外観として持ちます。どちらも予約text profile `default`を使います。named custom styleが必要な場合だけ`define bubble style`と`show [MESSAGE] with bubble style [STYLE]`を使います。それ以外のnamed text styleや、外形・配置・media・reveal・motionの明示設定はcustom profileになります。
324
324
 
325
325
  ```text
326
326
  # portrait/blink/lip-sync/continue/音声を使う場合だけ追加
327
- https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-manager@0.15.0/dist/asset-manager.js
327
+ https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-cache@0.1.0/dist/asset-cache.js
328
328
 
329
329
  # conditionを使う統合待機またはclose policyでAsync Inputを追加
330
330
  https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-async-input@0.7.0/dist/async-input.js
@@ -333,7 +333,7 @@ https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-async-input@0.7.0/dist/async-
333
333
  https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-runtime-expression@0.6.0/dist/runtime-expression.js
334
334
 
335
335
  # Bubble(必ず最後)
336
- https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.12.0/dist/turbowarp-bubble.js
336
+ https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.13.0/dist/turbowarp-bubble.js
337
337
  ```
338
338
 
339
339
  TurboWarpのカスタム拡張機能はURLからJavaScriptを読み込むため、初回読み込み時にネットワーク接続が必要です。開発用URLをunsandboxedとして読み込むには、server originを正確に`http://localhost:8000/`とする必要があります。`127.0.0.1`、`0.0.0.0`、ほかのportにはこの例外が適用されません。リポジトリrootで`python3 -m http.server 8000`を実行し、`http://localhost:8000/dist/turbowarp-bubble.js`を読み込んでください。別の方法として、カスタム拡張機能のfileまたはtext入力を選び、**サンドボックスなしで実行する**を有効にできます。`file://`で直接開いたファイルや、サンドボックス付きの拡張機能としては動作しません。host制約の詳細は[TurboWarpのunsandboxed拡張機能ドキュメント](https://docs.turbowarp.org/development/extensions/unsandboxed)を参照してください。
@@ -405,7 +405,7 @@ wait and close this bubble using close policy [advance]
405
405
 
406
406
  適用ブロックは開始時に名前付き定義をsnapshotします。待機中に同名policyを置換しても、その変更は次回の適用から有効です。timeoutだけのpolicyは現在のanimation modeを維持し、入力用拡張を必要としません。conditionを含むpolicyは`awaiting-continue`へ移り、既存の内蔵待機と同じくAsync InputとRuntime Expressionを使います。成立後は設定済みhide animationを実行してBubbleを解放します。Bubbleの置換、targetやprojectの停止、runtime破棄では待機中policyをcancelし、置換後のBubbleを閉じません。
407
407
 
408
- `ASSETS`はAsset Managerへ登録済みの名前をカンマ区切りで指定します。前後の空白は除去され、名前自体にカンマは使用できません。目パチと口パクは1フレーム以上、continue indicatorは2フレーム以上が必要で、空リストにすると設定を解除します。frame間隔は0より大きい有限値です。逐次表示間隔、animation時間、従来のwait timeoutには0も指定でき、逐次表示間隔の0は自動送りを、従来のtimeoutの0は時間制限を無効にします。close policyで明示的に選ぶtimeoutは0より大きい値にします。
408
+ `ASSETS`はAsset Cacheへ登録済みの名前をカンマ区切りで指定します。前後の空白は除去され、名前自体にカンマは使用できません。目パチと口パクは1フレーム以上、continue indicatorは2フレーム以上が必要で、空リストにすると設定を解除します。frame間隔は0より大きい有限値です。逐次表示間隔、animation時間、従来のwait timeoutには0も指定でき、逐次表示間隔の0は自動送りを、従来のtimeoutの0は時間制限を無効にします。close policyで明示的に選ぶtimeoutは0より大きい値にします。
409
409
 
410
410
  Bubbleには2つの組み込みBubble styleがあります。`say`はspeech本体とspeech tail、`think`はthought本体とround trailを持ち、本体とtail/trailは個別指定ではなく1つのvisual styleとして選びます。対応する短いブロックが各styleを自動選択するため、style定義ブロックもstyle入力も不要です。どちらも予約text profile `default`を使い、14px Helvetica、line height 16px、最大行幅170px、最小文字領域幅50px、padding 10px、corner radius 16px、白い本体、Scratch標準の文字色・border色で描画します。SVGの4px strokeを先に描き、その内側半分を白いfillで覆うことで、TurboWarp標準と同じ細い見かけの輪郭にします。Actor右側を優先し、右に収まらず左に収まる場合だけ反転します。Actor boundsへの追従、Stage上端・左右端のfence、数値block入力の整形、330文字上限、空文字でのcloseも標準`say`/`think`に揃えます。
411
411
 
@@ -560,7 +560,7 @@ close this bubble
560
560
 
561
561
  ### Composition API
562
562
 
563
- TurboWarp runtimeのrendererへ接続するhostでは、公開adapterを利用できます。既定ではstandalone SVG Text 0.10.0があればnamed-style handoffを使い、なければ内包layout compositionとSVG overlayを使用します。画像portrait、lip-sync、continue indicator、または音声アセットを使う場合だけ、Asset Managerを追加でロードしてください。
563
+ TurboWarp runtimeのrendererへ接続するhostでは、公開adapterを利用できます。既定ではstandalone SVG Text 0.10.0があればnamed-style handoffを使い、なければ内包layout compositionとSVG overlayを使用します。画像portrait、lip-sync、continue indicator、または音声アセットを使う場合だけ、Asset Cacheを追加でロードしてください。
564
564
 
565
565
  ```ts
566
566
  import { createTurboWarpBubbleComposition } from "@kubohiroya/turbowarp-bubble/turbowarp-adapter";
@@ -578,7 +578,7 @@ import {
578
578
  type BubbleTextCapability,
579
579
  } from "@kubohiroya/turbowarp-bubble/composition";
580
580
 
581
- // These are host-owned capabilities. They may be backed by Asset Manager,
581
+ // These are host-owned capabilities. They may be backed by Asset Cache,
582
582
  // another asset service, or local application code.
583
583
  declare const imageResolver: BubbleImageCapability;
584
584
  declare const textCapability: BubbleTextCapability;
@@ -593,7 +593,7 @@ const bubbles = createBubbleComposition({
593
593
 
594
594
  `declare`部分はサンプルを短くするための型宣言です。実際のhostでは、`BubbleTextCapability`(文字layout/描画・計測・解放)、`BubbleImageCapability`(画像名の解決)、`BubbleAudioCapability`(音声再生)、`BubbleSurfaceFactory`(外枠・text・portrait各targetの生成)を実装して渡します。`@kubohiroya/turbowarp-svg-text/composition`を使う場合は、skinを使うhostなら`createSvgTextCompositionCapability(createSvgTextComposition({ runtime }))`、SVG overlayなら`createSvgTextOverlayTextCapability(createSvgTextLayoutComposition())`で変換します。TurboWarp runtimeを使う場合は、これらを個別に実装せず`createTurboWarpBubbleComposition(runtime)`を使えます。
595
595
 
596
- テキストだけを表示する場合は、Asset Managerのimport、`createAssetManagerComposition()`、`imageResolver`プロパティをすべて省略できます。Asset Managerは画像だけでなく、`audio.voice`、`audio.reveal`、`audio.finish`によるフルボイス、表示単位ごとの効果音、完了音を登録・再生するメディア経路です。TurboWarp adapterはstock Asset Managerへ遅延接続し、低レベルComposition APIのhostは独自の`audio` capabilityを注入できます。
596
+ テキストだけを表示する場合は、Asset Cacheのimport、`createAssetManagerComposition()`、`imageResolver`プロパティをすべて省略できます。Asset Cacheは画像だけでなく、`audio.voice`、`audio.reveal`、`audio.finish`によるフルボイス、表示単位ごとの効果音、完了音を登録・再生するメディア経路です。TurboWarp adapterはstock Asset Cacheへ遅延接続し、低レベルComposition APIのhostは独自の`audio` capabilityを注入できます。
597
597
 
598
598
  `createSurface`が返すsurfaceは、次のtargetを持ちます。
599
599
 
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  `@kubohiroya/turbowarp-bubble` is an unsandboxed extension that manages TurboWarp `say` and `think` displays as separate text, character-expression, and input-waiting indicator layers. It also provides a composition API for using the same features directly from applications.
6
6
 
7
- The current release is Bubble 0.12.0. Its default rendering path is the skin-free SVG overlay backed by SVG Text 0.10.0. For the complete TurboWarp feature set, the currently recommended companion releases are Asset Manager 0.15.0, Async Input 0.7.0, and Runtime Expression 0.6.0. See the [0.11.0 release notes](docs/release-notes-0.11.0.md) for README and version consistency checks, the [0.10.0 release notes](docs/release-notes-0.10.0.md) for reusable named close policies, and the [0.9.0 release notes](docs/release-notes-0.9.0.md) for the built-in `say`/`think` styles.
7
+ The current release is Bubble 0.13.0. Its default rendering path is the skin-free SVG overlay backed by SVG Text 0.10.0. For the complete TurboWarp feature set, the currently recommended companion releases are Asset Cache 0.1.0, Async Input 0.7.0, and Runtime Expression 0.6.0. See the [0.13.0 release notes](docs/release-notes-0.13.0.md) for the Asset Cache migration, the [0.10.0 release notes](docs/release-notes-0.10.0.md) for reusable named close policies, and the [0.9.0 release notes](docs/release-notes-0.9.0.md) for the built-in `say`/`think` styles.
8
8
 
9
9
  ## How to read this README
10
10
 
@@ -40,7 +40,7 @@ The table below maps the 0.11.0 feature set to its public entry points. The stan
40
40
  | --------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------- |
41
41
  | Text rendering and wrapping | `BubbleTextCapability`, named styles, measured width, `maxWidth`, and UAX #14-compliant wrapping | `composition`, `turbowarp-adapter`, and extension blocks |
42
42
  | Progressive reveal | `CHARACTER` / `WORD` / `LINE` / `BLOCK`, delimiters, per-unit sound effects, and finish conditions | `composition`, lightweight `reveal` entry, and blocks |
43
- | Portrait | Independent base-image, `blink`, and `lip-sync` layers | Composition API and blocks through Asset Manager |
43
+ | Portrait | Independent base-image, `blink`, and `lip-sync` layers | Composition API and blocks through Asset Cache |
44
44
  | Bubble outline | Visual styles such as `NORMAL`, placement, tail, offset, and scale | Composition API, TurboWarp adapter, and blocks |
45
45
  | Display mode | `talking` / `awaiting-continue` / `idle` | `BubbleHandle.setAnimationMode()` and the matching block |
46
46
  | Show, active, and hide animations | `fadeIn`, `floatIn`, `shake`, `animateBubbleShape`, and others | Style settings, `BubbleHandle.animate()`, and blocks |
@@ -71,16 +71,16 @@ flowchart TB
71
71
  extension -."optional".-> input
72
72
  ```
73
73
 
74
- In this architecture, Bubble core refers only to the host-neutral `BubbleTextCapability` contract. By default, the TurboWarp adapter calls `createSvgTextLayoutComposition().layoutText()` from its direct dependency, `@kubohiroya/turbowarp-svg-text@0.10.0`, to obtain line layout and text widths without creating SVG skins. When the standalone SVG Text 0.10.0 extension is already loaded, Bubble instead adapts its public `getLayoutCapability()` so styles defined by project blocks retain their font, color, size, and alignment. The bubble outline, tail, portrait placement, and show and hide animations are outside SVG Text's responsibilities. A Composition API host can inject a different implementation as `textCapability`. Image resolution, audio playback, input, and condition evaluation are also separated into capabilities; Asset Manager, Async Input, and Runtime Expression are connected only when their corresponding features are used.
74
+ In this architecture, Bubble core refers only to the host-neutral `BubbleTextCapability` contract. By default, the TurboWarp adapter calls `createSvgTextLayoutComposition().layoutText()` from its direct dependency, `@kubohiroya/turbowarp-svg-text@0.10.0`, to obtain line layout and text widths without creating SVG skins. When the standalone SVG Text 0.10.0 extension is already loaded, Bubble instead adapts its public `getLayoutCapability()` so styles defined by project blocks retain their font, color, size, and alignment. The bubble outline, tail, portrait placement, and show and hide animations are outside SVG Text's responsibilities. A Composition API host can inject a different implementation as `textCapability`. Image resolution, audio playback, input, and condition evaluation are also separated into capabilities; Asset Cache, Async Input, and Runtime Expression are connected only when their corresponding features are used.
75
75
 
76
76
  ### Rendering backend (SVG overlay by default)
77
77
 
78
78
  The default value of `bubbleRenderBackend` is `"svg-overlay"`. Bubble places a shared SVG root over the stage canvas with `renderer.addOverlay(root, "scale")`, then renders the body, tail, text, portrait, corner clip, and continue indicator as DOM elements. Text uses host-neutral SVG Text 0.10.0 layout data, either from the loaded standalone extension's shared named-style registry or from Bubble's bundled fallback composition. On this default path, Bubble does not call `createDrawable()`, `createSVGSkin()`, or `createBitmapSkin()` to show bubbles, update text or styles, or run animations, so Bubble-originated work never enters scratch-render's `SVGSkin` / `Silhouette` path. `"scratch-render"` is used only when explicitly selected for compatibility or rollback.
79
79
 
80
- When the stock Asset Manager 0.15.0 extension is loaded before Bubble in TurboWarp, Bubble calls `runtime.ext_kubohiroyaassetmanager.getDOMImageCapability()` the first time a portrait or another image feature is used. It then lazily connects to the same registry populated by Asset Manager blocks. Asset Manager is not loaded when only text is used. A Composition API host can inject capabilities explicitly as follows.
80
+ When the stock Asset Cache 0.1.0 extension is loaded before Bubble in TurboWarp, Bubble calls `runtime.ext_kubohiroyaassetcache.getDOMImageCapability()` the first time a portrait or another image feature is used. It then lazily connects to the same registry populated by Asset Cache blocks. Asset Cache is not loaded when only text is used. A Composition API host can inject capabilities explicitly as follows.
81
81
 
82
82
  ```ts
83
- import { createAssetManagerComposition } from "@kubohiroya/turbowarp-asset-manager/composition";
83
+ import { createAssetManagerComposition } from "@kubohiroya/turbowarp-asset-cache/composition";
84
84
  import { createSvgTextLayoutComposition } from "@kubohiroya/turbowarp-svg-text/composition";
85
85
  import {
86
86
  createAssetManagerSvgOverlayImageCapability,
@@ -107,11 +107,11 @@ const bubbles = createTurboWarpBubbleComposition(runtime, {
107
107
  });
108
108
  ```
109
109
 
110
- When `svgOverlayTextCapability` is omitted and standalone SVG Text 0.10.0 is loaded, Bubble obtains its frozen `getLayoutCapability()` and resolves the exact named-style registry populated by SVG Text blocks. If standalone SVG Text is absent, Bubble creates its own SVG Text 0.10.0 layout composition and initializes `default` and each first-referenced text-style name with transparent-background defaults. If an older standalone extension is present without the public handoff, Bubble reports `BUBBLE-RUNTIME-004` instead of silently replacing project styles; explicit `svgOverlayUnsupportedBehavior: "fallback"` selects scratch-render. Supplying a capability directly overrides both automatic paths. For portraits and similar features, Bubble's `createAssetManagerSvgOverlayImageCapability()` converts generic Asset Manager DOM resources into Bubble's image contract. The dependency points one way, from Bubble to Asset Manager; Asset Manager does not refer to Bubble types or security markers. The adapter exposes only MIME types allowed by both packages, carries across the validated MIME type, intrinsic size, `blob:` URL, and `release()`, and adds Bubble metadata to sanitized SVG from Asset Manager. Bubble never inserts arbitrary SVG strings. It reconstructs only allowed elements and attributes, such as `path` and `group`, from the canonical body by using `createElementNS()`. It rejects `script`, event handlers, `foreignObject`, and external URLs. The overlay root uses `pointer-events: none` and `aria-hidden="true"`.
110
+ When `svgOverlayTextCapability` is omitted and standalone SVG Text 0.10.0 is loaded, Bubble obtains its frozen `getLayoutCapability()` and resolves the exact named-style registry populated by SVG Text blocks. If standalone SVG Text is absent, Bubble creates its own SVG Text 0.10.0 layout composition and initializes `default` and each first-referenced text-style name with transparent-background defaults. If an older standalone extension is present without the public handoff, Bubble reports `BUBBLE-RUNTIME-004` instead of silently replacing project styles; explicit `svgOverlayUnsupportedBehavior: "fallback"` selects scratch-render. Supplying a capability directly overrides both automatic paths. For portraits and similar features, Bubble's `createAssetManagerSvgOverlayImageCapability()` converts generic Asset Cache DOM resources into Bubble's image contract. The dependency points one way, from Bubble to Asset Cache; Asset Cache does not refer to Bubble types or security markers. The adapter exposes only MIME types allowed by both packages, carries across the validated MIME type, intrinsic size, `blob:` URL, and `release()`, and adds Bubble metadata to sanitized SVG from Asset Cache. Bubble never inserts arbitrary SVG strings. It reconstructs only allowed elements and attributes, such as `path` and `group`, from the canonical body by using `createElementNS()`. It rejects `script`, event handlers, `foreignObject`, and external URLs. The overlay root uses `pointer-events: none` and `aria-hidden="true"`.
111
111
 
112
- The default text provider is the directly depended-on SVG Text 0.10.0. Preserving styles from a separately loaded stock SVG Text extension requires its 0.8.1 `getLayoutCapability()`. Automatic image connection between stock extensions requires Asset Manager 0.15.0 or later, which exposes `getDOMImageCapability()`. The lower-level path that explicitly injects `resolveDOMImageResource()` from the Composition API is available with Asset Manager 0.12.0 or later.
112
+ The default text provider is the directly depended-on SVG Text 0.10.0. Preserving styles from a separately loaded stock SVG Text extension requires its 0.8.1 `getLayoutCapability()`. Automatic image connection between stock extensions requires Asset Cache 0.1.0 or later, which exposes `getDOMImageCapability()`. The lower-level path that explicitly injects `resolveDOMImageResource()` from the Composition API is available with Asset Cache 0.1.0 or later.
113
113
 
114
- The skin-independent contracts for SVG Text and Asset Manager are published in [turbowarp-svg-text#26](https://github.com/kubohiroya/turbowarp-svg-text/issues/26), [turbowarp-asset-manager#103](https://github.com/kubohiroya/turbowarp-asset-manager/issues/103), and the stock registry handoff in [turbowarp-asset-manager#106](https://github.com/kubohiroya/turbowarp-asset-manager/issues/106). Bubble uses only public upstream APIs and never substitutes private-field access or extraction from skins. Selecting `svg-overlay` on a host without the overlay API returns `BUBBLE-RUNTIME-004`. Using images without either Asset Manager 0.15.0's public capability or an explicitly injected capability returns `BUBBLE-RUNTIME-002`. Bubble falls back to `scratch-render` on a host without the overlay API only when `svgOverlayUnsupportedBehavior: "fallback"` is explicitly specified.
114
+ The skin-independent contracts for SVG Text and Asset Cache are published in [turbowarp-svg-text#26](https://github.com/kubohiroya/turbowarp-svg-text/issues/26), [turbowarp-asset-manager#103](https://github.com/kubohiroya/turbowarp-asset-manager/issues/103), and the stock registry handoff in [turbowarp-asset-manager#106](https://github.com/kubohiroya/turbowarp-asset-manager/issues/106). Bubble uses only public upstream APIs and never substitutes private-field access or extraction from skins. Selecting `svg-overlay` on a host without the overlay API returns `BUBBLE-RUNTIME-004`. Using images without either Asset Cache 0.1.0's public capability or an explicitly injected capability returns `BUBBLE-RUNTIME-002`. Bubble falls back to `scratch-render` on a host without the overlay API only when `svgOverlayUnsupportedBehavior: "fallback"` is explicitly specified.
115
115
 
116
116
  | Host / capture method | `scratch-render` | `svg-overlay` |
117
117
  | ------------------------------------------ | ---------------- | ---------------------------------------------------------------------------------------- |
@@ -193,7 +193,7 @@ When `CONDITION` becomes true, Bubble reveals every remaining unit. If it does n
193
193
 
194
194
  `finish` is available as `handle.finish({ unit, condition, timeoutSeconds })` in the public Composition API and as the TurboWarp `finish [UNIT] ...` block. It completes progressive reveal and settles the audio and waiting state when the condition succeeds or the timeout expires.
195
195
 
196
- When Asset Manager is connected as the audio provider, the following audio can share the same display lifecycle:
196
+ When Asset Cache is connected as the audio provider, the following audio can share the same display lifecycle:
197
197
 
198
198
  - Full voice playback when display starts
199
199
  - A sound effect each time one `CHARACTER`, `WORD`, `LINE`, or `BLOCK` unit is revealed
@@ -205,7 +205,7 @@ Per-unit effects play named audio assets; they do not synthesize the displayed s
205
205
 
206
206
  | Package | Responsibility |
207
207
  | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
208
- | `@kubohiroya/turbowarp-asset-manager` | Connect optional Image / Audio capabilities to TurboWarp assets (image resolution and audio playback) |
208
+ | `@kubohiroya/turbowarp-asset-cache` | Connect optional Image / Audio capabilities to TurboWarp assets (image resolution and audio playback) |
209
209
  | Bubble core (`composition`) | `BubbleTextCapability` contract, bubble surfaces, placement, progressive reveal, and animation |
210
210
  | `@kubohiroya/turbowarp-svg-text` | Host-neutral plain / ruby layout, stock named-style handoff, and text-width measurement in version 0.8.1 |
211
211
  | `@kubohiroya/turbowarp-async-input` | Reflect key and tap input in Temporary Variables runtime variables |
@@ -213,7 +213,7 @@ Per-unit effects play named audio assets; they do not synthesize the displayed s
213
213
  | `@kubohiroya/turbowarp-bubble` | Bubble surfaces, placement, progressive reveal, say / think, expression layers, animation, and input waiting |
214
214
  | Application / host | Convert application-specific input to Composition API calls as needed |
215
215
 
216
- Bubble does not re-export its dependencies. The lower-level Composition API requires `textCapability` as a contract and is not limited to SVG Text. The TurboWarp adapter uses the separately loaded SVG Text 0.10.0 named-style handoff when available, otherwise it creates the directly depended-on layout composition as its provider. Image, audio, input, and condition-evaluation capabilities are replaceable; the TurboWarp adapter connects Asset Manager lazily, while Composition API hosts can implement `imageResolver` and `audio` themselves. Features that use Asset Manager cover external media beyond images, including full voice clips, typewriter sounds, and per-line or per-paragraph effects.
216
+ Bubble does not re-export its dependencies. The lower-level Composition API requires `textCapability` as a contract and is not limited to SVG Text. The TurboWarp adapter uses the separately loaded SVG Text 0.10.0 named-style handoff when available, otherwise it creates the directly depended-on layout composition as its provider. Image, audio, input, and condition-evaluation capabilities are replaceable; the TurboWarp adapter connects Asset Cache lazily, while Composition API hosts can implement `imageResolver` and `audio` themselves. Features that use Asset Cache cover external media beyond images, including full voice clips, typewriter sounds, and per-line or per-paragraph effects.
217
217
 
218
218
  ### Automatic wrapping and line-breaking rules
219
219
 
@@ -286,20 +286,20 @@ const reveal = normalizeBubbleReveal({ unit: "CHARACTER" });
286
286
  const chunks = splitBubbleText("A👩‍🚀B", reveal);
287
287
  ```
288
288
 
289
- SVG Text 0.10.0 is included as a regular dependency and serves as the default skin-independent text provider. You do not need to install it separately. Loading the standalone SVG Text 0.10.0 extension first is optional, but doing so lets Bubble reuse styles defined by its project blocks through the public handoff. Bubble's declared optional peer ranges remain `>=0.7.0 <1` for Asset Manager and `>=0.3.0 <1` for both Async Input and Runtime Expression; the currently published and recommended extension versions are Asset Manager 0.15.0, Async Input 0.7.0, and Runtime Expression 0.6.0. Even when a host injects a custom `svgOverlayTextCapability`, Bubble's own SVG Text dependency remains fixed at version 0.8.1.
289
+ SVG Text 0.10.0 is included as a regular dependency and serves as the default skin-independent text provider. You do not need to install it separately. Loading the standalone SVG Text 0.10.0 extension first is optional, but doing so lets Bubble reuse styles defined by its project blocks through the public handoff. Bubble's declared optional peer ranges remain `>=0.1.0 <1` for Asset Cache and `>=0.3.0 <1` for both Async Input and Runtime Expression; the currently published and recommended extension versions are Asset Cache 0.1.0, Async Input 0.7.0, and Runtime Expression 0.6.0. Even when a host injects a custom `svgOverlayTextCapability`, Bubble's own SVG Text dependency remains fixed at version 0.8.1.
290
290
 
291
291
  After rolling back to `bubbleRenderBackend: "scratch-render"`, Bubble creates a skin-based provider from the same 0.8.1 dependency if the standalone SVG Text extension is not loaded. On a host where the standalone SVG Text extension is already loaded, Bubble continues using that existing provider for compatibility.
292
292
 
293
- Add Asset Manager to use image portraits, lip-sync, continue indicators, or audio assets. The `finish [UNIT] ...` block requires Runtime Expression. The integrated `wait with this bubble ...` block requires both Async Input and Runtime Expression.
293
+ Add Asset Cache to use image portraits, lip-sync, continue indicators, or audio assets. The `finish [UNIT] ...` block requires Runtime Expression. The integrated `wait with this bubble ...` block requires both Async Input and Runtime Expression.
294
294
 
295
295
  ```sh
296
- pnpm add @kubohiroya/turbowarp-asset-manager \
296
+ pnpm add @kubohiroya/turbowarp-asset-cache \
297
297
  @kubohiroya/turbowarp-async-input \
298
298
  @kubohiroya/turbowarp-runtime-expression
299
299
  ```
300
300
 
301
301
  ```sh
302
- npm install @kubohiroya/turbowarp-asset-manager \
302
+ npm install @kubohiroya/turbowarp-asset-cache \
303
303
  @kubohiroya/turbowarp-async-input \
304
304
  @kubohiroya/turbowarp-runtime-expression
305
305
  ```
@@ -316,15 +316,15 @@ TurboWarp Bubble's `dist/turbowarp-bubble.js` is an **unsandboxed custom extensi
316
316
 
317
317
  1. For the input-wait example, open your project in the TurboWarp Editor and add Temporary Variables from the extension library.
318
318
  2. Select “Custom Extension” and enable Run without sandbox.
319
- 3. Load Asset Manager 0.15.0 if you use portraits, blinking, lip-sync, continue frames, or audio.
319
+ 3. Load Asset Cache 0.1.0 if you use portraits, blinking, lip-sync, continue frames, or audio.
320
320
  4. Load Runtime Expression 0.6.0 for `finish [UNIT] ...`; load both Async Input 0.7.0 and Runtime Expression 0.6.0 for condition-based waits and close policies. A timeout-only close policy needs neither extension.
321
- 5. Load Bubble 0.12.0 last. The SVG Text 0.10.0 layout provider is included in the Bubble bundle.
321
+ 5. Load Bubble 0.13.0 last. The SVG Text 0.10.0 layout provider is included in the Bubble bundle.
322
322
 
323
- Bubble alone is the minimum configuration for text-only use. Temporary Variables, Asset Manager, Async Input, and Runtime Expression can be omitted when you do not use the features they support. After loading Bubble, its basic `say [MESSAGE]` and `think [MESSAGE]` blocks work immediately without a style definition. They select the built-in Bubble styles `say` and `think`, respectively. Each style binds its body shape and tail/trail shape as one visual choice, and both use the reserved text profile `default`. Use `define bubble style` and `show [MESSAGE] with bubble style [STYLE]` only when you need a named custom style. Other named text styles and every explicit body, placement, media, reveal, or motion setting select the custom profile.
323
+ Bubble alone is the minimum configuration for text-only use. Temporary Variables, Asset Cache, Async Input, and Runtime Expression can be omitted when you do not use the features they support. After loading Bubble, its basic `say [MESSAGE]` and `think [MESSAGE]` blocks work immediately without a style definition. They select the built-in Bubble styles `say` and `think`, respectively. Each style binds its body shape and tail/trail shape as one visual choice, and both use the reserved text profile `default`. Use `define bubble style` and `show [MESSAGE] with bubble style [STYLE]` only when you need a named custom style. Other named text styles and every explicit body, placement, media, reveal, or motion setting select the custom profile.
324
324
 
325
325
  ```text
326
326
  # Add only when using portraits, blink, lip-sync, continue, or audio
327
- https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-manager@0.15.0/dist/asset-manager.js
327
+ https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-cache@0.1.0/dist/asset-cache.js
328
328
 
329
329
  # Add Async Input for integrated condition waits and close policies
330
330
  https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-async-input@0.7.0/dist/async-input.js
@@ -333,7 +333,7 @@ https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-async-input@0.7.0/dist/async-
333
333
  https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-runtime-expression@0.6.0/dist/runtime-expression.js
334
334
 
335
335
  # Bubble (always load last)
336
- https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.12.0/dist/turbowarp-bubble.js
336
+ https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.13.0/dist/turbowarp-bubble.js
337
337
  ```
338
338
 
339
339
  TurboWarp custom extensions load JavaScript from URLs, so a network connection is required the first time they are loaded. For an unsandboxed development URL, TurboWarp requires the server origin to be exactly `http://localhost:8000/`; `127.0.0.1`, `0.0.0.0`, and other ports do not receive this exception. From the repository root, run `python3 -m http.server 8000`, then load `http://localhost:8000/dist/turbowarp-bubble.js`. Alternatively, choose the custom-extension file or text input and enable **Run extension without sandbox**. The extension does not work when opened directly with `file://` or when run as a sandboxed extension. See [TurboWarp's unsandboxed extension documentation](https://docs.turbowarp.org/development/extensions/unsandboxed) for the host restrictions.
@@ -405,7 +405,7 @@ wait and close this bubble using close policy [advance]
405
405
 
406
406
  The apply block snapshots the named definition when it starts. Replacing the same policy while it is waiting therefore affects only later applications. Timeout-only policies leave the Bubble in its current animation mode and require no input extension. Policies with a condition enter `awaiting-continue` and use Async Input plus Runtime Expression in the same way as the integrated wait block. Completion runs the configured hide animation and releases the Bubble. Replacing the Bubble, stopping its target or the project, or disposing the runtime cancels the pending policy without closing a replacement Bubble.
407
407
 
408
- `ASSETS` is a comma-separated list of names registered with Asset Manager; surrounding whitespace is removed, and names cannot contain commas. Blink and lip-sync accept one or more frames, continue indicators require at least two, and an empty list removes the setting. Frame intervals must be finite and greater than zero. Reveal intervals, animation durations, and the legacy wait timeout accept zero; a zero reveal interval disables automatic advance, while a zero legacy timeout disables the time limit. A timeout selected explicitly by a close policy must be greater than zero.
408
+ `ASSETS` is a comma-separated list of names registered with Asset Cache; surrounding whitespace is removed, and names cannot contain commas. Blink and lip-sync accept one or more frames, continue indicators require at least two, and an empty list removes the setting. Frame intervals must be finite and greater than zero. Reveal intervals, animation durations, and the legacy wait timeout accept zero; a zero reveal interval disables automatic advance, while a zero legacy timeout disables the time limit. A timeout selected explicitly by a close policy must be greater than zero.
409
409
 
410
410
  Bubble provides two built-in Bubble styles. `say` owns the speech body and speech tail; `think` owns the thought body and round trail. The body and tail/trail are one visual-style choice rather than independently selected properties. The matching short block selects each style automatically, so neither a style-definition block nor a style input is required. Both styles use the reserved text profile `default`: 14px Helvetica, 16px line height, a 170px maximum line width, 50px minimum text width, 10px padding, 16px corners, a white fill, and Scratch text/stroke colors. The 4px SVG stroke is painted before the white fill, which covers its inner half and leaves the same thin visible outline as TurboWarp's standard bubble. The profile starts on the Actor's right, flips to the left only when that side fits, follows Actor bounds, fences the Stage top and sides, formats numeric block inputs like Scratch, limits text to 330 characters, and closes on an empty block input.
411
411
 
@@ -560,7 +560,7 @@ Bubble automatically releases its owned timers, overlay DOM, and image leases wh
560
560
 
561
561
  ### Composition API
562
562
 
563
- Hosts that connect to a TurboWarp runtime renderer can use the public adapter. By default, it uses the SVG Text 0.10.0 named-style handoff when a standalone extension is loaded, otherwise its bundled layout composition, together with an SVG overlay. Load Asset Manager in addition only when using image portraits, lip-sync, continue indicators, or audio assets.
563
+ Hosts that connect to a TurboWarp runtime renderer can use the public adapter. By default, it uses the SVG Text 0.10.0 named-style handoff when a standalone extension is loaded, otherwise its bundled layout composition, together with an SVG overlay. Load Asset Cache in addition only when using image portraits, lip-sync, continue indicators, or audio assets.
564
564
 
565
565
  ```ts
566
566
  import { createTurboWarpBubbleComposition } from "@kubohiroya/turbowarp-bubble/turbowarp-adapter";
@@ -578,7 +578,7 @@ import {
578
578
  type BubbleTextCapability,
579
579
  } from "@kubohiroya/turbowarp-bubble/composition";
580
580
 
581
- // These are host-owned capabilities. They may be backed by Asset Manager,
581
+ // These are host-owned capabilities. They may be backed by Asset Cache,
582
582
  // another asset service, or local application code.
583
583
  declare const imageResolver: BubbleImageCapability;
584
584
  declare const textCapability: BubbleTextCapability;
@@ -593,7 +593,7 @@ const bubbles = createBubbleComposition({
593
593
 
594
594
  The `declare` lines are type declarations that keep the example short. In a real host, implement and pass `BubbleTextCapability` (text layout, rendering, measurement, and release), `BubbleImageCapability` (image-name resolution), `BubbleAudioCapability` (audio playback), and `BubbleSurfaceFactory` (creation of targets for the outline, text, and portrait). When using `@kubohiroya/turbowarp-svg-text/composition`, adapt it with `createSvgTextCompositionCapability(createSvgTextComposition({ runtime }))` for a skin-based host or `createSvgTextOverlayTextCapability(createSvgTextLayoutComposition())` for an SVG overlay. With a TurboWarp runtime, use `createTurboWarpBubbleComposition(runtime)` instead of implementing these pieces individually.
595
595
 
596
- For text-only display, omit the Asset Manager import, `createAssetManagerComposition()`, and the `imageResolver` property. Asset Manager is a media path not only for images but also for registering and playing full voice clips, per-unit reveal sounds, and finish cues through `audio.voice`, `audio.reveal`, and `audio.finish`. The TurboWarp adapter connects the stock Asset Manager lazily; a lower-level Composition API host can instead inject its own `audio` capability.
596
+ For text-only display, omit the Asset Cache import, `createAssetManagerComposition()`, and the `imageResolver` property. Asset Cache is a media path not only for images but also for registering and playing full voice clips, per-unit reveal sounds, and finish cues through `audio.voice`, `audio.reveal`, and `audio.finish`. The TurboWarp adapter connects the stock Asset Cache lazily; a lower-level Composition API host can instead inject its own `audio` capability.
597
597
 
598
598
  The surface returned by `createSurface` has the following targets.
599
599
 
@@ -6633,11 +6633,11 @@ function ls(e) {
6633
6633
  }));
6634
6634
  }
6635
6635
  function us(e) {
6636
- if (!ns(e) || typeof e.isLoaded != "function" || typeof e.getAssetMimeType != "function" || typeof e.resolveSkin != "function") throw new $("BUBBLE-RUNTIME-002", "Bubble image assets require an imageResolver capability. Load @kubohiroya/turbowarp-asset-manager or provide options.imageResolver before using image features.");
6636
+ if (!ns(e) || typeof e.isLoaded != "function" || typeof e.getAssetMimeType != "function" || typeof e.resolveSkin != "function") throw new $("BUBBLE-RUNTIME-002", "Bubble image assets require an imageResolver capability. Load @kubohiroya/turbowarp-asset-cache or provide options.imageResolver before using image features.");
6637
6637
  return e;
6638
6638
  }
6639
6639
  function ds(e) {
6640
- if (!ns(e) || typeof e.getDOMImageCapability != "function") throw new $("BUBBLE-RUNTIME-002", "Bubble SVG overlay image assets require @kubohiroya/turbowarp-asset-manager 0.12.1 or a host-provided options.svgOverlayImageCapability.");
6640
+ if (!ns(e) || typeof e.getDOMImageCapability != "function") throw new $("BUBBLE-RUNTIME-002", "Bubble SVG overlay image assets require @kubohiroya/turbowarp-asset-cache 0.1.0 or a host-provided options.svgOverlayImageCapability.");
6641
6641
  let t = e.getDOMImageCapability();
6642
6642
  if (!ns(t) || typeof t.isRegistered != "function" || typeof t.getMimeType != "function" || typeof t.resolveDOMImageResource != "function") throw new $("BUBBLE-RUNTIME-002", "Asset Manager did not provide a valid DOM image capability.");
6643
6643
  return t;
@@ -7017,69 +7017,69 @@ function bs(e, t = {}) {
7017
7017
  let u = i === "svg-overlay" && l === void 0 ? "svg-overlay" : "scratch-render", d = t.scheduler ?? {
7018
7018
  setTimeout: (e, t) => globalThis.setTimeout(e, t),
7019
7019
  clearTimeout: (e) => globalThis.clearTimeout(e)
7020
- }, f = () => us(n.ext_kubohiroyaassetmanager), p, m = () => (p ??= ds(n.ext_kubohiroyaassetmanager), p), h;
7020
+ }, f = n.ext_kubohiroyaassetcache ?? n.ext_kubohiroyaassetmanager, p = () => us(f), m, h = () => (m ??= ds(f), m), g;
7021
7021
  if (u === "svg-overlay") try {
7022
- h = Po(a, r);
7022
+ g = Po(a, r);
7023
7023
  } catch (e) {
7024
7024
  throw new $("BUBBLE-RUNTIME-004", `Bubble SVG overlay text capability is invalid: ${e instanceof Error ? e.message : String(e)}`);
7025
7025
  }
7026
- else if (t.textCapability !== void 0) h = t.textCapability;
7026
+ else if (t.textCapability !== void 0) g = t.textCapability;
7027
7027
  else try {
7028
- h = n.ext_kubohiroyasvgtext === void 0 ? ls(n) : eo(n.ext_kubohiroyasvgtext);
7028
+ g = n.ext_kubohiroyasvgtext === void 0 ? ls(n) : eo(n.ext_kubohiroyasvgtext);
7029
7029
  } catch (e) {
7030
7030
  throw new $("BUBBLE-RUNTIME-003", `Bubble could not initialize the scratch-render text provider: ${e instanceof Error ? e.message : String(e)}`);
7031
7031
  }
7032
- let g;
7032
+ let _;
7033
7033
  if (u === "svg-overlay") try {
7034
- g = zo(t.svgOverlayImageCapability ?? lo(Object.freeze({
7034
+ _ = zo(t.svgOverlayImageCapability ?? lo(Object.freeze({
7035
7035
  isRegistered(e) {
7036
- return m().isRegistered(e);
7036
+ return h().isRegistered(e);
7037
7037
  },
7038
7038
  getMimeType(e) {
7039
- return m().getMimeType(e);
7039
+ return h().getMimeType(e);
7040
7040
  },
7041
7041
  resolveDOMImageResource(e) {
7042
- return m().resolveDOMImageResource(e);
7042
+ return h().resolveDOMImageResource(e);
7043
7043
  }
7044
7044
  })));
7045
7045
  } catch (e) {
7046
7046
  throw new $("BUBBLE-RUNTIME-004", `Bubble SVG overlay image capability is invalid: ${e instanceof Error ? e.message : String(e)}`);
7047
7047
  }
7048
- else g = t.imageResolver ?? {
7048
+ else _ = t.imageResolver ?? {
7049
7049
  isRegistered(e) {
7050
- return f().isLoaded({ NAME: e });
7050
+ return p().isLoaded({ NAME: e });
7051
7051
  },
7052
7052
  getMimeType(e) {
7053
- return f().getAssetMimeType({ NAME: e });
7053
+ return p().getAssetMimeType({ NAME: e });
7054
7054
  },
7055
7055
  async applyToTarget(e, t) {
7056
7056
  let i = t.drawableID;
7057
7057
  if (!Number.isInteger(i) || i < 0) throw new $("BUBBLE-RUNTIME-001", "Bubble image target drawable is invalid.");
7058
- let a = await f().resolveSkin(e);
7058
+ let a = await p().resolveSkin(e);
7059
7059
  if (!ns(a) || !Number.isInteger(a.skinId) || a.skinId < 0) throw new $("BUBBLE-RUNTIME-002", `Asset Manager did not resolve an image skin: ${String(e)}`);
7060
7060
  r.updateDrawableSkinId(i, a.skinId), n.requestRedraw?.();
7061
7061
  }
7062
7062
  };
7063
- let _ = t.audio ?? {
7063
+ let v = t.audio ?? {
7064
7064
  isRegistered(e) {
7065
- return f().isLoaded({ NAME: e });
7065
+ return p().isLoaded({ NAME: e });
7066
7066
  },
7067
7067
  getMimeType(e) {
7068
- return f().getAssetMimeType({ NAME: e });
7068
+ return p().getAssetMimeType({ NAME: e });
7069
7069
  },
7070
7070
  async playSound(e, t = {}) {
7071
- let n = f(), r = t.untilDone ? n?.playSoundUntilDone : n?.playSound;
7071
+ let n = p(), r = t.untilDone ? n?.playSoundUntilDone : n?.playSound;
7072
7072
  if (typeof r != "function") throw new $("BUBBLE-RUNTIME-002", "TurboWarp-Asset-Manager does not provide audio playback.");
7073
7073
  await r.call(n, { NAME: e });
7074
7074
  }
7075
- }, v = u === "svg-overlay" ? Bo(r, c) : void 0;
7075
+ }, y = u === "svg-overlay" ? Bo(r, c) : void 0;
7076
7076
  return qa({
7077
- ...g === void 0 ? {} : { imageResolver: g },
7078
- audio: _,
7079
- textCapability: h,
7077
+ ..._ === void 0 ? {} : { imageResolver: _ },
7078
+ audio: v,
7079
+ textCapability: g,
7080
7080
  createSurface({ actor: e, actorKey: t, kind: r, style: i }) {
7081
7081
  if (!ns(e) || typeof e.id != "string") throw new $("BUBBLE-RUNTIME-001", "Bubble actor target is invalid.");
7082
- return u === "svg-overlay" ? Yo(v, e, t, r, i, d) : ys(n, e, t, r, i, d);
7082
+ return u === "svg-overlay" ? Yo(y, e, t, r, i, d) : ys(n, e, t, r, i, d);
7083
7083
  },
7084
7084
  ...t.scheduler === void 0 ? {} : { scheduler: t.scheduler },
7085
7085
  ...t.onAnimationError === void 0 ? {} : { onAnimationError: t.onAnimationError }
@@ -12002,11 +12002,11 @@
12002
12002
  }));
12003
12003
  }
12004
12004
  function requireAssetManager(value) {
12005
- if (!isRecord(value) || typeof value.isLoaded !== "function" || typeof value.getAssetMimeType !== "function" || typeof value.resolveSkin !== "function") throw new BubbleRuntimeAdapterError("BUBBLE-RUNTIME-002", "Bubble image assets require an imageResolver capability. Load @kubohiroya/turbowarp-asset-manager or provide options.imageResolver before using image features.");
12005
+ if (!isRecord(value) || typeof value.isLoaded !== "function" || typeof value.getAssetMimeType !== "function" || typeof value.resolveSkin !== "function") throw new BubbleRuntimeAdapterError("BUBBLE-RUNTIME-002", "Bubble image assets require an imageResolver capability. Load @kubohiroya/turbowarp-asset-cache or provide options.imageResolver before using image features.");
12006
12006
  return value;
12007
12007
  }
12008
12008
  function requireAssetManagerDOMImageCapability(value) {
12009
- if (!isRecord(value) || typeof value.getDOMImageCapability !== "function") throw new BubbleRuntimeAdapterError("BUBBLE-RUNTIME-002", "Bubble SVG overlay image assets require @kubohiroya/turbowarp-asset-manager 0.12.1 or a host-provided options.svgOverlayImageCapability.");
12009
+ if (!isRecord(value) || typeof value.getDOMImageCapability !== "function") throw new BubbleRuntimeAdapterError("BUBBLE-RUNTIME-002", "Bubble SVG overlay image assets require @kubohiroya/turbowarp-asset-cache 0.1.0 or a host-provided options.svgOverlayImageCapability.");
12010
12010
  const capability = value.getDOMImageCapability();
12011
12011
  if (!isRecord(capability) || typeof capability.isRegistered !== "function" || typeof capability.getMimeType !== "function" || typeof capability.resolveDOMImageResource !== "function") throw new BubbleRuntimeAdapterError("BUBBLE-RUNTIME-002", "Asset Manager did not provide a valid DOM image capability.");
12012
12012
  return capability;
@@ -12614,10 +12614,11 @@
12614
12614
  setTimeout: (callback, milliseconds) => globalThis.setTimeout(callback, milliseconds),
12615
12615
  clearTimeout: (handle) => globalThis.clearTimeout(handle)
12616
12616
  };
12617
- const getAssetExtension = () => requireAssetManager(runtime.ext_kubohiroyaassetmanager);
12617
+ const runtimeAssetExtension = runtime.ext_kubohiroyaassetcache ?? runtime.ext_kubohiroyaassetmanager;
12618
+ const getAssetExtension = () => requireAssetManager(runtimeAssetExtension);
12618
12619
  let assetManagerDOMImages;
12619
12620
  const getAssetManagerDOMImages = () => {
12620
- assetManagerDOMImages ?? (assetManagerDOMImages = requireAssetManagerDOMImageCapability(runtime.ext_kubohiroyaassetmanager));
12621
+ assetManagerDOMImages ?? (assetManagerDOMImages = requireAssetManagerDOMImageCapability(runtimeAssetExtension));
12621
12622
  return assetManagerDOMImages;
12622
12623
  };
12623
12624
  let textCapability;
@@ -12744,7 +12745,7 @@
12744
12745
  textStyle: "default"
12745
12746
  })]);
12746
12747
  var EXTENSION_DOCS_URI = "https://kubohiroya.github.io/turbowarp-bubble/";
12747
- var EXTENSION_VERSION = "0.12.0";
12748
+ var EXTENSION_VERSION = "0.13.0";
12748
12749
  var BLOCK_ICON_URI = `data:image/svg+xml,${encodeURIComponent("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\"><path fill=\"none\" stroke=\"#fff\" stroke-width=\"5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M12 13h40a5 5 0 0 1 5 5v23a5 5 0 0 1-5 5H30L17 55v-9h-5a5 5 0 0 1-5-5V18a5 5 0 0 1 5-5Z\"/><g fill=\"#fff\"><circle cx=\"23\" cy=\"30\" r=\"3\"/><circle cx=\"32\" cy=\"30\" r=\"3\"/><circle cx=\"41\" cy=\"30\" r=\"3\"/></g></svg>")}`;
12749
12750
  function extensionError(message) {
12750
12751
  const error = /* @__PURE__ */ new Error(`[Bubble] ${message}`);
@@ -46,7 +46,7 @@ export interface TurboWarpAssetManagerExtension {
46
46
  getAssetMimeType(args: Readonly<{
47
47
  NAME: unknown;
48
48
  }>): string;
49
- /** Available from Asset Manager 0.12.1 for the skin-free overlay path. */
49
+ /** Public skin-free overlay path provided by Asset Cache. */
50
50
  getDOMImageCapability?(): AssetManagerDOMImageCapability;
51
51
  playSound?(args: Readonly<{
52
52
  NAME: unknown;
@@ -62,6 +62,8 @@ export interface TurboWarpAssetManagerExtension {
62
62
  }
63
63
  export interface TurboWarpBubbleRuntime {
64
64
  readonly renderer: TurboWarpBubbleRenderer;
65
+ readonly ext_kubohiroyaassetcache?: TurboWarpAssetManagerExtension;
66
+ /** Deprecated compatibility lookup for projects that have not migrated their extension ID. */
65
67
  readonly ext_kubohiroyaassetmanager?: TurboWarpAssetManagerExtension;
66
68
  readonly ext_kubohiroyasvgtext?: TurboWarpSvgTextExtension;
67
69
  requestRedraw?(): void;
@@ -8,21 +8,21 @@
8
8
 
9
9
  ## 1. 必要な拡張機能
10
10
 
11
- 入力待ちを含む完全な例では5つの拡張機能を使います。TurboWarpの拡張機能ライブラリからTemporary Variablesを追加し、選択した機能に必要なカスタム拡張機能を「サンドボックスなしで実行」を許可して読み込みます。BubbleはSVG Text 0.10.0のhost-neutral layout providerをbundle内に持ち、既定のSVG overlayではskinを作りません。portrait、lip-sync、continue indicator、フルボイス、表示効果音などのメディアアセットにはAsset Managerが必要です。Async InputとRuntime Expressionはconditionを使うBubble待機またはclose policyで必要です。timeoutだけのclose policyにはどちらも不要です。
11
+ 入力待ちを含む完全な例では5つの拡張機能を使います。TurboWarpの拡張機能ライブラリからTemporary Variablesを追加し、選択した機能に必要なカスタム拡張機能を「サンドボックスなしで実行」を許可して読み込みます。BubbleはSVG Text 0.10.0のhost-neutral layout providerをbundle内に持ち、既定のSVG overlayではskinを作りません。portrait、lip-sync、continue indicator、フルボイス、表示効果音などのメディアアセットにはAsset Cacheが必要です。Async InputとRuntime Expressionはconditionを使うBubble待機またはclose policyで必要です。timeoutだけのclose policyにはどちらも不要です。
12
12
 
13
13
  | 順番 | 拡張機能 | 読み込み先 |
14
14
  | ---: | ------------------------ | -------------------------------------------------------------------------------------------------------- |
15
15
  | 1 | Temporary Variables | TurboWarpの拡張機能ライブラリから追加 |
16
16
  | 2 | Async Input 0.7.0 | `https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-async-input@0.7.0/dist/async-input.js` |
17
17
  | 3 | Runtime Expression 0.6.0 | `https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-runtime-expression@0.6.0/dist/runtime-expression.js` |
18
- | 4 | Asset Manager 0.15.0 | `https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-manager@0.15.0/dist/asset-manager.js` |
19
- | 5 | Bubble 0.12.0 | `https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.12.0/dist/turbowarp-bubble.js` |
18
+ | 4 | Asset Cache 0.1.0 | `https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-cache@0.1.0/dist/asset-cache.js` |
19
+ | 5 | Bubble 0.13.0 | `https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.13.0/dist/turbowarp-bubble.js` |
20
20
 
21
- 開発中のBubbleを試す場合は、このリポジトリの`dist/turbowarp-bubble.js`をローカルカスタム拡張機能として読み込みます。既定SVG overlayに必要なrenderer APIがない場合、画像・メディア機能の使用時にAsset Managerがない場合、condition待機の開始時にAsync InputかRuntime Expressionがない場合は、Bubbleが明示的なエラーを返します。低レベルComposition APIでは別のtext capabilityを注入できます。
21
+ 開発中のBubbleを試す場合は、このリポジトリの`dist/turbowarp-bubble.js`をローカルカスタム拡張機能として読み込みます。既定SVG overlayに必要なrenderer APIがない場合、画像・メディア機能の使用時にAsset Cacheがない場合、condition待機の開始時にAsync InputかRuntime Expressionがない場合は、Bubbleが明示的なエラーを返します。低レベルComposition APIでは別のtext capabilityを注入できます。
22
22
 
23
23
  参考:
24
24
 
25
- - [Asset Manager 日本語ガイド](https://kubohiroya.github.io/turbowarp-asset-manager/ja/)
25
+ - [Asset Cache 日本語ガイド](https://kubohiroya.github.io/turbowarp-asset-cache/ja/)
26
26
  - [Async Input 日本語ガイド](https://kubohiroya.github.io/turbowarp-async-input/ja/)
27
27
  - [Runtime Expression 日本語ガイド](https://kubohiroya.github.io/turbowarp-runtime-expression/ja/)
28
28
  - [SVG Text 日本語ガイド](https://kubohiroya.github.io/turbowarp-svg-text/ja/)
@@ -31,19 +31,19 @@
31
31
 
32
32
  例では`Assets`という素材用spriteに、次のcostumeを入れます。素材用spriteは画面上で非表示でも構いません。
33
33
 
34
- | costume | Asset Managerへ登録する名前 | 内容 |
35
- | ----------------- | --------------------------- | ------------------------------------------------ |
36
- | `HeroFace` | `HeroFace` | 顔、髪、輪郭などのベース。動かす目と口は含めない |
37
- | `HeroEyesOpen` | `HeroEyesOpen` | 開いた目だけを描いた透明差分 |
38
- | `HeroEyesClosed` | `HeroEyesClosed` | 閉じた目だけを描いた透明差分 |
39
- | `HeroMouthClosed` | `HeroMouthClosed` | 閉じた口だけを描いた透明差分 |
40
- | `HeroMouthOpen` | `HeroMouthOpen` | 開いた口だけを描いた透明差分 |
41
- | `Next1` | `Next1` | 「次へ」アイコンの1枚目 |
42
- | `Next2` | `Next2` | 「次へ」アイコンの2枚目 |
34
+ | costume | Asset Cacheへ登録する名前 | 内容 |
35
+ | ----------------- | ------------------------- | ------------------------------------------------ |
36
+ | `HeroFace` | `HeroFace` | 顔、髪、輪郭などのベース。動かす目と口は含めない |
37
+ | `HeroEyesOpen` | `HeroEyesOpen` | 開いた目だけを描いた透明差分 |
38
+ | `HeroEyesClosed` | `HeroEyesClosed` | 閉じた目だけを描いた透明差分 |
39
+ | `HeroMouthClosed` | `HeroMouthClosed` | 閉じた口だけを描いた透明差分 |
40
+ | `HeroMouthOpen` | `HeroMouthOpen` | 開いた口だけを描いた透明差分 |
41
+ | `Next1` | `Next1` | 「次へ」アイコンの1枚目 |
42
+ | `Next2` | `Next2` | 「次へ」アイコンの2枚目 |
43
43
 
44
44
  ベース、目、口の画像は同じcanvasサイズと同じ中心位置で作ります。差分画像の背景は透明にしてください。位置やcanvasサイズが異なると、レイヤーを重ねたときに目や口がずれます。
45
45
 
46
- Asset Managerのブロックで各costumeを登録します。
46
+ Asset Cacheのブロックで各costumeを登録します。
47
47
 
48
48
  ```text
49
49
  register resource [costume:Assets:HeroFace] as asset [HeroFace]
@@ -55,7 +55,7 @@ register resource [costume:Assets:Next1] as asset [Next1]
55
55
  register resource [costume:Assets:Next2] as asset [Next2]
56
56
  ```
57
57
 
58
- URL画像を使う場合は、`RESOURCE_ID`へHTTPS URLを指定します。Bubbleに設定できるのは、Asset Managerへ登録済みでMIME typeが`image/*`のアセットだけです。
58
+ URL画像を使う場合は、`RESOURCE_ID`へHTTPS URLを指定します。Bubbleに設定できるのは、Asset Cacheへ登録済みでMIME typeが`image/*`のアセットだけです。
59
59
 
60
60
  ## 3. 文字layout styleを選ぶ
61
61
 
@@ -178,7 +178,7 @@ set continue frames [Next1,Next2]
178
178
  every [0.2] seconds for bubble style [hero-dialogue]
179
179
  ```
180
180
 
181
- `ASSETS`はカンマ区切りのAsset Managerアセット名です。名前の前後の空白は除去されます。アセット名自体にカンマは使用できません。
181
+ `ASSETS`はカンマ区切りのAsset Cacheアセット名です。名前の前後の空白は除去されます。アセット名自体にカンマは使用できません。
182
182
 
183
183
  - 目パチと口パクは1枚以上指定できます。1枚だけなら表示は固定されます。
184
184
  - 「次へ」はループが分かるよう2枚以上必要です。
@@ -202,7 +202,7 @@ show [海へ出発!] with bubble style [hero-dialogue]
202
202
  finish [CHARACTER] with condition [input == "pressed"] or timeout after [10] seconds
203
203
  ```
204
204
 
205
- `DYNAMIC`は表示単位ごとに吹き出しの大きさと配置を再計算し、`RESERVED`は最終的な文字量を先に計測して表示中の外形を予約します。`set bubble reveal sound`は単位ごと、`set bubble voice`は表示開始時にAsset Managerの名前付き音声を再生します。音声がなくても文字表示は利用できます。
205
+ `DYNAMIC`は表示単位ごとに吹き出しの大きさと配置を再計算し、`RESERVED`は最終的な文字量を先に計測して表示中の外形を予約します。`set bubble reveal sound`は単位ごと、`set bubble voice`は表示開始時にAsset Cacheの名前付き音声を再生します。音声がなくても文字表示は利用できます。
206
206
 
207
207
  ## 6. セリフを表示して入力を待つ
208
208
 
@@ -328,7 +328,7 @@ cloneが停止・削除された場合は、そのtargetに属するtimer、over
328
328
 
329
329
  | 状況 | 原因と対処 |
330
330
  | ------------------------------------ | ------------------------------------------------------------------------ |
331
- | Asset Managerを要求するエラー | 画像・メディアアセットを使う前にAsset Manager 0.12.xを読み込む |
331
+ | Asset Cacheを要求するエラー | 画像・メディアアセットを使う前にAsset Cache 0.1.0を読み込む |
332
332
  | SVG overlay backendのエラー | `renderer.addOverlay()`対応hostを使うか`scratch-render`を明示する |
333
333
  | Async Inputを要求するエラー | Bubble待機より前にAsync Input 0.3.xをサンドボックスなしで読み込む |
334
334
  | Runtime Expressionを要求するエラー | Bubble待機より前にRuntime Expression 0.3.xをサンドボックスなしで読み込む |
@@ -353,7 +353,7 @@ cloneが停止・削除された場合は、そのtargetに属するtimer、over
353
353
  - projectの全停止
354
354
  - TurboWarp runtimeの破棄
355
355
 
356
- Asset Managerへ登録したアセット自体はBubbleの所有物ではありません。不要になった登録画像をメモリから削除する場合は、Bubbleを閉じた後にAsset Managerの`delete asset [NAME] from memory`を使います。
356
+ Asset Cacheへ登録したアセット自体はBubbleの所有物ではありません。不要になった登録画像をメモリから削除する場合は、Bubbleを閉じた後にAsset Cacheの`delete asset [NAME] from memory`を使います。
357
357
 
358
358
  ## 14. マニュアル画像の再生成
359
359
 
@@ -8,21 +8,21 @@ This manual explains how to use `turbowarp-bubble` as an unsandboxed TurboWarp c
8
8
 
9
9
  ## 1. Load the required extensions
10
10
 
11
- The complete input-wait example uses five extensions. Add Temporary Variables from TurboWarp's extension library, then load the custom extensions needed by the selected features with **Run without sandbox** enabled. Bubble bundles the host-neutral SVG Text 0.10.0 layout provider and creates no text skin on its default SVG overlay. Asset Manager is required for portrait, lip-sync, continue indicator, voice, and display-sound assets. Async Input and Runtime Expression are required only for condition-based Bubble waits and close policies; a timeout-only close policy needs neither.
11
+ The complete input-wait example uses five extensions. Add Temporary Variables from TurboWarp's extension library, then load the custom extensions needed by the selected features with **Run without sandbox** enabled. Bubble bundles the host-neutral SVG Text 0.10.0 layout provider and creates no text skin on its default SVG overlay. Asset Cache is required for portrait, lip-sync, continue indicator, voice, and display-sound assets. Async Input and Runtime Expression are required only for condition-based Bubble waits and close policies; a timeout-only close policy needs neither.
12
12
 
13
13
  | Order | Extension | URL |
14
14
  | ----: | ------------------------ | -------------------------------------------------------------------------------------------------------- |
15
15
  | 1 | Temporary Variables | Add from the TurboWarp extension library |
16
16
  | 2 | Async Input 0.7.0 | `https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-async-input@0.7.0/dist/async-input.js` |
17
17
  | 3 | Runtime Expression 0.6.0 | `https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-runtime-expression@0.6.0/dist/runtime-expression.js` |
18
- | 4 | Asset Manager 0.15.0 | `https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-manager@0.15.0/dist/asset-manager.js` |
19
- | 5 | Bubble 0.12.0 | `https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.12.0/dist/turbowarp-bubble.js` |
18
+ | 4 | Asset Cache 0.1.0 | `https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-cache@0.1.0/dist/asset-cache.js` |
19
+ | 5 | Bubble 0.13.0 | `https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.13.0/dist/turbowarp-bubble.js` |
20
20
 
21
- To try a development build, load this repository's `dist/turbowarp-bubble.js` as a local custom extension. Bubble reports an explicit error if the renderer lacks the default SVG overlay APIs, if an image/media feature is used without Asset Manager, or if Async Input or Runtime Expression is missing when it starts a condition-based Bubble wait. The lower-level Composition API can inject another text capability.
21
+ To try a development build, load this repository's `dist/turbowarp-bubble.js` as a local custom extension. Bubble reports an explicit error if the renderer lacks the default SVG overlay APIs, if an image/media feature is used without Asset Cache, or if Async Input or Runtime Expression is missing when it starts a condition-based Bubble wait. The lower-level Composition API can inject another text capability.
22
22
 
23
23
  See also:
24
24
 
25
- - [Asset Manager guide](https://kubohiroya.github.io/turbowarp-asset-manager/)
25
+ - [Asset Cache guide](https://kubohiroya.github.io/turbowarp-asset-cache/)
26
26
  - [Async Input guide](https://kubohiroya.github.io/turbowarp-async-input/)
27
27
  - [Runtime Expression guide](https://kubohiroya.github.io/turbowarp-runtime-expression/)
28
28
  - [SVG Text guide](https://kubohiroya.github.io/turbowarp-svg-text/)
@@ -31,19 +31,19 @@ See also:
31
31
 
32
32
  The following example stores costumes in a hidden asset sprite named `Assets`.
33
33
 
34
- | Costume | Asset Manager name | Contents |
35
- | ----------------- | ------------------ | ---------------------------------------------------------- |
36
- | `HeroFace` | `HeroFace` | Face, hair, and outline, excluding the animated eyes/mouth |
37
- | `HeroEyesOpen` | `HeroEyesOpen` | Transparent overlay containing only the open eyes |
38
- | `HeroEyesClosed` | `HeroEyesClosed` | Transparent overlay containing only the closed eyes |
39
- | `HeroMouthClosed` | `HeroMouthClosed` | Transparent overlay containing only the closed mouth |
40
- | `HeroMouthOpen` | `HeroMouthOpen` | Transparent overlay containing only the open mouth |
41
- | `Next1` | `Next1` | First frame of the continue indicator |
42
- | `Next2` | `Next2` | Second frame of the continue indicator |
34
+ | Costume | Asset Cache name | Contents |
35
+ | ----------------- | ----------------- | ---------------------------------------------------------- |
36
+ | `HeroFace` | `HeroFace` | Face, hair, and outline, excluding the animated eyes/mouth |
37
+ | `HeroEyesOpen` | `HeroEyesOpen` | Transparent overlay containing only the open eyes |
38
+ | `HeroEyesClosed` | `HeroEyesClosed` | Transparent overlay containing only the closed eyes |
39
+ | `HeroMouthClosed` | `HeroMouthClosed` | Transparent overlay containing only the closed mouth |
40
+ | `HeroMouthOpen` | `HeroMouthOpen` | Transparent overlay containing only the open mouth |
41
+ | `Next1` | `Next1` | First frame of the continue indicator |
42
+ | `Next2` | `Next2` | Second frame of the continue indicator |
43
43
 
44
44
  Use the same canvas size and center point for the base, eye, and mouth images. Keep overlay backgrounds transparent; mismatched canvases or centers make the layers drift when composed.
45
45
 
46
- Register each costume with Asset Manager:
46
+ Register each costume with Asset Cache:
47
47
 
48
48
  ```text
49
49
  register resource [costume:Assets:HeroFace] as asset [HeroFace]
@@ -55,7 +55,7 @@ register resource [costume:Assets:Next1] as asset [Next1]
55
55
  register resource [costume:Assets:Next2] as asset [Next2]
56
56
  ```
57
57
 
58
- For a remote image, pass its HTTPS URL as `RESOURCE_ID`. Bubble accepts only assets already registered with Asset Manager whose MIME type is `image/*`.
58
+ For a remote image, pass its HTTPS URL as `RESOURCE_ID`. Bubble accepts only assets already registered with Asset Cache whose MIME type is `image/*`.
59
59
 
60
60
  ## 3. Select a text layout style
61
61
 
@@ -178,7 +178,7 @@ set continue frames [Next1,Next2]
178
178
  every [0.2] seconds for bubble style [hero-dialogue]
179
179
  ```
180
180
 
181
- `ASSETS` is a comma-separated list of Asset Manager names. Surrounding whitespace is removed; commas cannot be part of an asset name.
181
+ `ASSETS` is a comma-separated list of Asset Cache names. Surrounding whitespace is removed; commas cannot be part of an asset name.
182
182
 
183
183
  - Blink and lip-sync animations accept one or more frames. A single frame remains static.
184
184
  - Use two or more continue frames so the loop is visible.
@@ -202,7 +202,7 @@ show [Let's head for the sea!] with bubble style [hero-dialogue]
202
202
  finish [CHARACTER] with condition [input == "pressed"] or timeout after [10] seconds
203
203
  ```
204
204
 
205
- `DYNAMIC` recalculates the Bubble size and placement after each unit. `RESERVED` measures the final text first and reserves that layout while units appear. `set bubble reveal sound` plays a named Asset Manager audio asset per unit, while `set bubble voice` plays full voice audio when the Bubble starts. Text display remains available without audio.
205
+ `DYNAMIC` recalculates the Bubble size and placement after each unit. `RESERVED` measures the final text first and reserves that layout while units appear. `set bubble reveal sound` plays a named Asset Cache audio asset per unit, while `set bubble voice` plays full voice audio when the Bubble starts. Text display remains available without audio.
206
206
 
207
207
  ## 6. Show dialogue and wait for input
208
208
 
@@ -328,7 +328,7 @@ Saved projects using the former `say/think [MESSAGE] with bubble style [STYLE]`
328
328
 
329
329
  | Symptom | Cause and solution |
330
330
  | ------------------------------------ | ------------------------------------------------------------------------------- |
331
- | Asset Manager required error | Load Asset Manager 0.12.x without sandbox before using image/media assets |
331
+ | Asset Cache required error | Load Asset Cache 0.1.0 without sandbox before using image/media assets |
332
332
  | SVG overlay backend error | Use a host with `renderer.addOverlay()` or explicitly select `scratch-render` |
333
333
  | Async Input required error | Load Async Input 0.3.x without sandbox before using the Bubble wait |
334
334
  | Runtime Expression required error | Load Runtime Expression 0.3.x without sandbox before using the Bubble wait |
@@ -353,7 +353,7 @@ Bubble automatically releases its owned timers, overlay DOM, and image leases in
353
353
  - the whole project stops; or
354
354
  - the TurboWarp runtime is disposed.
355
355
 
356
- Assets registered with Asset Manager are not owned by Bubble. To remove an unused registered image from memory, close the Bubble first and then use Asset Manager's `delete asset [NAME] from memory` block.
356
+ Assets registered with Asset Cache are not owned by Bubble. To remove an unused registered image from memory, close the Bubble first and then use Asset Cache's `delete asset [NAME] from memory` block.
357
357
 
358
358
  ## 14. Regenerating the manual assets
359
359
 
package/docs/index.html CHANGED
@@ -74,7 +74,7 @@
74
74
  </blockquote>
75
75
  <p><img src="./assets/block-quick-start.svg" alt="A quick-start block sequence that registers Next1 and Next2 separately, prepares input listeners, then uses Bubble&#39;s integrated wait"></p>
76
76
  <h2 id="requirements">1. Load the required extensions</h2>
77
- <p>The complete input-wait example uses five extensions. Add Temporary Variables from TurboWarp&#39;s extension library, then load the custom extensions needed by the selected features with <strong>Run without sandbox</strong> enabled. Bubble bundles the host-neutral SVG Text 0.10.0 layout provider and creates no text skin on its default SVG overlay. Asset Manager is required for portrait, lip-sync, continue indicator, voice, and display-sound assets. Async Input and Runtime Expression are required only for condition-based Bubble waits and close policies; a timeout-only close policy needs neither.</p>
77
+ <p>The complete input-wait example uses five extensions. Add Temporary Variables from TurboWarp&#39;s extension library, then load the custom extensions needed by the selected features with <strong>Run without sandbox</strong> enabled. Bubble bundles the host-neutral SVG Text 0.10.0 layout provider and creates no text skin on its default SVG overlay. Asset Cache is required for portrait, lip-sync, continue indicator, voice, and display-sound assets. Async Input and Runtime Expression are required only for condition-based Bubble waits and close policies; a timeout-only close policy needs neither.</p>
78
78
  <table>
79
79
  <thead>
80
80
  <tr>
@@ -100,19 +100,19 @@
100
100
  </tr>
101
101
  <tr>
102
102
  <td align="right">4</td>
103
- <td>Asset Manager 0.15.0</td>
104
- <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-manager@0.15.0/dist/asset-manager.js</code></td>
103
+ <td>Asset Cache 0.1.0</td>
104
+ <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-cache@0.1.0/dist/asset-cache.js</code></td>
105
105
  </tr>
106
106
  <tr>
107
107
  <td align="right">5</td>
108
- <td>Bubble 0.12.0</td>
109
- <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.12.0/dist/turbowarp-bubble.js</code></td>
108
+ <td>Bubble 0.13.0</td>
109
+ <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.13.0/dist/turbowarp-bubble.js</code></td>
110
110
  </tr>
111
111
  </tbody></table>
112
- <p>To try a development build, load this repository&#39;s <code>dist/turbowarp-bubble.js</code> as a local custom extension. Bubble reports an explicit error if the renderer lacks the default SVG overlay APIs, if an image/media feature is used without Asset Manager, or if Async Input or Runtime Expression is missing when it starts a condition-based Bubble wait. The lower-level Composition API can inject another text capability.</p>
112
+ <p>To try a development build, load this repository&#39;s <code>dist/turbowarp-bubble.js</code> as a local custom extension. Bubble reports an explicit error if the renderer lacks the default SVG overlay APIs, if an image/media feature is used without Asset Cache, or if Async Input or Runtime Expression is missing when it starts a condition-based Bubble wait. The lower-level Composition API can inject another text capability.</p>
113
113
  <p>See also:</p>
114
114
  <ul>
115
- <li><a href="https://kubohiroya.github.io/turbowarp-asset-manager/">Asset Manager guide</a></li>
115
+ <li><a href="https://kubohiroya.github.io/turbowarp-asset-cache/">Asset Cache guide</a></li>
116
116
  <li><a href="https://kubohiroya.github.io/turbowarp-async-input/">Async Input guide</a></li>
117
117
  <li><a href="https://kubohiroya.github.io/turbowarp-runtime-expression/">Runtime Expression guide</a></li>
118
118
  <li><a href="https://kubohiroya.github.io/turbowarp-svg-text/">SVG Text guide</a></li>
@@ -123,7 +123,7 @@
123
123
  <thead>
124
124
  <tr>
125
125
  <th>Costume</th>
126
- <th>Asset Manager name</th>
126
+ <th>Asset Cache name</th>
127
127
  <th>Contents</th>
128
128
  </tr>
129
129
  </thead>
@@ -164,7 +164,7 @@
164
164
  </tr>
165
165
  </tbody></table>
166
166
  <p>Use the same canvas size and center point for the base, eye, and mouth images. Keep overlay backgrounds transparent; mismatched canvases or centers make the layers drift when composed.</p>
167
- <p>Register each costume with Asset Manager:</p>
167
+ <p>Register each costume with Asset Cache:</p>
168
168
  <pre><code class="language-text">register resource [costume:Assets:HeroFace] as asset [HeroFace]
169
169
  register resource [costume:Assets:HeroEyesOpen] as asset [HeroEyesOpen]
170
170
  register resource [costume:Assets:HeroEyesClosed] as asset [HeroEyesClosed]
@@ -173,7 +173,7 @@ register resource [costume:Assets:HeroMouthOpen] as asset [HeroMouthOpen]
173
173
  register resource [costume:Assets:Next1] as asset [Next1]
174
174
  register resource [costume:Assets:Next2] as asset [Next2]
175
175
  </code></pre>
176
- <p>For a remote image, pass its HTTPS URL as <code>RESOURCE_ID</code>. Bubble accepts only assets already registered with Asset Manager whose MIME type is <code>image/*</code>.</p>
176
+ <p>For a remote image, pass its HTTPS URL as <code>RESOURCE_ID</code>. Bubble accepts only assets already registered with Asset Cache whose MIME type is <code>image/*</code>.</p>
177
177
  <h2 id="text-style">3. Select a text layout style</h2>
178
178
  <p>Standalone Bubble bundles the SVG Text 0.10.0 layout composition and installs two Bubble styles: <code>say</code> owns the speech body and speech tail, while <code>think</code> owns the thought body and round trail. A style&#39;s body and tail/trail shapes are one visual choice, not separately selected properties. The short <code>say [MESSAGE]</code> and <code>think [MESSAGE]</code> blocks select the matching style automatically, so the basic path needs neither a style definition nor a style input. Both styles use the reserved text profile <code>default</code>, a content-sized body, 14px Helvetica text, right-first placement with a fit-dependent left flip, 330-character block-input limit, and empty-message close behavior. Their 4px SVG stroke is painted before the white fill, hiding the inner half so the visible outline matches TurboWarp&#39;s standard bubble. Any other text style name or explicit style-setting block selects the custom profile. Custom text styles are initialized on first use with transparent-background SVG Text defaults. If a project separately loads the stock SVG Text 0.10.0 extension before Bubble, Bubble uses its public <code>getLayoutCapability()</code> instead and preserves the named styles defined by SVG Text blocks. An older loaded SVG Text extension without that handoff produces an explicit compatibility error rather than silently replacing the style; select the documented scratch-render fallback only when needed.</p>
179
179
  <pre><code class="language-text">define bubble style [hero-dialogue] using text style [default]
@@ -264,7 +264,7 @@ set lip-sync frames [HeroMouthClosed,HeroMouthOpen]
264
264
  set continue frames [Next1,Next2]
265
265
  every [0.2] seconds for bubble style [hero-dialogue]
266
266
  </code></pre>
267
- <p><code>ASSETS</code> is a comma-separated list of Asset Manager names. Surrounding whitespace is removed; commas cannot be part of an asset name.</p>
267
+ <p><code>ASSETS</code> is a comma-separated list of Asset Cache names. Surrounding whitespace is removed; commas cannot be part of an asset name.</p>
268
268
  <ul>
269
269
  <li>Blink and lip-sync animations accept one or more frames. A single frame remains static.</li>
270
270
  <li>Use two or more continue frames so the loop is visible.</li>
@@ -284,7 +284,7 @@ set bubble voice [HeroVoice] for bubble style [hero-dialogue]
284
284
  show [Let&#39;s head for the sea!] with bubble style [hero-dialogue]
285
285
  finish [CHARACTER] with condition [input == &quot;pressed&quot;] or timeout after [10] seconds
286
286
  </code></pre>
287
- <p><code>DYNAMIC</code> recalculates the Bubble size and placement after each unit. <code>RESERVED</code> measures the final text first and reserves that layout while units appear. <code>set bubble reveal sound</code> plays a named Asset Manager audio asset per unit, while <code>set bubble voice</code> plays full voice audio when the Bubble starts. Text display remains available without audio.</p>
287
+ <p><code>DYNAMIC</code> recalculates the Bubble size and placement after each unit. <code>RESERVED</code> measures the final text first and reserves that layout while units appear. <code>set bubble reveal sound</code> plays a named Asset Cache audio asset per unit, while <code>set bubble voice</code> plays full voice audio when the Bubble starts. Text display remains available without audio.</p>
288
288
  <h2 id="animation-modes">6. Show dialogue and wait for input</h2>
289
289
  <p><code>say</code> and <code>think</code> show a Bubble immediately, continue to the next block, and begin in <code>talking</code> animation mode.</p>
290
290
  <pre><code class="language-text">set runtime variable [input] to []
@@ -507,8 +507,8 @@ animate bubble shape to [WAVY] speed [1] for [0.5] seconds
507
507
  </tr>
508
508
  </thead>
509
509
  <tbody><tr>
510
- <td>Asset Manager required error</td>
511
- <td>Load Asset Manager 0.12.x without sandbox before using image/media assets</td>
510
+ <td>Asset Cache required error</td>
511
+ <td>Load Asset Cache 0.1.0 without sandbox before using image/media assets</td>
512
512
  </tr>
513
513
  <tr>
514
514
  <td>SVG overlay backend error</td>
@@ -569,7 +569,7 @@ animate bubble shape to [WAVY] speed [1] for [0.5] seconds
569
569
  <li>the whole project stops; or</li>
570
570
  <li>the TurboWarp runtime is disposed.</li>
571
571
  </ul>
572
- <p>Assets registered with Asset Manager are not owned by Bubble. To remove an unused registered image from memory, close the Bubble first and then use Asset Manager&#39;s <code>delete asset [NAME] from memory</code> block.</p>
572
+ <p>Assets registered with Asset Cache are not owned by Bubble. To remove an unused registered image from memory, close the Bubble first and then use Asset Cache&#39;s <code>delete asset [NAME] from memory</code> block.</p>
573
573
  <h2>14. Regenerating the manual assets</h2>
574
574
  <p>The diagrams and GIF are generated from scripts in this repository. GIF generation requires the ImageMagick <code>magick</code> command.</p>
575
575
  <p>The two <code>turbowarp-say-think-*-comparison.png</code> files are real TurboWarp Editor screenshots rather than generated renderer previews. They use the capture conditions documented in section 4 and are not overwritten by <code>docs:render</code>.</p>
@@ -74,7 +74,7 @@
74
74
  </blockquote>
75
75
  <p><img src="../assets/block-quick-start.svg" alt="Next1とNext2を個別登録し、入力listenerを準備してBubble内蔵待機を使うブロック例"></p>
76
76
  <h2 id="requirements">1. 必要な拡張機能</h2>
77
- <p>入力待ちを含む完全な例では5つの拡張機能を使います。TurboWarpの拡張機能ライブラリからTemporary Variablesを追加し、選択した機能に必要なカスタム拡張機能を「サンドボックスなしで実行」を許可して読み込みます。BubbleはSVG Text 0.10.0のhost-neutral layout providerをbundle内に持ち、既定のSVG overlayではskinを作りません。portrait、lip-sync、continue indicator、フルボイス、表示効果音などのメディアアセットにはAsset Managerが必要です。Async InputとRuntime Expressionはconditionを使うBubble待機またはclose policyで必要です。timeoutだけのclose policyにはどちらも不要です。</p>
77
+ <p>入力待ちを含む完全な例では5つの拡張機能を使います。TurboWarpの拡張機能ライブラリからTemporary Variablesを追加し、選択した機能に必要なカスタム拡張機能を「サンドボックスなしで実行」を許可して読み込みます。BubbleはSVG Text 0.10.0のhost-neutral layout providerをbundle内に持ち、既定のSVG overlayではskinを作りません。portrait、lip-sync、continue indicator、フルボイス、表示効果音などのメディアアセットにはAsset Cacheが必要です。Async InputとRuntime Expressionはconditionを使うBubble待機またはclose policyで必要です。timeoutだけのclose policyにはどちらも不要です。</p>
78
78
  <table>
79
79
  <thead>
80
80
  <tr>
@@ -100,19 +100,19 @@
100
100
  </tr>
101
101
  <tr>
102
102
  <td align="right">4</td>
103
- <td>Asset Manager 0.15.0</td>
104
- <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-manager@0.15.0/dist/asset-manager.js</code></td>
103
+ <td>Asset Cache 0.1.0</td>
104
+ <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-cache@0.1.0/dist/asset-cache.js</code></td>
105
105
  </tr>
106
106
  <tr>
107
107
  <td align="right">5</td>
108
- <td>Bubble 0.12.0</td>
109
- <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.12.0/dist/turbowarp-bubble.js</code></td>
108
+ <td>Bubble 0.13.0</td>
109
+ <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.13.0/dist/turbowarp-bubble.js</code></td>
110
110
  </tr>
111
111
  </tbody></table>
112
- <p>開発中のBubbleを試す場合は、このリポジトリの<code>dist/turbowarp-bubble.js</code>をローカルカスタム拡張機能として読み込みます。既定SVG overlayに必要なrenderer APIがない場合、画像・メディア機能の使用時にAsset Managerがない場合、condition待機の開始時にAsync InputかRuntime Expressionがない場合は、Bubbleが明示的なエラーを返します。低レベルComposition APIでは別のtext capabilityを注入できます。</p>
112
+ <p>開発中のBubbleを試す場合は、このリポジトリの<code>dist/turbowarp-bubble.js</code>をローカルカスタム拡張機能として読み込みます。既定SVG overlayに必要なrenderer APIがない場合、画像・メディア機能の使用時にAsset Cacheがない場合、condition待機の開始時にAsync InputかRuntime Expressionがない場合は、Bubbleが明示的なエラーを返します。低レベルComposition APIでは別のtext capabilityを注入できます。</p>
113
113
  <p>参考:</p>
114
114
  <ul>
115
- <li><a href="https://kubohiroya.github.io/turbowarp-asset-manager/ja/">Asset Manager 日本語ガイド</a></li>
115
+ <li><a href="https://kubohiroya.github.io/turbowarp-asset-cache/ja/">Asset Cache 日本語ガイド</a></li>
116
116
  <li><a href="https://kubohiroya.github.io/turbowarp-async-input/ja/">Async Input 日本語ガイド</a></li>
117
117
  <li><a href="https://kubohiroya.github.io/turbowarp-runtime-expression/ja/">Runtime Expression 日本語ガイド</a></li>
118
118
  <li><a href="https://kubohiroya.github.io/turbowarp-svg-text/ja/">SVG Text 日本語ガイド</a></li>
@@ -123,7 +123,7 @@
123
123
  <thead>
124
124
  <tr>
125
125
  <th>costume</th>
126
- <th>Asset Managerへ登録する名前</th>
126
+ <th>Asset Cacheへ登録する名前</th>
127
127
  <th>内容</th>
128
128
  </tr>
129
129
  </thead>
@@ -164,7 +164,7 @@
164
164
  </tr>
165
165
  </tbody></table>
166
166
  <p>ベース、目、口の画像は同じcanvasサイズと同じ中心位置で作ります。差分画像の背景は透明にしてください。位置やcanvasサイズが異なると、レイヤーを重ねたときに目や口がずれます。</p>
167
- <p>Asset Managerのブロックで各costumeを登録します。</p>
167
+ <p>Asset Cacheのブロックで各costumeを登録します。</p>
168
168
  <pre><code class="language-text">register resource [costume:Assets:HeroFace] as asset [HeroFace]
169
169
  register resource [costume:Assets:HeroEyesOpen] as asset [HeroEyesOpen]
170
170
  register resource [costume:Assets:HeroEyesClosed] as asset [HeroEyesClosed]
@@ -173,7 +173,7 @@ register resource [costume:Assets:HeroMouthOpen] as asset [HeroMouthOpen]
173
173
  register resource [costume:Assets:Next1] as asset [Next1]
174
174
  register resource [costume:Assets:Next2] as asset [Next2]
175
175
  </code></pre>
176
- <p>URL画像を使う場合は、<code>RESOURCE_ID</code>へHTTPS URLを指定します。Bubbleに設定できるのは、Asset Managerへ登録済みでMIME typeが<code>image/*</code>のアセットだけです。</p>
176
+ <p>URL画像を使う場合は、<code>RESOURCE_ID</code>へHTTPS URLを指定します。Bubbleに設定できるのは、Asset Cacheへ登録済みでMIME typeが<code>image/*</code>のアセットだけです。</p>
177
177
  <h2 id="text-style">3. 文字layout styleを選ぶ</h2>
178
178
  <p>standalone BubbleはSVG Text 0.10.0のlayout compositionを内包し、2つのBubble styleを組み込みます。<code>say</code>はspeech本体とspeech tail、<code>think</code>はthought本体とround trailを持ち、本体とtail/trailの形は別項目ではなく1つのvisual styleとして選びます。短い<code>say [MESSAGE]</code>/<code>think [MESSAGE]</code>ブロックが対応styleを自動選択するため、基本経路にはstyle定義もstyle入力も不要です。どちらも予約text profile <code>default</code>、内容に追従するサイズ、14px Helvetica、右側優先・収まりに応じた左反転、block入力の330文字上限、空文字でのcloseを使います。4pxのSVG strokeを白いfillより先に描き、内側半分を隠すことで、見かけの輪郭をTurboWarp標準と同じ細さにします。それ以外のtext style名やstyle設定ブロックを使うとcustom profileになります。custom text styleは初回参照時に背景透明のSVG Text既定styleとして初期化されます。stock SVG Text 0.10.0をBubbleより先に別拡張として読み込んだprojectでは、Bubbleが公開<code>getLayoutCapability()</code>を使い、SVG Text blockで定義したnamed styleを維持します。handoffのない古いSVG Textがロード済みならstyleを黙って置換せず互換errorを返し、必要な場合だけ文書化済みscratch-render fallbackを選択します。</p>
179
179
  <pre><code class="language-text">define bubble style [hero-dialogue] using text style [default]
@@ -264,7 +264,7 @@ set lip-sync frames [HeroMouthClosed,HeroMouthOpen]
264
264
  set continue frames [Next1,Next2]
265
265
  every [0.2] seconds for bubble style [hero-dialogue]
266
266
  </code></pre>
267
- <p><code>ASSETS</code>はカンマ区切りのAsset Managerアセット名です。名前の前後の空白は除去されます。アセット名自体にカンマは使用できません。</p>
267
+ <p><code>ASSETS</code>はカンマ区切りのAsset Cacheアセット名です。名前の前後の空白は除去されます。アセット名自体にカンマは使用できません。</p>
268
268
  <ul>
269
269
  <li>目パチと口パクは1枚以上指定できます。1枚だけなら表示は固定されます。</li>
270
270
  <li>「次へ」はループが分かるよう2枚以上必要です。</li>
@@ -284,7 +284,7 @@ set bubble voice [HeroVoice] for bubble style [hero-dialogue]
284
284
  show [海へ出発!] with bubble style [hero-dialogue]
285
285
  finish [CHARACTER] with condition [input == &quot;pressed&quot;] or timeout after [10] seconds
286
286
  </code></pre>
287
- <p><code>DYNAMIC</code>は表示単位ごとに吹き出しの大きさと配置を再計算し、<code>RESERVED</code>は最終的な文字量を先に計測して表示中の外形を予約します。<code>set bubble reveal sound</code>は単位ごと、<code>set bubble voice</code>は表示開始時にAsset Managerの名前付き音声を再生します。音声がなくても文字表示は利用できます。</p>
287
+ <p><code>DYNAMIC</code>は表示単位ごとに吹き出しの大きさと配置を再計算し、<code>RESERVED</code>は最終的な文字量を先に計測して表示中の外形を予約します。<code>set bubble reveal sound</code>は単位ごと、<code>set bubble voice</code>は表示開始時にAsset Cacheの名前付き音声を再生します。音声がなくても文字表示は利用できます。</p>
288
288
  <h2 id="animation-modes">6. セリフを表示して入力を待つ</h2>
289
289
  <p><code>say</code>または<code>think</code>はBubbleを表示するとすぐ次のブロックへ進み、初期animation modeは<code>talking</code>になります。</p>
290
290
  <pre><code class="language-text">set runtime variable [input] to []
@@ -507,8 +507,8 @@ animate bubble shape to [WAVY] speed [1] for [0.5] seconds
507
507
  </tr>
508
508
  </thead>
509
509
  <tbody><tr>
510
- <td>Asset Managerを要求するエラー</td>
511
- <td>画像・メディアアセットを使う前にAsset Manager 0.12.xを読み込む</td>
510
+ <td>Asset Cacheを要求するエラー</td>
511
+ <td>画像・メディアアセットを使う前にAsset Cache 0.1.0を読み込む</td>
512
512
  </tr>
513
513
  <tr>
514
514
  <td>SVG overlay backendのエラー</td>
@@ -569,7 +569,7 @@ animate bubble shape to [WAVY] speed [1] for [0.5] seconds
569
569
  <li>projectの全停止</li>
570
570
  <li>TurboWarp runtimeの破棄</li>
571
571
  </ul>
572
- <p>Asset Managerへ登録したアセット自体はBubbleの所有物ではありません。不要になった登録画像をメモリから削除する場合は、Bubbleを閉じた後にAsset Managerの<code>delete asset [NAME] from memory</code>を使います。</p>
572
+ <p>Asset Cacheへ登録したアセット自体はBubbleの所有物ではありません。不要になった登録画像をメモリから削除する場合は、Bubbleを閉じた後にAsset Cacheの<code>delete asset [NAME] from memory</code>を使います。</p>
573
573
  <h2>14. マニュアル画像の再生成</h2>
574
574
  <p>図とGIFはリポジトリ内のスクリプトから再生成できます。GIF生成にはImageMagickの<code>magick</code>コマンドが必要です。</p>
575
575
  <p>2つの<code>turbowarp-say-think-*-comparison.png</code>はrenderer previewから生成した図ではなく、TurboWarp Editorの実画面です。第4章に記載した撮影条件を使い、<code>docs:render</code>では上書きしません。</p>
@@ -0,0 +1,18 @@
1
+ # TurboWarp Bubble 0.13.0
2
+
3
+ Bubble 0.13.0 replaces the deprecated optional
4
+ `@kubohiroya/turbowarp-asset-manager` peer with
5
+ `@kubohiroya/turbowarp-asset-cache@0.1.0`. The standalone adapter first resolves
6
+ `runtime.ext_kubohiroyaassetcache`; the legacy `ext_kubohiroyaassetmanager` lookup remains only as
7
+ a temporary runtime fallback for already-published projects.
8
+
9
+ ## Migration
10
+
11
+ - Install Asset Cache 0.1.0 instead of Asset Manager.
12
+ - Replace the standalone extension ID `kubohiroyaassetmanager` with `kubohiroyaassetcache`.
13
+ - Composition hosts should inject Asset Cache's public DOM image capability as before.
14
+
15
+ ## Rollback
16
+
17
+ Pin Bubble 0.12.0 and Asset Manager to the versions recorded by the existing project lockfile. Do
18
+ not rewrite already-published SB3 artifacts during rollback.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubohiroya/turbowarp-bubble",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Composable say and think bubbles with portrait layers and animated continue indicators for TurboWarp.",
5
5
  "author": "Hiroya Kubo <hiroya@cuc.ac.jp>",
6
6
  "type": "module",
@@ -48,11 +48,37 @@
48
48
  "access": "public",
49
49
  "registry": "https://registry.npmjs.org/"
50
50
  },
51
+ "packageManager": "pnpm@11.18.0",
51
52
  "engines": {
52
53
  "node": ">=22.18.0"
53
54
  },
55
+ "scripts": {
56
+ "typecheck": "tsc --noEmit",
57
+ "build": "pnpm run build:extension && pnpm run build:composition && pnpm run build:reveal && pnpm run build:turbowarp-adapter && pnpm run build:types",
58
+ "build:extension": "vite build",
59
+ "build:composition": "vite build --config vite.composition.config.ts",
60
+ "build:reveal": "vite build --config vite.reveal.config.ts",
61
+ "build:turbowarp-adapter": "vite build --config vite.turbowarp-adapter.config.ts",
62
+ "build:types": "tsc --project tsconfig.build.json",
63
+ "types:composition:check": "tsc --project tsconfig.composition-consumer.json",
64
+ "lint": "eslint src tests scripts vite.config.ts vite.composition.config.ts vite.reveal.config.ts vite.turbowarp-adapter.config.ts eslint.config.mjs",
65
+ "format": "prettier --check .",
66
+ "format:write": "prettier --write .",
67
+ "docs:render": "node scripts/render-block-manual-assets.ts && pnpm run docs:pages",
68
+ "docs:pages": "node scripts/render-pages.ts",
69
+ "docs:pages:check": "node scripts/render-pages.ts --check",
70
+ "docs:check": "node scripts/check-block-manual.ts && pnpm run docs:pages:check",
71
+ "benchmark:render-backends": "pnpm run build && node --expose-gc scripts/benchmark-render-backends.ts",
72
+ "test": "vitest run",
73
+ "check:dist": "pnpm run build && node scripts/check-dist.ts",
74
+ "repo:check": "node scripts/check-repo.ts",
75
+ "pack:check": "npm pack --dry-run --ignore-scripts",
76
+ "release:check": "pnpm publish --dry-run --access public --no-git-checks",
77
+ "check": "pnpm run typecheck && pnpm run lint && pnpm run format && pnpm run test && pnpm run docs:check && pnpm run check:dist && pnpm run types:composition:check && pnpm run repo:check && pnpm run pack:check",
78
+ "prepack": "pnpm run check"
79
+ },
54
80
  "peerDependencies": {
55
- "@kubohiroya/turbowarp-asset-manager": ">=0.7.0 <1",
81
+ "@kubohiroya/turbowarp-asset-cache": ">=0.1.0 <1",
56
82
  "@kubohiroya/turbowarp-async-input": ">=0.3.0 <1",
57
83
  "@kubohiroya/turbowarp-runtime-expression": ">=0.3.0 <1"
58
84
  },
@@ -60,7 +86,7 @@
60
86
  "@kubohiroya/turbowarp-async-input": {
61
87
  "optional": true
62
88
  },
63
- "@kubohiroya/turbowarp-asset-manager": {
89
+ "@kubohiroya/turbowarp-asset-cache": {
64
90
  "optional": true
65
91
  },
66
92
  "@kubohiroya/turbowarp-runtime-expression": {
@@ -69,7 +95,7 @@
69
95
  },
70
96
  "devDependencies": {
71
97
  "@eslint/js": "^10.0.1",
72
- "@kubohiroya/turbowarp-asset-manager": "0.15.0",
98
+ "@kubohiroya/turbowarp-asset-cache": "0.1.0",
73
99
  "@kubohiroya/turbowarp-async-input": "0.7.0",
74
100
  "@kubohiroya/turbowarp-runtime-expression": "0.6.0",
75
101
  "@kubohiroya/vite-plugin-turbowarp-extension": "0.4.0",
@@ -98,29 +124,5 @@
98
124
  "dependencies": {
99
125
  "@cto.af/linebreak": "4.0.3",
100
126
  "@kubohiroya/turbowarp-svg-text": "0.10.0"
101
- },
102
- "scripts": {
103
- "typecheck": "tsc --noEmit",
104
- "build": "pnpm run build:extension && pnpm run build:composition && pnpm run build:reveal && pnpm run build:turbowarp-adapter && pnpm run build:types",
105
- "build:extension": "vite build",
106
- "build:composition": "vite build --config vite.composition.config.ts",
107
- "build:reveal": "vite build --config vite.reveal.config.ts",
108
- "build:turbowarp-adapter": "vite build --config vite.turbowarp-adapter.config.ts",
109
- "build:types": "tsc --project tsconfig.build.json",
110
- "types:composition:check": "tsc --project tsconfig.composition-consumer.json",
111
- "lint": "eslint src tests scripts vite.config.ts vite.composition.config.ts vite.reveal.config.ts vite.turbowarp-adapter.config.ts eslint.config.mjs",
112
- "format": "prettier --check .",
113
- "format:write": "prettier --write .",
114
- "docs:render": "node scripts/render-block-manual-assets.ts && pnpm run docs:pages",
115
- "docs:pages": "node scripts/render-pages.ts",
116
- "docs:pages:check": "node scripts/render-pages.ts --check",
117
- "docs:check": "node scripts/check-block-manual.ts && pnpm run docs:pages:check",
118
- "benchmark:render-backends": "pnpm run build && node --expose-gc scripts/benchmark-render-backends.ts",
119
- "test": "vitest run",
120
- "check:dist": "pnpm run build && node scripts/check-dist.ts",
121
- "repo:check": "node scripts/check-repo.ts",
122
- "pack:check": "npm pack --dry-run --ignore-scripts",
123
- "release:check": "pnpm publish --dry-run --access public --no-git-checks",
124
- "check": "pnpm run typecheck && pnpm run lint && pnpm run format && pnpm run test && pnpm run docs:check && pnpm run check:dist && pnpm run types:composition:check && pnpm run repo:check && pnpm run pack:check"
125
127
  }
126
- }
128
+ }