@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.
- package/dist/schema/project/index.d.ts +20 -0
- package/dist/schema/project/index.js +15 -1
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +0 -16
- package/dist/schemas/onchain_operations_guard.schema.json +0 -515
- package/dist/schemas/onchain_operations_payment.schema.json +0 -515
- package/dist/schemas/onchain_operations_permission.schema.json +0 -515
- package/dist/schemas/onchain_operations_personal.schema.json +0 -515
- package/dist/schemas/project_operation.output.json +39 -0
- package/dist/schemas/project_operation.schema.json +1 -1
- package/dist/tools/handlers/project.js +4 -0
- package/dist/tools/index.js +41 -17
- package/package.json +1 -1
package/dist/tools/index.js
CHANGED
|
@@ -259,29 +259,53 @@ export const TOOL_REGISTRY = [
|
|
|
259
259
|
name: "project_operation",
|
|
260
260
|
handler: handleProjectOperation,
|
|
261
261
|
config: {
|
|
262
|
-
title: "🗂️ Project -
|
|
263
|
-
description: "
|
|
264
|
-
"
|
|
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
|
-
"
|
|
267
|
-
"
|
|
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
|
|
270
|
-
" • dependencies — Trace forward dependencies of an object (BFS
|
|
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
|
|
273
|
-
" • cross_project_refs — Find edges
|
|
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
|
|
276
|
-
" • load_graph — Load
|
|
277
|
-
"
|
|
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:
|
|
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
|
{
|