@wowok/agent-mcp 2.5.5 → 2.6.0
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/config/runtime.js +3 -6
- package/dist/harness/checkpoint.js +2 -2
- package/dist/knowledge/flywheel-loop.js +2 -5
- package/dist/knowledge/overrides-loader.js +2 -4
- package/dist/knowledge/progress-ledger.js +3 -0
- package/dist/knowledge/progress-translation.js +5 -1
- package/dist/loop-engineering/improve.js +2 -4
- package/dist/project/deployment-bridge.d.ts +5 -0
- package/dist/project/deployment-bridge.js +96 -0
- package/dist/project/evaluation.js +10 -3
- package/dist/project/graph-builder.js +15 -2
- package/dist/project/handlers.d.ts +2 -0
- package/dist/project/handlers.js +115 -6
- package/dist/project/index.js +2 -6
- package/dist/project/project-store.js +2 -5
- package/dist/schema/config/index.d.ts +12 -12
- package/dist/schema/local/index.d.ts +108 -108
- package/dist/schema/local/index.js +21 -18
- package/dist/schema/messenger/index.d.ts +16 -16
- package/dist/schema/messenger/index.js +2 -2
- package/dist/schema/operations.d.ts +0 -6
- package/dist/schema/project/index.d.ts +271 -7
- package/dist/schema/project/index.js +52 -0
- package/dist/schema/query/index.d.ts +10 -5
- package/dist/schema/trust/index.d.ts +8 -8
- package/dist/schemas/account_operation.output.json +7 -21
- package/dist/schemas/account_operation.schema.json +9 -23
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/messenger_operation.schema.json +6 -6
- package/dist/schemas/project_operation.output.json +180 -0
- package/dist/schemas/project_operation.schema.json +14 -1
- package/dist/schemas/query_toolkit.output.json +7 -6
- package/dist/schemas/query_toolkit.schema.json +0 -4
- package/dist/telemetry/storage.js +2 -2
- package/dist/tools/handlers/onchain.js +13 -0
- package/dist/tools/handlers/project.js +22 -0
- package/dist/tools/index.js +1 -1
- package/package.json +2 -2
|
@@ -429,15 +429,20 @@ export const AccountOperationSchema = z
|
|
|
429
429
|
.object({
|
|
430
430
|
name: NameSchema
|
|
431
431
|
.optional()
|
|
432
|
-
.describe(`Account name (max ${AccountConstraints.nameMaxLength} characters). Use empty string '' or omit for the default account
|
|
432
|
+
.describe(`Account name (max ${AccountConstraints.nameMaxLength} characters). Use empty string '' or omit for the default account. ` +
|
|
433
|
+
`Recommended convention: <role>-<number> (e.g. shop-001, user-001, arb-001) for easy filtering and batch operations.`),
|
|
433
434
|
replaceExistName: z
|
|
434
435
|
.boolean()
|
|
435
436
|
.optional()
|
|
436
|
-
.describe("If true, existing account with the same name will
|
|
437
|
-
|
|
438
|
-
|
|
437
|
+
.describe("DISCOURAGED. If true, an existing account with the same name will be SUSPENDED (not just renamed) to free the name for the new account. " +
|
|
438
|
+
"The old account moves to the Suspended tab and cannot sign transactions until resumed with a new name. " +
|
|
439
|
+
"FORBIDDEN on the default account (name='' or omitted) — the default account is unique and cannot be replaced; use suspend() explicitly instead. " +
|
|
440
|
+
"Prefer versioned names (e.g. 'shop_v2') over replaceExistName for production. Default: false (throws AccountNameExist on collision)."),
|
|
441
|
+
messenger: z
|
|
442
|
+
.boolean()
|
|
439
443
|
.optional()
|
|
440
|
-
.describe("
|
|
444
|
+
.describe("Enable messenger for this account. true=enable, false=disable, omit=unchanged. " +
|
|
445
|
+
"Account name is used for messenger identity lookup (no separate messenger name)."),
|
|
441
446
|
})
|
|
442
447
|
.optional()
|
|
443
448
|
.describe("Generate new account"),
|
|
@@ -536,9 +541,9 @@ export const AccountOperationSchema = z
|
|
|
536
541
|
.object({
|
|
537
542
|
name_or_account: NameOrAddressSchema.optional()
|
|
538
543
|
.describe("Account name or address. Use empty string '' for the default account. Defaults to '' if omitted."),
|
|
539
|
-
|
|
540
|
-
.
|
|
541
|
-
.describe("
|
|
544
|
+
enabled: z
|
|
545
|
+
.boolean()
|
|
546
|
+
.describe("true to enable messenger, false to disable"),
|
|
542
547
|
})
|
|
543
548
|
.optional()
|
|
544
549
|
.describe("Enable or disable messenger for an account"),
|
|
@@ -552,10 +557,10 @@ export const AccountOperationResultSchema = z
|
|
|
552
557
|
.object({
|
|
553
558
|
address: z.string().describe("Newly generated account ID"),
|
|
554
559
|
name: NameSchema.optional().describe("Account name"),
|
|
555
|
-
|
|
556
|
-
.
|
|
560
|
+
messenger: z
|
|
561
|
+
.boolean()
|
|
557
562
|
.optional()
|
|
558
|
-
.describe("Messenger
|
|
563
|
+
.describe("Messenger enabled flag"),
|
|
559
564
|
})
|
|
560
565
|
.optional()
|
|
561
566
|
.describe("Result of generating new account"),
|
|
@@ -648,9 +653,9 @@ export const AccountOperationResultSchema = z
|
|
|
648
653
|
.object({
|
|
649
654
|
name_or_account: NameOrAddressSchema.optional()
|
|
650
655
|
.describe("Account name or address"),
|
|
651
|
-
|
|
652
|
-
.
|
|
653
|
-
.describe("Messenger
|
|
656
|
+
enabled: z
|
|
657
|
+
.boolean()
|
|
658
|
+
.describe("Messenger enabled flag"),
|
|
654
659
|
})
|
|
655
660
|
.optional()
|
|
656
661
|
.describe("Result of enabling or disabling messenger for an account"),
|
|
@@ -782,9 +787,6 @@ export const AccountFilterSchema = z
|
|
|
782
787
|
.boolean()
|
|
783
788
|
.optional()
|
|
784
789
|
.describe("Filter accounts with messenger enabled"),
|
|
785
|
-
m: NameSchema
|
|
786
|
-
.optional()
|
|
787
|
-
.describe("Filter by messenger name (supports fuzzy match)"),
|
|
788
790
|
createdAt: z
|
|
789
791
|
.object({
|
|
790
792
|
gte: z
|
|
@@ -828,7 +830,8 @@ export const AccountDataSchema = z.object({
|
|
|
828
830
|
suspended: z.boolean().optional().describe("Whether account is suspended"),
|
|
829
831
|
createdAt: z.number().optional().describe("Timestamp when account was created"),
|
|
830
832
|
updatedAt: z.number().optional().describe("Timestamp when account was last updated"),
|
|
831
|
-
|
|
833
|
+
messenger: z.boolean().optional().describe("Whether messenger is enabled for this account"),
|
|
834
|
+
suspendedName: z.string().optional().describe("Name before suspension (set by suspend, cleared by resume)"),
|
|
832
835
|
}).describe("Account data");
|
|
833
836
|
export const QueryAccountListResultSchema = z.object({
|
|
834
837
|
result: z.array(AccountDataSchema).describe("Account list"),
|
|
@@ -583,20 +583,20 @@ export declare const SendMessageOptionsSchema: z.ZodObject<{
|
|
|
583
583
|
guardAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
584
584
|
passportAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
585
585
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
586
|
-
|
|
586
|
+
enable_messenger: z.ZodOptional<z.ZodBoolean>;
|
|
587
587
|
network: z.ZodOptional<z.ZodEnum<[import("@wowok/wowok").ENTRYPOINT.Localnet, import("@wowok/wowok").ENTRYPOINT.Testnet, import("@wowok/wowok").ENTRYPOINT.Mainnet]>>;
|
|
588
588
|
}, "strip", z.ZodTypeAny, {
|
|
589
589
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
590
590
|
guardAddress?: string | undefined;
|
|
591
591
|
passportAddress?: string | undefined;
|
|
592
592
|
force?: boolean | undefined;
|
|
593
|
-
|
|
593
|
+
enable_messenger?: boolean | undefined;
|
|
594
594
|
}, {
|
|
595
595
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
596
596
|
guardAddress?: string | undefined;
|
|
597
597
|
passportAddress?: string | undefined;
|
|
598
598
|
force?: boolean | undefined;
|
|
599
|
-
|
|
599
|
+
enable_messenger?: boolean | undefined;
|
|
600
600
|
}>;
|
|
601
601
|
export declare const SendFileOptionsSchema: z.ZodObject<{
|
|
602
602
|
fileName: z.ZodOptional<z.ZodString>;
|
|
@@ -604,7 +604,7 @@ export declare const SendFileOptionsSchema: z.ZodObject<{
|
|
|
604
604
|
guardAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
605
605
|
passportAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
606
606
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
607
|
-
|
|
607
|
+
enable_messenger: z.ZodOptional<z.ZodBoolean>;
|
|
608
608
|
network: z.ZodOptional<z.ZodEnum<[import("@wowok/wowok").ENTRYPOINT.Localnet, import("@wowok/wowok").ENTRYPOINT.Testnet, import("@wowok/wowok").ENTRYPOINT.Mainnet]>>;
|
|
609
609
|
}, "strip", z.ZodTypeAny, {
|
|
610
610
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
@@ -613,7 +613,7 @@ export declare const SendFileOptionsSchema: z.ZodObject<{
|
|
|
613
613
|
guardAddress?: string | undefined;
|
|
614
614
|
passportAddress?: string | undefined;
|
|
615
615
|
force?: boolean | undefined;
|
|
616
|
-
|
|
616
|
+
enable_messenger?: boolean | undefined;
|
|
617
617
|
}, {
|
|
618
618
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
619
619
|
fileName?: string | undefined;
|
|
@@ -621,7 +621,7 @@ export declare const SendFileOptionsSchema: z.ZodObject<{
|
|
|
621
621
|
guardAddress?: string | undefined;
|
|
622
622
|
passportAddress?: string | undefined;
|
|
623
623
|
force?: boolean | undefined;
|
|
624
|
-
|
|
624
|
+
enable_messenger?: boolean | undefined;
|
|
625
625
|
}>;
|
|
626
626
|
export declare const SendMessageResultSchema: z.ZodObject<{
|
|
627
627
|
messageId: z.ZodString;
|
|
@@ -1483,20 +1483,20 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1483
1483
|
guardAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1484
1484
|
passportAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1485
1485
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
1486
|
-
|
|
1486
|
+
enable_messenger: z.ZodOptional<z.ZodBoolean>;
|
|
1487
1487
|
network: z.ZodOptional<z.ZodEnum<[import("@wowok/wowok").ENTRYPOINT.Localnet, import("@wowok/wowok").ENTRYPOINT.Testnet, import("@wowok/wowok").ENTRYPOINT.Mainnet]>>;
|
|
1488
1488
|
}, "strip", z.ZodTypeAny, {
|
|
1489
1489
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
1490
1490
|
guardAddress?: string | undefined;
|
|
1491
1491
|
passportAddress?: string | undefined;
|
|
1492
1492
|
force?: boolean | undefined;
|
|
1493
|
-
|
|
1493
|
+
enable_messenger?: boolean | undefined;
|
|
1494
1494
|
}, {
|
|
1495
1495
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
1496
1496
|
guardAddress?: string | undefined;
|
|
1497
1497
|
passportAddress?: string | undefined;
|
|
1498
1498
|
force?: boolean | undefined;
|
|
1499
|
-
|
|
1499
|
+
enable_messenger?: boolean | undefined;
|
|
1500
1500
|
}>>;
|
|
1501
1501
|
}, "strict", z.ZodTypeAny, {
|
|
1502
1502
|
content: string;
|
|
@@ -1510,7 +1510,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1510
1510
|
guardAddress?: string | undefined;
|
|
1511
1511
|
passportAddress?: string | undefined;
|
|
1512
1512
|
force?: boolean | undefined;
|
|
1513
|
-
|
|
1513
|
+
enable_messenger?: boolean | undefined;
|
|
1514
1514
|
} | undefined;
|
|
1515
1515
|
from?: string | undefined;
|
|
1516
1516
|
}, {
|
|
@@ -1525,7 +1525,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1525
1525
|
guardAddress?: string | undefined;
|
|
1526
1526
|
passportAddress?: string | undefined;
|
|
1527
1527
|
force?: boolean | undefined;
|
|
1528
|
-
|
|
1528
|
+
enable_messenger?: boolean | undefined;
|
|
1529
1529
|
} | undefined;
|
|
1530
1530
|
from?: string | undefined;
|
|
1531
1531
|
}>, z.ZodObject<{
|
|
@@ -1548,7 +1548,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1548
1548
|
guardAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1549
1549
|
passportAddress: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1550
1550
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
1551
|
-
|
|
1551
|
+
enable_messenger: z.ZodOptional<z.ZodBoolean>;
|
|
1552
1552
|
network: z.ZodOptional<z.ZodEnum<[import("@wowok/wowok").ENTRYPOINT.Localnet, import("@wowok/wowok").ENTRYPOINT.Testnet, import("@wowok/wowok").ENTRYPOINT.Mainnet]>>;
|
|
1553
1553
|
}, "strip", z.ZodTypeAny, {
|
|
1554
1554
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
@@ -1557,7 +1557,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1557
1557
|
guardAddress?: string | undefined;
|
|
1558
1558
|
passportAddress?: string | undefined;
|
|
1559
1559
|
force?: boolean | undefined;
|
|
1560
|
-
|
|
1560
|
+
enable_messenger?: boolean | undefined;
|
|
1561
1561
|
}, {
|
|
1562
1562
|
network?: import("@wowok/wowok").ENTRYPOINT | undefined;
|
|
1563
1563
|
fileName?: string | undefined;
|
|
@@ -1565,7 +1565,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1565
1565
|
guardAddress?: string | undefined;
|
|
1566
1566
|
passportAddress?: string | undefined;
|
|
1567
1567
|
force?: boolean | undefined;
|
|
1568
|
-
|
|
1568
|
+
enable_messenger?: boolean | undefined;
|
|
1569
1569
|
}>>;
|
|
1570
1570
|
}, "strict", z.ZodTypeAny, {
|
|
1571
1571
|
filePath: string;
|
|
@@ -1581,7 +1581,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1581
1581
|
guardAddress?: string | undefined;
|
|
1582
1582
|
passportAddress?: string | undefined;
|
|
1583
1583
|
force?: boolean | undefined;
|
|
1584
|
-
|
|
1584
|
+
enable_messenger?: boolean | undefined;
|
|
1585
1585
|
} | undefined;
|
|
1586
1586
|
from?: string | undefined;
|
|
1587
1587
|
}, {
|
|
@@ -1598,7 +1598,7 @@ export declare const MessengerOperationInputSchema: z.ZodDiscriminatedUnion<"ope
|
|
|
1598
1598
|
guardAddress?: string | undefined;
|
|
1599
1599
|
passportAddress?: string | undefined;
|
|
1600
1600
|
force?: boolean | undefined;
|
|
1601
|
-
|
|
1601
|
+
enable_messenger?: boolean | undefined;
|
|
1602
1602
|
} | undefined;
|
|
1603
1603
|
from?: string | undefined;
|
|
1604
1604
|
}>, z.ZodObject<{
|
|
@@ -111,7 +111,7 @@ export const SendMessageOptionsSchema = z.object({
|
|
|
111
111
|
guardAddress: NameOrAddressSchema.optional().describe("Guard address. REQUIRED when sending Guard-verified messages"),
|
|
112
112
|
passportAddress: NameOrAddressSchema.optional().describe("Passport address. REQUIRED when sending Guard-verified messages"),
|
|
113
113
|
force: z.boolean().optional().describe("Force send even if there are pending Guard messages"),
|
|
114
|
-
|
|
114
|
+
enable_messenger: z.boolean().optional().describe("Auto-enable messenger for the sender account if not already enabled"),
|
|
115
115
|
network: EntrypointSchema.optional().describe("Target network for Guard verification (e.g., testnet, mainnet). REQUIRED when guardAddress and passportAddress are provided — Guard messages and regular messages are independent data systems on different networks"),
|
|
116
116
|
}).describe("Send message options. When guardAddress + passportAddress are provided, the message enters Guard verification flow and network MUST be specified");
|
|
117
117
|
export const SendFileOptionsSchema = z.object({
|
|
@@ -120,7 +120,7 @@ export const SendFileOptionsSchema = z.object({
|
|
|
120
120
|
guardAddress: NameOrAddressSchema.optional().describe("Guard address. REQUIRED when sending Guard-verified files"),
|
|
121
121
|
passportAddress: NameOrAddressSchema.optional().describe("Passport address. REQUIRED when sending Guard-verified files"),
|
|
122
122
|
force: z.boolean().optional().describe("Force send even if there are pending Guard messages"),
|
|
123
|
-
|
|
123
|
+
enable_messenger: z.boolean().optional().describe("Auto-enable messenger for the sender account if not already enabled"),
|
|
124
124
|
network: EntrypointSchema.optional().describe("Target network for Guard verification (e.g., testnet, mainnet). REQUIRED when guardAddress and passportAddress are provided — Guard messages and regular messages are independent data systems on different networks"),
|
|
125
125
|
}).describe("Send file options. When guardAddress + passportAddress are provided, the file enters Guard verification flow and network MUST be specified");
|
|
126
126
|
export const SendMessageResultSchema = z.object({
|
|
@@ -17069,7 +17069,6 @@ export declare const WatchQueryOperationsSchema: z.ZodEffects<z.ZodDiscriminated
|
|
|
17069
17069
|
address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
17070
17070
|
suspended: z.ZodOptional<z.ZodBoolean>;
|
|
17071
17071
|
hasMessenger: z.ZodOptional<z.ZodBoolean>;
|
|
17072
|
-
m: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
17073
17072
|
createdAt: z.ZodOptional<z.ZodObject<{
|
|
17074
17073
|
gte: z.ZodOptional<z.ZodNumber>;
|
|
17075
17074
|
lte: z.ZodOptional<z.ZodNumber>;
|
|
@@ -17102,7 +17101,6 @@ export declare const WatchQueryOperationsSchema: z.ZodEffects<z.ZodDiscriminated
|
|
|
17102
17101
|
gte?: number | undefined;
|
|
17103
17102
|
lte?: number | undefined;
|
|
17104
17103
|
} | undefined;
|
|
17105
|
-
m?: string | undefined;
|
|
17106
17104
|
suspended?: boolean | undefined;
|
|
17107
17105
|
hasMessenger?: boolean | undefined;
|
|
17108
17106
|
includePubkey?: boolean | undefined;
|
|
@@ -17117,7 +17115,6 @@ export declare const WatchQueryOperationsSchema: z.ZodEffects<z.ZodDiscriminated
|
|
|
17117
17115
|
gte?: number | undefined;
|
|
17118
17116
|
lte?: number | undefined;
|
|
17119
17117
|
} | undefined;
|
|
17120
|
-
m?: string | undefined;
|
|
17121
17118
|
suspended?: boolean | undefined;
|
|
17122
17119
|
hasMessenger?: boolean | undefined;
|
|
17123
17120
|
includePubkey?: boolean | undefined;
|
|
@@ -17135,7 +17132,6 @@ export declare const WatchQueryOperationsSchema: z.ZodEffects<z.ZodDiscriminated
|
|
|
17135
17132
|
gte?: number | undefined;
|
|
17136
17133
|
lte?: number | undefined;
|
|
17137
17134
|
} | undefined;
|
|
17138
|
-
m?: string | undefined;
|
|
17139
17135
|
suspended?: boolean | undefined;
|
|
17140
17136
|
hasMessenger?: boolean | undefined;
|
|
17141
17137
|
includePubkey?: boolean | undefined;
|
|
@@ -17153,7 +17149,6 @@ export declare const WatchQueryOperationsSchema: z.ZodEffects<z.ZodDiscriminated
|
|
|
17153
17149
|
gte?: number | undefined;
|
|
17154
17150
|
lte?: number | undefined;
|
|
17155
17151
|
} | undefined;
|
|
17156
|
-
m?: string | undefined;
|
|
17157
17152
|
suspended?: boolean | undefined;
|
|
17158
17153
|
hasMessenger?: boolean | undefined;
|
|
17159
17154
|
includePubkey?: boolean | undefined;
|
|
@@ -17488,7 +17483,6 @@ export declare const WatchQueryOperationsSchema: z.ZodEffects<z.ZodDiscriminated
|
|
|
17488
17483
|
gte?: number | undefined;
|
|
17489
17484
|
lte?: number | undefined;
|
|
17490
17485
|
} | undefined;
|
|
17491
|
-
m?: string | undefined;
|
|
17492
17486
|
suspended?: boolean | undefined;
|
|
17493
17487
|
hasMessenger?: boolean | undefined;
|
|
17494
17488
|
includePubkey?: boolean | undefined;
|