@wowok/agent-mcp 3.2.7 → 3.2.9
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/chain-semantics/field-capability.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.js +1 -1
- package/dist/composition/inflight.d.ts +10 -0
- package/dist/composition/inflight.js +1 -1
- package/dist/extensions/business-modules.d.ts +1 -1
- package/dist/extensions/business-modules.js +1 -1
- package/dist/graph/onchain/edge-schema.js +1 -1
- package/dist/harness/index.d.ts +1 -0
- package/dist/harness/index.js +1 -1
- package/dist/harness/operation-id.d.ts +1 -0
- package/dist/harness/operation-id.js +1 -0
- package/dist/harness/recover.js +1 -1
- package/dist/index.js +1 -1
- package/dist/knowledge/arbitration-ledger.js +1 -1
- package/dist/knowledge/audit-rules.js +1 -1
- package/dist/knowledge/baselines/rules/guard.json +96 -1
- package/dist/knowledge/baselines/rules/plan.json +30 -7
- package/dist/knowledge/baselines/semantic-facts.js +1 -1
- package/dist/knowledge/builtin-templates.d.ts +1 -1
- package/dist/knowledge/builtin-templates.js +1 -1
- package/dist/knowledge/discount-threshold.d.ts +11 -0
- package/dist/knowledge/discount-threshold.js +1 -1
- package/dist/knowledge/fund-layer.js +1 -1
- package/dist/knowledge/getting-started.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-field-cognition.js +1 -1
- package/dist/knowledge/guard-ledger.js +1 -1
- package/dist/knowledge/guard-lint.js +1 -1
- package/dist/knowledge/guard-render.js +1 -1
- package/dist/knowledge/guard-risk.d.ts +1 -0
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/guard-submission-brief.d.ts +6 -0
- package/dist/knowledge/guard-submission-brief.js +1 -1
- package/dist/knowledge/guard-templates.d.ts +2 -2
- package/dist/knowledge/guard-templates.js +1 -1
- 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/order-ledger.js +1 -1
- package/dist/knowledge/reward-ledger.js +1 -1
- package/dist/knowledge/safety-rules.js +1 -1
- package/dist/knowledge/template-loader.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.d.ts +2 -0
- package/dist/knowledge/template-scanner.js +1 -1
- package/dist/knowledge/tool-constraints.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +7 -3
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/participation/radar-core.d.ts +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 +8 -0
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/object-panorama.d.ts +28 -1
- package/dist/playbooks/service-build/object-panorama.js +1 -1
- package/dist/playbooks/service-build/participation-radar.d.ts +2 -0
- 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/reverse-mapping-nk4.spec.js +1 -1
- package/dist/playbooks/service-build/reverse-mapping.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/playbooks/service-build/service-quote.spec.js +1 -1
- package/dist/review/index.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/safety/preview.d.ts +1 -0
- package/dist/safety/preview.js +1 -1
- package/dist/schema/benchmark-migration/index.d.ts +14 -0
- package/dist/schema/benchmark-migration/index.js +1 -1
- package/dist/schema/call/allocation.d.ts +1 -1
- package/dist/schema/call/arbitration.d.ts +4 -4
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +13 -5
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +2 -0
- package/dist/schema/call/contact.d.ts +1 -1
- package/dist/schema/call/demand.d.ts +1 -1
- package/dist/schema/call/error-codes.d.ts +1 -1
- package/dist/schema/call/error-codes.js +1 -1
- package/dist/schema/call/guard.d.ts +3 -3
- package/dist/schema/call/guard.js +1 -1
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/machine.d.ts +1 -1
- package/dist/schema/call/machine.js +1 -1
- package/dist/schema/call/order.d.ts +1 -1
- package/dist/schema/call/order.js +1 -1
- package/dist/schema/call/permission.d.ts +1 -1
- package/dist/schema/call/personal.d.ts +4 -4
- package/dist/schema/call/progress.d.ts +1 -1
- package/dist/schema/call/progress.js +1 -1
- package/dist/schema/call/proof.js +1 -1
- package/dist/schema/call/repository.d.ts +5 -5
- package/dist/schema/call/repository.js +1 -1
- package/dist/schema/call/reward.d.ts +1 -1
- package/dist/schema/call/reward.js +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +4 -1
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/call/treasury.d.ts +1 -1
- package/dist/schema/common/index.d.ts +4 -4
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/goal/index.d.ts +12 -0
- package/dist/schema/goal/planning.d.ts +18 -0
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/local/index.d.ts +21 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +22 -21
- package/dist/schema/query/bi.d.ts +6 -6
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +112 -54
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-query/index.d.ts +1 -0
- package/dist/schema/schema-query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/utils/permission-machine-check.d.ts +2 -0
- package/dist/schema/utils/permission-machine-check.js +1 -1
- package/dist/schema/workflow/index.d.ts +1 -1
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +2 -0
- package/dist/schemas/account_operation.schema.json +3 -3
- package/dist/schemas/benchmark_migration_operation.output.json +42 -0
- package/dist/schemas/benchmark_migration_operation.schema.json +13 -0
- package/dist/schemas/bridge_operation.output.json +2 -0
- package/dist/schemas/goal_operation.schema.json +26 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/local_cache_operation.output.json +2 -0
- package/dist/schemas/local_history_operation.output.json +2 -0
- package/dist/schemas/local_info_operation.output.json +2 -0
- package/dist/schemas/local_mark_operation.output.json +2 -0
- package/dist/schemas/messenger_operation.schema.json +4 -4
- package/dist/schemas/onchain_operations.output.json +7 -5
- package/dist/schemas/onchain_operations.schema.json +108 -92
- package/dist/schemas/onchain_operations_allocation.schema.json +5 -5
- package/dist/schemas/onchain_operations_arbitration.schema.json +10 -8
- package/dist/schemas/onchain_operations_contact.schema.json +6 -5
- package/dist/schemas/onchain_operations_demand.schema.json +6 -5
- package/dist/schemas/onchain_operations_gen_passport.schema.json +5 -5
- package/dist/schemas/onchain_operations_gen_proof.schema.json +1 -1
- package/dist/schemas/onchain_operations_guard.schema.json +4 -4
- package/dist/schemas/onchain_operations_machine.schema.json +7 -6
- package/dist/schemas/onchain_operations_order.schema.json +8 -7
- package/dist/schemas/onchain_operations_permission.schema.json +1 -0
- package/dist/schemas/onchain_operations_personal.schema.json +2 -2
- package/dist/schemas/onchain_operations_progress.schema.json +8 -7
- package/dist/schemas/onchain_operations_proof.schema.json +6 -6
- package/dist/schemas/onchain_operations_repository.schema.json +10 -9
- package/dist/schemas/onchain_operations_reward.schema.json +8 -7
- package/dist/schemas/onchain_operations_service.schema.json +16 -11
- package/dist/schemas/onchain_operations_treasury.schema.json +6 -5
- package/dist/schemas/onchain_table_data.output.json +7 -7
- package/dist/schemas/query_toolkit.output.json +31 -30
- package/dist/schemas/query_toolkit.schema.json +1 -1
- package/dist/schemas/schema_query.schema.json +4 -0
- package/dist/schemas/workflow_operation.schema.json +5 -5
- package/dist/schemas/wowok_buildin_info.output.json +140 -3
- package/dist/schemas/wowok_buildin_info.schema.json +2 -2
- package/dist/tools/handlers/benchmark-migration.d.ts +22 -1
- package/dist/tools/handlers/benchmark-migration.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/dispatch-expectations.d.ts +0 -1
- package/dist/tools/handlers/dispatch-expectations.js +1 -1
- package/dist/tools/handlers/local.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/query.d.ts +1 -0
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/review-chain.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/move-fn-index.gen.js +1 -1
- package/dist/tools/registry/files.js +1 -1
- package/dist/tools/registry/query.js +1 -1
- package/dist/tools/rules-hook.js +1 -1
- package/dist/tools/upgrade-check.d.ts +23 -0
- package/dist/tools/upgrade-check.js +1 -1
- package/dist/tools/wip-deploy-assist.d.ts +6 -0
- package/dist/tools/wip-deploy-assist.js +1 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +2 -2
|
@@ -156,6 +156,12 @@ export declare const PlanningActionMembers: [z.ZodObject<{
|
|
|
156
156
|
trust_override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
157
157
|
adopted_module_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
158
158
|
guard_resolutions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
159
|
+
review_mode: z.ZodOptional<z.ZodEnum<{
|
|
160
|
+
review: "review";
|
|
161
|
+
none: "none";
|
|
162
|
+
review_reward: "review_reward";
|
|
163
|
+
}>>;
|
|
164
|
+
reward_funding: z.ZodOptional<z.ZodString>;
|
|
159
165
|
}, z.core.$strict>>;
|
|
160
166
|
guide_confirm: z.ZodOptional<z.ZodObject<{
|
|
161
167
|
industry: z.ZodOptional<z.ZodString>;
|
|
@@ -174,6 +180,12 @@ export declare const PlanningActionMembers: [z.ZodObject<{
|
|
|
174
180
|
table: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
175
181
|
root: z.ZodUnknown;
|
|
176
182
|
}, z.core.$strict>]>>>;
|
|
183
|
+
review_mode: z.ZodOptional<z.ZodEnum<{
|
|
184
|
+
review: "review";
|
|
185
|
+
none: "none";
|
|
186
|
+
review_reward: "review_reward";
|
|
187
|
+
}>>;
|
|
188
|
+
reward_funding: z.ZodOptional<z.ZodString>;
|
|
177
189
|
}, z.core.$strict>>;
|
|
178
190
|
network: z.ZodOptional<z.ZodEnum<{
|
|
179
191
|
testnet: "testnet";
|
|
@@ -365,6 +377,12 @@ export declare const MerchantGuideResultSchema: z.ZodObject<{
|
|
|
365
377
|
trust_override: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
366
378
|
adopted_module_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
367
379
|
guard_resolutions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
380
|
+
review_mode: z.ZodOptional<z.ZodEnum<{
|
|
381
|
+
review: "review";
|
|
382
|
+
none: "none";
|
|
383
|
+
review_reward: "review_reward";
|
|
384
|
+
}>>;
|
|
385
|
+
reward_funding: z.ZodOptional<z.ZodString>;
|
|
368
386
|
}, z.core.$strict>;
|
|
369
387
|
intent_draft: z.ZodOptional<z.ZodUnknown>;
|
|
370
388
|
industry_options: z.ZodOptional<z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';const NetworkEnum=z['enum'](['mainnet','testnet']);export const PlanningIndustryEnum=z['string']()['regex'](/^[a-z][a-z0-9_]*$/,'industry\x20must\x20be\x20lowercase\x20snake_case');export const ProjectObjectTypeEnum=z['enum'](['service','machine','guard','permission','reward','arb','progress','treasury','demand','repository','contact','order','allocation','personal','payment','proof']);const IntentContextFields={'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20with\x20deposit\x20and\x20damage\x20inspection\x27).\x20'+'Used\x20as\x20the\x20primary\x20input;\x20falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'project_name':z['string']()['min'](0x1)['max'](0xc8)['optional']()['describe']('Optional\x20business\x20name\x20—\x20used\x20as\x20an\x20intent\x20fallback\x20when\x20\x27intent\x27\x20is\x20omitted.'),'project_description':z['string']()['max'](0x7d0)['optional']()['describe']('Optional\x20business\x20description\x20—\x20used\x20as\x20an\x20intent\x20fallback\x20when\x20\x27intent\x27\x20is\x20omitted.'),'project_industry':PlanningIndustryEnum['optional']()['describe']('Industry\x20tag.\x20Drives\x20industry-specific\x20risk\x20calibration\x20(e.g.\x20\x27freelance\x27\x20does\x20NOT\x20require\x20'+'compensation_fund,\x20while\x20\x27rental\x27/\x27travel\x27\x20do).\x20Any\x20registered\x20industry\x20is\x20accepted\x20—\x20'+'builtin:\x20\x27general\x27,\x20\x27retail\x27,\x20\x27retail_d2c\x27,\x20\x27service\x27,\x20\x27rental\x27,\x20\x27freelance\x27,\x20\x27education\x27,\x20'+'\x27travel\x27,\x20\x27subscription\x27,\x20\x27custom\x27\x20—\x20plus\x20custom\x20industries\x20registered\x20via\x20industry\x20packs.')};export const GuardResolutionInputSchema=z['union']([z['object']({'kind':z['literal']('template'),'template_id':z['string']()['describe']('A\x20\x27tpl_*\x27\x20guard\x20template\x20id\x20to\x20fill\x20(template\x20fee_params\x20+\x20params\x20feed\x20the\x20fill).'),'params':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Extra\x20fill\x20params\x20over\x20the\x20merged\x20fee_params.')})['strict'](),z['object']({'kind':z['literal']('inline'),'description':z['string']()['optional']()['describe']('Guard\x20description\x20(defaults\x20to\x20the\x20pending\x20design\x27s\x20purpose).'),'table':z['array'](z['record'](z['string'](),z['unknown']()))['describe']('Guard\x20passport\x20table\x20rows\x20(identifier/b_submission/value_type/...).'),'root':z['unknown']()['describe']('Guard\x20logic\x20root\x20node.')})['strict']()]);export const PlanningActionMembers=[z['object']({'action':z['literal']('analyze_intent'),...IntentContextFields,'target_objects':z['array'](z['string']())['optional']()['describe']('Optional\x20explicit\x20target\x20objects\x20(entry_ids\x20or\x20object_type\x20names).\x20'+'When\x20provided,\x20puzzle\x20snapshots\x20are\x20restricted\x20to\x20these\x20objects.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C1:\x20natural-language\x20business\x20intent\x20→\x20parsed\x20intent\x20(primary/secondary\x20objects,\x20'+'detected\x20scenes,\x20industry)\x20+\x20per-object\x20puzzle\x20snapshots\x20+\x20recommended\x20creation\x20order.'),z['object']({'action':z['literal']('aggregate_risks'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier,\x20e.g.\x20\x27myshop\x27).\x20Used\x20to\x20key\x20the\x20service-build\x20stage\x20cache.'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27)\x20for\x20the\x20service-build\x20stage\x20cache.\x20Defaults\x20to\x20\x27v1\x27.'),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown']()['describe']('Puzzle\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20from\x20analyze_intent\x20output\x20unchanged).'),'completeness':z['unknown']()['describe']('Completeness\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20unchanged).'),'missing_dimensions':z['array'](z['string']())['describe']('Dimensions\x20still\x20missing\x20for\x20this\x20object.')})['strict']())['optional']()['describe']('Per-object\x20puzzle\x20snapshots,\x20keyed\x20by\x20object_type.\x20Pass\x20the\x20\x27puzzles\x27\x20field\x20from\x20a\x20prior\x20'+'analyze_intent\x20result\x20UNCHANGED.\x20When\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20'+'analyze_intent\x20first\x20(C1→C2\x20in\x20one\x20call).'),...IntentContextFields,'severity_threshold':z['enum'](['critical','high','medium','low','info'])['optional']()['describe']('Severity\x20threshold\x20(default\x20\x27high\x27).\x20Risks\x20at\x20or\x20above\x20this\x20level\x20block\x20deployment\x20(status\x20RISK_BLOCKED).'),'user_confirmed_high_risks':z['array'](z['string']())['optional']()['describe']('IDs\x20of\x20high\x20risks\x20already\x20confirmed\x20in\x20a\x20prior\x20round.\x20Confirmed\x20high\x20risks\x20no\x20longer\x20'+'trigger\x20RISK_PENDING_CONFIRM.'),'planned_objects':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27guard\x27,\x20\x27machine\x27).'),'is_new':z['boolean']()['describe']('true\x20when\x20creating\x20a\x20NEW\x20object;\x20false\x20when\x20reusing\x20an\x20existing\x20one.'),'name':z['string']()['optional']()['describe']('Planned\x20object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20objects\x20for\x20the\x20OBJECT_REUSE\x20check\x20(safety-rules).\x20Flags\x20NEW\x20objects\x20whose\x20type\x20'+'carries\x20an\x20always/strongly-recommended\x20reuse\x20rule.'),'planned_operations':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27arbitration\x27).'),'trigger':z['enum'](['create','publish'])['describe']('Lifecycle\x20trigger\x20that\x20locks\x20fields.'),'name':z['string']()['optional']()['describe']('Object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20create/publish\x20operations\x20for\x20the\x20IMMUTABILITY\x20check\x20(safety-rules).\x20Warns\x20which\x20'+'fields\x20become\x20permanently\x20locked\x20after\x20each\x20operation.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C2:\x20puzzle\x20snapshots\x20→\x20cross-object\x20risk\x20calibration\x20(critical/high/medium/low/info)\x20with\x20blocking\x20'+'status.\x20DX\x20sugar:\x20when\x20\x27puzzles\x27\x20is\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20analyze_intent\x20first.'),z['object']({'action':z['literal']('trace_substeps'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier,\x20e.g.\x20\x27myshop\x27).\x20Used\x20to\x20key\x20the\x20service-build\x20stage\x20cache.'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27)\x20for\x20the\x20service-build\x20stage\x20cache.\x20Defaults\x20to\x20\x27v1\x27.'),'substeps':z['array'](z['object']({'step_id':z['string']()['describe']('Substep\x20id,\x20format\x20\x27T<step>.<substep>\x27\x20e.g.\x20\x27T1.1\x27.'),'parent_step':z['string']()['describe']('Parent\x20step\x20id,\x20format\x20\x27T<step>\x27\x20e.g.\x20\x27T1\x27.'),'object_type':ProjectObjectTypeEnum['describe']('Wowok\x20object\x20type\x20this\x20substep\x20operates\x20on.'),'entry_id':z['string']()['describe']('Puzzle\x20entry_id\x20this\x20substep\x20corresponds\x20to.'),'operation_type':z['string']()['describe']('operation_type\x20for\x20onchain_operations.'),'network':z['enum'](['testnet','mainnet'])['describe']('Target\x20network.'),'input':z['object']({'data':z['record'](z['string'](),z['unknown']())['describe']('Input\x20data\x20payload.'),'input_refs':z['array'](z['string']())['describe']('Upstream\x20substep_ids\x20this\x20substep\x20consumes.')})['strict'](),'output':z['object']({'object_id':z['string']()['optional'](),'tx_digest':z['string']()['optional']()})['catchall'](z['unknown']())['optional']()['describe']('Output\x20data\x20(filled\x20after\x20execution).'),'timestamp':z['number']()['describe']('Execution\x20timestamp\x20(ms).'),'status':z['enum'](['PENDING','SUCCESS','FAILED','SKIPPED'])['describe']('Execution\x20status.'),'failure_reason':z['string']()['optional']()['describe']('Failure\x20reason\x20(when\x20status=\x27FAILED\x27).'),'dependencies':z['object']({'input_refs':z['array'](z['string']()),'output_refs':z['array'](z['object']({'substep_id':z['string']()['describe']('Downstream\x20substep\x20that\x20consumes\x20this\x20output.'),'field_path':z['string']()['describe']('Field\x20path\x20produced\x20by\x20this\x20substep\x20(e.g.\x20\x27permission_address\x27).')})['strict']())})['strict']()['describe']('Dependencies\x20(input_refs\x20+\x20output_refs).'),'retry_info':z['object']({'original_step_id':z['string'](),'retry_count':z['number'](),'retry_reason':z['string']()})['strict']()['optional']()['describe']('Retry\x20info\x20(when\x20this\x20substep\x20is\x20a\x20retry\x20of\x20an\x20earlier\x20one).')})['strict']())['optional']()['describe']('Substep\x20execution\x20records\x20(63-spec\x20§2.1).\x20Required\x20when\x20action=\x27trace_substeps\x27.\x20'+'Construct\x20from\x20your\x20deployment\x20execution\x20trace.'),'substep_edges':z['array'](z['object']({'source':z['string']()['describe']('Source\x20substep\x20id.'),'target':z['string']()['describe']('Target\x20substep\x20id\x20(depends\x20on\x20source).'),'field_path':z['string']()['describe']('Field\x20path\x20flowing\x20along\x20this\x20edge.')})['strict']())['optional']()['describe']('Explicit\x20DAG\x20edges.\x20When\x20omitted,\x20edges\x20are\x20derived\x20from\x20each\x20substep\x27s\x20input_refs.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C3:\x20substep\x20execution\x20records\x20→\x20DAG\x20coherence\x20analysis\x20(dangling\x20inputs,\x20circular\x20refs,\x20'+'missing\x20outputs,\x20cross-step\x20breaks,\x20topological\x20order,\x20D-10\x20verdict).'),z['object']({'action':z['literal']('merchant_guide'),...IntentContextFields,'guide_state':z['object']({'intent_text':z['string']()['describe']('Step\x201:\x20raw\x20merchant\x20business\x20description.'),'confirmed_industry':z['string']()['optional']()['describe']('Step\x202:\x20merchant-confirmed\x20industry\x20id.'),'currency':z['string']()['optional']()['describe']('Step\x205:\x20payment\x20currency\x20(default\x20WOW).'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204:\x20merchant-defined\x20deliverables\x20(opaque\x20passthrough).'),'payment_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205:\x20payment\x20structure\x20overrides\x20(opaque\x20passthrough).'),'trust_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206:\x20trust\x20mechanism\x20overrides\x20(opaque\x20passthrough).'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206:\x20merchant-confirmed\x20business\x20module\x20ids.'),'guard_resolutions':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Accumulated\x20judgment-layer\x20guard\x20resolutions\x20(C6-DEEP)\x20—\x20pass\x20back\x20UNCHANGED\x20with\x20the\x20rest\x20of\x20the\x20state.')})['strict']()['optional']()['describe']('Wizard\x20state\x20from\x20a\x20prior\x20merchant_guide\x20result.\x20Pass\x20back\x20UNCHANGED\x20on\x20every\x20subsequent\x20call.\x20'+'The\x20handler\x20re-runs\x20the\x20pipeline\x20deterministically\x20and\x20advances\x20to\x20the\x20furthest\x20reachable\x20step.'),'guide_confirm':z['object']({'industry':z['string']()['optional']()['describe']('Step\x202\x20confirmation:\x20industry\x20id\x20(e.g.\x20\x27freelance\x27).'),'currency':z['string']()['optional']()['describe']('Step\x205\x20confirmation:\x20payment\x20currency.'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204\x20confirmation:\x20deliverable\x20definitions.'),'payment':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205\x20confirmation:\x20{\x20model,\x20triggers,\x20allocation\x20}\x20overrides.'),'trust':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206\x20confirmation:\x20{\x20refundPolicy,\x20arbitration,\x20escrow\x20}\x20overrides.'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206\x20confirmation:\x20business\x20module\x20ids\x20to\x20adopt\x20(overrides\x20recommendation).'),'guard_resolutions':z['record'](z['string'](),GuardResolutionInputSchema)['optional']()['describe']('Judgment-layer\x20resolutions\x20for\x20pending\x20guard\x20designs\x20(keyed\x20by\x20pending_guard_designs[].key;\x20C6-DEEP).\x20'+'A\x20blocked\x20audit\x20lists\x20every\x20unresolved\x20design\x20—\x20resolve\x20each\x20here\x20(kind\x20\x27inline\x27\x20with\x20the\x20resolved\x20Guard\x20table+root,\x20or\x20'+'kind\x20\x27template\x27\x20with\x20a\x20matching\x20tpl_*\x20id)\x20and\x20call\x20merchant_guide\x20again.\x20Caller\x20input\x20wins\x20over\x20module-derived\x20resolutions.\x20'+'The\x20publish\x20freeze\x20gate\x20still\x20runs:\x20a\x20resolution\x20only\x20unblocks\x20the\x20plan\x20when\x20the\x20closed\x20audit\x20is\x20clean.')})['strict']()['optional']()['describe']('Merchant\x20decisions\x20for\x20the\x20current\x20wizard\x20step.\x20Merged\x20over\x20guide_state.\x20Typical\x20flow:\x20'+'call\x201\x20with\x20intent\x20only\x20→\x20receive\x20step-2\x20industry\x20options\x20→\x20call\x202\x20with\x20guide_state\x20+\x20'+'guide_confirm={industry}\x20→\x20receive\x20full\x20blueprint\x20plan\x20(steps\x207-10).'),'network':NetworkEnum['optional']()})['strict']()['describe']('10-step\x20merchant\x20onboarding\x20wizard:\x20intent\x20text\x20→\x20BusinessIntent\x20→\x20industry\x20confirmation\x20→\x20'+'module\x20adoption\x20→\x20Blueprint\x20(L1\x20plan\x20projection)\x20→\x20evaluation\x20preview\x20→\x20harness\x20check\x20→\x20creation\x20'+'plan.\x20NEVER\x20executes\x20on-chain\x20operations.\x20Stateless:\x20pass\x20guide_state/guide_confirm\x20to\x20advance.')];const KeywordMatchSchema=z['object']({'keyword':z['string'](),'category':z['string'](),'matched_objects':z['array'](z['string']()),'required_level':z['enum'](['R','C','OPTIONAL']),'match_count':z['number']()})['strict']();export const AnalyzeIntentResultSchema=z['object']({'action':z['literal']('analyze_intent'),'intent_parsed':z['object']({'primary_object':z['string']()['describe']('Primary\x20object\x20inferred\x20from\x20the\x20intent\x20keywords.'),'secondary_objects':z['array'](z['string']())['describe']('Supporting\x20objects\x20typically\x20required\x20alongside\x20the\x20primary\x20one.'),'detected_scenes':z['array'](z['object']({'object':z['string'](),'scene_id':z['string']()['describe']('Free-form\x20scene\x20id,\x20e.g.\x20\x27retail\x27,\x20\x27rental_return\x27.')})['strict']())['describe']('Scenes\x20detected\x20from\x20the\x20intent\x20(used\x20for\x20template\x20selection).'),'industry':z['string']()['describe']('Industry\x20mode\x20resolved\x20from\x20the\x20intent\x20(defaults\x20to\x20\x27general\x27).'),'keyword_matches':z['array'](KeywordMatchSchema)['describe']('All\x20keyword\x20matches\x20that\x20drove\x20the\x20identification.')})['strict'](),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown'](),'completeness':z['unknown'](),'missing_dimensions':z['array'](z['string']())})['strict']())['describe']('Per-object\x20puzzle\x20snapshot,\x20keyed\x20by\x20object_type.\x20Pass\x20this\x20UNCHANGED\x20to\x20aggregate_risks.'),'overall_completeness':z['enum'](['complete','partial','empty']),'next_step':z['string']()['describe']('Human-readable\x20suggestion\x20for\x20the\x20next\x20puzzle\x20step.'),'recommended_creation_order':z['array'](z['string']())['describe']('Recommended\x20object\x20creation\x20order\x20(dependency\x20topology).'),'warnings':z['array'](z['string']())})['strict']();const AggregatedRiskSchema=z['object']({'risk_rule_id':z['string']()['describe']('Unified\x20risk\x20rule\x20id,\x20e.g.\x20\x27R-S-01\x27.'),'object_type':z['string'](),'entry_id':z['string']()['describe']('Object\x20entry_id\x20(\x27*\x27\x20when\x20cross-object).'),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'fix_suggestion':z['string'](),'details':z['object']({'field_path':z['string']()['optional'](),'actual_value':z['unknown']()['optional'](),'expected_value':z['unknown']()['optional'](),'rule_source':z['string']()['optional']()})['strict']()['optional']()})['strict'](),SafetyFindingSchema=z['object']({'rule_id':z['string']()['describe']('Safety\x20rule\x20id\x20(e.g.\x20\x27REUSE-SERVICE-01\x27,\x20\x27IMMUT-001\x27).'),'severity':z['enum'](['info','warn']),'message':z['string']()})['strict']();export const AggregateRisksResultSchema=z['object']({'action':z['literal']('aggregate_risks'),'namespace':z['object']({'prefix':z['string'](),'version':z['string'](),'industry':z['string']()['optional']()})['strict'](),'findings':z['array'](AggregatedRiskSchema)['describe']('All\x20risks\x20found,\x20sorted\x20(critical\x20first).'),'severity_summary':z['record'](z['string'](),z['number']())['describe']('Counts\x20keyed\x20by\x20severity.'),'status':z['enum'](['STATIC_ANALYZERS_CLEAN','RISK_BLOCKED','RISK_PENDING_CONFIRM','RISK_CANCELLED'])['describe']('Aggregated\x20status\x20(62-spec\x20§3.2).\x20RISK_BLOCKED\x20=\x20critical\x20or\x20above-threshold\x20risks\x20present.\x20'+'⚠️\x20THIS\x20IS\x20A\x20SEVERITY\x20VERDICT,\x20NOT\x20PUBLISH\x20CLEARANCE:\x20the\x20aggregation\x20is\x20a\x20pure\x20transformation\x20over\x20puzzle\x20'+'snapshots\x20and\x20planned\x20objects/operations\x20and\x20never\x20reads\x20a\x20live\x20object.\x20STATIC_ANALYZERS_CLEAN\x20means\x20\x27no\x20finding\x20in\x20the\x20static\x20'+'analyzers\x27\x20—\x20read\x20`evidence_scope`\x20/\x20`publish_authorized`\x20before\x20treating\x20it\x20as\x20a\x20green\x20light.'),'pending_confirmations':z['array'](z['object']({'risk_rule_id':z['string'](),'description':z['string'](),'fix_suggestion':z['string'](),'object_type':z['string'](),'entry_id':z['string']()})['strict']())['optional']()['describe']('high\x20risks\x20awaiting\x20user\x20confirmation\x20(only\x20when\x20status=\x27RISK_PENDING_CONFIRM\x27).'),'evidence_scope':z['enum'](['puzzle_snapshots_only','object_grounded'])['optional']()['describe']('What\x20this\x20aggregation\x20actually\x20inspected.\x20Always\x20\x27puzzle_snapshots_only\x27\x20today:\x20the\x20C1→C4\x20pipeline\x20performs\x20no\x20chain\x20'+'reads.\x20Machine-readable\x20form\x20of\x20the\x20scope\x20warning\x20—\x20a\x20caller\x20must\x20not\x20have\x20to\x20infer\x20it\x20from\x20prose.'),'object_grounded':z['boolean']()['optional']()['describe']('True\x20only\x20if\x20a\x20live\x20on-chain\x20object\x20was\x20inspected.\x20Currently\x20always\x20false\x20(see\x20evidence_scope).'),'publish_authorized':z['boolean']()['optional']()['describe']('Whether\x20this\x20gate\x20alone\x20authorizes\x20publishing.\x20Currently\x20always\x20false:\x20use\x20template_scan\x20before\x20deploying\x20and\x20'+'service_panorama\x20/\x20onchain_objects\x20after,\x20plus\x20the\x20publish-time\x20gates\x20in\x20onchain_operations.'),'publish_authorized_reason':z['string']()['optional']()['describe']('Why\x20publish_authorized\x20is\x20false,\x20and\x20which\x20checks\x20to\x20run\x20instead.'),'calibrated_at':z['number']()['describe']('Calibration\x20timestamp\x20(ms).'),'fix_suggestions_grouped':z['record'](z['string'](),z['array'](z['object']({'risk_rule_id':z['string'](),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'fix_suggestion':z['string'](),'entry_id':z['string']()})['strict']()))['optional']()['describe']('Fix\x20suggestions\x20grouped\x20by\x20object_type.'),'safety_findings':z['array'](SafetyFindingSchema)['optional']()['describe']('OBJECT_REUSE\x20/\x20IMMUTABILITY\x20findings\x20from\x20safety-rules\x20(only\x20when\x20planned_objects\x20/\x20planned_operations\x20were\x20provided).'),'intent_echo':z['object']({'primary_object':z['string'](),'industry':z['string'](),'overall_completeness':z['enum'](['complete','partial','empty'])})['strict']()['optional']()['describe']('Echo\x20of\x20the\x20auto-run\x20analyze_intent\x20(only\x20when\x20\x27puzzles\x27\x20was\x20omitted\x20and\x20\x27intent\x27\x20was\x20used).'),'warnings':z['array'](z['string']())})['strict']();export const TraceSubstepsResultSchema=z['object']({'action':z['literal']('trace_substeps'),'namespace':z['object']({'prefix':z['string'](),'version':z['string']()})['strict'](),'network':z['enum'](['testnet','mainnet']),'coherent':z['boolean']()['describe']('True\x20when\x20no\x20dangling\x20inputs,\x20no\x20cycles,\x20no\x20missing\x20outputs,\x20no\x20cross-step\x20breaks.'),'dangling_inputs':z['array'](z['object']({'substep_id':z['string'](),'missing_ref':z['string'](),'field_path':z['string']()})['strict']())['describe']('Input\x20refs\x20pointing\x20to\x20non-existent\x20substeps.'),'circular_refs':z['array'](z['object']({'cycle':z['array'](z['string']())})['strict']())['describe']('Substep\x20id\x20cycles\x20(when\x20present,\x20topological_order\x20is\x20empty).'),'missing_outputs':z['array'](z['object']({'substep_id':z['string'](),'expected_field':z['string'](),'dependent_substeps':z['array'](z['string']())})['strict']())['describe']('Substeps\x20that\x20should\x20have\x20produced\x20a\x20field\x20but\x20did\x20not.'),'cross_step_breaks':z['array'](z['object']({'source_step':z['string'](),'target_step':z['string'](),'missing_field':z['string']()})['strict']())['describe']('Upstream\x20step\x20failed\x20→\x20downstream\x20cannot\x20proceed.'),'step_details':z['array'](z['object']({'parent_step':z['string'](),'total_substeps':z['number'](),'successful':z['number'](),'failed':z['number'](),'pending':z['number'](),'skipped':z['number'](),'substep_ids':z['array'](z['string']())})['strict']())['describe']('Per-step\x20summary,\x20keyed\x20by\x20parent_step.'),'topological_order':z['array'](z['string']())['describe']('Topological\x20order\x20of\x20substep\x20ids\x20(empty\x20when\x20a\x20cycle\x20exists).'),'d10_check':z['object']({'check_id':z['literal']('D-10'),'description':z['string'](),'status':z['enum'](['PASS','FAIL','WARN']),'notes':z['array'](z['string']())})['strict']()['describe']('D-10\x20substep\x20linkage\x20completeness\x20verdict.')})['strict']();export const MerchantGuideResultSchema=z['object']({'action':z['literal']('merchant_guide'),'current_step':z['number']()['describe']('Furthest\x20wizard\x20step\x20reached\x20(2\x20=\x20awaiting\x20industry\x20confirmation;\x209\x20=\x20harness\x20issues\x20found;\x2010\x20=\x20plan\x20ready).'),'step_name':z['string'](),'guide_state':z['object']({'intent_text':z['string'](),'confirmed_industry':z['string']()['optional'](),'currency':z['string']()['optional'](),'deliverables':z['array'](z['unknown']())['optional'](),'payment_override':z['record'](z['string'](),z['unknown']())['optional'](),'trust_override':z['record'](z['string'](),z['unknown']())['optional'](),'adopted_module_ids':z['array'](z['string']())['optional'](),'guard_resolutions':z['record'](z['string'](),z['unknown']())['optional']()})['strict']()['describe']('Wizard\x20state\x20—\x20pass\x20back\x20UNCHANGED\x20on\x20the\x20next\x20merchant_guide\x20call.'),'intent_draft':z['unknown']()['optional']()['describe']('Step\x201-2\x20only:\x20BusinessIntent\x20draft\x20inferred\x20from\x20the\x20description.'),'industry_options':z['object']({'inferred':z['string'](),'confidence':z['number'](),'similar':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x202\x20only:\x20industry\x20candidates\x20awaiting\x20merchant\x20confirmation.'),'intent':z['unknown']()['optional']()['describe']('Steps\x207-10:\x20final\x20BusinessIntent\x20after\x20merchant\x20overrides.'),'adopted_modules':z['array'](z['object']({'id':z['string'](),'name':z['string'](),'description':z['string'](),'requires_keeper':z['boolean'](),'keeper_hint':z['string']()['optional'](),'user_protections':z['array'](z['string']()),'merchant_obligations':z['array'](z['string']())})['strict']())['optional']()['describe']('Steps\x206-10:\x20adopted\x20business\x20modules\x20with\x20protections/obligations.'),'blueprint':z['object']({'nodes':z['array'](z['object']({'id':z['string'](),'type':z['string'](),'purpose':z['string']()})['strict']()),'edges':z['array'](z['object']({'from':z['string'](),'to':z['string'](),'relation':z['string'](),'required':z['boolean']()})['strict']())})['strict']()['optional']()['describe']('Step\x207:\x20semantic\x20object\x20graph\x20(nodes\x20+\x20edges).'),'evaluation_preview':z['unknown']()['optional']()['describe']('Step\x208:\x20estimated\x20risk/trust/completeness\x20scores\x20+\x20key\x20risks\x20+\x20module\x20boosts.'),'graph_validation':z['object']({'valid':z['boolean'](),'hard_violations':z['array'](z['object']({'id':z['string'](),'description':z['string'](),'fix':z['string']()['optional']()})['strict']()),'soft_notes':z['array'](z['object']({'id':z['string'](),'description':z['string']()})['strict']())})['strict']()['optional']()['describe']('Step\x208:\x20structural\x20validation\x20of\x20the\x20semantic\x20graph.'),'harness_check':z['object']({'module_constraints':z['array'](z['object']({'module':z['string'](),'plan_satisfied':z['boolean'](),'missing':z['array'](z['string']())['optional'](),'reason':z['string']()['optional'](),'estimated_score_boost':z['number']()})['strict']()),'blocking_issues':z['array'](z['object']({'module':z['string'](),'missing_constraints':z['array'](z['string']())['optional'](),'fix':z['string']()['optional']()})['strict']()),'deploy_time_checks':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x209:\x20module\x20constraint\x20check\x20at\x20blueprint\x20stage\x20+\x20deploy-time\x20checklist.'),'pending_guard_designs':z['array'](z['object']({'key':z['string']()['describe']('Guard\x20design\x20key\x20—\x20the\x20guide_confirm.guard_resolutions\x20lookup\x20key.'),'template_id':z['string']()['describe']('The\x20pattern.*/tpl_*\x20design\x20id.'),'host':z['string']()['describe']('Attachment\x20surface\x20(service\x20buy\x20path,\x20machine\x20forward,\x20allocator\x20row,\x20...).'),'purpose':z['string']()['describe']('What\x20the\x20design\x20gates.'),'logic_summary':z['string']()['optional']()['describe']('Pattern\x20logic\x20sketch\x20(pattern.*\x20catalog)\x20to\x20guide\x20the\x20resolution.'),'key_queries':z['array'](z['string']())['optional']()['describe']('Key\x20queries\x20the\x20pattern\x20reads.'),'how_to_resolve':z['string']()['describe']('Exact\x20guide_confirm.guard_resolutions\x20entry\x20shape\x20for\x20this\x20design.')})['strict']())['optional']()['describe']('Step\x209\x20(blocked):\x20every\x20unresolved\x20guard\x20design\x20with\x20its\x20pattern\x27s\x20logic\x20sketch\x20(C6-DEEP).\x20'+'The\x20judgment\x20layer\x20resolves\x20each\x20via\x20guide_confirm.guard_resolutions;\x20the\x20audit\x20freeze\x20gate\x20still\x20decides.'),'game_theory':z['object']({'summary':z['string'](),'coverage':z['string']()['describe']('Covered/total\x20scenario\x20count,\x20e.g.\x20\x274/5\x27.'),'exposed_scenarios':z['array'](z['string']()),'wow_alignments':z['array'](z['string']())['describe']('Active\x20WOW\x20mechanisms\x20aligning\x20merchant/user\x20incentives.'),'scenarios':z['array'](z['object']({'scenario':z['string'](),'covered':z['boolean'](),'conflict':z['string'](),'user_protection':z['string'](),'evaluation_metric':z['string'](),'recommendation':z['string']()['optional']()})['strict']())})['strict']()['optional']()['describe']('Step\x209:\x20merchant-user\x20adversarial\x20scenario\x20coverage.\x205\x20canonical\x20scenarios\x20checked\x20against\x20the\x20blueprint.'),'creation_plan':z['array'](z['object']({'order':z['number'](),'node_id':z['string'](),'object_type':z['string'](),'suggested_name':z['string'](),'depends_on':z['array'](z['string']()),'operation_hint':z['string']()})['strict']())['optional']()['describe']('Step\x2010:\x20topologically\x20ordered\x20creation\x20plan.\x20NOT\x20executed\x20—\x20materialize\x20via\x20onchain_operations.'),'post_deploy_steps':z['array'](z['object']({'order':z['number'](),'id':z['string'](),'title':z['string'](),'when':z['string'](),'action':z['string'](),'tool_hint':z['string'](),'failure_if_skipped':z['string']()})['strict']())['optional']()['describe']('Step\x2010:\x20ordered\x20executable\x20post-deploy\x20steps\x20(compensation\x20fund\x20top-up\x20R-4,\x20arbitration\x20unpause\x20R-5,\x20settlement\x20alloc_by_guard\x20R-2,\x20panorama\x20verification).\x20Run\x20via\x20onchain_operations\x20AFTER\x20the\x20creation\x20plan\x20materializes.'),'warnings':z['array'](z['string']()),'next_action':z['string']()['describe']('Human-readable\x20guidance\x20for\x20the\x20next\x20call.')})['strict']();
|
|
1
|
+
import{z}from'zod';const NetworkEnum=z['enum'](['mainnet','testnet']);export const PlanningIndustryEnum=z['string']()['regex'](/^[a-z][a-z0-9_]*$/,'industry\x20must\x20be\x20lowercase\x20snake_case');export const ProjectObjectTypeEnum=z['enum'](['service','machine','guard','permission','reward','arb','progress','treasury','demand','repository','contact','order','allocation','personal','payment','proof']);const IntentContextFields={'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20with\x20deposit\x20and\x20damage\x20inspection\x27).\x20'+'Used\x20as\x20the\x20primary\x20input;\x20falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'project_name':z['string']()['min'](0x1)['max'](0xc8)['optional']()['describe']('Optional\x20business\x20name\x20—\x20used\x20as\x20an\x20intent\x20fallback\x20when\x20\x27intent\x27\x20is\x20omitted.'),'project_description':z['string']()['max'](0x7d0)['optional']()['describe']('Optional\x20business\x20description\x20—\x20used\x20as\x20an\x20intent\x20fallback\x20when\x20\x27intent\x27\x20is\x20omitted.'),'project_industry':PlanningIndustryEnum['optional']()['describe']('Industry\x20tag.\x20Drives\x20industry-specific\x20risk\x20calibration\x20(e.g.\x20\x27freelance\x27\x20does\x20NOT\x20require\x20'+'compensation_fund,\x20while\x20\x27rental\x27/\x27travel\x27\x20do).\x20Any\x20registered\x20industry\x20is\x20accepted\x20—\x20'+'builtin:\x20\x27general\x27,\x20\x27retail\x27,\x20\x27retail_d2c\x27,\x20\x27service\x27,\x20\x27rental\x27,\x20\x27freelance\x27,\x20\x27education\x27,\x20'+'\x27travel\x27,\x20\x27subscription\x27,\x20\x27custom\x27\x20—\x20plus\x20custom\x20industries\x20registered\x20via\x20industry\x20packs.')};export const GuardResolutionInputSchema=z['union']([z['object']({'kind':z['literal']('template'),'template_id':z['string']()['describe']('A\x20\x27tpl_*\x27\x20guard\x20template\x20id\x20to\x20fill\x20(template\x20fee_params\x20+\x20params\x20feed\x20the\x20fill).'),'params':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Extra\x20fill\x20params\x20over\x20the\x20merged\x20fee_params.')})['strict'](),z['object']({'kind':z['literal']('inline'),'description':z['string']()['optional']()['describe']('Guard\x20description\x20(defaults\x20to\x20the\x20pending\x20design\x27s\x20purpose).'),'table':z['array'](z['record'](z['string'](),z['unknown']()))['describe']('Guard\x20passport\x20table\x20rows\x20(identifier/b_submission/value_type/...).'),'root':z['unknown']()['describe']('Guard\x20logic\x20root\x20node.')})['strict']()]);export const PlanningActionMembers=[z['object']({'action':z['literal']('analyze_intent'),...IntentContextFields,'target_objects':z['array'](z['string']())['optional']()['describe']('Optional\x20explicit\x20target\x20objects\x20(entry_ids\x20or\x20object_type\x20names).\x20'+'When\x20provided,\x20puzzle\x20snapshots\x20are\x20restricted\x20to\x20these\x20objects.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C1:\x20natural-language\x20business\x20intent\x20→\x20parsed\x20intent\x20(primary/secondary\x20objects,\x20'+'detected\x20scenes,\x20industry)\x20+\x20per-object\x20puzzle\x20snapshots\x20+\x20recommended\x20creation\x20order.'),z['object']({'action':z['literal']('aggregate_risks'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier,\x20e.g.\x20\x27myshop\x27).\x20Used\x20to\x20key\x20the\x20service-build\x20stage\x20cache.'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27)\x20for\x20the\x20service-build\x20stage\x20cache.\x20Defaults\x20to\x20\x27v1\x27.'),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown']()['describe']('Puzzle\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20from\x20analyze_intent\x20output\x20unchanged).'),'completeness':z['unknown']()['describe']('Completeness\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20unchanged).'),'missing_dimensions':z['array'](z['string']())['describe']('Dimensions\x20still\x20missing\x20for\x20this\x20object.')})['strict']())['optional']()['describe']('Per-object\x20puzzle\x20snapshots,\x20keyed\x20by\x20object_type.\x20Pass\x20the\x20\x27puzzles\x27\x20field\x20from\x20a\x20prior\x20'+'analyze_intent\x20result\x20UNCHANGED.\x20When\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20'+'analyze_intent\x20first\x20(C1→C2\x20in\x20one\x20call).'),...IntentContextFields,'severity_threshold':z['enum'](['critical','high','medium','low','info'])['optional']()['describe']('Severity\x20threshold\x20(default\x20\x27high\x27).\x20Risks\x20at\x20or\x20above\x20this\x20level\x20block\x20deployment\x20(status\x20RISK_BLOCKED).'),'user_confirmed_high_risks':z['array'](z['string']())['optional']()['describe']('IDs\x20of\x20high\x20risks\x20already\x20confirmed\x20in\x20a\x20prior\x20round.\x20Confirmed\x20high\x20risks\x20no\x20longer\x20'+'trigger\x20RISK_PENDING_CONFIRM.'),'planned_objects':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27guard\x27,\x20\x27machine\x27).'),'is_new':z['boolean']()['describe']('true\x20when\x20creating\x20a\x20NEW\x20object;\x20false\x20when\x20reusing\x20an\x20existing\x20one.'),'name':z['string']()['optional']()['describe']('Planned\x20object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20objects\x20for\x20the\x20OBJECT_REUSE\x20check\x20(safety-rules).\x20Flags\x20NEW\x20objects\x20whose\x20type\x20'+'carries\x20an\x20always/strongly-recommended\x20reuse\x20rule.'),'planned_operations':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27arbitration\x27).'),'trigger':z['enum'](['create','publish'])['describe']('Lifecycle\x20trigger\x20that\x20locks\x20fields.'),'name':z['string']()['optional']()['describe']('Object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20create/publish\x20operations\x20for\x20the\x20IMMUTABILITY\x20check\x20(safety-rules).\x20Warns\x20which\x20'+'fields\x20become\x20permanently\x20locked\x20after\x20each\x20operation.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C2:\x20puzzle\x20snapshots\x20→\x20cross-object\x20risk\x20calibration\x20(critical/high/medium/low/info)\x20with\x20blocking\x20'+'status.\x20DX\x20sugar:\x20when\x20\x27puzzles\x27\x20is\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20analyze_intent\x20first.'),z['object']({'action':z['literal']('trace_substeps'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier,\x20e.g.\x20\x27myshop\x27).\x20Used\x20to\x20key\x20the\x20service-build\x20stage\x20cache.'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27)\x20for\x20the\x20service-build\x20stage\x20cache.\x20Defaults\x20to\x20\x27v1\x27.'),'substeps':z['array'](z['object']({'step_id':z['string']()['describe']('Substep\x20id,\x20format\x20\x27T<step>.<substep>\x27\x20e.g.\x20\x27T1.1\x27.'),'parent_step':z['string']()['describe']('Parent\x20step\x20id,\x20format\x20\x27T<step>\x27\x20e.g.\x20\x27T1\x27.'),'object_type':ProjectObjectTypeEnum['describe']('Wowok\x20object\x20type\x20this\x20substep\x20operates\x20on.'),'entry_id':z['string']()['describe']('Puzzle\x20entry_id\x20this\x20substep\x20corresponds\x20to.'),'operation_type':z['string']()['describe']('operation_type\x20for\x20onchain_operations.'),'network':z['enum'](['testnet','mainnet'])['describe']('Target\x20network.'),'input':z['object']({'data':z['record'](z['string'](),z['unknown']())['describe']('Input\x20data\x20payload.'),'input_refs':z['array'](z['string']())['describe']('Upstream\x20substep_ids\x20this\x20substep\x20consumes.')})['strict'](),'output':z['object']({'object_id':z['string']()['optional'](),'tx_digest':z['string']()['optional']()})['catchall'](z['unknown']())['optional']()['describe']('Output\x20data\x20(filled\x20after\x20execution).'),'timestamp':z['number']()['describe']('Execution\x20timestamp\x20(ms).'),'status':z['enum'](['PENDING','SUCCESS','FAILED','SKIPPED'])['describe']('Execution\x20status.'),'failure_reason':z['string']()['optional']()['describe']('Failure\x20reason\x20(when\x20status=\x27FAILED\x27).'),'dependencies':z['object']({'input_refs':z['array'](z['string']()),'output_refs':z['array'](z['object']({'substep_id':z['string']()['describe']('Downstream\x20substep\x20that\x20consumes\x20this\x20output.'),'field_path':z['string']()['describe']('Field\x20path\x20produced\x20by\x20this\x20substep\x20(e.g.\x20\x27permission_address\x27).')})['strict']())})['strict']()['describe']('Dependencies\x20(input_refs\x20+\x20output_refs).'),'retry_info':z['object']({'original_step_id':z['string'](),'retry_count':z['number'](),'retry_reason':z['string']()})['strict']()['optional']()['describe']('Retry\x20info\x20(when\x20this\x20substep\x20is\x20a\x20retry\x20of\x20an\x20earlier\x20one).')})['strict']())['optional']()['describe']('Substep\x20execution\x20records\x20(63-spec\x20§2.1).\x20Required\x20when\x20action=\x27trace_substeps\x27.\x20'+'Construct\x20from\x20your\x20deployment\x20execution\x20trace.'),'substep_edges':z['array'](z['object']({'source':z['string']()['describe']('Source\x20substep\x20id.'),'target':z['string']()['describe']('Target\x20substep\x20id\x20(depends\x20on\x20source).'),'field_path':z['string']()['describe']('Field\x20path\x20flowing\x20along\x20this\x20edge.')})['strict']())['optional']()['describe']('Explicit\x20DAG\x20edges.\x20When\x20omitted,\x20edges\x20are\x20derived\x20from\x20each\x20substep\x27s\x20input_refs.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C3:\x20substep\x20execution\x20records\x20→\x20DAG\x20coherence\x20analysis\x20(dangling\x20inputs,\x20circular\x20refs,\x20'+'missing\x20outputs,\x20cross-step\x20breaks,\x20topological\x20order,\x20D-10\x20verdict).'),z['object']({'action':z['literal']('merchant_guide'),...IntentContextFields,'guide_state':z['object']({'intent_text':z['string']()['describe']('Step\x201:\x20raw\x20merchant\x20business\x20description.'),'confirmed_industry':z['string']()['optional']()['describe']('Step\x202:\x20merchant-confirmed\x20industry\x20id.'),'currency':z['string']()['optional']()['describe']('Step\x205:\x20payment\x20currency\x20(default\x20WOW).'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204:\x20merchant-defined\x20deliverables\x20(opaque\x20passthrough).'),'payment_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205:\x20payment\x20structure\x20overrides\x20(opaque\x20passthrough).'),'trust_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206:\x20trust\x20mechanism\x20overrides\x20(opaque\x20passthrough).'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206:\x20merchant-confirmed\x20business\x20module\x20ids.'),'guard_resolutions':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Accumulated\x20judgment-layer\x20guard\x20resolutions\x20(C6-DEEP)\x20—\x20pass\x20back\x20UNCHANGED\x20with\x20the\x20rest\x20of\x20the\x20state.'),'review_mode':z['enum'](['review','review_reward','none'])['optional']()['describe']('Per-build\x20review-rail\x20mode\x20(v53).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20review_mode\x20applies.'),'reward_funding':z['string']()['optional']()['describe']('Review\x20reward\x20pool\x20funding,\x20smallest-unit\x20string\x20(required\x20when\x20the\x20effective\x20review\x20mode\x20is\x20review_reward).')})['strict']()['optional']()['describe']('Wizard\x20state\x20from\x20a\x20prior\x20merchant_guide\x20result.\x20Pass\x20back\x20UNCHANGED\x20on\x20every\x20subsequent\x20call.\x20'+'The\x20handler\x20re-runs\x20the\x20pipeline\x20deterministically\x20and\x20advances\x20to\x20the\x20furthest\x20reachable\x20step.'),'guide_confirm':z['object']({'industry':z['string']()['optional']()['describe']('Step\x202\x20confirmation:\x20industry\x20id\x20(e.g.\x20\x27freelance\x27).'),'currency':z['string']()['optional']()['describe']('Step\x205\x20confirmation:\x20payment\x20currency.'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204\x20confirmation:\x20deliverable\x20definitions.'),'payment':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205\x20confirmation:\x20{\x20model,\x20triggers,\x20allocation\x20}\x20overrides.'),'trust':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206\x20confirmation:\x20{\x20refundPolicy,\x20arbitration,\x20escrow\x20}\x20overrides.'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206\x20confirmation:\x20business\x20module\x20ids\x20to\x20adopt\x20(overrides\x20recommendation).'),'guard_resolutions':z['record'](z['string'](),GuardResolutionInputSchema)['optional']()['describe']('Judgment-layer\x20resolutions\x20for\x20pending\x20guard\x20designs\x20(keyed\x20by\x20pending_guard_designs[].key;\x20C6-DEEP).\x20'+'A\x20blocked\x20audit\x20lists\x20every\x20unresolved\x20design\x20—\x20resolve\x20each\x20here\x20(kind\x20\x27inline\x27\x20with\x20the\x20resolved\x20Guard\x20table+root,\x20or\x20'+'kind\x20\x27template\x27\x20with\x20a\x20matching\x20tpl_*\x20id)\x20and\x20call\x20merchant_guide\x20again.\x20Caller\x20input\x20wins\x20over\x20module-derived\x20resolutions.\x20'+'The\x20publish\x20freeze\x20gate\x20still\x20runs:\x20a\x20resolution\x20only\x20unblocks\x20the\x20plan\x20when\x20the\x20closed\x20audit\x20is\x20clean.'),'review_mode':z['enum'](['review','review_reward','none'])['optional']()['describe']('Step\x206\x20confirmation:\x20per-build\x20review-rail\x20mode\x20(v53).\x20Absent\x20=\x20the\x20template\x27s\x20declared\x20review_mode\x20applies.'),'reward_funding':z['string']()['optional']()['describe']('Step\x206\x20confirmation:\x20review\x20reward\x20pool\x20funding,\x20smallest-unit\x20string\x20(required\x20when\x20the\x20effective\x20review\x20mode\x20is\x20review_reward).')})['strict']()['optional']()['describe']('Merchant\x20decisions\x20for\x20the\x20current\x20wizard\x20step.\x20Merged\x20over\x20guide_state.\x20Typical\x20flow:\x20'+'call\x201\x20with\x20intent\x20only\x20→\x20receive\x20step-2\x20industry\x20options\x20→\x20call\x202\x20with\x20guide_state\x20+\x20'+'guide_confirm={industry}\x20→\x20receive\x20full\x20blueprint\x20plan\x20(steps\x207-10).'),'network':NetworkEnum['optional']()})['strict']()['describe']('10-step\x20merchant\x20onboarding\x20wizard:\x20intent\x20text\x20→\x20BusinessIntent\x20→\x20industry\x20confirmation\x20→\x20'+'module\x20adoption\x20→\x20Blueprint\x20(L1\x20plan\x20projection)\x20→\x20evaluation\x20preview\x20→\x20harness\x20check\x20→\x20creation\x20'+'plan.\x20NEVER\x20executes\x20on-chain\x20operations.\x20Stateless:\x20pass\x20guide_state/guide_confirm\x20to\x20advance.')];const KeywordMatchSchema=z['object']({'keyword':z['string'](),'category':z['string'](),'matched_objects':z['array'](z['string']()),'required_level':z['enum'](['R','C','OPTIONAL']),'match_count':z['number']()})['strict']();export const AnalyzeIntentResultSchema=z['object']({'action':z['literal']('analyze_intent'),'intent_parsed':z['object']({'primary_object':z['string']()['describe']('Primary\x20object\x20inferred\x20from\x20the\x20intent\x20keywords.'),'secondary_objects':z['array'](z['string']())['describe']('Supporting\x20objects\x20typically\x20required\x20alongside\x20the\x20primary\x20one.'),'detected_scenes':z['array'](z['object']({'object':z['string'](),'scene_id':z['string']()['describe']('Free-form\x20scene\x20id,\x20e.g.\x20\x27retail\x27,\x20\x27rental_return\x27.')})['strict']())['describe']('Scenes\x20detected\x20from\x20the\x20intent\x20(used\x20for\x20template\x20selection).'),'industry':z['string']()['describe']('Industry\x20mode\x20resolved\x20from\x20the\x20intent\x20(defaults\x20to\x20\x27general\x27).'),'keyword_matches':z['array'](KeywordMatchSchema)['describe']('All\x20keyword\x20matches\x20that\x20drove\x20the\x20identification.')})['strict'](),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown'](),'completeness':z['unknown'](),'missing_dimensions':z['array'](z['string']())})['strict']())['describe']('Per-object\x20puzzle\x20snapshot,\x20keyed\x20by\x20object_type.\x20Pass\x20this\x20UNCHANGED\x20to\x20aggregate_risks.'),'overall_completeness':z['enum'](['complete','partial','empty']),'next_step':z['string']()['describe']('Human-readable\x20suggestion\x20for\x20the\x20next\x20puzzle\x20step.'),'recommended_creation_order':z['array'](z['string']())['describe']('Recommended\x20object\x20creation\x20order\x20(dependency\x20topology).'),'warnings':z['array'](z['string']())})['strict']();const AggregatedRiskSchema=z['object']({'risk_rule_id':z['string']()['describe']('Unified\x20risk\x20rule\x20id,\x20e.g.\x20\x27R-S-01\x27.'),'object_type':z['string'](),'entry_id':z['string']()['describe']('Object\x20entry_id\x20(\x27*\x27\x20when\x20cross-object).'),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'fix_suggestion':z['string'](),'details':z['object']({'field_path':z['string']()['optional'](),'actual_value':z['unknown']()['optional'](),'expected_value':z['unknown']()['optional'](),'rule_source':z['string']()['optional']()})['strict']()['optional']()})['strict'](),SafetyFindingSchema=z['object']({'rule_id':z['string']()['describe']('Safety\x20rule\x20id\x20(e.g.\x20\x27REUSE-SERVICE-01\x27,\x20\x27IMMUT-001\x27).'),'severity':z['enum'](['info','warn']),'message':z['string']()})['strict']();export const AggregateRisksResultSchema=z['object']({'action':z['literal']('aggregate_risks'),'namespace':z['object']({'prefix':z['string'](),'version':z['string'](),'industry':z['string']()['optional']()})['strict'](),'findings':z['array'](AggregatedRiskSchema)['describe']('All\x20risks\x20found,\x20sorted\x20(critical\x20first).'),'severity_summary':z['record'](z['string'](),z['number']())['describe']('Counts\x20keyed\x20by\x20severity.'),'status':z['enum'](['STATIC_ANALYZERS_CLEAN','RISK_BLOCKED','RISK_PENDING_CONFIRM','RISK_CANCELLED'])['describe']('Aggregated\x20status\x20(62-spec\x20§3.2).\x20RISK_BLOCKED\x20=\x20critical\x20or\x20above-threshold\x20risks\x20present.\x20'+'⚠️\x20THIS\x20IS\x20A\x20SEVERITY\x20VERDICT,\x20NOT\x20PUBLISH\x20CLEARANCE:\x20the\x20aggregation\x20is\x20a\x20pure\x20transformation\x20over\x20puzzle\x20'+'snapshots\x20and\x20planned\x20objects/operations\x20and\x20never\x20reads\x20a\x20live\x20object.\x20STATIC_ANALYZERS_CLEAN\x20means\x20\x27no\x20finding\x20in\x20the\x20static\x20'+'analyzers\x27\x20—\x20read\x20`evidence_scope`\x20/\x20`publish_authorized`\x20before\x20treating\x20it\x20as\x20a\x20green\x20light.'),'pending_confirmations':z['array'](z['object']({'risk_rule_id':z['string'](),'description':z['string'](),'fix_suggestion':z['string'](),'object_type':z['string'](),'entry_id':z['string']()})['strict']())['optional']()['describe']('high\x20risks\x20awaiting\x20user\x20confirmation\x20(only\x20when\x20status=\x27RISK_PENDING_CONFIRM\x27).'),'evidence_scope':z['enum'](['puzzle_snapshots_only','object_grounded'])['optional']()['describe']('What\x20this\x20aggregation\x20actually\x20inspected.\x20Always\x20\x27puzzle_snapshots_only\x27\x20today:\x20the\x20C1→C4\x20pipeline\x20performs\x20no\x20chain\x20'+'reads.\x20Machine-readable\x20form\x20of\x20the\x20scope\x20warning\x20—\x20a\x20caller\x20must\x20not\x20have\x20to\x20infer\x20it\x20from\x20prose.'),'object_grounded':z['boolean']()['optional']()['describe']('True\x20only\x20if\x20a\x20live\x20on-chain\x20object\x20was\x20inspected.\x20Currently\x20always\x20false\x20(see\x20evidence_scope).'),'publish_authorized':z['boolean']()['optional']()['describe']('Whether\x20this\x20gate\x20alone\x20authorizes\x20publishing.\x20Currently\x20always\x20false:\x20use\x20template_scan\x20before\x20deploying\x20and\x20'+'service_panorama\x20/\x20onchain_objects\x20after,\x20plus\x20the\x20publish-time\x20gates\x20in\x20onchain_operations.'),'publish_authorized_reason':z['string']()['optional']()['describe']('Why\x20publish_authorized\x20is\x20false,\x20and\x20which\x20checks\x20to\x20run\x20instead.'),'calibrated_at':z['number']()['describe']('Calibration\x20timestamp\x20(ms).'),'fix_suggestions_grouped':z['record'](z['string'](),z['array'](z['object']({'risk_rule_id':z['string'](),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'fix_suggestion':z['string'](),'entry_id':z['string']()})['strict']()))['optional']()['describe']('Fix\x20suggestions\x20grouped\x20by\x20object_type.'),'safety_findings':z['array'](SafetyFindingSchema)['optional']()['describe']('OBJECT_REUSE\x20/\x20IMMUTABILITY\x20findings\x20from\x20safety-rules\x20(only\x20when\x20planned_objects\x20/\x20planned_operations\x20were\x20provided).'),'intent_echo':z['object']({'primary_object':z['string'](),'industry':z['string'](),'overall_completeness':z['enum'](['complete','partial','empty'])})['strict']()['optional']()['describe']('Echo\x20of\x20the\x20auto-run\x20analyze_intent\x20(only\x20when\x20\x27puzzles\x27\x20was\x20omitted\x20and\x20\x27intent\x27\x20was\x20used).'),'warnings':z['array'](z['string']())})['strict']();export const TraceSubstepsResultSchema=z['object']({'action':z['literal']('trace_substeps'),'namespace':z['object']({'prefix':z['string'](),'version':z['string']()})['strict'](),'network':z['enum'](['testnet','mainnet']),'coherent':z['boolean']()['describe']('True\x20when\x20no\x20dangling\x20inputs,\x20no\x20cycles,\x20no\x20missing\x20outputs,\x20no\x20cross-step\x20breaks.'),'dangling_inputs':z['array'](z['object']({'substep_id':z['string'](),'missing_ref':z['string'](),'field_path':z['string']()})['strict']())['describe']('Input\x20refs\x20pointing\x20to\x20non-existent\x20substeps.'),'circular_refs':z['array'](z['object']({'cycle':z['array'](z['string']())})['strict']())['describe']('Substep\x20id\x20cycles\x20(when\x20present,\x20topological_order\x20is\x20empty).'),'missing_outputs':z['array'](z['object']({'substep_id':z['string'](),'expected_field':z['string'](),'dependent_substeps':z['array'](z['string']())})['strict']())['describe']('Substeps\x20that\x20should\x20have\x20produced\x20a\x20field\x20but\x20did\x20not.'),'cross_step_breaks':z['array'](z['object']({'source_step':z['string'](),'target_step':z['string'](),'missing_field':z['string']()})['strict']())['describe']('Upstream\x20step\x20failed\x20→\x20downstream\x20cannot\x20proceed.'),'step_details':z['array'](z['object']({'parent_step':z['string'](),'total_substeps':z['number'](),'successful':z['number'](),'failed':z['number'](),'pending':z['number'](),'skipped':z['number'](),'substep_ids':z['array'](z['string']())})['strict']())['describe']('Per-step\x20summary,\x20keyed\x20by\x20parent_step.'),'topological_order':z['array'](z['string']())['describe']('Topological\x20order\x20of\x20substep\x20ids\x20(empty\x20when\x20a\x20cycle\x20exists).'),'d10_check':z['object']({'check_id':z['literal']('D-10'),'description':z['string'](),'status':z['enum'](['PASS','FAIL','WARN']),'notes':z['array'](z['string']())})['strict']()['describe']('D-10\x20substep\x20linkage\x20completeness\x20verdict.')})['strict']();export const MerchantGuideResultSchema=z['object']({'action':z['literal']('merchant_guide'),'current_step':z['number']()['describe']('Furthest\x20wizard\x20step\x20reached\x20(2\x20=\x20awaiting\x20industry\x20confirmation;\x209\x20=\x20harness\x20issues\x20found;\x2010\x20=\x20plan\x20ready).'),'step_name':z['string'](),'guide_state':z['object']({'intent_text':z['string'](),'confirmed_industry':z['string']()['optional'](),'currency':z['string']()['optional'](),'deliverables':z['array'](z['unknown']())['optional'](),'payment_override':z['record'](z['string'](),z['unknown']())['optional'](),'trust_override':z['record'](z['string'](),z['unknown']())['optional'](),'adopted_module_ids':z['array'](z['string']())['optional'](),'guard_resolutions':z['record'](z['string'](),z['unknown']())['optional'](),'review_mode':z['enum'](['review','review_reward','none'])['optional'](),'reward_funding':z['string']()['optional']()})['strict']()['describe']('Wizard\x20state\x20—\x20pass\x20back\x20UNCHANGED\x20on\x20the\x20next\x20merchant_guide\x20call.'),'intent_draft':z['unknown']()['optional']()['describe']('Step\x201-2\x20only:\x20BusinessIntent\x20draft\x20inferred\x20from\x20the\x20description.'),'industry_options':z['object']({'inferred':z['string'](),'confidence':z['number'](),'similar':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x202\x20only:\x20industry\x20candidates\x20awaiting\x20merchant\x20confirmation.'),'intent':z['unknown']()['optional']()['describe']('Steps\x207-10:\x20final\x20BusinessIntent\x20after\x20merchant\x20overrides.'),'adopted_modules':z['array'](z['object']({'id':z['string'](),'name':z['string'](),'description':z['string'](),'requires_keeper':z['boolean'](),'keeper_hint':z['string']()['optional'](),'user_protections':z['array'](z['string']()),'merchant_obligations':z['array'](z['string']())})['strict']())['optional']()['describe']('Steps\x206-10:\x20adopted\x20business\x20modules\x20with\x20protections/obligations.'),'blueprint':z['object']({'nodes':z['array'](z['object']({'id':z['string'](),'type':z['string'](),'purpose':z['string']()})['strict']()),'edges':z['array'](z['object']({'from':z['string'](),'to':z['string'](),'relation':z['string'](),'required':z['boolean']()})['strict']())})['strict']()['optional']()['describe']('Step\x207:\x20semantic\x20object\x20graph\x20(nodes\x20+\x20edges).'),'evaluation_preview':z['unknown']()['optional']()['describe']('Step\x208:\x20estimated\x20risk/trust/completeness\x20scores\x20+\x20key\x20risks\x20+\x20module\x20boosts.'),'graph_validation':z['object']({'valid':z['boolean'](),'hard_violations':z['array'](z['object']({'id':z['string'](),'description':z['string'](),'fix':z['string']()['optional']()})['strict']()),'soft_notes':z['array'](z['object']({'id':z['string'](),'description':z['string']()})['strict']())})['strict']()['optional']()['describe']('Step\x208:\x20structural\x20validation\x20of\x20the\x20semantic\x20graph.'),'harness_check':z['object']({'module_constraints':z['array'](z['object']({'module':z['string'](),'plan_satisfied':z['boolean'](),'missing':z['array'](z['string']())['optional'](),'reason':z['string']()['optional'](),'estimated_score_boost':z['number']()})['strict']()),'blocking_issues':z['array'](z['object']({'module':z['string'](),'missing_constraints':z['array'](z['string']())['optional'](),'fix':z['string']()['optional']()})['strict']()),'deploy_time_checks':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x209:\x20module\x20constraint\x20check\x20at\x20blueprint\x20stage\x20+\x20deploy-time\x20checklist.'),'pending_guard_designs':z['array'](z['object']({'key':z['string']()['describe']('Guard\x20design\x20key\x20—\x20the\x20guide_confirm.guard_resolutions\x20lookup\x20key.'),'template_id':z['string']()['describe']('The\x20pattern.*/tpl_*\x20design\x20id.'),'host':z['string']()['describe']('Attachment\x20surface\x20(service\x20buy\x20path,\x20machine\x20forward,\x20allocator\x20row,\x20...).'),'purpose':z['string']()['describe']('What\x20the\x20design\x20gates.'),'logic_summary':z['string']()['optional']()['describe']('Pattern\x20logic\x20sketch\x20(pattern.*\x20catalog)\x20to\x20guide\x20the\x20resolution.'),'key_queries':z['array'](z['string']())['optional']()['describe']('Key\x20queries\x20the\x20pattern\x20reads.'),'how_to_resolve':z['string']()['describe']('Exact\x20guide_confirm.guard_resolutions\x20entry\x20shape\x20for\x20this\x20design.')})['strict']())['optional']()['describe']('Step\x209\x20(blocked):\x20every\x20unresolved\x20guard\x20design\x20with\x20its\x20pattern\x27s\x20logic\x20sketch\x20(C6-DEEP).\x20'+'The\x20judgment\x20layer\x20resolves\x20each\x20via\x20guide_confirm.guard_resolutions;\x20the\x20audit\x20freeze\x20gate\x20still\x20decides.'),'game_theory':z['object']({'summary':z['string'](),'coverage':z['string']()['describe']('Covered/total\x20scenario\x20count,\x20e.g.\x20\x274/5\x27.'),'exposed_scenarios':z['array'](z['string']()),'wow_alignments':z['array'](z['string']())['describe']('Active\x20WOW\x20mechanisms\x20aligning\x20merchant/user\x20incentives.'),'scenarios':z['array'](z['object']({'scenario':z['string'](),'covered':z['boolean'](),'conflict':z['string'](),'user_protection':z['string'](),'evaluation_metric':z['string'](),'recommendation':z['string']()['optional']()})['strict']())})['strict']()['optional']()['describe']('Step\x209:\x20merchant-user\x20adversarial\x20scenario\x20coverage.\x205\x20canonical\x20scenarios\x20checked\x20against\x20the\x20blueprint.'),'creation_plan':z['array'](z['object']({'order':z['number'](),'node_id':z['string'](),'object_type':z['string'](),'suggested_name':z['string'](),'depends_on':z['array'](z['string']()),'operation_hint':z['string']()})['strict']())['optional']()['describe']('Step\x2010:\x20topologically\x20ordered\x20creation\x20plan.\x20NOT\x20executed\x20—\x20materialize\x20via\x20onchain_operations.'),'post_deploy_steps':z['array'](z['object']({'order':z['number'](),'id':z['string'](),'title':z['string'](),'when':z['string'](),'action':z['string'](),'tool_hint':z['string'](),'failure_if_skipped':z['string']()})['strict']())['optional']()['describe']('Step\x2010:\x20ordered\x20executable\x20post-deploy\x20steps\x20(compensation\x20fund\x20top-up\x20R-4,\x20arbitration\x20unpause\x20R-5,\x20settlement\x20alloc_by_guard\x20R-2,\x20panorama\x20verification).\x20Run\x20via\x20onchain_operations\x20AFTER\x20the\x20creation\x20plan\x20materializes.'),'warnings':z['array'](z['string']()),'next_action':z['string']()['describe']('Human-readable\x20guidance\x20for\x20the\x20next\x20call.')})['strict']();
|
|
@@ -810,6 +810,7 @@ export declare const QueryAccountResultSchema: z.ZodObject<{
|
|
|
810
810
|
hasNextPage: z.ZodBoolean;
|
|
811
811
|
nextCursor: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
812
812
|
}, z.core.$strip>>;
|
|
813
|
+
_balance_scope_note: z.ZodOptional<z.ZodString>;
|
|
813
814
|
}, z.core.$strip>;
|
|
814
815
|
export declare const AccountOperationSchema: z.ZodObject<{
|
|
815
816
|
gen: z.ZodOptional<z.ZodObject<{
|
|
@@ -1849,6 +1850,7 @@ export declare const AccountOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
1849
1850
|
network_error: "network_error";
|
|
1850
1851
|
rate_limit: "rate_limit";
|
|
1851
1852
|
gas_exceeded: "gas_exceeded";
|
|
1853
|
+
insufficient_gas: "insufficient_gas";
|
|
1852
1854
|
bcs_error: "bcs_error";
|
|
1853
1855
|
signature_error: "signature_error";
|
|
1854
1856
|
config_error: "config_error";
|
|
@@ -1856,6 +1858,7 @@ export declare const AccountOperationOutputSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
1856
1858
|
wip_storage_unavailable: "wip_storage_unavailable";
|
|
1857
1859
|
submission_unknown: "submission_unknown";
|
|
1858
1860
|
move_abort_unmapped: "move_abort_unmapped";
|
|
1861
|
+
missing_data: "missing_data";
|
|
1859
1862
|
}>>;
|
|
1860
1863
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
1861
1864
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
@@ -2237,6 +2240,7 @@ export declare const AccountOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
2237
2240
|
network_error: "network_error";
|
|
2238
2241
|
rate_limit: "rate_limit";
|
|
2239
2242
|
gas_exceeded: "gas_exceeded";
|
|
2243
|
+
insufficient_gas: "insufficient_gas";
|
|
2240
2244
|
bcs_error: "bcs_error";
|
|
2241
2245
|
signature_error: "signature_error";
|
|
2242
2246
|
config_error: "config_error";
|
|
@@ -2244,6 +2248,7 @@ export declare const AccountOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
2244
2248
|
wip_storage_unavailable: "wip_storage_unavailable";
|
|
2245
2249
|
submission_unknown: "submission_unknown";
|
|
2246
2250
|
move_abort_unmapped: "move_abort_unmapped";
|
|
2251
|
+
missing_data: "missing_data";
|
|
2247
2252
|
}>>;
|
|
2248
2253
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
2249
2254
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
@@ -2677,6 +2682,7 @@ export declare const LocalMarkOperationOutputSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
2677
2682
|
network_error: "network_error";
|
|
2678
2683
|
rate_limit: "rate_limit";
|
|
2679
2684
|
gas_exceeded: "gas_exceeded";
|
|
2685
|
+
insufficient_gas: "insufficient_gas";
|
|
2680
2686
|
bcs_error: "bcs_error";
|
|
2681
2687
|
signature_error: "signature_error";
|
|
2682
2688
|
config_error: "config_error";
|
|
@@ -2684,6 +2690,7 @@ export declare const LocalMarkOperationOutputSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
2684
2690
|
wip_storage_unavailable: "wip_storage_unavailable";
|
|
2685
2691
|
submission_unknown: "submission_unknown";
|
|
2686
2692
|
move_abort_unmapped: "move_abort_unmapped";
|
|
2693
|
+
missing_data: "missing_data";
|
|
2687
2694
|
}>>;
|
|
2688
2695
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
2689
2696
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
@@ -2731,6 +2738,7 @@ export declare const LocalMarkOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
2731
2738
|
network_error: "network_error";
|
|
2732
2739
|
rate_limit: "rate_limit";
|
|
2733
2740
|
gas_exceeded: "gas_exceeded";
|
|
2741
|
+
insufficient_gas: "insufficient_gas";
|
|
2734
2742
|
bcs_error: "bcs_error";
|
|
2735
2743
|
signature_error: "signature_error";
|
|
2736
2744
|
config_error: "config_error";
|
|
@@ -2738,6 +2746,7 @@ export declare const LocalMarkOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
2738
2746
|
wip_storage_unavailable: "wip_storage_unavailable";
|
|
2739
2747
|
submission_unknown: "submission_unknown";
|
|
2740
2748
|
move_abort_unmapped: "move_abort_unmapped";
|
|
2749
|
+
missing_data: "missing_data";
|
|
2741
2750
|
}>>;
|
|
2742
2751
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
2743
2752
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
@@ -3149,6 +3158,7 @@ export declare const LocalInfoOperationOutputSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
3149
3158
|
network_error: "network_error";
|
|
3150
3159
|
rate_limit: "rate_limit";
|
|
3151
3160
|
gas_exceeded: "gas_exceeded";
|
|
3161
|
+
insufficient_gas: "insufficient_gas";
|
|
3152
3162
|
bcs_error: "bcs_error";
|
|
3153
3163
|
signature_error: "signature_error";
|
|
3154
3164
|
config_error: "config_error";
|
|
@@ -3156,6 +3166,7 @@ export declare const LocalInfoOperationOutputSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
3156
3166
|
wip_storage_unavailable: "wip_storage_unavailable";
|
|
3157
3167
|
submission_unknown: "submission_unknown";
|
|
3158
3168
|
move_abort_unmapped: "move_abort_unmapped";
|
|
3169
|
+
missing_data: "missing_data";
|
|
3159
3170
|
}>>;
|
|
3160
3171
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
3161
3172
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
@@ -3186,6 +3197,7 @@ export declare const LocalInfoOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
3186
3197
|
network_error: "network_error";
|
|
3187
3198
|
rate_limit: "rate_limit";
|
|
3188
3199
|
gas_exceeded: "gas_exceeded";
|
|
3200
|
+
insufficient_gas: "insufficient_gas";
|
|
3189
3201
|
bcs_error: "bcs_error";
|
|
3190
3202
|
signature_error: "signature_error";
|
|
3191
3203
|
config_error: "config_error";
|
|
@@ -3193,6 +3205,7 @@ export declare const LocalInfoOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
3193
3205
|
wip_storage_unavailable: "wip_storage_unavailable";
|
|
3194
3206
|
submission_unknown: "submission_unknown";
|
|
3195
3207
|
move_abort_unmapped: "move_abort_unmapped";
|
|
3208
|
+
missing_data: "missing_data";
|
|
3196
3209
|
}>>;
|
|
3197
3210
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
3198
3211
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
@@ -3625,6 +3638,7 @@ export declare const LocalHistoryOperationOutputSchema: z.ZodDiscriminatedUnion<
|
|
|
3625
3638
|
network_error: "network_error";
|
|
3626
3639
|
rate_limit: "rate_limit";
|
|
3627
3640
|
gas_exceeded: "gas_exceeded";
|
|
3641
|
+
insufficient_gas: "insufficient_gas";
|
|
3628
3642
|
bcs_error: "bcs_error";
|
|
3629
3643
|
signature_error: "signature_error";
|
|
3630
3644
|
config_error: "config_error";
|
|
@@ -3632,6 +3646,7 @@ export declare const LocalHistoryOperationOutputSchema: z.ZodDiscriminatedUnion<
|
|
|
3632
3646
|
wip_storage_unavailable: "wip_storage_unavailable";
|
|
3633
3647
|
submission_unknown: "submission_unknown";
|
|
3634
3648
|
move_abort_unmapped: "move_abort_unmapped";
|
|
3649
|
+
missing_data: "missing_data";
|
|
3635
3650
|
}>>;
|
|
3636
3651
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
3637
3652
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
@@ -3683,6 +3698,7 @@ export declare const LocalHistoryOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
3683
3698
|
network_error: "network_error";
|
|
3684
3699
|
rate_limit: "rate_limit";
|
|
3685
3700
|
gas_exceeded: "gas_exceeded";
|
|
3701
|
+
insufficient_gas: "insufficient_gas";
|
|
3686
3702
|
bcs_error: "bcs_error";
|
|
3687
3703
|
signature_error: "signature_error";
|
|
3688
3704
|
config_error: "config_error";
|
|
@@ -3690,6 +3706,7 @@ export declare const LocalHistoryOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
3690
3706
|
wip_storage_unavailable: "wip_storage_unavailable";
|
|
3691
3707
|
submission_unknown: "submission_unknown";
|
|
3692
3708
|
move_abort_unmapped: "move_abort_unmapped";
|
|
3709
|
+
missing_data: "missing_data";
|
|
3693
3710
|
}>>;
|
|
3694
3711
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
3695
3712
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
@@ -4179,6 +4196,7 @@ export declare const LocalCacheOperationOutputSchema: z.ZodDiscriminatedUnion<[z
|
|
|
4179
4196
|
network_error: "network_error";
|
|
4180
4197
|
rate_limit: "rate_limit";
|
|
4181
4198
|
gas_exceeded: "gas_exceeded";
|
|
4199
|
+
insufficient_gas: "insufficient_gas";
|
|
4182
4200
|
bcs_error: "bcs_error";
|
|
4183
4201
|
signature_error: "signature_error";
|
|
4184
4202
|
config_error: "config_error";
|
|
@@ -4186,6 +4204,7 @@ export declare const LocalCacheOperationOutputSchema: z.ZodDiscriminatedUnion<[z
|
|
|
4186
4204
|
wip_storage_unavailable: "wip_storage_unavailable";
|
|
4187
4205
|
submission_unknown: "submission_unknown";
|
|
4188
4206
|
move_abort_unmapped: "move_abort_unmapped";
|
|
4207
|
+
missing_data: "missing_data";
|
|
4189
4208
|
}>>;
|
|
4190
4209
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
4191
4210
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
@@ -4235,6 +4254,7 @@ export declare const LocalCacheOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
4235
4254
|
network_error: "network_error";
|
|
4236
4255
|
rate_limit: "rate_limit";
|
|
4237
4256
|
gas_exceeded: "gas_exceeded";
|
|
4257
|
+
insufficient_gas: "insufficient_gas";
|
|
4238
4258
|
bcs_error: "bcs_error";
|
|
4239
4259
|
signature_error: "signature_error";
|
|
4240
4260
|
config_error: "config_error";
|
|
@@ -4242,6 +4262,7 @@ export declare const LocalCacheOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
4242
4262
|
wip_storage_unavailable: "wip_storage_unavailable";
|
|
4243
4263
|
submission_unknown: "submission_unknown";
|
|
4244
4264
|
move_abort_unmapped: "move_abort_unmapped";
|
|
4265
|
+
missing_data: "missing_data";
|
|
4245
4266
|
}>>;
|
|
4246
4267
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
4247
4268
|
recovery_hint: z.ZodOptional<z.ZodString>;
|