@wowok/agent-mcp 2.3.14 → 2.3.18
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/index.d.ts +1 -0
- package/dist/config/index.js +1 -0
- package/dist/config/runtime.d.ts +26 -0
- package/dist/config/runtime.js +217 -0
- package/dist/customer/index.d.ts +9 -0
- package/dist/customer/index.js +9 -0
- package/dist/customer/industry-risks.d.ts +40 -0
- package/dist/customer/industry-risks.js +438 -0
- package/dist/customer/info-puzzle.d.ts +102 -0
- package/dist/customer/info-puzzle.js +312 -0
- package/dist/customer/order-monitor.d.ts +75 -0
- package/dist/customer/order-monitor.js +327 -0
- package/dist/customer/order-strategy.d.ts +36 -0
- package/dist/customer/order-strategy.js +373 -0
- package/dist/customer/post-purchase.d.ts +42 -0
- package/dist/customer/post-purchase.js +350 -0
- package/dist/customer/reminder-system.d.ts +42 -0
- package/dist/customer/reminder-system.js +295 -0
- package/dist/customer/risk-assessment.d.ts +8 -0
- package/dist/customer/risk-assessment.js +337 -0
- package/dist/customer/types.d.ts +193 -0
- package/dist/customer/types.js +13 -0
- package/dist/customer/user-preferences.d.ts +70 -0
- package/dist/customer/user-preferences.js +460 -0
- package/dist/experience/experience-reuse.d.ts +10 -0
- package/dist/experience/experience-reuse.js +103 -0
- package/dist/experience/index.d.ts +6 -0
- package/dist/experience/index.js +5 -0
- package/dist/experience/intent-distill.d.ts +3 -0
- package/dist/experience/intent-distill.js +83 -0
- package/dist/experience/realtime-feedback.d.ts +5 -0
- package/dist/experience/realtime-feedback.js +94 -0
- package/dist/experience/types.d.ts +50 -0
- package/dist/experience/types.js +1 -0
- package/dist/experience/user-profile.d.ts +25 -0
- package/dist/experience/user-profile.js +171 -0
- package/dist/index.js +842 -371
- package/dist/knowledge/acquisition-flywheel.d.ts +53 -0
- package/dist/knowledge/acquisition-flywheel.js +192 -0
- package/dist/knowledge/arbitration-trust.d.ts +24 -0
- package/dist/knowledge/arbitration-trust.js +117 -0
- package/dist/knowledge/audit-rules.d.ts +28 -0
- package/dist/knowledge/audit-rules.js +141 -0
- package/dist/knowledge/demand-matching.d.ts +29 -0
- package/dist/knowledge/demand-matching.js +132 -0
- package/dist/knowledge/dynamic-pricing.d.ts +31 -0
- package/dist/knowledge/dynamic-pricing.js +87 -0
- package/dist/knowledge/flywheel-loop.d.ts +87 -0
- package/dist/knowledge/flywheel-loop.js +378 -0
- package/dist/knowledge/glossary.d.ts +18 -0
- package/dist/knowledge/glossary.js +209 -0
- package/dist/knowledge/guard-ledger.d.ts +19 -0
- package/dist/knowledge/guard-ledger.js +219 -0
- package/dist/knowledge/guard-puzzle.d.ts +93 -0
- package/dist/knowledge/guard-puzzle.js +278 -0
- package/dist/knowledge/guard-risk.d.ts +60 -0
- package/dist/knowledge/guard-risk.js +474 -0
- package/dist/knowledge/guard-translation.d.ts +46 -0
- package/dist/knowledge/guard-translation.js +487 -0
- package/dist/knowledge/index.d.ts +77 -0
- package/dist/knowledge/index.js +79 -0
- package/dist/knowledge/industry-evolution.d.ts +82 -0
- package/dist/knowledge/industry-evolution.js +323 -0
- package/dist/knowledge/industry-generalizer.d.ts +17 -0
- package/dist/knowledge/industry-generalizer.js +381 -0
- package/dist/knowledge/industry-registry.d.ts +48 -0
- package/dist/knowledge/industry-registry.js +187 -0
- package/dist/knowledge/intent-metrics.d.ts +42 -0
- package/dist/knowledge/intent-metrics.js +566 -0
- package/dist/knowledge/process-model.d.ts +24 -0
- package/dist/knowledge/process-model.js +160 -0
- package/dist/knowledge/reputation-rules.d.ts +42 -0
- package/dist/knowledge/reputation-rules.js +99 -0
- package/dist/knowledge/reward-templates.d.ts +25 -0
- package/dist/knowledge/reward-templates.js +125 -0
- package/dist/knowledge/safety-rules.d.ts +36 -0
- package/dist/knowledge/safety-rules.js +232 -0
- package/dist/knowledge/tool-constraints.d.ts +30 -0
- package/dist/knowledge/tool-constraints.js +175 -0
- package/dist/knowledge/trust-metrics.d.ts +37 -0
- package/dist/knowledge/trust-metrics.js +138 -0
- package/dist/loop-engineering/diagnose.d.ts +3 -2
- package/dist/loop-engineering/diagnose.js +94 -0
- package/dist/loop-engineering/improve.d.ts +1 -1
- package/dist/loop-engineering/improve.js +52 -1
- package/dist/project/graph.d.ts +71 -0
- package/dist/project/graph.js +314 -0
- package/dist/project/index.d.ts +62 -0
- package/dist/project/index.js +167 -0
- package/dist/project/namespace.d.ts +62 -0
- package/dist/project/namespace.js +181 -0
- package/dist/project/query.d.ts +40 -0
- package/dist/project/query.js +110 -0
- package/dist/safety/confirm-gate.d.ts +17 -0
- package/dist/safety/confirm-gate.js +88 -0
- package/dist/safety/index.d.ts +3 -0
- package/dist/safety/index.js +3 -0
- package/dist/safety/preview.d.ts +2 -0
- package/dist/safety/preview.js +36 -0
- package/dist/schema/call/allocation.d.ts +39 -14
- package/dist/schema/call/arbitration.d.ts +187 -162
- package/dist/schema/call/base.d.ts +1971 -87
- package/dist/schema/call/base.js +135 -3
- package/dist/schema/call/bridge-handler.js +15 -2
- package/dist/schema/call/bridge.d.ts +1478 -53
- package/dist/schema/call/bridge.js +50 -2
- package/dist/schema/call/contact.d.ts +25 -0
- package/dist/schema/call/demand.d.ts +79 -54
- package/dist/schema/call/guard.d.ts +125 -50
- package/dist/schema/call/handler.d.ts +3 -0
- package/dist/schema/call/handler.js +60 -14
- package/dist/schema/call/machine.d.ts +988 -938
- package/dist/schema/call/order.d.ts +25 -0
- package/dist/schema/call/payment.d.ts +25 -0
- package/dist/schema/call/permission.d.ts +244 -219
- package/dist/schema/call/personal.d.ts +25 -0
- package/dist/schema/call/progress.d.ts +25 -0
- package/dist/schema/call/proof.d.ts +62 -12
- package/dist/schema/call/proof.js +3 -3
- package/dist/schema/call/repository.d.ts +101 -76
- package/dist/schema/call/reward.d.ts +55 -30
- package/dist/schema/call/semantic.d.ts +10 -2
- package/dist/schema/call/semantic.js +616 -11
- package/dist/schema/call/service.d.ts +442 -417
- package/dist/schema/call/treasury.d.ts +25 -0
- package/dist/schema/common/index.js +3 -3
- package/dist/schema/config/index.d.ts +18 -0
- package/dist/schema/config/index.js +17 -0
- package/dist/schema/index.d.ts +6 -0
- package/dist/schema/index.js +5 -0
- package/dist/schema/local/index.d.ts +237 -81
- package/dist/schema/local/index.js +42 -6
- package/dist/schema/messenger/index.d.ts +1018 -79
- package/dist/schema/messenger/index.js +26 -17
- package/dist/schema/operations.d.ts +3192 -1746
- package/dist/schema/operations.js +93 -98
- package/dist/schema/project/index.d.ts +21 -0
- package/dist/schema/project/index.js +32 -0
- package/dist/schema/query/index.d.ts +2762 -1856
- package/dist/schema/query/index.js +38 -35
- package/dist/schema/schema-query/index.d.ts +33 -0
- package/dist/schema/schema-query/index.js +36 -0
- package/dist/schema/schema-version.d.ts +25 -0
- package/dist/schema/schema-version.js +76 -0
- package/dist/schema/trust/index.d.ts +407 -0
- package/dist/schema/trust/index.js +113 -0
- package/dist/schemas/account_operation.output.json +25 -16
- package/dist/schemas/account_operation.schema.json +1 -1
- package/dist/schemas/bridge_operation.output.json +744 -0
- package/dist/schemas/bridge_operation.schema.json +82 -8
- package/dist/schemas/config_operation.output.json +18 -0
- package/dist/schemas/config_operation.schema.json +34 -0
- package/dist/schemas/guard-node-schema.json +82 -0
- package/dist/schemas/guard2file.schema.json +23 -0
- package/dist/schemas/index.json +19 -1
- package/dist/schemas/local_info_operation.output.json +23 -0
- package/dist/schemas/local_info_operation.schema.json +1 -1
- package/dist/schemas/local_mark_operation.output.json +24 -1
- package/dist/schemas/local_mark_operation.schema.json +4 -4
- package/dist/schemas/machineNode2file.schema.json +23 -0
- package/dist/schemas/messenger_operation.output.json +752 -0
- package/dist/schemas/onchain_events.output.json +718 -0
- package/dist/schemas/onchain_operations.output.json +627 -18
- package/dist/schemas/onchain_operations.schema.json +115 -39
- package/dist/schemas/onchain_operations_allocation.schema.json +23 -0
- package/dist/schemas/onchain_operations_arbitration.schema.json +23 -0
- package/dist/schemas/onchain_operations_contact.schema.json +23 -0
- package/dist/schemas/onchain_operations_demand.schema.json +23 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +46 -0
- package/dist/schemas/onchain_operations_guard.schema.json +26 -16
- package/dist/schemas/onchain_operations_machine.schema.json +89 -23
- package/dist/schemas/onchain_operations_order.schema.json +23 -0
- package/dist/schemas/onchain_operations_payment.schema.json +23 -0
- package/dist/schemas/onchain_operations_permission.schema.json +23 -0
- package/dist/schemas/onchain_operations_personal.schema.json +23 -0
- package/dist/schemas/onchain_operations_progress.schema.json +23 -0
- package/dist/schemas/onchain_operations_repository.schema.json +23 -0
- package/dist/schemas/onchain_operations_reward.schema.json +23 -0
- package/dist/schemas/onchain_operations_service.schema.json +23 -0
- package/dist/schemas/onchain_operations_treasury.schema.json +23 -0
- package/dist/schemas/onchain_table_data.output.json +939 -69
- package/dist/schemas/onchain_table_data.schema.json +2 -2
- package/dist/schemas/project_operation.output.json +18 -0
- package/dist/schemas/project_operation.schema.json +42 -0
- package/dist/schemas/query_toolkit.schema.json +360 -368
- package/dist/schemas/schema_query.schema.json +6 -3
- package/dist/schemas/trust_score.output.json +327 -0
- package/dist/schemas/trust_score.schema.json +46 -0
- package/package.json +2 -2
|
@@ -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 { SemanticSummarySchema } from "../call/base.js";
|
|
3
4
|
import { NORMAL_MESSAGE_BYTES_LIMIT } from "@wowok/wowok";
|
|
4
5
|
export const MessageStatusSchema = z.enum(["pending", "confirmed", "read", "failed", "rejected", "decrypted", "decrypt_failed"]);
|
|
5
6
|
export const MessageDirectionSchema = z.enum(["sent", "received"]);
|
|
@@ -292,91 +293,91 @@ export const MessengerOperationInputSchema = z.discriminatedUnion("operation", [
|
|
|
292
293
|
z.object({
|
|
293
294
|
operation: z.literal("watch_conversations"),
|
|
294
295
|
filter: ConversationsFilterSchema.optional().describe("Conversations filter options - use unreadOnly to find conversations with unread messages, previewMessageCount to control message previews (default 2), and sortBy/sortOrder to customize sorting"),
|
|
295
|
-
}),
|
|
296
|
+
}).strict(),
|
|
296
297
|
z.object({
|
|
297
298
|
operation: z.literal("send_message"),
|
|
298
299
|
from: NameOrAddressSchema.optional().describe("Sender account name or address. If not specified, uses default account"),
|
|
299
300
|
to: AccountOrMark_AddressAISchema.describe("Recipient address or account name - can be a string (name/address) or full object"),
|
|
300
301
|
content: z.string().max(NORMAL_MESSAGE_BYTES_LIMIT).describe("Message content text (max 10240 bytes)"),
|
|
301
302
|
options: SendMessageOptionsSchema.optional().describe("Optional message settings"),
|
|
302
|
-
}),
|
|
303
|
+
}).strict(),
|
|
303
304
|
z.object({
|
|
304
305
|
operation: z.literal("send_file"),
|
|
305
306
|
from: NameOrAddressSchema.optional().describe("Sender account name or address. If not specified, uses default account"),
|
|
306
307
|
to: AccountOrMark_AddressAISchema.describe("Recipient address or account name - can be a string (name/address) or full object"),
|
|
307
308
|
filePath: z.string().describe("Local file path to send. File will be compressed as ZIP before sending"),
|
|
308
309
|
options: SendFileOptionsSchema.optional().describe("Optional file sending settings"),
|
|
309
|
-
}),
|
|
310
|
+
}).strict(),
|
|
310
311
|
z.object({
|
|
311
312
|
operation: z.literal("watch_messages"),
|
|
312
313
|
filter: MessageFilterSchema.optional().describe("Message filter options"),
|
|
313
|
-
}),
|
|
314
|
+
}).strict(),
|
|
314
315
|
z.object({
|
|
315
316
|
operation: z.literal("extract_zip_messages"),
|
|
316
317
|
account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
|
|
317
318
|
messages: z.array(z.union([z.string(), MessageSchema])).describe("Array of message objects or message IDs to extract"),
|
|
318
319
|
outputDir: z.string().describe("Output directory path for extracted files"),
|
|
319
|
-
}),
|
|
320
|
+
}).strict(),
|
|
320
321
|
z.object({
|
|
321
322
|
operation: z.literal("generate_wts"),
|
|
322
323
|
params: WtsGenerationParamsSchema.describe("WTS generation parameters"),
|
|
323
|
-
}),
|
|
324
|
+
}).strict(),
|
|
324
325
|
z.object({
|
|
325
326
|
operation: z.literal("verify_wts"),
|
|
326
327
|
wtsFilePath: z.string().describe("WTS file path to verify"),
|
|
327
|
-
}),
|
|
328
|
+
}).strict(),
|
|
328
329
|
z.object({
|
|
329
330
|
operation: z.literal("sign_wts"),
|
|
330
331
|
wtsFilePath: z.string().describe("WTS file path to sign"),
|
|
331
332
|
account: NameOrAddressSchema.optional().describe("Account name or address to sign with. If not specified, uses default account"),
|
|
332
333
|
outputPath: z.string().optional().describe("Output file path. If not specified, saves to signed_*.wts"),
|
|
333
|
-
}),
|
|
334
|
+
}).strict(),
|
|
334
335
|
z.object({
|
|
335
336
|
operation: z.literal("wts2html"),
|
|
336
337
|
wtsPath: z.string().describe("WTS file path or directory to convert"),
|
|
337
338
|
options: WtsToHtmlOptionsSchema.optional().describe("Conversion options"),
|
|
338
|
-
}),
|
|
339
|
+
}).strict(),
|
|
339
340
|
z.object({
|
|
340
341
|
operation: z.literal("proof_message"),
|
|
341
342
|
account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
|
|
342
343
|
messageId: z.string().describe("Message ID to proof on-chain"),
|
|
343
344
|
network: EntrypointSchema.describe("Network to use for on-chain proof (required)"),
|
|
344
|
-
}),
|
|
345
|
+
}).strict(),
|
|
345
346
|
z.object({
|
|
346
347
|
operation: z.literal("blacklist"),
|
|
347
348
|
account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
|
|
348
349
|
blacklist: BlacklistOperationSchema.describe("Blacklist management operation"),
|
|
349
|
-
}),
|
|
350
|
+
}).strict(),
|
|
350
351
|
z.object({
|
|
351
352
|
operation: z.literal("friendslist"),
|
|
352
353
|
account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
|
|
353
354
|
friendslist: FriendslistOperationSchema.describe("Friends list management operation"),
|
|
354
|
-
}),
|
|
355
|
+
}).strict(),
|
|
355
356
|
z.object({
|
|
356
357
|
operation: z.literal("guardlist"),
|
|
357
358
|
account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
|
|
358
359
|
guardlist: GuardlistOperationSchema.describe("Guard list management operation"),
|
|
359
|
-
}),
|
|
360
|
+
}).strict(),
|
|
360
361
|
z.object({
|
|
361
362
|
operation: z.literal("settings"),
|
|
362
363
|
account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
|
|
363
364
|
settings: SettingsOperationSchema.describe("Settings management operation"),
|
|
364
|
-
}),
|
|
365
|
+
}).strict(),
|
|
365
366
|
z.object({
|
|
366
367
|
operation: z.literal("mark_messages_as_viewed"),
|
|
367
368
|
account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
|
|
368
369
|
messageIds: z.array(z.string()).min(1).max(1000).describe("Array of message IDs to mark as viewed (1-1000 messages). Only messages belonging to this account will be marked"),
|
|
369
|
-
}),
|
|
370
|
+
}).strict(),
|
|
370
371
|
z.object({
|
|
371
372
|
operation: z.literal("mark_conversation_as_viewed"),
|
|
372
373
|
account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
|
|
373
374
|
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"),
|
|
374
|
-
}),
|
|
375
|
+
}).strict(),
|
|
375
376
|
z.object({
|
|
376
377
|
operation: z.literal("pull_messages"),
|
|
377
378
|
account: NameOrAddressSchema.optional().describe("Account name or address. If not specified, uses default account"),
|
|
378
379
|
limit: z.number().optional().describe("Maximum number of messages to pull from server"),
|
|
379
|
-
}),
|
|
380
|
+
}).strict(),
|
|
380
381
|
]).describe("Messenger operation input schema");
|
|
381
382
|
export const MessengerOperationOutputSchema = z.object({
|
|
382
383
|
result: z.discriminatedUnion("operation", [
|
|
@@ -454,5 +455,13 @@ export const MessengerOperationOutputSchema = z.object({
|
|
|
454
455
|
operation: z.literal("pull_messages"),
|
|
455
456
|
result: z.array(MessageSchema).describe("List of messages pulled from server"),
|
|
456
457
|
}),
|
|
458
|
+
z.object({
|
|
459
|
+
operation: z.literal("error"),
|
|
460
|
+
error: z.string().describe("Error message"),
|
|
461
|
+
error_code: z.string().optional().describe("Error code"),
|
|
462
|
+
retryable: z.boolean().optional().describe("Whether the operation is retryable"),
|
|
463
|
+
recovery_hint: z.string().optional().describe("Recovery hint"),
|
|
464
|
+
}).describe("Error response"),
|
|
457
465
|
]).describe("Messenger operation result discriminated union"),
|
|
466
|
+
semantic: SemanticSummarySchema.optional().describe("Business semantic summary for messenger operation"),
|
|
458
467
|
}).describe("Messenger operation output schema");
|