@wowok/agent-mcp 2.3.13 → 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 (92) 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/reward.d.ts +6 -6
  46. package/dist/schema/call/semantic.d.ts +23 -0
  47. package/dist/schema/call/semantic.js +764 -0
  48. package/dist/schema/call/service.d.ts +142 -142
  49. package/dist/schema/call/treasury.d.ts +204 -204
  50. package/dist/schema/local/index.d.ts +113 -2
  51. package/dist/schema/local/index.js +11 -1
  52. package/dist/schema/messenger/index.d.ts +416 -92
  53. package/dist/schema/messenger/index.js +9 -0
  54. package/dist/schema/operations.d.ts +988 -495
  55. package/dist/schema/operations.js +14 -3
  56. package/dist/schema/query/index.d.ts +346 -342
  57. package/dist/schema/query/index.js +4 -1
  58. package/dist/schemas/account_operation.output.json +3 -0
  59. package/dist/schemas/account_operation.schema.json +1 -1
  60. package/dist/schemas/index.json +1 -1
  61. package/dist/schemas/local_info_operation.output.json +3 -0
  62. package/dist/schemas/local_mark_operation.output.json +3 -0
  63. package/dist/schemas/messenger_operation.output.json +21 -0
  64. package/dist/schemas/messenger_operation.schema.json +21 -0
  65. package/dist/schemas/onchain_events.output.json +3 -0
  66. package/dist/schemas/onchain_operations.output.json +464 -21
  67. package/dist/schemas/onchain_operations.schema.json +21 -17
  68. package/dist/schemas/onchain_operations_allocation.schema.json +11 -9
  69. package/dist/schemas/onchain_operations_arbitration.schema.json +11 -9
  70. package/dist/schemas/onchain_operations_contact.schema.json +11 -9
  71. package/dist/schemas/onchain_operations_demand.schema.json +11 -9
  72. package/dist/schemas/onchain_operations_gen_passport.schema.json +21 -17
  73. package/dist/schemas/onchain_operations_guard.schema.json +11 -9
  74. package/dist/schemas/onchain_operations_machine.schema.json +11 -9
  75. package/dist/schemas/onchain_operations_order.schema.json +11 -9
  76. package/dist/schemas/onchain_operations_payment.schema.json +11 -9
  77. package/dist/schemas/onchain_operations_permission.schema.json +11 -9
  78. package/dist/schemas/onchain_operations_personal.schema.json +11 -9
  79. package/dist/schemas/onchain_operations_progress.schema.json +11 -9
  80. package/dist/schemas/onchain_operations_repository.schema.json +11 -9
  81. package/dist/schemas/onchain_operations_reward.schema.json +11 -9
  82. package/dist/schemas/onchain_operations_service.schema.json +11 -9
  83. package/dist/schemas/onchain_operations_treasury.schema.json +11 -9
  84. package/dist/schemas/onchain_table_data.output.json +3 -0
  85. package/dist/schemas/query_toolkit.schema.json +5 -1
  86. package/dist/telemetry/index.d.ts +19 -0
  87. package/dist/telemetry/index.js +112 -0
  88. package/dist/telemetry/redact.d.ts +2 -0
  89. package/dist/telemetry/redact.js +23 -0
  90. package/dist/telemetry/storage.d.ts +8 -0
  91. package/dist/telemetry/storage.js +80 -0
  92. package/package.json +6 -3
@@ -150,7 +150,6 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
150
150
  }>>;
151
151
  }, "strict", z.ZodTypeAny, {
152
152
  object: string;
153
- task?: string | undefined;
154
153
  repository?: {
155
154
  op: "set" | "add";
156
155
  objects: string[];
@@ -160,6 +159,7 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
160
159
  } | {
161
160
  op: "clear";
162
161
  } | undefined;
162
+ task?: string | undefined;
163
163
  progress_namedOperator?: {
164
164
  name: string;
165
165
  op: "set" | "add" | "remove";
@@ -182,7 +182,6 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
182
182
  } | undefined;
183
183
  }, {
184
184
  object: string;
185
- task?: string | undefined;
186
185
  repository?: {
187
186
  op: "set" | "add";
188
187
  objects: string[];
@@ -192,6 +191,7 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
192
191
  } | {
193
192
  op: "clear";
194
193
  } | undefined;
194
+ task?: string | undefined;
195
195
  progress_namedOperator?: {
196
196
  name: string;
197
197
  op: "set" | "add" | "remove";
@@ -324,7 +324,6 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
324
324
  }>>;
325
325
  }, "strict", z.ZodTypeAny, {
326
326
  object: string;
327
- task?: string | undefined;
328
327
  repository?: {
329
328
  op: "set" | "add";
330
329
  objects: string[];
@@ -334,6 +333,7 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
334
333
  } | {
335
334
  op: "clear";
336
335
  } | undefined;
336
+ task?: string | undefined;
337
337
  progress_namedOperator?: {
338
338
  name: string;
339
339
  op: "set" | "add" | "remove";
@@ -356,7 +356,6 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
356
356
  } | undefined;
357
357
  }, {
358
358
  object: string;
359
- task?: string | undefined;
360
359
  repository?: {
361
360
  op: "set" | "add";
362
361
  objects: string[];
@@ -366,6 +365,7 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
366
365
  } | {
367
366
  op: "clear";
368
367
  } | undefined;
368
+ task?: string | undefined;
369
369
  progress_namedOperator?: {
370
370
  name: string;
371
371
  op: "set" | "add" | "remove";
@@ -589,7 +589,6 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
589
589
  }, "strict", z.ZodTypeAny, {
590
590
  data: {
591
591
  object: string;
592
- task?: string | undefined;
593
592
  repository?: {
594
593
  op: "set" | "add";
595
594
  objects: string[];
@@ -599,6 +598,7 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
599
598
  } | {
600
599
  op: "clear";
601
600
  } | undefined;
601
+ task?: string | undefined;
602
602
  progress_namedOperator?: {
603
603
  name: string;
604
604
  op: "set" | "add" | "remove";
@@ -657,7 +657,6 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
657
657
  }, {
658
658
  data: {
659
659
  object: string;
660
- task?: string | undefined;
661
660
  repository?: {
662
661
  op: "set" | "add";
663
662
  objects: string[];
@@ -667,6 +666,7 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
667
666
  } | {
668
667
  op: "clear";
669
668
  } | undefined;
669
+ task?: string | undefined;
670
670
  progress_namedOperator?: {
671
671
  name: string;
672
672
  op: "set" | "add" | "remove";
@@ -305,6 +305,7 @@ export declare const CallReward_DataSchema: z.ZodObject<{
305
305
  } | undefined;
306
306
  };
307
307
  description?: string | undefined;
308
+ claim?: string | undefined;
308
309
  owner_receive?: {
309
310
  received: {
310
311
  id: string;
@@ -328,7 +329,6 @@ export declare const CallReward_DataSchema: z.ZodObject<{
328
329
  balance: string | number;
329
330
  token_type: string;
330
331
  } | "recently" | undefined;
331
- claim?: string | undefined;
332
332
  coin_add?: {
333
333
  balance: string | number;
334
334
  } | {
@@ -374,6 +374,7 @@ export declare const CallReward_DataSchema: z.ZodObject<{
374
374
  } | undefined;
375
375
  };
376
376
  description?: string | undefined;
377
+ claim?: string | undefined;
377
378
  owner_receive?: {
378
379
  received: {
379
380
  id: string;
@@ -397,7 +398,6 @@ export declare const CallReward_DataSchema: z.ZodObject<{
397
398
  balance: string | number;
398
399
  token_type: string;
399
400
  } | "recently" | undefined;
400
- claim?: string | undefined;
401
401
  coin_add?: {
402
402
  balance: string | number;
403
403
  } | {
@@ -697,6 +697,7 @@ export declare const CallReward_InputSchema: z.ZodObject<{
697
697
  } | undefined;
698
698
  };
699
699
  description?: string | undefined;
700
+ claim?: string | undefined;
700
701
  owner_receive?: {
701
702
  received: {
702
703
  id: string;
@@ -720,7 +721,6 @@ export declare const CallReward_InputSchema: z.ZodObject<{
720
721
  balance: string | number;
721
722
  token_type: string;
722
723
  } | "recently" | undefined;
723
- claim?: string | undefined;
724
724
  coin_add?: {
725
725
  balance: string | number;
726
726
  } | {
@@ -766,6 +766,7 @@ export declare const CallReward_InputSchema: z.ZodObject<{
766
766
  } | undefined;
767
767
  };
768
768
  description?: string | undefined;
769
+ claim?: string | undefined;
769
770
  owner_receive?: {
770
771
  received: {
771
772
  id: string;
@@ -789,7 +790,6 @@ export declare const CallReward_InputSchema: z.ZodObject<{
789
790
  balance: string | number;
790
791
  token_type: string;
791
792
  } | "recently" | undefined;
792
- claim?: string | undefined;
793
793
  coin_add?: {
794
794
  balance: string | number;
795
795
  } | {
@@ -1036,6 +1036,7 @@ export declare const CallReward_InputSchema: z.ZodObject<{
1036
1036
  } | undefined;
1037
1037
  };
1038
1038
  description?: string | undefined;
1039
+ claim?: string | undefined;
1039
1040
  owner_receive?: {
1040
1041
  received: {
1041
1042
  id: string;
@@ -1059,7 +1060,6 @@ export declare const CallReward_InputSchema: z.ZodObject<{
1059
1060
  balance: string | number;
1060
1061
  token_type: string;
1061
1062
  } | "recently" | undefined;
1062
- claim?: string | undefined;
1063
1063
  coin_add?: {
1064
1064
  balance: string | number;
1065
1065
  } | {
@@ -1141,6 +1141,7 @@ export declare const CallReward_InputSchema: z.ZodObject<{
1141
1141
  } | undefined;
1142
1142
  };
1143
1143
  description?: string | undefined;
1144
+ claim?: string | undefined;
1144
1145
  owner_receive?: {
1145
1146
  received: {
1146
1147
  id: string;
@@ -1164,7 +1165,6 @@ export declare const CallReward_InputSchema: z.ZodObject<{
1164
1165
  balance: string | number;
1165
1166
  token_type: string;
1166
1167
  } | "recently" | undefined;
1167
- claim?: string | undefined;
1168
1168
  coin_add?: {
1169
1169
  balance: string | number;
1170
1170
  } | {
@@ -0,0 +1,23 @@
1
+ import type { SemanticSummary, ObjectRole, FundRole, EventSemantic } from "./base.js";
2
+ export interface SemanticContext {
3
+ operation_type: string;
4
+ data: any;
5
+ harness?: import("../../harness/index.js").Harness;
6
+ expected?: import("../../harness/types.js").ExpectedResult;
7
+ operation_id?: string;
8
+ }
9
+ export type ErrorCode = "invalid_parameter" | "guard_rejected" | "state_conflict" | "insufficient_balance" | "object_not_found" | "permission_denied" | "immutable_violation" | "network_error" | "unknown";
10
+ export interface ErrorClassification {
11
+ error_code: ErrorCode;
12
+ retryable: boolean;
13
+ recovery_hint?: string;
14
+ }
15
+ export declare function classifyError(errorMsg: string): ErrorClassification;
16
+ export declare function inferIntent(operation_type: string, data: any): string;
17
+ export declare function objectTypeToRole(objectType: string): ObjectRole["role"];
18
+ export declare function tagObjectRoles(objectChanges: any[]): ObjectRole[];
19
+ export declare function tagFundRoles(balanceChanges: any[], operation_type: string, data?: any, events?: any[]): FundRole[];
20
+ export declare function eventToSemantic(event: any): EventSemantic;
21
+ export declare function annotateEvents(events: any[] | undefined): EventSemantic[];
22
+ export declare function buildSemantic(safeResult: any, context?: SemanticContext): SemanticSummary | undefined;
23
+ export declare function buildDataSemantic(data: any, context?: SemanticContext, isError?: boolean, errorMsg?: string): SemanticSummary | undefined;