@wowok/agent-mcp 2.3.1 → 2.3.3
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/dist/index.d.ts +65 -51
- package/dist/schema/call/guard.d.ts +149 -101
- package/dist/schema/call/guard.js +61 -8
- package/dist/schema/query/index.js +21 -21
- package/dist/schema/utils/guard-parser.js +18 -0
- package/dist/schema/utils/guard-query-utils.d.ts +6 -0
- package/dist/schema/utils/guard-query-utils.js +12 -1
- package/dist/schema-query/index.js +45 -0
- package/dist/schemas/guard-node-examples.md +199 -0
- package/dist/schemas/guard-node-schema.json +918 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/onchain_operations_guard.schema.json +12 -14
- package/package.json +3 -4
package/dist/index.d.ts
CHANGED
|
@@ -10658,7 +10658,7 @@ declare const OnchainOperationsSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ope
|
|
|
10658
10658
|
} | undefined;
|
|
10659
10659
|
}>, z.ZodObject<{
|
|
10660
10660
|
operation_type: z.ZodLiteral<"guard">;
|
|
10661
|
-
data: z.ZodObject<{
|
|
10661
|
+
data: z.ZodEffects<z.ZodObject<{
|
|
10662
10662
|
namedNew: z.ZodOptional<z.ZodObject<{
|
|
10663
10663
|
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
10664
10664
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -10746,16 +10746,7 @@ declare const OnchainOperationsSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ope
|
|
|
10746
10746
|
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
10747
10747
|
name?: string | undefined;
|
|
10748
10748
|
}>, "many">>;
|
|
10749
|
-
root: z.
|
|
10750
|
-
type: z.ZodLiteral<"node">;
|
|
10751
|
-
node: z.ZodType<any, z.ZodTypeDef, any>;
|
|
10752
|
-
}, "strict", z.ZodTypeAny, {
|
|
10753
|
-
type: "node";
|
|
10754
|
-
node?: any;
|
|
10755
|
-
}, {
|
|
10756
|
-
type: "node";
|
|
10757
|
-
node?: any;
|
|
10758
|
-
}>, z.ZodObject<{
|
|
10749
|
+
root: z.ZodUnion<[z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, any, any>, z.ZodObject<{
|
|
10759
10750
|
type: z.ZodLiteral<"file">;
|
|
10760
10751
|
file_path: z.ZodString;
|
|
10761
10752
|
format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["json", "markdown"]>>>;
|
|
@@ -10779,14 +10770,6 @@ declare const OnchainOperationsSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ope
|
|
|
10779
10770
|
logic_or?: boolean | undefined;
|
|
10780
10771
|
}>>;
|
|
10781
10772
|
}, "strict", z.ZodTypeAny, {
|
|
10782
|
-
root: {
|
|
10783
|
-
type: "node";
|
|
10784
|
-
node?: any;
|
|
10785
|
-
} | {
|
|
10786
|
-
type: "file";
|
|
10787
|
-
format: "markdown" | "json";
|
|
10788
|
-
file_path: string;
|
|
10789
|
-
};
|
|
10790
10773
|
description?: string | undefined;
|
|
10791
10774
|
table?: {
|
|
10792
10775
|
identifier: number;
|
|
@@ -10804,6 +10787,65 @@ declare const OnchainOperationsSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ope
|
|
|
10804
10787
|
check_all_founded?: boolean | undefined;
|
|
10805
10788
|
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
10806
10789
|
}[] | undefined;
|
|
10790
|
+
root?: any;
|
|
10791
|
+
namedNew?: {
|
|
10792
|
+
name?: string | undefined;
|
|
10793
|
+
replaceExistName?: boolean | undefined;
|
|
10794
|
+
tags?: string[] | undefined;
|
|
10795
|
+
onChain?: boolean | undefined;
|
|
10796
|
+
} | undefined;
|
|
10797
|
+
rely?: {
|
|
10798
|
+
guards: string[];
|
|
10799
|
+
logic_or?: boolean | undefined;
|
|
10800
|
+
} | undefined;
|
|
10801
|
+
}, {
|
|
10802
|
+
description?: string | undefined;
|
|
10803
|
+
table?: {
|
|
10804
|
+
identifier: number;
|
|
10805
|
+
b_submission: boolean;
|
|
10806
|
+
value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("@wowok/wowok").ValueType.Bool | import("@wowok/wowok").ValueType.Address | import("@wowok/wowok").ValueType.String | import("@wowok/wowok").ValueType.U8 | import("@wowok/wowok").ValueType.U16 | import("@wowok/wowok").ValueType.U32 | import("@wowok/wowok").ValueType.U64 | import("@wowok/wowok").ValueType.U128 | import("@wowok/wowok").ValueType.U256 | import("@wowok/wowok").ValueType.VecBool | import("@wowok/wowok").ValueType.VecAddress | import("@wowok/wowok").ValueType.VecString | import("@wowok/wowok").ValueType.VecU8 | import("@wowok/wowok").ValueType.VecU16 | import("@wowok/wowok").ValueType.VecU32 | import("@wowok/wowok").ValueType.VecU64 | import("@wowok/wowok").ValueType.VecU128 | import("@wowok/wowok").ValueType.VecU256 | import("@wowok/wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
|
|
10807
|
+
value?: string | number | boolean | {
|
|
10808
|
+
name_or_address?: string | undefined;
|
|
10809
|
+
local_mark_first?: boolean | undefined;
|
|
10810
|
+
} | {
|
|
10811
|
+
entities: {
|
|
10812
|
+
name_or_address?: string | undefined;
|
|
10813
|
+
local_mark_first?: boolean | undefined;
|
|
10814
|
+
}[];
|
|
10815
|
+
check_all_founded?: boolean | undefined;
|
|
10816
|
+
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
10817
|
+
name?: string | undefined;
|
|
10818
|
+
}[] | undefined;
|
|
10819
|
+
root?: any;
|
|
10820
|
+
namedNew?: {
|
|
10821
|
+
name?: string | undefined;
|
|
10822
|
+
replaceExistName?: boolean | undefined;
|
|
10823
|
+
tags?: string[] | undefined;
|
|
10824
|
+
onChain?: boolean | undefined;
|
|
10825
|
+
} | undefined;
|
|
10826
|
+
rely?: {
|
|
10827
|
+
guards: string[];
|
|
10828
|
+
logic_or?: boolean | undefined;
|
|
10829
|
+
} | undefined;
|
|
10830
|
+
}>, {
|
|
10831
|
+
description?: string | undefined;
|
|
10832
|
+
table?: {
|
|
10833
|
+
identifier: number;
|
|
10834
|
+
b_submission: boolean;
|
|
10835
|
+
value_type: "string" | "Bool" | "Address" | "String" | "U8" | "U16" | "U32" | "U64" | "U128" | "U256" | "VecBool" | "VecAddress" | "VecString" | "VecU8" | "VecU16" | "VecU32" | "VecU64" | "VecU128" | "VecU256" | "VecVecU8" | import("@wowok/wowok").ValueType.Bool | import("@wowok/wowok").ValueType.Address | import("@wowok/wowok").ValueType.String | import("@wowok/wowok").ValueType.U8 | import("@wowok/wowok").ValueType.U16 | import("@wowok/wowok").ValueType.U32 | import("@wowok/wowok").ValueType.U64 | import("@wowok/wowok").ValueType.U128 | import("@wowok/wowok").ValueType.U256 | import("@wowok/wowok").ValueType.VecBool | import("@wowok/wowok").ValueType.VecAddress | import("@wowok/wowok").ValueType.VecString | import("@wowok/wowok").ValueType.VecU8 | import("@wowok/wowok").ValueType.VecU16 | import("@wowok/wowok").ValueType.VecU32 | import("@wowok/wowok").ValueType.VecU64 | import("@wowok/wowok").ValueType.VecU128 | import("@wowok/wowok").ValueType.VecU256 | import("@wowok/wowok").ValueType.VecVecU8 | "bool" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8";
|
|
10836
|
+
name: string;
|
|
10837
|
+
value?: string | number | boolean | {
|
|
10838
|
+
name_or_address?: string | undefined;
|
|
10839
|
+
local_mark_first?: boolean | undefined;
|
|
10840
|
+
} | {
|
|
10841
|
+
entities: {
|
|
10842
|
+
name_or_address?: string | undefined;
|
|
10843
|
+
local_mark_first?: boolean | undefined;
|
|
10844
|
+
}[];
|
|
10845
|
+
check_all_founded?: boolean | undefined;
|
|
10846
|
+
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
10847
|
+
}[] | undefined;
|
|
10848
|
+
root?: any;
|
|
10807
10849
|
namedNew?: {
|
|
10808
10850
|
name?: string | undefined;
|
|
10809
10851
|
replaceExistName?: boolean | undefined;
|
|
@@ -10815,14 +10857,6 @@ declare const OnchainOperationsSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ope
|
|
|
10815
10857
|
logic_or?: boolean | undefined;
|
|
10816
10858
|
} | undefined;
|
|
10817
10859
|
}, {
|
|
10818
|
-
root: {
|
|
10819
|
-
type: "node";
|
|
10820
|
-
node?: any;
|
|
10821
|
-
} | {
|
|
10822
|
-
type: "file";
|
|
10823
|
-
file_path: string;
|
|
10824
|
-
format?: "markdown" | "json" | undefined;
|
|
10825
|
-
};
|
|
10826
10860
|
description?: string | undefined;
|
|
10827
10861
|
table?: {
|
|
10828
10862
|
identifier: number;
|
|
@@ -10840,6 +10874,7 @@ declare const OnchainOperationsSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ope
|
|
|
10840
10874
|
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
10841
10875
|
name?: string | undefined;
|
|
10842
10876
|
}[] | undefined;
|
|
10877
|
+
root?: any;
|
|
10843
10878
|
namedNew?: {
|
|
10844
10879
|
name?: string | undefined;
|
|
10845
10880
|
replaceExistName?: boolean | undefined;
|
|
@@ -10872,14 +10907,6 @@ declare const OnchainOperationsSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ope
|
|
|
10872
10907
|
}>>;
|
|
10873
10908
|
}, "strip", z.ZodTypeAny, {
|
|
10874
10909
|
data: {
|
|
10875
|
-
root: {
|
|
10876
|
-
type: "node";
|
|
10877
|
-
node?: any;
|
|
10878
|
-
} | {
|
|
10879
|
-
type: "file";
|
|
10880
|
-
format: "markdown" | "json";
|
|
10881
|
-
file_path: string;
|
|
10882
|
-
};
|
|
10883
10910
|
description?: string | undefined;
|
|
10884
10911
|
table?: {
|
|
10885
10912
|
identifier: number;
|
|
@@ -10897,6 +10924,7 @@ declare const OnchainOperationsSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ope
|
|
|
10897
10924
|
check_all_founded?: boolean | undefined;
|
|
10898
10925
|
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
10899
10926
|
}[] | undefined;
|
|
10927
|
+
root?: any;
|
|
10900
10928
|
namedNew?: {
|
|
10901
10929
|
name?: string | undefined;
|
|
10902
10930
|
replaceExistName?: boolean | undefined;
|
|
@@ -10918,14 +10946,6 @@ declare const OnchainOperationsSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ope
|
|
|
10918
10946
|
} | undefined;
|
|
10919
10947
|
}, {
|
|
10920
10948
|
data: {
|
|
10921
|
-
root: {
|
|
10922
|
-
type: "node";
|
|
10923
|
-
node?: any;
|
|
10924
|
-
} | {
|
|
10925
|
-
type: "file";
|
|
10926
|
-
file_path: string;
|
|
10927
|
-
format?: "markdown" | "json" | undefined;
|
|
10928
|
-
};
|
|
10929
10949
|
description?: string | undefined;
|
|
10930
10950
|
table?: {
|
|
10931
10951
|
identifier: number;
|
|
@@ -10943,6 +10963,7 @@ declare const OnchainOperationsSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ope
|
|
|
10943
10963
|
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
10944
10964
|
name?: string | undefined;
|
|
10945
10965
|
}[] | undefined;
|
|
10966
|
+
root?: any;
|
|
10946
10967
|
namedNew?: {
|
|
10947
10968
|
name?: string | undefined;
|
|
10948
10969
|
replaceExistName?: boolean | undefined;
|
|
@@ -14804,14 +14825,6 @@ declare const OnchainOperationsSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ope
|
|
|
14804
14825
|
} | undefined;
|
|
14805
14826
|
} | {
|
|
14806
14827
|
data: {
|
|
14807
|
-
root: {
|
|
14808
|
-
type: "node";
|
|
14809
|
-
node?: any;
|
|
14810
|
-
} | {
|
|
14811
|
-
type: "file";
|
|
14812
|
-
format: "markdown" | "json";
|
|
14813
|
-
file_path: string;
|
|
14814
|
-
};
|
|
14815
14828
|
description?: string | undefined;
|
|
14816
14829
|
table?: {
|
|
14817
14830
|
identifier: number;
|
|
@@ -14829,6 +14842,7 @@ declare const OnchainOperationsSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ope
|
|
|
14829
14842
|
check_all_founded?: boolean | undefined;
|
|
14830
14843
|
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
14831
14844
|
}[] | undefined;
|
|
14845
|
+
root?: any;
|
|
14832
14846
|
namedNew?: {
|
|
14833
14847
|
name?: string | undefined;
|
|
14834
14848
|
replaceExistName?: boolean | undefined;
|