@kubohiroya/turbowarp-diagnostic-overlay 0.7.0 → 0.8.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/CHANGELOG.md +10 -0
- package/README.ja.md +12 -3
- package/README.md +13 -3
- package/docs/index.html +6 -3
- package/docs/ja/index.html +6 -3
- package/package.json +14 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
このプロジェクトの注目すべき変更を記録します。形式は[Keep a Changelog](https://keepachangelog.com/ja/1.1.0/)に基づき、[Semantic Versioning](https://semver.org/lang/ja/)に従います。
|
|
4
4
|
|
|
5
|
+
## [0.8.0] - 2026-10-29
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- 製作者情報を name: `Hiroya Kubo`、email: `hiroya@cuc.ac.jp`、url: `https://github.com/kubohiroya` のオブジェクトへ統一。
|
|
10
|
+
- 実行時依存 `@kubohiroya/turbowarp-extension-data-editor` を `^0.4.0` から `^0.5.0` へ更新。
|
|
11
|
+
- ビルド依存 `@kubohiroya/turbowarp-extension-manifest` を `^0.4.0` から `^0.5.0` へ更新。
|
|
12
|
+
- ビルド依存 `@kubohiroya/vite-plugin-turbowarp-extension` を `^0.9.0` から `^0.10.0` へ更新。
|
|
13
|
+
- ロールバック: `@kubohiroya/turbowarp-diagnostic-overlay@0.7.0` を固定して利用する。
|
|
14
|
+
|
|
5
15
|
## [0.7.0] - 2026-10-27
|
|
6
16
|
|
|
7
17
|
### Changed
|
package/README.ja.md
CHANGED
|
@@ -11,6 +11,15 @@
|
|
|
11
11
|
[English guide](https://kubohiroya.github.io/turbowarp-diagnostic-overlay/)および
|
|
12
12
|
[日本語ガイド](https://kubohiroya.github.io/turbowarp-diagnostic-overlay/ja/)で扱っています。
|
|
13
13
|
|
|
14
|
+
## 実行できるサンプル
|
|
15
|
+
|
|
16
|
+
[**TurboWarp Editorでデモを開く**](https://turbowarp.org/editor?project_url=https%3A%2F%2Fkubohiroya.github.io%2Fturbowarp-diagnostic-overlay%2Fsamples%2Fshow-and-clear-diagnostic.sb3) · [SB3をダウンロード](https://kubohiroya.github.io/turbowarp-diagnostic-overlay/samples/show-and-clear-diagnostic.sb3)
|
|
17
|
+
|
|
18
|
+
**Run without sandbox**を選んで**Allow**し、緑の旗を押します。
|
|
19
|
+
`showDiagnostic`で1件表示し、キー操作で`clearDiagnosticOverlay`、可視状態を確認。サンプルの元データと期待結果は[`samples/README.md`](samples/README.md)に記載しています。
|
|
20
|
+
|
|
21
|
+
`pnpm run samples:build`でSB3を再生成し、`pnpm run samples:check`で更新漏れと生成処理を確認します。
|
|
22
|
+
|
|
14
23
|
## 責務の境界
|
|
15
24
|
|
|
16
25
|
このpackageが行うのは、診断データの検証、SVGの生成、現在のoverlayの表示・更新・消去です。診断の検出、
|
|
@@ -27,13 +36,13 @@ rendererは外部のSVGやHTMLを受け付けず、入力文字列をすべてXM
|
|
|
27
36
|
npmから導入する場合は、レビュー済みのversionを固定します。
|
|
28
37
|
|
|
29
38
|
```bash
|
|
30
|
-
pnpm add --save-exact @kubohiroya/turbowarp-diagnostic-overlay@0.
|
|
39
|
+
pnpm add --save-exact @kubohiroya/turbowarp-diagnostic-overlay@0.8.0
|
|
31
40
|
```
|
|
32
41
|
|
|
33
42
|
standaloneの拡張機能は、version固定の次のCDN URLからも取得できます。
|
|
34
43
|
|
|
35
44
|
```text
|
|
36
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-diagnostic-overlay@0.
|
|
45
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-diagnostic-overlay@0.8.0/dist/diagnostic-overlay.js
|
|
37
46
|
```
|
|
38
47
|
|
|
39
48
|
機械可読なblock API manifestは、ビルド時に`src/block-definitions.json`から生成します。利用側は
|
|
@@ -41,7 +50,7 @@ https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-diagnostic-overlay@0.7.0/dist
|
|
|
41
50
|
検証できます。
|
|
42
51
|
|
|
43
52
|
```text
|
|
44
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-diagnostic-overlay@0.
|
|
53
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-diagnostic-overlay@0.8.0/dist/extension-manifest.json
|
|
45
54
|
```
|
|
46
55
|
|
|
47
56
|
## 診断JSON
|
package/README.md
CHANGED
|
@@ -12,6 +12,16 @@ The [English guide](https://kubohiroya.github.io/turbowarp-diagnostic-overlay/)
|
|
|
12
12
|
[Japanese guide](https://kubohiroya.github.io/turbowarp-diagnostic-overlay/ja/) cover installation,
|
|
13
13
|
the Composition API, safety, and lifecycle behavior.
|
|
14
14
|
|
|
15
|
+
## Runnable sample
|
|
16
|
+
|
|
17
|
+
[**Open the demo in TurboWarp Editor**](https://turbowarp.org/editor?project_url=https%3A%2F%2Fkubohiroya.github.io%2Fturbowarp-diagnostic-overlay%2Fsamples%2Fshow-and-clear-diagnostic.sb3) · [Download the SB3](https://kubohiroya.github.io/turbowarp-diagnostic-overlay/samples/show-and-clear-diagnostic.sb3)
|
|
18
|
+
|
|
19
|
+
Select **Run without sandbox**, then **Allow**, and click the green flag.
|
|
20
|
+
A DEMO001 warning is visible. Press Space to clear it.
|
|
21
|
+
|
|
22
|
+
Editable sources and expected results: [`samples/README.md`](samples/README.md).
|
|
23
|
+
Run `pnpm run samples:build` after source/bundle changes and `pnpm run samples:check` before committing.
|
|
24
|
+
|
|
15
25
|
## Responsibility boundary
|
|
16
26
|
|
|
17
27
|
This package validates diagnostic data, generates SVG, and displays, updates, or clears the current
|
|
@@ -29,13 +39,13 @@ TurboWarp Desktop and allow it to **run without the sandbox**.
|
|
|
29
39
|
When installing from npm, pin the reviewed version:
|
|
30
40
|
|
|
31
41
|
```bash
|
|
32
|
-
pnpm add --save-exact @kubohiroya/turbowarp-diagnostic-overlay@0.
|
|
42
|
+
pnpm add --save-exact @kubohiroya/turbowarp-diagnostic-overlay@0.8.0
|
|
33
43
|
```
|
|
34
44
|
|
|
35
45
|
The standalone extension is also available from this version-pinned CDN URL:
|
|
36
46
|
|
|
37
47
|
```text
|
|
38
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-diagnostic-overlay@0.
|
|
48
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-diagnostic-overlay@0.8.0/dist/diagnostic-overlay.js
|
|
39
49
|
```
|
|
40
50
|
|
|
41
51
|
The machine-readable block API manifest is generated from `src/block-definitions.json` during the
|
|
@@ -43,7 +53,7 @@ build. Consumers can pin and verify the extension ID, opcodes, block types, argu
|
|
|
43
53
|
and menu references without evaluating the runtime bundle:
|
|
44
54
|
|
|
45
55
|
```text
|
|
46
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-diagnostic-overlay@0.
|
|
56
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-diagnostic-overlay@0.8.0/dist/extension-manifest.json
|
|
47
57
|
```
|
|
48
58
|
|
|
49
59
|
## Diagnostic JSON
|
package/docs/index.html
CHANGED
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
|
|
54
54
|
<section class="section" id="install">
|
|
55
55
|
<h2>Install the reviewed build</h2>
|
|
56
|
-
<pre><code>pnpm add --save-exact @kubohiroya/turbowarp-diagnostic-overlay@0.
|
|
56
|
+
<pre><code>pnpm add --save-exact @kubohiroya/turbowarp-diagnostic-overlay@0.8.0</code></pre>
|
|
57
57
|
<p>For the standalone extension, load this pinned URL without sandboxing:</p>
|
|
58
|
-
<pre><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-diagnostic-overlay@0.
|
|
58
|
+
<pre><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-diagnostic-overlay@0.8.0/dist/diagnostic-overlay.js</code></pre>
|
|
59
59
|
</section>
|
|
60
60
|
|
|
61
61
|
<section class="section" id="composition">
|
|
@@ -76,7 +76,10 @@ controller.show({severity: 'error', code: 'APP001', message: 'Check the input.'}
|
|
|
76
76
|
</section>
|
|
77
77
|
</main>
|
|
78
78
|
<footer>TurboWarp-Diagnostic-Overlay · MPL-2.0 · <a href="https://github.com/kubohiroya/turbowarp-diagnostic-overlay/releases/tag/v0.2.0">Release v0.2.0</a></footer>
|
|
79
|
-
|
|
79
|
+
<section id="runnable-sample"><h2>Runnable sample / 実行できるサンプル</h2>
|
|
80
|
+
<p><a href="https://turbowarp.org/editor?project_url=https%3A%2F%2Fkubohiroya.github.io%2Fturbowarp-diagnostic-overlay%2Fsamples%2Fshow-and-clear-diagnostic.sb3">Open in TurboWarp Editor</a> · <a href="https://kubohiroya.github.io/turbowarp-diagnostic-overlay/samples/show-and-clear-diagnostic.sb3">Download show-and-clear-diagnostic.sb3</a></p>
|
|
81
|
+
<p>A DEMO001 warning is visible. Press Space to clear it.</p><p>Run without sandboxを選んでAllowし、緑の旗を押します。</p></section>
|
|
82
|
+
<!-- BEGIN COMPLETE BLOCK REFERENCE -->
|
|
80
83
|
<section lang="en" id="extension-block-reference" aria-labelledby="block-reference-title">
|
|
81
84
|
<h2 id="block-reference-title">Diagnostic Overlay: complete block reference</h2>
|
|
82
85
|
<p>All 6 blocks are documented below, including compatibility blocks and blocks available through optional features. Select a block to read its behavior, arguments, default values, and menu choices. Each block has a permanent link.</p>
|
package/docs/ja/index.html
CHANGED
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
<section class="section" id="install">
|
|
46
46
|
<h2>レビュー済みビルドを導入</h2>
|
|
47
|
-
<pre><code>pnpm add --save-exact @kubohiroya/turbowarp-diagnostic-overlay@0.
|
|
47
|
+
<pre><code>pnpm add --save-exact @kubohiroya/turbowarp-diagnostic-overlay@0.8.0</code></pre>
|
|
48
48
|
<p>単独機能拡張は、次の固定URLをサンドボックスなしで読み込みます。</p>
|
|
49
|
-
<pre><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-diagnostic-overlay@0.
|
|
49
|
+
<pre><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-diagnostic-overlay@0.8.0/dist/diagnostic-overlay.js</code></pre>
|
|
50
50
|
</section>
|
|
51
51
|
|
|
52
52
|
<section class="section" id="composition">
|
|
@@ -66,7 +66,10 @@ controller.show({severity: 'error', code: 'APP001', message: '入力を確認し
|
|
|
66
66
|
<article class="card"><h2>利用側の責務</h2><p>診断の発見、Scratch threadやVMを止める判断、永続化は利用側が行います。このpackageはアプリ固有DSLを知りません。</p></article>
|
|
67
67
|
</section>
|
|
68
68
|
<p><a href="../#block-showDiagnostic">showDiagnosticの固定アンカーとSEVERITY固定フォームの説明</a>:info・warning・error・fatalを選択し、未変更の原文を保持します。CODE/MESSAGEはこのフォームの対象外です。</p>
|
|
69
|
-
|
|
69
|
+
<section id="runnable-sample"><h2>Runnable sample / 実行できるサンプル</h2>
|
|
70
|
+
<p><a href="https://turbowarp.org/editor?project_url=https%3A%2F%2Fkubohiroya.github.io%2Fturbowarp-diagnostic-overlay%2Fsamples%2Fshow-and-clear-diagnostic.sb3">Open in TurboWarp Editor</a> · <a href="https://kubohiroya.github.io/turbowarp-diagnostic-overlay/samples/show-and-clear-diagnostic.sb3">Download show-and-clear-diagnostic.sb3</a></p>
|
|
71
|
+
<p>A DEMO001 warning is visible. Press Space to clear it.</p><p>Run without sandboxを選んでAllowし、緑の旗を押します。</p></section>
|
|
72
|
+
</main>
|
|
70
73
|
<footer>TurboWarp-Diagnostic-Overlay · MPL-2.0 · <a href="https://github.com/kubohiroya/turbowarp-diagnostic-overlay/releases/tag/v0.2.0">Release v0.2.0</a></footer>
|
|
71
74
|
<!-- The shared TurboWarp Plus header. It inserts itself at the top of the
|
|
72
75
|
page in a shadow root, so it cannot disturb the styles below. -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubohiroya/turbowarp-diagnostic-overlay",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Render structured diagnostics as safe SVG overlays on the TurboWarp stage.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"turbowarp",
|
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
"svg",
|
|
11
11
|
"overlay"
|
|
12
12
|
],
|
|
13
|
-
"author":
|
|
13
|
+
"author": {
|
|
14
|
+
"name": "Hiroya Kubo",
|
|
15
|
+
"email": "hiroya@cuc.ac.jp",
|
|
16
|
+
"url": "https://github.com/kubohiroya"
|
|
17
|
+
},
|
|
14
18
|
"license": "MPL-2.0",
|
|
15
19
|
"type": "module",
|
|
16
20
|
"repository": {
|
|
@@ -78,13 +82,16 @@
|
|
|
78
82
|
"pack:check": "npm pack --dry-run --ignore-scripts",
|
|
79
83
|
"release:check": "npm publish --dry-run --access public --ignore-scripts",
|
|
80
84
|
"repo:check": "node scripts/check-repo.ts",
|
|
81
|
-
"check": "pnpm run audit && pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run build && pnpm run docs:check && pnpm run site:check && pnpm run check:dist && pnpm run repo:check && pnpm run pack:check",
|
|
82
|
-
"prepublishOnly": "pnpm run check"
|
|
85
|
+
"check": "pnpm run audit && pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run build && pnpm run docs:check && pnpm run site:check && pnpm run check:dist && pnpm run repo:check && pnpm run pack:check && pnpm run samples:check",
|
|
86
|
+
"prepublishOnly": "pnpm run check",
|
|
87
|
+
"samples:build": "node scripts/build-samples.mjs",
|
|
88
|
+
"samples:check": "node scripts/build-samples.mjs --check && node --test scripts/verify-samples.mjs",
|
|
89
|
+
"pages:build": "node scripts/prepare-pages.mjs"
|
|
83
90
|
},
|
|
84
91
|
"devDependencies": {
|
|
85
92
|
"@eslint/js": "^10.0.1",
|
|
86
|
-
"@kubohiroya/turbowarp-extension-manifest": "^0.
|
|
87
|
-
"@kubohiroya/vite-plugin-turbowarp-extension": "^0.
|
|
93
|
+
"@kubohiroya/turbowarp-extension-manifest": "^0.5.0",
|
|
94
|
+
"@kubohiroya/vite-plugin-turbowarp-extension": "^0.10.0",
|
|
88
95
|
"@types/node": "^26.1.2",
|
|
89
96
|
"eslint": "^10.8.0",
|
|
90
97
|
"jsdom": "^30.0.1",
|
|
@@ -95,7 +102,7 @@
|
|
|
95
102
|
"react-dom": "18.3.1"
|
|
96
103
|
},
|
|
97
104
|
"dependencies": {
|
|
98
|
-
"@kubohiroya/turbowarp-extension-data-editor": "^0.
|
|
105
|
+
"@kubohiroya/turbowarp-extension-data-editor": "^0.5.0"
|
|
99
106
|
},
|
|
100
107
|
"gitHead": "f5d15bcc0d3b23517359a789b644599dfba4397f",
|
|
101
108
|
"x-turbowarp-source": {
|