@wowok/agent-mcp 2.5.0 → 2.5.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.
@@ -259,29 +259,53 @@ export const TOOL_REGISTRY = [
259
259
  name: "project_operation",
260
260
  handler: handleProjectOperation,
261
261
  config: {
262
- title: "🗂️ Project - Namespace & Object Graph",
263
- description: "Phase 2 project namespace service — manage and query the local object dependency graph (DAG) " +
264
- "built on top of local_mark tags. No on-chain writes; all data comes from local marks tagged " +
262
+ title: "🗂️ Project - 5-Stage Deployment & Object Graph",
263
+ description: "Project-based deployment service — manage the local object dependency graph (DAG) AND guide users " +
264
+ "through the 5-stage project deployment workflow. All data comes from local marks tagged " +
265
265
  "`project:<prefix>` (auto-injected by the ProjectService when enabled, default ON).\n\n" +
266
- "Actions:\n" +
267
- " • list_projects — List all discovered projects (grouped by `project:<prefix>` tag) with object counts.\n" +
266
+ "═══════════════════════════════════════════════════════════════\n" +
267
+ " PROJECT-BASED DEPLOYMENT — 5-STAGE WORKFLOW (C1-C4)\n" +
268
+ "═══════════════════════════════════════════════════════════════\n" +
269
+ "When a user wants to build/deploy a service, follow these 5 stages IN ORDER. " +
270
+ "Each stage's output tells you the next action to call:\n\n" +
271
+ " Stage 1: Project Naming\n" +
272
+ " → Use `project` + `version` params to name the project (e.g. myshop_v1).\n" +
273
+ " Stage 2: Business Puzzle (action='analyze_intent')\n" +
274
+ " → Input: user_intent (natural language), industry hint.\n" +
275
+ " → Output: ODG (object dependency graph), puzzles, missing fields, next_step.\n" +
276
+ " → Guide user to fill missing fields, then proceed to Stage 3.\n" +
277
+ " Stage 3: Risk Calibration (action='aggregate_risks')\n" +
278
+ " → Input: puzzles from Stage 2.\n" +
279
+ " → Output: risk findings, can_proceed flag.\n" +
280
+ " → CRITICAL risks block; HIGH/MEDIUM/LOW only warn. Fix CRITICAL before proceeding.\n" +
281
+ " Stage 4: Deployment Doc (action='generate_deployment_doc')\n" +
282
+ " → Input: objects, edges, steps (topological plan from Stage 2-3).\n" +
283
+ " → Output: markdown deployment doc, D-01..D-18 scanner checks, can_proceed.\n" +
284
+ " → 0 D-errors required before Stage 5.\n" +
285
+ " Stage 5: Substep Trace (action='trace_substeps')\n" +
286
+ " → Input: substeps (from deployment doc), network (testnet/mainnet).\n" +
287
+ " → Output: coherence check, D-10 substep linkage, can_proceed.\n" +
288
+ " → Execute each substep via onchain_operations, record outcomes.\n\n" +
289
+ "Correct object creation order (topological): Permission → Allocation → Guard → Machine → Service.\n" +
290
+ "All objects created as draft (publish=false) first; publish Machine before Service (last).\n\n" +
291
+ "═══════════════════════════════════════════════════════════════\n" +
292
+ " GRAPH QUERY ACTIONS (10)\n" +
293
+ "═══════════════════════════════════════════════════════════════\n" +
294
+ " • list_projects — List all discovered projects with object counts.\n" +
268
295
  " • list_objects — List objects in a project (requires `project` param).\n" +
269
- " • shareable — List objects tagged `shareable:true` (cross-project reusable: common Permission, 3rd-party Arb).\n" +
270
- " • dependencies — Trace forward dependencies of an object (BFS transitive closure + dangling refs).\n" +
296
+ " • shareable — List cross-project reusable objects (common Permission, 3rd-party Arb).\n" +
297
+ " • dependencies — Trace forward dependencies of an object (BFS + dangling refs).\n" +
271
298
  " • referenced_by — Reverse query: who references this object?\n" +
272
- " • pre_publish_check — Pre-publish sanity check for a service (dangling deps + cycles).\n" +
273
- " • cross_project_refs — Find edges that cross project boundaries.\n" +
299
+ " • pre_publish_check — Pre-publish sanity check (dangling deps + cycles).\n" +
300
+ " • cross_project_refs — Find edges crossing project boundaries.\n" +
274
301
  " • graph_stats — Graph statistics (node/edge counts, cycles, dangling deps).\n" +
275
- " • save_graph — Save the in-memory graph to ~/.wowok/project-graph.json (persist across sessions).\n" +
276
- " • load_graph — Load the graph from file (restore after restart).\n\n" +
277
- "NOTE: The graph is in-memory by default. Use save_graph/load_graph for cross-session persistence " +
278
- "(or toggle graph_persist via config_operation for auto-save). " +
279
- "list_projects/shareable always query local_mark (persistent).\n\n" +
280
- "💡 Schema hint: Use schema_query with action='get' and name='project_operation' to retrieve the exact parameter schema with all actions and field definitions.",
302
+ " • save_graph — Save graph to ~/.wowok/project-graph.json.\n" +
303
+ " • load_graph — Load graph from file (restore after restart).\n\n" +
304
+ "💡 Schema hint: Use schema_query with action='get' and name='project_operation' for exact field definitions.",
281
305
  inputSchema: ProjectOperationInputSchema,
282
306
  outputSchema: ProjectOperationOutputSchema,
283
- annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false },
284
- _meta: createToolMeta("project", ["project", "namespace", "graph", "dag", "dependency", "reference", "organization"]),
307
+ annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false },
308
+ _meta: createToolMeta("project", ["project", "namespace", "graph", "dag", "dependency", "reference", "organization", "deployment", "5-stage", "analyze_intent", "aggregate_risks", "deployment_doc", "trace_substeps", "puzzle", "risk", "odg"]),
285
309
  },
286
310
  },
287
311
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wowok/agent-mcp",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
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",