@kubohiroya/turbowarp-camera-source 0.21.0 → 0.22.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 +8 -2
- package/README.md +8 -2
- package/package.json +15 -8
package/README.ja.md
CHANGED
|
@@ -9,6 +9,12 @@ TurboWarp Camera Sourceは、MediaDevicesのカメラストリームを名前付
|
|
|
9
9
|
**[English guide](https://kubohiroya.github.io/turbowarp-camera-source/)** ·
|
|
10
10
|
**[日本語ガイド](https://kubohiroya.github.io/turbowarp-camera-source/ja/)**
|
|
11
11
|
|
|
12
|
+
## 最小デモ
|
|
13
|
+
|
|
14
|
+
[TurboWarp Editor](https://turbowarp.org/editor?project_url=https%3A%2F%2Fkubohiroya.github.io%2Fturbowarp-camera-source%2Fsamples%2Fcamera-preview-and-size.sb3) · [SB3](https://kubohiroya.github.io/turbowarp-camera-source/samples/camera-preview-and-size.sb3) · [操作・要件・未検証範囲](samples/README.md)
|
|
15
|
+
|
|
16
|
+
緑旗は状態表示のみです。**Start**を明示クリックするとカメラ許可を要求し、**Stop**でカメラを解放します。カメラ・HTTPS・許可が必要です。実カメラによる取得・認識・校正の成功は未検証です。自動検証は無音で初期状態と停止を確認しています。
|
|
17
|
+
|
|
12
18
|
## できること
|
|
13
19
|
|
|
14
20
|
- `pose`、`qr`、`default`などの名前付きカメラストリームを開始・停止します。
|
|
@@ -34,13 +40,13 @@ TurboWarp Camera Sourceは、MediaDevicesのカメラストリームを名前付
|
|
|
34
40
|
次のURLをunsandboxed custom extensionとして読み込みます。
|
|
35
41
|
|
|
36
42
|
```text
|
|
37
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-source@0.
|
|
43
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-source@0.22.0/dist/camera-source.js
|
|
38
44
|
```
|
|
39
45
|
|
|
40
46
|
npm hostでは次を使います。
|
|
41
47
|
|
|
42
48
|
```bash
|
|
43
|
-
pnpm add @kubohiroya/turbowarp-camera-source@0.
|
|
49
|
+
pnpm add @kubohiroya/turbowarp-camera-source@0.22.0
|
|
44
50
|
```
|
|
45
51
|
|
|
46
52
|
## 最初の使い方
|
package/README.md
CHANGED
|
@@ -13,6 +13,12 @@ or select separate cameras for separate roles.
|
|
|
13
13
|
**[Open the user guide](https://kubohiroya.github.io/turbowarp-camera-source/)** ·
|
|
14
14
|
**[日本語ガイド](https://kubohiroya.github.io/turbowarp-camera-source/ja/)**
|
|
15
15
|
|
|
16
|
+
## Minimal sample
|
|
17
|
+
|
|
18
|
+
[TurboWarp Editor](https://turbowarp.org/editor?project_url=https%3A%2F%2Fkubohiroya.github.io%2Fturbowarp-camera-source%2Fsamples%2Fcamera-preview-and-size.sb3) · [SB3](https://kubohiroya.github.io/turbowarp-camera-source/samples/camera-preview-and-size.sb3) · [Instructions, requirements and verification limits](samples/README.md)
|
|
19
|
+
|
|
20
|
+
The green flag only displays status. Click **Start** to request camera permission; **Stop** releases the camera. A camera, HTTPS and permission are required. Physical capture, recognition and calibration success are unverified. Automated checks are silent and cover initial state and stopping.
|
|
21
|
+
|
|
16
22
|
## What it does
|
|
17
23
|
|
|
18
24
|
- Starts and stops named camera streams such as `pose`, `qr`, or `default`.
|
|
@@ -38,13 +44,13 @@ the original description when no translation is available. Translation does not
|
|
|
38
44
|
Load this URL as an unsandboxed custom extension:
|
|
39
45
|
|
|
40
46
|
```text
|
|
41
|
-
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-source@0.
|
|
47
|
+
https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-camera-source@0.22.0/dist/camera-source.js
|
|
42
48
|
```
|
|
43
49
|
|
|
44
50
|
For npm hosts:
|
|
45
51
|
|
|
46
52
|
```bash
|
|
47
|
-
pnpm add @kubohiroya/turbowarp-camera-source@0.
|
|
53
|
+
pnpm add @kubohiroya/turbowarp-camera-source@0.22.0
|
|
48
54
|
```
|
|
49
55
|
|
|
50
56
|
## Quick start
|
package/package.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubohiroya/turbowarp-camera-source",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"author":
|
|
3
|
+
"version": "0.22.0",
|
|
4
|
+
"author": {
|
|
5
|
+
"name": "Hiroya Kubo",
|
|
6
|
+
"email": "hiroya@cuc.ac.jp",
|
|
7
|
+
"url": "https://github.com/kubohiroya"
|
|
8
|
+
},
|
|
5
9
|
"description": "A TurboWarp capability extension for sharing one MediaDevices camera stream across extensions.",
|
|
6
10
|
"type": "module",
|
|
7
11
|
"license": "MPL-2.0",
|
|
@@ -65,17 +69,20 @@
|
|
|
65
69
|
"repo:check": "node scripts/check-repo.ts",
|
|
66
70
|
"pack:check": "npm pack --dry-run --ignore-scripts",
|
|
67
71
|
"release:check": "pnpm publish --dry-run --access public --no-git-checks",
|
|
68
|
-
"check": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run docs:check && pnpm run docs:pages:check && pnpm run check:dist && pnpm run repo:check && pnpm run pack:check",
|
|
72
|
+
"check": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run docs:check && pnpm run docs:pages:check && pnpm run check:dist && pnpm run repo:check && pnpm run pack:check && pnpm run samples:check",
|
|
69
73
|
"check:dist": "pnpm run build && node scripts/check-dist.ts",
|
|
70
74
|
"prepack": "node scripts/prepack.mjs",
|
|
71
75
|
"build:editor": "tsc -p tsconfig.editor.json",
|
|
72
|
-
"prepare": "npm run build"
|
|
76
|
+
"prepare": "npm run build",
|
|
77
|
+
"samples:build": "node scripts/build-samples.mjs",
|
|
78
|
+
"samples:check": "node scripts/build-samples.mjs --check && node --test scripts/verify-samples.mjs",
|
|
79
|
+
"pages:build": "node scripts/prepare-pages.mjs"
|
|
73
80
|
},
|
|
74
81
|
"devDependencies": {
|
|
75
|
-
"@kubohiroya/turbowarp-app-shell": "^0.
|
|
82
|
+
"@kubohiroya/turbowarp-app-shell": "^0.6.0",
|
|
76
83
|
"@eslint/js": "^9.39.5",
|
|
77
|
-
"@kubohiroya/turbowarp-extension-manifest": "^0.
|
|
78
|
-
"@kubohiroya/vite-plugin-turbowarp-extension": "^0.
|
|
84
|
+
"@kubohiroya/turbowarp-extension-manifest": "^0.5.0",
|
|
85
|
+
"@kubohiroya/vite-plugin-turbowarp-extension": "^0.10.0",
|
|
79
86
|
"@types/node": "^24.13.3",
|
|
80
87
|
"ajv": "^8.20.0",
|
|
81
88
|
"eslint": "^9.39.5",
|
|
@@ -84,7 +91,7 @@
|
|
|
84
91
|
"vite": "^8.2.2",
|
|
85
92
|
"vitest": "^4.1.10",
|
|
86
93
|
"react-dom": "18.3.1",
|
|
87
|
-
"@kubohiroya/turbowarp-extension-data-editor": "^0.
|
|
94
|
+
"@kubohiroya/turbowarp-extension-data-editor": "^0.5.0"
|
|
88
95
|
},
|
|
89
96
|
"keywords": [
|
|
90
97
|
"turbowarp",
|