@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.
- package/README.md +2 -2
- package/dist/config/runtime.d.ts +1 -1
- package/dist/config/runtime.js +1 -1
- package/dist/examples/rental-ziroom-machine-create.json +1 -2
- package/dist/examples/rental-ziroom-permission-create.json +1 -2
- package/dist/examples/rental-ziroom-service-create.json +1 -2
- package/dist/experience/experience-reuse.js +1 -1
- package/dist/experience/index.d.ts +2 -1
- package/dist/experience/index.js +1 -1
- package/dist/experience/persistence-config.d.ts +6 -0
- package/dist/experience/persistence-config.js +1 -0
- package/dist/experience/persistence.d.ts +21 -0
- package/dist/experience/persistence.js +1 -0
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/experience/user-profile.js +1 -1
- package/dist/extensions/business-modules.d.ts +1 -1
- package/dist/extensions/capability-manifest.d.ts +1 -1
- package/dist/extensions/types.d.ts +1 -1
- package/dist/goal/GoalClassifier.d.ts +17 -0
- package/dist/goal/GoalClassifier.js +1 -0
- package/dist/goal/GoalEngine.d.ts +120 -0
- package/dist/goal/GoalEngine.js +1 -0
- package/dist/goal/GoalStore.d.ts +27 -0
- package/dist/goal/GoalStore.js +1 -0
- package/dist/goal/plan-approval.d.ts +5 -0
- package/dist/goal/plan-approval.js +1 -0
- package/dist/goal/types.d.ts +76 -0
- package/dist/goal/types.js +1 -0
- package/dist/harness/index.d.ts +2 -7
- package/dist/harness/index.js +1 -1
- package/dist/harness/plan.d.ts +1 -1
- package/dist/harness/types.d.ts +0 -35
- package/dist/index.js +1 -1
- package/dist/knowledge/account-marks.d.ts +35 -0
- package/dist/knowledge/account-marks.js +1 -0
- package/dist/knowledge/audit-rules.d.ts +3 -1
- package/dist/knowledge/audit-rules.js +1 -1
- package/dist/knowledge/examples-scanner-cli.js +1 -1
- package/dist/knowledge/examples-scanner.js +1 -1
- package/dist/knowledge/goal-completion.d.ts +19 -0
- package/dist/knowledge/goal-completion.js +1 -0
- package/dist/knowledge/guard-translation.js +1 -1
- package/dist/knowledge/index.d.ts +3 -2
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
- package/dist/knowledge/mcp-schema-audit.js +1 -1
- package/dist/knowledge/operation-dictionary.js +1 -1
- package/dist/knowledge/passport-confirm.js +1 -1
- package/dist/knowledge/passport-puzzle.js +1 -1
- package/dist/knowledge/passport-translation.js +1 -1
- package/dist/knowledge/proof-risk.js +1 -1
- package/dist/knowledge/safety-rules.js +1 -1
- package/dist/knowledge/service-translation.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +1 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/knowledge/workspace-lists.d.ts +56 -0
- package/dist/knowledge/workspace-lists.js +1 -0
- package/dist/loop-engineering/context-collect.d.ts +1 -1
- package/dist/monitor/EventRouter.d.ts +10 -0
- package/dist/monitor/EventRouter.js +1 -0
- package/dist/monitor/EventStore.d.ts +32 -12
- package/dist/monitor/EventStore.js +1 -1
- package/dist/monitor/MonitorLoop.d.ts +79 -0
- package/dist/monitor/MonitorLoop.js +1 -0
- package/dist/monitor/ProblemBridge.d.ts +32 -0
- package/dist/monitor/ProblemBridge.js +1 -0
- package/dist/monitor/ScopeResolver.d.ts +59 -0
- package/dist/monitor/ScopeResolver.js +1 -0
- package/dist/monitor/SubscriptionStore.d.ts +13 -0
- package/dist/monitor/SubscriptionStore.js +1 -0
- package/dist/monitor/normalize.d.ts +8 -0
- package/dist/monitor/normalize.js +1 -0
- package/dist/monitor/types.d.ts +89 -0
- package/dist/monitor/types.js +1 -0
- package/dist/persona/address-format.d.ts +1 -1
- package/dist/persona/address-format.js +1 -1
- package/dist/persona/distill-goal.d.ts +20 -0
- package/dist/persona/distill-goal.js +1 -0
- package/dist/persona/index.d.ts +2 -0
- package/dist/persona/index.js +1 -1
- package/dist/persona/model.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -0
- package/dist/{project → playbooks/service-build}/context-assembly.d.ts +9 -4
- package/dist/playbooks/service-build/context-assembly.js +1 -0
- package/dist/{project → playbooks/service-build}/game-theory.d.ts +1 -1
- package/dist/playbooks/service-build/index.d.ts +14 -0
- package/dist/playbooks/service-build/index.js +1 -0
- package/dist/{project → playbooks/service-build}/intent-analyzer.d.ts +1 -1
- package/dist/playbooks/service-build/intent-analyzer.js +1 -0
- package/dist/{project → playbooks/service-build}/machine-panorama.d.ts +5 -3
- package/dist/playbooks/service-build/machine-panorama.js +1 -0
- package/dist/{project → playbooks/service-build}/merchant-guide.d.ts +1 -1
- package/dist/playbooks/service-build/merchant-guide.js +1 -0
- package/dist/{project → playbooks/service-build}/mode-actions.d.ts +2 -2
- package/dist/playbooks/service-build/mode-actions.js +1 -0
- package/dist/playbooks/service-build/namespace.d.ts +2 -0
- package/dist/playbooks/service-build/namespace.js +1 -0
- package/dist/{project → playbooks/service-build}/object-panorama.d.ts +2 -3
- package/dist/playbooks/service-build/object-panorama.js +1 -0
- package/dist/{project → playbooks/service-build}/participation-radar.d.ts +4 -5
- package/dist/playbooks/service-build/participation-radar.js +1 -0
- package/dist/{project → playbooks/service-build}/pipeline-actions.d.ts +9 -9
- package/dist/playbooks/service-build/pipeline-actions.js +1 -0
- package/dist/playbooks/service-build/process.d.ts +6 -0
- package/dist/playbooks/service-build/process.js +1 -0
- package/dist/playbooks/service-build/risk-aggregator.js +1 -0
- package/dist/{project → playbooks/service-build}/semantic-graph.d.ts +2 -2
- package/dist/{project → playbooks/service-build}/service-panorama.d.ts +3 -19
- package/dist/playbooks/service-build/service-panorama.js +1 -0
- package/dist/review/arb.d.ts +6 -0
- package/dist/review/arb.js +1 -0
- package/dist/review/demand.d.ts +3 -0
- package/dist/review/demand.js +1 -0
- package/dist/review/index.d.ts +3 -0
- package/dist/review/index.js +1 -0
- package/dist/review/machine.d.ts +3 -0
- package/dist/review/machine.js +1 -0
- package/dist/review/order.d.ts +9 -0
- package/dist/review/order.js +1 -0
- package/dist/review/progress.d.ts +3 -0
- package/dist/review/progress.js +1 -0
- package/dist/review/repository.d.ts +3 -0
- package/dist/review/repository.js +1 -0
- package/dist/review/service.d.ts +5 -0
- package/dist/review/service.js +1 -0
- package/dist/review/types.d.ts +156 -0
- package/dist/review/types.js +1 -0
- package/dist/rules.d.ts +2 -2
- package/dist/rules.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/safety/index.d.ts +1 -1
- package/dist/safety/index.js +1 -1
- package/dist/safety/preview.d.ts +1 -0
- package/dist/safety/preview.js +1 -1
- package/dist/schema/call/allocation.d.ts +1 -1
- package/dist/schema/call/arbitration.d.ts +1 -1
- package/dist/schema/call/base.d.ts +1 -1
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +4 -4
- package/dist/schema/call/contact.d.ts +1 -1
- package/dist/schema/call/contact.js +1 -1
- package/dist/schema/call/demand.d.ts +1 -1
- package/dist/schema/call/demand.js +1 -1
- package/dist/schema/call/guard.d.ts +3 -3
- package/dist/schema/call/handler.d.ts +0 -3
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/machine.d.ts +2 -2
- package/dist/schema/call/order.d.ts +1 -1
- package/dist/schema/call/payment.d.ts +1 -1
- package/dist/schema/call/permission.d.ts +1 -1
- package/dist/schema/call/personal.d.ts +1 -1
- package/dist/schema/call/progress.d.ts +1 -1
- package/dist/schema/call/proof.d.ts +2 -2
- package/dist/schema/call/repository.d.ts +1 -1
- package/dist/schema/call/repository.js +1 -1
- package/dist/schema/call/reward.d.ts +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +1 -1
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/call/treasury.d.ts +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/goal/index.d.ts +317 -0
- package/dist/schema/goal/index.js +1 -0
- package/dist/schema/goal/planning.d.ts +465 -0
- package/dist/schema/goal/planning.js +1 -0
- package/dist/schema/index.d.ts +1 -2
- package/dist/schema/index.js +1 -1
- package/dist/schema/industry-pack/index.d.ts +265 -1
- package/dist/schema/industry-pack/index.js +1 -1
- package/dist/schema/industry-pack/modes.d.ts +268 -0
- package/dist/schema/industry-pack/modes.js +1 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/operations.d.ts +216 -19
- package/dist/schema/operations.js +1 -1
- package/dist/schema/permission/index.d.ts +1 -0
- package/dist/schema/permission/index.js +1 -1
- package/dist/schema/persona/index.d.ts +40 -0
- package/dist/schema/persona/index.js +1 -1
- package/dist/schema/query/bi.d.ts +783 -0
- package/dist/schema/query/bi.js +1 -0
- package/dist/schema/query/index.d.ts +661 -0
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/utils/skills-recommendation.d.ts +0 -1
- package/dist/schema/utils/skills-recommendation.js +1 -1
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +3 -3
- package/dist/schemas/account_operation.schema.json +2 -2
- package/dist/schemas/bridge_operation.output.json +2 -2
- package/dist/schemas/bridge_operation.schema.json +12 -12
- package/dist/schemas/config_operation.output.json +1 -1
- package/dist/schemas/config_operation.schema.json +1 -1
- package/dist/schemas/goal_operation.schema.json +1016 -0
- package/dist/schemas/guard2file.schema.json +3 -3
- package/dist/schemas/index.json +12 -13
- package/dist/schemas/industry_pack_operation.output.json +898 -0
- package/dist/schemas/industry_pack_operation.schema.json +217 -2
- package/dist/schemas/local_info_operation.output.json +2 -2
- package/dist/schemas/local_mark_operation.output.json +2 -2
- package/dist/schemas/machineNode2file.schema.json +3 -3
- package/dist/schemas/messenger_operation.output.json +2 -2
- package/dist/schemas/monitor_events.output.json +78 -3
- package/dist/schemas/monitor_events.schema.json +24 -1
- package/dist/schemas/monitor_subscription.output.json +1462 -0
- package/dist/schemas/monitor_subscription.schema.json +327 -0
- package/dist/schemas/onchain_events.output.json +4 -4
- package/dist/schemas/onchain_operations.output.json +2 -2
- package/dist/schemas/onchain_operations.schema.json +59 -59
- package/dist/schemas/onchain_operations_allocation.schema.json +3 -3
- package/dist/schemas/onchain_operations_arbitration.schema.json +3 -3
- package/dist/schemas/onchain_operations_contact.schema.json +4 -4
- package/dist/schemas/onchain_operations_demand.schema.json +4 -4
- package/dist/schemas/onchain_operations_gen_passport.schema.json +3 -3
- package/dist/schemas/onchain_operations_gen_proof.schema.json +3 -3
- package/dist/schemas/onchain_operations_guard.schema.json +3 -3
- package/dist/schemas/onchain_operations_machine.schema.json +3 -3
- package/dist/schemas/onchain_operations_order.schema.json +3 -3
- package/dist/schemas/onchain_operations_payment.schema.json +3 -3
- package/dist/schemas/onchain_operations_permission.schema.json +3 -3
- package/dist/schemas/onchain_operations_personal.schema.json +3 -3
- package/dist/schemas/onchain_operations_progress.schema.json +3 -3
- package/dist/schemas/onchain_operations_proof.schema.json +3 -3
- package/dist/schemas/onchain_operations_repository.schema.json +5 -5
- package/dist/schemas/onchain_operations_reward.schema.json +3 -3
- package/dist/schemas/onchain_operations_service.schema.json +4 -4
- package/dist/schemas/onchain_operations_treasury.schema.json +3 -3
- package/dist/schemas/onchain_table_data.output.json +346 -2
- package/dist/schemas/onchain_table_data.schema.json +22 -22
- package/dist/schemas/permission_operation.schema.json +6 -2
- package/dist/schemas/persona_operation.output.json +145 -0
- package/dist/schemas/persona_operation.schema.json +28 -2
- package/dist/schemas/query_toolkit.output.json +1274 -15
- package/dist/schemas/query_toolkit.schema.json +412 -11
- package/dist/schemas/workflow_operation.schema.json +4 -4
- package/dist/task/ProcessStore.d.ts +81 -0
- package/dist/task/ProcessStore.js +1 -0
- package/dist/task/playbook.d.ts +11 -0
- package/dist/task/playbook.js +1 -0
- package/dist/task/stage-gate.d.ts +22 -0
- package/dist/task/stage-gate.js +1 -0
- package/dist/{project → task}/substep-trace.d.ts +6 -45
- package/dist/task/types.d.ts +120 -0
- package/dist/task/types.js +1 -0
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/goal.d.ts +4 -0
- package/dist/tools/handlers/goal.js +1 -0
- package/dist/tools/handlers/industry-pack.js +1 -1
- package/dist/tools/handlers/monitor.d.ts +24 -0
- package/dist/tools/handlers/monitor.js +1 -1
- package/dist/tools/handlers/network.d.ts +1 -0
- package/dist/tools/handlers/network.js +1 -0
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/permission.js +1 -1
- package/dist/tools/handlers/persona.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/watch.js +1 -1
- package/dist/tools/index.d.ts +2 -0
- package/dist/tools/index.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +5 -4
- package/dist/harness/checkpoint.d.ts +0 -8
- package/dist/harness/checkpoint.js +0 -1
- package/dist/knowledge/deployment-scanner.d.ts +0 -66
- package/dist/knowledge/deployment-scanner.js +0 -1
- package/dist/project/business-puzzle.js +0 -1
- package/dist/project/context-assembly.js +0 -1
- package/dist/project/deployment-bridge.d.ts +0 -5
- package/dist/project/deployment-bridge.js +0 -1
- package/dist/project/deployment-doc.d.ts +0 -190
- package/dist/project/deployment-doc.js +0 -1
- package/dist/project/edit-planner.d.ts +0 -123
- package/dist/project/edit-planner.js +0 -1
- package/dist/project/evaluation-fix.spec.d.ts +0 -1
- package/dist/project/evaluation-fix.spec.js +0 -1
- package/dist/project/evaluation.d.ts +0 -127
- package/dist/project/evaluation.js +0 -1
- package/dist/project/graph-builder.d.ts +0 -51
- package/dist/project/graph-builder.js +0 -1
- package/dist/project/graph.d.ts +0 -70
- package/dist/project/graph.js +0 -1
- package/dist/project/handlers.d.ts +0 -524
- package/dist/project/handlers.js +0 -1
- package/dist/project/index.d.ts +0 -91
- package/dist/project/index.js +0 -1
- package/dist/project/intent-analyzer.js +0 -1
- package/dist/project/machine-panorama.js +0 -1
- package/dist/project/merchant-guide.js +0 -1
- package/dist/project/mode-actions.js +0 -1
- package/dist/project/namespace.d.ts +0 -72
- package/dist/project/namespace.js +0 -1
- package/dist/project/object-panorama.js +0 -1
- package/dist/project/participation-radar.js +0 -1
- package/dist/project/pipeline-actions.js +0 -1
- package/dist/project/project-store.d.ts +0 -110
- package/dist/project/project-store.js +0 -1
- package/dist/project/query.d.ts +0 -43
- package/dist/project/query.js +0 -1
- package/dist/project/risk-aggregator.js +0 -1
- package/dist/project/semantic-assembler.d.ts +0 -93
- package/dist/project/semantic-assembler.js +0 -1
- package/dist/project/service-panorama.js +0 -1
- package/dist/project/stage-gate.d.ts +0 -52
- package/dist/project/stage-gate.js +0 -1
- package/dist/project/task-tracker.d.ts +0 -30
- package/dist/project/task-tracker.js +0 -1
- package/dist/schema/project/index.d.ts +0 -2021
- package/dist/schema/project/index.js +0 -1
- package/dist/schema/task-status.d.ts +0 -62
- package/dist/schema/task-status.js +0 -1
- package/dist/schemas/project_operation.output.json +0 -7877
- package/dist/schemas/project_operation.schema.json +0 -1139
- package/dist/schemas/query_task_status.output.json +0 -211
- package/dist/schemas/query_task_status.schema.json +0 -18
- package/dist/tools/handlers/project.d.ts +0 -2
- package/dist/tools/handlers/project.js +0 -1
- package/dist/tools/handlers/task-status.d.ts +0 -2
- package/dist/tools/handlers/task-status.js +0 -1
- /package/dist/{project → playbooks/service-build}/business-puzzle.d.ts +0 -0
- /package/dist/{project → playbooks/service-build}/game-theory.js +0 -0
- /package/dist/{project → playbooks/service-build}/machine-nodes.d.ts +0 -0
- /package/dist/{project → playbooks/service-build}/machine-nodes.js +0 -0
- /package/dist/{project → playbooks/service-build}/object-type.d.ts +0 -0
- /package/dist/{project → playbooks/service-build}/object-type.js +0 -0
- /package/dist/{project → playbooks/service-build}/reverse-mapping.d.ts +0 -0
- /package/dist/{project → playbooks/service-build}/reverse-mapping.js +0 -0
- /package/dist/{project → playbooks/service-build}/risk-aggregator.d.ts +0 -0
- /package/dist/{project → playbooks/service-build}/semantic-graph.js +0 -0
- /package/dist/{project → playbooks/service-build}/workflow-design-assessment.d.ts +0 -0
- /package/dist/{project → playbooks/service-build}/workflow-design-assessment.js +0 -0
- /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 +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 +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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|