@kubohiroya/turbowarp-openai-realtime-api 0.1.0 → 0.2.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
@@ -1,6 +1,8 @@
1
1
  # TurboWarp-OpenAI-Realtime-API
2
2
 
3
- [English](README.md) | [日本語](README.ja.md)
3
+ <img src="assets/block-icon.svg" alt="" width="48" height="48">
4
+
5
+ [English](README.md) | 日本語
4
6
 
5
7
  OpenAI Realtime APIと音声やテキストで会話し、ブロックで書いた関数をモデルから呼び出せるようにするTurboWarp機能拡張です。OpenAIのAPIキーはlocalhostの中継に置いたままで、ブラウザには短時間だけ有効な一時キーしか渡しません。
6
8
 
@@ -37,7 +39,7 @@ OpenAI Realtime APIと音声やテキストで会話し、ブロックで書い
37
39
  npm packageとして使う場合は、検証済みのversionをexact pinします。
38
40
 
39
41
  ```bash
40
- pnpm add --save-exact @kubohiroya/turbowarp-openai-realtime-api@0.1.0
42
+ pnpm add --save-exact @kubohiroya/turbowarp-openai-realtime-api@0.2.0
41
43
  ```
42
44
 
43
45
  ## クイックスタート
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # TurboWarp-OpenAI-Realtime-API
2
2
 
3
- [English](README.md) | [日本語](README.ja.md)
3
+ <img src="assets/block-icon.svg" alt="" width="48" height="48">
4
+
5
+ English | [日本語](README.ja.md)
4
6
 
5
7
  A TurboWarp extension for talking with the OpenAI Realtime API by voice or text, and for letting the model call functions written in blocks. The OpenAI API key stays in a localhost relay; the browser only receives short-lived ephemeral keys.
6
8
 
@@ -43,7 +45,7 @@ The reviewed JavaScript build is committed to this repository, so users do not n
43
45
  Install an exact version that you have reviewed:
44
46
 
45
47
  ```bash
46
- pnpm add --save-exact @kubohiroya/turbowarp-openai-realtime-api@0.1.0
48
+ pnpm add --save-exact @kubohiroya/turbowarp-openai-realtime-api@0.2.0
47
49
  ```
48
50
 
49
51
  Standalone bundle:
@@ -413,3 +415,15 @@ SCRATCH_VM_PATH=/path/to/TurboWarp/scratch-vm pnpm test
413
415
  ## License
414
416
 
415
417
  [Mozilla Public License 2.0](LICENSE) (SPDX: `MPL-2.0`).
418
+
419
+ ## Fixed input editing
420
+
421
+ With a compatible TurboWarp GUI, enable fixed-input forms to edit only standard literal fields. Numbers use complete finite JSON number tokens; menu fields use existing choices. Connected reporters and unavailable fields stay read-only and are never evaluated. Saving an unchanged form preserves exact existing raw values, including legacy spellings and unknown choices. Invalid drafts stay in the same editing session; cancel, project/target replacement, or block removal discards them. Disabling the GUI feature flag restores native field editing. This form does not run blocks, open network/audio/key/QR sessions, resolve names, or edit Schema arguments.
422
+
423
+ Canonical contracts: `schemas/block-editor-fixed-inputs.schema.json`; codecs and optional registration: `src/fixed-input-editors.ts`. These contracts describe new fixed-field candidates; they do not redefine all runtime data. The GUI integration is optional and existing standalone/composition APIs stay available.
424
+
425
+ - `setOutputMode`: MODE — [block documentation](https://kubohiroya.github.io/turbowarp-openai-realtime-api/#block-setOutputMode).
426
+ - `setSessionTimeLimit`: SECONDS — [block documentation](https://kubohiroya.github.io/turbowarp-openai-realtime-api/#block-setSessionTimeLimit).
427
+ - `connect`: MICROPHONE — [block documentation](https://kubohiroya.github.io/turbowarp-openai-realtime-api/#block-connect).
428
+ - `defineFunction`: EXPORT — [block documentation](https://kubohiroya.github.io/turbowarp-openai-realtime-api/#block-defineFunction).
429
+ - `usageValue`: FIELD — [block documentation](https://kubohiroya.github.io/turbowarp-openai-realtime-api/#block-usageValue).
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M8 10h32a4 4 0 0 1 4 4v16a4 4 0 0 1-4 4H22l-9 7v-7H8a4 4 0 0 1-4-4V14a4 4 0 0 1 4-4z" fill="#10A37F"/><g stroke="#fff" stroke-width="3" stroke-linecap="round"><path d="M14 19v6"/><path d="M20 16v12"/><path d="M26 18v8"/><path d="M32 15v14"/><path d="M38 20v4"/></g></svg>