@wowok/agent-mcp 2.5.5 → 2.6.1
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 +5 -3
- package/dist/config/runtime.js +3 -6
- package/dist/extensions/capability-manifest.d.ts +125 -0
- package/dist/extensions/capability-manifest.js +594 -0
- package/dist/extensions/constraint-registry.d.ts +24 -0
- package/dist/extensions/constraint-registry.js +196 -0
- package/dist/extensions/index.d.ts +12 -0
- package/dist/extensions/index.js +6 -0
- package/dist/extensions/metric-registry.d.ts +26 -0
- package/dist/extensions/metric-registry.js +257 -0
- package/dist/extensions/mode-evaluator.d.ts +15 -0
- package/dist/extensions/mode-evaluator.js +170 -0
- package/dist/extensions/modes.d.ts +2 -0
- package/dist/extensions/modes.js +407 -0
- package/dist/extensions/registry.d.ts +48 -0
- package/dist/extensions/registry.js +629 -0
- package/dist/extensions/types.d.ts +218 -0
- package/dist/extensions/types.js +1 -0
- package/dist/harness/checkpoint.js +2 -2
- package/dist/knowledge/deployment-scanner.d.ts +3 -0
- package/dist/knowledge/deployment-scanner.js +64 -3
- package/dist/knowledge/flywheel-loop.js +2 -5
- package/dist/knowledge/guard-risk.d.ts +13 -0
- package/dist/knowledge/guard-risk.js +57 -0
- package/dist/knowledge/guard-templates.js +278 -0
- package/dist/knowledge/machine-templates.js +20 -1
- 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/service-confirm.d.ts +14 -5
- package/dist/knowledge/service-confirm.js +116 -8
- package/dist/knowledge/tool-constraints.js +6 -2
- package/dist/loop-engineering/improve.js +2 -4
- package/dist/project/deployment-bridge.d.ts +5 -0
- package/dist/project/deployment-bridge.js +119 -0
- package/dist/project/deployment-doc.d.ts +3 -0
- package/dist/project/deployment-doc.js +72 -10
- package/dist/project/evaluation.d.ts +2 -0
- package/dist/project/evaluation.js +578 -86
- package/dist/project/graph-builder.d.ts +4 -1
- package/dist/project/graph-builder.js +141 -63
- package/dist/project/graph.d.ts +1 -0
- package/dist/project/handlers.d.ts +221 -5
- package/dist/project/handlers.js +933 -14
- package/dist/project/index.js +2 -6
- package/dist/project/project-store.js +2 -5
- package/dist/project/stage-gate.d.ts +4 -0
- package/dist/project/stage-gate.js +64 -5
- package/dist/project/task-tracker.d.ts +26 -0
- package/dist/project/task-tracker.js +78 -0
- package/dist/safety/preview.js +16 -0
- package/dist/schema/call/allocation.d.ts +16 -16
- package/dist/schema/call/base.d.ts +21 -13
- package/dist/schema/call/base.js +27 -6
- package/dist/schema/call/bridge.d.ts +5 -5
- package/dist/schema/call/bridge.js +3 -1
- package/dist/schema/call/demand.d.ts +23 -31
- package/dist/schema/call/guard.js +1 -1
- package/dist/schema/call/machine.d.ts +402 -376
- package/dist/schema/call/order.d.ts +149 -228
- package/dist/schema/call/order.js +7 -3
- package/dist/schema/call/payment.d.ts +183 -3
- package/dist/schema/call/payment.js +21 -3
- package/dist/schema/call/personal.d.ts +241 -52
- package/dist/schema/call/progress.d.ts +53 -61
- package/dist/schema/call/progress.js +18 -4
- package/dist/schema/call/repository.d.ts +23 -31
- package/dist/schema/call/semantic.d.ts +1 -1
- package/dist/schema/call/semantic.js +30 -1
- package/dist/schema/call/service.d.ts +95 -119
- package/dist/schema/call/service.js +22 -1
- package/dist/schema/common/index.d.ts +11 -2
- package/dist/schema/common/index.js +43 -14
- package/dist/schema/config/index.d.ts +12 -12
- package/dist/schema/local/index.d.ts +140 -143
- package/dist/schema/local/index.js +44 -23
- package/dist/schema/messenger/index.d.ts +290 -62
- package/dist/schema/messenger/index.js +2 -2
- package/dist/schema/operations.d.ts +680 -545
- package/dist/schema/operations.js +22 -0
- package/dist/schema/project/index.d.ts +2064 -84
- package/dist/schema/project/index.js +354 -12
- package/dist/schema/query/index.d.ts +715 -354
- package/dist/schema/query/index.js +164 -31
- package/dist/schema/schema-query/index.d.ts +15 -3
- package/dist/schema/schema-query/index.js +23 -5
- package/dist/schema/trust/index.d.ts +8 -8
- package/dist/schema/utils/node-parser.js +7 -4
- package/dist/schema-query/index.d.ts +7 -1
- package/dist/schema-query/index.js +204 -4
- package/dist/schemas/account_operation.output.json +14 -22
- package/dist/schemas/account_operation.schema.json +11 -25
- package/dist/schemas/bridge_operation.output.json +6 -0
- package/dist/schemas/bridge_operation.schema.json +1 -1
- package/dist/schemas/guard-templates.json +379 -0
- package/dist/schemas/guard2file.schema.json +1 -1
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/local_info_operation.output.json +6 -0
- package/dist/schemas/local_mark_operation.output.json +7 -1
- package/dist/schemas/local_mark_operation.schema.json +1 -1
- package/dist/schemas/machineNode2file.schema.json +1 -1
- package/dist/schemas/messenger_operation.schema.json +10 -10
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +348 -296
- package/dist/schemas/onchain_operations_allocation.schema.json +34 -25
- package/dist/schemas/onchain_operations_arbitration.schema.json +8 -8
- package/dist/schemas/onchain_operations_contact.schema.json +8 -8
- package/dist/schemas/onchain_operations_demand.schema.json +8 -8
- package/dist/schemas/onchain_operations_gen_passport.schema.json +14 -14
- 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 +41 -33
- package/dist/schemas/onchain_operations_order.schema.json +71 -77
- package/dist/schemas/onchain_operations_payment.schema.json +141 -111
- package/dist/schemas/onchain_operations_permission.schema.json +2 -2
- package/dist/schemas/onchain_operations_personal.schema.json +7 -7
- package/dist/schemas/onchain_operations_progress.schema.json +8 -8
- package/dist/schemas/onchain_operations_proof.schema.json +7 -7
- package/dist/schemas/onchain_operations_repository.schema.json +8 -8
- package/dist/schemas/onchain_operations_reward.schema.json +10 -10
- package/dist/schemas/onchain_operations_service.schema.json +46 -35
- package/dist/schemas/onchain_operations_treasury.schema.json +8 -8
- package/dist/schemas/onchain_table_data.output.json +33 -25
- package/dist/schemas/onchain_table_data.schema.json +12 -12
- package/dist/schemas/project_operation.output.json +1352 -20
- package/dist/schemas/project_operation.schema.json +53 -4
- package/dist/schemas/query_toolkit.output.json +111 -82
- package/dist/schemas/query_toolkit.schema.json +9 -13
- package/dist/schemas/schema_query.output.json +7 -3
- package/dist/schemas/schema_query.schema.json +17 -3
- package/dist/telemetry/storage.js +2 -2
- package/dist/tools/handlers/local.js +20 -5
- package/dist/tools/handlers/onchain.js +36 -0
- package/dist/tools/handlers/project.js +72 -1
- package/dist/tools/handlers/query.js +27 -0
- package/dist/tools/handlers/schema-query.js +19 -0
- package/dist/tools/handlers/task-status.d.ts +170 -0
- package/dist/tools/handlers/task-status.js +55 -0
- package/dist/tools/handlers/wip.js +47 -1
- package/dist/tools/index.js +212 -8
- package/dist/tools/retry.d.ts +8 -0
- package/dist/tools/retry.js +85 -0
- package/dist/tools/wip-deploy-assist.d.ts +28 -0
- package/dist/tools/wip-deploy-assist.js +278 -0
- package/package.json +2 -2
- package/dist/schemas/guard-node-examples.md +0 -199
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ Docs: [https://github.com/wowok-ai/docs/](https://github.com/wowok-ai/docs/)
|
|
|
27
27
|
|
|
28
28
|
### 2. Install WoWok Skills (Recommended)
|
|
29
29
|
|
|
30
|
-
**Skills significantly reduce the learning curve and usage difficulty of the MCP Server.** They provide structured guidance for AI assistants on complex system building, tool usage, and safety protocols.
|
|
30
|
+
**Skills significantly reduce the learning curve and usage difficulty of the MCP Server.** They provide structured guidance for AI assistants on complex system building, tool usage, and safety protocols. See the [WoWok Skills repository](https://github.com/wowok-ai/skills) for full details.
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
33
|
# Personal (global) — available in all sessions:
|
|
@@ -37,10 +37,12 @@ npm install -g @wowok/skills
|
|
|
37
37
|
cd your-project
|
|
38
38
|
wowok-skills init # Claude Code (default)
|
|
39
39
|
wowok-skills init --target agents # Trae IDE
|
|
40
|
-
wowok-skills init --target all # All
|
|
40
|
+
wowok-skills init --target all # All 10 supported clients
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
**Supported clients:** Claude Code, OpenAI Codex, Trae IDE, CodeBuddy, Cursor, GitHub Copilot.
|
|
43
|
+
**Supported clients:** Claude Code, OpenAI Codex, ChatGPT Desktop (Codex Mode), Trae IDE, CodeBuddy, Cursor, Windsurf, Qoder, Roo Code, GitHub Copilot.
|
|
44
|
+
|
|
45
|
+
> **Note:** The skills package auto-installs and configures the `@wowok/agent-mcp` MCP server. Set `WOWOK_SKILLS_NO_MCP=1` to skip MCP management.
|
|
44
46
|
|
|
45
47
|
#### Available Skills
|
|
46
48
|
|
package/dist/config/runtime.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFileSync, writeFileSync, existsSync, mkdirSync } from "fs";
|
|
2
2
|
import { dirname, join } from "path";
|
|
3
|
-
import {
|
|
3
|
+
import { getWowMcpDir } from "@wowok/wowok";
|
|
4
4
|
export const SERVICE_REGISTRY = [
|
|
5
5
|
{
|
|
6
6
|
name: "confirm_gate",
|
|
@@ -70,10 +70,7 @@ const SERVICE_MAP = new Map(SERVICE_REGISTRY.map((s) => [s.name, s]));
|
|
|
70
70
|
const runtimeOverrides = new Map();
|
|
71
71
|
let harnessTierOverride;
|
|
72
72
|
function configFilePath() {
|
|
73
|
-
|
|
74
|
-
? process.env.WOWOK_CONFIG_DIR
|
|
75
|
-
: join(homedir(), ".wowok");
|
|
76
|
-
return join(dir, "runtime-config.json");
|
|
73
|
+
return join(getWowMcpDir(), "runtime-config.json");
|
|
77
74
|
}
|
|
78
75
|
function isPersistEnabled() {
|
|
79
76
|
const v = process.env.WOWOK_RUNTIME_CONFIG_PERSIST;
|
|
@@ -220,7 +217,7 @@ function buildReminder(service, enabled) {
|
|
|
220
217
|
: "Harness is OFF. GLM5 recommends keeping it ON (lightweight tier) for safety. To enable, call config_operation toggle harness.";
|
|
221
218
|
case "graph_persist":
|
|
222
219
|
return enabled
|
|
223
|
-
? "Graph persistence is ON: the object dependency graph will be saved to ~/.
|
|
220
|
+
? "Graph persistence is ON: the object dependency graph will be saved to ~/.wow/mcp/project-graph.json."
|
|
224
221
|
: "Graph persistence is OFF: the dependency graph exists only in memory and will be lost on process restart. To persist, call config_operation toggle graph_persist.";
|
|
225
222
|
case "semantic_rich":
|
|
226
223
|
return undefined;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import type { ProjectObjectType } from "../project/namespace.js";
|
|
2
|
+
export type CapabilityModule = "puzzle" | "risk" | "translation" | "templates" | "confirm" | "context" | "ledger" | "schema" | "handler";
|
|
3
|
+
export type CapabilityCategory = "data_model" | "validation" | "lifecycle" | "fund_flow" | "trust" | "workflow" | "communication" | "evidence" | "query";
|
|
4
|
+
export type IndustryAgnostic = "high" | "medium" | "low";
|
|
5
|
+
export interface CapabilityRiskProfile {
|
|
6
|
+
funds_risk: "high" | "medium" | "low";
|
|
7
|
+
trust_risk: "high" | "medium" | "low";
|
|
8
|
+
delivery_risk: "high" | "medium" | "low";
|
|
9
|
+
compliance_risk: "high" | "medium" | "low";
|
|
10
|
+
known_risks: string[];
|
|
11
|
+
}
|
|
12
|
+
export interface CapabilityBenefitProfile {
|
|
13
|
+
automation_level: "high" | "medium" | "low";
|
|
14
|
+
trust_boost: "high" | "medium" | "low";
|
|
15
|
+
efficiency_gain: "high" | "medium" | "low";
|
|
16
|
+
benefits: string[];
|
|
17
|
+
}
|
|
18
|
+
export interface CapabilityConstraints {
|
|
19
|
+
must_pair_with?: string[];
|
|
20
|
+
conflicts_with?: string[];
|
|
21
|
+
max_single_transaction?: number;
|
|
22
|
+
requires_evidence?: boolean;
|
|
23
|
+
other_constraints?: string[];
|
|
24
|
+
}
|
|
25
|
+
export interface CapabilityCard {
|
|
26
|
+
capability_id: string;
|
|
27
|
+
display_name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
object_type: ProjectObjectType;
|
|
30
|
+
module: CapabilityModule;
|
|
31
|
+
category: CapabilityCategory;
|
|
32
|
+
industry_agnostic: IndustryAgnostic;
|
|
33
|
+
config_template: Record<string, unknown>;
|
|
34
|
+
industry_overrides?: Record<string, Record<string, unknown>>;
|
|
35
|
+
observed_in_industries: Record<string, number>;
|
|
36
|
+
success_count: number;
|
|
37
|
+
failure_count: number;
|
|
38
|
+
known_failure_modes: string[];
|
|
39
|
+
depends_on_capabilities?: string[];
|
|
40
|
+
referenced_by_skills?: string[];
|
|
41
|
+
risk_profile?: CapabilityRiskProfile;
|
|
42
|
+
benefit_profile?: CapabilityBenefitProfile;
|
|
43
|
+
constraints?: CapabilityConstraints;
|
|
44
|
+
version: string;
|
|
45
|
+
superseded_by?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface CapabilityGraphEdge {
|
|
48
|
+
from: string;
|
|
49
|
+
to: string;
|
|
50
|
+
edge_kind: "requires" | "optional" | "conflicts";
|
|
51
|
+
phase: "create" | "publish" | "runtime";
|
|
52
|
+
description?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface CapabilityGraph {
|
|
55
|
+
nodes: Map<string, CapabilityCard>;
|
|
56
|
+
edges: CapabilityGraphEdge[];
|
|
57
|
+
}
|
|
58
|
+
export interface MigrationEvaluation {
|
|
59
|
+
feasibility_score: number;
|
|
60
|
+
covered_capabilities: string[];
|
|
61
|
+
missing_capabilities: string[];
|
|
62
|
+
conflicting_capabilities: Array<{
|
|
63
|
+
capability_id: string;
|
|
64
|
+
source_config: unknown;
|
|
65
|
+
target_config: unknown;
|
|
66
|
+
diff_summary: string;
|
|
67
|
+
}>;
|
|
68
|
+
recommendations: string[];
|
|
69
|
+
}
|
|
70
|
+
export interface CoverageReport {
|
|
71
|
+
industry: string;
|
|
72
|
+
declared_count: number;
|
|
73
|
+
expected_count: number;
|
|
74
|
+
coverage_percentage: number;
|
|
75
|
+
missing_capabilities: string[];
|
|
76
|
+
}
|
|
77
|
+
export interface ExperienceUpdate {
|
|
78
|
+
capability_id: string;
|
|
79
|
+
update_type: "config_template" | "industry_overrides" | "known_failure_modes" | "new_card";
|
|
80
|
+
payload: unknown;
|
|
81
|
+
source: string;
|
|
82
|
+
}
|
|
83
|
+
export interface VerificationReport {
|
|
84
|
+
project_id: string;
|
|
85
|
+
industry: string;
|
|
86
|
+
result: "success" | "failure" | "partial";
|
|
87
|
+
capabilities_used: string[];
|
|
88
|
+
failure_reasons?: string[];
|
|
89
|
+
}
|
|
90
|
+
export declare class CapabilityRegistry {
|
|
91
|
+
private static instance;
|
|
92
|
+
private cards;
|
|
93
|
+
private edges;
|
|
94
|
+
private initialized;
|
|
95
|
+
static Instance(): CapabilityRegistry;
|
|
96
|
+
private constructor();
|
|
97
|
+
registerCard(card: CapabilityCard): boolean;
|
|
98
|
+
getCard(capabilityId: string): CapabilityCard | undefined;
|
|
99
|
+
listCards(filter?: {
|
|
100
|
+
objectType?: ProjectObjectType;
|
|
101
|
+
module?: CapabilityModule;
|
|
102
|
+
industryAgnostic?: IndustryAgnostic;
|
|
103
|
+
industry?: string;
|
|
104
|
+
}): CapabilityCard[];
|
|
105
|
+
registerEdge(edge: CapabilityGraphEdge): void;
|
|
106
|
+
getGraph(): CapabilityGraph;
|
|
107
|
+
getDependencies(capabilityId: string): CapabilityCard[];
|
|
108
|
+
getDependents(capabilityId: string): CapabilityCard[];
|
|
109
|
+
getCapabilitiesByIndustry(industry: string): CapabilityCard[];
|
|
110
|
+
getCapabilitiesByObject(objectType: ProjectObjectType): CapabilityCard[];
|
|
111
|
+
evaluateMigration(source: string, target: string): MigrationEvaluation;
|
|
112
|
+
findPurityViolations(): CapabilityCard[];
|
|
113
|
+
recordUsage(capabilityId: string, industry: string): void;
|
|
114
|
+
recordSuccess(capabilityId: string): void;
|
|
115
|
+
recordFailure(capabilityId: string, reason: string): void;
|
|
116
|
+
recordVerificationReport(report: VerificationReport): void;
|
|
117
|
+
getCapabilitiesForExtension(capabilitiesUsed: string[]): CapabilityCard[];
|
|
118
|
+
evaluateExtensionCoverage(industry: string, capabilitiesUsed: string[]): CoverageReport;
|
|
119
|
+
private registerBuiltins;
|
|
120
|
+
private registerBuiltinEdges;
|
|
121
|
+
private computeConfigDiff;
|
|
122
|
+
}
|
|
123
|
+
export declare function getCapabilityRegistry(): CapabilityRegistry;
|
|
124
|
+
export declare const CAPABILITY_MANIFEST_VERSION = 1;
|
|
125
|
+
export declare function recordCapabilitiesUsed(industry: string, capabilitiesUsed: string[]): void;
|