@wowok/agent-mcp 2.3.18 → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/customer/industry-risks.js +31 -31
- package/dist/customer/order-monitor.js +57 -57
- package/dist/customer/order-strategy.js +89 -89
- package/dist/customer/post-purchase.js +97 -97
- package/dist/customer/reminder-system.js +26 -26
- package/dist/customer/risk-assessment.js +46 -46
- package/dist/customer/types.d.ts +4 -4
- package/dist/customer/types.js +4 -4
- package/dist/customer/user-preferences.js +50 -50
- package/dist/experience/intent-distill.js +6 -6
- package/dist/index.d.ts +2 -2
- package/dist/index.js +11 -1624
- package/dist/knowledge/acquisition-flywheel.js +64 -64
- package/dist/knowledge/arbitration-trust.js +10 -10
- package/dist/knowledge/demand-matching.js +8 -8
- package/dist/knowledge/dynamic-pricing.js +18 -18
- package/dist/knowledge/flywheel-loop.js +11 -11
- package/dist/knowledge/glossary.js +22 -22
- package/dist/knowledge/guard-ledger.d.ts +1 -1
- package/dist/knowledge/guard-ledger.js +145 -104
- package/dist/knowledge/guard-lint.d.ts +77 -0
- package/dist/knowledge/guard-lint.js +670 -0
- package/dist/knowledge/guard-migration.d.ts +48 -0
- package/dist/knowledge/guard-migration.js +228 -0
- package/dist/knowledge/guard-puzzle.d.ts +109 -14
- package/dist/knowledge/guard-puzzle.js +627 -101
- package/dist/knowledge/guard-risk.d.ts +10 -1
- package/dist/knowledge/guard-risk.js +1634 -292
- package/dist/knowledge/guard-templates.d.ts +38 -0
- package/dist/knowledge/guard-templates.js +605 -0
- package/dist/knowledge/guard-translation.d.ts +14 -2
- package/dist/knowledge/guard-translation.js +825 -194
- package/dist/knowledge/index.d.ts +8 -4
- package/dist/knowledge/index.js +9 -5
- package/dist/knowledge/industry-evolution.js +29 -29
- package/dist/knowledge/industry-generalizer.js +52 -52
- package/dist/knowledge/industry-registry.js +20 -33
- package/dist/knowledge/intent-metrics.js +67 -67
- package/dist/knowledge/process-model.js +80 -80
- package/dist/knowledge/reputation-rules.js +9 -9
- package/dist/knowledge/reward-templates.js +51 -51
- package/dist/knowledge/safety-rules.js +3 -3
- package/dist/knowledge/tool-constraints.js +20 -4
- package/dist/knowledge/trust-metrics.js +26 -26
- package/dist/project/graph.d.ts +1 -0
- package/dist/project/graph.js +27 -1
- package/dist/project/index.d.ts +1 -0
- package/dist/project/index.js +39 -2
- package/dist/project/namespace.d.ts +11 -1
- package/dist/project/namespace.js +27 -2
- package/dist/project/query.d.ts +2 -0
- package/dist/project/query.js +56 -15
- package/dist/rules.d.ts +12 -0
- package/dist/rules.js +9 -0
- package/dist/schema/call/allocation.d.ts +10 -10
- package/dist/schema/call/base.js +19 -19
- package/dist/schema/call/bridge.d.ts +32 -32
- package/dist/schema/call/demand.d.ts +84 -84
- package/dist/schema/call/guard.d.ts +153 -0
- package/dist/schema/call/guard.js +50 -0
- package/dist/schema/call/machine.d.ts +38 -38
- package/dist/schema/call/permission.d.ts +78 -78
- package/dist/schema/call/repository.d.ts +22 -22
- package/dist/schema/call/semantic.js +229 -25
- package/dist/schema/call/service.d.ts +7 -7
- package/dist/schema/local/wip.d.ts +39 -19
- package/dist/schema/local/wip.js +5 -5
- package/dist/schema/messenger/index.d.ts +26 -26
- package/dist/schema/messenger/index.js +2 -2
- package/dist/schema/operations.d.ts +270 -192
- package/dist/schema/query/index.d.ts +184 -184
- package/dist/schema/query/index.js +15 -9
- package/dist/schema/trust/index.d.ts +4 -4
- package/dist/schema/utils/guard-parser.js +4 -4
- package/dist/schema/utils/guard-query-utils.d.ts +7 -0
- package/dist/schema/utils/guard-query-utils.js +14 -1
- package/dist/schema/utils/node-parser.js +14 -14
- package/dist/schemas/bridge_operation.output.json +15 -15
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/messenger_operation.output.json +18 -16
- package/dist/schemas/onchain_events.output.json +15 -15
- package/dist/schemas/onchain_operations.output.json +16 -16
- package/dist/schemas/onchain_operations.schema.json +11 -20
- package/dist/schemas/onchain_operations_allocation.schema.json +7 -10
- package/dist/schemas/onchain_operations_machine.schema.json +2 -5
- package/dist/schemas/onchain_operations_service.schema.json +2 -5
- package/dist/schemas/onchain_table_data.output.json +20 -26
- package/dist/schemas/wip_file.output.json +24 -1
- package/dist/tools/handlers/bridge.d.ts +1 -0
- package/dist/tools/handlers/bridge.js +1 -0
- package/dist/tools/handlers/config.d.ts +2 -0
- package/dist/tools/handlers/config.js +71 -0
- package/dist/tools/handlers/file-export.d.ts +3 -0
- package/dist/tools/handlers/file-export.js +90 -0
- package/dist/tools/handlers/local.d.ts +30 -0
- package/dist/tools/handlers/local.js +27 -0
- package/dist/tools/handlers/messenger.d.ts +16 -0
- package/dist/tools/handlers/messenger.js +187 -0
- package/dist/tools/handlers/onchain.d.ts +2 -0
- package/dist/tools/handlers/onchain.js +246 -0
- package/dist/tools/handlers/project.d.ts +2 -0
- package/dist/tools/handlers/project.js +53 -0
- package/dist/tools/handlers/query.d.ts +5 -0
- package/dist/tools/handlers/query.js +256 -0
- package/dist/tools/handlers/schema-query.d.ts +2 -0
- package/dist/tools/handlers/schema-query.js +92 -0
- package/dist/tools/handlers/trust.d.ts +2 -0
- package/dist/tools/handlers/trust.js +194 -0
- package/dist/tools/handlers/wip.d.ts +2 -0
- package/dist/tools/handlers/wip.js +44 -0
- package/dist/tools/index.d.ts +13 -0
- package/dist/tools/index.js +479 -0
- package/dist/tools/rules-hook.d.ts +2 -0
- package/dist/tools/rules-hook.js +22 -0
- package/dist/tools/shared.d.ts +29 -0
- package/dist/tools/shared.js +130 -0
- package/dist/tools/types.d.ts +35 -0
- package/dist/tools/types.js +1 -0
- package/dist/tools/wrap.d.ts +6 -0
- package/dist/tools/wrap.js +55 -0
- package/package.json +19 -5
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type GuardRiskAssessment } from "./guard-risk.js";
|
|
2
|
+
export type DiagnosticSource = "sdk" | "lint" | "risk";
|
|
3
|
+
export type DiagnosticSeverity = "error" | "warning" | "info" | "hint";
|
|
4
|
+
export interface GuardDiagnostic {
|
|
5
|
+
code: string;
|
|
6
|
+
message: string;
|
|
7
|
+
severity: DiagnosticSeverity;
|
|
8
|
+
source: DiagnosticSource;
|
|
9
|
+
location: {
|
|
10
|
+
path: string;
|
|
11
|
+
};
|
|
12
|
+
fix?: {
|
|
13
|
+
description: string;
|
|
14
|
+
auto_fixable: boolean;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface GuardJsonInput {
|
|
18
|
+
description?: string;
|
|
19
|
+
table: Array<{
|
|
20
|
+
identifier: number;
|
|
21
|
+
b_submission?: boolean;
|
|
22
|
+
value_type?: string;
|
|
23
|
+
value?: unknown;
|
|
24
|
+
name?: string;
|
|
25
|
+
object_type?: string;
|
|
26
|
+
is_system_address?: boolean;
|
|
27
|
+
}>;
|
|
28
|
+
root: any;
|
|
29
|
+
rely?: {
|
|
30
|
+
guards: string[];
|
|
31
|
+
logic_or?: boolean;
|
|
32
|
+
};
|
|
33
|
+
binding_hint?: {
|
|
34
|
+
host_object?: string;
|
|
35
|
+
binding_field?: string;
|
|
36
|
+
action?: string;
|
|
37
|
+
sharing_recipients?: ("Signer" | "Entity" | "GuardIdentifier")[];
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export interface AutoFixAction {
|
|
41
|
+
diagnostic_code: string;
|
|
42
|
+
description: string;
|
|
43
|
+
before?: string;
|
|
44
|
+
after?: string;
|
|
45
|
+
path: string;
|
|
46
|
+
}
|
|
47
|
+
export interface GuardLintResult {
|
|
48
|
+
json_summary: {
|
|
49
|
+
table_count: number;
|
|
50
|
+
root_type: string;
|
|
51
|
+
has_rely: boolean;
|
|
52
|
+
rely_count: number;
|
|
53
|
+
has_description: boolean;
|
|
54
|
+
};
|
|
55
|
+
diagnostics: GuardDiagnostic[];
|
|
56
|
+
fixed_json?: GuardJsonInput;
|
|
57
|
+
fix_actions: AutoFixAction[];
|
|
58
|
+
risk_assessment?: GuardRiskAssessment;
|
|
59
|
+
summary: {
|
|
60
|
+
errors: number;
|
|
61
|
+
warnings: number;
|
|
62
|
+
infos: number;
|
|
63
|
+
auto_fixes_applied: number;
|
|
64
|
+
ready: boolean;
|
|
65
|
+
next_step: string;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export declare function autoFixGuard(json: GuardJsonInput): {
|
|
69
|
+
fixed: GuardJsonInput;
|
|
70
|
+
actions: AutoFixAction[];
|
|
71
|
+
};
|
|
72
|
+
export declare function lintGuard(json: GuardJsonInput, options?: {
|
|
73
|
+
auto_fix?: boolean;
|
|
74
|
+
}): Promise<GuardLintResult>;
|
|
75
|
+
export declare function isGuardReady(json: GuardJsonInput): Promise<boolean>;
|
|
76
|
+
export declare function getGuardErrors(json: GuardJsonInput): Promise<GuardDiagnostic[]>;
|
|
77
|
+
export declare function formatLintResult(result: GuardLintResult): string;
|