@wowok/agent-mcp 3.0.1 → 3.0.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 (283) hide show
  1. package/LICENSE +0 -3
  2. package/dist/harness/recover.js +1 -1
  3. package/dist/index.d.ts +2 -2
  4. package/dist/index.js +1 -1
  5. package/dist/intent/types.d.ts +1 -1
  6. package/dist/intent/types.js +1 -1
  7. package/dist/knowledge/account-marks.js +1 -1
  8. package/dist/knowledge/arbitration-risk.js +1 -1
  9. package/dist/knowledge/event-semantics.js +1 -1
  10. package/dist/knowledge/event-semantics.spec.js +1 -1
  11. package/dist/knowledge/flywheel-loop.d.ts +4 -52
  12. package/dist/knowledge/flywheel-loop.js +1 -1
  13. package/dist/knowledge/guard-lint.js +1 -1
  14. package/dist/knowledge/index.d.ts +2 -225
  15. package/dist/knowledge/index.js +1 -1
  16. package/dist/knowledge/industry-registry.js +1 -1
  17. package/dist/knowledge/machine-risk.js +1 -1
  18. package/dist/knowledge/machine-translation.js +1 -1
  19. package/dist/knowledge/migration-preflight.d.ts +27 -0
  20. package/dist/knowledge/migration-preflight.js +1 -0
  21. package/dist/knowledge/onchain-constants.js +1 -1
  22. package/dist/knowledge/order-ledger.d.ts +2 -2
  23. package/dist/knowledge/order-ledger.js +1 -1
  24. package/dist/knowledge/order-puzzle.d.ts +4 -4
  25. package/dist/knowledge/order-puzzle.js +1 -1
  26. package/dist/knowledge/order-risk.d.ts +1 -0
  27. package/dist/knowledge/order-risk.js +1 -1
  28. package/dist/knowledge/order-templates.d.ts +1 -1
  29. package/dist/knowledge/order-templates.js +1 -1
  30. package/dist/knowledge/safety-rules.js +1 -1
  31. package/dist/knowledge/service-ledger.js +1 -1
  32. package/dist/knowledge/service-risk.js +1 -1
  33. package/dist/knowledge/template-registry.js +1 -1
  34. package/dist/knowledge/tools-reference.js +1 -1
  35. package/dist/knowledge/workspace-lists.js +1 -1
  36. package/dist/monitor/MonitorLoop.js +1 -1
  37. package/dist/monitor/normalize.js +1 -1
  38. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  39. package/dist/playbooks/service-build/context-assembly.d.ts +3 -1
  40. package/dist/playbooks/service-build/context-assembly.js +1 -1
  41. package/dist/playbooks/service-build/machine-nodes.d.ts +2 -0
  42. package/dist/playbooks/service-build/machine-nodes.js +1 -1
  43. package/dist/playbooks/service-build/machine-panorama.d.ts +7 -0
  44. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  45. package/dist/playbooks/service-build/mode-actions.d.ts +19 -0
  46. package/dist/playbooks/service-build/mode-actions.js +1 -1
  47. package/dist/review/machine.js +1 -1
  48. package/dist/safety/confirm-gate.js +1 -1
  49. package/dist/schema/call/base.d.ts +12 -3
  50. package/dist/schema/call/base.js +1 -1
  51. package/dist/schema/call/bridge.d.ts +4 -0
  52. package/dist/schema/call/bridge.js +1 -1
  53. package/dist/schema/call/error-codes.d.ts +2 -0
  54. package/dist/schema/call/error-codes.js +1 -0
  55. package/dist/schema/call/guard.d.ts +4 -4
  56. package/dist/schema/call/semantic.d.ts +9 -1
  57. package/dist/schema/call/semantic.js +1 -1
  58. package/dist/schema/common/index.js +1 -1
  59. package/dist/schema/goal/index.d.ts +3 -3
  60. package/dist/schema/goal/planning.d.ts +2 -2
  61. package/dist/schema/industry-pack/index.d.ts +46 -4
  62. package/dist/schema/industry-pack/modes.d.ts +46 -4
  63. package/dist/schema/industry-pack/modes.js +1 -1
  64. package/dist/schema/intent-radar/index.d.ts +3 -0
  65. package/dist/schema/intent-radar/index.js +1 -1
  66. package/dist/schema/local/index.d.ts +558 -0
  67. package/dist/schema/local/index.js +1 -1
  68. package/dist/schema/messenger/index.d.ts +25 -25
  69. package/dist/schema/operations.d.ts +29 -1
  70. package/dist/schema/persona/index.d.ts +2 -2
  71. package/dist/schema/query/bi.d.ts +89 -4
  72. package/dist/schema/query/bi.js +1 -1
  73. package/dist/schema/query/index.d.ts +48 -48
  74. package/dist/schema/query/index.js +1 -1
  75. package/dist/schema/schema-query/index.d.ts +1 -1
  76. package/dist/schema/schema-version.js +1 -1
  77. package/dist/schema/trust/index.d.ts +3 -3
  78. package/dist/schema/workspace/index.d.ts +1 -1
  79. package/dist/schema-query-impl/index.js +1 -1
  80. package/dist/schemas/account_operation.output.json +4 -0
  81. package/dist/schemas/bridge_operation.output.json +4 -0
  82. package/dist/schemas/index.json +7 -1
  83. package/dist/schemas/industry_pack_operation.output.json +162 -6
  84. package/dist/schemas/intent_radar.output.json +2 -0
  85. package/dist/schemas/intent_radar.schema.json +1 -0
  86. package/dist/schemas/local_history_operation.output.json +1458 -0
  87. package/dist/schemas/local_history_operation.schema.json +105 -0
  88. package/dist/schemas/local_info_operation.output.json +4 -0
  89. package/dist/schemas/local_mark_operation.output.json +4 -0
  90. package/dist/schemas/onchain_events.output.json +55 -11
  91. package/dist/schemas/onchain_events.schema.json +4 -0
  92. package/dist/schemas/onchain_operations.output.json +4 -1
  93. package/dist/schemas/onchain_operations.schema.json +30 -10
  94. package/dist/schemas/onchain_operations_guard.schema.json +30 -10
  95. package/dist/schemas/onchain_table_data.output.json +41 -0
  96. package/dist/schemas/query_toolkit.output.json +200 -16
  97. package/dist/schemas/query_toolkit.schema.json +41 -0
  98. package/dist/tools/handlers/config.js +1 -1
  99. package/dist/tools/handlers/intent-radar.js +1 -1
  100. package/dist/tools/handlers/local.d.ts +1 -0
  101. package/dist/tools/handlers/local.js +1 -1
  102. package/dist/tools/handlers/onchain.js +1 -1
  103. package/dist/tools/handlers/query.js +1 -1
  104. package/dist/tools/index.js +1 -1
  105. package/dist/tools/registry/local.js +1 -1
  106. package/dist/tools/registry/query.js +1 -1
  107. package/dist/tools/shared.js +1 -1
  108. package/dist/tools/wrap.js +1 -1
  109. package/package.json +2 -2
  110. package/dist/knowledge/allocation-confirm.d.ts +0 -115
  111. package/dist/knowledge/allocation-confirm.js +0 -1
  112. package/dist/knowledge/allocation-context.d.ts +0 -58
  113. package/dist/knowledge/allocation-context.js +0 -1
  114. package/dist/knowledge/allocation-translation.d.ts +0 -72
  115. package/dist/knowledge/allocation-translation.js +0 -1
  116. package/dist/knowledge/arb-confirm.d.ts +0 -28
  117. package/dist/knowledge/arb-confirm.js +0 -1
  118. package/dist/knowledge/arb-translation.d.ts +0 -48
  119. package/dist/knowledge/arb-translation.js +0 -1
  120. package/dist/knowledge/arbitration-confirm.d.ts +0 -135
  121. package/dist/knowledge/arbitration-confirm.js +0 -1
  122. package/dist/knowledge/arbitration-context.d.ts +0 -81
  123. package/dist/knowledge/arbitration-context.js +0 -1
  124. package/dist/knowledge/arbitration-translation.d.ts +0 -91
  125. package/dist/knowledge/arbitration-translation.js +0 -1
  126. package/dist/knowledge/bridge-confirm.d.ts +0 -26
  127. package/dist/knowledge/bridge-confirm.js +0 -1
  128. package/dist/knowledge/bridge-translation.d.ts +0 -37
  129. package/dist/knowledge/bridge-translation.js +0 -1
  130. package/dist/knowledge/contact-confirm.d.ts +0 -27
  131. package/dist/knowledge/contact-confirm.js +0 -1
  132. package/dist/knowledge/contact-translation.d.ts +0 -39
  133. package/dist/knowledge/contact-translation.js +0 -1
  134. package/dist/knowledge/demand-confirm.d.ts +0 -32
  135. package/dist/knowledge/demand-confirm.js +0 -1
  136. package/dist/knowledge/demand-context.d.ts +0 -17
  137. package/dist/knowledge/demand-context.js +0 -1
  138. package/dist/knowledge/demand-ledger.d.ts +0 -26
  139. package/dist/knowledge/demand-ledger.js +0 -1
  140. package/dist/knowledge/demand-puzzle.d.ts +0 -29
  141. package/dist/knowledge/demand-puzzle.js +0 -1
  142. package/dist/knowledge/demand-templates.d.ts +0 -12
  143. package/dist/knowledge/demand-templates.js +0 -1
  144. package/dist/knowledge/demand-translation.d.ts +0 -55
  145. package/dist/knowledge/demand-translation.js +0 -1
  146. package/dist/knowledge/examples-scanner-cli.d.ts +0 -1
  147. package/dist/knowledge/examples-scanner-cli.js +0 -1
  148. package/dist/knowledge/examples-scanner.d.ts +0 -121
  149. package/dist/knowledge/examples-scanner.js +0 -1
  150. package/dist/knowledge/glossary.d.ts +0 -18
  151. package/dist/knowledge/glossary.js +0 -1
  152. package/dist/knowledge/guard-bytecode-spec.d.ts +0 -82
  153. package/dist/knowledge/guard-bytecode-spec.js +0 -1
  154. package/dist/knowledge/guard-confirm.d.ts +0 -86
  155. package/dist/knowledge/guard-confirm.js +0 -1
  156. package/dist/knowledge/immutability.d.ts +0 -11
  157. package/dist/knowledge/immutability.js +0 -1
  158. package/dist/knowledge/machine-confirm.d.ts +0 -102
  159. package/dist/knowledge/machine-confirm.js +0 -1
  160. package/dist/knowledge/machine-context.d.ts +0 -160
  161. package/dist/knowledge/machine-context.js +0 -1
  162. package/dist/knowledge/machine-render.d.ts +0 -41
  163. package/dist/knowledge/machine-render.js +0 -1
  164. package/dist/knowledge/mcp-schema-audit-cli.d.ts +0 -1
  165. package/dist/knowledge/mcp-schema-audit-cli.js +0 -1
  166. package/dist/knowledge/mcp-schema-audit.d.ts +0 -91
  167. package/dist/knowledge/mcp-schema-audit.js +0 -1
  168. package/dist/knowledge/messenger-guard-guidance.d.ts +0 -17
  169. package/dist/knowledge/messenger-guard-guidance.js +0 -1
  170. package/dist/knowledge/order-confirm.d.ts +0 -115
  171. package/dist/knowledge/order-confirm.js +0 -1
  172. package/dist/knowledge/order-context.d.ts +0 -66
  173. package/dist/knowledge/order-context.js +0 -1
  174. package/dist/knowledge/order-translation.d.ts +0 -78
  175. package/dist/knowledge/order-translation.js +0 -1
  176. package/dist/knowledge/overrides-loader.d.ts +0 -13
  177. package/dist/knowledge/overrides-loader.js +0 -1
  178. package/dist/knowledge/passport-confirm.d.ts +0 -130
  179. package/dist/knowledge/passport-confirm.js +0 -1
  180. package/dist/knowledge/passport-context.d.ts +0 -59
  181. package/dist/knowledge/passport-context.js +0 -1
  182. package/dist/knowledge/passport-puzzle.d.ts +0 -108
  183. package/dist/knowledge/passport-puzzle.js +0 -1
  184. package/dist/knowledge/passport-risk.d.ts +0 -70
  185. package/dist/knowledge/passport-risk.js +0 -1
  186. package/dist/knowledge/passport-translation.d.ts +0 -68
  187. package/dist/knowledge/passport-translation.js +0 -1
  188. package/dist/knowledge/payment-confirm.d.ts +0 -26
  189. package/dist/knowledge/payment-confirm.js +0 -1
  190. package/dist/knowledge/payment-translation.d.ts +0 -37
  191. package/dist/knowledge/payment-translation.js +0 -1
  192. package/dist/knowledge/permission-confirm.d.ts +0 -110
  193. package/dist/knowledge/permission-confirm.js +0 -1
  194. package/dist/knowledge/permission-context.d.ts +0 -69
  195. package/dist/knowledge/permission-context.js +0 -1
  196. package/dist/knowledge/permission-translation.d.ts +0 -57
  197. package/dist/knowledge/permission-translation.js +0 -1
  198. package/dist/knowledge/personal-confirm.d.ts +0 -29
  199. package/dist/knowledge/personal-confirm.js +0 -1
  200. package/dist/knowledge/personal-translation.d.ts +0 -37
  201. package/dist/knowledge/personal-translation.js +0 -1
  202. package/dist/knowledge/process-model.d.ts +0 -14
  203. package/dist/knowledge/process-model.js +0 -1
  204. package/dist/knowledge/progress-confirm.d.ts +0 -108
  205. package/dist/knowledge/progress-confirm.js +0 -1
  206. package/dist/knowledge/progress-context.d.ts +0 -123
  207. package/dist/knowledge/progress-context.js +0 -1
  208. package/dist/knowledge/progress-translation.d.ts +0 -52
  209. package/dist/knowledge/progress-translation.js +0 -1
  210. package/dist/knowledge/proof-confirm.d.ts +0 -31
  211. package/dist/knowledge/proof-confirm.js +0 -1
  212. package/dist/knowledge/proof-context.d.ts +0 -17
  213. package/dist/knowledge/proof-context.js +0 -1
  214. package/dist/knowledge/proof-ledger.d.ts +0 -34
  215. package/dist/knowledge/proof-ledger.js +0 -1
  216. package/dist/knowledge/proof-puzzle.d.ts +0 -35
  217. package/dist/knowledge/proof-puzzle.js +0 -1
  218. package/dist/knowledge/proof-templates.d.ts +0 -22
  219. package/dist/knowledge/proof-templates.js +0 -1
  220. package/dist/knowledge/proof-translation.d.ts +0 -52
  221. package/dist/knowledge/proof-translation.js +0 -1
  222. package/dist/knowledge/registrar-confirm.d.ts +0 -26
  223. package/dist/knowledge/registrar-confirm.js +0 -1
  224. package/dist/knowledge/registrar-translation.d.ts +0 -37
  225. package/dist/knowledge/registrar-translation.js +0 -1
  226. package/dist/knowledge/repository-confirm.d.ts +0 -40
  227. package/dist/knowledge/repository-confirm.js +0 -1
  228. package/dist/knowledge/repository-context.d.ts +0 -12
  229. package/dist/knowledge/repository-context.js +0 -1
  230. package/dist/knowledge/repository-ledger.d.ts +0 -25
  231. package/dist/knowledge/repository-ledger.js +0 -1
  232. package/dist/knowledge/repository-puzzle.d.ts +0 -30
  233. package/dist/knowledge/repository-puzzle.js +0 -1
  234. package/dist/knowledge/repository-templates.d.ts +0 -14
  235. package/dist/knowledge/repository-templates.js +0 -1
  236. package/dist/knowledge/repository-translation.d.ts +0 -58
  237. package/dist/knowledge/repository-translation.js +0 -1
  238. package/dist/knowledge/resource-confirm.d.ts +0 -25
  239. package/dist/knowledge/resource-confirm.js +0 -1
  240. package/dist/knowledge/resource-translation.d.ts +0 -37
  241. package/dist/knowledge/resource-translation.js +0 -1
  242. package/dist/knowledge/reward-confirm.d.ts +0 -116
  243. package/dist/knowledge/reward-confirm.js +0 -1
  244. package/dist/knowledge/reward-context.d.ts +0 -127
  245. package/dist/knowledge/reward-context.js +0 -1
  246. package/dist/knowledge/reward-translation.d.ts +0 -58
  247. package/dist/knowledge/reward-translation.js +0 -1
  248. package/dist/knowledge/service-confirm.d.ts +0 -161
  249. package/dist/knowledge/service-confirm.js +0 -1
  250. package/dist/knowledge/service-context.d.ts +0 -66
  251. package/dist/knowledge/service-context.js +0 -1
  252. package/dist/knowledge/service-translation.d.ts +0 -103
  253. package/dist/knowledge/service-translation.js +0 -1
  254. package/dist/knowledge/treasury-confirm.d.ts +0 -133
  255. package/dist/knowledge/treasury-confirm.js +0 -1
  256. package/dist/knowledge/treasury-context.d.ts +0 -64
  257. package/dist/knowledge/treasury-context.js +0 -1
  258. package/dist/knowledge/treasury-translation.d.ts +0 -78
  259. package/dist/knowledge/treasury-translation.js +0 -1
  260. package/dist/knowledge/util-confirm.d.ts +0 -24
  261. package/dist/knowledge/util-confirm.js +0 -1
  262. package/dist/knowledge/util-translation.d.ts +0 -39
  263. package/dist/knowledge/util-translation.js +0 -1
  264. package/dist/loop-engineering/aggregate.d.ts +0 -50
  265. package/dist/loop-engineering/aggregate.js +0 -1
  266. package/dist/loop-engineering/context-collect.d.ts +0 -7
  267. package/dist/loop-engineering/context-collect.js +0 -1
  268. package/dist/loop-engineering/diagnose.d.ts +0 -22
  269. package/dist/loop-engineering/diagnose.js +0 -1
  270. package/dist/loop-engineering/improve.d.ts +0 -55
  271. package/dist/loop-engineering/improve.js +0 -1
  272. package/dist/loop-engineering/index.d.ts +0 -4
  273. package/dist/loop-engineering/index.js +0 -1
  274. package/dist/loop-engineering/pipeline.d.ts +0 -17
  275. package/dist/loop-engineering/pipeline.js +0 -1
  276. package/dist/schema/utils/object-type-utils.d.ts +0 -12
  277. package/dist/schema/utils/object-type-utils.js +0 -1
  278. package/dist/telemetry/index.d.ts +0 -19
  279. package/dist/telemetry/index.js +0 -1
  280. package/dist/telemetry/redact.d.ts +0 -2
  281. package/dist/telemetry/redact.js +0 -1
  282. package/dist/telemetry/storage.d.ts +0 -8
  283. package/dist/telemetry/storage.js +0 -1
@@ -212,8 +212,8 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
212
212
  metrics: z.ZodArray<z.ZodString>;
213
213
  levers: z.ZodArray<z.ZodEnum<{
214
214
  reward: "reward";
215
- buy_guard: "buy_guard";
216
215
  discount: "discount";
216
+ buy_guard: "buy_guard";
217
217
  machine_design: "machine_design";
218
218
  }>>;
219
219
  target: z.ZodString;
@@ -221,8 +221,8 @@ export declare const IndustryPackOperationOutputSchema: z.ZodObject<{
221
221
  lever_suggestions: z.ZodArray<z.ZodObject<{
222
222
  lever: z.ZodEnum<{
223
223
  reward: "reward";
224
- buy_guard: "buy_guard";
225
224
  discount: "discount";
225
+ buy_guard: "buy_guard";
226
226
  machine_design: "machine_design";
227
227
  }>;
228
228
  objective: z.ZodEnum<{
@@ -238,18 +238,25 @@ 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<{
244
251
  reward: "reward";
245
- buy_guard: "buy_guard";
246
252
  discount: "discount";
253
+ buy_guard: "buy_guard";
247
254
  machine_design: "machine_design";
248
255
  }>>;
249
256
  missing_levers: z.ZodArray<z.ZodEnum<{
250
257
  reward: "reward";
251
- buy_guard: "buy_guard";
252
258
  discount: "discount";
259
+ buy_guard: "buy_guard";
253
260
  machine_design: "machine_design";
254
261
  }>>;
255
262
  }, z.core.$strip>>;
@@ -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;
@@ -75,8 +75,8 @@ export declare const RecommendIndustryResultSchema: z.ZodObject<{
75
75
  metrics: z.ZodArray<z.ZodString>;
76
76
  levers: z.ZodArray<z.ZodEnum<{
77
77
  reward: "reward";
78
- buy_guard: "buy_guard";
79
78
  discount: "discount";
79
+ buy_guard: "buy_guard";
80
80
  machine_design: "machine_design";
81
81
  }>>;
82
82
  target: z.ZodString;
@@ -84,8 +84,8 @@ export declare const RecommendIndustryResultSchema: z.ZodObject<{
84
84
  lever_suggestions: z.ZodArray<z.ZodObject<{
85
85
  lever: z.ZodEnum<{
86
86
  reward: "reward";
87
- buy_guard: "buy_guard";
88
87
  discount: "discount";
88
+ buy_guard: "buy_guard";
89
89
  machine_design: "machine_design";
90
90
  }>;
91
91
  objective: z.ZodEnum<{
@@ -101,18 +101,25 @@ 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<{
107
114
  reward: "reward";
108
- buy_guard: "buy_guard";
109
115
  discount: "discount";
116
+ buy_guard: "buy_guard";
110
117
  machine_design: "machine_design";
111
118
  }>>;
112
119
  missing_levers: z.ZodArray<z.ZodEnum<{
113
120
  reward: "reward";
114
- buy_guard: "buy_guard";
115
121
  discount: "discount";
122
+ buy_guard: "buy_guard";
116
123
  machine_design: "machine_design";
117
124
  }>>;
118
125
  }, z.core.$strip>>;
@@ -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']()]);