@wowok/agent-mcp 2.6.1 → 2.6.4
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/customer/customer-advice.d.ts +31 -0
- package/dist/customer/customer-advice.js +129 -0
- package/dist/customer/index.d.ts +2 -0
- package/dist/customer/index.js +2 -0
- package/dist/customer/info-puzzle.d.ts +9 -2
- package/dist/customer/info-puzzle.js +34 -7
- package/dist/customer/order-monitor.d.ts +2 -0
- package/dist/customer/order-monitor.js +3 -2
- package/dist/customer/post-purchase.d.ts +2 -0
- package/dist/customer/post-purchase.js +6 -5
- package/dist/customer/preorder-compare.d.ts +24 -0
- package/dist/customer/preorder-compare.js +34 -0
- package/dist/customer/reminder-system.d.ts +2 -0
- package/dist/customer/reminder-system.js +2 -1
- package/dist/customer/risk-assessment.js +30 -7
- package/dist/customer/types.d.ts +7 -0
- package/dist/examples/arbitration-dispute-create.json +41 -0
- package/dist/examples/arbitration-vote-weighted.json +35 -0
- package/dist/examples/arbitration-voting-guard-add.json +38 -0
- package/dist/examples/demand-present-service.json +33 -0
- package/dist/examples/gen-passport-verify-guard.json +48 -0
- package/dist/examples/guard-template-balance-check.json +59 -0
- package/dist/examples/guard-template-time-lock.json +60 -0
- package/dist/examples/insurance-guard-claim-timelock.json +75 -0
- package/dist/examples/insurance-guard-withdraw-allocation.json +96 -0
- package/dist/examples/insurance-machine-create-publish.json +75 -0
- package/dist/examples/insurance-service-allocators-publish.json +56 -0
- package/dist/examples/machine-multisig-threshold.json +86 -0
- package/dist/examples/machine-template-7node-rental.json +119 -0
- package/dist/examples/payment-scenario-bound.json +45 -0
- package/dist/examples/rental-ziroom-machine-create.json +149 -0
- package/dist/examples/rental-ziroom-permission-create.json +42 -0
- package/dist/examples/rental-ziroom-service-create.json +89 -0
- package/dist/examples/retail-adv-guard-customer-win-create.json +80 -0
- package/dist/examples/retail-adv-guard-messenger-proof-create.json +65 -0
- package/dist/examples/retail-adv-guard-reward-timeout-create.json +92 -0
- package/dist/examples/retail-adv-reward-guard-add.json +51 -0
- package/dist/examples/retail-myshop-allocation-activate.json +55 -0
- package/dist/examples/retail-myshop-arbitration-create.json +40 -0
- package/dist/examples/retail-myshop-contact-create.json +43 -0
- package/dist/examples/retail-myshop-order-create.json +56 -0
- package/dist/examples/retail-myshop-progress-operate.json +38 -0
- package/dist/examples/retail-myshop-reward-create.json +35 -0
- package/dist/examples/retail-myshop-service-create.json +88 -0
- package/dist/examples/service-discount-issue.json +46 -0
- package/dist/examples/threebody-guard-create.json +56 -0
- package/dist/examples/threebody-machine-create.json +72 -0
- package/dist/examples/threebody-permission-create.json +38 -0
- package/dist/examples/threebody-service-allocators.json +49 -0
- package/dist/examples/travel-guard-time-lock.json +69 -0
- package/dist/examples/travel-guard-weather-oracle.json +70 -0
- package/dist/examples/travel-machine-create.json +136 -0
- package/dist/examples/travel-repository-create.json +47 -0
- package/dist/examples/travel-service-create.json +102 -0
- package/dist/examples/travel-treasury-create.json +34 -0
- package/dist/examples/treasury-deposit.json +37 -0
- package/dist/examples/treasury-withdraw.json +38 -0
- package/dist/extensions/business-modules.d.ts +49 -0
- package/dist/extensions/business-modules.js +287 -0
- package/dist/extensions/capability-manifest.js +216 -29
- package/dist/extensions/constraint-registry.js +21 -19
- package/dist/extensions/metric-registry.js +14 -14
- package/dist/extensions/mode-evaluator.js +16 -16
- package/dist/extensions/modes.js +141 -49
- package/dist/extensions/registry.d.ts +16 -9
- package/dist/extensions/registry.js +132 -44
- package/dist/extensions/types.d.ts +2 -0
- package/dist/index.js +50 -0
- package/dist/knowledge/deployment-scanner.js +1 -1
- package/dist/knowledge/fund-layer.d.ts +138 -0
- package/dist/knowledge/fund-layer.js +969 -0
- package/dist/knowledge/guard-render.d.ts +57 -0
- package/dist/knowledge/guard-render.js +700 -0
- package/dist/knowledge/guard-submission-prompt.d.ts +31 -0
- package/dist/knowledge/guard-submission-prompt.js +171 -0
- package/dist/knowledge/guard-templates.d.ts +10 -0
- package/dist/knowledge/guard-templates.js +50 -0
- package/dist/knowledge/index.d.ts +2 -2
- package/dist/knowledge/index.js +2 -2
- package/dist/knowledge/machine-ledger.js +1 -1
- package/dist/knowledge/machine-render.d.ts +41 -0
- package/dist/knowledge/machine-render.js +565 -0
- package/dist/knowledge/machine-risk.js +4 -1
- package/dist/knowledge/machine-templates.js +4 -4
- package/dist/knowledge/progress-context.js +1 -1
- package/dist/knowledge/progress-ledger.js +3 -3
- package/dist/knowledge/progress-templates.js +1 -1
- package/dist/knowledge/progress-translation.js +1 -1
- package/dist/knowledge/reward-confirm.js +2 -2
- package/dist/knowledge/reward-puzzle.js +1 -1
- package/dist/knowledge/reward-risk.js +9 -9
- package/dist/knowledge/reward-templates.js +2 -2
- package/dist/knowledge/safety-rules.d.ts +83 -1
- package/dist/knowledge/safety-rules.js +166 -2
- package/dist/knowledge/scenario-modes.d.ts +1 -1
- package/dist/knowledge/scenario-modes.js +13 -11
- package/dist/knowledge/service-confirm.d.ts +1 -1
- package/dist/knowledge/service-confirm.js +3 -3
- package/dist/knowledge/service-context.js +1 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/service-risk.d.ts +1 -1
- package/dist/knowledge/service-risk.js +3 -3
- package/dist/knowledge/service-templates.js +2 -2
- package/dist/knowledge/service-translation.d.ts +1 -1
- package/dist/knowledge/service-translation.js +7 -7
- package/dist/knowledge/template-registry.d.ts +48 -0
- package/dist/knowledge/template-registry.js +341 -0
- package/dist/knowledge/tool-constraints.js +6 -6
- package/dist/knowledge/tools-reference.js +11 -8
- package/dist/participation/merchant-interest.d.ts +32 -0
- package/dist/participation/merchant-interest.js +100 -0
- package/dist/participation/radar-core.d.ts +104 -0
- package/dist/participation/radar-core.js +269 -0
- package/dist/project/context-assembly.js +8 -0
- package/dist/project/deployment-bridge.js +6 -5
- package/dist/project/deployment-doc.js +5 -5
- package/dist/project/edit-planner.d.ts +123 -0
- package/dist/project/edit-planner.js +1342 -0
- package/dist/project/evaluation.d.ts +36 -0
- package/dist/project/evaluation.js +734 -68
- package/dist/project/game-theory.d.ts +43 -0
- package/dist/project/game-theory.js +177 -0
- package/dist/project/graph-builder.js +7 -1
- package/dist/project/handlers.d.ts +137 -2
- package/dist/project/handlers.js +423 -51
- package/dist/project/intent-analyzer.d.ts +71 -0
- package/dist/project/intent-analyzer.js +149 -0
- package/dist/project/machine-nodes.d.ts +2 -0
- package/dist/project/machine-nodes.js +36 -0
- package/dist/project/merchant-guide.d.ts +165 -0
- package/dist/project/merchant-guide.js +264 -0
- package/dist/project/mode-actions.d.ts +199 -0
- package/dist/project/mode-actions.js +309 -0
- package/dist/project/participation-radar.d.ts +18 -0
- package/dist/project/participation-radar.js +428 -0
- package/dist/project/pipeline-actions.d.ts +101 -0
- package/dist/project/pipeline-actions.js +109 -0
- package/dist/project/semantic-graph.d.ts +95 -0
- package/dist/project/semantic-graph.js +245 -0
- package/dist/project/stage-gate.js +4 -4
- package/dist/schema/call/allocation.d.ts +11 -11
- package/dist/schema/call/allocation.js +13 -3
- package/dist/schema/call/arbitration.d.ts +21 -21
- package/dist/schema/call/arbitration.js +30 -9
- package/dist/schema/call/base.d.ts +2 -2
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +127 -127
- package/dist/schema/call/bridge.js +12 -12
- package/dist/schema/call/contact.d.ts +3 -3
- package/dist/schema/call/contact.js +2 -2
- package/dist/schema/call/demand.d.ts +3 -3
- package/dist/schema/call/demand.js +2 -2
- package/dist/schema/call/guard.d.ts +11 -11
- package/dist/schema/call/guard.js +2 -2
- package/dist/schema/call/machine.d.ts +2072 -679
- package/dist/schema/call/machine.js +51 -5
- package/dist/schema/call/order.d.ts +7 -7
- package/dist/schema/call/order.js +3 -6
- package/dist/schema/call/payment.d.ts +3 -3
- package/dist/schema/call/permission.d.ts +3 -3
- package/dist/schema/call/permission.js +2 -2
- package/dist/schema/call/personal.d.ts +337 -3
- package/dist/schema/call/personal.js +10 -0
- package/dist/schema/call/progress.d.ts +177 -9
- package/dist/schema/call/progress.js +7 -3
- package/dist/schema/call/proof.d.ts +6 -6
- package/dist/schema/call/repository.d.ts +3 -3
- package/dist/schema/call/repository.js +2 -2
- package/dist/schema/call/reward.d.ts +57 -57
- package/dist/schema/call/reward.js +3 -3
- package/dist/schema/call/semantic.js +48 -2
- package/dist/schema/call/service.d.ts +285 -113
- package/dist/schema/call/service.js +92 -28
- package/dist/schema/call/treasury.d.ts +57 -57
- package/dist/schema/call/treasury.js +3 -3
- package/dist/schema/common/index.d.ts +2 -0
- package/dist/schema/common/index.js +46 -10
- package/dist/schema/local/index.js +5 -1
- package/dist/schema/messenger/index.js +4 -1
- package/dist/schema/operations.d.ts +1318 -317
- package/dist/schema/operations.js +76 -7
- package/dist/schema/project/index.d.ts +5662 -164
- package/dist/schema/project/index.js +1136 -5
- package/dist/schema/query/index.d.ts +580 -19
- package/dist/schema/query/index.js +88 -36
- package/dist/schema/schema-query/index.d.ts +59 -3
- package/dist/schema/schema-query/index.js +45 -6
- package/dist/schema/trust/index.d.ts +1012 -6
- package/dist/schema/trust/index.js +212 -11
- package/dist/schema/utils/node-parser.js +13 -0
- package/dist/schema/utils/object-type-utils.d.ts +12 -0
- package/dist/schema/utils/object-type-utils.js +35 -0
- package/dist/schema/utils/permission-machine-check.d.ts +49 -0
- package/dist/schema/utils/permission-machine-check.js +121 -0
- package/dist/schema/utils/skills-recommendation.d.ts +2 -0
- package/dist/schema/utils/skills-recommendation.js +77 -0
- package/dist/schema-query/index.d.ts +17 -1
- package/dist/schema-query/index.js +359 -3
- package/dist/schemas/account_operation.schema.json +1 -1
- package/dist/schemas/bridge_operation.schema.json +14 -7
- package/dist/schemas/guard2file.schema.json +2 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/machineNode2file.schema.json +2 -0
- package/dist/schemas/messenger_operation.schema.json +1 -1
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.output.json +2820 -0
- package/dist/schemas/onchain_operations.schema.json +255 -65
- package/dist/schemas/onchain_operations_allocation.schema.json +7 -6
- package/dist/schemas/onchain_operations_arbitration.schema.json +14 -10
- package/dist/schemas/onchain_operations_contact.schema.json +4 -3
- package/dist/schemas/onchain_operations_demand.schema.json +4 -3
- package/dist/schemas/onchain_operations_gen_passport.schema.json +4 -2
- package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -0
- package/dist/schemas/onchain_operations_guard.schema.json +579 -1
- package/dist/schemas/onchain_operations_machine.schema.json +5 -4
- package/dist/schemas/onchain_operations_order.schema.json +7 -6
- package/dist/schemas/onchain_operations_payment.schema.json +2 -1
- package/dist/schemas/onchain_operations_permission.schema.json +3 -2
- package/dist/schemas/onchain_operations_personal.schema.json +37 -0
- package/dist/schemas/onchain_operations_progress.schema.json +91 -4
- package/dist/schemas/onchain_operations_proof.schema.json +2 -1
- package/dist/schemas/onchain_operations_repository.schema.json +4 -3
- package/dist/schemas/onchain_operations_reward.schema.json +7 -6
- package/dist/schemas/onchain_operations_service.schema.json +80 -19
- package/dist/schemas/onchain_operations_treasury.schema.json +5 -4
- package/dist/schemas/onchain_table_data.output.json +1 -1
- package/dist/schemas/onchain_table_data.schema.json +10 -9
- package/dist/schemas/project_operation.output.json +3318 -57
- package/dist/schemas/project_operation.schema.json +728 -4
- package/dist/schemas/query_toolkit.output.json +16 -16
- package/dist/schemas/query_toolkit.schema.json +40 -3
- package/dist/schemas/schema_query.output.json +65 -2
- package/dist/schemas/schema_query.schema.json +31 -5
- package/dist/schemas/trust_score.output.json +392 -1
- package/dist/schemas/trust_score.schema.json +275 -1
- package/dist/schemas/wowok_buildin_info.output.json +81 -8
- package/dist/schemas/wowok_buildin_info.schema.json +46 -2
- package/dist/tools/handlers/onchain.js +636 -6
- package/dist/tools/handlers/project.js +71 -2
- package/dist/tools/handlers/query.js +117 -2
- package/dist/tools/handlers/schema-query.js +65 -1
- package/dist/tools/handlers/trust.js +192 -6
- package/dist/tools/index.d.ts +8 -0
- package/dist/tools/index.js +229 -15
- package/dist/tools/wrap.js +194 -15
- package/package.json +2 -2
|
@@ -88,8 +88,8 @@ export const BridgeWithdrawDataSchema = z.object({
|
|
|
88
88
|
.describe("ERC20 token identifier; if omitted or ETH, withdraws native ETH"),
|
|
89
89
|
tokenAddress: EvmAddressSchema.optional()
|
|
90
90
|
.describe("ERC20 contract address (alternative to token; allows withdrawing by contract address)"),
|
|
91
|
-
network: EvmChainSchema
|
|
92
|
-
.describe("Target chain (defaults to Ethereum mainnet)"),
|
|
91
|
+
network: EvmChainSchema
|
|
92
|
+
.describe("Target chain (defaults to Ethereum mainnet when omitted — EvmChainSchema carries .default(\"mainnet\"))"),
|
|
93
93
|
}).strict().describe("Withdraw from activeEvmAccount to another EVM address");
|
|
94
94
|
export const BridgeQueryActiveEvmAccountDataSchema = z.object({
|
|
95
95
|
network: EvmChainSchema.optional()
|
|
@@ -133,34 +133,34 @@ export const BridgeQueryTransferStatusDataSchema = z.object({
|
|
|
133
133
|
export const BridgeManageEvmRpcDataSchema = z.discriminatedUnion("op", [
|
|
134
134
|
z.object({
|
|
135
135
|
op: z.literal("list").describe("List all configured RPC endpoints with health status"),
|
|
136
|
-
network: EvmChainSchema
|
|
137
|
-
.describe("Target chain (defaults to Ethereum mainnet)"),
|
|
136
|
+
network: EvmChainSchema
|
|
137
|
+
.describe("Target chain (defaults to Ethereum mainnet when omitted — EvmChainSchema carries .default(\"mainnet\"))"),
|
|
138
138
|
}).describe("List RPC endpoints (no rpcUrl/rpcUrls needed)"),
|
|
139
139
|
z.object({
|
|
140
140
|
op: z.literal("add").describe("Append one or more RPC endpoints"),
|
|
141
|
-
network: EvmChainSchema
|
|
142
|
-
.describe("Target chain (defaults to Ethereum mainnet)"),
|
|
141
|
+
network: EvmChainSchema
|
|
142
|
+
.describe("Target chain (defaults to Ethereum mainnet when omitted — EvmChainSchema carries .default(\"mainnet\"))"),
|
|
143
143
|
rpcUrls: z.array(z.string().url()).min(1)
|
|
144
144
|
.describe("RPC URL(s) to add"),
|
|
145
145
|
}).describe("Add RPC endpoint(s)"),
|
|
146
146
|
z.object({
|
|
147
147
|
op: z.literal("remove").describe("Remove one or more RPC endpoints"),
|
|
148
|
-
network: EvmChainSchema
|
|
149
|
-
.describe("Target chain (defaults to Ethereum mainnet)"),
|
|
148
|
+
network: EvmChainSchema
|
|
149
|
+
.describe("Target chain (defaults to Ethereum mainnet when omitted — EvmChainSchema carries .default(\"mainnet\"))"),
|
|
150
150
|
rpcUrls: z.array(z.string().url()).min(1)
|
|
151
151
|
.describe("RPC URL(s) to remove"),
|
|
152
152
|
}).describe("Remove RPC endpoint(s)"),
|
|
153
153
|
z.object({
|
|
154
154
|
op: z.literal("set").describe("Full replace all RPC endpoints"),
|
|
155
|
-
network: EvmChainSchema
|
|
156
|
-
.describe("Target chain (defaults to Ethereum mainnet)"),
|
|
155
|
+
network: EvmChainSchema
|
|
156
|
+
.describe("Target chain (defaults to Ethereum mainnet when omitted — EvmChainSchema carries .default(\"mainnet\"))"),
|
|
157
157
|
rpcUrls: z.array(z.string().url()).min(1)
|
|
158
158
|
.describe("Full RPC list (replaces all existing endpoints)"),
|
|
159
159
|
}).describe("Full replace RPC endpoints"),
|
|
160
160
|
z.object({
|
|
161
161
|
op: z.literal("ping").describe("Health check one or more RPC endpoints"),
|
|
162
|
-
network: EvmChainSchema
|
|
163
|
-
.describe("Target chain (defaults to Ethereum mainnet)"),
|
|
162
|
+
network: EvmChainSchema
|
|
163
|
+
.describe("Target chain (defaults to Ethereum mainnet when omitted — EvmChainSchema carries .default(\"mainnet\"))"),
|
|
164
164
|
rpcUrls: z.array(z.string().url()).optional()
|
|
165
165
|
.describe("Specific RPC URLs to ping; if omitted, pings all configured RPCs"),
|
|
166
166
|
}).describe("Health check RPC endpoints"),
|
|
@@ -606,10 +606,11 @@ export declare const CallContact_InputSchema: z.ZodObject<{
|
|
|
606
606
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
607
607
|
project: z.ZodOptional<z.ZodString>;
|
|
608
608
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
609
|
-
schema_strict_mode: z.ZodOptional<z.ZodBoolean
|
|
609
|
+
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
610
610
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
611
611
|
}, "strict", z.ZodTypeAny, {
|
|
612
612
|
account: string;
|
|
613
|
+
schema_strict_mode: boolean;
|
|
613
614
|
no_cache?: boolean | undefined;
|
|
614
615
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
615
616
|
permission_guard?: string[] | undefined;
|
|
@@ -618,7 +619,6 @@ export declare const CallContact_InputSchema: z.ZodObject<{
|
|
|
618
619
|
user_intent_phrases?: string[] | undefined;
|
|
619
620
|
project?: string | undefined;
|
|
620
621
|
client_schema_version?: string | undefined;
|
|
621
|
-
schema_strict_mode?: boolean | undefined;
|
|
622
622
|
dry_run?: boolean | undefined;
|
|
623
623
|
}, {
|
|
624
624
|
no_cache?: boolean | undefined;
|
|
@@ -892,6 +892,7 @@ export declare const CallContact_InputSchema: z.ZodObject<{
|
|
|
892
892
|
} | undefined;
|
|
893
893
|
env?: {
|
|
894
894
|
account: string;
|
|
895
|
+
schema_strict_mode: boolean;
|
|
895
896
|
no_cache?: boolean | undefined;
|
|
896
897
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
897
898
|
permission_guard?: string[] | undefined;
|
|
@@ -900,7 +901,6 @@ export declare const CallContact_InputSchema: z.ZodObject<{
|
|
|
900
901
|
user_intent_phrases?: string[] | undefined;
|
|
901
902
|
project?: string | undefined;
|
|
902
903
|
client_schema_version?: string | undefined;
|
|
903
|
-
schema_strict_mode?: boolean | undefined;
|
|
904
904
|
dry_run?: boolean | undefined;
|
|
905
905
|
} | undefined;
|
|
906
906
|
}, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { WithPermissionObjectSchema, CallEnvSchema, SubmissionCallSchema } from "./base.js";
|
|
3
|
-
import { NameOrAddressSchema, ReceivedObjectsOrRecentlySchema, DescriptionSchema, LongNameSchema, NameSchema } from "../common/index.js";
|
|
3
|
+
import { NameOrAddressSchema, ReceivedObjectsOrRecentlySchema, DescriptionSchema, LongNameSchema, NameSchema, RECEIVE_FORMAT_BLOCK_OBJECTS } from "../common/index.js";
|
|
4
4
|
export const ImEntrySchema = z.object({
|
|
5
5
|
at: NameOrAddressSchema.describe("Contact's account address or name for instant messaging"),
|
|
6
6
|
description: LongNameSchema.optional().describe("Optional description or note about this contact"),
|
|
@@ -28,7 +28,7 @@ export const CallContact_DataSchema = z.object({
|
|
|
28
28
|
description: DescriptionSchema.optional().describe("Contact object description or public information"),
|
|
29
29
|
location: LongNameSchema.optional().describe("Physical or virtual location information for this contact"),
|
|
30
30
|
ims: ImsOperationSchema.optional().describe("IM contact list operation: add, set, remove, or clear instant messaging contacts"),
|
|
31
|
-
owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe("Receive objects sent to this
|
|
31
|
+
owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe("Receive objects sent to this Contact object and unwrap them to the permission owner." + RECEIVE_FORMAT_BLOCK_OBJECTS),
|
|
32
32
|
}).strict().describe("On-chain Contact operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, permission, ...} to create a Contact. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. 'permission' can be a new Permission object or reference an existing one - check 'object' field description for details. (2) OPERATE EXISTING: Set 'object' field with STRING format (object ID or name). The 'object' field is CRITICAL and REQUIRED in both cases. STRING for existing, OBJECT for new creation.");
|
|
33
33
|
export const CallContact_InputSchema = z.object({
|
|
34
34
|
data: CallContact_DataSchema.describe("Contact operation data containing object reference and operations to perform"),
|
|
@@ -857,10 +857,11 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
|
|
|
857
857
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
858
858
|
project: z.ZodOptional<z.ZodString>;
|
|
859
859
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
860
|
-
schema_strict_mode: z.ZodOptional<z.ZodBoolean
|
|
860
|
+
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
861
861
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
862
862
|
}, "strict", z.ZodTypeAny, {
|
|
863
863
|
account: string;
|
|
864
|
+
schema_strict_mode: boolean;
|
|
864
865
|
no_cache?: boolean | undefined;
|
|
865
866
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
866
867
|
permission_guard?: string[] | undefined;
|
|
@@ -869,7 +870,6 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
|
|
|
869
870
|
user_intent_phrases?: string[] | undefined;
|
|
870
871
|
project?: string | undefined;
|
|
871
872
|
client_schema_version?: string | undefined;
|
|
872
|
-
schema_strict_mode?: boolean | undefined;
|
|
873
873
|
dry_run?: boolean | undefined;
|
|
874
874
|
}, {
|
|
875
875
|
no_cache?: boolean | undefined;
|
|
@@ -1165,6 +1165,7 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
|
|
|
1165
1165
|
} | undefined;
|
|
1166
1166
|
env?: {
|
|
1167
1167
|
account: string;
|
|
1168
|
+
schema_strict_mode: boolean;
|
|
1168
1169
|
no_cache?: boolean | undefined;
|
|
1169
1170
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
1170
1171
|
permission_guard?: string[] | undefined;
|
|
@@ -1173,7 +1174,6 @@ export declare const CallDemand_InputSchema: z.ZodObject<{
|
|
|
1173
1174
|
user_intent_phrases?: string[] | undefined;
|
|
1174
1175
|
project?: string | undefined;
|
|
1175
1176
|
client_schema_version?: string | undefined;
|
|
1176
|
-
schema_strict_mode?: boolean | undefined;
|
|
1177
1177
|
dry_run?: boolean | undefined;
|
|
1178
1178
|
} | undefined;
|
|
1179
1179
|
}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { WithPermissionObjectSchema, ObjectsSchema, CallEnvSchema, SubmissionCallSchema, } from './base.js';
|
|
3
3
|
import { ServiceGuardSchema } from '../query/index.js';
|
|
4
|
-
import { AccountOrMark_AddressSchema, DescriptionSchema, LongNameSchema, NameOrAddressSchema, ReceivedObjectsOrRecentlySchema } from '../common/index.js';
|
|
4
|
+
import { AccountOrMark_AddressSchema, DescriptionSchema, LongNameSchema, NameOrAddressSchema, ReceivedObjectsOrRecentlySchema, RECEIVE_FORMAT_BLOCK_OBJECTS } from '../common/index.js';
|
|
5
5
|
export const GuardsSchema = z.discriminatedUnion('op', [
|
|
6
6
|
z.object({
|
|
7
7
|
op: z.literal('add'),
|
|
@@ -37,7 +37,7 @@ export const CallDemand_DataSchema = z.object({
|
|
|
37
37
|
rewards: ObjectsSchema.optional().describe('Reward information of the Demand object'),
|
|
38
38
|
feedback: z.array(FeedbackInfoSchema).optional().describe('User feedback information for the Demand object'),
|
|
39
39
|
guards: GuardsSchema.optional().describe('Validation Guard list for the Demand object. Used to verify whether the service recommended by the user meets the requirements'),
|
|
40
|
-
owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe('Unwrap CoinWrapper objects and other objects received by this object and send them to the owner of its Permission object.'),
|
|
40
|
+
owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe('Unwrap CoinWrapper objects and other objects received by this Demand object and send them to the owner of its Permission object.' + RECEIVE_FORMAT_BLOCK_OBJECTS),
|
|
41
41
|
um: z.union([NameOrAddressSchema, z.null()]).optional().describe('Contact object ID or name.'),
|
|
42
42
|
}).strict().describe("On-chain Demand operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, permission, ...} to create a Demand. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. 'permission' can be a new Permission object or reference an existing one - check 'object' field description for details. (2) OPERATE EXISTING: Set 'object' field with STRING format (object ID or name). The 'object' field is CRITICAL and REQUIRED in both cases. STRING for existing, OBJECT for new creation.");
|
|
43
43
|
export const CallDemand_InputSchema = z.object({
|
|
@@ -613,10 +613,11 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
|
|
|
613
613
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
614
614
|
project: z.ZodOptional<z.ZodString>;
|
|
615
615
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
616
|
-
schema_strict_mode: z.ZodOptional<z.ZodBoolean
|
|
616
|
+
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
617
617
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
618
618
|
}, "strict", z.ZodTypeAny, {
|
|
619
619
|
account: string;
|
|
620
|
+
schema_strict_mode: boolean;
|
|
620
621
|
no_cache?: boolean | undefined;
|
|
621
622
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
622
623
|
permission_guard?: string[] | undefined;
|
|
@@ -625,7 +626,6 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
|
|
|
625
626
|
user_intent_phrases?: string[] | undefined;
|
|
626
627
|
project?: string | undefined;
|
|
627
628
|
client_schema_version?: string | undefined;
|
|
628
|
-
schema_strict_mode?: boolean | undefined;
|
|
629
629
|
dry_run?: boolean | undefined;
|
|
630
630
|
}, {
|
|
631
631
|
no_cache?: boolean | undefined;
|
|
@@ -681,6 +681,7 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
|
|
|
681
681
|
};
|
|
682
682
|
env?: {
|
|
683
683
|
account: string;
|
|
684
|
+
schema_strict_mode: boolean;
|
|
684
685
|
no_cache?: boolean | undefined;
|
|
685
686
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
686
687
|
permission_guard?: string[] | undefined;
|
|
@@ -689,7 +690,6 @@ export declare const CallGuard_InputSchema: z.ZodObject<{
|
|
|
689
690
|
user_intent_phrases?: string[] | undefined;
|
|
690
691
|
project?: string | undefined;
|
|
691
692
|
client_schema_version?: string | undefined;
|
|
692
|
-
schema_strict_mode?: boolean | undefined;
|
|
693
693
|
dry_run?: boolean | undefined;
|
|
694
694
|
} | undefined;
|
|
695
695
|
}, {
|
|
@@ -937,10 +937,11 @@ export declare const CallGenPassport_InputSchema: z.ZodObject<{
|
|
|
937
937
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
938
938
|
project: z.ZodOptional<z.ZodString>;
|
|
939
939
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
940
|
-
schema_strict_mode: z.ZodOptional<z.ZodBoolean
|
|
940
|
+
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
941
941
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
942
942
|
}, "strict", z.ZodTypeAny, {
|
|
943
943
|
account: string;
|
|
944
|
+
schema_strict_mode: boolean;
|
|
944
945
|
no_cache?: boolean | undefined;
|
|
945
946
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
946
947
|
permission_guard?: string[] | undefined;
|
|
@@ -949,7 +950,6 @@ export declare const CallGenPassport_InputSchema: z.ZodObject<{
|
|
|
949
950
|
user_intent_phrases?: string[] | undefined;
|
|
950
951
|
project?: string | undefined;
|
|
951
952
|
client_schema_version?: string | undefined;
|
|
952
|
-
schema_strict_mode?: boolean | undefined;
|
|
953
953
|
dry_run?: boolean | undefined;
|
|
954
954
|
}, {
|
|
955
955
|
no_cache?: boolean | undefined;
|
|
@@ -995,6 +995,7 @@ export declare const CallGenPassport_InputSchema: z.ZodObject<{
|
|
|
995
995
|
} | undefined;
|
|
996
996
|
env?: {
|
|
997
997
|
account: string;
|
|
998
|
+
schema_strict_mode: boolean;
|
|
998
999
|
no_cache?: boolean | undefined;
|
|
999
1000
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
1000
1001
|
permission_guard?: string[] | undefined;
|
|
@@ -1003,7 +1004,6 @@ export declare const CallGenPassport_InputSchema: z.ZodObject<{
|
|
|
1003
1004
|
user_intent_phrases?: string[] | undefined;
|
|
1004
1005
|
project?: string | undefined;
|
|
1005
1006
|
client_schema_version?: string | undefined;
|
|
1006
|
-
schema_strict_mode?: boolean | undefined;
|
|
1007
1007
|
dry_run?: boolean | undefined;
|
|
1008
1008
|
} | undefined;
|
|
1009
1009
|
}, {
|
|
@@ -1052,7 +1052,7 @@ export declare const CallGenPassport_InputSchema: z.ZodObject<{
|
|
|
1052
1052
|
export declare const Guard2File_InputSchema: z.ZodObject<{
|
|
1053
1053
|
guard: z.ZodEffects<z.ZodString, string, string>;
|
|
1054
1054
|
file_path: z.ZodString;
|
|
1055
|
-
format: z.ZodOptional<z.ZodEnum<["json", "markdown"]
|
|
1055
|
+
format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["json", "markdown"]>>>;
|
|
1056
1056
|
env: z.ZodOptional<z.ZodObject<{
|
|
1057
1057
|
account: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
1058
1058
|
permission_guard: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1063,10 +1063,11 @@ export declare const Guard2File_InputSchema: z.ZodObject<{
|
|
|
1063
1063
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1064
1064
|
project: z.ZodOptional<z.ZodString>;
|
|
1065
1065
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
1066
|
-
schema_strict_mode: z.ZodOptional<z.ZodBoolean
|
|
1066
|
+
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1067
1067
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
1068
1068
|
}, "strict", z.ZodTypeAny, {
|
|
1069
1069
|
account: string;
|
|
1070
|
+
schema_strict_mode: boolean;
|
|
1070
1071
|
no_cache?: boolean | undefined;
|
|
1071
1072
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
1072
1073
|
permission_guard?: string[] | undefined;
|
|
@@ -1075,7 +1076,6 @@ export declare const Guard2File_InputSchema: z.ZodObject<{
|
|
|
1075
1076
|
user_intent_phrases?: string[] | undefined;
|
|
1076
1077
|
project?: string | undefined;
|
|
1077
1078
|
client_schema_version?: string | undefined;
|
|
1078
|
-
schema_strict_mode?: boolean | undefined;
|
|
1079
1079
|
dry_run?: boolean | undefined;
|
|
1080
1080
|
}, {
|
|
1081
1081
|
no_cache?: boolean | undefined;
|
|
@@ -1091,11 +1091,12 @@ export declare const Guard2File_InputSchema: z.ZodObject<{
|
|
|
1091
1091
|
dry_run?: boolean | undefined;
|
|
1092
1092
|
}>>;
|
|
1093
1093
|
}, "strict", z.ZodTypeAny, {
|
|
1094
|
+
format: "markdown" | "json";
|
|
1094
1095
|
guard: string;
|
|
1095
1096
|
file_path: string;
|
|
1096
|
-
format?: "markdown" | "json" | undefined;
|
|
1097
1097
|
env?: {
|
|
1098
1098
|
account: string;
|
|
1099
|
+
schema_strict_mode: boolean;
|
|
1099
1100
|
no_cache?: boolean | undefined;
|
|
1100
1101
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
1101
1102
|
permission_guard?: string[] | undefined;
|
|
@@ -1104,7 +1105,6 @@ export declare const Guard2File_InputSchema: z.ZodObject<{
|
|
|
1104
1105
|
user_intent_phrases?: string[] | undefined;
|
|
1105
1106
|
project?: string | undefined;
|
|
1106
1107
|
client_schema_version?: string | undefined;
|
|
1107
|
-
schema_strict_mode?: boolean | undefined;
|
|
1108
1108
|
dry_run?: boolean | undefined;
|
|
1109
1109
|
} | undefined;
|
|
1110
1110
|
}, {
|
|
@@ -126,7 +126,7 @@ export const CallGuard_DataSchema = z.object({
|
|
|
126
126
|
return true;
|
|
127
127
|
}, {
|
|
128
128
|
message: "Invalid Guard root: When using 'identifier' as root, the referenced table item must exist and have value_type='Bool' (or 0)."
|
|
129
|
-
}).describe("On-chain Guard creation. IMPORTANT: All defined data (include all submitted data) must be defined in the 'table' field. USAGE: Set 'namedNew' field with {name, tags?, onChain?} to name the new Guard. The Guard is immutable once created. Define the validation logic in 'root' field. When root.type='file', the file can contain all Guard fields, and any fields defined in the schema will OVERRIDE the file content.");
|
|
129
|
+
}).describe("On-chain Guard creation. IMPORTANT: All defined data (include all submitted data) must be defined in the 'table' field. USAGE: Set 'namedNew' field with {name, tags?, onChain?} to name the new Guard (you may also use 'object' as an alias for 'namedNew' — the MCP preprocess will convert it automatically). The Guard is immutable once created. Define the validation logic in 'root' field. When root.type='file', the file can contain all Guard fields, and any fields defined in the schema will OVERRIDE the file content.");
|
|
130
130
|
export const CallGuard_InputSchema = z.object({
|
|
131
131
|
data: CallGuard_DataSchema.describe("Guard data definition."),
|
|
132
132
|
env: CallEnvSchema.optional(),
|
|
@@ -139,7 +139,7 @@ export const CallGenPassport_InputSchema = z.object({
|
|
|
139
139
|
export const Guard2File_InputSchema = z.object({
|
|
140
140
|
guard: NameOrAddressSchema.describe("Guard object ID or name to export"),
|
|
141
141
|
file_path: z.string().describe("Output file path (absolute or relative)"),
|
|
142
|
-
format: z.enum(["json", "markdown"]).optional().describe("Output format: 'json' (default) or 'markdown'"),
|
|
142
|
+
format: z.enum(["json", "markdown"]).optional().default("json").describe("Output format: 'json' (default) or 'markdown'"),
|
|
143
143
|
env: CallEnvSchema.optional(),
|
|
144
144
|
}).strict().describe("Query a Guard object from the blockchain and export its definition to a JSON or Markdown file. The exported file can be edited and used to create new Guard objects.");
|
|
145
145
|
export const Guard2File_OutputSchema = z.discriminatedUnion("status", [
|