@wowok/agent-mcp 2.3.18 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/dist/customer/industry-risks.js +31 -31
  2. package/dist/customer/order-monitor.js +57 -57
  3. package/dist/customer/order-strategy.js +89 -89
  4. package/dist/customer/post-purchase.js +97 -97
  5. package/dist/customer/reminder-system.js +26 -26
  6. package/dist/customer/risk-assessment.js +46 -46
  7. package/dist/customer/types.d.ts +4 -4
  8. package/dist/customer/types.js +4 -4
  9. package/dist/customer/user-preferences.js +50 -50
  10. package/dist/experience/intent-distill.js +6 -6
  11. package/dist/index.d.ts +2 -2
  12. package/dist/index.js +11 -1624
  13. package/dist/knowledge/acquisition-flywheel.js +64 -64
  14. package/dist/knowledge/arbitration-trust.js +10 -10
  15. package/dist/knowledge/demand-matching.js +8 -8
  16. package/dist/knowledge/dynamic-pricing.js +18 -18
  17. package/dist/knowledge/flywheel-loop.js +11 -11
  18. package/dist/knowledge/glossary.js +22 -22
  19. package/dist/knowledge/guard-ledger.d.ts +1 -1
  20. package/dist/knowledge/guard-ledger.js +145 -104
  21. package/dist/knowledge/guard-lint.d.ts +77 -0
  22. package/dist/knowledge/guard-lint.js +670 -0
  23. package/dist/knowledge/guard-migration.d.ts +48 -0
  24. package/dist/knowledge/guard-migration.js +228 -0
  25. package/dist/knowledge/guard-puzzle.d.ts +109 -14
  26. package/dist/knowledge/guard-puzzle.js +627 -101
  27. package/dist/knowledge/guard-risk.d.ts +10 -1
  28. package/dist/knowledge/guard-risk.js +1634 -292
  29. package/dist/knowledge/guard-templates.d.ts +38 -0
  30. package/dist/knowledge/guard-templates.js +605 -0
  31. package/dist/knowledge/guard-translation.d.ts +14 -2
  32. package/dist/knowledge/guard-translation.js +825 -194
  33. package/dist/knowledge/index.d.ts +8 -4
  34. package/dist/knowledge/index.js +9 -5
  35. package/dist/knowledge/industry-evolution.js +29 -29
  36. package/dist/knowledge/industry-generalizer.js +52 -52
  37. package/dist/knowledge/industry-registry.js +20 -33
  38. package/dist/knowledge/intent-metrics.js +67 -67
  39. package/dist/knowledge/process-model.js +80 -80
  40. package/dist/knowledge/reputation-rules.js +9 -9
  41. package/dist/knowledge/reward-templates.js +51 -51
  42. package/dist/knowledge/safety-rules.js +3 -3
  43. package/dist/knowledge/tool-constraints.js +20 -4
  44. package/dist/knowledge/trust-metrics.js +26 -26
  45. package/dist/project/graph.d.ts +1 -0
  46. package/dist/project/graph.js +27 -1
  47. package/dist/project/index.d.ts +1 -0
  48. package/dist/project/index.js +39 -2
  49. package/dist/project/namespace.d.ts +11 -1
  50. package/dist/project/namespace.js +27 -2
  51. package/dist/project/query.d.ts +2 -0
  52. package/dist/project/query.js +56 -15
  53. package/dist/rules.d.ts +12 -0
  54. package/dist/rules.js +9 -0
  55. package/dist/schema/call/allocation.d.ts +10 -10
  56. package/dist/schema/call/base.js +19 -19
  57. package/dist/schema/call/bridge.d.ts +32 -32
  58. package/dist/schema/call/demand.d.ts +84 -84
  59. package/dist/schema/call/guard.d.ts +153 -0
  60. package/dist/schema/call/guard.js +50 -0
  61. package/dist/schema/call/machine.d.ts +38 -38
  62. package/dist/schema/call/permission.d.ts +78 -78
  63. package/dist/schema/call/repository.d.ts +22 -22
  64. package/dist/schema/call/semantic.js +229 -25
  65. package/dist/schema/call/service.d.ts +7 -7
  66. package/dist/schema/local/wip.d.ts +39 -19
  67. package/dist/schema/local/wip.js +5 -5
  68. package/dist/schema/messenger/index.d.ts +26 -26
  69. package/dist/schema/messenger/index.js +2 -2
  70. package/dist/schema/operations.d.ts +270 -192
  71. package/dist/schema/query/index.d.ts +184 -184
  72. package/dist/schema/query/index.js +15 -9
  73. package/dist/schema/trust/index.d.ts +4 -4
  74. package/dist/schema/utils/guard-parser.js +4 -4
  75. package/dist/schema/utils/guard-query-utils.d.ts +7 -0
  76. package/dist/schema/utils/guard-query-utils.js +14 -1
  77. package/dist/schema/utils/node-parser.js +14 -14
  78. package/dist/schemas/bridge_operation.output.json +15 -15
  79. package/dist/schemas/index.json +1 -1
  80. package/dist/schemas/messenger_operation.output.json +18 -16
  81. package/dist/schemas/onchain_events.output.json +15 -15
  82. package/dist/schemas/onchain_operations.output.json +16 -16
  83. package/dist/schemas/onchain_operations.schema.json +11 -20
  84. package/dist/schemas/onchain_operations_allocation.schema.json +7 -10
  85. package/dist/schemas/onchain_operations_machine.schema.json +2 -5
  86. package/dist/schemas/onchain_operations_service.schema.json +2 -5
  87. package/dist/schemas/onchain_table_data.output.json +20 -26
  88. package/dist/schemas/wip_file.output.json +24 -1
  89. package/dist/tools/handlers/bridge.d.ts +1 -0
  90. package/dist/tools/handlers/bridge.js +1 -0
  91. package/dist/tools/handlers/config.d.ts +2 -0
  92. package/dist/tools/handlers/config.js +71 -0
  93. package/dist/tools/handlers/file-export.d.ts +3 -0
  94. package/dist/tools/handlers/file-export.js +90 -0
  95. package/dist/tools/handlers/local.d.ts +30 -0
  96. package/dist/tools/handlers/local.js +27 -0
  97. package/dist/tools/handlers/messenger.d.ts +16 -0
  98. package/dist/tools/handlers/messenger.js +187 -0
  99. package/dist/tools/handlers/onchain.d.ts +2 -0
  100. package/dist/tools/handlers/onchain.js +246 -0
  101. package/dist/tools/handlers/project.d.ts +2 -0
  102. package/dist/tools/handlers/project.js +53 -0
  103. package/dist/tools/handlers/query.d.ts +5 -0
  104. package/dist/tools/handlers/query.js +256 -0
  105. package/dist/tools/handlers/schema-query.d.ts +2 -0
  106. package/dist/tools/handlers/schema-query.js +92 -0
  107. package/dist/tools/handlers/trust.d.ts +2 -0
  108. package/dist/tools/handlers/trust.js +194 -0
  109. package/dist/tools/handlers/wip.d.ts +2 -0
  110. package/dist/tools/handlers/wip.js +44 -0
  111. package/dist/tools/index.d.ts +13 -0
  112. package/dist/tools/index.js +479 -0
  113. package/dist/tools/rules-hook.d.ts +2 -0
  114. package/dist/tools/rules-hook.js +22 -0
  115. package/dist/tools/shared.d.ts +29 -0
  116. package/dist/tools/shared.js +130 -0
  117. package/dist/tools/types.d.ts +35 -0
  118. package/dist/tools/types.js +1 -0
  119. package/dist/tools/wrap.d.ts +6 -0
  120. package/dist/tools/wrap.js +55 -0
  121. package/package.json +19 -5
@@ -358,20 +358,6 @@ export declare const CallDemand_DataSchema: z.ZodObject<{
358
358
  } | {
359
359
  op: "clear";
360
360
  } | undefined;
361
- location?: string | undefined;
362
- owner_receive?: {
363
- received: {
364
- id: string;
365
- balance: string | number;
366
- payment: string;
367
- }[];
368
- balance: string | number;
369
- token_type: string;
370
- } | "recently" | {
371
- type: string;
372
- id: string;
373
- content_raw?: any;
374
- }[] | undefined;
375
361
  guards?: {
376
362
  op: "add";
377
363
  guard: {
@@ -390,6 +376,20 @@ export declare const CallDemand_DataSchema: z.ZodObject<{
390
376
  } | {
391
377
  op: "clear";
392
378
  } | undefined;
379
+ location?: string | undefined;
380
+ owner_receive?: {
381
+ received: {
382
+ id: string;
383
+ balance: string | number;
384
+ payment: string;
385
+ }[];
386
+ balance: string | number;
387
+ token_type: string;
388
+ } | "recently" | {
389
+ type: string;
390
+ id: string;
391
+ content_raw?: any;
392
+ }[] | undefined;
393
393
  um?: string | null | undefined;
394
394
  feedback?: {
395
395
  who: {
@@ -428,20 +428,6 @@ export declare const CallDemand_DataSchema: z.ZodObject<{
428
428
  } | {
429
429
  op: "clear";
430
430
  } | undefined;
431
- location?: string | undefined;
432
- owner_receive?: {
433
- received: {
434
- id: string;
435
- balance: string | number;
436
- payment: string;
437
- }[];
438
- balance: string | number;
439
- token_type: string;
440
- } | "recently" | {
441
- type: string;
442
- id: string;
443
- content_raw?: any;
444
- }[] | undefined;
445
431
  guards?: {
446
432
  op: "add";
447
433
  guard: {
@@ -460,6 +446,20 @@ export declare const CallDemand_DataSchema: z.ZodObject<{
460
446
  } | {
461
447
  op: "clear";
462
448
  } | undefined;
449
+ location?: string | undefined;
450
+ owner_receive?: {
451
+ received: {
452
+ id: string;
453
+ balance: string | number;
454
+ payment: string;
455
+ }[];
456
+ balance: string | number;
457
+ token_type: string;
458
+ } | "recently" | {
459
+ type: string;
460
+ id: string;
461
+ content_raw?: any;
462
+ }[] | undefined;
463
463
  um?: string | null | undefined;
464
464
  feedback?: {
465
465
  who: {
@@ -730,20 +730,6 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
730
730
  } | {
731
731
  op: "clear";
732
732
  } | undefined;
733
- location?: string | undefined;
734
- owner_receive?: {
735
- received: {
736
- id: string;
737
- balance: string | number;
738
- payment: string;
739
- }[];
740
- balance: string | number;
741
- token_type: string;
742
- } | "recently" | {
743
- type: string;
744
- id: string;
745
- content_raw?: any;
746
- }[] | undefined;
747
733
  guards?: {
748
734
  op: "add";
749
735
  guard: {
@@ -762,6 +748,20 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
762
748
  } | {
763
749
  op: "clear";
764
750
  } | undefined;
751
+ location?: string | undefined;
752
+ owner_receive?: {
753
+ received: {
754
+ id: string;
755
+ balance: string | number;
756
+ payment: string;
757
+ }[];
758
+ balance: string | number;
759
+ token_type: string;
760
+ } | "recently" | {
761
+ type: string;
762
+ id: string;
763
+ content_raw?: any;
764
+ }[] | undefined;
765
765
  um?: string | null | undefined;
766
766
  feedback?: {
767
767
  who: {
@@ -800,20 +800,6 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
800
800
  } | {
801
801
  op: "clear";
802
802
  } | undefined;
803
- location?: string | undefined;
804
- owner_receive?: {
805
- received: {
806
- id: string;
807
- balance: string | number;
808
- payment: string;
809
- }[];
810
- balance: string | number;
811
- token_type: string;
812
- } | "recently" | {
813
- type: string;
814
- id: string;
815
- content_raw?: any;
816
- }[] | undefined;
817
803
  guards?: {
818
804
  op: "add";
819
805
  guard: {
@@ -832,6 +818,20 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
832
818
  } | {
833
819
  op: "clear";
834
820
  } | undefined;
821
+ location?: string | undefined;
822
+ owner_receive?: {
823
+ received: {
824
+ id: string;
825
+ balance: string | number;
826
+ payment: string;
827
+ }[];
828
+ balance: string | number;
829
+ token_type: string;
830
+ } | "recently" | {
831
+ type: string;
832
+ id: string;
833
+ content_raw?: any;
834
+ }[] | undefined;
835
835
  um?: string | null | undefined;
836
836
  feedback?: {
837
837
  who: {
@@ -1086,20 +1086,6 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
1086
1086
  } | {
1087
1087
  op: "clear";
1088
1088
  } | undefined;
1089
- location?: string | undefined;
1090
- owner_receive?: {
1091
- received: {
1092
- id: string;
1093
- balance: string | number;
1094
- payment: string;
1095
- }[];
1096
- balance: string | number;
1097
- token_type: string;
1098
- } | "recently" | {
1099
- type: string;
1100
- id: string;
1101
- content_raw?: any;
1102
- }[] | undefined;
1103
1089
  guards?: {
1104
1090
  op: "add";
1105
1091
  guard: {
@@ -1118,6 +1104,20 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
1118
1104
  } | {
1119
1105
  op: "clear";
1120
1106
  } | undefined;
1107
+ location?: string | undefined;
1108
+ owner_receive?: {
1109
+ received: {
1110
+ id: string;
1111
+ balance: string | number;
1112
+ payment: string;
1113
+ }[];
1114
+ balance: string | number;
1115
+ token_type: string;
1116
+ } | "recently" | {
1117
+ type: string;
1118
+ id: string;
1119
+ content_raw?: any;
1120
+ }[] | undefined;
1121
1121
  um?: string | null | undefined;
1122
1122
  feedback?: {
1123
1123
  who: {
@@ -1197,20 +1197,6 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
1197
1197
  } | {
1198
1198
  op: "clear";
1199
1199
  } | undefined;
1200
- location?: string | undefined;
1201
- owner_receive?: {
1202
- received: {
1203
- id: string;
1204
- balance: string | number;
1205
- payment: string;
1206
- }[];
1207
- balance: string | number;
1208
- token_type: string;
1209
- } | "recently" | {
1210
- type: string;
1211
- id: string;
1212
- content_raw?: any;
1213
- }[] | undefined;
1214
1200
  guards?: {
1215
1201
  op: "add";
1216
1202
  guard: {
@@ -1229,6 +1215,20 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
1229
1215
  } | {
1230
1216
  op: "clear";
1231
1217
  } | undefined;
1218
+ location?: string | undefined;
1219
+ owner_receive?: {
1220
+ received: {
1221
+ id: string;
1222
+ balance: string | number;
1223
+ payment: string;
1224
+ }[];
1225
+ balance: string | number;
1226
+ token_type: string;
1227
+ } | "recently" | {
1228
+ type: string;
1229
+ id: string;
1230
+ content_raw?: any;
1231
+ }[] | undefined;
1232
1232
  um?: string | null | undefined;
1233
1233
  feedback?: {
1234
1234
  who: {
@@ -13,6 +13,31 @@ export declare const CallGuard_RootSchema: z.ZodUnion<[z.ZodEffects<z.ZodType<an
13
13
  file_path: string;
14
14
  format?: "markdown" | "json" | undefined;
15
15
  }>]>;
16
+ export declare const GuardBindingHintActionSchema: z.ZodEnum<["buy", "forward", "allocate", "claim_reward", "vote", "dispute", "write_repository", "submit_progress", "gen_passport", "custom"]>;
17
+ export declare const GuardBindingHintHostObjectSchema: z.ZodEnum<["Service", "Machine", "Arbitration", "Reward", "Repository", "Progress", "Demand", "Standalone"]>;
18
+ export declare const GuardBindingHintBindingFieldSchema: z.ZodEnum<["buy_guard", "order_allocators", "Forward.guard", "submission", "guard", "write_guard", "usage_guard", "voting_guard", "ServiceGuard", "none"]>;
19
+ export declare const GuardBindingHintSchema: z.ZodObject<{
20
+ action: z.ZodEnum<["buy", "forward", "allocate", "claim_reward", "vote", "dispute", "write_repository", "submit_progress", "gen_passport", "custom"]>;
21
+ host_object: z.ZodEnum<["Service", "Machine", "Arbitration", "Reward", "Repository", "Progress", "Demand", "Standalone"]>;
22
+ binding_field: z.ZodEnum<["buy_guard", "order_allocators", "Forward.guard", "submission", "guard", "write_guard", "usage_guard", "voting_guard", "ServiceGuard", "none"]>;
23
+ rule_sentence: z.ZodOptional<z.ZodString>;
24
+ failure_conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
25
+ circular_reference: z.ZodOptional<z.ZodBoolean>;
26
+ }, "strict", z.ZodTypeAny, {
27
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
28
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
29
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
30
+ rule_sentence?: string | undefined;
31
+ failure_conditions?: string[] | undefined;
32
+ circular_reference?: boolean | undefined;
33
+ }, {
34
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
35
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
36
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
37
+ rule_sentence?: string | undefined;
38
+ failure_conditions?: string[] | undefined;
39
+ circular_reference?: boolean | undefined;
40
+ }>;
16
41
  export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
17
42
  namedNew: z.ZodOptional<z.ZodObject<{
18
43
  name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
@@ -124,6 +149,28 @@ export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
124
149
  guards: string[];
125
150
  logic_or?: boolean | undefined;
126
151
  }>>;
152
+ binding_hint: z.ZodOptional<z.ZodObject<{
153
+ action: z.ZodEnum<["buy", "forward", "allocate", "claim_reward", "vote", "dispute", "write_repository", "submit_progress", "gen_passport", "custom"]>;
154
+ host_object: z.ZodEnum<["Service", "Machine", "Arbitration", "Reward", "Repository", "Progress", "Demand", "Standalone"]>;
155
+ binding_field: z.ZodEnum<["buy_guard", "order_allocators", "Forward.guard", "submission", "guard", "write_guard", "usage_guard", "voting_guard", "ServiceGuard", "none"]>;
156
+ rule_sentence: z.ZodOptional<z.ZodString>;
157
+ failure_conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
158
+ circular_reference: z.ZodOptional<z.ZodBoolean>;
159
+ }, "strict", z.ZodTypeAny, {
160
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
161
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
162
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
163
+ rule_sentence?: string | undefined;
164
+ failure_conditions?: string[] | undefined;
165
+ circular_reference?: boolean | undefined;
166
+ }, {
167
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
168
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
169
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
170
+ rule_sentence?: string | undefined;
171
+ failure_conditions?: string[] | undefined;
172
+ circular_reference?: boolean | undefined;
173
+ }>>;
127
174
  }, "strict", z.ZodTypeAny, {
128
175
  description?: string | undefined;
129
176
  table?: {
@@ -153,6 +200,14 @@ export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
153
200
  tags?: string[] | undefined;
154
201
  onChain?: boolean | undefined;
155
202
  } | undefined;
203
+ binding_hint?: {
204
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
205
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
206
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
207
+ rule_sentence?: string | undefined;
208
+ failure_conditions?: string[] | undefined;
209
+ circular_reference?: boolean | undefined;
210
+ } | undefined;
156
211
  }, {
157
212
  description?: string | undefined;
158
213
  table?: {
@@ -182,6 +237,14 @@ export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
182
237
  tags?: string[] | undefined;
183
238
  onChain?: boolean | undefined;
184
239
  } | undefined;
240
+ binding_hint?: {
241
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
242
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
243
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
244
+ rule_sentence?: string | undefined;
245
+ failure_conditions?: string[] | undefined;
246
+ circular_reference?: boolean | undefined;
247
+ } | undefined;
185
248
  }>, {
186
249
  description?: string | undefined;
187
250
  table?: {
@@ -211,6 +274,14 @@ export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
211
274
  tags?: string[] | undefined;
212
275
  onChain?: boolean | undefined;
213
276
  } | undefined;
277
+ binding_hint?: {
278
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
279
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
280
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
281
+ rule_sentence?: string | undefined;
282
+ failure_conditions?: string[] | undefined;
283
+ circular_reference?: boolean | undefined;
284
+ } | undefined;
214
285
  }, {
215
286
  description?: string | undefined;
216
287
  table?: {
@@ -240,6 +311,14 @@ export declare const CallGuard_DataSchema: z.ZodEffects<z.ZodObject<{
240
311
  tags?: string[] | undefined;
241
312
  onChain?: boolean | undefined;
242
313
  } | undefined;
314
+ binding_hint?: {
315
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
316
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
317
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
318
+ rule_sentence?: string | undefined;
319
+ failure_conditions?: string[] | undefined;
320
+ circular_reference?: boolean | undefined;
321
+ } | undefined;
243
322
  }>;
244
323
  export declare const CallGuard_InputSchema: z.ZodObject<{
245
324
  data: z.ZodEffects<z.ZodObject<{
@@ -353,6 +432,28 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
353
432
  guards: string[];
354
433
  logic_or?: boolean | undefined;
355
434
  }>>;
435
+ binding_hint: z.ZodOptional<z.ZodObject<{
436
+ action: z.ZodEnum<["buy", "forward", "allocate", "claim_reward", "vote", "dispute", "write_repository", "submit_progress", "gen_passport", "custom"]>;
437
+ host_object: z.ZodEnum<["Service", "Machine", "Arbitration", "Reward", "Repository", "Progress", "Demand", "Standalone"]>;
438
+ binding_field: z.ZodEnum<["buy_guard", "order_allocators", "Forward.guard", "submission", "guard", "write_guard", "usage_guard", "voting_guard", "ServiceGuard", "none"]>;
439
+ rule_sentence: z.ZodOptional<z.ZodString>;
440
+ failure_conditions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
441
+ circular_reference: z.ZodOptional<z.ZodBoolean>;
442
+ }, "strict", z.ZodTypeAny, {
443
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
444
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
445
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
446
+ rule_sentence?: string | undefined;
447
+ failure_conditions?: string[] | undefined;
448
+ circular_reference?: boolean | undefined;
449
+ }, {
450
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
451
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
452
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
453
+ rule_sentence?: string | undefined;
454
+ failure_conditions?: string[] | undefined;
455
+ circular_reference?: boolean | undefined;
456
+ }>>;
356
457
  }, "strict", z.ZodTypeAny, {
357
458
  description?: string | undefined;
358
459
  table?: {
@@ -382,6 +483,14 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
382
483
  tags?: string[] | undefined;
383
484
  onChain?: boolean | undefined;
384
485
  } | undefined;
486
+ binding_hint?: {
487
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
488
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
489
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
490
+ rule_sentence?: string | undefined;
491
+ failure_conditions?: string[] | undefined;
492
+ circular_reference?: boolean | undefined;
493
+ } | undefined;
385
494
  }, {
386
495
  description?: string | undefined;
387
496
  table?: {
@@ -411,6 +520,14 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
411
520
  tags?: string[] | undefined;
412
521
  onChain?: boolean | undefined;
413
522
  } | undefined;
523
+ binding_hint?: {
524
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
525
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
526
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
527
+ rule_sentence?: string | undefined;
528
+ failure_conditions?: string[] | undefined;
529
+ circular_reference?: boolean | undefined;
530
+ } | undefined;
414
531
  }>, {
415
532
  description?: string | undefined;
416
533
  table?: {
@@ -440,6 +557,14 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
440
557
  tags?: string[] | undefined;
441
558
  onChain?: boolean | undefined;
442
559
  } | undefined;
560
+ binding_hint?: {
561
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
562
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
563
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
564
+ rule_sentence?: string | undefined;
565
+ failure_conditions?: string[] | undefined;
566
+ circular_reference?: boolean | undefined;
567
+ } | undefined;
443
568
  }, {
444
569
  description?: string | undefined;
445
570
  table?: {
@@ -469,6 +594,14 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
469
594
  tags?: string[] | undefined;
470
595
  onChain?: boolean | undefined;
471
596
  } | undefined;
597
+ binding_hint?: {
598
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
599
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
600
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
601
+ rule_sentence?: string | undefined;
602
+ failure_conditions?: string[] | undefined;
603
+ circular_reference?: boolean | undefined;
604
+ } | undefined;
472
605
  }>;
473
606
  env: z.ZodOptional<z.ZodObject<{
474
607
  account: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
@@ -534,6 +667,14 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
534
667
  tags?: string[] | undefined;
535
668
  onChain?: boolean | undefined;
536
669
  } | undefined;
670
+ binding_hint?: {
671
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
672
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
673
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
674
+ rule_sentence?: string | undefined;
675
+ failure_conditions?: string[] | undefined;
676
+ circular_reference?: boolean | undefined;
677
+ } | undefined;
537
678
  };
538
679
  env?: {
539
680
  account: string;
@@ -577,6 +718,14 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
577
718
  tags?: string[] | undefined;
578
719
  onChain?: boolean | undefined;
579
720
  } | undefined;
721
+ binding_hint?: {
722
+ action: "custom" | "gen_passport" | "buy" | "dispute" | "forward" | "allocate" | "claim_reward" | "vote" | "write_repository" | "submit_progress";
723
+ host_object: "Machine" | "Progress" | "Service" | "Arbitration" | "Demand" | "Reward" | "Repository" | "Standalone";
724
+ binding_field: "guard" | "none" | "submission" | "buy_guard" | "order_allocators" | "Forward.guard" | "write_guard" | "usage_guard" | "voting_guard" | "ServiceGuard";
725
+ rule_sentence?: string | undefined;
726
+ failure_conditions?: string[] | undefined;
727
+ circular_reference?: boolean | undefined;
728
+ } | undefined;
580
729
  };
581
730
  env?: {
582
731
  no_cache?: boolean | undefined;
@@ -1072,3 +1221,7 @@ export type CallGenPassport_Input = z.infer<typeof CallGenPassport_InputSchema>;
1072
1221
  export type Guard2File_Input = z.infer<typeof Guard2File_InputSchema>;
1073
1222
  export type Guard2File_Output = z.infer<typeof Guard2File_OutputSchema>;
1074
1223
  export type Guard2File_OutputWrapped = z.infer<typeof Guard2File_OutputWrappedSchema>;
1224
+ export type GuardBindingHintAction = z.infer<typeof GuardBindingHintActionSchema>;
1225
+ export type GuardBindingHintHostObject = z.infer<typeof GuardBindingHintHostObjectSchema>;
1226
+ export type GuardBindingHintBindingField = z.infer<typeof GuardBindingHintBindingFieldSchema>;
1227
+ export type GuardBindingHint = z.infer<typeof GuardBindingHintSchema>;
@@ -47,6 +47,54 @@ const isBoolValueType = (valueType) => {
47
47
  }
48
48
  return false;
49
49
  };
50
+ export const GuardBindingHintActionSchema = z.enum([
51
+ "buy",
52
+ "forward",
53
+ "allocate",
54
+ "claim_reward",
55
+ "vote",
56
+ "dispute",
57
+ "write_repository",
58
+ "submit_progress",
59
+ "gen_passport",
60
+ "custom",
61
+ ]).describe("Guard protected action type. Maps to IntentPuzzle.action in the puzzle model.");
62
+ export const GuardBindingHintHostObjectSchema = z.enum([
63
+ "Service",
64
+ "Machine",
65
+ "Arbitration",
66
+ "Reward",
67
+ "Repository",
68
+ "Progress",
69
+ "Demand",
70
+ "Standalone",
71
+ ]).describe("Host object type that the Guard will bind to. 'Standalone' for independent Guards (rely dependency or gen_passport).");
72
+ export const GuardBindingHintBindingFieldSchema = z.enum([
73
+ "buy_guard",
74
+ "order_allocators",
75
+ "Forward.guard",
76
+ "submission",
77
+ "guard",
78
+ "write_guard",
79
+ "usage_guard",
80
+ "voting_guard",
81
+ "ServiceGuard",
82
+ "none",
83
+ ]).describe("Binding field on the host object. 'none' for standalone Guards.");
84
+ export const GuardBindingHintSchema = z.object({
85
+ action: GuardBindingHintActionSchema
86
+ .describe("Protected action type. Example: 'buy' for Service buy_guard, 'forward' for Machine Forward.guard."),
87
+ host_object: GuardBindingHintHostObjectSchema
88
+ .describe("Host object type. Example: 'Service', 'Machine'."),
89
+ binding_field: GuardBindingHintBindingFieldSchema
90
+ .describe("Binding field. Example: 'buy_guard', 'Forward.guard'."),
91
+ rule_sentence: z.string().optional()
92
+ .describe("One-sentence description of the validation rule (human-readable). Example: 'Only the author can purchase this service'."),
93
+ failure_conditions: z.array(z.string()).optional()
94
+ .describe("List of conditions under which the Guard should FAIL. Example: ['Signer is not in allowlist','Order is already completed']."),
95
+ circular_reference: z.boolean().optional()
96
+ .describe("Whether the Guard references the Host Object itself (circular reference pattern). true=Guard queries the Host Object it binds to."),
97
+ }).strict().describe("Optional semantic hint for Guard capability system. Provides intent + binding context so the MCP server can derive GuardPuzzle, run risk assessment, and generate confirmation text. Strongly recommended: fill this field to enable puzzle_status, matched_scene, suggested_patterns, confirmation_text, and pending_questions in the response guard_advice.");
50
98
  export const CallGuard_DataSchema = z.object({
51
99
  namedNew: NamedObjectSchema.optional().describe("Name and optional tags for the new Guard object. Set 'onChain: true' to create a public on-chain identity. When using root.type='file', this field OVERRIDES namedNew in the file."),
52
100
  description: DescriptionSchema.optional().describe("Guard description. When using root.type='file', this field OVERRIDES description in the file."),
@@ -56,6 +104,8 @@ export const CallGuard_DataSchema = z.object({
56
104
  guards: z.array(NameOrAddressSchema).describe("List of dependent Guard object IDs or names."),
57
105
  logic_or: z.boolean().optional().describe("Whether to use logical OR operator."),
58
106
  }).optional().describe("All Guard objects that the new Guard object depends on. If logic_or is true, the execution result of the new Guard object is the logical OR of the execution results of all dependent Guard objects; otherwise, it is logical AND. When using root.type='file', this field OVERRIDES rely in the file."),
107
+ binding_hint: GuardBindingHintSchema.optional()
108
+ .describe("Phase 5 Guard capability hint. Provides semantic context (action + host_object + binding_field + optional rule/failure_conditions) for puzzle derivation. When provided, the response will include complete guard_advice (puzzle_status, matched_scene, suggested_patterns, confirmation_text, pending_questions). When absent, puzzle_status intent/binding dimensions are marked incomplete."),
59
109
  }).strict().refine((data) => {
60
110
  if (typeof data.root === 'object' && data.root !== null && 'type' in data.root) {
61
111
  const rootObj = data.root;