@wowok/agent-mcp 3.4.2 → 3.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.build-stamp.json +5 -0
- package/dist/chain-semantics/composition-truth.js +1 -1
- package/dist/chain-semantics/eval-order.js +1 -1
- package/dist/chain-semantics/field-capability.js +1 -1
- package/dist/chain-semantics/freeze-map.js +1 -1
- package/dist/chain-semantics/fund-flow.js +1 -1
- package/dist/chain-semantics/guard-verbs.js +1 -1
- package/dist/chain-semantics/object-graph.js +1 -1
- package/dist/composition/audit.js +1 -1
- package/dist/composition/compile.d.ts +10 -3
- package/dist/composition/compile.js +1 -1
- package/dist/composition/emit-phases.d.ts +30 -2
- package/dist/composition/emit-phases.js +1 -1
- package/dist/composition/guard-fill.d.ts +8 -0
- package/dist/composition/guard-fill.js +1 -1
- package/dist/composition/inflight.js +1 -1
- package/dist/composition/input-normalize.js +1 -1
- package/dist/composition/materialize.d.ts +2 -0
- package/dist/composition/materialize.js +1 -1
- package/dist/composition/mode-gates.js +1 -1
- package/dist/composition/param-disclosure.js +1 -1
- package/dist/composition/plan-retry-ledger.d.ts +16 -0
- package/dist/composition/plan-retry-ledger.js +1 -1
- package/dist/composition/plan.d.ts +15 -1
- package/dist/composition/plan.js +1 -1
- package/dist/config/config-audit.spec.js +1 -1
- package/dist/config/judgment.d.ts +5 -0
- package/dist/config/judgment.js +1 -1
- package/dist/evaluation/builtins/arbitration-score.d.ts +1 -0
- package/dist/evaluation/builtins/arbitration-score.js +1 -1
- package/dist/evaluation/builtins/demand-match.js +1 -1
- package/dist/evaluation/builtins/graph-service.d.ts +8 -0
- package/dist/evaluation/builtins/graph-service.js +1 -1
- package/dist/evaluation/capability.d.ts +9 -0
- package/dist/evaluation/engine.js +1 -1
- package/dist/evaluation/extract.d.ts +9 -1
- package/dist/evaluation/extract.js +1 -1
- package/dist/evaluation/match-operation.js +1 -1
- package/dist/evaluation/match-policy.d.ts +5 -3
- package/dist/evaluation/match-policy.js +1 -1
- package/dist/evaluation/standards.d.ts +1 -0
- package/dist/evaluation/standards.js +1 -1
- package/dist/evaluation/structured-lines.js +1 -1
- package/dist/evaluation/types.d.ts +1 -0
- package/dist/extensions/capability.js +1 -1
- package/dist/harness/recover.js +1 -1
- package/dist/index.js +1 -1
- package/dist/intent/types.d.ts +1 -1
- package/dist/intent/types.js +1 -1
- package/dist/knowledge/allocation-ledger.js +1 -1
- package/dist/knowledge/allocator-rail-verifier.d.ts +17 -1
- package/dist/knowledge/allocator-rail-verifier.js +1 -1
- package/dist/knowledge/arb-fund-facts.d.ts +7 -0
- package/dist/knowledge/arb-fund-facts.js +1 -1
- package/dist/knowledge/arbitration-rail-verifier.d.ts +35 -0
- package/dist/knowledge/arbitration-rail-verifier.js +1 -0
- package/dist/knowledge/audit-rules.d.ts +11 -0
- package/dist/knowledge/audit-rules.js +1 -1
- package/dist/knowledge/baselines/judgment-baselines.json +1 -0
- package/dist/knowledge/baselines/rules/guard.json +7 -6
- package/dist/knowledge/baselines/rules/progress.json +4 -4
- package/dist/knowledge/baselines/rules/reward.json +118 -3
- package/dist/knowledge/builtin-templates.d.ts +3 -2
- package/dist/knowledge/builtin-templates.js +1 -1
- package/dist/knowledge/chain-query-registry.d.ts +14 -0
- package/dist/knowledge/chain-query-registry.js +1 -0
- package/dist/knowledge/event-semantics.js +1 -1
- package/dist/knowledge/fee-param-bindings.d.ts +2 -0
- package/dist/knowledge/fee-param-bindings.js +1 -1
- package/dist/knowledge/getting-started.js +1 -1
- package/dist/knowledge/guard-binding-table.js +1 -1
- package/dist/knowledge/guard-binding-verifier.d.ts +7 -0
- package/dist/knowledge/guard-binding-verifier.js +1 -1
- package/dist/knowledge/guard-design-patterns.d.ts +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-host-context.js +1 -1
- package/dist/knowledge/guard-lint.js +1 -1
- package/dist/knowledge/guard-node-gates.d.ts +3 -1
- package/dist/knowledge/guard-node-gates.js +1 -1
- package/dist/knowledge/guard-puzzle.js +1 -1
- package/dist/knowledge/guard-render.js +1 -1
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/guard-templates.d.ts +2 -1
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/guard-translation.js +1 -1
- package/dist/knowledge/index.d.ts +2 -0
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/jsonrpc-enum.js +1 -1
- package/dist/knowledge/knob-docs.js +1 -1
- package/dist/knowledge/param-schema.d.ts +1 -1
- package/dist/knowledge/param-schema.js +1 -1
- package/dist/knowledge/param-tiers.d.ts +2 -0
- package/dist/knowledge/param-tiers.js +1 -1
- package/dist/knowledge/path-oracle/products/food-delivery.js +1 -1
- package/dist/knowledge/pattern-resolutions.d.ts +2 -0
- package/dist/knowledge/pattern-resolutions.js +1 -1
- package/dist/knowledge/product-detail-source.d.ts +37 -0
- package/dist/knowledge/product-detail-source.js +1 -0
- package/dist/knowledge/product-doc-b5.d.ts +16 -0
- package/dist/knowledge/product-doc-b5.js +1 -0
- package/dist/knowledge/progress-ledger.js +1 -1
- package/dist/knowledge/projection.spec.js +1 -1
- package/dist/knowledge/publish-gate.d.ts +20 -0
- package/dist/knowledge/publish-gate.js +1 -0
- package/dist/knowledge/publish-readiness.d.ts +25 -0
- package/dist/knowledge/publish-readiness.js +1 -0
- package/dist/knowledge/publish-surface-contract.d.ts +16 -0
- package/dist/knowledge/publish-surface-contract.js +1 -0
- package/dist/knowledge/rail-exit-satisfiability.d.ts +25 -0
- package/dist/knowledge/rail-exit-satisfiability.js +1 -0
- package/dist/knowledge/reward-ledger.d.ts +1 -1
- package/dist/knowledge/reward-ledger.js +1 -1
- package/dist/knowledge/reward-risk.d.ts +1 -1
- package/dist/knowledge/reward-risk.js +1 -1
- package/dist/knowledge/service-ledger.d.ts +3 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/template-loader.d.ts +41 -2
- package/dist/knowledge/template-loader.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.d.ts +17 -0
- package/dist/knowledge/template-scanner.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +4 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/monitor/normalize.d.ts +1 -1
- package/dist/monitor/normalize.js +1 -1
- package/dist/monitor/types.js +1 -1
- package/dist/participation/game-context.js +1 -1
- package/dist/participation/radar-core.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +28 -3
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/object-panorama.d.ts +4 -0
- package/dist/playbooks/service-build/object-panorama.js +1 -1
- package/dist/playbooks/service-build/participation-radar.js +1 -1
- package/dist/playbooks/service-build/relationship-profile.js +1 -1
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/playbooks/service-build/service-quote.js +1 -1
- package/dist/review/index.js +1 -1
- package/dist/review/order.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/benchmark-migration/index.d.ts +24 -0
- package/dist/schema/benchmark-migration/index.js +1 -1
- package/dist/schema/call/allocation.d.ts +11 -7
- package/dist/schema/call/allocation.js +1 -1
- package/dist/schema/call/arbitration.d.ts +4 -0
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +28 -0
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +21 -0
- package/dist/schema/call/contact.d.ts +4 -0
- package/dist/schema/call/demand.d.ts +4 -0
- package/dist/schema/call/guard.d.ts +12 -0
- package/dist/schema/call/handler.d.ts +1 -0
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/machine.d.ts +16 -8
- package/dist/schema/call/normalize-error.d.ts +1 -0
- package/dist/schema/call/normalize-error.js +1 -0
- package/dist/schema/call/order.d.ts +7 -3
- package/dist/schema/call/order.js +1 -1
- package/dist/schema/call/payment.d.ts +7 -3
- package/dist/schema/call/permission.d.ts +4 -0
- package/dist/schema/call/personal.d.ts +4 -0
- package/dist/schema/call/progress.d.ts +4 -0
- package/dist/schema/call/progress.js +1 -1
- package/dist/schema/call/proof.d.ts +8 -0
- package/dist/schema/call/receipt.js +1 -1
- package/dist/schema/call/repository.d.ts +4 -0
- package/dist/schema/call/reward.d.ts +6 -2
- package/dist/schema/call/reward.js +1 -1
- package/dist/schema/call/semantic.d.ts +2 -2
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +6 -2
- package/dist/schema/call/treasury.d.ts +10 -6
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/envelope-unify.d.ts +1 -0
- package/dist/schema/envelope-unify.js +1 -1
- package/dist/schema/evaluation/index.d.ts +43 -0
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +14 -2
- package/dist/schema/goal/planning.d.ts +18 -0
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/intent-radar/index.d.ts +12 -0
- package/dist/schema/intent-radar/index.js +1 -1
- package/dist/schema/keeper/index.d.ts +1 -0
- package/dist/schema/local/index.d.ts +10 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/local/wip.js +1 -1
- package/dist/schema/messenger/index.d.ts +1 -0
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +95 -12
- package/dist/schema/operations.js +1 -1
- package/dist/schema/persona/index.d.ts +22 -0
- package/dist/schema/query/bi.d.ts +28 -2
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +67 -61
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/workflow/index.js +1 -1
- package/dist/schema-query-impl/index.d.ts +1 -0
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +2 -1
- package/dist/schemas/benchmark_migration_operation.output.json +74 -0
- package/dist/schemas/benchmark_migration_operation.schema.json +32 -0
- package/dist/schemas/bridge_operation.output.json +2 -1
- package/dist/schemas/bridge_operation.schema.json +40 -0
- package/dist/schemas/evaluation_operation.output.json +96 -0
- package/dist/schemas/evaluation_operation.schema.json +39 -0
- package/dist/schemas/goal_operation.schema.json +32 -0
- package/dist/schemas/guard2file.schema.json +8 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/intent_radar.output.json +10 -2
- package/dist/schemas/intent_radar.schema.json +5 -1
- package/dist/schemas/keeper_operation.output.json +2 -1
- package/dist/schemas/local_cache_operation.output.json +2 -1
- package/dist/schemas/local_history_operation.output.json +2 -1
- package/dist/schemas/local_info_operation.output.json +2 -1
- package/dist/schemas/local_mark_operation.output.json +2 -1
- package/dist/schemas/local_mark_operation.schema.json +10 -1
- package/dist/schemas/machineNode2file.schema.json +8 -0
- package/dist/schemas/messenger_operation.output.json +2 -1
- package/dist/schemas/messenger_operation.schema.json +2 -1
- package/dist/schemas/monitor_events.output.json +2 -1
- package/dist/schemas/monitor_subscription.output.json +2 -1
- package/dist/schemas/onchain_events.output.json +206 -13
- package/dist/schemas/onchain_events.schema.json +16 -0
- package/dist/schemas/onchain_operations.output.json +22 -3
- package/dist/schemas/onchain_operations.schema.json +971 -326
- package/dist/schemas/onchain_operations_allocation.schema.json +19 -12
- package/dist/schemas/onchain_operations_arbitration.schema.json +9 -1
- package/dist/schemas/onchain_operations_contact.schema.json +8 -0
- package/dist/schemas/onchain_operations_demand.schema.json +8 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +8 -0
- package/dist/schemas/onchain_operations_gen_proof.schema.json +8 -0
- package/dist/schemas/onchain_operations_guard.schema.json +654 -114
- package/dist/schemas/onchain_operations_machine.schema.json +11 -3
- package/dist/schemas/onchain_operations_order.schema.json +14 -11
- package/dist/schemas/onchain_operations_payment.schema.json +12 -9
- package/dist/schemas/onchain_operations_permission.schema.json +8 -0
- package/dist/schemas/onchain_operations_personal.schema.json +8 -0
- package/dist/schemas/onchain_operations_progress.schema.json +9 -1
- package/dist/schemas/onchain_operations_proof.schema.json +8 -0
- package/dist/schemas/onchain_operations_repository.schema.json +8 -0
- package/dist/schemas/onchain_operations_reward.schema.json +14 -11
- package/dist/schemas/onchain_operations_service.schema.json +13 -10
- package/dist/schemas/onchain_operations_treasury.schema.json +17 -19
- package/dist/schemas/onchain_table_data.output.json +52 -10
- package/dist/schemas/persona_operation.output.json +57 -0
- package/dist/schemas/persona_operation.schema.json +9 -0
- package/dist/schemas/query_toolkit.output.json +325 -22
- package/dist/schemas/query_toolkit.schema.json +18 -5
- package/dist/schemas/wip_file.output.json +2 -2
- package/dist/schemas/wip_file.schema.json +2 -2
- package/dist/schemas/workflow_operation.schema.json +1 -1
- package/dist/tools/error-catalog.d.ts +17 -0
- package/dist/tools/error-catalog.js +1 -0
- package/dist/tools/handlers/benchmark-migration.d.ts +20 -8
- package/dist/tools/handlers/benchmark-migration.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/entry-edge-recipe.d.ts +101 -0
- package/dist/tools/handlers/entry-edge-recipe.js +1 -0
- package/dist/tools/handlers/escrow-deficit.d.ts +10 -0
- package/dist/tools/handlers/escrow-deficit.js +1 -0
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/fund-rail-recipe.d.ts +10 -0
- package/dist/tools/handlers/fund-rail-recipe.js +1 -0
- package/dist/tools/handlers/intent-radar.js +1 -1
- package/dist/tools/handlers/local.js +1 -1
- package/dist/tools/handlers/mark-namespace.d.ts +30 -0
- package/dist/tools/handlers/mark-namespace.js +1 -0
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/onchain-name-registration.d.ts +1 -0
- package/dist/tools/handlers/onchain-name-registration.js +1 -1
- package/dist/tools/handlers/onchain-name-registration.spec.js +1 -1
- package/dist/tools/handlers/onchain.d.ts +30 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/publish-binding-echo.d.ts +22 -0
- package/dist/tools/handlers/publish-binding-echo.js +1 -0
- package/dist/tools/handlers/query.d.ts +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/review-chain.d.ts +1 -0
- package/dist/tools/handlers/review-chain.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/handlers/stale-build-check.d.ts +9 -0
- package/dist/tools/handlers/stale-build-check.js +1 -0
- package/dist/tools/handlers/submission-assembly.d.ts +55 -0
- package/dist/tools/handlers/submission-assembly.js +1 -0
- package/dist/tools/handlers/wip.js +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.js +1 -1
- package/dist/tools/move-fn-index.gen.js +1 -1
- package/dist/tools/publish-gate-state.d.ts +5 -0
- package/dist/tools/publish-gate-state.js +1 -0
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/registry/onchain.js +1 -1
- package/dist/tools/registry/query.js +1 -1
- package/dist/tools/retry.js +1 -1
- package/dist/tools/runtime-health.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/dist/tools/upgrade-check.d.ts +1 -0
- package/dist/tools/upgrade-check.js +1 -1
- package/dist/tools/wip-verify-ledger.d.ts +2 -0
- package/dist/tools/wip-verify-ledger.js +1 -1
- package/dist/tools/wrap.d.ts +15 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{CallEnvSchema,SubmissionCallSchema,ObjectsSchema}from'./base.js';import{ProgressNamedOperatorSchema}from'./machine.js';import{NameOrAddressSchema,NameSchema,ReceivedObjectsOrRecentlySchema,RECEIVE_FORMAT_BLOCK_OBJECTS}from'../common/index.js';export const ProgressNextSchema=z['object']({'next_node_name':NameSchema['describe']('Next\x20node\x20name.'),'forward':NameSchema['describe']('Next\x20forward\x20name.')})['strict']()['describe']('Specify\x20a\x20specific\x20operation\x20between\x20current\x20node\x20and\x20next\x20node.');export const OperateSchema=z['preprocess'](a=>{if(a&&typeof a==='object'&&!Array['isArray'](a)){const b=a;if(b['op']===undefined&&'hold'in b){const c=b['hold'];typeof c==='boolean'&&(b['op']=c?'hold':'next',delete b['hold']);}b['op']===undefined&&!('hold'in b)&&(b['op']='next');}return a;},z['object']({'operation':ProgressNextSchema,'op':z['enum'](['next','hold','unhold','adminUnhold'])['default']('next')['describe']('Operation\x20type\x20on\x20the\x20forward\x20(CANONICAL\x20form\x20—\x20prefer\x20this).\x20DEFAULT:\x20\x27next\x27\x20when\x20omitted.\x20'+'\x27next\x27\x20=\x20advance\x20the\x20forward\x20(accomplish);\x20'+'\x27hold\x27\x20=\x20set\x20hold\x20to\x20block\x20the\x20forward;\x20'+'\x27unhold\x27\x20=\x20self-unhold,\x20release\x20own\x20hold\x20(no\x20224\x20permission\x20needed);\x20'+'\x27adminUnhold\x27\x20=\x20force-release\x20hold\x20via\x20224\x20permission\x20(PROGRESS_UNHOLD).\x20'+'LEGACY\x20ALIAS:\x20`hold:\x20boolean`\x20is\x20auto-converted\x20to\x20`op`\x20—\x20`hold:true`→`op:\x27hold\x27`,\x20`hold:false`→`op:\x27next\x27`.\x20'+'New\x20code\x20should\x20use\x20`op`\x20directly.'),'message':z['string']()['optional']()['describe']('Message\x20attached\x20to\x20the\x20forward\x20advance;\x20recorded\x20permanently\x20in\x20on-chain\x20History.\x20REVIEW-TYPE\x20FORWARDS:\x20de-facto\x20REQUIRED\x20here\x20—\x20the\x20review\x20text\x20is\x20this\x20message\x20(the\x20reward\x20claim\x20guard\x20does\x20not\x20read\x20it,\x20but\x20a\x20no-message\x20Review\x20forward\x20has\x20failed\x20repeatedly\x20on\x20mainnet\x20until\x20the\x20message\x20was\x20added).\x20Always\x20include\x20message:\x20\x27<review\x20text>\x27\x20when\x20advancing\x20a\x20Review-named\x20forward.')})['strict']())['describe']('Advance\x20Progress\x20object.\x20CANONICAL\x20form:\x20{operation,\x20op:\x20\x27next\x27|\x27hold\x27|\x27unhold\x27|\x27adminUnhold\x27,\x20message?}\x20—\x20\x27next\x27\x20is\x20the\x20default\x20when\x20op\x20is\x20omitted.\x20LEGACY\x20form\x20(auto-converted):\x20{operation,\x20hold:\x20boolean,\x20message?}\x20where\x20hold:true→op:\x27hold\x27,\x20hold:false→op:\x27next\x27.');export const ProgressReviewClaimSchema=z['object']({'reward':NameOrAddressSchema['describe']('Reward\x20object\x20ID\x20or\x20name\x20to\x20claim\x20from.\x20Resolve\x20it\x20from\x20the\x20service\x27s\x20rewards\x20list\x20(service_panorama\x20/\x20service_quote\x20reward_terms)\x20—\x20never\x20guess\x20an\x20address.'),'guard':NameOrAddressSchema['describe']('Guard\x20object\x20that\x20gates\x20this\x20claim.\x20MUST\x20be\x20covered\x20by\x20this\x20call\x27s\x20passport\x20submission\x20(one\x20of\x20the\x20submission.guard\x20entries,\x20same\x20address),\x20otherwise\x20the\x20chain\x20aborts.')})['strict']()['describe']('Claim\x20a\x20review\x20incentive\x20reward\x20after\x20the\x20forward\x20succeeds\x20(review_mode\x20\x27review_reward\x27\x20services).');export const ProgressReviewSchema=z['object']({'repository':NameOrAddressSchema['describe']('Repository\x20object\x20ID\x20or\x20name\x20that\x20stores\x20the\x20structured\x20reputation\x20record.\x20The\x20matching\x20policy\x20key\x20must\x20accept\x20a\x20JSON\x20payload\x20{rating,\x20tags?,\x20orderRef?}.\x20id_from\x20options\x20(C30):\x20None\x20=\x20one\x20record\x20per\x20bound\x20OBJECT/ORDER\x20with\x20a\x20write_guard\x20(row\x20id\x20=\x20the\x20order\x20address\x20—\x20the\x20compile-emitted\x20default\x20AND\x20the\x20verified\x20once-per-order\x20review\x20shape,\x20F09);\x20Signer\x20=\x20one\x20record\x20per\x20BUYER\x20(rewrite\x20=\x20own-record\x20overwrite;\x20a\x20repeat\x20buyer\x20can\x20only\x20ever\x20hold\x20ONE\x20row\x20across\x20all\x20their\x20orders\x20—\x20do\x20not\x20use\x20for\x20per-order\x20reviews);\x20Clock\x20=\x20append-only\x20log.\x20PREFERRED:\x20the\x20service\x27s\x20review\x20repository\x20EMITTED\x20BY\x20THE\x20BUILD\x20PLAN\x20when\x20review_mode\x20was\x20set\x20(AR-1)\x20—\x20resolve\x20it\x20from\x20the\x20service\x27s\x20repositories\x20list\x20(service_panorama\x20/\x20onchain_objects,\x20name\x20suffix\x20\x27_review\x27)\x20—\x20never\x20guess\x20an\x20address.'),'policy':NameSchema['optional']()['describe']('Policy\x20RULE\x20NAME\x20to\x20write\x20under\x20(the\x20repository\x27s\x20PolicyRule\x20whose\x20value_type\x20is\x20String\x20—\x20the\x20chain\x20writes\x20the\x20structured\x20record\x20as\x20a\x20JSON\x20string\x20row).\x20MUST\x20match\x20an\x20existing\x20policy\x20of\x20the\x20target\x20repository.\x20Default\x20\x27review\x27\x20(the\x20compile-emitted\x20review\x20policy\x20name).\x20A\x20mismatch\x20aborts\x20the\x20write\x20AFTER\x20the\x20forward\x20—\x20the\x20review-edge\x20credential\x20is\x20single-use,\x20so\x20the\x20row\x20can\x20never\x20be\x20re-written;\x20resolve\x20the\x20exact\x20name\x20from\x20the\x20build\x20plan\x20/\x20service_panorama\x20before\x20calling.'),'rating':z['enum'](['like','dislike'])['describe']('Buyer\x20rating.\x20Ratings\x20NEVER\x20affect\x20settlement\x20(the\x20settlement\x20anchor\x20is\x20the\x20delivered\x20moment,\x20not\x20this\x20review)\x20—\x20this\x20is\x20reputation\x20only.'),'tags':z['array'](NameSchema)['optional']()['describe']('Optional\x20structured\x20tags\x20for\x20statistics\x20and\x20market\x20exposure\x20(e.g.\x20[\x27fast_delivery\x27,\x27good_quality\x27]).'),'orderRef':NameOrAddressSchema['optional']()['describe']('Order\x20ID\x20or\x20name\x20this\x20review\x20is\x20about\x20—\x20written\x20into\x20the\x20structured\x20row\x20payload\x20as\x20the\x20\x27orderRef\x27\x20field\x20({rating,\x20tags?,\x20orderRef?}).\x20Takes\x20precedence\x20over\x20data.task\x20when\x20both\x20are\x20present.\x20Set\x20it\x20explicitly\x20whenever\x20the\x20reviewed\x20order\x20differs\x20from\x20data.task,\x20or\x20when\x20data.task\x20is\x20unset.'),'reward_claim':ProgressReviewClaimSchema['optional']()['describe']('Optional\x20reward\x20claim\x20chained\x20after\x20the\x20repository\x20write\x20(fail-isolated:\x20a\x20failed\x20claim\x20never\x20undoes\x20the\x20write\x20or\x20the\x20forward).\x20PARADIGM\x20NOTE\x20(two-phase,\x20esln\x20E-4):\x20the\x20passport\x20verifies\x20every\x20submission\x20guard\x20BEFORE\x20the\x20forward\x20runs,\x20so\x20a\x20reward\x20guard\x20that\x20READS\x20the\x20review\x20row\x20written\x20by\x20this\x20very\x20chain\x20(impact-gated\x20incentives)\x20cannot\x20pass\x20here\x20—\x20it\x20aborts\x20with\x20E_VERIFY_FAILED\x20even\x20though\x20the\x20row\x20lands\x20moments\x20later.\x20Review-gated\x20rewards\x20are\x20a\x20TWO-STEP\x20flow:\x20this\x20chained\x20claim\x20only\x20fits\x20guards\x20that\x20do\x20NOT\x20read\x20the\x20fresh\x20row;\x20an\x20impact-gated\x20reward\x20is\x20claimed\x20in\x20a\x20SECOND,\x20separate\x20call\x20(fresh\x20submission)\x20after\x20the\x20review\x20row\x20exists.'),'write_guard':NameOrAddressSchema['optional']()['describe']('Policy\x20write\x20guard\x20for\x20the\x20repository\x20write.\x20DEFAULT:\x20the\x20first\x20guard\x20of\x20this\x20call\x27s\x20passport\x20submission\x20(the\x20review-edge\x20credential).\x20Required\x20when\x20the\x20matched\x20Repository\x20policy\x20uses\x20id_from=None\x20with\x20declared\x20guards\x20(the\x20chain\x20aborts\x20with\x2022,\x20E_POLICY_WRITE_GUARD_REQUIRED,\x20otherwise).\x20The\x20guard\x20MUST\x20be\x20covered\x20by\x20the\x20passport\x20submission.')})['strict']()['describe']('Structured\x20buyer\x20review\x20(REVIEW\x20component).\x20Ordering\x20(F01):\x20the\x20structured-record\x20write\x20runs\x20BEFORE\x20this\x20forward\x20(its\x20review-edge\x20credential\x20anchors\x20the\x20PRE\x20node),\x20the\x20forward\x20advances,\x20then\x20the\x20optional\x20reward\x20claim\x20runs\x20—\x20one\x20passport\x20submission,\x20three\x20fail-isolated\x20effects.\x20Carrier\x20split\x20(do\x20not\x20duplicate):\x20the\x20review\x20TEXT\x20goes\x20in\x20operate.message\x20(permanent\x20on-chain\x20History);\x20THIS\x20block\x20writes\x20only\x20the\x20structured\x20reputation\x20record\x20(+\x20optional\x20reward\x20claim).\x20Steps\x20are\x20reported\x20in\x20semantic.review_steps.');export const CallProgress_DataSchema=z['object']({'object':NameOrAddressSchema['describe']('Progress\x20object\x20ID\x20or\x20name.'),'task':NameOrAddressSchema['optional']()['describe']('Task\x20ID.\x20Cannot\x20be\x20changed\x20after\x20setting.'),'repository':ObjectsSchema['optional']()['describe']('Consensus\x20data\x20Repository\x20object\x20list.'),'progress_namedOperator':ProgressNamedOperatorSchema['optional']()['describe']('Manage\x20operators\x20for\x20Progress\x20permission\x20namespace.'),'operate':OperateSchema['optional']()['describe']('Advance\x20Progress\x20object.\x20op\x20field\x20selects\x20the\x20operation:\x20next/hold/unhold/adminUnhold.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Progress\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20the\x20bound\x20Machine\x27s\x20Permission\x20object.'+RECEIVE_FORMAT_BLOCK_OBJECTS),'review':ProgressReviewSchema['optional']()['describe']('Structured\x20review\x20composite\x20(REVIEW\x20component):\x20with\x20a\x20passport\x20submission\x20the\x20structured-record\x20write\x20runs\x20BEFORE\x20this\x20forward\x20(the\x20review-edge\x20credential\x20anchors\x20the\x20PRE\x20node\x20—\x20F01),\x20then\x20the\x20forward,\x20then\x20the\x20optional\x20reward\x20claim.\x20Requires\x20operate.\x20Steps\x20are\x20reported\x20in\x20semantic.review_steps.')})['strict']()['describe']('On-chain,\x20operate\x20an\x20existing\x20Progress\x20object.');export const CallProgress_InputSchema=z['object']({'data':CallProgress_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
|
|
1
|
+
import{z}from'zod';import{CallEnvSchema,SubmissionCallSchema,ObjectsSchema}from'./base.js';import{ProgressNamedOperatorSchema}from'./machine.js';import{NameOrAddressSchema,NameSchema,ReceivedObjectsOrRecentlySchema,RECEIVE_FORMAT_BLOCK_OBJECTS}from'../common/index.js';export const ProgressNextSchema=z['object']({'next_node_name':NameSchema['describe']('Next\x20node\x20name.'),'forward':NameSchema['describe']('Next\x20forward\x20name.')})['strict']()['describe']('Specify\x20a\x20specific\x20operation\x20between\x20current\x20node\x20and\x20next\x20node.');export const OperateSchema=z['preprocess'](a=>{if(a&&typeof a==='object'&&!Array['isArray'](a)){const b=a;if(b['op']===undefined&&'hold'in b){const c=b['hold'];typeof c==='boolean'&&(b['op']=c?'hold':'next',delete b['hold']);}b['op']===undefined&&!('hold'in b)&&(b['op']='next');}return a;},z['object']({'operation':ProgressNextSchema,'op':z['enum'](['next','hold','unhold','adminUnhold'])['default']('next')['describe']('Operation\x20type\x20on\x20the\x20forward\x20(CANONICAL\x20form\x20—\x20prefer\x20this).\x20DEFAULT:\x20\x27next\x27\x20when\x20omitted.\x20'+'\x27next\x27\x20=\x20advance\x20the\x20forward\x20(accomplish);\x20'+'\x27hold\x27\x20=\x20set\x20hold\x20to\x20block\x20the\x20forward;\x20'+'\x27unhold\x27\x20=\x20self-unhold,\x20release\x20own\x20hold\x20(no\x20224\x20permission\x20needed);\x20'+'\x27adminUnhold\x27\x20=\x20force-release\x20hold\x20via\x20224\x20permission\x20(PROGRESS_UNHOLD).\x20'+'LEGACY\x20ALIAS:\x20`hold:\x20boolean`\x20is\x20auto-converted\x20to\x20`op`\x20—\x20`hold:true`→`op:\x27hold\x27`,\x20`hold:false`→`op:\x27next\x27`.\x20'+'New\x20code\x20should\x20use\x20`op`\x20directly.'),'message':z['string']()['optional']()['describe']('Message\x20attached\x20to\x20the\x20forward\x20advance;\x20recorded\x20permanently\x20in\x20on-chain\x20History.\x20REVIEW-TYPE\x20FORWARDS:\x20de-facto\x20REQUIRED\x20here\x20—\x20the\x20review\x20text\x20is\x20this\x20message\x20(the\x20reward\x20claim\x20guard\x20does\x20not\x20read\x20it,\x20but\x20a\x20no-message\x20Review\x20forward\x20has\x20failed\x20repeatedly\x20on\x20mainnet\x20until\x20the\x20message\x20was\x20added).\x20Always\x20include\x20message:\x20\x27<review\x20text>\x27\x20when\x20advancing\x20a\x20Review-named\x20forward.')})['strict']())['describe']('Advance\x20Progress\x20object.\x20CANONICAL\x20form:\x20{operation,\x20op:\x20\x27next\x27|\x27hold\x27|\x27unhold\x27|\x27adminUnhold\x27,\x20message?}\x20—\x20\x27next\x27\x20is\x20the\x20default\x20when\x20op\x20is\x20omitted.\x20LEGACY\x20form\x20(auto-converted):\x20{operation,\x20hold:\x20boolean,\x20message?}\x20where\x20hold:true→op:\x27hold\x27,\x20hold:false→op:\x27next\x27.');export const ProgressReviewClaimSchema=z['object']({'reward':NameOrAddressSchema['describe']('Reward\x20object\x20ID\x20or\x20name\x20to\x20claim\x20from.\x20Resolve\x20it\x20from\x20the\x20service\x27s\x20rewards\x20list\x20(service_panorama\x20/\x20service_quote\x20reward_terms)\x20—\x20never\x20guess\x20an\x20address.'),'guard':NameOrAddressSchema['describe']('Guard\x20object\x20that\x20gates\x20this\x20claim.\x20MUST\x20be\x20covered\x20by\x20this\x20call\x27s\x20passport\x20submission\x20(one\x20of\x20the\x20submission.guard\x20entries,\x20same\x20address),\x20otherwise\x20the\x20chain\x20aborts.')})['strict']()['describe']('Claim\x20a\x20review\x20incentive\x20reward\x20after\x20the\x20forward\x20succeeds\x20(review_mode\x20\x27review_reward\x27\x20services).');export const ProgressReviewSchema=z['object']({'repository':NameOrAddressSchema['describe']('Repository\x20object\x20ID\x20or\x20name\x20that\x20stores\x20the\x20structured\x20reputation\x20record.\x20The\x20matching\x20policy\x20key\x20must\x20accept\x20a\x20JSON\x20payload\x20{rating,\x20tags?,\x20orderRef?}.\x20id_from\x20options\x20(C30):\x20None\x20=\x20one\x20record\x20per\x20bound\x20OBJECT/ORDER\x20with\x20a\x20write_guard\x20(row\x20id\x20=\x20the\x20order\x20address\x20—\x20the\x20compile-emitted\x20default\x20AND\x20the\x20verified\x20once-per-order\x20review\x20shape,\x20F09);\x20Signer\x20=\x20one\x20record\x20per\x20BUYER\x20(rewrite\x20=\x20own-record\x20overwrite;\x20a\x20repeat\x20buyer\x20can\x20only\x20ever\x20hold\x20ONE\x20row\x20across\x20all\x20their\x20orders\x20—\x20do\x20not\x20use\x20for\x20per-order\x20reviews);\x20Clock\x20=\x20append-only\x20log.\x20PREFERRED:\x20the\x20service\x27s\x20review\x20repository\x20EMITTED\x20BY\x20THE\x20BUILD\x20PLAN\x20when\x20review_mode\x20was\x20set\x20(AR-1)\x20—\x20resolve\x20it\x20from\x20the\x20service\x27s\x20repositories\x20list\x20(service_panorama\x20/\x20onchain_objects,\x20name\x20suffix\x20\x27_review\x27)\x20—\x20never\x20guess\x20an\x20address.'),'policy':NameSchema['optional']()['describe']('Policy\x20RULE\x20NAME\x20to\x20write\x20under\x20(the\x20repository\x27s\x20PolicyRule\x20whose\x20value_type\x20is\x20String\x20—\x20the\x20chain\x20writes\x20the\x20structured\x20record\x20as\x20a\x20JSON\x20string\x20row).\x20MUST\x20match\x20an\x20existing\x20policy\x20of\x20the\x20target\x20repository.\x20Default\x20\x27review\x27\x20(the\x20compile-emitted\x20review\x20policy\x20name).\x20A\x20mismatch\x20aborts\x20the\x20write\x20AFTER\x20the\x20forward\x20—\x20the\x20review-edge\x20credential\x20is\x20single-use,\x20so\x20the\x20row\x20can\x20never\x20be\x20re-written;\x20resolve\x20the\x20exact\x20name\x20from\x20the\x20build\x20plan\x20/\x20service_panorama\x20before\x20calling.'),'rating':z['enum'](['like','dislike'])['describe']('Buyer\x20rating.\x20Ratings\x20NEVER\x20affect\x20settlement\x20(the\x20settlement\x20anchor\x20is\x20the\x20delivered\x20moment,\x20not\x20this\x20review)\x20—\x20this\x20is\x20reputation\x20only.\x20F30\x20(gf32-mn-261103):\x20when\x20the\x20target\x20repository\x20also\x20declares\x20a\x20U64\x20star\x20policy\x20(the\x20compile-emitted\x20\x27rating\x27\x20policy\x20read\x20by\x20reward-claim\x20guards),\x20the\x20composite\x20AUTO-writes\x20the\x20derived\x20numeric\x20star\x20row\x20too\x20(like→5,\x20dislike→1)\x20in\x20the\x20same\x20pre-forward\x20phase\x20—\x20the\x20documented\x20flow\x20alone\x20satisfies\x20review-incentive\x20guards;\x20no\x20hand-built\x20second\x20data_add\x20is\x20needed.'),'tags':z['array'](NameSchema)['optional']()['describe']('Optional\x20structured\x20tags\x20for\x20statistics\x20and\x20market\x20exposure\x20(e.g.\x20[\x27fast_delivery\x27,\x27good_quality\x27]).'),'orderRef':NameOrAddressSchema['optional']()['describe']('Order\x20ID\x20or\x20name\x20this\x20review\x20is\x20about\x20—\x20written\x20into\x20the\x20structured\x20row\x20payload\x20as\x20the\x20\x27orderRef\x27\x20field\x20({rating,\x20tags?,\x20orderRef?}).\x20Takes\x20precedence\x20over\x20data.task\x20when\x20both\x20are\x20present.\x20Set\x20it\x20explicitly\x20whenever\x20the\x20reviewed\x20order\x20differs\x20from\x20data.task,\x20or\x20when\x20data.task\x20is\x20unset.'),'reward_claim':ProgressReviewClaimSchema['optional']()['describe']('Optional\x20reward\x20claim\x20chained\x20after\x20the\x20repository\x20write\x20(fail-isolated:\x20a\x20failed\x20claim\x20never\x20undoes\x20the\x20write\x20or\x20the\x20forward).\x20PARADIGM\x20NOTE\x20(two-phase,\x20esln\x20E-4):\x20the\x20passport\x20verifies\x20every\x20submission\x20guard\x20BEFORE\x20the\x20forward\x20runs,\x20so\x20a\x20reward\x20guard\x20that\x20READS\x20the\x20review\x20row\x20written\x20by\x20this\x20very\x20chain\x20(impact-gated\x20incentives)\x20cannot\x20pass\x20here\x20—\x20it\x20aborts\x20with\x20E_VERIFY_FAILED\x20even\x20though\x20the\x20row\x20lands\x20moments\x20later.\x20Review-gated\x20rewards\x20are\x20a\x20TWO-STEP\x20flow:\x20this\x20chained\x20claim\x20only\x20fits\x20guards\x20that\x20do\x20NOT\x20read\x20the\x20fresh\x20row;\x20an\x20impact-gated\x20reward\x20is\x20claimed\x20in\x20a\x20SECOND,\x20separate\x20call\x20(fresh\x20submission)\x20after\x20the\x20review\x20row\x20exists.'),'write_guard':NameOrAddressSchema['optional']()['describe']('Policy\x20write\x20guard\x20for\x20the\x20repository\x20write.\x20DEFAULT:\x20the\x20first\x20guard\x20of\x20this\x20call\x27s\x20passport\x20submission\x20(the\x20review-edge\x20credential).\x20Required\x20when\x20the\x20matched\x20Repository\x20policy\x20uses\x20id_from=None\x20with\x20declared\x20guards\x20(the\x20chain\x20aborts\x20with\x2022,\x20E_POLICY_WRITE_GUARD_REQUIRED,\x20otherwise).\x20The\x20guard\x20MUST\x20be\x20covered\x20by\x20the\x20passport\x20submission.')})['strict']()['describe']('Structured\x20buyer\x20review\x20(REVIEW\x20component).\x20Ordering\x20(F01):\x20the\x20structured-record\x20write\x20runs\x20BEFORE\x20this\x20forward\x20(its\x20review-edge\x20credential\x20anchors\x20the\x20PRE\x20node),\x20the\x20forward\x20advances,\x20then\x20the\x20optional\x20reward\x20claim\x20runs\x20—\x20one\x20passport\x20submission,\x20three\x20fail-isolated\x20effects.\x20Carrier\x20split\x20(do\x20not\x20duplicate):\x20the\x20review\x20TEXT\x20goes\x20in\x20operate.message\x20(permanent\x20on-chain\x20History);\x20THIS\x20block\x20writes\x20only\x20the\x20structured\x20reputation\x20record\x20(+\x20optional\x20reward\x20claim).\x20Steps\x20are\x20reported\x20in\x20semantic.review_steps.');export const CallProgress_DataSchema=z['object']({'object':NameOrAddressSchema['describe']('Progress\x20object\x20ID\x20or\x20name.'),'task':NameOrAddressSchema['optional']()['describe']('Task\x20ID.\x20Cannot\x20be\x20changed\x20after\x20setting.'),'repository':ObjectsSchema['optional']()['describe']('Consensus\x20data\x20Repository\x20object\x20list.'),'progress_namedOperator':ProgressNamedOperatorSchema['optional']()['describe']('Manage\x20operators\x20for\x20Progress\x20permission\x20namespace.'),'operate':OperateSchema['optional']()['describe']('Advance\x20Progress\x20object.\x20op\x20field\x20selects\x20the\x20operation:\x20next/hold/unhold/adminUnhold.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Progress\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20the\x20bound\x20Machine\x27s\x20Permission\x20object.'+RECEIVE_FORMAT_BLOCK_OBJECTS),'review':ProgressReviewSchema['optional']()['describe']('Structured\x20review\x20composite\x20(REVIEW\x20component):\x20with\x20a\x20passport\x20submission\x20the\x20structured-record\x20write\x20runs\x20BEFORE\x20this\x20forward\x20(the\x20review-edge\x20credential\x20anchors\x20the\x20PRE\x20node\x20—\x20F01),\x20then\x20the\x20forward,\x20then\x20the\x20optional\x20reward\x20claim.\x20Requires\x20operate.\x20Steps\x20are\x20reported\x20in\x20semantic.review_steps.')})['strict']()['describe']('On-chain,\x20operate\x20an\x20existing\x20Progress\x20object.');export const CallProgress_InputSchema=z['object']({'data':CallProgress_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
|
|
@@ -47,6 +47,10 @@ export declare const CallProof_InputSchema: z.ZodObject<{
|
|
|
47
47
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
48
48
|
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
49
49
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
window_profile: z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
production: "production";
|
|
52
|
+
test: "test";
|
|
53
|
+
}>>;
|
|
50
54
|
response_level: z.ZodOptional<z.ZodEnum<{
|
|
51
55
|
full: "full";
|
|
52
56
|
compact: "compact";
|
|
@@ -83,6 +87,10 @@ export declare const CallGenProof_InputSchema: z.ZodObject<{
|
|
|
83
87
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
84
88
|
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
85
89
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
window_profile: z.ZodOptional<z.ZodEnum<{
|
|
91
|
+
production: "production";
|
|
92
|
+
test: "test";
|
|
93
|
+
}>>;
|
|
86
94
|
response_level: z.ZodOptional<z.ZodEnum<{
|
|
87
95
|
full: "full";
|
|
88
96
|
compact: "compact";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const EMPTY_ARRAY=[];export function buildReceipt(a){if(a===undefined||a===null)return{'kind':'null','executed':![],...emptyChanges(),'raw':a};if(!Array['isArray'](a)&&typeof a==='object'&&'error'in a){const b=a['error'];return{'kind':'error','executed':![],'error':
|
|
1
|
+
import{normalizeErrorMessage}from'./normalize-error.js';const EMPTY_ARRAY=[];export function buildReceipt(a){if(a===undefined||a===null)return{'kind':'null','executed':![],...emptyChanges(),'raw':a};if(!Array['isArray'](a)&&typeof a==='object'&&'error'in a){const b=a['error'];return{'kind':'error','executed':![],'error':normalizeErrorMessage(b),...emptyChanges(),'raw':a};}if(Array['isArray'](a))return{'kind':'data','executed':![],...emptyChanges(),'raw':a};if(typeof a==='object'&&'guard'in a&&'submission'in a)return{'kind':'submission','executed':![],...emptyChanges(),'raw':a};if(typeof a==='object'&&'digest'in a){const c=a,d=c?.['effects']?.['status']?.['status'],e=d==='success'||c?.['effects']?.['status']?.['success']===!![],f=Array['isArray'](c['objectChanges'])?c['objectChanges']:EMPTY_ARRAY;return{'kind':'transaction','executed':e,'digest':typeof c['digest']==='string'?c['digest']:String(c['digest']),'txStatus':typeof d==='string'?d:undefined,'txError':c?.['effects']?.['status']?.['error'],'objectChanges':f,'created':f['filter'](g=>g?.['type']==='created'),'modified':f['filter'](g=>g?.['type']==='mutated'||g?.['type']==='published'),'events':Array['isArray'](c['events'])?c['events']:EMPTY_ARRAY,'balanceChanges':Array['isArray'](c['balanceChanges'])?c['balanceChanges']:EMPTY_ARRAY,'raw':a};}return{'kind':'data','executed':![],...emptyChanges(),'raw':a};}function emptyChanges(){return{'objectChanges':[],'created':[],'modified':[],'events':[],'balanceChanges':[]};}const isCoinType=a=>String(a??'')['includes']('::coin::Coin'),balanceOwner=a=>{const c=a?.['owner'];if(c&&typeof c==='object'){const d=c;return String(d['AddressOwner']??d['ObjectOwner']??'');}return String(c??'');},balanceAmount=a=>{const c=Number(a?.['amount']);return Number['isFinite'](c)?c:0x0;};export function buildReceiveMovedReceipt(a,c){if(!c['executed'])return undefined;const e=a??{};if(e['receive']==null&&e['owner_receive']==null)return undefined;if(typeof c['digest']==='string'&&c['digest']['startsWith']('dry_run:'))return undefined;const f=c['created']['filter'](o=>isCoinType(o['objectType'])),g=c['balanceChanges'];let h,i=0x0;for(const o of g){const p=balanceAmount(o);p<0x0&&(h===undefined||p<i)&&(h=balanceOwner(o),i=p);}const j=h?g['filter'](q=>balanceAmount(q)>0x0&&balanceOwner(q)===h)['length']:0x0,k=f['length'],l=k>0x0?0x0:j,m=k>0x0?k:l,n=m===0x0?'NOTHING\x20MOVED:\x20the\x20transaction\x20executed\x20(tx_ok=true)\x20but\x20no\x20asset\x20arrival\x20was\x20detected\x20in\x20its\x20'+'effects\x20—\x20no\x20claimed\x20coin\x20objects\x20and\x20no\x20positive\x20balance\x20delta\x20to\x20the\x20signing\x20wallet.\x20The\x20receive\x20'+'resolved\x20to\x20a\x20no-op.\x20Common\x20causes:\x20the\x20records\x20were\x20already\x20consumed/claimed,\x20or\x20nothing\x20is\x20pending\x20—\x20'+'or\x20the\x20signer\x20is\x20NOT\x20the\x20order\x20owner\x20(the\x20receive\x20face\x20is\x20owner-only:\x20a\x20non-owner\x27s\x20receive\x20executes\x20'+'successfully\x20while\x20moving\x20NOTHING).\x20Do\x20NOT\x20report\x20funds\x20or\x20objects\x20as\x20arrived;\x20verify\x20with\x20'+'account_balance\x20/\x20query_toolkit\x20onchain_received.':undefined;return{'tx_ok':!![],'objects_moved':m,'claimed_coins':k,'balance_deltas':l,...n!==undefined?{'note':n}:{}};}
|
|
@@ -433,6 +433,10 @@ export declare const CallRepository_InputSchema: z.ZodObject<{
|
|
|
433
433
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
434
434
|
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
435
435
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
436
|
+
window_profile: z.ZodOptional<z.ZodEnum<{
|
|
437
|
+
production: "production";
|
|
438
|
+
test: "test";
|
|
439
|
+
}>>;
|
|
436
440
|
response_level: z.ZodOptional<z.ZodEnum<{
|
|
437
441
|
full: "full";
|
|
438
442
|
compact: "compact";
|
|
@@ -90,7 +90,7 @@ export declare const CallReward_DataSchema: z.ZodObject<{
|
|
|
90
90
|
for_object: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
91
91
|
for_guard: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
92
92
|
remark: z.ZodString;
|
|
93
|
-
index: z.
|
|
93
|
+
index: z.ZodNumber;
|
|
94
94
|
}, z.core.$strip>;
|
|
95
95
|
unwrap: z.ZodOptional<z.ZodBoolean>;
|
|
96
96
|
}, z.core.$strip>>;
|
|
@@ -187,7 +187,7 @@ export declare const CallReward_InputSchema: z.ZodObject<{
|
|
|
187
187
|
for_object: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
188
188
|
for_guard: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
189
189
|
remark: z.ZodString;
|
|
190
|
-
index: z.
|
|
190
|
+
index: z.ZodNumber;
|
|
191
191
|
}, z.core.$strip>;
|
|
192
192
|
unwrap: z.ZodOptional<z.ZodBoolean>;
|
|
193
193
|
}, z.core.$strip>>;
|
|
@@ -209,6 +209,10 @@ export declare const CallReward_InputSchema: z.ZodObject<{
|
|
|
209
209
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
210
210
|
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
211
211
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
+
window_profile: z.ZodOptional<z.ZodEnum<{
|
|
213
|
+
production: "production";
|
|
214
|
+
test: "test";
|
|
215
|
+
}>>;
|
|
212
216
|
response_level: z.ZodOptional<z.ZodEnum<{
|
|
213
217
|
full: "full";
|
|
214
218
|
compact: "compact";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{RewardGuardSchema,PaymentInfoSchema}from'../query/index.js';import{ReceivedObjectsOrRecentlySchema,ReceivedBalanceOrRecentlySchema,NameOrAddressSchema,DescriptionSchema,RECEIVE_FORMAT_BLOCK_OBJECTS,RECEIVE_FORMAT_BLOCK_BALANCE}from'../common/index.js';export const CallReward_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'claim':NameOrAddressSchema['optional']()['describe']('GUARD\x20object\x20name/address\x20whose\x20verification\x20starts\x20the\x20reward\x20distribution\x20—\x20this\x20is\x20the\x20GUARD,\x20NEVER\x20the\x20order\x20(KLM-FIND-08,\x20klook-mn\x20261019:\x20passing\x20the\x20order\x20here\x20aborts).\x20The\x20ORDER\x20reference\x20rides\x20submission\x20slot\x200\x20—\x20pass\x20it\x20via\x20the\x20call\x27s\x20\x27submission\x27,\x20not\x20in\x20this\x20field.\x20WINDOW\x20LIFECYCLE\x20(rqd3-tn-261030\x20F-02):\x20the\x20guard\x27s\x20pass\x20condition\x20must\x20cover\x20EVERY\x20terminal\x20state\x20that\x20may\x20legitimately\x20hold\x20at\x20claim\x20time.\x20A\x20completed-only\x20window\x20(root\x20=\x20query\x20order\x20status\x20==\x20completed)\x20is\x20CLOSED\x20FOREVER\x20the\x20moment\x20the\x20Machine\x20settles\x20—\x20settlement\x20overwrites\x20the\x20order\x20status,\x20the\x20guard\x20can\x20never\x20pass\x20again,\x20and\x20the\x20bounty\x20is\x20stranded\x20(claim\x20path\x20aborts\x20with\x20E_GUARD_NOT_FOUND\x20—\x20the\x20payout\x20lookup\x20finds\x20no\x20payable\x20row,\x20abort\x207).\x20Design\x20the\x20claim\x20guard\x20against\x20the\x20full\x20terminal\x20set\x20(e.g.\x20completed\x20OR\x20settled\x20OR\x20refunded,\x20per\x20the\x20payout\x20rail),\x20and\x20if\x20a\x20bound\x20window\x20is\x20already\x20closed,\x20migration\x20=\x20new\x20guard\x20with\x20the\x20corrected\x20root\x20+\x20reward.guard_remove\x20+\x20reward.guard_add\x20(guards\x20are\x20immutable\x20—\x20there\x20is\x20no\x20in-place\x20edit).'),'description':DescriptionSchema['optional'](),'coin_add':CoinParamSchema['optional']()['describe']('Add\x20amount\x20to\x20Reward\x20object.'),'receive':ReceivedBalanceOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20received\x20by\x20Reward\x20object\x20and\x20store\x20them\x20in\x20pending\x20balance.'+RECEIVE_FORMAT_BLOCK_BALANCE),'guard_add':z['array'](RewardGuardSchema)['optional']()['describe']('Add\x20Guard\x20to\x20Reward\x20object.\x20IDIOMS\x20(F08\x20—\x20these\x20differ\x20from\x20Service\x20allocation,\x20follow\x20THIS\x20shape\x20here):\x20recipient\x20is\x20ONE\x20OF\x20{GuardIdentifier:\x20<u8>}\x20|\x20{Entity:\x20{name_or_address:\x20\x27mark\x27}}\x20|\x20{Signer:\x20\x27signer\x27}\x20(string\x20const\x20INSIDE\x20the\x20key,\x20NOT\x20a\x20bare\x20string)\x20—\x20BUT\x20on\x20the\x20REWARD\x20claim\x20rail\x20the\x20recipient\x20MUST\x20equal\x20the\x20transaction\x20sender\x20(chain\x20assert,\x20abort\x2014),\x20so\x20{Signer:\x20\x27signer\x27}\x20is\x20the\x20canonical\x20form\x20and\x20{Entity}\x20also\x20passes\x20(SDK\x20replaces\x20it\x20with\x20the\x20claimant\x27s\x20account\x20at\x20claim\x20time);\x20a\x20{GuardIdentifier}\x20recipient\x20resolves\x20to\x20the\x20submitted\x20Order\x20and\x20is\x20STRUCTURALLY\x20UNPAYABLE\x20(every\x20claim\x20aborts\x2014)\x20—\x20the\x20tool\x20gate\x20rejects\x20it\x20(crs-mn-261015\x20F-12).\x20amount\x20is\x20{type:\x20\x27Fixed\x27,\x20value:\x20\x270.1WOW\x27}\x20—\x20value\x20accepts\x20a\x20display\x20string\x20with\x20token\x20symbol\x20(\x270.1WOW\x27)\x20or\x20a\x20smallest-unit\x20integer\x20(\x27100000000\x27),\x20NOT\x20the\x20plain\x20balance\x20string\x20used\x20by\x20allocation\x20`sharing`.\x20FULL\x20EXAMPLE:\x20[{guard:\x20\x270xabc...\x27,\x20recipient:\x20{Signer:\x20\x27signer\x27},\x20amount:\x20{type:\x20\x27Fixed\x27,\x20value:\x20\x270.1WOW\x27}}].\x20OPTIONAL\x20EVIDENCE\x20BINDING\x20(ksk9d2-tn-261026\x20F-01):\x20an\x20entry\x20may\x20carry\x20evidence\x20{repo,\x20key,\x20predicate}\x20—\x20a\x20claim-time\x20attestation\x20pin\x20that\x20counts\x20ONLY\x20repository\x20rows\x20tied\x20to\x20THIS\x20claim\x27s\x20own\x20store_from\x20value\x20(the\x20submitted\x20order),\x20so\x20borrowed/foreign\x20rows\x20never\x20satisfy\x20the\x20bounty;\x20it\x20requires\x20store_from_id\x20on\x20the\x20same\x20guard\x20(a\x20missing\x20pin\x20aborts\x2016\x20at\x20build\x20time)\x20and\x20a\x20claim\x20whose\x20order\x20has\x20no\x20matching\x20attestation\x20row\x20aborts\x2015.'),'guard_remove':z['string']()['optional']()['describe']('Unified\x20guard\x20removal\x20—\x20one\x20entry,\x20two\x20intents:\x20pass\x20the\x20literal\x20\x27expired\x27\x20to\x20sweep\x20ALL\x20expired\x20guards,\x20or\x20pass\x20a\x20Guard\x20object\x20ID\x20to\x20remove\x20that\x20specific\x20mounted\x20guard\x20(works\x20on\x20non-expiring\x20guards\x20too,\x20F-57).\x20Constraints:\x20while\x20the\x20no-guard\x20window\x20(guard_expiration_time)\x20is\x20still\x20in\x20the\x20future\x20removal\x20is\x20blocked\x20(same\x20public-commitment\x20lock\x20as\x20guard_add,\x20abort\x2010);\x20removing\x20a\x20not-mounted\x20ID\x20aborts\x207;\x20consumed\x20claim\x20once-slots\x20survive\x20remove+re-add,\x20so\x20removal\x20can\x20never\x20re-arm\x20an\x20already-drained\x20bounty.'),'guard_expiration_time':z['union']([z['number']()['int']()['min'](0x1),z['null']()])['optional']()['describe']('Add\x20expiration\x20time(ms).\x20Before\x20this\x20time\x20expires,\x20new\x20Guard\x20and\x20fund\x20allocation\x20rules\x20cannot\x20be\x20added.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Reward\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.'),'withdraw':z['object']({'amount':z['union']([z['number']()['int']()['min'](0x0),z['string']()])['describe']('Amount\x20to\x20withdraw\x20(SMALLEST\x20token\x20units,\x20e.g.\x20\x27100000000\x27).'),'payment_info':PaymentInfoSchema['describe']('Payment\x20receipt\x20metadata\x20(remark/index).\x20The\x20withdrawn\x20funds\x20leave\x20the\x20Reward\x20balance\x20inside\x20a\x20Payment\x20object\x20—\x20the\x20on-chain\x20auditable\x20receipt.'),'unwrap':z['boolean']()['optional']()['describe']('Auto-unwrap:\x20when\x20true,\x20the\x20coin\x20is\x20paid\x20straight\x20to\x20the\x20transaction\x20sender\x20in\x20the\x20SAME\x20transaction\x20(single-PTB\x20flow).\x20When\x20false\x20or\x20omitted\x20(default),\x20a\x20CoinWrapper\x20is\x20delivered\x20to\x20the\x20sender\x27s\x20wallet\x20for\x20later\x20unwrapping\x20via\x20the\x20payment\x20call\x20with\x20receive:true.\x20Both\x20modes\x20keep\x20the\x20Payment\x20object\x20as\x20the\x20on-chain\x20receipt.')})['optional']()['describe']('Permission-gated\x20balance\x20exit\x20(the\x20ONLY\x20non-claim\x20exit\x20from\x20the\x20Reward\x20balance):\x20withdraws\x20this\x20amount\x20from\x20the\x20Reward\x20balance\x20and\x20delivers\x20it\x20to\x20the\x20transaction\x20sender\x20inside\x20a\x20Payment\x20object\x20(the\x20on-chain\x20auditable\x20receipt,\x20keyed\x20by\x20the\x20RewardWithdrawEvent).\x20The\x20executing\x20account\x20needs\x20the\x20withdraw\x20right\x20(permission\x20index\x20158)\x20on\x20the\x20Reward\x27s\x20Permission\x20object.\x20Fails\x20on-chain\x20when\x20the\x20balance\x20is\x20insufficient\x20or\x20while\x20the\x20declared\x20no-guard\x20window\x20(guard_expiration_time)\x20is\x20still\x20in\x20the\x20future;\x20claim\x20replay\x20protection\x20is\x20unaffected.\x20Use\x20it\x20to\x20recover\x20mismatched\x20or\x20overfunded\x20pools.')})['strict']()['describe']('On-chain\x20Reward\x20operations.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20type_parameter,\x20permission,\x20...}\x20to\x20create\x20a\x20Reward.\x20NOTE:\x20\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x27permission\x27\x20can\x20be\x20a\x20new\x20Permission\x20object\x20or\x20reference\x20an\x20existing\x20one\x20-\x20check\x20\x27object\x27\x20field\x20description\x20for\x20details.\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.\x20NAME\x20RESOLUTION\x20SCOPE\x20(T8\x20az3-mn-261013):\x20a\x20LocalMark\x20name\x20resolves\x20ONLY\x20within\x20the\x20SIGNING\x20account\x27s\x20own\x20local\x20mark\x20store\x20—\x20when\x20the\x20Reward\x20was\x20named\x20by\x20a\x20DIFFERENT\x20account\x20(e.g.\x20the\x20merchant\x27s\x20mark)\x20and\x20you\x20operate\x20it\x20from\x20another\x20account,\x20the\x20name\x20lookup\x20fails\x20with\x20\x27not\x20found\x20locally\x27;\x20pass\x20the\x20on-chain\x200x\x20object\x20ID\x20instead\x20(resolve\x20it\x20once\x20via\x20workspace/onchain_objects\x20and\x20reuse\x20the\x20id).');export const CallReward_InputSchema=z['object']({'data':CallReward_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
|
|
1
|
+
import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{RewardGuardSchema,PaymentInfoSchema}from'../query/index.js';import{ReceivedObjectsOrRecentlySchema,ReceivedBalanceOrRecentlySchema,NameOrAddressSchema,DescriptionSchema,RECEIVE_FORMAT_BLOCK_OBJECTS,RECEIVE_FORMAT_BLOCK_BALANCE}from'../common/index.js';export const CallReward_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'claim':NameOrAddressSchema['optional']()['describe']('GUARD\x20object\x20name/address\x20whose\x20verification\x20starts\x20the\x20reward\x20distribution\x20—\x20this\x20is\x20the\x20GUARD,\x20NEVER\x20the\x20order\x20(KLM-FIND-08,\x20klook-mn\x20261019:\x20passing\x20the\x20order\x20here\x20aborts).\x20The\x20ORDER\x20reference\x20rides\x20submission\x20slot\x200\x20—\x20pass\x20it\x20via\x20the\x20call\x27s\x20\x27submission\x27,\x20not\x20in\x20this\x20field.\x20WINDOW\x20LIFECYCLE\x20(rqd3-tn-261030\x20F-02):\x20the\x20guard\x27s\x20pass\x20condition\x20must\x20cover\x20EVERY\x20terminal\x20state\x20that\x20may\x20legitimately\x20hold\x20at\x20claim\x20time.\x20A\x20completed-only\x20window\x20(root\x20=\x20query\x20order\x20status\x20==\x20completed)\x20is\x20CLOSED\x20FOREVER\x20the\x20moment\x20the\x20Machine\x20settles\x20—\x20settlement\x20overwrites\x20the\x20order\x20status,\x20the\x20guard\x20can\x20never\x20pass\x20again,\x20and\x20the\x20bounty\x20is\x20stranded\x20(claim\x20path\x20aborts\x20with\x20E_GUARD_NOT_FOUND\x20—\x20the\x20payout\x20lookup\x20finds\x20no\x20payable\x20row,\x20abort\x207).\x20Design\x20the\x20claim\x20guard\x20against\x20the\x20full\x20terminal\x20set\x20(e.g.\x20completed\x20OR\x20settled\x20OR\x20refunded,\x20per\x20the\x20payout\x20rail),\x20and\x20if\x20a\x20bound\x20window\x20is\x20already\x20closed,\x20migration\x20=\x20new\x20guard\x20with\x20the\x20corrected\x20root\x20+\x20reward.guard_remove\x20+\x20reward.guard_add\x20(guards\x20are\x20immutable\x20—\x20there\x20is\x20no\x20in-place\x20edit).'),'description':DescriptionSchema['optional'](),'coin_add':CoinParamSchema['optional']()['describe']('Add\x20amount\x20to\x20Reward\x20object.'),'receive':ReceivedBalanceOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20received\x20by\x20Reward\x20object\x20and\x20store\x20them\x20in\x20pending\x20balance.'+RECEIVE_FORMAT_BLOCK_BALANCE+'\x20F55\x20(gf32-mn-261103):\x20on\x20a\x20REWARD\x20object\x20holding\x20a\x20plain\x20coin\x20sweep,\x20\x27recently\x27\x20aborts\x20(\x27received\x20is\x20ReceivedNormal[]\x20(expected\x20ReceivedBalance)\x27)\x20—\x20use\x20owner_receive:\x27recently\x27\x20for\x20that\x20shape;\x20receive\x20targets\x20Payment-derived\x20ReceivedBalance\x20entries\x20only.'),'guard_add':z['array'](RewardGuardSchema)['optional']()['describe']('Add\x20Guard\x20to\x20Reward\x20object.\x20IDIOMS\x20(F08\x20—\x20these\x20differ\x20from\x20Service\x20allocation,\x20follow\x20THIS\x20shape\x20here):\x20recipient\x20is\x20ONE\x20OF\x20{GuardIdentifier:\x20<u8>}\x20|\x20{Entity:\x20{name_or_address:\x20\x27mark\x27}}\x20|\x20{Signer:\x20\x27signer\x27}\x20(string\x20const\x20INSIDE\x20the\x20key,\x20NOT\x20a\x20bare\x20string)\x20—\x20BUT\x20on\x20the\x20REWARD\x20claim\x20rail\x20the\x20recipient\x20MUST\x20equal\x20the\x20transaction\x20sender\x20(chain\x20assert,\x20abort\x2014),\x20so\x20{Signer:\x20\x27signer\x27}\x20is\x20the\x20canonical\x20form\x20and\x20{Entity}\x20also\x20passes\x20(SDK\x20replaces\x20it\x20with\x20the\x20claimant\x27s\x20account\x20at\x20claim\x20time);\x20a\x20{GuardIdentifier}\x20recipient\x20resolves\x20to\x20the\x20submitted\x20Order\x20and\x20is\x20STRUCTURALLY\x20UNPAYABLE\x20(every\x20claim\x20aborts\x2014)\x20—\x20the\x20tool\x20gate\x20rejects\x20it\x20(crs-mn-261015\x20F-12).\x20amount\x20is\x20{type:\x20\x27Fixed\x27,\x20value:\x20\x270.1WOW\x27}\x20—\x20value\x20accepts\x20a\x20display\x20string\x20with\x20token\x20symbol\x20(\x270.1WOW\x27)\x20or\x20a\x20smallest-unit\x20integer\x20(\x27100000000\x27),\x20NOT\x20the\x20plain\x20balance\x20string\x20used\x20by\x20allocation\x20`sharing`.\x20FULL\x20EXAMPLE:\x20[{guard:\x20\x270xabc...\x27,\x20recipient:\x20{Signer:\x20\x27signer\x27},\x20amount:\x20{type:\x20\x27Fixed\x27,\x20value:\x20\x270.1WOW\x27}}].\x20OPTIONAL\x20EVIDENCE\x20BINDING\x20(ksk9d2-tn-261026\x20F-01):\x20an\x20entry\x20may\x20carry\x20evidence\x20{repo,\x20key,\x20predicate}\x20—\x20a\x20claim-time\x20attestation\x20pin\x20that\x20counts\x20ONLY\x20repository\x20rows\x20tied\x20to\x20THIS\x20claim\x27s\x20own\x20store_from\x20value\x20(the\x20submitted\x20order),\x20so\x20borrowed/foreign\x20rows\x20never\x20satisfy\x20the\x20bounty;\x20it\x20requires\x20store_from_id\x20on\x20the\x20same\x20guard\x20(a\x20missing\x20pin\x20aborts\x2016\x20at\x20build\x20time)\x20and\x20a\x20claim\x20whose\x20order\x20has\x20no\x20matching\x20attestation\x20row\x20aborts\x2015.'),'guard_remove':z['string']()['optional']()['describe']('Unified\x20guard\x20removal\x20—\x20one\x20entry,\x20two\x20intents:\x20pass\x20the\x20literal\x20\x27expired\x27\x20to\x20sweep\x20ALL\x20expired\x20guards,\x20or\x20pass\x20a\x20Guard\x20object\x20ID\x20to\x20remove\x20that\x20specific\x20mounted\x20guard\x20(works\x20on\x20non-expiring\x20guards\x20too,\x20F-57).\x20Constraints:\x20while\x20the\x20no-guard\x20window\x20(guard_expiration_time)\x20is\x20still\x20in\x20the\x20future\x20removal\x20is\x20blocked\x20(same\x20public-commitment\x20lock\x20as\x20guard_add,\x20abort\x2010);\x20removing\x20a\x20not-mounted\x20ID\x20aborts\x207;\x20consumed\x20claim\x20once-slots\x20survive\x20remove+re-add,\x20so\x20removal\x20can\x20never\x20re-arm\x20an\x20already-drained\x20bounty.'),'guard_expiration_time':z['union']([z['number']()['int']()['min'](0x1),z['null']()])['optional']()['describe']('Add\x20expiration\x20time(ms).\x20Before\x20this\x20time\x20expires,\x20new\x20Guard\x20and\x20fund\x20allocation\x20rules\x20cannot\x20be\x20added.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Reward\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.'),'withdraw':z['object']({'amount':z['union']([z['number']()['int']()['min'](0x0),z['string']()])['describe']('Amount\x20to\x20withdraw\x20(SMALLEST\x20token\x20units,\x20e.g.\x20\x27100000000\x27).'),'payment_info':PaymentInfoSchema['describe']('Payment\x20receipt\x20metadata\x20(remark/index).\x20The\x20withdrawn\x20funds\x20leave\x20the\x20Reward\x20balance\x20inside\x20a\x20Payment\x20object\x20—\x20the\x20on-chain\x20auditable\x20receipt.'),'unwrap':z['boolean']()['optional']()['describe']('Auto-unwrap:\x20when\x20true,\x20the\x20coin\x20is\x20paid\x20straight\x20to\x20the\x20transaction\x20sender\x20in\x20the\x20SAME\x20transaction\x20(single-PTB\x20flow).\x20When\x20false\x20or\x20omitted\x20(default),\x20a\x20CoinWrapper\x20is\x20delivered\x20to\x20the\x20sender\x27s\x20wallet\x20for\x20later\x20unwrapping\x20via\x20the\x20payment\x20call\x20with\x20receive:true.\x20Both\x20modes\x20keep\x20the\x20Payment\x20object\x20as\x20the\x20on-chain\x20receipt.')})['optional']()['describe']('Permission-gated\x20balance\x20exit\x20(the\x20ONLY\x20non-claim\x20exit\x20from\x20the\x20Reward\x20balance):\x20withdraws\x20this\x20amount\x20from\x20the\x20Reward\x20balance\x20and\x20delivers\x20it\x20to\x20the\x20transaction\x20sender\x20inside\x20a\x20Payment\x20object\x20(the\x20on-chain\x20auditable\x20receipt,\x20keyed\x20by\x20the\x20RewardWithdrawEvent).\x20The\x20executing\x20account\x20needs\x20the\x20withdraw\x20right\x20(permission\x20index\x20158)\x20on\x20the\x20Reward\x27s\x20Permission\x20object.\x20Fails\x20on-chain\x20when\x20the\x20balance\x20is\x20insufficient\x20or\x20while\x20the\x20declared\x20no-guard\x20window\x20(guard_expiration_time)\x20is\x20still\x20in\x20the\x20future;\x20claim\x20replay\x20protection\x20is\x20unaffected.\x20Use\x20it\x20to\x20recover\x20mismatched\x20or\x20overfunded\x20pools.')})['strict']()['describe']('On-chain\x20Reward\x20operations.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20type_parameter,\x20permission,\x20...}\x20to\x20create\x20a\x20Reward.\x20NOTE:\x20\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x27permission\x27\x20can\x20be\x20a\x20new\x20Permission\x20object\x20or\x20reference\x20an\x20existing\x20one\x20-\x20check\x20\x27object\x27\x20field\x20description\x20for\x20details.\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.\x20NAME\x20RESOLUTION\x20SCOPE\x20(T8\x20az3-mn-261013):\x20a\x20LocalMark\x20name\x20resolves\x20ONLY\x20within\x20the\x20SIGNING\x20account\x27s\x20own\x20local\x20mark\x20store\x20—\x20when\x20the\x20Reward\x20was\x20named\x20by\x20a\x20DIFFERENT\x20account\x20(e.g.\x20the\x20merchant\x27s\x20mark)\x20and\x20you\x20operate\x20it\x20from\x20another\x20account,\x20the\x20name\x20lookup\x20fails\x20with\x20\x27not\x20found\x20locally\x27;\x20pass\x20the\x20on-chain\x200x\x20object\x20ID\x20instead\x20(resolve\x20it\x20once\x20via\x20workspace/onchain_objects\x20and\x20reuse\x20the\x20id).');export const CallReward_InputSchema=z['object']({'data':CallReward_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
|
|
@@ -47,7 +47,8 @@ interface MoveAbortMapping {
|
|
|
47
47
|
recovery_hint?: string;
|
|
48
48
|
}
|
|
49
49
|
export declare const MOVE_ABORT_ERROR_MAP: Record<string, MoveAbortMapping>;
|
|
50
|
-
export
|
|
50
|
+
export { normalizeErrorMessage } from "./normalize-error.js";
|
|
51
|
+
export declare function extractVmDebugAbort(errorMsg: unknown): MoveAbortInfo | undefined;
|
|
51
52
|
export declare function classifyError(errorMsg: unknown, error?: unknown): ErrorClassification;
|
|
52
53
|
export declare function inferIntent(operation_type: string, data: any): string;
|
|
53
54
|
export declare function objectTypeToRole(objectType: string): ObjectRole["role"];
|
|
@@ -58,4 +59,3 @@ export declare function annotateEvents(events: any[] | undefined): EventSemantic
|
|
|
58
59
|
export declare function referencesExistingObject(data?: Record<string, unknown> | null): boolean;
|
|
59
60
|
export declare function buildSemantic(receipt: ExecutionReceipt, context?: SemanticContext): SemanticSummary | undefined;
|
|
60
61
|
export declare function buildDataSemantic(data: any, context?: SemanticContext, isError?: boolean, errorMsg?: string): SemanticSummary | undefined;
|
|
61
|
-
export {};
|