@kubohiroya/turbowarp-camera-source 0.19.3 → 0.20.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 +105 -9
- package/README.md +65 -10
- package/assets/block-icon.svg +1 -0
- package/dist/camera-source.js +5231 -5081
- package/dist/runtime.d.ts +18 -0
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js.map +1 -1
- package/dist/snapshot.d.ts +59 -0
- package/dist/snapshot.d.ts.map +1 -0
- package/dist/snapshot.js +137 -0
- package/dist/snapshot.js.map +1 -0
- package/lib-editor/src/config.d.ts +4 -0
- package/lib-editor/src/config.js +6 -1
- package/package.json +6 -5
package/README.ja.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
# TurboWarp
|
|
1
|
+
# TurboWarp Camera Source
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<img src="assets/block-icon.svg" alt="" width="48" height="48">
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[English](README.md) | 日本語
|
|
6
|
+
|
|
7
|
+
TurboWarp Camera Sourceは、MediaDevicesのカメラストリームを名前付きで複数のTurboWarp拡張へ共有するcapability拡張です。leaseで起動と停止を管理し、TM、QR読み取り、将来の画像入力が同じ物理カメラを共有する場合も、姿勢認識用とQR/画像認識用で別カメラを使う場合も、`getUserMedia()`の競合を避けます。
|
|
6
8
|
|
|
7
9
|
**[English guide](https://kubohiroya.github.io/turbowarp-camera-source/)** ·
|
|
8
10
|
**[日本語ガイド](https://kubohiroya.github.io/turbowarp-camera-source/ja/)**
|
|
@@ -21,27 +23,33 @@ TurboWarp-Camera-Sourceは、MediaDevicesのカメラストリームを名前付
|
|
|
21
23
|
- ブラウザのカメラ許可
|
|
22
24
|
- Camera Sourceはカメラフレームをアップロードせず、画像を保存しません。
|
|
23
25
|
|
|
26
|
+
## セキュリティダイアログの説明言語
|
|
27
|
+
|
|
28
|
+
この版のビルドでは、既定の英語説明に加えて`Description[ja]`コメントへ日本語の説明を出力します。このメタデータに対応した共通セキュリティダイアログは、Editorが日本語なら日本語の説明を表示し、対応する翻訳がなければ元の説明を表示します。
|
|
29
|
+
|
|
30
|
+
説明の翻訳は必要な実行モードを変えません。この拡張は引き続き`Unsandboxed: required`です。
|
|
31
|
+
|
|
24
32
|
## インストール
|
|
25
33
|
|
|
26
34
|
次のURLをunsandboxed custom extensionとして読み込みます。
|
|
27
35
|
|
|
28
36
|
```text
|
|
29
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-source@0.
|
|
37
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-source@0.20.0/dist/camera-source.js
|
|
30
38
|
```
|
|
31
39
|
|
|
32
40
|
npm hostでは次を使います。
|
|
33
41
|
|
|
34
42
|
```bash
|
|
35
|
-
pnpm add @kubohiroya/turbowarp-camera-source@0.
|
|
43
|
+
pnpm add @kubohiroya/turbowarp-camera-source@0.20.0
|
|
36
44
|
```
|
|
37
45
|
|
|
38
|
-
##
|
|
46
|
+
## 最初の使い方
|
|
39
47
|
|
|
40
48
|
カメラストリームには役割名を使います。同じ`cameraId`を使うconsumerは1つのカメラを共有し、異なる名前は別デバイスへ割り当てられます。
|
|
41
49
|
|
|
42
50
|
```text
|
|
43
51
|
start shared camera [pose] with device ID []
|
|
44
|
-
show shared camera [pose] preview
|
|
52
|
+
show shared camera [pose] preview flipped [horizontal]
|
|
45
53
|
shared camera [pose] frame width
|
|
46
54
|
shared camera [pose] frame rate
|
|
47
55
|
hide shared camera [pose] preview
|
|
@@ -56,7 +64,7 @@ stop shared camera [pose]
|
|
|
56
64
|
|
|
57
65
|
- `start shared camera [CAMERA_ID] with device ID [DEVICE_ID]`: 名前付き共有カメラを開始します。
|
|
58
66
|
- `start shared camera [CAMERA_ID] requested by this page`: ページのクエリパラメータが指定するカメラを開始します。`cameraDeviceId`は厳密に、`cameraWidth`・`cameraHeight`・`cameraFrameRate`は理想値として要求します。指定がなければ、デバイスを指定しない`start shared camera`と同じです。複数のUSBカメラを使うアプリが、同じoriginの別のアプリ(レンズ校正アプリなど)をそのうち1台のために開くときの指定方法です。
|
|
59
|
-
- `start shared camera [CAMERA_ID] from the browser's camera button`: ブラウザ自身のカメラボタンをステージに置き、操作者が答えるまで待って、返ってきたstreamをこのカメラIDで共有します(`getUserMedia`は呼びません)。エディタで開いた`.sb3`のように、作品の上に要素を置くhostが居ない場合のためのブロックです。そのカメラIDがすでにstreamを持つとき——hostが採用したpackaged作品——は、訊き直さずそのstreamに合流します。拒否されても作品は動き続けます。カメラは起動せず、`shared camera error code`は`usermedia-cancelled`になり、`start shared camera`も使えます。要素を持たないブラウザでは`usermedia-unsupported
|
|
67
|
+
- `start shared camera [CAMERA_ID] from the browser's camera button`: ブラウザ自身のカメラボタンをステージに置き、操作者が答えるまで待って、返ってきたstreamをこのカメラIDで共有します(`getUserMedia`は呼びません)。エディタで開いた`.sb3`のように、作品の上に要素を置くhostが居ない場合のためのブロックです。そのカメラIDがすでにstreamを持つとき——hostが採用したpackaged作品——は、訊き直さずそのstreamに合流します。拒否されても作品は動き続けます。カメラは起動せず、`shared camera error code`は`usermedia-cancelled`になり、`start shared camera`も使えます。要素を持たないブラウザでは`usermedia-unsupported`を報告します。要素はカメラだけでなくマイクも返しますが、そのtrackは共有の前に止めて外すので、誰も聞き取りません。ブラウザ自身の許可画面にマイクが出ることは、将来の`<camera>`要素でなければ変えられません。
|
|
60
68
|
- `hide the camera button for shared camera [CAMERA_ID]`: まだ答えを待っているカメラボタンを取り除きます。待っていたスクリプトは続行し、カメラのエラーコードは`usermedia-cancelled`になります。停止ボタンや別の作品の読み込みでも取り除かれます。
|
|
61
69
|
- `browser's camera button available?`: このブラウザがカメラボタンの要素(`<usermedia>`、Chrome 151以降)を持つかどうかです。ボタンを出す前に確認し、偽のときは`start shared camera`に落としてください。
|
|
62
70
|
- `stop shared camera [CAMERA_ID]`: 名前付き共有カメラを停止し、MediaStreamTrackを解放します。
|
|
@@ -98,7 +106,7 @@ stop shared camera [pose]
|
|
|
98
106
|
|
|
99
107
|
<!-- END GENERATED BLOCKS -->
|
|
100
108
|
|
|
101
|
-
##
|
|
109
|
+
## 実行時API
|
|
102
110
|
|
|
103
111
|
他のunsandboxed拡張は`Scratch.vm.runtime.ext_kubohiroyacamerasource`を参照できます。
|
|
104
112
|
|
|
@@ -180,6 +188,47 @@ Scratchのtouchingまたはcolor sensing用の画像sourceとしては扱いま
|
|
|
180
188
|
|
|
181
189
|
`cameraId`は`pose`や`qr`のような作品内の役割名です。`deviceId`を指定すると、その役割をブラウザが公開する特定のカメラデバイスへ割り当てられます。各カメラは最後のleaseが解放されるまで維持されます。
|
|
182
190
|
|
|
191
|
+
### 静止画の取得
|
|
192
|
+
|
|
193
|
+
画素ではなくファイルが欲しいconsumer——アセット管理、ダウンロード、最新フレームを配るサーバ——は、leaseに
|
|
194
|
+
1枚求められます。画像を自分で処理するconsumerは、encodeを挟まず`frame.element`を読んでください。
|
|
195
|
+
|
|
196
|
+
```js
|
|
197
|
+
if (typeof lease.captureFrame === "function") {
|
|
198
|
+
const shot = await lease.captureFrame({type: "image/jpeg", quality: 0.8, maxWidth: 1280});
|
|
199
|
+
// shot.bytesはUint8Array。shot.type・shot.width・shot.height・shot.capturedAtがそれを説明します。
|
|
200
|
+
}
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
`adoptCamera()`と同じ理由でfeature detectしてください。この面はversionではなく形で狭めているので、現在の宣言
|
|
204
|
+
でcompileしたconsumerが、このメソッドより古いbuildに出会うことがあります。
|
|
205
|
+
|
|
206
|
+
leaseが既に持っているstreamから描くので、2つ目のカメラを開くことはありません。sessionについても何も変えず、
|
|
207
|
+
1枚も取らなかった場合と同じようにleaseを解放できます。`type`の既定は`image/jpeg`。`quality`は0〜1へ丸めますが、
|
|
208
|
+
そもそもqualityでなかった値は、ブラウザの既定でencodeせずに拒否します。`maxWidth`・`maxHeight`は上限で、
|
|
209
|
+
アスペクト比は保たれ、厳しい側が決め、**フレームを引き伸ばすことはありません**——640 pxのフレームに4000 pxを
|
|
210
|
+
求めるのは、存在しない細部を求めることです。要求したtypeをencodeできないブラウザは失敗ではなくPNGを返すので、
|
|
211
|
+
typeを照合し、違っていれば誤った名前で渡す代わりに報告します。
|
|
212
|
+
|
|
213
|
+
**取得される静止画はカメラが撮ったそのものです。** `previewFlip`は描画上の選択であり、適用しません。
|
|
214
|
+
プロファイルのintrinsicsは撮影された画像を記述するので、黙って左右反転した静止画は、同じカメラで解いた全ての
|
|
215
|
+
校正と食い違い、しかもその食い違いが見えません——左右反転した部屋の写真は、部屋の写真に見えます。操作者が見て
|
|
216
|
+
いたものが欲しい場合は`flip`で求め、それが何だったかは`frame.previewFlip`で分かります。
|
|
217
|
+
|
|
218
|
+
ここにHTTP・アセット・保存の概念は入りません。10秒ごとのライブカメラは外側で組み立てます。
|
|
219
|
+
|
|
220
|
+
```js
|
|
221
|
+
const lease = await cameraSource.acquireCamera({owner: "live-camera", cameraId: "live"});
|
|
222
|
+
const timer = setInterval(async () => {
|
|
223
|
+
const shot = await lease.captureFrame({type: "image/jpeg", quality: 0.7, maxWidth: 1280});
|
|
224
|
+
await assets.replace("live-camera", shot.bytes, shot.type); // 最新フレームを保持する何か
|
|
225
|
+
}, 10_000);
|
|
226
|
+
// clearInterval(timer); await lease.release();
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
あとは保持側が配ります——`turbowarp-http-server`が`GET /camera/image.jpg`に答える、ダウンロードさせる、
|
|
230
|
+
アップロードする——が、そのいずれもCamera Sourceは知りません。
|
|
231
|
+
|
|
183
232
|
### 校正プロファイル
|
|
184
233
|
|
|
185
234
|
内部校正プロファイルの契約は本拡張が持つが、**プロファイルを作ることはしない**。チェスボード校正も、操作者が貼り付けたJSONも、将来の別方式も、検証を通る文書の生産者というだけで、ここからは区別できない。
|
|
@@ -329,6 +378,53 @@ pnpm run check
|
|
|
329
378
|
|
|
330
379
|
GitHub Pages用の静的サイトは`docs/`にあり、英語版は`docs/index.html`、日本語版は`docs/ja/index.html`です。
|
|
331
380
|
|
|
381
|
+
## ビルドの流れ
|
|
382
|
+
|
|
383
|
+
```text
|
|
384
|
+
TypeScript source
|
|
385
|
+
-> Vite
|
|
386
|
+
-> vite-plugin-turbowarp-extension
|
|
387
|
+
-> dist/camera-source.js
|
|
388
|
+
|
|
389
|
+
Extension config + block definitions
|
|
390
|
+
-> extension manifest plugin
|
|
391
|
+
-> dist/extension-manifest.json
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
JavaScriptは、Extension Gallery向けのメタデータと標準の`(function (Scratch) { ... })(Scratch);`ラッパーを持つ、単一の非圧縮ファイルになります。
|
|
395
|
+
|
|
396
|
+
## プロジェクト構成
|
|
397
|
+
|
|
398
|
+
- `src/config.ts`:機能拡張のメタデータ。
|
|
399
|
+
- `src/block-definitions.json`:拡張本体とREADME生成で共有するブロックメタデータの正本。
|
|
400
|
+
- `src/extension.ts`:機能拡張の実装。
|
|
401
|
+
- `src/video-preview.ts`:GPUを使う`HTMLVideoElement`のプレビュー描画と資源管理。
|
|
402
|
+
- `src/index.ts`:拡張を登録するエントリーポイント。
|
|
403
|
+
- `src/globals.d.ts`:このプロジェクトで使うScratch APIの型宣言。
|
|
404
|
+
- manifestの生成器とJSON Schemaは[`@kubohiroya/turbowarp-extension-manifest`](https://github.com/kubohiroya/turbowarp-extension-manifest)が提供します。
|
|
405
|
+
- `scripts/generate-readme.ts`:日英READMEのブロック説明部分を更新します。
|
|
406
|
+
- `tests/`:単体テスト。
|
|
407
|
+
- `vite.config.ts`:TurboWarp向けのViteビルド設定。
|
|
408
|
+
- `dist/`:リポジトリに記録するTurboWarp用JavaScriptと拡張APIのmanifest。
|
|
409
|
+
|
|
410
|
+
## 拡張APIのmanifest
|
|
411
|
+
|
|
412
|
+
ビルドは`formatVersion: 1`の`dist/extension-manifest.json`を生成します。拡張ID、ブロックのopcodeと種類、引数のIDと型、メニュー参照を決定的な順序で記録します。`sb3-toolchain`などのツールは、同梱する拡張の更新やIDの移行に先立ってこの契約を比較できます。詳細は[設計文書(英語)](docs/architecture.md)と[v1のJSON Schema](https://github.com/kubohiroya/turbowarp-extension-manifest/blob/main/schemas/extension-manifest.schema.json)を参照してください。
|
|
413
|
+
|
|
414
|
+
実装やブロックメタデータを変更した場合は、記録対象の配布物を再生成して検証します。
|
|
415
|
+
|
|
416
|
+
```bash
|
|
417
|
+
pnpm run check:dist
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
## 生成ドキュメント
|
|
421
|
+
|
|
422
|
+
```bash
|
|
423
|
+
pnpm run docs
|
|
424
|
+
```
|
|
425
|
+
|
|
426
|
+
`pnpm run check`には`docs:check`も含まれます。`src/block-definitions.json`と日英READMEのブロック説明が一致しない場合は失敗します。
|
|
427
|
+
|
|
332
428
|
## ライセンス
|
|
333
429
|
|
|
334
430
|
SPDX-License-Identifier: MPL-2.0
|
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
# TurboWarp
|
|
1
|
+
# TurboWarp Camera Source
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<img src="assets/block-icon.svg" alt="" width="48" height="48">
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
English | [日本語](README.ja.md)
|
|
6
|
+
|
|
7
|
+
TurboWarp Camera Source is a TurboWarp extension capability for sharing named
|
|
6
8
|
`MediaDevices` camera streams across consumers such as pose recognition, image
|
|
7
9
|
classification, and QR scanning. It owns camera startup and shutdown through
|
|
8
10
|
leases so multiple extensions can intentionally share the same physical camera
|
|
@@ -18,28 +20,34 @@ or select separate cameras for separate roles.
|
|
|
18
20
|
- Keeps each stream alive until the final lease is released.
|
|
19
21
|
- Lists browser camera devices after permission is granted.
|
|
20
22
|
|
|
21
|
-
## Requirements and
|
|
23
|
+
## Requirements and safety
|
|
22
24
|
|
|
23
25
|
- TurboWarp custom extensions loaded with **Run extension without sandbox**.
|
|
24
26
|
- A secure browser context such as HTTPS or localhost.
|
|
25
27
|
- User camera permission through the browser permission prompt.
|
|
26
28
|
- Camera frames stay in the browser. Camera Source does not upload frames or store images.
|
|
27
29
|
|
|
30
|
+
## Security dialog description language
|
|
31
|
+
|
|
32
|
+
Builds include a Japanese `Description[ja]` header alongside the default English
|
|
33
|
+
description. A supporting shared security dialog follows the Editor locale and falls back to
|
|
34
|
+
the original description when no translation is available. Translation does not change the `Unsandboxed: required` requirement.
|
|
35
|
+
|
|
28
36
|
## Installation
|
|
29
37
|
|
|
30
38
|
Load this URL as an unsandboxed custom extension:
|
|
31
39
|
|
|
32
40
|
```text
|
|
33
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-source@0.
|
|
41
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-source@0.20.0/dist/camera-source.js
|
|
34
42
|
```
|
|
35
43
|
|
|
36
44
|
For npm hosts:
|
|
37
45
|
|
|
38
46
|
```bash
|
|
39
|
-
pnpm add @kubohiroya/turbowarp-camera-source@0.
|
|
47
|
+
pnpm add @kubohiroya/turbowarp-camera-source@0.20.0
|
|
40
48
|
```
|
|
41
49
|
|
|
42
|
-
## Quick
|
|
50
|
+
## Quick start
|
|
43
51
|
|
|
44
52
|
Use role names for camera streams. Consumers that use the same `cameraId` share one camera; different names can bind to different devices.
|
|
45
53
|
|
|
@@ -54,7 +62,7 @@ shared camera [pose] is running?
|
|
|
54
62
|
stop shared camera [pose]
|
|
55
63
|
```
|
|
56
64
|
|
|
57
|
-
## Block
|
|
65
|
+
## Block reference
|
|
58
66
|
|
|
59
67
|
<!-- BEGIN GENERATED BLOCKS -->
|
|
60
68
|
|
|
@@ -81,7 +89,7 @@ Starts the camera the page's query parameters name: `cameraDeviceId` exactly, an
|
|
|
81
89
|
|
|
82
90
|
### `start shared camera [CAMERA_ID] from the browser's camera button`
|
|
83
91
|
|
|
84
|
-
Places the browser's own camera button on the stage and waits for the operator to answer it, then shares the stream it returns under this camera id without calling getUserMedia. For a .sb3 opened in the editor, where no host above the project can place the element. When the camera id already runs a stream -- a packaged work whose host adopted one -- this joins that stream instead of asking again. A refusal leaves the work running: the camera does not start, `shared camera error code` reads `usermedia-cancelled`, and `start shared camera` is still available. Browsers without the element report `usermedia-unsupported`.
|
|
92
|
+
Places the browser's own camera button on the stage and waits for the operator to answer it, then shares the stream it returns under this camera id without calling getUserMedia. For a .sb3 opened in the editor, where no host above the project can place the element. When the camera id already runs a stream -- a packaged work whose host adopted one -- this joins that stream instead of asking again. A refusal leaves the work running: the camera does not start, `shared camera error code` reads `usermedia-cancelled`, and `start shared camera` is still available. Browsers without the element report `usermedia-unsupported`. The element answers with a microphone as well as a camera; its track is stopped and taken out of the stream before the camera is shared, so nothing listens on it. The browser's own prompt still names the microphone, which only a future `<camera>` element could change.
|
|
85
93
|
|
|
86
94
|
| Property | Value |
|
|
87
95
|
|---|---|
|
|
@@ -557,6 +565,53 @@ The display path avoids explicit CPU readback, but it does not promise end-to-en
|
|
|
557
565
|
browser-internal color conversion and GPU transfer may still occur. The preview is private and
|
|
558
566
|
noninteractive; it is intended for display, not Scratch touching or color-sensing queries.
|
|
559
567
|
|
|
568
|
+
### Still images
|
|
569
|
+
|
|
570
|
+
A consumer that wants a file rather than pixels — an asset store, a download, a server publishing
|
|
571
|
+
the latest frame — can ask the lease for one. A consumer that is going to process the image itself
|
|
572
|
+
should read `frame.element` instead and skip the encode.
|
|
573
|
+
|
|
574
|
+
```js
|
|
575
|
+
if (typeof lease.captureFrame === "function") {
|
|
576
|
+
const shot = await lease.captureFrame({type: "image/jpeg", quality: 0.8, maxWidth: 1280});
|
|
577
|
+
// shot.bytes is a Uint8Array; shot.type, shot.width, shot.height and shot.capturedAt describe it.
|
|
578
|
+
}
|
|
579
|
+
```
|
|
580
|
+
|
|
581
|
+
Feature detect the method, for the same reason as `adoptCamera()`: this surface is narrowed by
|
|
582
|
+
shape rather than by a version, so a consumer compiled against the current declarations can still
|
|
583
|
+
meet a build that predates it.
|
|
584
|
+
|
|
585
|
+
It draws from the stream the lease already holds, so it never opens a second camera, and it changes
|
|
586
|
+
nothing about the session — the lease is released the same way whether or not anything was captured.
|
|
587
|
+
`type` defaults to `image/jpeg`; `quality` is clamped into 0–1 and a value that was never a quality
|
|
588
|
+
is refused rather than encoded at the browser's default. `maxWidth` and `maxHeight` are upper
|
|
589
|
+
bounds: the aspect ratio is kept, the tighter bound decides, and **the frame is never enlarged** — a
|
|
590
|
+
caller asking for 4000 px of a 640 px frame is asking for detail that does not exist. A browser that
|
|
591
|
+
cannot encode the type asked for returns PNG rather than failing, so the type is checked and a
|
|
592
|
+
mismatch is reported instead of handed over under the wrong name.
|
|
593
|
+
|
|
594
|
+
**The snapshot is the camera's own capture.** `previewFlip` is a drawing choice and is not applied:
|
|
595
|
+
a profile's intrinsics describe the captured image, so a snapshot that silently mirrored itself
|
|
596
|
+
would disagree with every calibration solved against the same camera, and disagree invisibly — a
|
|
597
|
+
mirrored photograph of a room looks like a photograph of a room. A caller that wants what the
|
|
598
|
+
operator was looking at asks for it with `flip`, reading `frame.previewFlip` to find out what that
|
|
599
|
+
was.
|
|
600
|
+
|
|
601
|
+
Nothing here knows about HTTP, assets or storage. A ten-second live camera is composed outside:
|
|
602
|
+
|
|
603
|
+
```js
|
|
604
|
+
const lease = await cameraSource.acquireCamera({owner: "live-camera", cameraId: "live"});
|
|
605
|
+
const timer = setInterval(async () => {
|
|
606
|
+
const shot = await lease.captureFrame({type: "image/jpeg", quality: 0.7, maxWidth: 1280});
|
|
607
|
+
await assets.replace("live-camera", shot.bytes, shot.type); // whatever holds the latest frame
|
|
608
|
+
}, 10_000);
|
|
609
|
+
// clearInterval(timer); await lease.release();
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
The store then serves it — `turbowarp-http-server` answering `GET /camera/image.jpg`, a download, an
|
|
613
|
+
upload — without Camera Source knowing any of that happened.
|
|
614
|
+
|
|
560
615
|
### Calibration profiles
|
|
561
616
|
|
|
562
617
|
This extension owns the contract for intrinsic calibration profiles but never produces one. Chessboard calibration, an operator pasting JSON, and any future calibrator are all just producers of a document that passes validation, and nothing here can tell them apart.
|
|
@@ -770,7 +825,7 @@ For continuous rebuilding during development:
|
|
|
770
825
|
pnpm run dev
|
|
771
826
|
```
|
|
772
827
|
|
|
773
|
-
## Build
|
|
828
|
+
## Build workflow
|
|
774
829
|
|
|
775
830
|
```text
|
|
776
831
|
TypeScript source
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><circle cx="17" cy="24" r="9" fill="none" stroke="#4C97FF" stroke-width="3"/><circle cx="17" cy="24" r="3.4" fill="#4C97FF"/><path d="M30 24h10M29 17l9-5M29 31l9 5" fill="none" stroke="#59C059" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>
|