@wowok/agent-mcp 2.5.4 → 2.6.0
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/README.md +33 -26
- package/dist/config/runtime.js +3 -6
- package/dist/harness/checkpoint.js +2 -2
- package/dist/knowledge/flywheel-loop.js +2 -5
- package/dist/knowledge/overrides-loader.js +2 -4
- package/dist/knowledge/progress-ledger.js +3 -0
- package/dist/knowledge/progress-translation.js +5 -1
- package/dist/knowledge/reward-confirm.d.ts +3 -0
- package/dist/knowledge/reward-confirm.js +30 -0
- package/dist/knowledge/reward-puzzle.d.ts +1 -0
- package/dist/knowledge/reward-puzzle.js +12 -0
- package/dist/knowledge/reward-risk.d.ts +4 -1
- package/dist/knowledge/reward-risk.js +85 -3
- package/dist/knowledge/tools-reference.js +5 -4
- package/dist/loop-engineering/improve.js +2 -4
- package/dist/project/deployment-bridge.d.ts +5 -0
- package/dist/project/deployment-bridge.js +96 -0
- package/dist/project/evaluation.d.ts +53 -0
- package/dist/project/evaluation.js +860 -0
- package/dist/project/graph-builder.d.ts +43 -0
- package/dist/project/graph-builder.js +585 -0
- package/dist/project/handlers.d.ts +154 -0
- package/dist/project/handlers.js +567 -0
- package/dist/project/index.d.ts +1 -0
- package/dist/project/index.js +26 -7
- package/dist/project/project-store.js +2 -5
- package/dist/project/query.d.ts +1 -0
- package/dist/project/query.js +2 -0
- package/dist/project/semantic-assembler.d.ts +93 -0
- package/dist/project/semantic-assembler.js +345 -0
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/config/index.d.ts +12 -12
- package/dist/schema/local/index.d.ts +108 -108
- package/dist/schema/local/index.js +21 -18
- package/dist/schema/messenger/index.d.ts +16 -16
- package/dist/schema/messenger/index.js +2 -2
- package/dist/schema/operations.d.ts +0 -6
- package/dist/schema/project/index.d.ts +1840 -3903
- package/dist/schema/project/index.js +403 -955
- package/dist/schema/query/index.d.ts +10 -5
- package/dist/schema/trust/index.d.ts +6 -6
- package/dist/schemas/account_operation.output.json +7 -21
- package/dist/schemas/account_operation.schema.json +9 -23
- package/dist/schemas/bridge_operation.schema.json +1 -1
- package/dist/schemas/guard2file.schema.json +1 -1
- package/dist/schemas/index.json +2 -2
- package/dist/schemas/machineNode2file.schema.json +1 -1
- package/dist/schemas/messenger_operation.schema.json +6 -6
- package/dist/schemas/onchain_operations.schema.json +5 -5
- package/dist/schemas/onchain_operations_allocation.schema.json +1 -1
- package/dist/schemas/onchain_operations_arbitration.schema.json +1 -1
- package/dist/schemas/onchain_operations_contact.schema.json +1 -1
- package/dist/schemas/onchain_operations_demand.schema.json +1 -1
- package/dist/schemas/onchain_operations_gen_passport.schema.json +2 -2
- package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -2
- package/dist/schemas/onchain_operations_guard.schema.json +1 -1
- package/dist/schemas/onchain_operations_machine.schema.json +1 -1
- package/dist/schemas/onchain_operations_order.schema.json +1 -1
- package/dist/schemas/onchain_operations_payment.schema.json +1 -1
- package/dist/schemas/onchain_operations_permission.schema.json +1 -1
- package/dist/schemas/onchain_operations_personal.schema.json +1 -1
- package/dist/schemas/onchain_operations_progress.schema.json +1 -1
- package/dist/schemas/onchain_operations_proof.schema.json +1 -1
- package/dist/schemas/onchain_operations_repository.schema.json +1 -1
- package/dist/schemas/onchain_operations_reward.schema.json +1 -1
- package/dist/schemas/onchain_operations_service.schema.json +1 -1
- package/dist/schemas/onchain_operations_treasury.schema.json +1 -1
- package/dist/schemas/project_operation.output.json +1178 -2494
- package/dist/schemas/project_operation.schema.json +216 -530
- package/dist/schemas/query_toolkit.output.json +7 -6
- package/dist/schemas/query_toolkit.schema.json +0 -4
- package/dist/telemetry/storage.js +2 -2
- package/dist/tools/handlers/onchain.js +110 -19
- package/dist/tools/handlers/project.js +56 -1046
- package/dist/tools/index.js +85 -56
- package/package.json +2 -2
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import type { z } from "zod";
|
|
2
|
+
import { type Project, type ProjectObject, type EvaluationType } from "@wowok/wowok";
|
|
3
|
+
import type { ProjectOperationInputSchema } from "../schema/project/index.js";
|
|
4
|
+
type ProjectInput = z.infer<typeof ProjectOperationInputSchema>;
|
|
5
|
+
export declare function handleListProjects(v: ProjectInput): Promise<{
|
|
6
|
+
action: "list_projects";
|
|
7
|
+
items: {
|
|
8
|
+
objectCount: number;
|
|
9
|
+
evaluationCount: number;
|
|
10
|
+
objectTypes: string[];
|
|
11
|
+
id: string;
|
|
12
|
+
prefix: string;
|
|
13
|
+
name: string;
|
|
14
|
+
description: string | null;
|
|
15
|
+
industry: string | null;
|
|
16
|
+
perspective: import("@wowok/wowok").ProjectPerspective;
|
|
17
|
+
status: import("@wowok/wowok").ProjectStatus;
|
|
18
|
+
labels: string[] | null;
|
|
19
|
+
currentVersion: string | null;
|
|
20
|
+
serviceAddress: string | null;
|
|
21
|
+
defaultAccount: string | null;
|
|
22
|
+
network: string;
|
|
23
|
+
createdAt: number;
|
|
24
|
+
updatedAt: number;
|
|
25
|
+
metadata: Record<string, unknown> | null;
|
|
26
|
+
}[];
|
|
27
|
+
total: number;
|
|
28
|
+
}>;
|
|
29
|
+
export declare function handleCreateProject(v: ProjectInput): Promise<{
|
|
30
|
+
action: "create_project";
|
|
31
|
+
project: Project;
|
|
32
|
+
}>;
|
|
33
|
+
export declare function handleCreateProjectFromOnchain(v: ProjectInput): Promise<{
|
|
34
|
+
action: "create_project_from_onchain";
|
|
35
|
+
project: Project;
|
|
36
|
+
objects: ProjectObject[];
|
|
37
|
+
graphEdgeCount: number;
|
|
38
|
+
}>;
|
|
39
|
+
export declare function handleUpdateProject(v: ProjectInput): Promise<{
|
|
40
|
+
action: "update_project";
|
|
41
|
+
project: Project;
|
|
42
|
+
}>;
|
|
43
|
+
export declare function handleGetProjectDetail(v: ProjectInput): Promise<{
|
|
44
|
+
action: "get_project_detail";
|
|
45
|
+
project: Project;
|
|
46
|
+
objects: ProjectObject[];
|
|
47
|
+
graphEdgeCount: number;
|
|
48
|
+
evaluations: {
|
|
49
|
+
id: string;
|
|
50
|
+
evalType: EvaluationType;
|
|
51
|
+
score: number | null;
|
|
52
|
+
summary: string | null;
|
|
53
|
+
details: Record<string, unknown> | null;
|
|
54
|
+
evaluatedAt: number;
|
|
55
|
+
}[];
|
|
56
|
+
versions: {
|
|
57
|
+
version: string;
|
|
58
|
+
description: string | null;
|
|
59
|
+
createdAt: number;
|
|
60
|
+
}[];
|
|
61
|
+
}>;
|
|
62
|
+
export declare function handleAddObject(v: ProjectInput): Promise<{
|
|
63
|
+
action: "add_object";
|
|
64
|
+
object: ProjectObject;
|
|
65
|
+
}>;
|
|
66
|
+
export declare function handleRemoveObject(v: ProjectInput): Promise<{
|
|
67
|
+
action: "remove_object";
|
|
68
|
+
removed: true;
|
|
69
|
+
}>;
|
|
70
|
+
export declare function handleUpdateObject(v: ProjectInput): Promise<{
|
|
71
|
+
action: "update_object";
|
|
72
|
+
object: ProjectObject;
|
|
73
|
+
}>;
|
|
74
|
+
export declare function handleCreateVersion(v: ProjectInput): Promise<{
|
|
75
|
+
action: "create_version";
|
|
76
|
+
version: {
|
|
77
|
+
version: string;
|
|
78
|
+
description: string | null;
|
|
79
|
+
createdAt: number;
|
|
80
|
+
};
|
|
81
|
+
}>;
|
|
82
|
+
export declare function handleBuildGraph(v: ProjectInput): Promise<{
|
|
83
|
+
action: "build_graph";
|
|
84
|
+
nodeCount: number;
|
|
85
|
+
edgeCount: number;
|
|
86
|
+
edgesBySource: Record<string, number>;
|
|
87
|
+
reputationCount: number;
|
|
88
|
+
builtAt: number;
|
|
89
|
+
}>;
|
|
90
|
+
export declare function handleGetGraph(v: ProjectInput): Promise<{
|
|
91
|
+
action: "get_graph";
|
|
92
|
+
edges: {
|
|
93
|
+
sourceObject: string;
|
|
94
|
+
targetObject: string;
|
|
95
|
+
edgeSource: import("@wowok/wowok").EdgeSource;
|
|
96
|
+
relationshipType: import("@wowok/wowok").RelationshipType;
|
|
97
|
+
fieldName: string | null;
|
|
98
|
+
depth: number;
|
|
99
|
+
verified: boolean;
|
|
100
|
+
weight: number;
|
|
101
|
+
direction: string | null;
|
|
102
|
+
}[];
|
|
103
|
+
}>;
|
|
104
|
+
export declare function handleEvaluateProject(v: ProjectInput): Promise<{
|
|
105
|
+
action: "evaluate_project";
|
|
106
|
+
evaluationType: EvaluationType;
|
|
107
|
+
score: number;
|
|
108
|
+
summary: string;
|
|
109
|
+
criterionScores: import("./evaluation.js").CriterionScore[];
|
|
110
|
+
findings: import("./evaluation.js").EvaluationFinding[];
|
|
111
|
+
strengths: string[];
|
|
112
|
+
needsLlm: boolean;
|
|
113
|
+
llmPrompt: string | undefined;
|
|
114
|
+
evaluationId: string;
|
|
115
|
+
}>;
|
|
116
|
+
export declare function handleSaveEvaluation(v: ProjectInput): Promise<{
|
|
117
|
+
action: "save_evaluation";
|
|
118
|
+
evaluation: {
|
|
119
|
+
id: string;
|
|
120
|
+
evalType: EvaluationType;
|
|
121
|
+
score: number | null;
|
|
122
|
+
summary: string | null;
|
|
123
|
+
evaluatedAt: number;
|
|
124
|
+
};
|
|
125
|
+
}>;
|
|
126
|
+
export declare function handleCompareProjects(v: ProjectInput): Promise<{
|
|
127
|
+
action: "compare_projects";
|
|
128
|
+
evaluationType: EvaluationType;
|
|
129
|
+
ranking: import("./evaluation.js").ProjectComparisonEntry[];
|
|
130
|
+
bestProjectId: string | null;
|
|
131
|
+
}>;
|
|
132
|
+
export declare function handleRefreshObjects(v: ProjectInput): Promise<{
|
|
133
|
+
action: "refresh_objects";
|
|
134
|
+
refreshedCount: number;
|
|
135
|
+
failedCount: number;
|
|
136
|
+
refreshedAt: number;
|
|
137
|
+
}>;
|
|
138
|
+
export declare function handleDeleteProject(v: ProjectInput): Promise<{
|
|
139
|
+
action: "delete_project";
|
|
140
|
+
deleted: true;
|
|
141
|
+
}>;
|
|
142
|
+
export declare function handleGetObjectDiff(v: ProjectInput): Promise<{
|
|
143
|
+
action: "get_object_diff";
|
|
144
|
+
address: string;
|
|
145
|
+
fromTime: number;
|
|
146
|
+
toTime: number;
|
|
147
|
+
changedFields: {
|
|
148
|
+
fieldPath: string;
|
|
149
|
+
oldValue: unknown;
|
|
150
|
+
newValue: unknown;
|
|
151
|
+
changeType: "modified" | "removed" | "added";
|
|
152
|
+
}[];
|
|
153
|
+
}>;
|
|
154
|
+
export {};
|