@wowok/agent-mcp 2.6.3 → 2.6.6
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.md +13 -9
- package/dist/customer/customer-advice.d.ts +31 -0
- package/dist/customer/customer-advice.js +129 -0
- package/dist/customer/index.d.ts +2 -0
- package/dist/customer/index.js +2 -0
- package/dist/customer/info-puzzle.d.ts +8 -1
- package/dist/customer/info-puzzle.js +30 -5
- package/dist/customer/order-monitor.d.ts +2 -0
- package/dist/customer/order-monitor.js +3 -2
- package/dist/customer/post-purchase.d.ts +2 -0
- package/dist/customer/post-purchase.js +6 -5
- package/dist/customer/preorder-compare.d.ts +24 -0
- package/dist/customer/preorder-compare.js +34 -0
- package/dist/customer/reminder-system.d.ts +2 -0
- package/dist/customer/reminder-system.js +2 -1
- package/dist/customer/risk-assessment.js +4 -3
- package/dist/customer/types.d.ts +5 -0
- package/dist/examples/arbitration-dispute-create.json +41 -0
- package/dist/examples/arbitration-vote-weighted.json +35 -0
- package/dist/examples/arbitration-voting-guard-add.json +38 -0
- package/dist/examples/demand-present-service.json +33 -0
- package/dist/examples/gen-passport-verify-guard.json +48 -0
- package/dist/examples/guard-template-balance-check.json +36 -15
- package/dist/examples/guard-template-time-lock.json +33 -12
- package/dist/examples/insurance-guard-claim-timelock.json +75 -0
- package/dist/examples/insurance-guard-withdraw-allocation.json +96 -0
- package/dist/examples/insurance-machine-create-publish.json +75 -0
- package/dist/examples/insurance-service-allocators-publish.json +56 -0
- package/dist/examples/machine-multisig-threshold.json +86 -0
- package/dist/examples/machine-template-7node-rental.json +99 -94
- package/dist/examples/payment-scenario-bound.json +45 -0
- package/dist/examples/rental-ziroom-machine-create.json +126 -114
- package/dist/examples/rental-ziroom-permission-create.json +10 -3
- package/dist/examples/rental-ziroom-service-create.json +27 -18
- package/dist/examples/retail-adv-guard-customer-win-create.json +80 -0
- package/dist/examples/retail-adv-guard-messenger-proof-create.json +65 -0
- package/dist/examples/retail-adv-guard-reward-timeout-create.json +92 -0
- package/dist/examples/retail-adv-reward-guard-add.json +51 -0
- package/dist/examples/retail-myshop-allocation-activate.json +55 -0
- package/dist/examples/retail-myshop-arbitration-create.json +40 -0
- package/dist/examples/retail-myshop-contact-create.json +43 -0
- package/dist/examples/retail-myshop-order-create.json +56 -0
- package/dist/examples/retail-myshop-progress-operate.json +38 -0
- package/dist/examples/retail-myshop-reward-create.json +35 -0
- package/dist/examples/service-discount-issue.json +46 -0
- package/dist/examples/threebody-guard-create.json +56 -0
- package/dist/examples/threebody-machine-create.json +72 -0
- package/dist/examples/threebody-permission-create.json +38 -0
- package/dist/examples/threebody-service-allocators.json +49 -0
- package/dist/examples/travel-guard-time-lock.json +69 -0
- package/dist/examples/travel-guard-weather-oracle.json +70 -0
- package/dist/examples/travel-machine-create.json +136 -0
- package/dist/examples/travel-repository-create.json +47 -0
- package/dist/examples/travel-service-create.json +102 -0
- package/dist/examples/travel-treasury-create.json +34 -0
- package/dist/examples/treasury-deposit.json +37 -0
- package/dist/examples/treasury-withdraw.json +38 -0
- package/dist/extensions/business-modules.d.ts +49 -0
- package/dist/extensions/business-modules.js +287 -0
- package/dist/extensions/capability-manifest.js +192 -5
- package/dist/extensions/constraint-registry.js +3 -1
- package/dist/extensions/modes.js +10 -4
- package/dist/extensions/registry.d.ts +14 -9
- package/dist/extensions/registry.js +69 -14
- package/dist/extensions/types.d.ts +1 -0
- package/dist/knowledge/fund-layer.d.ts +67 -1
- package/dist/knowledge/fund-layer.js +561 -12
- package/dist/knowledge/guard-templates.d.ts +10 -0
- package/dist/knowledge/guard-templates.js +50 -0
- package/dist/knowledge/index.d.ts +2 -2
- package/dist/knowledge/index.js +2 -2
- package/dist/knowledge/machine-risk.js +4 -1
- package/dist/knowledge/progress-context.js +1 -1
- package/dist/knowledge/progress-ledger.js +3 -3
- package/dist/knowledge/progress-templates.js +1 -1
- package/dist/knowledge/progress-translation.js +1 -1
- package/dist/knowledge/safety-rules.d.ts +83 -1
- package/dist/knowledge/safety-rules.js +166 -2
- package/dist/knowledge/scenario-modes.d.ts +1 -1
- package/dist/knowledge/scenario-modes.js +13 -11
- package/dist/knowledge/template-registry.d.ts +48 -0
- package/dist/knowledge/template-registry.js +341 -0
- package/dist/knowledge/tool-constraints.js +6 -6
- package/dist/knowledge/tools-reference.js +11 -8
- package/dist/participation/merchant-interest.d.ts +32 -0
- package/dist/participation/merchant-interest.js +100 -0
- package/dist/participation/radar-core.d.ts +104 -0
- package/dist/participation/radar-core.js +269 -0
- package/dist/project/context-assembly.js +8 -0
- package/dist/project/edit-planner.js +27 -56
- package/dist/project/evaluation.d.ts +36 -0
- package/dist/project/evaluation.js +422 -56
- package/dist/project/game-theory.d.ts +43 -0
- package/dist/project/game-theory.js +177 -0
- package/dist/project/graph-builder.js +1 -0
- package/dist/project/handlers.d.ts +38 -0
- package/dist/project/handlers.js +65 -35
- package/dist/project/intent-analyzer.d.ts +71 -0
- package/dist/project/intent-analyzer.js +149 -0
- package/dist/project/machine-nodes.d.ts +2 -0
- package/dist/project/machine-nodes.js +36 -0
- package/dist/project/merchant-guide.d.ts +165 -0
- package/dist/project/merchant-guide.js +264 -0
- package/dist/project/mode-actions.d.ts +199 -0
- package/dist/project/mode-actions.js +309 -0
- package/dist/project/participation-radar.d.ts +18 -0
- package/dist/project/participation-radar.js +428 -0
- package/dist/project/pipeline-actions.d.ts +101 -0
- package/dist/project/pipeline-actions.js +109 -0
- package/dist/project/semantic-graph.d.ts +95 -0
- package/dist/project/semantic-graph.js +245 -0
- package/dist/schema/call/allocation.d.ts +11 -11
- package/dist/schema/call/allocation.js +11 -1
- package/dist/schema/call/arbitration.d.ts +21 -21
- package/dist/schema/call/arbitration.js +17 -9
- package/dist/schema/call/base.d.ts +2 -2
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +127 -127
- package/dist/schema/call/bridge.js +12 -12
- package/dist/schema/call/contact.d.ts +3 -3
- package/dist/schema/call/demand.d.ts +3 -3
- package/dist/schema/call/guard.d.ts +11 -11
- package/dist/schema/call/guard.js +1 -1
- package/dist/schema/call/machine.d.ts +216 -21
- package/dist/schema/call/machine.js +1 -1
- package/dist/schema/call/order.d.ts +7 -7
- package/dist/schema/call/payment.d.ts +3 -3
- package/dist/schema/call/permission.d.ts +3 -3
- package/dist/schema/call/personal.d.ts +337 -3
- package/dist/schema/call/personal.js +10 -0
- package/dist/schema/call/progress.d.ts +177 -9
- package/dist/schema/call/progress.js +7 -3
- package/dist/schema/call/proof.d.ts +6 -6
- package/dist/schema/call/repository.d.ts +3 -3
- package/dist/schema/call/reward.d.ts +57 -57
- package/dist/schema/call/semantic.js +41 -1
- package/dist/schema/call/service.d.ts +114 -114
- package/dist/schema/call/service.js +11 -2
- package/dist/schema/call/treasury.d.ts +57 -57
- package/dist/schema/messenger/index.js +4 -1
- package/dist/schema/operations.d.ts +713 -291
- package/dist/schema/operations.js +33 -0
- package/dist/schema/project/index.d.ts +4635 -100
- package/dist/schema/project/index.js +868 -1
- package/dist/schema/query/index.d.ts +363 -19
- package/dist/schema/query/index.js +25 -3
- package/dist/schema/schema-query/index.d.ts +13 -7
- package/dist/schema/schema-query/index.js +29 -5
- package/dist/schema/trust/index.d.ts +1012 -6
- package/dist/schema/trust/index.js +212 -11
- package/dist/schema/utils/skills-recommendation.js +1 -0
- package/dist/schema-query/index.d.ts +4 -1
- package/dist/schema-query/index.js +255 -1
- package/dist/schemas/bridge_operation.schema.json +14 -7
- package/dist/schemas/guard2file.schema.json +2 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/machineNode2file.schema.json +2 -0
- package/dist/schemas/messenger_operation.schema.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +143 -15
- package/dist/schemas/onchain_operations_allocation.schema.json +2 -1
- package/dist/schemas/onchain_operations_arbitration.schema.json +7 -5
- package/dist/schemas/onchain_operations_contact.schema.json +1 -0
- package/dist/schemas/onchain_operations_demand.schema.json +1 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +2 -0
- package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -0
- package/dist/schemas/onchain_operations_guard.schema.json +578 -0
- package/dist/schemas/onchain_operations_machine.schema.json +1 -0
- package/dist/schemas/onchain_operations_order.schema.json +4 -3
- package/dist/schemas/onchain_operations_payment.schema.json +1 -0
- package/dist/schemas/onchain_operations_permission.schema.json +1 -0
- package/dist/schemas/onchain_operations_personal.schema.json +37 -0
- package/dist/schemas/onchain_operations_progress.schema.json +90 -3
- package/dist/schemas/onchain_operations_proof.schema.json +1 -0
- package/dist/schemas/onchain_operations_repository.schema.json +1 -0
- package/dist/schemas/onchain_operations_reward.schema.json +1 -0
- package/dist/schemas/onchain_operations_service.schema.json +4 -3
- package/dist/schemas/onchain_operations_treasury.schema.json +1 -0
- package/dist/schemas/project_operation.output.json +2243 -1
- package/dist/schemas/project_operation.schema.json +683 -1
- package/dist/schemas/query_toolkit.output.json +1 -1
- package/dist/schemas/query_toolkit.schema.json +37 -0
- package/dist/schemas/schema_query.output.json +1 -1
- package/dist/schemas/schema_query.schema.json +30 -5
- package/dist/schemas/trust_score.output.json +392 -1
- package/dist/schemas/trust_score.schema.json +275 -1
- package/dist/tools/handlers/onchain.js +73 -8
- package/dist/tools/handlers/project.js +46 -0
- package/dist/tools/handlers/query.js +117 -2
- package/dist/tools/handlers/schema-query.js +41 -0
- package/dist/tools/handlers/trust.js +192 -6
- package/dist/tools/index.js +52 -9
- package/dist/tools/wrap.js +194 -15
- package/package.json +2 -2
|
@@ -121,8 +121,11 @@ export const ServiceSaleSchema = z.object({
|
|
|
121
121
|
wip: z.string().describe("WIP file URL. EMPTY string \"\" skips verification (TESTING ONLY). " +
|
|
122
122
|
"Production MUST use a real HTTP URL pointing to a .wip file generated by the wip_file tool. " +
|
|
123
123
|
"Example: \"https://cdn.example.com/products/phone_v1.wip\""),
|
|
124
|
-
wip_hash: z.string().describe("
|
|
125
|
-
"
|
|
124
|
+
wip_hash: z.string().describe("SHA-256 hash (hex string) of the sale's WIP file, committed on-chain by the merchant. " +
|
|
125
|
+
"BUY RULE: if this is NON-EMPTY, the buyer MUST pass this exact value as wip_hash when creating an order " +
|
|
126
|
+
"(ServiceBuyItem.wip_hash) — NEVER use \"\". Pinning the on-chain hash prevents the merchant from replacing " +
|
|
127
|
+
"the WIP file (a legitimate update) between the buyer's view and order placement, ensuring 'what you see is " +
|
|
128
|
+
"what you get'. EMPTY means no hash was committed (TESTING ONLY, no delivery-integrity guarantee)."),
|
|
126
129
|
}).describe("Service sale");
|
|
127
130
|
export const PurchasedItemSchema = z.object({
|
|
128
131
|
name: LongNameSchema.describe("Name of the product or service"),
|
|
@@ -975,7 +978,12 @@ export const MachineForwardSchema = z.object({
|
|
|
975
978
|
"that progress is not modified by this forward. " +
|
|
976
979
|
"For target-node verification after transition, bind the Guard to the Allocator instead " +
|
|
977
980
|
"(allocation.alloc runs AFTER the state transition completes)."),
|
|
978
|
-
}).strict().
|
|
981
|
+
}).strict().refine((f) => (f.namedOperator !== null && f.namedOperator !== undefined) ||
|
|
982
|
+
(f.permissionIndex !== null && f.permissionIndex !== undefined), {
|
|
983
|
+
message: "One of 'namedOperator' or 'permissionIndex' must be provided for each forward. " +
|
|
984
|
+
"Use namedOperator:'' (empty string) when the ORDER OWNER operates this forward; " +
|
|
985
|
+
"use a permissionIndex (e.g. 1000) when the same operator acts for all orders.",
|
|
986
|
+
}).describe("Forward in Machine object");
|
|
979
987
|
export const MachineNodePairSchema = z.object({
|
|
980
988
|
prev_node: z.string().describe("Previous node name. Empty string '' means initial entry node (the first node in the workflow)."),
|
|
981
989
|
threshold: tolerantNumber.default(0).describe("Threshold to trigger node advancement. If total Forward weight is greater than or equal to threshold, node advancement is triggered."),
|
|
@@ -1564,6 +1572,20 @@ export const OnchainQueryResultSchema_Part3 = z.union([
|
|
|
1564
1572
|
query_type: z.literal("onchain_address_activity"),
|
|
1565
1573
|
result: z.union([TransactionHistoryAnswerSchema, z.undefined()]),
|
|
1566
1574
|
}).strict(),
|
|
1575
|
+
z.object({
|
|
1576
|
+
query_type: z.literal("token_value_convert"),
|
|
1577
|
+
result: z.object({
|
|
1578
|
+
token_type: z.string().describe("Full token type used for conversion"),
|
|
1579
|
+
symbol: z.string().optional().describe("Resolved token symbol"),
|
|
1580
|
+
decimals: z.number().optional().describe("Resolved decimals N — the precision reminder"),
|
|
1581
|
+
precision_known: z.boolean().describe("false → precision unavailable; conversion may have been impossible"),
|
|
1582
|
+
direction: z.union([z.literal("raw_to_unit"), z.literal("unit_to_raw")]),
|
|
1583
|
+
input: z.string().describe("Input value as provided"),
|
|
1584
|
+
output: z.string().describe("Converted value (empty string when conversion was impossible)"),
|
|
1585
|
+
error: z.string().optional().describe("Hard failure reason (e.g. unit→raw without known precision)"),
|
|
1586
|
+
text: z.string().describe("One-line human text with the decimals reminder"),
|
|
1587
|
+
}).strict().describe("Bidirectional token value conversion result — see Fund Processing Layer"),
|
|
1588
|
+
}).strict(),
|
|
1567
1589
|
]);
|
|
1568
1590
|
export const AllQueryResultsSchema = z.union([
|
|
1569
1591
|
LocalQueryResultSchema,
|
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const SchemaQueryInputSchema: z.ZodObject<{
|
|
3
|
-
action: z.ZodEnum<["list", "get", "get_output", "search", "list_operations", "get_guard_templates", "get_field", "search_examples"]>;
|
|
3
|
+
action: z.ZodEnum<["list", "get", "get_output", "search", "list_operations", "get_guard_templates", "get_field", "search_examples", "get_tool_reference", "get_guard_design_patterns", "get_safety_rules", "get_templates"]>;
|
|
4
4
|
name: z.ZodOptional<z.ZodString>;
|
|
5
5
|
query: z.ZodOptional<z.ZodString>;
|
|
6
6
|
field_path: z.ZodOptional<z.ZodString>;
|
|
7
7
|
template: z.ZodOptional<z.ZodString>;
|
|
8
|
+
object_type: z.ZodOptional<z.ZodEnum<["guard", "machine", "service", "order", "progress", "arbitration", "treasury", "permission", "passport", "allocation", "reward"]>>;
|
|
9
|
+
params: z.ZodOptional<z.ZodString>;
|
|
8
10
|
output_file: z.ZodOptional<z.ZodString>;
|
|
9
11
|
}, "strict", z.ZodTypeAny, {
|
|
10
|
-
action: "get" | "search" | "list" | "get_output" | "list_operations" | "get_guard_templates" | "
|
|
12
|
+
action: "get" | "search" | "list" | "get_output" | "get_field" | "list_operations" | "get_guard_templates" | "search_examples" | "get_tool_reference" | "get_guard_design_patterns" | "get_safety_rules" | "get_templates";
|
|
13
|
+
params?: string | undefined;
|
|
11
14
|
name?: string | undefined;
|
|
15
|
+
object_type?: "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "arbitration" | "treasury" | "order" | "progress" | "passport" | undefined;
|
|
12
16
|
query?: string | undefined;
|
|
13
17
|
field_path?: string | undefined;
|
|
14
18
|
template?: string | undefined;
|
|
15
19
|
output_file?: string | undefined;
|
|
16
20
|
}, {
|
|
17
|
-
action: "get" | "search" | "list" | "get_output" | "list_operations" | "get_guard_templates" | "
|
|
21
|
+
action: "get" | "search" | "list" | "get_output" | "get_field" | "list_operations" | "get_guard_templates" | "search_examples" | "get_tool_reference" | "get_guard_design_patterns" | "get_safety_rules" | "get_templates";
|
|
22
|
+
params?: string | undefined;
|
|
18
23
|
name?: string | undefined;
|
|
24
|
+
object_type?: "reward" | "permission" | "guard" | "allocation" | "service" | "machine" | "arbitration" | "treasury" | "order" | "progress" | "passport" | undefined;
|
|
19
25
|
query?: string | undefined;
|
|
20
26
|
field_path?: string | undefined;
|
|
21
27
|
template?: string | undefined;
|
|
@@ -52,9 +58,9 @@ export declare const SchemaQueryOutputSchema: z.ZodObject<{
|
|
|
52
58
|
score: number;
|
|
53
59
|
tags: string[];
|
|
54
60
|
file: string;
|
|
61
|
+
verified: boolean;
|
|
55
62
|
industry: string;
|
|
56
63
|
operation_type: string;
|
|
57
|
-
verified: boolean;
|
|
58
64
|
matched_fields: string[];
|
|
59
65
|
}, {
|
|
60
66
|
description: string;
|
|
@@ -62,9 +68,9 @@ export declare const SchemaQueryOutputSchema: z.ZodObject<{
|
|
|
62
68
|
score: number;
|
|
63
69
|
tags: string[];
|
|
64
70
|
file: string;
|
|
71
|
+
verified: boolean;
|
|
65
72
|
industry: string;
|
|
66
73
|
operation_type: string;
|
|
67
|
-
verified: boolean;
|
|
68
74
|
matched_fields: string[];
|
|
69
75
|
}>, "many">, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodNull]>;
|
|
70
76
|
message: z.ZodString;
|
|
@@ -82,9 +88,9 @@ export declare const SchemaQueryOutputSchema: z.ZodObject<{
|
|
|
82
88
|
score: number;
|
|
83
89
|
tags: string[];
|
|
84
90
|
file: string;
|
|
91
|
+
verified: boolean;
|
|
85
92
|
industry: string;
|
|
86
93
|
operation_type: string;
|
|
87
|
-
verified: boolean;
|
|
88
94
|
matched_fields: string[];
|
|
89
95
|
}[] | null;
|
|
90
96
|
success: boolean;
|
|
@@ -103,9 +109,9 @@ export declare const SchemaQueryOutputSchema: z.ZodObject<{
|
|
|
103
109
|
score: number;
|
|
104
110
|
tags: string[];
|
|
105
111
|
file: string;
|
|
112
|
+
verified: boolean;
|
|
106
113
|
industry: string;
|
|
107
114
|
operation_type: string;
|
|
108
|
-
verified: boolean;
|
|
109
115
|
matched_fields: string[];
|
|
110
116
|
}[] | null;
|
|
111
117
|
success: boolean;
|
|
@@ -11,16 +11,20 @@ export const SchemaQueryInputSchema = z
|
|
|
11
11
|
"get_guard_templates",
|
|
12
12
|
"get_field",
|
|
13
13
|
"search_examples",
|
|
14
|
+
"get_tool_reference",
|
|
15
|
+
"get_guard_design_patterns",
|
|
16
|
+
"get_safety_rules",
|
|
17
|
+
"get_templates",
|
|
14
18
|
])
|
|
15
|
-
.describe("Action to perform: 'list' (all schemas), 'get' (specific input schema), 'get_output' (tool output schema), 'get_field' (field-path query e.g. field_path='data.node'), 'search' (by keyword), 'list_operations' (on-chain operations), 'get_guard_templates' (Guard creation templates + best practices), 'search_examples' (search verified example files by keyword — matches title, description, tags, operation_type, industry)."),
|
|
19
|
+
.describe("Action to perform: 'list' (all schemas), 'get' (specific input schema), 'get_output' (tool output schema), 'get_field' (field-path query e.g. field_path='data.node'), 'search' (by keyword), 'list_operations' (on-chain operations), 'get_guard_templates' (Guard creation templates + best practices), 'search_examples' (search verified example files by keyword — matches title, description, tags, operation_type, industry), 'get_tool_reference' (MCP tool usage reference: summaries, actions, prerequisites, notes — sunk from wowok-tools skill), 'get_guard_design_patterns' (curated Guard design pattern catalog: business requirement → logic tree template — sunk from wowok-guard skill), 'get_safety_rules' (object reuse/immutability/operation-classification/naming rules — sunk from wowok-safety skill), 'get_templates' (unified template registry: ~90 parameterized templates across 11 object types — guard/machine/service/order/progress/arbitration/treasury/permission/passport/allocation/reward; omit 'template' to list metadata, provide 'template' for full detail, provide 'template' + 'params' to instantiate into executable JSON)."),
|
|
16
20
|
name: z
|
|
17
21
|
.string()
|
|
18
22
|
.optional()
|
|
19
|
-
.describe("Schema/tool name for 'get'/'get_output'/'get_field' action (e.g., 'onchain_operations', 'onchain_operations_machine')."),
|
|
23
|
+
.describe("Schema/tool name for 'get'/'get_output'/'get_field'/'get_tool_reference' action (e.g., 'onchain_operations', 'onchain_operations_machine'), or pattern id for 'get_guard_design_patterns' (e.g., 'pattern.identity_check_allowlist')."),
|
|
20
24
|
query: z
|
|
21
25
|
.string()
|
|
22
26
|
.optional()
|
|
23
|
-
.describe("Search query for 'search' action"),
|
|
27
|
+
.describe("Search query for 'search' action, keyword filter for 'get_tool_reference', or host filter for 'get_guard_design_patterns' (e.g. 'service_buy_guard', 'machine_forward', 'reward_claim')."),
|
|
24
28
|
field_path: z
|
|
25
29
|
.string()
|
|
26
30
|
.optional()
|
|
@@ -28,7 +32,27 @@ export const SchemaQueryInputSchema = z
|
|
|
28
32
|
template: z
|
|
29
33
|
.string()
|
|
30
34
|
.optional()
|
|
31
|
-
.describe("Guard template name for 'get_guard_templates' action. Omit to list all available templates. Available: signer_verification, progress_node_check, order_owner_verification, service_belonging_check, reward_not_claimed, combined_reward_guard."),
|
|
35
|
+
.describe("Guard template name for 'get_guard_templates' action. Omit to list all available templates. Available: signer_verification, progress_node_check, order_owner_verification, service_belonging_check, reward_not_claimed, combined_reward_guard. For 'get_templates': unified template id (e.g. 'tpl_buy_guard_whitelist', 'tpl_machine_ecommerce_standard', 'T-S-01', 'T-O-01', 'first_order')."),
|
|
36
|
+
object_type: z
|
|
37
|
+
.enum([
|
|
38
|
+
"guard",
|
|
39
|
+
"machine",
|
|
40
|
+
"service",
|
|
41
|
+
"order",
|
|
42
|
+
"progress",
|
|
43
|
+
"arbitration",
|
|
44
|
+
"treasury",
|
|
45
|
+
"permission",
|
|
46
|
+
"passport",
|
|
47
|
+
"allocation",
|
|
48
|
+
"reward",
|
|
49
|
+
])
|
|
50
|
+
.optional()
|
|
51
|
+
.describe("Object-type filter for 'get_templates' list mode (e.g. 'guard' lists only Guard templates)."),
|
|
52
|
+
params: z
|
|
53
|
+
.string()
|
|
54
|
+
.optional()
|
|
55
|
+
.describe("JSON-encoded parameter object for 'get_templates' instantiation mode (e.g. '{\"whitelist\":[\"0xabc\"]}'). Required params are declared in each template's 'parameters' list (see detail mode)."),
|
|
32
56
|
output_file: z
|
|
33
57
|
.string()
|
|
34
58
|
.optional()
|
|
@@ -63,7 +87,7 @@ export const SchemaQueryOutputSchema = z
|
|
|
63
87
|
.union([
|
|
64
88
|
z.array(SchemaListItemSchema).describe("List of schema summaries (list/search/list_operations)."),
|
|
65
89
|
z.array(ExampleSearchResultSchema).describe("List of matching examples (search_examples)."),
|
|
66
|
-
z.record(z.unknown()).describe("JSON Schema object (get/get_output/get_field)
|
|
90
|
+
z.record(z.unknown()).describe("JSON Schema object (get/get_output/get_field), Guard template data, tool reference data (get_tool_reference), Guard design pattern catalog (get_guard_design_patterns), or safety rules tables (get_safety_rules)."),
|
|
67
91
|
z.null().describe("No data — lookup failed or returned nothing, or data was written to output_file."),
|
|
68
92
|
])
|
|
69
93
|
.describe("Response data — array of schema summaries for list-like actions, array of example results for search_examples, JSON Schema object for get/get_output/get_field, Guard template data for get_guard_templates, null on failure or when output_file is used."),
|