@kubohiroya/turbowarp-camera-calibration 0.1.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.
@@ -0,0 +1,198 @@
1
+ # TurboWarp-<Extension-Name>
2
+
3
+ [English](README.md) | [日本語](README.ja.md)
4
+
5
+ A TurboWarp extension that <one-sentence purpose>.
6
+
7
+ **User guide:** [English](<PAGES_URL>/)
8
+
9
+ ## What it does
10
+
11
+ - <User-visible capability 1>
12
+ - <User-visible capability 2>
13
+ - <User-visible capability 3>
14
+
15
+ Keep this section about outcomes, not implementation files.
16
+
17
+ ## Documentation and block icon
18
+
19
+ This extension publishes its English user documentation with GitHub Pages.
20
+
21
+ - `docsURI` points to the English GitHub Pages documentation: `<PAGES_URL>/`.
22
+ - `blockIconURI` is a self-contained SVG encoded as `data:image/svg+xml;base64,...`.
23
+ - The block icon should be a simple, recognizable symbol that represents this extension and improves block readability. Do not use a generic placeholder icon in a released extension.
24
+
25
+ ## Requirements and safety
26
+
27
+ - <TurboWarp Desktop / Web / Packager support>
28
+ - <Browser API or companion extension requirements>
29
+ - <Sandbox requirement>
30
+
31
+ > [!IMPORTANT]
32
+ > This extension must run without the sandbox because <reason>. Load unsandboxed
33
+ > extension code only from a source you trust.
34
+
35
+ Delete the notice above when the extension is sandbox-compatible.
36
+
37
+ ## Installation
38
+
39
+ ### Ready-to-use JavaScript
40
+
41
+ 1. Download [`dist/<file>.js`](dist/<file>.js?raw=1).
42
+ 2. Open **Extensions** in TurboWarp.
43
+ 3. Choose **Custom Extension** and load the file.
44
+ 4. Enable **Run extension without sandbox** when required.
45
+
46
+ The reviewed JavaScript build is committed to this repository, so users do not
47
+ need Node.js to install the extension.
48
+
49
+ ### npm package
50
+
51
+ Install an exact version that you have reviewed:
52
+
53
+ ```bash
54
+ pnpm add --save-exact @kubohiroya/<package>@<version>
55
+ ```
56
+
57
+ Load the standalone bundle from:
58
+
59
+ ```text
60
+ node_modules/@kubohiroya/<package>/dist/<file>.js
61
+ ```
62
+
63
+ A version-pinned CDN URL is:
64
+
65
+ ```text
66
+ https://cdn.jsdelivr.net/npm/@kubohiroya/<package>@<version>/dist/<file>.js
67
+ ```
68
+
69
+ Do not maintain `<version>` manually unless CI checks it against `package.json`.
70
+
71
+ ## Quick start
72
+
73
+ 1. <Step 1>
74
+ 2. <Step 2>
75
+ 3. <Step 3>
76
+
77
+ ```text
78
+ <Minimal TurboWarp block flow>
79
+ ```
80
+
81
+ ## Block reference
82
+
83
+ The block reference is generated from
84
+ [`src/block-definitions.json`](src/block-definitions.json). Do not edit the
85
+ generated section manually.
86
+
87
+ <!-- BEGIN GENERATED BLOCKS -->
88
+
89
+ <Generated block documentation>
90
+
91
+ <!-- END GENERATED BLOCKS -->
92
+
93
+ ## Important behavior
94
+
95
+ | Situation | Behavior |
96
+ |---|---|
97
+ | <Case> | <Exact behavior> |
98
+ | Project stop | <Cleanup behavior> |
99
+ | Project reload | <Cleanup or restoration behavior> |
100
+ | Invalid input | <Error or fallback behavior> |
101
+
102
+ ## Composition API
103
+
104
+ Delete this section when the package has no Composition API.
105
+
106
+ Importing the Composition API does not register the standalone TurboWarp
107
+ extension.
108
+
109
+ ```ts
110
+ import {create<Feature>Composition} from '@kubohiroya/<package>/composition';
111
+
112
+ const feature = create<Feature>Composition({
113
+ // Explicit dependencies
114
+ });
115
+
116
+ // Use the capability.
117
+
118
+ feature.releaseAll();
119
+ ```
120
+
121
+ Explain:
122
+
123
+ - ownership;
124
+ - cancellation and `AbortSignal`;
125
+ - target/project lifecycle;
126
+ - side effects;
127
+ - browser, network, storage, and renderer boundaries;
128
+ - `release()` / `releaseAll()` behavior.
129
+
130
+ Move the complete method reference to [`docs/composition-api.md`](docs/composition-api.md).
131
+
132
+ ## Integration
133
+
134
+ | Consumer | Relationship |
135
+ |---|---|
136
+ | `<consumer package>` | <required / optional / capability injection> |
137
+
138
+ Dependencies must point from the consumer to the provider. Do not document
139
+ private-field access as an integration API.
140
+
141
+ ## Compatibility
142
+
143
+ | Identifier | Value | Stability |
144
+ |---|---|---|
145
+ | Product name | `TurboWarp-<Extension-Name>` | Human-facing |
146
+ | Repository | `kubohiroya/<repository>` | Current source location |
147
+ | npm package | `@kubohiroya/<package>` | Public package contract |
148
+ | Extension ID | `<extensionid>` | Stored in SB3; migration required to change |
149
+
150
+ Use hyphens between every component of a multi-word TurboWarp extension name,
151
+ for example `TurboWarp-Asset-Manager`, `TurboWarp-Runtime-Expression`, and
152
+ `TurboWarp-Diagnostic-Overlay`.
153
+
154
+ Document schema-aware migrations when an extension ID or opcode changes. Never
155
+ instruct users to replace JavaScript alone when stored identifiers have changed.
156
+
157
+ ## Development
158
+
159
+ Use Node.js `<minimum version>` and the pnpm version declared by
160
+ `packageManager`.
161
+
162
+ ```bash
163
+ corepack enable
164
+ pnpm install --frozen-lockfile
165
+ pnpm check
166
+ ```
167
+
168
+ Useful commands:
169
+
170
+ | Command | Purpose |
171
+ |---|---|
172
+ | `pnpm dev` | Rebuild while source files change |
173
+ | `pnpm test` | Run tests |
174
+ | `pnpm docs` | Regenerate block documentation |
175
+ | `pnpm check:dist` | Verify committed build artifacts |
176
+ | `pnpm pack:check` | Inspect the npm package |
177
+ | `pnpm release:check` | Dry-run the release |
178
+
179
+ ## Release
180
+
181
+ 1. Update `CHANGELOG.md` when present.
182
+ 2. Update the version in `package.json`.
183
+ 3. Run `pnpm check` and the repository release checks.
184
+ 4. Merge the release PR.
185
+ 5. Create tag `v<version>` on the verified commit.
186
+ 6. Publish the same version to npm when applicable.
187
+ 7. Verify GitHub Release, npm tarball, GitHub Pages, `docsURI`, block icon, and CDN artifacts.
188
+
189
+ The release consistency check should verify every exact-version README and CDN
190
+ example, and should ensure that `docsURI` still resolves to the English Pages
191
+ site and `blockIconURI` remains a `data:image/svg+xml;base64,...` URI.
192
+
193
+ ## License
194
+
195
+ [Mozilla Public License 2.0](LICENSE) (SPDX: `MPL-2.0`).
196
+
197
+ Third-party components, when present, are listed in
198
+ [`THIRD_PARTY_NOTICES.md`](THIRD_PARTY_NOTICES.md).