i-repo 2.9.0 → 2.9.1
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.
|
@@ -111,6 +111,12 @@ export interface PluginDescribe {
|
|
|
111
111
|
capabilities?: string[];
|
|
112
112
|
/** useCases = 用途タグ (要望書v3)。capabilities と同じく開いた語彙・型のみ検証 */
|
|
113
113
|
useCases?: string[];
|
|
114
|
+
/**
|
|
115
|
+
* capabilityDetails = capabilities タグごとの詳細宣言 (開いたマップ)。
|
|
116
|
+
* 例 { "native-query": { dialect, input, readOnly, audience[] } }。
|
|
117
|
+
* verify は検証しない (capabilities は string[] のタグ列、詳細はここ)。ホストが読んで GUI 露出等を決める。
|
|
118
|
+
*/
|
|
119
|
+
capabilityDetails?: Record<string, unknown>;
|
|
114
120
|
}
|
|
115
121
|
/**
|
|
116
122
|
* plugin describe の表示行を組む。plugin/path は CLI が解決した事実 —
|
package/package.json
CHANGED
package/plugins/i-repo-elastic
CHANGED
|
@@ -40,8 +40,11 @@ if (argv[0] === "--plugin-schema") {
|
|
|
40
40
|
phases: ["write", "verify"],
|
|
41
41
|
platforms: ["macos", "linux", "windows"],
|
|
42
42
|
roles: ["sink", "read", "search"],
|
|
43
|
-
capabilities
|
|
44
|
-
|
|
43
|
+
// 能力タグ(開いた語彙・string[])。CLI verify(describe-shape) は capabilities を string[] と検査する。
|
|
44
|
+
// keyword-search=全文検索 --q を受理(capability宣言+fail-open・vNext §②の一般化)。
|
|
45
|
+
// 各タグの詳細(dialect/audience 等)は capabilityDetails で宣言する(ホストはそちらを読む)。
|
|
46
|
+
capabilities: ["keyword-search", "native-query"],
|
|
47
|
+
capabilityDetails: {
|
|
45
48
|
// T2: ネイティブクエリ(仕様 §9)。query --native '<ES query DSL JSON>' を _search へ素通し。
|
|
46
49
|
// read-only はプラグインが強制(エンドポイントを _search に固定+script(painless)拒否)。audience 既定=human。
|
|
47
50
|
"native-query": { dialect: "es-query-dsl", input: "json", readOnly: "enforced", audience: ["human"] },
|
package/plugins/i-repo-mongo
CHANGED
|
@@ -79,9 +79,12 @@ if (argv[0] === "--plugin-schema") {
|
|
|
79
79
|
{ name: "query", mode: "read", input: ["none"], output: ["ndjson"],
|
|
80
80
|
description: "着地済みレコードを正準封筒形で読み出す(ページ付き・書込ゼロ)" },
|
|
81
81
|
],
|
|
82
|
+
// 能力タグ(開いた語彙・string[])。CLI verify(describe-shape) は capabilities を string[] と検査する。
|
|
83
|
+
// 各タグの詳細(dialect/audience 等)は capabilityDetails で宣言する(ホストはそちらを読む)。
|
|
84
|
+
capabilities: ["native-query"],
|
|
82
85
|
// ── T2: ネイティブクエリ(仕様 §9)。query --native '<find filter | aggregation pipeline>' を素通し。
|
|
83
86
|
// read-only はプラグインが機械強制(read-only stage 限定+$out/$merge/$where/$function 拒否)。audience 既定=human。
|
|
84
|
-
|
|
87
|
+
capabilityDetails: {
|
|
85
88
|
"native-query": { dialect: "mongo-aggregation", input: "json", readOnly: "enforced", audience: ["human"] },
|
|
86
89
|
},
|
|
87
90
|
// ── ADC-1(gemba-adc/1.0)着地スキーマ宣言。ネスト保持・camelCase ──
|
package/plugins/i-repo-sqlite
CHANGED
|
@@ -75,9 +75,12 @@ if (argv[0] === "--plugin-schema") {
|
|
|
75
75
|
{ name: "query", mode: "read", input: ["none"], output: ["ndjson"],
|
|
76
76
|
description: "着地済みレコードを正準封筒形で読み出す(ページ付き・書込ゼロ)" },
|
|
77
77
|
],
|
|
78
|
+
// 能力タグ(開いた語彙・string[])。CLI verify(describe-shape) は capabilities を string[] と検査する。
|
|
79
|
+
// 各タグの詳細(dialect/audience 等)は capabilityDetails で宣言する(ホストはそちらを読む)。
|
|
80
|
+
capabilities: ["native-query"],
|
|
78
81
|
// ── T2: ネイティブクエリ能力(仕様 §9)。query --native '<SQL>' で SELECT/WITH を素通し実行。
|
|
79
82
|
// read-only はプラグインが機械強制(DatabaseSync readOnly + バリデータ)。audience 既定=human のみ。
|
|
80
|
-
|
|
83
|
+
capabilityDetails: {
|
|
81
84
|
"native-query": { dialect: "sql-select", input: "sql", readOnly: "enforced", audience: ["human"] },
|
|
82
85
|
},
|
|
83
86
|
dataset: [{
|