@wowok/agent-mcp 2.7.7 → 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/customer/index.d.ts +3 -4
- package/dist/customer/index.js +1 -1
- package/dist/customer/info-puzzle.js +1 -1
- package/dist/customer/order-monitor.d.ts +0 -9
- package/dist/customer/order-monitor.js +1 -1
- package/dist/customer/order-strategy.d.ts +0 -19
- package/dist/customer/order-strategy.js +1 -1
- package/dist/customer/reminder-system.d.ts +0 -5
- package/dist/customer/reminder-system.js +1 -1
- package/dist/evaluation/game-strategy.js +1 -1
- package/dist/evaluation/injection.d.ts +6 -0
- package/dist/evaluation/injection.js +1 -0
- package/dist/evaluation/node-game.js +1 -1
- package/dist/examples/machine-multisig-threshold.json +1 -0
- 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/recover.js +1 -1
- package/dist/harness/types.d.ts +1 -36
- package/dist/harness/verify.js +1 -1
- package/dist/index.js +1 -1
- package/dist/intent/enrich.js +1 -1
- package/dist/intent/matcher.js +1 -1
- package/dist/intent/types.d.ts +1 -1
- package/dist/intent/types.js +1 -1
- package/dist/knowledge/account-marks.d.ts +35 -0
- package/dist/knowledge/account-marks.js +1 -0
- package/dist/knowledge/arbitration-ledger.js +1 -1
- package/dist/knowledge/audit-rules.d.ts +3 -1
- package/dist/knowledge/audit-rules.js +1 -1
- package/dist/knowledge/contract-invariants.d.ts +53 -0
- package/dist/knowledge/contract-invariants.js +1 -0
- package/dist/knowledge/dynamic-pricing.d.ts +0 -2
- package/dist/knowledge/dynamic-pricing.js +1 -1
- package/dist/knowledge/event-semantics.d.ts +20 -0
- package/dist/knowledge/event-semantics.js +1 -0
- package/dist/knowledge/examples-scanner-cli.js +1 -1
- package/dist/knowledge/examples-scanner.js +1 -1
- package/dist/knowledge/glossary.js +1 -1
- package/dist/knowledge/goal-completion.d.ts +19 -0
- package/dist/knowledge/goal-completion.js +1 -0
- package/dist/knowledge/guard-submission-prompt.js +1 -1
- package/dist/knowledge/guard-translation.js +1 -1
- package/dist/knowledge/immutability.d.ts +11 -0
- package/dist/knowledge/immutability.js +1 -0
- package/dist/knowledge/index.d.ts +13 -6
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/intent-metrics.d.ts +1 -1
- package/dist/knowledge/jsonrpc-enum.d.ts +37 -0
- package/dist/knowledge/jsonrpc-enum.js +1 -0
- package/dist/knowledge/machine-confirm.js +1 -1
- package/dist/knowledge/machine-risk.js +1 -1
- package/dist/knowledge/machine-topology.d.ts +11 -0
- package/dist/knowledge/machine-topology.js +1 -1
- package/dist/knowledge/machine-translation.js +1 -1
- package/dist/knowledge/market-metrics.d.ts +11 -0
- package/dist/knowledge/market-metrics.js +1 -1
- package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
- package/dist/knowledge/mcp-schema-audit.d.ts +1 -0
- package/dist/knowledge/mcp-schema-audit.js +1 -1
- package/dist/knowledge/messenger-guard-guidance.d.ts +17 -0
- package/dist/knowledge/messenger-guard-guidance.js +1 -0
- package/dist/knowledge/operation-dictionary.d.ts +18 -0
- package/dist/knowledge/operation-dictionary.js +1 -0
- 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-ledger.js +1 -1
- package/dist/knowledge/service-risk.js +1 -1
- package/dist/knowledge/service-translation.js +1 -1
- package/dist/knowledge/supply-chain.d.ts +24 -0
- package/dist/knowledge/supply-chain.js +1 -0
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/trust-metrics.d.ts +27 -2
- package/dist/knowledge/trust-metrics.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +22 -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 +98 -0
- package/dist/monitor/EventStore.js +1 -0
- 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/participation/radar-core.d.ts +0 -1
- package/dist/participation/radar-core.js +1 -1
- package/dist/persona/address-format.d.ts +6 -0
- package/dist/persona/address-format.js +1 -0
- package/dist/persona/analyzer.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 +5 -0
- package/dist/persona/index.js +1 -1
- package/dist/persona/model.js +1 -1
- package/dist/persona/types.d.ts +1 -1
- package/dist/persona/types.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/playbooks/service-build/machine-nodes.d.ts +25 -0
- package/dist/playbooks/service-build/machine-nodes.js +1 -0
- package/dist/playbooks/service-build/machine-panorama.d.ts +43 -0
- 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/playbooks/service-build/object-panorama.d.ts +178 -0
- package/dist/playbooks/service-build/object-panorama.js +1 -0
- package/dist/playbooks/service-build/object-type.d.ts +1 -0
- package/dist/playbooks/service-build/object-type.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/playbooks/service-build/service-panorama.d.ts +164 -0
- 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/role/derivation.d.ts +19 -2
- package/dist/role/derivation.js +1 -1
- package/dist/role/index.d.ts +2 -2
- package/dist/role/index.js +1 -1
- package/dist/role/model.js +1 -1
- package/dist/role/resolution.d.ts +16 -0
- package/dist/role/resolution.js +1 -1
- package/dist/role/types.d.ts +1 -1
- package/dist/role/types.js +1 -1
- 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 +2 -1
- package/dist/schema/call/arbitration.d.ts +5 -4
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +17 -1
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +11 -4
- package/dist/schema/call/contact.d.ts +2 -1
- package/dist/schema/call/contact.js +1 -1
- package/dist/schema/call/demand.d.ts +2 -1
- package/dist/schema/call/demand.js +1 -1
- package/dist/schema/call/guard.d.ts +6 -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 +4 -2
- package/dist/schema/call/machine.js +1 -1
- package/dist/schema/call/order.d.ts +2 -1
- package/dist/schema/call/payment.d.ts +2 -1
- package/dist/schema/call/permission.d.ts +2 -1
- package/dist/schema/call/personal.d.ts +39 -1
- package/dist/schema/call/personal.js +1 -1
- package/dist/schema/call/progress.d.ts +2 -1
- package/dist/schema/call/proof.d.ts +4 -2
- package/dist/schema/call/repository.d.ts +6 -5
- package/dist/schema/call/repository.js +1 -1
- package/dist/schema/call/reward.d.ts +2 -13
- package/dist/schema/call/reward.js +1 -1
- package/dist/schema/call/semantic.d.ts +3 -2
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +2 -1
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/call/treasury.d.ts +2 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/evaluation/index.d.ts +146 -0
- package/dist/schema/evaluation/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 +2 -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/intent-radar/index.d.ts +30 -3
- package/dist/schema/intent-radar/index.js +1 -1
- package/dist/schema/local/index.d.ts +9 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +54 -0
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +1147 -94
- package/dist/schema/operations.js +1 -1
- package/dist/schema/permission/index.d.ts +18 -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 +1471 -208
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/trust/index.d.ts +17 -0
- package/dist/schema/trust/index.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/watch/index.d.ts +204 -0
- package/dist/schema/watch/index.js +1 -0
- package/dist/schema/workflow/index.d.ts +301 -0
- package/dist/schema/workflow/index.js +1 -1
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +8 -5
- package/dist/schemas/account_operation.schema.json +2 -2
- package/dist/schemas/bridge_operation.output.json +7 -4
- package/dist/schemas/bridge_operation.schema.json +37 -21
- package/dist/schemas/config_operation.output.json +1 -1
- package/dist/schemas/config_operation.schema.json +1 -1
- package/dist/schemas/evaluation_operation.output.json +276 -1
- package/dist/schemas/evaluation_operation.schema.json +307 -0
- package/dist/schemas/goal_operation.schema.json +1016 -0
- package/dist/schemas/guard2file.schema.json +9 -5
- package/dist/schemas/index.json +22 -11
- package/dist/schemas/industry_pack_operation.output.json +898 -0
- package/dist/schemas/industry_pack_operation.schema.json +217 -2
- package/dist/schemas/intent_radar.output.json +20 -2
- package/dist/schemas/intent_radar.schema.json +10 -1
- package/dist/schemas/local_info_operation.output.json +7 -4
- package/dist/schemas/local_mark_operation.output.json +7 -4
- package/dist/schemas/machineNode2file.schema.json +9 -5
- package/dist/schemas/messenger_operation.output.json +107 -4
- package/dist/schemas/messenger_operation.schema.json +98 -0
- package/dist/schemas/monitor_events.output.json +1435 -0
- package/dist/schemas/monitor_events.schema.json +85 -0
- 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 +241 -18
- package/dist/schemas/onchain_events.schema.json +20 -0
- package/dist/schemas/onchain_operations.output.json +12 -7
- package/dist/schemas/onchain_operations.schema.json +570 -478
- package/dist/schemas/onchain_operations_allocation.schema.json +14 -10
- package/dist/schemas/onchain_operations_arbitration.schema.json +17 -12
- package/dist/schemas/onchain_operations_contact.schema.json +13 -9
- package/dist/schemas/onchain_operations_demand.schema.json +13 -9
- package/dist/schemas/onchain_operations_gen_passport.schema.json +9 -5
- package/dist/schemas/onchain_operations_gen_proof.schema.json +9 -5
- package/dist/schemas/onchain_operations_guard.schema.json +9 -5
- package/dist/schemas/onchain_operations_machine.schema.json +17 -13
- package/dist/schemas/onchain_operations_order.schema.json +12 -8
- package/dist/schemas/onchain_operations_payment.schema.json +10 -6
- package/dist/schemas/onchain_operations_permission.schema.json +12 -8
- package/dist/schemas/onchain_operations_personal.schema.json +47 -5
- package/dist/schemas/onchain_operations_progress.schema.json +12 -8
- package/dist/schemas/onchain_operations_proof.schema.json +9 -5
- package/dist/schemas/onchain_operations_repository.schema.json +295 -310
- package/dist/schemas/onchain_operations_reward.schema.json +17 -13
- package/dist/schemas/onchain_operations_service.schema.json +21 -17
- package/dist/schemas/onchain_operations_treasury.schema.json +17 -13
- package/dist/schemas/onchain_table_data.output.json +4125 -239
- package/dist/schemas/onchain_table_data.schema.json +326 -15
- package/dist/schemas/permission_operation.output.json +32 -0
- 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 +3384 -2040
- package/dist/schemas/query_toolkit.schema.json +548 -9
- package/dist/schemas/trust_score.output.json +38 -0
- package/dist/schemas/trust_score.schema.json +32 -0
- package/dist/schemas/watch_operation.output.json +827 -0
- package/dist/schemas/watch_operation.schema.json +145 -0
- package/dist/schemas/workflow_operation.output.json +263 -5
- package/dist/schemas/workflow_operation.schema.json +599 -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/evaluation.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/intent-radar.js +1 -1
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/monitor.d.ts +26 -0
- package/dist/tools/handlers/monitor.js +1 -0
- 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/trust.d.ts +14 -0
- package/dist/tools/handlers/trust.js +1 -1
- package/dist/tools/handlers/watch.d.ts +2 -0
- package/dist/tools/handlers/watch.js +1 -0
- package/dist/tools/handlers/workflow.js +1 -1
- package/dist/tools/index.d.ts +4 -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/customer/post-purchase.d.ts +0 -44
- package/dist/customer/post-purchase.js +0 -1
- 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 -540
- 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-nodes.d.ts +0 -2
- package/dist/project/machine-nodes.js +0 -1
- package/dist/project/merchant-guide.js +0 -1
- package/dist/project/migration.d.ts +0 -22
- package/dist/project/migration.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/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/rollback-policy.d.ts +0 -45
- package/dist/project/rollback-policy.js +0 -1
- package/dist/project/semantic-assembler.d.ts +0 -93
- package/dist/project/semantic-assembler.js +0 -1
- package/dist/project/stage-gate.d.ts +0 -53
- package/dist/project/stage-gate.js +0 -1
- package/dist/project/task-tracker.d.ts +0 -26
- package/dist/project/task-tracker.js +0 -1
- package/dist/schema/project/index.d.ts +0 -2015
- 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 -1133
- 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}/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
|
@@ -0,0 +1,1016 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://wowok.net/schemas/goal_operation.json",
|
|
4
|
+
"title": "Goal - Goal-Driven Lifecycle (GoalEngine)",
|
|
5
|
+
"description": "GoalEngine Agent portal (K3 24) — record a user goal and track it through the nine-station lifecycle RECOGNIZE → CONFIRM → BIND → PLAN → APPROVE → ACT → MONITOR → COMPLETE. Actions: create (classify + dedupe-adopt; goal types with a dedicated playbook automatically attach a TaskProcess — the long-task carrier with named stages + events/problems/feedback/decisions streams; create_process=true forces one for generic goal types), list, get (goals with a process also return process_summary: current stage, per-stage progress, open problems, last events, feedback count — the interrupted-task resume surface; resume by continuing advance), approve (plan approval for the confirm gate), advance (stage move + ACT object registration, written back into the process manifest), pause, complete (chain-state verification or force; pass feedback {sentiment, comment} to record it on the process; the outcome is distilled into the experience layer), abandon.",
|
|
6
|
+
"oneOf": [
|
|
7
|
+
{
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"action": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"const": "create"
|
|
13
|
+
},
|
|
14
|
+
"intent_text": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Raw user intent text. goal_type is classified deterministically unless overridden."
|
|
17
|
+
},
|
|
18
|
+
"title": {
|
|
19
|
+
"description": "Short goal title; defaults to the first line of intent_text.",
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
"goal_type": {
|
|
23
|
+
"description": "Explicit goal_type override (publish_service | fulfill_order | capture_demand | purchase_service | collaborate_flow | supply_suborder | publish_demand | run_arbitration | dispute_resolution | manage_assets).",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": [
|
|
26
|
+
"publish_service",
|
|
27
|
+
"fulfill_order",
|
|
28
|
+
"capture_demand",
|
|
29
|
+
"purchase_service",
|
|
30
|
+
"collaborate_flow",
|
|
31
|
+
"supply_suborder",
|
|
32
|
+
"publish_demand",
|
|
33
|
+
"run_arbitration",
|
|
34
|
+
"dispute_resolution",
|
|
35
|
+
"manage_assets"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"account": {
|
|
39
|
+
"description": "BIND station: local account name or address the goal operates with. When given, the goal starts at stage 'bound' (with a local-account preflight).",
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
"persona": {
|
|
43
|
+
"description": "Persona id/name recorded on the binding.",
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"conversation_id": {
|
|
47
|
+
"description": "Originating chat conversation id (the client injects this automatically; links the goal back to its conversation).",
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"create_process": {
|
|
51
|
+
"description": "TaskProcess creation override. Processes are created BY DEFAULT for goal types with a dedicated playbook (publish_service, fulfill_order, capture_demand, publish_demand, purchase_service); pass true to also attach one to a generic-playbook goal type.",
|
|
52
|
+
"type": "boolean"
|
|
53
|
+
},
|
|
54
|
+
"network": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": [
|
|
57
|
+
"mainnet",
|
|
58
|
+
"testnet"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"required": [
|
|
63
|
+
"action",
|
|
64
|
+
"intent_text"
|
|
65
|
+
],
|
|
66
|
+
"additionalProperties": false
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "object",
|
|
70
|
+
"properties": {
|
|
71
|
+
"action": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"const": "list"
|
|
74
|
+
},
|
|
75
|
+
"stage": {
|
|
76
|
+
"description": "Filter by stage.",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"enum": [
|
|
79
|
+
"recognized",
|
|
80
|
+
"confirmed",
|
|
81
|
+
"bound",
|
|
82
|
+
"planned",
|
|
83
|
+
"approved",
|
|
84
|
+
"acting",
|
|
85
|
+
"monitoring",
|
|
86
|
+
"completed",
|
|
87
|
+
"paused",
|
|
88
|
+
"abandoned"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"account": {
|
|
92
|
+
"description": "Filter by bound account.",
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"conversation_id": {
|
|
96
|
+
"description": "Filter by originating conversation id (the conversation↔goal link).",
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"include_finished": {
|
|
100
|
+
"description": "Include terminal goals (completed/abandoned). Default false.",
|
|
101
|
+
"type": "boolean"
|
|
102
|
+
},
|
|
103
|
+
"network": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"enum": [
|
|
106
|
+
"mainnet",
|
|
107
|
+
"testnet"
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"required": [
|
|
112
|
+
"action"
|
|
113
|
+
],
|
|
114
|
+
"additionalProperties": false
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"type": "object",
|
|
118
|
+
"properties": {
|
|
119
|
+
"action": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"const": "get"
|
|
122
|
+
},
|
|
123
|
+
"id": {
|
|
124
|
+
"type": "string",
|
|
125
|
+
"description": "Goal id (goal_…)."
|
|
126
|
+
},
|
|
127
|
+
"network": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"enum": [
|
|
130
|
+
"mainnet",
|
|
131
|
+
"testnet"
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"required": [
|
|
136
|
+
"action",
|
|
137
|
+
"id"
|
|
138
|
+
],
|
|
139
|
+
"additionalProperties": false
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "object",
|
|
143
|
+
"properties": {
|
|
144
|
+
"action": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"const": "approve"
|
|
147
|
+
},
|
|
148
|
+
"id": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"description": "Goal id (goal_…)."
|
|
151
|
+
},
|
|
152
|
+
"note": {
|
|
153
|
+
"description": "Human note recorded on the approval audit entry.",
|
|
154
|
+
"type": "string"
|
|
155
|
+
},
|
|
156
|
+
"network": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"enum": [
|
|
159
|
+
"mainnet",
|
|
160
|
+
"testnet"
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"required": [
|
|
165
|
+
"action",
|
|
166
|
+
"id"
|
|
167
|
+
],
|
|
168
|
+
"additionalProperties": false
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"type": "object",
|
|
172
|
+
"properties": {
|
|
173
|
+
"action": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"const": "bind"
|
|
176
|
+
},
|
|
177
|
+
"id": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"description": "Goal id (goal_…)."
|
|
180
|
+
},
|
|
181
|
+
"account": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"description": "Local account name or address to bind (BIND station; runs a local-account preflight)."
|
|
184
|
+
},
|
|
185
|
+
"persona": {
|
|
186
|
+
"description": "Persona id/name recorded on the binding.",
|
|
187
|
+
"type": "string"
|
|
188
|
+
},
|
|
189
|
+
"network": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"enum": [
|
|
192
|
+
"mainnet",
|
|
193
|
+
"testnet"
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"required": [
|
|
198
|
+
"action",
|
|
199
|
+
"id",
|
|
200
|
+
"account"
|
|
201
|
+
],
|
|
202
|
+
"additionalProperties": false
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"type": "object",
|
|
206
|
+
"properties": {
|
|
207
|
+
"action": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"const": "advance"
|
|
210
|
+
},
|
|
211
|
+
"id": {
|
|
212
|
+
"type": "string",
|
|
213
|
+
"description": "Goal id (goal_…)."
|
|
214
|
+
},
|
|
215
|
+
"stage": {
|
|
216
|
+
"description": "Target stage (forward-only along recognized→confirmed→bound→planned→approved→acting→monitoring; 'paused' holds from anywhere; from 'paused' resume anywhere). Entering 'monitoring' auto-binds monitor focus for the goal's objects.",
|
|
217
|
+
"type": "string",
|
|
218
|
+
"enum": [
|
|
219
|
+
"recognized",
|
|
220
|
+
"confirmed",
|
|
221
|
+
"bound",
|
|
222
|
+
"planned",
|
|
223
|
+
"approved",
|
|
224
|
+
"acting",
|
|
225
|
+
"monitoring",
|
|
226
|
+
"paused"
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
"objects": {
|
|
230
|
+
"description": "ACT station: objects created/adopted by this goal (deduped by type+address).",
|
|
231
|
+
"type": "array",
|
|
232
|
+
"items": {
|
|
233
|
+
"type": "object",
|
|
234
|
+
"properties": {
|
|
235
|
+
"type": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"description": "Object type name (e.g. 'Service', 'Order', 'Demand', 'Progress')."
|
|
238
|
+
},
|
|
239
|
+
"object": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"description": "On-chain object address (0x…)."
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"required": [
|
|
245
|
+
"type",
|
|
246
|
+
"object"
|
|
247
|
+
],
|
|
248
|
+
"additionalProperties": false
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"network": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"enum": [
|
|
254
|
+
"mainnet",
|
|
255
|
+
"testnet"
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"required": [
|
|
260
|
+
"action",
|
|
261
|
+
"id"
|
|
262
|
+
],
|
|
263
|
+
"additionalProperties": false
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"type": "object",
|
|
267
|
+
"properties": {
|
|
268
|
+
"action": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"const": "pause"
|
|
271
|
+
},
|
|
272
|
+
"id": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"description": "Goal id (goal_…)."
|
|
275
|
+
},
|
|
276
|
+
"network": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"enum": [
|
|
279
|
+
"mainnet",
|
|
280
|
+
"testnet"
|
|
281
|
+
]
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"required": [
|
|
285
|
+
"action",
|
|
286
|
+
"id"
|
|
287
|
+
],
|
|
288
|
+
"additionalProperties": false
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"type": "object",
|
|
292
|
+
"properties": {
|
|
293
|
+
"action": {
|
|
294
|
+
"type": "string",
|
|
295
|
+
"const": "complete"
|
|
296
|
+
},
|
|
297
|
+
"id": {
|
|
298
|
+
"type": "string",
|
|
299
|
+
"description": "Goal id (goal_…)."
|
|
300
|
+
},
|
|
301
|
+
"force": {
|
|
302
|
+
"description": "Skip on-chain completion-condition verification (audited as outcome.forced).",
|
|
303
|
+
"type": "boolean"
|
|
304
|
+
},
|
|
305
|
+
"feedback": {
|
|
306
|
+
"description": "User feedback recorded on the goal's TaskProcess (feedback.jsonl) and used as outcome evidence for the experience layer (REFLECT).",
|
|
307
|
+
"type": "object",
|
|
308
|
+
"properties": {
|
|
309
|
+
"sentiment": {
|
|
310
|
+
"type": "string",
|
|
311
|
+
"enum": [
|
|
312
|
+
"positive",
|
|
313
|
+
"negative",
|
|
314
|
+
"neutral"
|
|
315
|
+
],
|
|
316
|
+
"description": "Overall sentiment about how the goal went."
|
|
317
|
+
},
|
|
318
|
+
"comment": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"description": "Free-form feedback comment."
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"required": [
|
|
324
|
+
"sentiment",
|
|
325
|
+
"comment"
|
|
326
|
+
],
|
|
327
|
+
"additionalProperties": false
|
|
328
|
+
},
|
|
329
|
+
"network": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"enum": [
|
|
332
|
+
"mainnet",
|
|
333
|
+
"testnet"
|
|
334
|
+
]
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
"required": [
|
|
338
|
+
"action",
|
|
339
|
+
"id"
|
|
340
|
+
],
|
|
341
|
+
"additionalProperties": false
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"type": "object",
|
|
345
|
+
"properties": {
|
|
346
|
+
"action": {
|
|
347
|
+
"type": "string",
|
|
348
|
+
"const": "abandon"
|
|
349
|
+
},
|
|
350
|
+
"id": {
|
|
351
|
+
"type": "string",
|
|
352
|
+
"description": "Goal id (goal_…)."
|
|
353
|
+
},
|
|
354
|
+
"reason": {
|
|
355
|
+
"type": "string",
|
|
356
|
+
"description": "Why the goal is given up (required, recorded on the outcome)."
|
|
357
|
+
},
|
|
358
|
+
"network": {
|
|
359
|
+
"type": "string",
|
|
360
|
+
"enum": [
|
|
361
|
+
"mainnet",
|
|
362
|
+
"testnet"
|
|
363
|
+
]
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
"required": [
|
|
367
|
+
"action",
|
|
368
|
+
"id",
|
|
369
|
+
"reason"
|
|
370
|
+
],
|
|
371
|
+
"additionalProperties": false
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"type": "object",
|
|
375
|
+
"properties": {
|
|
376
|
+
"action": {
|
|
377
|
+
"type": "string",
|
|
378
|
+
"const": "delete"
|
|
379
|
+
},
|
|
380
|
+
"id": {
|
|
381
|
+
"type": "string",
|
|
382
|
+
"description": "Goal id (goal_…)."
|
|
383
|
+
},
|
|
384
|
+
"force": {
|
|
385
|
+
"description": "Allow deleting a NON-terminal goal. The goal's monitor focus, radar intents and plan approval are torn down first so no bindings are orphaned. Terminal goals (completed/abandoned) never need force.",
|
|
386
|
+
"type": "boolean"
|
|
387
|
+
},
|
|
388
|
+
"network": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"enum": [
|
|
391
|
+
"mainnet",
|
|
392
|
+
"testnet"
|
|
393
|
+
]
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"required": [
|
|
397
|
+
"action",
|
|
398
|
+
"id"
|
|
399
|
+
],
|
|
400
|
+
"additionalProperties": false
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"type": "object",
|
|
404
|
+
"properties": {
|
|
405
|
+
"action": {
|
|
406
|
+
"type": "string",
|
|
407
|
+
"const": "analyze_intent"
|
|
408
|
+
},
|
|
409
|
+
"intent": {
|
|
410
|
+
"description": "Business intent text (e.g. 'I rent cameras to photographers with deposit and damage inspection'). Used as the primary input; falls back to project_description / project_name when omitted.",
|
|
411
|
+
"type": "string",
|
|
412
|
+
"maxLength": 2000
|
|
413
|
+
},
|
|
414
|
+
"project_name": {
|
|
415
|
+
"description": "Optional business name — used as an intent fallback when 'intent' is omitted.",
|
|
416
|
+
"type": "string",
|
|
417
|
+
"minLength": 1,
|
|
418
|
+
"maxLength": 200
|
|
419
|
+
},
|
|
420
|
+
"project_description": {
|
|
421
|
+
"description": "Optional business description — used as an intent fallback when 'intent' is omitted.",
|
|
422
|
+
"type": "string",
|
|
423
|
+
"maxLength": 2000
|
|
424
|
+
},
|
|
425
|
+
"project_industry": {
|
|
426
|
+
"description": "Industry tag. Drives industry-specific risk calibration (e.g. 'freelance' does NOT require compensation_fund, while 'rental'/'travel' do). Supported industries: 'general' (no preset), 'retail', 'retail_d2c', 'service', 'rental', 'freelance', 'education', 'travel', 'subscription', 'custom'.",
|
|
427
|
+
"type": "string",
|
|
428
|
+
"enum": [
|
|
429
|
+
"general",
|
|
430
|
+
"retail",
|
|
431
|
+
"retail_d2c",
|
|
432
|
+
"service",
|
|
433
|
+
"rental",
|
|
434
|
+
"freelance",
|
|
435
|
+
"education",
|
|
436
|
+
"travel",
|
|
437
|
+
"subscription",
|
|
438
|
+
"custom"
|
|
439
|
+
]
|
|
440
|
+
},
|
|
441
|
+
"target_objects": {
|
|
442
|
+
"description": "Optional explicit target objects (entry_ids or object_type names). When provided, puzzle snapshots are restricted to these objects.",
|
|
443
|
+
"type": "array",
|
|
444
|
+
"items": {
|
|
445
|
+
"type": "string"
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"network": {
|
|
449
|
+
"type": "string",
|
|
450
|
+
"enum": [
|
|
451
|
+
"mainnet",
|
|
452
|
+
"testnet"
|
|
453
|
+
]
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
"required": [
|
|
457
|
+
"action"
|
|
458
|
+
],
|
|
459
|
+
"additionalProperties": false,
|
|
460
|
+
"description": "C1: natural-language business intent → parsed intent (primary/secondary objects, detected scenes, industry) + per-object puzzle snapshots + recommended creation order."
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"type": "object",
|
|
464
|
+
"properties": {
|
|
465
|
+
"action": {
|
|
466
|
+
"type": "string",
|
|
467
|
+
"const": "aggregate_risks"
|
|
468
|
+
},
|
|
469
|
+
"project": {
|
|
470
|
+
"description": "Project prefix (human-readable unique identifier, e.g. 'myshop'). Used to key the service-build stage cache.",
|
|
471
|
+
"type": "string"
|
|
472
|
+
},
|
|
473
|
+
"version": {
|
|
474
|
+
"description": "Project version (e.g. 'v1') for the service-build stage cache. Defaults to 'v1'.",
|
|
475
|
+
"type": "string",
|
|
476
|
+
"pattern": "^v\\d+$"
|
|
477
|
+
},
|
|
478
|
+
"puzzles": {
|
|
479
|
+
"description": "Per-object puzzle snapshots, keyed by object_type. Pass the 'puzzles' field from a prior analyze_intent result UNCHANGED. When omitted but 'intent' is present, the handler runs analyze_intent first (C1→C2 in one call).",
|
|
480
|
+
"type": "object",
|
|
481
|
+
"propertyNames": {
|
|
482
|
+
"type": "string"
|
|
483
|
+
},
|
|
484
|
+
"additionalProperties": {
|
|
485
|
+
"type": "object",
|
|
486
|
+
"properties": {
|
|
487
|
+
"puzzle": {
|
|
488
|
+
"description": "Puzzle snapshot (opaque — pass through from analyze_intent output unchanged)."
|
|
489
|
+
},
|
|
490
|
+
"completeness": {
|
|
491
|
+
"description": "Completeness snapshot (opaque — pass through unchanged)."
|
|
492
|
+
},
|
|
493
|
+
"missing_dimensions": {
|
|
494
|
+
"type": "array",
|
|
495
|
+
"items": {
|
|
496
|
+
"type": "string"
|
|
497
|
+
},
|
|
498
|
+
"description": "Dimensions still missing for this object."
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
"required": [
|
|
502
|
+
"puzzle",
|
|
503
|
+
"completeness",
|
|
504
|
+
"missing_dimensions"
|
|
505
|
+
],
|
|
506
|
+
"additionalProperties": false
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
"intent": {
|
|
510
|
+
"description": "Business intent text (e.g. 'I rent cameras to photographers with deposit and damage inspection'). Used as the primary input; falls back to project_description / project_name when omitted.",
|
|
511
|
+
"type": "string",
|
|
512
|
+
"maxLength": 2000
|
|
513
|
+
},
|
|
514
|
+
"project_name": {
|
|
515
|
+
"description": "Optional business name — used as an intent fallback when 'intent' is omitted.",
|
|
516
|
+
"type": "string",
|
|
517
|
+
"minLength": 1,
|
|
518
|
+
"maxLength": 200
|
|
519
|
+
},
|
|
520
|
+
"project_description": {
|
|
521
|
+
"description": "Optional business description — used as an intent fallback when 'intent' is omitted.",
|
|
522
|
+
"type": "string",
|
|
523
|
+
"maxLength": 2000
|
|
524
|
+
},
|
|
525
|
+
"project_industry": {
|
|
526
|
+
"description": "Industry tag. Drives industry-specific risk calibration (e.g. 'freelance' does NOT require compensation_fund, while 'rental'/'travel' do). Supported industries: 'general' (no preset), 'retail', 'retail_d2c', 'service', 'rental', 'freelance', 'education', 'travel', 'subscription', 'custom'.",
|
|
527
|
+
"type": "string",
|
|
528
|
+
"enum": [
|
|
529
|
+
"general",
|
|
530
|
+
"retail",
|
|
531
|
+
"retail_d2c",
|
|
532
|
+
"service",
|
|
533
|
+
"rental",
|
|
534
|
+
"freelance",
|
|
535
|
+
"education",
|
|
536
|
+
"travel",
|
|
537
|
+
"subscription",
|
|
538
|
+
"custom"
|
|
539
|
+
]
|
|
540
|
+
},
|
|
541
|
+
"severity_threshold": {
|
|
542
|
+
"description": "Severity threshold (default 'HIGH'). Risks at or above this level block deployment (status RISK_BLOCKED).",
|
|
543
|
+
"type": "string",
|
|
544
|
+
"enum": [
|
|
545
|
+
"CRITICAL",
|
|
546
|
+
"HIGH",
|
|
547
|
+
"MEDIUM",
|
|
548
|
+
"LOW",
|
|
549
|
+
"INFO"
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
"user_confirmed_high_risks": {
|
|
553
|
+
"description": "IDs of HIGH risks already confirmed in a prior round. Confirmed HIGH risks no longer trigger RISK_PENDING_CONFIRM.",
|
|
554
|
+
"type": "array",
|
|
555
|
+
"items": {
|
|
556
|
+
"type": "string"
|
|
557
|
+
}
|
|
558
|
+
},
|
|
559
|
+
"planned_objects": {
|
|
560
|
+
"description": "Planned objects for the OBJECT_REUSE check (safety-rules). Flags NEW objects whose type carries an always/strongly-recommended reuse rule.",
|
|
561
|
+
"type": "array",
|
|
562
|
+
"items": {
|
|
563
|
+
"type": "object",
|
|
564
|
+
"properties": {
|
|
565
|
+
"object_type": {
|
|
566
|
+
"type": "string",
|
|
567
|
+
"description": "Wowok object type (e.g. 'service', 'guard', 'machine')."
|
|
568
|
+
},
|
|
569
|
+
"is_new": {
|
|
570
|
+
"type": "boolean",
|
|
571
|
+
"description": "true when creating a NEW object; false when reusing an existing one."
|
|
572
|
+
},
|
|
573
|
+
"name": {
|
|
574
|
+
"description": "Planned object name (for readable messages).",
|
|
575
|
+
"type": "string"
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
"required": [
|
|
579
|
+
"object_type",
|
|
580
|
+
"is_new"
|
|
581
|
+
],
|
|
582
|
+
"additionalProperties": false
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
"planned_operations": {
|
|
586
|
+
"description": "Planned create/publish operations for the IMMUTABILITY check (safety-rules). Warns which fields become permanently locked after each operation.",
|
|
587
|
+
"type": "array",
|
|
588
|
+
"items": {
|
|
589
|
+
"type": "object",
|
|
590
|
+
"properties": {
|
|
591
|
+
"object_type": {
|
|
592
|
+
"type": "string",
|
|
593
|
+
"description": "Wowok object type (e.g. 'service', 'arbitration')."
|
|
594
|
+
},
|
|
595
|
+
"trigger": {
|
|
596
|
+
"type": "string",
|
|
597
|
+
"enum": [
|
|
598
|
+
"create",
|
|
599
|
+
"publish"
|
|
600
|
+
],
|
|
601
|
+
"description": "Lifecycle trigger that locks fields."
|
|
602
|
+
},
|
|
603
|
+
"name": {
|
|
604
|
+
"description": "Object name (for readable messages).",
|
|
605
|
+
"type": "string"
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
"required": [
|
|
609
|
+
"object_type",
|
|
610
|
+
"trigger"
|
|
611
|
+
],
|
|
612
|
+
"additionalProperties": false
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
"network": {
|
|
616
|
+
"type": "string",
|
|
617
|
+
"enum": [
|
|
618
|
+
"mainnet",
|
|
619
|
+
"testnet"
|
|
620
|
+
]
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
"required": [
|
|
624
|
+
"action"
|
|
625
|
+
],
|
|
626
|
+
"additionalProperties": false,
|
|
627
|
+
"description": "C2: puzzle snapshots → cross-object risk calibration (CRITICAL/HIGH/MEDIUM/LOW/INFO) with blocking status. DX sugar: when 'puzzles' is omitted but 'intent' is present, the handler runs analyze_intent first."
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"type": "object",
|
|
631
|
+
"properties": {
|
|
632
|
+
"action": {
|
|
633
|
+
"type": "string",
|
|
634
|
+
"const": "trace_substeps"
|
|
635
|
+
},
|
|
636
|
+
"project": {
|
|
637
|
+
"description": "Project prefix (human-readable unique identifier, e.g. 'myshop'). Used to key the service-build stage cache.",
|
|
638
|
+
"type": "string"
|
|
639
|
+
},
|
|
640
|
+
"version": {
|
|
641
|
+
"description": "Project version (e.g. 'v1') for the service-build stage cache. Defaults to 'v1'.",
|
|
642
|
+
"type": "string",
|
|
643
|
+
"pattern": "^v\\d+$"
|
|
644
|
+
},
|
|
645
|
+
"substeps": {
|
|
646
|
+
"description": "Substep execution records (63-spec §2.1). Required when action='trace_substeps'. Construct from your deployment execution trace.",
|
|
647
|
+
"type": "array",
|
|
648
|
+
"items": {
|
|
649
|
+
"type": "object",
|
|
650
|
+
"properties": {
|
|
651
|
+
"step_id": {
|
|
652
|
+
"type": "string",
|
|
653
|
+
"description": "Substep id, format 'T<step>.<substep>' e.g. 'T1.1'."
|
|
654
|
+
},
|
|
655
|
+
"parent_step": {
|
|
656
|
+
"type": "string",
|
|
657
|
+
"description": "Parent step id, format 'T<step>' e.g. 'T1'."
|
|
658
|
+
},
|
|
659
|
+
"object_type": {
|
|
660
|
+
"type": "string",
|
|
661
|
+
"enum": [
|
|
662
|
+
"service",
|
|
663
|
+
"machine",
|
|
664
|
+
"guard",
|
|
665
|
+
"permission",
|
|
666
|
+
"reward",
|
|
667
|
+
"arb",
|
|
668
|
+
"progress",
|
|
669
|
+
"treasury",
|
|
670
|
+
"demand",
|
|
671
|
+
"repository",
|
|
672
|
+
"contact",
|
|
673
|
+
"order",
|
|
674
|
+
"allocation",
|
|
675
|
+
"personal",
|
|
676
|
+
"payment",
|
|
677
|
+
"proof"
|
|
678
|
+
],
|
|
679
|
+
"description": "Wowok object type this substep operates on."
|
|
680
|
+
},
|
|
681
|
+
"entry_id": {
|
|
682
|
+
"type": "string",
|
|
683
|
+
"description": "Puzzle entry_id this substep corresponds to."
|
|
684
|
+
},
|
|
685
|
+
"operation_type": {
|
|
686
|
+
"type": "string",
|
|
687
|
+
"description": "operation_type for onchain_operations."
|
|
688
|
+
},
|
|
689
|
+
"network": {
|
|
690
|
+
"type": "string",
|
|
691
|
+
"enum": [
|
|
692
|
+
"testnet",
|
|
693
|
+
"mainnet"
|
|
694
|
+
],
|
|
695
|
+
"description": "Target network."
|
|
696
|
+
},
|
|
697
|
+
"input": {
|
|
698
|
+
"type": "object",
|
|
699
|
+
"properties": {
|
|
700
|
+
"data": {
|
|
701
|
+
"type": "object",
|
|
702
|
+
"propertyNames": {
|
|
703
|
+
"type": "string"
|
|
704
|
+
},
|
|
705
|
+
"additionalProperties": {},
|
|
706
|
+
"description": "Input data payload."
|
|
707
|
+
},
|
|
708
|
+
"input_refs": {
|
|
709
|
+
"type": "array",
|
|
710
|
+
"items": {
|
|
711
|
+
"type": "string"
|
|
712
|
+
},
|
|
713
|
+
"description": "Upstream substep_ids this substep consumes."
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
"required": [
|
|
717
|
+
"data",
|
|
718
|
+
"input_refs"
|
|
719
|
+
],
|
|
720
|
+
"additionalProperties": false
|
|
721
|
+
},
|
|
722
|
+
"output": {
|
|
723
|
+
"description": "Output data (filled after execution).",
|
|
724
|
+
"type": "object",
|
|
725
|
+
"properties": {
|
|
726
|
+
"object_id": {
|
|
727
|
+
"type": "string"
|
|
728
|
+
},
|
|
729
|
+
"tx_digest": {
|
|
730
|
+
"type": "string"
|
|
731
|
+
}
|
|
732
|
+
},
|
|
733
|
+
"additionalProperties": {}
|
|
734
|
+
},
|
|
735
|
+
"timestamp": {
|
|
736
|
+
"type": "number",
|
|
737
|
+
"description": "Execution timestamp (ms)."
|
|
738
|
+
},
|
|
739
|
+
"status": {
|
|
740
|
+
"type": "string",
|
|
741
|
+
"enum": [
|
|
742
|
+
"PENDING",
|
|
743
|
+
"SUCCESS",
|
|
744
|
+
"FAILED",
|
|
745
|
+
"SKIPPED"
|
|
746
|
+
],
|
|
747
|
+
"description": "Execution status."
|
|
748
|
+
},
|
|
749
|
+
"failure_reason": {
|
|
750
|
+
"description": "Failure reason (when status='FAILED').",
|
|
751
|
+
"type": "string"
|
|
752
|
+
},
|
|
753
|
+
"dependencies": {
|
|
754
|
+
"type": "object",
|
|
755
|
+
"properties": {
|
|
756
|
+
"input_refs": {
|
|
757
|
+
"type": "array",
|
|
758
|
+
"items": {
|
|
759
|
+
"type": "string"
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
"output_refs": {
|
|
763
|
+
"type": "array",
|
|
764
|
+
"items": {
|
|
765
|
+
"type": "object",
|
|
766
|
+
"properties": {
|
|
767
|
+
"substep_id": {
|
|
768
|
+
"type": "string",
|
|
769
|
+
"description": "Downstream substep that consumes this output."
|
|
770
|
+
},
|
|
771
|
+
"field_path": {
|
|
772
|
+
"type": "string",
|
|
773
|
+
"description": "Field path produced by this substep (e.g. 'permission_address')."
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
"required": [
|
|
777
|
+
"substep_id",
|
|
778
|
+
"field_path"
|
|
779
|
+
],
|
|
780
|
+
"additionalProperties": false
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
"required": [
|
|
785
|
+
"input_refs",
|
|
786
|
+
"output_refs"
|
|
787
|
+
],
|
|
788
|
+
"additionalProperties": false,
|
|
789
|
+
"description": "Dependencies (input_refs + output_refs)."
|
|
790
|
+
},
|
|
791
|
+
"retry_info": {
|
|
792
|
+
"description": "Retry info (when this substep is a retry of an earlier one).",
|
|
793
|
+
"type": "object",
|
|
794
|
+
"properties": {
|
|
795
|
+
"original_step_id": {
|
|
796
|
+
"type": "string"
|
|
797
|
+
},
|
|
798
|
+
"retry_count": {
|
|
799
|
+
"type": "number"
|
|
800
|
+
},
|
|
801
|
+
"retry_reason": {
|
|
802
|
+
"type": "string"
|
|
803
|
+
}
|
|
804
|
+
},
|
|
805
|
+
"required": [
|
|
806
|
+
"original_step_id",
|
|
807
|
+
"retry_count",
|
|
808
|
+
"retry_reason"
|
|
809
|
+
],
|
|
810
|
+
"additionalProperties": false
|
|
811
|
+
}
|
|
812
|
+
},
|
|
813
|
+
"required": [
|
|
814
|
+
"step_id",
|
|
815
|
+
"parent_step",
|
|
816
|
+
"object_type",
|
|
817
|
+
"entry_id",
|
|
818
|
+
"operation_type",
|
|
819
|
+
"network",
|
|
820
|
+
"input",
|
|
821
|
+
"timestamp",
|
|
822
|
+
"status",
|
|
823
|
+
"dependencies"
|
|
824
|
+
],
|
|
825
|
+
"additionalProperties": false
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
"substep_edges": {
|
|
829
|
+
"description": "Explicit DAG edges. When omitted, edges are derived from each substep's input_refs.",
|
|
830
|
+
"type": "array",
|
|
831
|
+
"items": {
|
|
832
|
+
"type": "object",
|
|
833
|
+
"properties": {
|
|
834
|
+
"source": {
|
|
835
|
+
"type": "string",
|
|
836
|
+
"description": "Source substep id."
|
|
837
|
+
},
|
|
838
|
+
"target": {
|
|
839
|
+
"type": "string",
|
|
840
|
+
"description": "Target substep id (depends on source)."
|
|
841
|
+
},
|
|
842
|
+
"field_path": {
|
|
843
|
+
"type": "string",
|
|
844
|
+
"description": "Field path flowing along this edge."
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
"required": [
|
|
848
|
+
"source",
|
|
849
|
+
"target",
|
|
850
|
+
"field_path"
|
|
851
|
+
],
|
|
852
|
+
"additionalProperties": false
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
"network": {
|
|
856
|
+
"type": "string",
|
|
857
|
+
"enum": [
|
|
858
|
+
"mainnet",
|
|
859
|
+
"testnet"
|
|
860
|
+
]
|
|
861
|
+
}
|
|
862
|
+
},
|
|
863
|
+
"required": [
|
|
864
|
+
"action"
|
|
865
|
+
],
|
|
866
|
+
"additionalProperties": false,
|
|
867
|
+
"description": "C3: substep execution records → DAG coherence analysis (dangling inputs, circular refs, missing outputs, cross-step breaks, topological order, D-10 verdict)."
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"type": "object",
|
|
871
|
+
"properties": {
|
|
872
|
+
"action": {
|
|
873
|
+
"type": "string",
|
|
874
|
+
"const": "merchant_guide"
|
|
875
|
+
},
|
|
876
|
+
"intent": {
|
|
877
|
+
"description": "Business intent text (e.g. 'I rent cameras to photographers with deposit and damage inspection'). Used as the primary input; falls back to project_description / project_name when omitted.",
|
|
878
|
+
"type": "string",
|
|
879
|
+
"maxLength": 2000
|
|
880
|
+
},
|
|
881
|
+
"project_name": {
|
|
882
|
+
"description": "Optional business name — used as an intent fallback when 'intent' is omitted.",
|
|
883
|
+
"type": "string",
|
|
884
|
+
"minLength": 1,
|
|
885
|
+
"maxLength": 200
|
|
886
|
+
},
|
|
887
|
+
"project_description": {
|
|
888
|
+
"description": "Optional business description — used as an intent fallback when 'intent' is omitted.",
|
|
889
|
+
"type": "string",
|
|
890
|
+
"maxLength": 2000
|
|
891
|
+
},
|
|
892
|
+
"project_industry": {
|
|
893
|
+
"description": "Industry tag. Drives industry-specific risk calibration (e.g. 'freelance' does NOT require compensation_fund, while 'rental'/'travel' do). Supported industries: 'general' (no preset), 'retail', 'retail_d2c', 'service', 'rental', 'freelance', 'education', 'travel', 'subscription', 'custom'.",
|
|
894
|
+
"type": "string",
|
|
895
|
+
"enum": [
|
|
896
|
+
"general",
|
|
897
|
+
"retail",
|
|
898
|
+
"retail_d2c",
|
|
899
|
+
"service",
|
|
900
|
+
"rental",
|
|
901
|
+
"freelance",
|
|
902
|
+
"education",
|
|
903
|
+
"travel",
|
|
904
|
+
"subscription",
|
|
905
|
+
"custom"
|
|
906
|
+
]
|
|
907
|
+
},
|
|
908
|
+
"guide_state": {
|
|
909
|
+
"description": "Wizard state from a prior merchant_guide result. Pass back UNCHANGED on every subsequent call. The handler re-runs the pipeline deterministically and advances to the furthest reachable step.",
|
|
910
|
+
"type": "object",
|
|
911
|
+
"properties": {
|
|
912
|
+
"intent_text": {
|
|
913
|
+
"type": "string",
|
|
914
|
+
"description": "Step 1: raw merchant business description."
|
|
915
|
+
},
|
|
916
|
+
"confirmed_industry": {
|
|
917
|
+
"description": "Step 2: merchant-confirmed industry id.",
|
|
918
|
+
"type": "string"
|
|
919
|
+
},
|
|
920
|
+
"currency": {
|
|
921
|
+
"description": "Step 5: payment currency (default WOW).",
|
|
922
|
+
"type": "string"
|
|
923
|
+
},
|
|
924
|
+
"deliverables": {
|
|
925
|
+
"description": "Step 4: merchant-defined deliverables (opaque passthrough).",
|
|
926
|
+
"type": "array",
|
|
927
|
+
"items": {}
|
|
928
|
+
},
|
|
929
|
+
"payment_override": {
|
|
930
|
+
"description": "Step 5: payment structure overrides (opaque passthrough).",
|
|
931
|
+
"type": "object",
|
|
932
|
+
"propertyNames": {
|
|
933
|
+
"type": "string"
|
|
934
|
+
},
|
|
935
|
+
"additionalProperties": {}
|
|
936
|
+
},
|
|
937
|
+
"trust_override": {
|
|
938
|
+
"description": "Step 6: trust mechanism overrides (opaque passthrough).",
|
|
939
|
+
"type": "object",
|
|
940
|
+
"propertyNames": {
|
|
941
|
+
"type": "string"
|
|
942
|
+
},
|
|
943
|
+
"additionalProperties": {}
|
|
944
|
+
},
|
|
945
|
+
"adopted_module_ids": {
|
|
946
|
+
"description": "Step 6: merchant-confirmed business module ids.",
|
|
947
|
+
"type": "array",
|
|
948
|
+
"items": {
|
|
949
|
+
"type": "string"
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
"required": [
|
|
954
|
+
"intent_text"
|
|
955
|
+
],
|
|
956
|
+
"additionalProperties": false
|
|
957
|
+
},
|
|
958
|
+
"guide_confirm": {
|
|
959
|
+
"description": "Merchant decisions for the current wizard step. Merged over guide_state. Typical flow: call 1 with intent only → receive step-2 industry options → call 2 with guide_state + guide_confirm={industry} → receive full blueprint plan (steps 7-10).",
|
|
960
|
+
"type": "object",
|
|
961
|
+
"properties": {
|
|
962
|
+
"industry": {
|
|
963
|
+
"description": "Step 2 confirmation: industry id (e.g. 'freelance').",
|
|
964
|
+
"type": "string"
|
|
965
|
+
},
|
|
966
|
+
"currency": {
|
|
967
|
+
"description": "Step 5 confirmation: payment currency.",
|
|
968
|
+
"type": "string"
|
|
969
|
+
},
|
|
970
|
+
"deliverables": {
|
|
971
|
+
"description": "Step 4 confirmation: deliverable definitions.",
|
|
972
|
+
"type": "array",
|
|
973
|
+
"items": {}
|
|
974
|
+
},
|
|
975
|
+
"payment": {
|
|
976
|
+
"description": "Step 5 confirmation: { model, triggers, allocation } overrides.",
|
|
977
|
+
"type": "object",
|
|
978
|
+
"propertyNames": {
|
|
979
|
+
"type": "string"
|
|
980
|
+
},
|
|
981
|
+
"additionalProperties": {}
|
|
982
|
+
},
|
|
983
|
+
"trust": {
|
|
984
|
+
"description": "Step 6 confirmation: { refundPolicy, arbitration, escrow } overrides.",
|
|
985
|
+
"type": "object",
|
|
986
|
+
"propertyNames": {
|
|
987
|
+
"type": "string"
|
|
988
|
+
},
|
|
989
|
+
"additionalProperties": {}
|
|
990
|
+
},
|
|
991
|
+
"adopted_module_ids": {
|
|
992
|
+
"description": "Step 6 confirmation: business module ids to adopt (overrides recommendation).",
|
|
993
|
+
"type": "array",
|
|
994
|
+
"items": {
|
|
995
|
+
"type": "string"
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
"additionalProperties": false
|
|
1000
|
+
},
|
|
1001
|
+
"network": {
|
|
1002
|
+
"type": "string",
|
|
1003
|
+
"enum": [
|
|
1004
|
+
"mainnet",
|
|
1005
|
+
"testnet"
|
|
1006
|
+
]
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
"required": [
|
|
1010
|
+
"action"
|
|
1011
|
+
],
|
|
1012
|
+
"additionalProperties": false,
|
|
1013
|
+
"description": "10-step merchant onboarding wizard: intent text → BusinessIntent → industry confirmation → module adoption → SemanticObjectGraph blueprint → evaluation preview → harness check → creation plan. NEVER executes on-chain operations. Stateless: pass guide_state/guide_confirm to advance."
|
|
1014
|
+
}
|
|
1015
|
+
]
|
|
1016
|
+
}
|