@wowok/agent-mcp 2.7.8 → 2.7.10

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.
Files changed (334) hide show
  1. package/README.md +2 -2
  2. package/dist/config/runtime.d.ts +1 -1
  3. package/dist/config/runtime.js +1 -1
  4. package/dist/examples/rental-ziroom-machine-create.json +1 -2
  5. package/dist/examples/rental-ziroom-permission-create.json +1 -2
  6. package/dist/examples/rental-ziroom-service-create.json +1 -2
  7. package/dist/experience/experience-reuse.js +1 -1
  8. package/dist/experience/index.d.ts +2 -1
  9. package/dist/experience/index.js +1 -1
  10. package/dist/experience/persistence-config.d.ts +6 -0
  11. package/dist/experience/persistence-config.js +1 -0
  12. package/dist/experience/persistence.d.ts +21 -0
  13. package/dist/experience/persistence.js +1 -0
  14. package/dist/experience/realtime-feedback.js +1 -1
  15. package/dist/experience/user-profile.js +1 -1
  16. package/dist/extensions/business-modules.d.ts +1 -1
  17. package/dist/extensions/capability-manifest.d.ts +1 -1
  18. package/dist/extensions/types.d.ts +1 -1
  19. package/dist/goal/GoalClassifier.d.ts +17 -0
  20. package/dist/goal/GoalClassifier.js +1 -0
  21. package/dist/goal/GoalEngine.d.ts +120 -0
  22. package/dist/goal/GoalEngine.js +1 -0
  23. package/dist/goal/GoalStore.d.ts +27 -0
  24. package/dist/goal/GoalStore.js +1 -0
  25. package/dist/goal/plan-approval.d.ts +5 -0
  26. package/dist/goal/plan-approval.js +1 -0
  27. package/dist/goal/types.d.ts +76 -0
  28. package/dist/goal/types.js +1 -0
  29. package/dist/harness/index.d.ts +2 -7
  30. package/dist/harness/index.js +1 -1
  31. package/dist/harness/plan.d.ts +1 -1
  32. package/dist/harness/types.d.ts +0 -35
  33. package/dist/index.js +1 -1
  34. package/dist/knowledge/account-marks.d.ts +35 -0
  35. package/dist/knowledge/account-marks.js +1 -0
  36. package/dist/knowledge/audit-rules.d.ts +3 -1
  37. package/dist/knowledge/audit-rules.js +1 -1
  38. package/dist/knowledge/examples-scanner-cli.js +1 -1
  39. package/dist/knowledge/examples-scanner.js +1 -1
  40. package/dist/knowledge/goal-completion.d.ts +19 -0
  41. package/dist/knowledge/goal-completion.js +1 -0
  42. package/dist/knowledge/guard-translation.js +1 -1
  43. package/dist/knowledge/index.d.ts +3 -2
  44. package/dist/knowledge/index.js +1 -1
  45. package/dist/knowledge/industry-registry.js +1 -1
  46. package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
  47. package/dist/knowledge/mcp-schema-audit.js +1 -1
  48. package/dist/knowledge/operation-dictionary.js +1 -1
  49. package/dist/knowledge/passport-confirm.js +1 -1
  50. package/dist/knowledge/passport-puzzle.js +1 -1
  51. package/dist/knowledge/passport-translation.js +1 -1
  52. package/dist/knowledge/proof-risk.js +1 -1
  53. package/dist/knowledge/safety-rules.js +1 -1
  54. package/dist/knowledge/service-translation.js +1 -1
  55. package/dist/knowledge/template-registry.js +1 -1
  56. package/dist/knowledge/tools-reference.js +1 -1
  57. package/dist/knowledge/workflow-guidance.d.ts +1 -0
  58. package/dist/knowledge/workflow-guidance.js +1 -1
  59. package/dist/knowledge/workspace-lists.d.ts +56 -0
  60. package/dist/knowledge/workspace-lists.js +1 -0
  61. package/dist/loop-engineering/context-collect.d.ts +1 -1
  62. package/dist/monitor/EventRouter.d.ts +10 -0
  63. package/dist/monitor/EventRouter.js +1 -0
  64. package/dist/monitor/EventStore.d.ts +32 -12
  65. package/dist/monitor/EventStore.js +1 -1
  66. package/dist/monitor/MonitorLoop.d.ts +79 -0
  67. package/dist/monitor/MonitorLoop.js +1 -0
  68. package/dist/monitor/ProblemBridge.d.ts +32 -0
  69. package/dist/monitor/ProblemBridge.js +1 -0
  70. package/dist/monitor/ScopeResolver.d.ts +59 -0
  71. package/dist/monitor/ScopeResolver.js +1 -0
  72. package/dist/monitor/SubscriptionStore.d.ts +13 -0
  73. package/dist/monitor/SubscriptionStore.js +1 -0
  74. package/dist/monitor/normalize.d.ts +8 -0
  75. package/dist/monitor/normalize.js +1 -0
  76. package/dist/monitor/types.d.ts +89 -0
  77. package/dist/monitor/types.js +1 -0
  78. package/dist/persona/address-format.d.ts +1 -1
  79. package/dist/persona/address-format.js +1 -1
  80. package/dist/persona/distill-goal.d.ts +20 -0
  81. package/dist/persona/distill-goal.js +1 -0
  82. package/dist/persona/index.d.ts +2 -0
  83. package/dist/persona/index.js +1 -1
  84. package/dist/persona/model.js +1 -1
  85. package/dist/playbooks/service-build/business-puzzle.js +1 -0
  86. package/dist/{project → playbooks/service-build}/context-assembly.d.ts +9 -4
  87. package/dist/playbooks/service-build/context-assembly.js +1 -0
  88. package/dist/{project → playbooks/service-build}/game-theory.d.ts +1 -1
  89. package/dist/playbooks/service-build/index.d.ts +14 -0
  90. package/dist/playbooks/service-build/index.js +1 -0
  91. package/dist/{project → playbooks/service-build}/intent-analyzer.d.ts +1 -1
  92. package/dist/playbooks/service-build/intent-analyzer.js +1 -0
  93. package/dist/{project → playbooks/service-build}/machine-panorama.d.ts +5 -3
  94. package/dist/playbooks/service-build/machine-panorama.js +1 -0
  95. package/dist/{project → playbooks/service-build}/merchant-guide.d.ts +1 -1
  96. package/dist/playbooks/service-build/merchant-guide.js +1 -0
  97. package/dist/{project → playbooks/service-build}/mode-actions.d.ts +2 -2
  98. package/dist/playbooks/service-build/mode-actions.js +1 -0
  99. package/dist/playbooks/service-build/namespace.d.ts +2 -0
  100. package/dist/playbooks/service-build/namespace.js +1 -0
  101. package/dist/{project → playbooks/service-build}/object-panorama.d.ts +2 -3
  102. package/dist/playbooks/service-build/object-panorama.js +1 -0
  103. package/dist/{project → playbooks/service-build}/participation-radar.d.ts +4 -5
  104. package/dist/playbooks/service-build/participation-radar.js +1 -0
  105. package/dist/{project → playbooks/service-build}/pipeline-actions.d.ts +9 -9
  106. package/dist/playbooks/service-build/pipeline-actions.js +1 -0
  107. package/dist/playbooks/service-build/process.d.ts +6 -0
  108. package/dist/playbooks/service-build/process.js +1 -0
  109. package/dist/playbooks/service-build/risk-aggregator.js +1 -0
  110. package/dist/{project → playbooks/service-build}/semantic-graph.d.ts +2 -2
  111. package/dist/{project → playbooks/service-build}/service-panorama.d.ts +3 -19
  112. package/dist/playbooks/service-build/service-panorama.js +1 -0
  113. package/dist/review/arb.d.ts +6 -0
  114. package/dist/review/arb.js +1 -0
  115. package/dist/review/demand.d.ts +3 -0
  116. package/dist/review/demand.js +1 -0
  117. package/dist/review/index.d.ts +3 -0
  118. package/dist/review/index.js +1 -0
  119. package/dist/review/machine.d.ts +3 -0
  120. package/dist/review/machine.js +1 -0
  121. package/dist/review/order.d.ts +9 -0
  122. package/dist/review/order.js +1 -0
  123. package/dist/review/progress.d.ts +3 -0
  124. package/dist/review/progress.js +1 -0
  125. package/dist/review/repository.d.ts +3 -0
  126. package/dist/review/repository.js +1 -0
  127. package/dist/review/service.d.ts +5 -0
  128. package/dist/review/service.js +1 -0
  129. package/dist/review/types.d.ts +156 -0
  130. package/dist/review/types.js +1 -0
  131. package/dist/rules.d.ts +2 -2
  132. package/dist/rules.js +1 -1
  133. package/dist/safety/confirm-gate.js +1 -1
  134. package/dist/safety/index.d.ts +1 -1
  135. package/dist/safety/index.js +1 -1
  136. package/dist/safety/preview.d.ts +1 -0
  137. package/dist/safety/preview.js +1 -1
  138. package/dist/schema/call/allocation.d.ts +1 -1
  139. package/dist/schema/call/arbitration.d.ts +1 -1
  140. package/dist/schema/call/base.d.ts +1 -1
  141. package/dist/schema/call/base.js +1 -1
  142. package/dist/schema/call/bridge.d.ts +4 -4
  143. package/dist/schema/call/contact.d.ts +1 -1
  144. package/dist/schema/call/contact.js +1 -1
  145. package/dist/schema/call/demand.d.ts +1 -1
  146. package/dist/schema/call/demand.js +1 -1
  147. package/dist/schema/call/guard.d.ts +3 -3
  148. package/dist/schema/call/handler.d.ts +0 -3
  149. package/dist/schema/call/handler.js +1 -1
  150. package/dist/schema/call/machine.d.ts +2 -2
  151. package/dist/schema/call/order.d.ts +1 -1
  152. package/dist/schema/call/payment.d.ts +1 -1
  153. package/dist/schema/call/permission.d.ts +1 -1
  154. package/dist/schema/call/personal.d.ts +1 -1
  155. package/dist/schema/call/progress.d.ts +1 -1
  156. package/dist/schema/call/proof.d.ts +2 -2
  157. package/dist/schema/call/repository.d.ts +1 -1
  158. package/dist/schema/call/repository.js +1 -1
  159. package/dist/schema/call/reward.d.ts +1 -1
  160. package/dist/schema/call/semantic.js +1 -1
  161. package/dist/schema/call/service.d.ts +1 -1
  162. package/dist/schema/call/service.js +1 -1
  163. package/dist/schema/call/treasury.d.ts +1 -1
  164. package/dist/schema/common/index.js +1 -1
  165. package/dist/schema/goal/index.d.ts +317 -0
  166. package/dist/schema/goal/index.js +1 -0
  167. package/dist/schema/goal/planning.d.ts +465 -0
  168. package/dist/schema/goal/planning.js +1 -0
  169. package/dist/schema/index.d.ts +1 -2
  170. package/dist/schema/index.js +1 -1
  171. package/dist/schema/industry-pack/index.d.ts +265 -1
  172. package/dist/schema/industry-pack/index.js +1 -1
  173. package/dist/schema/industry-pack/modes.d.ts +268 -0
  174. package/dist/schema/industry-pack/modes.js +1 -0
  175. package/dist/schema/local/index.js +1 -1
  176. package/dist/schema/operations.d.ts +216 -19
  177. package/dist/schema/operations.js +1 -1
  178. package/dist/schema/permission/index.d.ts +1 -0
  179. package/dist/schema/permission/index.js +1 -1
  180. package/dist/schema/persona/index.d.ts +40 -0
  181. package/dist/schema/persona/index.js +1 -1
  182. package/dist/schema/query/bi.d.ts +783 -0
  183. package/dist/schema/query/bi.js +1 -0
  184. package/dist/schema/query/index.d.ts +661 -0
  185. package/dist/schema/query/index.js +1 -1
  186. package/dist/schema/schema-version.js +1 -1
  187. package/dist/schema/utils/skills-recommendation.d.ts +0 -1
  188. package/dist/schema/utils/skills-recommendation.js +1 -1
  189. package/dist/schema-query-impl/index.js +1 -1
  190. package/dist/schemas/account_operation.output.json +3 -3
  191. package/dist/schemas/account_operation.schema.json +2 -2
  192. package/dist/schemas/bridge_operation.output.json +2 -2
  193. package/dist/schemas/bridge_operation.schema.json +12 -12
  194. package/dist/schemas/config_operation.output.json +1 -1
  195. package/dist/schemas/config_operation.schema.json +1 -1
  196. package/dist/schemas/goal_operation.schema.json +1016 -0
  197. package/dist/schemas/guard2file.schema.json +3 -3
  198. package/dist/schemas/index.json +12 -13
  199. package/dist/schemas/industry_pack_operation.output.json +898 -0
  200. package/dist/schemas/industry_pack_operation.schema.json +217 -2
  201. package/dist/schemas/local_info_operation.output.json +2 -2
  202. package/dist/schemas/local_mark_operation.output.json +2 -2
  203. package/dist/schemas/machineNode2file.schema.json +3 -3
  204. package/dist/schemas/messenger_operation.output.json +2 -2
  205. package/dist/schemas/monitor_events.output.json +78 -3
  206. package/dist/schemas/monitor_events.schema.json +24 -1
  207. package/dist/schemas/monitor_subscription.output.json +1462 -0
  208. package/dist/schemas/monitor_subscription.schema.json +327 -0
  209. package/dist/schemas/onchain_events.output.json +4 -4
  210. package/dist/schemas/onchain_operations.output.json +2 -2
  211. package/dist/schemas/onchain_operations.schema.json +59 -59
  212. package/dist/schemas/onchain_operations_allocation.schema.json +3 -3
  213. package/dist/schemas/onchain_operations_arbitration.schema.json +3 -3
  214. package/dist/schemas/onchain_operations_contact.schema.json +4 -4
  215. package/dist/schemas/onchain_operations_demand.schema.json +4 -4
  216. package/dist/schemas/onchain_operations_gen_passport.schema.json +3 -3
  217. package/dist/schemas/onchain_operations_gen_proof.schema.json +3 -3
  218. package/dist/schemas/onchain_operations_guard.schema.json +3 -3
  219. package/dist/schemas/onchain_operations_machine.schema.json +3 -3
  220. package/dist/schemas/onchain_operations_order.schema.json +3 -3
  221. package/dist/schemas/onchain_operations_payment.schema.json +3 -3
  222. package/dist/schemas/onchain_operations_permission.schema.json +3 -3
  223. package/dist/schemas/onchain_operations_personal.schema.json +3 -3
  224. package/dist/schemas/onchain_operations_progress.schema.json +3 -3
  225. package/dist/schemas/onchain_operations_proof.schema.json +3 -3
  226. package/dist/schemas/onchain_operations_repository.schema.json +5 -5
  227. package/dist/schemas/onchain_operations_reward.schema.json +3 -3
  228. package/dist/schemas/onchain_operations_service.schema.json +4 -4
  229. package/dist/schemas/onchain_operations_treasury.schema.json +3 -3
  230. package/dist/schemas/onchain_table_data.output.json +346 -2
  231. package/dist/schemas/onchain_table_data.schema.json +22 -22
  232. package/dist/schemas/permission_operation.schema.json +6 -2
  233. package/dist/schemas/persona_operation.output.json +145 -0
  234. package/dist/schemas/persona_operation.schema.json +28 -2
  235. package/dist/schemas/query_toolkit.output.json +1274 -15
  236. package/dist/schemas/query_toolkit.schema.json +412 -11
  237. package/dist/schemas/workflow_operation.schema.json +4 -4
  238. package/dist/task/ProcessStore.d.ts +81 -0
  239. package/dist/task/ProcessStore.js +1 -0
  240. package/dist/task/playbook.d.ts +11 -0
  241. package/dist/task/playbook.js +1 -0
  242. package/dist/task/stage-gate.d.ts +22 -0
  243. package/dist/task/stage-gate.js +1 -0
  244. package/dist/{project → task}/substep-trace.d.ts +6 -45
  245. package/dist/task/types.d.ts +120 -0
  246. package/dist/task/types.js +1 -0
  247. package/dist/tools/handlers/config.js +1 -1
  248. package/dist/tools/handlers/goal.d.ts +4 -0
  249. package/dist/tools/handlers/goal.js +1 -0
  250. package/dist/tools/handlers/industry-pack.js +1 -1
  251. package/dist/tools/handlers/monitor.d.ts +24 -0
  252. package/dist/tools/handlers/monitor.js +1 -1
  253. package/dist/tools/handlers/network.d.ts +1 -0
  254. package/dist/tools/handlers/network.js +1 -0
  255. package/dist/tools/handlers/onchain.js +1 -1
  256. package/dist/tools/handlers/permission.js +1 -1
  257. package/dist/tools/handlers/persona.js +1 -1
  258. package/dist/tools/handlers/query.js +1 -1
  259. package/dist/tools/handlers/watch.js +1 -1
  260. package/dist/tools/index.d.ts +2 -0
  261. package/dist/tools/index.js +1 -1
  262. package/dist/tools/shared.js +1 -1
  263. package/dist/tools/wrap.js +1 -1
  264. package/package.json +5 -4
  265. package/dist/harness/checkpoint.d.ts +0 -8
  266. package/dist/harness/checkpoint.js +0 -1
  267. package/dist/knowledge/deployment-scanner.d.ts +0 -66
  268. package/dist/knowledge/deployment-scanner.js +0 -1
  269. package/dist/project/business-puzzle.js +0 -1
  270. package/dist/project/context-assembly.js +0 -1
  271. package/dist/project/deployment-bridge.d.ts +0 -5
  272. package/dist/project/deployment-bridge.js +0 -1
  273. package/dist/project/deployment-doc.d.ts +0 -190
  274. package/dist/project/deployment-doc.js +0 -1
  275. package/dist/project/edit-planner.d.ts +0 -123
  276. package/dist/project/edit-planner.js +0 -1
  277. package/dist/project/evaluation-fix.spec.d.ts +0 -1
  278. package/dist/project/evaluation-fix.spec.js +0 -1
  279. package/dist/project/evaluation.d.ts +0 -127
  280. package/dist/project/evaluation.js +0 -1
  281. package/dist/project/graph-builder.d.ts +0 -51
  282. package/dist/project/graph-builder.js +0 -1
  283. package/dist/project/graph.d.ts +0 -70
  284. package/dist/project/graph.js +0 -1
  285. package/dist/project/handlers.d.ts +0 -524
  286. package/dist/project/handlers.js +0 -1
  287. package/dist/project/index.d.ts +0 -91
  288. package/dist/project/index.js +0 -1
  289. package/dist/project/intent-analyzer.js +0 -1
  290. package/dist/project/machine-panorama.js +0 -1
  291. package/dist/project/merchant-guide.js +0 -1
  292. package/dist/project/mode-actions.js +0 -1
  293. package/dist/project/namespace.d.ts +0 -72
  294. package/dist/project/namespace.js +0 -1
  295. package/dist/project/object-panorama.js +0 -1
  296. package/dist/project/participation-radar.js +0 -1
  297. package/dist/project/pipeline-actions.js +0 -1
  298. package/dist/project/project-store.d.ts +0 -110
  299. package/dist/project/project-store.js +0 -1
  300. package/dist/project/query.d.ts +0 -43
  301. package/dist/project/query.js +0 -1
  302. package/dist/project/risk-aggregator.js +0 -1
  303. package/dist/project/semantic-assembler.d.ts +0 -93
  304. package/dist/project/semantic-assembler.js +0 -1
  305. package/dist/project/service-panorama.js +0 -1
  306. package/dist/project/stage-gate.d.ts +0 -52
  307. package/dist/project/stage-gate.js +0 -1
  308. package/dist/project/task-tracker.d.ts +0 -30
  309. package/dist/project/task-tracker.js +0 -1
  310. package/dist/schema/project/index.d.ts +0 -2021
  311. package/dist/schema/project/index.js +0 -1
  312. package/dist/schema/task-status.d.ts +0 -62
  313. package/dist/schema/task-status.js +0 -1
  314. package/dist/schemas/project_operation.output.json +0 -7877
  315. package/dist/schemas/project_operation.schema.json +0 -1139
  316. package/dist/schemas/query_task_status.output.json +0 -211
  317. package/dist/schemas/query_task_status.schema.json +0 -18
  318. package/dist/tools/handlers/project.d.ts +0 -2
  319. package/dist/tools/handlers/project.js +0 -1
  320. package/dist/tools/handlers/task-status.d.ts +0 -2
  321. package/dist/tools/handlers/task-status.js +0 -1
  322. /package/dist/{project → playbooks/service-build}/business-puzzle.d.ts +0 -0
  323. /package/dist/{project → playbooks/service-build}/game-theory.js +0 -0
  324. /package/dist/{project → playbooks/service-build}/machine-nodes.d.ts +0 -0
  325. /package/dist/{project → playbooks/service-build}/machine-nodes.js +0 -0
  326. /package/dist/{project → playbooks/service-build}/object-type.d.ts +0 -0
  327. /package/dist/{project → playbooks/service-build}/object-type.js +0 -0
  328. /package/dist/{project → playbooks/service-build}/reverse-mapping.d.ts +0 -0
  329. /package/dist/{project → playbooks/service-build}/reverse-mapping.js +0 -0
  330. /package/dist/{project → playbooks/service-build}/risk-aggregator.d.ts +0 -0
  331. /package/dist/{project → playbooks/service-build}/semantic-graph.js +0 -0
  332. /package/dist/{project → playbooks/service-build}/workflow-design-assessment.d.ts +0 -0
  333. /package/dist/{project → playbooks/service-build}/workflow-design-assessment.js +0 -0
  334. /package/dist/{project → task}/substep-trace.js +0 -0
@@ -1,211 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://wowok.net/schemas/query_task_status.output.json",
4
- "title": "Task Status - Async Operation Tracking",
5
- "description": "Query the status of a long-running async task (created by build_graph or evaluate_project with async_mode=true). Returns progress percentage, current status, and the final result.",
6
- "type": "object",
7
- "properties": {
8
- "task_id": {
9
- "description": "The queried task ID (present when a single task was queried).",
10
- "type": "string"
11
- },
12
- "task": {
13
- "anyOf": [
14
- {
15
- "type": "object",
16
- "properties": {
17
- "task_id": {
18
- "type": "string",
19
- "description": "Unique task identifier."
20
- },
21
- "operation": {
22
- "type": "string",
23
- "description": "Operation type that created this task (e.g. 'build_graph')."
24
- },
25
- "status": {
26
- "type": "string",
27
- "enum": [
28
- "pending",
29
- "running",
30
- "completed",
31
- "failed",
32
- "cancelled"
33
- ],
34
- "description": "Current task status."
35
- },
36
- "progress": {
37
- "type": "number",
38
- "description": "Progress percentage 0-100."
39
- },
40
- "message": {
41
- "type": "string",
42
- "description": "Human-readable progress message."
43
- },
44
- "result": {
45
- "anyOf": [
46
- {},
47
- {
48
- "type": "null"
49
- }
50
- ],
51
- "description": "Result payload (set when status='completed'). null otherwise."
52
- },
53
- "error": {
54
- "anyOf": [
55
- {
56
- "type": "string"
57
- },
58
- {
59
- "type": "null"
60
- }
61
- ],
62
- "description": "Error message (set when status='failed'). null otherwise."
63
- },
64
- "started_at": {
65
- "type": "number",
66
- "description": "Timestamp (ms) when the task was created."
67
- },
68
- "completed_at": {
69
- "anyOf": [
70
- {
71
- "type": "number"
72
- },
73
- {
74
- "type": "null"
75
- }
76
- ],
77
- "description": "Timestamp (ms) when the task reached a terminal state. null if still running."
78
- },
79
- "project_id": {
80
- "anyOf": [
81
- {
82
- "type": "string"
83
- },
84
- {
85
- "type": "null"
86
- }
87
- ],
88
- "description": "Project ID associated with this task, if any."
89
- }
90
- },
91
- "required": [
92
- "task_id",
93
- "operation",
94
- "status",
95
- "progress",
96
- "message",
97
- "result",
98
- "error",
99
- "started_at",
100
- "completed_at",
101
- "project_id"
102
- ],
103
- "additionalProperties": false
104
- },
105
- {
106
- "type": "null"
107
- }
108
- ],
109
- "description": "The task state. null if task_id not found or when listing."
110
- },
111
- "tasks": {
112
- "description": "List of tasks (present when task_id was omitted).",
113
- "type": "array",
114
- "items": {
115
- "type": "object",
116
- "properties": {
117
- "task_id": {
118
- "type": "string",
119
- "description": "Unique task identifier."
120
- },
121
- "operation": {
122
- "type": "string",
123
- "description": "Operation type that created this task (e.g. 'build_graph')."
124
- },
125
- "status": {
126
- "type": "string",
127
- "enum": [
128
- "pending",
129
- "running",
130
- "completed",
131
- "failed",
132
- "cancelled"
133
- ],
134
- "description": "Current task status."
135
- },
136
- "progress": {
137
- "type": "number",
138
- "description": "Progress percentage 0-100."
139
- },
140
- "message": {
141
- "type": "string",
142
- "description": "Human-readable progress message."
143
- },
144
- "result": {
145
- "anyOf": [
146
- {},
147
- {
148
- "type": "null"
149
- }
150
- ],
151
- "description": "Result payload (set when status='completed'). null otherwise."
152
- },
153
- "error": {
154
- "anyOf": [
155
- {
156
- "type": "string"
157
- },
158
- {
159
- "type": "null"
160
- }
161
- ],
162
- "description": "Error message (set when status='failed'). null otherwise."
163
- },
164
- "started_at": {
165
- "type": "number",
166
- "description": "Timestamp (ms) when the task was created."
167
- },
168
- "completed_at": {
169
- "anyOf": [
170
- {
171
- "type": "number"
172
- },
173
- {
174
- "type": "null"
175
- }
176
- ],
177
- "description": "Timestamp (ms) when the task reached a terminal state. null if still running."
178
- },
179
- "project_id": {
180
- "anyOf": [
181
- {
182
- "type": "string"
183
- },
184
- {
185
- "type": "null"
186
- }
187
- ],
188
- "description": "Project ID associated with this task, if any."
189
- }
190
- },
191
- "required": [
192
- "task_id",
193
- "operation",
194
- "status",
195
- "progress",
196
- "message",
197
- "result",
198
- "error",
199
- "started_at",
200
- "completed_at",
201
- "project_id"
202
- ],
203
- "additionalProperties": false
204
- }
205
- }
206
- },
207
- "required": [
208
- "task"
209
- ],
210
- "additionalProperties": false
211
- }
@@ -1,18 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://wowok.net/schemas/query_task_status.json",
4
- "title": "Task Status - Async Operation Tracking",
5
- "description": "Query the status of an async task, or list all recent tasks when task_id is omitted.",
6
- "type": "object",
7
- "properties": {
8
- "task_id": {
9
- "description": "The task ID to query (returned by a prior async operation). If omitted, lists all recent tasks (most recent first, max 50).",
10
- "type": "string"
11
- },
12
- "project_id": {
13
- "description": "Optional filter — when listing tasks (task_id omitted), only return tasks for this project.",
14
- "type": "string"
15
- }
16
- },
17
- "additionalProperties": false
18
- }
@@ -1,2 +0,0 @@
1
- import type { ToolDispatchResult } from "../types.js";
2
- export declare function handleProjectOperation(args: unknown): Promise<ToolDispatchResult>;
@@ -1 +0,0 @@
1
- import{assembleContext}from'../../project/context-assembly.js';import{generateDeploymentDocFromProject}from'../../project/deployment-bridge.js';import{generateBusinessReport}from'../../project/reverse-mapping.js';import{LocalProject,query_objects}from'@wowok/wowok';import{validateStageGate}from'../../project/stage-gate.js';import{scanDeployment}from'../../knowledge/deployment-scanner.js';import{handleListProjects,handleCreateProject,handleCreateProjectFromOnchain,handleUpdateProject,handleGetProjectDetail,handleAddObject,handleRemoveObject,handleUpdateObject,handleCreateVersion,handleBuildGraph,handleGetGraph,handleEvaluateProject,handleSaveEvaluation,handleCompareProjects,handleRefreshObjects,handleGetObjectDiff,handleDeleteProject,handleGetMachineGraph,handleGetGuardGraph,handlePreEvaluateCheck,handleVerifyDeployment,handleCloneProjectToNetwork,handleMigrateToMainnet}from'../../project/handlers.js';import{handlePlanObjectEdit,handleApplyObjectEdit,handlePatchMachineNodes,handlePatchGuardTree}from'../../project/edit-planner.js';import{handleRecommendIndustry,handleListModes,handleDeriveUserMode,handleEvolveUserMode,handleRegisterUserMode,handleUnregisterUserMode,handleRegisterCustomMetric,handleRegisterCustomConstraint,handleListMetricsConstraints}from'../../project/mode-actions.js';import{handleAnalyzeIntent,handleAggregateRisks,handleTraceSubsteps}from'../../project/pipeline-actions.js';import{handleMerchantGuide}from'../../project/merchant-guide.js';import{handleParticipationRadar}from'../../project/participation-radar.js';import{handleServicePanorama}from'../../project/service-panorama.js';import{handleMachinePanorama}from'../../project/machine-panorama.js';import{handleObjectPanorama}from'../../project/object-panorama.js';import{strictParse}from'../../schema/index.js';import{ProjectOperationInputSchema}from'../../schema/project/index.js';import{getStageCache}from'../../project/index.js';import{getSkillsHintForProject}from'../../schema/utils/skills-recommendation.js';export async function handleProjectOperation(a){const b=strictParse(ProjectOperationInputSchema,a,'project_operation\x20input'),{action:c}=b;let d;switch(c){case'list_projects':d=await handleListProjects(b);break;case'create_project':d=await handleCreateProject(b);break;case'create_project_from_onchain':d=await handleCreateProjectFromOnchain(b);break;case'update_project':d=await handleUpdateProject(b);break;case'get_project_detail':d=await handleGetProjectDetail(b);break;case'add_object':d=await handleAddObject(b);break;case'remove_object':d=await handleRemoveObject(b);break;case'update_object':d=await handleUpdateObject(b);break;case'create_version':d=await handleCreateVersion(b);break;case'build_graph':d=await handleBuildGraph(b);break;case'get_graph':d=await handleGetGraph(b);break;case'evaluate_project':d=await handleEvaluateProject(b);break;case'save_evaluation':d=await handleSaveEvaluation(b);break;case'compare_projects':d=await handleCompareProjects(b);break;case'refresh_objects':d=await handleRefreshObjects(b);break;case'get_object_diff':d=await handleGetObjectDiff(b);break;case'delete_project':d=await handleDeleteProject(b);break;case'get_machine_graph':d=await handleGetMachineGraph(b);break;case'get_guard_graph':d=await handleGetGuardGraph(b);break;case'assemble_context':d=await assembleContext(b);break;case'reverse_map':{if(!b['context_objects']||b['context_objects']['length']===0x0)throw new Error('reverse_map\x20requires\x20\x27context_objects\x27\x20—\x20an\x20array\x20of\x20object\x20IDs\x20or\x20LocalMark\x20names\x20(include\x20the\x20Service;\x20add\x20Machine/Allocation\x20for\x20refund-path\x20detection).');const f=b['context_network']??'testnet',g=await query_objects({'objects':b['context_objects'],'no_cache':![],'network':f}),h=g?.['objects']??[];d={'action':'reverse_map','objects_queried':h['length'],'report':generateBusinessReport({'objects':h,'order_amount':b['reverse_order_amount']})};break;}case'generate_deployment_doc':{const {project_id:i,network:j,save:save=!![],detail_level:k}=b;if(!i)throw new Error('\x27project_id\x27\x20is\x20required\x20for\x20generate_deployment_doc');if(!j)throw new Error('\x27network\x27\x20is\x20required\x20for\x20generate_deployment_doc');const l=await generateDeploymentDocFromProject(i,j,k);save&&await LocalProject['Instance']()['saveDocument'](i,j,l['markdown']);const m=await LocalProject['Instance']()['getProject'](i),n=getStageCache(m?.['prefix']??i,m?.['currentVersion']??'v1'),o=validateStageGate({'stage':0x4,'prefix':m?.['prefix']??i,'version':m?.['currentVersion']??'v1','objects':[],'risk_status':n?.['risk_status'],'risk_can_proceed':n?.['risk_can_proceed'],'has_published_object':![],'deployment_doc_generated':!![]}),p=scanDeployment({'project_name':m?.['prefix']??i});d={'action':'generate_deployment_doc','markdown':l['markdown'],'validation':l['validation'],'saved':save,'detail_level':k??'summary','stage_gate':{'stage':o['stage'],'passed':o['passed'],'can_proceed':o['can_proceed'],'blocking_issues':o['blocking_issues'],'warnings':o['warnings'],'checks':o['checks']},'deployment_scan':{'overall_readiness':p['overall_readiness'],'critical_count':p['findings']['filter'](q=>q['severity']==='critical')['length'],'warning_count':p['findings']['filter'](q=>q['severity']==='warning')['length'],'findings':p['findings'],'checks':p['checks']}};break;}case'pre_evaluate_check':d=await handlePreEvaluateCheck(b);break;case'verify_deployment':d=await handleVerifyDeployment(b);break;case'clone_project_to_network':d=await handleCloneProjectToNetwork(b);break;case'migrate_network':d=await handleCloneProjectToNetwork(b);break;case'migrate_to_mainnet':d=await handleMigrateToMainnet(b);break;case'plan_object_edit':d=await handlePlanObjectEdit(b);break;case'apply_object_edit':d=await handleApplyObjectEdit(b);break;case'patch_machine_nodes':d=await handlePatchMachineNodes(b);break;case'patch_guard_tree':d=await handlePatchGuardTree(b);break;case'recommend_industry':d=handleRecommendIndustry(b);break;case'list_modes':d=await handleListModes();break;case'derive_user_mode':d=await handleDeriveUserMode(b);break;case'evolve_user_mode':d=await handleEvolveUserMode(b);break;case'register_user_mode':d=await handleRegisterUserMode(b);break;case'unregister_user_mode':d=await handleUnregisterUserMode(b);break;case'register_custom_metric':d=handleRegisterCustomMetric(b);break;case'register_custom_constraint':d=handleRegisterCustomConstraint(b);break;case'list_metrics_constraints':d=handleListMetricsConstraints(b);break;case'analyze_intent':d=handleAnalyzeIntent(b);break;case'aggregate_risks':d=handleAggregateRisks(b);break;case'trace_substeps':d=handleTraceSubsteps(b);break;case'merchant_guide':d=await handleMerchantGuide(b);break;case'participation_radar':d=await handleParticipationRadar(b);break;case'service_panorama':d=await handleServicePanorama(b);break;case'machine_panorama':d=await handleMachinePanorama(b);break;case'object_panorama':d=await handleObjectPanorama(b);break;default:throw new Error('Unknown\x20project_operation\x20action:\x20'+String(c));}const e=getSkillsHintForProject(c);return{'content':[{'type':'text','text':JSON['stringify']({'result':d})}],'structuredContent':e?{'result':d,'skills_recommended':e}:{'result':d}};}
@@ -1,2 +0,0 @@
1
- import type { ToolDispatchResult } from "../types.js";
2
- export declare function handleQueryTaskStatus(args: unknown): Promise<ToolDispatchResult>;
@@ -1 +0,0 @@
1
- import{TaskTracker}from'../../project/task-tracker.js';export async function handleQueryTaskStatus(a){const b=a&&typeof a==='object'?a:{};if(b['task_id']){const e=TaskTracker['get'](b['task_id']),f={'task_id':b['task_id'],'task':e??null,'tasks':undefined};return{'content':[{'type':'text','text':JSON['stringify'](f)}],'structuredContent':f};}const c=TaskTracker['list'](b['project_id'])['slice'](0x0,0x32),d={'task_id':undefined,'task':null,'tasks':c};return{'content':[{'type':'text','text':JSON['stringify'](d)}],'structuredContent':d};}
File without changes