@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
|
@@ -34,12 +34,12 @@ export declare const DisputeSchema: z.ZodObject<{
|
|
|
34
34
|
}>>;
|
|
35
35
|
}, "strict", z.ZodTypeAny, {
|
|
36
36
|
order: string;
|
|
37
|
-
proposition: string[];
|
|
38
37
|
fee: {
|
|
39
38
|
balance: string | number;
|
|
40
39
|
} | {
|
|
41
40
|
coin: string;
|
|
42
41
|
};
|
|
42
|
+
proposition: string[];
|
|
43
43
|
description?: string | undefined;
|
|
44
44
|
namedArb?: {
|
|
45
45
|
name?: string | undefined;
|
|
@@ -49,12 +49,12 @@ export declare const DisputeSchema: z.ZodObject<{
|
|
|
49
49
|
} | undefined;
|
|
50
50
|
}, {
|
|
51
51
|
order: string;
|
|
52
|
-
proposition: string[];
|
|
53
52
|
fee: {
|
|
54
53
|
balance: string | number;
|
|
55
54
|
} | {
|
|
56
55
|
coin: string;
|
|
57
56
|
};
|
|
57
|
+
proposition: string[];
|
|
58
58
|
description?: string | undefined;
|
|
59
59
|
namedArb?: {
|
|
60
60
|
name?: string | undefined;
|
|
@@ -369,12 +369,12 @@ export declare const CallArbitration_DataSchema: z.ZodObject<{
|
|
|
369
369
|
}>>;
|
|
370
370
|
}, "strict", z.ZodTypeAny, {
|
|
371
371
|
order: string;
|
|
372
|
-
proposition: string[];
|
|
373
372
|
fee: {
|
|
374
373
|
balance: string | number;
|
|
375
374
|
} | {
|
|
376
375
|
coin: string;
|
|
377
376
|
};
|
|
377
|
+
proposition: string[];
|
|
378
378
|
description?: string | undefined;
|
|
379
379
|
namedArb?: {
|
|
380
380
|
name?: string | undefined;
|
|
@@ -384,12 +384,12 @@ export declare const CallArbitration_DataSchema: z.ZodObject<{
|
|
|
384
384
|
} | undefined;
|
|
385
385
|
}, {
|
|
386
386
|
order: string;
|
|
387
|
-
proposition: string[];
|
|
388
387
|
fee: {
|
|
389
388
|
balance: string | number;
|
|
390
389
|
} | {
|
|
391
390
|
coin: string;
|
|
392
391
|
};
|
|
392
|
+
proposition: string[];
|
|
393
393
|
description?: string | undefined;
|
|
394
394
|
namedArb?: {
|
|
395
395
|
name?: string | undefined;
|
|
@@ -681,14 +681,15 @@ export declare const CallArbitration_DataSchema: z.ZodObject<{
|
|
|
681
681
|
arb: string;
|
|
682
682
|
} | undefined;
|
|
683
683
|
pause?: boolean | undefined;
|
|
684
|
+
fee?: string | number | undefined;
|
|
684
685
|
dispute?: {
|
|
685
686
|
order: string;
|
|
686
|
-
proposition: string[];
|
|
687
687
|
fee: {
|
|
688
688
|
balance: string | number;
|
|
689
689
|
} | {
|
|
690
690
|
coin: string;
|
|
691
691
|
};
|
|
692
|
+
proposition: string[];
|
|
692
693
|
description?: string | undefined;
|
|
693
694
|
namedArb?: {
|
|
694
695
|
name?: string | undefined;
|
|
@@ -756,7 +757,6 @@ export declare const CallArbitration_DataSchema: z.ZodObject<{
|
|
|
756
757
|
arb_withdraw?: {
|
|
757
758
|
arb: string;
|
|
758
759
|
} | undefined;
|
|
759
|
-
fee?: string | number | undefined;
|
|
760
760
|
voting_deadline_change?: {
|
|
761
761
|
arb: string;
|
|
762
762
|
voting_deadline: number | null;
|
|
@@ -791,14 +791,15 @@ export declare const CallArbitration_DataSchema: z.ZodObject<{
|
|
|
791
791
|
arb: string;
|
|
792
792
|
} | undefined;
|
|
793
793
|
pause?: boolean | undefined;
|
|
794
|
+
fee?: string | number | undefined;
|
|
794
795
|
dispute?: {
|
|
795
796
|
order: string;
|
|
796
|
-
proposition: string[];
|
|
797
797
|
fee: {
|
|
798
798
|
balance: string | number;
|
|
799
799
|
} | {
|
|
800
800
|
coin: string;
|
|
801
801
|
};
|
|
802
|
+
proposition: string[];
|
|
802
803
|
description?: string | undefined;
|
|
803
804
|
namedArb?: {
|
|
804
805
|
name?: string | undefined;
|
|
@@ -866,7 +867,6 @@ export declare const CallArbitration_DataSchema: z.ZodObject<{
|
|
|
866
867
|
arb_withdraw?: {
|
|
867
868
|
arb: string;
|
|
868
869
|
} | undefined;
|
|
869
|
-
fee?: string | number | undefined;
|
|
870
870
|
voting_deadline_change?: {
|
|
871
871
|
arb: string;
|
|
872
872
|
voting_deadline: number | null;
|
|
@@ -964,12 +964,12 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
964
964
|
}>>;
|
|
965
965
|
}, "strict", z.ZodTypeAny, {
|
|
966
966
|
order: string;
|
|
967
|
-
proposition: string[];
|
|
968
967
|
fee: {
|
|
969
968
|
balance: string | number;
|
|
970
969
|
} | {
|
|
971
970
|
coin: string;
|
|
972
971
|
};
|
|
972
|
+
proposition: string[];
|
|
973
973
|
description?: string | undefined;
|
|
974
974
|
namedArb?: {
|
|
975
975
|
name?: string | undefined;
|
|
@@ -979,12 +979,12 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
979
979
|
} | undefined;
|
|
980
980
|
}, {
|
|
981
981
|
order: string;
|
|
982
|
-
proposition: string[];
|
|
983
982
|
fee: {
|
|
984
983
|
balance: string | number;
|
|
985
984
|
} | {
|
|
986
985
|
coin: string;
|
|
987
986
|
};
|
|
987
|
+
proposition: string[];
|
|
988
988
|
description?: string | undefined;
|
|
989
989
|
namedArb?: {
|
|
990
990
|
name?: string | undefined;
|
|
@@ -1276,14 +1276,15 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
1276
1276
|
arb: string;
|
|
1277
1277
|
} | undefined;
|
|
1278
1278
|
pause?: boolean | undefined;
|
|
1279
|
+
fee?: string | number | undefined;
|
|
1279
1280
|
dispute?: {
|
|
1280
1281
|
order: string;
|
|
1281
|
-
proposition: string[];
|
|
1282
1282
|
fee: {
|
|
1283
1283
|
balance: string | number;
|
|
1284
1284
|
} | {
|
|
1285
1285
|
coin: string;
|
|
1286
1286
|
};
|
|
1287
|
+
proposition: string[];
|
|
1287
1288
|
description?: string | undefined;
|
|
1288
1289
|
namedArb?: {
|
|
1289
1290
|
name?: string | undefined;
|
|
@@ -1351,7 +1352,6 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
1351
1352
|
arb_withdraw?: {
|
|
1352
1353
|
arb: string;
|
|
1353
1354
|
} | undefined;
|
|
1354
|
-
fee?: string | number | undefined;
|
|
1355
1355
|
voting_deadline_change?: {
|
|
1356
1356
|
arb: string;
|
|
1357
1357
|
voting_deadline: number | null;
|
|
@@ -1386,14 +1386,15 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
1386
1386
|
arb: string;
|
|
1387
1387
|
} | undefined;
|
|
1388
1388
|
pause?: boolean | undefined;
|
|
1389
|
+
fee?: string | number | undefined;
|
|
1389
1390
|
dispute?: {
|
|
1390
1391
|
order: string;
|
|
1391
|
-
proposition: string[];
|
|
1392
1392
|
fee: {
|
|
1393
1393
|
balance: string | number;
|
|
1394
1394
|
} | {
|
|
1395
1395
|
coin: string;
|
|
1396
1396
|
};
|
|
1397
|
+
proposition: string[];
|
|
1397
1398
|
description?: string | undefined;
|
|
1398
1399
|
namedArb?: {
|
|
1399
1400
|
name?: string | undefined;
|
|
@@ -1461,7 +1462,6 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
1461
1462
|
arb_withdraw?: {
|
|
1462
1463
|
arb: string;
|
|
1463
1464
|
} | undefined;
|
|
1464
|
-
fee?: string | number | undefined;
|
|
1465
1465
|
voting_deadline_change?: {
|
|
1466
1466
|
arb: string;
|
|
1467
1467
|
voting_deadline: number | null;
|
|
@@ -1477,10 +1477,11 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
1477
1477
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1478
1478
|
project: z.ZodOptional<z.ZodString>;
|
|
1479
1479
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
1480
|
-
schema_strict_mode: z.ZodOptional<z.ZodBoolean
|
|
1480
|
+
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1481
1481
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
1482
1482
|
}, "strict", z.ZodTypeAny, {
|
|
1483
1483
|
account: string;
|
|
1484
|
+
schema_strict_mode: boolean;
|
|
1484
1485
|
no_cache?: boolean | undefined;
|
|
1485
1486
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
1486
1487
|
permission_guard?: string[] | undefined;
|
|
@@ -1489,7 +1490,6 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
1489
1490
|
user_intent_phrases?: string[] | undefined;
|
|
1490
1491
|
project?: string | undefined;
|
|
1491
1492
|
client_schema_version?: string | undefined;
|
|
1492
|
-
schema_strict_mode?: boolean | undefined;
|
|
1493
1493
|
dry_run?: boolean | undefined;
|
|
1494
1494
|
}, {
|
|
1495
1495
|
no_cache?: boolean | undefined;
|
|
@@ -1715,14 +1715,15 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
1715
1715
|
arb: string;
|
|
1716
1716
|
} | undefined;
|
|
1717
1717
|
pause?: boolean | undefined;
|
|
1718
|
+
fee?: string | number | undefined;
|
|
1718
1719
|
dispute?: {
|
|
1719
1720
|
order: string;
|
|
1720
|
-
proposition: string[];
|
|
1721
1721
|
fee: {
|
|
1722
1722
|
balance: string | number;
|
|
1723
1723
|
} | {
|
|
1724
1724
|
coin: string;
|
|
1725
1725
|
};
|
|
1726
|
+
proposition: string[];
|
|
1726
1727
|
description?: string | undefined;
|
|
1727
1728
|
namedArb?: {
|
|
1728
1729
|
name?: string | undefined;
|
|
@@ -1790,7 +1791,6 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
1790
1791
|
arb_withdraw?: {
|
|
1791
1792
|
arb: string;
|
|
1792
1793
|
} | undefined;
|
|
1793
|
-
fee?: string | number | undefined;
|
|
1794
1794
|
voting_deadline_change?: {
|
|
1795
1795
|
arb: string;
|
|
1796
1796
|
voting_deadline: number | null;
|
|
@@ -1825,6 +1825,7 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
1825
1825
|
} | undefined;
|
|
1826
1826
|
env?: {
|
|
1827
1827
|
account: string;
|
|
1828
|
+
schema_strict_mode: boolean;
|
|
1828
1829
|
no_cache?: boolean | undefined;
|
|
1829
1830
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
1830
1831
|
permission_guard?: string[] | undefined;
|
|
@@ -1833,7 +1834,6 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
1833
1834
|
user_intent_phrases?: string[] | undefined;
|
|
1834
1835
|
project?: string | undefined;
|
|
1835
1836
|
client_schema_version?: string | undefined;
|
|
1836
|
-
schema_strict_mode?: boolean | undefined;
|
|
1837
1837
|
dry_run?: boolean | undefined;
|
|
1838
1838
|
} | undefined;
|
|
1839
1839
|
}, {
|
|
@@ -1867,14 +1867,15 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
1867
1867
|
arb: string;
|
|
1868
1868
|
} | undefined;
|
|
1869
1869
|
pause?: boolean | undefined;
|
|
1870
|
+
fee?: string | number | undefined;
|
|
1870
1871
|
dispute?: {
|
|
1871
1872
|
order: string;
|
|
1872
|
-
proposition: string[];
|
|
1873
1873
|
fee: {
|
|
1874
1874
|
balance: string | number;
|
|
1875
1875
|
} | {
|
|
1876
1876
|
coin: string;
|
|
1877
1877
|
};
|
|
1878
|
+
proposition: string[];
|
|
1878
1879
|
description?: string | undefined;
|
|
1879
1880
|
namedArb?: {
|
|
1880
1881
|
name?: string | undefined;
|
|
@@ -1942,7 +1943,6 @@ export declare const CallArbitration_InputSchema: z.ZodObject<{
|
|
|
1942
1943
|
arb_withdraw?: {
|
|
1943
1944
|
arb: string;
|
|
1944
1945
|
} | undefined;
|
|
1945
|
-
fee?: string | number | undefined;
|
|
1946
1946
|
voting_deadline_change?: {
|
|
1947
1947
|
arb: string;
|
|
1948
1948
|
voting_deadline: number | null;
|
|
@@ -1,26 +1,47 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { TypedPermissionObjectSchema, CoinParamSchema, NamedObjectSchema, CallEnvSchema, SubmissionCallSchema } from "./base.js";
|
|
3
3
|
import { VotingGuardSchema } from "../query/index.js";
|
|
4
|
-
import { BalanceTypeSchema, DescriptionSchema, LongNameSchema, NameOrAddressSchema, NameSchema, ReceivedObjectsOrRecentlySchema } from "../common/index.js";
|
|
4
|
+
import { BalanceTypeSchema, DescriptionSchema, LongNameSchema, NameOrAddressSchema, NameSchema, ReceivedObjectsOrRecentlySchema, RECEIVE_FORMAT_BLOCK_OBJECTS } from "../common/index.js";
|
|
5
5
|
export const DisputeSchema = z.object({
|
|
6
6
|
order: NameOrAddressSchema.describe("Order ID or name."),
|
|
7
7
|
description: DescriptionSchema.optional().describe("Dispute description."),
|
|
8
8
|
proposition: z.array(LongNameSchema).describe("List of dispute propositions."),
|
|
9
|
-
fee: CoinParamSchema.describe("Dispute processing fee."
|
|
10
|
-
|
|
9
|
+
fee: CoinParamSchema.describe("Dispute processing fee. FORMAT: {balance: <amount_in_smallest_unit>} — field name is 'balance' (NOT 'amount'). " +
|
|
10
|
+
"The token type and precision are determined by the Arbitration object's type_parameter (the generic type set when the Arbitration was created). " +
|
|
11
|
+
"For WOW (9 decimals): {balance: 50000000} = 0.05 WOW. For SUI (9 decimals): {balance: 50000000} = 0.05 SUI. " +
|
|
12
|
+
"For tokens with different decimals, adjust accordingly (e.g. USDC has 6 decimals, so {balance: 50000} = 0.05 USDC)."),
|
|
13
|
+
namedArb: NamedObjectSchema.optional().describe("RECOMMENDED: Set a local name for the newly created Arb (arbitration case) object. " +
|
|
14
|
+
"Without this, the Arb is only referenceable by its on-chain address. " +
|
|
15
|
+
"Example: {name: 'my_dispute_v1'} allows subsequent vote/feedback operations to use 'my_dispute_v1'.")
|
|
11
16
|
}).strict();
|
|
12
17
|
export const ConfirmSchema = z.object({
|
|
13
18
|
arb: NameOrAddressSchema,
|
|
14
|
-
voting_deadline: z.union([z.number().int().min(0), z.null()])
|
|
19
|
+
voting_deadline: z.union([z.number().int().min(0), z.null()]).describe("Voting deadline as Unix timestamp in MILLISECONDS (ms). SEMANTICS OF SPECIAL VALUES: " +
|
|
20
|
+
"0 = deadline already passed → voting is IMPOSSIBLE and the arbitrator may deliver the verdict immediately (direct-verdict flow); " +
|
|
21
|
+
"null = open-ended voting with no deadline (verdict allowed anytime); " +
|
|
22
|
+
"a future timestamp = normal voting window (recommended: now + at least 86400000 ms = 24 hours). " +
|
|
23
|
+
"COMMON MISTAKE: using seconds instead of milliseconds (multiply by 1000). " +
|
|
24
|
+
"Example: Date.now() + 259200000 for 3 days from now.")
|
|
15
25
|
}).strict();
|
|
16
26
|
export const VotingDeadlineChangeSchema = z.object({
|
|
17
27
|
arb: NameOrAddressSchema,
|
|
18
|
-
voting_deadline: z.union([z.number(), z.null()])
|
|
28
|
+
voting_deadline: z.union([z.number(), z.null()]).describe("New voting deadline as Unix timestamp in MILLISECONDS (ms). SEMANTICS OF SPECIAL VALUES: " +
|
|
29
|
+
"0 = deadline already passed → voting is IMPOSSIBLE and the arbitrator may deliver the verdict immediately; " +
|
|
30
|
+
"null = open-ended voting with no deadline (verdict allowed anytime); " +
|
|
31
|
+
"a future timestamp = normal voting window (recommended: now + at least 86400000 ms = 24 hours). " +
|
|
32
|
+
"COMMON MISTAKE: using seconds instead of milliseconds (multiply by 1000). " +
|
|
33
|
+
"Example: Date.now() + 259200000 for 3 days from now.")
|
|
19
34
|
}).strict();
|
|
20
35
|
export const VoteSchema = z.object({
|
|
21
36
|
arb: NameOrAddressSchema,
|
|
22
|
-
votes: z.array(z.number().int().min(0).max(255)),
|
|
23
|
-
|
|
37
|
+
votes: z.array(z.number().int().min(0).max(255)).describe("Proposition INDICES (0-based, u8) the voter agrees with — e.g. [0] votes for the first proposition. " +
|
|
38
|
+
"Re-voting REPLACES the voter's previous vote (old weight removed, new applied). " +
|
|
39
|
+
"Out-of-range index aborts with E_PROPOSITION_NOT_FOUND."),
|
|
40
|
+
voting_guard: NameOrAddressSchema.optional().describe("Optional Voting Guard for weighted voting. THREE PATHS are supported by the SDK and Move contract: " +
|
|
41
|
+
"(1) voting_guard PROVIDED → vote_with_voting_guard (Guard verifies voter + determines vote weight via VoteWeight config); " +
|
|
42
|
+
"(2) voting_guard OMITTED but other guards trigger passport creation (e.g. env.permission_guard or usage_guard) → vote_with_passport (permission-only via passport); " +
|
|
43
|
+
"(3) voting_guard OMITTED and no passport context → vote (plain permission-only vote, no Guard). " +
|
|
44
|
+
"The Guard (when provided) must be in the Arbitration's voting_guard list."),
|
|
24
45
|
}).strict();
|
|
25
46
|
export const FeedbackSchema = z.object({
|
|
26
47
|
arb: NameOrAddressSchema,
|
|
@@ -82,9 +103,9 @@ export const CallArbitration_DataSchema = z.object({
|
|
|
82
103
|
fees_transfer: FeesTransferSchema.optional().describe("Distribute the withdrawn arbitration fees."),
|
|
83
104
|
usage_guard: z.union([NameOrAddressSchema, z.null()]).optional().describe("Set Guard for verification when users apply for arbitration; if Guard verification fails, users will not be able to apply for arbitration."),
|
|
84
105
|
voting_guard: VotingGuardActionSchema.optional().describe("Set Guard for verification during arbitration voting; if Guard verification fails, arbitration voting will fail."),
|
|
85
|
-
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."),
|
|
106
|
+
owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe("Unwrap CoinWrapper objects and other objects received by this Arbitration object and send them to the owner of its Permission object." + RECEIVE_FORMAT_BLOCK_OBJECTS),
|
|
86
107
|
um: z.union([NameOrAddressSchema, z.null()]).optional().describe("Contact object ID or name.")
|
|
87
|
-
}).strict().describe("On-chain Arbitration operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, type_parameter, permission, ...} to create an Arbitration. 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.");
|
|
108
|
+
}).strict().describe("On-chain Arbitration operations. USAGE: (1) CREATE NEW: Set 'object' field with OBJECT format {name, type_parameter, permission, ...} to create an Arbitration. 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. ⚠️ PERMISSION RULE (contract-enforced, service.move arbitration_add_imp): the Arbitration's permission MUST be DIFFERENT from the permission of any Service it will be bound to — binding an Arbitration that SHARES the Service's Permission aborts with E_ARBITRATION_PERMISSION_CONFLICT (error 33). Always create a DEDICATED Permission object for each Arbitration. (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.");
|
|
88
109
|
export const CallArbitration_InputSchema = z.object({
|
|
89
110
|
data: CallArbitration_DataSchema,
|
|
90
111
|
env: CallEnvSchema.optional(),
|
|
@@ -222,10 +222,11 @@ export declare const CallEnvSchema: z.ZodObject<{
|
|
|
222
222
|
user_intent_phrases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
223
223
|
project: z.ZodOptional<z.ZodString>;
|
|
224
224
|
client_schema_version: z.ZodOptional<z.ZodString>;
|
|
225
|
-
schema_strict_mode: z.ZodOptional<z.ZodBoolean
|
|
225
|
+
schema_strict_mode: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
226
226
|
dry_run: z.ZodOptional<z.ZodBoolean>;
|
|
227
227
|
}, "strict", z.ZodTypeAny, {
|
|
228
228
|
account: string;
|
|
229
|
+
schema_strict_mode: boolean;
|
|
229
230
|
no_cache?: boolean | undefined;
|
|
230
231
|
network?: ENTRYPOINT | undefined;
|
|
231
232
|
permission_guard?: string[] | undefined;
|
|
@@ -234,7 +235,6 @@ export declare const CallEnvSchema: z.ZodObject<{
|
|
|
234
235
|
user_intent_phrases?: string[] | undefined;
|
|
235
236
|
project?: string | undefined;
|
|
236
237
|
client_schema_version?: string | undefined;
|
|
237
|
-
schema_strict_mode?: boolean | undefined;
|
|
238
238
|
dry_run?: boolean | undefined;
|
|
239
239
|
}, {
|
|
240
240
|
no_cache?: boolean | undefined;
|
package/dist/schema/call/base.js
CHANGED
|
@@ -89,7 +89,7 @@ export const CallEnvSchema = z.object({
|
|
|
89
89
|
user_intent_phrases: z.array(z.string()).optional().describe("Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."),
|
|
90
90
|
project: z.string().optional().describe("Project prefix to assign this object to (e.g. 'myshop'). When set: 1) the object is tagged with 'project:<prefix>' on-chain automatically via ProjectService, 2) the newly created object is auto-associated to the SQLite project for local management, evaluation, and graph tracking. The project MUST exist (create via project_operation action='create_project' first). Use project_operation to manage projects."),
|
|
91
91
|
client_schema_version: z.string().optional().describe("Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."),
|
|
92
|
-
schema_strict_mode: z.boolean().optional().describe("When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."),
|
|
92
|
+
schema_strict_mode: z.boolean().optional().default(false).describe("When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."),
|
|
93
93
|
dry_run: z.boolean().optional().describe("Phase 1 dry_run: when true, SIMULATE the transaction without signing or submitting. Returns effects + events showing what WOULD happen — no on-chain state is modified, no gas is charged. Use this to verify an operation will succeed before committing. Essential for the 5-step loop's Plan step. The returned digest will be 'dry_run:<timestamp>' and objectChanges will be empty (simulation only)."),
|
|
94
94
|
}).strict().describe(`IMPORTANT: Execution environment includes: account for signing operations, network selection (${ENTRYPOINT}), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account ("") will be used.`);
|
|
95
95
|
export const ObjectsOpSchema = z.union([
|