@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.
Files changed (193) hide show
  1. package/README.md +13 -9
  2. package/dist/customer/customer-advice.d.ts +31 -0
  3. package/dist/customer/customer-advice.js +129 -0
  4. package/dist/customer/index.d.ts +2 -0
  5. package/dist/customer/index.js +2 -0
  6. package/dist/customer/info-puzzle.d.ts +8 -1
  7. package/dist/customer/info-puzzle.js +30 -5
  8. package/dist/customer/order-monitor.d.ts +2 -0
  9. package/dist/customer/order-monitor.js +3 -2
  10. package/dist/customer/post-purchase.d.ts +2 -0
  11. package/dist/customer/post-purchase.js +6 -5
  12. package/dist/customer/preorder-compare.d.ts +24 -0
  13. package/dist/customer/preorder-compare.js +34 -0
  14. package/dist/customer/reminder-system.d.ts +2 -0
  15. package/dist/customer/reminder-system.js +2 -1
  16. package/dist/customer/risk-assessment.js +4 -3
  17. package/dist/customer/types.d.ts +5 -0
  18. package/dist/examples/arbitration-dispute-create.json +41 -0
  19. package/dist/examples/arbitration-vote-weighted.json +35 -0
  20. package/dist/examples/arbitration-voting-guard-add.json +38 -0
  21. package/dist/examples/demand-present-service.json +33 -0
  22. package/dist/examples/gen-passport-verify-guard.json +48 -0
  23. package/dist/examples/guard-template-balance-check.json +36 -15
  24. package/dist/examples/guard-template-time-lock.json +33 -12
  25. package/dist/examples/insurance-guard-claim-timelock.json +75 -0
  26. package/dist/examples/insurance-guard-withdraw-allocation.json +96 -0
  27. package/dist/examples/insurance-machine-create-publish.json +75 -0
  28. package/dist/examples/insurance-service-allocators-publish.json +56 -0
  29. package/dist/examples/machine-multisig-threshold.json +86 -0
  30. package/dist/examples/machine-template-7node-rental.json +99 -94
  31. package/dist/examples/payment-scenario-bound.json +45 -0
  32. package/dist/examples/rental-ziroom-machine-create.json +126 -114
  33. package/dist/examples/rental-ziroom-permission-create.json +10 -3
  34. package/dist/examples/rental-ziroom-service-create.json +27 -18
  35. package/dist/examples/retail-adv-guard-customer-win-create.json +80 -0
  36. package/dist/examples/retail-adv-guard-messenger-proof-create.json +65 -0
  37. package/dist/examples/retail-adv-guard-reward-timeout-create.json +92 -0
  38. package/dist/examples/retail-adv-reward-guard-add.json +51 -0
  39. package/dist/examples/retail-myshop-allocation-activate.json +55 -0
  40. package/dist/examples/retail-myshop-arbitration-create.json +40 -0
  41. package/dist/examples/retail-myshop-contact-create.json +43 -0
  42. package/dist/examples/retail-myshop-order-create.json +56 -0
  43. package/dist/examples/retail-myshop-progress-operate.json +38 -0
  44. package/dist/examples/retail-myshop-reward-create.json +35 -0
  45. package/dist/examples/service-discount-issue.json +46 -0
  46. package/dist/examples/threebody-guard-create.json +56 -0
  47. package/dist/examples/threebody-machine-create.json +72 -0
  48. package/dist/examples/threebody-permission-create.json +38 -0
  49. package/dist/examples/threebody-service-allocators.json +49 -0
  50. package/dist/examples/travel-guard-time-lock.json +69 -0
  51. package/dist/examples/travel-guard-weather-oracle.json +70 -0
  52. package/dist/examples/travel-machine-create.json +136 -0
  53. package/dist/examples/travel-repository-create.json +47 -0
  54. package/dist/examples/travel-service-create.json +102 -0
  55. package/dist/examples/travel-treasury-create.json +34 -0
  56. package/dist/examples/treasury-deposit.json +37 -0
  57. package/dist/examples/treasury-withdraw.json +38 -0
  58. package/dist/extensions/business-modules.d.ts +49 -0
  59. package/dist/extensions/business-modules.js +287 -0
  60. package/dist/extensions/capability-manifest.js +192 -5
  61. package/dist/extensions/constraint-registry.js +3 -1
  62. package/dist/extensions/modes.js +10 -4
  63. package/dist/extensions/registry.d.ts +14 -9
  64. package/dist/extensions/registry.js +69 -14
  65. package/dist/extensions/types.d.ts +1 -0
  66. package/dist/knowledge/fund-layer.d.ts +67 -1
  67. package/dist/knowledge/fund-layer.js +561 -12
  68. package/dist/knowledge/guard-templates.d.ts +10 -0
  69. package/dist/knowledge/guard-templates.js +50 -0
  70. package/dist/knowledge/index.d.ts +2 -2
  71. package/dist/knowledge/index.js +2 -2
  72. package/dist/knowledge/machine-risk.js +4 -1
  73. package/dist/knowledge/progress-context.js +1 -1
  74. package/dist/knowledge/progress-ledger.js +3 -3
  75. package/dist/knowledge/progress-templates.js +1 -1
  76. package/dist/knowledge/progress-translation.js +1 -1
  77. package/dist/knowledge/safety-rules.d.ts +83 -1
  78. package/dist/knowledge/safety-rules.js +166 -2
  79. package/dist/knowledge/scenario-modes.d.ts +1 -1
  80. package/dist/knowledge/scenario-modes.js +13 -11
  81. package/dist/knowledge/template-registry.d.ts +48 -0
  82. package/dist/knowledge/template-registry.js +341 -0
  83. package/dist/knowledge/tool-constraints.js +6 -6
  84. package/dist/knowledge/tools-reference.js +11 -8
  85. package/dist/participation/merchant-interest.d.ts +32 -0
  86. package/dist/participation/merchant-interest.js +100 -0
  87. package/dist/participation/radar-core.d.ts +104 -0
  88. package/dist/participation/radar-core.js +269 -0
  89. package/dist/project/context-assembly.js +8 -0
  90. package/dist/project/edit-planner.js +27 -56
  91. package/dist/project/evaluation.d.ts +36 -0
  92. package/dist/project/evaluation.js +422 -56
  93. package/dist/project/game-theory.d.ts +43 -0
  94. package/dist/project/game-theory.js +177 -0
  95. package/dist/project/graph-builder.js +1 -0
  96. package/dist/project/handlers.d.ts +38 -0
  97. package/dist/project/handlers.js +65 -35
  98. package/dist/project/intent-analyzer.d.ts +71 -0
  99. package/dist/project/intent-analyzer.js +149 -0
  100. package/dist/project/machine-nodes.d.ts +2 -0
  101. package/dist/project/machine-nodes.js +36 -0
  102. package/dist/project/merchant-guide.d.ts +165 -0
  103. package/dist/project/merchant-guide.js +264 -0
  104. package/dist/project/mode-actions.d.ts +199 -0
  105. package/dist/project/mode-actions.js +309 -0
  106. package/dist/project/participation-radar.d.ts +18 -0
  107. package/dist/project/participation-radar.js +428 -0
  108. package/dist/project/pipeline-actions.d.ts +101 -0
  109. package/dist/project/pipeline-actions.js +109 -0
  110. package/dist/project/semantic-graph.d.ts +95 -0
  111. package/dist/project/semantic-graph.js +245 -0
  112. package/dist/schema/call/allocation.d.ts +11 -11
  113. package/dist/schema/call/allocation.js +11 -1
  114. package/dist/schema/call/arbitration.d.ts +21 -21
  115. package/dist/schema/call/arbitration.js +17 -9
  116. package/dist/schema/call/base.d.ts +2 -2
  117. package/dist/schema/call/base.js +1 -1
  118. package/dist/schema/call/bridge.d.ts +127 -127
  119. package/dist/schema/call/bridge.js +12 -12
  120. package/dist/schema/call/contact.d.ts +3 -3
  121. package/dist/schema/call/demand.d.ts +3 -3
  122. package/dist/schema/call/guard.d.ts +11 -11
  123. package/dist/schema/call/guard.js +1 -1
  124. package/dist/schema/call/machine.d.ts +216 -21
  125. package/dist/schema/call/machine.js +1 -1
  126. package/dist/schema/call/order.d.ts +7 -7
  127. package/dist/schema/call/payment.d.ts +3 -3
  128. package/dist/schema/call/permission.d.ts +3 -3
  129. package/dist/schema/call/personal.d.ts +337 -3
  130. package/dist/schema/call/personal.js +10 -0
  131. package/dist/schema/call/progress.d.ts +177 -9
  132. package/dist/schema/call/progress.js +7 -3
  133. package/dist/schema/call/proof.d.ts +6 -6
  134. package/dist/schema/call/repository.d.ts +3 -3
  135. package/dist/schema/call/reward.d.ts +57 -57
  136. package/dist/schema/call/semantic.js +41 -1
  137. package/dist/schema/call/service.d.ts +114 -114
  138. package/dist/schema/call/service.js +11 -2
  139. package/dist/schema/call/treasury.d.ts +57 -57
  140. package/dist/schema/messenger/index.js +4 -1
  141. package/dist/schema/operations.d.ts +713 -291
  142. package/dist/schema/operations.js +33 -0
  143. package/dist/schema/project/index.d.ts +4635 -100
  144. package/dist/schema/project/index.js +868 -1
  145. package/dist/schema/query/index.d.ts +363 -19
  146. package/dist/schema/query/index.js +25 -3
  147. package/dist/schema/schema-query/index.d.ts +13 -7
  148. package/dist/schema/schema-query/index.js +29 -5
  149. package/dist/schema/trust/index.d.ts +1012 -6
  150. package/dist/schema/trust/index.js +212 -11
  151. package/dist/schema/utils/skills-recommendation.js +1 -0
  152. package/dist/schema-query/index.d.ts +4 -1
  153. package/dist/schema-query/index.js +255 -1
  154. package/dist/schemas/bridge_operation.schema.json +14 -7
  155. package/dist/schemas/guard2file.schema.json +2 -0
  156. package/dist/schemas/index.json +1 -1
  157. package/dist/schemas/machineNode2file.schema.json +2 -0
  158. package/dist/schemas/messenger_operation.schema.json +1 -1
  159. package/dist/schemas/onchain_operations.schema.json +143 -15
  160. package/dist/schemas/onchain_operations_allocation.schema.json +2 -1
  161. package/dist/schemas/onchain_operations_arbitration.schema.json +7 -5
  162. package/dist/schemas/onchain_operations_contact.schema.json +1 -0
  163. package/dist/schemas/onchain_operations_demand.schema.json +1 -0
  164. package/dist/schemas/onchain_operations_gen_passport.schema.json +2 -0
  165. package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -0
  166. package/dist/schemas/onchain_operations_guard.schema.json +578 -0
  167. package/dist/schemas/onchain_operations_machine.schema.json +1 -0
  168. package/dist/schemas/onchain_operations_order.schema.json +4 -3
  169. package/dist/schemas/onchain_operations_payment.schema.json +1 -0
  170. package/dist/schemas/onchain_operations_permission.schema.json +1 -0
  171. package/dist/schemas/onchain_operations_personal.schema.json +37 -0
  172. package/dist/schemas/onchain_operations_progress.schema.json +90 -3
  173. package/dist/schemas/onchain_operations_proof.schema.json +1 -0
  174. package/dist/schemas/onchain_operations_repository.schema.json +1 -0
  175. package/dist/schemas/onchain_operations_reward.schema.json +1 -0
  176. package/dist/schemas/onchain_operations_service.schema.json +4 -3
  177. package/dist/schemas/onchain_operations_treasury.schema.json +1 -0
  178. package/dist/schemas/project_operation.output.json +2243 -1
  179. package/dist/schemas/project_operation.schema.json +683 -1
  180. package/dist/schemas/query_toolkit.output.json +1 -1
  181. package/dist/schemas/query_toolkit.schema.json +37 -0
  182. package/dist/schemas/schema_query.output.json +1 -1
  183. package/dist/schemas/schema_query.schema.json +30 -5
  184. package/dist/schemas/trust_score.output.json +392 -1
  185. package/dist/schemas/trust_score.schema.json +275 -1
  186. package/dist/tools/handlers/onchain.js +73 -8
  187. package/dist/tools/handlers/project.js +46 -0
  188. package/dist/tools/handlers/query.js +117 -2
  189. package/dist/tools/handlers/schema-query.js +41 -0
  190. package/dist/tools/handlers/trust.js +192 -6
  191. package/dist/tools/index.js +52 -9
  192. package/dist/tools/wrap.js +194 -15
  193. 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("WIP file hash (hex string). EMPTY string \"\" skips hash comparison (TESTING ONLY). " +
125
- "Production: fill with the hash you saw when viewing the product, to prevent merchant replacing the WIP file before order."),
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().describe("Forward in Machine object");
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" | "get_field" | "search_examples";
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" | "get_field" | "search_examples";
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) or Guard template data."),
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."),