@wowok/agent-mcp 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/extensions/capability-manifest.d.ts +125 -0
- package/dist/extensions/capability-manifest.js +594 -0
- package/dist/extensions/constraint-registry.d.ts +24 -0
- package/dist/extensions/constraint-registry.js +196 -0
- package/dist/extensions/index.d.ts +12 -0
- package/dist/extensions/index.js +6 -0
- package/dist/extensions/metric-registry.d.ts +26 -0
- package/dist/extensions/metric-registry.js +257 -0
- package/dist/extensions/mode-evaluator.d.ts +15 -0
- package/dist/extensions/mode-evaluator.js +170 -0
- package/dist/extensions/modes.d.ts +2 -0
- package/dist/extensions/modes.js +407 -0
- package/dist/extensions/registry.d.ts +48 -0
- package/dist/extensions/registry.js +629 -0
- package/dist/extensions/types.d.ts +218 -0
- package/dist/extensions/types.js +1 -0
- package/dist/knowledge/deployment-scanner.d.ts +3 -0
- package/dist/knowledge/deployment-scanner.js +64 -3
- package/dist/knowledge/guard-risk.d.ts +13 -0
- package/dist/knowledge/guard-risk.js +57 -0
- package/dist/knowledge/guard-templates.js +278 -0
- package/dist/knowledge/machine-templates.js +20 -1
- package/dist/knowledge/service-confirm.d.ts +14 -5
- package/dist/knowledge/service-confirm.js +116 -8
- package/dist/knowledge/tool-constraints.js +6 -2
- package/dist/project/deployment-bridge.d.ts +1 -1
- package/dist/project/deployment-bridge.js +27 -4
- package/dist/project/deployment-doc.d.ts +3 -0
- package/dist/project/deployment-doc.js +72 -10
- package/dist/project/evaluation.d.ts +2 -0
- package/dist/project/evaluation.js +569 -84
- package/dist/project/graph-builder.d.ts +4 -1
- package/dist/project/graph-builder.js +126 -61
- package/dist/project/graph.d.ts +1 -0
- package/dist/project/handlers.d.ts +219 -5
- package/dist/project/handlers.js +819 -9
- package/dist/project/stage-gate.d.ts +4 -0
- package/dist/project/stage-gate.js +64 -5
- package/dist/project/task-tracker.d.ts +26 -0
- package/dist/project/task-tracker.js +78 -0
- package/dist/safety/preview.js +16 -0
- package/dist/schema/call/allocation.d.ts +16 -16
- package/dist/schema/call/base.d.ts +21 -13
- package/dist/schema/call/base.js +27 -6
- package/dist/schema/call/bridge.d.ts +5 -5
- package/dist/schema/call/bridge.js +3 -1
- package/dist/schema/call/demand.d.ts +23 -31
- package/dist/schema/call/guard.js +1 -1
- package/dist/schema/call/machine.d.ts +402 -376
- package/dist/schema/call/order.d.ts +149 -228
- package/dist/schema/call/order.js +7 -3
- package/dist/schema/call/payment.d.ts +183 -3
- package/dist/schema/call/payment.js +21 -3
- package/dist/schema/call/personal.d.ts +241 -52
- package/dist/schema/call/progress.d.ts +53 -61
- package/dist/schema/call/progress.js +18 -4
- package/dist/schema/call/repository.d.ts +23 -31
- package/dist/schema/call/semantic.d.ts +1 -1
- package/dist/schema/call/semantic.js +30 -1
- package/dist/schema/call/service.d.ts +95 -119
- package/dist/schema/call/service.js +22 -1
- package/dist/schema/common/index.d.ts +11 -2
- package/dist/schema/common/index.js +43 -14
- package/dist/schema/local/index.d.ts +32 -35
- package/dist/schema/local/index.js +23 -5
- package/dist/schema/messenger/index.d.ts +274 -46
- package/dist/schema/operations.d.ts +680 -539
- package/dist/schema/operations.js +22 -0
- package/dist/schema/project/index.d.ts +1796 -80
- package/dist/schema/project/index.js +304 -14
- package/dist/schema/query/index.d.ts +705 -349
- package/dist/schema/query/index.js +164 -31
- package/dist/schema/schema-query/index.d.ts +15 -3
- package/dist/schema/schema-query/index.js +23 -5
- package/dist/schema/utils/node-parser.js +7 -4
- package/dist/schema-query/index.d.ts +7 -1
- package/dist/schema-query/index.js +204 -4
- package/dist/schemas/account_operation.output.json +7 -1
- package/dist/schemas/account_operation.schema.json +2 -2
- package/dist/schemas/bridge_operation.output.json +6 -0
- package/dist/schemas/bridge_operation.schema.json +1 -1
- package/dist/schemas/guard-templates.json +379 -0
- package/dist/schemas/guard2file.schema.json +1 -1
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/local_info_operation.output.json +6 -0
- package/dist/schemas/local_mark_operation.output.json +7 -1
- package/dist/schemas/local_mark_operation.schema.json +1 -1
- package/dist/schemas/machineNode2file.schema.json +1 -1
- package/dist/schemas/messenger_operation.schema.json +4 -4
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +348 -296
- package/dist/schemas/onchain_operations_allocation.schema.json +34 -25
- package/dist/schemas/onchain_operations_arbitration.schema.json +8 -8
- package/dist/schemas/onchain_operations_contact.schema.json +8 -8
- package/dist/schemas/onchain_operations_demand.schema.json +8 -8
- package/dist/schemas/onchain_operations_gen_passport.schema.json +14 -14
- package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -2
- package/dist/schemas/onchain_operations_guard.schema.json +1 -1
- package/dist/schemas/onchain_operations_machine.schema.json +41 -33
- package/dist/schemas/onchain_operations_order.schema.json +71 -77
- package/dist/schemas/onchain_operations_payment.schema.json +141 -111
- package/dist/schemas/onchain_operations_permission.schema.json +2 -2
- package/dist/schemas/onchain_operations_personal.schema.json +7 -7
- package/dist/schemas/onchain_operations_progress.schema.json +8 -8
- package/dist/schemas/onchain_operations_proof.schema.json +7 -7
- package/dist/schemas/onchain_operations_repository.schema.json +8 -8
- package/dist/schemas/onchain_operations_reward.schema.json +10 -10
- package/dist/schemas/onchain_operations_service.schema.json +46 -35
- package/dist/schemas/onchain_operations_treasury.schema.json +8 -8
- package/dist/schemas/onchain_table_data.output.json +33 -25
- package/dist/schemas/onchain_table_data.schema.json +12 -12
- package/dist/schemas/project_operation.output.json +1175 -23
- package/dist/schemas/project_operation.schema.json +40 -4
- package/dist/schemas/query_toolkit.output.json +104 -76
- package/dist/schemas/query_toolkit.schema.json +9 -9
- package/dist/schemas/schema_query.output.json +7 -3
- package/dist/schemas/schema_query.schema.json +17 -3
- package/dist/tools/handlers/local.js +20 -5
- package/dist/tools/handlers/onchain.js +23 -0
- package/dist/tools/handlers/project.js +52 -3
- package/dist/tools/handlers/query.js +27 -0
- package/dist/tools/handlers/schema-query.js +19 -0
- package/dist/tools/handlers/task-status.d.ts +170 -0
- package/dist/tools/handlers/task-status.js +55 -0
- package/dist/tools/handlers/wip.js +47 -1
- package/dist/tools/index.js +211 -7
- package/dist/tools/retry.d.ts +8 -0
- package/dist/tools/retry.js +85 -0
- package/dist/tools/wip-deploy-assist.d.ts +28 -0
- package/dist/tools/wip-deploy-assist.js +278 -0
- package/package.json +2 -2
- package/dist/schemas/guard-node-examples.md +0 -199
|
@@ -4370,16 +4370,19 @@ export declare const AccountOperationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4370
4370
|
replaceExistName?: boolean | undefined;
|
|
4371
4371
|
messenger?: boolean | undefined;
|
|
4372
4372
|
}>>;
|
|
4373
|
-
faucet: z.ZodOptional<z.ZodObject<{
|
|
4373
|
+
faucet: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
4374
4374
|
name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4375
4375
|
network: z.ZodEnum<[import("@wowok/wowok").ENTRYPOINT.Localnet, import("@wowok/wowok").ENTRYPOINT.Testnet]>;
|
|
4376
|
-
}, "
|
|
4376
|
+
}, "strict", z.ZodTypeAny, {
|
|
4377
4377
|
network: import("@wowok/wowok").ENTRYPOINT.Testnet | import("@wowok/wowok").ENTRYPOINT.Localnet;
|
|
4378
4378
|
name_or_address?: string | undefined;
|
|
4379
4379
|
}, {
|
|
4380
4380
|
network: import("@wowok/wowok").ENTRYPOINT.Testnet | import("@wowok/wowok").ENTRYPOINT.Localnet;
|
|
4381
4381
|
name_or_address?: string | undefined;
|
|
4382
|
-
}
|
|
4382
|
+
}>, {
|
|
4383
|
+
network: import("@wowok/wowok").ENTRYPOINT.Testnet | import("@wowok/wowok").ENTRYPOINT.Localnet;
|
|
4384
|
+
name_or_address?: string | undefined;
|
|
4385
|
+
}, unknown>>;
|
|
4383
4386
|
suspend: z.ZodOptional<z.ZodObject<{
|
|
4384
4387
|
name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
4385
4388
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -4532,10 +4535,7 @@ export declare const AccountOperationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4532
4535
|
replaceExistName?: boolean | undefined;
|
|
4533
4536
|
messenger?: boolean | undefined;
|
|
4534
4537
|
} | undefined;
|
|
4535
|
-
faucet?:
|
|
4536
|
-
network: import("@wowok/wowok").ENTRYPOINT.Testnet | import("@wowok/wowok").ENTRYPOINT.Localnet;
|
|
4537
|
-
name_or_address?: string | undefined;
|
|
4538
|
-
} | undefined;
|
|
4538
|
+
faucet?: unknown;
|
|
4539
4539
|
suspend?: {
|
|
4540
4540
|
name_or_address?: string | undefined;
|
|
4541
4541
|
} | undefined;
|
|
@@ -4626,10 +4626,7 @@ export declare const AccountOperationSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4626
4626
|
replaceExistName?: boolean | undefined;
|
|
4627
4627
|
messenger?: boolean | undefined;
|
|
4628
4628
|
} | undefined;
|
|
4629
|
-
faucet?:
|
|
4630
|
-
network: import("@wowok/wowok").ENTRYPOINT.Testnet | import("@wowok/wowok").ENTRYPOINT.Localnet;
|
|
4631
|
-
name_or_address?: string | undefined;
|
|
4632
|
-
} | undefined;
|
|
4629
|
+
faucet?: unknown;
|
|
4633
4630
|
suspend?: {
|
|
4634
4631
|
name_or_address?: string | undefined;
|
|
4635
4632
|
} | undefined;
|
|
@@ -11966,7 +11963,7 @@ export declare const AccountOperationOutputSchema: z.ZodDiscriminatedUnion<"stat
|
|
|
11966
11963
|
} | undefined;
|
|
11967
11964
|
};
|
|
11968
11965
|
}>, z.ZodObject<{
|
|
11969
|
-
error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "unknown"]>>;
|
|
11966
|
+
error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "rate_limit", "gas_exceeded", "bcs_error", "signature_error", "config_error", "wip_verification_failed", "unknown"]>>;
|
|
11970
11967
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
11971
11968
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
11972
11969
|
status: z.ZodLiteral<"error">;
|
|
@@ -11974,13 +11971,13 @@ export declare const AccountOperationOutputSchema: z.ZodDiscriminatedUnion<"stat
|
|
|
11974
11971
|
}, "strip", z.ZodTypeAny, {
|
|
11975
11972
|
status: "error";
|
|
11976
11973
|
error: string;
|
|
11977
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
11974
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
11978
11975
|
retryable?: boolean | undefined;
|
|
11979
11976
|
recovery_hint?: string | undefined;
|
|
11980
11977
|
}, {
|
|
11981
11978
|
status: "error";
|
|
11982
11979
|
error: string;
|
|
11983
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
11980
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
11984
11981
|
retryable?: boolean | undefined;
|
|
11985
11982
|
recovery_hint?: string | undefined;
|
|
11986
11983
|
}>]>;
|
|
@@ -15540,7 +15537,7 @@ export declare const AccountOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
15540
15537
|
} | undefined;
|
|
15541
15538
|
};
|
|
15542
15539
|
}>, z.ZodObject<{
|
|
15543
|
-
error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "unknown"]>>;
|
|
15540
|
+
error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "rate_limit", "gas_exceeded", "bcs_error", "signature_error", "config_error", "wip_verification_failed", "unknown"]>>;
|
|
15544
15541
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
15545
15542
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
15546
15543
|
status: z.ZodLiteral<"error">;
|
|
@@ -15548,13 +15545,13 @@ export declare const AccountOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
15548
15545
|
}, "strip", z.ZodTypeAny, {
|
|
15549
15546
|
status: "error";
|
|
15550
15547
|
error: string;
|
|
15551
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
15548
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
15552
15549
|
retryable?: boolean | undefined;
|
|
15553
15550
|
recovery_hint?: string | undefined;
|
|
15554
15551
|
}, {
|
|
15555
15552
|
status: "error";
|
|
15556
15553
|
error: string;
|
|
15557
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
15554
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
15558
15555
|
retryable?: boolean | undefined;
|
|
15559
15556
|
recovery_hint?: string | undefined;
|
|
15560
15557
|
}>]>;
|
|
@@ -16569,7 +16566,7 @@ export declare const AccountOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
16569
16566
|
} | {
|
|
16570
16567
|
status: "error";
|
|
16571
16568
|
error: string;
|
|
16572
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
16569
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
16573
16570
|
retryable?: boolean | undefined;
|
|
16574
16571
|
recovery_hint?: string | undefined;
|
|
16575
16572
|
};
|
|
@@ -17044,7 +17041,7 @@ export declare const AccountOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
17044
17041
|
} | {
|
|
17045
17042
|
status: "error";
|
|
17046
17043
|
error: string;
|
|
17047
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
17044
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
17048
17045
|
retryable?: boolean | undefined;
|
|
17049
17046
|
recovery_hint?: string | undefined;
|
|
17050
17047
|
};
|
|
@@ -17286,7 +17283,7 @@ export declare const LocalMarkOperationOutputSchema: z.ZodDiscriminatedUnion<"st
|
|
|
17286
17283
|
clear?: boolean | undefined;
|
|
17287
17284
|
};
|
|
17288
17285
|
}>, z.ZodObject<{
|
|
17289
|
-
error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "unknown"]>>;
|
|
17286
|
+
error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "rate_limit", "gas_exceeded", "bcs_error", "signature_error", "config_error", "wip_verification_failed", "unknown"]>>;
|
|
17290
17287
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
17291
17288
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
17292
17289
|
status: z.ZodLiteral<"error">;
|
|
@@ -17294,13 +17291,13 @@ export declare const LocalMarkOperationOutputSchema: z.ZodDiscriminatedUnion<"st
|
|
|
17294
17291
|
}, "strip", z.ZodTypeAny, {
|
|
17295
17292
|
status: "error";
|
|
17296
17293
|
error: string;
|
|
17297
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
17294
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
17298
17295
|
retryable?: boolean | undefined;
|
|
17299
17296
|
recovery_hint?: string | undefined;
|
|
17300
17297
|
}, {
|
|
17301
17298
|
status: "error";
|
|
17302
17299
|
error: string;
|
|
17303
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
17300
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
17304
17301
|
retryable?: boolean | undefined;
|
|
17305
17302
|
recovery_hint?: string | undefined;
|
|
17306
17303
|
}>]>;
|
|
@@ -17419,7 +17416,7 @@ export declare const LocalMarkOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
17419
17416
|
clear?: boolean | undefined;
|
|
17420
17417
|
};
|
|
17421
17418
|
}>, z.ZodObject<{
|
|
17422
|
-
error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "unknown"]>>;
|
|
17419
|
+
error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "rate_limit", "gas_exceeded", "bcs_error", "signature_error", "config_error", "wip_verification_failed", "unknown"]>>;
|
|
17423
17420
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
17424
17421
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
17425
17422
|
status: z.ZodLiteral<"error">;
|
|
@@ -17427,13 +17424,13 @@ export declare const LocalMarkOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
17427
17424
|
}, "strip", z.ZodTypeAny, {
|
|
17428
17425
|
status: "error";
|
|
17429
17426
|
error: string;
|
|
17430
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
17427
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
17431
17428
|
retryable?: boolean | undefined;
|
|
17432
17429
|
recovery_hint?: string | undefined;
|
|
17433
17430
|
}, {
|
|
17434
17431
|
status: "error";
|
|
17435
17432
|
error: string;
|
|
17436
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
17433
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
17437
17434
|
retryable?: boolean | undefined;
|
|
17438
17435
|
recovery_hint?: string | undefined;
|
|
17439
17436
|
}>]>;
|
|
@@ -18123,7 +18120,7 @@ export declare const LocalMarkOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
18123
18120
|
} | {
|
|
18124
18121
|
status: "error";
|
|
18125
18122
|
error: string;
|
|
18126
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
18123
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
18127
18124
|
retryable?: boolean | undefined;
|
|
18128
18125
|
recovery_hint?: string | undefined;
|
|
18129
18126
|
};
|
|
@@ -18273,7 +18270,7 @@ export declare const LocalMarkOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
18273
18270
|
} | {
|
|
18274
18271
|
status: "error";
|
|
18275
18272
|
error: string;
|
|
18276
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
18273
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
18277
18274
|
retryable?: boolean | undefined;
|
|
18278
18275
|
recovery_hint?: string | undefined;
|
|
18279
18276
|
};
|
|
@@ -18421,7 +18418,7 @@ export declare const LocalInfoOperationOutputSchema: z.ZodDiscriminatedUnion<"st
|
|
|
18421
18418
|
success: boolean;
|
|
18422
18419
|
};
|
|
18423
18420
|
}>, z.ZodObject<{
|
|
18424
|
-
error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "unknown"]>>;
|
|
18421
|
+
error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "rate_limit", "gas_exceeded", "bcs_error", "signature_error", "config_error", "wip_verification_failed", "unknown"]>>;
|
|
18425
18422
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
18426
18423
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
18427
18424
|
status: z.ZodLiteral<"error">;
|
|
@@ -18429,13 +18426,13 @@ export declare const LocalInfoOperationOutputSchema: z.ZodDiscriminatedUnion<"st
|
|
|
18429
18426
|
}, "strip", z.ZodTypeAny, {
|
|
18430
18427
|
status: "error";
|
|
18431
18428
|
error: string;
|
|
18432
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
18429
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
18433
18430
|
retryable?: boolean | undefined;
|
|
18434
18431
|
recovery_hint?: string | undefined;
|
|
18435
18432
|
}, {
|
|
18436
18433
|
status: "error";
|
|
18437
18434
|
error: string;
|
|
18438
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
18435
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
18439
18436
|
retryable?: boolean | undefined;
|
|
18440
18437
|
recovery_hint?: string | undefined;
|
|
18441
18438
|
}>]>;
|
|
@@ -18460,7 +18457,7 @@ export declare const LocalInfoOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
18460
18457
|
success: boolean;
|
|
18461
18458
|
};
|
|
18462
18459
|
}>, z.ZodObject<{
|
|
18463
|
-
error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "unknown"]>>;
|
|
18460
|
+
error_code: z.ZodOptional<z.ZodEnum<["invalid_parameter", "guard_rejected", "state_conflict", "insufficient_balance", "object_not_found", "permission_denied", "immutable_violation", "network_error", "rate_limit", "gas_exceeded", "bcs_error", "signature_error", "config_error", "wip_verification_failed", "unknown"]>>;
|
|
18464
18461
|
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
18465
18462
|
recovery_hint: z.ZodOptional<z.ZodString>;
|
|
18466
18463
|
status: z.ZodLiteral<"error">;
|
|
@@ -18468,13 +18465,13 @@ export declare const LocalInfoOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
18468
18465
|
}, "strip", z.ZodTypeAny, {
|
|
18469
18466
|
status: "error";
|
|
18470
18467
|
error: string;
|
|
18471
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
18468
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
18472
18469
|
retryable?: boolean | undefined;
|
|
18473
18470
|
recovery_hint?: string | undefined;
|
|
18474
18471
|
}, {
|
|
18475
18472
|
status: "error";
|
|
18476
18473
|
error: string;
|
|
18477
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
18474
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
18478
18475
|
retryable?: boolean | undefined;
|
|
18479
18476
|
recovery_hint?: string | undefined;
|
|
18480
18477
|
}>]>;
|
|
@@ -19150,7 +19147,7 @@ export declare const LocalInfoOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
19150
19147
|
} | {
|
|
19151
19148
|
status: "error";
|
|
19152
19149
|
error: string;
|
|
19153
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
19150
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
19154
19151
|
retryable?: boolean | undefined;
|
|
19155
19152
|
recovery_hint?: string | undefined;
|
|
19156
19153
|
};
|
|
@@ -19286,7 +19283,7 @@ export declare const LocalInfoOperationOutputWrappedSchema: z.ZodObject<{
|
|
|
19286
19283
|
} | {
|
|
19287
19284
|
status: "error";
|
|
19288
19285
|
error: string;
|
|
19289
|
-
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | undefined;
|
|
19286
|
+
error_code?: "unknown" | "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "rate_limit" | "gas_exceeded" | "bcs_error" | "signature_error" | "config_error" | "wip_verification_failed" | undefined;
|
|
19290
19287
|
retryable?: boolean | undefined;
|
|
19291
19288
|
recovery_hint?: string | undefined;
|
|
19292
19289
|
};
|
|
@@ -7,7 +7,9 @@ const LocalOperationErrorFields = {
|
|
|
7
7
|
.enum([
|
|
8
8
|
"invalid_parameter", "guard_rejected", "state_conflict",
|
|
9
9
|
"insufficient_balance", "object_not_found", "permission_denied",
|
|
10
|
-
"immutable_violation", "network_error", "
|
|
10
|
+
"immutable_violation", "network_error", "rate_limit",
|
|
11
|
+
"gas_exceeded", "bcs_error", "signature_error",
|
|
12
|
+
"config_error", "wip_verification_failed", "unknown",
|
|
11
13
|
])
|
|
12
14
|
.optional()
|
|
13
15
|
.describe("Error classification for programmatic recovery"),
|
|
@@ -254,7 +256,14 @@ export const MarkParamSchema = z
|
|
|
254
256
|
.optional()
|
|
255
257
|
.describe(`Tags for categorization (max ${LocalMarkConstraints.tagMaxCount} tags, each max ${LocalMarkConstraints.tagMaxLength} bcs characters)`),
|
|
256
258
|
})
|
|
257
|
-
.describe("LOCAL ONLY: Parameters for creating or updating a LOCAL mark. This data is stored privately on your device and will NEVER be published to the blockchain.
|
|
259
|
+
.describe("LOCAL ONLY: Parameters for creating or updating a LOCAL mark. This data is stored privately on your device and will NEVER be published to the blockchain. " +
|
|
260
|
+
"For public on-chain marks, use the 'personal' tool instead. " +
|
|
261
|
+
"IMPORTANT: 'name' field is an OBJECT {value, replaceExistName?}, not a string. " +
|
|
262
|
+
"FIX-011 cross-network consistency: LocalMark names are scoped per network. " +
|
|
263
|
+
"When creating marks for the same logical object on different networks (e.g. testnet and mainnet), " +
|
|
264
|
+
"use the SAME name value to keep name-based references portable. " +
|
|
265
|
+
"Before creating a mark on mainnet, check if a mark with the same name already exists on testnet " +
|
|
266
|
+
"(via query_local with network='testnet') and replicate the same name on mainnet for consistency.");
|
|
258
267
|
export const MarkDataSchema = z
|
|
259
268
|
.object({
|
|
260
269
|
name: z
|
|
@@ -277,7 +286,7 @@ export const MarkDataSchema = z
|
|
|
277
286
|
.optional()
|
|
278
287
|
.describe("Unix timestamp (ms) when this mark was last modified"),
|
|
279
288
|
})
|
|
280
|
-
.describe("LOCAL PRIVATE: Local mark data structure for storing address names and tags privately on your device. This data is NEVER published to the blockchain.");
|
|
289
|
+
.describe("LOCAL PRIVATE: Local mark data structure for storing address names and tags privately on your device. This data is NEVER published to the blockchain. CROSS-NETWORK ISOLATION (DOC-02): LocalMark names are scoped per network — the same name 'my-service' can map to different addresses on testnet vs mainnet. When switching networks (e.g., testnet→mainnet deployment), re-create marks with the same names pointing to the new mainnet addresses. This enables name-based object references that work identically across networks without code changes.");
|
|
281
290
|
export const InfoDataInnerSchema = z
|
|
282
291
|
.object({
|
|
283
292
|
default: z
|
|
@@ -447,11 +456,20 @@ export const AccountOperationSchema = z
|
|
|
447
456
|
.optional()
|
|
448
457
|
.describe("Generate new account"),
|
|
449
458
|
faucet: z
|
|
450
|
-
.
|
|
459
|
+
.preprocess((val) => {
|
|
460
|
+
if (val && typeof val === 'object' && !Array.isArray(val)) {
|
|
461
|
+
const obj = val;
|
|
462
|
+
if (obj.name !== undefined && obj.name_or_address === undefined) {
|
|
463
|
+
obj.name_or_address = obj.name;
|
|
464
|
+
delete obj.name;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
return val;
|
|
468
|
+
}, z.object({
|
|
451
469
|
name_or_address: NameOrAddressSchema.optional()
|
|
452
470
|
.describe("Account name or address. Use empty string '' for the default account. Defaults to '' if omitted."),
|
|
453
471
|
network: FaucetNetworkSchema,
|
|
454
|
-
})
|
|
472
|
+
}).strict())
|
|
455
473
|
.optional()
|
|
456
474
|
.describe("Distribute test coins from faucet to the specified account"),
|
|
457
475
|
suspend: z
|