@wowok/agent-mcp 2.3.18 → 2.4.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.
- package/dist/customer/industry-risks.js +31 -31
- package/dist/customer/order-monitor.js +57 -57
- package/dist/customer/order-strategy.js +89 -89
- package/dist/customer/post-purchase.js +97 -97
- package/dist/customer/reminder-system.js +26 -26
- package/dist/customer/risk-assessment.js +46 -46
- package/dist/customer/types.d.ts +4 -4
- package/dist/customer/types.js +4 -4
- package/dist/customer/user-preferences.js +50 -50
- package/dist/experience/intent-distill.js +6 -6
- package/dist/knowledge/acquisition-flywheel.js +64 -64
- package/dist/knowledge/arbitration-trust.js +10 -10
- package/dist/knowledge/demand-matching.js +8 -8
- package/dist/knowledge/dynamic-pricing.js +18 -18
- package/dist/knowledge/flywheel-loop.js +11 -11
- package/dist/knowledge/glossary.js +22 -22
- package/dist/knowledge/guard-ledger.d.ts +1 -1
- package/dist/knowledge/guard-ledger.js +131 -104
- package/dist/knowledge/guard-lint.d.ts +76 -0
- package/dist/knowledge/guard-lint.js +590 -0
- package/dist/knowledge/guard-puzzle.d.ts +109 -14
- package/dist/knowledge/guard-puzzle.js +627 -101
- package/dist/knowledge/guard-risk.d.ts +8 -1
- package/dist/knowledge/guard-risk.js +868 -296
- package/dist/knowledge/guard-templates.d.ts +37 -0
- package/dist/knowledge/guard-templates.js +329 -0
- package/dist/knowledge/guard-translation.d.ts +14 -2
- package/dist/knowledge/guard-translation.js +825 -194
- package/dist/knowledge/index.d.ts +8 -4
- package/dist/knowledge/index.js +9 -5
- package/dist/knowledge/industry-evolution.js +29 -29
- package/dist/knowledge/industry-generalizer.js +52 -52
- package/dist/knowledge/industry-registry.js +20 -33
- package/dist/knowledge/intent-metrics.js +67 -67
- package/dist/knowledge/process-model.js +80 -80
- package/dist/knowledge/reputation-rules.js +9 -9
- package/dist/knowledge/reward-templates.js +51 -51
- package/dist/knowledge/safety-rules.js +3 -3
- package/dist/knowledge/tool-constraints.js +20 -4
- package/dist/knowledge/trust-metrics.js +26 -26
- package/dist/schema/call/base.js +16 -16
- package/dist/schema/call/bridge.d.ts +32 -32
- package/dist/schema/call/demand.d.ts +84 -84
- package/dist/schema/call/guard.d.ts +153 -0
- package/dist/schema/call/guard.js +50 -0
- package/dist/schema/call/permission.d.ts +78 -78
- package/dist/schema/call/repository.d.ts +22 -22
- package/dist/schema/call/semantic.js +228 -24
- package/dist/schema/local/wip.d.ts +39 -19
- package/dist/schema/local/wip.js +5 -5
- package/dist/schema/messenger/index.d.ts +26 -26
- package/dist/schema/messenger/index.js +2 -2
- package/dist/schema/operations.d.ts +222 -144
- package/dist/schema/query/index.d.ts +38 -38
- package/dist/schema/trust/index.d.ts +4 -4
- package/dist/schema/utils/guard-parser.js +4 -4
- package/dist/schema/utils/node-parser.js +14 -14
- package/dist/schemas/bridge_operation.output.json +14 -14
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/messenger_operation.output.json +17 -15
- package/dist/schemas/onchain_events.output.json +14 -14
- package/dist/schemas/onchain_operations.output.json +14 -14
- package/dist/schemas/onchain_table_data.output.json +14 -14
- package/dist/schemas/wip_file.output.json +24 -1
- package/package.json +2 -2
|
@@ -6076,7 +6076,7 @@ export declare const PolicyRuleSchema: z.ZodObject<{
|
|
|
6076
6076
|
id_from_submission?: number | undefined;
|
|
6077
6077
|
data_from_submission?: number | undefined;
|
|
6078
6078
|
}[];
|
|
6079
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
6079
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
6080
6080
|
quote_guard?: string | null | undefined;
|
|
6081
6081
|
}, {
|
|
6082
6082
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -6087,7 +6087,7 @@ export declare const PolicyRuleSchema: z.ZodObject<{
|
|
|
6087
6087
|
id_from_submission?: number | undefined;
|
|
6088
6088
|
data_from_submission?: number | undefined;
|
|
6089
6089
|
}[];
|
|
6090
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
6090
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
6091
6091
|
quote_guard?: string | null | undefined;
|
|
6092
6092
|
}>;
|
|
6093
6093
|
export declare const TableItem_RepositoryDataSchema: z.ZodObject<{
|
|
@@ -6797,7 +6797,7 @@ export declare const ObjectRepositorySchema: z.ZodObject<{
|
|
|
6797
6797
|
id_from_submission?: number | undefined;
|
|
6798
6798
|
data_from_submission?: number | undefined;
|
|
6799
6799
|
}[];
|
|
6800
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
6800
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
6801
6801
|
quote_guard?: string | null | undefined;
|
|
6802
6802
|
}, {
|
|
6803
6803
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -6808,7 +6808,7 @@ export declare const ObjectRepositorySchema: z.ZodObject<{
|
|
|
6808
6808
|
id_from_submission?: number | undefined;
|
|
6809
6809
|
data_from_submission?: number | undefined;
|
|
6810
6810
|
}[];
|
|
6811
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
6811
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
6812
6812
|
quote_guard?: string | null | undefined;
|
|
6813
6813
|
}>, "many">;
|
|
6814
6814
|
data_count: z.ZodNumber;
|
|
@@ -6914,7 +6914,7 @@ export declare const ObjectRepositorySchema: z.ZodObject<{
|
|
|
6914
6914
|
id_from_submission?: number | undefined;
|
|
6915
6915
|
data_from_submission?: number | undefined;
|
|
6916
6916
|
}[];
|
|
6917
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
6917
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
6918
6918
|
quote_guard?: string | null | undefined;
|
|
6919
6919
|
}, {
|
|
6920
6920
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -6925,7 +6925,7 @@ export declare const ObjectRepositorySchema: z.ZodObject<{
|
|
|
6925
6925
|
id_from_submission?: number | undefined;
|
|
6926
6926
|
data_from_submission?: number | undefined;
|
|
6927
6927
|
}[];
|
|
6928
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
6928
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
6929
6929
|
quote_guard?: string | null | undefined;
|
|
6930
6930
|
}>, "many">;
|
|
6931
6931
|
data_count: z.ZodNumber;
|
|
@@ -7031,7 +7031,7 @@ export declare const ObjectRepositorySchema: z.ZodObject<{
|
|
|
7031
7031
|
id_from_submission?: number | undefined;
|
|
7032
7032
|
data_from_submission?: number | undefined;
|
|
7033
7033
|
}[];
|
|
7034
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
7034
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
7035
7035
|
quote_guard?: string | null | undefined;
|
|
7036
7036
|
}, {
|
|
7037
7037
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -7042,7 +7042,7 @@ export declare const ObjectRepositorySchema: z.ZodObject<{
|
|
|
7042
7042
|
id_from_submission?: number | undefined;
|
|
7043
7043
|
data_from_submission?: number | undefined;
|
|
7044
7044
|
}[];
|
|
7045
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
7045
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
7046
7046
|
quote_guard?: string | null | undefined;
|
|
7047
7047
|
}>, "many">;
|
|
7048
7048
|
data_count: z.ZodNumber;
|
|
@@ -17006,7 +17006,7 @@ export declare const ObjectUnionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
17006
17006
|
id_from_submission?: number | undefined;
|
|
17007
17007
|
data_from_submission?: number | undefined;
|
|
17008
17008
|
}[];
|
|
17009
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
17009
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
17010
17010
|
quote_guard?: string | null | undefined;
|
|
17011
17011
|
}, {
|
|
17012
17012
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -17017,7 +17017,7 @@ export declare const ObjectUnionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
17017
17017
|
id_from_submission?: number | undefined;
|
|
17018
17018
|
data_from_submission?: number | undefined;
|
|
17019
17019
|
}[];
|
|
17020
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
17020
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
17021
17021
|
quote_guard?: string | null | undefined;
|
|
17022
17022
|
}>, "many">;
|
|
17023
17023
|
data_count: z.ZodNumber;
|
|
@@ -17123,7 +17123,7 @@ export declare const ObjectUnionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
17123
17123
|
id_from_submission?: number | undefined;
|
|
17124
17124
|
data_from_submission?: number | undefined;
|
|
17125
17125
|
}[];
|
|
17126
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
17126
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
17127
17127
|
quote_guard?: string | null | undefined;
|
|
17128
17128
|
}, {
|
|
17129
17129
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -17134,7 +17134,7 @@ export declare const ObjectUnionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
17134
17134
|
id_from_submission?: number | undefined;
|
|
17135
17135
|
data_from_submission?: number | undefined;
|
|
17136
17136
|
}[];
|
|
17137
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
17137
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
17138
17138
|
quote_guard?: string | null | undefined;
|
|
17139
17139
|
}>, "many">;
|
|
17140
17140
|
data_count: z.ZodNumber;
|
|
@@ -17240,7 +17240,7 @@ export declare const ObjectUnionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
17240
17240
|
id_from_submission?: number | undefined;
|
|
17241
17241
|
data_from_submission?: number | undefined;
|
|
17242
17242
|
}[];
|
|
17243
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
17243
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
17244
17244
|
quote_guard?: string | null | undefined;
|
|
17245
17245
|
}, {
|
|
17246
17246
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -17251,7 +17251,7 @@ export declare const ObjectUnionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
17251
17251
|
id_from_submission?: number | undefined;
|
|
17252
17252
|
data_from_submission?: number | undefined;
|
|
17253
17253
|
}[];
|
|
17254
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
17254
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
17255
17255
|
quote_guard?: string | null | undefined;
|
|
17256
17256
|
}>, "many">;
|
|
17257
17257
|
data_count: z.ZodNumber;
|
|
@@ -25237,7 +25237,7 @@ export declare const ObjectsAnswerSchema: z.ZodObject<{
|
|
|
25237
25237
|
id_from_submission?: number | undefined;
|
|
25238
25238
|
data_from_submission?: number | undefined;
|
|
25239
25239
|
}[];
|
|
25240
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
25240
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
25241
25241
|
quote_guard?: string | null | undefined;
|
|
25242
25242
|
}, {
|
|
25243
25243
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -25248,7 +25248,7 @@ export declare const ObjectsAnswerSchema: z.ZodObject<{
|
|
|
25248
25248
|
id_from_submission?: number | undefined;
|
|
25249
25249
|
data_from_submission?: number | undefined;
|
|
25250
25250
|
}[];
|
|
25251
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
25251
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
25252
25252
|
quote_guard?: string | null | undefined;
|
|
25253
25253
|
}>, "many">;
|
|
25254
25254
|
data_count: z.ZodNumber;
|
|
@@ -25354,7 +25354,7 @@ export declare const ObjectsAnswerSchema: z.ZodObject<{
|
|
|
25354
25354
|
id_from_submission?: number | undefined;
|
|
25355
25355
|
data_from_submission?: number | undefined;
|
|
25356
25356
|
}[];
|
|
25357
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
25357
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
25358
25358
|
quote_guard?: string | null | undefined;
|
|
25359
25359
|
}, {
|
|
25360
25360
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -25365,7 +25365,7 @@ export declare const ObjectsAnswerSchema: z.ZodObject<{
|
|
|
25365
25365
|
id_from_submission?: number | undefined;
|
|
25366
25366
|
data_from_submission?: number | undefined;
|
|
25367
25367
|
}[];
|
|
25368
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
25368
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
25369
25369
|
quote_guard?: string | null | undefined;
|
|
25370
25370
|
}>, "many">;
|
|
25371
25371
|
data_count: z.ZodNumber;
|
|
@@ -25471,7 +25471,7 @@ export declare const ObjectsAnswerSchema: z.ZodObject<{
|
|
|
25471
25471
|
id_from_submission?: number | undefined;
|
|
25472
25472
|
data_from_submission?: number | undefined;
|
|
25473
25473
|
}[];
|
|
25474
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
25474
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
25475
25475
|
quote_guard?: string | null | undefined;
|
|
25476
25476
|
}, {
|
|
25477
25477
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -25482,7 +25482,7 @@ export declare const ObjectsAnswerSchema: z.ZodObject<{
|
|
|
25482
25482
|
id_from_submission?: number | undefined;
|
|
25483
25483
|
data_from_submission?: number | undefined;
|
|
25484
25484
|
}[];
|
|
25485
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
25485
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
25486
25486
|
quote_guard?: string | null | undefined;
|
|
25487
25487
|
}>, "many">;
|
|
25488
25488
|
data_count: z.ZodNumber;
|
|
@@ -30787,7 +30787,7 @@ export declare const ObjectsAnswerSchema: z.ZodObject<{
|
|
|
30787
30787
|
id_from_submission?: number | undefined;
|
|
30788
30788
|
data_from_submission?: number | undefined;
|
|
30789
30789
|
}[];
|
|
30790
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
30790
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
30791
30791
|
quote_guard?: string | null | undefined;
|
|
30792
30792
|
}, {
|
|
30793
30793
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -30798,7 +30798,7 @@ export declare const ObjectsAnswerSchema: z.ZodObject<{
|
|
|
30798
30798
|
id_from_submission?: number | undefined;
|
|
30799
30799
|
data_from_submission?: number | undefined;
|
|
30800
30800
|
}[];
|
|
30801
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
30801
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
30802
30802
|
quote_guard?: string | null | undefined;
|
|
30803
30803
|
}>, "many">;
|
|
30804
30804
|
data_count: z.ZodNumber;
|
|
@@ -33532,7 +33532,7 @@ export declare const ObjectsAnswerSchema: z.ZodObject<{
|
|
|
33532
33532
|
id_from_submission?: number | undefined;
|
|
33533
33533
|
data_from_submission?: number | undefined;
|
|
33534
33534
|
}[];
|
|
33535
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
33535
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
33536
33536
|
quote_guard?: string | null | undefined;
|
|
33537
33537
|
}, {
|
|
33538
33538
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -33543,7 +33543,7 @@ export declare const ObjectsAnswerSchema: z.ZodObject<{
|
|
|
33543
33543
|
id_from_submission?: number | undefined;
|
|
33544
33544
|
data_from_submission?: number | undefined;
|
|
33545
33545
|
}[];
|
|
33546
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
33546
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
33547
33547
|
quote_guard?: string | null | undefined;
|
|
33548
33548
|
}>, "many">;
|
|
33549
33549
|
data_count: z.ZodNumber;
|
|
@@ -54007,7 +54007,7 @@ export declare const OnchainQueryResultSchema_Part1: z.ZodUnion<[z.ZodObject<{
|
|
|
54007
54007
|
id_from_submission?: number | undefined;
|
|
54008
54008
|
data_from_submission?: number | undefined;
|
|
54009
54009
|
}[];
|
|
54010
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
54010
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
54011
54011
|
quote_guard?: string | null | undefined;
|
|
54012
54012
|
}, {
|
|
54013
54013
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -54018,7 +54018,7 @@ export declare const OnchainQueryResultSchema_Part1: z.ZodUnion<[z.ZodObject<{
|
|
|
54018
54018
|
id_from_submission?: number | undefined;
|
|
54019
54019
|
data_from_submission?: number | undefined;
|
|
54020
54020
|
}[];
|
|
54021
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
54021
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
54022
54022
|
quote_guard?: string | null | undefined;
|
|
54023
54023
|
}>, "many">;
|
|
54024
54024
|
data_count: z.ZodNumber;
|
|
@@ -54124,7 +54124,7 @@ export declare const OnchainQueryResultSchema_Part1: z.ZodUnion<[z.ZodObject<{
|
|
|
54124
54124
|
id_from_submission?: number | undefined;
|
|
54125
54125
|
data_from_submission?: number | undefined;
|
|
54126
54126
|
}[];
|
|
54127
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
54127
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
54128
54128
|
quote_guard?: string | null | undefined;
|
|
54129
54129
|
}, {
|
|
54130
54130
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -54135,7 +54135,7 @@ export declare const OnchainQueryResultSchema_Part1: z.ZodUnion<[z.ZodObject<{
|
|
|
54135
54135
|
id_from_submission?: number | undefined;
|
|
54136
54136
|
data_from_submission?: number | undefined;
|
|
54137
54137
|
}[];
|
|
54138
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
54138
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
54139
54139
|
quote_guard?: string | null | undefined;
|
|
54140
54140
|
}>, "many">;
|
|
54141
54141
|
data_count: z.ZodNumber;
|
|
@@ -54241,7 +54241,7 @@ export declare const OnchainQueryResultSchema_Part1: z.ZodUnion<[z.ZodObject<{
|
|
|
54241
54241
|
id_from_submission?: number | undefined;
|
|
54242
54242
|
data_from_submission?: number | undefined;
|
|
54243
54243
|
}[];
|
|
54244
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
54244
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
54245
54245
|
quote_guard?: string | null | undefined;
|
|
54246
54246
|
}, {
|
|
54247
54247
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -54252,7 +54252,7 @@ export declare const OnchainQueryResultSchema_Part1: z.ZodUnion<[z.ZodObject<{
|
|
|
54252
54252
|
id_from_submission?: number | undefined;
|
|
54253
54253
|
data_from_submission?: number | undefined;
|
|
54254
54254
|
}[];
|
|
54255
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
54255
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
54256
54256
|
quote_guard?: string | null | undefined;
|
|
54257
54257
|
}>, "many">;
|
|
54258
54258
|
data_count: z.ZodNumber;
|
|
@@ -59557,7 +59557,7 @@ export declare const OnchainQueryResultSchema_Part1: z.ZodUnion<[z.ZodObject<{
|
|
|
59557
59557
|
id_from_submission?: number | undefined;
|
|
59558
59558
|
data_from_submission?: number | undefined;
|
|
59559
59559
|
}[];
|
|
59560
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
59560
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
59561
59561
|
quote_guard?: string | null | undefined;
|
|
59562
59562
|
}, {
|
|
59563
59563
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -59568,7 +59568,7 @@ export declare const OnchainQueryResultSchema_Part1: z.ZodUnion<[z.ZodObject<{
|
|
|
59568
59568
|
id_from_submission?: number | undefined;
|
|
59569
59569
|
data_from_submission?: number | undefined;
|
|
59570
59570
|
}[];
|
|
59571
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
59571
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
59572
59572
|
quote_guard?: string | null | undefined;
|
|
59573
59573
|
}>, "many">;
|
|
59574
59574
|
data_count: z.ZodNumber;
|
|
@@ -62302,7 +62302,7 @@ export declare const OnchainQueryResultSchema_Part1: z.ZodUnion<[z.ZodObject<{
|
|
|
62302
62302
|
id_from_submission?: number | undefined;
|
|
62303
62303
|
data_from_submission?: number | undefined;
|
|
62304
62304
|
}[];
|
|
62305
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
62305
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
62306
62306
|
quote_guard?: string | null | undefined;
|
|
62307
62307
|
}, {
|
|
62308
62308
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -62313,7 +62313,7 @@ export declare const OnchainQueryResultSchema_Part1: z.ZodUnion<[z.ZodObject<{
|
|
|
62313
62313
|
id_from_submission?: number | undefined;
|
|
62314
62314
|
data_from_submission?: number | undefined;
|
|
62315
62315
|
}[];
|
|
62316
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
62316
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
62317
62317
|
quote_guard?: string | null | undefined;
|
|
62318
62318
|
}>, "many">;
|
|
62319
62319
|
data_count: z.ZodNumber;
|
|
@@ -65049,7 +65049,7 @@ export declare const OnchainQueryResultSchema_Part1: z.ZodUnion<[z.ZodObject<{
|
|
|
65049
65049
|
id_from_submission?: number | undefined;
|
|
65050
65050
|
data_from_submission?: number | undefined;
|
|
65051
65051
|
}[];
|
|
65052
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
65052
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
65053
65053
|
quote_guard?: string | null | undefined;
|
|
65054
65054
|
}, {
|
|
65055
65055
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -65060,7 +65060,7 @@ export declare const OnchainQueryResultSchema_Part1: z.ZodUnion<[z.ZodObject<{
|
|
|
65060
65060
|
id_from_submission?: number | undefined;
|
|
65061
65061
|
data_from_submission?: number | undefined;
|
|
65062
65062
|
}[];
|
|
65063
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
65063
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
65064
65064
|
quote_guard?: string | null | undefined;
|
|
65065
65065
|
}>, "many">;
|
|
65066
65066
|
data_count: z.ZodNumber;
|
|
@@ -67797,7 +67797,7 @@ export declare const OnchainQueryResultSchema_Part1: z.ZodUnion<[z.ZodObject<{
|
|
|
67797
67797
|
id_from_submission?: number | undefined;
|
|
67798
67798
|
data_from_submission?: number | undefined;
|
|
67799
67799
|
}[];
|
|
67800
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
67800
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
67801
67801
|
quote_guard?: string | null | undefined;
|
|
67802
67802
|
}, {
|
|
67803
67803
|
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" | "address" | "u8" | "u16" | "u32" | "u64" | "u128" | "u256" | "vecbool" | "vecaddress" | "vecstring" | "vecu8" | "vecu16" | "vecu32" | "vecu64" | "vecu128" | "vecu256" | "vecvecu8" | "Value";
|
|
@@ -67808,7 +67808,7 @@ export declare const OnchainQueryResultSchema_Part1: z.ZodUnion<[z.ZodObject<{
|
|
|
67808
67808
|
id_from_submission?: number | undefined;
|
|
67809
67809
|
data_from_submission?: number | undefined;
|
|
67810
67810
|
}[];
|
|
67811
|
-
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "
|
|
67811
|
+
id_from: 0 | 1 | 2 | "none" | "Signer" | "Clock" | "signer" | "clock" | "None";
|
|
67812
67812
|
quote_guard?: string | null | undefined;
|
|
67813
67813
|
}>, "many">;
|
|
67814
67814
|
data_count: z.ZodNumber;
|
|
@@ -213,9 +213,9 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
213
213
|
}[];
|
|
214
214
|
};
|
|
215
215
|
service_id: string;
|
|
216
|
+
service_name: string;
|
|
216
217
|
order_amount: string;
|
|
217
218
|
depth: "browse" | "evaluate" | "preorder";
|
|
218
|
-
service_name: string;
|
|
219
219
|
service_basics: {
|
|
220
220
|
bPublished: boolean;
|
|
221
221
|
bPaused: boolean;
|
|
@@ -263,9 +263,9 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
263
263
|
}[];
|
|
264
264
|
};
|
|
265
265
|
service_id: string;
|
|
266
|
+
service_name: string;
|
|
266
267
|
order_amount: string;
|
|
267
268
|
depth: "browse" | "evaluate" | "preorder";
|
|
268
|
-
service_name: string;
|
|
269
269
|
service_basics: {
|
|
270
270
|
bPublished: boolean;
|
|
271
271
|
bPaused: boolean;
|
|
@@ -315,9 +315,9 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
315
315
|
}[];
|
|
316
316
|
};
|
|
317
317
|
service_id: string;
|
|
318
|
+
service_name: string;
|
|
318
319
|
order_amount: string;
|
|
319
320
|
depth: "browse" | "evaluate" | "preorder";
|
|
320
|
-
service_name: string;
|
|
321
321
|
service_basics: {
|
|
322
322
|
bPublished: boolean;
|
|
323
323
|
bPaused: boolean;
|
|
@@ -367,9 +367,9 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
367
367
|
}[];
|
|
368
368
|
};
|
|
369
369
|
service_id: string;
|
|
370
|
+
service_name: string;
|
|
370
371
|
order_amount: string;
|
|
371
372
|
depth: "browse" | "evaluate" | "preorder";
|
|
372
|
-
service_name: string;
|
|
373
373
|
service_basics: {
|
|
374
374
|
bPublished: boolean;
|
|
375
375
|
bPaused: boolean;
|
|
@@ -29,11 +29,11 @@ function parseMarkdownToGuardData(markdown) {
|
|
|
29
29
|
return { data: jsonMatch.json, errors: [] };
|
|
30
30
|
}
|
|
31
31
|
const result = {};
|
|
32
|
-
const descriptionMatch = markdown.match(/(?:^|\n)#+\s*
|
|
32
|
+
const descriptionMatch = markdown.match(/(?:^|\n)#+\s*Description[^\n]*\n+([^\n#]+)/i);
|
|
33
33
|
if (descriptionMatch) {
|
|
34
34
|
result.description = descriptionMatch[1].trim();
|
|
35
35
|
}
|
|
36
|
-
const tableMatch = markdown.match(/(?:^|\n)#+\s*
|
|
36
|
+
const tableMatch = markdown.match(/(?:^|\n)#+\s*Table[^\n]*\n+[\s\S]*?(?=(?:\n#+|$))/i);
|
|
37
37
|
if (tableMatch) {
|
|
38
38
|
const tableSection = tableMatch[0];
|
|
39
39
|
const tableRows = tableSection.match(/\|[^\n]+\|/g);
|
|
@@ -72,7 +72,7 @@ function parseMarkdownToGuardData(markdown) {
|
|
|
72
72
|
else {
|
|
73
73
|
result.table = [];
|
|
74
74
|
}
|
|
75
|
-
const rootMatch = markdown.match(/(?:^|\n)#+\s*
|
|
75
|
+
const rootMatch = markdown.match(/(?:^|\n)#+\s*Root[^\n]*\n+([\s\S]*?)(?=(?:\n#+|$))/i);
|
|
76
76
|
if (rootMatch) {
|
|
77
77
|
const rootSection = rootMatch[1];
|
|
78
78
|
const rootJsonMatch = rootSection.match(/```(?:json)?\s*\n([\s\S]*?)```/);
|
|
@@ -88,7 +88,7 @@ function parseMarkdownToGuardData(markdown) {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
const relyMatch = markdown.match(/(?:^|\n)#+\s*
|
|
91
|
+
const relyMatch = markdown.match(/(?:^|\n)#+\s*Rely[^\n]*\n+([\s\S]*?)(?=(?:\n#+|$))/i);
|
|
92
92
|
if (relyMatch) {
|
|
93
93
|
const relySection = relyMatch[1];
|
|
94
94
|
const logicMatch = relySection.match(/\*\*Logic:\*\*\s*(AND|OR)/i);
|
|
@@ -40,26 +40,26 @@ function parseMarkdownToNodeData(markdown) {
|
|
|
40
40
|
}
|
|
41
41
|
const result = { op: 'add' };
|
|
42
42
|
const nodes = [];
|
|
43
|
-
const opMatch = markdown.match(/(?:^|\n)#+\s*
|
|
43
|
+
const opMatch = markdown.match(/(?:^|\n)#+\s*Operation[^\n]*\n+[-*]\s*op\s*:\s*(\w+)/i);
|
|
44
44
|
if (opMatch) {
|
|
45
45
|
result.op = opMatch[1].toLowerCase();
|
|
46
46
|
}
|
|
47
|
-
const replaceMatch = markdown.match(/(?:^|\n)#+\s*
|
|
47
|
+
const replaceMatch = markdown.match(/(?:^|\n)#+\s*Options[^\n]*\n+[-*]\s*bReplace\s*:\s*(true|false)/i);
|
|
48
48
|
if (replaceMatch) {
|
|
49
49
|
result.bReplace = replaceMatch[1].toLowerCase() === 'true';
|
|
50
50
|
}
|
|
51
|
-
const nodeSections = markdown.split(/(?=^##\s*
|
|
51
|
+
const nodeSections = markdown.split(/(?=^##\s*Node[:\s])/m);
|
|
52
52
|
for (const section of nodeSections.slice(1)) {
|
|
53
|
-
const nodeNameMatch = section.match(/^##\s*
|
|
53
|
+
const nodeNameMatch = section.match(/^##\s*Node[:\s]+(.+?)(?:\n|$)/im);
|
|
54
54
|
if (!nodeNameMatch)
|
|
55
55
|
continue;
|
|
56
56
|
const nodeName = nodeNameMatch[1].trim();
|
|
57
57
|
const node = { name: nodeName, pairs: [] };
|
|
58
|
-
const pairSections = section.split(/(?=^###\s*(?:Pair
|
|
58
|
+
const pairSections = section.split(/(?=^###\s*(?:Pair|Previous Node)[:\s])/m);
|
|
59
59
|
for (const pairSection of pairSections.slice(1)) {
|
|
60
|
-
const prevNodeMatch = pairSection.match(/(?:^|\n)[-*]\s*prev_node\s*[
|
|
61
|
-
pairSection.match(/^###\s*(?:Pair
|
|
62
|
-
const thresholdMatch = pairSection.match(/(?:^|\n)[-*]\s*threshold\s*[
|
|
60
|
+
const prevNodeMatch = pairSection.match(/(?:^|\n)[-*]\s*prev_node\s*[:]\s*(.+?)(?:\n|$)/im) ||
|
|
61
|
+
pairSection.match(/^###\s*(?:Pair|Previous Node)[:\s]+(.+?)(?:\n|$)/im);
|
|
62
|
+
const thresholdMatch = pairSection.match(/(?:^|\n)[-*]\s*threshold\s*[:]\s*(\d+)/i);
|
|
63
63
|
if (!prevNodeMatch)
|
|
64
64
|
continue;
|
|
65
65
|
const pair = {
|
|
@@ -89,19 +89,19 @@ function parseMarkdownToNodeData(markdown) {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
const forwardMatches = pairSection.matchAll(/(?:^|\n)[-*]\s*(?:forward)?\s*[
|
|
92
|
+
const forwardMatches = pairSection.matchAll(/(?:^|\n)[-*]\s*(?:forward)?\s*[:]?\s*\n?([\s\S]*?)(?=(?:\n[-*]\s*(?:forward|prev_node|threshold))|\n###|\n##|$)/gi);
|
|
93
93
|
for (const forwardMatch of forwardMatches) {
|
|
94
94
|
const forwardSection = forwardMatch[1];
|
|
95
|
-
const nameMatch = forwardSection.match(/\s*name\s*[
|
|
96
|
-
const weightMatch = forwardSection.match(/\s*weight\s*[
|
|
95
|
+
const nameMatch = forwardSection.match(/\s*name\s*[:]\s*(.+?)(?:\n|$)/im);
|
|
96
|
+
const weightMatch = forwardSection.match(/\s*weight\s*[:]\s*(\d+)/i);
|
|
97
97
|
if (nameMatch && weightMatch) {
|
|
98
98
|
const forward = {
|
|
99
99
|
name: nameMatch[1].trim(),
|
|
100
100
|
weight: parseInt(weightMatch[1], 10)
|
|
101
101
|
};
|
|
102
|
-
const namedOperatorMatch = forwardSection.match(/\s*namedOperator\s*[
|
|
103
|
-
const permissionIndexMatch = forwardSection.match(/\s*permissionIndex\s*[
|
|
104
|
-
const guardMatch = forwardSection.match(/\s*guard\s*[
|
|
102
|
+
const namedOperatorMatch = forwardSection.match(/\s*namedOperator\s*[:]\s*(.+?)(?:\n|$)/im);
|
|
103
|
+
const permissionIndexMatch = forwardSection.match(/\s*permissionIndex\s*[:]\s*(\d+)/i);
|
|
104
|
+
const guardMatch = forwardSection.match(/\s*guard\s*[:]\s*(.+?)(?:\n|$)/im);
|
|
105
105
|
if (namedOperatorMatch) {
|
|
106
106
|
forward.namedOperator = namedOperatorMatch[1].trim();
|
|
107
107
|
}
|
|
@@ -357,7 +357,7 @@
|
|
|
357
357
|
}
|
|
358
358
|
},
|
|
359
359
|
"additionalProperties": false,
|
|
360
|
-
"description": "Experience layer feedback from past operations (Phase 2
|
|
360
|
+
"description": "Experience layer feedback from past operations (Phase 2 Topic 2)"
|
|
361
361
|
},
|
|
362
362
|
"service_status": {
|
|
363
363
|
"type": "object",
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
"items": {
|
|
408
408
|
"type": "string"
|
|
409
409
|
},
|
|
410
|
-
"description": "Actionable recommendations for the buyer. Example: ['
|
|
410
|
+
"description": "Actionable recommendations for the buyer. Example: ['Require merchant to configure arbitration','Negotiate refund terms via Messenger']"
|
|
411
411
|
},
|
|
412
412
|
"reminders": {
|
|
413
413
|
"type": "array",
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
},
|
|
443
443
|
"message": {
|
|
444
444
|
"type": "string",
|
|
445
|
-
"description": "Human-readable reminder message. Example: '
|
|
445
|
+
"description": "Human-readable reminder message. Example: 'Composite risk score 25/100, strongly discourage purchase'"
|
|
446
446
|
},
|
|
447
447
|
"action": {
|
|
448
448
|
"type": "string",
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
"additionalProperties": false,
|
|
459
459
|
"description": "A buyer-side reminder triggered at a specific order lifecycle stage (Phase 3 C-3)."
|
|
460
460
|
},
|
|
461
|
-
"description": "Stage-specific reminders (deduped, sorted by priority, capped to 3 high-risk). Example: [{priority:'required', message:'
|
|
461
|
+
"description": "Stage-specific reminders (deduped, sorted by priority, capped to 3 high-risk). Example: [{priority:'required', message:'Ambiguous Guard must be human-reviewed'}]"
|
|
462
462
|
},
|
|
463
463
|
"preference_match": {
|
|
464
464
|
"type": "object",
|
|
@@ -474,14 +474,14 @@
|
|
|
474
474
|
"items": {
|
|
475
475
|
"type": "string"
|
|
476
476
|
},
|
|
477
|
-
"description": "Aspects that match user preferences. Example: ['
|
|
477
|
+
"description": "Aspects that match user preferences. Example: ['Price 10% below average','Has arbitration']"
|
|
478
478
|
},
|
|
479
479
|
"mismatches": {
|
|
480
480
|
"type": "array",
|
|
481
481
|
"items": {
|
|
482
482
|
"type": "string"
|
|
483
483
|
},
|
|
484
|
-
"description": "Aspects that mismatch user preferences. Example: ['
|
|
484
|
+
"description": "Aspects that mismatch user preferences. Example: ['Delivery cycle exceeds expectation']"
|
|
485
485
|
}
|
|
486
486
|
},
|
|
487
487
|
"required": [
|
|
@@ -505,11 +505,11 @@
|
|
|
505
505
|
"properties": {
|
|
506
506
|
"industry_signal": {
|
|
507
507
|
"type": "string",
|
|
508
|
-
"description": "Industry evolution signal summary. Example: '
|
|
508
|
+
"description": "Industry evolution signal summary. Example: 'Industry health 82/100 (healthy); 25 cumulative industry signals'"
|
|
509
509
|
},
|
|
510
510
|
"evolution_advice": {
|
|
511
511
|
"type": "string",
|
|
512
|
-
"description": "Evolution advice for the current operation. Example: '
|
|
512
|
+
"description": "Evolution advice for the current operation. Example: 'Recommend mandatory arbitration + compensation fund + delivery Guard'"
|
|
513
513
|
},
|
|
514
514
|
"confidence": {
|
|
515
515
|
"type": "number",
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
"items": {
|
|
547
547
|
"type": "string"
|
|
548
548
|
},
|
|
549
|
-
"description": "Phase 4 P4-6.C: Role-targeted advice strings (user/merchant/arbitrator). Example: ['
|
|
549
|
+
"description": "Phase 4 P4-6.C: Role-targeted advice strings (user/merchant/arbitrator). Example: ['Strengthen loyalty flywheel','Optimize first-order conversion']"
|
|
550
550
|
},
|
|
551
551
|
"role": {
|
|
552
552
|
"type": "string",
|
|
@@ -628,21 +628,21 @@
|
|
|
628
628
|
},
|
|
629
629
|
"scene_description": {
|
|
630
630
|
"type": "string",
|
|
631
|
-
"description": "Human-readable scene description. Example: '
|
|
631
|
+
"description": "Human-readable scene description. Example: 'Workflow node forward validation (Forward.guard)'"
|
|
632
632
|
},
|
|
633
633
|
"scene_constraints": {
|
|
634
634
|
"type": "array",
|
|
635
635
|
"items": {
|
|
636
636
|
"type": "string"
|
|
637
637
|
},
|
|
638
|
-
"description": "Special constraints for the matched scene. Example: ['
|
|
638
|
+
"description": "Special constraints for the matched scene. Example: ['Forward.guard cannot be modified after Machine is published']"
|
|
639
639
|
},
|
|
640
640
|
"suggested_patterns": {
|
|
641
641
|
"type": "array",
|
|
642
642
|
"items": {
|
|
643
643
|
"type": "string"
|
|
644
644
|
},
|
|
645
|
-
"description": "Suggested Guard patterns based on user intent. Example: ['
|
|
645
|
+
"description": "Suggested Guard patterns based on user intent. Example: ['time lock','progress status check']"
|
|
646
646
|
},
|
|
647
647
|
"available_queries": {
|
|
648
648
|
"type": "array",
|
|
@@ -686,14 +686,14 @@
|
|
|
686
686
|
"items": {
|
|
687
687
|
"type": "string"
|
|
688
688
|
},
|
|
689
|
-
"description": "Risk warnings for the current Guard design. Example: ['Guard
|
|
689
|
+
"description": "Risk warnings for the current Guard design. Example: ['Guard cannot be modified after creation','Time lock test uses 1000ms']"
|
|
690
690
|
},
|
|
691
691
|
"pending_questions": {
|
|
692
692
|
"type": "array",
|
|
693
693
|
"items": {
|
|
694
694
|
"type": "string"
|
|
695
695
|
},
|
|
696
|
-
"description": "Questions for the user to complete the puzzle. Example: ['
|
|
696
|
+
"description": "Questions for the user to complete the puzzle. Example: ['Which Host Object will the Guard bind to?']"
|
|
697
697
|
},
|
|
698
698
|
"confirmation_text": {
|
|
699
699
|
"type": "string",
|
package/dist/schemas/index.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"title": "WoWok MCP Schema Index",
|
|
4
4
|
"description": "Index of all available JSON schemas for WoWok MCP tools",
|
|
5
|
-
"generatedAt": "2026-07-
|
|
5
|
+
"generatedAt": "2026-07-17T00:22:14.123Z",
|
|
6
6
|
"tools": [
|
|
7
7
|
{
|
|
8
8
|
"name": "onchain_operations",
|