@wowok/agent-mcp 3.0.1 → 3.0.2

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 (44) hide show
  1. package/dist/intent/types.d.ts +1 -1
  2. package/dist/intent/types.js +1 -1
  3. package/dist/knowledge/event-semantics.js +1 -1
  4. package/dist/knowledge/event-semantics.spec.js +1 -1
  5. package/dist/knowledge/migration-preflight.d.ts +27 -0
  6. package/dist/knowledge/migration-preflight.js +1 -0
  7. package/dist/knowledge/template-registry.js +1 -1
  8. package/dist/monitor/MonitorLoop.js +1 -1
  9. package/dist/monitor/normalize.js +1 -1
  10. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  11. package/dist/playbooks/service-build/mode-actions.d.ts +19 -0
  12. package/dist/playbooks/service-build/mode-actions.js +1 -1
  13. package/dist/safety/confirm-gate.js +1 -1
  14. package/dist/schema/call/semantic.js +1 -1
  15. package/dist/schema/common/index.js +1 -1
  16. package/dist/schema/industry-pack/index.d.ts +42 -0
  17. package/dist/schema/industry-pack/modes.d.ts +42 -0
  18. package/dist/schema/industry-pack/modes.js +1 -1
  19. package/dist/schema/intent-radar/index.d.ts +3 -0
  20. package/dist/schema/intent-radar/index.js +1 -1
  21. package/dist/schema/local/index.js +1 -1
  22. package/dist/schema/operations.d.ts +28 -0
  23. package/dist/schema/query/bi.d.ts +89 -0
  24. package/dist/schema/query/bi.js +1 -1
  25. package/dist/schema/query/index.d.ts +48 -48
  26. package/dist/schema/query/index.js +1 -1
  27. package/dist/schema/schema-version.js +1 -1
  28. package/dist/schema-query-impl/index.js +1 -1
  29. package/dist/schemas/index.json +1 -1
  30. package/dist/schemas/industry_pack_operation.output.json +162 -6
  31. package/dist/schemas/intent_radar.output.json +2 -0
  32. package/dist/schemas/intent_radar.schema.json +1 -0
  33. package/dist/schemas/onchain_events.output.json +55 -11
  34. package/dist/schemas/onchain_events.schema.json +4 -0
  35. package/dist/schemas/onchain_table_data.output.json +41 -0
  36. package/dist/schemas/query_toolkit.output.json +183 -0
  37. package/dist/schemas/query_toolkit.schema.json +41 -0
  38. package/dist/tools/handlers/config.js +1 -1
  39. package/dist/tools/handlers/intent-radar.js +1 -1
  40. package/dist/tools/handlers/onchain.js +1 -1
  41. package/dist/tools/handlers/query.js +1 -1
  42. package/dist/tools/registry/query.js +1 -1
  43. package/dist/tools/shared.js +1 -1
  44. package/package.json +2 -2
@@ -238,6 +238,13 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
238
238
  industry: z.ZodString;
239
239
  similarity: z.ZodNumber;
240
240
  matched_traits: z.ZodArray<z.ZodString>;
241
+ location_sensitivity: z.ZodEnum<{
242
+ logistics: "logistics";
243
+ strict: "strict";
244
+ near: "near";
245
+ }>;
246
+ trust_selling_points: z.ZodArray<z.ZodString>;
247
+ build_notes: z.ZodArray<z.ZodString>;
241
248
  strategy_alignment: z.ZodOptional<z.ZodObject<{
242
249
  score: z.ZodNumber;
243
250
  matched_levers: z.ZodArray<z.ZodEnum<{
@@ -265,6 +272,13 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
265
272
  owner: z.ZodOptional<z.ZodString>;
266
273
  key_risk: z.ZodString;
267
274
  machine_nodes: z.ZodArray<z.ZodString>;
275
+ location_sensitivity: z.ZodEnum<{
276
+ logistics: "logistics";
277
+ strict: "strict";
278
+ near: "near";
279
+ }>;
280
+ trust_selling_points: z.ZodArray<z.ZodString>;
281
+ build_notes: z.ZodArray<z.ZodString>;
268
282
  similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
269
283
  evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
270
284
  version: z.ZodString;
@@ -280,6 +294,13 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
280
294
  owner: z.ZodOptional<z.ZodString>;
281
295
  key_risk: z.ZodString;
282
296
  machine_nodes: z.ZodArray<z.ZodString>;
297
+ location_sensitivity: z.ZodEnum<{
298
+ logistics: "logistics";
299
+ strict: "strict";
300
+ near: "near";
301
+ }>;
302
+ trust_selling_points: z.ZodArray<z.ZodString>;
303
+ build_notes: z.ZodArray<z.ZodString>;
283
304
  similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
284
305
  evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
285
306
  version: z.ZodString;
@@ -299,6 +320,13 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
299
320
  owner: z.ZodOptional<z.ZodString>;
300
321
  key_risk: z.ZodString;
301
322
  machine_nodes: z.ZodArray<z.ZodString>;
323
+ location_sensitivity: z.ZodEnum<{
324
+ logistics: "logistics";
325
+ strict: "strict";
326
+ near: "near";
327
+ }>;
328
+ trust_selling_points: z.ZodArray<z.ZodString>;
329
+ build_notes: z.ZodArray<z.ZodString>;
302
330
  similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
303
331
  evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
304
332
  version: z.ZodString;
@@ -317,6 +345,13 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
317
345
  owner: z.ZodOptional<z.ZodString>;
318
346
  key_risk: z.ZodString;
319
347
  machine_nodes: z.ZodArray<z.ZodString>;
348
+ location_sensitivity: z.ZodEnum<{
349
+ logistics: "logistics";
350
+ strict: "strict";
351
+ near: "near";
352
+ }>;
353
+ trust_selling_points: z.ZodArray<z.ZodString>;
354
+ build_notes: z.ZodArray<z.ZodString>;
320
355
  similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
321
356
  evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
322
357
  version: z.ZodString;
@@ -335,6 +370,13 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
335
370
  owner: z.ZodOptional<z.ZodString>;
336
371
  key_risk: z.ZodString;
337
372
  machine_nodes: z.ZodArray<z.ZodString>;
373
+ location_sensitivity: z.ZodEnum<{
374
+ logistics: "logistics";
375
+ strict: "strict";
376
+ near: "near";
377
+ }>;
378
+ trust_selling_points: z.ZodArray<z.ZodString>;
379
+ build_notes: z.ZodArray<z.ZodString>;
338
380
  similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
339
381
  evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
340
382
  version: z.ZodString;
@@ -101,6 +101,13 @@ export declare const RecommendIndustryResultSchema: z.ZodObject<{
101
101
  industry: z.ZodString;
102
102
  similarity: z.ZodNumber;
103
103
  matched_traits: z.ZodArray<z.ZodString>;
104
+ location_sensitivity: z.ZodEnum<{
105
+ logistics: "logistics";
106
+ strict: "strict";
107
+ near: "near";
108
+ }>;
109
+ trust_selling_points: z.ZodArray<z.ZodString>;
110
+ build_notes: z.ZodArray<z.ZodString>;
104
111
  strategy_alignment: z.ZodOptional<z.ZodObject<{
105
112
  score: z.ZodNumber;
106
113
  matched_levers: z.ZodArray<z.ZodEnum<{
@@ -129,6 +136,13 @@ export declare const ListModesResultSchema: z.ZodObject<{
129
136
  owner: z.ZodOptional<z.ZodString>;
130
137
  key_risk: z.ZodString;
131
138
  machine_nodes: z.ZodArray<z.ZodString>;
139
+ location_sensitivity: z.ZodEnum<{
140
+ logistics: "logistics";
141
+ strict: "strict";
142
+ near: "near";
143
+ }>;
144
+ trust_selling_points: z.ZodArray<z.ZodString>;
145
+ build_notes: z.ZodArray<z.ZodString>;
132
146
  similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
133
147
  evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
134
148
  version: z.ZodString;
@@ -144,6 +158,13 @@ export declare const ListModesResultSchema: z.ZodObject<{
144
158
  owner: z.ZodOptional<z.ZodString>;
145
159
  key_risk: z.ZodString;
146
160
  machine_nodes: z.ZodArray<z.ZodString>;
161
+ location_sensitivity: z.ZodEnum<{
162
+ logistics: "logistics";
163
+ strict: "strict";
164
+ near: "near";
165
+ }>;
166
+ trust_selling_points: z.ZodArray<z.ZodString>;
167
+ build_notes: z.ZodArray<z.ZodString>;
147
168
  similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
148
169
  evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
149
170
  version: z.ZodString;
@@ -164,6 +185,13 @@ export declare const DeriveUserModeResultSchema: z.ZodObject<{
164
185
  owner: z.ZodOptional<z.ZodString>;
165
186
  key_risk: z.ZodString;
166
187
  machine_nodes: z.ZodArray<z.ZodString>;
188
+ location_sensitivity: z.ZodEnum<{
189
+ logistics: "logistics";
190
+ strict: "strict";
191
+ near: "near";
192
+ }>;
193
+ trust_selling_points: z.ZodArray<z.ZodString>;
194
+ build_notes: z.ZodArray<z.ZodString>;
167
195
  similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
168
196
  evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
169
197
  version: z.ZodString;
@@ -183,6 +211,13 @@ export declare const EvolveUserModeResultSchema: z.ZodObject<{
183
211
  owner: z.ZodOptional<z.ZodString>;
184
212
  key_risk: z.ZodString;
185
213
  machine_nodes: z.ZodArray<z.ZodString>;
214
+ location_sensitivity: z.ZodEnum<{
215
+ logistics: "logistics";
216
+ strict: "strict";
217
+ near: "near";
218
+ }>;
219
+ trust_selling_points: z.ZodArray<z.ZodString>;
220
+ build_notes: z.ZodArray<z.ZodString>;
186
221
  similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
187
222
  evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
188
223
  version: z.ZodString;
@@ -202,6 +237,13 @@ export declare const RegisterUserModeResultSchema: z.ZodObject<{
202
237
  owner: z.ZodOptional<z.ZodString>;
203
238
  key_risk: z.ZodString;
204
239
  machine_nodes: z.ZodArray<z.ZodString>;
240
+ location_sensitivity: z.ZodEnum<{
241
+ logistics: "logistics";
242
+ strict: "strict";
243
+ near: "near";
244
+ }>;
245
+ trust_selling_points: z.ZodArray<z.ZodString>;
246
+ build_notes: z.ZodArray<z.ZodString>;
205
247
  similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
206
248
  evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
207
249
  version: z.ZodString;
@@ -1 +1 @@
1
- import{z}from'zod';export const MODE_REGISTRY_ACTIONS=['recommend_industry','list_modes','derive_user_mode','evolve_user_mode','register_user_mode','unregister_user_mode','register_custom_metric','unregister_custom_metric','register_custom_constraint','unregister_custom_constraint','list_metrics_constraints'];export const ModeRegistryFields={'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20for\x20recommend_industry\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20'+'with\x20deposit\x20and\x20damage\x20inspection\x27).\x20Falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'strategy':z['union']([z['string']()['max'](0x7d0),z['array'](z['string']()['max'](0x7d0))['max'](0xa)])['optional']()['describe']('Persona\x20strategy\x20statement(s)\x20for\x20recommend_industry\x20(e.g.\x20\x27push\x20sales\x20volume\x20first\x27\x20/\x20'+'\x27keep\x20gross\x20margin\x20>=\x2030%\x27).\x20Bridged\x20into\x20mode\x20ranking:\x20objectives\x20resolve\x20to\x20deterministic\x20'+'infrastructure\x20levers\x20(discount\x20/\x20reward\x20/\x20buy_guard\x20/\x20machine_design)\x20and\x20re-rank\x20the\x20'+'industry\x20recommendations\x20by\x20lever\x20alignment.\x20Pass\x20the\x20persona\x27s\x20strategy[]\x20entries\x20here.'),'mode_source':z['string']()['optional']()['describe']('Source\x20builtin\x20mode\x20name\x20for\x20derive_user_mode\x20(e.g.\x20\x27freelance\x27).\x20Call\x20list_modes\x20to\x20see\x20available\x20modes.'),'mode_name':z['string']()['max'](0x64)['optional']()['describe']('Mode\x20name\x20for\x20derive_user_mode\x20(new\x20mode\x20name),\x20evolve_user_mode\x20/\x20unregister_user_mode\x20(existing\x20'+'custom\x20mode),\x20register_user_mode\x20(new\x20mode\x20name).\x20Must\x20NOT\x20conflict\x20with\x20builtin\x20mode\x20names.'),'mode_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20derive_user_mode\x20/\x20register_user_mode.\x20Defaults\x20to\x20mode_name.'),'mode_changes':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Mode\x20field\x20overrides\x20for\x20derive_user_mode\x20/\x20evolve_user_mode\x20/\x20register_user_mode.\x20'+'For\x20register_user_mode,\x20REQUIRED\x20fields:\x20machine_shape\x20(non-empty\x20array\x20of\x20{name,\x20role})\x20and\x20key_risk\x20(string).\x20'+'Common\x20overrides:\x20machine_shape\x20(array\x20of\x20{name:string,\x20role:string}),\x20config_overrides\x20(per-object\x20config),\x20'+'allocator,\x20guards,\x20build_notes,\x20risk_appetite.\x20'+'R-M1-11\x20ENFORCED:\x20machine_shape\x20node\x20names\x20must\x20NOT\x20contain\x20dispute/refund/arb\x20terms.'),'mode_change_description':z['string']()['max'](0x1f4)['optional']()['describe']('Change\x20description\x20for\x20evolve_user_mode\x20(recorded\x20in\x20evolution\x20history).'),'mode_bump_version':z['boolean']()['optional']()['describe']('Whether\x20evolve_user_mode\x20bumps\x20the\x20patch\x20version\x20(default\x20true:\x20v1.0\x20→\x20v1.1).'),'metric_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20metric\x20ID\x20for\x20register_custom_metric\x20(e.g.\x20\x27seasonality_risk\x27).'),'metric_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_metric.'),'metric_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_metric.'),'metric_type':z['enum'](['risk','benefit'])['optional']()['describe']('Metric\x20type\x20for\x20register_custom_metric:\x20\x27risk\x27\x20(negative)\x20or\x20\x27benefit\x27\x20(positive).'),'metric_scale':z['enum'](['level','numeric','percentage'])['optional']()['describe']('Metric\x20scale\x20for\x20register_custom_metric:\x20\x27level\x27\x20(high/medium/low),\x20\x27numeric\x27,\x20or\x20\x27percentage\x27.'),'metric_weight':z['number']()['min'](0x0)['max'](0xa)['optional']()['describe']('Metric\x20weight\x20for\x20register_custom_metric\x20(default\x201.0).'),'constraint_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20constraint\x20ID\x20for\x20register_custom_constraint.'),'constraint_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_constraint.'),'constraint_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_constraint.'),'constraint_rule':z['discriminatedUnion']('type',[z['object']({'type':z['literal']('capability_required'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('capability_forbidden'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('numeric_limit'),'field':z['string'](),'max':z['number']()['optional'](),'min':z['number']()['optional']()})['strict'](),z['object']({'type':z['literal']('condition_required'),'condition':z['string'](),'ai_evaluated':z['literal'](!![])})['strict']()])['optional']()['describe']('Constraint\x20rule\x20for\x20register_custom_constraint.\x204\x20types:\x20'+'capability_required/capability_forbidden\x20(capability_id),\x20numeric_limit\x20(field\x20+\x20max/min),\x20'+'condition_required\x20(natural-language\x20condition,\x20AI-evaluated).'),'constraint_severity':z['enum'](['hard','soft'])['optional']()['describe']('Constraint\x20severity\x20for\x20register_custom_constraint:\x20\x27hard\x27\x20blocks\x20applyTemplate\x20on\x20violation;\x20\x27soft\x27\x20only\x20warns\x20(default\x20\x27soft\x27).'),'constraint_on_violation':z['enum'](['block','warn','log'])['optional']()['describe']('Violation\x20action\x20for\x20register_custom_constraint\x20(default\x20\x27warn\x27).'),'metric_type_filter':z['enum'](['risk','benefit'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20metric\x20type.'),'scope_filter':z['enum'](['builtin','custom'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20scope\x20(builtin\x20or\x20custom).')};const RecommendedIndustryItemSchema=z['object']({'industry':z['string']()['describe']('Recommended\x20builtin\x20industry\x20mode\x20name.'),'similarity':z['number']()['describe']('Trait\x20similarity\x200-1\x20(10-dim\x20industry\x20trait\x20match).'),'matched_traits':z['array'](z['string']())['describe']('Trait\x20dimensions\x20that\x20matched.'),'strategy_alignment':z['object']({'score':z['number']()['describe']('Lever\x20alignment\x200-1\x20(matched\x20/\x20required\x20levers).'),'matched_levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design']))['describe']('Required\x20levers\x20this\x20mode\x20supports.'),'missing_levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design']))['describe']('Required\x20levers\x20this\x20mode\x20lacks.')})['optional']()['describe']('Present\x20only\x20when\x20a\x20strategy\x20was\x20provided:\x20lever\x20alignment\x20of\x20the\x20industry\x20mode.')})['strict']();export const RecommendIndustryResultSchema=z['object']({'action':z['literal']('recommend_industry'),'intent':z['string']()['describe']('The\x20intent\x20text\x20used\x20for\x20inference.'),'inferred_traits':z['record'](z['string'](),z['unknown']())['describe']('10-dim\x20industry\x20traits\x20inferred\x20from\x20intent.'),'inference_confidence':z['number']()['describe']('Inference\x20confidence\x200-1\x20(matched\x20trait\x20count\x20/\x2010).'),'matched_keywords':z['array'](z['string']())['describe']('Keywords\x20that\x20triggered\x20trait\x20inference.'),'strategy_intents':z['array'](z['object']({'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'metrics':z['array'](z['string']()),'levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design'])),'target':z['string']()})['strict']())['describe']('Strategy\x20intents\x20resolved\x20from\x20the\x20provided\x20persona\x20strategy\x20statements\x20(empty\x20if\x20none\x20matched).'),'lever_suggestions':z['array'](z['object']({'lever':z['enum'](['discount','reward','buy_guard','machine_design']),'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'action':z['string']()['describe']('Deterministic\x20on-chain\x20action\x20that\x20pulls\x20the\x20lever.'),'target':z['string']()})['strict']())['describe']('Concrete\x20lever\x20suggestions\x20for\x20the\x20resolved\x20strategy\x20intents.'),'recommendations':z['array'](RecommendedIndustryItemSchema)['describe']('Top-3\x20similar\x20industries\x20(re-ranked\x20by\x20lever\x20alignment\x20when\x20strategy\x20provided).'),'hint':z['string']()['describe']('How\x20to\x20apply\x20the\x20recommendation\x20(pass\x20the\x20industry\x20to\x20analyze_intent\x20/\x20merchant_guide\x20via\x20project_industry).')})['strict']();const ModeSummarySchema=z['object']({'name':z['string'](),'display_name':z['string'](),'version':z['string'](),'derived_from':z['string']()['nullable']()['describe']('Source\x20builtin\x20mode\x20(derive_user_mode)\x20or\x20null.'),'owner':z['string']()['optional']()['describe']('Mode\x20owner\x20(custom\x20modes\x20only).'),'key_risk':z['string'](),'machine_nodes':z['array'](z['string']())['describe']('Machine\x20shape\x20node\x20names.'),'similar_industries':z['array'](z['string']())['optional'](),'evolution_history':z['array'](z['object']({'version':z['string'](),'changed_at':z['number'](),'changes':z['array'](z['string']())})['strict']())['optional']()})['strict']();export const ListModesResultSchema=z['object']({'action':z['literal']('list_modes'),'builtin_modes':z['array'](ModeSummarySchema)['describe']('Builtin\x20industry\x20modes\x20(use\x20name\x20as\x20project_industry).'),'user_modes':z['array'](ModeSummarySchema)['describe']('Caller\x27s\x20custom\x20modes\x20(derive/evolve/register).'),'owner':z['string']()['describe']('Owner\x20key\x20for\x20custom\x20modes\x20(local\x20single-user).'),'hint':z['string']()})['strict']();export const DeriveUserModeResultSchema=z['object']({'action':z['literal']('derive_user_mode'),'mode':ModeSummarySchema['describe']('The\x20derived\x20(and\x20registered)\x20custom\x20mode.'),'hint':z['string']()})['strict']();export const EvolveUserModeResultSchema=z['object']({'action':z['literal']('evolve_user_mode'),'mode':ModeSummarySchema['describe']('The\x20evolved\x20custom\x20mode\x20(version\x20bumped).'),'hint':z['string']()})['strict']();export const RegisterUserModeResultSchema=z['object']({'action':z['literal']('register_user_mode'),'mode':ModeSummarySchema['describe']('The\x20registered\x20fully-custom\x20mode.'),'hint':z['string']()})['strict']();export const UnregisterUserModeResultSchema=z['object']({'action':z['literal']('unregister_user_mode'),'removed':z['literal'](!![]),'mode_name':z['string']()})['strict']();const MetricInfoSchema=z['object']({'metric_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'type':z['enum'](['risk','benefit']),'scale':z['enum'](['level','numeric','percentage']),'weight':z['number'](),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict']();export const RegisterCustomMetricResultSchema=z['object']({'action':z['literal']('register_custom_metric'),'metric':MetricInfoSchema['describe']('The\x20registered\x20custom\x20metric\x20(globally\x20effective).'),'hint':z['string']()})['strict']();export const UnregisterCustomMetricResultSchema=z['object']({'action':z['literal']('unregister_custom_metric'),'removed':z['literal'](!![]),'metric_id':z['string']()})['strict']();const ConstraintInfoSchema=z['object']({'constraint_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'rule':z['record'](z['string'](),z['unknown']())['describe']('Constraint\x20rule\x20(4\x20types\x20—\x20see\x20constraint_rule\x20input).'),'severity':z['enum'](['hard','soft']),'on_violation':z['enum'](['block','warn','log']),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict']();export const RegisterCustomConstraintResultSchema=z['object']({'action':z['literal']('register_custom_constraint'),'constraint':ConstraintInfoSchema['describe']('The\x20registered\x20custom\x20constraint.'),'hint':z['string']()})['strict']();export const UnregisterCustomConstraintResultSchema=z['object']({'action':z['literal']('unregister_custom_constraint'),'removed':z['literal'](!![]),'constraint_id':z['string']()})['strict']();export const ListMetricsConstraintsResultSchema=z['object']({'action':z['literal']('list_metrics_constraints'),'metrics':z['array'](MetricInfoSchema),'constraints':z['array'](ConstraintInfoSchema),'hint':z['string']()})['strict']();
1
+ import{z}from'zod';export const MODE_REGISTRY_ACTIONS=['recommend_industry','list_modes','derive_user_mode','evolve_user_mode','register_user_mode','unregister_user_mode','register_custom_metric','unregister_custom_metric','register_custom_constraint','unregister_custom_constraint','list_metrics_constraints'];export const ModeRegistryFields={'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20for\x20recommend_industry\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20'+'with\x20deposit\x20and\x20damage\x20inspection\x27).\x20Falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'strategy':z['union']([z['string']()['max'](0x7d0),z['array'](z['string']()['max'](0x7d0))['max'](0xa)])['optional']()['describe']('Persona\x20strategy\x20statement(s)\x20for\x20recommend_industry\x20(e.g.\x20\x27push\x20sales\x20volume\x20first\x27\x20/\x20'+'\x27keep\x20gross\x20margin\x20>=\x2030%\x27).\x20Bridged\x20into\x20mode\x20ranking:\x20objectives\x20resolve\x20to\x20deterministic\x20'+'infrastructure\x20levers\x20(discount\x20/\x20reward\x20/\x20buy_guard\x20/\x20machine_design)\x20and\x20re-rank\x20the\x20'+'industry\x20recommendations\x20by\x20lever\x20alignment.\x20Pass\x20the\x20persona\x27s\x20strategy[]\x20entries\x20here.'),'mode_source':z['string']()['optional']()['describe']('Source\x20builtin\x20mode\x20name\x20for\x20derive_user_mode\x20(e.g.\x20\x27freelance\x27).\x20Call\x20list_modes\x20to\x20see\x20available\x20modes.'),'mode_name':z['string']()['max'](0x64)['optional']()['describe']('Mode\x20name\x20for\x20derive_user_mode\x20(new\x20mode\x20name),\x20evolve_user_mode\x20/\x20unregister_user_mode\x20(existing\x20'+'custom\x20mode),\x20register_user_mode\x20(new\x20mode\x20name).\x20Must\x20NOT\x20conflict\x20with\x20builtin\x20mode\x20names.'),'mode_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20derive_user_mode\x20/\x20register_user_mode.\x20Defaults\x20to\x20mode_name.'),'mode_changes':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Mode\x20field\x20overrides\x20for\x20derive_user_mode\x20/\x20evolve_user_mode\x20/\x20register_user_mode.\x20'+'For\x20register_user_mode,\x20REQUIRED\x20fields:\x20machine_shape\x20(non-empty\x20array\x20of\x20{name,\x20role})\x20and\x20key_risk\x20(string).\x20'+'Common\x20overrides:\x20machine_shape\x20(array\x20of\x20{name:string,\x20role:string}),\x20config_overrides\x20(per-object\x20config),\x20'+'allocator,\x20guards,\x20build_notes,\x20risk_appetite.\x20'+'R-M1-11\x20ENFORCED:\x20machine_shape\x20node\x20names\x20must\x20NOT\x20contain\x20dispute/refund/arb\x20terms.'),'mode_change_description':z['string']()['max'](0x1f4)['optional']()['describe']('Change\x20description\x20for\x20evolve_user_mode\x20(recorded\x20in\x20evolution\x20history).'),'mode_bump_version':z['boolean']()['optional']()['describe']('Whether\x20evolve_user_mode\x20bumps\x20the\x20patch\x20version\x20(default\x20true:\x20v1.0\x20→\x20v1.1).'),'metric_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20metric\x20ID\x20for\x20register_custom_metric\x20(e.g.\x20\x27seasonality_risk\x27).'),'metric_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_metric.'),'metric_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_metric.'),'metric_type':z['enum'](['risk','benefit'])['optional']()['describe']('Metric\x20type\x20for\x20register_custom_metric:\x20\x27risk\x27\x20(negative)\x20or\x20\x27benefit\x27\x20(positive).'),'metric_scale':z['enum'](['level','numeric','percentage'])['optional']()['describe']('Metric\x20scale\x20for\x20register_custom_metric:\x20\x27level\x27\x20(high/medium/low),\x20\x27numeric\x27,\x20or\x20\x27percentage\x27.'),'metric_weight':z['number']()['min'](0x0)['max'](0xa)['optional']()['describe']('Metric\x20weight\x20for\x20register_custom_metric\x20(default\x201.0).'),'constraint_id':z['string']()['max'](0x64)['optional']()['describe']('Unique\x20constraint\x20ID\x20for\x20register_custom_constraint.'),'constraint_display_name':z['string']()['max'](0xc8)['optional']()['describe']('Display\x20name\x20for\x20register_custom_constraint.'),'constraint_description':z['string']()['max'](0x3e8)['optional']()['describe']('Description\x20for\x20register_custom_constraint.'),'constraint_rule':z['discriminatedUnion']('type',[z['object']({'type':z['literal']('capability_required'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('capability_forbidden'),'capability_id':z['string']()})['strict'](),z['object']({'type':z['literal']('numeric_limit'),'field':z['string'](),'max':z['number']()['optional'](),'min':z['number']()['optional']()})['strict'](),z['object']({'type':z['literal']('condition_required'),'condition':z['string'](),'ai_evaluated':z['literal'](!![])})['strict']()])['optional']()['describe']('Constraint\x20rule\x20for\x20register_custom_constraint.\x204\x20types:\x20'+'capability_required/capability_forbidden\x20(capability_id),\x20numeric_limit\x20(field\x20+\x20max/min),\x20'+'condition_required\x20(natural-language\x20condition,\x20AI-evaluated).'),'constraint_severity':z['enum'](['hard','soft'])['optional']()['describe']('Constraint\x20severity\x20for\x20register_custom_constraint:\x20\x27hard\x27\x20blocks\x20applyTemplate\x20on\x20violation;\x20\x27soft\x27\x20only\x20warns\x20(default\x20\x27soft\x27).'),'constraint_on_violation':z['enum'](['block','warn','log'])['optional']()['describe']('Violation\x20action\x20for\x20register_custom_constraint\x20(default\x20\x27warn\x27).'),'metric_type_filter':z['enum'](['risk','benefit'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20metric\x20type.'),'scope_filter':z['enum'](['builtin','custom'])['optional']()['describe']('Filter\x20list_metrics_constraints\x20by\x20scope\x20(builtin\x20or\x20custom).')};const RecommendedIndustryItemSchema=z['object']({'industry':z['string']()['describe']('Recommended\x20builtin\x20industry\x20mode\x20name.'),'similarity':z['number']()['describe']('Trait\x20similarity\x200-1\x20(10-dim\x20industry\x20trait\x20match).'),'matched_traits':z['array'](z['string']())['describe']('Trait\x20dimensions\x20that\x20matched.'),'location_sensitivity':z['enum'](['strict','near','logistics'])['describe']('How\x20location\x20gates\x20the\x20service\x20(K3\x2010\x20§5\x20D3):\x20\x27strict\x27\x20=\x20in-person/local\x20service,\x20'+'Service.location\x20MUST\x20match\x20the\x20demand\x20area;\x20\x27near\x27\x20=\x20digital/global\x20service,\x20location\x20is\x20'+'a\x20service\x20region;\x20\x27logistics\x27\x20=\x20physical\x20shipping,\x20location\x20is\x20a\x20delivery\x20region.\x20'+'Non-logistics\x20services\x20MUST\x20set\x20a\x20correct\x20Service.location\x20before\x20publish.'),'trust_selling_points':z['array'](z['string']())['describe']('Trust\x20selling\x20points\x20to\x20emphasize\x20in\x20the\x20service\x20description\x20(expert\x20description-guidance).'),'build_notes':z['array'](z['string']())['describe']('Build\x20notes\x20/\x20caveats\x20the\x20description\x20should\x20preempt\x20(expert\x20description-guidance).'),'strategy_alignment':z['object']({'score':z['number']()['describe']('Lever\x20alignment\x200-1\x20(matched\x20/\x20required\x20levers).'),'matched_levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design']))['describe']('Required\x20levers\x20this\x20mode\x20supports.'),'missing_levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design']))['describe']('Required\x20levers\x20this\x20mode\x20lacks.')})['optional']()['describe']('Present\x20only\x20when\x20a\x20strategy\x20was\x20provided:\x20lever\x20alignment\x20of\x20the\x20industry\x20mode.')})['strict']();export const RecommendIndustryResultSchema=z['object']({'action':z['literal']('recommend_industry'),'intent':z['string']()['describe']('The\x20intent\x20text\x20used\x20for\x20inference.'),'inferred_traits':z['record'](z['string'](),z['unknown']())['describe']('10-dim\x20industry\x20traits\x20inferred\x20from\x20intent.'),'inference_confidence':z['number']()['describe']('Inference\x20confidence\x200-1\x20(matched\x20trait\x20count\x20/\x2010).'),'matched_keywords':z['array'](z['string']())['describe']('Keywords\x20that\x20triggered\x20trait\x20inference.'),'strategy_intents':z['array'](z['object']({'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'metrics':z['array'](z['string']()),'levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design'])),'target':z['string']()})['strict']())['describe']('Strategy\x20intents\x20resolved\x20from\x20the\x20provided\x20persona\x20strategy\x20statements\x20(empty\x20if\x20none\x20matched).'),'lever_suggestions':z['array'](z['object']({'lever':z['enum'](['discount','reward','buy_guard','machine_design']),'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'action':z['string']()['describe']('Deterministic\x20on-chain\x20action\x20that\x20pulls\x20the\x20lever.'),'target':z['string']()})['strict']())['describe']('Concrete\x20lever\x20suggestions\x20for\x20the\x20resolved\x20strategy\x20intents.'),'recommendations':z['array'](RecommendedIndustryItemSchema)['describe']('Top-3\x20similar\x20industries\x20(re-ranked\x20by\x20lever\x20alignment\x20when\x20strategy\x20provided).'),'hint':z['string']()['describe']('How\x20to\x20apply\x20the\x20recommendation\x20(pass\x20the\x20industry\x20to\x20analyze_intent\x20/\x20merchant_guide\x20via\x20project_industry).')})['strict']();const ModeSummarySchema=z['object']({'name':z['string'](),'display_name':z['string'](),'version':z['string'](),'derived_from':z['string']()['nullable']()['describe']('Source\x20builtin\x20mode\x20(derive_user_mode)\x20or\x20null.'),'owner':z['string']()['optional']()['describe']('Mode\x20owner\x20(custom\x20modes\x20only).'),'key_risk':z['string'](),'machine_nodes':z['array'](z['string']())['describe']('Machine\x20shape\x20node\x20names.'),'location_sensitivity':z['enum'](['strict','near','logistics'])['describe']('Location\x20gate\x20for\x20this\x20mode:\x20\x27strict\x27\x20(in-person,\x20must\x20match\x20service\x20area),\x20'+'\x27near\x27\x20(digital/global,\x20service\x20region),\x20\x27logistics\x27\x20(shipping,\x20delivery\x20region).'),'trust_selling_points':z['array'](z['string']())['describe']('Trust\x20selling\x20points\x20to\x20emphasize\x20in\x20the\x20service\x20description\x20(expert\x20description-guidance).'),'build_notes':z['array'](z['string']())['describe']('Build\x20notes\x20/\x20caveats\x20the\x20description\x20should\x20preempt\x20(expert\x20description-guidance).'),'similar_industries':z['array'](z['string']())['optional'](),'evolution_history':z['array'](z['object']({'version':z['string'](),'changed_at':z['number'](),'changes':z['array'](z['string']())})['strict']())['optional']()})['strict']();export const ListModesResultSchema=z['object']({'action':z['literal']('list_modes'),'builtin_modes':z['array'](ModeSummarySchema)['describe']('Builtin\x20industry\x20modes\x20(use\x20name\x20as\x20project_industry).'),'user_modes':z['array'](ModeSummarySchema)['describe']('Caller\x27s\x20custom\x20modes\x20(derive/evolve/register).'),'owner':z['string']()['describe']('Owner\x20key\x20for\x20custom\x20modes\x20(local\x20single-user).'),'hint':z['string']()})['strict']();export const DeriveUserModeResultSchema=z['object']({'action':z['literal']('derive_user_mode'),'mode':ModeSummarySchema['describe']('The\x20derived\x20(and\x20registered)\x20custom\x20mode.'),'hint':z['string']()})['strict']();export const EvolveUserModeResultSchema=z['object']({'action':z['literal']('evolve_user_mode'),'mode':ModeSummarySchema['describe']('The\x20evolved\x20custom\x20mode\x20(version\x20bumped).'),'hint':z['string']()})['strict']();export const RegisterUserModeResultSchema=z['object']({'action':z['literal']('register_user_mode'),'mode':ModeSummarySchema['describe']('The\x20registered\x20fully-custom\x20mode.'),'hint':z['string']()})['strict']();export const UnregisterUserModeResultSchema=z['object']({'action':z['literal']('unregister_user_mode'),'removed':z['literal'](!![]),'mode_name':z['string']()})['strict']();const MetricInfoSchema=z['object']({'metric_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'type':z['enum'](['risk','benefit']),'scale':z['enum'](['level','numeric','percentage']),'weight':z['number'](),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict']();export const RegisterCustomMetricResultSchema=z['object']({'action':z['literal']('register_custom_metric'),'metric':MetricInfoSchema['describe']('The\x20registered\x20custom\x20metric\x20(globally\x20effective).'),'hint':z['string']()})['strict']();export const UnregisterCustomMetricResultSchema=z['object']({'action':z['literal']('unregister_custom_metric'),'removed':z['literal'](!![]),'metric_id':z['string']()})['strict']();const ConstraintInfoSchema=z['object']({'constraint_id':z['string'](),'display_name':z['string'](),'description':z['string'](),'rule':z['record'](z['string'](),z['unknown']())['describe']('Constraint\x20rule\x20(4\x20types\x20—\x20see\x20constraint_rule\x20input).'),'severity':z['enum'](['hard','soft']),'on_violation':z['enum'](['block','warn','log']),'scope':z['enum'](['builtin','custom']),'owner':z['string']()['optional']()})['strict']();export const RegisterCustomConstraintResultSchema=z['object']({'action':z['literal']('register_custom_constraint'),'constraint':ConstraintInfoSchema['describe']('The\x20registered\x20custom\x20constraint.'),'hint':z['string']()})['strict']();export const UnregisterCustomConstraintResultSchema=z['object']({'action':z['literal']('unregister_custom_constraint'),'removed':z['literal'](!![]),'constraint_id':z['string']()})['strict']();export const ListMetricsConstraintsResultSchema=z['object']({'action':z['literal']('list_metrics_constraints'),'metrics':z['array'](MetricInfoSchema),'constraints':z['array'](ConstraintInfoSchema),'hint':z['string']()})['strict']();
@@ -27,6 +27,7 @@ export declare const IntentRadarInputSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
27
27
  DemandFeedbackEvent: "DemandFeedbackEvent";
28
28
  ProgressEvent: "ProgressEvent";
29
29
  NewEntityEvent: "NewEntityEvent";
30
+ ArbitrationEvent: "ArbitrationEvent";
30
31
  }>>>;
31
32
  }, z.core.$strict>, z.ZodObject<{
32
33
  action: z.ZodLiteral<"list">;
@@ -86,6 +87,7 @@ export declare const IntentRadarOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObje
86
87
  DemandFeedbackEvent: "DemandFeedbackEvent";
87
88
  ProgressEvent: "ProgressEvent";
88
89
  NewEntityEvent: "NewEntityEvent";
90
+ ArbitrationEvent: "ArbitrationEvent";
89
91
  }>>;
90
92
  created_at: z.ZodNumber;
91
93
  updated_at: z.ZodNumber;
@@ -131,6 +133,7 @@ export declare const IntentRadarOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObje
131
133
  DemandFeedbackEvent: "DemandFeedbackEvent";
132
134
  ProgressEvent: "ProgressEvent";
133
135
  NewEntityEvent: "NewEntityEvent";
136
+ ArbitrationEvent: "ArbitrationEvent";
134
137
  }>>;
135
138
  created_at: z.ZodNumber;
136
139
  updated_at: z.ZodNumber;
@@ -1 +1 @@
1
- import{z}from'zod';const RoleEnum=z['enum'](['merchant','customer','prospect','supplier','collaborator','arbitrator']),IndustryScenarioEnum=z['enum'](['freelance','rental','education','travel','subscription','retail','general','custom']),TargetTypeEnum=z['enum'](['NewOrderEvent','ProgressEvent','DemandPresentEvent','DemandFeedbackEvent','DemandChangedEvent','ServiceEvent','NewEntityEvent','ArbEvent','VoteEvent','FeedbackEvent','AllocationEvent','TreasuryEvent','RewardClaimEvent','RewardFundEvent','NewPaymentEvent']),IntentRecordSchema=z['object']({'id':z['string'](),'intent':z['string'](),'account':z['string']()['optional'](),'role':RoleEnum['optional'](),'industries':z['array'](IndustryScenarioEnum),'keywords':z['array'](z['string']()),'target_types':z['array'](TargetTypeEnum),'created_at':z['number'](),'updated_at':z['number']()})['strict'](),IntentEventHitSchema=z['object']({'event_type':z['string'](),'event_id':z['string'](),'related_objects':z['array'](z['string']()),'business_meaning':z['string'](),'score':z['number'](),'matched_industries':z['array'](z['string']()),'matched_keywords':z['array'](z['string']()),'event':z['record'](z['string'](),z['unknown']())})['strict'](),IntentMatchResultSchema=z['object']({'intent_id':z['string'](),'intent':z['string'](),'hits':z['array'](IntentEventHitSchema),'scanned':z['number']()})['strict']();export const IntentRadarInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('save'),'intent':z['string']()['describe']('Free-form\x20business\x20intent,\x20e.g.\x20\x27find\x20subscription\x20services\x20in\x20Shanghai\x27.'),'account':z['string']()['optional']()['describe']('Bound\x20account;\x20omit\x20for\x20a\x20system-level\x20intent.'),'role':RoleEnum['optional'](),'target_types':z['array'](TargetTypeEnum)['optional']()['describe']('Event\x20types\x20to\x20watch;\x20empty\x20=\x20all.')})['strict'](),z['object']({'action':z['literal']('list'),'account':z['string']()['optional']()['describe']('Filter\x20by\x20bound\x20account;\x20omit\x20for\x20all.')})['strict'](),z['object']({'action':z['literal']('remove'),'id':z['string']()['describe']('Intent\x20id\x20to\x20delete.')})['strict'](),z['object']({'action':z['literal']('match'),'intent_id':z['string']()['optional']()['describe']('Match\x20a\x20single\x20intent;\x20omit\x20to\x20match\x20all\x20intents.'),'account':z['string']()['optional']()['describe']('Filter\x20intents\x20by\x20account.'),'events':z['array'](z['record'](z['string'](),z['unknown']()))['optional']()['describe']('Events\x20to\x20score\x20(from\x20onchain_events).\x20Omit\x20to\x20auto-pull\x20recent\x20events.'),'network':z['enum'](['mainnet','testnet'])['optional'](),'limit':z['number']()['int']()['min'](0x1)['max'](0x64)['optional']()['describe']('Max\x20events\x20to\x20auto-pull\x20when\x20`events`\x20is\x20omitted.')})['strict']()]);export const IntentRadarOutputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('save'),'intent':IntentRecordSchema})['strict'](),z['object']({'action':z['literal']('list'),'intents':z['array'](IntentRecordSchema)})['strict'](),z['object']({'action':z['literal']('remove'),'removed':z['boolean']()})['strict'](),z['object']({'action':z['literal']('match'),'results':z['array'](IntentMatchResultSchema)})['strict']()]);
1
+ import{z}from'zod';const RoleEnum=z['enum'](['merchant','customer','prospect','supplier','collaborator','arbitrator']),IndustryScenarioEnum=z['enum'](['freelance','rental','education','travel','subscription','retail','general','custom']),TargetTypeEnum=z['enum'](['NewOrderEvent','ProgressEvent','DemandPresentEvent','DemandFeedbackEvent','DemandChangedEvent','ServiceEvent','ArbitrationEvent','NewEntityEvent','ArbEvent','VoteEvent','FeedbackEvent','AllocationEvent','TreasuryEvent','RewardClaimEvent','RewardFundEvent','NewPaymentEvent']),IntentRecordSchema=z['object']({'id':z['string'](),'intent':z['string'](),'account':z['string']()['optional'](),'role':RoleEnum['optional'](),'industries':z['array'](IndustryScenarioEnum),'keywords':z['array'](z['string']()),'target_types':z['array'](TargetTypeEnum),'created_at':z['number'](),'updated_at':z['number']()})['strict'](),IntentEventHitSchema=z['object']({'event_type':z['string'](),'event_id':z['string'](),'related_objects':z['array'](z['string']()),'business_meaning':z['string'](),'score':z['number'](),'matched_industries':z['array'](z['string']()),'matched_keywords':z['array'](z['string']()),'event':z['record'](z['string'](),z['unknown']())})['strict'](),IntentMatchResultSchema=z['object']({'intent_id':z['string'](),'intent':z['string'](),'hits':z['array'](IntentEventHitSchema),'scanned':z['number']()})['strict']();export const IntentRadarInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('save'),'intent':z['string']()['describe']('Free-form\x20business\x20intent,\x20e.g.\x20\x27find\x20subscription\x20services\x20in\x20Shanghai\x27.'),'account':z['string']()['optional']()['describe']('Bound\x20account;\x20omit\x20for\x20a\x20system-level\x20intent.'),'role':RoleEnum['optional'](),'target_types':z['array'](TargetTypeEnum)['optional']()['describe']('Event\x20types\x20to\x20watch;\x20empty\x20=\x20all.')})['strict'](),z['object']({'action':z['literal']('list'),'account':z['string']()['optional']()['describe']('Filter\x20by\x20bound\x20account;\x20omit\x20for\x20all.')})['strict'](),z['object']({'action':z['literal']('remove'),'id':z['string']()['describe']('Intent\x20id\x20to\x20delete.')})['strict'](),z['object']({'action':z['literal']('match'),'intent_id':z['string']()['optional']()['describe']('Match\x20a\x20single\x20intent;\x20omit\x20to\x20match\x20all\x20intents.'),'account':z['string']()['optional']()['describe']('Filter\x20intents\x20by\x20account.'),'events':z['array'](z['record'](z['string'](),z['unknown']()))['optional']()['describe']('Events\x20to\x20score\x20(from\x20onchain_events).\x20Omit\x20to\x20auto-pull\x20recent\x20events.'),'network':z['enum'](['mainnet','testnet'])['optional'](),'limit':z['number']()['int']()['min'](0x1)['max'](0x64)['optional']()['describe']('Max\x20events\x20to\x20auto-pull\x20when\x20`events`\x20is\x20omitted.')})['strict']()]);export const IntentRadarOutputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('save'),'intent':IntentRecordSchema})['strict'](),z['object']({'action':z['literal']('list'),'intents':z['array'](IntentRecordSchema)})['strict'](),z['object']({'action':z['literal']('remove'),'removed':z['boolean']()})['strict'](),z['object']({'action':z['literal']('match'),'results':z['array'](IntentMatchResultSchema)})['strict']()]);