@kubohiroya/turbowarp-structured-data 0.6.0 → 0.6.2
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 +16 -0
- package/README.md +16 -1
- package/THIRD_PARTY_NOTICES.md +9 -0
- package/dist/structured-data.js +270 -7914
- package/docs/editor-runtime-boundary.ja.md +38 -0
- package/docs/index.html +1 -1
- package/docs/schemas/block-editor-fixed-inputs.schema.json +20 -0
- package/lib-editor/src/codecs.d.ts +10 -0
- package/lib-editor/src/config.d.ts +19 -0
- package/lib-editor/src/core.d.ts +34 -0
- package/lib-editor/src/editor-metadata.d.ts +5 -0
- package/lib-editor/src/editor-metadata.js +443 -0
- package/lib-editor/src/editor-schema.d.ts +2 -0
- package/lib-editor/src/fixed-input-editors.d.ts +9 -0
- package/lib-editor/src/fixed-input-schema.d.ts +3 -0
- package/lib-editor/src/source-editor.d.ts +8 -0
- package/package.json +30 -14
- package/schemas/block-editor-fixed-inputs.schema.json +20 -0
- package/src/editor-metadata.ts +5 -0
- package/src/extension.ts +29 -4
- package/src/fixed-input-editors.ts +67 -0
- package/src/fixed-input-schema.ts +16 -0
- package/src/source-editor.ts +13 -10
- package/templates/README.ja.md +13 -0
- package/templates/README.md +13 -0
package/README.ja.md
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
名前付き構造化データ、安全なJSON/YAML codec、決定的なpath操作、上限付き反復、server compiler契約を提供するTurboWarp機能拡張です。
|
|
6
6
|
|
|
7
|
+
編集metadataとpure owner検証は`./editor-metadata`で公開し、編集用Schema compileとAjvは共通GUIが担当します。
|
|
8
|
+
再生用JSには編集エンジンを同梱しません。[編集とruntimeの境界](docs/editor-runtime-boundary.ja.md)を参照してください。
|
|
9
|
+
|
|
7
10
|
## できること
|
|
8
11
|
|
|
9
12
|
- JSONまたはYAMLをtarget-localな名前付きnamespaceへparse
|
|
@@ -71,3 +74,16 @@ pnpm run check
|
|
|
71
74
|
SPDX-License-Identifier: MPL-2.0
|
|
72
75
|
|
|
73
76
|
bundleへ含まれるthird-party softwareのlicenseは[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)に記載します。
|
|
77
|
+
|
|
78
|
+
## 固定引数の編集フォーム(S3-4)
|
|
79
|
+
|
|
80
|
+
共通エディターの起動時フラグ `blockEditorFixedInputs` とDialogsがONのGUIでは、`forEachAtPath` の `MAX` だけを固定フォームとして登録します。旧GUI・フラグOFFでは追加登録を行いません。Schemaの正本は `schemas/block-editor-fixed-inputs.schema.json#/$defs/forEachAtPath/properties/MAX`、codecと登録は `src/fixed-input-editors.ts` です。既存raw値・未変更alias・未知enumは無操作保存で書き換えず、reporterを評価しません。明示変更だけを検査し、他の引数やブロック宣言、保存形式を変更しません。
|
|
81
|
+
|
|
82
|
+
MAXは整数1〜1000です。新しい入力には共通の有限数値token規則も適用し、途中入力を保存しません。MVP flagがOFFなら登録せず、NAME/PATH・staticLiteral由来の接続可否を変更しません。
|
|
83
|
+
|
|
84
|
+
登録はoptional API(apiVersion:1)に限定し、RUNTIME_DISPOSED/明示disposeで解除します。起動フラグOFF+再読込で従来経路へ切り戻せます。依存を戻す場合はmanifest/lock/実解決を一組で復旧します。npm公開や後続段階の動的候補は含みません。
|
|
85
|
+
|
|
86
|
+
Schemaが記述する契約の根拠は実getInfoの宣言と既存の純粋なruntime変換です。SchemaBundleのretrievalUriはこのローカル文書の識別子であり、URL配信済み・HTTP取得によるref解決を意味しません。Schemaは同梱文書だけでcompileします。
|
|
87
|
+
既存MAXの非空finiteなNumber alias(例`001`・`+1`・`0x10`)はNumberによる表示投影だけを行い、無変更rawを保存し直しません。空白・非finite・投影不能値はreadonlyとし、0/defaultを補いません。新しい入力にはこれらaliasを許可せずNP-finite-new-input-v1を適用します。
|
|
88
|
+
|
|
89
|
+
登録は拡張インスタンスの構築時に存在する任意の editor API を使用します。後からの API 追加や差し替えには自動追従しません。起動設定を変更した場合は GUI を再読み込みし、拡張インスタンスを再構築してください。
|
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Named structured data with safe JSON/YAML codecs, deterministic path operations, bounded iteration, and a server compiler contract.
|
|
6
6
|
|
|
7
|
+
Editor metadata and pure owner validation are available through `./editor-metadata`; the common GUI owns Schema compilation and Ajv. See [the runtime/editor boundary](docs/editor-runtime-boundary.ja.md) for compatibility and rollback details.
|
|
8
|
+
|
|
7
9
|
## What it does
|
|
8
10
|
|
|
9
11
|
- parses JSON or YAML into a target-local named namespace;
|
|
@@ -23,7 +25,7 @@ JSON and YAML input is limited to 256 KiB, nesting depth 64, and 50,000 values.
|
|
|
23
25
|
## Installation
|
|
24
26
|
|
|
25
27
|
```bash
|
|
26
|
-
pnpm add --save-exact @kubohiroya/turbowarp-structured-data@0.6.
|
|
28
|
+
pnpm add --save-exact @kubohiroya/turbowarp-structured-data@0.6.2
|
|
27
29
|
```
|
|
28
30
|
|
|
29
31
|
## Quick start
|
|
@@ -243,3 +245,16 @@ pnpm run check
|
|
|
243
245
|
SPDX-License-Identifier: MPL-2.0
|
|
244
246
|
|
|
245
247
|
Bundled third-party license terms are listed in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
|
|
248
|
+
|
|
249
|
+
## 固定引数の編集フォーム(S3-4)
|
|
250
|
+
|
|
251
|
+
共通エディターの起動時フラグ `blockEditorFixedInputs` とDialogsがONのGUIでは、`forEachAtPath` の `MAX` だけを固定フォームとして登録します。旧GUI・フラグOFFでは追加登録を行いません。Schemaの正本は `schemas/block-editor-fixed-inputs.schema.json#/$defs/forEachAtPath/properties/MAX`、codecと登録は `src/fixed-input-editors.ts` です。既存raw値・未変更alias・未知enumは無操作保存で書き換えず、reporterを評価しません。明示変更だけを検査し、他の引数やブロック宣言、保存形式を変更しません。
|
|
252
|
+
|
|
253
|
+
MAXは整数1〜1000です。新しい入力には共通の有限数値token規則も適用し、途中入力を保存しません。MVP flagがOFFなら登録せず、NAME/PATH・staticLiteral由来の接続可否を変更しません。
|
|
254
|
+
|
|
255
|
+
登録はoptional API(apiVersion:1)に限定し、RUNTIME_DISPOSED/明示disposeで解除します。起動フラグOFF+再読込で従来経路へ切り戻せます。依存を戻す場合はmanifest/lock/実解決を一組で復旧します。npm公開や後続段階の動的候補は含みません。
|
|
256
|
+
|
|
257
|
+
Schemaが記述する契約の根拠は実getInfoの宣言と既存の純粋なruntime変換です。SchemaBundleのretrievalUriはこのローカル文書の識別子であり、URL配信済み・HTTP取得によるref解決を意味しません。Schemaは同梱文書だけでcompileします。
|
|
258
|
+
既存MAXの非空finiteなNumber alias(例`001`・`+1`・`0x10`)はNumberによる表示投影だけを行い、無変更rawを保存し直しません。空白・非finite・投影不能値はreadonlyとし、0/defaultを補いません。新しい入力にはこれらaliasを許可せずNP-finite-new-input-v1を適用します。
|
|
259
|
+
|
|
260
|
+
Registration uses the optional editor API available when the extension instance is constructed. Adding or replacing that API later is not followed automatically; reload the GUI and reconstruct the extension instance after changing the startup configuration.
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -9,6 +9,15 @@ Copyright Hiroya Kubo
|
|
|
9
9
|
Licensed under the Mozilla Public License 2.0. The canonical source and package are available at
|
|
10
10
|
<https://github.com/kubohiroya/turbowarp-named-data>.
|
|
11
11
|
|
|
12
|
+
## @kubohiroya/turbowarp-extension-data-editor (pure helpers)
|
|
13
|
+
|
|
14
|
+
Copyright Hiroya Kubo
|
|
15
|
+
|
|
16
|
+
The JSON value Schema declaration and fixed numeric input parser are inlined from this package.
|
|
17
|
+
Licensed under the Mozilla Public License 2.0. Canonical source:
|
|
18
|
+
<https://github.com/kubohiroya/turbowarp-extension-data-editor>.
|
|
19
|
+
The editor engine, Ajv and React/RJSF are excluded from the playback and metadata bundles.
|
|
20
|
+
|
|
12
21
|
## yaml
|
|
13
22
|
|
|
14
23
|
Copyright Eemeli Aro <eemeli@gmail.com>
|