@wowok/agent-mcp 3.0.0 → 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.
- package/dist/communication/evidence.d.ts +6 -0
- package/dist/communication/evidence.js +1 -0
- package/dist/evaluation/acceptance.d.ts +24 -0
- package/dist/evaluation/acceptance.js +1 -0
- package/dist/evaluation/builtins/demand-match.d.ts +3 -2
- package/dist/evaluation/builtins/demand-match.js +1 -1
- package/dist/evaluation/builtins/service-risk.d.ts +2 -1
- package/dist/evaluation/builtins/service-risk.js +1 -1
- package/dist/evaluation/index.d.ts +1 -0
- package/dist/evaluation/index.js +1 -1
- package/dist/evaluation/match-operation.d.ts +14 -0
- package/dist/evaluation/match-operation.js +1 -0
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/extensions/modes.js +1 -1
- package/dist/goal/GoalClassifier.js +1 -1
- package/dist/goal/GoalEngine.d.ts +8 -0
- package/dist/goal/GoalEngine.js +1 -1
- package/dist/goal/types.d.ts +1 -1
- package/dist/harness/auto-escalation.d.ts +0 -12
- package/dist/harness/auto-escalation.js +1 -1
- package/dist/harness/index.d.ts +1 -14
- package/dist/harness/index.js +1 -1
- package/dist/harness/types.d.ts +0 -38
- package/dist/intent/types.d.ts +1 -1
- package/dist/intent/types.js +1 -1
- package/dist/keeper/KeeperScan.d.ts +39 -0
- package/dist/keeper/KeeperScan.js +1 -0
- package/dist/keeper/KeeperStore.d.ts +43 -0
- package/dist/keeper/KeeperStore.js +1 -0
- package/dist/keeper/detectors.d.ts +23 -0
- package/dist/keeper/detectors.js +1 -0
- package/dist/keeper/keeper.spec.d.ts +1 -0
- package/dist/keeper/keeper.spec.js +1 -0
- package/dist/keeper/types.d.ts +65 -0
- package/dist/keeper/types.js +1 -0
- package/dist/knowledge/demand-risk.js +1 -1
- package/dist/knowledge/event-semantics.d.ts +3 -0
- package/dist/knowledge/event-semantics.js +1 -1
- package/dist/knowledge/event-semantics.spec.d.ts +1 -0
- package/dist/knowledge/event-semantics.spec.js +1 -0
- package/dist/knowledge/evidence-review.d.ts +23 -0
- package/dist/knowledge/evidence-review.js +1 -1
- package/dist/knowledge/examples-scanner-cli.js +1 -1
- package/dist/knowledge/examples-scanner.js +1 -1
- package/dist/knowledge/guard-bytecode-spec.d.ts +82 -0
- package/dist/knowledge/guard-bytecode-spec.js +1 -0
- package/dist/knowledge/guard-design-patterns.d.ts +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/index.d.ts +10 -6
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
- package/dist/knowledge/mcp-schema-audit.js +1 -1
- package/dist/knowledge/migration-preflight.d.ts +27 -0
- package/dist/knowledge/migration-preflight.js +1 -0
- package/dist/knowledge/scenario-modes.d.ts +1 -1
- package/dist/knowledge/scenario-modes.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +20 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/monitor/MonitorLoop.d.ts +1 -0
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/monitor/ScopeResolver.js +1 -1
- package/dist/monitor/SuggestionBridge.d.ts +1 -1
- package/dist/monitor/SuggestionBridge.js +1 -1
- package/dist/monitor/SuggestionBridge.spec.d.ts +1 -0
- package/dist/monitor/SuggestionBridge.spec.js +1 -0
- package/dist/monitor/normalize.js +1 -1
- package/dist/monitor/types.d.ts +0 -1
- package/dist/monitor/types.js +1 -1
- package/dist/participation/employee-kpi.d.ts +12 -0
- package/dist/participation/employee-kpi.js +1 -1
- package/dist/participation/employee-kpi.spec.d.ts +1 -0
- package/dist/participation/employee-kpi.spec.js +1 -0
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/mode-actions.d.ts +19 -6
- package/dist/playbooks/service-build/mode-actions.js +1 -1
- package/dist/playbooks/service-build/relationship-profile.js +1 -1
- package/dist/relationship/derivation.d.ts +6 -0
- package/dist/relationship/derivation.js +1 -1
- package/dist/relationship/derivation.spec.d.ts +1 -0
- package/dist/relationship/derivation.spec.js +1 -0
- package/dist/role/index.d.ts +2 -2
- package/dist/role/index.js +1 -1
- package/dist/role/model.d.ts +2 -1
- package/dist/role/model.js +1 -1
- package/dist/role/types.d.ts +5 -0
- package/dist/rules.d.ts +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/employee/index.d.ts +61 -1
- package/dist/schema/employee/index.js +1 -1
- package/dist/schema/evaluation/index.d.ts +70 -5
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.js +1 -1
- package/dist/schema/industry-pack/index.d.ts +43 -7
- package/dist/schema/industry-pack/modes.d.ts +42 -6
- package/dist/schema/industry-pack/modes.js +1 -1
- package/dist/schema/intent-radar/index.d.ts +3 -0
- package/dist/schema/intent-radar/index.js +1 -1
- package/dist/schema/keeper/index.d.ts +475 -0
- package/dist/schema/keeper/index.js +1 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +2 -0
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +34 -0
- package/dist/schema/query/bi.d.ts +188 -0
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +48 -48
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-query/index.d.ts +2 -11
- package/dist/schema/schema-query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/utils/skills-recommendation.js +1 -1
- package/dist/schema/watch/index.d.ts +4 -0
- package/dist/schema/watch/index.js +1 -1
- package/dist/schema-query-impl/index.d.ts +33 -14
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/employee_operation.output.json +100 -0
- package/dist/schemas/employee_operation.schema.json +148 -5
- package/dist/schemas/evaluation_operation.output.json +135 -9
- package/dist/schemas/evaluation_operation.schema.json +176 -7
- package/dist/schemas/index.json +7 -1
- package/dist/schemas/industry_pack_operation.output.json +158 -32
- package/dist/schemas/intent_radar.output.json +2 -0
- package/dist/schemas/intent_radar.schema.json +1 -0
- package/dist/schemas/keeper_operation.output.json +1274 -0
- package/dist/schemas/keeper_operation.schema.json +359 -0
- package/dist/schemas/messenger_operation.schema.json +8 -0
- package/dist/schemas/onchain_events.output.json +55 -11
- package/dist/schemas/onchain_events.schema.json +4 -0
- package/dist/schemas/onchain_table_data.output.json +59 -0
- package/dist/schemas/query_toolkit.output.json +428 -0
- package/dist/schemas/query_toolkit.schema.json +59 -0
- package/dist/schemas/schema_query.output.json +1 -64
- package/dist/schemas/schema_query.schema.json +18 -3
- package/dist/schemas/watch_operation.output.json +21 -1
- package/dist/task/playbook.js +1 -1
- package/dist/task/types.d.ts +1 -1
- package/dist/tools/handlers/bridge.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/employee.d.ts +6 -0
- package/dist/tools/handlers/employee.js +1 -1
- package/dist/tools/handlers/employee.spec.d.ts +1 -0
- package/dist/tools/handlers/employee.spec.js +1 -0
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/evaluation.spec.d.ts +1 -0
- package/dist/tools/handlers/evaluation.spec.js +1 -0
- package/dist/tools/handlers/intent-radar.js +1 -1
- package/dist/tools/handlers/keeper.d.ts +12 -0
- package/dist/tools/handlers/keeper.js +1 -0
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/handlers/watch.js +1 -1
- package/dist/tools/handlers/workflow.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/registry/agent.d.ts +2 -0
- package/dist/tools/registry/agent.js +1 -0
- package/dist/tools/registry/bridge.d.ts +2 -0
- package/dist/tools/registry/bridge.js +1 -0
- package/dist/tools/registry/business.d.ts +2 -0
- package/dist/tools/registry/business.js +1 -0
- package/dist/tools/registry/config.d.ts +2 -0
- package/dist/tools/registry/config.js +1 -0
- package/dist/tools/registry/files.d.ts +2 -0
- package/dist/tools/registry/files.js +1 -0
- package/dist/tools/registry/identity.d.ts +2 -0
- package/dist/tools/registry/identity.js +1 -0
- package/dist/tools/registry/local.d.ts +2 -0
- package/dist/tools/registry/local.js +1 -0
- package/dist/tools/registry/messenger.d.ts +2 -0
- package/dist/tools/registry/messenger.js +1 -0
- package/dist/tools/registry/monitor.d.ts +2 -0
- package/dist/tools/registry/monitor.js +1 -0
- package/dist/tools/registry/onchain.d.ts +2 -0
- package/dist/tools/registry/onchain.js +1 -0
- package/dist/tools/registry/query.d.ts +2 -0
- package/dist/tools/registry/query.js +1 -0
- package/dist/tools/registry/trust.d.ts +2 -0
- package/dist/tools/registry/trust.js +1 -0
- package/dist/tools/shared.js +1 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +2 -2
- package/dist/examples/arbitration-dispute-create.json +0 -41
- package/dist/examples/arbitration-vote-weighted.json +0 -35
- package/dist/examples/arbitration-voting-guard-add.json +0 -38
- package/dist/examples/demand-present-service.json +0 -33
- package/dist/examples/education-contact-create.json +0 -40
- package/dist/examples/freelance-contact-create.json +0 -40
- package/dist/examples/gen-passport-verify-guard.json +0 -48
- package/dist/examples/guard-template-balance-check.json +0 -59
- package/dist/examples/guard-template-time-lock.json +0 -60
- package/dist/examples/insurance-guard-claim-timelock.json +0 -75
- package/dist/examples/insurance-guard-withdraw-allocation.json +0 -96
- package/dist/examples/insurance-machine-create.json +0 -75
- package/dist/examples/insurance-service-allocators.json +0 -55
- package/dist/examples/machine-multisig-threshold.json +0 -87
- package/dist/examples/machine-publish.json +0 -30
- package/dist/examples/machine-template-7node-rental.json +0 -119
- package/dist/examples/payment-scenario-bound.json +0 -45
- package/dist/examples/rental-ziroom-machine-create.json +0 -148
- package/dist/examples/rental-ziroom-permission-create.json +0 -41
- package/dist/examples/rental-ziroom-service-create.json +0 -36
- package/dist/examples/retail-adv-guard-customer-win-create.json +0 -80
- package/dist/examples/retail-adv-guard-messenger-proof-create.json +0 -65
- package/dist/examples/retail-adv-guard-reward-timeout-create.json +0 -92
- package/dist/examples/retail-adv-reward-guard-add.json +0 -51
- package/dist/examples/retail-myshop-allocation-activate.json +0 -55
- package/dist/examples/retail-myshop-arbitration-create.json +0 -40
- package/dist/examples/retail-myshop-contact-create.json +0 -43
- package/dist/examples/retail-myshop-order-create.json +0 -56
- package/dist/examples/retail-myshop-progress-operate.json +0 -38
- package/dist/examples/retail-myshop-reward-create.json +0 -35
- package/dist/examples/retail-myshop-service-create.json +0 -38
- package/dist/examples/retail-myshop-service-customer-required.json +0 -31
- package/dist/examples/service-discount-issue.json +0 -46
- package/dist/examples/subscription-contact-create.json +0 -40
- package/dist/examples/threebody-guard-create.json +0 -56
- package/dist/examples/threebody-machine-create.json +0 -71
- package/dist/examples/threebody-permission-create.json +0 -38
- package/dist/examples/threebody-service-allocators.json +0 -48
- package/dist/examples/travel-guard-time-lock.json +0 -69
- package/dist/examples/travel-guard-weather-oracle.json +0 -70
- package/dist/examples/travel-machine-create.json +0 -135
- package/dist/examples/travel-repository-create.json +0 -47
- package/dist/examples/travel-service-create.json +0 -34
- package/dist/examples/travel-treasury-create.json +0 -34
- package/dist/examples/treasury-deposit.json +0 -37
- package/dist/examples/treasury-withdraw.json +0 -38
- package/dist/harness/plan.d.ts +0 -33
- package/dist/harness/plan.js +0 -1
- package/dist/knowledge/demand-matching.d.ts +0 -29
- package/dist/knowledge/demand-matching.js +0 -1
- package/dist/knowledge/guard-context.d.ts +0 -56
- package/dist/knowledge/guard-context.js +0 -1
- package/dist/knowledge/guard-migration.d.ts +0 -48
- package/dist/knowledge/guard-migration.js +0 -1
- package/dist/schemas/guard-node-schema.json +0 -1000
- package/dist/task/stage-gate.d.ts +0 -22
- package/dist/task/stage-gate.js +0 -1
|
@@ -101,12 +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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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>;
|
|
110
111
|
strategy_alignment: z.ZodOptional<z.ZodObject<{
|
|
111
112
|
score: z.ZodNumber;
|
|
112
113
|
matched_levers: z.ZodArray<z.ZodEnum<{
|
|
@@ -135,6 +136,13 @@ export declare const ListModesResultSchema: z.ZodObject<{
|
|
|
135
136
|
owner: z.ZodOptional<z.ZodString>;
|
|
136
137
|
key_risk: z.ZodString;
|
|
137
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>;
|
|
138
146
|
similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
139
147
|
evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
140
148
|
version: z.ZodString;
|
|
@@ -150,6 +158,13 @@ export declare const ListModesResultSchema: z.ZodObject<{
|
|
|
150
158
|
owner: z.ZodOptional<z.ZodString>;
|
|
151
159
|
key_risk: z.ZodString;
|
|
152
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>;
|
|
153
168
|
similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
154
169
|
evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
155
170
|
version: z.ZodString;
|
|
@@ -170,6 +185,13 @@ export declare const DeriveUserModeResultSchema: z.ZodObject<{
|
|
|
170
185
|
owner: z.ZodOptional<z.ZodString>;
|
|
171
186
|
key_risk: z.ZodString;
|
|
172
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>;
|
|
173
195
|
similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
174
196
|
evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
175
197
|
version: z.ZodString;
|
|
@@ -189,6 +211,13 @@ export declare const EvolveUserModeResultSchema: z.ZodObject<{
|
|
|
189
211
|
owner: z.ZodOptional<z.ZodString>;
|
|
190
212
|
key_risk: z.ZodString;
|
|
191
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>;
|
|
192
221
|
similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
193
222
|
evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
194
223
|
version: z.ZodString;
|
|
@@ -208,6 +237,13 @@ export declare const RegisterUserModeResultSchema: z.ZodObject<{
|
|
|
208
237
|
owner: z.ZodOptional<z.ZodString>;
|
|
209
238
|
key_risk: z.ZodString;
|
|
210
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>;
|
|
211
247
|
similar_industries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
212
248
|
evolution_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
213
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.'),'reference_examples':z['array'](z['object']({'file':z['string']()['describe']('Example\x20file\x20name\x20(fetch\x20via\x20schema_query\x20search_examples).'),'title':z['string'](),'operation_type':z['string'](),'verified':z['boolean']()})['strict']())['describe']('Verified\x20reference\x20examples\x20for\x20this\x20industry\x20(top\x203).'),'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+\x20reference\x20examples\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']()]);
|