@wowok/agent-mcp 2.3.12 → 2.3.14

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.
Files changed (93) hide show
  1. package/dist/harness/checkpoint.d.ts +8 -0
  2. package/dist/harness/checkpoint.js +129 -0
  3. package/dist/harness/index.d.ts +33 -0
  4. package/dist/harness/index.js +75 -0
  5. package/dist/harness/plan.d.ts +18 -0
  6. package/dist/harness/plan.js +252 -0
  7. package/dist/harness/recover.d.ts +17 -0
  8. package/dist/harness/recover.js +139 -0
  9. package/dist/harness/types.d.ts +137 -0
  10. package/dist/harness/types.js +1 -0
  11. package/dist/harness/verify.d.ts +42 -0
  12. package/dist/harness/verify.js +237 -0
  13. package/dist/index.js +134 -52
  14. package/dist/loop-engineering/aggregate.d.ts +50 -0
  15. package/dist/loop-engineering/aggregate.js +132 -0
  16. package/dist/loop-engineering/diagnose.d.ts +21 -0
  17. package/dist/loop-engineering/diagnose.js +179 -0
  18. package/dist/loop-engineering/improve.d.ts +26 -0
  19. package/dist/loop-engineering/improve.js +178 -0
  20. package/dist/loop-engineering/index.d.ts +4 -0
  21. package/dist/loop-engineering/index.js +4 -0
  22. package/dist/loop-engineering/pipeline.d.ts +17 -0
  23. package/dist/loop-engineering/pipeline.js +56 -0
  24. package/dist/mode-market/index.d.ts +3 -0
  25. package/dist/mode-market/index.js +3 -0
  26. package/dist/mode-market/registry.d.ts +53 -0
  27. package/dist/mode-market/registry.js +124 -0
  28. package/dist/mode-market/review.d.ts +27 -0
  29. package/dist/mode-market/review.js +214 -0
  30. package/dist/mode-market/submission.d.ts +25 -0
  31. package/dist/mode-market/submission.js +85 -0
  32. package/dist/schema/call/allocation.d.ts +40 -40
  33. package/dist/schema/call/arbitration.d.ts +90 -90
  34. package/dist/schema/call/base.d.ts +1054 -0
  35. package/dist/schema/call/base.js +100 -22
  36. package/dist/schema/call/bridge-handler.js +36 -18
  37. package/dist/schema/call/bridge.d.ts +115 -115
  38. package/dist/schema/call/handler.d.ts +2 -1
  39. package/dist/schema/call/handler.js +94 -3
  40. package/dist/schema/call/index.d.ts +1 -0
  41. package/dist/schema/call/index.js +1 -0
  42. package/dist/schema/call/machine.d.ts +144 -144
  43. package/dist/schema/call/order.d.ts +12 -12
  44. package/dist/schema/call/progress.d.ts +6 -6
  45. package/dist/schema/call/proof.js +7 -6
  46. package/dist/schema/call/reward.d.ts +6 -6
  47. package/dist/schema/call/semantic.d.ts +23 -0
  48. package/dist/schema/call/semantic.js +764 -0
  49. package/dist/schema/call/service.d.ts +142 -142
  50. package/dist/schema/call/treasury.d.ts +204 -204
  51. package/dist/schema/local/index.d.ts +113 -2
  52. package/dist/schema/local/index.js +11 -1
  53. package/dist/schema/messenger/index.d.ts +435 -95
  54. package/dist/schema/messenger/index.js +20 -8
  55. package/dist/schema/operations.d.ts +988 -495
  56. package/dist/schema/operations.js +14 -3
  57. package/dist/schema/query/index.d.ts +346 -342
  58. package/dist/schema/query/index.js +4 -1
  59. package/dist/schemas/account_operation.output.json +3 -0
  60. package/dist/schemas/account_operation.schema.json +1 -1
  61. package/dist/schemas/index.json +1 -1
  62. package/dist/schemas/local_info_operation.output.json +3 -0
  63. package/dist/schemas/local_mark_operation.output.json +3 -0
  64. package/dist/schemas/messenger_operation.output.json +21 -0
  65. package/dist/schemas/messenger_operation.schema.json +43 -8
  66. package/dist/schemas/onchain_events.output.json +3 -0
  67. package/dist/schemas/onchain_operations.output.json +464 -21
  68. package/dist/schemas/onchain_operations.schema.json +21 -17
  69. package/dist/schemas/onchain_operations_allocation.schema.json +11 -9
  70. package/dist/schemas/onchain_operations_arbitration.schema.json +11 -9
  71. package/dist/schemas/onchain_operations_contact.schema.json +11 -9
  72. package/dist/schemas/onchain_operations_demand.schema.json +11 -9
  73. package/dist/schemas/onchain_operations_gen_passport.schema.json +21 -17
  74. package/dist/schemas/onchain_operations_guard.schema.json +11 -9
  75. package/dist/schemas/onchain_operations_machine.schema.json +11 -9
  76. package/dist/schemas/onchain_operations_order.schema.json +11 -9
  77. package/dist/schemas/onchain_operations_payment.schema.json +11 -9
  78. package/dist/schemas/onchain_operations_permission.schema.json +11 -9
  79. package/dist/schemas/onchain_operations_personal.schema.json +11 -9
  80. package/dist/schemas/onchain_operations_progress.schema.json +11 -9
  81. package/dist/schemas/onchain_operations_repository.schema.json +11 -9
  82. package/dist/schemas/onchain_operations_reward.schema.json +11 -9
  83. package/dist/schemas/onchain_operations_service.schema.json +11 -9
  84. package/dist/schemas/onchain_operations_treasury.schema.json +11 -9
  85. package/dist/schemas/onchain_table_data.output.json +3 -0
  86. package/dist/schemas/query_toolkit.schema.json +5 -1
  87. package/dist/telemetry/index.d.ts +19 -0
  88. package/dist/telemetry/index.js +112 -0
  89. package/dist/telemetry/redact.d.ts +2 -0
  90. package/dist/telemetry/redact.js +23 -0
  91. package/dist/telemetry/storage.d.ts +8 -0
  92. package/dist/telemetry/storage.js +80 -0
  93. package/package.json +6 -3
@@ -4356,7 +4356,7 @@ export declare const QueryAccountResultSchema: z.ZodObject<{
4356
4356
  nextCursor?: string | null | undefined;
4357
4357
  } | undefined;
4358
4358
  }>;
4359
- export declare const AccountOperationSchema: z.ZodObject<{
4359
+ export declare const AccountOperationSchema: z.ZodEffects<z.ZodObject<{
4360
4360
  gen: z.ZodOptional<z.ZodObject<{
4361
4361
  name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
4362
4362
  replaceExistName: z.ZodOptional<z.ZodBoolean>;
@@ -4475,7 +4475,101 @@ export declare const AccountOperationSchema: z.ZodObject<{
4475
4475
  m: string | null;
4476
4476
  name_or_account?: string | undefined;
4477
4477
  }>>;
4478
- }, "strip", z.ZodTypeAny, {
4478
+ }, "strict", z.ZodTypeAny, {
4479
+ gen?: {
4480
+ name?: string | undefined;
4481
+ replaceExistName?: boolean | undefined;
4482
+ m?: string | null | undefined;
4483
+ } | undefined;
4484
+ faucet?: {
4485
+ network: import("@wowok/wowok").ENTRYPOINT.Testnet | import("@wowok/wowok").ENTRYPOINT.Localnet;
4486
+ name_or_address?: string | undefined;
4487
+ } | undefined;
4488
+ suspend?: {
4489
+ name_or_address?: string | undefined;
4490
+ } | undefined;
4491
+ resume?: {
4492
+ address: string;
4493
+ name?: string | undefined;
4494
+ } | undefined;
4495
+ rename?: {
4496
+ new_name: string;
4497
+ name_or_address?: string | undefined;
4498
+ } | undefined;
4499
+ swap_name?: {
4500
+ name1?: string | undefined;
4501
+ name2?: string | undefined;
4502
+ } | undefined;
4503
+ transfer?: {
4504
+ amount: string | number;
4505
+ network?: import("@wowok/wowok").ENTRYPOINT | undefined;
4506
+ token_type?: string | undefined;
4507
+ name_or_address_from?: string | undefined;
4508
+ name_or_address_to?: string | undefined;
4509
+ } | undefined;
4510
+ get?: {
4511
+ balance_required: string | number;
4512
+ name_or_address?: string | undefined;
4513
+ network?: import("@wowok/wowok").ENTRYPOINT | undefined;
4514
+ token_type?: string | undefined;
4515
+ } | undefined;
4516
+ signData?: {
4517
+ data: string;
4518
+ name_or_address?: string | undefined;
4519
+ data_encoding?: "base64" | "utf8" | "hex" | undefined;
4520
+ } | undefined;
4521
+ messenger?: {
4522
+ m: string | null;
4523
+ name_or_account?: string | undefined;
4524
+ } | undefined;
4525
+ }, {
4526
+ gen?: {
4527
+ name?: string | undefined;
4528
+ replaceExistName?: boolean | undefined;
4529
+ m?: string | null | undefined;
4530
+ } | undefined;
4531
+ faucet?: {
4532
+ network: import("@wowok/wowok").ENTRYPOINT.Testnet | import("@wowok/wowok").ENTRYPOINT.Localnet;
4533
+ name_or_address?: string | undefined;
4534
+ } | undefined;
4535
+ suspend?: {
4536
+ name_or_address?: string | undefined;
4537
+ } | undefined;
4538
+ resume?: {
4539
+ address: string;
4540
+ name?: string | undefined;
4541
+ } | undefined;
4542
+ rename?: {
4543
+ new_name: string;
4544
+ name_or_address?: string | undefined;
4545
+ } | undefined;
4546
+ swap_name?: {
4547
+ name1?: string | undefined;
4548
+ name2?: string | undefined;
4549
+ } | undefined;
4550
+ transfer?: {
4551
+ amount: string | number;
4552
+ network?: import("@wowok/wowok").ENTRYPOINT | undefined;
4553
+ token_type?: string | undefined;
4554
+ name_or_address_from?: string | undefined;
4555
+ name_or_address_to?: string | undefined;
4556
+ } | undefined;
4557
+ get?: {
4558
+ balance_required: string | number;
4559
+ name_or_address?: string | undefined;
4560
+ network?: import("@wowok/wowok").ENTRYPOINT | undefined;
4561
+ token_type?: string | undefined;
4562
+ } | undefined;
4563
+ signData?: {
4564
+ data: string;
4565
+ name_or_address?: string | undefined;
4566
+ data_encoding?: "base64" | "utf8" | "hex" | undefined;
4567
+ } | undefined;
4568
+ messenger?: {
4569
+ m: string | null;
4570
+ name_or_account?: string | undefined;
4571
+ } | undefined;
4572
+ }>, {
4479
4573
  gen?: {
4480
4574
  name?: string | undefined;
4481
4575
  replaceExistName?: boolean | undefined;
@@ -7896,6 +7990,7 @@ export declare const AccountFilterSchema: z.ZodObject<{
7896
7990
  gte?: number | undefined;
7897
7991
  lte?: number | undefined;
7898
7992
  }>>;
7993
+ includePubkey: z.ZodOptional<z.ZodBoolean>;
7899
7994
  }, "strip", z.ZodTypeAny, {
7900
7995
  address?: string | undefined;
7901
7996
  name?: string | undefined;
@@ -7910,6 +8005,7 @@ export declare const AccountFilterSchema: z.ZodObject<{
7910
8005
  m?: string | undefined;
7911
8006
  suspended?: boolean | undefined;
7912
8007
  hasMessenger?: boolean | undefined;
8008
+ includePubkey?: boolean | undefined;
7913
8009
  }, {
7914
8010
  address?: string | undefined;
7915
8011
  name?: string | undefined;
@@ -7924,6 +8020,7 @@ export declare const AccountFilterSchema: z.ZodObject<{
7924
8020
  m?: string | undefined;
7925
8021
  suspended?: boolean | undefined;
7926
8022
  hasMessenger?: boolean | undefined;
8023
+ includePubkey?: boolean | undefined;
7927
8024
  }>;
7928
8025
  export declare const QueryAccountListSchema: z.ZodObject<{
7929
8026
  filter: z.ZodOptional<z.ZodObject<{
@@ -7952,6 +8049,7 @@ export declare const QueryAccountListSchema: z.ZodObject<{
7952
8049
  gte?: number | undefined;
7953
8050
  lte?: number | undefined;
7954
8051
  }>>;
8052
+ includePubkey: z.ZodOptional<z.ZodBoolean>;
7955
8053
  }, "strip", z.ZodTypeAny, {
7956
8054
  address?: string | undefined;
7957
8055
  name?: string | undefined;
@@ -7966,6 +8064,7 @@ export declare const QueryAccountListSchema: z.ZodObject<{
7966
8064
  m?: string | undefined;
7967
8065
  suspended?: boolean | undefined;
7968
8066
  hasMessenger?: boolean | undefined;
8067
+ includePubkey?: boolean | undefined;
7969
8068
  }, {
7970
8069
  address?: string | undefined;
7971
8070
  name?: string | undefined;
@@ -7980,6 +8079,7 @@ export declare const QueryAccountListSchema: z.ZodObject<{
7980
8079
  m?: string | undefined;
7981
8080
  suspended?: boolean | undefined;
7982
8081
  hasMessenger?: boolean | undefined;
8082
+ includePubkey?: boolean | undefined;
7983
8083
  }>>;
7984
8084
  }, "strip", z.ZodTypeAny, {
7985
8085
  filter?: {
@@ -7996,6 +8096,7 @@ export declare const QueryAccountListSchema: z.ZodObject<{
7996
8096
  m?: string | undefined;
7997
8097
  suspended?: boolean | undefined;
7998
8098
  hasMessenger?: boolean | undefined;
8099
+ includePubkey?: boolean | undefined;
7999
8100
  } | undefined;
8000
8101
  }, {
8001
8102
  filter?: {
@@ -8012,6 +8113,7 @@ export declare const QueryAccountListSchema: z.ZodObject<{
8012
8113
  m?: string | undefined;
8013
8114
  suspended?: boolean | undefined;
8014
8115
  hasMessenger?: boolean | undefined;
8116
+ includePubkey?: boolean | undefined;
8015
8117
  } | undefined;
8016
8118
  }>;
8017
8119
  export declare const AccountDataSchema: z.ZodObject<{
@@ -15354,6 +15456,7 @@ export declare const AccountOperationOutputWrappedSchema: z.ZodObject<{
15354
15456
  status: "error";
15355
15457
  error: string;
15356
15458
  }>]>;
15459
+ semantic: z.ZodOptional<z.ZodAny>;
15357
15460
  }, "strip", z.ZodTypeAny, {
15358
15461
  result: {
15359
15462
  status: "success";
@@ -15703,6 +15806,7 @@ export declare const AccountOperationOutputWrappedSchema: z.ZodObject<{
15703
15806
  status: "error";
15704
15807
  error: string;
15705
15808
  };
15809
+ semantic?: any;
15706
15810
  }, {
15707
15811
  result: {
15708
15812
  status: "success";
@@ -16052,6 +16156,7 @@ export declare const AccountOperationOutputWrappedSchema: z.ZodObject<{
16052
16156
  status: "error";
16053
16157
  error: string;
16054
16158
  };
16159
+ semantic?: any;
16055
16160
  }>;
16056
16161
  export declare const LocalMarkOperationOutputSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
16057
16162
  status: z.ZodLiteral<"success">;
@@ -16300,6 +16405,7 @@ export declare const LocalMarkOperationOutputWrappedSchema: z.ZodObject<{
16300
16405
  status: "error";
16301
16406
  error: string;
16302
16407
  }>]>;
16408
+ semantic: z.ZodOptional<z.ZodAny>;
16303
16409
  }, "strip", z.ZodTypeAny, {
16304
16410
  result: {
16305
16411
  status: "success";
@@ -16324,6 +16430,7 @@ export declare const LocalMarkOperationOutputWrappedSchema: z.ZodObject<{
16324
16430
  status: "error";
16325
16431
  error: string;
16326
16432
  };
16433
+ semantic?: any;
16327
16434
  }, {
16328
16435
  result: {
16329
16436
  status: "success";
@@ -16348,6 +16455,7 @@ export declare const LocalMarkOperationOutputWrappedSchema: z.ZodObject<{
16348
16455
  status: "error";
16349
16456
  error: string;
16350
16457
  };
16458
+ semantic?: any;
16351
16459
  }>;
16352
16460
  export declare const LocalInfoOperationOutputSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
16353
16461
  status: z.ZodLiteral<"success">;
@@ -16408,6 +16516,7 @@ export declare const LocalInfoOperationOutputWrappedSchema: z.ZodObject<{
16408
16516
  status: "error";
16409
16517
  error: string;
16410
16518
  }>]>;
16519
+ semantic: z.ZodOptional<z.ZodAny>;
16411
16520
  }, "strip", z.ZodTypeAny, {
16412
16521
  result: {
16413
16522
  status: "success";
@@ -16418,6 +16527,7 @@ export declare const LocalInfoOperationOutputWrappedSchema: z.ZodObject<{
16418
16527
  status: "error";
16419
16528
  error: string;
16420
16529
  };
16530
+ semantic?: any;
16421
16531
  }, {
16422
16532
  result: {
16423
16533
  status: "success";
@@ -16428,6 +16538,7 @@ export declare const LocalInfoOperationOutputWrappedSchema: z.ZodObject<{
16428
16538
  status: "error";
16429
16539
  error: string;
16430
16540
  };
16541
+ semantic?: any;
16431
16542
  }>;
16432
16543
  export type CoinBalance = z.infer<typeof CoinBalanceSchema>;
16433
16544
  export type CoinStruct = z.infer<typeof CoinStructSchema>;
@@ -1,5 +1,6 @@
1
1
  import { EntrypointSchema, ObjectOwnerSchema, NameOrAddressSchema, NameSchema, WowAddressSchema, TokenTypeSchema, FaucetNetworkSchema } from "../common/index.js";
2
2
  import { z } from "zod";
3
+ const SemanticSummarySchema = z.any();
3
4
  export const LocalMarkConstraints = {
4
5
  nameMaxLength: 64,
5
6
  tagMaxLength: 64,
@@ -529,7 +530,9 @@ export const AccountOperationSchema = z
529
530
  .optional()
530
531
  .describe("Enable or disable messenger for an account"),
531
532
  })
532
- .describe("Account operations");
533
+ .strict()
534
+ .refine((data) => Object.keys(data).length > 0, "At least one operation (gen/faucet/suspend/resume/rename/swap_name/transfer/get/signData/messenger) must be specified")
535
+ .describe("Account operations. Parameters MUST be wrapped in the operation type property (e.g. {transfer: {...}}, NOT {amount: ...}). Unwrapped parameters are rejected.");
533
536
  export const AccountOperationResultSchema = z
534
537
  .object({
535
538
  gen: z
@@ -774,6 +777,10 @@ export const AccountFilterSchema = z
774
777
  })
775
778
  .optional()
776
779
  .describe("Filter by update time range"),
780
+ includePubkey: z
781
+ .boolean()
782
+ .optional()
783
+ .describe("Include pubkey in results (default: false). Pubkey is large (~900 bytes), omit unless needed"),
777
784
  })
778
785
  .describe("Filter criteria for querying accounts. Multiple filters are combined with AND logic.");
779
786
  export const QueryAccountListSchema = z.object({
@@ -825,6 +832,7 @@ export const AccountOperationOutputSchema = z.discriminatedUnion("status", [
825
832
  ]).describe("Account operation output schema with discriminator");
826
833
  export const AccountOperationOutputWrappedSchema = z.object({
827
834
  result: AccountOperationOutputSchema,
835
+ semantic: SemanticSummarySchema.optional().describe("Business semantic summary for account operation"),
828
836
  }).describe("Account operation output wrapped schema");
829
837
  export const LocalMarkOperationOutputSchema = z.discriminatedUnion("status", [
830
838
  z.object({
@@ -838,6 +846,7 @@ export const LocalMarkOperationOutputSchema = z.discriminatedUnion("status", [
838
846
  ]).describe("Local mark operation output schema with discriminator");
839
847
  export const LocalMarkOperationOutputWrappedSchema = z.object({
840
848
  result: LocalMarkOperationOutputSchema,
849
+ semantic: SemanticSummarySchema.optional().describe("Business semantic summary for local mark operation"),
841
850
  }).describe("Local mark operation output wrapped schema");
842
851
  export const LocalInfoOperationOutputSchema = z.discriminatedUnion("status", [
843
852
  z.object({
@@ -851,5 +860,6 @@ export const LocalInfoOperationOutputSchema = z.discriminatedUnion("status", [
851
860
  ]).describe("Local info operation output schema with discriminator");
852
861
  export const LocalInfoOperationOutputWrappedSchema = z.object({
853
862
  result: LocalInfoOperationOutputSchema,
863
+ semantic: SemanticSummarySchema.optional().describe("Business semantic summary for local info operation"),
854
864
  }).describe("Local info operation output wrapped schema");
855
865
  export * from "./wip.js";