@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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { NameOrAddressSchema, EntrypointSchema, AccountOrMark_AddressAISchema, ManyAccountOrMark_AddressAISchema } from "../common/index.js";
|
|
3
|
+
import { NORMAL_MESSAGE_BYTES_LIMIT } from "@wowok/wowok";
|
|
3
4
|
export const MessageStatusSchema = z.enum(["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]);
|
|
4
5
|
export const MessageDirectionSchema = z.enum(["sent", "received"]);
|
|
5
6
|
export const MessageTypeSchema = z.union([z.literal(1), z.literal(3)]);
|
|
@@ -106,19 +107,21 @@ export const MessageFilterSchema = z.object({
|
|
|
106
107
|
skipAutoMarkViewed: z.boolean().optional().describe("If true, messages returned by this query will NOT be automatically marked as viewed. Default is false, meaning messages are auto-marked as viewed when retrieved through watch_messages"),
|
|
107
108
|
}).describe("Message filter options - all conditions are optional and combined with AND logic. Use viewed field to filter by read/unread status, and viewedAtStart/viewedAtEnd to filter by when messages were viewed");
|
|
108
109
|
export const SendMessageOptionsSchema = z.object({
|
|
109
|
-
guardAddress: NameOrAddressSchema.optional().describe("Guard address"),
|
|
110
|
-
passportAddress: NameOrAddressSchema.optional().describe("Passport address"),
|
|
110
|
+
guardAddress: NameOrAddressSchema.optional().describe("Guard address. REQUIRED when sending Guard-verified messages"),
|
|
111
|
+
passportAddress: NameOrAddressSchema.optional().describe("Passport address. REQUIRED when sending Guard-verified messages"),
|
|
111
112
|
force: z.boolean().optional().describe("Force send even if there are pending Guard messages"),
|
|
112
113
|
new_messenger_name: z.string().optional().describe("New messenger name for recipient"),
|
|
113
|
-
|
|
114
|
+
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"),
|
|
115
|
+
}).describe("Send message options. When guardAddress + passportAddress are provided, the message enters Guard verification flow and network MUST be specified");
|
|
114
116
|
export const SendFileOptionsSchema = z.object({
|
|
115
117
|
fileName: z.string().optional().describe("Custom file name"),
|
|
116
118
|
contentType: z.enum(["wts", "wip", "zip"]).optional().describe("Content type hint"),
|
|
117
|
-
guardAddress: NameOrAddressSchema.optional().describe("Guard address"),
|
|
118
|
-
passportAddress: NameOrAddressSchema.optional().describe("Passport address"),
|
|
119
|
+
guardAddress: NameOrAddressSchema.optional().describe("Guard address. REQUIRED when sending Guard-verified files"),
|
|
120
|
+
passportAddress: NameOrAddressSchema.optional().describe("Passport address. REQUIRED when sending Guard-verified files"),
|
|
119
121
|
force: z.boolean().optional().describe("Force send even if there are pending Guard messages"),
|
|
120
122
|
new_messenger_name: z.string().optional().describe("New messenger name for recipient"),
|
|
121
|
-
|
|
123
|
+
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"),
|
|
124
|
+
}).describe("Send file options. When guardAddress + passportAddress are provided, the file enters Guard verification flow and network MUST be specified");
|
|
122
125
|
export const SendMessageResultSchema = z.object({
|
|
123
126
|
messageId: z.string().describe("Message ID"),
|
|
124
127
|
status: MessageStatusSchema.describe("Message status"),
|
|
@@ -294,7 +297,7 @@ export const MessengerOperationInputSchema = z.discriminatedUnion("operation", [
|
|
|
294
297
|
operation: z.literal("send_message"),
|
|
295
298
|
from: NameOrAddressSchema.optional().describe("Sender account name or address. If not specified, uses default account"),
|
|
296
299
|
to: AccountOrMark_AddressAISchema.describe("Recipient address or account name - can be a string (name/address) or full object"),
|
|
297
|
-
content: z.string().max(
|
|
300
|
+
content: z.string().max(NORMAL_MESSAGE_BYTES_LIMIT).describe("Message content text (max 10240 bytes)"),
|
|
298
301
|
options: SendMessageOptionsSchema.optional().describe("Optional message settings"),
|
|
299
302
|
}),
|
|
300
303
|
z.object({
|
|
@@ -337,7 +340,7 @@ export const MessengerOperationInputSchema = z.discriminatedUnion("operation", [
|
|
|
337
340
|
operation: z.literal("proof_message"),
|
|
338
341
|
account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
|
|
339
342
|
messageId: z.string().describe("Message ID to proof on-chain"),
|
|
340
|
-
network: EntrypointSchema.
|
|
343
|
+
network: EntrypointSchema.describe("Network to use for on-chain proof (required)"),
|
|
341
344
|
}),
|
|
342
345
|
z.object({
|
|
343
346
|
operation: z.literal("blacklist"),
|
|
@@ -369,6 +372,11 @@ export const MessengerOperationInputSchema = z.discriminatedUnion("operation", [
|
|
|
369
372
|
account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
|
|
370
373
|
peerAddress: AccountOrMark_AddressAISchema.describe("Peer address or account name - can be a string (name/address) or full object. All unviewed received messages from this peer will be marked as viewed"),
|
|
371
374
|
}),
|
|
375
|
+
z.object({
|
|
376
|
+
operation: z.literal("pull_messages"),
|
|
377
|
+
account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
|
|
378
|
+
limit: z.number().optional().describe("Maximum number of messages to pull from server"),
|
|
379
|
+
}),
|
|
372
380
|
]).describe("Messenger operation input schema");
|
|
373
381
|
export const MessengerOperationOutputSchema = z.object({
|
|
374
382
|
result: z.discriminatedUnion("operation", [
|
|
@@ -442,5 +450,9 @@ export const MessengerOperationOutputSchema = z.object({
|
|
|
442
450
|
operation: z.literal("mark_conversation_as_viewed"),
|
|
443
451
|
result: z.number().describe("Number of messages successfully marked as viewed in the conversation. Only received messages that were previously unviewed are counted"),
|
|
444
452
|
}),
|
|
453
|
+
z.object({
|
|
454
|
+
operation: z.literal("pull_messages"),
|
|
455
|
+
result: z.array(MessageSchema).describe("List of messages pulled from server"),
|
|
456
|
+
}),
|
|
445
457
|
]).describe("Messenger operation result discriminated union"),
|
|
446
458
|
}).describe("Messenger operation output schema");
|