@wowok/agent-mcp 2.7.2 → 2.7.4
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/config/runtime.js +1 -1
- package/dist/customer/account-events.d.ts +32 -0
- package/dist/customer/account-events.js +1 -0
- package/dist/customer/customer-advice.d.ts +1 -0
- package/dist/customer/customer-advice.js +1 -1
- package/dist/customer/info-puzzle.js +1 -1
- package/dist/customer/order-strategy.d.ts +1 -1
- package/dist/customer/reminder-system.d.ts +2 -0
- package/dist/customer/reminder-system.js +1 -1
- package/dist/customer/risk-assessment.d.ts +1 -0
- package/dist/customer/risk-assessment.js +1 -1
- package/dist/customer/types.d.ts +2 -0
- package/dist/evaluation/builtins/arbitration-score.d.ts +41 -0
- package/dist/evaluation/builtins/arbitration-score.js +1 -0
- package/dist/evaluation/builtins/index.d.ts +1 -0
- package/dist/evaluation/builtins/index.js +1 -1
- package/dist/evaluation/category-match-rules.d.ts +30 -0
- package/dist/evaluation/category-match-rules.js +1 -0
- package/dist/evaluation/engine.js +1 -1
- package/dist/evaluation/extract.js +1 -1
- package/dist/evaluation/index.d.ts +1 -0
- package/dist/evaluation/index.js +1 -1
- package/dist/evaluation/location-match.d.ts +42 -0
- package/dist/evaluation/location-match.js +1 -0
- package/dist/evaluation/path-reasoning.d.ts +35 -0
- package/dist/evaluation/path-reasoning.js +1 -0
- package/dist/evaluation/region.d.ts +6 -0
- package/dist/evaluation/region.js +1 -1
- package/dist/evaluation/types.d.ts +17 -0
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/experience/user-profile.d.ts +1 -1
- package/dist/extensions/index.d.ts +6 -0
- package/dist/extensions/index.js +1 -1
- package/dist/extensions/industry-layers.d.ts +75 -0
- package/dist/extensions/industry-layers.js +1 -0
- package/dist/extensions/industry-pack.d.ts +105 -0
- package/dist/extensions/industry-pack.js +1 -0
- package/dist/extensions/metric-registry.js +1 -1
- package/dist/extensions/mode-evaluator.d.ts +1 -1
- package/dist/extensions/registry.d.ts +1 -0
- package/dist/extensions/registry.js +1 -1
- package/dist/graph/base.d.ts +8 -0
- package/dist/graph/base.js +1 -0
- package/dist/harness/index.d.ts +1 -0
- package/dist/harness/index.js +1 -1
- package/dist/harness/plan.d.ts +2 -0
- package/dist/harness/plan.js +1 -1
- package/dist/harness/recover.d.ts +1 -1
- package/dist/harness/types.d.ts +2 -3
- package/dist/index.js +1 -1
- package/dist/knowledge/allocation-confirm.js +1 -1
- package/dist/knowledge/anti-cheat.d.ts +37 -0
- package/dist/knowledge/anti-cheat.js +1 -0
- package/dist/knowledge/arb-confirm.d.ts +28 -0
- package/dist/knowledge/arb-confirm.js +1 -0
- package/dist/knowledge/arb-translation.d.ts +48 -0
- package/dist/knowledge/arb-translation.js +1 -0
- package/dist/knowledge/arbitration-context.js +1 -1
- package/dist/knowledge/arbitration-ledger.js +1 -1
- package/dist/knowledge/bridge-confirm.d.ts +26 -0
- package/dist/knowledge/bridge-confirm.js +1 -0
- package/dist/knowledge/bridge-translation.d.ts +37 -0
- package/dist/knowledge/bridge-translation.js +1 -0
- package/dist/knowledge/contact-confirm.d.ts +27 -0
- package/dist/knowledge/contact-confirm.js +1 -0
- package/dist/knowledge/contact-translation.d.ts +39 -0
- package/dist/knowledge/contact-translation.js +1 -0
- package/dist/knowledge/demand-confirm.js +1 -1
- package/dist/knowledge/demand-context.d.ts +17 -0
- package/dist/knowledge/demand-context.js +1 -0
- package/dist/knowledge/demand-ledger.d.ts +26 -0
- package/dist/knowledge/demand-ledger.js +1 -0
- package/dist/knowledge/demand-puzzle.d.ts +29 -0
- package/dist/knowledge/demand-puzzle.js +1 -0
- package/dist/knowledge/demand-risk.js +1 -1
- package/dist/knowledge/demand-templates.d.ts +12 -0
- package/dist/knowledge/demand-templates.js +1 -0
- package/dist/knowledge/demand-translation.js +1 -1
- package/dist/knowledge/deployment-scanner.js +1 -1
- package/dist/knowledge/evidence-review.d.ts +12 -0
- package/dist/knowledge/evidence-review.js +1 -0
- package/dist/knowledge/examples-scanner-cli.js +1 -1
- package/dist/knowledge/examples-scanner.js +1 -1
- package/dist/knowledge/flywheel-loop.d.ts +0 -1
- package/dist/knowledge/flywheel-loop.js +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-migration.d.ts +1 -1
- package/dist/knowledge/index.d.ts +71 -3
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/machine-render.js +1 -1
- package/dist/knowledge/market-metrics.d.ts +12 -0
- package/dist/knowledge/market-metrics.js +1 -0
- package/dist/knowledge/market-operations.d.ts +46 -0
- package/dist/knowledge/market-operations.js +1 -0
- package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
- package/dist/knowledge/mcp-schema-audit.d.ts +22 -22
- package/dist/knowledge/mcp-schema-audit.js +1 -1
- package/dist/knowledge/onchain-constants.d.ts +2 -2
- package/dist/knowledge/onchain-constants.js +1 -1
- package/dist/knowledge/payment-confirm.d.ts +26 -0
- package/dist/knowledge/payment-confirm.js +1 -0
- package/dist/knowledge/payment-risk.js +1 -1
- package/dist/knowledge/payment-translation.d.ts +37 -0
- package/dist/knowledge/payment-translation.js +1 -0
- package/dist/knowledge/permission-context.d.ts +11 -0
- package/dist/knowledge/permission-context.js +1 -1
- package/dist/knowledge/permission-ledger.d.ts +11 -0
- package/dist/knowledge/permission-ledger.js +1 -1
- package/dist/knowledge/personal-confirm.d.ts +29 -0
- package/dist/knowledge/personal-confirm.js +1 -0
- package/dist/knowledge/personal-risk.js +1 -1
- package/dist/knowledge/personal-translation.d.ts +37 -0
- package/dist/knowledge/personal-translation.js +1 -0
- package/dist/knowledge/process-model.d.ts +1 -11
- package/dist/knowledge/process-model.js +1 -1
- package/dist/knowledge/progress-ledger.js +1 -1
- package/dist/knowledge/progress-risk.js +1 -1
- package/dist/knowledge/progress-templates.js +1 -1
- package/dist/knowledge/progress-translation.js +1 -1
- package/dist/knowledge/proof-context.d.ts +17 -0
- package/dist/knowledge/proof-context.js +1 -0
- package/dist/knowledge/proof-ledger.d.ts +34 -0
- package/dist/knowledge/proof-ledger.js +1 -0
- package/dist/knowledge/proof-puzzle.d.ts +35 -0
- package/dist/knowledge/proof-puzzle.js +1 -0
- package/dist/knowledge/proof-templates.d.ts +22 -0
- package/dist/knowledge/proof-templates.js +1 -0
- package/dist/knowledge/registrar-confirm.d.ts +26 -0
- package/dist/knowledge/registrar-confirm.js +1 -0
- package/dist/knowledge/registrar-risk.js +1 -1
- package/dist/knowledge/registrar-translation.d.ts +37 -0
- package/dist/knowledge/registrar-translation.js +1 -0
- package/dist/knowledge/repository-context.d.ts +12 -0
- package/dist/knowledge/repository-context.js +1 -0
- package/dist/knowledge/repository-ledger.d.ts +25 -0
- package/dist/knowledge/repository-ledger.js +1 -0
- package/dist/knowledge/repository-puzzle.d.ts +30 -0
- package/dist/knowledge/repository-puzzle.js +1 -0
- package/dist/knowledge/repository-templates.d.ts +14 -0
- package/dist/knowledge/repository-templates.js +1 -0
- package/dist/knowledge/resource-confirm.d.ts +25 -0
- package/dist/knowledge/resource-confirm.js +1 -0
- package/dist/knowledge/resource-translation.d.ts +37 -0
- package/dist/knowledge/resource-translation.js +1 -0
- package/dist/knowledge/reward-context.d.ts +2 -2
- package/dist/knowledge/reward-ledger.js +1 -1
- package/dist/knowledge/reward-translation.js +1 -1
- package/dist/knowledge/safety-rules.d.ts +1 -0
- package/dist/knowledge/safety-rules.js +1 -1
- package/dist/knowledge/service-risk.d.ts +1 -1
- package/dist/knowledge/service-risk.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/treasury-context.d.ts +1 -1
- package/dist/knowledge/treasury-context.js +1 -1
- package/dist/knowledge/treasury-ledger.js +1 -1
- package/dist/knowledge/treasury-risk.js +1 -1
- package/dist/knowledge/universal-template.d.ts +22 -0
- package/dist/knowledge/universal-template.js +1 -0
- package/dist/knowledge/util-confirm.d.ts +24 -0
- package/dist/knowledge/util-confirm.js +1 -0
- package/dist/knowledge/util-risk.js +1 -1
- package/dist/knowledge/util-translation.d.ts +39 -0
- package/dist/knowledge/util-translation.js +1 -0
- package/dist/knowledge/workflow-guidance.d.ts +180 -0
- package/dist/knowledge/workflow-guidance.js +1 -0
- package/dist/participation/employee-kpi.d.ts +25 -0
- package/dist/participation/employee-kpi.js +1 -0
- package/dist/participation/employee-store.d.ts +16 -0
- package/dist/participation/employee-store.js +1 -0
- package/dist/participation/index.d.ts +2 -0
- package/dist/participation/index.js +1 -0
- package/dist/persona/defaults.js +1 -1
- package/dist/persona/index.d.ts +9 -2
- package/dist/persona/index.js +1 -1
- package/dist/persona/local-region.d.ts +20 -0
- package/dist/persona/local-region.js +1 -0
- package/dist/persona/model.js +1 -1
- package/dist/persona/overrides.d.ts +10 -0
- package/dist/persona/overrides.js +1 -0
- package/dist/persona/pack-personae.d.ts +11 -0
- package/dist/persona/pack-personae.js +1 -0
- package/dist/persona/strategy-intent.d.ts +20 -0
- package/dist/persona/strategy-intent.js +1 -0
- package/dist/persona/types.d.ts +3 -1
- package/dist/project/business-puzzle.d.ts +1 -1
- package/dist/project/business-puzzle.js +1 -1
- package/dist/project/deployment-doc.js +1 -1
- package/dist/project/edit-planner.js +1 -1
- package/dist/project/evaluation.d.ts +37 -1
- package/dist/project/evaluation.js +1 -1
- package/dist/project/graph-builder.d.ts +2 -2
- package/dist/project/graph-builder.js +1 -1
- package/dist/project/graph.d.ts +3 -6
- package/dist/project/handlers.d.ts +33 -2
- package/dist/project/handlers.js +1 -1
- package/dist/project/index.d.ts +1 -0
- package/dist/project/index.js +1 -1
- package/dist/project/merchant-guide.d.ts +19 -0
- package/dist/project/merchant-guide.js +1 -1
- package/dist/project/mode-actions.js +1 -1
- package/dist/project/rollback-policy.js +1 -1
- package/dist/project/semantic-assembler.d.ts +2 -2
- package/dist/project/semantic-assembler.js +1 -1
- package/dist/project/semantic-graph.d.ts +3 -5
- package/dist/project/workflow-design-assessment.d.ts +24 -0
- package/dist/project/workflow-design-assessment.js +1 -0
- package/dist/safety/confirm-gate.d.ts +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/call/allocation.d.ts +186 -1385
- package/dist/schema/call/arbitration.d.ts +272 -1871
- package/dist/schema/call/base.d.ts +1831 -9076
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +911 -3171
- package/dist/schema/call/contact.d.ts +135 -931
- package/dist/schema/call/demand.d.ts +164 -1194
- package/dist/schema/call/guard.d.ts +298 -1140
- package/dist/schema/call/guard.js +1 -1
- package/dist/schema/call/machine.d.ts +459 -5403
- package/dist/schema/call/machine.js +1 -1
- package/dist/schema/call/order.d.ts +137 -844
- package/dist/schema/call/payment.d.ts +74 -561
- package/dist/schema/call/permission.d.ts +335 -2791
- package/dist/schema/call/personal.d.ts +227 -1814
- package/dist/schema/call/progress.d.ts +140 -843
- package/dist/schema/call/proof.d.ts +42 -258
- package/dist/schema/call/repository.d.ts +324 -2222
- package/dist/schema/call/reward.d.ts +153 -1183
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +376 -3431
- package/dist/schema/call/treasury.d.ts +252 -2158
- package/dist/schema/common/index.d.ts +222 -697
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/config/index.d.ts +18 -161
- package/dist/schema/employee/index.d.ts +99 -0
- package/dist/schema/employee/index.js +1 -0
- package/dist/schema/evaluation/index.d.ts +1035 -3918
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/index.d.ts +5 -0
- package/dist/schema/index.js +1 -1
- package/dist/schema/industry-pack/index.d.ts +132 -0
- package/dist/schema/industry-pack/index.js +1 -0
- package/dist/schema/intent-radar/index.d.ts +92 -245
- package/dist/schema/intent-radar/index.js +1 -1
- package/dist/schema/local/index.d.ts +2045 -18080
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/local/wip.d.ts +61 -651
- package/dist/schema/local/wip.js +1 -1
- package/dist/schema/messenger/index.d.ts +949 -5557
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +3168 -26468
- package/dist/schema/operations.js +1 -1
- package/dist/schema/permission/index.d.ts +121 -0
- package/dist/schema/permission/index.js +1 -0
- package/dist/schema/persona/index.d.ts +469 -1820
- package/dist/schema/persona/index.js +1 -1
- package/dist/schema/project/index.d.ts +1023 -8450
- package/dist/schema/project/index.js +1 -1
- package/dist/schema/query/index.d.ts +12121 -75556
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-query/index.d.ts +35 -98
- package/dist/schema/schema-query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/task-status.d.ts +26 -132
- package/dist/schema/trust/index.d.ts +194 -1290
- package/dist/schema/utils/guard-parser.js +1 -1
- package/dist/schema/utils/node-parser.js +1 -1
- package/dist/schema/utils/skills-recommendation.d.ts +1 -0
- package/dist/schema/utils/skills-recommendation.js +1 -1
- package/dist/schema/workflow/index.d.ts +161 -0
- package/dist/schema/workflow/index.js +1 -0
- package/dist/schema/workspace/index.d.ts +69 -0
- package/dist/schema/workspace/index.js +1 -0
- package/dist/{schema-query → schema-query-impl}/index.js +1 -1
- package/dist/schemas/account_operation.output.json +3147 -1655
- package/dist/schemas/account_operation.schema.json +225 -218
- package/dist/schemas/bridge_operation.output.json +1168 -653
- package/dist/schemas/bridge_operation.schema.json +736 -504
- package/dist/schemas/config_operation.output.json +185 -179
- package/dist/schemas/config_operation.schema.json +21 -26
- package/dist/schemas/employee_operation.output.json +207 -0
- package/dist/schemas/employee_operation.schema.json +176 -0
- package/dist/schemas/evaluation_operation.output.json +2268 -601
- package/dist/schemas/evaluation_operation.schema.json +2919 -787
- package/dist/schemas/guard2file.output.json +58 -64
- package/dist/schemas/guard2file.schema.json +79 -81
- package/dist/schemas/index.json +41 -11
- package/dist/schemas/industry_pack_operation.output.json +594 -0
- package/dist/schemas/industry_pack_operation.schema.json +55 -0
- package/dist/schemas/intent_radar.output.json +275 -203
- package/dist/schemas/intent_radar.schema.json +124 -126
- package/dist/schemas/local_info_operation.output.json +1174 -660
- package/dist/schemas/local_info_operation.schema.json +119 -125
- package/dist/schemas/local_mark_operation.output.json +1239 -692
- package/dist/schemas/local_mark_operation.schema.json +91 -96
- package/dist/schemas/machineNode2file.output.json +63 -69
- package/dist/schemas/machineNode2file.schema.json +79 -81
- package/dist/schemas/messenger_operation.output.json +2722 -1531
- package/dist/schemas/messenger_operation.schema.json +1482 -1264
- package/dist/schemas/onchain_events.output.json +2590 -978
- package/dist/schemas/onchain_events.schema.json +117 -99
- package/dist/schemas/onchain_operations.output.json +3957 -2312
- package/dist/schemas/onchain_operations.schema.json +20799 -9285
- package/dist/schemas/onchain_operations_allocation.schema.json +171 -107
- package/dist/schemas/onchain_operations_arbitration.schema.json +233 -146
- package/dist/schemas/onchain_operations_contact.schema.json +129 -90
- package/dist/schemas/onchain_operations_demand.schema.json +170 -112
- package/dist/schemas/onchain_operations_gen_passport.schema.json +61 -646
- package/dist/schemas/onchain_operations_gen_proof.schema.json +40 -172
- package/dist/schemas/onchain_operations_guard.schema.json +3765 -294
- package/dist/schemas/onchain_operations_machine.schema.json +536 -163
- package/dist/schemas/onchain_operations_order.schema.json +126 -96
- package/dist/schemas/onchain_operations_payment.schema.json +82 -67
- package/dist/schemas/onchain_operations_permission.schema.json +331 -93
- package/dist/schemas/onchain_operations_personal.schema.json +636 -96
- package/dist/schemas/onchain_operations_progress.schema.json +125 -92
- package/dist/schemas/onchain_operations_proof.schema.json +76 -69
- package/dist/schemas/onchain_operations_repository.schema.json +636 -249
- package/dist/schemas/onchain_operations_reward.schema.json +218 -108
- package/dist/schemas/onchain_operations_service.schema.json +678 -220
- package/dist/schemas/onchain_operations_treasury.schema.json +401 -135
- package/dist/schemas/onchain_table_data.output.json +6833 -2432
- package/dist/schemas/onchain_table_data.schema.json +684 -417
- package/dist/schemas/permission_operation.output.json +173 -0
- package/dist/schemas/permission_operation.schema.json +39 -0
- package/dist/schemas/persona_operation.output.json +1568 -268
- package/dist/schemas/persona_operation.schema.json +346 -205
- package/dist/schemas/project_operation.output.json +6922 -5132
- package/dist/schemas/project_operation.schema.json +1050 -1020
- package/dist/schemas/query_task_status.output.json +195 -99
- package/dist/schemas/query_task_status.schema.json +12 -18
- package/dist/schemas/query_toolkit.output.json +18862 -14561
- package/dist/schemas/query_toolkit.schema.json +614 -522
- package/dist/schemas/schema_query.output.json +127 -129
- package/dist/schemas/schema_query.schema.json +64 -69
- package/dist/schemas/trust_score.output.json +678 -587
- package/dist/schemas/trust_score.schema.json +289 -277
- package/dist/schemas/wip_file.output.json +116 -124
- package/dist/schemas/wip_file.schema.json +142 -143
- package/dist/schemas/workflow_operation.output.json +164 -0
- package/dist/schemas/workflow_operation.schema.json +116 -0
- package/dist/schemas/workspace_operation.output.json +277 -0
- package/dist/schemas/workspace_operation.schema.json +45 -0
- package/dist/schemas/wowok_buildin_info.output.json +1682 -844
- package/dist/schemas/wowok_buildin_info.schema.json +576 -526
- package/dist/tools/handlers/bridge.d.ts +8 -1
- package/dist/tools/handlers/bridge.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/employee.d.ts +2 -0
- package/dist/tools/handlers/employee.js +1 -0
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/file-export.js +1 -1
- package/dist/tools/handlers/industry-pack.d.ts +2 -0
- package/dist/tools/handlers/industry-pack.js +1 -0
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/permission.d.ts +2 -0
- package/dist/tools/handlers/permission.js +1 -0
- package/dist/tools/handlers/persona.js +1 -1
- package/dist/tools/handlers/project.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/handlers/trust.js +1 -1
- package/dist/tools/handlers/wip.js +1 -1
- package/dist/tools/handlers/workflow.d.ts +2 -0
- package/dist/tools/handlers/workflow.js +1 -0
- package/dist/tools/handlers/workspace.d.ts +4 -0
- package/dist/tools/handlers/workspace.js +1 -0
- package/dist/tools/index.d.ts +2 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/rules-hook.d.ts +1 -1
- package/dist/tools/rules-hook.js +1 -1
- package/dist/tools/shared.d.ts +1 -1
- package/dist/tools/shared.js +1 -1
- package/dist/tools/types.d.ts +2 -1
- package/package.json +4 -5
- package/dist/knowledge/arbitration-trust.d.ts +0 -24
- package/dist/knowledge/arbitration-trust.js +0 -1
- package/dist/schema/call/bridge-handler.d.ts +0 -8
- package/dist/schema/call/bridge-handler.js +0 -1
- package/dist/schema/sync-layer4.d.ts +0 -21
- package/dist/schema/sync-layer4.js +0 -1
- /package/dist/{schema-query → schema-query-impl}/index.d.ts +0 -0
package/dist/tools/types.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { SemanticContext } from "../schema/call/semantic.js";
|
|
|
4
4
|
export interface ToolConfig {
|
|
5
5
|
title: string;
|
|
6
6
|
description: string;
|
|
7
|
+
summary: string;
|
|
7
8
|
inputSchema: z.ZodTypeAny;
|
|
8
9
|
outputSchema?: z.ZodTypeAny;
|
|
9
10
|
annotations?: {
|
|
@@ -28,7 +29,7 @@ export interface ToolEntry {
|
|
|
28
29
|
config: ToolConfig;
|
|
29
30
|
errorShapeBuilder?: ErrorShapeBuilder;
|
|
30
31
|
timeoutMs?: number;
|
|
31
|
-
applyRules?: (args: unknown) => ToolDispatchResult | null;
|
|
32
|
+
applyRules?: (args: unknown) => Promise<ToolDispatchResult | null> | ToolDispatchResult | null;
|
|
32
33
|
}
|
|
33
34
|
export interface DispatchOptions {
|
|
34
35
|
skipRules?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wowok/agent-mcp",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.4",
|
|
4
4
|
"description": "Making It Easy for AI Agents to Communicate, Collaborate, Trade, and Trust.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -49,11 +49,10 @@
|
|
|
49
49
|
"author": "wowok <build@wowok.net>",
|
|
50
50
|
"license": "Apache-2.0",
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@modelcontextprotocol/
|
|
53
|
-
"@wowok/wowok": "2.7.
|
|
52
|
+
"@modelcontextprotocol/server": "^2.0.0",
|
|
53
|
+
"@wowok/wowok": "2.7.4",
|
|
54
54
|
"lodash": "^4.18.1",
|
|
55
|
-
"zod": "^
|
|
56
|
-
"zod-to-json-schema": "^3.25.2"
|
|
55
|
+
"zod": "^4.2.0"
|
|
57
56
|
},
|
|
58
57
|
"devDependencies": {
|
|
59
58
|
"@types/node": "^22.19.19",
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface ArbMetrics {
|
|
2
|
-
totalCases: number;
|
|
3
|
-
timelyResolutions: number;
|
|
4
|
-
acceptedVerdicts: number;
|
|
5
|
-
disputedVerdicts: number;
|
|
6
|
-
avgResponseHours: number;
|
|
7
|
-
compensationLocked?: bigint;
|
|
8
|
-
hasVerifiedIdentity: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface TrustScore {
|
|
11
|
-
score: number;
|
|
12
|
-
components: TrustComponent[];
|
|
13
|
-
level: "high_risk" | "caution" | "moderate" | "trusted";
|
|
14
|
-
warnings: string[];
|
|
15
|
-
}
|
|
16
|
-
export interface TrustComponent {
|
|
17
|
-
name: string;
|
|
18
|
-
maxPoints: number;
|
|
19
|
-
earnedPoints: number;
|
|
20
|
-
reason: string;
|
|
21
|
-
}
|
|
22
|
-
export declare function computeTrustScore(metrics: ArbMetrics): TrustScore;
|
|
23
|
-
export declare function quickRiskAssessment(score: number): string;
|
|
24
|
-
export declare const ARBITRATION_TRUST_VERSION = 1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const WEIGHTS={'acceptanceRate':0x23,'timeliness':0x14,'volume':0xf,'responseSpeed':0xa,'compensation':0xa,'identity':0xa};export function computeTrustScore(a){const b=[],c=a['totalCases']>0x0?a['acceptedVerdicts']/a['totalCases']:0x0,d=Math['round'](c*WEIGHTS['acceptanceRate']);b['push']({'name':'verdict_acceptance','maxPoints':WEIGHTS['acceptanceRate'],'earnedPoints':d,'reason':a['acceptedVerdicts']+'/'+a['totalCases']+'\x20verdicts\x20accepted\x20without\x20dispute'});const e=a['totalCases']>0x0?a['timelyResolutions']/a['totalCases']:0x0,f=Math['round'](e*WEIGHTS['timeliness']);b['push']({'name':'timeliness','maxPoints':WEIGHTS['timeliness'],'earnedPoints':f,'reason':a['timelyResolutions']+'/'+a['totalCases']+'\x20cases\x20resolved\x20in\x20time'});const g=Math['min'](WEIGHTS['volume'],Math['round'](a['totalCases']/0x14*WEIGHTS['volume']));b['push']({'name':'case_volume','maxPoints':WEIGHTS['volume'],'earnedPoints':g,'reason':a['totalCases']+'\x20total\x20cases\x20handled'});let h=0x0;if(a['avgResponseHours']<=0x1)h=0xa;else{if(a['avgResponseHours']<=0x6)h=0x7;else{if(a['avgResponseHours']<=0x18)h=0x5;else{if(a['avgResponseHours']<=0x48)h=0x3;}}}b['push']({'name':'response_speed','maxPoints':WEIGHTS['responseSpeed'],'earnedPoints':h,'reason':'Average\x20response:\x20'+a['avgResponseHours']+'h'});const i=a['compensationLocked']!==undefined&&a['compensationLocked']>0x0n?WEIGHTS['compensation']:0x0;b['push']({'name':'compensation_fund','maxPoints':WEIGHTS['compensation'],'earnedPoints':i,'reason':a['compensationLocked']?'Compensation\x20fund:\x20'+a['compensationLocked']+'\x20smallest\x20unit':'No\x20compensation\x20fund\x20locked'});const j=a['hasVerifiedIdentity']?WEIGHTS['identity']:0x0;b['push']({'name':'verified_identity','maxPoints':WEIGHTS['identity'],'earnedPoints':j,'reason':a['hasVerifiedIdentity']?'Has\x20verified\x20on-chain\x20Personal\x20identity':'No\x20verified\x20on-chain\x20identity'});const k=b['reduce']((n,o)=>n+o['earnedPoints'],0x0),l=scoreLevel(k),m=buildWarnings(k,a,b);return{'score':k,'components':b,'level':l,'warnings':m};}function scoreLevel(a){if(a<0x19)return'high_risk';if(a<0x32)return'caution';if(a<0x4b)return'moderate';return'trusted';}function buildWarnings(a,b,c){const d=[];a<0x32&&d['push']('Arbitrator\x20trust\x20score\x20is\x20low\x20('+a+'/100,\x20'+scoreLevel(a)+').\x20'+'Customers\x20should\x20choose\x20this\x20arbitrator\x20with\x20caution.\x20The\x20user\x20retains\x20data\x20usage\x20authority;\x20the\x20system\x20does\x20not\x20block\x20usage.');if(b['disputedVerdicts']>0x0&&b['totalCases']>0x0){const e=b['disputedVerdicts']/b['totalCases'];e>0.3&&d['push']('High\x20dispute\x20rate\x20('+(e*0x64)['toFixed'](0x1)+'%):\x20'+(b['disputedVerdicts']+'/'+b['totalCases']+'\x20cases\x20had\x20disputes.'));}return!b['hasVerifiedIdentity']&&d['push']('Arbitrator\x20has\x20not\x20verified\x20on-chain\x20identity\x20(no\x20Personal\x20object);\x20recommend\x20verifying\x20authenticity.'),b['avgResponseHours']>0x48&&d['push']('Arbitrator\x20average\x20response\x20time\x20is\x20long\x20('+b['avgResponseHours']+'h),\x20which\x20may\x20affect\x20dispute\x20resolution\x20efficiency.'),d;}export function quickRiskAssessment(a){const b=scoreLevel(a);switch(b){case'high_risk':return'High\x20risk:\x20recommend\x20changing\x20arbitrator\x20or\x20adding\x20compensation\x20fund\x20protection';case'caution':return'Caution:\x20trust\x20score\x20is\x20low,\x20recommend\x20careful\x20evaluation';case'moderate':return'Moderate\x20trust:\x20acceptable,\x20recommend\x20continued\x20observation';case'trusted':return'High\x20trust:\x20arbitrator\x20performs\x20well';}}export const ARBITRATION_TRUST_VERSION=0x1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{BridgeClient,LocalMark}from'@wowok/wowok';import{classifyError,buildSemantic,buildDataSemantic}from'./semantic.js';let _bridgeClient=null,_bridgeClientEnv=null;function getBridgeClient(a){const b=a||{},c=b?.['account'];return(_bridgeClient===null||_bridgeClientEnv===null||c!==_bridgeClientEnv?.['account'])&&(_bridgeClient=new BridgeClient({'wowEnv':b}),_bridgeClientEnv=b),_bridgeClient;}function getBridgeClientForQuery(){if(_bridgeClient!==null)return _bridgeClient;return _bridgeClient=new BridgeClient({}),_bridgeClientEnv={},_bridgeClient;}function validateMainnet(a){const b=a?.['network'];if(b&&b!=='mainnet')throw new Error('Bridge\x20only\x20supports\x20WOW\x20mainnet\x20(current\x20network:\x20\x27'+b+'\x27).\x20Only\x20mainnet\x20provides\x20cross-chain\x20functionality.');}async function resolveWowAddress(a,b){if(!a){const c=b?.['account'];return c;}if(/^0x[0-9a-fA-F]{64}$/['test'](a))return a;try{const d=await LocalMark['Instance']()['get_address'](a);if(d)return d;return a;}catch{return a;}}function safeJson(a){return JSON['stringify'](a,(b,c)=>typeof c==='bigint'?c['toString']():c,0x2);}function convertBigInts(a){if(typeof a==='bigint')return a['toString']();if(Array['isArray'](a))return a['map'](convertBigInts);if(a&&typeof a==='object'){const b={};for(const c of Object['keys'](a))b[c]=convertBigInts(a[c]);return b;}return a;}function ok(a,b,c){const d=convertBigInts(b),e=buildSemantic(d,c),f={'message':a,'result':{'type':'data','data':d},'semantic':e};return{'content':[{'type':'text','text':a},{'type':'text','text':safeJson(d)}],'structuredContent':f};}function err(a,b){const c=classifyError(a),d=buildDataSemantic(undefined,b,!![],a),e={'message':a,'result':{'type':'error','error':a,'error_code':c['error_code'],'retryable':c['retryable'],'recovery_hint':c['recovery_hint']},'semantic':d};return{'content':[{'type':'text','text':a}],'structuredContent':e};}export async function handleBridgeOperations(a){if(!a||typeof a!=='object')return err('Invalid\x20args:\x20expected\x20an\x20object\x20with\x20operation_type');let b;try{const {strictParse:f}=await import('./base.js');b=f((await import('./bridge.js'))['BridgeOperationsSchema'],a,'bridge_operations\x20input');}catch(g){return err('Parameter\x20validation\x20failed:\x20'+(g?.['message']??String(g)));}const c=b['env'],d={'operation_type':'bridge_'+b['operation_type'],'data':b['data']};try{switch(b['operation_type']){case'cross_chain_wow_to_evm':{validateMainnet(c);const h=b['data'],i=getBridgeClient(c),j=await i['bridgeWowToEvmSimple']({'token':h['token'],'amount':BigInt(h['amount']),'withdrawTo':h['withdrawTo'],'waitForFinalization':![],'idempotencyKey':h['idempotencyKey'],'idempotentByParams':h['idempotentByParams']}),k=j['idempotentHit']?'\x20[IDEMPOTENT\x20HIT\x20—\x20no\x20new\x20deposit]':'';return ok('WOW→EVM\x20cross-chain\x20step\x201\x20(deposit)\x20submitted.\x20transferId='+j['transferId']+',\x20activeEvmAccount='+j['activeEvmAccount']+'.'+k+'\x20'+'Next:\x20poll\x20query_transfer_status\x20until\x20bridge\x20signs\x20(~1-5\x20min),\x20then\x20call\x20claim_wow_to_evm\x20to\x20complete.',j,d);}case'cross_chain_evm_to_wow':{validateMainnet(c);const l=b['data'],m=await resolveWowAddress(l['recipientWowAddress'],c),n=getBridgeClient(c),o=await n['bridgeEvmToWowSimple']({'token':l['token'],'amount':BigInt(l['amount']),'recipientWowAddress':m,'waitForFinalization':![],'idempotencyKey':l['idempotencyKey'],'idempotentByParams':l['idempotentByParams']}),p=o['idempotentHit']?'\x20[IDEMPOTENT\x20HIT\x20—\x20no\x20new\x20deposit]':'';return ok('EVM→WOW\x20cross-chain\x20submitted.\x20transferId='+o['transferId']+',\x20activeEvmAccount='+o['activeEvmAccount']+'.'+p+'\x20'+'Bridge\x20will\x20auto-claim\x20on\x20WOW\x20(~10-20\x20min).\x20Poll\x20query_transfer_status\x20to\x20monitor\x20progress.',o,d);}case'claim_wow_to_evm':{validateMainnet(c);const q=b['data'],r=getBridgeClient(c),s=await r['claimWowToEvm'](q['transferId']);return ok('WOW→EVM\x20claim\x20(step\x202)\x20completed.\x20transferId='+s['transferId']+',\x20claimTxHash='+s['claimTxHash'],s,d);}case'resume_transfer':{validateMainnet(c);const t=b['data'],u=getBridgeClient(c),v=await u['resumeTransfer'](t['transferId']);return ok('Transfer\x20'+t['transferId']+'\x20resumed.\x20Current\x20step:\x20'+v['step']+',\x20status:\x20'+v['status']+'.',v,d);}case'withdraw':{const w=b['data'],x=getBridgeClientForQuery();let y=w['tokenAddress'];if(!y&&w['token']&&w['token']!=='ETH'){const A=x['config'],B=A?.['evmChains']?.['find'](D=>D['name']===(w['network']??'mainnet')),C=B?.['tokens']?.['find'](D=>D['symbol']===w['token']);y=C?.['evmAddress'];if(!y)return err('Cannot\x20resolve\x20ERC20\x20token\x20address\x20for\x20symbol\x20\x27'+w['token']+'\x27\x20on\x20chain\x20\x27'+(w['network']??'mainnet')+'\x27.\x20Please\x20pass\x20tokenAddress\x20explicitly.',d);}const z=await x['withdrawFromActiveEvmAccount']({'to':w['to'],'amount':BigInt(w['amount']),'tokenAddress':y,'token':w['token']?w['token']:undefined,'network':w['network']});return ok('Withdrawal\x20submitted.\x20transferId='+z['transferId']+',\x20txHash='+z['txHash'],z,d);}case'query_active_evm_account':{const D=b['data']??{},E=getBridgeClientForQuery(),F=await E['queryActiveEvmAccount']({'network':D['network'],'tokens':D['tokens']});return ok('activeEvmAccount:\x20'+F['address']+'\x20('+F['chains']['length']+'\x20chain(s))',F,d);}case'query_supported_evm_chains':{const G=getBridgeClientForQuery(),H=await G['querySupportedEvmChains']();return ok(H['length']+'\x20EVM\x20chain(s)\x20supported:\x20'+H['map'](I=>I['name']+'(chainId='+I['chainId']+')')['join'](',\x20'),H,d);}case'query_supported_tokens':{const I=b['data']??{},J=getBridgeClientForQuery(),K=await J['querySupportedTokens']({'network':I['network']}),L=K['reduce']((M,N)=>M+N['tokens']['length'],0x0);return ok(K['length']+'\x20chain(s),\x20'+L+'\x20token\x20entries:\x20'+K['map'](M=>M['chainName']+'('+M['tokens']['length']+'\x20tokens)')['join'](',\x20'),K,d);}case'query_transfer_list':{const M=b['data']??{},N=getBridgeClientForQuery();let O=await N['queryTransferList']({'onlyActive':M['onlyActive']});M['status']&&(O=O['filter'](Q=>Q['status']===M['status']));M['direction']&&(O=O['filter'](Q=>Q['direction']===M['direction']));M['token']&&(O=O['filter'](Q=>Q['token']===M['token']));M['limit']&&M['limit']>0x0&&(O=O['slice'](0x0,M['limit']));const P=O['filter'](Q=>Q['status']!=='success'&&Q['status']!=='failed')['length'];return ok(O['length']+'\x20transfer\x20record(s)\x20('+P+'\x20in\x20progress)'+(M['status']||M['direction']||M['token']?'\x20(filtered)':''),O,d);}case'query_transfer_status':{const Q=b['data'],R=getBridgeClientForQuery(),S=Q['refresh']!==![];if(S)try{await Promise['race']([R['refreshTransferStatus'](Q['transferId']),new Promise((U,V)=>setTimeout(()=>V(new Error('refresh\x20timeout')),0x3a98))]);}catch{}const T=await R['queryTransferStatus'](Q['transferId']);if(!T)return err('transferId\x20\x27'+Q['transferId']+'\x27\x20not\x20found.\x20'+'Use\x20query_transfer_list\x20to\x20see\x20all\x20valid\x20transferIds.\x20'+'Note:\x20transfer\x20history\x20is\x20persisted\x20in\x20cache.db\x20and\x20restored\x20on\x20MCP\x20restart,\x20'+'so\x20this\x20transferId\x20may\x20never\x20have\x20been\x20created\x20in\x20this\x20environment.',d);return ok('Transfer\x20'+Q['transferId']+':\x20'+T['direction']+'\x20/\x20'+T['step']+'\x20/\x20'+T['status'],T,d);}case'manage_evm_rpc':{const U=b['data'],V=getBridgeClientForQuery(),W=await V['manageEvmRpc']({'op':U['op'],'network':U['network'],'rpcUrls':U['rpcUrls']});return ok('RPC\x20\x27'+U['op']+'\x27\x20operation\x20'+(W['success']?'succeeded':'failed'),W,d);}default:{return err('Unsupported\x20operation_type:\x20'+b['operation_type'],d);}}}catch(X){const Y=X?.['message']??String(X);return err('Bridge\x20operation\x20failed:\x20'+Y,d);}}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const LAYER3_DIR: string;
|
|
2
|
-
export declare const LAYER4_DIR: string;
|
|
3
|
-
export declare const ALL_TOOLS: readonly string[];
|
|
4
|
-
export interface SyncResult {
|
|
5
|
-
ok: number;
|
|
6
|
-
failed: number;
|
|
7
|
-
errors: Array<{
|
|
8
|
-
tool: string;
|
|
9
|
-
error: string;
|
|
10
|
-
}>;
|
|
11
|
-
layer3Dir: string;
|
|
12
|
-
layer4Dir: string;
|
|
13
|
-
total: number;
|
|
14
|
-
}
|
|
15
|
-
export interface SyncOptions {
|
|
16
|
-
silent?: boolean;
|
|
17
|
-
layer3Dir?: string;
|
|
18
|
-
layer4Dir?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare function syncDeployedToolDescriptors(options?: SyncOptions): SyncResult;
|
|
21
|
-
export declare function shouldAutoSyncAtStartup(): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as a285a from'fs';import*as a285b from'path';export const LAYER3_DIR=a285b['resolve']('d:/wowok/agent/mcp/dist/schemas');export const LAYER4_DIR=a285b['resolve']('c:/Users/zhou/.trae-cn/mcps/s_wowok-7838e181/solo_agent/mcp_wagent/tools');export const ALL_TOOLS=['onchain_operations','account_operation','local_mark_operation','local_info_operation','wip_file','messenger_operation','guard2file','machineNode2file','query_toolkit','onchain_table_data','onchain_events','wowok_buildin_info','schema_query','bridge_operation','project_operation','config_operation','trust_score','query_task_status','evaluation_operation','persona_operation','intent_radar'];const JSON_SCHEMA_DRAFT7='http://json-schema.org/draft-07/schema#',RECURSIVE_EXTERNAL_FILES=new Set(['guard-node-schema.json']);function createExternalFileCache(){return new Map();}function loadExternalFile(a,b,c){if(c['has'](a))return c['get'](a);const d=a285b['resolve'](b,a);if(!a285a['existsSync'](d))throw new Error('External\x20$ref\x20file\x20not\x20found:\x20'+d);const e=JSON['parse'](a285a['readFileSync'](d,'utf-8'));return c['set'](a,e),e;}function resolveRefTarget(a,b,c,d){if(!a['startsWith']('#')){const [g,h]=a['split']('#',0x2),i=loadExternalFile(g,c,d);if(!h||h==='/')return i;if(!h['startsWith']('/'))throw new Error('Unsupported\x20external\x20$ref\x20format:\x20'+a);const j=h['slice'](0x1)['split']('/');let k=i;for(const l of j){if(k===null||typeof k!=='object')throw new Error('Cannot\x20resolve\x20$ref\x20part\x20\x22'+l+'\x22\x20in\x20'+a);k=k[l];}return k;}if(!a['startsWith']('#/'))throw new Error('Unsupported\x20$ref\x20(must\x20start\x20with\x20\x22#/\x22\x20or\x20be\x20external\x20file):\x20'+a);const e=a['slice'](0x2)['split']('/');let f=b;for(const m of e){if(f===null||typeof f!=='object')return undefined;f=f[m];}return f;}function resolveRefs(a,b,c,d,e=new Set(),f=new Map()){if(a===null||typeof a!=='object')return a;if(Array['isArray'](a))return a['map'](h=>resolveRefs(h,b,c,d,e,f));if(typeof a['$ref']==='string'){const h=a['$ref'];if(!h['startsWith']('#')&&RECURSIVE_EXTERNAL_FILES['has'](h['split']('#',0x2)[0x0]))return{'type':'object','additionalProperties':!![],'description':'Recursive\x20GuardNode\x20computational\x20tree\x20(55\x20self-referential\x20node\x20types).\x20'+'NOT\x20inlined\x20here\x20to\x20avoid\x20exponential\x20schema\x20bloat.\x20'+'Use\x20schema_query\x20(e.g.\x20action=\x27get\x27\x20name=\x27onchain_operations_guard\x27)\x20or\x20read\x20guard-node-schema.json\x20'+'for\x20the\x20complete\x20node\x20definitions.\x20Key\x20node\x20families:\x20identifier\x20/\x20query\x20/\x20context\x20/\x20'+'logic_*\x20/\x20calc_*\x20/\x20convert_*\x20/\x20vec_*\x20/\x20query_progress_*\x20/\x20query_reward_*.'};if(e['has'](h))return{'$ref':h,'description':a['description']};if(f['has'](h)){const m=f['get'](h),n=JSON['parse'](JSON['stringify'](m));return a['description']&&!n['description']&&(n['description']=a['description']),n;}const i=resolveRefTarget(h,b,c,d);if(i===undefined||i===null)throw new Error('Cannot\x20resolve\x20$ref\x20target:\x20'+h);const j=new Set(e);j['add'](h);const k=h['startsWith']('#')?b:loadExternalFile(h['split']('#',0x2)[0x0],c,d),l=resolveRefs(i,k,c,d,j,f);return a['description']&&!l['description']&&(l['description']=a['description']),f['set'](h,l),l;}const g={};for(const [o,p]of Object['entries'](a)){g[o]=resolveRefs(p,b,c,d,e,f);}return g;}function extractSchemaBody(a,b,c){const d={...a,'definitions':a['definitions']};let e;if(a['$ref']){const f=a['$ref'],g=resolveRefTarget(f,d,b,c);if(g===undefined||g===null)throw new Error('Top-level\x20$ref\x20cannot\x20be\x20resolved:\x20'+f);const h=f['startsWith']('#')?d:loadExternalFile(f['split']('#',0x2)[0x0],b,c);e=resolveRefs(g,h,b,c);}else{const {$schema:i,$id:j,title:k,definitions:l,description:m,...n}=a;e=resolveRefs(n,d,b,c);}return e;}function buildDeployedFile(a,b,c,d){const e=a285b['join'](b,a+'.schema.json'),f=a285b['join'](c,a+'.json');if(!a285a['existsSync'](e))throw new Error('Layer\x203\x20schema\x20not\x20found:\x20'+e);const g=JSON['parse'](a285a['readFileSync'](e,'utf-8')),h=extractSchemaBody(g,b,d),i={'type':h['type']??'object','properties':h['properties']??{},'required':h['required']??[],'$schema':JSON_SCHEMA_DRAFT7};h['additionalProperties']!==undefined&&(i['additionalProperties']=h['additionalProperties']);h['description']&&(i['description']=h['description']);h['oneOf']&&(i['oneOf']=h['oneOf']);h['anyOf']&&(i['anyOf']=h['anyOf']);h['allOf']&&(i['allOf']=h['allOf']);let j=g['description']??a+'\x20operation';if(a285a['existsSync'](f))try{const k=JSON['parse'](a285a['readFileSync'](f,'utf-8'));k['description']&&k['description']['length']>0x0&&(j=k['description']);}catch{}if(!j['includes']('schema_query')){const l='\x0a\x0a💡\x20Schema\x20hint:\x20Use\x20schema_query\x20with\x20action=\x27get\x27\x20and\x20name=\x27'+a+'\x27\x20'+'to\x20retrieve\x20the\x20exact\x20parameter\x20schema\x20before\x20calling.';j=j+l;}return{'name':a,'description':j,'arguments':i};}export function syncDeployedToolDescriptors(a={}){const b=a['silent']??![],c=a['layer3Dir']??LAYER3_DIR,d=a['layer4Dir']??LAYER4_DIR,g=m=>{if(!b)console['log'](m);},h=m=>{if(!b)console['error'](m);};g('🔄\x20Syncing\x20Layer\x204\x20deployed\x20tool\x20descriptors\x20from\x20Layer\x203\x20...\x0a'),g('Layer\x203\x20source:\x20'+c),g('Layer\x204\x20target:\x20\x20'+d+'\x0a');if(!a285a['existsSync'](c)){const m='Layer\x203\x20directory\x20does\x20not\x20exist:\x20'+c;h('✗\x20'+m);throw new Error(m+'\x20(run\x20\x27pnpm\x20generate:schemas\x27\x20first)');}if(!a285a['existsSync'](d)){const n='Layer\x204\x20directory\x20does\x20not\x20exist:\x20'+d;h('✗\x20'+n);throw new Error(n);}const i=createExternalFileCache();let j=0x0,k=0x0;const l=[];for(const o of ALL_TOOLS){try{const p=buildDeployedFile(o,c,d,i),q=a285b['join'](d,o+'.json');a285a['writeFileSync'](q,JSON['stringify'](p,null,0x2)+'\x0a','utf-8');const r=Object['keys'](p['arguments']['properties'])['length'],s=p['arguments']['required']['length'],t=p['arguments']['oneOf']?'oneOf':p['arguments']['anyOf']?'anyOf':p['arguments']['allOf']?'allOf':'',u=t?'\x20['+t+'='+p['arguments'][t]['length']+']':'';g('\x20\x20✓\x20'+o['padEnd'](0x1c)+'\x20props='+String(r)['padStart'](0x2)+'\x20\x20required='+String(s)['padStart'](0x2)+u),j++;}catch(v){h('\x20\x20✗\x20'+o+':\x20'+v['message']),l['push']({'tool':o,'error':v['message']}),k++;}}g('\x0a✅\x20Succeeded:\x20'+j+'/'+ALL_TOOLS['length']);if(k>0x0){h('❌\x20Failed:\x20'+k);for(const w of l){h('\x20\x20\x20-\x20'+w['tool']+':\x20'+w['error']);}}else g('All\x20'+ALL_TOOLS['length']+'\x20Layer\x204\x20deployed\x20files\x20are\x20now\x20FULL\x20schemas\x20(no\x20stubs\x20remain).');return{'ok':j,'failed':k,'errors':l,'layer3Dir':c,'layer4Dir':d,'total':ALL_TOOLS['length']};}export function shouldAutoSyncAtStartup(){const a=process['env']['WOWOK_SYNC_LAYER4'];if(a===undefined||a===''||a==='auto')return!![];if(a==='never'||a==='0'||a==='false')return![];return!![];}
|
|
File without changes
|