@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.
- package/dist/harness/checkpoint.d.ts +8 -0
- package/dist/harness/checkpoint.js +129 -0
- package/dist/harness/index.d.ts +33 -0
- package/dist/harness/index.js +75 -0
- package/dist/harness/plan.d.ts +18 -0
- package/dist/harness/plan.js +252 -0
- package/dist/harness/recover.d.ts +17 -0
- package/dist/harness/recover.js +139 -0
- package/dist/harness/types.d.ts +137 -0
- package/dist/harness/types.js +1 -0
- package/dist/harness/verify.d.ts +42 -0
- package/dist/harness/verify.js +237 -0
- package/dist/index.js +134 -52
- package/dist/loop-engineering/aggregate.d.ts +50 -0
- package/dist/loop-engineering/aggregate.js +132 -0
- package/dist/loop-engineering/diagnose.d.ts +21 -0
- package/dist/loop-engineering/diagnose.js +179 -0
- package/dist/loop-engineering/improve.d.ts +26 -0
- package/dist/loop-engineering/improve.js +178 -0
- package/dist/loop-engineering/index.d.ts +4 -0
- package/dist/loop-engineering/index.js +4 -0
- package/dist/loop-engineering/pipeline.d.ts +17 -0
- package/dist/loop-engineering/pipeline.js +56 -0
- package/dist/mode-market/index.d.ts +3 -0
- package/dist/mode-market/index.js +3 -0
- package/dist/mode-market/registry.d.ts +53 -0
- package/dist/mode-market/registry.js +124 -0
- package/dist/mode-market/review.d.ts +27 -0
- package/dist/mode-market/review.js +214 -0
- package/dist/mode-market/submission.d.ts +25 -0
- package/dist/mode-market/submission.js +85 -0
- package/dist/schema/call/allocation.d.ts +40 -40
- package/dist/schema/call/arbitration.d.ts +90 -90
- package/dist/schema/call/base.d.ts +1054 -0
- package/dist/schema/call/base.js +100 -22
- package/dist/schema/call/bridge-handler.js +36 -18
- package/dist/schema/call/bridge.d.ts +115 -115
- package/dist/schema/call/handler.d.ts +2 -1
- package/dist/schema/call/handler.js +94 -3
- package/dist/schema/call/index.d.ts +1 -0
- package/dist/schema/call/index.js +1 -0
- package/dist/schema/call/machine.d.ts +144 -144
- package/dist/schema/call/order.d.ts +12 -12
- package/dist/schema/call/progress.d.ts +6 -6
- package/dist/schema/call/proof.js +7 -6
- package/dist/schema/call/reward.d.ts +6 -6
- package/dist/schema/call/semantic.d.ts +23 -0
- package/dist/schema/call/semantic.js +764 -0
- package/dist/schema/call/service.d.ts +142 -142
- package/dist/schema/call/treasury.d.ts +204 -204
- package/dist/schema/local/index.d.ts +113 -2
- package/dist/schema/local/index.js +11 -1
- package/dist/schema/messenger/index.d.ts +435 -95
- package/dist/schema/messenger/index.js +20 -8
- package/dist/schema/operations.d.ts +988 -495
- package/dist/schema/operations.js +14 -3
- package/dist/schema/query/index.d.ts +346 -342
- package/dist/schema/query/index.js +4 -1
- package/dist/schemas/account_operation.output.json +3 -0
- package/dist/schemas/account_operation.schema.json +1 -1
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/local_info_operation.output.json +3 -0
- package/dist/schemas/local_mark_operation.output.json +3 -0
- package/dist/schemas/messenger_operation.output.json +21 -0
- package/dist/schemas/messenger_operation.schema.json +43 -8
- package/dist/schemas/onchain_events.output.json +3 -0
- package/dist/schemas/onchain_operations.output.json +464 -21
- package/dist/schemas/onchain_operations.schema.json +21 -17
- package/dist/schemas/onchain_operations_allocation.schema.json +11 -9
- package/dist/schemas/onchain_operations_arbitration.schema.json +11 -9
- package/dist/schemas/onchain_operations_contact.schema.json +11 -9
- package/dist/schemas/onchain_operations_demand.schema.json +11 -9
- package/dist/schemas/onchain_operations_gen_passport.schema.json +21 -17
- package/dist/schemas/onchain_operations_guard.schema.json +11 -9
- package/dist/schemas/onchain_operations_machine.schema.json +11 -9
- package/dist/schemas/onchain_operations_order.schema.json +11 -9
- package/dist/schemas/onchain_operations_payment.schema.json +11 -9
- package/dist/schemas/onchain_operations_permission.schema.json +11 -9
- package/dist/schemas/onchain_operations_personal.schema.json +11 -9
- package/dist/schemas/onchain_operations_progress.schema.json +11 -9
- package/dist/schemas/onchain_operations_repository.schema.json +11 -9
- package/dist/schemas/onchain_operations_reward.schema.json +11 -9
- package/dist/schemas/onchain_operations_service.schema.json +11 -9
- package/dist/schemas/onchain_operations_treasury.schema.json +11 -9
- package/dist/schemas/onchain_table_data.output.json +3 -0
- package/dist/schemas/query_toolkit.schema.json +5 -1
- package/dist/telemetry/index.d.ts +19 -0
- package/dist/telemetry/index.js +112 -0
- package/dist/telemetry/redact.d.ts +2 -0
- package/dist/telemetry/redact.js +23 -0
- package/dist/telemetry/storage.d.ts +8 -0
- package/dist/telemetry/storage.js +80 -0
- 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";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { CallEnvSchema, NamedObjectSchema } from './base.js';
|
|
3
3
|
import { DescriptionSchema, NameOrAddressSchema } from '../common/index.js';
|
|
4
|
+
import { MAX_PROOF_SIZE, MAX_SERVER_PUBKEY_SIZE, MAX_SERVER_SIGNATURE_SIZE } from '@wowok/wowok';
|
|
4
5
|
export const CallProof_DataSchema = z.object({
|
|
5
6
|
namedNew: NamedObjectSchema.optional(),
|
|
6
7
|
description: DescriptionSchema.optional(),
|
|
7
|
-
proof: z.string().max(
|
|
8
|
-
server_pubkey: z.string().max(
|
|
9
|
-
server_signature: z.string().max(
|
|
8
|
+
proof: z.string().max(MAX_PROOF_SIZE).describe("Proof content. e.g. merkle tree root"),
|
|
9
|
+
server_pubkey: z.string().max(MAX_SERVER_PUBKEY_SIZE).describe("Server public key"),
|
|
10
|
+
server_signature: z.string().max(MAX_SERVER_SIGNATURE_SIZE).describe("Server signature"),
|
|
10
11
|
proof_type: z.union([z.number().int().min(0), z.string()]).describe("Proof type. 1: WTS proof; 1-100 reserved."),
|
|
11
12
|
item_count: z.union([z.number().int().min(0), z.string(), z.null()]).optional().describe("Item count. e.g. number of items in the merkle tree"),
|
|
12
13
|
about_address: z.union([NameOrAddressSchema, z.null()]).optional().describe("About address. e.g. address of the entity being proved"),
|
|
@@ -16,9 +17,9 @@ export const CallProof_InputSchema = z.object({
|
|
|
16
17
|
env: CallEnvSchema.optional(),
|
|
17
18
|
}).strict().describe("On-chain, create a new Proof object");
|
|
18
19
|
export const CallGenProof_InputSchema = z.object({
|
|
19
|
-
proof: z.string().max(
|
|
20
|
-
server_pubkey: z.string().max(
|
|
21
|
-
server_signature: z.string().max(
|
|
20
|
+
proof: z.string().max(MAX_PROOF_SIZE).describe("Proof content. e.g. merkle tree root"),
|
|
21
|
+
server_pubkey: z.string().max(MAX_SERVER_PUBKEY_SIZE).describe("Server public key"),
|
|
22
|
+
server_signature: z.string().max(MAX_SERVER_SIGNATURE_SIZE).describe("Server signature"),
|
|
22
23
|
proof_type: z.union([z.number().int().min(0), z.string()]).describe("Proof type. 1: WTS proof; 1-100 reserved."),
|
|
23
24
|
description: DescriptionSchema.optional(),
|
|
24
25
|
item_count: z.union([z.number().int().min(0), z.string(), z.null()]).optional().describe("Item count. e.g. number of items in the merkle tree"),
|
|
@@ -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;
|