@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,156 @@
|
|
|
1
|
+
export type ReviewTone = "green" | "amber" | "red" | "gray" | "blue" | "yellow";
|
|
2
|
+
export type ReviewValue = {
|
|
3
|
+
t: "text";
|
|
4
|
+
v: string;
|
|
5
|
+
tone?: "dim" | "strong";
|
|
6
|
+
} | {
|
|
7
|
+
t: "time";
|
|
8
|
+
v: number;
|
|
9
|
+
tip?: string;
|
|
10
|
+
} | {
|
|
11
|
+
t: "addr";
|
|
12
|
+
v: string;
|
|
13
|
+
obj_type?: string;
|
|
14
|
+
badge?: {
|
|
15
|
+
v: string;
|
|
16
|
+
tone: ReviewTone;
|
|
17
|
+
};
|
|
18
|
+
} | {
|
|
19
|
+
t: "progress";
|
|
20
|
+
v: string;
|
|
21
|
+
node: string | null;
|
|
22
|
+
since: number | null;
|
|
23
|
+
machine?: string | null;
|
|
24
|
+
} | {
|
|
25
|
+
t: "count";
|
|
26
|
+
n: number;
|
|
27
|
+
panel_title?: string;
|
|
28
|
+
addrs?: string[];
|
|
29
|
+
} | {
|
|
30
|
+
t: "badge";
|
|
31
|
+
v: string;
|
|
32
|
+
tone: ReviewTone;
|
|
33
|
+
} | {
|
|
34
|
+
t: "deadline";
|
|
35
|
+
v: number;
|
|
36
|
+
tip?: string;
|
|
37
|
+
} | {
|
|
38
|
+
t: "longtext";
|
|
39
|
+
v: string;
|
|
40
|
+
} | null;
|
|
41
|
+
export interface ReviewField {
|
|
42
|
+
label: string;
|
|
43
|
+
tip?: string;
|
|
44
|
+
value: ReviewValue;
|
|
45
|
+
}
|
|
46
|
+
export interface ReviewCoreRow {
|
|
47
|
+
label: string;
|
|
48
|
+
ref: {
|
|
49
|
+
address: string;
|
|
50
|
+
obj_type: string;
|
|
51
|
+
};
|
|
52
|
+
meta?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface ReviewItem {
|
|
55
|
+
name: string;
|
|
56
|
+
ref?: {
|
|
57
|
+
address: string;
|
|
58
|
+
obj_type: string;
|
|
59
|
+
};
|
|
60
|
+
meta: {
|
|
61
|
+
label: string;
|
|
62
|
+
value: string;
|
|
63
|
+
tip?: string;
|
|
64
|
+
}[];
|
|
65
|
+
hash?: string | null;
|
|
66
|
+
badge?: {
|
|
67
|
+
v: string;
|
|
68
|
+
tone: ReviewTone;
|
|
69
|
+
} | null;
|
|
70
|
+
dim?: boolean;
|
|
71
|
+
note?: string;
|
|
72
|
+
}
|
|
73
|
+
export interface ReviewRelatedGroup {
|
|
74
|
+
label: string;
|
|
75
|
+
items: {
|
|
76
|
+
address: string;
|
|
77
|
+
time: number | null;
|
|
78
|
+
}[];
|
|
79
|
+
}
|
|
80
|
+
export interface ReviewGraph {
|
|
81
|
+
machineAddress: string;
|
|
82
|
+
machineName: string | null;
|
|
83
|
+
published: boolean | null;
|
|
84
|
+
paused: boolean | null;
|
|
85
|
+
nodes: {
|
|
86
|
+
name: string;
|
|
87
|
+
description: string | null;
|
|
88
|
+
}[];
|
|
89
|
+
edges: {
|
|
90
|
+
from: string;
|
|
91
|
+
to: string;
|
|
92
|
+
threshold: number;
|
|
93
|
+
forwards: {
|
|
94
|
+
name: string;
|
|
95
|
+
weight: number;
|
|
96
|
+
guard: string | null;
|
|
97
|
+
retained_submission: number[] | null;
|
|
98
|
+
named_operator: string | null;
|
|
99
|
+
permission_index: number | null;
|
|
100
|
+
}[];
|
|
101
|
+
}[];
|
|
102
|
+
}
|
|
103
|
+
export type ReviewSection = {
|
|
104
|
+
kind: "fields";
|
|
105
|
+
fields: ReviewField[];
|
|
106
|
+
columns?: 1 | 2;
|
|
107
|
+
} | {
|
|
108
|
+
kind: "items";
|
|
109
|
+
title: string;
|
|
110
|
+
empty: string;
|
|
111
|
+
items: ReviewItem[];
|
|
112
|
+
} | {
|
|
113
|
+
kind: "core";
|
|
114
|
+
title: string;
|
|
115
|
+
rows: ReviewCoreRow[];
|
|
116
|
+
} | {
|
|
117
|
+
kind: "graph";
|
|
118
|
+
title: string;
|
|
119
|
+
empty: string;
|
|
120
|
+
graph: ReviewGraph;
|
|
121
|
+
} | {
|
|
122
|
+
kind: "related";
|
|
123
|
+
title: string;
|
|
124
|
+
empty: string;
|
|
125
|
+
groups: ReviewRelatedGroup[];
|
|
126
|
+
count?: number;
|
|
127
|
+
};
|
|
128
|
+
export interface ReviewHead {
|
|
129
|
+
address: string;
|
|
130
|
+
network: string;
|
|
131
|
+
name: string | null;
|
|
132
|
+
description: string | null;
|
|
133
|
+
tags: string[];
|
|
134
|
+
last_active_ms: number | null;
|
|
135
|
+
badges: {
|
|
136
|
+
v: string;
|
|
137
|
+
tone: ReviewTone;
|
|
138
|
+
tip?: string;
|
|
139
|
+
}[];
|
|
140
|
+
amount?: {
|
|
141
|
+
text: string;
|
|
142
|
+
tip?: string;
|
|
143
|
+
};
|
|
144
|
+
info_rows: {
|
|
145
|
+
label: string;
|
|
146
|
+
tip?: string;
|
|
147
|
+
value: ReviewValue;
|
|
148
|
+
}[][];
|
|
149
|
+
}
|
|
150
|
+
export interface ReviewPack {
|
|
151
|
+
action: "review_pack";
|
|
152
|
+
object_type: string;
|
|
153
|
+
head: ReviewHead;
|
|
154
|
+
sections: ReviewSection[];
|
|
155
|
+
data_gaps: string[];
|
|
156
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -1,11 +1,28 @@
|
|
|
1
1
|
import type { CommercialRole } from "./types.js";
|
|
2
|
+
export declare const PERMISSION_RANGES: {
|
|
3
|
+
readonly service: {
|
|
4
|
+
readonly min: 300;
|
|
5
|
+
readonly max: 320;
|
|
6
|
+
};
|
|
7
|
+
readonly arbitration: {
|
|
8
|
+
readonly min: 350;
|
|
9
|
+
readonly max: 368;
|
|
10
|
+
};
|
|
11
|
+
readonly demand: {
|
|
12
|
+
readonly min: 400;
|
|
13
|
+
readonly max: 408;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const CORE_PERMISSION_INDEX: {
|
|
17
|
+
readonly service: 300;
|
|
18
|
+
readonly arbitration: 350;
|
|
19
|
+
readonly demand: 400;
|
|
20
|
+
};
|
|
2
21
|
export interface RoleDerivationInput {
|
|
3
22
|
account: string;
|
|
4
23
|
order_holder?: string;
|
|
5
24
|
held_permission_indexes?: number[];
|
|
6
25
|
named_operator_names?: string[];
|
|
7
|
-
service_builder?: string;
|
|
8
|
-
arbitration_owner?: string;
|
|
9
26
|
demand_presenters?: string[];
|
|
10
27
|
has_active_order?: boolean;
|
|
11
28
|
}
|
package/dist/role/derivation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function deriveCommercialRole(a){const b=a['account'];if(a['order_holder']&&a['order_holder']===b)return{'role':'customer','derivation':'account\x20is\x20the\x20order\x20holder\x20(Order.
|
|
1
|
+
export const PERMISSION_RANGES={'service':{'min':0x12c,'max':0x140},'arbitration':{'min':0x15e,'max':0x170},'demand':{'min':0x190,'max':0x198}};export const CORE_PERMISSION_INDEX={'service':0x12c,'arbitration':0x15e,'demand':0x190};function inRange(a,b){return a>=b['min']&&a<=b['max'];}export function deriveCommercialRole(a){const b=a['account'],c=a['held_permission_indexes']??[];if(a['order_holder']&&a['order_holder']===b)return{'role':'customer','derivation':'account\x20is\x20the\x20order\x20holder\x20(Order.owner)'};if(c['some'](d=>inRange(d,PERMISSION_RANGES['demand'])))return{'role':'demander','derivation':'account\x20holds\x20a\x20Demand\x20operation\x20permission\x20(400-408)'};if(c['some'](d=>inRange(d,PERMISSION_RANGES['service'])))return{'role':'merchant','derivation':'account\x20holds\x20a\x20Service\x20operation\x20permission\x20(300-312)'};if(a['demand_presenters']&&a['demand_presenters']['includes'](b))return{'role':'supplier','derivation':'account\x20presented\x20the\x20main\x20service\x20to\x20the\x20demand\x20(sub-order\x20provider)'};if(c['some'](d=>inRange(d,PERMISSION_RANGES['arbitration'])))return{'role':'arbitrator','derivation':'account\x20holds\x20an\x20Arbitration\x20operation\x20permission\x20(350-368)'};if(c['length']>0x0)return{'role':'collaborator','collaborator_kind':'permission_entity','derivation':'account\x20holds\x20permission\x20index(es):\x20'+c['join'](',\x20')};if(a['named_operator_names']&&a['named_operator_names']['length']>0x0)return{'role':'collaborator','collaborator_kind':'named_operator','derivation':'account\x20resolves\x20named\x20operator(s):\x20'+a['named_operator_names']['join'](',\x20')};return{'role':'neutral','derivation':a['has_active_order']?'no\x20operative\x20role\x20on\x20this\x20order\x20(observer\x20of\x20an\x20in-flight\x20order)':'no\x20on-chain\x20relationship\x20to\x20the\x20focus\x20object\x20(neutral\x20observer)'};}export function deriveAllRoles(a){const b=[],c=a['account'],d=a['held_permission_indexes']??[];return a['order_holder']&&a['order_holder']===c&&b['push']({'role':'customer','derivation':'order\x20holder'}),d['some'](e=>inRange(e,PERMISSION_RANGES['demand']))&&b['push']({'role':'demander','derivation':'Demand\x20operation\x20permission\x20(400-408)'}),d['some'](e=>inRange(e,PERMISSION_RANGES['service']))&&b['push']({'role':'merchant','derivation':'Service\x20operation\x20permission\x20(300-312)'}),d['some'](e=>inRange(e,PERMISSION_RANGES['arbitration']))&&b['push']({'role':'arbitrator','derivation':'Arbitration\x20operation\x20permission\x20(350-368)'}),a['demand_presenters']&&a['demand_presenters']['includes'](c)&&b['push']({'role':'supplier','derivation':'demand\x20presenter'}),d['length']>0x0&&!d['some'](e=>isCoreRange(e))&&b['push']({'role':'collaborator','collaborator_kind':'permission_entity','derivation':'permission\x20index(es):\x20'+d['join'](',\x20')}),a['named_operator_names']&&a['named_operator_names']['length']>0x0&&b['push']({'role':'collaborator','collaborator_kind':'named_operator','derivation':'named\x20operator(s):\x20'+a['named_operator_names']['join'](',\x20')}),b['length']===0x0&&b['push']({'role':'neutral','derivation':a['has_active_order']?'observer\x20of\x20in-flight\x20order':'neutral\x20observer'}),b;}function isCoreRange(a){return inRange(a,PERMISSION_RANGES['service'])||inRange(a,PERMISSION_RANGES['arbitration'])||inRange(a,PERMISSION_RANGES['demand']);}
|
package/dist/role/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { CommercialRole, GamePower, ValuePerspective, RoleModel, } from "./types.js";
|
|
2
2
|
export { COMMERCIAL_ROLES } from "./types.js";
|
|
3
3
|
export { ROLE_MODELS, gamePowerOf, valuePerspectiveOf, isWeakerParty, isStrongerParty, interestAnalyzerOf, gameStrategyOf, } from "./model.js";
|
|
4
|
-
export { deriveCommercialRole, deriveAllRoles, type RoleDerivationInput, type DerivedRole, } from "./derivation.js";
|
|
5
|
-
export { mergeRolePerspective, isOnchainRoleAuthoritative, type RoleMergeResult, } from "./resolution.js";
|
|
4
|
+
export { deriveCommercialRole, deriveAllRoles, PERMISSION_RANGES, CORE_PERMISSION_INDEX, type RoleDerivationInput, type DerivedRole, } from "./derivation.js";
|
|
5
|
+
export { mergeRolePerspective, isOnchainRoleAuthoritative, resolveWatchRole, type RoleMergeResult, type WatchRoleInput, type WatchRole, } from "./resolution.js";
|
package/dist/role/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{COMMERCIAL_ROLES}from'./types.js';export{ROLE_MODELS,gamePowerOf,valuePerspectiveOf,isWeakerParty,isStrongerParty,interestAnalyzerOf,gameStrategyOf}from'./model.js';export{deriveCommercialRole,deriveAllRoles}from'./derivation.js';export{mergeRolePerspective,isOnchainRoleAuthoritative}from'./resolution.js';
|
|
1
|
+
export{COMMERCIAL_ROLES}from'./types.js';export{ROLE_MODELS,gamePowerOf,valuePerspectiveOf,isWeakerParty,isStrongerParty,interestAnalyzerOf,gameStrategyOf}from'./model.js';export{deriveCommercialRole,deriveAllRoles,PERMISSION_RANGES,CORE_PERMISSION_INDEX}from'./derivation.js';export{mergeRolePerspective,isOnchainRoleAuthoritative,resolveWatchRole}from'./resolution.js';
|
package/dist/role/model.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const ROLE_MODELS={'merchant':{'role':'merchant','power':'strong','interest_analyzer':'merchant-interest','game_strategy':'merchant','value_perspective':'producer'},'customer':{'role':'customer','power':'weak','interest_analyzer':'customer-interest','game_strategy':'customer','value_perspective':'consumer'},'prospect':{'role':'prospect','power':'weak','interest_analyzer':'preorder','game_strategy':'customer','value_perspective':'consumer'},'supplier':{'role':'supplier','power':'peer','interest_analyzer':'supplier-interest','game_strategy':'supplier','value_perspective':'producer'},'collaborator':{'role':'collaborator','power':'peer','interest_analyzer':'collaborator-interest','game_strategy':'collaborator','value_perspective':'neutral'},'arbitrator':{'role':'arbitrator','power':'neutral','interest_analyzer':'arb_game','game_strategy':'arbitrator','value_perspective':'neutral'},'system':{'role':'system','power':'neutral','interest_analyzer':'system','game_strategy':'system','value_perspective':'neutral'}};export function gamePowerOf(a){return ROLE_MODELS[a]['power'];}export function valuePerspectiveOf(a){return ROLE_MODELS[a]['value_perspective'];}export function isWeakerParty(a){return ROLE_MODELS[a]['power']==='weak';}export function isStrongerParty(a){return ROLE_MODELS[a]['power']==='strong';}export function interestAnalyzerOf(a){return ROLE_MODELS[a]['interest_analyzer'];}export function gameStrategyOf(a){return ROLE_MODELS[a]['game_strategy'];}
|
|
1
|
+
export const ROLE_MODELS={'merchant':{'role':'merchant','power':'strong','interest_analyzer':'merchant-interest','game_strategy':'merchant','value_perspective':'producer'},'customer':{'role':'customer','power':'weak','interest_analyzer':'customer-interest','game_strategy':'customer','value_perspective':'consumer'},'demander':{'role':'demander','power':'weak','interest_analyzer':'demander-interest','game_strategy':'demander','value_perspective':'consumer'},'prospect':{'role':'prospect','power':'weak','interest_analyzer':'preorder','game_strategy':'customer','value_perspective':'consumer'},'supplier':{'role':'supplier','power':'peer','interest_analyzer':'supplier-interest','game_strategy':'supplier','value_perspective':'producer'},'collaborator':{'role':'collaborator','power':'peer','interest_analyzer':'collaborator-interest','game_strategy':'collaborator','value_perspective':'neutral'},'arbitrator':{'role':'arbitrator','power':'neutral','interest_analyzer':'arb_game','game_strategy':'arbitrator','value_perspective':'neutral'},'neutral':{'role':'neutral','power':'neutral','interest_analyzer':'system','game_strategy':'system','value_perspective':'neutral'},'system':{'role':'system','power':'neutral','interest_analyzer':'system','game_strategy':'system','value_perspective':'neutral'}};export function gamePowerOf(a){return ROLE_MODELS[a]['power'];}export function valuePerspectiveOf(a){return ROLE_MODELS[a]['value_perspective'];}export function isWeakerParty(a){return ROLE_MODELS[a]['power']==='weak';}export function isStrongerParty(a){return ROLE_MODELS[a]['power']==='strong';}export function interestAnalyzerOf(a){return ROLE_MODELS[a]['interest_analyzer'];}export function gameStrategyOf(a){return ROLE_MODELS[a]['game_strategy'];}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CommercialRole } from "./types.js";
|
|
2
|
+
import { type RoleDerivationInput } from "./derivation.js";
|
|
2
3
|
export interface RoleMergeResult {
|
|
3
4
|
onchain_role: CommercialRole;
|
|
4
5
|
persona_role: CommercialRole | undefined;
|
|
@@ -9,3 +10,18 @@ export interface RoleMergeResult {
|
|
|
9
10
|
}
|
|
10
11
|
export declare function mergeRolePerspective(personaRole: CommercialRole | undefined, onchainRole: CommercialRole): RoleMergeResult;
|
|
11
12
|
export declare function isOnchainRoleAuthoritative(onchainRole: CommercialRole | undefined): boolean;
|
|
13
|
+
export interface WatchRoleInput {
|
|
14
|
+
derivation: RoleDerivationInput;
|
|
15
|
+
latent_role?: CommercialRole;
|
|
16
|
+
}
|
|
17
|
+
export interface WatchRole {
|
|
18
|
+
manifest_role: CommercialRole;
|
|
19
|
+
latent_role: CommercialRole | undefined;
|
|
20
|
+
participation_role: CommercialRole;
|
|
21
|
+
evaluation_role: CommercialRole;
|
|
22
|
+
conflicting: boolean;
|
|
23
|
+
reason_direction: "objective" | "game";
|
|
24
|
+
derivation: string;
|
|
25
|
+
note: string;
|
|
26
|
+
}
|
|
27
|
+
export declare function resolveWatchRole(input: WatchRoleInput): WatchRole;
|
package/dist/role/resolution.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export function mergeRolePerspective(a,b){const c=a!==undefined&&a!=='system'?a:undefined,d=c!==undefined&&c!==b,e=c===undefined?'No\x20explicit\x20persona\x20role\x20set\x20—\x20on-chain\x20role\x20\x27'+b+'\x27\x20is\x20authoritative\x20for\x20both\x20participation\x20and\x20evaluation.':d?'persona\x20role\x20\x27'+c+'\x27\x20disagrees\x20with\x20on-chain\x20role\x20\x27'+b+'\x27.\x20'+'On-chain\x20derivation\x20is\x20ground\x20truth\x20for\x20participation;\x20the\x20persona\x20role\x20is\x20an\x20identity\x20preference\x20'+'that\x20only\x20feeds\x20evaluation\x20injection\x20(preferences/requirements/risk_appetite).':'persona\x20role\x20and\x20on-chain\x20role\x20agree\x20(\x27'+b+'\x27).';return{'onchain_role':b,'persona_role':c,'conflicting':d,'participation_role':b,'evaluation_role':c??b,'note':e};}export function isOnchainRoleAuthoritative(a){return a!==undefined&&a!=='system';}
|
|
1
|
+
import{deriveCommercialRole}from'./derivation.js';export function mergeRolePerspective(a,b){const c=a!==undefined&&a!=='system'?a:undefined,d=c!==undefined&&c!==b,e=c===undefined?'No\x20explicit\x20persona\x20role\x20set\x20—\x20on-chain\x20role\x20\x27'+b+'\x27\x20is\x20authoritative\x20for\x20both\x20participation\x20and\x20evaluation.':d?'persona\x20role\x20\x27'+c+'\x27\x20disagrees\x20with\x20on-chain\x20role\x20\x27'+b+'\x27.\x20'+'On-chain\x20derivation\x20is\x20ground\x20truth\x20for\x20participation;\x20the\x20persona\x20role\x20is\x20an\x20identity\x20preference\x20'+'that\x20only\x20feeds\x20evaluation\x20injection\x20(preferences/requirements/risk_appetite).':'persona\x20role\x20and\x20on-chain\x20role\x20agree\x20(\x27'+b+'\x27).';return{'onchain_role':b,'persona_role':c,'conflicting':d,'participation_role':b,'evaluation_role':c??b,'note':e};}export function isOnchainRoleAuthoritative(a){return a!==undefined&&a!=='system'&&a!=='neutral';}export function resolveWatchRole(a){const b=deriveCommercialRole(a['derivation']),c=mergeRolePerspective(a['latent_role'],b['role']),d=c['participation_role']==='neutral'||c['participation_role']==='system'?'objective':'game';return{'manifest_role':b['role'],'latent_role':c['persona_role'],'participation_role':c['participation_role'],'evaluation_role':c['evaluation_role'],'conflicting':c['conflicting'],'reason_direction':d,'derivation':b['derivation'],'note':c['note']};}
|
package/dist/role/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type CommercialRole = "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | "system";
|
|
1
|
+
export type CommercialRole = "merchant" | "customer" | "demander" | "prospect" | "supplier" | "collaborator" | "arbitrator" | "neutral" | "system";
|
|
2
2
|
export type GamePower = "strong" | "weak" | "peer" | "neutral";
|
|
3
3
|
export type ValuePerspective = "producer" | "consumer" | "neutral";
|
|
4
4
|
export interface RoleModel {
|
package/dist/role/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const COMMERCIAL_ROLES=['merchant','customer','prospect','supplier','collaborator','arbitrator','system'];
|
|
1
|
+
export const COMMERCIAL_ROLES=['merchant','customer','demander','prospect','supplier','collaborator','arbitrator','neutral','system'];
|
package/dist/rules.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ export { validateOperation, hasBlockingViolations, getWarningViolations, type Co
|
|
|
2
2
|
export { computeServiceTrustScore, type ServiceTrustMetrics, } from "./knowledge/trust-metrics.js";
|
|
3
3
|
export { AUDIT_RULES, auditService, hasBlockingErrors, getErrors, getWarnings, summarizeFindings, type AuditFinding, } from "./knowledge/audit-rules.js";
|
|
4
4
|
export { confirmGate, isConfirmGateEnabled, isExplicitlyConfirmed, getFailMode, type ConfirmResult, type FailMode, } from "./safety/confirm-gate.js";
|
|
5
|
-
export { renderPreview } from "./safety/preview.js";
|
|
5
|
+
export { renderPreview, renderPreviewHuman } from "./safety/preview.js";
|
|
6
6
|
export { CONFIRMATION_RULES, SAFETY_RULES_VERSION, DEFAULT_AMOUNT_THRESHOLD, getAmountThreshold, formatAmount, collectDefaultWarnings, type OperationPreview, type ConfirmLevel, type ConfirmationRule, } from "./knowledge/safety-rules.js";
|
|
7
7
|
export { distillIntent, extractSignals } from "./experience/intent-distill.js";
|
|
8
8
|
export type { DistilledIntent } from "./experience/types.js";
|
|
9
9
|
export { Harness, getHarness, setHarness } from "./harness/index.js";
|
|
10
|
-
export type { ODG, ExpectedResult, VerifyReport, RecoveryAction,
|
|
10
|
+
export type { ODG, ExpectedResult, VerifyReport, RecoveryAction, } from "./harness/types.js";
|
|
11
11
|
export { getDefaultPreferences, inferPreferences, matchServiceToPreferences, mergePreferences, validatePreferences, SUPPORTED_INDUSTRIES, type IndustryTemplate, type Industry, type PreferenceInference, type ServiceForMatching, type PreferenceMatchResult, } from "./customer/user-preferences.js";
|
|
12
12
|
export type { UserPreferences } from "./customer/types.js";
|
|
13
13
|
export declare function buildSoftRulesPrompt(): string;
|
package/dist/rules.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{validateOperation,hasBlockingViolations,getWarningViolations}from'./knowledge/tool-constraints.js';export{computeServiceTrustScore}from'./knowledge/trust-metrics.js';export{AUDIT_RULES,auditService,hasBlockingErrors,getErrors,getWarnings,summarizeFindings}from'./knowledge/audit-rules.js';export{confirmGate,isConfirmGateEnabled,isExplicitlyConfirmed,getFailMode}from'./safety/confirm-gate.js';export{renderPreview}from'./safety/preview.js';export{CONFIRMATION_RULES,SAFETY_RULES_VERSION,DEFAULT_AMOUNT_THRESHOLD,getAmountThreshold,formatAmount,collectDefaultWarnings}from'./knowledge/safety-rules.js';export{distillIntent,extractSignals}from'./experience/intent-distill.js';export{Harness,getHarness,setHarness}from'./harness/index.js';export{getDefaultPreferences,inferPreferences,matchServiceToPreferences,mergePreferences,validatePreferences,SUPPORTED_INDUSTRIES}from'./customer/user-preferences.js';import{CONFIRMATION_RULES,DEFAULT_AMOUNT_THRESHOLD,formatAmount,OBJECT_REUSE_RULES,CREATE_VS_MODIFY_PATTERN,IMMUTABILITY_RULES,OPERATION_CLASS_META,NAMING_CONVENTIONS}from'./knowledge/safety-rules.js';const PERMISSION_INDEX_RANGE='1000-65535\x20(0-999\x20reserved)';export function buildSoftRulesPrompt(){const a=[];a['push']('##\x20Token\x20amounts'),a['push']('-\x20Token\x20amounts\x20are\x20U64\x20integers\x20in\x20the\x20smallest\x20unit.\x201\x20WOW\x20=\x201_000_000_000\x20(9\x20decimals).'),a['push']('-\x20Amount\x20input\x20accepts\x20\x272WOW\x27\x20/\x20\x2710.5WOW\x27\x20(auto-converted)\x20or\x20a\x20raw\x20integer\x20\x272000000000\x27.'),a['push']('-\x20Always\x20query\x20token\x20precision\x20via\x20query_toolkit\x20before\x20using\x20a\x20non-WOW\x20token.'),a['push'](''),a['push']('##\x20Operation\x20classes');for(const [c,d]of Object['entries'](OPERATION_CLASS_META)){a['push']('-\x20'+c+':\x20'+d['note']);}a['push'](''),a['push']('##\x20Object\x20reuse\x20vs\x20create'),a['push']('-\x20'+CREATE_VS_MODIFY_PATTERN['note']);for(const e of OBJECT_REUSE_RULES){a['push']('\x20\x20-\x20'+e['object_type']+':\x20'+e['recommendation']['replace'](/_/g,'\x20')+'\x20—\x20'+e['reason']);}a['push'](''),a['push']('##\x20Immutability');for(const f of IMMUTABILITY_RULES){const g=f['mutable_after']?.['length']?'\x20(still\x20mutable:\x20'+f['mutable_after']['join'](',\x20')+')':'';a['push']('-\x20'+f['object_type']+'\x20'+f['trigger']+':\x20'+f['message']+g);}a['push'](''),a['push']('##\x20Confirmation\x20levels');const b=[...new Set(CONFIRMATION_RULES['map'](h=>h['level']))];a['push']('-\x20Amount\x20threshold\x20for\x20extra\x20scrutiny:\x20'+formatAmount(DEFAULT_AMOUNT_THRESHOLD)+'\x20WOW.'),a['push']('-\x20Confirm-gate\x20levels:\x20'+b['join'](',\x20')+'.'),a['push'](''),a['push']('##\x20Naming\x20conventions'),a['push']('-\x20Scheme:\x20'+NAMING_CONVENTIONS['scheme']);for(const h of NAMING_CONVENTIONS['recommendations']){a['push']('-\x20'+h);}return a['push']('-\x20Custom\x20permission\x20indices:\x20'+PERMISSION_INDEX_RANGE+'.'),a['push'](''),a['join']('\x0a');}export{OBJECT_REUSE_RULES,CREATE_VS_MODIFY_PATTERN,IMMUTABILITY_RULES,OPERATION_TYPE_CLASSIFICATION,OPERATION_CLASS_META,NAMING_CONVENTIONS,classifyTool,checkObjectReuseRules,checkImmutabilityRules}from'./knowledge/safety-rules.js';
|
|
1
|
+
export{validateOperation,hasBlockingViolations,getWarningViolations}from'./knowledge/tool-constraints.js';export{computeServiceTrustScore}from'./knowledge/trust-metrics.js';export{AUDIT_RULES,auditService,hasBlockingErrors,getErrors,getWarnings,summarizeFindings}from'./knowledge/audit-rules.js';export{confirmGate,isConfirmGateEnabled,isExplicitlyConfirmed,getFailMode}from'./safety/confirm-gate.js';export{renderPreview,renderPreviewHuman}from'./safety/preview.js';export{CONFIRMATION_RULES,SAFETY_RULES_VERSION,DEFAULT_AMOUNT_THRESHOLD,getAmountThreshold,formatAmount,collectDefaultWarnings}from'./knowledge/safety-rules.js';export{distillIntent,extractSignals}from'./experience/intent-distill.js';export{Harness,getHarness,setHarness}from'./harness/index.js';export{getDefaultPreferences,inferPreferences,matchServiceToPreferences,mergePreferences,validatePreferences,SUPPORTED_INDUSTRIES}from'./customer/user-preferences.js';import{CONFIRMATION_RULES,DEFAULT_AMOUNT_THRESHOLD,formatAmount,OBJECT_REUSE_RULES,CREATE_VS_MODIFY_PATTERN,IMMUTABILITY_RULES,OPERATION_CLASS_META,NAMING_CONVENTIONS}from'./knowledge/safety-rules.js';const PERMISSION_INDEX_RANGE='1000-65535\x20(0-999\x20reserved)';export function buildSoftRulesPrompt(){const a=[];a['push']('##\x20Token\x20amounts'),a['push']('-\x20Token\x20amounts\x20are\x20U64\x20integers\x20in\x20the\x20smallest\x20unit.\x201\x20WOW\x20=\x201_000_000_000\x20(9\x20decimals).'),a['push']('-\x20Amount\x20input\x20accepts\x20\x272WOW\x27\x20/\x20\x2710.5WOW\x27\x20(auto-converted)\x20or\x20a\x20raw\x20integer\x20\x272000000000\x27.'),a['push']('-\x20Always\x20query\x20token\x20precision\x20via\x20query_toolkit\x20before\x20using\x20a\x20non-WOW\x20token.'),a['push'](''),a['push']('##\x20Operation\x20classes');for(const [c,d]of Object['entries'](OPERATION_CLASS_META)){a['push']('-\x20'+c+':\x20'+d['note']);}a['push'](''),a['push']('##\x20Object\x20reuse\x20vs\x20create'),a['push']('-\x20'+CREATE_VS_MODIFY_PATTERN['note']);for(const e of OBJECT_REUSE_RULES){a['push']('\x20\x20-\x20'+e['object_type']+':\x20'+e['recommendation']['replace'](/_/g,'\x20')+'\x20—\x20'+e['reason']);}a['push'](''),a['push']('##\x20Immutability');for(const f of IMMUTABILITY_RULES){const g=f['mutable_after']?.['length']?'\x20(still\x20mutable:\x20'+f['mutable_after']['join'](',\x20')+')':'';a['push']('-\x20'+f['object_type']+'\x20'+f['trigger']+':\x20'+f['message']+g);}a['push'](''),a['push']('##\x20Confirmation\x20levels');const b=[...new Set(CONFIRMATION_RULES['map'](h=>h['level']))];a['push']('-\x20Amount\x20threshold\x20for\x20extra\x20scrutiny:\x20'+formatAmount(DEFAULT_AMOUNT_THRESHOLD)+'\x20WOW.'),a['push']('-\x20Confirm-gate\x20levels:\x20'+b['join'](',\x20')+'.'),a['push'](''),a['push']('##\x20Naming\x20conventions'),a['push']('-\x20Scheme:\x20'+NAMING_CONVENTIONS['scheme']);for(const h of NAMING_CONVENTIONS['recommendations']){a['push']('-\x20'+h);}return a['push']('-\x20Custom\x20permission\x20indices:\x20'+PERMISSION_INDEX_RANGE+'.'),a['push'](''),a['join']('\x0a');}export{OBJECT_REUSE_RULES,CREATE_VS_MODIFY_PATTERN,IMMUTABILITY_RULES,OPERATION_TYPE_CLASSIFICATION,OPERATION_CLASS_META,NAMING_CONVENTIONS,classifyTool,checkObjectReuseRules,checkImmutabilityRules}from'./knowledge/safety-rules.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{CONFIRMATION_RULES,resolveOverrideId}from'../knowledge/safety-rules.js';import{isEnabled as
|
|
1
|
+
import{CONFIRMATION_RULES,resolveOverrideId}from'../knowledge/safety-rules.js';import{isEnabled as a318a}from'../config/index.js';import{isPlanPreapproved}from'../goal/plan-approval.js';export function isConfirmGateEnabled(){return a318a('confirm_gate');}const internalErrorCounts={};function logInternalError(a,b){const c=a;internalErrorCounts[c]=(internalErrorCounts[c]??0x0)+0x1;const d=internalErrorCounts[c];console['warn']('[ConfirmGate]\x20internal_error\x20context=\x22'+a+'\x22\x20count='+d+'\x20error='+(b instanceof Error?b['message']:String(b)));}export function getFailMode(a){switch(a){case'irreversible':case'publish':case'amount':return'closed';case'standard':case'none':default:return'open';}}function buildInternalErrorResult(){return{'pass':![],'level':'irreversible','preview':{'level':'irreversible','operation':'unknown','irreversible':!![]},'rule_id':'internal_error'};}export function confirmGate(a,b,c,d,f){if(!isConfirmGateEnabled())return{'pass':!![]};if(c?.['confirmed']===!![])return{'pass':!![]};let g,h=null;try{g=CONFIRMATION_RULES['find'](l=>{try{return l['when'](a,b,c);}catch(m){logInternalError('rule_when:'+l['id'],m);if(getFailMode(l['level'])==='closed')throw m;return![];}});}catch(l){h=l;}if(h)return logInternalError('rule_search',h),buildInternalErrorResult();if(!g)return{'pass':!![]};if(getFailMode(g['level'])==='open'&&isPlanPreapproved(c))return{'pass':!![]};const i=resolveOverrideId(g['id'],a),j=i?f?.[i]:undefined;if(j==='auto')return{'pass':!![]};if(j!=='block'&&g['bypass_on_explicit_intent']&&d&&d['length']>0x0){const m=d['map'](o=>o['toLowerCase']()),n=g['bypass_on_explicit_intent']['some'](o=>m['some'](q=>q['includes'](o['toLowerCase']())));if(n)return{'pass':!![]};}let k;try{k=g['preview'](a,b,c);}catch(o){logInternalError('rule_preview:'+g['id'],o);if(getFailMode(g['level'])==='closed')return buildInternalErrorResult();return{'pass':!![]};}return{'pass':![],'level':g['level'],'preview':k,'rule_id':g['id']};}export function isExplicitlyConfirmed(a){return a?.['confirmed']===!![];}
|
package/dist/safety/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { confirmGate, isConfirmGateEnabled, isExplicitlyConfirmed, type ConfirmResult, } from "./confirm-gate.js";
|
|
2
|
-
export { renderPreview } from "./preview.js";
|
|
2
|
+
export { renderPreview, renderPreviewHuman } from "./preview.js";
|
|
3
3
|
export { CONFIRMATION_RULES, DEFAULT_VALUE_WARNINGS, DEFAULT_AMOUNT_THRESHOLD, getAmountThreshold, formatAmount, collectDefaultWarnings, type ConfirmLevel, type OperationPreview, type ConfirmationRule, SAFETY_RULES_VERSION, } from "../knowledge/safety-rules.js";
|
package/dist/safety/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{confirmGate,isConfirmGateEnabled,isExplicitlyConfirmed}from'./confirm-gate.js';export{renderPreview}from'./preview.js';export{CONFIRMATION_RULES,DEFAULT_VALUE_WARNINGS,DEFAULT_AMOUNT_THRESHOLD,getAmountThreshold,formatAmount,collectDefaultWarnings,SAFETY_RULES_VERSION}from'../knowledge/safety-rules.js';
|
|
1
|
+
export{confirmGate,isConfirmGateEnabled,isExplicitlyConfirmed}from'./confirm-gate.js';export{renderPreview,renderPreviewHuman}from'./preview.js';export{CONFIRMATION_RULES,DEFAULT_VALUE_WARNINGS,DEFAULT_AMOUNT_THRESHOLD,getAmountThreshold,formatAmount,collectDefaultWarnings,SAFETY_RULES_VERSION}from'../knowledge/safety-rules.js';
|
package/dist/safety/preview.d.ts
CHANGED
package/dist/safety/preview.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const LEVEL_LABEL={'none':'none','standard':'Standard\x20confirmation','amount':'Amount\x20confirmation','publish':'Publish\x20confirmation\x20(irreversible\x20lock)','irreversible':'Irreversible\x20operation\x20confirmation'},CONFIRMATION_REQUIRED_OPERATIONS=['guard\x20(CREATE\x20—\x20immutable,\x20cannot\x20be\x20edited\x20or\x20deleted)','service\x20(publish=true\x20—\x20locks\x20machine/order_allocators)','machine\x20(publish=true\x20—\x20locks\x20nodes/pairs/forwards)','arbitration\x20(verdict\x20—\x20irreversible)','payment\x20(send\x20—\x20irreversible)','treasury\x20(withdraw/external_withdraw/external_deposit\x20—\x20irreversible)','reward\x20/\x20treasury\x20/\x20service.compensation_fund_add\x20(amount-sensitive)','gen_passport\x20(gas-consuming\x20test)'];export function renderPreview(a){const b=[];b['push']('⚠️\x20\x20Confirmation\x20required\x20—\x20'+LEVEL_LABEL[a['level']]),b['push']('\x20\x20Operation:\x20'+a['operation']);if(a['object'])b['push']('\x20\x20Object:\x20'+a['object']);if(a['network'])b['push']('\x20\x20Network:\x20'+a['network']);if(a['account']!==undefined)b['push']('\x20\x20Account:\x20'+(a['account']===''?'(default)':a['account']));a['amount']&&b['push']('\x20\x20Amount:\x20'+a['amount']['human_readable']+'\x20('+a['amount']['value']+'\x20smallest\x20unit)'+(a['amount']['recipient']?'\x20→\x20'+a['amount']['recipient']:''));a['immutable_after']&&a['immutable_after']['length']>0x0&&b['push']('\x20\x20Fields\x20becoming\x20immutable:\x20'+a['immutable_after']['join'](',\x20'));if(a['warnings']&&a['warnings']['length']>0x0){b['push']('\x20\x20Warnings:');for(const c of a['warnings'])b['push']('\x20\x20\x20\x20-\x20'+c);}a['irreversible']&&b['push']('\x20\x20⛔\x20This\x20operation\x20is\x20IRREVERSIBLE.\x20It\x20cannot\x20be\x20undone.');b['push'](''),b['push']('Confirm\x20by\x20re-calling\x20with\x20env.confirmed=true,\x20or\x20modify/cancel.'),b['push'](''),b['push']('Operations\x20that\x20require\x20env.confirmed=true:');for(const d of CONFIRMATION_REQUIRED_OPERATIONS){b['push']('\x20\x20-\x20'+d);}return b['push']('Example:\x20{\x22env\x22:\x20{\x22account\x22:\x20\x22...\x22,\x20\x22network\x22:\x20\x22testnet\x22,\x20\x22confirmed\x22:\x20true}}'),b['join']('\x0a');}
|
|
1
|
+
import{formatShortAddress}from'../persona/address-format.js';const LEVEL_LABEL={'none':'none','standard':'Standard\x20confirmation','amount':'Amount\x20confirmation','publish':'Publish\x20confirmation\x20(irreversible\x20lock)','irreversible':'Irreversible\x20operation\x20confirmation'},CONFIRMATION_REQUIRED_OPERATIONS=['guard\x20(CREATE\x20—\x20immutable,\x20cannot\x20be\x20edited\x20or\x20deleted)','service\x20(publish=true\x20—\x20locks\x20machine/order_allocators)','machine\x20(publish=true\x20—\x20locks\x20nodes/pairs/forwards)','arbitration\x20(verdict\x20—\x20irreversible)','payment\x20(send\x20—\x20irreversible)','treasury\x20(withdraw/external_withdraw/external_deposit\x20—\x20irreversible)','reward\x20/\x20treasury\x20/\x20service.compensation_fund_add\x20(amount-sensitive)','gen_passport\x20(gas-consuming\x20test)'];export function renderPreview(a){const b=[];b['push']('⚠️\x20\x20Confirmation\x20required\x20—\x20'+LEVEL_LABEL[a['level']]),b['push']('\x20\x20Operation:\x20'+a['operation']);if(a['object'])b['push']('\x20\x20Object:\x20'+a['object']);if(a['network'])b['push']('\x20\x20Network:\x20'+a['network']);if(a['account']!==undefined)b['push']('\x20\x20Account:\x20'+(a['account']===''?'(default)':a['account']));a['amount']&&b['push']('\x20\x20Amount:\x20'+a['amount']['human_readable']+'\x20('+a['amount']['value']+'\x20smallest\x20unit)'+(a['amount']['recipient']?'\x20→\x20'+a['amount']['recipient']:''));a['immutable_after']&&a['immutable_after']['length']>0x0&&b['push']('\x20\x20Fields\x20becoming\x20immutable:\x20'+a['immutable_after']['join'](',\x20'));if(a['warnings']&&a['warnings']['length']>0x0){b['push']('\x20\x20Warnings:');for(const c of a['warnings'])b['push']('\x20\x20\x20\x20-\x20'+c);}a['irreversible']&&b['push']('\x20\x20⛔\x20This\x20operation\x20is\x20IRREVERSIBLE.\x20It\x20cannot\x20be\x20undone.');b['push'](''),b['push']('Confirm\x20by\x20re-calling\x20with\x20env.confirmed=true,\x20or\x20modify/cancel.'),b['push'](''),b['push']('Operations\x20that\x20require\x20env.confirmed=true:');for(const d of CONFIRMATION_REQUIRED_OPERATIONS){b['push']('\x20\x20-\x20'+d);}return b['push']('Example:\x20{\x22env\x22:\x20{\x22account\x22:\x20\x22...\x22,\x20\x22network\x22:\x20\x22testnet\x22,\x20\x22confirmed\x22:\x20true}}'),b['join']('\x0a');}const OPERATION_MEANINGS={'payment':'Send\x20a\x20payment\x20on-chain.\x20Funds\x20leave\x20your\x20account\x20and\x20are\x20credited\x20to\x20the\x20recipient.','service':'Publish\x20/\x20update\x20this\x20Service.\x20Publishing\x20locks\x20its\x20machine\x20and\x20order-allocator\x20configuration\x20—\x20further\x20changes\x20require\x20a\x20new\x20Service\x20version.','machine':'Publish\x20this\x20Machine\x20workflow.\x20Publishing\x20locks\x20its\x20nodes,\x20pairs\x20and\x20forwards\x20—\x20the\x20flow\x20cannot\x20be\x20redesigned\x20afterwards.','arbitration':'Issue\x20the\x20arbitration\x20verdict.\x20The\x20verdict\x20is\x20final\x20and\x20cannot\x20be\x20changed.','treasury':'Move\x20funds\x20in/out\x20of\x20a\x20Treasury.\x20Withdrawals\x20are\x20on-chain\x20transfers\x20and\x20cannot\x20be\x20undone.','reward':'Distribute\x20rewards\x20from\x20a\x20Service.\x20Funds\x20are\x20transferred\x20on-chain\x20immediately.','guard':'Create\x20a\x20Guard.\x20Guards\x20are\x20CREATE-only\x20and\x20immutable\x20—\x20they\x20can\x20never\x20be\x20edited\x20or\x20deleted;\x20changing\x20one\x20means\x20creating\x20a\x20new\x20Guard\x20and\x20rebinding.','progress':'Advance\x20an\x20order\x20(Progress\x20node).\x20Depending\x20on\x20the\x20node\x20this\x20may\x20release\x20funds\x20to\x20the\x20counterparty.','gen_passport':'Run\x20a\x20Guard\x20test\x20(generate\x20a\x20test\x20Passport).\x20This\x20consumes\x20gas\x20but\x20changes\x20nothing\x20permanent.'};function fallbackMeaning(a){return'Execute\x20the\x20\x22'+a+'\x22\x20operation\x20on-chain.';}function shortish(a){return/^(0x)?[0-9a-fA-F]{8,64}$/['test'](a)?formatShortAddress(a):a;}export function renderPreviewHuman(a){const b=[];b['push']('What\x20this\x20does'),b['push']('\x20\x20'+(OPERATION_MEANINGS[a['operation']]??fallbackMeaning(a['operation']))),b['push'](''),b['push']('How\x20it\x20will\x20run');if(a['object'])b['push']('\x20\x20Object:\x20\x20\x20'+shortish(a['object']));a['account']!==undefined&&b['push']('\x20\x20Account:\x20\x20'+(a['account']===''?'(current\x20account)':shortish(a['account'])));if(a['network'])b['push']('\x20\x20Network:\x20\x20'+a['network']);a['amount']&&b['push']('\x20\x20Amount:\x20\x20\x20'+a['amount']['human_readable']+(a['amount']['recipient']?'\x20\x20→\x20\x20to\x20'+shortish(a['amount']['recipient']):''));b['push'](''),b['push']('What\x20happens\x20after\x20you\x20confirm');a['immutable_after']&&a['immutable_after']['length']>0x0&&b['push']('\x20\x20-\x20These\x20become\x20PERMANENT:\x20'+a['immutable_after']['join'](',\x20'));a['irreversible']&&b['push']('\x20\x20-\x20The\x20operation\x20is\x20IRREVERSIBLE\x20—\x20it\x20cannot\x20be\x20undone\x20or\x20cancelled.');if(a['warnings']&&a['warnings']['length']>0x0){b['push']('\x20\x20Notes:');for(const c of a['warnings'])b['push']('\x20\x20\x20\x20-\x20'+c);}return!(a['immutable_after']&&a['immutable_after']['length']>0x0)&&!a['irreversible']&&!(a['warnings']&&a['warnings']['length']>0x0)&&b['push']('\x20\x20-\x20The\x20operation\x20is\x20submitted\x20to\x20the\x20network\x20immediately.'),b['join']('\x0a');}
|
|
@@ -197,9 +197,10 @@ export declare const CallAllocation_InputSchema: z.ZodObject<{
|
|
|
197
197
|
mainnet: import("@wowok/wowok").ENTRYPOINT.Mainnet;
|
|
198
198
|
}>>;
|
|
199
199
|
referrer: z.ZodOptional<z.ZodString>;
|
|
200
|
+
no_auto_register: z.ZodOptional<z.ZodBoolean>;
|
|
200
201
|
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
201
202
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
202
|
-
|
|
203
|
+
plan_approval: z.ZodOptional<z.ZodString>;
|
|
203
204
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
204
205
|
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
205
206
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -17,7 +17,7 @@ export declare const DisputeSchema: z.ZodObject<{
|
|
|
17
17
|
}, z.core.$strict>;
|
|
18
18
|
export declare const ConfirmSchema: z.ZodObject<{
|
|
19
19
|
arb: z.ZodString;
|
|
20
|
-
voting_deadline: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]
|
|
20
|
+
voting_deadline: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
21
21
|
}, z.core.$strict>;
|
|
22
22
|
export declare const VotingDeadlineChangeSchema: z.ZodObject<{
|
|
23
23
|
arb: z.ZodString;
|
|
@@ -120,7 +120,7 @@ export declare const CallArbitration_DataSchema: z.ZodObject<{
|
|
|
120
120
|
pause: z.ZodOptional<z.ZodBoolean>;
|
|
121
121
|
confirm: z.ZodOptional<z.ZodObject<{
|
|
122
122
|
arb: z.ZodString;
|
|
123
|
-
voting_deadline: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]
|
|
123
|
+
voting_deadline: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
124
124
|
}, z.core.$strict>>;
|
|
125
125
|
voting_deadline_change: z.ZodOptional<z.ZodObject<{
|
|
126
126
|
arb: z.ZodString;
|
|
@@ -240,7 +240,7 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
240
240
|
pause: z.ZodOptional<z.ZodBoolean>;
|
|
241
241
|
confirm: z.ZodOptional<z.ZodObject<{
|
|
242
242
|
arb: z.ZodString;
|
|
243
|
-
voting_deadline: z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]
|
|
243
|
+
voting_deadline: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
244
244
|
}, z.core.$strict>>;
|
|
245
245
|
voting_deadline_change: z.ZodOptional<z.ZodObject<{
|
|
246
246
|
arb: z.ZodString;
|
|
@@ -332,9 +332,10 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
332
332
|
mainnet: import("@wowok/wowok").ENTRYPOINT.Mainnet;
|
|
333
333
|
}>>;
|
|
334
334
|
referrer: z.ZodOptional<z.ZodString>;
|
|
335
|
+
no_auto_register: z.ZodOptional<z.ZodBoolean>;
|
|
335
336
|
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
336
337
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
337
|
-
|
|
338
|
+
plan_approval: z.ZodOptional<z.ZodString>;
|
|
338
339
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
339
340
|
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
340
341
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,NamedObjectSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{VotingGuardSchema}from'../query/index.js';import{BalanceTypeSchema,DescriptionSchema,LongNameSchema,NameOrAddressSchema,NameSchema,ReceivedObjectsOrRecentlySchema,RECEIVE_FORMAT_BLOCK_OBJECTS}from'../common/index.js';export const DisputeSchema=z['object']({'order':NameOrAddressSchema['describe']('Order\x20ID\x20or\x20name.'),'description':DescriptionSchema['optional']()['describe']('Dispute\x20description.'),'proposition':z['array'](LongNameSchema)['describe']('List\x20of\x20dispute\x20propositions.'),'fee':CoinParamSchema['describe']('Dispute\x20processing\x20fee.\x20FORMAT:\x20{balance:\x20<amount_in_smallest_unit>}\x20—\x20field\x20name\x20is\x20\x27balance\x27\x20(NOT\x20\x27amount\x27).\x20'+'The\x20token\x20type\x20and\x20precision\x20are\x20determined\x20by\x20the\x20Arbitration\x20object\x27s\x20type_parameter\x20(the\x20generic\x20type\x20set\x20when\x20the\x20Arbitration\x20was\x20created).\x20'+'For\x20WOW\x20(9\x20decimals):\x20{balance:\x2050000000}\x20=\x200.05\x20WOW.\x20For\x20SUI\x20(9\x20decimals):\x20{balance:\x2050000000}\x20=\x200.05\x20SUI.\x20'+'For\x20tokens\x20with\x20different\x20decimals,\x20adjust\x20accordingly\x20(e.g.\x20USDC\x20has\x206\x20decimals,\x20so\x20{balance:\x2050000}\x20=\x200.05\x20USDC).'),'namedArb':NamedObjectSchema['optional']()['describe']('RECOMMENDED:\x20Set\x20a\x20local\x20name\x20for\x20the\x20newly\x20created\x20Arb\x20(arbitration\x20case)\x20object.\x20'+'Without\x20this,\x20the\x20Arb\x20is\x20only\x20referenceable\x20by\x20its\x20on-chain\x20address.\x20'+'Example:\x20{name:\x20\x27my_dispute_v1\x27}\x20allows\x20subsequent\x20vote/feedback\x20operations\x20to\x20use\x20\x27my_dispute_v1\x27.')})['strict']();export const ConfirmSchema=z['object']({'arb':NameOrAddressSchema,'voting_deadline':z['union']([z['number']()['int']()['min'](0x0),z['null']()])['describe']('Voting\x20deadline\x20as\x20Unix\x20timestamp\x20in\x20MILLISECONDS\x20(ms).\x20SEMANTICS\x20OF\x20SPECIAL\x20VALUES:\x20'+'0\x20=\x20deadline\x20already\x20passed\x20→\x20voting\x20is\x20IMPOSSIBLE\x20and\x20the\x20arbitrator\x20may\x20deliver\x20the\x20verdict\x20immediately\x20(direct-verdict\x20flow);\x20'+'null\x20=\x20open-ended\x20voting\x20with\x20no\x20deadline\x20(verdict\x20allowed\x20anytime);\x20'+'a\x20future\x20timestamp\x20=\x20normal\x20voting\x20window\x20(recommended:\x20now\x20+\x20at\x20least\x2086400000\x20ms\x20=\x2024\x20hours).\x20'+'COMMON\x20MISTAKE:\x20using\x20seconds\x20instead\x20of\x20milliseconds\x20(multiply\x20by\x201000).\x20'+'Example:\x20Date.now()\x20+\x20259200000\x20for\x203\x20days\x20from\x20now.')})['strict']();export const VotingDeadlineChangeSchema=z['object']({'arb':NameOrAddressSchema,'voting_deadline':z['union']([z['number'](),z['null']()])['describe']('New\x20voting\x20deadline\x20as\x20Unix\x20timestamp\x20in\x20MILLISECONDS\x20(ms).\x20SEMANTICS\x20OF\x20SPECIAL\x20VALUES:\x20'+'0\x20=\x20deadline\x20already\x20passed\x20→\x20voting\x20is\x20IMPOSSIBLE\x20and\x20the\x20arbitrator\x20may\x20deliver\x20the\x20verdict\x20immediately;\x20'+'null\x20=\x20open-ended\x20voting\x20with\x20no\x20deadline\x20(verdict\x20allowed\x20anytime);\x20'+'a\x20future\x20timestamp\x20=\x20normal\x20voting\x20window\x20(recommended:\x20now\x20+\x20at\x20least\x2086400000\x20ms\x20=\x2024\x20hours).\x20'+'COMMON\x20MISTAKE:\x20using\x20seconds\x20instead\x20of\x20milliseconds\x20(multiply\x20by\x201000).\x20'+'Example:\x20Date.now()\x20+\x20259200000\x20for\x203\x20days\x20from\x20now.')})['strict']();export const VoteSchema=z['object']({'arb':NameOrAddressSchema,'votes':z['array'](z['number']()['int']()['min'](0x0)['max'](0xff))['describe']('Proposition\x20INDICES\x20(0-based,\x20u8)\x20the\x20voter\x20agrees\x20with\x20—\x20e.g.\x20[0]\x20votes\x20for\x20the\x20first\x20proposition.\x20'+'Re-voting\x20REPLACES\x20the\x20voter\x27s\x20previous\x20vote\x20(old\x20weight\x20removed,\x20new\x20applied).\x20'+'Out-of-range\x20index\x20aborts\x20with\x20E_PROPOSITION_NOT_FOUND.'),'voting_guard':NameOrAddressSchema['optional']()['describe']('Optional\x20Voting\x20Guard\x20for\x20weighted\x20voting.\x20THREE\x20PATHS\x20are\x20supported\x20by\x20the\x20SDK\x20and\x20Move\x20contract:\x20'+'(1)\x20voting_guard\x20PROVIDED\x20→\x20vote_with_voting_guard\x20(Guard\x20verifies\x20voter\x20+\x20determines\x20vote\x20weight\x20via\x20VoteWeight\x20config);\x20'+'(2)\x20voting_guard\x20OMITTED\x20but\x20other\x20guards\x20trigger\x20passport\x20creation\x20(e.g.\x20env.permission_guard\x20or\x20usage_guard)\x20→\x20vote_with_passport\x20(permission-only\x20via\x20passport);\x20'+'(3)\x20voting_guard\x20OMITTED\x20and\x20no\x20passport\x20context\x20→\x20vote\x20(plain\x20permission-only\x20vote,\x20no\x20Guard).\x20'+'The\x20Guard\x20(when\x20provided)\x20must\x20be\x20in\x20the\x20Arbitration\x27s\x20voting_guard\x20list.')})['strict']();export const FeedbackSchema=z['object']({'arb':NameOrAddressSchema,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.')})['strict']();export const ArbitrationActionSchema=z['object']({'arb':NameOrAddressSchema,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.'),'indemnity':z['number']()['int']()['min'](0x0)})['strict']();export const ResetSchema=z['object']({'arb':NameOrAddressSchema,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.')})['strict']();export const ArbWithdrawSchema=z['object']({'arb':NameOrAddressSchema})['strict']();export const FeesTransferToSchema=z['union']([z['object']({'allocation':NameOrAddressSchema['describe']('Allocation\x20object\x20ID\x20or\x20name.')})['strict'](),z['object']({'treasury':NameOrAddressSchema['describe']('Treasury\x20object\x20ID\x20or\x20name.')})['strict']()]);export const FeesTransferSchema=z['object']({'to':FeesTransferToSchema['describe']('Transfer\x20arbitration\x20fees\x20to\x20the\x20specified\x20Allocation\x20object\x20or\x20Treasury\x20object.'),'payment_remark':NameSchema['describe']('Payment\x20remark.'),'payment_index':z['number']()['int']()['min'](0x0)['describe']('Payment\x20index.'),'newPayment':NamedObjectSchema['optional']()['describe']('Name\x20for\x20the\x20newly\x20created\x20payment\x20object.')})['strict']();export const VotingGuardActionSchema=z['discriminatedUnion']('op',[z['object']({'op':z['enum'](['add','set']),'guards':z['array'](VotingGuardSchema)})['strict'](),z['object']({'op':z['literal']('remove'),'guards':z['array'](NameOrAddressSchema)})['strict'](),z['object']({'op':z['literal']('clear')})['strict']()]);export const CallArbitration_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'dispute':DisputeSchema['optional']()['describe']('Create\x20a\x20new\x20Arb\x20object\x20for\x20the\x20order.'),'description':DescriptionSchema['optional']()['describe']('Introduction\x20of\x20the\x20Arbitration\x20object.'),'location':LongNameSchema['optional']()['describe']('Arbitration\x20location.'),'fee':BalanceTypeSchema['optional']()['describe']('Arbitration\x20fee.'),'pause':z['boolean']()['optional']()['describe']('Whether\x20to\x20pause\x20arbitration.'),'confirm':ConfirmSchema['optional']()['describe']('Confirm\x20the\x20materials\x20submitted\x20by\x20the\x20user\x20for\x20arbitration.'),'voting_deadline_change':VotingDeadlineChangeSchema['optional']()['describe']('Change\x20the\x20voting\x20deadline.'),'vote':VoteSchema['optional']()['describe']('Vote\x20on\x20user\x20propositions.'),'feedback':FeedbackSchema['optional']()['describe']('Arbitration\x20feedback\x20for\x20the\x20Arb\x20object.'),'arbitration':ArbitrationActionSchema['optional']()['describe']('Provide\x20a\x20definitive\x20arbitration\x20result.'),'reset':ResetSchema['optional']()['describe']('User\x20applies\x20to\x20resubmit\x20materials\x20and\x20restart\x20arbitration.'),'arb_withdraw':ArbWithdrawSchema['optional']()['describe']('Withdraw\x20arbitration\x20fees\x20from\x20the\x20Arb\x20object.'),'fees_transfer':FeesTransferSchema['optional']()['describe']('Distribute\x20the\x20withdrawn\x20arbitration\x20fees.'),'usage_guard':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Set\x20Guard\x20for\x20verification\x20when\x20users\x20apply\x20for\x20arbitration;\x20if\x20Guard\x20verification\x20fails,\x20users\x20will\x20not\x20be\x20able\x20to\x20apply\x20for\x20arbitration.'),'voting_guard':VotingGuardActionSchema['optional']()['describe']('Set\x20Guard\x20for\x20verification\x20during\x20arbitration\x20voting;\x20if\x20Guard\x20verification\x20fails,\x20arbitration\x20voting\x20will\x20fail.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Arbitration\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20its\x20Permission\x20object.'+RECEIVE_FORMAT_BLOCK_OBJECTS),'um':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Contact\x20object\x20ID\x20or\x20name.')})['strict']()['describe']('On-chain\x20Arbitration\x20operations.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20type_parameter,\x20permission,\x20...}\x20to\x20create\x20an\x20Arbitration.\x20NOTE:\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x20\x27permission\x27\x20can\x20be\x20a\x20new\x20Permission\x20object\x20or\x20reference\x20an\x20existing\x20one\x20-\x20check\x20\x27object\x27\x20field\x20description\x20for\x20details.\x20⚠️\x20PERMISSION\x20RULE\x20(contract-enforced,\x20service.move\x20arbitration_add_imp):\x20the\x20Arbitration\x27s\x20permission\x20MUST\x20be\x20DIFFERENT\x20from\x20the\x20permission\x20of\x20any\x20Service\x20it\x20will\x20be\x20bound\x20to\x20—\x20binding\x20an\x20Arbitration\x20that\x20SHARES\x20the\x20Service\x27s\x20Permission\x20aborts\x20with\x20E_ARBITRATION_PERMISSION_CONFLICT\x20(error\x2033).\x20Always\x20create\x20a\x20DEDICATED\x20Permission\x20object\x20for\x20each\x20Arbitration.\x20(2)\x20OPERATE\x20EXISTING:\x20Set\x20\x27object\x27\x20field\x20with\x20STRING\x20format\x20(object\x20ID\x20or\x20name).\x20The\x20\x27object\x27\x20field\x20is\x20CRITICAL\x20and\x20REQUIRED\x20in\x20both\x20cases.\x20STRING\x20for\x20existing,\x20OBJECT\x20for\x20new\x20creation.');export const CallArbitration_InputSchema=z['object']({'data':CallArbitration_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
|
|
1
|
+
import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,NamedObjectSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{VotingGuardSchema}from'../query/index.js';import{BalanceTypeSchema,DescriptionSchema,LongNameSchema,NameOrAddressSchema,NameSchema,ReceivedObjectsOrRecentlySchema,RECEIVE_FORMAT_BLOCK_OBJECTS}from'../common/index.js';export const DisputeSchema=z['object']({'order':NameOrAddressSchema['describe']('Order\x20ID\x20or\x20name.'),'description':DescriptionSchema['optional']()['describe']('Dispute\x20description.'),'proposition':z['array'](LongNameSchema)['describe']('List\x20of\x20dispute\x20propositions.'),'fee':CoinParamSchema['describe']('Dispute\x20processing\x20fee.\x20FORMAT:\x20{balance:\x20<amount_in_smallest_unit>}\x20—\x20field\x20name\x20is\x20\x27balance\x27\x20(NOT\x20\x27amount\x27).\x20'+'The\x20token\x20type\x20and\x20precision\x20are\x20determined\x20by\x20the\x20Arbitration\x20object\x27s\x20type_parameter\x20(the\x20generic\x20type\x20set\x20when\x20the\x20Arbitration\x20was\x20created).\x20'+'For\x20WOW\x20(9\x20decimals):\x20{balance:\x2050000000}\x20=\x200.05\x20WOW.\x20'+'For\x20tokens\x20with\x20different\x20decimals,\x20adjust\x20accordingly\x20(e.g.\x20USDC\x20has\x206\x20decimals,\x20so\x20{balance:\x2050000}\x20=\x200.05\x20USDC).'),'namedArb':NamedObjectSchema['optional']()['describe']('RECOMMENDED:\x20Set\x20a\x20local\x20name\x20for\x20the\x20newly\x20created\x20Arb\x20(arbitration\x20case)\x20object.\x20'+'Without\x20this,\x20the\x20Arb\x20is\x20only\x20referenceable\x20by\x20its\x20on-chain\x20address.\x20'+'Example:\x20{name:\x20\x27my_dispute_v1\x27}\x20allows\x20subsequent\x20vote/feedback\x20operations\x20to\x20use\x20\x27my_dispute_v1\x27.')})['strict']();export const ConfirmSchema=z['object']({'arb':NameOrAddressSchema,'voting_deadline':z['union']([z['number']()['int']()['min'](0x0),z['null']()])['default'](0x0)['describe']('Voting\x20deadline\x20as\x20Unix\x20timestamp\x20in\x20MILLISECONDS\x20(ms).\x20SEMANTICS\x20OF\x20SPECIAL\x20VALUES:\x20'+'0\x20(DEFAULT\x20when\x20omitted)\x20=\x20deadline\x20already\x20passed\x20→\x20voting\x20is\x20IMPOSSIBLE\x20and\x20the\x20arbitrator\x20may\x20deliver\x20the\x20verdict\x20immediately\x20(direct-verdict\x20flow);\x20'+'null\x20=\x20open-ended\x20voting\x20with\x20no\x20deadline\x20(verdict\x20allowed\x20anytime);\x20'+'a\x20future\x20timestamp\x20=\x20normal\x20voting\x20window\x20(recommended:\x20now\x20+\x20at\x20least\x2086400000\x20ms\x20=\x2024\x20hours).\x20'+'COMMON\x20MISTAKE:\x20using\x20seconds\x20instead\x20of\x20milliseconds\x20(multiply\x20by\x201000).\x20'+'Example:\x20Date.now()\x20+\x20259200000\x20for\x203\x20days\x20from\x20now.')})['strict']();export const VotingDeadlineChangeSchema=z['object']({'arb':NameOrAddressSchema,'voting_deadline':z['union']([z['number'](),z['null']()])['describe']('New\x20voting\x20deadline\x20as\x20Unix\x20timestamp\x20in\x20MILLISECONDS\x20(ms).\x20SEMANTICS\x20OF\x20SPECIAL\x20VALUES:\x20'+'0\x20=\x20deadline\x20already\x20passed\x20→\x20voting\x20is\x20IMPOSSIBLE\x20and\x20the\x20arbitrator\x20may\x20deliver\x20the\x20verdict\x20immediately;\x20'+'null\x20=\x20open-ended\x20voting\x20with\x20no\x20deadline\x20(verdict\x20allowed\x20anytime);\x20'+'a\x20future\x20timestamp\x20=\x20normal\x20voting\x20window\x20(recommended:\x20now\x20+\x20at\x20least\x2086400000\x20ms\x20=\x2024\x20hours).\x20'+'COMMON\x20MISTAKE:\x20using\x20seconds\x20instead\x20of\x20milliseconds\x20(multiply\x20by\x201000).\x20'+'Example:\x20Date.now()\x20+\x20259200000\x20for\x203\x20days\x20from\x20now.')})['strict']();export const VoteSchema=z['object']({'arb':NameOrAddressSchema,'votes':z['array'](z['number']()['int']()['min'](0x0)['max'](0xff))['describe']('Proposition\x20INDICES\x20(0-based,\x20u8)\x20the\x20voter\x20agrees\x20with\x20—\x20e.g.\x20[0]\x20votes\x20for\x20the\x20first\x20proposition.\x20'+'Re-voting\x20REPLACES\x20the\x20voter\x27s\x20previous\x20vote\x20(old\x20weight\x20removed,\x20new\x20applied).\x20'+'Out-of-range\x20index\x20aborts\x20with\x20E_PROPOSITION_NOT_FOUND.'),'voting_guard':NameOrAddressSchema['optional']()['describe']('Optional\x20Voting\x20Guard\x20for\x20weighted\x20voting.\x20THREE\x20PATHS\x20are\x20supported\x20by\x20the\x20SDK\x20and\x20Move\x20contract:\x20'+'(1)\x20voting_guard\x20PROVIDED\x20→\x20vote_with_voting_guard\x20(Guard\x20verifies\x20voter\x20+\x20determines\x20vote\x20weight\x20via\x20VoteWeight\x20config);\x20'+'(2)\x20voting_guard\x20OMITTED\x20but\x20other\x20guards\x20trigger\x20passport\x20creation\x20(e.g.\x20env.permission_guard\x20or\x20usage_guard)\x20→\x20vote_with_passport\x20(permission-only\x20via\x20passport);\x20'+'(3)\x20voting_guard\x20OMITTED\x20and\x20no\x20passport\x20context\x20→\x20vote\x20(plain\x20permission-only\x20vote,\x20no\x20Guard).\x20'+'The\x20Guard\x20(when\x20provided)\x20must\x20be\x20in\x20the\x20Arbitration\x27s\x20voting_guard\x20list.')})['strict']();export const FeedbackSchema=z['object']({'arb':NameOrAddressSchema,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.')})['strict']();export const ArbitrationActionSchema=z['object']({'arb':NameOrAddressSchema,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.'),'indemnity':z['number']()['int']()['min'](0x0)})['strict']();export const ResetSchema=z['object']({'arb':NameOrAddressSchema,'feedback':DescriptionSchema['describe']('Arbitration\x20feedback.')})['strict']();export const ArbWithdrawSchema=z['object']({'arb':NameOrAddressSchema})['strict']();export const FeesTransferToSchema=z['union']([z['object']({'allocation':NameOrAddressSchema['describe']('Allocation\x20object\x20ID\x20or\x20name.')})['strict'](),z['object']({'treasury':NameOrAddressSchema['describe']('Treasury\x20object\x20ID\x20or\x20name.')})['strict']()]);export const FeesTransferSchema=z['object']({'to':FeesTransferToSchema['describe']('Transfer\x20arbitration\x20fees\x20to\x20the\x20specified\x20Allocation\x20object\x20or\x20Treasury\x20object.'),'payment_remark':NameSchema['describe']('Payment\x20remark.'),'payment_index':z['number']()['int']()['min'](0x0)['describe']('Payment\x20index.'),'newPayment':NamedObjectSchema['optional']()['describe']('Name\x20for\x20the\x20newly\x20created\x20payment\x20object.')})['strict']();export const VotingGuardActionSchema=z['discriminatedUnion']('op',[z['object']({'op':z['enum'](['add','set']),'guards':z['array'](VotingGuardSchema)})['strict'](),z['object']({'op':z['literal']('remove'),'guards':z['array'](NameOrAddressSchema)})['strict'](),z['object']({'op':z['literal']('clear')})['strict']()]);export const CallArbitration_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'dispute':DisputeSchema['optional']()['describe']('Create\x20a\x20new\x20Arb\x20object\x20for\x20the\x20order.'),'description':DescriptionSchema['optional']()['describe']('Introduction\x20of\x20the\x20Arbitration\x20object.'),'location':LongNameSchema['optional']()['describe']('Arbitration\x20location.'),'fee':BalanceTypeSchema['optional']()['describe']('Arbitration\x20fee.'),'pause':z['boolean']()['optional']()['describe']('Whether\x20to\x20pause\x20arbitration.'),'confirm':ConfirmSchema['optional']()['describe']('Confirm\x20the\x20materials\x20submitted\x20by\x20the\x20user\x20for\x20arbitration.'),'voting_deadline_change':VotingDeadlineChangeSchema['optional']()['describe']('Change\x20the\x20voting\x20deadline.'),'vote':VoteSchema['optional']()['describe']('Vote\x20on\x20user\x20propositions.'),'feedback':FeedbackSchema['optional']()['describe']('Arbitration\x20feedback\x20for\x20the\x20Arb\x20object.'),'arbitration':ArbitrationActionSchema['optional']()['describe']('Provide\x20a\x20definitive\x20arbitration\x20result.'),'reset':ResetSchema['optional']()['describe']('User\x20applies\x20to\x20resubmit\x20materials\x20and\x20restart\x20arbitration.'),'arb_withdraw':ArbWithdrawSchema['optional']()['describe']('Withdraw\x20arbitration\x20fees\x20from\x20the\x20Arb\x20object.'),'fees_transfer':FeesTransferSchema['optional']()['describe']('Distribute\x20the\x20withdrawn\x20arbitration\x20fees.'),'usage_guard':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Set\x20Guard\x20for\x20verification\x20when\x20users\x20apply\x20for\x20arbitration;\x20if\x20Guard\x20verification\x20fails,\x20users\x20will\x20not\x20be\x20able\x20to\x20apply\x20for\x20arbitration.'),'voting_guard':VotingGuardActionSchema['optional']()['describe']('Set\x20Guard\x20for\x20verification\x20during\x20arbitration\x20voting;\x20if\x20Guard\x20verification\x20fails,\x20arbitration\x20voting\x20will\x20fail.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Arbitration\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20its\x20Permission\x20object.'+RECEIVE_FORMAT_BLOCK_OBJECTS),'um':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Contact\x20object\x20ID\x20or\x20name.')})['strict']()['describe']('On-chain\x20Arbitration\x20operations.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20type_parameter,\x20permission,\x20...}\x20to\x20create\x20an\x20Arbitration.\x20NOTE:\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x20\x27permission\x27\x20can\x20be\x20a\x20new\x20Permission\x20object\x20or\x20reference\x20an\x20existing\x20one\x20-\x20check\x20\x27object\x27\x20field\x20description\x20for\x20details.\x20⚠️\x20PERMISSION\x20RULE\x20(contract-enforced,\x20service.move\x20arbitration_add_imp):\x20the\x20Arbitration\x27s\x20permission\x20MUST\x20be\x20DIFFERENT\x20from\x20the\x20permission\x20of\x20any\x20Service\x20it\x20will\x20be\x20bound\x20to\x20—\x20binding\x20an\x20Arbitration\x20that\x20SHARES\x20the\x20Service\x27s\x20Permission\x20aborts\x20with\x20E_ARBITRATION_PERMISSION_CONFLICT\x20(error\x2033).\x20Always\x20create\x20a\x20DEDICATED\x20Permission\x20object\x20for\x20each\x20Arbitration.\x20(2)\x20OPERATE\x20EXISTING:\x20Set\x20\x27object\x27\x20field\x20with\x20STRING\x20format\x20(object\x20ID\x20or\x20name).\x20The\x20\x27object\x27\x20field\x20is\x20CRITICAL\x20and\x20REQUIRED\x20in\x20both\x20cases.\x20STRING\x20for\x20existing,\x20OBJECT\x20for\x20new\x20creation.');export const CallArbitration_InputSchema=z['object']({'data':CallArbitration_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
|
|
@@ -76,9 +76,10 @@ export declare const CallEnvSchema: z.ZodObject<{
|
|
|
76
76
|
mainnet: ENTRYPOINT.Mainnet;
|
|
77
77
|
}>>;
|
|
78
78
|
referrer: z.ZodOptional<z.ZodString>;
|
|
79
|
+
no_auto_register: z.ZodOptional<z.ZodBoolean>;
|
|
79
80
|
confirmed: z.ZodOptional<z.ZodBoolean>;
|
|
80
81
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
81
|
-
|
|
82
|
+
plan_approval: z.ZodOptional<z.ZodString>;
|
|
82
83
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
83
84
|
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
84
85
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -228,6 +229,8 @@ export declare const EventSemanticSchema: z.ZodObject<{
|
|
|
228
229
|
lifecycle: "lifecycle";
|
|
229
230
|
state_change: "state_change";
|
|
230
231
|
fund_flow: "fund_flow";
|
|
232
|
+
market_opportunity: "market_opportunity";
|
|
233
|
+
reputation: "reputation";
|
|
231
234
|
permission: "permission";
|
|
232
235
|
guard: "guard";
|
|
233
236
|
}>;
|
|
@@ -321,6 +324,7 @@ export declare const EvolutionContextSchema: z.ZodObject<{
|
|
|
321
324
|
role: z.ZodOptional<z.ZodEnum<{
|
|
322
325
|
merchant: "merchant";
|
|
323
326
|
customer: "customer";
|
|
327
|
+
demander: "demander";
|
|
324
328
|
prospect: "prospect";
|
|
325
329
|
supplier: "supplier";
|
|
326
330
|
collaborator: "collaborator";
|
|
@@ -666,6 +670,8 @@ export declare const SemanticSummarySchema: z.ZodObject<{
|
|
|
666
670
|
lifecycle: "lifecycle";
|
|
667
671
|
state_change: "state_change";
|
|
668
672
|
fund_flow: "fund_flow";
|
|
673
|
+
market_opportunity: "market_opportunity";
|
|
674
|
+
reputation: "reputation";
|
|
669
675
|
permission: "permission";
|
|
670
676
|
guard: "guard";
|
|
671
677
|
}>;
|
|
@@ -747,6 +753,7 @@ export declare const SemanticSummarySchema: z.ZodObject<{
|
|
|
747
753
|
role: z.ZodOptional<z.ZodEnum<{
|
|
748
754
|
merchant: "merchant";
|
|
749
755
|
customer: "customer";
|
|
756
|
+
demander: "demander";
|
|
750
757
|
prospect: "prospect";
|
|
751
758
|
supplier: "supplier";
|
|
752
759
|
collaborator: "collaborator";
|
|
@@ -929,6 +936,7 @@ export declare const CallResponseErrorSchema: z.ZodObject<{
|
|
|
929
936
|
signature_error: "signature_error";
|
|
930
937
|
config_error: "config_error";
|
|
931
938
|
wip_verification_failed: "wip_verification_failed";
|
|
939
|
+
time_lock_not_elapsed: "time_lock_not_elapsed";
|
|
932
940
|
}>>;
|
|
933
941
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
934
942
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
@@ -1495,6 +1503,7 @@ export declare const CallResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1495
1503
|
signature_error: "signature_error";
|
|
1496
1504
|
config_error: "config_error";
|
|
1497
1505
|
wip_verification_failed: "wip_verification_failed";
|
|
1506
|
+
time_lock_not_elapsed: "time_lock_not_elapsed";
|
|
1498
1507
|
}>>;
|
|
1499
1508
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
1500
1509
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
@@ -1654,6 +1663,7 @@ export declare const RecoveryActionSchema: z.ZodObject<{
|
|
|
1654
1663
|
adjust_params: "adjust_params";
|
|
1655
1664
|
escalate_human: "escalate_human";
|
|
1656
1665
|
stop: "stop";
|
|
1666
|
+
wait_and_retry: "wait_and_retry";
|
|
1657
1667
|
}>;
|
|
1658
1668
|
should_retry: z.ZodBoolean;
|
|
1659
1669
|
adjusted_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1700,6 +1710,7 @@ export declare const HarnessReportSchema: z.ZodObject<{
|
|
|
1700
1710
|
adjust_params: "adjust_params";
|
|
1701
1711
|
escalate_human: "escalate_human";
|
|
1702
1712
|
stop: "stop";
|
|
1713
|
+
wait_and_retry: "wait_and_retry";
|
|
1703
1714
|
}>;
|
|
1704
1715
|
should_retry: z.ZodBoolean;
|
|
1705
1716
|
adjusted_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -2085,6 +2096,7 @@ export declare const CallOutputSchema: z.ZodObject<{
|
|
|
2085
2096
|
signature_error: "signature_error";
|
|
2086
2097
|
config_error: "config_error";
|
|
2087
2098
|
wip_verification_failed: "wip_verification_failed";
|
|
2099
|
+
time_lock_not_elapsed: "time_lock_not_elapsed";
|
|
2088
2100
|
}>>;
|
|
2089
2101
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
2090
2102
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
@@ -2298,6 +2310,8 @@ export declare const CallOutputSchema: z.ZodObject<{
|
|
|
2298
2310
|
lifecycle: "lifecycle";
|
|
2299
2311
|
state_change: "state_change";
|
|
2300
2312
|
fund_flow: "fund_flow";
|
|
2313
|
+
market_opportunity: "market_opportunity";
|
|
2314
|
+
reputation: "reputation";
|
|
2301
2315
|
permission: "permission";
|
|
2302
2316
|
guard: "guard";
|
|
2303
2317
|
}>;
|
|
@@ -2379,6 +2393,7 @@ export declare const CallOutputSchema: z.ZodObject<{
|
|
|
2379
2393
|
role: z.ZodOptional<z.ZodEnum<{
|
|
2380
2394
|
merchant: "merchant";
|
|
2381
2395
|
customer: "customer";
|
|
2396
|
+
demander: "demander";
|
|
2382
2397
|
prospect: "prospect";
|
|
2383
2398
|
supplier: "supplier";
|
|
2384
2399
|
collaborator: "collaborator";
|
|
@@ -2580,6 +2595,7 @@ export declare const CallOutputSchema: z.ZodObject<{
|
|
|
2580
2595
|
adjust_params: "adjust_params";
|
|
2581
2596
|
escalate_human: "escalate_human";
|
|
2582
2597
|
stop: "stop";
|
|
2598
|
+
wait_and_retry: "wait_and_retry";
|
|
2583
2599
|
}>;
|
|
2584
2600
|
should_retry: z.ZodBoolean;
|
|
2585
2601
|
adjusted_params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|