@mawaru/sdk 0.23.0 → 0.24.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/_schemas/graph.ts +6 -0
- package/dist/_schemas/graph.d.ts +5 -0
- package/dist/_schemas/graph.js +6 -0
- package/package.json +1 -1
package/_schemas/graph.ts
CHANGED
|
@@ -199,6 +199,9 @@ export type HumanConfig = z.infer<typeof humanConfigSchema>
|
|
|
199
199
|
// (docs/tasks/done/コンポーネント(ループの部品化と再利用).md)
|
|
200
200
|
export const componentConfigSchema = z.object({
|
|
201
201
|
component_loop_id: z.uuid(),
|
|
202
|
+
// 親が pin する子の版。省略=子の最新 published(グループは owner の draft と対)。
|
|
203
|
+
// 版管理(draftとpublish).md
|
|
204
|
+
component_loop_version_id: z.uuid().optional(),
|
|
202
205
|
// 配置の設定値:子 loop の refs 定義(default/required)への上書き。
|
|
203
206
|
// 子 run 起動時の起動時指定として渡る(省略=上書きなし。検証は保存 API と
|
|
204
207
|
// 起動時の mergeRefs が行う。コンポーネントの設定値(refs)と1ノードのコンポーネント化.md)
|
|
@@ -259,7 +262,10 @@ export const NODE_ICON_PRESETS = [
|
|
|
259
262
|
export type NodeIconPresetKey = (typeof NODE_ICON_PRESETS)[number]["key"]
|
|
260
263
|
|
|
261
264
|
export const graphNodeSchema = z.object({
|
|
265
|
+
// 版の行 id(新規ノードは client 採番)。既存ノードの突き合わせは node_key で行う
|
|
262
266
|
id: z.uuid(),
|
|
267
|
+
// 版を跨いだ「同一ノード」の識別子。省略=新規ノード(サーバーが発行)
|
|
268
|
+
node_key: z.uuid().optional(),
|
|
263
269
|
kind: graphNodeKindSchema,
|
|
264
270
|
name: z.string().min(1),
|
|
265
271
|
ports: z.array(graphPortSchema),
|
package/dist/_schemas/graph.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ export declare const humanConfigSchema: z.ZodObject<{
|
|
|
64
64
|
export type HumanConfig = z.infer<typeof humanConfigSchema>;
|
|
65
65
|
export declare const componentConfigSchema: z.ZodObject<{
|
|
66
66
|
component_loop_id: z.ZodUUID;
|
|
67
|
+
component_loop_version_id: z.ZodOptional<z.ZodUUID>;
|
|
67
68
|
refs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
68
69
|
}, z.core.$strip>;
|
|
69
70
|
export type ComponentConfig = z.infer<typeof componentConfigSchema>;
|
|
@@ -126,6 +127,7 @@ export declare const NODE_ICON_PRESETS: readonly [{
|
|
|
126
127
|
export type NodeIconPresetKey = (typeof NODE_ICON_PRESETS)[number]["key"];
|
|
127
128
|
export declare const graphNodeSchema: z.ZodObject<{
|
|
128
129
|
id: z.ZodUUID;
|
|
130
|
+
node_key: z.ZodOptional<z.ZodUUID>;
|
|
129
131
|
kind: z.ZodEnum<{
|
|
130
132
|
start: "start";
|
|
131
133
|
ai: "ai";
|
|
@@ -202,6 +204,7 @@ export declare const graphNodeSchema: z.ZodObject<{
|
|
|
202
204
|
}, z.core.$strip>>;
|
|
203
205
|
component: z.ZodOptional<z.ZodObject<{
|
|
204
206
|
component_loop_id: z.ZodUUID;
|
|
207
|
+
component_loop_version_id: z.ZodOptional<z.ZodUUID>;
|
|
205
208
|
refs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
206
209
|
}, z.core.$strip>>;
|
|
207
210
|
}, z.core.$strip>;
|
|
@@ -223,6 +226,7 @@ export type GraphConnection = z.infer<typeof graphConnectionSchema>;
|
|
|
223
226
|
export declare const saveGraphBodySchema: z.ZodObject<{
|
|
224
227
|
nodes: z.ZodArray<z.ZodObject<{
|
|
225
228
|
id: z.ZodUUID;
|
|
229
|
+
node_key: z.ZodOptional<z.ZodUUID>;
|
|
226
230
|
kind: z.ZodEnum<{
|
|
227
231
|
start: "start";
|
|
228
232
|
ai: "ai";
|
|
@@ -299,6 +303,7 @@ export declare const saveGraphBodySchema: z.ZodObject<{
|
|
|
299
303
|
}, z.core.$strip>>;
|
|
300
304
|
component: z.ZodOptional<z.ZodObject<{
|
|
301
305
|
component_loop_id: z.ZodUUID;
|
|
306
|
+
component_loop_version_id: z.ZodOptional<z.ZodUUID>;
|
|
302
307
|
refs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
303
308
|
}, z.core.$strip>>;
|
|
304
309
|
}, z.core.$strip>>;
|
package/dist/_schemas/graph.js
CHANGED
|
@@ -154,6 +154,9 @@ export const humanConfigSchema = z.object({
|
|
|
154
154
|
// (docs/tasks/done/コンポーネント(ループの部品化と再利用).md)
|
|
155
155
|
export const componentConfigSchema = z.object({
|
|
156
156
|
component_loop_id: z.uuid(),
|
|
157
|
+
// 親が pin する子の版。省略=子の最新 published(グループは owner の draft と対)。
|
|
158
|
+
// 版管理(draftとpublish).md
|
|
159
|
+
component_loop_version_id: z.uuid().optional(),
|
|
157
160
|
// 配置の設定値:子 loop の refs 定義(default/required)への上書き。
|
|
158
161
|
// 子 run 起動時の起動時指定として渡る(省略=上書きなし。検証は保存 API と
|
|
159
162
|
// 起動時の mergeRefs が行う。コンポーネントの設定値(refs)と1ノードのコンポーネント化.md)
|
|
@@ -203,7 +206,10 @@ export const NODE_ICON_PRESETS = [
|
|
|
203
206
|
{ key: "sentry", name: "Sentry" },
|
|
204
207
|
];
|
|
205
208
|
export const graphNodeSchema = z.object({
|
|
209
|
+
// 版の行 id(新規ノードは client 採番)。既存ノードの突き合わせは node_key で行う
|
|
206
210
|
id: z.uuid(),
|
|
211
|
+
// 版を跨いだ「同一ノード」の識別子。省略=新規ノード(サーバーが発行)
|
|
212
|
+
node_key: z.uuid().optional(),
|
|
207
213
|
kind: graphNodeKindSchema,
|
|
208
214
|
name: z.string().min(1),
|
|
209
215
|
ports: z.array(graphPortSchema),
|