@wowok/agent-mcp 2.7.7 → 2.7.8
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/customer/index.d.ts +3 -4
- package/dist/customer/index.js +1 -1
- package/dist/customer/info-puzzle.js +1 -1
- package/dist/customer/order-monitor.d.ts +0 -9
- package/dist/customer/order-monitor.js +1 -1
- package/dist/customer/order-strategy.d.ts +0 -19
- package/dist/customer/order-strategy.js +1 -1
- package/dist/customer/reminder-system.d.ts +0 -5
- package/dist/customer/reminder-system.js +1 -1
- package/dist/evaluation/game-strategy.js +1 -1
- package/dist/evaluation/injection.d.ts +6 -0
- package/dist/evaluation/injection.js +1 -0
- package/dist/evaluation/node-game.js +1 -1
- package/dist/examples/machine-multisig-threshold.json +1 -0
- package/dist/harness/recover.js +1 -1
- package/dist/harness/types.d.ts +1 -1
- package/dist/harness/verify.js +1 -1
- package/dist/intent/enrich.js +1 -1
- package/dist/intent/matcher.js +1 -1
- package/dist/intent/types.d.ts +1 -1
- package/dist/intent/types.js +1 -1
- package/dist/knowledge/arbitration-ledger.js +1 -1
- package/dist/knowledge/contract-invariants.d.ts +53 -0
- package/dist/knowledge/contract-invariants.js +1 -0
- package/dist/knowledge/deployment-scanner.js +1 -1
- package/dist/knowledge/dynamic-pricing.d.ts +0 -2
- package/dist/knowledge/dynamic-pricing.js +1 -1
- package/dist/knowledge/event-semantics.d.ts +20 -0
- package/dist/knowledge/event-semantics.js +1 -0
- package/dist/knowledge/examples-scanner-cli.js +1 -1
- package/dist/knowledge/examples-scanner.js +1 -1
- package/dist/knowledge/glossary.js +1 -1
- package/dist/knowledge/guard-submission-prompt.js +1 -1
- package/dist/knowledge/immutability.d.ts +11 -0
- package/dist/knowledge/immutability.js +1 -0
- package/dist/knowledge/index.d.ts +12 -6
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/intent-metrics.d.ts +1 -1
- package/dist/knowledge/jsonrpc-enum.d.ts +37 -0
- package/dist/knowledge/jsonrpc-enum.js +1 -0
- package/dist/knowledge/machine-confirm.js +1 -1
- package/dist/knowledge/machine-risk.js +1 -1
- package/dist/knowledge/machine-topology.d.ts +11 -0
- package/dist/knowledge/machine-topology.js +1 -1
- package/dist/knowledge/machine-translation.js +1 -1
- package/dist/knowledge/market-metrics.d.ts +11 -0
- package/dist/knowledge/market-metrics.js +1 -1
- package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
- package/dist/knowledge/mcp-schema-audit.d.ts +1 -0
- package/dist/knowledge/mcp-schema-audit.js +1 -1
- package/dist/knowledge/messenger-guard-guidance.d.ts +17 -0
- package/dist/knowledge/messenger-guard-guidance.js +1 -0
- package/dist/knowledge/operation-dictionary.d.ts +18 -0
- package/dist/knowledge/operation-dictionary.js +1 -0
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/service-risk.js +1 -1
- package/dist/knowledge/service-translation.js +1 -1
- package/dist/knowledge/supply-chain.d.ts +24 -0
- package/dist/knowledge/supply-chain.js +1 -0
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/trust-metrics.d.ts +27 -2
- package/dist/knowledge/trust-metrics.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +22 -1
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/monitor/EventStore.d.ts +78 -0
- package/dist/monitor/EventStore.js +1 -0
- package/dist/participation/radar-core.d.ts +0 -1
- package/dist/participation/radar-core.js +1 -1
- package/dist/persona/address-format.d.ts +6 -0
- package/dist/persona/address-format.js +1 -0
- package/dist/persona/analyzer.js +1 -1
- package/dist/persona/index.d.ts +3 -0
- package/dist/persona/index.js +1 -1
- package/dist/persona/types.d.ts +1 -1
- package/dist/persona/types.js +1 -1
- package/dist/project/business-puzzle.js +1 -1
- package/dist/project/edit-planner.js +1 -1
- package/dist/project/evaluation.js +1 -1
- package/dist/project/graph-builder.js +1 -1
- package/dist/project/handlers.d.ts +2 -18
- package/dist/project/handlers.js +1 -1
- package/dist/project/index.js +1 -1
- package/dist/project/machine-nodes.d.ts +23 -0
- package/dist/project/machine-nodes.js +1 -1
- package/dist/project/machine-panorama.d.ts +41 -0
- package/dist/project/machine-panorama.js +1 -0
- package/dist/project/object-panorama.d.ts +179 -0
- package/dist/project/object-panorama.js +1 -0
- package/dist/project/object-type.d.ts +1 -0
- package/dist/project/object-type.js +1 -0
- package/dist/project/participation-radar.js +1 -1
- package/dist/project/semantic-assembler.js +1 -1
- package/dist/project/service-panorama.d.ts +180 -0
- package/dist/project/service-panorama.js +1 -0
- package/dist/project/stage-gate.d.ts +0 -1
- package/dist/project/stage-gate.js +1 -1
- package/dist/project/task-tracker.d.ts +4 -0
- package/dist/project/task-tracker.js +1 -1
- package/dist/role/derivation.d.ts +19 -2
- package/dist/role/derivation.js +1 -1
- package/dist/role/index.d.ts +2 -2
- package/dist/role/index.js +1 -1
- package/dist/role/model.js +1 -1
- package/dist/role/resolution.d.ts +16 -0
- package/dist/role/resolution.js +1 -1
- package/dist/role/types.d.ts +1 -1
- package/dist/role/types.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/call/allocation.d.ts +1 -0
- package/dist/schema/call/arbitration.d.ts +4 -3
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +16 -0
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +7 -0
- package/dist/schema/call/contact.d.ts +1 -0
- package/dist/schema/call/demand.d.ts +1 -0
- package/dist/schema/call/guard.d.ts +3 -0
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/machine.d.ts +2 -0
- package/dist/schema/call/machine.js +1 -1
- package/dist/schema/call/order.d.ts +1 -0
- package/dist/schema/call/payment.d.ts +1 -0
- package/dist/schema/call/permission.d.ts +1 -0
- package/dist/schema/call/personal.d.ts +38 -0
- package/dist/schema/call/personal.js +1 -1
- package/dist/schema/call/progress.d.ts +1 -0
- package/dist/schema/call/proof.d.ts +2 -0
- package/dist/schema/call/repository.d.ts +5 -4
- package/dist/schema/call/reward.d.ts +1 -12
- package/dist/schema/call/reward.js +1 -1
- package/dist/schema/call/semantic.d.ts +3 -2
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +1 -0
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/call/treasury.d.ts +1 -0
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/evaluation/index.d.ts +146 -0
- 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/intent-radar/index.d.ts +30 -3
- package/dist/schema/intent-radar/index.js +1 -1
- package/dist/schema/local/index.d.ts +9 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +54 -0
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +864 -8
- package/dist/schema/operations.js +1 -1
- package/dist/schema/permission/index.d.ts +17 -0
- package/dist/schema/permission/index.js +1 -1
- package/dist/schema/project/index.d.ts +6 -0
- package/dist/schema/project/index.js +1 -1
- package/dist/schema/query/index.d.ts +658 -56
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/trust/index.d.ts +17 -0
- package/dist/schema/trust/index.js +1 -1
- package/dist/schema/watch/index.d.ts +204 -0
- package/dist/schema/watch/index.js +1 -0
- package/dist/schema/workflow/index.d.ts +301 -0
- package/dist/schema/workflow/index.js +1 -1
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +5 -2
- package/dist/schemas/bridge_operation.output.json +5 -2
- package/dist/schemas/bridge_operation.schema.json +25 -9
- package/dist/schemas/evaluation_operation.output.json +276 -1
- package/dist/schemas/evaluation_operation.schema.json +307 -0
- package/dist/schemas/guard2file.schema.json +6 -2
- package/dist/schemas/index.json +13 -1
- package/dist/schemas/intent_radar.output.json +20 -2
- package/dist/schemas/intent_radar.schema.json +10 -1
- package/dist/schemas/local_info_operation.output.json +5 -2
- package/dist/schemas/local_mark_operation.output.json +5 -2
- package/dist/schemas/machineNode2file.schema.json +6 -2
- package/dist/schemas/messenger_operation.output.json +105 -2
- package/dist/schemas/messenger_operation.schema.json +98 -0
- package/dist/schemas/monitor_events.output.json +1360 -0
- package/dist/schemas/monitor_events.schema.json +62 -0
- package/dist/schemas/onchain_events.output.json +237 -14
- package/dist/schemas/onchain_events.schema.json +20 -0
- package/dist/schemas/onchain_operations.output.json +10 -5
- package/dist/schemas/onchain_operations.schema.json +511 -419
- package/dist/schemas/onchain_operations_allocation.schema.json +11 -7
- package/dist/schemas/onchain_operations_arbitration.schema.json +14 -9
- package/dist/schemas/onchain_operations_contact.schema.json +9 -5
- package/dist/schemas/onchain_operations_demand.schema.json +9 -5
- package/dist/schemas/onchain_operations_gen_passport.schema.json +6 -2
- package/dist/schemas/onchain_operations_gen_proof.schema.json +6 -2
- package/dist/schemas/onchain_operations_guard.schema.json +6 -2
- package/dist/schemas/onchain_operations_machine.schema.json +14 -10
- package/dist/schemas/onchain_operations_order.schema.json +9 -5
- package/dist/schemas/onchain_operations_payment.schema.json +7 -3
- package/dist/schemas/onchain_operations_permission.schema.json +9 -5
- package/dist/schemas/onchain_operations_personal.schema.json +44 -2
- package/dist/schemas/onchain_operations_progress.schema.json +9 -5
- package/dist/schemas/onchain_operations_proof.schema.json +6 -2
- package/dist/schemas/onchain_operations_repository.schema.json +290 -305
- package/dist/schemas/onchain_operations_reward.schema.json +14 -10
- package/dist/schemas/onchain_operations_service.schema.json +17 -13
- package/dist/schemas/onchain_operations_treasury.schema.json +14 -10
- package/dist/schemas/onchain_table_data.output.json +3750 -208
- package/dist/schemas/onchain_table_data.schema.json +311 -0
- package/dist/schemas/permission_operation.output.json +32 -0
- package/dist/schemas/project_operation.schema.json +14 -8
- package/dist/schemas/query_toolkit.output.json +405 -320
- package/dist/schemas/query_toolkit.schema.json +139 -1
- package/dist/schemas/trust_score.output.json +38 -0
- package/dist/schemas/trust_score.schema.json +32 -0
- package/dist/schemas/watch_operation.output.json +827 -0
- package/dist/schemas/watch_operation.schema.json +145 -0
- package/dist/schemas/workflow_operation.output.json +263 -5
- package/dist/schemas/workflow_operation.schema.json +597 -2
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/intent-radar.js +1 -1
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/monitor.d.ts +2 -0
- package/dist/tools/handlers/monitor.js +1 -0
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/permission.js +1 -1
- package/dist/tools/handlers/project.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/trust.d.ts +14 -0
- package/dist/tools/handlers/trust.js +1 -1
- package/dist/tools/handlers/watch.d.ts +2 -0
- package/dist/tools/handlers/watch.js +1 -0
- package/dist/tools/handlers/workflow.js +1 -1
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/package.json +2 -2
- package/dist/customer/post-purchase.d.ts +0 -44
- package/dist/customer/post-purchase.js +0 -1
- package/dist/project/migration.d.ts +0 -22
- package/dist/project/migration.js +0 -1
- package/dist/project/rollback-policy.d.ts +0 -45
- package/dist/project/rollback-policy.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as a347a from'@wowok/wowok';const SDK_SCHEMA_VERSION=a347a['SCHEMA_VERSION']??'1.0.0',checkSchemaCompatibility=a347a['checkSchemaCompatibility']??((a,b)=>({'compatible':!![]}));export const MCP_SCHEMA_VERSION='1.0.0';export function getSchemaVersions(){return{'sdk':SDK_SCHEMA_VERSION,'mcp':MCP_SCHEMA_VERSION};}export function checkClientSchemaCompatibility(a,b={}){const c=getSchemaVersions(),d={'compatible':!![],'warnings':[],'errors':[],'versions':c,'client_version':a};if(!a)return d;const e=checkSchemaCompatibility(a,c['sdk']);if(!e['compatible']){d['compatible']=![];const g='SDK\x20schema\x20incompatibility:\x20'+e['reason'];b['mode']==='strict'?d['errors']['push'](g):d['warnings']['push'](g);}const f=checkSchemaCompatibility(a,c['mcp']);if(!f['compatible']){d['compatible']=![];const h='MCP\x20schema\x20incompatibility:\x20'+f['reason'];b['mode']==='strict'?d['errors']['push'](h):d['warnings']['push'](h);}return d;}export function attachSchemaWarning(a,b){if(b['warnings']['length']===0x0&&b['errors']['length']===0x0)return a;const c=[];b['warnings']['length']>0x0&&c['push'](...b['warnings']);b['errors']['length']>0x0&&c['push'](...b['errors']);const d=a['semantic']?{...a['semantic'],'warnings':[...a['semantic']['warnings']||[],...c]}:undefined;return{...a,'semantic':d,'schema_warning':{'compatible':b['compatible'],'warnings':c,'client_version':b['client_version'],'server_versions':b['versions']}};}
|
|
@@ -97,6 +97,13 @@ export declare const TrustScoreInputSchema: z.ZodObject<{
|
|
|
97
97
|
}, z.core.$strict>>;
|
|
98
98
|
adjustment_cap: z.ZodOptional<z.ZodNumber>;
|
|
99
99
|
}, z.core.$strict>>;
|
|
100
|
+
trust_weights: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
arbitration: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
reviews: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
fulfillment: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
fund_safety: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
transparency: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
}, z.core.$strict>>;
|
|
100
107
|
network: z.ZodOptional<z.ZodString>;
|
|
101
108
|
no_cache: z.ZodOptional<z.ZodBoolean>;
|
|
102
109
|
compare_with: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -124,6 +131,16 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
124
131
|
}>;
|
|
125
132
|
summary: z.ZodString;
|
|
126
133
|
warnings: z.ZodArray<z.ZodString>;
|
|
134
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
135
|
+
kind: z.ZodString;
|
|
136
|
+
severity: z.ZodEnum<{
|
|
137
|
+
info: "info";
|
|
138
|
+
critical: "critical";
|
|
139
|
+
warning: "warning";
|
|
140
|
+
}>;
|
|
141
|
+
message: z.ZodString;
|
|
142
|
+
deduction: z.ZodNumber;
|
|
143
|
+
}, z.core.$strip>>;
|
|
127
144
|
breakdown: z.ZodArray<z.ZodObject<{
|
|
128
145
|
score: z.ZodNumber;
|
|
129
146
|
maxScore: z.ZodNumber;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{NameOrAddressSchema}from'../common/index.js';const RiskCheckOutputSchema=z['object']({'id':z['string']()['describe']('Check\x20identifier.'),'dimension':z['enum'](['workflow','fund','trust','behavior'])['describe']('Dimension\x20this\x20check\x20belongs\x20to.'),'description':z['string']()['describe']('Check\x20description.'),'weight':z['number']()['describe']('Check\x20weight\x20within\x20its\x20dimension\x20(percentage).'),'passed':z['boolean']()['describe']('Whether\x20the\x20check\x20passed.'),'advice':z['string']()['optional']()['describe']('Advice\x20when\x20the\x20check\x20failed.')}),ReminderOutputSchema=z['object']({'id':z['string']()['describe']('Reminder\x20rule\x20identifier.'),'stage':z['enum'](['browse','evaluate','preorder','in_progress','complete','after_sale'])['describe']('Workflow\x20stage\x20this\x20reminder\x20belongs\x20to.'),'priority':z['enum'](['required','recommended','info','reminder'])['describe']('Priority:\x20required\x20=\x20blocking,\x20recommended\x20=\x20strongly\x20suggested.'),'message':z['string']()['describe']('Human-readable\x20reminder\x20message.'),'action':z['string']()['optional']()['describe']('Suggested\x20follow-up\x20action,\x20if\x20any.')}),IndustryEnumSchema=z['enum'](['freelance','rental','education','travel','subscription','retail']),PreorderPreferencesInputSchema=z['object']({'price_sensitivity':z['enum'](['low','medium','high'])['optional'](),'budget_range':z['object']({'min':z['union']([z['string'](),z['number']()])['describe']('Budget\x20lower\x20bound\x20(smallest\x20token\x20unit).'),'max':z['union']([z['string'](),z['number']()])['describe']('Budget\x20upper\x20bound\x20(smallest\x20token\x20unit).')})['strict']()['optional'](),'value_orientation':z['enum'](['quality','balanced','budget'])['optional'](),'discount_sensitivity':z['number']()['min'](0x0)['max'](0x1)['optional'](),'delivery_speed_priority':z['enum'](['urgent','normal','flexible'])['optional'](),'max_acceptable_cycle':z['number']()['nonnegative']()['describe']('Max\x20acceptable\x20delivery\x20cycle\x20(days).')['optional'](),'response_time_expectation':z['number']()['nonnegative']()['describe']('Expected\x20merchant\x20response\x20time\x20(hours).')['optional'](),'merchant_preference':z['enum'](['established','emerging','neutral'])['optional'](),'min_order_history':z['number']()['int']()['nonnegative']()['optional'](),'bargain_hunting':z['number']()['min'](0x0)['max'](0x1)['optional'](),'reward_seeking':z['boolean']()['optional'](),'referral_participation':z['boolean']()['optional'](),'communication_style':z['enum'](['formal','casual','friendly'])['optional'](),'transparency_demand':z['number']()['min'](0x0)['max'](0x1)['optional'](),'after_sales_expectation':z['enum'](['full','basic','minimal'])['optional'](),'risk_appetite':z['enum'](['conservative','balanced','aggressive'])['optional'](),'min_trust_score':z['number']()['min'](0x0)['max'](0x64)['optional'](),'require_arbitration':z['boolean']()['optional'](),'require_compensation_fund':z['boolean']()['optional'](),'preferred_industries':z['array'](z['string']())['optional'](),'preferred_tokens':z['array'](z['string']())['optional'](),'preferred_merchants':z['array'](z['string']())['optional']()})['strict'](),UserMetricInputSchema=z['object']({'name':z['string']()['describe']('Stable\x20metric\x20identifier\x20(e.g.\x20\x27merchant_tenure_days\x27).'),'label':z['string']()['describe']('Human-readable\x20label\x20shown\x20to\x20the\x20user.'),'evaluator':z['enum'](['threshold','ratio','boolean','presence','regex_match','custom_query'])['describe']('How\x20the\x20metric\x20is\x20evaluated\x20against\x20the\x20puzzle\x20context.'),'params':z['object']({'path':z['string']()['optional']()['describe']('JSON\x20path\x20in\x20the\x20raw\x20data\x20context\x20(e.g.\x20\x27service.name\x27).'),'threshold':z['union']([z['string'](),z['number']()])['optional']()['describe']('Threshold\x20value\x20(threshold/presence\x20evaluators).'),'invert':z['boolean']()['optional']()['describe']('true:\x20pass\x20when\x20value\x20<=\x20threshold.'),'min':z['number']()['optional']()['describe']('Min\x20ratio\x20(ratio\x20evaluator).'),'max':z['number']()['optional']()['describe']('Max\x20ratio\x20(ratio\x20evaluator).'),'pattern':z['string']()['optional']()['describe']('Regex\x20pattern\x20(regex_match\x20evaluator).'),'query_key':z['string']()['optional']()['describe']('Custom\x20query\x20identifier\x20(custom_query\x20evaluator).')})['strict'](),'weight':z['number']()['min'](0x0)['max'](0x1)['describe']('Relative\x20weight\x20vs\x20other\x20user\x20metrics\x20(0-1).'),'advice_on_fail':z['string']()['optional'](),'advice_on_pass':z['string']()['optional']()})['strict'](),UserMetricsInputSchema=z['object']({'metrics':z['array'](UserMetricInputSchema)['min'](0x1)['describe']('User-defined\x20scoring\x20factors.'),'adjustment_cap':z['number']()['positive']()['optional']()['describe']('Global\x20cap\x20for\x20the\x20composite\x20confidence\x20adjustment\x20(default\x20±10\x20points).')})['strict']();export const TrustScoreInputSchema=z['object']({'service':NameOrAddressSchema['describe']('Service\x20object\x20ID\x20or\x20local_mark\x20name\x20to\x20evaluate.\x20'+'Must\x20reference\x20an\x20existing\x20Service\x20object\x20on-chain.'),'order_amount':z['union']([z['string'](),z['number']()])['optional']()['describe']('Optional\x20order\x20amount\x20(in\x20smallest\x20token\x20unit,\x20e.g.\x202000000000\x20for\x202\x20WOW).\x20'+'Used\x20for\x20fund-safety\x20dimension\x20risk\x20assessment.\x20'+'If\x20omitted,\x20the\x20first\x20active\x20sale\x20price\x20of\x20the\x20service\x20is\x20used.'),'depth':z['enum'](['browse','evaluate','preorder'])['optional']()['describe']('InfoPuzzle\x20collection\x20depth.\x20'+'browse:\x20only\x20Service\x20basics\x20+\x20trust\x20score;\x20'+'evaluate\x20(default):\x20+\x20workflow/fund/trust\x20dimensions\x20risk\x20assessment;\x20'+'preorder:\x20+\x20full\x20preorder\x20advice\x20(confidence,\x20game\x20strategies,\x20preference\x20match,\x20industry\x20risks,\x20blocking\x20reminders).'),'industry':IndustryEnumSchema['optional']()['describe']('Explicit\x20industry\x20override\x20for\x20industry-specific\x20risk\x20checks\x20and\x20needs\x20matrix.\x20'+'If\x20omitted\x20at\x20depth=preorder,\x20the\x20industry\x20is\x20inferred\x20from\x20the\x20puzzle.'),'preferences':PreorderPreferencesInputSchema['optional']()['describe']('Optional\x20user\x20preference\x20overrides\x20(partial;\x20merged\x20over\x20profile-derived\x20defaults).\x20'+'Only\x20used\x20at\x20depth=preorder\x20for\x20preference\x20matching\x20and\x20pref-aware\x20strategies.'),'user_metrics':UserMetricsInputSchema['optional']()['describe']('Optional\x20user-controllable\x20scoring\x20factors.\x20'+'Evaluated\x20at\x20depth=preorder;\x20the\x20composite\x20adjustment\x20(±cap)\x20nudges\x20the\x20order\x20confidence\x20score.'),'network':z['string']()['optional']()['describe']('Network\x20override\x20(e.g.\x20\x27mainnet\x27,\x20\x27testnet\x27).\x20If\x20omitted,\x20uses\x20default.'),'no_cache':z['boolean']()['optional']()['describe']('Skip\x20object\x20cache\x20and\x20force\x20a\x20fresh\x20on-chain\x20query.'),'compare_with':z['array'](z['string']())['min'](0x1)['max'](0x9)['optional']()['describe']('Optional\x20candidate\x20Service\x20addresses/LocalMark\x20names\x20(1-9)\x20for\x20deterministic\x20multi-service\x20comparison.\x20'+'Only\x20used\x20at\x20depth=preorder.\x20The\x20SAME\x20preferences/user_metrics/industry\x20are\x20applied\x20uniformly\x20to\x20all\x20'+'candidates;\x20output\x20gains\x20a\x20`comparison`\x20block\x20with\x20per-metric\x20bests\x20(NO\x20overall\x20ranking\x20—\x20the\x20buyer\x20decides).')})['strict']();export const TrustScoreOutputSchema=z['object']({'result':z['object']({'service_id':z['string']()['describe']('The\x20Service\x20object\x20ID\x20or\x20local_mark\x20that\x20was\x20evaluated.'),'service_name':z['string']()['describe']('Service\x20display\x20name\x20(falls\x20back\x20to\x20service_id\x20if\x20unnamed).'),'service_basics':z['object']({'bPublished':z['boolean']()['describe']('Whether\x20the\x20Service\x20is\x20published\x20(open\x20for\x20orders).'),'bPaused':z['boolean']()['describe']('Whether\x20the\x20Service\x20is\x20temporarily\x20paused.'),'sales_count':z['number']()['int']()['nonnegative']()['describe']('Number\x20of\x20active\x20(non-suspended)\x20sale\x20entries.'),'has_machine':z['boolean']()['describe']('Whether\x20a\x20Machine\x20workflow\x20is\x20attached.'),'has_buy_guard':z['boolean']()['describe']('Whether\x20a\x20buy-side\x20Guard\x20is\x20configured.'),'has_um_contact':z['boolean']()['describe']('Whether\x20a\x20Messenger\x20(um)\x20contact\x20is\x20configured.'),'arbitrations_count':z['number']()['int']()['nonnegative']()['describe']('Number\x20of\x20arbitration\x20entries\x20attached\x20to\x20the\x20Service.')})['describe']('Service\x20snapshot\x20—\x20basic\x20on-chain\x20state.'),'trust_score':z['object']({'score':z['number']()['min'](0x0)['max'](0x64)['describe']('Overall\x20trust\x20score\x20(0-100,\x20higher\x20=\x20more\x20trustworthy).'),'level':z['enum'](['high_risk','caution','moderate','trusted'])['describe']('Trust\x20level\x20label\x20derived\x20from\x20the\x20score.'),'summary':z['string']()['describe']('One-line\x20human-readable\x20trust\x20summary.'),'warnings':z['array'](z['string']())['describe']('Trust\x20warnings\x20(e.g.\x20low\x20arbitration\x20dimension\x20score).'),'breakdown':z['array'](z['object']({'score':z['number']()['describe']('Dimension\x20score\x20achieved.'),'maxScore':z['number']()['describe']('Dimension\x20max\x20possible\x20score.'),'description':z['string']()['describe']('Dimension\x20name\x20/\x20description.'),'humanReadable':z['string']()['describe']('Human-readable\x20dimension\x20explanation.')}))['describe']('5-dimension\x20breakdown:\x20arbitration\x20/\x20reviews\x20/\x20fulfillment\x20/\x20fund_safety\x20/\x20transparency.')})['describe']('ServiceTrustScore\x20—\x200-100\x20score\x20across\x205\x20trust\x20dimensions.'),'order_amount':z['string']()['describe']('Order\x20amount\x20used\x20for\x20fund-safety\x20assessment,\x20in\x20smallest\x20token\x20unit\x20(bigint\x20as\x20string).'),'depth':z['enum'](['browse','evaluate','preorder'])['describe']('Actual\x20InfoPuzzle\x20collection\x20depth\x20used\x20(defaults\x20to\x20\x27evaluate\x27).'),'risk_score':z['object']({'total':z['number']()['min'](0x0)['max'](0x64)['describe']('Overall\x20risk\x20score\x20(0-100,\x20higher\x20=\x20riskier).'),'level':z['enum'](['low','medium_low','medium_high','high'])['describe']('Risk\x20level\x20label\x20derived\x20from\x20the\x20total\x20score.'),'red_flags':z['array'](z['string']())['describe']('Critical\x20risk\x20red\x20flags\x20detected.'),'advice':z['array'](z['string']())['describe']('Risk\x20mitigation\x20advice.'),'dimensions':z['array'](z['object']({'name':z['enum'](['workflow','fund','trust','behavior'])['describe']('Risk\x20dimension\x20name.'),'score':z['number']()['describe']('Dimension\x20score\x20achieved.'),'max_score':z['number']()['describe']('Dimension\x20max\x20possible\x20score.'),'checks':z['array'](RiskCheckOutputSchema)['describe']('Individual\x20risk\x20checks\x20within\x20this\x20dimension.')}))['describe']('4-dimension\x20breakdown:\x20workflow\x20/\x20fund\x20/\x20trust\x20/\x20behavior.')})['optional']()['describe']('RiskScore\x20—\x20present\x20only\x20when\x20depth\x20>=\x20\x27evaluate\x27.'),'info_puzzle':z['object']({'completeness':z['number']()['min'](0x0)['max'](0x1)['describe']('InfoPuzzle\x20completeness\x20ratio\x20(0-1).'),'gaps':z['array'](z['string']())['describe']('Missing\x20key\x20puzzle\x20pieces.'),'assembled_at':z['number']()['describe']('Assembly\x20timestamp\x20(ms\x20since\x20epoch).')})['optional']()['describe']('InfoPuzzle\x20summary\x20—\x20present\x20only\x20when\x20depth\x20>=\x20\x27evaluate\x27.'),'preorder_advice':z['object']({'confidence':z['object']({'score':z['number']()['min'](0x0)['max'](0x64)['describe']('Composite\x20order\x20confidence\x20(0-100,\x20higher\x20=\x20safer\x20to\x20order).'),'base':z['number']()['describe']('Base\x20confidence\x20=\x20100\x20-\x20risk.total.'),'user_adjustment':z['number']()['describe']('User-controllable\x20adjustment\x20from\x20user_metrics\x20(±cap).'),'preference_nudge':z['number']()['describe']('Preference-match\x20nudge\x20(±5,\x20only\x20when\x20preferences\x20were\x20provided).'),'explanation':z['string']()['describe']('Transparent\x20breakdown\x20of\x20the\x20confidence\x20components.')})['describe']('ConfidenceScore\x20—\x20user-controllable\x20composite\x20order\x20confidence.'),'industry':IndustryEnumSchema['optional']()['describe']('Industry\x20used\x20for\x20the\x20industry-specific\x20risk\x20checks\x20(explicit\x20input\x20or\x20inferred).'),'strategies':z['array'](z['object']({'scenario':z['enum'](['info_asymmetry','fund_safety','refund_dispute','arbitration_fairness','pricing','delivery_sla','quality_verification','after_sales'])['describe']('Game\x20scenario\x20detected\x20from\x20the\x20puzzle.'),'merchant_tactic':z['string']()['describe']('Merchant\x27s\x20potential\x20tactic\x20in\x20this\x20scenario.'),'user_strategy':z['string']()['describe']('Recommended\x20user-side\x20strategy\x20(protection/mitigation).'),'nash_equilibrium':z['string']()['describe']('Win-win\x20equilibrium\x20the\x20strategy\x20pushes\x20toward.'),'confidence':z['number']()['min'](0x0)['max'](0x1)['describe']('Strategy\x20confidence\x20(0-1).'),'fallback':z['string']()['optional']()['describe']('Alternative\x20when\x20the\x20user\x20rejects\x20the\x20main\x20strategy.'),'rationale':z['string']()['describe']('Trigger-condition\x20explanation\x20from\x20puzzle\x20evidence.')}))['describe']('Top\x20merchant-vs-user\x20game\x20strategies\x20(user\x20side,\x20max\x203).'),'preference_match':z['object']({'score':z['number']()['min'](0x0)['max'](0x64)['describe']('Preference\x20match\x20score\x20(0-100).'),'matches':z['array'](z['string']())['describe']('Aspects\x20matching\x20the\x20user\x27s\x20preferences.'),'mismatches':z['array'](z['string']())['describe']('Aspects\x20mismatching\x20the\x20user\x27s\x20preferences.'),'warnings':z['array'](z['string']())['describe']('Match\x20warnings\x20(e.g.\x20budget\x20stretch).')})['optional']()['describe']('PreferenceMatchResult\x20—\x20present\x20when\x20preferences\x20(input\x20or\x20profile)\x20were\x20available.'),'preference_issues':z['array'](z['string']())['optional']()['describe']('Validation\x20issues\x20found\x20in\x20the\x20merged\x20preferences\x20(e.g.\x20budget\x20min\x20>\x20max).'),'industry_risks':z['object']({'score_adjustment':z['number']()['describe']('Industry\x20risk\x20adjustment\x20applied\x20to\x20the\x20base\x20risk\x20score\x20(-10\x20to\x20+10).'),'summary':z['string']()['describe']('Industry\x20risk\x20assessment\x20summary.'),'checks':z['array'](RiskCheckOutputSchema)['describe']('Industry-specific\x20risk\x20checks.'),'unmet_needs':z['array'](z['object']({'id':z['string']()['describe']('Need\x20identifier.'),'tier':z['enum'](['common','personalized','advanced'])['describe']('Need\x20tier.'),'description':z['string']()['describe']('Need\x20description.'),'advice':z['string']()['optional']()['describe']('Advice\x20for\x20fulfilling\x20the\x20need.')}))['describe']('Industry\x20needs\x20not\x20satisfied\x20by\x20this\x20Service.')})['optional']()['describe']('IndustryRiskResult\x20—\x20industry\x20pain-point\x20checks\x20(needs\x20met\x20/\x20risks\x20triggered).'),'reminders':z['array'](ReminderOutputSchema)['describe']('Transaction-safety\x20reminders\x20at\x20the\x20preorder\x20stage\x20(sorted,\x20capped).'),'blocking_reminders':z['array'](ReminderOutputSchema)['describe']('Blocking\x20(priority=required)\x20reminders\x20—\x20resolve\x20these\x20before\x20ordering.'),'summary':z['string']()['describe']('AI-ready\x20paragraph\x20summarizing\x20the\x20whole\x20preorder\x20report.')})['optional']()['describe']('PreorderAdvice\x20(GLM6/94\x20§3)\x20—\x20present\x20only\x20when\x20depth\x20=\x20\x27preorder\x27.\x20'+'AI\x20presents\x20evidence\x20and\x20options;\x20the\x20USER\x20decides\x20whether\x20to\x20order.'),'comparison':z['object']({'rows':z['array'](z['object']({'service_id':z['string'](),'service_name':z['string'](),'error':z['string']()['optional']()['describe']('Per-service\x20evaluation\x20failure\x20(row\x20excluded\x20from\x20best-per-metric).'),'industry':IndustryEnumSchema['optional'](),'confidence':z['number']()['optional']()['describe']('Order\x20confidence\x200-100\x20(higher\x20=\x20safer).'),'risk_total':z['number']()['optional']()['describe']('Risk\x20score\x200-100\x20(lower\x20=\x20safer).'),'risk_level':z['string']()['optional'](),'trust_score':z['number']()['optional']()['describe']('Trust\x20score\x200-100\x20(higher\x20=\x20more\x20trustworthy).'),'trust_level':z['string']()['optional'](),'preference_match':z['number']()['optional']()['describe']('Preference\x20match\x200-100\x20(higher\x20=\x20better\x20fit).'),'reputation_like_ratio':z['number']()['optional']()['describe']('likes/(likes+dislikes);\x201\x20when\x20no\x20votes.'),'reputation_votes':z['number']()['optional'](),'red_flags_count':z['number']()['optional'](),'blocking_reminders_count':z['number']()['optional'](),'info_gaps_count':z['number']()['optional']()})['strict']())['describe']('One\x20row\x20per\x20evaluated\x20service\x20(primary\x20first,\x20then\x20compare_with\x20candidates).'),'best_per_metric':z['record'](z['string'](),z['array'](z['string']()))['describe']('metric\x20name\x20→\x20service_ids\x20with\x20the\x20best\x20value\x20(ties\x20all\x20listed).\x20Per-metric\x20ONLY.'),'evaluated_metrics':z['array'](z['string']())['describe']('Metrics\x20actually\x20compared\x20(skipped\x20when\x20fewer\x20than\x202\x20rows\x20have\x20data).'),'note':z['string']()['describe']('Neutrality\x20note:\x20no\x20overall\x20ranking;\x20metric\x20weights\x20belong\x20to\x20the\x20buyer.')})['strict']()['optional']()['describe']('Deterministic\x20multi-service\x20comparison\x20(GLM6/94\x20L6)\x20—\x20present\x20only\x20when\x20depth=\x27preorder\x27\x20'+'and\x20compare_with\x20is\x20provided.\x20Per-metric\x20bests\x20ONLY,\x20no\x20overall\x20ranking\x20—\x20the\x20buyer\x20decides.')})['describe']('Trust\x20score\x20result.\x20Contains:\x20trust_score\x20(ServiceTrustScore),\x20'+'risk_score\x20(RiskScore,\x20when\x20depth\x20>=\x20evaluate),\x20info_puzzle\x20summary,\x20'+'preorder_advice\x20(PreorderAdvice,\x20when\x20depth\x20=\x20preorder),\x20'+'comparison\x20(PreorderComparison,\x20when\x20depth\x20=\x20preorder\x20and\x20compare_with\x20given),\x20'+'and\x20service_basics\x20snapshot.')});
|
|
1
|
+
import{z}from'zod';import{NameOrAddressSchema}from'../common/index.js';const RiskCheckOutputSchema=z['object']({'id':z['string']()['describe']('Check\x20identifier.'),'dimension':z['enum'](['workflow','fund','trust','behavior'])['describe']('Dimension\x20this\x20check\x20belongs\x20to.'),'description':z['string']()['describe']('Check\x20description.'),'weight':z['number']()['describe']('Check\x20weight\x20within\x20its\x20dimension\x20(percentage).'),'passed':z['boolean']()['describe']('Whether\x20the\x20check\x20passed.'),'advice':z['string']()['optional']()['describe']('Advice\x20when\x20the\x20check\x20failed.')}),ReminderOutputSchema=z['object']({'id':z['string']()['describe']('Reminder\x20rule\x20identifier.'),'stage':z['enum'](['browse','evaluate','preorder','in_progress','complete','after_sale'])['describe']('Workflow\x20stage\x20this\x20reminder\x20belongs\x20to.'),'priority':z['enum'](['required','recommended','info','reminder'])['describe']('Priority:\x20required\x20=\x20blocking,\x20recommended\x20=\x20strongly\x20suggested.'),'message':z['string']()['describe']('Human-readable\x20reminder\x20message.'),'action':z['string']()['optional']()['describe']('Suggested\x20follow-up\x20action,\x20if\x20any.')}),IndustryEnumSchema=z['enum'](['freelance','rental','education','travel','subscription','retail']),PreorderPreferencesInputSchema=z['object']({'price_sensitivity':z['enum'](['low','medium','high'])['optional'](),'budget_range':z['object']({'min':z['union']([z['string'](),z['number']()])['describe']('Budget\x20lower\x20bound\x20(smallest\x20token\x20unit).'),'max':z['union']([z['string'](),z['number']()])['describe']('Budget\x20upper\x20bound\x20(smallest\x20token\x20unit).')})['strict']()['optional'](),'value_orientation':z['enum'](['quality','balanced','budget'])['optional'](),'discount_sensitivity':z['number']()['min'](0x0)['max'](0x1)['optional'](),'delivery_speed_priority':z['enum'](['urgent','normal','flexible'])['optional'](),'max_acceptable_cycle':z['number']()['nonnegative']()['describe']('Max\x20acceptable\x20delivery\x20cycle\x20(days).')['optional'](),'response_time_expectation':z['number']()['nonnegative']()['describe']('Expected\x20merchant\x20response\x20time\x20(hours).')['optional'](),'merchant_preference':z['enum'](['established','emerging','neutral'])['optional'](),'min_order_history':z['number']()['int']()['nonnegative']()['optional'](),'bargain_hunting':z['number']()['min'](0x0)['max'](0x1)['optional'](),'reward_seeking':z['boolean']()['optional'](),'referral_participation':z['boolean']()['optional'](),'communication_style':z['enum'](['formal','casual','friendly'])['optional'](),'transparency_demand':z['number']()['min'](0x0)['max'](0x1)['optional'](),'after_sales_expectation':z['enum'](['full','basic','minimal'])['optional'](),'risk_appetite':z['enum'](['conservative','balanced','aggressive'])['optional'](),'min_trust_score':z['number']()['min'](0x0)['max'](0x64)['optional'](),'require_arbitration':z['boolean']()['optional'](),'require_compensation_fund':z['boolean']()['optional'](),'preferred_industries':z['array'](z['string']())['optional'](),'preferred_tokens':z['array'](z['string']())['optional'](),'preferred_merchants':z['array'](z['string']())['optional']()})['strict'](),UserMetricInputSchema=z['object']({'name':z['string']()['describe']('Stable\x20metric\x20identifier\x20(e.g.\x20\x27merchant_tenure_days\x27).'),'label':z['string']()['describe']('Human-readable\x20label\x20shown\x20to\x20the\x20user.'),'evaluator':z['enum'](['threshold','ratio','boolean','presence','regex_match','custom_query'])['describe']('How\x20the\x20metric\x20is\x20evaluated\x20against\x20the\x20puzzle\x20context.'),'params':z['object']({'path':z['string']()['optional']()['describe']('JSON\x20path\x20in\x20the\x20raw\x20data\x20context\x20(e.g.\x20\x27service.name\x27).'),'threshold':z['union']([z['string'](),z['number']()])['optional']()['describe']('Threshold\x20value\x20(threshold/presence\x20evaluators).'),'invert':z['boolean']()['optional']()['describe']('true:\x20pass\x20when\x20value\x20<=\x20threshold.'),'min':z['number']()['optional']()['describe']('Min\x20ratio\x20(ratio\x20evaluator).'),'max':z['number']()['optional']()['describe']('Max\x20ratio\x20(ratio\x20evaluator).'),'pattern':z['string']()['optional']()['describe']('Regex\x20pattern\x20(regex_match\x20evaluator).'),'query_key':z['string']()['optional']()['describe']('Custom\x20query\x20identifier\x20(custom_query\x20evaluator).')})['strict'](),'weight':z['number']()['min'](0x0)['max'](0x1)['describe']('Relative\x20weight\x20vs\x20other\x20user\x20metrics\x20(0-1).'),'advice_on_fail':z['string']()['optional'](),'advice_on_pass':z['string']()['optional']()})['strict'](),UserMetricsInputSchema=z['object']({'metrics':z['array'](UserMetricInputSchema)['min'](0x1)['describe']('User-defined\x20scoring\x20factors.'),'adjustment_cap':z['number']()['positive']()['optional']()['describe']('Global\x20cap\x20for\x20the\x20composite\x20confidence\x20adjustment\x20(default\x20±10\x20points).')})['strict']();export const TrustScoreInputSchema=z['object']({'service':NameOrAddressSchema['describe']('Service\x20object\x20ID\x20or\x20local_mark\x20name\x20to\x20evaluate.\x20'+'Must\x20reference\x20an\x20existing\x20Service\x20object\x20on-chain.'),'order_amount':z['union']([z['string'](),z['number']()])['optional']()['describe']('Optional\x20order\x20amount\x20(in\x20smallest\x20token\x20unit,\x20e.g.\x202000000000\x20for\x202\x20WOW).\x20'+'Used\x20for\x20fund-safety\x20dimension\x20risk\x20assessment.\x20'+'If\x20omitted,\x20the\x20first\x20active\x20sale\x20price\x20of\x20the\x20service\x20is\x20used.'),'depth':z['enum'](['browse','evaluate','preorder'])['optional']()['describe']('InfoPuzzle\x20collection\x20depth.\x20'+'browse:\x20only\x20Service\x20basics\x20+\x20trust\x20score;\x20'+'evaluate\x20(default):\x20+\x20workflow/fund/trust\x20dimensions\x20risk\x20assessment;\x20'+'preorder:\x20+\x20full\x20preorder\x20advice\x20(confidence,\x20game\x20strategies,\x20preference\x20match,\x20industry\x20risks,\x20blocking\x20reminders).'),'industry':IndustryEnumSchema['optional']()['describe']('Explicit\x20industry\x20override\x20for\x20industry-specific\x20risk\x20checks\x20and\x20needs\x20matrix.\x20'+'If\x20omitted\x20at\x20depth=preorder,\x20the\x20industry\x20is\x20inferred\x20from\x20the\x20puzzle.'),'preferences':PreorderPreferencesInputSchema['optional']()['describe']('Optional\x20user\x20preference\x20overrides\x20(partial;\x20merged\x20over\x20profile-derived\x20defaults).\x20'+'Only\x20used\x20at\x20depth=preorder\x20for\x20preference\x20matching\x20and\x20pref-aware\x20strategies.'),'user_metrics':UserMetricsInputSchema['optional']()['describe']('Optional\x20user-controllable\x20scoring\x20factors.\x20'+'Evaluated\x20at\x20depth=preorder;\x20the\x20composite\x20adjustment\x20(±cap)\x20nudges\x20the\x20order\x20confidence\x20score.'),'trust_weights':z['object']({'arbitration':z['number']()['min'](0x0)['optional']()['describe']('Weight\x20for\x20the\x20arbitration\x20dimension\x20(default\x2020).'),'reviews':z['number']()['min'](0x0)['optional']()['describe']('Weight\x20for\x20the\x20reviews\x20dimension\x20(default\x2035).'),'fulfillment':z['number']()['min'](0x0)['optional']()['describe']('Weight\x20for\x20the\x20fulfillment\x20dimension\x20(default\x2020).'),'fund_safety':z['number']()['min'](0x0)['optional']()['describe']('Weight\x20for\x20the\x20fund_safety\x20dimension\x20(default\x2015).'),'transparency':z['number']()['min'](0x0)['optional']()['describe']('Weight\x20for\x20the\x20transparency\x20dimension\x20(default\x2010).')})['strict']()['optional']()['describe']('Optional\x20per-dimension\x20weight\x20overrides\x20for\x20the\x20trust\x20score\x20(K3\x2022\x20§4.3).\x20'+'User-participatory:\x20re-weight\x20the\x205\x20trust\x20dimensions;\x20the\x20engine\x20renormalizes\x20to\x20100.\x20'+'Highest-priority\x20channel\x20for\x20a\x20user\x20to\x20shape\x20how\x20WoWok\x20evaluates\x20trust.'),'network':z['string']()['optional']()['describe']('Network\x20override\x20(e.g.\x20\x27mainnet\x27,\x20\x27testnet\x27).\x20If\x20omitted,\x20uses\x20default.'),'no_cache':z['boolean']()['optional']()['describe']('Skip\x20object\x20cache\x20and\x20force\x20a\x20fresh\x20on-chain\x20query.'),'compare_with':z['array'](z['string']())['min'](0x1)['max'](0x9)['optional']()['describe']('Optional\x20candidate\x20Service\x20addresses/LocalMark\x20names\x20(1-9)\x20for\x20deterministic\x20multi-service\x20comparison.\x20'+'Only\x20used\x20at\x20depth=preorder.\x20The\x20SAME\x20preferences/user_metrics/industry\x20are\x20applied\x20uniformly\x20to\x20all\x20'+'candidates;\x20output\x20gains\x20a\x20`comparison`\x20block\x20with\x20per-metric\x20bests\x20(NO\x20overall\x20ranking\x20—\x20the\x20buyer\x20decides).')})['strict']();export const TrustScoreOutputSchema=z['object']({'result':z['object']({'service_id':z['string']()['describe']('The\x20Service\x20object\x20ID\x20or\x20local_mark\x20that\x20was\x20evaluated.'),'service_name':z['string']()['describe']('Service\x20display\x20name\x20(falls\x20back\x20to\x20service_id\x20if\x20unnamed).'),'service_basics':z['object']({'bPublished':z['boolean']()['describe']('Whether\x20the\x20Service\x20is\x20published\x20(open\x20for\x20orders).'),'bPaused':z['boolean']()['describe']('Whether\x20the\x20Service\x20is\x20temporarily\x20paused.'),'sales_count':z['number']()['int']()['nonnegative']()['describe']('Number\x20of\x20active\x20(non-suspended)\x20sale\x20entries.'),'has_machine':z['boolean']()['describe']('Whether\x20a\x20Machine\x20workflow\x20is\x20attached.'),'has_buy_guard':z['boolean']()['describe']('Whether\x20a\x20buy-side\x20Guard\x20is\x20configured.'),'has_um_contact':z['boolean']()['describe']('Whether\x20a\x20Messenger\x20(um)\x20contact\x20is\x20configured.'),'arbitrations_count':z['number']()['int']()['nonnegative']()['describe']('Number\x20of\x20arbitration\x20entries\x20attached\x20to\x20the\x20Service.')})['describe']('Service\x20snapshot\x20—\x20basic\x20on-chain\x20state.'),'trust_score':z['object']({'score':z['number']()['min'](0x0)['max'](0x64)['describe']('Overall\x20trust\x20score\x20(0-100,\x20higher\x20=\x20more\x20trustworthy).'),'level':z['enum'](['high_risk','caution','moderate','trusted'])['describe']('Trust\x20level\x20label\x20derived\x20from\x20the\x20score.'),'summary':z['string']()['describe']('One-line\x20human-readable\x20trust\x20summary.'),'warnings':z['array'](z['string']())['describe']('Trust\x20warnings\x20(e.g.\x20low\x20arbitration\x20dimension\x20score).'),'findings':z['array'](z['object']({'kind':z['string']()['describe']('Finding\x20kind\x20(e.g.\x20fund_safety_missing,\x20shell_merchant).'),'severity':z['enum'](['critical','warning','info'])['describe']('Finding\x20severity.'),'message':z['string']()['describe']('Human-readable\x20finding\x20message.'),'deduction':z['number']()['describe']('Score\x20deduction\x20applied\x20to\x20the\x20additive\x20total\x20(0-100).')}))['describe']('Major-recognition\x20findings\x20(recent\x20arbitration\x20payouts,\x20verified\x20dislike,\x20shell\x20merchant,\x20…)\x20—\x20independent\x20of\x20the\x20additive\x20score.'),'breakdown':z['array'](z['object']({'score':z['number']()['describe']('Dimension\x20score\x20achieved.'),'maxScore':z['number']()['describe']('Dimension\x20max\x20possible\x20score.'),'description':z['string']()['describe']('Dimension\x20name\x20/\x20description.'),'humanReadable':z['string']()['describe']('Human-readable\x20dimension\x20explanation.')}))['describe']('5-dimension\x20breakdown:\x20arbitration\x20/\x20reviews\x20/\x20fulfillment\x20/\x20fund_safety\x20/\x20transparency.')})['describe']('ServiceTrustScore\x20—\x200-100\x20score\x20across\x205\x20trust\x20dimensions.'),'order_amount':z['string']()['describe']('Order\x20amount\x20used\x20for\x20fund-safety\x20assessment,\x20in\x20smallest\x20token\x20unit\x20(bigint\x20as\x20string).'),'depth':z['enum'](['browse','evaluate','preorder'])['describe']('Actual\x20InfoPuzzle\x20collection\x20depth\x20used\x20(defaults\x20to\x20\x27evaluate\x27).'),'risk_score':z['object']({'total':z['number']()['min'](0x0)['max'](0x64)['describe']('Overall\x20risk\x20score\x20(0-100,\x20higher\x20=\x20riskier).'),'level':z['enum'](['low','medium_low','medium_high','high'])['describe']('Risk\x20level\x20label\x20derived\x20from\x20the\x20total\x20score.'),'red_flags':z['array'](z['string']())['describe']('Critical\x20risk\x20red\x20flags\x20detected.'),'advice':z['array'](z['string']())['describe']('Risk\x20mitigation\x20advice.'),'dimensions':z['array'](z['object']({'name':z['enum'](['workflow','fund','trust','behavior'])['describe']('Risk\x20dimension\x20name.'),'score':z['number']()['describe']('Dimension\x20score\x20achieved.'),'max_score':z['number']()['describe']('Dimension\x20max\x20possible\x20score.'),'checks':z['array'](RiskCheckOutputSchema)['describe']('Individual\x20risk\x20checks\x20within\x20this\x20dimension.')}))['describe']('4-dimension\x20breakdown:\x20workflow\x20/\x20fund\x20/\x20trust\x20/\x20behavior.')})['optional']()['describe']('RiskScore\x20—\x20present\x20only\x20when\x20depth\x20>=\x20\x27evaluate\x27.'),'info_puzzle':z['object']({'completeness':z['number']()['min'](0x0)['max'](0x1)['describe']('InfoPuzzle\x20completeness\x20ratio\x20(0-1).'),'gaps':z['array'](z['string']())['describe']('Missing\x20key\x20puzzle\x20pieces.'),'assembled_at':z['number']()['describe']('Assembly\x20timestamp\x20(ms\x20since\x20epoch).')})['optional']()['describe']('InfoPuzzle\x20summary\x20—\x20present\x20only\x20when\x20depth\x20>=\x20\x27evaluate\x27.'),'preorder_advice':z['object']({'confidence':z['object']({'score':z['number']()['min'](0x0)['max'](0x64)['describe']('Composite\x20order\x20confidence\x20(0-100,\x20higher\x20=\x20safer\x20to\x20order).'),'base':z['number']()['describe']('Base\x20confidence\x20=\x20100\x20-\x20risk.total.'),'user_adjustment':z['number']()['describe']('User-controllable\x20adjustment\x20from\x20user_metrics\x20(±cap).'),'preference_nudge':z['number']()['describe']('Preference-match\x20nudge\x20(±5,\x20only\x20when\x20preferences\x20were\x20provided).'),'explanation':z['string']()['describe']('Transparent\x20breakdown\x20of\x20the\x20confidence\x20components.')})['describe']('ConfidenceScore\x20—\x20user-controllable\x20composite\x20order\x20confidence.'),'industry':IndustryEnumSchema['optional']()['describe']('Industry\x20used\x20for\x20the\x20industry-specific\x20risk\x20checks\x20(explicit\x20input\x20or\x20inferred).'),'strategies':z['array'](z['object']({'scenario':z['enum'](['info_asymmetry','fund_safety','refund_dispute','arbitration_fairness','pricing','delivery_sla','quality_verification','after_sales'])['describe']('Game\x20scenario\x20detected\x20from\x20the\x20puzzle.'),'merchant_tactic':z['string']()['describe']('Merchant\x27s\x20potential\x20tactic\x20in\x20this\x20scenario.'),'user_strategy':z['string']()['describe']('Recommended\x20user-side\x20strategy\x20(protection/mitigation).'),'nash_equilibrium':z['string']()['describe']('Win-win\x20equilibrium\x20the\x20strategy\x20pushes\x20toward.'),'confidence':z['number']()['min'](0x0)['max'](0x1)['describe']('Strategy\x20confidence\x20(0-1).'),'fallback':z['string']()['optional']()['describe']('Alternative\x20when\x20the\x20user\x20rejects\x20the\x20main\x20strategy.'),'rationale':z['string']()['describe']('Trigger-condition\x20explanation\x20from\x20puzzle\x20evidence.')}))['describe']('Top\x20merchant-vs-user\x20game\x20strategies\x20(user\x20side,\x20max\x203).'),'preference_match':z['object']({'score':z['number']()['min'](0x0)['max'](0x64)['describe']('Preference\x20match\x20score\x20(0-100).'),'matches':z['array'](z['string']())['describe']('Aspects\x20matching\x20the\x20user\x27s\x20preferences.'),'mismatches':z['array'](z['string']())['describe']('Aspects\x20mismatching\x20the\x20user\x27s\x20preferences.'),'warnings':z['array'](z['string']())['describe']('Match\x20warnings\x20(e.g.\x20budget\x20stretch).')})['optional']()['describe']('PreferenceMatchResult\x20—\x20present\x20when\x20preferences\x20(input\x20or\x20profile)\x20were\x20available.'),'preference_issues':z['array'](z['string']())['optional']()['describe']('Validation\x20issues\x20found\x20in\x20the\x20merged\x20preferences\x20(e.g.\x20budget\x20min\x20>\x20max).'),'industry_risks':z['object']({'score_adjustment':z['number']()['describe']('Industry\x20risk\x20adjustment\x20applied\x20to\x20the\x20base\x20risk\x20score\x20(-10\x20to\x20+10).'),'summary':z['string']()['describe']('Industry\x20risk\x20assessment\x20summary.'),'checks':z['array'](RiskCheckOutputSchema)['describe']('Industry-specific\x20risk\x20checks.'),'unmet_needs':z['array'](z['object']({'id':z['string']()['describe']('Need\x20identifier.'),'tier':z['enum'](['common','personalized','advanced'])['describe']('Need\x20tier.'),'description':z['string']()['describe']('Need\x20description.'),'advice':z['string']()['optional']()['describe']('Advice\x20for\x20fulfilling\x20the\x20need.')}))['describe']('Industry\x20needs\x20not\x20satisfied\x20by\x20this\x20Service.')})['optional']()['describe']('IndustryRiskResult\x20—\x20industry\x20pain-point\x20checks\x20(needs\x20met\x20/\x20risks\x20triggered).'),'reminders':z['array'](ReminderOutputSchema)['describe']('Transaction-safety\x20reminders\x20at\x20the\x20preorder\x20stage\x20(sorted,\x20capped).'),'blocking_reminders':z['array'](ReminderOutputSchema)['describe']('Blocking\x20(priority=required)\x20reminders\x20—\x20resolve\x20these\x20before\x20ordering.'),'summary':z['string']()['describe']('AI-ready\x20paragraph\x20summarizing\x20the\x20whole\x20preorder\x20report.')})['optional']()['describe']('PreorderAdvice\x20(GLM6/94\x20§3)\x20—\x20present\x20only\x20when\x20depth\x20=\x20\x27preorder\x27.\x20'+'AI\x20presents\x20evidence\x20and\x20options;\x20the\x20USER\x20decides\x20whether\x20to\x20order.'),'comparison':z['object']({'rows':z['array'](z['object']({'service_id':z['string'](),'service_name':z['string'](),'error':z['string']()['optional']()['describe']('Per-service\x20evaluation\x20failure\x20(row\x20excluded\x20from\x20best-per-metric).'),'industry':IndustryEnumSchema['optional'](),'confidence':z['number']()['optional']()['describe']('Order\x20confidence\x200-100\x20(higher\x20=\x20safer).'),'risk_total':z['number']()['optional']()['describe']('Risk\x20score\x200-100\x20(lower\x20=\x20safer).'),'risk_level':z['string']()['optional'](),'trust_score':z['number']()['optional']()['describe']('Trust\x20score\x200-100\x20(higher\x20=\x20more\x20trustworthy).'),'trust_level':z['string']()['optional'](),'preference_match':z['number']()['optional']()['describe']('Preference\x20match\x200-100\x20(higher\x20=\x20better\x20fit).'),'reputation_like_ratio':z['number']()['optional']()['describe']('likes/(likes+dislikes);\x201\x20when\x20no\x20votes.'),'reputation_votes':z['number']()['optional'](),'red_flags_count':z['number']()['optional'](),'blocking_reminders_count':z['number']()['optional'](),'info_gaps_count':z['number']()['optional']()})['strict']())['describe']('One\x20row\x20per\x20evaluated\x20service\x20(primary\x20first,\x20then\x20compare_with\x20candidates).'),'best_per_metric':z['record'](z['string'](),z['array'](z['string']()))['describe']('metric\x20name\x20→\x20service_ids\x20with\x20the\x20best\x20value\x20(ties\x20all\x20listed).\x20Per-metric\x20ONLY.'),'evaluated_metrics':z['array'](z['string']())['describe']('Metrics\x20actually\x20compared\x20(skipped\x20when\x20fewer\x20than\x202\x20rows\x20have\x20data).'),'note':z['string']()['describe']('Neutrality\x20note:\x20no\x20overall\x20ranking;\x20metric\x20weights\x20belong\x20to\x20the\x20buyer.')})['strict']()['optional']()['describe']('Deterministic\x20multi-service\x20comparison\x20(GLM6/94\x20L6)\x20—\x20present\x20only\x20when\x20depth=\x27preorder\x27\x20'+'and\x20compare_with\x20is\x20provided.\x20Per-metric\x20bests\x20ONLY,\x20no\x20overall\x20ranking\x20—\x20the\x20buyer\x20decides.')})['describe']('Trust\x20score\x20result.\x20Contains:\x20trust_score\x20(ServiceTrustScore),\x20'+'risk_score\x20(RiskScore,\x20when\x20depth\x20>=\x20evaluate),\x20info_puzzle\x20summary,\x20'+'preorder_advice\x20(PreorderAdvice,\x20when\x20depth\x20=\x20preorder),\x20'+'comparison\x20(PreorderComparison,\x20when\x20depth\x20=\x20preorder\x20and\x20compare_with\x20given),\x20'+'and\x20service_basics\x20snapshot.')});
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const WatchOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
action: z.ZodLiteral<"focus">;
|
|
4
|
+
focus: z.ZodString;
|
|
5
|
+
account: z.ZodOptional<z.ZodString>;
|
|
6
|
+
scenario: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
account: "account";
|
|
8
|
+
permission: "permission";
|
|
9
|
+
order: "order";
|
|
10
|
+
service: "service";
|
|
11
|
+
arbitration: "arbitration";
|
|
12
|
+
progress: "progress";
|
|
13
|
+
demand: "demand";
|
|
14
|
+
generic: "generic";
|
|
15
|
+
}>>;
|
|
16
|
+
network: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
18
|
+
action: z.ZodLiteral<"expand">;
|
|
19
|
+
focus: z.ZodString;
|
|
20
|
+
account: z.ZodOptional<z.ZodString>;
|
|
21
|
+
relation: z.ZodOptional<z.ZodString>;
|
|
22
|
+
network: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
24
|
+
action: z.ZodLiteral<"actions">;
|
|
25
|
+
focus: z.ZodString;
|
|
26
|
+
account: z.ZodString;
|
|
27
|
+
network: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
29
|
+
action: z.ZodLiteral<"reason">;
|
|
30
|
+
focus: z.ZodString;
|
|
31
|
+
account: z.ZodOptional<z.ZodString>;
|
|
32
|
+
scenario: z.ZodOptional<z.ZodEnum<{
|
|
33
|
+
account: "account";
|
|
34
|
+
permission: "permission";
|
|
35
|
+
order: "order";
|
|
36
|
+
service: "service";
|
|
37
|
+
arbitration: "arbitration";
|
|
38
|
+
progress: "progress";
|
|
39
|
+
demand: "demand";
|
|
40
|
+
generic: "generic";
|
|
41
|
+
}>>;
|
|
42
|
+
network: z.ZodOptional<z.ZodString>;
|
|
43
|
+
}, z.core.$strict>], "action">;
|
|
44
|
+
export declare const WatchOperationOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
45
|
+
action: z.ZodLiteral<"focus">;
|
|
46
|
+
result: z.ZodObject<{
|
|
47
|
+
object: z.ZodNullable<z.ZodObject<{
|
|
48
|
+
address: z.ZodString;
|
|
49
|
+
object_type: z.ZodString;
|
|
50
|
+
name: z.ZodOptional<z.ZodString>;
|
|
51
|
+
fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
52
|
+
}, z.core.$strict>>;
|
|
53
|
+
role: z.ZodObject<{
|
|
54
|
+
manifest_role: z.ZodString;
|
|
55
|
+
latent_role: z.ZodOptional<z.ZodString>;
|
|
56
|
+
participation_role: z.ZodString;
|
|
57
|
+
evaluation_role: z.ZodString;
|
|
58
|
+
conflicting: z.ZodBoolean;
|
|
59
|
+
reason_direction: z.ZodEnum<{
|
|
60
|
+
game: "game";
|
|
61
|
+
objective: "objective";
|
|
62
|
+
}>;
|
|
63
|
+
derivation: z.ZodString;
|
|
64
|
+
note: z.ZodString;
|
|
65
|
+
}, z.core.$strict>;
|
|
66
|
+
}, z.core.$strict>;
|
|
67
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
+
action: z.ZodLiteral<"expand">;
|
|
69
|
+
result: z.ZodObject<{
|
|
70
|
+
object: z.ZodNullable<z.ZodObject<{
|
|
71
|
+
address: z.ZodString;
|
|
72
|
+
object_type: z.ZodString;
|
|
73
|
+
name: z.ZodOptional<z.ZodString>;
|
|
74
|
+
fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
75
|
+
}, z.core.$strict>>;
|
|
76
|
+
relations: z.ZodArray<z.ZodObject<{
|
|
77
|
+
relation: z.ZodString;
|
|
78
|
+
target: z.ZodString;
|
|
79
|
+
target_type: z.ZodString;
|
|
80
|
+
note: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$strict>>;
|
|
82
|
+
supply_chain: z.ZodOptional<z.ZodObject<{
|
|
83
|
+
service: z.ZodString;
|
|
84
|
+
machine: z.ZodOptional<z.ZodString>;
|
|
85
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
86
|
+
node: z.ZodString;
|
|
87
|
+
prev_node: z.ZodString;
|
|
88
|
+
forward: z.ZodString;
|
|
89
|
+
guard: z.ZodString;
|
|
90
|
+
purchased_services: z.ZodArray<z.ZodObject<{
|
|
91
|
+
identifier: z.ZodNumber;
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
address: z.ZodString;
|
|
94
|
+
}, z.core.$strict>>;
|
|
95
|
+
required_submissions: z.ZodArray<z.ZodObject<{
|
|
96
|
+
identifier: z.ZodNumber;
|
|
97
|
+
name: z.ZodString;
|
|
98
|
+
value_type: z.ZodString;
|
|
99
|
+
}, z.core.$strict>>;
|
|
100
|
+
}, z.core.$strict>>;
|
|
101
|
+
}, z.core.$strict>>;
|
|
102
|
+
}, z.core.$strict>;
|
|
103
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
104
|
+
action: z.ZodLiteral<"actions">;
|
|
105
|
+
result: z.ZodObject<{
|
|
106
|
+
object: z.ZodNullable<z.ZodObject<{
|
|
107
|
+
address: z.ZodString;
|
|
108
|
+
object_type: z.ZodString;
|
|
109
|
+
name: z.ZodOptional<z.ZodString>;
|
|
110
|
+
fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
111
|
+
}, z.core.$strict>>;
|
|
112
|
+
role: z.ZodObject<{
|
|
113
|
+
manifest_role: z.ZodString;
|
|
114
|
+
latent_role: z.ZodOptional<z.ZodString>;
|
|
115
|
+
participation_role: z.ZodString;
|
|
116
|
+
evaluation_role: z.ZodString;
|
|
117
|
+
conflicting: z.ZodBoolean;
|
|
118
|
+
reason_direction: z.ZodEnum<{
|
|
119
|
+
game: "game";
|
|
120
|
+
objective: "objective";
|
|
121
|
+
}>;
|
|
122
|
+
derivation: z.ZodString;
|
|
123
|
+
note: z.ZodString;
|
|
124
|
+
}, z.core.$strict>;
|
|
125
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
126
|
+
operation: z.ZodString;
|
|
127
|
+
can_execute: z.ZodBoolean;
|
|
128
|
+
path: z.ZodString;
|
|
129
|
+
note: z.ZodOptional<z.ZodString>;
|
|
130
|
+
}, z.core.$strict>>;
|
|
131
|
+
}, z.core.$strict>;
|
|
132
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
133
|
+
action: z.ZodLiteral<"reason">;
|
|
134
|
+
result: z.ZodObject<{
|
|
135
|
+
object: z.ZodNullable<z.ZodObject<{
|
|
136
|
+
address: z.ZodString;
|
|
137
|
+
object_type: z.ZodString;
|
|
138
|
+
name: z.ZodOptional<z.ZodString>;
|
|
139
|
+
fields: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
140
|
+
}, z.core.$strict>>;
|
|
141
|
+
identity: z.ZodNullable<z.ZodObject<{
|
|
142
|
+
manifest_role: z.ZodString;
|
|
143
|
+
latent_role: z.ZodOptional<z.ZodString>;
|
|
144
|
+
participation_role: z.ZodString;
|
|
145
|
+
evaluation_role: z.ZodString;
|
|
146
|
+
conflicting: z.ZodBoolean;
|
|
147
|
+
reason_direction: z.ZodEnum<{
|
|
148
|
+
game: "game";
|
|
149
|
+
objective: "objective";
|
|
150
|
+
}>;
|
|
151
|
+
derivation: z.ZodString;
|
|
152
|
+
note: z.ZodString;
|
|
153
|
+
}, z.core.$strict>>;
|
|
154
|
+
reason_direction: z.ZodEnum<{
|
|
155
|
+
game: "game";
|
|
156
|
+
objective: "objective";
|
|
157
|
+
}>;
|
|
158
|
+
value: z.ZodNullable<z.ZodObject<{
|
|
159
|
+
perspective: z.ZodString;
|
|
160
|
+
interest_analyzer: z.ZodString;
|
|
161
|
+
prefer: z.ZodArray<z.ZodString>;
|
|
162
|
+
avoid: z.ZodArray<z.ZodString>;
|
|
163
|
+
sensitivity: z.ZodNumber;
|
|
164
|
+
}, z.core.$strict>>;
|
|
165
|
+
game: z.ZodNullable<z.ZodObject<{
|
|
166
|
+
power: z.ZodString;
|
|
167
|
+
strategy: z.ZodString;
|
|
168
|
+
weaker_party: z.ZodBoolean;
|
|
169
|
+
stronger_party: z.ZodBoolean;
|
|
170
|
+
}, z.core.$strict>>;
|
|
171
|
+
path: z.ZodNullable<z.ZodObject<{
|
|
172
|
+
operations: z.ZodArray<z.ZodObject<{
|
|
173
|
+
operation: z.ZodString;
|
|
174
|
+
can_execute: z.ZodBoolean;
|
|
175
|
+
path: z.ZodString;
|
|
176
|
+
note: z.ZodOptional<z.ZodString>;
|
|
177
|
+
}, z.core.$strict>>;
|
|
178
|
+
summary: z.ZodString;
|
|
179
|
+
path_reasoning: z.ZodOptional<z.ZodObject<{
|
|
180
|
+
current_node: z.ZodString;
|
|
181
|
+
perspective: z.ZodString;
|
|
182
|
+
optimal_path: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
nodes: z.ZodArray<z.ZodString>;
|
|
184
|
+
forwards: z.ZodArray<z.ZodString>;
|
|
185
|
+
terminal: z.ZodString;
|
|
186
|
+
score: z.ZodNumber;
|
|
187
|
+
length: z.ZodNumber;
|
|
188
|
+
guard_gates: z.ZodNumber;
|
|
189
|
+
}, z.core.$strict>>;
|
|
190
|
+
ranked_paths: z.ZodArray<z.ZodObject<{
|
|
191
|
+
terminal: z.ZodString;
|
|
192
|
+
score: z.ZodNumber;
|
|
193
|
+
length: z.ZodNumber;
|
|
194
|
+
guard_gates: z.ZodNumber;
|
|
195
|
+
}, z.core.$strict>>;
|
|
196
|
+
foregone_terminals: z.ZodArray<z.ZodString>;
|
|
197
|
+
summary: z.ZodString;
|
|
198
|
+
}, z.core.$strict>>;
|
|
199
|
+
}, z.core.$strict>>;
|
|
200
|
+
objective_note: z.ZodOptional<z.ZodString>;
|
|
201
|
+
}, z.core.$strict>;
|
|
202
|
+
}, z.core.$strip>], "action">;
|
|
203
|
+
export type WatchOperationInput = z.infer<typeof WatchOperationInputSchema>;
|
|
204
|
+
export type WatchOperationOutput = z.infer<typeof WatchOperationOutputSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z}from'zod';const WatchScenarioEnum=z['enum'](['order','service','demand','arbitration','progress','permission','account','generic']),ReasonDirectionEnum=z['enum'](['objective','game']),WatchRoleSchema=z['object']({'manifest_role':z['string']()['describe']('On-chain\x20derived\x20role\x20(may\x20be\x20\x27neutral\x27\x20when\x20the\x20account\x20has\x20no\x20operative\x20relationship).'),'latent_role':z['string']()['optional']()['describe']('Persona\x20identity-preference\x20role,\x20if\x20a\x20non-system\x20persona\x20is\x20set.'),'participation_role':z['string']()['describe']('Authoritative\x20role\x20for\x20participation/operation\x20—\x20ALWAYS\x20manifest_role.'),'evaluation_role':z['string']()['describe']('Role\x20for\x20evaluation\x20injection\x20—\x20latent\x20preference\x20when\x20set,\x20else\x20manifest.'),'conflicting':z['boolean']()['describe']('True\x20when\x20the\x20latent\x20persona\x20role\x20disagrees\x20with\x20the\x20manifest\x20role.'),'reason_direction':ReasonDirectionEnum['describe']('objective\x20=\x20only\x20narrate\x20facts;\x20game\x20=\x20full\x20four-stage\x20reasoning.'),'derivation':z['string']()['describe']('Traceable\x20derivation\x20basis\x20from\x20the\x20manifest\x20role.'),'note':z['string']()['describe']('Human-readable\x20resolution\x20note.')})['strict'](),WatchObjectSchema=z['object']({'address':z['string']()['describe']('Object\x20address\x20(or\x20the\x20resolved\x20address\x20for\x20a\x20name\x20input).'),'object_type':z['string']()['describe']('Normalized\x20short\x20object\x20type\x20(e.g.\x20Service,\x20Order,\x20Progress,\x20Demand,\x20Arbitration).'),'name':z['string']()['optional']()['describe']('Human-readable\x20name\x20/\x20LocalMark\x20name\x20if\x20resolvable.'),'fields':z['record'](z['string'](),z['unknown']())['describe']('Raw\x20on-chain\x20fields\x20of\x20interest\x20(subset\x20of\x20the\x20object\x20data).')})['strict'](),WatchRelationSchema=z['object']({'relation':z['string']()['describe']('Relationship\x20kind\x20(e.g.\x20machine,\x20permission,\x20arbitration,\x20order,\x20sub_service).'),'target':z['string']()['describe']('Related\x20object\x20address.'),'target_type':z['string']()['describe']('Normalized\x20short\x20type\x20of\x20the\x20related\x20object.'),'note':z['string']()['optional']()['describe']('Semantic\x20note\x20for\x20the\x20relation.')})['strict'](),WatchOperationSchema=z['object']({'operation':z['string']()['describe']('Operation\x20identifier\x20(e.g.\x20progress_next,\x20service_param_update,\x20order_holder_confirm).'),'can_execute':z['boolean']()['describe']('Whether\x20the\x20account\x20can\x20execute\x20this\x20operation\x20on-chain\x20RIGHT\x20NOW.'),'path':z['string']()['describe']('Execution\x20path\x20(e.g.\x20order_holder\x20/\x20permission_index\x20/\x20named_operator\x20/\x20guard_submission).'),'note':z['string']()['optional']()['describe']('Execution\x20note\x20or\x20guard\x20requirement.')})['strict'](),WatchReasonValueSchema=z['object']({'perspective':z['string']()['describe']('Value\x20perspective:\x20consumer\x20/\x20producer\x20/\x20neutral.'),'interest_analyzer':z['string']()['describe']('Interest\x20analyzer\x20id\x20for\x20the\x20evaluation\x20role.'),'prefer':z['array'](z['string']())['describe']('Value\x20anchors\x20the\x20role\x20seeks\x20(gains).'),'avoid':z['array'](z['string']())['describe']('Value\x20anchors\x20the\x20role\x20avoids\x20(risks).'),'sensitivity':z['number']()['describe']('Risk\x20sensitivity\x20(1.0\x20neutral;\x20>1\x20more\x20risk-averse).')})['strict'](),WatchReasonGameSchema=z['object']({'power':z['string']()['describe']('Game-theory\x20power:\x20strong\x20/\x20weak\x20/\x20peer\x20/\x20neutral.'),'strategy':z['string']()['describe']('Game-strategy\x20plugin\x20id.'),'weaker_party':z['boolean']()['describe']('True\x20when\x20the\x20role\x20is\x20the\x20weaker\x20party\x20(prioritize\x20protection).'),'stronger_party':z['boolean']()['describe']('True\x20when\x20the\x20role\x20is\x20the\x20stronger\x20party\x20(constrain\x20on-chain).')})['strict'](),WatchReasonPathSchema=z['object']({'operations':z['array'](WatchOperationSchema)['describe']('Actionable\x20operations\x20(identity-filtered).'),'summary':z['string']()['describe']('Human-readable\x20path\x20summary.'),'path_reasoning':z['object']({'current_node':z['string'](),'perspective':z['string'](),'optimal_path':z['object']({'nodes':z['array'](z['string']()),'forwards':z['array'](z['string']()),'terminal':z['string'](),'score':z['number'](),'length':z['number'](),'guard_gates':z['number']()})['strict']()['optional']()['describe']('The\x20single\x20optimal\x20path\x20to\x20a\x20terminal\x20(absent\x20when\x20no\x20terminal\x20is\x20reachable).'),'ranked_paths':z['array'](z['object']({'terminal':z['string'](),'score':z['number'](),'length':z['number'](),'guard_gates':z['number']()})['strict']())['describe']('Paths\x20ranked\x20by\x20composite\x20score\x20descending.'),'foregone_terminals':z['array'](z['string']())['describe']('Terminals\x20closed\x20by\x20choosing\x20the\x20optimal\x20path\x20(opportunity\x20competition).'),'summary':z['string']()})['strict']()['optional']()['describe']('Path-level\x20game\x20reasoning\x20(present\x20only\x20for\x20Progress\x20focus).')})['strict']();export const WatchOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('focus'),'focus':z['string']()['describe']('Object\x20address\x20or\x20LocalMark\x20name\x20to\x20focus\x20on.'),'account':z['string']()['optional']()['describe']('Active\x20account\x20address;\x20its\x20on-chain\x20role\x20+\x20persona\x20are\x20resolved\x20against\x20the\x20focus.'),'scenario':WatchScenarioEnum['optional']()['describe']('Optional\x20scenario\x20hint\x20to\x20guide\x20identity\x20assembly.'),'network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict'](),z['object']({'action':z['literal']('expand'),'focus':z['string']()['describe']('Object\x20address\x20or\x20LocalMark\x20name\x20to\x20expand\x20relations\x20from.'),'account':z['string']()['optional']()['describe']('Active\x20account\x20address\x20(for\x20identity-aware\x20relation\x20semantics).'),'relation':z['string']()['optional']()['describe']('Filter\x20to\x20a\x20single\x20relation\x20kind\x20(e.g.\x20machine,\x20permission,\x20arbitration,\x20sub_service).'),'network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict'](),z['object']({'action':z['literal']('actions'),'focus':z['string']()['describe']('Object\x20address\x20or\x20LocalMark\x20name\x20to\x20enumerate\x20actionable\x20operations\x20for.'),'account':z['string']()['describe']('Active\x20account\x20address\x20—\x20operations\x20are\x20judged\x20against\x20THIS\x20account.'),'network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict'](),z['object']({'action':z['literal']('reason'),'focus':z['string']()['describe']('Object\x20address\x20or\x20LocalMark\x20name\x20to\x20reason\x20about.'),'account':z['string']()['optional']()['describe']('Active\x20account\x20address\x20—\x20identity\x20drives\x20the\x20reasoning\x20direction\x20(objective\x20vs\x20game).'),'scenario':WatchScenarioEnum['optional']()['describe']('Optional\x20scenario\x20hint\x20to\x20guide\x20identity\x20assembly.'),'network':z['string']()['optional']()['describe']('Network\x20(default\x20testnet).')})['strict']()]);export const WatchOperationOutputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('focus'),'result':z['object']({'object':WatchObjectSchema['nullable']()['describe']('Focused\x20object\x20base\x20data\x20(null\x20when\x20unresolvable).'),'role':WatchRoleSchema['describe']('Resolved\x20identity\x20of\x20the\x20account\x20against\x20the\x20focus\x20object.')})['strict']()}),z['object']({'action':z['literal']('expand'),'result':z['object']({'object':WatchObjectSchema['nullable']()['describe']('Focused\x20object\x20base\x20data\x20(null\x20when\x20unresolvable).'),'relations':z['array'](WatchRelationSchema)['describe']('Direct\x20relations\x20out\x20of\x20the\x20focus\x20object.'),'supply_chain':z['object']({'service':z['string'](),'machine':z['string']()['optional'](),'edges':z['array'](z['object']({'node':z['string'](),'prev_node':z['string'](),'forward':z['string'](),'guard':z['string'](),'purchased_services':z['array'](z['object']({'identifier':z['number'](),'name':z['string'](),'address':z['string']()})['strict']()),'required_submissions':z['array'](z['object']({'identifier':z['number'](),'name':z['string'](),'value_type':z['string']()})['strict']())})['strict']())})['strict']()['optional']()['describe']('Transparent\x20sub-order\x20purchasing\x20graph\x20(present\x20when\x20the\x20focus\x20is\x20a\x20Service\x20with\x20purchasing-commitment\x20guards).')})['strict']()}),z['object']({'action':z['literal']('actions'),'result':z['object']({'object':WatchObjectSchema['nullable']()['describe']('Focused\x20object\x20base\x20data\x20(null\x20when\x20unresolvable).'),'role':WatchRoleSchema['describe']('Resolved\x20identity\x20of\x20the\x20account\x20against\x20the\x20focus\x20object.'),'operations':z['array'](WatchOperationSchema)['describe']('Actionable\x20operations\x20for\x20the\x20account\x20on\x20this\x20object,\x20with\x20executability\x20judgment.')})['strict']()}),z['object']({'action':z['literal']('reason'),'result':z['object']({'object':WatchObjectSchema['nullable']()['describe']('Focused\x20object\x20base\x20data\x20(null\x20when\x20unresolvable).'),'identity':WatchRoleSchema['nullable']()['describe']('Resolved\x20identity\x20of\x20the\x20account\x20against\x20the\x20focus\x20object.'),'reason_direction':ReasonDirectionEnum['describe']('objective\x20=\x20only\x20narrate\x20facts;\x20game\x20=\x20full\x20four-stage\x20reasoning.'),'value':WatchReasonValueSchema['nullable']()['describe']('Value\x20stage\x20(perspective\x20+\x20interest\x20anchors);\x20null\x20when\x20objective.'),'game':WatchReasonGameSchema['nullable']()['describe']('Game\x20stage\x20(power\x20+\x20strategy);\x20null\x20when\x20objective.'),'path':WatchReasonPathSchema['nullable']()['describe']('Path/operation\x20stage;\x20null\x20when\x20objective.'),'objective_note':z['string']()['optional']()['describe']('Narration\x20note\x20when\x20reason_direction\x20is\x20objective.')})['strict']()})]);
|